ChangeLog 769 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015
  1. 2010-06-15 Tatsuhiro Tsujikawa <[email protected]>
  2. Fixed assertion error if updateTransferStatFor is called with peer
  3. X before calculateStat() after peer X is added.
  4. * src/DefaultPeerStorage.cc
  5. 2010-06-13 Tatsuhiro Tsujikawa <[email protected]>
  6. Rewritten DHTMessageCallback using Visitor pattern. Eliminated
  7. dynamic_pointer_cast.
  8. * src/DHTMessageCallbackImpl.cc: Removed
  9. * src/DHTMessageReceiver.cc
  10. * src/DHTAbstractNodeLookupTask.h
  11. * src/DHTAnnouncePeerReplyMessage.h
  12. * src/DHTReplaceNodeTask.h
  13. * src/DHTFindNodeReplyMessage.cc
  14. * src/DHTGetPeersReplyMessage.h
  15. * src/DHTPeerLookupTask.h
  16. * src/DHTMessageCallbackImpl.h: Removed
  17. * src/DHTMessageFactory.h
  18. * src/DHTNodeLookupTaskCallback.h
  19. * src/DHTMessageTracker.h
  20. * src/DHTMessageCallbackListener.h: Removed
  21. * src/DHTGetPeersReplyMessage.cc
  22. * src/DHTMessageCallback.h
  23. * src/DHTAnnouncePeerReplyMessage.cc
  24. * src/DHTNodeLookupTask.h
  25. * src/DHTReplaceNodeTask.cc
  26. * src/DHTPeerLookupTaskCallback.cc
  27. * src/DHTMessageTracker.cc
  28. * src/DHTPingReplyMessage.cc
  29. * src/DHTPingTask.cc
  30. * src/DHTMessageFactoryImpl.h
  31. * src/Makefile.am
  32. * src/DHTNodeLookupTask.cc
  33. * src/DHTPeerLookupTaskCallback.h
  34. * src/DHTPeerLookupTask.cc
  35. * src/DHTMessageReceiver.h
  36. * src/DHTMessageFactoryImpl.cc
  37. * src/DHTResponseMessage.h
  38. * src/DHTFindNodeReplyMessage.h
  39. * src/DHTPingReplyMessageCallback.h
  40. * src/Makefile.in
  41. * src/DHTBucketRefreshTask.cc
  42. * src/DHTNodeLookupTaskCallback.cc
  43. * src/DHTPingTask.h
  44. * src/DHTPingReplyMessage.h
  45. * src/DHTAbstractNodeLookupTask.cc: Removed
  46. * test/DHTMessageTrackerTest.cc
  47. * test/DHTPingMessageTest.cc
  48. * test/DHTGetPeersMessageTest.cc
  49. * test/MockDHTMessage.h
  50. * test/MockDHTMessageFactory.h
  51. * test/DHTFindNodeMessageTest.cc
  52. * test/MockDHTMessageCallback.h
  53. * test/DHTAnnouncePeerMessageTest.cc
  54. 2010-06-13 Tatsuhiro Tsujikawa <[email protected]>
  55. Replaced dynamic_pointer_cast with static_pointer_cast
  56. * src/DHTSetup.cc
  57. * src/DefaultBtMessageReceiver.cc
  58. * src/SharedHandle.h
  59. 2010-06-13 Tatsuhiro Tsujikawa <[email protected]>
  60. Reverted changes which deleted peerConnection from
  61. DefaultBtInteractive.
  62. * src/DefaultBtInteractive.cc
  63. * src/DefaultBtInteractive.h
  64. * src/PeerInteractionCommand.cc
  65. 2010-06-13 Tatsuhiro Tsujikawa <[email protected]>
  66. Rewritten DHTRegistry
  67. * src/BtSetup.cc
  68. * src/DHTRegistry.cc
  69. * src/DHTRegistry.h
  70. * src/DHTSetup.cc
  71. * src/PeerInteractionCommand.cc
  72. * src/RequestGroup.cc
  73. 2010-06-13 Tatsuhiro Tsujikawa <[email protected]>
  74. Renamed member variables of XmlRpcResponse
  75. * src/XmlRpcMethodImpl.cc
  76. * src/XmlRpcResponse.cc
  77. * src/XmlRpcResponse.h
  78. * test/XmlRpcMethodTest.cc
  79. 2010-06-13 Tatsuhiro Tsujikawa <[email protected]>
  80. Renamed member variables
  81. * src/HttpServerBodyCommand.cc
  82. * src/XmlRpcMethodImpl.cc
  83. * src/XmlRpcMethodImpl.h
  84. * src/XmlRpcRequest.h
  85. * test/XmlRpcMethodTest.cc
  86. * test/XmlRpcRequestProcessorTest.cc
  87. 2010-06-13 Tatsuhiro Tsujikawa <[email protected]>
  88. Made DownloadResult struct
  89. * src/DownloadResult.h
  90. * src/RequestGroup.h
  91. * src/RequestGroupMan.h
  92. * src/XmlRpcMethodImpl.h
  93. 2010-06-13 Tatsuhiro Tsujikawa <[email protected]>
  94. Made DHTMessageEntry struct
  95. * src/DHTMessageDispatcherImpl.cc
  96. * src/DHTMessageDispatcherImpl.h
  97. * src/DHTMessageEntry.cc
  98. * src/DHTMessageEntry.h
  99. 2010-06-13 Tatsuhiro Tsujikawa <[email protected]>
  100. Made DHTNodeLookupEntry struct
  101. * src/DHTAbstractNodeLookupTask.cc
  102. * src/DHTIDCloser.h
  103. * src/DHTNodeLookupEntry.cc
  104. * src/DHTNodeLookupEntry.h
  105. * src/DHTPeerLookupTask.cc
  106. * test/DHTIDCloserTest.cc
  107. 2010-06-13 Tatsuhiro Tsujikawa <[email protected]>
  108. Renamed member variables
  109. * src/ActivePeerConnectionCommand.cc
  110. * src/BtLeecherStateChoke.cc
  111. * src/BtPieceMessage.cc
  112. * src/BtPortMessage.cc
  113. * src/BtSeederStateChoke.cc
  114. * src/DHTGetPeersReplyMessage.cc
  115. * src/DefaultBtInteractive.cc
  116. * src/DefaultPeerStorage.cc
  117. * src/HandshakeExtensionMessage.cc
  118. * src/LpdReceiveMessageCommand.cc
  119. * src/Peer.cc
  120. * src/Peer.h
  121. * src/PeerAbstractCommand.cc
  122. * src/PeerInitiateConnectionCommand.cc
  123. * src/PeerListenCommand.cc
  124. * src/SimpleBtMessage.cc
  125. * src/UTPexExtensionMessage.cc
  126. * src/XmlRpcMethodImpl.cc
  127. * test/DHTAnnouncePeerMessageTest.cc
  128. * test/DHTGetPeersMessageTest.cc
  129. * test/DHTGetPeersReplyMessageTest.cc
  130. * test/DHTMessageFactoryImplTest.cc
  131. * test/DHTPeerAnnounceEntryTest.cc
  132. * test/DHTPeerAnnounceStorageTest.cc
  133. * test/DefaultPeerStorageTest.cc
  134. * test/HandshakeExtensionMessageTest.cc
  135. * test/LpdMessageReceiverTest.cc
  136. * test/PeerListProcessorTest.cc
  137. * test/PeerTest.cc
  138. * test/UTPexExtensionMessageTest.cc
  139. 2010-06-13 Tatsuhiro Tsujikawa <[email protected]>
  140. Made DHTNode::getIPAddress() return const reference.
  141. * src/DHTNode.h
  142. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  143. Renamed member variables
  144. * src/SocketCore.cc
  145. * src/SocketCore.h
  146. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  147. Made public member variable in Metalinker private
  148. * src/MetalinkParserController.cc
  149. * src/Metalinker.cc
  150. * src/Metalinker.h
  151. * test/MetalinkParserControllerTest.cc
  152. * test/MetalinkProcessorTest.cc
  153. * test/MetalinkerTest.cc
  154. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  155. Renamed member variables
  156. * src/SharedHandle.h
  157. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  158. Renamed member variables
  159. * src/messageDigest.cc
  160. * src/messageDigest.h
  161. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  162. Made protected member variable private.
  163. * src/XmlRpcMethod.h
  164. * src/XmlRpcMethodImpl.cc
  165. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  166. Made protected member variable private.
  167. * src/UTMetadataDataExtensionMessage.cc
  168. * src/UTMetadataExtensionMessage.h
  169. * src/UTMetadataRejectExtensionMessage.cc
  170. * src/UTMetadataRequestExtensionMessage.cc
  171. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  172. Renamed member variables
  173. * src/TimeSeedCriteria.h
  174. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  175. Renamed member variables
  176. * src/TimeA2.cc
  177. * src/TimeA2.h
  178. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  179. Renamed member variables
  180. * src/SpeedCalc.cc
  181. * src/SpeedCalc.h
  182. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  183. Renamed member variables in SegmentMan
  184. * src/RequestGroup.cc
  185. * src/RequestGroupMan.cc
  186. * src/SegmentMan.cc
  187. * src/SegmentMan.h
  188. * src/XmlRpcMethodImpl.cc
  189. * test/BtDependencyTest.cc
  190. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  191. Renamed member variables.
  192. * src/RequestSlot.cc
  193. * src/RequestSlot.h
  194. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  195. Renamed member variables.
  196. * src/Range.cc
  197. * src/Range.h
  198. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  199. Renamed member variables.
  200. * src/Piece.cc
  201. * src/Piece.h
  202. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  203. Renamed member variables.
  204. * src/PeerStat.h
  205. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  206. Renamed member variables.
  207. * src/PeerConnection.cc
  208. * src/PeerConnection.h
  209. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  210. Renamed member variables.
  211. * src/Option.cc
  212. * src/Option.h
  213. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  214. Renamed member variables.
  215. * src/Netrc.cc
  216. * src/Netrc.h
  217. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  218. Renamed member variables.
  219. * src/LogFactory.cc
  220. * src/LogFactory.h
  221. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  222. Renamed member variables.
  223. * src/HttpResponse.cc
  224. * src/HttpResponse.h
  225. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  226. Renamed member variables.
  227. * src/HttpRequest.cc
  228. * src/HttpRequest.h
  229. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  230. Renamed member variables.
  231. * src/HttpHeader.cc
  232. * src/HttpHeader.h
  233. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  234. Renamed member variables. Removed unused member variable.
  235. * src/AbstractProxyRequestCommand.cc
  236. * src/FtpInitiateConnectionCommand.cc
  237. * src/FtpNegotiationCommand.cc
  238. * src/HttpConnection.cc
  239. * src/HttpConnection.h
  240. * src/HttpInitiateConnectionCommand.cc
  241. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  242. Removed HandleRegistry
  243. * src/HandleRegistry.h
  244. * src/Makefile.am
  245. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  246. Renamed member variables.
  247. * src/FtpConnection.cc
  248. * src/FtpConnection.h
  249. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  250. Renamed member variables.
  251. * src/FileEntry.cc
  252. * src/FileEntry.h
  253. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  254. Renamed member variables.
  255. * src/File.cc
  256. * src/File.h
  257. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  258. Made protected member variable private. Added accessor funcs.
  259. * src/BtPostDownloadHandler.cc
  260. * src/DownloadHandler.h
  261. * src/MetalinkPostDownloadHandler.cc
  262. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  263. Renamed member variables.
  264. * src/DownloadEngine.cc
  265. * src/DownloadEngine.h
  266. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  267. Renamed member variables.
  268. * src/DefaultPieceStorage.cc
  269. * src/DefaultPieceStorage.h
  270. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  271. Renamed member variables. Removed unused member variable.
  272. * src/DefaultPeerStorage.cc
  273. * src/DefaultPeerStorage.h
  274. * src/RequestGroup.cc
  275. * test/DefaultPeerStorageTest.cc
  276. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  277. Renamed member variables. Removed unused member variable.
  278. * src/DefaultBtRequestFactory.cc
  279. * src/DefaultBtRequestFactory.h
  280. * src/PeerInteractionCommand.cc
  281. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  282. Renamed member variables. Removed unused member variables.
  283. * src/DefaultBtMessageReceiver.cc
  284. * src/DefaultBtMessageReceiver.h
  285. * src/PeerInteractionCommand.cc
  286. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  287. Renamed member variables
  288. * src/DefaultBtMessageFactory.cc
  289. * src/DefaultBtMessageFactory.h
  290. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  291. Renamed member variables
  292. * src/DefaultBtMessageDispatcher.cc
  293. * src/DefaultBtMessageDispatcher.h
  294. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  295. Renamed member variables. Removed member variable peerConnection.
  296. * src/DefaultBtInteractive.cc
  297. * src/DefaultBtInteractive.h
  298. * src/PeerInteractionCommand.cc
  299. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  300. Renamed member variables
  301. * src/DefaultBtAnnounce.cc
  302. * src/DefaultBtAnnounce.h
  303. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  304. Made protected member variable private. Added accessor funcs.
  305. * src/DHTAbstractNodeLookupTask.cc
  306. * src/DHTAbstractNodeLookupTask.h
  307. * src/DHTAbstractTask.h
  308. * src/DHTBucketRefreshTask.cc
  309. * src/DHTNodeLookupTask.cc
  310. * src/DHTNodeLookupTask.h
  311. * src/DHTPeerLookupTask.cc
  312. * src/DHTPeerLookupTask.h
  313. * src/DHTPingTask.cc
  314. * src/DHTPingTask.h
  315. * src/DHTReplaceNodeTask.cc
  316. * src/DHTReplaceNodeTask.h
  317. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  318. Made protected member variable private. Added accessor funcs.
  319. * src/DHTAbstractMessage.cc
  320. * src/DHTAbstractMessage.h
  321. * src/DHTAnnouncePeerMessage.cc
  322. * src/DHTAnnouncePeerMessage.h
  323. * src/DHTAnnouncePeerReplyMessage.cc
  324. * src/DHTAnnouncePeerReplyMessage.h
  325. * src/DHTFindNodeMessage.cc
  326. * src/DHTFindNodeMessage.h
  327. * src/DHTFindNodeReplyMessage.cc
  328. * src/DHTFindNodeReplyMessage.h
  329. * src/DHTGetPeersMessage.cc
  330. * src/DHTGetPeersMessage.h
  331. * src/DHTGetPeersReplyMessage.cc
  332. * src/DHTGetPeersReplyMessage.h
  333. * src/DHTMessage.h
  334. * src/DHTPingMessage.cc
  335. * src/DHTPingMessage.h
  336. * src/DHTPingReplyMessage.cc
  337. * src/DHTPingReplyMessage.h
  338. * src/DHTQueryMessage.cc
  339. * src/DHTQueryMessage.h
  340. * src/DHTResponseMessage.cc
  341. * src/DHTResponseMessage.h
  342. * src/DHTUnknownMessage.cc
  343. * src/DHTUnknownMessage.h
  344. * test/MockDHTMessage.h
  345. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  346. Removed unused member variable uuid and uuidGen
  347. * src/Command.cc
  348. * src/Command.h
  349. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  350. Renamed member variables
  351. * src/ByteArrayDiskWriter.cc
  352. * src/ByteArrayDiskWriter.h
  353. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  354. Renamed member variables
  355. * src/BtRuntime.h
  356. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  357. Renamed member variables
  358. * src/BtHandshakeMessage.cc
  359. * src/BtHandshakeMessage.h
  360. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  361. Renamed member variables
  362. * src/BtBitfieldMessageValidator.h
  363. * src/BtHandshakeMessageValidator.h
  364. * src/BtPieceMessageValidator.h
  365. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  366. Renamed member variables
  367. * src/BtAbortOutstandingRequestEvent.h
  368. * src/BtCancelSendingPieceEvent.h
  369. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  370. Renamed member variable
  371. * src/BitfieldMan.cc
  372. * src/BitfieldMan.h
  373. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  374. Renamed member variable
  375. * src/AsyncNameResolver.cc
  376. * src/AsyncNameResolver.h
  377. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  378. Renamed member variable
  379. * src/AnnounceList.cc
  380. * src/AnnounceList.h
  381. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  382. Made protected member variable private. Added accessor funcs.
  383. * src/AbstractSingleDiskAdaptor.cc
  384. * src/AbstractSingleDiskAdaptor.h
  385. * src/DirectDiskAdaptor.cc
  386. * src/DirectDiskAdaptor.h
  387. * src/DiskAdaptor.cc
  388. * src/DiskAdaptor.h
  389. * src/MultiDiskAdaptor.cc
  390. * src/MultiDiskAdaptor.h
  391. * src/MultiFileAllocationIterator.cc
  392. * src/MultiFileAllocationIterator.h
  393. * test/BtBitfieldMessageTest.cc
  394. * test/BtHaveAllMessageTest.cc
  395. * test/BtHaveMessageTest.cc
  396. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  397. Made protected member variable private. Added accessor funcs.
  398. * src/AbstractDiskWriter.cc
  399. * src/AbstractDiskWriter.h
  400. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  401. Made protected member variable private. Added accessor funcs.
  402. * src/AbstractAuthResolver.h
  403. * src/DefaultAuthResolver.cc
  404. * src/DefaultAuthResolver.h
  405. * src/NetrcAuthResolver.cc
  406. * src/NetrcAuthResolver.h
  407. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  408. Made protected member variable private. Added accessor funcs.
  409. * src/AbstractBtMessage.cc
  410. * src/AbstractBtMessage.h
  411. * src/BtAllowedFastMessage.cc
  412. * src/BtAllowedFastMessage.h
  413. * src/BtBitfieldMessage.cc
  414. * src/BtBitfieldMessage.h
  415. * src/BtCancelMessage.cc
  416. * src/BtCancelMessage.h
  417. * src/BtChokeMessage.cc
  418. * src/BtChokeMessage.h
  419. * src/BtExtendedMessage.cc
  420. * src/BtHaveAllMessage.cc
  421. * src/BtHaveAllMessage.h
  422. * src/BtHaveMessage.cc
  423. * src/BtHaveMessage.h
  424. * src/BtHaveNoneMessage.cc
  425. * src/BtHaveNoneMessage.h
  426. * src/BtInterestedMessage.cc
  427. * src/BtInterestedMessage.h
  428. * src/BtNotInterestedMessage.cc
  429. * src/BtNotInterestedMessage.h
  430. * src/BtPieceMessage.cc
  431. * src/BtPieceMessage.h
  432. * src/BtPortMessage.cc
  433. * src/BtPortMessage.h
  434. * src/BtRejectMessage.cc
  435. * src/BtRejectMessage.h
  436. * src/BtRequestMessage.cc
  437. * src/BtRequestMessage.h
  438. * src/BtUnchokeMessage.cc
  439. * src/BtUnchokeMessage.h
  440. * src/SimpleBtMessage.cc
  441. * src/SimpleBtMessage.h
  442. 2010-06-10 Tatsuhiro Tsujikawa <[email protected]>
  443. Made protected member variable private. Added accessor funcs.
  444. * src/BtCheckIntegrityEntry.cc
  445. * src/BtFileAllocationEntry.cc
  446. * src/CheckIntegrityEntry.cc
  447. * src/CheckIntegrityEntry.h
  448. * src/ChecksumCheckIntegrityEntry.cc
  449. * src/FileAllocationEntry.cc
  450. * src/PieceHashCheckIntegrityEntry.cc
  451. * src/RequestGroupEntry.h
  452. * src/StreamCheckIntegrityEntry.cc
  453. * src/StreamFileAllocationEntry.cc
  454. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  455. Made protected member variable private. Added accessor funcs.
  456. * src/ActivePeerConnectionCommand.cc
  457. * src/ActivePeerConnectionCommand.h
  458. * src/CheckIntegrityDispatcherCommand.cc
  459. * src/DHTEntryPointNameResolveCommand.h
  460. * src/DHTInteractionCommand.h
  461. * src/FileAllocationDispatcherCommand.cc
  462. * src/LpdReceiveMessageCommand.h
  463. * src/PeerChokeCommand.cc
  464. * src/PeerChokeCommand.h
  465. * src/PeerListenCommand.cc
  466. * src/PeerListenCommand.h
  467. * src/SeedCheckCommand.cc
  468. * src/SeedCheckCommand.h
  469. * src/SequentialDispatcherCommand.h
  470. * src/SleepCommand.cc
  471. * src/SleepCommand.h
  472. * src/TrackerWatcherCommand.cc
  473. * src/TrackerWatcherCommand.h
  474. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  475. Made protected member variable private. Added accessor funcs.
  476. * src/CheckIntegrityCommand.cc
  477. * src/FileAllocationCommand.cc
  478. * src/RealtimeCommand.h
  479. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  480. Made protected member variable private. Added accessor funcs.
  481. * src/AutoSaveCommand.cc
  482. * src/BtStopDownloadCommand.cc
  483. * src/DHTAutoSaveCommand.cc
  484. * src/DHTBucketRefreshCommand.cc
  485. * src/DHTPeerAnnounceCommand.cc
  486. * src/DHTTokenUpdateCommand.cc
  487. * src/HaveEraseCommand.cc
  488. * src/TimeBasedCommand.h
  489. * src/TimedHaltCommand.cc
  490. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  491. Made protected member variable private. Added accessor funcs.
  492. * src/InitiatorMSEHandshakeCommand.cc
  493. * src/PeerAbstractCommand.cc
  494. * src/PeerAbstractCommand.h
  495. * src/PeerInitiateConnectionCommand.cc
  496. * src/PeerInteractionCommand.cc
  497. * src/PeerInteractionCommand.h
  498. * src/PeerReceiveHandshakeCommand.cc
  499. * src/ReceiverMSEHandshakeCommand.cc
  500. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  501. Code cleanup
  502. * src/AbstractCommand.cc
  503. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  504. Made protected member variable private. Added accessor funcs.
  505. * src/AbstractCommand.cc
  506. * src/AbstractCommand.h
  507. * src/AbstractProxyRequestCommand.cc
  508. * src/AbstractProxyRequestCommand.h
  509. * src/AbstractProxyResponseCommand.cc
  510. * src/AbstractProxyResponseCommand.h
  511. * src/CreateRequestCommand.cc
  512. * src/DownloadCommand.cc
  513. * src/DownloadCommand.h
  514. * src/FtpDownloadCommand.cc
  515. * src/FtpDownloadCommand.h
  516. * src/FtpFinishDownloadCommand.cc
  517. * src/FtpInitiateConnectionCommand.cc
  518. * src/FtpNegotiationCommand.cc
  519. * src/FtpNegotiationCommand.h
  520. * src/FtpTunnelRequestCommand.cc
  521. * src/FtpTunnelResponseCommand.cc
  522. * src/HttpDownloadCommand.cc
  523. * src/HttpInitiateConnectionCommand.cc
  524. * src/HttpProxyRequestCommand.cc
  525. * src/HttpProxyResponseCommand.cc
  526. * src/HttpRequestCommand.cc
  527. * src/HttpResponseCommand.cc
  528. * src/HttpResponseCommand.h
  529. * src/HttpSkipResponseCommand.cc
  530. * src/InitiateConnectionCommand.cc
  531. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  532. Made protected member variables of Command private. Added accessor
  533. funcs.
  534. 2010-06-08 Tatsuhiro Tsujikawa <[email protected]>
  535. Made public member variables of DownloadEngine private. Added
  536. accessor funcs.
  537. 2010-06-04 Tatsuhiro Tsujikawa <[email protected]>
  538. Release 1.9.4
  539. 2010-06-04 Tatsuhiro Tsujikawa <[email protected]>
  540. Updated Italian translation. Added Korean translation.
  541. Thanks to all translators.
  542. * LINGUAS
  543. * it.po
  544. * ko.po
  545. 2010-06-04 Tatsuhiro Tsujikawa <[email protected]>
  546. Updated po templates.
  547. * po/aria2.pot
  548. 2010-06-03 Tatsuhiro Tsujikawa <[email protected]>
  549. Fixed the bug that reading Metalink from pipe fails on older
  550. libxml2. It only accepts "-" as a special keyword to read stdin.
  551. * src/XML2SAXMetalinkProcessor.cc
  552. 2010-06-03 Tatsuhiro Tsujikawa <[email protected]>
  553. Added log message when cookies are loaded. Added filename to log
  554. message when serializing session.
  555. * src/MultiUrlRequestInfo.cc
  556. 2010-06-03 Tatsuhiro Tsujikawa <[email protected]>
  557. Treat SIGHUP and SIGTERM signal as emergency shutdown because they
  558. are usually issued by system or other process.
  559. * src/MultiUrlRequestInfo.cc
  560. 2010-06-03 Tatsuhiro Tsujikawa <[email protected]>
  561. Use downloadresultcode::IN_PROGRESS for
  562. RequestGroup::SHUTDOWN_SIGNAL.
  563. * src/RequestGroup.cc
  564. 2010-06-03 Tatsuhiro Tsujikawa <[email protected]>
  565. Call requestForceHalt() instead of _requestGroupMan->forceHalt().
  566. * src/DownloadEngine.cc
  567. 2010-06-02 Tatsuhiro Tsujikawa <[email protected]>
  568. Mentioned RFC 5854 in README and man page.
  569. * README
  570. * doc/aria2c.1.txt
  571. 2010-06-01 Tatsuhiro Tsujikawa <[email protected]>
  572. Bump up version number to 1.9.4
  573. * configure.ac
  574. * doc/aria2c.1.txt
  575. 2010-06-01 Tatsuhiro Tsujikawa <[email protected]>
  576. Don't throw exception when Metalink document is empty(no file
  577. element). It is a valid Metalink document anyway.
  578. * src/MetalinkHelper.cc
  579. * src/download_helper.cc
  580. 2010-06-01 Tatsuhiro Tsujikawa <[email protected]>
  581. Fixed double memory free when Exception raised from
  582. AbstractCommand::prepareForNextAction() called by
  583. HttpResponseCommand::handleDefaultEncoding().
  584. * src/AbstractCommand.cc
  585. * src/HttpResponseCommand.cc
  586. 2010-06-01 Tatsuhiro Tsujikawa <[email protected]>
  587. Added _logger->info() guard
  588. * src/IteratableChunkChecksumValidator.cc
  589. 2010-05-26 Tatsuhiro Tsujikawa <[email protected]>
  590. Fixed the bug that feeding Metalink XML via pipe (-M- option) does
  591. not work when aria2 is built with expat. Fixed the bug that when
  592. Metalink XML is fed via pipe and --save-session is used, entry
  593. "/dev/stdin" is saved in session file.
  594. * src/ExpatMetalinkProcessor.cc
  595. * src/ExpatMetalinkProcessor.h
  596. * src/Metalink2RequestGroup.cc
  597. 2010-05-22 Tatsuhiro Tsujikawa <[email protected]>
  598. Updated doc
  599. * src/aria2c.1.txt
  600. 2010-05-22 Tatsuhiro Tsujikawa <[email protected]>
  601. Added totalLength, completedLength, uploadLength, bitfield,
  602. downloadSpeed, uploadSpeed, infoHash, numSeeders, pieceLength,
  603. numPieces, connections and dir to the response of
  604. aria2.tellStopped XML-RPC method. aria2.tellWaiting now always
  605. returns numSeeders for BitTorrent download.
  606. * src/DownloadResult.h
  607. * src/RequestGroup.cc
  608. * src/RequestGroup.h
  609. * src/XmlRpcMethodImpl.cc
  610. * test/XmlRpcMethodTest.cc
  611. 2010-05-21 Tatsuhiro Tsujikawa <[email protected]>
  612. Fixed the bug that connection pooling does not take into account
  613. proxy. This means that when connection A via proxy X is pooled,
  614. it will be wrongly reused in the download using proxy Y.
  615. * src/DownloadEngine.cc
  616. * src/DownloadEngine.h
  617. * src/FtpFinishDownloadCommand.cc
  618. * src/FtpInitiateConnectionCommand.cc
  619. * src/FtpNegotiationCommand.cc
  620. * src/HttpDownloadCommand.cc
  621. * src/HttpInitiateConnectionCommand.cc
  622. * src/HttpResponseCommand.cc
  623. * src/HttpSkipResponseCommand.cc
  624. 2010-05-21 Tatsuhiro Tsujikawa <[email protected]>
  625. Fixed the bug that FTP download may fail when control connection
  626. is reused. This happens because FTP server can offer different
  627. root directory for different account. If pooled connections has
  628. different root directory, then download will fail.
  629. * src/DownloadEngine.cc
  630. * src/DownloadEngine.h
  631. * src/FtpConnection.cc
  632. * src/FtpConnection.h
  633. * src/FtpFinishDownloadCommand.cc
  634. * src/FtpInitiateConnectionCommand.cc
  635. * src/FtpNegotiationCommand.cc
  636. 2010-05-20 Tatsuhiro Tsujikawa <[email protected]>
  637. Removed DownloadResult's ctor because it has many args.
  638. * src/DownloadResult.h
  639. * src/RequestGroup.cc
  640. * test/XmlRpcMethodTest.cc
  641. 2010-05-19 Tatsuhiro Tsujikawa <[email protected]>
  642. Code cleanup.
  643. * src/RequestGroupMan.cc
  644. * src/UTMetadataPostDownloadHandler.cc
  645. * src/XmlRpcMethodImpl.cc
  646. 2010-05-15 Tatsuhiro Tsujikawa <[email protected]>
  647. Store both whole checksum and piece hash in metalink file.
  648. Dispatch whole checksum verification only when piece hash is not
  649. set.
  650. * src/DownloadCommand.cc
  651. * src/Metalink2RequestGroup.cc
  652. * test/Metalink2RequestGroupTest.cc
  653. 2010-05-14 Tatsuhiro Tsujikawa <[email protected]>
  654. Left only IANA hash function textual name in messageDigest.cc.
  655. Assign only IANA hash function textual name to Checksum and
  656. ChunkChecksum. Fixed the value of MessageDigestContext::MD5.
  657. * src/Checksum.h
  658. * src/MetalinkParserController.cc
  659. * src/messageDigest.cc
  660. * src/messageDigest.h
  661. * test/IteratableChecksumValidatorTest.cc
  662. * test/IteratableChunkChecksumValidatorTest.cc
  663. * test/MessageDigestHelperTest.cc
  664. * test/Metalink2RequestGroupTest.cc
  665. * test/MetalinkProcessorTest.cc
  666. 2010-05-14 Tatsuhiro Tsujikawa <[email protected]>
  667. Fixed typo in log message
  668. * src/AbstractCommand.cc
  669. 2010-05-09 Tatsuhiro Tsujikawa <[email protected]>
  670. Release 1.9.3
  671. 2010-05-08 Tatsuhiro Tsujikawa <[email protected]>
  672. Return const reference.
  673. * src/DefaultPieceStorage.h
  674. * src/DownloadContext.h
  675. * src/FeatureConfig.cc
  676. * src/FeatureConfig.h
  677. * src/OptionParser.cc
  678. * src/OptionParser.h
  679. * src/SimpleRandomizer.cc
  680. * src/SimpleRandomizer.h
  681. 2010-05-07 Tatsuhiro Tsujikawa <[email protected]>
  682. Bump up version number to 1.9.3.
  683. * configure.ac
  684. 2010-05-06 Tatsuhiro Tsujikawa <[email protected]>
  685. Return const reference.
  686. * src/LpdMessageReceiver.h
  687. * src/LpdReceiveMessageCommand.h
  688. 2010-05-06 Tatsuhiro Tsujikawa <[email protected]>
  689. Removed useless pathJoin
  690. * src/MetalinkParserController.cc
  691. 2010-05-06 Tatsuhiro Tsujikawa <[email protected]>
  692. Fixed the bug that name attribute of file element in Metalink file
  693. is not properly sanitized.
  694. * src/Metalink2RequestGroup.cc
  695. * src/MetalinkParserController.cc
  696. * test/Makefile.am
  697. * test/Metalink2RequestGroupTest.cc
  698. * test/metalink4-dosdirtraversal.xml
  699. 2010-05-06 Tatsuhiro Tsujikawa <[email protected]>
  700. Fixed the bug that if filename in Content-Disposition header
  701. includes ';', aria2 cuts filename after ';'.
  702. * src/util.cc
  703. * test/UtilTest.cc
  704. 2010-04-28 Tatsuhiro Tsujikawa <[email protected]>
  705. Release 1.9.2
  706. 2010-04-27 Tatsuhiro Tsujikawa <[email protected]>
  707. Fixed compiler warning on opensolaris.
  708. * src/StringFormat.h
  709. * src/XORCloser.h
  710. 2010-04-27 Tatsuhiro Tsujikawa <[email protected]>
  711. Updated doc
  712. * test/array_funTest.cc
  713. 2010-04-27 Tatsuhiro Tsujikawa <[email protected]>
  714. Fixed segmentation fault when running unit tests on opensolaris.
  715. * src/SocketCore.cc
  716. * src/bittorrent_helper.cc
  717. 2010-04-26 Tatsuhiro Tsujikawa <[email protected]>
  718. Updated Russian translation. Thanks to all translators.
  719. * po/ru.po
  720. 2010-04-26 Tatsuhiro Tsujikawa <[email protected]>
  721. Updated po templates.
  722. * po/aria2.pot
  723. 2010-04-25 Tatsuhiro Tsujikawa <[email protected]>
  724. Print warning when trying to add file descriptor >= FD_SET or < 0
  725. to fd_set for other than MinGW32 build. For MinGW32 build, print
  726. warning when trying to add file descriptor to fd_set when it
  727. already contains FD_SET file descriptors.
  728. * src/SelectEventPoll.cc
  729. * src/SocketCore.cc
  730. 2010-04-25 Tatsuhiro Tsujikawa <[email protected]>
  731. Updated doc for --event-poll option.
  732. * doc/aria2c.1.txt
  733. 2010-04-25 Tatsuhiro Tsujikawa <[email protected]>
  734. Bump up version number to 1.9.2
  735. * configure.ac
  736. * doc/aria2c.1.txt
  737. 2010-04-25 Tatsuhiro Tsujikawa <[email protected]>
  738. Defined FD_SETSIZE 1024 for MinGW32.
  739. * src/a2netcompat.h
  740. 2010-04-25 Tatsuhiro Tsujikawa <[email protected]>
  741. Fixed compile error on the system which lacks poll()
  742. * src/DownloadEngineFactory.cc
  743. 2010-04-24 Tatsuhiro Tsujikawa <[email protected]>
  744. In SocketCore::isReadable()/isWritable(), use poll() if it is
  745. available otherwise use select(). Removed epoll/port from there
  746. because poll() does the good enough job for single socket event
  747. notification.
  748. * src/SocketCore.cc
  749. * src/SocketCore.h
  750. * src/main.cc
  751. 2010-04-24 Tatsuhiro Tsujikawa <[email protected]>
  752. Added kqueue support. We use poll() for
  753. SocketCore::isReadable()/isWritable() when kqueue is used.
  754. * configure.ac
  755. * src/DownloadEngineFactory.cc
  756. * src/KqueueEventPoll.cc
  757. * src/KqueueEventPoll.h
  758. * src/Makefile.am
  759. * src/Makefile.in
  760. * src/OptionHandlerFactory.cc
  761. * src/main.cc
  762. * src/prefs.cc
  763. * src/prefs.h
  764. 2010-04-23 Tatsuhiro Tsujikawa <[email protected]>
  765. Added missing timespec.h to SRCS
  766. * src/Makefile.am
  767. 2010-04-23 Tatsuhiro Tsujikawa <[email protected]>
  768. Fixed the bug that aria2.unpause fails with -s1.
  769. * src/FileEntry.cc
  770. * src/XmlRpcMethodImpl.cc
  771. 2010-04-22 Tatsuhiro Tsujikawa <[email protected]>
  772. Added missing #ifdef HAVE_PORT_ASSOCIATE
  773. * src/DownloadEngineFactory.cc
  774. 2010-04-21 Tatsuhiro Tsujikawa <[email protected]>
  775. Added opensolaris port_associate() support.
  776. * src/DownloadEngineFactory.cc
  777. * src/Makefile.am
  778. * src/OptionHandlerFactory.cc
  779. * src/PortEventPoll.cc
  780. * src/PortEventPoll.h
  781. * src/SocketCore.cc
  782. * src/SocketCore.h
  783. * src/configure.ac
  784. * src/main.cc
  785. * src/prefs.cc
  786. * src/prefs.h
  787. 2010-04-21 Tatsuhiro Tsujikawa <[email protected]>
  788. Fixed the bug that _e is passed where e should be passed.
  789. * src/HttpListenCommand.cc
  790. 2010-04-20 Tatsuhiro Tsujikawa <[email protected]>
  791. Increased _epEvents size if necessary.
  792. * src/EpollEventPoll.cc
  793. * src/EpollEventPoll.h
  794. 2010-04-20 Tatsuhiro Tsujikawa <[email protected]>
  795. Removed EventRType template parameter
  796. * src/EpollEventPoll.cc
  797. * src/EpollEventPoll.h
  798. * src/Event.h
  799. * src/PollEventPoll.cc
  800. * src/PollEventPoll.h
  801. 2010-04-20 Tatsuhiro Tsujikawa <[email protected]>
  802. Use Event in EpollEventPoll
  803. * src/EpollEventPoll.cc
  804. * src/EpollEventPoll.h
  805. 2010-04-20 Tatsuhiro Tsujikawa <[email protected]>
  806. Externalized Event, CommandEvent, ADNSEvent, SocketEntry and
  807. AsyncNameResolverEntry class.
  808. * src/Event.h
  809. * src/Makefile.am
  810. * src/PollEventPoll.cc
  811. * src/PollEventPoll.h
  812. 2010-04-19 Tatsuhiro Tsujikawa <[email protected]>
  813. Supported poll() for socket event notification. --event-poll can
  814. take value "poll". Fixed the bug that timeout for
  815. SocketCore::isReadable()/isWritable() is ignored when epoll is
  816. used.
  817. * src/OptionHandlerFactory.cc
  818. * src/a2io.h
  819. * src/prefs.h
  820. * src/SocketCore.h
  821. * src/Makefile.am
  822. * src/main.cc
  823. * src/PollEventPoll.h
  824. * src/SocketCore.cc
  825. * src/DownloadEngineFactory.cc
  826. * src/PollEventPoll.cc
  827. * src/prefs.cc
  828. * configure.ac
  829. 2010-04-19 Tatsuhiro Tsujikawa <[email protected]>
  830. Reverted previous change to DownloadCommand.cc with additional
  831. commentary.
  832. * src/DownloadCommand.cc
  833. 2010-04-16 Tatsuhiro Tsujikawa <[email protected]>
  834. Fixed compile error with openssl 1.1.0 and mingw32.
  835. * src/AsyncNameResolver.cc
  836. * src/LogFactory.cc
  837. * src/Logger.cc
  838. * src/Logger.h
  839. * src/SocketCore.cc
  840. * src/SocketCore.h
  841. * src/a2netcompat.h
  842. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  843. Release 1.9.1
  844. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  845. Bump up version number to 1.9.0
  846. * doc/aria2c.1.txt
  847. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  848. Updated Ukrainian, Russian, Simplified Chinese, German and Greek
  849. translation. Thanks to all translators.
  850. * po/de.po
  851. * po/el.po
  852. * po/ru.po
  853. * po/uk.po
  854. * po/zh_CN.po
  855. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  856. Added AC_SEARCH_LIBS for inet_aton on opensolaris. opensolaris
  857. needs -lnsl for inet_aton.
  858. * configure.ac
  859. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  860. Updated po templates.
  861. * po/aria2.pot
  862. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  863. Added aria2.pause, aria2.forcePause, aria2.pauseAll,
  864. aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC
  865. method to aria2rpc
  866. * doc/xmlrpc/aria2rpc
  867. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  868. Use elapsed time between two mach_absolute_time() calls.
  869. Fixed compile error in Mac OS X.
  870. * src/clock_gettime_osx.cc
  871. * src/timespec.h
  872. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  873. Implemented clock_gettime() using mach_absolute_time in Mac OS X.
  874. * configure.ac
  875. * src/Makefile.am
  876. * src/a2time.h
  877. * src/clock_gettime_osx.cc
  878. * src/clock_gettime_osx.h
  879. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  880. Implemented clock_gettime() using timeGetTime in mingw.
  881. * configure.ac
  882. * src/Makefile.am
  883. * src/a2time.h
  884. * src/clock_gettime_mingw.cc
  885. * src/clock_gettime_mingw.h
  886. * src/timespec.h
  887. * test/Makefile.am
  888. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  889. Ensure that std::ofstream is destroyed before renaming.
  890. * src/SessionSerializer.cc
  891. * src/util.cc
  892. 2010-04-13 Tatsuhiro Tsujikawa <[email protected]>
  893. Fixed the bug that user specified path is escaped using
  894. util::escapePath() where it should not.
  895. * src/DownloadContext.cc
  896. * src/DownloadContext.h
  897. 2010-04-13 Tatsuhiro Tsujikawa <[email protected]>
  898. Hold reference to PieceStorage when paused in order to provide
  899. progress information via XML-RPC.
  900. * src/RequestGroup.cc
  901. * src/RequestGroup.h
  902. * src/RequestGroupMan.cc
  903. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  904. Defined struct timespec if it is not available.
  905. * src/a2time.h
  906. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  907. Added missing serialize_session.meta4 to EXTRA_DIST
  908. * test/Makefile.am
  909. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  910. Fixed compile error without BitTorrent support.
  911. * src/Metalink2RequestGroup.cc
  912. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  913. Fixed compile error on Mac OS X
  914. * src/TimerA2.h
  915. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  916. Added warning for the system which lacks clock_gettime with
  917. CLOCK_MONOTONIC.
  918. * src/MultiUrlRequestInfo.cc
  919. * src/TimerA2.cc
  920. * src/TimerA2.h
  921. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  922. Removed redundant method call for DownloadEngine.
  923. * src/DownloadCommand.cc
  924. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  925. Fixed the bug that hash check hangs when aria2.pause is issued
  926. while aria2 is checking piece hashes. Fixed the bug that the
  927. download is paused after file allocation completion even if
  928. aria2.pause is issued during file allocation.
  929. * src/CheckIntegrityCommand.cc
  930. * src/FileAllocationCommand.cc
  931. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  932. Added nsl to search-libs for getaddrinfo on opensolaris
  933. * configure.ac
  934. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  935. Fixed compile error on opensolaris
  936. * configure.ac
  937. * src/Logger.h
  938. * src/GZipEncoder.h
  939. 2010-04-11 Tatsuhiro Tsujikawa <[email protected]>
  940. Added aria2.pauseAll, aria2.forcePauseAll and aria2.unpauseAll
  941. XML-RPC method.
  942. * doc/aria2c.1.txt
  943. * src/XmlRpcMethodFactory.cc
  944. * src/XmlRpcMethodImpl.cc
  945. * src/XmlRpcMethodImpl.h
  946. * test/XmlRpcMethodTest.cc
  947. 2010-04-11 Tatsuhiro Tsujikawa <[email protected]>
  948. Added aria2.forcePause XML-RPC command.
  949. * src/XmlRpcMethodFactory.cc
  950. * src/XmlRpcMethodImpl.cc
  951. * src/XmlRpcMethodImpl.h
  952. 2010-04-11 Tatsuhiro Tsujikawa <[email protected]>
  953. Use global::wallclock
  954. * src/DHTBucket.cc
  955. * src/DHTMessageTrackerEntry.cc
  956. * src/DHTMessageTrackerEntry.h
  957. * src/DefaultBtInteractive.cc
  958. * src/Peer.cc
  959. * src/PeerAbstractCommand.cc
  960. * src/PeerStat.h
  961. * src/RequestSlot.h
  962. * src/TimeBasedCommand.cc
  963. 2010-04-11 Tatsuhiro Tsujikawa <[email protected]>
  964. Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
  965. usable to prevent from aria2 from being affected by system time
  966. change.
  967. 2010-04-09 Tatsuhiro Tsujikawa <[email protected]>
  968. Added aria2.pause and aria2.unpause XML-RPC method. aria2.pause
  969. pauses the download denoted by gid. gid is of type string. The
  970. status of paused download becomes "paused" and the download is
  971. placed on the first position of waiting queue. As long as the
  972. status is "paused", the download is not started. To change status
  973. to "waiting", use aria2.unpause method. This method returns GID of
  974. paused download. aria2.unpause changes the status of the download
  975. denoted by gid from "paused" to "waiting". This makes the download
  976. eligible to restart. gid is of type string. This method returns
  977. GID of unpaused download.
  978. * doc/aria2c.1.txt
  979. * src/DownloadContext.cc
  980. * src/FileEntry.cc
  981. * src/OptionHandlerFactory.cc
  982. * src/RequestGroup.cc
  983. * src/RequestGroup.h
  984. * src/RequestGroupMan.cc
  985. * src/XmlRpcMethodFactory.cc
  986. * src/XmlRpcMethodImpl.cc
  987. * src/XmlRpcMethodImpl.h
  988. * src/prefs.cc
  989. * src/prefs.h
  990. * src/usage_text.h
  991. 2010-04-08 Tatsuhiro Tsujikawa <[email protected]>
  992. Added --save-session=FILE option. This option saves
  993. error/unfinished downloads to FILE on exit. You can pass this
  994. output file to aria2c with -i option on restart. Please note that
  995. downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
  996. method are not saved.
  997. * src/BtPostDownloadHandler.cc
  998. * src/DownloadResult.h
  999. * src/Makefile.am
  1000. * src/MetadataInfo.cc
  1001. * src/MetadataInfo.h
  1002. * src/Metalink2RequestGroup.cc
  1003. * src/MetalinkPostDownloadHandler.cc
  1004. * src/MultiUrlRequestInfo.cc
  1005. * src/OptionHandlerFactory.cc
  1006. * src/RequestGroup.cc
  1007. * src/RequestGroup.h
  1008. * src/SessionSerializer.cc
  1009. * src/SessionSerializer.h
  1010. * src/UTMetadataPostDownloadHandler.cc
  1011. * src/download_helper.cc
  1012. * src/download_helper.h
  1013. * src/prefs.cc
  1014. * src/prefs.h
  1015. * src/usage_text.h
  1016. * test/Makefile.am
  1017. * test/SessionSerializerTest.cc
  1018. * test/XmlRpcMethodTest.cc
  1019. * test/serialize_session.meta4
  1020. 2010-04-07 Tatsuhiro Tsujikawa <[email protected]>
  1021. Fixed the bug that FTP data connection is not established via
  1022. proxy when --ftp-proxy is defined and --ftp-pasv=true and
  1023. --proxy-method=tunnel.
  1024. * src/AbstractCommand.cc
  1025. * src/AbstractCommand.h
  1026. * src/FtpNegotiationCommand.cc
  1027. * src/FtpNegotiationCommand.h
  1028. * src/InitiateConnectionCommand.cc
  1029. 2010-04-04 Tatsuhiro Tsujikawa <[email protected]>
  1030. Updated po templates.
  1031. * po/aria2.pot
  1032. 2010-04-03 Tatsuhiro Tsujikawa <[email protected]>
  1033. Bump up version number to 1.9.1
  1034. * configure.ac
  1035. 2010-04-03 Tatsuhiro Tsujikawa <[email protected]>
  1036. Added shutdown and forceShutdown to aria2rpc
  1037. * doc/xmlrpc/aria2rpc
  1038. 2010-04-03 Tatsuhiro Tsujikawa <[email protected]>
  1039. Changed error message.
  1040. * src/XmlRpcMethod.cc
  1041. 2010-04-03 Tatsuhiro Tsujikawa <[email protected]>
  1042. Added bt-tracker-timeout, bt-tracker-connect-timeout,
  1043. always-resume, max-resume-failure-tries and http-accept-gzip to -i
  1044. list options.
  1045. * doc/aria2c.1.txt
  1046. * doc/xmlrpc/aria2rpc
  1047. * src/download_helper.cc
  1048. 2010-04-03 Tatsuhiro Tsujikawa <[email protected]>
  1049. Fixed the bug that web-seed URI is not percent-encoded.
  1050. * src/a2functional.h
  1051. * src/bittorrent_helper.cc
  1052. * test/BittorrentHelperTest.cc
  1053. * test/url-list-multiFile.torrent
  1054. * test/url-list-singleFileEndsWithSlash.torrent
  1055. 2010-04-02 Tatsuhiro Tsujikawa <[email protected]>
  1056. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  1057. These methods, as their name implies, shutdown aria2. These
  1058. methods are useful for Windows because it lacks signal mechanism.
  1059. * doc/aria2c.1.txt
  1060. * src/TimedHaltCommand.cc
  1061. * src/XmlRpcMethodFactory.cc
  1062. * src/XmlRpcMethodImpl.cc
  1063. * src/XmlRpcMethodImpl.h
  1064. 2010-04-02 Tatsuhiro Tsujikawa <[email protected]>
  1065. Added forceHalt argument to TimedHaltCommand.
  1066. Added requestForceHalt() to DownloadEngine.
  1067. * src/DownloadEngine.cc
  1068. * src/DownloadEngine.h
  1069. * src/TimedHaltCommand.cc
  1070. * src/TimedHaltCommand.h
  1071. 2010-04-02 Tatsuhiro Tsujikawa <[email protected]>
  1072. Possible fix for chunked encoding with Content-Length.
  1073. * src/HttpResponseCommand.cc
  1074. 2010-04-02 Tatsuhiro Tsujikawa <[email protected]>
  1075. Don't send "Accept: default, gzip" by default. This is because
  1076. some server responds with "Content-Encoding: gzip" for files which
  1077. itself is gzipped file and aria2 inflates them. This is a problem
  1078. if user don't want to inflate the file. Apparently this is server
  1079. configuration error, but I cannot do anything about this. So turn
  1080. this off. Added --http-accept-gzip option. If true is given to
  1081. this option, aria2 sends 'Accept: deflate, gzip' request header
  1082. and inflates response if remote server responds with
  1083. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  1084. indicates we removed extension tgz hack in order not to inflate
  1085. files with tgz extensions.
  1086. * doc/aria2c.1.txt
  1087. * src/HttpRequest.cc
  1088. * src/HttpRequest.h
  1089. * src/HttpRequestCommand.cc
  1090. * src/HttpResponseCommand.cc
  1091. * src/OptionHandlerFactory.cc
  1092. * src/prefs.cc
  1093. * src/prefs.h
  1094. * src/usage_text.h
  1095. * test/HttpRequestTest.cc
  1096. 2010-04-02 Tatsuhiro Tsujikawa <[email protected]>
  1097. Made aria2 not send
  1098. "application/metalink4+xml,application/metalink+xml" in Accept
  1099. header for web-seeding URIs and tracker request.
  1100. * src/Metalink2RequestGroup.cc
  1101. * src/TrackerWatcherCommand.cc
  1102. * src/download_helper.cc
  1103. * src/util.cc
  1104. * src/util.h
  1105. 2010-04-01 Tatsuhiro Tsujikawa <[email protected]>
  1106. Added download_helper.{cc,h} to SRCS
  1107. * src/Makefile.am
  1108. * test/Makefile.am
  1109. 2010-03-30 Tatsuhiro Tsujikawa <[email protected]>
  1110. Added --dht-message-timeout option.
  1111. * doc/aria2c.1.txt
  1112. * src/DHTConstants.h
  1113. * src/DHTMessageDispatcherImpl.cc
  1114. * src/DHTMessageDispatcherImpl.h
  1115. * src/DHTMessageTracker.cc
  1116. * src/DHTMessageTracker.h
  1117. * src/DHTReplaceNodeTask.h
  1118. * src/DHTSetup.cc
  1119. * src/DHTTaskFactoryImpl.cc
  1120. * src/DHTTaskFactoryImpl.h
  1121. * src/OptionHandlerFactory.cc
  1122. * src/prefs.cc
  1123. * src/prefs.h
  1124. * src/usage_text.h
  1125. * test/DHTMessageTrackerTest.cc
  1126. 2010-03-30 Tatsuhiro Tsujikawa <[email protected]>
  1127. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  1128. option.
  1129. * doc/aria2c.1.txt
  1130. * src/OptionHandlerFactory.cc
  1131. * src/TrackerWatcherCommand.cc
  1132. * src/prefs.cc
  1133. * src/prefs.h
  1134. * src/usage_text.h
  1135. 2010-03-30 Tatsuhiro Tsujikawa <[email protected]>
  1136. Documented that specifying --seed-time=0 disables seeding after
  1137. download completed.
  1138. * doc/aria2c.1.txt
  1139. 2010-03-30 Tatsuhiro Tsujikawa <[email protected]>
  1140. Code cleanup
  1141. * src/BtSetup.cc
  1142. 2010-03-30 Tatsuhiro Tsujikawa <[email protected]>
  1143. Drop connection if same Peer ID has been already seen.
  1144. * src/DefaultBtInteractive.cc
  1145. 2010-03-29 Tatsuhiro Tsujikawa <[email protected]>
  1146. Fixed the bug that waiting download unintentionally starts when
  1147. URIs are added to it using aria2.changeUri XML-RPC method. This
  1148. also fixes the bug that causes segmentation fault when adding URIs
  1149. to waiting download, which is a regression introduced by the
  1150. previous change made to src/XmlRpcMethodImpl.cc
  1151. * src/XmlRpcMethodImpl.cc
  1152. 2010-03-29 Tatsuhiro Tsujikawa <[email protected]>
  1153. Fixed compile error with g++-4.4 on FreeBSD.
  1154. * src/util.h
  1155. 2010-03-28 Tatsuhiro Tsujikawa <[email protected]>
  1156. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  1157. is not used immediately if there is no URIs remaining before
  1158. calling aria2.changeUri and the number of connection is less than
  1159. the value in -s(or -C for Metalink downloads).
  1160. * src/XmlRpcMethodImpl.cc
  1161. 2010-03-28 Tatsuhiro Tsujikawa <[email protected]>
  1162. Documented --always-resume and --max-resume-failure-tries option
  1163. and exit status 8 in man page. Fixed typo.
  1164. * doc/aria2c.1.txt
  1165. * src/OptionHandlerFactory.cc
  1166. 2010-03-28 Tatsuhiro Tsujikawa <[email protected]>
  1167. Added --always-resume and --max-resume-failure-tries option. If
  1168. --always-resume=false is given, when all given URIs does not
  1169. support resume or aria2 encounters N URIs which does not support
  1170. resume
  1171. (N is the value specified using --max-resume-failure-tries
  1172. option), aria2 download file from scratch. The default behavior
  1173. is --always-resume=true, which means if all URIs do not support
  1174. resume, download fails. I think this is OK because user normally
  1175. don't like to see that partially downloaded file is
  1176. overwritten(this is particularly true if file size is big). This
  1177. option is useful when aria2 is used as download backend and
  1178. graceful falling back to overwritten behavior is preferable.
  1179. Added exit status value 8, which means download failed because
  1180. server did not support resume.
  1181. * src/AbstractCommand.cc
  1182. * src/DefaultPieceStorage.cc
  1183. * src/DownloadCommand.cc
  1184. * src/DownloadResultCode.h
  1185. * src/FileEntry.h
  1186. * src/FtpNegotiationCommand.cc
  1187. * src/HttpResponse.cc
  1188. * src/HttpResponseCommand.cc
  1189. * src/OptionHandlerFactory.cc
  1190. * src/RequestGroup.cc
  1191. * src/RequestGroup.h
  1192. * src/SegmentMan.cc
  1193. * src/SegmentMan.h
  1194. * src/prefs.cc
  1195. * src/prefs.h
  1196. * src/usage_text.h
  1197. * test/DefaultPieceStorageTest.cc
  1198. * test/SegmentManTest.cc
  1199. 2010-03-25 Tatsuhiro Tsujikawa <[email protected]>
  1200. Added --remove-control-file option to -i list options.
  1201. * doc/aria2c.1.txt
  1202. * doc/xmlrpc/aria2rpc
  1203. * src/download_helper.cc
  1204. 2010-03-25 Tatsuhiro Tsujikawa <[email protected]>
  1205. Added --remove-control-file option. This option removes control
  1206. file(*.aria2 file) before download. Using with
  1207. --allow-overwrite=true, download always starts from scratch. This
  1208. will be useful for users behind proxy server which disables
  1209. resume. For such proxy user, -C1 is also recommended for Metalink
  1210. downloads to avoid establishing unnecessary connections.
  1211. * doc/aria2c.1.txt
  1212. * src/OptionHandlerFactory.cc
  1213. * src/RequestGroup.cc
  1214. * src/prefs.cc
  1215. * src/prefs.h
  1216. * src/usage_text.h
  1217. 2010-03-25 Tatsuhiro Tsujikawa <[email protected]>
  1218. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  1219. size of array at compile time.
  1220. * src/array_fun.h
  1221. * test/BitfieldManTest.cc
  1222. * test/BtPortMessageTest.cc
  1223. * test/DHTRoutingTableDeserializerTest.cc
  1224. * test/DHTRoutingTableSerializerTest.cc
  1225. * test/DownloadHelperTest.cc
  1226. * test/LongestSequencePieceSelectorTest.cc
  1227. * test/MultiDiskAdaptorTest.cc
  1228. * test/OptionParserTest.cc
  1229. * test/PriorityPieceSelectorTest.cc
  1230. * test/array_funTest.cc
  1231. 2010-03-25 Tatsuhiro Tsujikawa <[email protected]>
  1232. Added vbegin() and vend() for fixed sized array.
  1233. * src/DownloadHandlerConstants.cc
  1234. * src/FeatureConfig.cc
  1235. * src/OptionHandlerFactory.cc
  1236. * src/ServerStat.cc
  1237. * src/TimeA2.cc
  1238. * src/XmlRpcMethod.cc
  1239. * src/array_fun.h
  1240. * src/download_helper.cc
  1241. * src/messageDigest.cc
  1242. * src/util.cc
  1243. * test/BittorrentHelperTest.cc
  1244. * test/DHTRoutingTableDeserializerTest.cc
  1245. * test/DHTRoutingTableSerializerTest.cc
  1246. * test/DefaultBtAnnounceTest.cc
  1247. * test/DefaultBtProgressInfoFileTest.cc
  1248. * test/DownloadContextTest.cc
  1249. * test/DownloadHelperTest.cc
  1250. * test/FeatureConfigTest.cc
  1251. * test/FeedbackURISelectorTest.cc
  1252. * test/HttpRequestTest.cc
  1253. * test/InOrderURISelectorTest.cc
  1254. * test/MSEHandshakeTest.cc
  1255. * test/MultiDiskAdaptorTest.cc
  1256. * test/MultiFileAllocationIteratorTest.cc
  1257. * test/PriorityPieceSelectorTest.cc
  1258. * test/RequestGroupManTest.cc
  1259. * test/UtilTest.cc
  1260. * test/XmlRpcMethodTest.cc
  1261. * test/a2algoTest.cc
  1262. * test/array_funTest.cc
  1263. 2010-03-24 Tatsuhiro Tsujikawa <[email protected]>
  1264. Simplified code using lastByteMask
  1265. * src/BitfieldMan.cc
  1266. * src/PieceStatMan.cc
  1267. 2010-03-24 Tatsuhiro Tsujikawa <[email protected]>
  1268. Rewritten lastByteMask
  1269. * src/bitfield.h
  1270. 2010-03-23 Tatsuhiro Tsujikawa <[email protected]>
  1271. Redefined the maximum length of buffer used for HTTP header.
  1272. * src/HttpHeaderProcessor.cc
  1273. 2010-03-22 Tatsuhiro Tsujikawa <[email protected]>
  1274. Code cleanup
  1275. * src/SleepCommand.cc
  1276. 2010-03-22 Tatsuhiro Tsujikawa <[email protected]>
  1277. Do exact match if IP address is specified in --no-proxy.
  1278. * src/AbstractCommand.cc
  1279. 2010-03-22 Tatsuhiro Tsujikawa <[email protected]>
  1280. Fixed the bug that socket is added to EventPoll object twice. This
  1281. is because derived class FtpFinishDownloadCommand adds socket to
  1282. EventPoll object while base class AbstractCommand does that
  1283. already.
  1284. * src/FtpFinishDownloadCommand.cc
  1285. * src/FtpFinishDownloadCommand.h
  1286. 2010-03-21 Tatsuhiro Tsujikawa <[email protected]>
  1287. Defined gid_t as int64_t.
  1288. * src/BtDependency.cc
  1289. * src/BtStopDownloadCommand.cc
  1290. * src/FtpNegotiationCommand.cc
  1291. * src/HttpResponseCommand.cc
  1292. * src/RequestGroup.cc
  1293. * src/RequestGroup.h
  1294. * src/RequestGroupMan.cc
  1295. * src/TrackerWatcherCommand.cc
  1296. * src/XmlRpcMethodImpl.cc
  1297. * src/message.h
  1298. * test/XmlRpcMethodTest.cc
  1299. 2010-03-21 Tatsuhiro Tsujikawa <[email protected]>
  1300. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  1301. translatable texts because it is used in log and debugging
  1302. purpose.
  1303. * src/AbstractCommand.cc
  1304. * src/ActivePeerConnectionCommand.cc
  1305. * src/BtPieceMessage.cc
  1306. * src/CUIDCounter.h
  1307. * src/CheckIntegrityCommand.cc
  1308. * src/CheckIntegrityDispatcherCommand.cc
  1309. * src/Command.h
  1310. * src/CreateRequestCommand.cc
  1311. * src/DHTEntryPointNameResolveCommand.cc
  1312. * src/DefaultBtInteractive.cc
  1313. * src/DefaultBtMessageDispatcher.cc
  1314. * src/DownloadCommand.cc
  1315. * src/FileAllocationCommand.cc
  1316. * src/FileAllocationDispatcherCommand.cc
  1317. * src/FtpConnection.cc
  1318. * src/FtpInitiateConnectionCommand.cc
  1319. * src/FtpNegotiationCommand.cc
  1320. * src/HttpConnection.cc
  1321. * src/HttpInitiateConnectionCommand.cc
  1322. * src/HttpListenCommand.cc
  1323. * src/HttpResponse.cc
  1324. * src/HttpServerBodyCommand.cc
  1325. * src/HttpServerCommand.cc
  1326. * src/HttpServerResponseCommand.cc
  1327. * src/InitiateConnectionCommand.cc
  1328. * src/InitiatorMSEHandshakeCommand.cc
  1329. * src/MSEHandshake.cc
  1330. * src/PeerAbstractCommand.cc
  1331. * src/PeerConnection.cc
  1332. * src/PeerInitiateConnectionCommand.cc
  1333. * src/PeerInteractionCommand.cc
  1334. * src/PeerListenCommand.cc
  1335. * src/PeerReceiveHandshakeCommand.cc
  1336. * src/SegmentMan.cc
  1337. * src/SimpleBtMessage.cc
  1338. * src/TrackerWatcherCommand.cc
  1339. * src/message.h
  1340. 2010-03-20 Tatsuhiro Tsujikawa <[email protected]>
  1341. Use gid_t type for gid.
  1342. * src/BtRegistry.cc
  1343. * src/BtRegistry.h
  1344. * src/DownloadResult.h
  1345. * src/RequestGroup.cc
  1346. * src/RequestGroup.h
  1347. * src/RequestGroupMan.cc
  1348. * src/RequestGroupMan.h
  1349. * src/XmlRpcMethodImpl.cc
  1350. 2010-03-20 Tatsuhiro Tsujikawa <[email protected]>
  1351. Use cuid_t type for cuid.
  1352. 2010-03-20 Tatsuhiro Tsujikawa <[email protected]>
  1353. Added v key in DHT message. aria2's DHT version is independent of
  1354. the package version and we defined it as 1 at the moment. It is
  1355. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  1356. scheme is "A2"+2bytes DHT version number in network byte order.
  1357. * src/DHTAbstractMessage.cc
  1358. * src/DHTConstants.h
  1359. * src/DHTMessage.cc
  1360. * src/DHTMessage.h
  1361. * src/DHTMessageFactoryImpl.cc
  1362. * src/DHTQueryMessage.cc
  1363. * src/DHTResponseMessage.cc
  1364. * src/util.h
  1365. * test/DHTAnnouncePeerMessageTest.cc
  1366. * test/DHTAnnouncePeerReplyMessageTest.cc
  1367. * test/DHTFindNodeMessageTest.cc
  1368. * test/DHTFindNodeReplyMessageTest.cc
  1369. * test/DHTGetPeersMessageTest.cc
  1370. * test/DHTGetPeersReplyMessageTest.cc
  1371. * test/DHTPingMessageTest.cc
  1372. * test/DHTPingReplyMessageTest.cc
  1373. 2010-03-19 Tatsuhiro Tsujikawa <[email protected]>
  1374. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  1375. method response is integer, while manual says it is string. When
  1376. peer's port is not listening port, set '0' to port in
  1377. aria2.getPeers response.
  1378. * src/XmlRpcMethodImpl.cc
  1379. 2010-03-19 Tatsuhiro Tsujikawa <[email protected]>
  1380. Lines starting "#" in -i list are treated as comments.
  1381. Example:
  1382. # this is comment
  1383. http://example.org/file
  1384. http://example.org/file2
  1385. dir=/tmp
  1386. # another comment
  1387. out=myfile
  1388. * doc/aria2c.1.txt
  1389. * src/UriListParser.cc
  1390. * test/filelist1.txt
  1391. 2010-03-19 Tatsuhiro Tsujikawa <[email protected]>
  1392. Accept IPv4 network address with CIDR block in --no-proxy option
  1393. and no_proxy environment variable. Current implementation does
  1394. not resolve hostname in URI to compare network address. So it is
  1395. only effecive if URI has numeric IP addresses.
  1396. * doc/aria2c.1.txt
  1397. * src/AbstractCommand.cc
  1398. * src/OptionHandlerFactory.cc
  1399. * src/bitfield.h
  1400. * src/usage_text.h
  1401. * src/util.cc
  1402. * src/util.h
  1403. * test/UtilTest.cc
  1404. * test/bitfieldTest.cc
  1405. 2010-03-19 Tatsuhiro Tsujikawa <[email protected]>
  1406. Reduced interval for metadatagetmode to quickly gather metadata.
  1407. * src/BtSetup.cc
  1408. 2010-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1409. Release 1.9.0
  1410. 2010-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1411. Updated po templates.
  1412. * po/aria2.pot
  1413. 2010-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1414. Updated doc.
  1415. * doc/aria2c.1.txt
  1416. 2010-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1417. Documented about Metalink4 and LPD in README
  1418. * RADME
  1419. 2010-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1420. Few adjustment for timeouts in DHT. DHT message timeout is changed
  1421. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  1422. it adds another 5 seconds in each retry.
  1423. * src/DHTConstants.h
  1424. * src/DHTGetPeersCommand.cc
  1425. * src/DHTGetPeersCommand.h
  1426. 2010-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1427. Changed log level from error to info for DHT message send error.
  1428. * src/DHTMessageDispatcherImpl.cc
  1429. 2010-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1430. Inspect all xt in magnet to find urn:btih.
  1431. * src/bittorrent_helper.cc
  1432. * test/BittorrentHelperTest.cc
  1433. 2010-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1434. Use global option for DHTSetup.
  1435. * src/DHTSetup.cc
  1436. * src/DHTSetup.h
  1437. * src/RequestGroup.cc
  1438. 2010-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1439. Added bt-enable-lpt, reuse-uri
  1440. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  1441. options.
  1442. * doc/aria2c.1.txt
  1443. * doc/xmlrpc/aria2rpc
  1444. * src/download_helper.cc
  1445. 2010-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1446. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  1447. * src/BtSetup.cc
  1448. 2010-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1449. Resurrected --http-proxy-user and --http-proxy-passwd option.
  1450. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  1451. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  1452. * doc/aria2c.1.txt
  1453. * src/OptionHandlerFactory.cc
  1454. * src/OptionHandlerImpl.h
  1455. * src/prefs.cc
  1456. * src/prefs.h
  1457. * src/usage_text.h
  1458. * test/OptionHandlerTest.cc
  1459. 2010-03-10 Tatsuhiro Tsujikawa <[email protected]>
  1460. Updated Russian and Simplified Chinese translation. Thanks to all
  1461. translators.
  1462. * po/ru.po
  1463. * po/zh_CN.po
  1464. 2010-03-10 Tatsuhiro Tsujikawa <[email protected]>
  1465. Updated po templates.
  1466. * po/aria2.pot
  1467. 2010-03-09 Tatsuhiro Tsujikawa <[email protected]>
  1468. For LPD sockets, bind IN_ADDRANY because binding multicast address
  1469. fails under Windows.
  1470. * src/LpdMessageReceiver.cc
  1471. * test/LpdMessageDispatcherTest.cc
  1472. 2010-03-09 Tatsuhiro Tsujikawa <[email protected]>
  1473. Fixed the bug that error message is not propagated to Exception.
  1474. * src/SocketCore.cc
  1475. 2010-03-09 Tatsuhiro Tsujikawa <[email protected]>
  1476. Documented --bt-lpd-interface option in man page.
  1477. * doc/aria2c.1.txt
  1478. 2010-03-09 Tatsuhiro Tsujikawa <[email protected]>
  1479. Bump up version number to 1.9.0
  1480. * configure.ac
  1481. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1482. Fixed the bug that FillRequestGroupCommand is not invoked when
  1483. RequestGroupMan::createInitialCommand() creates no Command object.
  1484. * src/FillRequestGroupCommand.cc
  1485. * src/RequestGroupMan.cc
  1486. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1487. Added debug logs.
  1488. * src/FileEntry.cc
  1489. * src/SegmentMan.cc
  1490. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1491. Fixed unit test error with mingw32 build.
  1492. * test/LpdMessageReceiverTest.cc
  1493. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1494. Updated automake-1.11.1
  1495. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1496. Fixed compile error and unit test error without openssl and
  1497. gnutls.
  1498. * src/MetalinkParserController.cc
  1499. * test/MetalinkProcessorTest.cc
  1500. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1501. Fixed unitest fails if openssl doesn't support sha-256.
  1502. * src/MetalinkParserStateV4Impl.cc
  1503. * test/MetalinkProcessorTest.cc
  1504. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1505. Wait until message arrives(again)
  1506. * test/LpdMessageReceiverTest.cc
  1507. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1508. Added missing wallclock.h to SRCS.
  1509. * src/Makefile.am
  1510. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1511. Fixed compile error with --disable-bittorrent
  1512. * test/Metalink2RequestGroupTest.cc
  1513. * test/MetalinkParserControllerTest.cc
  1514. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1515. Added --reuse-uri option. This option has existed quite long, but
  1516. been hidden.
  1517. * doc/aria2c.1.txt
  1518. * src/OptionHandlerFactory.cc
  1519. * src/usage_text.h
  1520. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1521. Ignore filename parameter if it contains directory traversal
  1522. directives.
  1523. * src/util.cc
  1524. * test/UtilTest.cc
  1525. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1526. urldecode -> percentDecode
  1527. * src/FtpConnection.cc
  1528. * src/FtpNegotiationCommand.cc
  1529. * src/HttpResponse.cc
  1530. * src/Request.cc
  1531. * src/magnet.cc
  1532. * src/util.cc
  1533. * src/util.h
  1534. * test/UtilTest.cc
  1535. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1536. urlencode -> percentEncode,
  1537. torrentUrlencode -> torrentPercentEncode
  1538. * src/BtHandshakeMessage.cc
  1539. * src/BtHandshakeMessageValidator.h
  1540. * src/DHTMessageFactoryImpl.cc
  1541. * src/DefaultBtAnnounce.cc
  1542. * src/HandshakeExtensionMessage.cc
  1543. * src/HttpRequest.cc
  1544. * src/XmlRpcMethodImpl.cc
  1545. * src/bittorrent_helper.cc
  1546. * src/util.cc
  1547. * src/util.h
  1548. * test/DHTAnnouncePeerMessageTest.cc
  1549. * test/DHTGetPeersMessageTest.cc
  1550. * test/DHTGetPeersReplyMessageTest.cc
  1551. * test/UTPexExtensionMessageTest.cc
  1552. * test/UtilTest.cc
  1553. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1554. Fixed the bug that filename is percent encoded where it must be
  1555. percent decoded in sendMdtm().
  1556. * src/FtpConnection.cc
  1557. * test/FtpConnectionTest.cc
  1558. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1559. url -> uri in Request class.
  1560. * src/AbstractCommand.cc
  1561. * src/AdaptiveURISelector.cc
  1562. * src/DefaultBtAnnounce.cc
  1563. * src/FeedbackURISelector.cc
  1564. * src/FileEntry.cc
  1565. * src/FileEntry.h
  1566. * src/HttpRequest.h
  1567. * src/HttpResponse.cc
  1568. * src/InitiateConnectionCommandFactory.cc
  1569. * src/Metalink2RequestGroup.cc
  1570. * src/OptionHandlerImpl.h
  1571. * src/ProtocolDetector.cc
  1572. * src/Request.cc
  1573. * src/Request.h
  1574. * src/XmlRpcMethodImpl.cc
  1575. * test/AuthConfigFactoryTest.cc
  1576. * test/FtpConnectionTest.cc
  1577. * test/HttpRequestTest.cc
  1578. * test/HttpResponseTest.cc
  1579. * test/RequestTest.cc
  1580. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1581. Added getServers XML-RPC method.
  1582. * doc/aria2c.1.txt
  1583. * src/FileEntry.h
  1584. * src/XmlRpcMethodFactory.cc
  1585. * src/XmlRpcMethodImpl.cc
  1586. * src/XmlRpcMethodImpl.h
  1587. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1588. Pool request when download finished.
  1589. * src/DownloadCommand.cc
  1590. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1591. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  1592. 1-based.
  1593. * doc/aria2c.1.txt
  1594. * src/XmlRpcMethodImpl.cc
  1595. * test/XmlRpcMethodTest.cc
  1596. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1597. Call RequestGroupMan::requestQueueCheck() when
  1598. max-concurrent-downloads option is changed or new downloads are
  1599. added/inserted into reserved list.
  1600. * src/RequestGroupMan.cc
  1601. * src/XmlRpcMethodImpl.cc
  1602. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1603. Added aria2.forceRemove XML-RPC method.
  1604. * doc/aria2c.1.txt
  1605. * src/XmlRpcMethodFactory.cc
  1606. * src/XmlRpcMethodImpl.cc
  1607. * src/XmlRpcMethodImpl.h
  1608. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1609. Added debug log.
  1610. * src/AbstractCommand.cc
  1611. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1612. Create CreateRequestCommand to the number of -s/-C when URIs are
  1613. added by XML-RPC.
  1614. * src/RequestGroup.cc
  1615. * src/RequestGroup.h
  1616. * src/XmlRpcMethodImpl.cc
  1617. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1618. Added 'status' key to the response of getUri XML-RPC method.
  1619. * doc/aria2c.1.txt
  1620. * src/XmlRpcMethodImpl.cc
  1621. 2010-03-06 Tatsuhiro Tsujikawa <[email protected]>
  1622. Replaced Time::reset() call with assigning of global::wallclock.
  1623. * src/BtLeecherStateChoke.cc
  1624. * src/BtSeederStateChoke.cc
  1625. * src/PeerSessionResource.cc
  1626. * src/RequestSlot.cc
  1627. * src/ServerStat.cc
  1628. * src/SpeedCalc.cc
  1629. 2010-03-06 Tatsuhiro Tsujikawa <[email protected]>
  1630. Added changeUri XML-RPC method. This method removes/adds URIs
  1631. dynamically.
  1632. * doc/aria2c.1.txt
  1633. * src/AbstractCommand.cc
  1634. * src/DownloadContext.cc
  1635. * src/DownloadContext.h
  1636. * src/FileEntry.cc
  1637. * src/FileEntry.h
  1638. * src/Request.cc
  1639. * src/Request.h
  1640. * src/RequestGroup.cc
  1641. * src/RequestGroupMan.cc
  1642. * src/XmlRpcMethodFactory.cc
  1643. * src/XmlRpcMethodImpl.cc
  1644. * src/XmlRpcMethodImpl.h
  1645. * test/FileEntryTest.cc
  1646. * test/XmlRpcMethodTest.cc
  1647. 2010-03-06 Tatsuhiro Tsujikawa <[email protected]>
  1648. Rewritten copy ctor of RequestSlot to use initialization list.
  1649. * src/RequestSlot.h
  1650. 2010-03-06 Tatsuhiro Tsujikawa <[email protected]>
  1651. Added Time global::wallclock to cache "current time" to reduce the
  1652. call gettimeofday(). Global variables are now in namespace global.
  1653. * src/AbstractCommand.cc
  1654. * src/ActivePeerConnectionCommand.cc
  1655. * src/AdaptiveURISelector.cc
  1656. * src/BtLeecherStateChoke.cc
  1657. * src/BtLeecherStateChoke.h
  1658. * src/BtSeederStateChoke.cc
  1659. * src/BtSeederStateChoke.h
  1660. * src/BtStopDownloadCommand.cc
  1661. * src/ConsoleStatCalc.cc
  1662. * src/DHTBucket.cc
  1663. * src/DHTGetPeersCommand.cc
  1664. * src/DHTMessageTrackerEntry.cc
  1665. * src/DHTNode.cc
  1666. * src/DHTPeerAnnounceEntry.cc
  1667. * src/DHTPeerAnnounceStorage.cc
  1668. * src/DHTSetup.cc
  1669. * src/DefaultBtAnnounce.cc
  1670. * src/DefaultBtInteractive.cc
  1671. * src/DefaultBtMessageDispatcher.cc
  1672. * src/DefaultPeerStorage.cc
  1673. * src/DefaultPieceStorage.cc
  1674. * src/DownloadCommand.cc
  1675. * src/DownloadEngine.cc
  1676. * src/FileEntry.cc
  1677. * src/HttpServerBodyCommand.cc
  1678. * src/HttpServerCommand.cc
  1679. * src/HttpServerResponseCommand.cc
  1680. * src/LpdMessageDispatcher.cc
  1681. * src/MultiUrlRequestInfo.cc
  1682. * src/Peer.cc
  1683. * src/Peer.h
  1684. * src/PeerAbstractCommand.cc
  1685. * src/PeerStat.h
  1686. * src/RequestSlot.cc
  1687. * src/RequestSlot.h
  1688. * src/SegmentMan.cc
  1689. * src/ServerStatMan.cc
  1690. * src/SleepCommand.cc
  1691. * src/SpeedCalc.cc
  1692. * src/SpeedCalc.h
  1693. * src/TimeA2.cc
  1694. * src/TimeA2.h
  1695. * src/TimeBasedCommand.cc
  1696. * src/TimeSeedCriteria.h
  1697. * src/UTMetadataRequestTracker.h
  1698. * src/UTPexExtensionMessage.cc
  1699. * src/wallclock.h
  1700. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1701. Fixed the bug that util::itos(INT64_MIN) fails.
  1702. * src/util.cc
  1703. * src/util.h
  1704. * test/UtilTest.cc
  1705. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1706. Fixed memory leak in SocketBuffer when _bufq is not empty when
  1707. SocketBuffer is deleted. Added BufEntry constructor and deleted
  1708. static factory functions.
  1709. * src/SocketBuffer.cc
  1710. * src/SocketBuffer.h
  1711. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1712. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  1713. queue maintenance is requested by RequestGroup to avoid to call
  1714. the function unnecessarily.
  1715. * src/FillRequestGroupCommand.cc
  1716. * src/RequestGroup.cc
  1717. * src/RequestGroup.h
  1718. * src/RequestGroupMan.cc
  1719. * src/RequestGroupMan.h
  1720. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1721. Don't use hash for Peer::id. Simple concatenation of ip address
  1722. and port is enough.
  1723. * src/Peer.cc
  1724. * test/PeerTest.cc
  1725. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1726. Enclosed log of DHTMessage::toString() with Logger::info().
  1727. * src/DHTMessageDispatcherImpl.cc
  1728. * src/DHTMessageReceiver.cc
  1729. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1730. Rewritten util::toHex().
  1731. * src/util.cc
  1732. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1733. Removed SocketBuffer::feedAndSend(). Renamed
  1734. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  1735. * src/FtpConnection.cc
  1736. * src/HttpConnection.cc
  1737. * src/HttpServer.cc
  1738. * src/MSEHandshake.cc
  1739. * src/PeerConnection.cc
  1740. * src/SocketBuffer.cc
  1741. * src/SocketBuffer.h
  1742. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1743. Removed unused PeerConnection::sendMessage(). Updated doc.
  1744. * src/PeerConnection.cc
  1745. * src/PeerConnection.h
  1746. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1747. Reduced copying/std::string instantiation in sending/receiving
  1748. BitTorrent messages.
  1749. * src/BtBitfieldMessage.cc
  1750. * src/BtBitfieldMessage.h
  1751. * src/BtExtendedMessage.cc
  1752. * src/BtExtendedMessage.h
  1753. * src/BtHandshakeMessage.cc
  1754. * src/BtHandshakeMessage.h
  1755. * src/BtKeepAliveMessage.cc
  1756. * src/BtKeepAliveMessage.h
  1757. * src/BtPieceMessage.cc
  1758. * src/BtPieceMessage.h
  1759. * src/BtPortMessage.cc
  1760. * src/BtPortMessage.h
  1761. * src/BtUnchokeMessage.h
  1762. * src/DefaultBtMessageReceiver.cc
  1763. * src/IndexBtMessage.cc
  1764. * src/IndexBtMessage.h
  1765. * src/PeerConnection.cc
  1766. * src/PeerConnection.h
  1767. * src/RangeBtMessage.cc
  1768. * src/RangeBtMessage.h
  1769. * src/SimpleBtMessage.cc
  1770. * src/SimpleBtMessage.h
  1771. * src/SocketBuffer.cc
  1772. * src/SocketBuffer.h
  1773. * src/ZeroBtMessage.cc
  1774. * src/ZeroBtMessage.h
  1775. * test/BtAllowedFastMessageTest.cc
  1776. * test/BtBitfieldMessageTest.cc
  1777. * test/BtCancelMessageTest.cc
  1778. * test/BtChokeMessageTest.cc
  1779. * test/BtExtendedMessageTest.cc
  1780. * test/BtHandshakeMessageTest.cc
  1781. * test/BtHaveAllMessageTest.cc
  1782. * test/BtHaveMessageTest.cc
  1783. * test/BtHaveNoneMessageTest.cc
  1784. * test/BtInterestedMessageTest.cc
  1785. * test/BtKeepAliveMessageTest.cc
  1786. * test/BtNotInterestedMessageTest.cc
  1787. * test/BtPieceMessageTest.cc
  1788. * test/BtPortMessageTest.cc
  1789. * test/BtRejectMessageTest.cc
  1790. * test/BtRequestMessageTest.cc
  1791. * test/BtSuggestPieceMessageTest.cc
  1792. * test/BtUnchokeMessageTest.cc
  1793. 2010-03-03 Tatsuhiro Tsujikawa <[email protected]>
  1794. Rewritten SocketBuffer. Old implementation uses single std::string
  1795. to store data and erase sent data, which is costly. New
  1796. implementation uses deque to hold each data to avoid to mutate
  1797. string.
  1798. * src/SocketBuffer.cc
  1799. * src/SocketBuffer.h
  1800. 2010-03-03 Tatsuhiro Tsujikawa <[email protected]>
  1801. Removed unused FileEntry::extracted
  1802. * src/FileEntry.cc
  1803. * src/FileEntry.h
  1804. 2010-03-03 Tatsuhiro Tsujikawa <[email protected]>
  1805. Wait until data arrives.
  1806. * test/LpdMessageReceiverTest.cc
  1807. 2010-03-03 Tatsuhiro Tsujikawa <[email protected]>
  1808. In Metalink4, if size element contains invalid size, discard whole
  1809. document. Added strict hash value check for metalink3/4.
  1810. * src/MetalinkParserController.cc
  1811. * src/MetalinkParserStateMachine.cc
  1812. * src/MetalinkParserStateMachine.h
  1813. * src/MetalinkParserStateV3Impl.cc
  1814. * src/MetalinkParserStateV4Impl.cc
  1815. * src/util.cc
  1816. * src/util.h
  1817. * test/MetalinkParserControllerTest.cc
  1818. * test/MetalinkProcessorTest.cc
  1819. * test/metalink4.xml
  1820. 2010-03-02 Tatsuhiro Tsujikawa <[email protected]>
  1821. Added strict attribute validation for metalink4. When
  1822. specification violation is found, discard the whole document.
  1823. * src/ExpatMetalinkProcessor.cc
  1824. * src/MetalinkParserStateMachine.cc
  1825. * src/MetalinkParserStateMachine.h
  1826. * src/MetalinkParserStateV4Impl.cc
  1827. * src/XML2SAXMetalinkProcessor.cc
  1828. * test/Makefile.am
  1829. * test/MetalinkProcessorTest.cc
  1830. * test/metalink4-attrs.xml: Removed
  1831. * test/metalink4-dirtraversal.xml: Removed
  1832. 2010-03-02 Tatsuhiro Tsujikawa <[email protected]>
  1833. Added test for Metaurl transaction.
  1834. * src/MetalinkParserController.cc
  1835. * test/MetalinkParserControllerTest.cc
  1836. 2010-03-02 Tatsuhiro Tsujikawa <[email protected]>
  1837. Avoid costly BtMessage::toString() if info level log is not
  1838. required.
  1839. * src/DefaultBtInteractive.cc
  1840. * src/Logger.h
  1841. * src/SimpleBtMessage.cc
  1842. 2010-03-02 Tatsuhiro Tsujikawa <[email protected]>
  1843. Reserved vector elements based on profiler results.
  1844. * src/DefaultBtInteractive.cc
  1845. * src/DefaultBtProgressInfoFile.cc
  1846. 2010-03-01 Tatsuhiro Tsujikawa <[email protected]>
  1847. Avoid to calculate end() iterator in each loop. std::deque is
  1848. particularly slow. Make sure that recalculate end iterator if
  1849. element is erased during loop.
  1850. 2010-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1851. Use vector instead of deque for containers which is used for
  1852. mostly read-only purpose.
  1853. 2010-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1854. Fixed typo
  1855. * test/Makefile.am
  1856. 2010-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1857. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  1858. * test/Makefile.am
  1859. 2010-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1860. Small optimization: In updateTransferStatFor(), don't search peer
  1861. ID twice.
  1862. * src/DefaultPeerStorage.cc
  1863. 2010-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1864. Use vector instead of deque for MetalinkEntry and MetalinkResource
  1865. objects.
  1866. * src/Metalink2RequestGroup.cc
  1867. * src/Metalink2RequestGroup.h
  1868. * src/MetalinkEntry.cc
  1869. * src/MetalinkEntry.h
  1870. * src/MetalinkHelper.cc
  1871. * src/MetalinkHelper.h
  1872. * src/Metalinker.cc
  1873. * src/Metalinker.h
  1874. * src/main.cc
  1875. * test/MetalinkEntryTest.cc
  1876. * test/MetalinkHelperTest.cc
  1877. * test/MetalinkProcessorTest.cc
  1878. * test/MetalinkerTest.cc
  1879. 2010-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1880. Fixed the bug that grouped FileEntry objects are not used but
  1881. instead all FileEntry objects are used for each metaurl group.
  1882. * src/Metalink2RequestGroup.cc
  1883. * test/Metalink2RequestGroupTest.cc
  1884. * test/metalink4-groupbymetaurl.xml
  1885. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1886. Use vector instead of deque for ChunkChecksum.
  1887. * src/ChunkChecksum.h
  1888. * src/MetalinkParserController.cc
  1889. * src/MetalinkParserController.h
  1890. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1891. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  1892. algorithm in Metalink properly
  1893. * src/MetalinkParserController.cc
  1894. * src/MetalinkParserController.h
  1895. * src/messageDigest.cc
  1896. * src/messageDigest.h
  1897. * test/MetalinkProcessorTest.cc
  1898. * test/metalink4.xml
  1899. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1900. Replaced null or control characters in file path with '_'. For
  1901. MinGW32 build, additional characters which is not allowed in
  1902. Windows kernel are also replaced. util::detectDirTraversal() now
  1903. returns true if given string contains null or control characters.
  1904. * src/DownloadContext.cc
  1905. * src/DownloadContext.h
  1906. * src/Metalink2RequestGroup.cc
  1907. * src/MetalinkParserController.cc
  1908. * src/bittorrent_helper.cc
  1909. * src/util.cc
  1910. * src/util.h
  1911. * test/UtilTest.cc
  1912. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1913. Discard metalink:file if its name attribute is empty string.
  1914. Removed FileEntry instantiation in
  1915. MetalinkParserController::setFileLengthOfEntry()
  1916. * src/MetalinkParserController.cc
  1917. * src/MetalinkParserStateV3Impl.cc
  1918. * src/MetalinkParserStateV4Impl.cc
  1919. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1920. Discard torrent file if path data in it contains directory
  1921. traversal directives. Discard metalink:file element in Metalink3
  1922. format if its name attribute contains directory traversal
  1923. directives. Ignore name attribute of metalink:signature element
  1924. in Metalink3 format if it contains directory traversal directives.
  1925. * src/MetalinkParserStateV3Impl.cc
  1926. * src/bittorrent_helper.cc
  1927. * src/message.h
  1928. * test/BittorrentHelperTest.cc
  1929. * test/Makefile.am
  1930. * test/MetalinkProcessorTest.cc
  1931. * test/metalink3-dirtraversal.xml
  1932. * test/test.xml
  1933. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1934. Removed useless comment
  1935. * src/MetalinkParserStateV4Impl.cc
  1936. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1937. Supported name attribute of metalink::metaurl element and
  1938. multi-file torrent with Metalink4. Files with same metaurl are
  1939. grouped and downloaded in one RequestGroup.
  1940. * src/BtDependency.cc
  1941. * src/FileEntry.h
  1942. * src/Metalink2RequestGroup.cc
  1943. * src/Metalink2RequestGroup.h
  1944. * src/MetalinkEntry.cc
  1945. * src/MetalinkEntry.h
  1946. * src/MetalinkHelper.cc
  1947. * src/MetalinkHelper.h
  1948. * src/MetalinkMetaurl.cc
  1949. * src/MetalinkMetaurl.h
  1950. * src/MetalinkParserController.cc
  1951. * src/RequestGroup.cc
  1952. * src/RequestGroup.h
  1953. * src/bittorrent_helper.cc
  1954. * test/BittorrentHelperTest.cc
  1955. * test/BtDependencyTest.cc
  1956. * test/MetalinkHelperTest.cc
  1957. 2010-02-26 Tatsuhiro Tsujikawa <[email protected]>
  1958. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  1959. * src/MetalinkMetaurl.h
  1960. * src/MetalinkParserController.cc
  1961. * src/MetalinkParserController.h
  1962. * src/MetalinkParserStateMachine.cc
  1963. * src/MetalinkParserStateMachine.h
  1964. * src/MetalinkParserStateV4Impl.cc
  1965. * test/MetalinkProcessorTest.cc
  1966. * test/metalink4-dirtraversal.xml
  1967. 2010-02-26 Tatsuhiro Tsujikawa <[email protected]>
  1968. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  1969. element.
  1970. * src/Makefile.am
  1971. * src/Metalink2RequestGroup.cc
  1972. * src/MetalinkEntry.cc
  1973. * src/MetalinkEntry.h
  1974. * src/MetalinkMetaurl.cc
  1975. * src/MetalinkMetaurl.h
  1976. * src/MetalinkParserController.cc
  1977. * src/MetalinkParserController.h
  1978. * src/MetalinkParserStateMachine.cc
  1979. * src/MetalinkParserStateMachine.h
  1980. * src/MetalinkParserStateV4Impl.cc
  1981. * src/MetalinkParserStateV4Impl.h
  1982. * test/MetalinkProcessorTest.cc
  1983. 2010-02-25 Tatsuhiro Tsujikawa <[email protected]>
  1984. Added Metalink4 support. Currently, name attribute of
  1985. metalink::metaurl is ignored and multi-file torrent cannot be used
  1986. with Metalink4.
  1987. * doc/aria2c.1.txt
  1988. * src/DownloadHandlerConstants.cc
  1989. * src/ExpatMetalinkProcessor.cc
  1990. * src/Makefile.am
  1991. * src/Metalink2RequestGroup.cc
  1992. * src/MetalinkEntry.cc
  1993. * src/MetalinkEntry.h
  1994. * src/MetalinkParserController.cc
  1995. * src/MetalinkParserController.h
  1996. * src/MetalinkParserState.h
  1997. * src/MetalinkParserStateImpl.cc
  1998. * src/MetalinkParserStateImpl.h
  1999. * src/MetalinkParserStateMachine.cc
  2000. * src/MetalinkParserStateMachine.h
  2001. * src/MetalinkParserStateV3Impl.cc
  2002. * src/MetalinkParserStateV3Impl.h
  2003. * src/MetalinkParserStateV4Impl.cc
  2004. * src/MetalinkParserStateV4Impl.h
  2005. * src/MetalinkResource.cc
  2006. * src/MetalinkResource.h
  2007. * src/Metalinker.cc
  2008. * src/RequestGroup.cc
  2009. * src/RequestGroup.h
  2010. * src/XML2SAXMetalinkProcessor.cc
  2011. * src/messageDigest.cc
  2012. * src/util.cc
  2013. * src/util.h
  2014. * test/Makefile.am
  2015. * test/MetalinkEntryTest.cc
  2016. * test/MetalinkParserControllerTest.cc
  2017. * test/MetalinkProcessorTest.cc
  2018. * test/MetalinkerTest.cc
  2019. * test/UtilTest.cc
  2020. * test/metalink4-attrs.xml
  2021. * test/metalink4-dirtraversal.xml
  2022. * test/metalink4.xml
  2023. 2010-02-23 Tatsuhiro Tsujikawa <[email protected]>
  2024. Added aiFlags argument to getInterfaceAddress(). Use
  2025. AI_NUMERICHOST to find interface specified using
  2026. --bt-lpd-interface option to avoid time-consuming address lookup.
  2027. * src/BtSetup.cc
  2028. * src/SocketCore.cc
  2029. * src/SocketCore.h
  2030. 2010-02-23 Tatsuhiro Tsujikawa <[email protected]>
  2031. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  2032. is bad in LpdMessageReceiver.
  2033. * src/LpdMessage.h
  2034. * src/LpdMessageReceiver.cc
  2035. * src/LpdMessageReceiver.h
  2036. * src/LpdReceiveMessageCommand.cc
  2037. * test/LpdMessageReceiverTest.cc
  2038. 2010-02-23 Tatsuhiro Tsujikawa <[email protected]>
  2039. Added --bt-lpd-interface option to specify the interface to use
  2040. for Local Peer Discovery. LpdMessageDispatcher object now has its
  2041. own socket. LpdMessageReceiver's socket is binded to multicast
  2042. address to only receive multicast packets.
  2043. * src/BtSetup.cc
  2044. * src/LpdMessageDispatcher.cc
  2045. * src/LpdMessageDispatcher.h
  2046. * src/LpdMessageReceiver.cc
  2047. * src/LpdMessageReceiver.h
  2048. * src/LpdReceiveMessageCommand.cc
  2049. * src/LpdReceiveMessageCommand.h
  2050. * src/OptionHandlerFactory.cc
  2051. * src/SocketCore.cc
  2052. * src/SocketCore.h
  2053. * src/prefs.cc
  2054. * src/prefs.h
  2055. * src/usage_text.h
  2056. * test/LpdMessageDispatcherTest.cc
  2057. * test/LpdMessageReceiverTest.cc
  2058. 2010-02-22 Tatsuhiro Tsujikawa <[email protected]>
  2059. Put the portion of code to get interface addresses in
  2060. SocketCore::bindAddress() into newly added getInterfaceAddress().
  2061. * src/SocketCore.cc
  2062. * src/SocketCore.h
  2063. 2010-02-22 Tatsuhiro Tsujikawa <[email protected]>
  2064. Rewritten util::parseInt() and parseUInt()
  2065. * src/util.cc
  2066. 2010-02-21 Tatsuhiro Tsujikawa <[email protected]>
  2067. Fixed compile error with mingw32 cross compiler. Defined
  2068. a2_sockopt_t as void* for the target systems other than mingw32.
  2069. * src/SocketCore.cc
  2070. * src/a2netcompat.h
  2071. 2010-02-20 Tatsuhiro Tsujikawa <[email protected]>
  2072. Removed 'always true' condition
  2073. * src/util.cc
  2074. 2010-02-20 Tatsuhiro Tsujikawa <[email protected]>
  2075. Documented --bt-enable-lpd option in man page.
  2076. * doc/aria2c.1.txt
  2077. 2010-02-20 Tatsuhiro Tsujikawa <[email protected]>
  2078. Added Local Peer Discovery. It is disabled by default. Use
  2079. --bt-enable-lpd to enable the function.
  2080. * src/BtConstants.h
  2081. * src/BtSetup.cc
  2082. * src/LpdDispatchMessageCommand.cc
  2083. * src/LpdDispatchMessageCommand.h
  2084. * src/LpdMessage.h
  2085. * src/LpdMessageDispatcher.cc
  2086. * src/LpdMessageDispatcher.h
  2087. * src/LpdMessageReceiver.cc
  2088. * src/LpdMessageReceiver.h
  2089. * src/LpdReceiveMessageCommand.cc
  2090. * src/LpdReceiveMessageCommand.h
  2091. * src/Makefile.am
  2092. * src/OptionHandlerFactory.cc
  2093. * src/Peer.cc
  2094. * src/Peer.h
  2095. * src/PeerInteractionCommand.cc
  2096. * src/SocketCore.cc
  2097. * src/SocketCore.h
  2098. * src/prefs.cc
  2099. * src/prefs.h
  2100. * src/usage_text.h
  2101. * src/util.cc
  2102. * src/util.h
  2103. * test/LpdMessageDispatcherTest.cc
  2104. * test/LpdMessageReceiverTest.cc
  2105. * test/Makefile.am
  2106. 2010-02-20 Tatsuhiro Tsujikawa <[email protected]>
  2107. User-defined custom request headers specified by --header option
  2108. now override builtin headers if they have same name.
  2109. * src/HttpRequest.cc
  2110. * src/HttpRequest.h
  2111. * test/HttpRequestTest.cc
  2112. 2010-02-19 Tatsuhiro Tsujikawa <[email protected]>
  2113. Rewirtten util::isNumber()
  2114. * src/util.cc
  2115. 2010-02-19 Tatsuhiro Tsujikawa <[email protected]>
  2116. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  2117. because without it localized error messages are not printed
  2118. correctly.
  2119. * src/Platform.cc
  2120. 2010-02-19 Tatsuhiro Tsujikawa <[email protected]>
  2121. Added unit tests for util::getContentDispositionFilename() from
  2122. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  2123. tests are passed.
  2124. * src/util.cc
  2125. * test/UtilTest.cc
  2126. 2010-02-18 Tatsuhiro Tsujikawa <[email protected]>
  2127. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  2128. util.cc
  2129. * src/Platform.cc
  2130. 2010-02-18 Tatsuhiro Tsujikawa <[email protected]>
  2131. Support RFC2231 "Parameter Value Character Set and Language
  2132. Information" in Content-Disposition header.
  2133. * src/HttpResponse.cc
  2134. * src/util.cc
  2135. * src/util.h
  2136. * test/UtilTest.cc
  2137. 2010-02-16 Tatsuhiro Tsujikawa <[email protected]>
  2138. Print CXXFLAGS
  2139. * configure.ac
  2140. 2010-02-16 Tatsuhiro Tsujikawa <[email protected]>
  2141. Small optimization for A2_WOULDBLOCK(e)
  2142. * src/SocketCore.cc
  2143. 2010-02-15 Tatsuhiro Tsujikawa <[email protected]>
  2144. Removed test file
  2145. * test/CookieStorageTest.cc
  2146. 2010-02-15 Tatsuhiro Tsujikawa <[email protected]>
  2147. Check both EAGAIN and EWOULDBLOCK
  2148. * src/SocketCore.cc
  2149. 2010-02-15 Tatsuhiro Tsujikawa <[email protected]>
  2150. Removed ret == 0 checking for SSL_read(), SSL_write() and
  2151. SSL_peek() because the checks are done in the caller. In
  2152. SocketBuffer::send(), throw exception if nothing could be written
  2153. and socket error was not EWOULDBLOCK
  2154. * src/SocketBuffer.cc
  2155. * src/SocketCore.cc
  2156. 2010-02-15 Tatsuhiro Tsujikawa <[email protected]>
  2157. Fixed error code handling so that it can handle Winsock2 error
  2158. code.
  2159. * src/SocketCore.cc
  2160. * src/SocketCore.h
  2161. 2010-02-14 Tatsuhiro Tsujikawa <[email protected]>
  2162. Bump up version number to 1.9.0a
  2163. * configure.ac
  2164. * doc/aria2c.1.txt
  2165. 2010-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2166. Fixed the bug that aria2 doesn't handle return value if error
  2167. occurred before download begins.
  2168. * src/MultiUrlRequestInfo.cc
  2169. * src/main.cc
  2170. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2171. Removed SegmentManFactory class.
  2172. * src/AbstractSegmentManFactory.h
  2173. * src/DefaultSegmentManFactory.cc
  2174. * src/DefaultSegmentManFactory.h
  2175. * src/Makefile.am
  2176. * src/RequestGroup.cc
  2177. * src/RequestGroup.h
  2178. * src/SegmentManFactory.h
  2179. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2180. Destroyed digest context after getting calculated hash.
  2181. * src/Piece.cc
  2182. * src/Piece.h
  2183. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2184. Removed BitfieldManFactory class.
  2185. * src/BitfieldManFactory.cc
  2186. * src/BitfieldManFactory.h
  2187. * src/DefaultPieceStorage.cc
  2188. * src/Makefile.am
  2189. * src/PeerSessionResource.cc
  2190. * src/Piece.cc
  2191. * src/main.cc
  2192. * test/DefaultPieceStorageTest.cc
  2193. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2194. Removed unused methods from BitfieldMan class. Moved
  2195. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  2196. class.
  2197. * src/BitfieldMan.cc
  2198. * src/BitfieldMan.h
  2199. * src/BitfieldManFactory.cc
  2200. * src/BitfieldManFactory.h
  2201. * src/bitfield.h
  2202. * src/main.cc
  2203. * test/BitfieldManTest.cc
  2204. * test/DefaultPieceStorageTest.cc
  2205. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2206. Moved getFirstNMissingIndex to bitfield.h and made it return the
  2207. number of appended indexes.
  2208. * src/BitfieldMan.cc
  2209. * src/BitfieldMan.h
  2210. * src/Piece.cc
  2211. * src/Piece.h
  2212. * src/bitfield.h
  2213. * test/BitfieldManTest.cc
  2214. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2215. Added more tests.
  2216. * test/BitfieldManTest.cc
  2217. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2218. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  2219. unused block indexes at once instead of calling
  2220. getFirstMissingUnusedIndex() multiple times. Made use of it in
  2221. Piece class and DefaultBtRequestFactory class via Piece class.
  2222. * src/BitfieldMan.cc
  2223. * src/BitfieldMan.h
  2224. * src/DefaultBtRequestFactory.cc
  2225. * src/Piece.cc
  2226. * src/Piece.h
  2227. * test/BitfieldManTest.cc
  2228. 2010-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2229. Use std::make_pair(...)
  2230. * src/DHTMessageTracker.cc
  2231. 2010-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2232. Use std::make_pair(...)
  2233. * src/bittorrent_helper.cc
  2234. 2010-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2235. urlencode(removeFragment(...)) in parseUrl(...)
  2236. * src/Request.cc
  2237. 2010-02-09 Tatsuhiro Tsujikawa <[email protected]>
  2238. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  2239. * src/AbstractCommand.cc
  2240. * src/AdaptiveURISelector.cc
  2241. * src/BtPieceMessage.cc
  2242. * src/BtPortMessage.cc
  2243. * src/CreateRequestCommand.cc
  2244. * src/DHTAbstractNodeLookupTask.cc
  2245. * src/DHTBucket.cc
  2246. * src/DHTGetPeersCommand.cc
  2247. * src/DHTMessageDispatcherImpl.cc
  2248. * src/DHTMessageFactoryImpl.cc
  2249. * src/DHTMessageTracker.cc
  2250. * src/DHTPeerAnnounceStorage.cc
  2251. * src/DHTRoutingTable.cc
  2252. * src/DHTSetup.cc
  2253. * src/DefaultBtAnnounce.cc
  2254. * src/DefaultBtInteractive.cc
  2255. * src/DefaultBtMessageDispatcher.cc
  2256. * src/DefaultBtMessageReceiver.cc
  2257. * src/DefaultBtProgressInfoFile.cc
  2258. * src/DefaultBtRequestFactory.cc
  2259. * src/DefaultPeerStorage.cc
  2260. * src/DefaultPieceStorage.cc
  2261. * src/DownloadCommand.cc
  2262. * src/DownloadEngine.cc
  2263. * src/EpollEventPoll.cc
  2264. * src/FileAllocationCommand.cc
  2265. * src/FileEntry.cc
  2266. * src/FtpNegotiationCommand.cc
  2267. * src/HandshakeExtensionMessage.cc
  2268. * src/HttpListenCommand.cc
  2269. * src/HttpServer.cc
  2270. * src/HttpSkipResponseCommand.cc
  2271. * src/IteratableChunkChecksumValidator.cc
  2272. * src/Logger.h
  2273. * src/MSEHandshake.cc
  2274. * src/MetalinkPostDownloadHandler.cc
  2275. * src/MultiDiskAdaptor.cc
  2276. * src/PeerAbstractCommand.cc
  2277. * src/PeerConnection.cc
  2278. * src/PeerListenCommand.cc
  2279. * src/PeerReceiveHandshakeCommand.cc
  2280. * src/RequestGroup.cc
  2281. * src/RequestGroupMan.cc
  2282. * src/SegmentMan.cc
  2283. * src/SelectEventPoll.cc
  2284. * src/ServerStat.cc
  2285. * src/SimpleBtMessage.cc
  2286. * src/SocketCore.cc
  2287. * src/TrackerWatcherCommand.cc
  2288. * src/UTMetadataDataExtensionMessage.cc
  2289. * src/UTMetadataRequestFactory.cc
  2290. * src/UTMetadataRequestTracker.cc
  2291. * src/XmlRpcMethod.cc
  2292. 2010-02-08 Tatsuhiro Tsujikawa <[email protected]>
  2293. Changed log level from debug to info
  2294. * src/BtDependency.cc
  2295. * src/BtPostDownloadHandler.cc
  2296. 2010-02-08 Tatsuhiro Tsujikawa <[email protected]>
  2297. Removed unused PeerSessionResource::_latency.
  2298. * src/BtConstants.h
  2299. * src/BtPieceMessage.cc
  2300. * src/Peer.cc
  2301. * src/Peer.h
  2302. * src/PeerSessionResource.cc
  2303. * src/PeerSessionResource.h
  2304. * test/PeerSessionResourceTest.cc
  2305. 2010-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2306. Fixed the bug that --file-allocation=falloc doesn't work with
  2307. single file download.
  2308. * src/AbstractSingleDiskAdaptor.cc
  2309. 2010-02-03 Tatsuhiro Tsujikawa <[email protected]>
  2310. Release 1.8.2
  2311. 2010-02-03 Tatsuhiro Tsujikawa <[email protected]>
  2312. Added Portuguese translation. Updated Ukrainian and Spanish
  2313. translation. Thanks to all translators.
  2314. * po/LINGUAS
  2315. * po/es.po
  2316. * po/pt.po
  2317. * po/uk.po
  2318. 2010-02-03 Tatsuhiro Tsujikawa <[email protected]>
  2319. Remove fragment from redirected URI.
  2320. * src/Request.cc
  2321. * test/RequestTest.cc
  2322. 2010-02-03 Tatsuhiro Tsujikawa <[email protected]>
  2323. Updated po templates.
  2324. * po/aria2.pot
  2325. 2010-02-02 Tatsuhiro Tsujikawa <[email protected]>
  2326. Drop legacy ifdef for ares support and code cleanup.
  2327. * src/AsyncNameResolver.cc
  2328. * src/AsyncNameResolver.h
  2329. 2010-02-02 Tatsuhiro Tsujikawa <[email protected]>
  2330. Call ares_library_init and ares_library_cleanup if they are
  2331. available. Some code cleanups.
  2332. * src/Platform.cc
  2333. 2010-02-02 Tatsuhiro Tsujikawa <[email protected]>
  2334. Call ares_process_fd() each time after epoll to handle timeout.
  2335. * src/EpollEventPoll.cc
  2336. * src/EpollEventPoll.h
  2337. 2010-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2338. Suppressed type-cast compiler warning
  2339. * src/CookieStorage.cc
  2340. 2010-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2341. Fixed compile error on Mac OS X.
  2342. * src/CookieStorage.h
  2343. 2010-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2344. Removed cookietest.txt from Makefile.am
  2345. * test/Makefile.am
  2346. 2010-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2347. Updated version number in man page.
  2348. * doc/aria2c.1.txt
  2349. 2010-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2350. Rewritten help message for --allow-overwrite option.
  2351. * doc/aria2c.1.txt
  2352. * src/usage_text.h
  2353. 2010-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2354. Added bittorrent key to the response of tellStatus XML-RPC method.
  2355. The associated value of the key is a struct and contains data
  2356. retrieved from .torrent file, such as name, announce-list,
  2357. comment, etc.
  2358. * doc/aria2c.1.txt
  2359. * src/XmlRpcMethodImpl.cc
  2360. * src/XmlRpcMethodImpl.h
  2361. * test/XmlRpcMethodTest.cc
  2362. 2010-01-29 Tatsuhiro Tsujikawa <[email protected]>
  2363. Removed parse(std::istream&) and parse(const std::string&) from
  2364. CookieParser.
  2365. * src/CookieParser.cc
  2366. * src/CookieParser.h
  2367. * test/CookieParserTest.cc
  2368. * test/cookietest.txt: Removed
  2369. 2010-01-29 Tatsuhiro Tsujikawa <[email protected]>
  2370. Fixed the bug that cookie for domain a.b.c is not sent to the host
  2371. a.b.c if no other cookies are stored. Fixed the bug that
  2372. Cookie::markOriginServerOnly() is not called when cookies are
  2373. loaded from file/sqlite3 database.
  2374. * src/Cookie.h
  2375. * src/CookieStorage.cc
  2376. * src/NsCookieParser.cc
  2377. * src/Sqlite3MozCookieParser.cc
  2378. * test/CookieStorageTest.cc
  2379. * test/NsCookieParserTest.cc
  2380. * test/Sqlite3MozCookieParserTest.cc
  2381. * test/cookies.sqlite
  2382. * test/nscookietest.txt
  2383. 2010-01-29 Tatsuhiro Tsujikawa <[email protected]>
  2384. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  2385. both _pieceStorage and _segmentMan are initialized or they are
  2386. not.
  2387. * src/RequestGroup.cc
  2388. * src/RequestGroup.h
  2389. * test/BtDependencyTest.cc
  2390. 2010-01-29 Tatsuhiro Tsujikawa <[email protected]>
  2391. Bump up version number to 1.8.2
  2392. * configure.ac
  2393. 2010-01-28 Tatsuhiro Tsujikawa <[email protected]>
  2394. Replaced "." with A2STR::DOT_C
  2395. * src/AbstractCommand.cc
  2396. * src/Cookie.cc
  2397. * src/DownloadContext.cc
  2398. * src/FtpConnection.cc
  2399. * src/RequestGroup.cc
  2400. * src/util.cc
  2401. 2010-01-28 Tatsuhiro Tsujikawa <[email protected]>
  2402. Replaced isNumberAndDotsNotation() with isNumericHost().
  2403. isNumericHost() can handle IPv6 address.
  2404. * src/Cookie.cc
  2405. * src/CookieStorage.cc
  2406. * src/util.cc
  2407. * src/util.h
  2408. * test/CookieTest.cc
  2409. * test/UtilTest.cc
  2410. 2010-01-28 Tatsuhiro Tsujikawa <[email protected]>
  2411. Included A2STR.h
  2412. * src/CookieStorage.cc
  2413. 2010-01-28 Tatsuhiro Tsujikawa <[email protected]>
  2414. Rewritten Cookie storage.
  2415. * src/Cookie.cc
  2416. * src/Cookie.h
  2417. * src/CookieParser.cc
  2418. * src/CookieStorage.cc
  2419. * src/CookieStorage.h
  2420. * src/a2functional.h
  2421. * test/CookieParserTest.cc
  2422. * test/CookieStorageTest.cc
  2423. * test/CookieTest.cc
  2424. * test/HttpResponseTest.cc
  2425. * test/TestUtil.h
  2426. * test/a2functionalTest.cc
  2427. 2010-01-26 Tatsuhiro Tsujikawa <[email protected]>
  2428. Handle redirected URI which is not properly percent encoded.
  2429. * src/Request.cc
  2430. * test/RequestTest.cc
  2431. 2010-01-25 Tatsuhiro Tsujikawa <[email protected]>
  2432. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  2433. not found' in the N times(N is where --max-file-not-found=N, N>0)
  2434. in a row without single '200 OK' response.
  2435. * src/RequestGroup.cc.
  2436. 2010-01-24 Tatsuhiro Tsujikawa <[email protected]>
  2437. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  2438. readout by 80 characters in mingw32 build. Catch exception in
  2439. DHTMessageReceiver::receiveMessage().
  2440. * src/AbstractDiskWriter.cc
  2441. * src/ConsoleStatCalc.cc
  2442. * src/DHTMessageReceiver.cc
  2443. * src/File.cc
  2444. * src/RequestGroupMan.cc
  2445. * src/a2io.h
  2446. * test/FileTest.cc
  2447. 2010-01-24 Tatsuhiro Tsujikawa <[email protected]>
  2448. Fixed compile error with intel compiler
  2449. * src/XmlRpcMethodImpl.cc
  2450. * src/XmlRpcMethodImpl.h
  2451. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2452. Release 1.8.1
  2453. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2454. Updated Swedish, Russian and Italian translations. Thanks to all
  2455. translators.
  2456. * po/it.po
  2457. * po/ru.po
  2458. * po/sv.po
  2459. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2460. Fixed broken OptionParser::findByName().
  2461. * src/OptionParser.cc
  2462. * test/OptionParserTest.cc
  2463. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2464. Fixed test error without BitTorrent support.
  2465. * test/XmlRpcMethodTest.cc
  2466. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2467. Fixed compile error without GNUTLS/OpenSSL.
  2468. * src/util.cc
  2469. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2470. Changed compression level to Z_DEFAULT_COMPRESSION.
  2471. * src/GZipEncoder.cc
  2472. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2473. Added missing command line options: --http-no-cache,
  2474. --bt-save-metadata and --bt-metadata-only.
  2475. * doc/xmlrpc/aria2rpc
  2476. 2010-01-22 Tatsuhiro Tsujikawa <[email protected]>
  2477. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  2478. client accepts gzip content encoding.
  2479. * src/A2STR.cc
  2480. * src/A2STR.h
  2481. * src/GZipEncoder.cc
  2482. * src/GZipEncoder.h
  2483. * src/HttpHeader.cc
  2484. * src/HttpHeader.h
  2485. * src/HttpServer.cc
  2486. * src/HttpServer.h
  2487. * src/HttpServerBodyCommand.cc
  2488. * src/HttpServerCommand.cc
  2489. * src/Makefile.am
  2490. * src/XmlRpcResponse.cc
  2491. * src/XmlRpcResponse.h
  2492. * test/GZipEncoderTest.cc
  2493. * test/Makefile.am
  2494. 2010-01-18 Tatsuhiro Tsujikawa <[email protected]>
  2495. Added XML-RPC client sample code in Python.
  2496. * doc/aria2c.1.txt
  2497. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2498. Updated po templates.
  2499. * po/aria2.pot
  2500. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2501. Bump up version number to 1.8.1
  2502. * configure.ac
  2503. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2504. Added version number to man page. Updated copyright year in man
  2505. page.
  2506. * doc/aria2c.1.txt
  2507. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2508. Rewritten toTagString
  2509. * src/NameMatchOptionHandler.cc
  2510. * test/OptionHandlerTest.cc
  2511. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2512. Added dir and files key to the response struct of aria2.tellStatus
  2513. XML-RPC method. The value associated with files key is the list
  2514. of files. Its element is the same struct used in aria2.getFiles
  2515. XML-RPC method. Added uris key to the response struct of
  2516. aria2.getFiles XML-RPC method. The value associated with uris key
  2517. is the list of URIs. Its element is the same struct used in
  2518. aria2.getUris XML-RPC method.
  2519. * doc/aria2c.1.txt
  2520. * src/XmlRpcMethodImpl.cc
  2521. * test/XmlRpcMethodTest.cc
  2522. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2523. Added aria2.getSessionInfo XML-RPC method. This method returns a
  2524. struct containing Session ID, which is generated each time when
  2525. aria2 is invoked.
  2526. * doc/aria2c.1.txt
  2527. * doc/xmlrpc/aria2rpc
  2528. * src/DownloadEngine.cc
  2529. * src/DownloadEngine.h
  2530. * src/XmlRpcMethodFactory.cc
  2531. * src/XmlRpcMethodImpl.cc
  2532. * src/XmlRpcMethodImpl.h
  2533. * test/XmlRpcMethodTest.cc
  2534. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2535. Moved generateRandomKey() from bittorrent_helper to util.
  2536. * src/DHTBucket.cc
  2537. * src/DHTNode.cc
  2538. * src/bittorrent_helper.cc
  2539. * src/bittorrent_helper.h
  2540. * src/util.cc
  2541. * src/util.h
  2542. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2543. Updated doc about GID.
  2544. * doc/aria2c.1.txt
  2545. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2546. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  2547. accepts a negative integer. 'offset' == -1 points last download
  2548. in the waiting queue and 'offset' == -2 points the download before
  2549. the last download, and so on. The downloads in the response are in
  2550. reversed order.
  2551. * doc/aria2c.1.txt
  2552. * src/XmlRpcMethodImpl.cc
  2553. * src/XmlRpcMethodImpl.h
  2554. * test/XmlRpcMethodTest.cc
  2555. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2556. Added --human-readable option. This option, when true is given,
  2557. prints sizes and speed in human readable format(e.g., 1.2Ki,
  2558. 3.4Mi) in the console readout. The default value is true and it
  2559. looks exactly the same as aria2-1.8.0. So the 'new feature'
  2560. appears when false is given. In this case, sizes and speed are
  2561. printed without in bytes. No Ki, Mi units conversion is used.
  2562. This may be useful for a program to parse the output of aria2.
  2563. * doc/aria2c.1.txt
  2564. * src/ConsoleStatCalc.cc
  2565. * src/ConsoleStatCalc.h
  2566. * src/OptionHandlerFactory.cc
  2567. * src/main.cc
  2568. * src/prefs.cc
  2569. * src/prefs.h
  2570. * src/usage_text.h
  2571. 2010-01-15 Tatsuhiro Tsujikawa <[email protected]>
  2572. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  2573. option accepts empty string "". When "" is given, it erases
  2574. previously defined proxy.
  2575. * doc/aria2c.1.txt
  2576. * src/OptionHandlerImpl.h
  2577. * src/usage_text.h
  2578. * test/OptionHandlerTest.cc
  2579. 2010-01-15 Tatsuhiro Tsujikawa <[email protected]>
  2580. Code cleanup for proxy URI handling.
  2581. * src/AbstractCommand.cc
  2582. 2010-01-12 Tatsuhiro Tsujikawa <[email protected]>
  2583. Added --bt-metadata-only option. If true is given to this option,
  2584. aria2 downloads metadata only. The file(s) described in metadata
  2585. will not be downloaded. This option has effect only when
  2586. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  2587. * doc/aria2c.1.txt
  2588. * src/OptionHandlerFactory.cc
  2589. * src/UTMetadataPostDownloadHandler.cc
  2590. * src/download_helper.cc
  2591. * src/prefs.cc
  2592. * src/prefs.h
  2593. * src/usage_text.h
  2594. 2010-01-12 Tatsuhiro Tsujikawa <[email protected]>
  2595. Fixed memory leak. Commands stored in std::deque<Command*> are not
  2596. deleted when exception is thrown. Make sure that when passing
  2597. std::deque<Command*> to function to store Commands, handle
  2598. exception and delete these Commands.
  2599. * src/AbstractCommand.cc
  2600. * src/CheckIntegrityCommand.cc
  2601. * src/FileAllocationCommand.cc
  2602. * src/RequestGroup.cc
  2603. * src/TrackerWatcherCommand.cc
  2604. 2010-01-11 Tatsuhiro Tsujikawa <[email protected]>
  2605. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  2606. * src/A2STR.cc
  2607. * src/A2STR.h
  2608. * src/FtpNegotiationCommand.cc
  2609. * src/HttpResponseCommand.cc
  2610. * src/util.cc
  2611. * src/util.h
  2612. * test/UtilTest.cc
  2613. 2010-01-11 Tatsuhiro Tsujikawa <[email protected]>
  2614. Treat --dir="" as --dir="."
  2615. * src/FtpNegotiationCommand.cc
  2616. * src/HttpResponseCommand.cc
  2617. * src/Metalink2RequestGroup.cc
  2618. * src/UTMetadataPostDownloadHandler.cc
  2619. * src/bittorrent_helper.cc
  2620. * src/download_helper.cc
  2621. * src/util.cc
  2622. * src/util.h
  2623. * test/UtilTest.cc
  2624. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2625. Code clean up.
  2626. * src/main.cc
  2627. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2628. Reset GID to 1 when they reach maximum value. Rewritten
  2629. CUIDCounter::newID()
  2630. * src/CUIDCounter.h
  2631. * src/RequestGroup.cc
  2632. * src/RequestGroup.h
  2633. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2634. Documented --http-no-cache option in man page.
  2635. * doc/aria2c.1.txt
  2636. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2637. Added --http-no-cache option. When true is given, aria2 sends
  2638. Cache-Control: no-cache and Pragma: no-cache header to avoid
  2639. cached content. If false is given , these headers are not sent
  2640. and you can add Cache-Control header with a directive you like
  2641. using --header option.
  2642. * src/HttpRequest.cc
  2643. * src/HttpRequest.h
  2644. * src/HttpRequestCommand.cc
  2645. * src/OptionHandlerFactory.cc
  2646. * src/download_helper.cc
  2647. * src/prefs.cc
  2648. * src/prefs.h
  2649. * src/usage_text.h
  2650. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2651. Removed Logger from OptionParser. When OptionParser is used to
  2652. parse options at bootstrap, LogFactory is not configured yet
  2653. properly. When LogFactory is used in OptionParser, it initializes
  2654. itself to return a logger which has no ability to write log to the
  2655. disk.
  2656. * src/OptionParser.cc
  2657. * src/OptionParser.h
  2658. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2659. Added following sentance to the help message of --out option:
  2660. --out option is ignored when -Z is used.
  2661. * doc/aria2c.1.txt
  2662. * src/usage_text.h
  2663. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2664. Added --bt-save-metadata option to -i list options.
  2665. * doc/aria2c.1.txt
  2666. * src/download_helper.cc
  2667. 2010-01-09 Tatsuhiro Tsujikawa <[email protected]>
  2668. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  2669. additional libraries.
  2670. * src/MultiUrlRequestInfo.cc
  2671. * src/NameResolver.cc
  2672. * src/SelectEventPoll.cc
  2673. * src/SelectEventPoll.h
  2674. * src/SocketCore.cc
  2675. * src/SocketCore.h
  2676. * src/a2netcompat.h
  2677. * src/daemon.cc
  2678. * src/main.cc
  2679. 2010-01-09 Tatsuhiro Tsujikawa <[email protected]>
  2680. Fixed typo.
  2681. * src/DHTMessageReceiver.cc
  2682. 2010-01-09 Tatsuhiro Tsujikawa <[email protected]>
  2683. Fixed the bug that causes segmentation fault if unknown option is
  2684. put in aria2.conf file. BUG#2928303
  2685. * src/OptionParser.cc
  2686. * src/OptionParser.h
  2687. * src/option_processing.cc
  2688. * test/OptionParserTest.cc
  2689. 2010-01-07 Tatsuhiro Tsujikawa <[email protected]>
  2690. Ignore port message with port=0.
  2691. * src/BtPortMessage.cc
  2692. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2693. Run autoupdate
  2694. * configure.ac
  2695. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2696. Updated autoconf/automake auxiliary files.
  2697. * INSTALL
  2698. * config.guess
  2699. * config.sub
  2700. * depcomp
  2701. * install-sh
  2702. * m4/intldir.m4
  2703. * missing
  2704. * mkinstalldirs
  2705. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2706. Removed unused function.
  2707. * src/SharedHandle.h
  2708. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2709. Find pooled socket using all cached addresses.
  2710. * src/DNSCache.h
  2711. * src/DownloadEngine.cc
  2712. * src/DownloadEngine.h
  2713. * src/InitiateConnectionCommand.cc
  2714. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2715. Updated copyright year.
  2716. * src/version_usage.cc
  2717. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2718. Pool connection if _contentEncodingDecoder is used and server
  2719. supports persistent connection.
  2720. * src/HttpDownloadCommand.cc
  2721. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2722. Updated doc.
  2723. * src/DownloadCommand.cc
  2724. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2725. Untabify. Fixed one line in copyright which is longer than 80
  2726. columns.
  2727. * src
  2728. * test
  2729. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2730. Release 1.8.0
  2731. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2732. Updated po templates.
  2733. * po/aria2.pot
  2734. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2735. Documented --bt-save-metadata option in man page.
  2736. * doc/aria2c.1.txt
  2737. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2738. Fixed usage of --bt-save-metadata option.
  2739. * src/usage_text.h
  2740. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2741. Updated po templates.
  2742. * po/aria2.pot
  2743. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2744. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  2745. causes name resolution error when none of network interface has
  2746. IPv4 address.
  2747. * src/main.cc
  2748. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2749. Bump up version number to 1.8.0.
  2750. * configure.ac
  2751. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2752. Use info hash as a filename when saving BitTorrent metadata.
  2753. * src/UTMetadataPostDownloadHandler.cc
  2754. * test/UTMetadataPostDownloadHandlerTest.cc
  2755. 2009-12-26 Tatsuhiro Tsujikawa <[email protected]>
  2756. Documented system.multicall XML-RPC method in man page.
  2757. * doc/aria2c.1.txt
  2758. 2009-12-26 Tatsuhiro Tsujikawa <[email protected]>
  2759. Added signal handler for SIGHUP to save .aria2 file when terminal
  2760. is closed. The handler is the same one for SIGINT and SIGTERM.
  2761. * src/MultiUrlRequestInfo.cc
  2762. 2009-12-26 Tatsuhiro Tsujikawa <[email protected]>
  2763. Defined method name in XmlRpcMethod subclasses.
  2764. * src/XmlRpcMethodFactory.cc
  2765. * src/XmlRpcMethodImpl.cc
  2766. * src/XmlRpcMethodImpl.h
  2767. * test/XmlRpcMethodTest.cc
  2768. 2009-12-26 Tatsuhiro Tsujikawa <[email protected]>
  2769. Added system.multicall XML-RPC method.
  2770. * src/XmlRpcMethod.cc
  2771. * src/XmlRpcMethod.h
  2772. * src/XmlRpcMethodFactory.cc
  2773. * src/XmlRpcMethodImpl.cc
  2774. * src/XmlRpcMethodImpl.h
  2775. * test/XmlRpcMethodTest.cc
  2776. 2009-12-25 Tatsuhiro Tsujikawa <[email protected]>
  2777. Check structure depth when decoding.
  2778. * src/bencode.cc
  2779. * src/bencode.h
  2780. * test/BencodeTest.cc
  2781. 2009-12-25 Tatsuhiro Tsujikawa <[email protected]>
  2782. Documented tellStopped XML-RPC method in man page.
  2783. * doc/aria2c.1.txt
  2784. 2009-12-25 Tatsuhiro Tsujikawa <[email protected]>
  2785. Added tellStopped XML-RPC method to aria2rpc.
  2786. * doc/xmlrpc/aria2rpc
  2787. 2009-12-25 Tatsuhiro Tsujikawa <[email protected]>
  2788. Added tellStopped XML-RPC method. This method returns stopped
  2789. download in the specified range. It takes same parameters with
  2790. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  2791. * src/XmlRpcMethodFactory.cc
  2792. * src/XmlRpcMethodImpl.cc
  2793. * src/XmlRpcMethodImpl.h
  2794. 2009-12-24 Tatsuhiro Tsujikawa <[email protected]>
  2795. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  2796. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  2797. when conducting unit tests because they fail if networking
  2798. interface is not configured with IPv4 address.
  2799. * src/NameResolver.cc
  2800. * src/SocketCore.cc
  2801. * src/SocketCore.h
  2802. * src/a2netcompat.h
  2803. * test/AllTest.cc
  2804. 2009-12-24 Tatsuhiro Tsujikawa <[email protected]>
  2805. Fixed unit test error
  2806. * test/UTMetadataPostDownloadHandlerTest.cc
  2807. 2009-12-24 Tatsuhiro Tsujikawa <[email protected]>
  2808. Defined static string constants for efficiency.
  2809. * src/XmlRpcMethodImpl.cc
  2810. 2009-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2811. Added --bt-save-metadata option. When true is given, it saves
  2812. metadata as .torrent file. This option has effect only when
  2813. BitTorrent Magnet URI is used. The filename is name in metadata
  2814. with suffix .torrent. The directory to be saved is the same
  2815. directory where download file is saved. If the same file already
  2816. exists, metdata is not saved.
  2817. * src/OptionHandlerFactory.cc
  2818. * src/UTMetadataPostDownloadHandler.cc
  2819. * src/UTMetadataPostDownloadHandler.h
  2820. * src/message.h
  2821. * src/prefs.cc
  2822. * src/prefs.h
  2823. * src/usage_text.h
  2824. * test/UTMetadataDataExtensionMessageTest.cc
  2825. 2009-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2826. Added util::saveAs() function. Use it in Signature::save().
  2827. * src/Signature.cc
  2828. * src/util.cc
  2829. * src/util.h
  2830. 2009-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2831. Upcase info hash in Magnet URI.
  2832. * doc/aria2c.1.txt
  2833. 2009-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2834. Refactored RequestGroupMan::changeReservedGroupPosition()
  2835. * src/RequestGroupMan.cc
  2836. 2009-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2837. Updated the description for aria2.addTorrent XML-RPC method.
  2838. * doc/aria2c.1.txt
  2839. 2009-12-22 Tatsuhiro Tsujikawa <[email protected]>
  2840. Added changePosition to aria2rpc.
  2841. * doc/xmlrpc/aria2rpc
  2842. 2009-12-22 Tatsuhiro Tsujikawa <[email protected]>
  2843. Documented changePosition XML-RPC method in man page.
  2844. * doc/aria2c.1.txt
  2845. 2009-12-22 Tatsuhiro Tsujikawa <[email protected]>
  2846. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  2847. pos and how. This method changes the position of download denoted
  2848. by gid. If how is POS_SET, it moves the download to a position
  2849. relative to the beginning of the queue. If how is POS_CUR, it
  2850. moves the download to a position relative to the current
  2851. position. If how is POS_END, it moves the download to a position
  2852. relative to the end of the queue. If the destination position is
  2853. less than 0 or beyond the end of the queue, it moves the download
  2854. to the beginning or the end of the queue respectively. Returns
  2855. the destination position.
  2856. * src/RequestGroupMan.cc
  2857. * src/RequestGroupMan.h
  2858. * src/XmlRpcMethodFactory.cc
  2859. * src/XmlRpcMethodImpl.cc
  2860. * src/XmlRpcMethodImpl.h
  2861. * test/RequestGroupManTest.cc
  2862. * test/XmlRpcMethodTest.cc
  2863. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2864. Added getOption and getGlobalOption to aria2rpc.
  2865. * doc/xmlrpc/aria2rpc
  2866. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2867. Documented getOption and getGlobalOption XML-RPC method in man
  2868. page
  2869. * doc/aria2c.1.txt
  2870. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2871. Added getOption and getGlobalOption XML-RPC method. getOption
  2872. takes GID as a parameter and returns its options as struct.
  2873. getGlobalOption takes no parameter and returns global
  2874. options. Because global option is used as a template for the
  2875. option of newly added downloads, it includes options returned by
  2876. getOption.
  2877. * src/Option.h
  2878. * src/XmlRpcMethodFactory.cc
  2879. * src/XmlRpcMethodImpl.cc
  2880. * src/XmlRpcMethodImpl.h
  2881. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2882. Sort _optionHandlers in OptionParser by name in ascending order.
  2883. Use vector instead of deque for efficiency.
  2884. * src/OptionHandler.h
  2885. * src/OptionHandlerFactory.h
  2886. * src/OptionParser.cc
  2887. * src/OptionParser.h
  2888. * src/version_usage.cc
  2889. * test/OptionParserTest.cc
  2890. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2891. Code cleanup
  2892. * src/XmlRpcMethod.cc
  2893. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2894. Documented about followedBy and belongsTo in man page.
  2895. * doc/aria2c.1.txt
  2896. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2897. Added following 2 keys, followedBy and belongsTo, to the response
  2898. of tellStatus.
  2899. followedBy: List of GIDs which are generated by the consequence of
  2900. this download. For example, when aria2 downloaded Metalink file,
  2901. it generates downloads described in it(see *--follow-metalink*
  2902. option). This value is useful to track these auto generated
  2903. downloads. If there is no such downloads, this key will not be
  2904. included in the response.
  2905. belongsTo: GID of a parent download. Some downloads are a part of
  2906. another download. For example, if a file in Metalink has
  2907. BitTorrent resource, the download of .torrent is a part of that
  2908. file. If this download has no parent, this key will not be
  2909. included in the response.
  2910. * src/BtPostDownloadHandler.cc
  2911. * src/DownloadResult.h
  2912. * src/Metalink2RequestGroup.cc
  2913. * src/MetalinkPostDownloadHandler.cc
  2914. * src/RequestGroup.cc
  2915. * src/RequestGroup.h
  2916. * src/UTMetadataPostDownloadHandler.cc
  2917. * src/XmlRpcMethodImpl.cc
  2918. * src/XmlRpcMethodImpl.h
  2919. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2920. Assigned BObject in BDE() to avoid segmentation fault when calling
  2921. methods of BDE::none().
  2922. * src/BDE.cc
  2923. 2009-12-18 Tatsuhiro Tsujikawa <[email protected]>
  2924. Show info hash in Magnet URI in upper case letters in -S output.
  2925. * src/bittorrent_helper.cc
  2926. * test/BittorrentHelperTest.cc
  2927. 2009-12-18 Tatsuhiro Tsujikawa <[email protected]>
  2928. Removed old useless comment
  2929. * src/MultiUrlRequestInfo.cc
  2930. 2009-12-16 Tatsuhiro Tsujikawa <[email protected]>
  2931. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  2932. not properly used in configure script and failed to detect gnutls.
  2933. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  2934. and the initialization of pkg-config is done in first occurrence
  2935. of PKG_CHECK_MODULES which is not executed because it is inside of
  2936. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  2937. * configure.ac
  2938. 2009-12-13 Tatsuhiro Tsujikawa <[email protected]>
  2939. Release 1.7.2
  2940. 2009-12-13 Tatsuhiro Tsujikawa <[email protected]>
  2941. Fixed the bug that RequestGroupMan::downloadFinished() returns
  2942. true even if all downloads haven't finished, especially when
  2943. PostDownloadHandler is involved. Changed the condition so that it
  2944. only returns true if both _requestGroups and _reservedGroups are
  2945. empty.
  2946. * src/RequestGroupMan.cc
  2947. 2009-12-13 Tatsuhiro Tsujikawa <[email protected]>
  2948. Log listening port for BitTorrent/DHT in notice level.
  2949. * src/DHTConnectionImpl.cc
  2950. * src/PeerListenCommand.cc
  2951. 2009-12-12 Tatsuhiro Tsujikawa <[email protected]>
  2952. Updated po templates.
  2953. * po/aria2.pot
  2954. 2009-12-12 Tatsuhiro Tsujikawa <[email protected]>
  2955. Bump up version number to 1.7.2
  2956. * configure.ac
  2957. 2009-12-11 Tatsuhiro Tsujikawa <[email protected]>
  2958. Changed default value of --enable-dht from 'false' to 'true'.
  2959. * doc/aria2c.1.txt
  2960. 2009-12-11 Tatsuhiro Tsujikawa <[email protected]>
  2961. Enabled DHT by default because of Magnet URI support. To disable
  2962. DHT, use --enable-dht=false
  2963. * src/OptionHandlerFactory.cc
  2964. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2965. Print Magnet URI in -S output.
  2966. * src/AnnounceList.cc
  2967. * src/bittorrent_helper.cc
  2968. * src/bittorrent_helper.h
  2969. * test/BittorrentHelperTest.cc
  2970. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2971. Added --bt-prioritize-piece option to aria2rpc.
  2972. * doc/xmlrpc/aria2rpc
  2973. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2974. Refer Magnet URI in --help. Made some cosmetic changes.
  2975. * src/version_usage.cc
  2976. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2977. Updated -T and -M option.
  2978. * doc/aria2c.1.txt
  2979. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2980. Fixed typo
  2981. * doc/aria2c.1.txt
  2982. 2009-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2983. Fixed the bug that line separator is missing in horizontal bar.
  2984. * doc/xmlrpc/aria2mon
  2985. 2009-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2986. Updated usage text for --metalink-file option.
  2987. * src/usage_text.h
  2988. 2009-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2989. If '-' is given as an argument to --metalink-file option, aria2
  2990. reads Metalink file from stdin.
  2991. * src/OptionHandlerFactory.cc
  2992. * src/OptionHandlerImpl.h
  2993. * src/a2io.h
  2994. 2009-12-08 Tatsuhiro Tsujikawa <[email protected]>
  2995. Fixed the bug that aria2 listens wrong port if --interface option
  2996. is used.
  2997. * src/SocketCore.cc
  2998. 2009-12-07 Tatsuhiro Tsujikawa <[email protected]>
  2999. Fixed the bug that query parameter in magnet URI is not decoded.
  3000. * src/magnet.cc
  3001. * test/MagnetTest.cc
  3002. 2009-12-07 Tatsuhiro Tsujikawa <[email protected]>
  3003. Specified defaultSize as an argument for easy testing.
  3004. * src/util.cc
  3005. * src/util.h
  3006. * test/UtilTest.cc
  3007. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  3008. Release 1.7.1
  3009. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  3010. Bump up version number to 1.7.1
  3011. * configure.ac
  3012. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  3013. Fixed the bug --bt-prioritize-piece=tail is not working.
  3014. * src/util.cc
  3015. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  3016. Release 1.7.0
  3017. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  3018. Updated po templates.
  3019. * po/aria2.pot
  3020. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  3021. Updated help message for --bt-prioritize-piece. Some cosmetic
  3022. changes.
  3023. * doc/aria2c.1.txt
  3024. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  3025. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  3026. * src/usage_text.h
  3027. * src/util.cc
  3028. * test/UtilTest.cc
  3029. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  3030. Updated Russian, Ukrainian, German and French translations.
  3031. Thanks to all translators involved.
  3032. * po/de.po
  3033. * po/fr.po
  3034. * po/ru.po
  3035. * po/uk.po
  3036. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  3037. Mentioned about pkg-config
  3038. * README
  3039. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  3040. Fixed typo. Referred --index-out option in BitTorrent notes.
  3041. * README
  3042. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  3043. Store all addresses found by getifaddrs() and getaddrinfo(). In
  3044. bind, try all addresses until success
  3045. * src/SocketCore.cc
  3046. * src/SocketCore.h
  3047. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  3048. Updated po templates.
  3049. * po/aria2.pot
  3050. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  3051. Bump up version number to 1.7.0
  3052. * configure.ac
  3053. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  3054. Fixed compile error if ENABLE_BITTORRENT is undefined.
  3055. * src/DefaultPieceStorage.cc
  3056. * src/DefaultPieceStorage.h
  3057. * src/PieceStorage.h
  3058. * src/UnknownLengthPieceStorage.cc
  3059. * src/UnknownLengthPieceStorage.h
  3060. * test/MockPieceStorage.h
  3061. * test/ProtocolDetectorTest.cc
  3062. * test/XmlRpcMethodTest.cc
  3063. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  3064. Documented in man page that if getifaddrs() is missing,
  3065. --interface option doesn't accept interface name.
  3066. * doc/aria2c.1.txt
  3067. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  3068. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  3069. * src/DefaultBtAnnounce.cc
  3070. * src/DefaultBtAnnounce.h
  3071. * test/DefaultBtAnnounceTest.cc
  3072. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  3073. Fixed the bug that connection is always dropped if handshake
  3074. message in extension protocol don't have metadata_size.
  3075. src/HandshakeExtensionMessage.cc
  3076. * src/HandshakeExtensionMessage.cc
  3077. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  3078. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  3079. text saying DHT is recommended when Magnet URI is provided.
  3080. * doc/aria2c.1.txt
  3081. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  3082. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  3083. URI is supplied. Notify user that they should consider enabling
  3084. DHT if they use Magnet URI.
  3085. * src/RequestGroup.cc
  3086. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  3087. Added --disable-ipv6 option to disable IPv6.
  3088. * doc/aria2c.1.txt
  3089. * src/InitiateConnectionCommand.cc
  3090. * src/NameResolver.cc
  3091. * src/NameResolver.h
  3092. * src/OptionHandlerFactory.cc
  3093. * src/main.cc
  3094. * src/prefs.cc
  3095. * src/prefs.h
  3096. * src/usage_text.h
  3097. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  3098. Updated usage text for --bt-prioritize-piece option.
  3099. * doc/aria2c.1.txt
  3100. * src/usage_text.h
  3101. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  3102. In configure script, if --with-PACKAGE and --enable-FEATURE are
  3103. given and PACKAGE is missing in the system or FEATURE cannot be
  3104. enabled, print error message and stop the script.
  3105. * configure.ac
  3106. * m4/aria2_arg.m4
  3107. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  3108. Halt metadata download immediately when metadata download is done.
  3109. Don't wait unresponsive tracker.
  3110. * src/ByteArrayDiskWriter.h
  3111. * src/DefaultBtInteractive.cc
  3112. * src/DefaultExtensionMessageFactory.cc
  3113. * src/DefaultExtensionMessageFactory.h
  3114. * src/PeerInteractionCommand.cc
  3115. * src/UTMetadataDataExtensionMessage.cc
  3116. * src/UTMetadataDataExtensionMessage.h
  3117. * src/UTMetadataRequestExtensionMessage.cc
  3118. * test/UTMetadataDataExtensionMessageTest.cc
  3119. * test/UTMetadataRequestExtensionMessageTest.cc
  3120. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  3121. Documented --interface option in man page.
  3122. * doc/aria2c.1.txt
  3123. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  3124. Try resolved address in the order received from the resolver.
  3125. * src/DNSCache.h
  3126. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  3127. Added debug logs.
  3128. * src/SocketCore.cc
  3129. 2009-12-03 Tatsuhiro Tsujikawa <[email protected]>
  3130. Fixed type of tail to uint64_t
  3131. * src/util.cc
  3132. 2009-12-03 Tatsuhiro Tsujikawa <[email protected]>
  3133. Added --interface option. This feature binds sockets to given
  3134. interface. You can specify interface name, IP address and
  3135. hostname.
  3136. * configure.ac
  3137. * src/OptionHandlerFactory.cc
  3138. * src/SocketCore.cc
  3139. * src/SocketCore.h
  3140. * src/main.cc
  3141. * src/message.h
  3142. * src/prefs.cc
  3143. * src/prefs.h
  3144. * src/usage_text.h
  3145. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  3146. Updated man page for bt-prioritize-piece option in -i list.
  3147. * doc/aria2c.1.txt
  3148. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  3149. Added bt-prioritize-piece option to -i list.
  3150. * src/download_helper.cc
  3151. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  3152. Removed --http-auth-scheme option from man page.
  3153. * doc/aria2c.1.txt
  3154. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  3155. Removed --http-auth-scheme option since it doesn't do nothing.
  3156. * src/OptionHandlerFactory.cc
  3157. * src/prefs.cc
  3158. * src/prefs.h
  3159. * src/usage_text.h
  3160. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  3161. Adjusted the number of peer info which get_peers reply message can
  3162. carry.
  3163. * src/DHTGetPeersReplyMessage.cc
  3164. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  3165. Added extension_message_test_helper.h to aria2c_SOURCES.
  3166. * test/Makefile.am
  3167. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  3168. Documented --bt-prioritize-piece option in man page.
  3169. * doc/aria2c.1.txt
  3170. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  3171. Added option --bt-prioritize-piece. This option instruct aria2 to
  3172. try to download first and last pieces of each file first. The
  3173. argument can contain 2 keywords:head and tail. To include both
  3174. keywords, they must be separated by comma. These keywords can take
  3175. one parameter, SIZE. For example , if head=SIZE is specified,
  3176. pieces in the range of first SIZE bytes of each file get higher
  3177. priority. tail=SIZE means the range of last SIZE bytes of each
  3178. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  3179. * src/DefaultPieceStorage.h
  3180. * src/Makefile.am
  3181. * src/OptionHandlerFactory.cc
  3182. * src/OptionHandlerImpl.h
  3183. * src/PriorityPieceSelector.cc
  3184. * src/PriorityPieceSelector.h
  3185. * src/RequestGroup.cc
  3186. * src/prefs.cc
  3187. * src/prefs.h
  3188. * src/usage_text.h
  3189. * src/util.cc
  3190. * src/util.h
  3191. * test/Makefile.am
  3192. * test/MockPieceSelector.h
  3193. * test/PriorityPieceSelectorTest.cc
  3194. * test/UtilTest.cc
  3195. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  3196. Fixed typo
  3197. * src/HttpRequest.h
  3198. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3199. In Magnet URI with tr parameter, put each announce URI in separate
  3200. tier.
  3201. * src/bittorrent_helper.cc
  3202. * test/BittorrentHelperTest.cc
  3203. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3204. Renamed ExtensionMessage::getBencodedData() as
  3205. ExtensionMessage::getPayload()
  3206. * src/BtExtendedMessage.cc
  3207. * src/ExtensionMessage.h
  3208. * src/HandshakeExtensionMessage.cc
  3209. * src/HandshakeExtensionMessage.h
  3210. * src/UTMetadataDataExtensionMessage.cc
  3211. * src/UTMetadataDataExtensionMessage.h
  3212. * src/UTMetadataRejectExtensionMessage.cc
  3213. * src/UTMetadataRejectExtensionMessage.h
  3214. * src/UTMetadataRequestExtensionMessage.cc
  3215. * src/UTMetadataRequestExtensionMessage.h
  3216. * src/UTPexExtensionMessage.cc
  3217. * src/UTPexExtensionMessage.h
  3218. * test/HandshakeExtensionMessageTest.cc
  3219. * test/MockExtensionMessage.h
  3220. * test/UTMetadataDataExtensionMessageTest.cc
  3221. * test/UTMetadataRejectExtensionMessageTest.cc
  3222. * test/UTMetadataRequestExtensionMessageTest.cc
  3223. * test/UTPexExtensionMessageTest.cc
  3224. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3225. Updated man page for BitTorrent Magnet URI.
  3226. * doc/aria2c.1.txt
  3227. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3228. Call DownloadContext::setOwnerRequestGroup() in
  3229. RequestGroup::setDownloadContext().
  3230. * src/BtDependency.cc
  3231. * src/RequestGroup.cc
  3232. * src/RequestGroup.h
  3233. * src/download_helper.cc
  3234. * test/DefaultBtMessageDispatcherTest.cc
  3235. * test/DefaultExtensionMessageFactoryTest.cc
  3236. * test/HandshakeExtensionMessageTest.cc
  3237. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3238. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  3239. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  3240. from metadata, use new metadata2Torrent() function.
  3241. * src/BtDependency.cc
  3242. * src/UTMetadataPostDownloadHandler.cc
  3243. * src/bittorrent_helper.cc
  3244. * src/bittorrent_helper.h
  3245. * test/BittorrentHelperTest.cc
  3246. * test/BtDependencyTest.cc
  3247. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3248. Use createRequestGroupForUri to create the download for torrent
  3249. file.
  3250. * src/Metalink2RequestGroup.cc
  3251. * test/Metalink2RequestGroupTest.cc
  3252. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3253. Fixed typo
  3254. * src/DownloadContext.h
  3255. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3256. Use createRequestGroupForBitTorrent()
  3257. * src/BtPostDownloadHandler.cc
  3258. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3259. Added remove().
  3260. * src/Option.cc
  3261. * src/Option.h
  3262. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3263. Removed options which is only valid for URIs specified in
  3264. command-line. If they are left, because op is used as a template
  3265. for new RequestGroup(such as created in XML-RPC command,
  3266. BtPostDownloadHandler etc), they causes unintentional effect.
  3267. * src/main.cc
  3268. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3269. Refer to option value of PREF_OUT only in download_helper.
  3270. * src/FtpNegotiationCommand.cc
  3271. * src/HttpResponseCommand.cc
  3272. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  3273. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  3274. * src/download_helper.cc
  3275. * src/download_helper.h
  3276. * src/XmlRpcMethodImpl.cc
  3277. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  3278. Updated man page for changeOption XML-RPC method.
  3279. * doc/aria2c.1.txt
  3280. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  3281. Added --bt-max-peers option to changeOption XML-RPC method.
  3282. * src/XmlRpcMethod.cc
  3283. * src/XmlRpcMethodImpl.cc
  3284. * test/XmlRpcMethodTest.cc
  3285. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  3286. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  3287. * test/XmlRpcMethodTest.cc
  3288. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  3289. Removed redundant DownloadContext::hasAttribute(...) calls.
  3290. * src/ConsoleStatCalc.cc
  3291. * src/RequestGroup.cc
  3292. * src/XmlRpcMethodImpl.cc
  3293. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  3294. Changed the number of tracker request attempt from 5 to 2.
  3295. * src/TrackerWatcherCommand.cc
  3296. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  3297. Use host and protocol in original URI, because URI selector
  3298. selects URI based on original URI, not redirected one.
  3299. * src/Request.cc
  3300. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  3301. Fixed the bug which causes segmentation fault with tellWaiting
  3302. XML-RPC method when BitTorrent download is waiting. The key of
  3303. BtRegistry is changed from info hash to GID, because it is
  3304. registered per RequestGroup, not info hash.
  3305. * src/BtRegistry.cc
  3306. * src/BtRegistry.h
  3307. * src/BtSetup.cc
  3308. * src/ConsoleStatCalc.cc
  3309. * src/InitiatorMSEHandshakeCommand.cc
  3310. * src/PeerInitiateConnectionCommand.cc
  3311. * src/PeerInteractionCommand.cc
  3312. * src/PeerInteractionCommand.h
  3313. * src/PeerReceiveHandshakeCommand.cc
  3314. * src/RequestGroup.cc
  3315. * src/XmlRpcMethodImpl.cc
  3316. * test/BtRegistryTest.cc
  3317. * test/XmlRpcMethodTest.cc
  3318. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  3319. Updated man page for changeOption XML-RPC method.
  3320. * doc/aria2c.1.txt
  3321. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  3322. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  3323. method.
  3324. * src/XmlRpcMethod.cc
  3325. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  3326. Documented about BitTorrent Magnet URI in man page.
  3327. * doc/aria2c.1.txt
  3328. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  3329. Fixed the bug that trackers in BitTorrent Magnet URI are not
  3330. inherited to generated RequestGroup.
  3331. * src/UTMetadataPostDownloadHandler.cc
  3332. * test/UTMetadataPostDownloadHandlerTest.cc
  3333. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  3334. Prepended "[METADATA]" before dn.
  3335. * src/bittorrent_helper.cc
  3336. * test/BittorrentHelperTest.cc
  3337. 2009-11-24 Tatsuhiro Tsujikawa <[email protected]>
  3338. Rewritten Magnet URI parser.
  3339. * src/Makefile.am
  3340. * src/ProtocolDetector.cc
  3341. * src/bittorrent_helper.cc
  3342. * src/bittorrent_helper.h
  3343. * src/download_helper.cc
  3344. * src/magnet.cc
  3345. * src/magnet.h
  3346. * test/BittorrentHelperTest.cc
  3347. * test/MagnetTest.cc
  3348. * test/Makefile.am
  3349. * test/ProtocolDetectorTest.cc
  3350. 2009-11-24 Tatsuhiro Tsujikawa <[email protected]>
  3351. Use hton64
  3352. * src/base32.cc
  3353. 2009-11-24 Tatsuhiro Tsujikawa <[email protected]>
  3354. Added Base32 encoded BitTorrent Magnet Link support.
  3355. * src/Makefile.am
  3356. * src/base32.cc
  3357. * src/base32.h
  3358. * src/bittorrent_helper.cc
  3359. * test/Base32Test.cc
  3360. * test/BittorrentHelperTest.cc
  3361. * test/Makefile.am
  3362. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  3363. Added BitTorrent Magnet Link support. Base32 encoded link is not
  3364. supported yet. Fixed typo in method name in RequestGroup. In
  3365. metadataGetMode, don't show "Your share ratio was ..." message.
  3366. * src/DefaultBtInteractive.cc
  3367. * src/DefaultBtInteractive.h
  3368. * src/DownloadHandlerFactory.cc
  3369. * src/DownloadHandlerFactory.h
  3370. * src/HandshakeExtensionMessage.cc
  3371. * src/Makefile.am
  3372. * src/Metalink2RequestGroup.cc
  3373. * src/PeerInteractionCommand.cc
  3374. * src/RequestGroup.cc
  3375. * src/RequestGroup.h
  3376. * src/UTMetadataPostDownloadHandler.cc
  3377. * src/UTMetadataPostDownloadHandler.h
  3378. * src/download_helper.cc
  3379. * test/HandshakeExtensionMessageTest.cc
  3380. * test/Makefile.am
  3381. * test/UTMetadataPostDownloadHandlerTest.cc
  3382. * test/UTMetadataRejectExtensionMessageTest.cc
  3383. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  3384. In metadataGetMode, don't show SEEDING.
  3385. * src/ConsoleStatCalc.cc
  3386. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  3387. Fixed ut_metadata data handling. Implemented
  3388. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  3389. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  3390. metadata_size is received.
  3391. * src/DefaultExtensionMessageFactory.cc
  3392. * src/DefaultExtensionMessageFactory.h
  3393. * src/HandshakeExtensionMessage.cc
  3394. * src/HandshakeExtensionMessage.h
  3395. * src/UTMetadataDataExtensionMessage.cc
  3396. * src/UTMetadataDataExtensionMessage.h
  3397. * src/UTMetadataRequestExtensionMessage.cc
  3398. * src/UTMetadataRequestFactory.cc
  3399. * src/UTMetadataRequestFactory.h
  3400. * src/UTMetadataRequestTracker.cc
  3401. * src/UTMetadataRequestTracker.h
  3402. * test/DefaultExtensionMessageFactoryTest.cc
  3403. * test/HandshakeExtensionMessageTest.cc
  3404. * test/MockBtMessage.h
  3405. * test/UTMetadataDataExtensionMessageTest.cc
  3406. * test/UTMetadataRequestExtensionMessageTest.cc
  3407. * test/UTMetadataRequestFactoryTest.cc
  3408. * test/UTMetadataRequestTrackerTest.cc
  3409. * test/extension_message_test_helper.h
  3410. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  3411. Drop connection if ut_metadata reject message is received.
  3412. * src/UTMetadataRejectExtensionMessage.cc
  3413. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  3414. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  3415. get high enough in that mode.
  3416. * src/ActivePeerConnectionCommand.cc
  3417. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3418. Added BitTorrent magnet link support to ProtocolDetector.
  3419. * src/ProtocolDetector.cc
  3420. * src/ProtocolDetector.h
  3421. * test/ProtocolDetectorTest.cc
  3422. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3423. Don't inject validator into BtMessage in metadataGetMode because
  3424. most of the checks depends on the total length of download but it
  3425. is unknown. Delegate metadataGetMode to BtMessage.
  3426. * src/DefaultBtMessageFactory.cc
  3427. * src/DefaultBtMessageFactory.h
  3428. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3429. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  3430. * src/DefaultPieceStorage.h
  3431. * src/PieceStorage.h
  3432. * src/UnknownLengthPieceStorage.h
  3433. * test/MockPieceStorage.h
  3434. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3435. Added markTotalLengthIsKnown().
  3436. * src/DownloadContext.h
  3437. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3438. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  3439. missing. If metadata is missing, always use DHT when it is ready.
  3440. * src/BtSetup.cc
  3441. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3442. Added parseMagnetLink(). Hex encoded info hash is supported.
  3443. Base32 encoded info hash is not supported yet.
  3444. * src/bittorrent_helper.cc
  3445. * src/bittorrent_helper.h
  3446. * test/BittorrentHelperTest.cc
  3447. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3448. Added FromHex()
  3449. * src/util.cc
  3450. * src/util.h
  3451. * test/UtilTest.cc
  3452. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3453. Added _metadataGetMode member variable. It toggles the action when
  3454. messages are received: usually they almost do nothing if
  3455. _metadataGetMode is true.
  3456. * src/AbstractBtMessage.cc
  3457. * src/AbstractBtMessage.h
  3458. * src/BtAllowedFastMessage.cc
  3459. * src/BtBitfieldMessage.cc
  3460. * src/BtCancelMessage.cc
  3461. * src/BtChokeMessage.cc
  3462. * src/BtHaveAllMessage.cc
  3463. * src/BtHaveMessage.cc
  3464. * src/BtInterestedMessage.cc
  3465. * src/BtNotInterestedMessage.cc
  3466. * src/BtPieceMessage.cc
  3467. * src/BtRejectMessage.cc
  3468. * src/BtRequestMessage.cc
  3469. * src/BtUnchokeMessage.cc
  3470. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3471. Added bencode::decode overload functions. They have extra argument
  3472. 'end', passed by reference. 'end' points to the beyond the last
  3473. position of data used in decoding process.
  3474. * src/bencode.cc
  3475. * src/bencode.h
  3476. * test/BencodeTest.cc
  3477. 2009-11-21 Tatsuhiro Tsujikawa <[email protected]>
  3478. Initial support of Extension for Peers to Send Metadata
  3479. Files(BEP9). Currently aria2 only serves metadata and cannot get
  3480. metadata from swarm.
  3481. * src/BtConstants.h
  3482. * src/DefaultBtInteractive.cc
  3483. * src/DefaultExtensionMessageFactory.cc
  3484. * src/DefaultExtensionMessageFactory.h
  3485. * src/ExtensionMessage.h
  3486. * src/ExtensionMessageRegistry.h
  3487. * src/HandshakeExtensionMessage.cc
  3488. * src/HandshakeExtensionMessage.h
  3489. * src/Makefile.am
  3490. * src/PeerConnection.h
  3491. * src/PeerInteractionCommand.cc
  3492. * src/UTMetadataDataExtensionMessage.cc
  3493. * src/UTMetadataDataExtensionMessage.h
  3494. * src/UTMetadataExtensionMessage.cc
  3495. * src/UTMetadataExtensionMessage.h
  3496. * src/UTMetadataRejectExtensionMessage.cc
  3497. * src/UTMetadataRejectExtensionMessage.h
  3498. * src/UTMetadataRequestExtensionMessage.cc
  3499. * src/UTMetadataRequestExtensionMessage.h
  3500. * src/bittorrent_helper.cc
  3501. * src/bittorrent_helper.h
  3502. * test/BittorrentHelperTest.cc
  3503. * test/DefaultExtensionMessageFactoryTest.cc
  3504. * test/HandshakeExtensionMessageTest.cc
  3505. * test/Makefile.am
  3506. * test/UTMetadataDataExtensionMessageTest.cc
  3507. * test/UTMetadataRejectExtensionMessageTest.cc
  3508. * test/UTMetadataRequestExtensionMessageTest.cc
  3509. 2009-11-21 Tatsuhiro Tsujikawa <[email protected]>
  3510. Cancel segment in prepareForRetry() because there is a chance that
  3511. the command has segments.
  3512. * src/CreateRequestCommand.cc
  3513. 2009-11-20 Tatsuhiro Tsujikawa <[email protected]>
  3514. Fixed the bug that slow server is not knocked down in favor of
  3515. faster one.
  3516. * src/AbstractCommand.cc
  3517. * src/DefaultPieceStorage.cc
  3518. * src/DefaultPieceStorage.h
  3519. * src/PieceStorage.h
  3520. * src/UnknownLengthPieceStorage.cc
  3521. * src/UnknownLengthPieceStorage.h
  3522. * test/MockPieceStorage.h
  3523. 2009-11-20 Tatsuhiro Tsujikawa <[email protected]>
  3524. Fixed the bug that Request object is not added to
  3525. _inFlightRequests in findFasterRequest().
  3526. * src/FileEntry.cc
  3527. 2009-11-18 Tatsuhiro Tsujikawa <[email protected]>
  3528. Changed the strategry of how to increase the number of outstanding
  3529. requests. Now the number is doubled if there are no outstanding
  3530. requests after receiving messages.
  3531. * src/BtConstants.h
  3532. * src/DefaultBtInteractive.cc
  3533. * src/DefaultBtInteractive.h
  3534. 2009-11-18 Tatsuhiro Tsujikawa <[email protected]>
  3535. Check socket for reading if there are outstanding requests.
  3536. * src/PeerInteractionCommand.cc
  3537. 2009-11-17 Tatsuhiro Tsujikawa <[email protected]>
  3538. Moved frequently called methods to header file so they get
  3539. inlined.
  3540. * src/RequestSlot.cc
  3541. * src/RequestSlot.h
  3542. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3543. Copied in_addr instead of just casting from char* which might
  3544. violate strict aliasing rules.
  3545. * src/AsyncNameResolver.cc
  3546. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3547. Use dynamic_pointer_cast
  3548. * test/BtPieceMessageTest.cc
  3549. * test/BtRequestMessageTest.cc
  3550. * test/DefaultBtRequestFactoryTest.cc
  3551. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3552. Added testSetUrl20()
  3553. * test/RequestTest.cc
  3554. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3555. Code cleanup
  3556. * src/bittorrent_helper.cc
  3557. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3558. Use C++ style cast
  3559. * src/AsyncNameResolver.cc
  3560. * src/Base64.h
  3561. * src/BtBitfieldMessage.cc
  3562. * src/BtHandshakeMessage.cc
  3563. * src/DefaultBtMessageFactory.cc
  3564. * src/DefaultBtProgressInfoFile.cc
  3565. * src/EpollEventPoll.cc
  3566. * src/ExpatMetalinkProcessor.cc
  3567. * src/IteratableChecksumValidator.cc
  3568. * src/IteratableChunkChecksumValidator.cc
  3569. * src/MessageDigestHelper.cc
  3570. * src/Platform.cc
  3571. * src/RequestGroupMan.cc
  3572. * src/SingleFileAllocationIterator.cc
  3573. * src/Sqlite3MozCookieParser.cc
  3574. * src/XML2SAXMetalinkProcessor.cc
  3575. * src/Xml2XmlRpcRequestProcessor.cc
  3576. * src/util.cc
  3577. * src/util.h
  3578. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3579. Fixed integer potential alignment problem.
  3580. * src/bitfield.h
  3581. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3582. Applied a patch from tizianomueller to fix sigbus errors on Linux
  3583. sparc. I modified the patch to eliminate a cast to uint32_t* and
  3584. include file ordering.
  3585. * src/PeerListProcessor.h
  3586. * src/bittorrent_helper.cc
  3587. 2009-11-13 Tatsuhiro Tsujikawa <[email protected]>
  3588. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  3589. * src/Request.cc
  3590. * src/util.cc
  3591. * src/util.h
  3592. * test/RequestTest.cc
  3593. 2009-11-13 Tatsuhiro Tsujikawa <[email protected]>
  3594. Rewritten util::uitos()
  3595. * src/util.h
  3596. 2009-11-13 Tatsuhiro Tsujikawa <[email protected]>
  3597. Code cleanup
  3598. * src/Request.cc
  3599. * src/Request.h
  3600. 2009-11-12 Tatsuhiro Tsujikawa <[email protected]>
  3601. Rewritten Request::parseUrl()
  3602. * src/Request.cc
  3603. * test/RequestTest.cc
  3604. 2009-11-11 Tatsuhiro Tsujikawa <[email protected]>
  3605. Removed unused macro SAFE_CHARS
  3606. * src/Request.cc
  3607. 2009-11-11 Tatsuhiro Tsujikawa <[email protected]>
  3608. Updated doc
  3609. * src/DHTRoutingTableDeserializer.cc
  3610. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3611. Release 1.6.3
  3612. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3613. Removed unused function.
  3614. * test/DHTPeerAnnounceStorageTest.cc
  3615. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3616. Only decrement cols if cols > 0
  3617. * src/ConsoleStatCalc.cc
  3618. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3619. Updated Polish, Catalan, French, Italian, Russian and Japanese
  3620. translations. Thanks to all translators.
  3621. * po/ca.po
  3622. * po/fr.po
  3623. * po/it.po
  3624. * po/ja.po
  3625. * po/pl.po
  3626. * po/ru.po
  3627. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3628. Updated translation template
  3629. * po
  3630. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3631. Fixed compile error without ssl library.
  3632. * src/util.cc
  3633. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3634. Logged received nodes in get_peers reply message.
  3635. * src/DHTAbstractNodeLookupTask.cc
  3636. * src/DHTAbstractNodeLookupTask.h
  3637. 2009-11-01 Tatsuhiro Tsujikawa <[email protected]>
  3638. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  3639. error occurred in DHTMessageDispatcherImpl::sendMessage().
  3640. * src/DHTMessageDispatcherImpl.cc
  3641. 2009-11-01 Tatsuhiro Tsujikawa <[email protected]>
  3642. Don't reuse URI if Request pool is not empty.
  3643. * src/CreateRequestCommand.cc
  3644. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  3645. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  3646. receive get_peers request for torrent which the client is now
  3647. downloading.
  3648. * src/BtSetup.cc
  3649. * src/DHTPeerAnnounceEntry.cc
  3650. * src/DHTPeerAnnounceEntry.h
  3651. * src/DHTPeerAnnounceStorage.cc
  3652. * src/DHTPeerAnnounceStorage.h
  3653. * src/RequestGroup.cc
  3654. * test/DHTPeerAnnounceEntryTest.cc
  3655. * test/DHTPeerAnnounceStorageTest.cc
  3656. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  3657. Fixed the bug that in Windows environment new blank line is
  3658. inserted when console readout is updated.
  3659. * src/ConsoleStatCalc.cc
  3660. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  3661. Throw exception if binding listening port is failed. Removed
  3662. RequestGroupMan::getInitialCommand(). Use
  3663. fillRequestGroupFromReserver() instead. Delete commands for
  3664. RequestGroup which has errors when it is being added.
  3665. * src/BtSetup.cc
  3666. * src/DownloadEngine.cc
  3667. * src/DownloadEngine.h
  3668. * src/DownloadEngineFactory.cc
  3669. * src/MultiUrlRequestInfo.cc
  3670. * src/RequestGroupMan.cc
  3671. * src/RequestGroupMan.h
  3672. * test/RequestGroupManTest.cc
  3673. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  3674. Fixed the bug that when downloading more than one torrent,
  3675. listening port is not reported properly to tracker for 2nd or
  3676. later torrents.
  3677. * src/BtSetup.cc
  3678. * src/PeerListenCommand.cc
  3679. * src/PeerListenCommand.h
  3680. * src/RequestGroup.cc
  3681. 2009-10-29 Tatsuhiro Tsujikawa <[email protected]>
  3682. Bump up version number to 1.6.3
  3683. * configure.ac
  3684. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  3685. Removed Util.cc from POTFILES.in
  3686. * po/POTFILES.in
  3687. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  3688. Updated man page for previous change.
  3689. * doc/aria2c.1.txt
  3690. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  3691. If user name is embedded but password is missing in URI, first
  3692. resolve password using .netrc. If password is found in .netrc,
  3693. then use it as password. If not, use the password specified in
  3694. --ftp-passwd.
  3695. * src/AuthConfigFactory.cc
  3696. * src/Request.cc
  3697. * src/Request.h
  3698. * test/AuthConfigFactoryTest.cc
  3699. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  3700. Fixed typo
  3701. * doc/aria2c.1.txt
  3702. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  3703. Fixed typo
  3704. * src/usage_text.h
  3705. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  3706. Added missing bitfield.cc
  3707. * src/bitfield.cc
  3708. 2009-10-23 Tatsuhiro Tsujikawa <[email protected]>
  3709. Renamed Util.{cc,h} as util.{cc,h}
  3710. * src/Util.cc
  3711. * src/Util.h
  3712. * src/util.cc
  3713. * src/util.h
  3714. 2009-10-22 Tatsuhiro Tsujikawa <[email protected]>
  3715. Moved static functions in Util class to namespace util.
  3716. * src
  3717. * test
  3718. 2009-10-22 Tatsuhiro Tsujikawa <[email protected]>
  3719. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  3720. Moved generateRandomKey to bittorrent_helper.cc.
  3721. * src/DHTBucket.cc
  3722. * src/DHTGetPeersMessage.cc
  3723. * src/DHTGetPeersReplyMessage.cc
  3724. * src/DHTMessage.cc
  3725. * src/DHTNode.cc
  3726. * src/DHTTokenTracker.cc
  3727. * src/DHTUtil.cc: Removed.
  3728. * src/DHTUtil.h: Removed.
  3729. * src/Makefile.am
  3730. * src/Util.cc
  3731. * src/Util.h
  3732. * src/bitfield.h
  3733. * src/bittorrent_helper.cc
  3734. * src/bittorrent_helper.h
  3735. * test/ARC4Test.cc
  3736. * test/BNodeTest.cc
  3737. * test/DHTAnnouncePeerMessageTest.cc
  3738. * test/DHTAnnouncePeerReplyMessageTest.cc
  3739. * test/DHTFindNodeMessageTest.cc
  3740. * test/DHTFindNodeReplyMessageTest.cc
  3741. * test/DHTGetPeersMessageTest.cc
  3742. * test/DHTGetPeersReplyMessageTest.cc
  3743. * test/DHTPingMessageTest.cc
  3744. * test/DHTPingReplyMessageTest.cc
  3745. * test/DHTTokenTrackerTest.cc
  3746. * test/DHTUtilTest.cc: Removed.
  3747. * test/Makefile.am
  3748. * test/UtilTest.cc
  3749. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  3750. Removed the call to trim() because trim() is called for each
  3751. element in split().
  3752. * src/CookieParser.cc
  3753. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  3754. Replaced Util::slice() with split()
  3755. * src/AbstractCommand.cc
  3756. * src/CookieParser.cc
  3757. * src/File.cc
  3758. * src/HttpHeaderProcessor.cc
  3759. * src/HttpRequest.cc
  3760. * src/Metalink2RequestGroup.cc
  3761. * src/MetalinkParserController.cc
  3762. * src/Netrc.cc
  3763. * src/NsCookieParser.cc
  3764. * src/ParameterizedStringParser.cc
  3765. * src/ServerStatMan.cc
  3766. * src/UriListParser.cc
  3767. * src/Util.cc
  3768. * src/Util.h
  3769. * src/bittorrent_helper.cc
  3770. * test/UtilTest.cc
  3771. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  3772. Use request->getDir() instead of "/" for embedded user/pass in
  3773. URI.
  3774. * src/AuthConfigFactory.cc
  3775. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  3776. Fixed wrong insertion point for BasicCred.
  3777. * src/AuthConfigFactory.cc
  3778. 2009-10-17 Tatsuhiro Tsujikawa <[email protected]>
  3779. Allowed non-regular file in LocalFilePathOptionHandler
  3780. * src/OptionHandlerImpl.h
  3781. * src/message.h
  3782. 2009-10-17 Tatsuhiro Tsujikawa <[email protected]>
  3783. Fixed the bug that Netrc::parse() cannot recognize comment line.
  3784. * src/Netrc.cc
  3785. * src/Util.h
  3786. * test/NetrcTest.cc
  3787. * test/sample.netrc
  3788. 2009-10-13 Tatsuhiro Tsujikawa <[email protected]>
  3789. Fixed typo
  3790. * src/BtDependency.cc
  3791. * src/BtRejectMessage.cc
  3792. * src/FtpConnection.cc
  3793. * src/HttpHeaderProcessor.h
  3794. 2009-10-13 Tatsuhiro Tsujikawa <[email protected]>
  3795. Fixed lintian report in man page
  3796. * doc/aria2c.1.txt
  3797. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3798. Release 1.6.2
  3799. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3800. Updated Ukrainian translation. Thanks to all translators.
  3801. * po/uk.po
  3802. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3803. Updated translation template
  3804. * po
  3805. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3806. Bump up version number to 1.6.2
  3807. * configure.ac
  3808. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3809. Updated licence message in -v output.
  3810. * src/version_usage.cc
  3811. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3812. Replaced aria2 with aria2c in help message.
  3813. * src/version_usage.cc
  3814. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3815. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  3816. * src/version_usage.cc
  3817. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3818. Quoted localedir
  3819. * src/Makefile.am
  3820. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3821. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  3822. utime. Check header for utime.h.
  3823. * configure.ac
  3824. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3825. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  3826. * configure.ac
  3827. * src/daemon.cc
  3828. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3829. Don't set localedir manually. Leave it to autoconf.
  3830. * configure.ac
  3831. * src/Makefile.am
  3832. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3833. Added --install to ACLOCAL_AMFLAGS.
  3834. Removed m4 from SUBDIRS.
  3835. Updated automake 1.11 and autoconf 2.64.
  3836. Replaced some obsolute macros with new one.
  3837. * Makefile.am
  3838. * configure.ac
  3839. * m4/aria2_arg.m4
  3840. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3841. Removed Makefile.am in m4 directory.
  3842. * configure.ac
  3843. * m4/ChangeLog
  3844. * m4/Makefile.am
  3845. * m4/Makefile.in
  3846. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3847. Removed unused m4 macros.
  3848. * m4/intldir.m4
  3849. * m4/inttypes.m4
  3850. * m4/isc-posix.m4
  3851. * m4/libgnutls-extra.m4
  3852. * m4/ulonglong.m4
  3853. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3854. Fixed the bug that causes segmentation fault if
  3855. req->getCurrentUrl() contains printf formatting characters such as
  3856. %d. The statement that causes this bug is useless and removed.
  3857. * src/AbstractCommand.cc
  3858. 2009-10-07 Tatsuhiro Tsujikawa <[email protected]>
  3859. * Release 1.6.1
  3860. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  3861. Updated Simplified Chinese translation. Thanks to translators.
  3862. * po/zh_CN.po
  3863. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  3864. Updated translation template
  3865. * po
  3866. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  3867. Bump up version number to 1.6.1
  3868. * configure.ac
  3869. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  3870. Changed interval from 120 to 60 for dropping inactive peer.
  3871. * src/DefaultBtInteractive.cc
  3872. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  3873. Updated man page for --user-agent and --peer-id-prefix option.
  3874. * doc/aria2c.1.txt
  3875. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  3876. Code clean up
  3877. * src/BtPostDownloadHandler.cc
  3878. * src/ContentTypeRequestGroupCriteria.cc
  3879. * src/ContentTypeRequestGroupCriteria.h
  3880. * src/DownloadHandlerConstants.cc
  3881. * src/DownloadHandlerConstants.h
  3882. * src/DownloadHandlerFactory.cc
  3883. * src/MetalinkPostDownloadHandler.cc
  3884. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  3885. Don't save control file when aria2 exists while checking piece
  3886. hash(behavior of -V option). If control file doesn't exist when
  3887. aria2 launched, the completed length in saved control file will be
  3888. 0 byte and this confuses user. disableSaveControlFile() is called
  3889. in RequestGroup::processCheckIntegrityEntry().
  3890. enableSaveControlFile() will be called after hash checking is
  3891. done. See CheckIntegrityCommand.
  3892. * src/CheckIntegrityCommand.cc
  3893. * src/RequestGroup.cc
  3894. * src/RequestGroup.h
  3895. * src/RequestGroupMan.cc
  3896. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  3897. Included version number in Peer ID and client version. Peer ID
  3898. now starts with "aria2/VERSION-", where VERSION is
  3899. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  3900. * src/DefaultBtInteractive.cc
  3901. * src/OptionHandlerFactory.cc
  3902. * src/bittorrent_helper.cc
  3903. * src/bittorrent_helper.h
  3904. * src/main.cc
  3905. * src/usage_text.h
  3906. * test/BittorrentHelperTest.cc
  3907. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  3908. Fixed memory leak.
  3909. * src/DownloadCommand.cc
  3910. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  3911. Removed server, port, user and passwd key from options before
  3912. XMLRPC::Client.call since they are not options of aria2.
  3913. * doc/xmlrpc/aria2mon
  3914. * doc/xmlrpc/aria2rpc
  3915. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  3916. Included version number in user-agent string.
  3917. * src/OptionHandlerFactory.cc
  3918. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  3919. Fixed the bug that the option values changed by XML-RPC
  3920. method(changeOption and changeGlobalOption) are overwritten to the
  3921. previous value by the next these request which doesn't contain
  3922. that option value. Supporse max-download-limit is initially 0. You
  3923. changed this value to 100K by changeOption. Then you issue
  3924. changeOption request to change max-upload-limit to 50K. This
  3925. second request doesn't contain xml-download-limit, so it is back
  3926. to initial value, 0. Another improvement is that exception is
  3927. thrown when changeOption and changeGlobalOption request contains
  3928. option name which doesn't allowed in each request.
  3929. * src/DownloadEngine.h
  3930. * src/XmlRpcMethod.cc
  3931. * src/XmlRpcMethod.h
  3932. * src/XmlRpcMethodImpl.cc
  3933. * src/download_helper.cc
  3934. * src/download_helper.h
  3935. * test/XmlRpcMethodTest.cc
  3936. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  3937. Added missing MetalinkParserStateImpl.{cc,h}
  3938. * src/MetalinkParserStateImpl.cc
  3939. * src/MetalinkParserStateImpl.h
  3940. 2009-10-03 Tatsuhiro Tsujikawa <[email protected]>
  3941. Put all MetalinkParserState subclasses into
  3942. MetalinkParserStateImpl.cc. Use stack to track element structure.
  3943. * src/FileMetalinkParserState.cc: Removed
  3944. * src/FileMetalinkParserState.h: Removed
  3945. * src/FilesMetalinkParserState.cc: Removed
  3946. * src/FilesMetalinkParserState.h: Removed
  3947. * src/FinMetalinkParserState.cc: Removed
  3948. * src/FinMetalinkParserState.h: Removed
  3949. * src/HashMetalinkParserState.cc: Removed
  3950. * src/HashMetalinkParserState.h: Removed
  3951. * src/InitialMetalinkParserState.cc: Removed
  3952. * src/InitialMetalinkParserState.h: Removed
  3953. * src/LanguageMetalinkParserState.cc: Removed
  3954. * src/LanguageMetalinkParserState.h: Removed
  3955. * src/Makefile.am
  3956. * src/MetalinkMetalinkParserState.cc: Removed
  3957. * src/MetalinkMetalinkParserState.h: Removed
  3958. * src/MetalinkParserState.h
  3959. * src/MetalinkParserStateMachine.cc
  3960. * src/MetalinkParserStateMachine.h
  3961. * src/OSMetalinkParserState.cc: Removed
  3962. * src/OSMetalinkParserState.h: Removed
  3963. * src/PieceHashMetalinkParserState.cc: Removed
  3964. * src/PieceHashMetalinkParserState.h: Removed
  3965. * src/PiecesMetalinkParserState.cc: Removed
  3966. * src/PiecesMetalinkParserState.h: Removed
  3967. * src/ResourcesMetalinkParserState.cc: Removed
  3968. * src/ResourcesMetalinkParserState.h: Removed
  3969. * src/SignatureMetalinkParserState.cc: Removed
  3970. * src/SignatureMetalinkParserState.h: Removed
  3971. * src/SizeMetalinkParserState.cc: Removed
  3972. * src/SizeMetalinkParserState.h: Removed
  3973. * src/SkipTagMetalinkParserState.cc: Removed
  3974. * src/SkipTagMetalinkParserState.h: Removed
  3975. * src/URLMetalinkParserState.cc: Removed
  3976. * src/URLMetalinkParserState.h: Removed
  3977. * src/VerificationMetalinkParserState.cc: Removed
  3978. * src/VerificationMetalinkParserState.h: Removed
  3979. * src/VersionMetalinkParserState.cc: Removed
  3980. * src/VersionMetalinkParserState.h: Removed
  3981. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  3982. Move all functions in PeerMessageUtil to bittorrent_helper.
  3983. * src/BtBitfieldMessage.cc
  3984. * src/BtBitfieldMessageValidator.h
  3985. * src/BtExtendedMessage.cc
  3986. * src/BtHandshakeMessage.cc
  3987. * src/BtHandshakeMessageValidator.h
  3988. * src/BtPieceMessage.cc
  3989. * src/BtPieceMessageValidator.h
  3990. * src/BtPortMessage.cc
  3991. * src/DHTFindNodeReplyMessage.cc
  3992. * src/DHTGetPeersReplyMessage.cc
  3993. * src/DHTMessageFactoryImpl.cc
  3994. * src/DHTRoutingTableDeserializer.cc
  3995. * src/DHTRoutingTableSerializer.cc
  3996. * src/DHTTokenTracker.cc
  3997. * src/DefaultBtMessageFactory.cc
  3998. * src/IndexBtMessage.cc
  3999. * src/IndexBtMessage.h
  4000. * src/IndexBtMessageValidator.h
  4001. * src/Makefile.am
  4002. * src/PeerMessageUtil.cc: Removed.
  4003. * src/PeerMessageUtil.h: Removed.
  4004. * src/RangeBtMessage.cc
  4005. * src/RangeBtMessage.h
  4006. * src/RangeBtMessageValidator.h
  4007. * src/UTPexExtensionMessage.cc
  4008. * src/ZeroBtMessage.cc
  4009. * src/ZeroBtMessage.h
  4010. * src/bittorrent_helper.cc
  4011. * src/bittorrent_helper.h
  4012. * test/BittorrentHelperTest.cc
  4013. * test/BtAllowedFastMessageTest.cc
  4014. * test/BtBitfieldMessageTest.cc
  4015. * test/BtCancelMessageTest.cc
  4016. * test/BtChokeMessageTest.cc
  4017. * test/BtExtendedMessageTest.cc
  4018. * test/BtHandshakeMessageTest.cc
  4019. * test/BtHaveAllMessageTest.cc
  4020. * test/BtHaveMessageTest.cc
  4021. * test/BtHaveNoneMessageTest.cc
  4022. * test/BtInterestedMessageTest.cc
  4023. * test/BtNotInterestedMessageTest.cc
  4024. * test/BtPieceMessageTest.cc
  4025. * test/BtPortMessageTest.cc
  4026. * test/BtRejectMessageTest.cc
  4027. * test/BtRequestMessageTest.cc
  4028. * test/BtSuggestPieceMessageTest.cc
  4029. * test/BtUnchokeMessageTest.cc
  4030. * test/DHTFindNodeReplyMessageTest.cc
  4031. * test/DHTGetPeersReplyMessageTest.cc
  4032. * test/DHTMessageFactoryImplTest.cc
  4033. * test/DHTRoutingTableDeserializerTest.cc
  4034. * test/DHTRoutingTableSerializerTest.cc
  4035. * test/DefaultBtMessageFactoryTest.cc
  4036. * test/DefaultExtensionMessageFactoryTest.cc
  4037. * test/Makefile.am
  4038. * test/PeerListProcessorTest.cc
  4039. * test/PeerMessageUtilTest.cc: Removed.
  4040. * test/UTPexExtensionMessageTest.cc
  4041. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  4042. Limit the size of values list when sending get_peers reply.
  4043. * src/DHTGetPeersReplyMessage.cc
  4044. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  4045. Updated banner
  4046. * doc/xmlrpc/aria2rpc
  4047. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  4048. Added missing help message for remove command.
  4049. * doc/xmlrpc/aria2rpc
  4050. 2009-09-24 Tatsuhiro Tsujikawa <[email protected]>
  4051. Generated configure and config.h.in
  4052. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  4053. Add check for fork(), which is missing on MinGW
  4054. * src/daemon.cc
  4055. * configure.ac
  4056. 2009-09-23 Tatsuhiro Tsujikawa <[email protected]>
  4057. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  4058. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  4059. Util::httpGMT().
  4060. * src/Util.cc
  4061. * src/Util.h
  4062. * test/UtilTest.cc
  4063. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  4064. * Release 1.6.0
  4065. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  4066. Fixed a path to xmlrpc/README.txt
  4067. * doc/Makefile.am
  4068. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  4069. Added XML-RPC in -v Configuration output.
  4070. * src/FeatureConfig.cc
  4071. * src/FeatureConfig.h
  4072. * test/FeatureConfigTest.cc
  4073. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  4074. Updated Bulgarian, Russian, Slovak and Japanese
  4075. translations. Thanks to all translators.
  4076. * po/bg.po
  4077. * po/ja.po
  4078. * po/ru.po
  4079. * po/sk.po
  4080. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  4081. Removed --retry-wait option from aria2rpc
  4082. * doc/xmlrpc/aria2rpc
  4083. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  4084. Removed --retry-wait option from man page.
  4085. * doc/aria2c.1.txt
  4086. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  4087. Removed --retry-wait option since the current architecture doesn't
  4088. allow sleep for particular URI.
  4089. * src/AbstractCommand.cc
  4090. * src/OptionHandlerFactory.cc
  4091. * src/download_helper.cc
  4092. * src/prefs.cc
  4093. * src/prefs.h
  4094. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  4095. Removed Retry-After header support. Since the current architecture
  4096. doesn't allow sleep for particular URI.
  4097. * src/HttpSkipResponseCommand.cc
  4098. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  4099. Updated the help message for --daemon option.
  4100. * doc/aria2c.1.txt
  4101. * src/usage_text.h
  4102. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  4103. Added our own daemon() function for systems which desn't have
  4104. daemon(3).
  4105. * configure.ac
  4106. * src/Makefile.am
  4107. * src/daemon.cc
  4108. * src/daemon.h
  4109. * src/option_processing.cc
  4110. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  4111. Simplified File::getCurrentDir()
  4112. * src/File.cc
  4113. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  4114. Use exit() instead of _exit
  4115. * src/RequestGroupMan.cc
  4116. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  4117. Replaced "CATEGORY" with "TAGS".
  4118. * src/usage_text.h
  4119. * doc/aria2c.1.txt
  4120. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  4121. Updated the help message for --help option.
  4122. * src/usage_text.h
  4123. * doc/aria2c.1.txt
  4124. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  4125. Updated man page for added help tags.
  4126. * doc/aria2c.1.txt
  4127. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  4128. Added help category #file. Added #file tag to the options related
  4129. to downloaded file.
  4130. * src/OptionHandlerFactory.cc
  4131. * src/help_tags.h
  4132. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  4133. Added help categories: #cookie and #hook. Added #https tag to
  4134. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  4135. * src/OptionHandlerFactory.cc
  4136. * src/help_tags.h
  4137. 2009-09-16 Tatsuhiro Tsujikawa <[email protected]>
  4138. Made MSG_NOT_FILE translatable.
  4139. * src/message.h
  4140. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  4141. Updated man page for --help option.
  4142. * doc/aria2c.1.txt
  4143. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  4144. Updated doc.
  4145. * src/XmlRpcMethod.h
  4146. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  4147. Help category now starts with "#" to distinguish a category from
  4148. keyword search. For example, "http" categroy is now "#http". You
  4149. can type "--help=#http" to get explanation of options related to
  4150. http. If '#' is omitted, then the argument is treated as a keyword
  4151. and aria2 searches options whose name includes the keyword and
  4152. print matched ones. For example, "--help=http" will show options
  4153. whose name includes "http".
  4154. * src/OptionHandlerFactory.cc
  4155. * src/help_tags.h
  4156. * src/usage_text.h
  4157. * src/version_usage.cc
  4158. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  4159. Documented missing experimental tag and newly added xml-rpc tag in
  4160. man page.
  4161. * doc/aria2c.1.txt
  4162. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  4163. Added xml-rpc help tag. Tagged xml-rpc related options with
  4164. xml-rpc tag.
  4165. * src/OptionHandlerFactory.cc
  4166. * src/help_tags.h
  4167. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  4168. Updated message when a path is not a file. Updated common message
  4169. for wrong option.
  4170. * src/OptionHandlerException.cc
  4171. * src/message.h
  4172. 2009-09-10 Tatsuhiro Tsujikawa <[email protected]>
  4173. Use File::isFile() instead of File::exists(). Updated message when
  4174. a path is not a file.
  4175. * src/OptionHandlerImpl.cc
  4176. * src/message.h
  4177. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  4178. Fixed the bug that server performence profile is not updated when
  4179. aria2c was terminated by emergency shutdown.
  4180. * src/TrackerWatcherCommand.cc
  4181. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  4182. Use LocalFilePathOptionHandler for -T and -M option.
  4183. Updated message of MSG_FILE_NOT_EXIST.
  4184. * src/OptionHandlerFactory.cc
  4185. * src/message.h
  4186. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  4187. Added LocalFilePathOptionHandler which check whether the specified
  4188. file path does exist or not.
  4189. * src/OptionHandlerImpl.cc
  4190. * src/message.h
  4191. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  4192. Updated wiki page URI.
  4193. * README
  4194. * doc/aria2c.1.txt
  4195. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  4196. Added README.txt for xmlrpc directory.
  4197. * doc/Makefile.am
  4198. * doc/xmlrpc/README.txt
  4199. 2009-09-06 Tatsuhiro Tsujikawa <[email protected]>
  4200. Bump up version number to 1.6.0.
  4201. * configure.ac
  4202. 2009-09-01 Tatsuhiro Tsujikawa <[email protected]>
  4203. Added XML-RPC client scripts written in ruby.
  4204. * doc/Makefile.am
  4205. * doc/xmlrpc/aria2mon
  4206. * doc/xmlrpc/aria2rpc
  4207. 2009-08-31 Tatsuhiro Tsujikawa <[email protected]>
  4208. Added support for IPv6 literal address in URI. Now aria2 can
  4209. handle URI such as http://[::1]/
  4210. * src/HttpRequest.cc
  4211. * src/HttpRequest.h
  4212. * src/Request.cc
  4213. * src/Request.h
  4214. * test/HttpRequestTest.cc
  4215. * test/OptionHandlerTest.cc
  4216. * test/RequestTest.cc
  4217. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  4218. Fixed the bug that HTTP request header for XML-RPC request is not
  4219. parsed properly.
  4220. * src/HttpHeader.cc
  4221. * src/HttpHeaderProcessor.cc
  4222. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  4223. Fixed the bug that XML-RPC authorization might be done before HTTP
  4224. request header is fully received.
  4225. * src/HttpServerCommand.cc
  4226. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  4227. Documented --xml-rpc-listen-all option in man page.
  4228. * doc/aria2c.1.txt
  4229. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  4230. Added --xml-rpc-listen-all option. If true is given to this
  4231. option, aria2 listens incoming XML-RPC requests on all network
  4232. interfaces. If false is given, listens only on local loopback
  4233. interface. The default value is false.
  4234. * src/HttpListenCommand.cc
  4235. * src/OptionHandlerFactory.cc
  4236. * src/SocketCore.cc
  4237. * src/SocketCore.h
  4238. * src/prefs.cc
  4239. * src/prefs.h
  4240. * src/usage_text.h
  4241. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  4242. * Release 1.5.2
  4243. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  4244. Updated Ukrainian and Russian translations. Thanks to all
  4245. translators.
  4246. * po/ru.po
  4247. * po/uk.po
  4248. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  4249. Bump up version number to 1.5.2
  4250. * configure.ac
  4251. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  4252. Get comment, comment.utf-8, created by and creation date from
  4253. .torrent file and print them in -S output.
  4254. * src/bittorrent_helper.cc
  4255. * src/bittorrent_helper.h
  4256. * test/BittorrentHelperTest.cc
  4257. * test/test.torrent
  4258. * test/utf8.torrent
  4259. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  4260. Show exact file size along in -S option output.
  4261. * src/Util.h
  4262. * src/bittorrent_helper.cc
  4263. * test/UtilTest.cc
  4264. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  4265. Avoided unnecessary memory allocation in
  4266. BitfieldMan::getCompletedLength().
  4267. * src/BitfieldMan.cc
  4268. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  4269. Fixed the bug that download fails if
  4270. SocketCore::establishConnection() throws exception and aria2
  4271. doesn't try another address.
  4272. * src/AbstractCommand.cc
  4273. * src/InitiateConnectionCommand.cc
  4274. * src/message.h
  4275. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  4276. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  4277. detected properly.
  4278. * m4/sqlite3.m4
  4279. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  4280. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  4281. because it causes compile error if PARAMS macro is defined.
  4282. * src/XmlRpcElements.cc
  4283. * src/XmlRpcElements.h
  4284. * src/XmlRpcRequestParserStateImpl.cc
  4285. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  4286. * Release 1.5.1
  4287. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  4288. Bump up version number to 1.5.1
  4289. * configure.ac
  4290. 2009-07-25 Tatsuhiro Tsujikawa <[email protected]>
  4291. Fixed compile error without BitTorrent support
  4292. * src/DefaultBtProgressInfoFile.cc
  4293. * src/DownloadEngine.cc
  4294. * src/DownloadEngine.h
  4295. 2009-07-24 Tatsuhiro Tsujikawa <[email protected]>
  4296. Added missing '=' in Download Results
  4297. * src/RequestGroupMan.cc
  4298. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4299. Fixed compiler warning
  4300. * src/DefaultBtProgressInfoFile.cc
  4301. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4302. Fixed compiler warning on 32bit systems.
  4303. * src/DownloadCommand.cc
  4304. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4305. Call flush from ServerStatMan::save()
  4306. * src/ServerStatMan.cc
  4307. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4308. Check stream status after file is opened.
  4309. * src/CookieStorage.cc
  4310. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4311. Rewritten Signature::save()
  4312. * src/Signature.cc
  4313. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4314. Rewritten RequestGroupMan::saveServerStat()
  4315. * src/RequestGroupMan.cc
  4316. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4317. Rewritten stream error handling
  4318. * src/DHTAutoSaveCommand.cc
  4319. * src/DHTRoutingTableDeserializer.cc
  4320. * src/DHTRoutingTableSerializer.cc
  4321. * src/DHTSetup.cc
  4322. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4323. Check stream status after file is opened.
  4324. * src/DefaultBtProgressInfoFile.cc
  4325. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4326. Rewritten stream error handling
  4327. * src/DefaultBtProgressInfoFile.cc
  4328. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4329. Make sure that stream is closed before renaming file. Unit test
  4330. fails on mingw32 in the previous implementation.
  4331. * src/CookieStorage.cc
  4332. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4333. Fixed the unit test error without sqlite3
  4334. * test/CookieStorageTest.cc
  4335. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4336. Fixed the undefined reference error
  4337. * test/HttpResponseTest.cc
  4338. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  4339. * Release 1.5.0
  4340. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  4341. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  4342. Ukrainian translations. Thanks to all translators.
  4343. * po/ru.po
  4344. * po/it.po
  4345. * po/da.po
  4346. * po/bg.po
  4347. * po/ja.po
  4348. * po/uk.po
  4349. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  4350. Added missing src/Logger.cc
  4351. * src/Logger.cc
  4352. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  4353. Rewritten Logger to avoiding constly virtual call.
  4354. * src/LogFactory.cc
  4355. * src/LogFactory.h
  4356. * src/Logger.h
  4357. * src/Makefile.am
  4358. * src/Makefile.in
  4359. * src/NullLogger.h: Removed.
  4360. * src/SimpleLogger.cc
  4361. * src/SimpleLogger.h
  4362. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  4363. Updated doc
  4364. * src/main.cc
  4365. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  4366. Updated debug log message
  4367. * src/AbstractCommand.cc
  4368. * src/message.h
  4369. 2009-07-16 Tatsuhiro Tsujikawa <[email protected]>
  4370. Avoid to create zombie process when commands specified in
  4371. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  4372. X and NetBSD.
  4373. * src/main.cc
  4374. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4375. Fixed typo
  4376. * src/usage_text.h
  4377. * doc/aria2c.1.txt
  4378. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4379. Documented 'errorCode' of tellStatus in man page.
  4380. * doc/aria2c.1.txt
  4381. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4382. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  4383. This key is only available for stopped/completed downloads and its
  4384. value is the error code defined in EXIT STATUS in man page.
  4385. * src/XmlRpcMethodImpl.cc
  4386. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4387. Fixed the bug that session download length is not updated when
  4388. PeerStat is not fastest one.
  4389. * src/SegmentMan.cc
  4390. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4391. Updated doc.
  4392. * doc/aria2c.1.txt
  4393. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4394. Updated doc.
  4395. * src/AbstractCommand.cc
  4396. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4397. Handle the case when DownloadContext has no FileEntry.
  4398. * src/XmlRpcMethodImpl.cc
  4399. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  4400. Handle the situation where struct option.name is char *.
  4401. * configure.ac
  4402. * src/OptionParser.cc
  4403. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  4404. Code cleanup
  4405. * src/AbstractCommand.cc
  4406. * src/DownloadCommand.cc
  4407. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  4408. Use option of each download to create AuthConfig instead of global
  4409. option.
  4410. * src/AuthConfigFactory.cc
  4411. * src/AuthConfigFactory.h
  4412. * src/FtpNegotiationCommand.cc
  4413. * src/HttpRequest.cc
  4414. * src/HttpRequest.h
  4415. * src/HttpRequestCommand.cc
  4416. * src/HttpSkipResponseCommand.cc
  4417. * src/MultiUrlRequestInfo.cc
  4418. * test/AuthConfigFactoryTest.cc
  4419. * test/FtpConnectionTest.cc
  4420. * test/HttpRequestTest.cc
  4421. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  4422. Don't call prepareForRetry(1) if all segments are ignored in
  4423. SegmentMan.
  4424. * src/AbstractCommand.cc
  4425. * src/BitfieldMan.cc
  4426. * src/BitfieldMan.h
  4427. * src/SegmentMan.cc
  4428. * src/SegmentMan.h
  4429. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  4430. Removed FileEntry::getAssociatedUris()
  4431. * src/FileEntry.h
  4432. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  4433. Updated doc: TODO1.5 -> TODO
  4434. * src/FileEntry.cc
  4435. * src/HttpResponseCommand.cc
  4436. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  4437. Added assertion fileEntries.size() == 1 if BitTorrent is not
  4438. involved.
  4439. * src/RequestGroup.cc
  4440. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  4441. Eliminated duplicated filterBitfield initialization code.
  4442. * src/BitfieldMan.cc
  4443. * src/BitfieldMan.h
  4444. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  4445. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  4446. relatively naive approach, though). For DownloadFailureException,
  4447. we handle the case when req is null properly.
  4448. * src/AbstractCommand.cc
  4449. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  4450. Added function returning suffix of control file to
  4451. DefaultBtProgressInfoFile.
  4452. * src/DefaultBtProgressInfoFile.cc
  4453. * src/DefaultBtProgressInfoFile.h
  4454. * src/RequestGroup.cc
  4455. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  4456. Documented getVersion in man page.
  4457. * doc/aria2c.1.txt
  4458. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  4459. Documented type of offset and num for tellWaiting xml-rpc method.
  4460. * doc/aria2c.1.txt
  4461. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  4462. Implemented getVersion xml-rpc method. This method returns struct
  4463. which has 2 key-value pairs: "version" key is associated to the
  4464. version of aria2, such as "1.5.0". "enabledFeatures" key is
  4465. associated to the list of enabled features, such as "Async DNS",
  4466. "BitTorrent".
  4467. * src/FeatureConfig.h
  4468. * src/XmlRpcMethodFactory.cc
  4469. * src/XmlRpcMethodImpl.cc
  4470. * src/XmlRpcMethodImpl.h
  4471. * test/XmlRpcMethodTest.cc
  4472. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  4473. Removed TLS1.1 protocol support when aria2 is built with gnutls
  4474. for compatibility issue.
  4475. * src/SocketCore.cc
  4476. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  4477. Fixed compile error with openSSL
  4478. * src/bittorrent_helper.cc
  4479. * src/messageDigest.h
  4480. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  4481. Removed bad code: setting certificate type priority to key
  4482. exchange priority.
  4483. * src/SocketCore.cc
  4484. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  4485. Disconnect seeder if client is also in seed state.
  4486. * src/BtBitfieldMessage.cc
  4487. * src/BtHaveAllMessage.cc
  4488. * src/BtHaveMessage.cc
  4489. * src/message.h
  4490. * test/BtBitfieldMessageTest.cc
  4491. * test/BtHaveAllMessageTest.cc
  4492. * test/BtHaveMessageTest.cc
  4493. * test/MockPieceStorage.h
  4494. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  4495. Keep CreateRequestCommand in queue when no segment is available so
  4496. that they can pick up pieces which slow BitTorrent peers are
  4497. downloading.
  4498. * src/AbstractCommand.cc
  4499. * src/CreateRequestCommand.cc
  4500. * src/CreateRequestCommand.h
  4501. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  4502. --bt-stop-timeout now only checks download speed.
  4503. * src/BtStopDownloadCommand.cc
  4504. * src/BtStopDownloadCommand.h
  4505. * src/BtSetup.cc
  4506. * src/usage_text.h
  4507. * doc/aria2c.1.txt
  4508. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4509. Fixed compile error regarding BUFSIZE.
  4510. * src/DownloadCommand.cc
  4511. * src/DownloadCommand.h
  4512. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4513. Documented tellWaiting xml-rpc method in man page.
  4514. * doc/aria2c.1.txt
  4515. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4516. Bump up version number to 1.5.0
  4517. * configure.ac
  4518. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4519. Removed resolved TODO1.5
  4520. * src/AbstractCommand.cc
  4521. * src/DownloadCommand.cc
  4522. * src/RequestGroup.cc
  4523. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4524. Release pooled and in-flight Request objectsand URIResult objects
  4525. in FileEntry after download completed.
  4526. * src/DownloadContext.cc
  4527. * src/DownloadContext.h
  4528. * src/FileEntry.cc
  4529. * src/FileEntry.h
  4530. * src/RequestGroup.cc
  4531. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4532. Set manual and source attribute in aria2c.1.txt
  4533. * doc/aria2c.1.txt
  4534. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4535. Documented that the default value of --use-head is 'false' in man
  4536. page.
  4537. * doc/aria2c.1.txt
  4538. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4539. Added bt-stop-timeout option to -i list.
  4540. * doc/aria2c.1.txt
  4541. * src/download_helper.cc
  4542. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4543. Fixed typo
  4544. * doc/aria2c.1.txt
  4545. * src/usage_text.h
  4546. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4547. Removed peer-id-prefix option from -i list.
  4548. * doc/aria2c.1.txt
  4549. * src/download_helper.cc
  4550. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4551. Fixed typo
  4552. * doc/aria2c.1.txt
  4553. * src/usage_text.h
  4554. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4555. Documented --bt-stop-timeout option in man page.
  4556. * doc/aria2c.1.txt
  4557. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4558. Updated README regarding multi-file torrent web-seeding.
  4559. * doc/README.txt
  4560. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4561. Updated man page regarding multi-file torrent web-seeding.
  4562. * doc/aria2c.1.txt
  4563. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4564. Updated doc
  4565. * src/version_usage.cc
  4566. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4567. Winsock select() doesn't work if no socket is in FD_SET. To
  4568. overcome this problem, a dummy socket is added to FD_SET and it is
  4569. given to select().
  4570. * src/SelectEventPoll.cc
  4571. * src/SelectEventPoll.h
  4572. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4573. Disabled --use-head option by default because --use-head=true
  4574. causes problems on some web sites.
  4575. * src/OptionHandlerFactory.cc
  4576. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4577. Print URL List in -S option for torrent.
  4578. * src/bittorrent_helper.cc
  4579. * src/bittorrent_helper.h
  4580. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4581. Allocate buffer in ctor of DownloadCommand.
  4582. * src/DownloadCommand.cc
  4583. * src/DownloadCommand.h
  4584. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4585. Removed DiskAdaptor::onDownloadComplete()
  4586. * src/DirectDiskAdaptor.cc
  4587. * src/DirectDiskAdaptor.h
  4588. * src/DiskAdaptor.h
  4589. * src/MultiDiskAdaptor.cc
  4590. * src/MultiDiskAdaptor.h
  4591. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4592. Committed missing BtStopDownloadCommand.{cc,h}
  4593. * src/BtStopDownloadCommand.cc
  4594. * src/BtStopDownloadCommand.h
  4595. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4596. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  4597. download if the download speed is 0 and the number of seeder is 0
  4598. in consecutive SEC seconds. By default, this function is disabled.
  4599. * src/BtSetup.cc
  4600. * src/Makefile.am
  4601. * src/OptionHandlerFactory.cc
  4602. * src/prefs.cc
  4603. * src/prefs.h
  4604. * src/usage_text.h
  4605. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4606. Removed the call to DiskAdaptor::onDownloadComplete() from
  4607. BtCheckIntegrityEntry and DefaultPieceStorage.
  4608. * src/BtCheckIntegrityEntry.cc
  4609. * src/DefaultPieceStorage.cc
  4610. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4611. Commented out throw statements when number of piece is 0 to
  4612. download 0 length torrent.
  4613. * src/bittorrent_helper.cc
  4614. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4615. Call RequestGroup::createNextCommandWithAdj() from
  4616. BtFileAllocationEntry if at least one FileEntry has URI. The
  4617. static function hasAssociatedUri in RequestGroup.cc is renamed as
  4618. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  4619. * src/BtFileAllocationEntry.cc
  4620. * src/FileEntry.h
  4621. * src/RequestGroup.cc
  4622. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4623. Generate peer ID after SimpleRandomizer is initialized.
  4624. * src/main.cc
  4625. * src/option_processing.cc
  4626. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4627. Removed unused method argument.
  4628. * src/CreateRequestCommand.cc
  4629. * src/RequestGroup.cc
  4630. * src/RequestGroup.h
  4631. * src/RequestGroupMan.cc
  4632. * src/TrackerWatcherCommand.cc
  4633. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4634. Made URI reusing function work.
  4635. * src/CreateRequestCommand.cc
  4636. * src/FileEntry.cc
  4637. * src/FileEntry.h
  4638. * test/FileEntryTest.cc
  4639. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4640. Add formerly fastest PeerStat's sessionDownloadLength to new
  4641. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  4642. bytes in a session.
  4643. * src/PeerStat.cc
  4644. * src/SegmentMan.cc
  4645. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4646. If pipelining is enabled, we can always pool socket.
  4647. * src/HttpDownloadCommand.cc
  4648. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4649. In a single file download, file size becomes known just after
  4650. downloading, set total length to FileEntry object when download
  4651. completed.
  4652. * src/DownloadCommand.cc
  4653. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4654. Use std::vector::reserve() for fileEntries and pieceHashes in
  4655. bittorrent_helper
  4656. * src/bittorrent_helper.cc
  4657. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4658. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  4659. Removed hidden option PREF_RESET_URI.
  4660. * src/AbstractCommand.cc
  4661. * src/OptionHandlerFactory.cc
  4662. * src/prefs.cc
  4663. * src/prefs.h
  4664. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  4665. Removed unused variable/function.
  4666. * src/PeerStat.h
  4667. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  4668. Show first URL in Download Results if file path is not available.
  4669. * src/FileEntry.h
  4670. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  4671. Throw exception if file path doesn't exist in FTP URL.
  4672. * src/InitiateConnectionCommandFactory.cc
  4673. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  4674. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  4675. * src/BitfieldMan.cc
  4676. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  4677. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  4678. of PeerStat in SegmentMan. peerStats is used for calculating
  4679. download speed. Therefore all active PeerStats should be in
  4680. there. Another one is _fastestPeerStats and it only contains
  4681. fastest PeerStat for each hostname/protocol pair. They are used
  4682. for updating ServerStat.
  4683. * src/DownloadCommand.cc
  4684. * src/Request.h
  4685. * src/RequestGroupMan.cc
  4686. * src/SegmentMan.cc
  4687. * src/SegmentMan.h
  4688. * test/SegmentManTest.cc
  4689. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  4690. Try all available addresses returned by DNS until it gets
  4691. connected in HTTP(S)/FTP download
  4692. * src/AbstractCommand.cc
  4693. * src/AbstractCommand.h
  4694. * src/AbstractProxyRequestCommand.cc
  4695. * src/AbstractProxyRequestCommand.h
  4696. * src/DNSCache.h
  4697. * src/DownloadEngine.cc
  4698. * src/DownloadEngine.h
  4699. * src/FtpInitiateConnectionCommand.cc
  4700. * src/FtpInitiateConnectionCommand.h
  4701. * src/FtpNegotiationCommand.cc
  4702. * src/FtpNegotiationCommand.h
  4703. * src/HttpInitiateConnectionCommand.cc
  4704. * src/HttpInitiateConnectionCommand.h
  4705. * src/HttpRequestCommand.cc
  4706. * src/HttpRequestCommand.h
  4707. * src/InitiateConnectionCommand.cc
  4708. * src/InitiateConnectionCommand.h
  4709. * test/DNSCacheTest.cc
  4710. * test/Makefile.am
  4711. * test/SimpleDNSCacheTest.cc
  4712. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4713. Updated doc
  4714. * src/download_helper.cc
  4715. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4716. Refactored fieldMan ctor.
  4717. * src/BitfieldMan.cc
  4718. * src/BitfieldMan.h
  4719. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4720. Don't print "No files to download." message if -S is given.
  4721. * src/main.cc
  4722. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4723. Set referer and method to newly created Request object.
  4724. * src/CreateRequestCommand.cc
  4725. * src/FileEntry.cc
  4726. * src/FileEntry.h
  4727. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4728. Removed ctor of AbstractCommand which doesn't take FileEntry.
  4729. * src/AbstractCommand.cc
  4730. * src/AbstractCommand.h
  4731. * src/CreateRequestCommand.cc
  4732. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4733. Get proxy download working
  4734. * src/AbstractProxyRequestCommand.cc
  4735. * src/AbstractProxyRequestCommand.h
  4736. * src/AbstractProxyResponseCommand.cc
  4737. * src/AbstractProxyResponseCommand.h
  4738. * src/FtpInitiateConnectionCommand.cc
  4739. * src/FtpTunnelRequestCommand.cc
  4740. * src/FtpTunnelRequestCommand.h
  4741. * src/FtpTunnelResponseCommand.cc
  4742. * src/FtpTunnelResponseCommand.h
  4743. * src/HttpInitiateConnectionCommand.cc
  4744. * src/HttpProxyRequestCommand.cc
  4745. * src/HttpProxyRequestCommand.h
  4746. * src/HttpProxyResponseCommand.cc
  4747. * src/HttpProxyResponseCommand.h
  4748. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4749. Use SegmentMan::getSegment(cuid) for single file download.
  4750. * src/AbstractCommand.cc
  4751. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4752. Fixed bufSize calculation
  4753. * src/DownloadCommand.cc
  4754. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4755. Don't append "/" if base URI ends with "/".
  4756. * src/bittorrent_helper.cc
  4757. * test/url-list-multiFile.torrent
  4758. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4759. HTTP pipelining is now working. Fixed Segmention fault in
  4760. BitfieldMan's copy ctor.
  4761. * src/AbstractCommand.cc
  4762. * src/BitfieldMan.cc
  4763. * src/BitfieldMan.h
  4764. * src/DownloadCommand.cc
  4765. * src/HttpDownloadCommand.cc
  4766. * src/HttpRequest.cc
  4767. * src/SegmentMan.cc
  4768. * src/SegmentMan.h
  4769. * test/BitfieldManTest.cc
  4770. * test/SegmentManTest.cc
  4771. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  4772. Removed ServerHost. Same functionality is implemented using
  4773. FileEntry's in-flight Request objects.
  4774. * src/AbstractCommand.cc
  4775. * src/BtDependency.cc
  4776. * src/CreateRequestCommand.cc
  4777. * src/FileEntry.cc
  4778. * src/FileEntry.h
  4779. * src/FtpNegotiationCommand.cc
  4780. * src/HttpResponseCommand.cc
  4781. * src/Makefile.am
  4782. * src/Metalink2RequestGroup.cc
  4783. * src/RequestGroup.cc
  4784. * src/RequestGroup.h
  4785. * src/ServerHost.cc: Removed
  4786. * src/ServerHost.h: Removed
  4787. * test/BtDependencyTest.cc
  4788. * test/FileEntryTest.cc
  4789. * test/RequestGroupTest.cc
  4790. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  4791. Rewritten PeerStat handling. In the previous implementation,
  4792. faster command tries to find slower command. In this new
  4793. implementation, slower command tries to find faster command.
  4794. PeerStat is now created in each HTTP/FTP request to get download
  4795. rate correctly. If the download range is small, the download rate
  4796. tends to small and this will occur at the later stage of download.
  4797. * src/AbstractCommand.cc
  4798. * src/DownloadCommand.cc
  4799. * src/FileEntry.cc
  4800. * src/FileEntry.h
  4801. * src/Request.cc
  4802. * src/Request.h
  4803. * src/RequestGroup.h
  4804. * src/RequestGroupMan.cc
  4805. * src/SegmentMan.cc
  4806. * src/SegmentMan.h
  4807. * test/SegmentManTest.cc
  4808. 2009-06-29 Tatsuhiro Tsujikawa <[email protected]>
  4809. Removed _uris from RequestGroup. All functions that refer to _uris
  4810. were moved to FileEntry. Exit status code are now defined in
  4811. DownloadResultCode.h.
  4812. * src/AbstractCommand.cc
  4813. * src/AdaptiveURISelector.cc
  4814. * src/AdaptiveURISelector.h
  4815. * src/AutoSaveCommand.cc
  4816. * src/BtPostDownloadHandler.cc
  4817. * src/CheckIntegrityDispatcherCommand.cc
  4818. * src/CookieStorage.cc
  4819. * src/DHTAutoSaveCommand.cc
  4820. * src/DHTBucketRefreshCommand.cc
  4821. * src/DHTEntryPointNameResolveCommand.cc
  4822. * src/DHTInteractionCommand.cc
  4823. * src/DHTPeerAnnounceCommand.cc
  4824. * src/DHTTokenUpdateCommand.cc
  4825. * src/DlAbortEx.h
  4826. * src/DlRetryEx.h
  4827. * src/DownloadCommand.cc
  4828. * src/DownloadContext.h
  4829. * src/DownloadFailureException.h
  4830. * src/DownloadResult.h
  4831. * src/DownloadResultCode.h
  4832. * src/FeedbackURISelector.cc
  4833. * src/FeedbackURISelector.h
  4834. * src/FileEntry.cc
  4835. * src/FileEntry.h
  4836. * src/FtpNegotiationCommand.cc
  4837. * src/HttpListenCommand.cc
  4838. * src/HttpResponseCommand.cc
  4839. * src/HttpServerResponseCommand.cc
  4840. * src/HttpSkipResponseCommand.cc
  4841. * src/InOrderURISelector.cc
  4842. * src/InOrderURISelector.h
  4843. * src/Makefile.am
  4844. * src/Makefile.in
  4845. * src/Metalink2RequestGroup.cc
  4846. * src/MultiUrlRequestInfo.cc
  4847. * src/MultiUrlRequestInfo.h
  4848. * src/OptionHandlerFactory.cc
  4849. * src/PeerListenCommand.cc
  4850. * src/RecoverableException.h
  4851. * src/RequestGroup.cc
  4852. * src/RequestGroup.h
  4853. * src/RequestGroupMan.cc
  4854. * src/RequestGroupMan.h
  4855. * src/TimedHaltCommand.cc
  4856. * src/TrackerWatcherCommand.cc
  4857. * src/URIResult.cc
  4858. * src/URIResult.h
  4859. * src/URISelector.h
  4860. * src/XmlRpcMethodImpl.cc
  4861. * src/bittorrent_helper.cc
  4862. * src/bittorrent_helper.h
  4863. * src/download_helper.cc
  4864. * src/main.cc
  4865. * src/option_processing.cc
  4866. * test/BtDependencyTest.cc
  4867. * test/BtPostDownloadHandlerTest.cc
  4868. * test/CookieStorageTest.cc
  4869. * test/DefaultBtMessageDispatcherTest.cc
  4870. * test/DownloadHandlerFactoryTest.cc
  4871. * test/DownloadHelperTest.cc
  4872. * test/FeedbackURISelectorTest.cc
  4873. * test/FileEntryTest.cc
  4874. * test/InOrderURISelectorTest.cc
  4875. * test/Metalink2RequestGroupTest.cc
  4876. * test/MetalinkPostDownloadHandlerTest.cc
  4877. * test/RequestGroupManTest.cc
  4878. * test/RequestGroupTest.cc
  4879. * test/XmlRpcMethodTest.cc
  4880. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  4881. Removed MockBtContext.h
  4882. * test/Makefile.am
  4883. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  4884. Removed _currentRequest from StreamCheckIntegrityEntry and
  4885. StreamFileAllocationEntry.
  4886. * src/AbstractCommand.cc
  4887. * src/HttpResponseCommand.cc
  4888. * src/RequestGroup.cc
  4889. * src/StreamCheckIntegrityEntry.cc
  4890. * src/StreamCheckIntegrityEntry.h
  4891. * src/StreamFileAllocationEntry.cc
  4892. * src/StreamFileAllocationEntry.h
  4893. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  4894. Rewritten DownloadContext and removed SingleFileDownloadContext
  4895. and BtContext and its derived classes. BitTorrent specific
  4896. attributes are now set by DownloadContext::setAttribute() with key
  4897. bittorrent::BITTORRENT.
  4898. * src/AbstractBtMessage.cc
  4899. * src/AbstractBtMessage.h
  4900. * src/AbstractCommand.cc
  4901. * src/AbstractCommand.h
  4902. * src/AbstractProxyRequestCommand.cc
  4903. * src/AbstractProxyResponseCommand.cc
  4904. * src/ActivePeerConnectionCommand.cc
  4905. * src/ActivePeerConnectionCommand.h
  4906. * src/AnnounceList.cc
  4907. * src/BtCheckIntegrityEntry.cc
  4908. * src/BtConstants.h
  4909. * src/BtContext.h: Removed
  4910. * src/BtDependency.cc
  4911. * src/BtExtendedMessage.cc
  4912. * src/BtPieceMessage.cc
  4913. * src/BtPieceMessage.h
  4914. * src/BtPostDownloadHandler.cc
  4915. * src/BtRegistry.cc
  4916. * src/BtRegistry.h
  4917. * src/BtSetup.cc
  4918. * src/CheckIntegrityCommand.cc
  4919. * src/CheckIntegrityEntry.cc
  4920. * src/ChecksumCheckIntegrityEntry.cc
  4921. * src/ConsoleStatCalc.cc
  4922. * src/ContentTypeRequestGroupCriteria.cc
  4923. * src/DHTGetPeersCommand.cc
  4924. * src/DHTGetPeersCommand.h
  4925. * src/DHTPeerLookupTask.cc
  4926. * src/DHTPeerLookupTask.h
  4927. * src/DHTTaskFactory.h
  4928. * src/DHTTaskFactoryImpl.cc
  4929. * src/DHTTaskFactoryImpl.h
  4930. * src/DefaultBtAnnounce.cc
  4931. * src/DefaultBtAnnounce.h
  4932. * src/DefaultBtContext.cc: Removed
  4933. * src/DefaultBtContext.h: Removed
  4934. * src/DefaultBtInteractive.cc
  4935. * src/DefaultBtInteractive.h
  4936. * src/DefaultBtMessageDispatcher.cc
  4937. * src/DefaultBtMessageDispatcher.h
  4938. * src/DefaultBtMessageFactory.cc
  4939. * src/DefaultBtMessageFactory.h
  4940. * src/DefaultBtMessageReceiver.cc
  4941. * src/DefaultBtMessageReceiver.h
  4942. * src/DefaultBtProgressInfoFile.cc
  4943. * src/DefaultBtRequestFactory.cc
  4944. * src/DefaultBtRequestFactory.h
  4945. * src/DefaultExtensionMessageFactory.cc
  4946. * src/DefaultExtensionMessageFactory.h
  4947. * src/DefaultPeerStorage.cc
  4948. * src/DefaultPeerStorage.h
  4949. * src/DefaultPieceStorage.cc
  4950. * src/DefaultSegmentManFactory.cc
  4951. * src/DiskAdaptor.cc
  4952. * src/DiskAdaptor.h
  4953. * src/DownloadContext.cc
  4954. * src/DownloadContext.h
  4955. * src/DownloadEngine.cc
  4956. * src/DownloadEngineFactory.cc
  4957. * src/DownloadHandler.cc
  4958. * src/DownloadResult.h
  4959. * src/FileAllocationCommand.cc
  4960. * src/FileAllocationDispatcherCommand.cc
  4961. * src/FileAllocationEntry.cc
  4962. * src/FileEntry.h
  4963. * src/FillRequestGroupCommand.cc
  4964. * src/FtpDownloadCommand.cc
  4965. * src/FtpFinishDownloadCommand.cc
  4966. * src/FtpInitiateConnectionCommand.cc
  4967. * src/FtpNegotiationCommand.cc
  4968. * src/FtpTunnelRequestCommand.cc
  4969. * src/FtpTunnelResponseCommand.cc
  4970. * src/HandshakeExtensionMessage.cc
  4971. * src/HandshakeExtensionMessage.h
  4972. * src/HaveEraseCommand.cc
  4973. * src/HttpDownloadCommand.cc
  4974. * src/HttpInitiateConnectionCommand.cc
  4975. * src/HttpProxyRequestCommand.cc
  4976. * src/HttpProxyResponseCommand.cc
  4977. * src/HttpRequest.cc
  4978. * src/HttpRequest.h
  4979. * src/HttpRequestCommand.cc
  4980. * src/HttpResponseCommand.cc
  4981. * src/HttpServerBodyCommand.cc
  4982. * src/HttpServerCommand.cc
  4983. * src/HttpSkipResponseCommand.cc
  4984. * src/InitiateConnectionCommandFactory.cc
  4985. * src/InitiatorMSEHandshakeCommand.cc
  4986. * src/InitiatorMSEHandshakeCommand.h
  4987. * src/IteratableChecksumValidator.cc
  4988. * src/IteratableChecksumValidator.h
  4989. * src/IteratableChunkChecksumValidator.cc
  4990. * src/MSEHandshake.cc
  4991. * src/MSEHandshake.h
  4992. * src/Makefile.am
  4993. * src/Makefile.in
  4994. * src/Metalink2RequestGroup.cc
  4995. * src/MetalinkPostDownloadHandler.cc
  4996. * src/MultiDiskAdaptor.cc
  4997. * src/MultiDiskAdaptor.h
  4998. * src/MultiFileAllocationIterator.cc
  4999. * src/MultiUrlRequestInfo.cc
  5000. * src/PeerChokeCommand.cc
  5001. * src/PeerChokeCommand.h
  5002. * src/PeerInitiateConnectionCommand.cc
  5003. * src/PeerInitiateConnectionCommand.h
  5004. * src/PeerInteractionCommand.cc
  5005. * src/PeerInteractionCommand.h
  5006. * src/PeerReceiveHandshakeCommand.cc
  5007. * src/PieceHashCheckIntegrityEntry.cc
  5008. * src/RealtimeCommand.cc
  5009. * src/ReceiverMSEHandshakeCommand.cc
  5010. * src/RequestGroup.cc
  5011. * src/RequestGroup.h
  5012. * src/RequestGroupEntry.cc
  5013. * src/RequestGroupMan.cc
  5014. * src/SeedCheckCommand.cc
  5015. * src/SeedCheckCommand.h
  5016. * src/SegmentMan.cc
  5017. * src/ShareRatioSeedCriteria.h
  5018. * src/SingleFileDownloadContext.cc: Removed
  5019. * src/SingleFileDownloadContext.h: Removed
  5020. * src/SleepCommand.cc
  5021. * src/StreamCheckIntegrityEntry.cc
  5022. * src/TrackerWatcherCommand.cc
  5023. * src/TrackerWatcherCommand.h
  5024. * src/UnknownLengthPieceStorage.cc
  5025. * src/Util.cc
  5026. * src/Util.h
  5027. * src/XmlRpcMethodImpl.cc
  5028. * src/bittorrent_helper.cc
  5029. * src/bittorrent_helper.h
  5030. * src/download_helper.cc
  5031. * src/main.cc
  5032. * src/option_processing.cc
  5033. * test/BitfieldManTest.cc
  5034. * test/BittorrentHelperTest.cc
  5035. * test/BtCancelMessageTest.cc
  5036. * test/BtChokeMessageTest.cc
  5037. * test/BtDependencyTest.cc
  5038. * test/BtPieceMessageTest.cc
  5039. * test/BtPostDownloadHandlerTest.cc
  5040. * test/BtRegistryTest.cc
  5041. * test/BtRejectMessageTest.cc
  5042. * test/BtRequestMessageTest.cc
  5043. * test/DHTPeerAnnounceStorageTest.cc
  5044. * test/DefaultBtAnnounceTest.cc
  5045. * test/DefaultBtContextTest.cc: Removed
  5046. * test/DefaultBtMessageDispatcherTest.cc
  5047. * test/DefaultBtMessageFactoryTest.cc
  5048. * test/DefaultBtProgressInfoFileTest.cc
  5049. * test/DefaultBtRequestFactoryTest.cc
  5050. * test/DefaultExtensionMessageFactoryTest.cc
  5051. * test/DefaultPeerStorageTest.cc
  5052. * test/DefaultPieceStorageTest.cc
  5053. * test/DirectDiskAdaptorTest.cc
  5054. * test/DownloadContextTest.cc
  5055. * test/DownloadHandlerFactoryTest.cc
  5056. * test/DownloadHelperTest.cc
  5057. * test/HandshakeExtensionMessageTest.cc
  5058. * test/HttpRequestTest.cc
  5059. * test/HttpResponseTest.cc
  5060. * test/IteratableChecksumValidatorTest.cc
  5061. * test/IteratableChunkChecksumValidatorTest.cc
  5062. * test/MSEHandshakeTest.cc
  5063. * test/Makefile.am
  5064. * test/Makefile.in
  5065. * test/Metalink2RequestGroupTest.cc
  5066. * test/MetalinkPostDownloadHandlerTest.cc
  5067. * test/MockBtContext.h: Removed
  5068. * test/MockDHTTaskFactory.h
  5069. * test/MockDownloadContext.h: Removed
  5070. * test/MockPieceStorage.h
  5071. * test/MultiDiskAdaptorTest.cc
  5072. * test/MultiFileAllocationIteratorTest.cc
  5073. * test/RequestGroupManTest.cc
  5074. * test/RequestGroupTest.cc
  5075. * test/SegmentManTest.cc
  5076. * test/ShareRatioSeedCriteriaTest.cc
  5077. * test/SingleFileDownloadContextTest.cc: Removed
  5078. * test/UtilTest.cc
  5079. * test/XmlRpcMethodTest.cc
  5080. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  5081. Added experimental support of WEB-Seeding for multi-file torrent.
  5082. Due to fundamental changes in file handling in HTTP/FTP code, many
  5083. functions are not working: PeerStat, ServerHost, proxy..etc
  5084. * src/AbstractCommand.cc
  5085. * src/AbstractCommand.h
  5086. * src/BitfieldMan.cc
  5087. * src/BitfieldMan.h
  5088. * src/CreateRequestCommand.cc
  5089. * src/CreateRequestCommand.h
  5090. * src/DefaultPieceStorage.cc
  5091. * src/DefaultPieceStorage.h
  5092. * src/DownloadCommand.cc
  5093. * src/DownloadCommand.h
  5094. * src/DownloadContext.cc
  5095. * src/DownloadContext.h
  5096. * src/FileEntry.cc
  5097. * src/FileEntry.h
  5098. * src/FtpDownloadCommand.cc
  5099. * src/FtpDownloadCommand.h
  5100. * src/FtpFinishDownloadCommand.cc
  5101. * src/FtpFinishDownloadCommand.h
  5102. * src/FtpInitiateConnectionCommand.cc
  5103. * src/FtpInitiateConnectionCommand.h
  5104. * src/FtpNegotiationCommand.cc
  5105. * src/FtpNegotiationCommand.h
  5106. * src/FtpTunnelResponseCommand.cc
  5107. * src/HttpDownloadCommand.cc
  5108. * src/HttpDownloadCommand.h
  5109. * src/HttpInitiateConnectionCommand.cc
  5110. * src/HttpInitiateConnectionCommand.h
  5111. * src/HttpProxyResponseCommand.cc
  5112. * src/HttpRequest.cc
  5113. * src/HttpRequest.h
  5114. * src/HttpRequestCommand.cc
  5115. * src/HttpRequestCommand.h
  5116. * src/HttpResponseCommand.cc
  5117. * src/HttpResponseCommand.h
  5118. * src/HttpSkipResponseCommand.cc
  5119. * src/HttpSkipResponseCommand.h
  5120. * src/InitiateConnectionCommand.cc
  5121. * src/InitiateConnectionCommand.h
  5122. * src/InitiateConnectionCommandFactory.cc
  5123. * src/InitiateConnectionCommandFactory.h
  5124. * src/Makefile.am
  5125. * src/PieceStorage.h
  5126. * src/RequestGroup.cc
  5127. * src/RequestGroup.h
  5128. * src/RequestGroupMan.cc
  5129. * src/SegmentMan.cc
  5130. * src/SegmentMan.h
  5131. * src/SingleFileDownloadContext.h
  5132. * src/StreamFileAllocationEntry.cc
  5133. * src/TrackerWatcherCommand.cc
  5134. * src/UnknownLengthPieceStorage.cc
  5135. * src/UnknownLengthPieceStorage.h
  5136. * src/array_fun.h
  5137. * src/bitfield.h
  5138. * src/download_helper.cc
  5139. * test/DownloadContextTest.cc
  5140. * test/Makefile.am
  5141. * test/MockDownloadContext.h
  5142. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  5143. Added tellWaiting XML-RPC method.
  5144. * src/SingleFileDownloadContext.cc
  5145. * src/XmlRpcMethodFactory.cc
  5146. * src/XmlRpcMethodImpl.cc
  5147. * src/XmlRpcMethodImpl.h
  5148. * test/XmlRpcMethodTest.cc
  5149. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  5150. Updated CookieStorageTest
  5151. * test/CookieStorageTest.cc
  5152. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  5153. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  5154. handle excepion inside these functions.
  5155. * src/LibgnutlsTLSContext.cc
  5156. * src/LibgnutlsTLSContext.h
  5157. * src/LibsslTLSContext.cc
  5158. * src/LibsslTLSContext.h
  5159. * src/MultiUrlRequestInfo.cc
  5160. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  5161. Added comment
  5162. * src/RequestGroup.cc
  5163. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  5164. In CookieStorage::load() and saveNsFormat(), handle exception
  5165. inside the functions. When saving Cookies, first write temporary
  5166. file and after successful writes, then renames it to final
  5167. destination.
  5168. * src/CookieStorage.cc
  5169. * src/CookieStorage.h
  5170. * src/MultiUrlRequestInfo.cc
  5171. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  5172. The default value of --dir option is the absolute path to the
  5173. current directory. If getcwd() is failed, then it is ".", which is
  5174. the same value with old implementation. This change is necessary
  5175. because after daemon() call, the current working directory is
  5176. changed to /.
  5177. * src/File.cc
  5178. * src/File.h
  5179. * src/OptionHandlerFactory.cc
  5180. * src/option_processing.cc
  5181. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  5182. Call daemon() with arguments(0,0), which means daemon() changes
  5183. current working directory to / and redirects stdin, stdout and
  5184. stderr to /dev/null.
  5185. * src/option_processing.cc
  5186. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  5187. Small performance optimizations.
  5188. * src/RequestGroupMan.cc
  5189. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  5190. Added _xmlRpc member variable to RequestGroupMan to reduce the
  5191. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  5192. * src/RequestGroupMan.cc
  5193. * src/RequestGroupMan.h
  5194. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  5195. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  5196. setNoWiat(true) if newly created command calls
  5197. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  5198. * src/HttpListenCommand.cc
  5199. * src/HttpServerBodyCommand.cc
  5200. * src/HttpServerCommand.cc
  5201. * src/HttpServerResponseCommand.cc
  5202. * src/InitiateConnectionCommand.cc
  5203. * src/RequestGroup.cc
  5204. * src/StreamFileAllocationEntry.cc
  5205. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  5206. Removed include vector
  5207. * src/BtRegistry.h
  5208. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  5209. Rewritten BtRegistry
  5210. * src/BtRegistry.cc
  5211. * src/BtRegistry.h
  5212. * src/BtSetup.cc
  5213. * src/ConsoleStatCalc.cc
  5214. * src/PeerInteractionCommand.cc
  5215. * src/PeerReceiveHandshakeCommand.cc
  5216. * src/ReceiverMSEHandshakeCommand.cc
  5217. * src/RequestGroup.cc
  5218. * src/XmlRpcMethodImpl.cc
  5219. * test/BtRegistryTest.cc
  5220. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  5221. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  5222. * src/DefaultBtProgressInfoFile.cc
  5223. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  5224. Throw an exception if position is less than 0.
  5225. * src/XmlRpcMethodImpl.cc
  5226. * test/XmlRpcMethodTest.cc
  5227. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  5228. Use writeFilePath() in ConsoleStatCalc.cc
  5229. * src/ConsoleStatCalc.cc
  5230. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  5231. Receive the return value as const reference from
  5232. DownloadContext::getFileEntries().
  5233. * src/DefaultPieceStorage.cc
  5234. * src/RequestGroupMan.cc
  5235. * src/XmlRpcMethodImpl.cc
  5236. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  5237. DownloadContext now has _fileEntries so that
  5238. DownloadContext::getFileEntries() can returns its const reference.
  5239. * src/DefaultBtContext.cc
  5240. * src/DefaultBtContext.h
  5241. * src/DownloadContext.cc
  5242. * src/DownloadContext.h
  5243. * src/SingleFileDownloadContext.cc
  5244. * src/SingleFileDownloadContext.h
  5245. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  5246. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  5247. writeFilePath() function template from RequestGroupMan.cc to
  5248. FileEntry.h
  5249. * src/FileEntry.h
  5250. * src/RequestGroupMan.cc
  5251. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  5252. Documented 'position' parameter is starting from 0 in man page.
  5253. * doc/aria2c.1.txt
  5254. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  5255. Updated doc.
  5256. * src/MSEHandshake.cc
  5257. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  5258. Removed _acceptFeatures and its accessor functions from
  5259. RequestGroup since they are not used practically.
  5260. * src/HttpRequestCommand.cc
  5261. * src/RequestGroup.cc
  5262. * src/RequestGroup.h
  5263. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  5264. Removed member _maxTries from RequestGroup class to avoid
  5265. duplicate option value. Those classes who refer this variable
  5266. should use option value of PREF_MAX_TRIES directly.
  5267. * src/AbstractCommand.cc
  5268. * src/RequestGroup.cc
  5269. * src/RequestGroup.h
  5270. * src/TrackerWatcherCommand.cc
  5271. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5272. * Release 1.4.1
  5273. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5274. Fixed compiler warnings on netbsd
  5275. * src/DHTConnectionImpl.cc
  5276. * src/PeerListenCommand.cc
  5277. * src/PeerSessionResource.cc
  5278. * src/SegmentMan.cc
  5279. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5280. Updated Ukrainian translation. Thanks to all translators.
  5281. * po/uk.po
  5282. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5283. Bump up version number to 1.4.1.
  5284. * configure.ac
  5285. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5286. Added unit tests for strjoin, strconcat and strappend.
  5287. * test/a2functionalTest.cc
  5288. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5289. Rewritten strconcat and strappend using operator+ instead of
  5290. append().
  5291. * src/a2functional.h
  5292. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5293. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  5294. is enabled.
  5295. * src/Makefile.am
  5296. * test/Makefile.am
  5297. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5298. Added countSeeder() function which counts seeder in the given
  5299. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  5300. * src/ConsoleStatCalc.cc
  5301. * src/Peer.h
  5302. * src/XmlRpcMethodImpl.cc
  5303. * test/PeerTest.cc
  5304. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  5305. Documented missing seeder in getPeers xml-rpc method.
  5306. Documented uploadLength and numSeeders.
  5307. * doc/aria2c.1.txt
  5308. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  5309. Added uploadLength and numSeeders to the response of tellStatus
  5310. xml-rpc method. Assert that PeerStorage instance is not null
  5311. instead of checking if statement. It should be non-null in this
  5312. context.
  5313. * src/XmlRpcMethodImpl.cc
  5314. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  5315. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  5316. * src/XmlRpcResponse.cc
  5317. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  5318. Avoid intermediate object during string concatenation.
  5319. * src/HttpRequest.cc
  5320. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  5321. Added strjoin function template. Use it in pathJoin()
  5322. * src/Util.h
  5323. * src/a2functional.h
  5324. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  5325. Avoid intermediate object during string concatenation. Replaced
  5326. post-increment unary operator with pre-increment one in for loop.
  5327. * src/AdaptiveURISelector.cc
  5328. * src/AnnounceList.cc
  5329. * src/AuthConfig.h
  5330. * src/BtBitfieldMessage.cc
  5331. * src/BtExtendedMessage.cc
  5332. * src/BtHandshakeMessage.cc
  5333. * src/BtPieceMessage.cc
  5334. * src/BtPortMessage.cc
  5335. * src/Cookie.cc
  5336. * src/DHTAnnouncePeerMessage.cc
  5337. * src/DHTAutoSaveCommand.cc
  5338. * src/DHTGetPeersReplyMessage.cc
  5339. * src/DHTNode.cc
  5340. * src/DHTQueryMessage.cc
  5341. * src/DHTResponseMessage.cc
  5342. * src/DHTUnknownMessage.cc
  5343. * src/DefaultBtAnnounce.cc
  5344. * src/DefaultBtContext.cc
  5345. * src/DefaultBtInteractive.cc
  5346. * src/DefaultBtProgressInfoFile.cc
  5347. * src/DefaultPeerStorage.cc
  5348. * src/DownloadEngine.cc
  5349. * src/FeatureConfig.cc
  5350. * src/File.cc
  5351. * src/FtpConnection.cc
  5352. * src/FtpNegotiationCommand.cc
  5353. * src/HandshakeExtensionMessage.cc
  5354. * src/HttpConnection.cc
  5355. * src/HttpRequest.cc
  5356. * src/HttpResponseCommand.cc
  5357. * src/HttpServer.cc
  5358. * src/IndexBtMessage.cc
  5359. * src/Metalink2RequestGroup.cc
  5360. * src/OptionHandlerImpl.h
  5361. * src/PStringBuildVisitor.cc
  5362. * src/Peer.cc
  5363. * src/PeerListenCommand.cc
  5364. * src/Piece.cc
  5365. * src/RangeBtMessage.cc
  5366. * src/Request.cc
  5367. * src/Request.h
  5368. * src/RequestGroup.cc
  5369. * src/RequestGroupMan.cc
  5370. * src/ServerStat.cc
  5371. * src/ServerStatMan.cc
  5372. * src/UTPexExtensionMessage.cc
  5373. * src/Util.cc
  5374. * src/a2functional.h
  5375. * src/download_helper.cc
  5376. * src/messageDigest.cc
  5377. 2009-06-04 Tatsuhiro Tsujikawa <[email protected]>
  5378. Unchoke a peer randomly at first and second choke round in seed
  5379. state.
  5380. * src/BtSeederStateChoke.cc
  5381. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  5382. Added (sock_t) to quiet compiler warnings in MinGW
  5383. * src/SocketCore.cc
  5384. * src/SocketCore.h
  5385. 2009-06-02 Tatsuhiro Tsujikawa <[email protected]>
  5386. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  5387. * src/EpollEventPoll.h
  5388. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  5389. Added fork() emulation using CreateProcess() in MinGW
  5390. * src/RequestGroupMan.cc
  5391. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  5392. * Release 1.4.0
  5393. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  5394. Added utf8.torrent to EXTRA_DIST
  5395. * test/Makefile.am
  5396. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  5397. Fixed docs of aria2.addMetalink xml-rpc method.
  5398. * doc/aria2c.1.txt
  5399. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  5400. Added Slovak translation. Updated Ukrainian and Brazilian
  5401. Portuguese translation. Thanks to all translators.
  5402. * po/sk.po
  5403. * po/uk.po
  5404. * po/pt_BR.po
  5405. * po/LINGUAS
  5406. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  5407. Added test case for XmlRpcProcessor to fail to parse malformed
  5408. document.
  5409. * test/XmlRpcRequestProcessorTest.cc
  5410. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  5411. Removed *.gmo files in po because they are generated on 'make
  5412. dist'
  5413. * po/*.gmo
  5414. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  5415. Documented max-concurrent-downloads of changeGlobalOption method
  5416. in man page.
  5417. * doc/aria2c.1.txt
  5418. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  5419. Added max-concurrent-downloads option to changeGlobalOption
  5420. xml-rpc method. Rewritten loop conditional in
  5421. RequestGroupMan::fillRequestGroupFromReserver().
  5422. * src/RequestGroupMan.cc
  5423. * src/RequestGroupMan.h
  5424. * src/XmlRpcMethod.cc
  5425. * src/XmlRpcMethodImpl.cc
  5426. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  5427. Documented position parameter in man page.
  5428. * doc/aria2c.1.txt
  5429. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  5430. Added 'position' parameter to addUri, addTorrent and addMetalink
  5431. xml-rpc method.
  5432. * src/RequestGroupMan.cc
  5433. * src/RequestGroupMan.h
  5434. * src/XmlRpcMethodImpl.cc
  5435. * test/XmlRpcMethodTest.cc
  5436. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  5437. Removed Peer.cc from compile source list when --disable-bittorrent
  5438. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  5439. takes Peer.
  5440. * src/DefaultPieceStorage.cc
  5441. * src/DefaultPieceStorage.h
  5442. * src/Makefile.am
  5443. * src/PieceStorage.h
  5444. * src/UnknownLengthPieceStorage.cc
  5445. * src/UnknownLengthPieceStorage.h
  5446. * test/MockPieceStorage.h
  5447. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  5448. Implemented getter methods in header files to give them more
  5449. chance of optimization.
  5450. Return const reference for SharadHandle if possible.
  5451. * src/AbstractAuthResolver.cc
  5452. * src/AbstractAuthResolver.h
  5453. * src/AbstractBtMessage.cc
  5454. * src/AbstractBtMessage.h
  5455. * src/AbstractSingleDiskAdaptor.cc
  5456. * src/AbstractSingleDiskAdaptor.h
  5457. * src/AsyncNameResolver.cc
  5458. * src/AsyncNameResolver.h
  5459. * src/BNode.cc
  5460. * src/BNode.h
  5461. * src/BitfieldMan.cc
  5462. * src/BitfieldMan.h
  5463. * src/BtAbortOutstandingRequestEvent.h
  5464. * src/BtExtendedMessage.cc
  5465. * src/BtExtendedMessage.h
  5466. * src/BtSeederStateChoke.cc
  5467. * src/BtSeederStateChoke.h
  5468. * src/Cookie.cc
  5469. * src/Cookie.h
  5470. * src/DHTBucket.cc
  5471. * src/DHTBucket.h
  5472. * src/DHTConnectionImpl.cc
  5473. * src/DHTConnectionImpl.h
  5474. * src/DHTFindNodeReplyMessage.cc
  5475. * src/DHTFindNodeReplyMessage.h
  5476. * src/DHTGetPeersReplyMessage.cc
  5477. * src/DHTGetPeersReplyMessage.h
  5478. * src/DHTInteractionCommand.cc
  5479. * src/DHTMessage.cc
  5480. * src/DHTMessage.h
  5481. * src/DHTMessageDispatcherImpl.cc
  5482. * src/DHTMessageEntry.cc
  5483. * src/DHTMessageReceiver.cc
  5484. * src/DHTMessageReceiver.h
  5485. * src/DHTMessageTrackerEntry.cc
  5486. * src/DHTMessageTrackerEntry.h
  5487. * src/DHTPeerAnnounceEntry.cc
  5488. * src/DHTPeerAnnounceEntry.h
  5489. * src/DHTPeerLookupTask.cc
  5490. * src/DHTPeerLookupTask.h
  5491. * src/DHTRoutingTableDeserializer.cc
  5492. * src/DHTRoutingTableDeserializer.h
  5493. * src/DefaultBtAnnounce.cc
  5494. * src/DefaultBtAnnounce.h
  5495. * src/DefaultBtMessageDispatcher.cc
  5496. * src/DefaultBtMessageDispatcher.h
  5497. * src/DefaultBtRequestFactory.cc
  5498. * src/DefaultBtRequestFactory.h
  5499. * src/DiskAdaptor.cc
  5500. * src/DiskAdaptor.h
  5501. * src/DownloadContext.cc
  5502. * src/DownloadContext.h
  5503. * src/DownloadEngine.cc
  5504. * src/DownloadEngine.h
  5505. * src/EpollEventPoll.cc
  5506. * src/EpollEventPoll.h
  5507. * src/FtpConnection.cc
  5508. * src/FtpConnection.h
  5509. * src/HttpConnection.cc
  5510. * src/HttpConnection.h
  5511. * src/HttpHeader.cc
  5512. * src/HttpHeader.h
  5513. * src/HttpRequest.cc
  5514. * src/HttpRequest.h
  5515. * src/HttpResponse.cc
  5516. * src/HttpResponse.h
  5517. * src/LibsslTLSContext.cc
  5518. * src/LibsslTLSContext.h
  5519. * src/MSEHandshake.cc
  5520. * src/MSEHandshake.h
  5521. * src/MetalinkEntry.cc
  5522. * src/MetalinkEntry.h
  5523. * src/MetalinkParserController.cc
  5524. * src/MetalinkParserController.h
  5525. * src/MetalinkParserStateMachine.cc
  5526. * src/MetalinkParserStateMachine.h
  5527. * src/MultiDiskAdaptor.cc
  5528. * src/MultiDiskAdaptor.h
  5529. * src/NetrcAuthResolver.cc
  5530. * src/NetrcAuthResolver.h
  5531. * src/Peer.cc
  5532. * src/Peer.h
  5533. * src/PeerSessionResource.cc
  5534. * src/PeerSessionResource.h
  5535. * src/Piece.cc
  5536. * src/Piece.h
  5537. * src/PieceStatMan.cc
  5538. * src/PieceStatMan.h
  5539. * src/Request.cc
  5540. * src/Request.h
  5541. * src/RequestGroup.cc
  5542. * src/RequestGroup.h
  5543. * src/RequestGroupMan.cc
  5544. * src/RequestGroupMan.h
  5545. * src/RequestSlot.cc
  5546. * src/RequestSlot.h
  5547. * src/SegmentMan.cc
  5548. * src/SegmentMan.h
  5549. * src/SelectEventPoll.cc
  5550. * src/SelectEventPoll.h
  5551. * src/ServerStat.cc
  5552. * src/ServerStat.h
  5553. * src/Signature.cc
  5554. * src/Signature.h
  5555. * src/URIResult.cc
  5556. * src/URIResult.h
  5557. * src/UTPexExtensionMessage.cc
  5558. * src/UTPexExtensionMessage.h
  5559. 2009-05-28 Tatsuhiro Tsujikawa <[email protected]>
  5560. Fixed compile error without BitTorrent and Metalink support.
  5561. * src/XmlRpcMethod.cc
  5562. * src/XmlRpcMethodFactory.cc
  5563. * src/XmlRpcMethodImpl.cc
  5564. * src/XmlRpcMethodImpl.h
  5565. * test/XmlRpcMethodTest.cc
  5566. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  5567. Rewritten the help message for --allow-overwrite option.
  5568. * doc/aria2c.1.txt
  5569. * src/usage_text.h
  5570. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  5571. Fixed typo
  5572. * doc/aria2c.1.txt
  5573. * src/usage_text.h
  5574. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  5575. Updated README for 1.4.0 release. Use new table syntax of
  5576. asciidoc.
  5577. * README
  5578. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  5579. Documented --xml-rpc-max-request-size option in man page.
  5580. * doc/aria2c.1.txt
  5581. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  5582. Moved C_* constants from BtContext to DefaultBtContext.
  5583. * src/BtContext.cc: Removed.
  5584. * src/BtContext.h
  5585. * src/DefaultBtContext.cc
  5586. * src/DefaultBtContext.h
  5587. * src/Makefile.am
  5588. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  5589. Use name.utf-8 and path.utf-8 key in higher priority than name and
  5590. path key respectively when persing .torrent file.
  5591. * src/BtContext.cc
  5592. * src/BtContext.h
  5593. * src/DefaultBtContext.cc
  5594. * test/DefaultBtContextTest.cc
  5595. * test/utf8.torrent
  5596. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  5597. Added --xml-rpc-max-request-size option to limit the size of
  5598. XML-RPC request.
  5599. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  5600. Documented XML-RPC API in man page.
  5601. * doc/aria2c.1.txt
  5602. 2009-05-24 Tatsuhiro Tsujikawa <[email protected]>
  5603. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  5604. will break strict-aliasing rules
  5605. * src/PeerConnection.cc
  5606. * test/DHTRoutingTableSerializerTest.cc
  5607. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  5608. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  5609. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  5610. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  5611. PKG_CHECK_MODULES macro uses latter name.
  5612. * m4/sqlite3.m4
  5613. * src/Makefile.am
  5614. * test/Makefile.am
  5615. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  5616. Fixed typo
  5617. * configure.ac
  5618. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  5619. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  5620. presence of libgnutls using pkg-config first. If it fails, fall
  5621. back to old macro libgnutls.m4.
  5622. * configure.ac
  5623. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  5624. Use s itself instead of !s.bad()
  5625. * src/CookieStorage.cc
  5626. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  5627. Documented --on-download-* option and --save-cookies option in man
  5628. page.
  5629. * doc/aria2c.1.txt
  5630. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  5631. Set possible values for --load-cookie option to "/path/to/file".
  5632. * src/OptionHandlerFactory.cc
  5633. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  5634. Added --save-cookies option.
  5635. * src/Cookie.cc
  5636. * src/Cookie.h
  5637. * src/CookieStorage.cc
  5638. * src/CookieStorage.h
  5639. * src/MultiUrlRequestInfo.cc
  5640. * src/OptionHandlerFactory.cc
  5641. * src/prefs.cc
  5642. * src/prefs.h
  5643. * src/usage_text.h
  5644. * test/CookieStorageTest.cc
  5645. * test/CookieTest.cc
  5646. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  5647. Removed tellAll XML-RPC command because its reponse tends to be
  5648. big if stopped/waiting downloads pile up.
  5649. * src/XmlRpcMethodFactory.cc
  5650. * src/XmlRpcMethodImpl.cc
  5651. * src/XmlRpcMethodImpl.h
  5652. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  5653. Added the ability to execute command when download starts and
  5654. stops. You can also specify command for particular cases such as
  5655. complete/error download. Added --on-download-start,
  5656. --on-download-stop, --on-download-complete and --on-download-error
  5657. option.
  5658. * src/OptionHandlerFactory.cc
  5659. * src/RequestGroupMan.cc
  5660. * src/prefs.cc
  5661. * src/prefs.h
  5662. * src/usage_text.h
  5663. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  5664. Fixed test error
  5665. * test/BencodeTest.cc
  5666. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  5667. Added unit tests.
  5668. * test/XmlRpcMethodTest.cc
  5669. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  5670. Made exception message more verbose.
  5671. * src/bencode.cc
  5672. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  5673. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  5674. space in console readout. Also they are now shown in MiB/s if
  5675. speed > 1024KiB/s.
  5676. * src/ConsoleStatCalc.cc
  5677. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  5678. Added SEED to console output, which represents the number of
  5679. seeders currently the client is connecting to.
  5680. * src/ConsoleStatCalc.cc
  5681. * src/ConsoleStatCalc.h
  5682. * src/DownloadEngine.cc
  5683. * src/NullStatCalc.h
  5684. * src/StatCalc.h
  5685. 2009-05-18 Tatsuhiro Tsujikawa <[email protected]>
  5686. Added source filename(__FILE__) and line number(__LINE__) to
  5687. exception message.
  5688. * src/AbstractCommand.cc
  5689. * src/AbstractDiskWriter.cc
  5690. * src/AbstractProxyResponseCommand.cc
  5691. * src/BDE.h
  5692. * src/BtAllowedFastMessage.cc
  5693. * src/BtHandshakeMessageValidator.h
  5694. * src/BtHaveAllMessage.cc
  5695. * src/BtHaveNoneMessage.cc
  5696. * src/BtPieceMessage.cc
  5697. * src/BtRejectMessage.cc
  5698. * src/ChunkedDecoder.cc
  5699. * src/CookieStorage.cc
  5700. * src/DHTAnnouncePeerMessage.cc
  5701. * src/DHTEntryPointNameResolveCommand.cc
  5702. * src/DHTMessageFactoryImpl.cc
  5703. * src/DHTMessageTracker.cc
  5704. * src/DHTRoutingTableDeserializer.cc
  5705. * src/DHTRoutingTableSerializer.cc
  5706. * src/DHTSetup.cc
  5707. * src/DHTTokenTracker.cc
  5708. * src/DefaultBtAnnounce.cc
  5709. * src/DefaultBtContext.cc
  5710. * src/DefaultBtInteractive.cc
  5711. * src/DefaultBtMessageFactory.cc
  5712. * src/DefaultBtProgressInfoFile.cc
  5713. * src/DefaultExtensionMessageFactory.cc
  5714. * src/DlAbortEx.h
  5715. * src/DlRetryEx.h
  5716. * src/DownloadCommand.cc
  5717. * src/DownloadEngineFactory.cc
  5718. * src/DownloadFailureException.h
  5719. * src/Exception.cc
  5720. * src/Exception.h
  5721. * src/ExpatMetalinkProcessor.cc
  5722. * src/ExpatXmlRpcRequestProcessor.cc
  5723. * src/FallocFileAllocationIterator.cc
  5724. * src/FatalException.h
  5725. * src/FtpConnection.cc
  5726. * src/FtpFinishDownloadCommand.cc
  5727. * src/FtpInitiateConnectionCommand.cc
  5728. * src/FtpNegotiationCommand.cc
  5729. * src/GZipDecoder.cc
  5730. * src/HandshakeExtensionMessage.cc
  5731. * src/HttpConnection.cc
  5732. * src/HttpHeaderProcessor.cc
  5733. * src/HttpInitiateConnectionCommand.cc
  5734. * src/HttpResponse.cc
  5735. * src/HttpResponseCommand.cc
  5736. * src/HttpServer.cc
  5737. * src/HttpSkipResponseCommand.cc
  5738. * src/InitiateConnectionCommandFactory.cc
  5739. * src/IteratableChunkChecksumValidator.cc
  5740. * src/LibgcryptARC4Context.h
  5741. * src/LibgcryptARC4Decryptor.h
  5742. * src/LibgcryptARC4Encryptor.h
  5743. * src/LibgcryptDHKeyExchange.h
  5744. * src/LibgnutlsTLSContext.cc
  5745. * src/LibsslARC4Context.h
  5746. * src/LibsslARC4Decryptor.h
  5747. * src/LibsslARC4Encryptor.h
  5748. * src/LibsslDHKeyExchange.h
  5749. * src/LibsslTLSContext.cc
  5750. * src/MSEHandshake.cc
  5751. * src/MessageDigestHelper.cc
  5752. * src/MetalinkHelper.cc
  5753. * src/MultiDiskAdaptor.cc
  5754. * src/NameMatchOptionHandler.h
  5755. * src/NameResolver.cc
  5756. * src/Netrc.cc
  5757. * src/NsCookieParser.cc
  5758. * src/OptionHandlerException.cc
  5759. * src/OptionHandlerException.h
  5760. * src/OptionHandlerImpl.h
  5761. * src/OptionParser.cc
  5762. * src/ParameterizedStringParser.cc
  5763. * src/PeerAbstractCommand.cc
  5764. * src/PeerConnection.cc
  5765. * src/PeerMessageUtil.cc
  5766. * src/PeerReceiveHandshakeCommand.cc
  5767. * src/Platform.cc
  5768. * src/ReceiverMSEHandshakeCommand.cc
  5769. * src/RecoverableException.h
  5770. * src/RequestGroup.cc
  5771. * src/SimpleLogger.cc
  5772. * src/SocketCore.cc
  5773. * src/Sqlite3MozCookieParser.cc
  5774. * src/UTPexExtensionMessage.cc
  5775. * src/Util.cc
  5776. * src/XML2SAXMetalinkProcessor.cc
  5777. * src/Xml2XmlRpcRequestProcessor.cc
  5778. * src/XmlRpcMethodImpl.cc
  5779. * src/bencode.cc
  5780. * src/download_helper.cc
  5781. * src/messageDigest.h
  5782. * test/ExceptionTest.cc
  5783. * test/TestUtil.cc
  5784. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  5785. Bump up version number to 1.4.0
  5786. * configure.ac
  5787. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  5788. Added 2files.metalink to EXTRA_DIST
  5789. * test/Makefile.am
  5790. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5791. Added missing 2files.metalink
  5792. * test/2files.metalink
  5793. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5794. Show "[MEMORY]" prefix before filename in download summary if it
  5795. is downloaded into memory.
  5796. * src/DownloadResult.h
  5797. * src/RequestGroup.cc
  5798. * src/RequestGroupMan.cc
  5799. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5800. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  5801. * src/ExpatXmlRpcRequestProcessor.cc
  5802. * src/Xml2XmlRpcRequestProcessor.cc
  5803. * src/message.h
  5804. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5805. Defined const BDEs to avoid duplicate instantiation.
  5806. Defined MSG_GID_NOT_PROVIDED.
  5807. * src/XmlRpcMethodImpl.cc
  5808. * src/message.h
  5809. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5810. Code cleanup
  5811. * src/Xml2XmlRpcRequestProcessor.cc
  5812. * src/Xml2XmlRpcRequestProcessor.h
  5813. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5814. Defined ENABLE_XML_RPC
  5815. * configure.ac
  5816. * configure
  5817. * config.h.in
  5818. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5819. Added ExpatXmlRpcRequestProcessor
  5820. * src/ExpatXmlRpcRequestProcessor.cc
  5821. * src/ExpatXmlRpcRequestProcessor.h
  5822. * src/Makefile.am
  5823. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5824. Added tests for addTorrent and addMetalink command.
  5825. * test/TestUtil.cc
  5826. * test/TestUtil.h
  5827. * test/XmlRpcMethodTest.cc
  5828. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5829. Corrected the description of --file-allocation option.
  5830. * doc/aria2c.1.txt
  5831. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5832. Added tellAll command.
  5833. * src/XmlRpcMethodFactory.cc
  5834. * src/XmlRpcMethodImpl.cc
  5835. * src/XmlRpcMethodImpl.h
  5836. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5837. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  5838. * src/XmlRpcMethodImpl.cc
  5839. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5840. Added changeGlobalOption command. Currently,
  5841. max-overall-download-limit and max-overall-upload-limit option are
  5842. available.
  5843. * src/RequestGroupMan.h
  5844. * src/XmlRpcMethod.cc
  5845. * src/XmlRpcMethod.h
  5846. * src/XmlRpcMethodFactory.cc
  5847. * src/XmlRpcMethodImpl.cc
  5848. * src/XmlRpcMethodImpl.h
  5849. * test/XmlRpcMethodTest.cc
  5850. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5851. Added changeOption command. Currently, max-download-limit,
  5852. max-upload-limit option are available in this command.
  5853. * src/RequestGroup.h
  5854. * src/XmlRpcMethod.cc
  5855. * src/XmlRpcMethod.h
  5856. * src/XmlRpcMethodFactory.cc
  5857. * src/XmlRpcMethodImpl.cc
  5858. * src/XmlRpcMethodImpl.h
  5859. * test/XmlRpcMethodTest.cc
  5860. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  5861. Added purgeDownloadResult command.
  5862. * src/RequestGroupMan.cc
  5863. * src/RequestGroupMan.h
  5864. * src/XmlRpcMethodFactory.cc
  5865. * src/XmlRpcMethodImpl.cc
  5866. * src/XmlRpcMethodImpl.h
  5867. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  5868. Refactored.
  5869. * src/XmlRpcMethod.cc
  5870. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  5871. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  5872. XmlRpcResponse.
  5873. * src/HttpServerBodyCommand.cc
  5874. * src/Makefile.am
  5875. * src/XmlRpcMethod.cc
  5876. * src/XmlRpcMethod.h
  5877. * src/XmlRpcMethodImpl.cc
  5878. * src/XmlRpcResponse.cc
  5879. * src/XmlRpcResponse.h
  5880. * test/XmlRpcMethodTest.cc
  5881. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  5882. In XML-RPC option struct, header and index-out option can take
  5883. array as value.
  5884. * src/XmlRpcMethod.cc
  5885. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5886. Removed unused option member from PeerConnection.
  5887. * src/InitiatorMSEHandshakeCommand.cc
  5888. * src/PeerConnection.cc
  5889. * src/PeerConnection.h
  5890. * src/PeerInteractionCommand.cc
  5891. * src/PeerReceiveHandshakeCommand.cc
  5892. * src/ReceiverMSEHandshakeCommand.cc
  5893. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5894. Added "seeder" key to getPeers response.
  5895. * src/XmlRpcMethodImpl.cc
  5896. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5897. Added addMetalink XML-RPC command.
  5898. * src/XmlRpcMethodFactory.cc
  5899. * src/XmlRpcMethodImpl.cc
  5900. * src/XmlRpcMethodImpl.h
  5901. * src/download_helper.cc
  5902. * src/download_helper.h
  5903. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5904. Fixed the bug that POU peers are never choked in seeding.
  5905. * src/BtSeederStateChoke.cc
  5906. * src/BtSeederStateChoke.h
  5907. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5908. Added web-seeding URI handling in addTorrent command.
  5909. * src/XmlRpcMethodImpl.cc
  5910. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5911. Added "length" key to getFiles response.
  5912. * src/XmlRpcMethodImpl.cc
  5913. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5914. Moved --no-netrc option from ftp option section to http/ftp option
  5915. section.
  5916. * doc/aria2c.1.txt
  5917. * src/OptionHandlerFactory.cc
  5918. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5919. Removed garbage "\" character before '
  5920. * doc/aria2c.1.txt
  5921. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5922. Removed garbage "\" character before http.
  5923. * doc/aria2c.1.txt
  5924. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5925. Documented additional options that can be specified in -i list.
  5926. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  5927. and --xml-rpc-passwd. Removed --enable-http-server and
  5928. --http-server-listen-port.
  5929. * doc/aria2c.1.txt
  5930. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5931. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  5932. * src/DefaultPeerStorage.cc
  5933. * src/DefaultPeerStorage.h
  5934. * src/PeerStorage.h
  5935. * src/XmlRpcMethodImpl.cc
  5936. * test/MockPeerStorage.h
  5937. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5938. Put a call to Socket::isReadable() in try block.
  5939. * src/HttpServerBodyCommand.cc
  5940. * src/HttpServerCommand.cc
  5941. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5942. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  5943. exception , so it is now in try block.
  5944. * src/HttpServerResponseCommand.cc
  5945. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5946. Added "amChoking" and "peerChoking" key in getPeers response.
  5947. * src/XmlRpcMethodImpl.cc
  5948. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5949. Added test case for zero-length filter.
  5950. * test/BitfieldManTest.cc
  5951. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5952. getFiles command now returns file data for finished/stopped
  5953. downloads.
  5954. * src/XmlRpcMethodImpl.cc
  5955. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5956. DownloadResult now has the list of FileEntry. The download
  5957. summary displays the path of first selected file and the number of
  5958. remaining files for multi-file torrent.
  5959. * src/DownloadResult.h
  5960. * src/RequestGroup.cc
  5961. * src/RequestGroupMan.cc
  5962. * test/RequestGroupTest.cc
  5963. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5964. Fixed segmentation fault error when no file is selected in
  5965. multi-file torrent.
  5966. * src/BitfieldMan.cc
  5967. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5968. Escaped <,>,& character in XML-RPC response.
  5969. * src/XmlRpcMethod.cc
  5970. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5971. Throw DlAbortEx instead of FatalException during parsing options
  5972. because we don't want for aria2 to quit when bad option is passed
  5973. via XML-RPC.
  5974. * src/OptionHandlerException.cc
  5975. * src/OptionHandlerException.h
  5976. * src/OptionHandlerImpl.h
  5977. * src/OptionParser.cc
  5978. * src/OptionParser.h
  5979. * src/PStringSegment.cc
  5980. * src/ParameterizedStringParser.cc
  5981. * src/download_helper.cc
  5982. * test/ParameterizedStringParserTest.cc
  5983. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5984. Selecting files are now done in
  5985. DefaultBtContext::setFileFileter().
  5986. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  5987. functions are removed because they are no longer used. Creating
  5988. filter in BitfieldMan is done in new funtion
  5989. PieceStorage::setupFileFilter()
  5990. * src/BtContext.cc
  5991. * src/BtContext.h
  5992. * src/DefaultBtContext.cc
  5993. * src/DefaultBtContext.h
  5994. * src/DefaultPieceStorage.cc
  5995. * src/DefaultPieceStorage.h
  5996. * src/DiskAdaptor.cc
  5997. * src/DiskAdaptor.h
  5998. * src/PieceStorage.h
  5999. * src/RequestGroup.cc
  6000. * src/UnknownLengthPieceStorage.h
  6001. * src/XmlRpcMethodImpl.cc
  6002. * test/DefaultBtContextTest.cc
  6003. * test/MockBtContext.h
  6004. * test/MockPieceStorage.h
  6005. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  6006. Fixed compile error on Mac OS X
  6007. * src/HttpServer.cc
  6008. * src/XmlRpcMethod.h
  6009. * src/XmlRpcMethodImpl.cc
  6010. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  6011. Use std::binary_search instead of std::find
  6012. * src/DefaultPieceStorage.cc
  6013. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  6014. Removed unnecessary BDE() call; leave them to implicit conversion.
  6015. * src/XmlRpcMethodImpl.cc
  6016. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  6017. Return connections and gid in string
  6018. * src/XmlRpcMethodImpl.cc
  6019. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  6020. Renamed addURI as addUri
  6021. * src/XmlRpcMethodFactory.cc
  6022. * src/XmlRpcMethodImpl.cc
  6023. * src/XmlRpcMethodImpl.h
  6024. * test/XmlRpcMethodTest.cc
  6025. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  6026. Renamed addTorrentFile as addTorrent
  6027. * src/XmlRpcMethodFactory.cc
  6028. * src/XmlRpcMethodImpl.cc
  6029. * src/XmlRpcMethodImpl.h
  6030. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  6031. The information for files, URIs, peers are removed from the
  6032. reponse of TellaActive, TellStatus command because they tend to be
  6033. large. Instead they can be retrieved by the dedicated commands:
  6034. getFiles, getUris and getPeers respectively.
  6035. * src/XmlRpcMethodFactory.cc
  6036. * src/XmlRpcMethodImpl.cc
  6037. * src/XmlRpcMethodImpl.h
  6038. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  6039. Removed --max-overall-upload-limit and
  6040. --max-overall-download-limit option from listRequestOptions.
  6041. * src/download_helper.cc
  6042. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  6043. Log incoming host in HttpListenCommand.
  6044. * src/HttpListenCommand.cc
  6045. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  6046. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  6047. --xml-rpc-passwd option.
  6048. * src/HttpServer.cc
  6049. * src/HttpServer.h
  6050. * src/HttpServerCommand.cc
  6051. * src/OptionHandlerFactory.cc
  6052. * src/prefs.cc
  6053. * src/prefs.h
  6054. * src/usage_text.h
  6055. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  6056. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  6057. processing 0 length request.
  6058. * src/HttpServerBodyCommand.cc
  6059. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  6060. Removed --enable-http-server and --http-server-listen-port
  6061. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  6062. instead. The original feature for --enable-http-server that
  6063. reports download progress in HTML was officially removed. Persist
  6064. XML-RPC connection if client supports keep-alive.
  6065. * src/DownloadEngineFactory.cc
  6066. * src/HttpServerCommand.cc
  6067. * src/HttpServerResponseCommand.cc
  6068. * src/Makefile.am
  6069. * src/Makefile.in
  6070. * src/OptionHandlerFactory.cc
  6071. * src/RequestGroupMan.cc
  6072. * src/main.cc
  6073. * src/option_processing.cc
  6074. * src/prefs.cc
  6075. * src/prefs.h
  6076. * src/usage_text.h
  6077. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  6078. Added "uris" key to the response of tellStatus command. Added
  6079. "connections" key to the response of tellStatus and tellActive
  6080. command.
  6081. * src/XmlRpcMethodImpl.cc
  6082. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  6083. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  6084. Added TellStatusXmlRpcMethod. Remove command can now remove
  6085. waiting RequestGroup.
  6086. * src/RequestGroupMan.cc
  6087. * src/RequestGroupMan.h
  6088. * src/XmlRpcMethodFactory.cc
  6089. * src/XmlRpcMethodImpl.cc
  6090. * src/XmlRpcMethodImpl.h
  6091. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  6092. Initialized _peerId
  6093. * src/Peer.cc
  6094. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  6095. Return fault structure for error. FailXmlRpcMethod is renamed as
  6096. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  6097. in non-torrent download. Return single param value.
  6098. * src/XmlRpcMethod.cc
  6099. * src/XmlRpcMethodFactory.cc
  6100. * src/XmlRpcMethodImpl.cc
  6101. * src/XmlRpcMethodImpl.h
  6102. * test/XmlRpcMethodTest.cc
  6103. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  6104. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  6105. command.
  6106. * src/RequestGroup.cc
  6107. * src/RequestGroup.h
  6108. * src/RequestGroupMan.cc
  6109. * src/XmlRpcMethodImpl.cc
  6110. * test/RequestGroupTest.cc
  6111. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  6112. Added more options that can be specified in -i list and xml-rpc
  6113. add* command.
  6114. * src/download_helper.h
  6115. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  6116. The available options in -i list should be listed in
  6117. listRequestOptions().
  6118. * src/download_helper.cc
  6119. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  6120. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  6121. command.
  6122. * src/XmlRpcMethodImpl.cc
  6123. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  6124. Now RequestGroup has its own copy of Option object. This will help
  6125. to give custom option for each RequestGroup.
  6126. addTorrentFile command now takes options.
  6127. * src/AbstractCommand.cc
  6128. * src/AbstractCommand.h
  6129. * src/AbstractProxyRequestCommand.cc
  6130. * src/ActivePeerConnectionCommand.cc
  6131. * src/ActivePeerConnectionCommand.h
  6132. * src/AdaptiveURISelector.cc
  6133. * src/BtCheckIntegrityEntry.cc
  6134. * src/BtDependency.cc
  6135. * src/BtDependency.h
  6136. * src/BtFileAllocationEntry.cc
  6137. * src/BtPostDownloadHandler.cc
  6138. * src/CheckIntegrityEntry.cc
  6139. * src/DownloadCommand.cc
  6140. * src/FtpDownloadCommand.cc
  6141. * src/FtpFinishDownloadCommand.cc
  6142. * src/FtpInitiateConnectionCommand.cc
  6143. * src/FtpNegotiationCommand.cc
  6144. * src/HttpInitiateConnectionCommand.cc
  6145. * src/HttpRequestCommand.cc
  6146. * src/HttpResponseCommand.cc
  6147. * src/HttpSkipResponseCommand.cc
  6148. * src/InitiateConnectionCommand.cc
  6149. * src/InitiateConnectionCommandFactory.cc
  6150. * src/InitiatorMSEHandshakeCommand.cc
  6151. * src/InitiatorMSEHandshakeCommand.h
  6152. * src/Metalink2RequestGroup.cc
  6153. * src/Metalink2RequestGroup.h
  6154. * src/MetalinkPostDownloadHandler.cc
  6155. * src/MultiUrlRequestInfo.cc
  6156. * src/MultiUrlRequestInfo.h
  6157. * src/PeerAbstractCommand.cc
  6158. * src/PeerInteractionCommand.cc
  6159. * src/PeerInteractionCommand.h
  6160. * src/PeerReceiveHandshakeCommand.cc
  6161. * src/PeerReceiveHandshakeCommand.h
  6162. * src/RequestGroup.cc
  6163. * src/RequestGroup.h
  6164. * src/TrackerWatcherCommand.cc
  6165. * src/TrackerWatcherCommand.h
  6166. * src/XmlRpcMethod.cc
  6167. * src/XmlRpcMethod.h
  6168. * src/XmlRpcMethodImpl.cc
  6169. * src/download_helper.cc
  6170. * src/download_helper.h
  6171. * src/main.cc
  6172. * test/BtDependencyTest.cc
  6173. * test/BtPostDownloadHandlerTest.cc
  6174. * test/DefaultBtMessageDispatcherTest.cc
  6175. * test/DownloadHandlerFactoryTest.cc
  6176. * test/DownloadHelperTest.cc
  6177. * test/Metalink2RequestGroupTest.cc
  6178. * test/MetalinkPostDownloadHandlerTest.cc
  6179. * test/RequestGroupManTest.cc
  6180. * test/RequestGroupTest.cc
  6181. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  6182. Added tellActiveStatus xml-rpc command which reports download
  6183. status of active downloads.
  6184. * src/XmlRpcMethodFactory.cc
  6185. * src/XmlRpcMethodImpl.cc
  6186. * src/XmlRpcMethodImpl.h
  6187. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  6188. Added addTorrentFile xml-rpc command which receives uploaded
  6189. torrent file and add download for it.
  6190. * src/RequestGroupMan.cc
  6191. * src/XmlRpcMethodFactory.cc
  6192. * src/XmlRpcMethodImpl.cc
  6193. * src/XmlRpcMethodImpl.h
  6194. * src/download_helper.cc
  6195. * src/download_helper.h
  6196. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  6197. Added remove xml-rpc command which removes specified download.
  6198. There is a known issue: the removed unfinished downloads are
  6199. reported ERR when aria2 exits. They should be reported as INPR.
  6200. * src/RequestGroupMan.cc
  6201. * src/RequestGroupMan.h
  6202. * src/XmlRpcMethodFactory.cc
  6203. * src/XmlRpcMethodImpl.cc
  6204. * src/XmlRpcMethodImpl.h
  6205. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  6206. If --enable-http-server is enabled, don't stop aria2 when all
  6207. download finished and don't quit when no files to download at
  6208. start up.
  6209. * src/RequestGroupMan.cc
  6210. * src/main.cc
  6211. * src/option_processing.cc
  6212. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  6213. Added missing AM_CONDITIONAL
  6214. * configure.ac
  6215. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  6216. Added xml-rpc functionality. Currently only addURI commad is
  6217. supported. To enable xml-rpc, run aria2 with
  6218. --enable-http-server. This option name is temporal and will be
  6219. changed. The feature that reports download progress in html format
  6220. is temporarily disabled.
  6221. * src/HttpServer.cc
  6222. * src/HttpServer.h
  6223. * src/HttpServerBodyCommand.cc
  6224. * src/HttpServerBodyCommand.h
  6225. * src/HttpServerCommand.cc
  6226. * src/HttpServerResponseCommand.cc
  6227. * src/Makefile.am
  6228. * src/OptionParser.cc
  6229. * src/OptionParser.h
  6230. * src/RequestGroupMan.cc
  6231. * src/RequestGroupMan.h
  6232. * src/XmlRpcMethod.cc
  6233. * src/XmlRpcMethod.h
  6234. * src/XmlRpcMethodFactory.cc
  6235. * src/XmlRpcMethodFactory.h
  6236. * src/XmlRpcMethodImpl.cc
  6237. * src/XmlRpcMethodImpl.h
  6238. * src/download_helper.cc
  6239. * src/download_helper.h
  6240. * test/Makefile.am
  6241. * test/XmlRpcMethodTest.cc
  6242. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  6243. Added xml-rpc request parser. The supported value types are:
  6244. i4/int, string, double, struct, array, base64. Currently only
  6245. libxml2 version is provided.
  6246. * src/Xml2XmlRpcRequestProcessor.cc
  6247. * src/Xml2XmlRpcRequestProcessor.h
  6248. * src/XmlRpcElements.cc
  6249. * src/XmlRpcElements.h
  6250. * src/XmlRpcRequest.h
  6251. * src/XmlRpcRequestParserController.cc
  6252. * src/XmlRpcRequestParserController.h
  6253. * src/XmlRpcRequestParserState.h
  6254. * src/XmlRpcRequestParserStateImpl.cc
  6255. * src/XmlRpcRequestParserStateImpl.h
  6256. * src/XmlRpcRequestParserStateMachine.cc
  6257. * src/XmlRpcRequestParserStateMachine.h
  6258. * src/XmlRpcRequestProcessor.h
  6259. * test/XmlRpcRequestParserControllerTest.cc
  6260. * test/XmlRpcRequestProcessorTest.cc
  6261. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  6262. * Release 1.3.3
  6263. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  6264. Fixed compile error since r1202.
  6265. * src/ExpatMetalinkProcessor.cc
  6266. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  6267. Updated Ukrainian, Russian and Simplified Chinese
  6268. translations. Thanks to all translators.
  6269. * po/ru.po
  6270. * po/uk.po
  6271. * po/zh_CN.po
  6272. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  6273. Pass reference of Option object instead of pointer.
  6274. * src/download_helper.cc
  6275. * src/download_helper.h
  6276. * src/main.cc
  6277. * test/DownloadHelperTest.cc
  6278. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  6279. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  6280. from option directly. Instead, get them from RequestGroup.
  6281. * src/ActivePeerConnectionCommand.cc
  6282. * src/ActivePeerConnectionCommand.h
  6283. * src/PeerReceiveHandshakeCommand.cc
  6284. * src/RequestGroup.h
  6285. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  6286. Removed unused uploadLimitCheck and uploadLimit from
  6287. PeerAbstractCommand. Removed unused maxDownloadLimit from
  6288. PeerInteractionCommand.
  6289. * src/PeerAbstractCommand.cc
  6290. * src/PeerAbstractCommand.h
  6291. * src/PeerInteractionCommand.cc
  6292. * src/PeerInteractionCommand.h
  6293. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  6294. Fixed broken file renaming feature since r1202.
  6295. * src/FtpNegotiationCommand.cc
  6296. * src/FtpNegotiationCommand.h
  6297. * src/HttpResponseCommand.cc
  6298. * src/RequestGroup.cc
  6299. * src/RequestGroup.h
  6300. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  6301. Removed unused debug log
  6302. * src/SocketCore.cc
  6303. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  6304. Generated configure and Makefile.in using autoconf 2.63 and
  6305. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  6306. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  6307. * configure.ac
  6308. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  6309. Moved piece statistics stuff to new PieceStatMan class.
  6310. Refactored PieceSelector interface.
  6311. * src/DefaultPieceStorage.cc
  6312. * src/DefaultPieceStorage.h
  6313. * src/LongestSequencePieceSelector.cc
  6314. * src/LongestSequencePieceSelector.h
  6315. * src/Makefile.am
  6316. * src/PieceSelector.h
  6317. * src/PieceStatMan.cc
  6318. * src/PieceStatMan.h
  6319. * src/RarestPieceSelector.cc
  6320. * src/RarestPieceSelector.h
  6321. * src/RequestGroup.cc
  6322. * test/DefaultPieceStorageTest.cc
  6323. * test/InOrderPieceSelector.h
  6324. * test/Makefile.am
  6325. * test/PieceStatManTest.cc
  6326. * test/RarestPieceSelectorTest.cc
  6327. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  6328. Added static member _protocolFamily to SocketCore. By default,
  6329. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  6330. address. Sometime SocketCore::bind() and
  6331. SocketCore::establishConnection() use difference protocl family
  6332. and latter cannot connect to former. To avoid this situation, we
  6333. limit protocol family to AF_INET for unit tests.
  6334. * src/SocketCore.cc
  6335. * src/SocketCore.h
  6336. * test/AllTest.cc
  6337. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  6338. Avoid std::bad_alloc for negative bencode string length.
  6339. * src/bencode.cc
  6340. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  6341. Supported segmented downloading with chunked transfer encoding and
  6342. content-length.
  6343. * src/DownloadCommand.cc
  6344. * src/HttpResponseCommand.cc
  6345. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  6346. Bump up version number to 1.3.3
  6347. * configure.ac
  6348. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  6349. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  6350. from 4096 to 65536 (for insanely large ftp login banners)
  6351. * src/FtpConnection.h
  6352. * test/FtpConnectionTest.cc
  6353. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  6354. In DefaultBtContext::getActualBasePath(), return first
  6355. FileEntry::getPath() for single file torrent.
  6356. * src/DefaultBtContext.cc
  6357. * test/DefaultBtContextTest.cc
  6358. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  6359. Removed directIOAllowed() from BinaryStream, DiskWriter,
  6360. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  6361. Removed _directIOAllowed member from DiskWriter.
  6362. * src/AbstractDiskWriter.cc
  6363. * src/AbstractDiskWriter.h
  6364. * src/AbstractSingleDiskAdaptor.cc
  6365. * src/AbstractSingleDiskAdaptor.h
  6366. * src/BinaryStream.h
  6367. * src/ByteArrayDiskWriter.h
  6368. * src/DefaultPieceStorage.cc
  6369. * src/DiskWriter.h
  6370. * src/MultiDiskAdaptor.cc
  6371. * src/MultiDiskAdaptor.h
  6372. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  6373. Now the constructor of AbstractDiskWriter takes filename as an
  6374. argument and filename argument is removed from openFile(),
  6375. initAndOpenFile(), openExistingFile() interface. storeDir member
  6376. and its accessor functions are removed from DiskAdaptor because it
  6377. is not used anymore. size() member function of DefaultDiskWriter,
  6378. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  6379. opening file.
  6380. * src/AbstractDiskWriter.cc
  6381. * src/AbstractDiskWriter.h
  6382. * src/AbstractSingleDiskAdaptor.cc
  6383. * src/AbstractSingleDiskAdaptor.h
  6384. * src/ByteArrayDiskWriter.cc
  6385. * src/ByteArrayDiskWriter.h
  6386. * src/ByteArrayDiskWriterFactory.cc
  6387. * src/ByteArrayDiskWriterFactory.h
  6388. * src/DefaultDiskWriter.cc
  6389. * src/DefaultDiskWriter.h
  6390. * src/DefaultDiskWriterFactory.cc
  6391. * src/DefaultDiskWriterFactory.h
  6392. * src/DefaultPieceStorage.cc
  6393. * src/DirectDiskAdaptor.cc
  6394. * src/DirectDiskAdaptor.h
  6395. * src/DiskAdaptor.h
  6396. * src/DiskWriter.h
  6397. * src/DiskWriterFactory.h
  6398. * src/MessageDigestHelper.cc
  6399. * src/MultiDiskAdaptor.cc
  6400. * src/RequestGroup.cc
  6401. * src/UnknownLengthPieceStorage.cc
  6402. * src/Util.cc
  6403. * test/DefaultDiskWriterTest.cc
  6404. * test/DirectDiskAdaptorTest.cc
  6405. * test/FallocFileAllocationIteratorTest.cc
  6406. * test/MessageDigestHelperTest.cc
  6407. * test/MetalinkProcessorTest.cc
  6408. * test/MultiDiskAdaptorTest.cc
  6409. * test/MultiFileAllocationIteratorTest.cc
  6410. * test/SingleFileAllocationIteratorTest.cc
  6411. * test/UtilTest.cc
  6412. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  6413. Fixed the bug that aria2 aborts when --select-file is used. This
  6414. bug was introduced in r1199.
  6415. * src/MultiDiskAdaptor.cc
  6416. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  6417. Code cleanup
  6418. * test/MockPieceStorage.cc
  6419. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  6420. Fixed the bug that read-only file with wrong file size will cause
  6421. error because it cannot be truncated to the correct size. Now if
  6422. file size is different than the expected one, re-open file in
  6423. writable mode.
  6424. * src/AbstractSingleDiskAdaptor.cc
  6425. * src/AbstractSingleDiskAdaptor.h
  6426. * src/BtCheckIntegrityEntry.cc
  6427. * src/DiskAdaptor.h
  6428. * src/MultiDiskAdaptor.h
  6429. * src/RequestGroup.cc
  6430. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  6431. Fixed the bug that with --check-integrity option aria2 reports
  6432. downloaded file size is 0 even if some parts of file is correctly
  6433. downloaded. This bug is reproducible for the download that a file
  6434. includes last piece is missing. This bug doesn't reveal for
  6435. single-torrent with file allocation on.
  6436. * src/IteratableChecksumValidator.cc
  6437. * test/IteratableChecksumValidatorTest.cc
  6438. 2009-05-01 Tatsuhiro Tsujikawa <[email protected]>
  6439. Avoid circular reference between RequestGroup and AdaptiveURISelector
  6440. * src/RequestGroupMan.cc
  6441. * src/AdaptiveURISelector.cc
  6442. * src/AdaptiveURISelector.h
  6443. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  6444. * Release 1.3.2
  6445. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  6446. Updated README
  6447. * README
  6448. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  6449. Updated Ukrainian translations. Thanks to Alexander10.
  6450. * po/uk.po
  6451. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  6452. Code cleanup
  6453. * src/MetalinkParserStateMachine.cc
  6454. * src/MetalinkParserStateMachine.h
  6455. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  6456. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  6457. and expat simultaneously, MetalinkProcessor is now not base class
  6458. and it is directly implemented in XML2SAXMetalinkProcessor and
  6459. ExpatMetalinkProcessor.
  6460. * src/ExpatMetalinkProcessor.cc
  6461. * src/ExpatMetalinkProcessor.h
  6462. * src/Makefile.am
  6463. * src/MetalinkHelper.cc
  6464. * src/MetalinkProcessor.h
  6465. * src/MetalinkProcessorFactory.cc: Removed.
  6466. * src/MetalinkProcessorFactory.h: Removed
  6467. * src/XML2SAXMetalinkProcessor.cc
  6468. * src/XML2SAXMetalinkProcessor.h
  6469. * test/MetalinkProcessorTest.cc
  6470. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  6471. Bump up version number to 1.3.2
  6472. * configure.ac
  6473. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  6474. Added missing file.
  6475. * test/Makefile.am
  6476. * test/url-list-singleFileEndsWithSlash.torrent
  6477. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  6478. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  6479. request.
  6480. * src/AnnounceList.cc
  6481. * src/AnnounceList.h
  6482. * src/BDE.cc: Added
  6483. * src/BDE.h: Added
  6484. * src/DHTAbstractMessage.cc
  6485. * src/DHTAbstractMessage.h
  6486. * src/DHTAnnouncePeerMessage.cc
  6487. * src/DHTAnnouncePeerMessage.h
  6488. * src/DHTAnnouncePeerReplyMessage.cc
  6489. * src/DHTAnnouncePeerReplyMessage.h
  6490. * src/DHTFindNodeMessage.cc
  6491. * src/DHTFindNodeMessage.h
  6492. * src/DHTFindNodeReplyMessage.cc
  6493. * src/DHTFindNodeReplyMessage.h
  6494. * src/DHTGetPeersMessage.cc
  6495. * src/DHTGetPeersMessage.h
  6496. * src/DHTGetPeersReplyMessage.cc
  6497. * src/DHTGetPeersReplyMessage.h
  6498. * src/DHTMessageFactory.h
  6499. * src/DHTMessageFactoryImpl.cc
  6500. * src/DHTMessageFactoryImpl.h
  6501. * src/DHTMessageReceiver.cc
  6502. * src/DHTMessageTracker.cc
  6503. * src/DHTMessageTracker.h
  6504. * src/DHTPingMessage.cc
  6505. * src/DHTPingMessage.h
  6506. * src/DHTPingReplyMessage.cc
  6507. * src/DHTPingReplyMessage.h
  6508. * src/DHTQueryMessage.cc
  6509. * src/DHTQueryMessage.h
  6510. * src/DHTResponseMessage.cc
  6511. * src/DHTResponseMessage.h
  6512. * src/DefaultBtAnnounce.cc
  6513. * src/DefaultBtContext.cc
  6514. * src/DefaultBtContext.h
  6515. * src/HandshakeExtensionMessage.cc
  6516. * src/Makefile.am
  6517. * src/PeerListProcessor.h
  6518. * src/UTPexExtensionMessage.cc
  6519. * src/bencode.cc
  6520. * src/bencode.h
  6521. * test/AnnounceListTest.cc
  6522. * test/BDETest.cc: Added
  6523. * test/BencodeTest.cc
  6524. * test/DHTAnnouncePeerMessageTest.cc
  6525. * test/DHTAnnouncePeerReplyMessageTest.cc
  6526. * test/DHTFindNodeMessageTest.cc
  6527. * test/DHTFindNodeReplyMessageTest.cc
  6528. * test/DHTGetPeersMessageTest.cc
  6529. * test/DHTGetPeersReplyMessageTest.cc
  6530. * test/DHTMessageFactoryImplTest.cc
  6531. * test/DHTMessageTrackerTest.cc
  6532. * test/DHTPingMessageTest.cc
  6533. * test/DHTPingReplyMessageTest.cc
  6534. * test/Makefile.am
  6535. * test/MockDHTMessageFactory.h
  6536. * test/PeerListProcessorTest.cc
  6537. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  6538. Use url-list (web-seeding) only for single-file torrent. This is
  6539. basically the same behavior with Metalink file with torrent and
  6540. URIs.
  6541. * src/RequestGroup.cc
  6542. * src/DefaultBtContext.cc
  6543. * test/DefaultBtContextTest.cc
  6544. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  6545. Rewritten expr
  6546. * src/array_fun.h
  6547. * test/array_funTest.cc
  6548. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  6549. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  6550. * src/DefaultBtMessageDispatcher.cc
  6551. * src/a2algo.h
  6552. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  6553. Removed ExtendedMessagingAware. Instead of using inheritance,
  6554. added ExtensionMessageRegistry and it is passed to
  6555. DefaultExtensionMessageFactory.
  6556. * src/DefaultBtInteractive.cc
  6557. * src/DefaultBtInteractive.h
  6558. * src/DefaultExtensionMessageFactory.cc
  6559. * src/DefaultExtensionMessageFactory.h
  6560. * src/ExtendedMessagingAware.h: Removed.
  6561. * src/ExtensionMessageFactory.h
  6562. * src/ExtensionMessageRegistry.h: Added.
  6563. * src/Makefile.am
  6564. * src/PeerInteractionCommand.cc
  6565. * test/DefaultExtensionMessageFactoryTest.cc
  6566. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  6567. Fixed typo in log messages
  6568. * src/MSEHandshake.cc
  6569. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  6570. Fixed the bug that prevents torrent download from finishing. The
  6571. bug doesn't reveal for all torrents. The torrents affected this
  6572. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  6573. of pieces.
  6574. * src/bitfield.h
  6575. * test/bitfieldTest.cc
  6576. 2009-04-24 Tatsuhiro Tsujikawa <[email protected]>
  6577. Code cleanup
  6578. * src/PeerListProcessor.h
  6579. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  6580. Removed RequestGroupAware
  6581. * src/AbstractCommand.cc
  6582. * src/AbstractCommand.h
  6583. * src/ActivePeerConnectionCommand.cc
  6584. * src/ActivePeerConnectionCommand.h
  6585. * src/DHTGetPeersCommand.cc
  6586. * src/DHTGetPeersCommand.h
  6587. * src/InitiatorMSEHandshakeCommand.cc
  6588. * src/InitiatorMSEHandshakeCommand.h
  6589. * src/Makefile.am
  6590. * src/PeerInitiateConnectionCommand.cc
  6591. * src/PeerInitiateConnectionCommand.h
  6592. * src/PeerInteractionCommand.cc
  6593. * src/PeerInteractionCommand.h
  6594. * src/RealtimeCommand.cc
  6595. * src/RealtimeCommand.h
  6596. * src/RequestGroupAware.cc: Removed
  6597. * src/RequestGroupAware.h: Removed
  6598. * src/SeedCheckCommand.cc
  6599. * src/SeedCheckCommand.h
  6600. * src/SleepCommand.cc
  6601. * src/TrackerWatcherCommand.cc
  6602. * src/TrackerWatcherCommand.h
  6603. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  6604. Rewritten PeerListProcessor
  6605. * src/PeerListProcessor.h
  6606. * src/CompactPeerListProcessor.h: Removed
  6607. * src/CompactPeerListProcessor.cc: Removed
  6608. * src/DelegatingPeerListProcessor.cc: Removed.
  6609. * src/DefaultBtAnnounce.cc
  6610. * src/Makefile.am
  6611. * src/UTPexExtensionMessage.cc
  6612. * src/DefaultPeerListProcessor.h: Removed.
  6613. * src/DefaultPeerListProcessor.cc: Removed.
  6614. * src/DelegatingPeerListProcessor.h: Removed.
  6615. * test/Makefile.am
  6616. * test/PeerListProcessorTest.cc
  6617. * test/DefaultPeerListProcessorTest.cc: Removed.
  6618. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  6619. Rewritten RequestGroupMan::calculateStat()
  6620. * src/RequestGroupMan.cc
  6621. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  6622. Removed unnecessary virtual destructor for Request class.
  6623. * src/Request.cc
  6624. * src/Request.h
  6625. 2009-04-22 Tatsuhiro Tsujikawa <[email protected]>
  6626. Avoid dynamic_pointer_cast.
  6627. * src/DHTGetPeersCommand.cc
  6628. * src/DHTGetPeersCommand.h
  6629. 2009-04-21 Tatsuhiro Tsujikawa <[email protected]>
  6630. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  6631. BtEvent.
  6632. * src/AbstractBtEventListener.h: Removed.
  6633. * src/AbstractBtMessage.cc
  6634. * src/AbstractBtMessage.h
  6635. * src/BtAbortOutstandingRequestEvent.h
  6636. * src/BtCancelSendingPieceEvent.h
  6637. * src/BtChokedEvent.h: Removed.
  6638. * src/BtChokingEvent.h
  6639. * src/BtEvent.h: Removed
  6640. * src/BtEventListener.h: Removed.
  6641. * src/BtMessage.h
  6642. * src/BtPieceMessage.cc
  6643. * src/BtPieceMessage.h
  6644. * src/BtRequestMessage.cc
  6645. * src/BtRequestMessage.h
  6646. * src/DefaultBtMessageDispatcher.cc
  6647. * src/Makefile.am
  6648. * src/a2functional.h
  6649. * test/BtPieceMessageTest.cc
  6650. * test/BtRequestMessageTest.cc
  6651. * test/DefaultBtMessageDispatcherTest.cc
  6652. * test/MockBtMessage.h
  6653. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  6654. Code cleanup
  6655. * src/RequestGroupMan.cc
  6656. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  6657. Code cleanup
  6658. * src/DownloadCommand.cc
  6659. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  6660. Fixed segmentation fault when GZipDecoder::decode() returns 0
  6661. byte.
  6662. * src/DownloadCommand.cc
  6663. * src/bitfield.h
  6664. * test/bitfieldTest.cc
  6665. Fixed the bug that causes infinite loop if broken web server
  6666. returns chunked response without last "0" chunk-size marker and
  6667. closes connection.
  6668. * src/DownloadCommand.cc
  6669. Instantiate properly configured HttpDownloadCommand for
  6670. non-resumable downlaods.
  6671. * src/HttpResponseCommand.cc
  6672. 2009-04-16 Tatsuhiro Tsujikawa <[email protected]>
  6673. Rewritten array operation functions.
  6674. * src/BitfieldMan.cc
  6675. * src/array_fun.h
  6676. * test/array_funTest.cc
  6677. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  6678. Removed unused variable 'query'
  6679. * src/Request.cc
  6680. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  6681. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  6682. accidentally set to false in r1162.
  6683. * configure.ac
  6684. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  6685. Code cleanup
  6686. * src/BNode.cc
  6687. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  6688. Increase prefixLength for the bucket which doesn't own local node
  6689. ID when splitting bucket.
  6690. * src/DHTBucket.cc
  6691. * test/DHTBucketTest.cc
  6692. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  6693. * Release 1.3.1
  6694. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  6695. Bump up version number to 1.3.1
  6696. * configure.ac
  6697. 2009-04-08 Tatsuhiro Tsujikawa <[email protected]>
  6698. Removed unused variable checkPoint. Also removed include directive
  6699. for TimeA2.h.
  6700. * src/SeedCheckCommand.h
  6701. 2009-04-07 Tatsuhiro Tsujikawa <[email protected]>
  6702. Fixed the bug that upload limit exceeds the value specified in
  6703. --seed-ratio option depending on the timing of the execution of
  6704. SeedCheckCommand.
  6705. * src/SeedCheckCommand.cc
  6706. 2009-04-05 Tatsuhiro Tsujikawa <[email protected]>
  6707. Fixed the bug that removed peer's session upload/download length
  6708. are counted twice in _cachedTransferStat before it is
  6709. re-calculated. This affected the calculation of shara ratio,
  6710. resulting aria2 wrongly determines that specified share ratio is
  6711. reached. Also fixed the typo in calculateStatFor function name.
  6712. * src/BtSetup.cc
  6713. * src/DefaultPeerStorage.cc
  6714. * src/ShareRatioSeedCriteria.h
  6715. * test/ShareRatioSeedCriteriaTest.cc
  6716. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  6717. * Release 1.3.0
  6718. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  6719. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  6720. Nynorsk translations. Thanks to all translators.
  6721. * po/es.po
  6722. * po/ja.po
  6723. * po/nn.po
  6724. * po/ru.po
  6725. * po/uk.po
  6726. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  6727. Rewritten isInRange()
  6728. * src/DHTBucket.cc
  6729. * test/DHTBucketTest.cc
  6730. 2009-03-30 Tatsuhiro Tsujikawa <[email protected]>
  6731. Fixed typo
  6732. * doc/aria2c.1.txt
  6733. 2009-03-29 Tatsuhiro Tsujikawa <[email protected]>
  6734. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  6735. malloc/realloc is not used.
  6736. * src/configure.ac
  6737. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  6738. BitfieldMan::getMissingIndexes family functions now takes unsigned
  6739. char* bitfield instead of stl container for efficiency.
  6740. PieceSelector::select now takes this
  6741. bitfield. RarestPieceSelector::select now also performs
  6742. efficiently for this change. bitfield namespace is introduced and
  6743. it has several helper functions to handle basic bitfield
  6744. operations such as test, count set bits, etc.
  6745. * src/BitfieldMan.cc
  6746. * src/BitfieldMan.h
  6747. * src/DefaultBtRequestFactory.cc
  6748. * src/DefaultPieceStorage.cc
  6749. * src/DefaultPieceStorage.h
  6750. * src/LongestSequencePieceSelector.cc
  6751. * src/LongestSequencePieceSelector.h
  6752. * src/Makefile.am
  6753. * src/Piece.cc
  6754. * src/Piece.h
  6755. * src/PieceSelector.h
  6756. * src/RarestPieceSelector.cc
  6757. * src/RarestPieceSelector.h
  6758. * src/Util.cc
  6759. * src/Util.h
  6760. * src/bitfield.h
  6761. * test/BitfieldManTest.cc
  6762. * test/LongestSequencePieceSelectorTest.cc
  6763. * test/Makefile.am
  6764. * test/RarestPieceSelectorTest.cc
  6765. * test/UtilTest.cc
  6766. * test/bitfieldTest.cc
  6767. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  6768. Made accepted socket non-block.
  6769. * src/FtpNegotiationCommand.cc
  6770. * src/HttpListenCommand.cc
  6771. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  6772. Guarded #ifdef HAVE_POSIX_FALLOCATE
  6773. * src/AbstractSingleDiskAdaptor.cc
  6774. * src/DefaultPieceStorage.cc
  6775. * src/DiskAdaptor.h
  6776. * src/DiskAdaptor.h
  6777. * src/MultiFileAllocationIterator.cc
  6778. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  6779. Run
  6780. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  6781. in every 1 sec. The timeout of RequestSlot is 60s by default and
  6782. it doesn't need to be called every time when
  6783. DefaultBtInteractive::doInteractionProcessing() is called.
  6784. * src/DefaultBtInteractive.cc
  6785. * src/DefaultBtInteractive.h
  6786. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  6787. Documented 'falloc' in man page.
  6788. * doc/aria2c.1.txt
  6789. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  6790. Updated doc
  6791. * src/usage_text.h
  6792. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  6793. Added 'falloc' parameter for --file-allocation option. 'falloc'
  6794. allocation mode uses posix_fallocate() system call to allocate
  6795. file on disk. If you are using newer file systems such as ext4
  6796. (with extents support), btrfs or xfs, 'falloc' is your best
  6797. choice. It allocates large(few GiB) files almost instantly. Don't
  6798. use 'falloc' with legacy file systems such as ext3 because it
  6799. takes almost same time as 'prealloc' and it blocks aria2 entirely
  6800. until allocation finishes. 'falloc' may not be available if your
  6801. system doesn't have posix_fallocate() system call.
  6802. * configure.ac
  6803. * src/AbstractDiskWriter.cc
  6804. * src/AbstractDiskWriter.h
  6805. * src/AbstractSingleDiskAdaptor.cc
  6806. * src/BinaryStream.h
  6807. * src/BtCheckIntegrityEntry.cc
  6808. * src/ByteArrayDiskWriter.h
  6809. * src/CheckIntegrityEntry.cc
  6810. * src/CheckIntegrityEntry.h
  6811. * src/DefaultPieceStorage.cc
  6812. * src/DiskAdaptor.cc
  6813. * src/DiskAdaptor.h
  6814. * src/DiskWriter.h
  6815. * src/FallocFileAllocationIterator.cc
  6816. * src/FallocFileAllocationIterator.h
  6817. * src/FileAllocationEntry.cc
  6818. * src/FileAllocationEntry.h
  6819. * src/Makefile.am
  6820. * src/MultiFileAllocationIterator.cc
  6821. * src/MultiFileAllocationIterator.h
  6822. * src/OptionHandlerFactory.cc
  6823. * src/RequestGroup.cc
  6824. * src/StreamCheckIntegrityEntry.cc
  6825. * src/prefs.cc
  6826. * src/prefs.h
  6827. * src/usage_text.h
  6828. * test/FallocFileAllocationIteratorTest.cc
  6829. * test/Makefile.am
  6830. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  6831. Removed duplicate enableDirectIO() call.
  6832. * src/MultiFileAllocationIterator.cc
  6833. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  6834. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  6835. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  6836. cost of std::rotate().
  6837. * src/RarestPieceSelector.cc
  6838. * src/RarestPieceSelector.h
  6839. * test/RarestPieceSelectorTest.cc
  6840. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  6841. Updated usage doc for --bt-tracker-interval option.
  6842. * src/usage_text.h
  6843. * doc/aria2c.1.txt
  6844. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  6845. Documented --bt-tracker-interval option in man page.
  6846. * doc/aria2c.1.txt
  6847. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  6848. Added an option to specify the interval between tracker requests.
  6849. If non-zero value is specified, aria2 uses it and ignores the
  6850. interval value in the response of tracker. If zero is specified,
  6851. aria2 determines the inteval value based on the tarcker response
  6852. and download progress.
  6853. * src/DefaultBtAnnounce.cc
  6854. * src/DefaultBtAnnounce.h
  6855. * src/OptionHandlerFactory.cc
  6856. * src/RequestGroup.cc
  6857. * src/prefs.cc
  6858. * src/prefs.h
  6859. * src/usage_text.h
  6860. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  6861. Added operator+=, operator-=, operator-
  6862. * src/TransferStat.cc
  6863. * src/TransferStat.h
  6864. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  6865. Refactored RarestPieceSelector to reduce CPU load, especially for
  6866. addPieceStats.
  6867. * src/RarestPieceSelector.cc
  6868. * src/RarestPieceSelector.h
  6869. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  6870. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  6871. getAllMissingBlockIndexes to reduce a call to
  6872. array_function_base::operator[].
  6873. * src/BitfieldMan.cc
  6874. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  6875. Cached TransferStat/download speed to avoid to sum them up in each
  6876. call.
  6877. * src/DefaultPeerStorage.cc
  6878. * src/DefaultPeerStorage.h
  6879. * src/SegmentMan.cc
  6880. * src/SegmentMan.h
  6881. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  6882. Typedefed cuid_t as int32_t in Command.h
  6883. * src/CUIDCounter.h
  6884. * src/Command.cc
  6885. * src/Command.h
  6886. * src/DownloadEngine.cc
  6887. * src/DownloadEngine.h
  6888. * src/PeerStat.h
  6889. * src/SegmentMan.cc
  6890. * src/SegmentMan.h
  6891. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  6892. Reduced the number of calls to PeerStorage::calculateStat() and
  6893. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  6894. transfer rate.
  6895. * src/DefaultBtInteractive.cc
  6896. * src/DefaultBtMessageDispatcher.cc
  6897. * src/DefaultPeerStorage.cc
  6898. * src/DefaultPeerStorage.h
  6899. * src/DownloadCommand.cc
  6900. * src/DownloadEngine.cc
  6901. * src/PeerStorage.h
  6902. * src/SegmentMan.cc
  6903. * src/SegmentMan.h
  6904. * test/MockPeerStorage.h
  6905. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6906. Prepended _dir+"/" after joining path elements in torrent file.
  6907. * src/DefaultBtContext.cc
  6908. * test/DefaultBtContextTest.cc
  6909. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6910. Added missing IndexBtMessageValidator.h
  6911. * src/Makefile.am
  6912. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6913. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  6914. Chinese translations. Thank you for contributing our project.
  6915. * po/id.po
  6916. * po/it.po
  6917. * po/ru.po
  6918. * po/uk.po
  6919. * po/zh_CN.po
  6920. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6921. Updated README
  6922. * README
  6923. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6924. Bump up version number to 1.3.0
  6925. * configure.ac
  6926. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6927. Updated doc
  6928. * src/DefaultBtContext.h
  6929. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6930. Slice/joinPath for name of single torrent.
  6931. * src/DefaultBtContext.cc
  6932. * test/DefaultBtContextTest.cc
  6933. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6934. Updated man page: Documented --dry-run and --index-out
  6935. options. Changed the default value of --uri-selector and
  6936. --http-auth-challenge options. Removed --direct-file-mapping
  6937. option. Added example for --index-out
  6938. * doc/aria2c.1.txt
  6939. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6940. Updated TEXT_DRY_RUN
  6941. * src/usage_text.h
  6942. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6943. Changed the default value of --uri-selector option from 'inorder'
  6944. to 'feedback'
  6945. * src/OptionHandlerFactory.cc
  6946. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6947. Included current URI in exception message.
  6948. * src/AbstractCommand.cc
  6949. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6950. Renamed ServerStatURISelector as FeedbackURISelector.
  6951. * src/FeedbackURISelector.cc
  6952. * src/FeedbackURISelector.h
  6953. * src/Makefile.am
  6954. * src/RequestGroupMan.cc
  6955. * src/ServerStatURISelector.cc
  6956. * src/ServerStatURISelector.h
  6957. * test/FeedbackURISelectorTest.cc
  6958. * test/Makefile.am
  6959. * test/ServerStatURISelectorTest.cc
  6960. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6961. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  6962. all URIs are tested and their timeout is not reached.
  6963. * src/AdaptiveURISelector.cc
  6964. * src/AdaptiveURISelector.h
  6965. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6966. Changed the default value of --http-auth-challenge option to false.
  6967. * src/OptionHandlerFactory.cc
  6968. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6969. Reuse URIs when all unused URIs run out.
  6970. * src/OptionHandlerFactory.cc
  6971. * src/RequestGroup.cc
  6972. * src/prefs.cc
  6973. * src/prefs.h
  6974. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6975. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  6976. and BtRejectMessage are derived from RangeBtMessage class.
  6977. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  6978. derived from IndexBtMessage class. BtChokeMessage,
  6979. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  6980. BtNotInterestedMessage and BtUnchokeMessage are derived from
  6981. ZeroBtMessage class.
  6982. * src/AbstractBtMessage.cc
  6983. * src/AbstractBtMessage.h
  6984. * src/BtAllowedFastMessage.cc
  6985. * src/BtAllowedFastMessage.h
  6986. * src/BtAllowedFastMessageValidator.h: Removed
  6987. * src/BtBitfieldMessage.cc
  6988. * src/BtBitfieldMessage.h
  6989. * src/BtCancelMessage.cc
  6990. * src/BtCancelMessage.h
  6991. * src/BtCancelMessageValidator.h: Removed
  6992. * src/BtChokeMessage.cc
  6993. * src/BtChokeMessage.h
  6994. * src/BtExtendedMessage.cc
  6995. * src/BtExtendedMessage.h
  6996. * src/BtHandshakeMessage.cc
  6997. * src/BtHandshakeMessage.h
  6998. * src/BtHaveAllMessage.cc
  6999. * src/BtHaveAllMessage.h
  7000. * src/BtHaveMessage.cc
  7001. * src/BtHaveMessage.h
  7002. * src/BtHaveMessageValidator.h: Removed
  7003. * src/BtHaveNoneMessage.cc
  7004. * src/BtHaveNoneMessage.h
  7005. * src/BtInterestedMessage.cc
  7006. * src/BtInterestedMessage.h
  7007. * src/BtKeepAliveMessage.cc
  7008. * src/BtKeepAliveMessage.h
  7009. * src/BtNotInterestedMessage.cc
  7010. * src/BtNotInterestedMessage.h
  7011. * src/BtPieceMessage.cc
  7012. * src/BtPieceMessage.h
  7013. * src/BtPortMessage.cc
  7014. * src/BtPortMessage.h
  7015. * src/BtRejectMessage.cc
  7016. * src/BtRejectMessage.h
  7017. * src/BtRejectMessageValidator.h: Removed
  7018. * src/BtRequestMessage.cc
  7019. * src/BtRequestMessage.h
  7020. * src/BtRequestMessageValidator.h: Removed
  7021. * src/BtSuggestPieceMessage.cc
  7022. * src/BtSuggestPieceMessage.h
  7023. * src/BtSuggestPieceMessageValidator.h: Removed
  7024. * src/BtUnchokeMessage.cc
  7025. * src/BtUnchokeMessage.h
  7026. * src/DefaultBtMessageFactory.cc
  7027. * src/IndexBtMessage.cc
  7028. * src/IndexBtMessage.h
  7029. * src/IndexBtMessageValidator.h
  7030. * src/Makefile.am
  7031. * src/PeerMessageUtil.cc
  7032. * src/PeerMessageUtil.h
  7033. * src/RangeBtMessage.cc
  7034. * src/RangeBtMessage.h
  7035. * src/RangeBtMessageValidator.h
  7036. * src/SimpleBtMessage.cc
  7037. * src/SimpleBtMessage.h
  7038. * src/ZeroBtMessage.cc
  7039. * src/ZeroBtMessage.h
  7040. * test/BtRequestMessageTest.cc
  7041. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  7042. Reverted usage_text.h to r1093 to avoid to lose translated
  7043. messages.
  7044. * src/usage_text.h
  7045. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  7046. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  7047. declared as non-const previously is now const and defined in class
  7048. definition.
  7049. * src/AbstractBtMessage.cc
  7050. * src/AbstractBtMessage.h
  7051. * src/BtAllowedFastMessage.cc
  7052. * src/BtAllowedFastMessage.h
  7053. * src/BtBitfieldMessage.h
  7054. * src/BtCancelMessage.cc
  7055. * src/BtCancelMessage.h
  7056. * src/BtChokeMessage.cc
  7057. * src/BtChokeMessage.h
  7058. * src/BtExtendedMessage.cc
  7059. * src/BtExtendedMessage.h
  7060. * src/BtHandshakeMessage.cc
  7061. * src/BtHandshakeMessage.h
  7062. * src/BtHaveAllMessage.cc
  7063. * src/BtHaveAllMessage.h
  7064. * src/BtHaveMessage.cc
  7065. * src/BtHaveMessage.h
  7066. * src/BtHaveNoneMessage.cc
  7067. * src/BtHaveNoneMessage.h
  7068. * src/BtInterestedMessage.cc
  7069. * src/BtInterestedMessage.h
  7070. * src/BtKeepAliveMessage.cc
  7071. * src/BtKeepAliveMessage.h
  7072. * src/BtMessage.h
  7073. * src/BtNotInterestedMessage.cc
  7074. * src/BtNotInterestedMessage.h
  7075. * src/BtPieceMessage.h
  7076. * src/BtPortMessage.cc
  7077. * src/BtPortMessage.h
  7078. * src/BtRejectMessage.cc
  7079. * src/BtRejectMessage.h
  7080. * src/BtRequestMessage.cc
  7081. * src/BtRequestMessage.h
  7082. * src/BtSuggestPieceMessage.cc
  7083. * src/BtSuggestPieceMessage.h
  7084. * src/BtUnchokeMessage.cc
  7085. * src/BtUnchokeMessage.h
  7086. * src/SimpleBtMessage.cc
  7087. * src/SimpleBtMessage.h
  7088. * test/MockBtMessage.h
  7089. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  7090. Use FileEntry::exists()
  7091. * src/MultiDiskAdaptor.cc
  7092. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  7093. Added exists()
  7094. * src/FileEntry.cc
  7095. * src/FileEntry.h
  7096. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  7097. Added missing prefix dir.
  7098. * src/download_helper.cc
  7099. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  7100. Removed --direct-file-mapping option and CopyDiskAdaptor.
  7101. * src/CopyDiskAdaptor.cc: Removed
  7102. * src/CopyDiskAdaptor.h: Removed
  7103. * src/DefaultPieceStorage.cc
  7104. * src/Makefile.am
  7105. * src/OptionHandlerFactory.cc
  7106. * src/prefs.cc
  7107. * src/prefs.h
  7108. * src/usage_text.h
  7109. * test/CopyDiskAdaptorTest.cc: Removed
  7110. * test/Makefile.am
  7111. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  7112. Rewritten isSameFileBeingDownloaded()
  7113. * src/RequestGroupMan.cc
  7114. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  7115. Removed getName() from DownloadContext. getName() is declared in
  7116. BtContext.
  7117. * src/BtContext.h
  7118. * src/DownloadContext.h
  7119. * src/SingleFileDownloadContext.cc
  7120. * src/SingleFileDownloadContext.h
  7121. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  7122. in AbstractSingleDiskAdaptor.
  7123. * src/AbstractSingleDiskAdaptor.h
  7124. * src/DiskAdaptor.h
  7125. * src/MultiDiskAdaptor.h
  7126. * src/RequestGroup.cc
  7127. Removed setTopDir() and getTopDir() and getTopDirPath() from
  7128. MultiDiskAdaptor.
  7129. * src/DefaultPieceStorage.cc
  7130. * src/MultiDiskAdaptor.cc
  7131. * src/MultiDiskAdaptor.h
  7132. * test/MultiDiskAdaptorTest.cc
  7133. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  7134. FileEntry::getPath() contains store(top level) directory to
  7135. simplify path handling operation. In the previous implementation,
  7136. store directory is concatenated to FileEntry::getPath() in
  7137. DownloadContext.
  7138. * src/BtDependency.cc
  7139. * src/BtPostDownloadHandler.cc
  7140. * src/CopyDiskAdaptor.cc
  7141. * src/DefaultBtContext.cc
  7142. * src/DirectDiskAdaptor.cc
  7143. * src/FileEntry.cc
  7144. * src/FileEntry.h
  7145. * src/FtpNegotiationCommand.cc
  7146. * src/HttpResponse.cc
  7147. * src/HttpResponseCommand.cc
  7148. * src/Metalink2RequestGroup.cc
  7149. * src/MultiDiskAdaptor.cc
  7150. * src/MultiDiskAdaptor.h
  7151. * src/MultiFileAllocationIterator.cc
  7152. * src/RequestGroup.cc
  7153. * src/SingleFileDownloadContext.cc
  7154. * src/SingleFileDownloadContext.h
  7155. * src/download_helper.cc
  7156. * test/BtDependencyTest.cc
  7157. * test/CopyDiskAdaptorTest.cc
  7158. * test/DefaultBtContextTest.cc
  7159. * test/DefaultBtProgressInfoFileTest.cc
  7160. * test/DirectDiskAdaptorTest.cc
  7161. * test/DownloadHelperTest.cc
  7162. * test/FileEntryTest.cc
  7163. * test/MultiDiskAdaptorTest.cc
  7164. * test/MultiFileAllocationIteratorTest.cc
  7165. * test/RequestGroupTest.cc
  7166. * test/SingleFileDownloadContextTest.cc
  7167. 2009-03-09 Tatsuhiro Tsujikawa <[email protected]>
  7168. Fixed compiler warning
  7169. * src/download_helper.cc
  7170. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  7171. Throw exception if same infohash torrent is now downloading.
  7172. * src/RequestGroup.cc
  7173. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  7174. Added --dry-run option. In this mode, aria2 just checks whether
  7175. the remote file is available and doesn't download data. This
  7176. option has effect on HTTP/FTP downloads and BitTorrent downloads
  7177. are canceled in this mode.
  7178. * src/FtpNegotiationCommand.cc
  7179. * src/HttpResponseCommand.cc
  7180. * src/HttpResponseCommand.h
  7181. * src/OptionHandlerFactory.cc
  7182. * src/RequestGroup.cc
  7183. * src/RequestGroupMan.cc
  7184. * src/prefs.cc
  7185. * src/prefs.h
  7186. * src/usage_text.h
  7187. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  7188. Fixed compiler waring
  7189. * test/UriListParserTest.cc
  7190. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  7191. Parse options in -i list using OptionParser.
  7192. * src/UriListParser.cc
  7193. * src/UriListParser.h
  7194. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  7195. Don't reset URI in retry to avoid additional round trips because
  7196. of redirects.
  7197. * src/AbstractCommand.cc
  7198. * src/OptionHandlerFactory.cc
  7199. * src/prefs.cc
  7200. * src/prefs.h
  7201. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  7202. Declared hide() in OptionHandler.
  7203. * src/NameMatchOptionHandler.h
  7204. * src/OptionHandler.h
  7205. * src/OptionHandlerImpl.h
  7206. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  7207. Updated doc
  7208. * src/Peer.h
  7209. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  7210. Added log message in setStatusInternal()
  7211. * src/ServerStat.cc
  7212. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  7213. Call ServerStat::setError() in AbstractCommand::onAbort() to
  7214. effectively exclude failed server.
  7215. * src/AbstractCommand.cc
  7216. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  7217. Added --index-out option to specify each file path for torrent.
  7218. Here index shown in --show-files option is used to specify which
  7219. file path should be altered. For example, to change the file path
  7220. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  7221. option multiple times: --index-out=1=aria2.tar.bz2
  7222. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  7223. available. This option can be specified in -i list.
  7224. * src/DefaultBtContext.cc
  7225. * src/DefaultBtContext.h
  7226. * src/MultiDiskAdaptor.cc
  7227. * src/MultiDiskAdaptor.h
  7228. * src/MultiFileAllocationIterator.cc
  7229. * src/OptionHandlerFactory.cc
  7230. * src/OptionHandlerImpl.h
  7231. * src/Util.cc
  7232. * src/Util.h
  7233. * src/download_helper.cc
  7234. * src/prefs.cc
  7235. * src/prefs.h
  7236. * src/usage_text.h
  7237. * test/DefaultBtContextTest.cc
  7238. * test/MultiDiskAdaptorTest.cc
  7239. * test/MultiFileAllocationIteratorTest.cc
  7240. * test/UtilTest.cc
  7241. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  7242. Use Util::pathJoin()
  7243. * src/MetalinkParserController.cc
  7244. * test/test.xml
  7245. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  7246. Use Util::pathJoin()
  7247. * src/DefaultBtContext.cc
  7248. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  7249. Added Util::pathJoin()
  7250. * src/Util.h
  7251. * test/UtilTest.cc
  7252. 2009-03-04 Tatsuhiro Tsujikawa <[email protected]>
  7253. Applied basename function to remove directory element in
  7254. content-disposition value.
  7255. Return empty string if content-disposition value is ".." or ".".
  7256. * src/Util.cc
  7257. * test/UtilTest.cc
  7258. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  7259. Added --max-overall-download-limit in man page.
  7260. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  7261. * doc/aria2c.1.txt
  7262. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  7263. Added --max-overall-download-limit option. Now --max-upload-limit
  7264. option is not ignored when --max-overall-upload-limit option has
  7265. non-zero value. aria2 checks download(upload) speed in the order:
  7266. first checks overall speed limit and if it is not exceeded, then
  7267. checks speed limit per download. Thus you can specify both
  7268. value. For example, set --max-overall-download-limit=1M and
  7269. --max-download-limit=500K to prevent from one download from eating
  7270. all overall speed limit.
  7271. * src/DefaultBtInteractive.cc
  7272. * src/DefaultBtInteractive.h
  7273. * src/DefaultBtMessageDispatcher.cc
  7274. * src/DefaultBtMessageDispatcher.h
  7275. * src/DownloadCommand.cc
  7276. * src/DownloadCommand.h
  7277. * src/FtpNegotiationCommand.cc
  7278. * src/HttpResponseCommand.cc
  7279. * src/OptionHandlerFactory.cc
  7280. * src/PeerInteractionCommand.cc
  7281. * src/RequestGroup.cc
  7282. * src/RequestGroup.h
  7283. * src/RequestGroupMan.cc
  7284. * src/RequestGroupMan.h
  7285. * src/prefs.cc
  7286. * src/prefs.h
  7287. * src/usage_text.h
  7288. * test/DefaultBtMessageDispatcherTest.cc
  7289. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  7290. Documented select-file option in Input File section.
  7291. Documented --http-auth-challenge option.
  7292. * doc/aria2c.1.txt
  7293. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  7294. Now select-file can be specified in the uri list(-i list).
  7295. * src/BtContext.cc
  7296. * src/BtContext.h
  7297. * src/RequestGroup.cc
  7298. * src/Sequence.h
  7299. * src/download_helper.cc
  7300. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  7301. Made the upper value of --max-concurrent-downloads options unlimited.
  7302. * src/OptionHandlerFactory.cc
  7303. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  7304. Fixed the bug that disk writer is not created even if it shares
  7305. same piece with the preceding file if the length of previous file
  7306. is 0.
  7307. * src/MultiDiskAdaptor.cc
  7308. * test/MultiDiskAdaptorTest.cc
  7309. 2009-02-23 Tatsuhiro Tsujikawa <[email protected]>
  7310. In BitTorrent, Open files in read-only mode for hash check. After
  7311. that, re-open file in read/write mode only when the download is
  7312. not finished.
  7313. * src/AbstractDiskWriter.cc
  7314. * src/AbstractDiskWriter.h
  7315. * src/AbstractSingleDiskAdaptor.cc
  7316. * src/AbstractSingleDiskAdaptor.h
  7317. * src/BtCheckIntegrityEntry.cc
  7318. * src/DiskAdaptor.h
  7319. * src/DiskWriter.h
  7320. * src/MultiDiskAdaptor.cc
  7321. * src/MultiDiskAdaptor.h
  7322. * src/RequestGroup.cc
  7323. 2009-02-19 Tatsuhiro Tsujikawa <[email protected]>
  7324. Added --http-auth-challenge option. If it is set to true(by
  7325. default), aria2 sends HTTP authorization header only when it is
  7326. requested by the server. If false is set, then authorization
  7327. header is always sent to the server. This is useful for servers
  7328. that don't respond 401 code when authentication is required.
  7329. There is an exception: if username and password are embedded in
  7330. URI, authorization header is always sent to the server regardless
  7331. of this option.
  7332. * src/AuthConfigFactory.cc
  7333. * src/HttpSkipResponseCommand.cc
  7334. * src/OptionHandlerFactory.cc
  7335. * src/prefs.cc
  7336. * src/prefs.h
  7337. * src/usage_text.h
  7338. * test/AuthConfigFactoryTest.cc
  7339. * test/HttpRequestTest.cc
  7340. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7341. * Release 1.2.0
  7342. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7343. Updated Spanish, Ukrainian, Russian and Japanese translations.
  7344. Thanks to all translators.
  7345. * po/es.po
  7346. * po/ja.po
  7347. * po/ru.po
  7348. * po/uk.po
  7349. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7350. Call deleteSocketForReadCheck() before socket is closed.
  7351. * src/HttpListenCommand.cc
  7352. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7353. Defined virtual destructor for BObject.
  7354. * src/bencode.h
  7355. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7356. Rewritten BDE to make it efficient.
  7357. * src/bencode.cc
  7358. * src/bencode.h
  7359. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7360. Removed function throw list.
  7361. * src/bencode.cc
  7362. * src/bencode.h
  7363. * test/BencodeTest.cc
  7364. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7365. Enclosed all URLs in double quotes in command-line examples.
  7366. * doc/aria2c.1.txt
  7367. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7368. Updated reference/see also section.
  7369. * README
  7370. * doc/aria2c.1.txt
  7371. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  7372. Reorganized man page based on man man-pages.
  7373. * doc/aria2c.1.txt
  7374. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  7375. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  7376. because same documents are available in man page. Added
  7377. References section.
  7378. * README
  7379. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  7380. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  7381. PERFORMANCE PROFILE section.
  7382. * doc/aria2c.1.txt
  7383. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  7384. Rewritten the section for configuration file.
  7385. * README
  7386. * doc/aria2c.1.txt
  7387. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  7388. Fixed the segmentation fault during execution of choking algorithm
  7389. in leecher state because of broken compare operator
  7390. implementation.
  7391. * src/BtLeecherStateChoke.cc
  7392. * src/BtLeecherStateChoke.h
  7393. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  7394. Open file in binary mode.
  7395. * src/CookieStorage.cc
  7396. * src/DHTSetup.cc
  7397. * src/DHTUtil.cc
  7398. * src/Netrc.cc
  7399. * src/NsCookieParser.cc
  7400. * src/ProtocolDetector.cc
  7401. * src/RequestGroupMan.cc
  7402. * src/Signature.cc
  7403. * src/bencode.cc
  7404. * src/download_helper.cc
  7405. * src/option_processing.cc
  7406. * test/CookieParserTest.cc
  7407. * test/DefaultBtProgressInfoFileTest.cc
  7408. * test/FileTest.cc
  7409. * test/GZipDecoderTest.cc
  7410. * test/RequestGroupManTest.cc
  7411. * test/SignatureTest.cc
  7412. * test/SingleFileAllocationIteratorTest.cc
  7413. * test/UriListParserTest.cc
  7414. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  7415. Removed operator[] because it is ambiguous with built-in []
  7416. operator.
  7417. * src/array_fun.h
  7418. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  7419. Fixed compile error
  7420. * src/OptionParser.cc
  7421. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  7422. Added missing call to arrayWrapperConst
  7423. * test/array_funTest.cc
  7424. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7425. Use array_wrapper instead of array_ptr.
  7426. * src/DHTRoutingTableDeserializer.cc
  7427. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7428. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  7429. * src/array_fun.h
  7430. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7431. Added array_wrapper template.
  7432. * src/array_fun.h
  7433. * test/array_funTest.cc
  7434. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7435. Use operator T* of array_ptr.
  7436. * src/OptionParser.cc
  7437. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7438. Use localhost instead of 127.0.0.1
  7439. * test/FtpConnectionTest.cc
  7440. * test/MSEHandshakeTest.cc
  7441. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7442. Added operator T*
  7443. * src/array_fun.h
  7444. * test/array_funTest.cc
  7445. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7446. Use dynamically allocated char array to detect memory access
  7447. violation.
  7448. * src/DHTRoutingTableDeserializer.cc
  7449. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7450. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  7451. defined.
  7452. * src/PeerMessageUtil.cc
  7453. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7454. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  7455. * configure.ac
  7456. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7457. Added a check to see struct sockaddr_in has sin_len member.
  7458. * configure.ac
  7459. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7460. Fixed buffer overrun.
  7461. * src/DHTRoutingTableDeserializer.cc
  7462. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7463. Added LL for long long int constant.
  7464. * test/FtpConnectionTest.cc
  7465. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7466. Casted to unsigned int to suppress compiler warning on netbsd.
  7467. * src/BtRuntime.h
  7468. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7469. Assign the value of tv.tv_sec to time_t timesec instead of giving
  7470. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  7471. type time_t.
  7472. * src/SimpleLogger.cc
  7473. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7474. Added test for FtpConnection::receiveSizeResponse().
  7475. * test/FtpConnectionTest.cc
  7476. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7477. Fix epoll error on the old kernel 2.6.8 or ealier.
  7478. * src/EpollEventPoll.cc
  7479. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7480. Use Util::parseLLInt instead of sscanf for portability. The
  7481. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  7482. * src/FtpConnection.cc
  7483. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7484. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  7485. block. It should not filter anything.
  7486. * src/BitfieldMan.cc
  7487. * src/ConsoleStatCalc.cc
  7488. * test/BitfieldManTest.cc
  7489. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7490. Fixed the bug that the boolean options that don't take arguments
  7491. don't work.
  7492. * src/OptionHandlerImpl.h
  7493. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7494. Fixed broken selected file BitTorrent download.
  7495. * src/MultiDiskAdaptor.cc
  7496. * test/MultiDiskAdaptorTest.cc
  7497. * test/MultiFileAllocationIteratorTest.cc
  7498. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7499. Fixed #define guard for EpollEventPoll
  7500. * src/EpollEventPoll.h
  7501. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7502. Wait 2 seconds. 1 second is sometimes not enough.
  7503. * test/TimeSeedCriteriaTest.cc
  7504. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7505. Use localhost instead of 127.0.0.1.
  7506. * test/DHTConnectionImplTest.cc
  7507. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7508. Suppressed compiler warning.
  7509. * src/AdaptiveURISelector.cc
  7510. * src/DefaultPieceStorage.cc
  7511. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7512. Defined virtual destructor.
  7513. * src/MetalinkParserState.h
  7514. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7515. Give NULL for second argument of getaddrinfo instead of "0".
  7516. * src/NameResolver.cc
  7517. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7518. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  7519. included strptime doesn't parse data for this format.
  7520. * src/FtpConnection.cc
  7521. * test/FtpConnectionTest.cc
  7522. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7523. Removed tests giving -1 for unsigned argument.
  7524. * test/SingleFileDownloadContextTest.cc
  7525. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7526. Don't use sha256 in tests because it might not be supported by the
  7527. SSL library.
  7528. * test/MetalinkProcessorTest.cc
  7529. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7530. Removed tests giving -1 for unsigned argument.
  7531. * test/AlphaNumberDecoratorTest
  7532. * test/BitfieldManTest.cc
  7533. * test/DefaultBtContextTest.cc
  7534. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7535. Fixed compile error without libcares when epoll is available.
  7536. * src/EpollEventPoll.cc
  7537. 2009-02-09 Tatsuhiro Tsujikawa <[email protected]>
  7538. Included fstream instead of iostream.
  7539. * test/SignatureTest.cc
  7540. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  7541. Removed #include <algorithm>
  7542. * test/RequestGroupTest.cc
  7543. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  7544. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  7545. using RequestGroup::extractURIResult().
  7546. * src/AdaptiveURISelector.cc
  7547. * src/RequestGroup.cc
  7548. * src/RequestGroup.h
  7549. * test/RequestGroupTest.cc
  7550. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  7551. Added tests for array_ptr.
  7552. * test/array_funTest.cc
  7553. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  7554. Don't send ip parameter to a tracker if ip parameter is empty
  7555. string.
  7556. * src/DefaultBtAnnounce.cc
  7557. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7558. Adjusted line feed.
  7559. * src/version_usage.cc
  7560. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7561. Print tags, possible values when OptionHandlerException is caught.
  7562. * src/option_processing.cc
  7563. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7564. Changed the message for FatalException.
  7565. * src/OptionParser.cc
  7566. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7567. Documented --bt-external-ip option in man page. Updated man pages
  7568. for --proxy-method option.
  7569. * doc/aria2c.1.txt
  7570. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7571. Use GET method for FTP via HTTP proxy.
  7572. * src/FtpInitiateConnectionCommand.cc
  7573. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7574. Changed the default value of --proxy-method option from 'tunnel'
  7575. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  7576. option.
  7577. * src/AbstractCommand.cc
  7578. * src/AbstractCommand.h
  7579. * src/FtpInitiateConnectionCommand.cc
  7580. * src/HttpDownloadCommand.cc
  7581. * src/HttpInitiateConnectionCommand.cc
  7582. * src/HttpInitiateConnectionCommand.h
  7583. * src/OptionHandlerFactory.cc
  7584. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7585. Initialized _logger
  7586. * src/SelectEventPoll.cc
  7587. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7588. Defined a copy constructor for the same type.
  7589. * src/SharedHandle.h
  7590. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7591. Added OptionParser::parseArg() which internally uses getopt_long
  7592. to parse command-line options. All command-line options are now
  7593. configured by OptionHandler. No manual editing of struct option*
  7594. is required any more.
  7595. * src/NameMatchOptionHandler.h
  7596. * src/OptionHandler.h
  7597. * src/OptionHandlerFactory.cc
  7598. * src/OptionHandlerImpl.h
  7599. * src/OptionParser.cc
  7600. * src/OptionParser.h
  7601. * src/array_fun.h
  7602. * src/main.cc
  7603. * src/option_processing.cc
  7604. * test/OptionHandlerTest.cc
  7605. * test/OptionParserTest.cc
  7606. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7607. Fixed configure error with --disable-epoll
  7608. * configure.ac
  7609. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7610. Fixed compile error when HAVE_EPOLL is not defined.
  7611. Fixed linker error on bigendian systems.
  7612. * src/SocketCore.cc
  7613. * src/SocketCore.h
  7614. * test/DefaultBtProgressInfoFileTest.cc
  7615. 2009-02-04 Tatsuhiro Tsujikawa <[email protected]>
  7616. Added --bt-external-ip option. You can specify the external IP
  7617. address to report to a BitTorrent tracker. Although this function
  7618. is named 'external', it can accept any kind of IP addresses.
  7619. * src/DefaultBtAnnounce.cc
  7620. * src/OptionHandlerFactory.cc
  7621. * src/option_processing.cc
  7622. * src/prefs.cc
  7623. * src/prefs.h
  7624. * src/usage_text.h
  7625. * test/DefaultBtAnnounceTest.cc
  7626. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  7627. Extracted the algorithm to find the longest incremental sequence
  7628. as max_sequence template.
  7629. * src/LongestSequencePieceSelector.cc
  7630. * src/a2algo.h
  7631. * test/Makefile.am
  7632. * test/a2algoTest.cc
  7633. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  7634. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  7635. * src/usage_text.h
  7636. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  7637. Updated doc for --uri-selector, --http-server-listen-port and
  7638. --enable-http-server option. Documented --event-poll option.
  7639. * doc/aria2c.1.txt
  7640. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  7641. Updated doc for --enable-http-server.
  7642. * src/usage_text.h
  7643. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  7644. Documented --http-server-listen-port and --enable-http-server in
  7645. man page.
  7646. * doc/aria2c.1.txt
  7647. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7648. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  7649. translations. Thanks to all translators.
  7650. * po/es.po
  7651. * po/id.po
  7652. * po/it.po
  7653. * po/ru.po
  7654. * po/uk.po
  7655. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7656. Bump up version number to 1.2.0
  7657. * configure.ac
  7658. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7659. BtContext::getAnnounceTiers() now returns const reference.
  7660. * src/BtContext.h
  7661. * src/DefaultBtContext.cc
  7662. * src/DefaultBtContext.h
  7663. * test/MockBtContext.h
  7664. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7665. Change the number of retries for tracker request based on the
  7666. number of available tracker in a torrent file.
  7667. * src/TrackerWatcherCommand.cc
  7668. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7669. Added _maxTries property to RequestGroup and assign the option
  7670. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  7671. RequestGroup::getMaxTries() instead of
  7672. Option::getAsInt(PREF_MAX_TRIES).
  7673. * src/AbstractCommand.cc
  7674. * src/RequestGroup.cc
  7675. * src/RequestGroup.h
  7676. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7677. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  7678. Mandriva. I modified the patch: make RequestGroup have the
  7679. timeout value and AdaptiveURISelector directly modifies that
  7680. value.
  7681. * src/AbstractCommand.cc
  7682. * src/AdaptiveURISelector.cc
  7683. * src/AdaptiveURISelector.h
  7684. * src/FtpNegotiationCommand.cc
  7685. * src/RequestGroup.cc
  7686. * src/RequestGroup.h
  7687. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7688. Fixed compiler warning
  7689. * test/IteratableChecksumValidatorTest.cc
  7690. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  7691. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  7692. integrated downloads. This PieceSelector subclass finds the
  7693. longest continuous sequence in the available missing pieces and
  7694. selects the last index of such sequence. This makes HTTP/FTP
  7695. connections less interrupted by the pieces obtained by BitTorrent
  7696. peers.
  7697. * src/DefaultPieceStorage.cc
  7698. * src/DefaultPieceStorage.h
  7699. * src/LongestSequencePieceSelector.cc
  7700. * src/LongestSequencePieceSelector.h
  7701. * src/Makefile.am
  7702. * src/PieceSelector.h
  7703. * src/RarestPieceSelector.h
  7704. * src/RequestGroup.cc
  7705. * test/BtDependencyTest.cc
  7706. * test/DefaultPieceStorageTest.cc
  7707. * test/IteratableChecksumValidatorTest.cc
  7708. * test/LongestSequencePieceSelectorTest.cc
  7709. * test/Makefile.am
  7710. * test/SegmentManTest.cc
  7711. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  7712. Fixed the bug that the average speed is wrong in
  7713. http/ftp/BitTorrent integrated download. Only the download bytes
  7714. in BitTorrent were considered.
  7715. * src/RequestGroup.cc
  7716. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  7717. Choose port for BitTorrent/DHT randomly from the specified range.
  7718. * src/DHTConnectionImpl.cc
  7719. * src/PeerListenCommand.cc
  7720. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  7721. Send HTTP Authorization header only if it is requested by the
  7722. server(response 401). There are some exceptions. The authorization
  7723. header for proxy is always sent if it is available without request
  7724. by the server. If username/password is specified in the URI, it
  7725. is immediately sent to the server without request by the server.
  7726. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  7727. SharedHandle<AuthConfig>().
  7728. NetrcAuthResolver::resolveAuthConfig() returns
  7729. SharedHandle<AuthConfig>() if no AuthConfig is available.
  7730. * src/AbstractAuthResolver.cc
  7731. * src/AbstractProxyRequestCommand.cc
  7732. * src/AuthConfigFactory.cc
  7733. * src/AuthConfigFactory.h
  7734. * src/HttpConnection.cc
  7735. * src/HttpRequest.cc
  7736. * src/HttpRequest.h
  7737. * src/HttpResponse.cc
  7738. * src/HttpResponseCommand.cc
  7739. * src/HttpSkipResponseCommand.cc
  7740. * test/AuthConfigFactoryTest.cc
  7741. * test/HttpRequestTest.cc
  7742. * test/HttpResponseTest.cc
  7743. 2009-01-27 Tatsuhiro Tsujikawa <[email protected]>
  7744. Remove leading "--" from help keyword and a substring after "="
  7745. from help keyword, so that one can query options by '-h--max-' or
  7746. '-hmax-peers=10'.
  7747. * src/option_processing.cc
  7748. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  7749. Rewritten PStringVisitor and its implementation.
  7750. * src/PStringBuildVisitor.cc
  7751. * src/PStringBuildVisitor.h
  7752. * src/PStringDatum.h
  7753. * src/PStringNumLoop.h
  7754. * src/PStringSegment.cc
  7755. * src/PStringSegment.h
  7756. * src/PStringSelect.h
  7757. * src/PStringVisitor.h
  7758. * src/download_helper.cc
  7759. * test/PStringBuildVisitorTest.cc
  7760. * test/ParameterizedStringParserTest.cc
  7761. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  7762. Persist connection between the built-in HTTP server and a client
  7763. if a client supports keep-alive. Fixed the bug that aria2 exits
  7764. when the HTTP server receives EOF from a client.
  7765. * src/HttpServer.cc
  7766. * src/HttpServer.h
  7767. * src/HttpServerCommand.cc
  7768. * src/HttpServerCommand.h
  7769. * src/HttpServerResponseCommand.cc
  7770. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  7771. Added experimental built-in HTTP server. Currently, when a client
  7772. accesses to the server, it responds with the current download
  7773. progress. By default, it is disabled. To enable the server, give
  7774. --enable-http-server option. To change the default port number
  7775. for the server to listen to, use --http-server-listen-port option.
  7776. The response HTML is very simple and refreshes it self each 1
  7777. second. Because of this refresh, you see flicker in normal web
  7778. browser such as Firefox. I recommend to use console-based browser
  7779. such as elinks, w3m. To connect to the server, run 'elinks
  7780. http://localhost:6800/' while running aria2. Please replace port
  7781. number '6800'(which is default) with your preference.
  7782. * src/DownloadEngineFactory.cc
  7783. * src/HttpHeader.cc
  7784. * src/HttpHeader.h
  7785. * src/HttpHeaderProcessor.cc
  7786. * src/HttpHeaderProcessor.h
  7787. * src/HttpListenCommand.cc
  7788. * src/HttpListenCommand.h
  7789. * src/HttpServer.cc
  7790. * src/HttpServer.h
  7791. * src/HttpServerCommand.cc
  7792. * src/HttpServerCommand.h
  7793. * src/HttpServerResponseCommand.cc
  7794. * src/HttpServerResponseCommand.h
  7795. * src/Makefile.am
  7796. * src/OptionHandlerFactory.cc
  7797. * src/Util.cc
  7798. * src/Util.h
  7799. * src/help_tags.h
  7800. * src/option_processing.cc
  7801. * src/prefs.cc
  7802. * src/prefs.h
  7803. * src/usage_text.h
  7804. * test/HttpHeaderProcessorTest.cc
  7805. * test/UtilTest.cc
  7806. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  7807. Removed.
  7808. * src/CheckIntegrityMan.cc
  7809. * src/FileAllocationMan.cc
  7810. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  7811. Made (piece) hash check sequential for each RequestGroup because
  7812. simultaneous hash check is slower than sequential execution.
  7813. * src/CheckIntegrityCommand.cc
  7814. * src/CheckIntegrityDispatcherCommand.cc
  7815. * src/CheckIntegrityDispatcherCommand.h
  7816. * src/CheckIntegrityMan.h
  7817. * src/ConsoleStatCalc.cc
  7818. * src/DownloadCommand.cc
  7819. * src/DownloadEngine.cc
  7820. * src/DownloadEngine.h
  7821. * src/DownloadEngineFactory.cc
  7822. * src/Makefile.am
  7823. * src/Makefile.in
  7824. * src/RequestGroup.cc
  7825. * src/StatCalc.h
  7826. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  7827. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  7828. SequentialDispatcherCommand.
  7829. * src/FileAllocationDispatcherCommand.cc
  7830. * src/SequentialDispatcherCommand.h
  7831. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  7832. Rewritten FileAllocationDispatcherCommand using brand new
  7833. SequentialDispatcherCommand.
  7834. * src/DownloadEngineFactory.cc
  7835. * src/FileAllocationCommand.cc
  7836. * src/FileAllocationDispatcherCommand.cc
  7837. * src/FileAllocationDispatcherCommand.h
  7838. * src/Makefile.am
  7839. * src/SequentialDispatcherCommand.h
  7840. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  7841. Replaced FileAllocationMan with
  7842. SequentialPicker<FileAllocationEntry>.
  7843. * src/BtCheckIntegrityEntry.cc
  7844. * src/ConsoleStatCalc.cc
  7845. * src/DownloadEngine.cc
  7846. * src/DownloadEngine.h
  7847. * src/DownloadEngineFactory.cc
  7848. * src/FileAllocationCommand.cc
  7849. * src/FileAllocationDispatcherCommand.cc
  7850. * src/FileAllocationMan.h
  7851. * src/Makefile.am
  7852. * src/SequentialPicker.h
  7853. * src/StatCalc.h
  7854. * src/StreamCheckIntegrityEntry.cc
  7855. * test/Makefile.am
  7856. * test/SequentialPickerTest.cc
  7857. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  7858. Added doc for adaptive URI selector.
  7859. * doc/aria2c.1.txt
  7860. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  7861. Added doc for adaptive URI selector.
  7862. * src/usage_text.h
  7863. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  7864. Added doc for --bt-max-peers option.
  7865. * doc/aria2c.1.txt
  7866. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  7867. Added doc for --bt-hash-check-seed option.
  7868. * doc/aria2c.1.txt
  7869. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  7870. Documented exit codes.
  7871. * doc/aria2c.1.txt
  7872. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  7873. Added --bt-max-peers option to specify the maximum number of peers
  7874. per torrent. 0 means unlimited number of peers.
  7875. * src/ActivePeerConnectionCommand.cc
  7876. * src/BtRuntime.h
  7877. * src/DefaultPeerStorage.cc
  7878. * src/DefaultPeerStorage.h
  7879. * src/OptionHandlerFactory.cc
  7880. * src/RequestGroup.cc
  7881. * src/option_processing.cc
  7882. * src/prefs.cc
  7883. * src/prefs.h
  7884. * src/usage_text.h
  7885. * test/DefaultPeerStorageTest.cc
  7886. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  7887. Added --bt-hash-check-seed option. If true is given to this
  7888. option, after hash check using --check-integrity option and file
  7889. is complete, continue to seed file. If you want to check file and
  7890. download it only when it is damaged or incomplete, set this option
  7891. to false. This option has effect only on BitTorrent download.
  7892. The default value is true(This is the same behavior with the
  7893. previous release).
  7894. * src/BtCheckIntegrityEntry.cc
  7895. * src/OptionHandlerFactory.cc
  7896. * src/option_processing.cc
  7897. * src/prefs.cc
  7898. * src/prefs.h
  7899. * src/usage_text.h
  7900. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  7901. Updated copyright year.
  7902. * src/version_usage.cc
  7903. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  7904. Rewritten the usage text for --bt-request-peer-speed-limit option.
  7905. * doc/aria2c.1.txt
  7906. * src/usage_text.h
  7907. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  7908. Made the max value of split option unlimited.
  7909. * doc/aria2c.1.txt
  7910. * src/OptionHandlerFactory.cc
  7911. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  7912. Fixed compile warning/error.
  7913. * src/DownloadResult.h
  7914. * src/HttpDownloadCommand.cc
  7915. * src/ServerStat.cc
  7916. * test/RequestGroupTest.cc
  7917. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  7918. Added --event-poll option to select the method for polling events.
  7919. The available methods are "select" and "epoll". "epoll" is
  7920. available on Linux only. The earlier release has the compile
  7921. option to choose from these methods.
  7922. * configure.ac
  7923. * src/RequestGroupMan.cc
  7924. * src/OptionHandlerFactory.cc
  7925. * src/EpollEventPoll.h
  7926. * src/StreamFileAllocationEntry.cc
  7927. * src/a2io.h
  7928. * src/SelectEventPoll.h
  7929. * src/option_processing.cc
  7930. * src/prefs.h
  7931. * src/EpollEventPoll.cc
  7932. * src/EventPoll.h
  7933. * src/SocketCore.h
  7934. * src/Makefile.am
  7935. * src/main.cc
  7936. * src/DownloadEngine.h
  7937. * src/SelectEventPoll.cc
  7938. * src/DownloadEngine.cc
  7939. * src/SocketCore.cc
  7940. * src/DownloadEngineFactory.cc
  7941. * src/Makefile.in
  7942. * src/prefs.cc
  7943. * src/usage_text.h
  7944. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  7945. Included RecoverableException.h from main.cc
  7946. * src/main.cc
  7947. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  7948. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  7949. now returns last error encountered in the HTTP/FTP downloads as a
  7950. exit status value. If all downloads finished successfully, aria2
  7951. returns 0. The error code is defined in src/DownloadResult.h.
  7952. The error occurred in the download currently in progress is not
  7953. reported as a last error. If no error has encountered but there
  7954. are in progress or waiting downloads, aria2 returns 7.
  7955. * src/AbstractCommand.cc
  7956. * src/DlAbortEx.h
  7957. * src/DlRetryEx.h
  7958. * src/DownloadCommand.cc
  7959. * src/DownloadFailureException.h
  7960. * src/DownloadResult.h
  7961. * src/FtpNegotiationCommand.cc
  7962. * src/HttpSkipResponseCommand.cc
  7963. * src/Makefile.am
  7964. * src/MultiUrlRequestInfo.cc
  7965. * src/MultiUrlRequestInfo.h
  7966. * src/RecoverableException.h
  7967. * src/RequestGroup.cc
  7968. * src/RequestGroup.h
  7969. * src/RequestGroupMan.cc
  7970. * src/RequestGroupMan.h
  7971. * src/URIResult.cc
  7972. * src/URIResult.h
  7973. * src/main.cc
  7974. * src/option_processing.cc
  7975. * test/RequestGroupTest.cc
  7976. 2009-01-06 Tatsuhiro Tsujikawa <[email protected]>
  7977. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  7978. patch adds AdaptiveURISelector, which selects one of the bests
  7979. mirrors for first and reserved connections. For supplementary
  7980. ones, it returns mirrors which has not been tested yet, and if
  7981. each of them already tested, returns mirrors which has to be
  7982. tested again. Otherwise, it doesn't return anymore mirrors.
  7983. * src/AdaptiveURISelector.cc
  7984. * src/AdaptiveURISelector.h
  7985. * src/FtpNegotiationCommand.cc
  7986. * src/HttpResponseCommand.cc
  7987. * src/Makefile.am
  7988. * src/Makefile.in
  7989. * src/OptionHandlerFactory.cc
  7990. * src/RequestGroup.cc
  7991. * src/RequestGroup.h
  7992. * src/RequestGroupMan.cc
  7993. * src/ServerStat.cc
  7994. * src/ServerStat.h
  7995. * src/ServerStatMan.cc
  7996. * src/SpeedCalc.cc
  7997. * src/URISelector.h
  7998. * src/prefs.cc
  7999. * src/prefs.h
  8000. * test/RequestGroupManTest.cc
  8001. * test/ServerStatManTest.cc
  8002. * test/ServerStatTest.cc
  8003. 2009-01-04 Tatsuhiro Tsujikawa <[email protected]>
  8004. Fixed unit test error.
  8005. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  8006. 2008-12-30 Tatsuhiro Tsujikawa <[email protected]>
  8007. * Release 1.1.2
  8008. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  8009. Updated Russian translation. Thanks to the translators.
  8010. * po/ru.po
  8011. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  8012. Added the description of --use-head option to man page.
  8013. * doc/aria2c.1.txt
  8014. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  8015. Bump up version number to 1.1.2
  8016. * configure.ac
  8017. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  8018. Added --use-head option to toggle whether HEAD method should be
  8019. used in the first HTTP request. By default aria2 uses HEAD method
  8020. as the first request. When the server doesn't recognize HEAD, then
  8021. give aria2 --use-head=false to force aria2 to use GET method
  8022. instead.
  8023. * src/OptionHandlerFactory.cc
  8024. * src/RequestGroupMan.cc
  8025. * src/option_processing.cc
  8026. * src/prefs.cc
  8027. * src/prefs.h
  8028. * src/usage_text.h
  8029. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  8030. Fixed the bug that BitTorrent download doesn't finish when REJECT
  8031. message is received before CHOKE message. The old implementation
  8032. doen't clear the use-bit of the piece when recieved REJECT
  8033. message.
  8034. * src/DefaultBtMessageDispatcher.cc
  8035. * test/DefaultBtMessageDispatcherTest.cc
  8036. 2008-12-25 Tatsuhiro Tsujikawa <[email protected]>
  8037. * Release 1.1.1
  8038. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  8039. Bump up version number to 1.1.1.
  8040. * configure.ac
  8041. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  8042. Fixed the bug that --summary-interval=0 doesn't work. The summary
  8043. is printed repeatedly.
  8044. * src/ConsoleStatCalc.cc
  8045. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  8046. * Release 1.1.0
  8047. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  8048. Added ifdef clause for conditional compilation.
  8049. * src/main.cc
  8050. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  8051. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  8052. translations. Thanks to all translators.
  8053. * po/ja.po
  8054. * po/ru.po
  8055. * po/uk.po
  8056. * po/zh_CN.po
  8057. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  8058. Added the preceding ">>> " before the message "Printing the
  8059. contents of file..." to make the output more readable.
  8060. * src/main.cc
  8061. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  8062. Added try-catch block in the loop in showFiles() to continue the
  8063. operation even if the exception occurred in one file.
  8064. * src/main.cc (showFiles)
  8065. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  8066. Made messages in showFiles() translatable.
  8067. * po/aria2.pot
  8068. * src/main.cc
  8069. * src/message.h
  8070. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  8071. Print the contents of Torrent/Metalink files are printed without
  8072. -T/-M options.
  8073. * src/main.cc
  8074. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  8075. Escaped '--' with '\--'
  8076. * README
  8077. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  8078. Updated "How to build" section in README. Mentioned about
  8079. --with-ca-bundle compile option.
  8080. * README
  8081. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  8082. Bump up version number to 1.1.0.
  8083. * configure.ac
  8084. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  8085. Added a note for --dht-listen-port option.
  8086. * doc/aria2c.1.txt
  8087. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  8088. Update doc for --realtime-chunk-checksum option.
  8089. * doc/aria2c.1.txt
  8090. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  8091. Update doc for --realtime-chunk-checksum option.
  8092. * src/usage_text.h
  8093. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  8094. Updated French, Japanese, Russian and Ukrainian translations.
  8095. Thanks to all translators.
  8096. * po/fr.po
  8097. * po/ja.po
  8098. * po/ru.po
  8099. * po/uk.po
  8100. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  8101. Renamed aria2c.pot to aria2.pot
  8102. * po/aria2.pot
  8103. * po/aria2c.pot: Removed.
  8104. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  8105. Removed MetaEntry.h
  8106. * src/Makefile.am
  8107. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  8108. Rename file by appending digits if a local file exists and its
  8109. file size is larger than that of remote file with --continue
  8110. option. The old implementation just throws exception in such case.
  8111. * src/RequestGroup.cc
  8112. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  8113. Fixed the bug that download progress summary is not printed in the
  8114. interval specified by the option.
  8115. * src/ConsoleStatCalc.cc
  8116. * src/ConsoleStatCalc.h
  8117. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  8118. Fixed compiler warning
  8119. * src/Cookie.cc
  8120. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  8121. Fixed the cookie implementation based on RFC2965.
  8122. Now if a value in domain field is not started with dot, then
  8123. prepend dot. That means a cookie with domain=sf.net is sent to
  8124. wiki.sf.net.
  8125. * src/Cookie.cc
  8126. * test/CookieParserTest.cc
  8127. * test/CookieStorageTest.cc
  8128. * test/CookieTest.cc
  8129. * test/NsCookieParserTest.cc
  8130. * test/Sqlite3MozCookieParserTest.cc
  8131. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  8132. Fixed the bug that causes corrupted downloads if HTTP pipelining
  8133. is enabled and the server doesn't support keep-alive.
  8134. * src/AbstractCommand.cc
  8135. * src/DownloadCommand.cc
  8136. * src/HttpDownloadCommand.cc
  8137. * src/HttpDownloadCommand.h
  8138. * src/HttpResponseCommand.cc
  8139. * src/Request.cc
  8140. * src/Request.h
  8141. * test/RequestTest.cc
  8142. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  8143. Removed Dictionary/List/Data and its related classes.
  8144. * src/BencodeVisitor.cc: Removed.
  8145. * src/BencodeVisitor.h: Removed.
  8146. * src/Data.cc: Removed.
  8147. * src/Data.h: Removed.
  8148. * src/Dictionary.cc: Removed.
  8149. * src/Dictionary.h: Removed.
  8150. * src/List.cc: Removed.
  8151. * src/List.h: Removed.
  8152. * src/Makefile.am
  8153. * src/MetaEntry.h: Removed.
  8154. * src/MetaEntryVisitor.h: Removed.
  8155. * src/MetaFileUtil.cc: Removed.
  8156. * src/MetaFileUtil.h: Removed.
  8157. * test/BencodeVisitorTest.cc: Removed.
  8158. * test/DataTest.cc: Removed.
  8159. * test/DictionaryTest.cc: Removed.
  8160. * test/ListTest.cc: Removed.
  8161. * test/Makefile.am
  8162. * test/MetaFileUtilTest.cc: Removed.
  8163. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  8164. Removed include of MetaEntry.h
  8165. * test/DHTMessageTrackerEntryTest.cc
  8166. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  8167. Use BDE instead of Dictionary/List/Data.
  8168. * src/AnnounceList.cc
  8169. * src/AnnounceList.h
  8170. * test/AnnounceListTest.cc
  8171. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  8172. Use BDE instead of Dictionary/List/Data.
  8173. * src/DHTAbstractMessage.cc
  8174. * src/DHTAbstractMessage.h
  8175. * src/DHTAnnouncePeerMessage.cc
  8176. * src/DHTAnnouncePeerMessage.h
  8177. * src/DHTAnnouncePeerReplyMessage.cc
  8178. * src/DHTAnnouncePeerReplyMessage.h
  8179. * src/DHTFindNodeMessage.cc
  8180. * src/DHTFindNodeMessage.h
  8181. * src/DHTFindNodeReplyMessage.cc
  8182. * src/DHTFindNodeReplyMessage.h
  8183. * src/DHTGetPeersMessage.cc
  8184. * src/DHTGetPeersMessage.h
  8185. * src/DHTGetPeersReplyMessage.cc
  8186. * src/DHTGetPeersReplyMessage.h
  8187. * src/DHTMessageFactory.h
  8188. * src/DHTMessageFactoryImpl.cc
  8189. * src/DHTMessageFactoryImpl.h
  8190. * src/DHTMessageReceiver.cc
  8191. * src/DHTMessageTracker.cc
  8192. * src/DHTMessageTracker.h
  8193. * src/DHTPingMessage.cc
  8194. * src/DHTPingMessage.h
  8195. * src/DHTPingReplyMessage.cc
  8196. * src/DHTPingReplyMessage.h
  8197. * src/DHTQueryMessage.cc
  8198. * src/DHTQueryMessage.h
  8199. * src/DHTResponseMessage.cc
  8200. * src/DHTResponseMessage.h
  8201. * test/DHTAnnouncePeerMessageTest.cc
  8202. * test/DHTAnnouncePeerReplyMessageTest.cc
  8203. * test/DHTFindNodeMessageTest.cc
  8204. * test/DHTFindNodeReplyMessageTest.cc
  8205. * test/DHTGetPeersMessageTest.cc
  8206. * test/DHTGetPeersReplyMessageTest.cc
  8207. * test/DHTMessageFactoryImplTest.cc
  8208. * test/DHTMessageTrackerTest.cc
  8209. * test/DHTPingMessageTest.cc
  8210. * test/DHTPingReplyMessageTest.cc
  8211. * test/MockDHTMessageFactory.h
  8212. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  8213. Added tests the case where length < 0 is specified.
  8214. * test/BencodeTest.cc
  8215. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  8216. Fixed memory leak in decoderawstring()
  8217. * src/bencode.cc
  8218. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  8219. Added missing #ifdef guard. Added uc() function for String and
  8220. removeKey() for Dict.
  8221. * src/bencode.cc
  8222. * src/bencode.h
  8223. * test/BencodeTest.cc
  8224. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  8225. Use BDE instead of Dictionary/List/Data.
  8226. * src/HandshakeExtensionMessage.cc
  8227. * src/HandshakeExtensionMessage.h
  8228. * test/HandshakeExtensionMessageTest.cc
  8229. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  8230. Added --max-overall-upload-limit option. This option limits the
  8231. overall upload speed. Stated in help message that the existing
  8232. --max-upload-limit option limits the upload speed per each
  8233. torrent. Man page is also updated.
  8234. * doc/aria2c.1.txt
  8235. * src/DefaultBtMessageDispatcher.cc
  8236. * src/DefaultBtMessageDispatcher.h
  8237. * src/OptionHandlerFactory.cc
  8238. * src/PeerInteractionCommand.cc
  8239. * src/option_processing.cc
  8240. * src/prefs.cc
  8241. * src/prefs.h
  8242. * src/usage_text.h
  8243. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  8244. Use BDE instead of Dictionary/List/Data classes.
  8245. * src/CompactPeerListProcessor.cc
  8246. * src/CompactPeerListProcessor.h
  8247. * src/DefaultBtAnnounce.cc
  8248. * src/DefaultBtContext.cc
  8249. * src/DefaultBtContext.h
  8250. * src/DefaultPeerListProcessor.cc
  8251. * src/DefaultPeerListProcessor.h
  8252. * src/DelegatingPeerListProcessor.cc
  8253. * src/DelegatingPeerListProcessor.h
  8254. * src/PeerListProcessor.h
  8255. * src/UTPexExtensionMessage.cc
  8256. * src/Util.h
  8257. * src/message.h
  8258. * test/DefaultBtContextTest.cc
  8259. * test/DefaultPeerListProcessorTest.cc
  8260. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  8261. Added bencode helper functions and BDE class.
  8262. They will replace MetaFileUtil and Dictionary/List/Data classes.
  8263. * src/Makefile.am
  8264. * src/bencode.cc
  8265. * src/bencode.h
  8266. * test/BencodeTest.cc
  8267. * test/Makefile.am
  8268. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  8269. Fixed the bug that bad URI is sent to the tracker when the announe
  8270. URI in torrent file includes query.
  8271. * src/DefaultBtAnnounce.cc
  8272. * test/DefaultBtAnnounceTest.cc
  8273. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  8274. Added Option::blank().
  8275. Use !Option::blank(name) instead of Option::defined(name) for
  8276. the options that take filename.
  8277. * src/MultiUrlRequestInfo.cc
  8278. * src/Option.cc
  8279. * src/Option.h
  8280. * src/main.cc
  8281. * src/option_processing.cc
  8282. * test/OptionTest.cc
  8283. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  8284. Documented the default value of --check-certificate option in man
  8285. page.
  8286. * doc/aria2c.1.txt
  8287. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  8288. Enabled --check-certificate by default. Added compile
  8289. time(configure) option --with-ca-bundle to specify CA bundle.
  8290. Warn if --check-certificate=true and --ca-certificate is not
  8291. specified or loading CA certificate is failed.
  8292. * configure.ac
  8293. * src/MultiUrlRequestInfo.cc
  8294. * src/OptionHandlerFactory.cc
  8295. * src/message.h
  8296. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  8297. Mentioned https tag in help option.
  8298. * doc/aria2c.1.txt
  8299. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  8300. Added `https' tag to help option category. Added https tag to
  8301. --ca-certificate, --certificate, --check-certificate and
  8302. --private-key option.
  8303. * src/OptionHandlerFactory.cc
  8304. * src/help_tags.h
  8305. * src/option_processing.cc
  8306. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  8307. Changed the package name from `aria2c' to `aria2' in order to fix
  8308. the packaging issue in Debian and Fedora. The name of the
  8309. executable is not changed.
  8310. * configure.ac
  8311. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  8312. Fixed typos
  8313. * src/usage_text.h
  8314. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  8315. Fixed typos and updated doc.
  8316. * README
  8317. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  8318. Fixed typos
  8319. * doc/aria2c.1.txt
  8320. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  8321. Fixed typos
  8322. * src/usage_text.h
  8323. 2008-11-30 Tatsuhiro Tsujikawa <[email protected]>
  8324. Print a message when no files to download.
  8325. * src/download_helper.cc
  8326. * src/main.cc
  8327. * src/message.h
  8328. 2008-11-28 Tatsuhiro Tsujikawa <[email protected]>
  8329. RFC3986 complied Percent-Encoding(urlencode).
  8330. Use uppercase hexadecimal digits for encoded text instead of lowercase
  8331. ones.
  8332. * src/Request.cc
  8333. * src/Util.cc
  8334. * src/Util.h
  8335. * test/BtHandshakeMessageTest.cc
  8336. * test/DefaultBtAnnounceTest.cc
  8337. * test/DefaultBtContextTest.cc
  8338. * test/RequestTest.cc
  8339. * test/UtilTest.cc
  8340. 2008-11-27 Tatsuhiro Tsujikawa <[email protected]>
  8341. Fixed the bug that prevents aria2 from downloading 0-length files
  8342. via HTTP/FTP.
  8343. * src/DefaultBtContext.cc
  8344. * src/DefaultBtContext.h
  8345. * src/DownloadContext.h
  8346. * src/FtpNegotiationCommand.cc
  8347. * src/HttpResponseCommand.cc
  8348. * src/HttpResponseCommand.h
  8349. * src/RequestGroup.cc
  8350. * src/SingleFileDownloadContext.cc
  8351. * src/SingleFileDownloadContext.h
  8352. * test/BtPostDownloadHandlerTest.cc
  8353. * test/MetalinkPostDownloadHandlerTest.cc
  8354. * test/MockBtContext.h
  8355. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  8356. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  8357. * src/option_processing.cc
  8358. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  8359. Applied aria2-1.0.1-mingw.patch.
  8360. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  8361. mingw.
  8362. Collected 4th and 5th argument types for getsockopt and setsockopt.
  8363. * src/SocketCore.cc
  8364. * src/a2netcompat.h
  8365. * test/SocketCoreTest.cc
  8366. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  8367. * Release 1.0.1
  8368. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  8369. Updated Ukrainian and Norwegian Nynorsk translations.
  8370. Thanks to all translators.
  8371. * po/nn.po
  8372. * po/uk.po
  8373. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  8374. Don't show download result when -S option is used.
  8375. * src/main.cc
  8376. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  8377. Bump up version number to 1.0.1
  8378. * configure.ac
  8379. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  8380. Closed files after the test cases in MultiDiskWriterTest::
  8381. testResetDiskWriterEntries(). This will fix the unit test error
  8382. in mingw32 build.
  8383. * test/MultiDiskWriterTest.cc
  8384. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  8385. Use HEAD method to get file size from HTTP server for segmented
  8386. downloading.
  8387. The request to the BitTorrent Tracker always uses GET method because
  8388. the response of the tracker is small and it doesn't need segmented
  8389. download.
  8390. * src/FtpNegotiationCommand.cc
  8391. * src/HttpRequest.cc
  8392. * src/HttpResponseCommand.cc
  8393. * src/HttpSkipResponseCommand.cc
  8394. * src/RequestGroup.cc
  8395. * src/RequestGroup.h
  8396. * src/TrackerWatcherCommand.cc
  8397. * test/HttpRequestTest.cc
  8398. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  8399. Fixed the bug that causes floating exception when -T option is used and
  8400. no URIs are given.
  8401. * src/download_helper.cc
  8402. * test/DownloadHelperTest.cc
  8403. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  8404. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  8405. errors in MinGW:
  8406. Closed file after saving server stats (RequestGroupMan.cc)
  8407. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  8408. Ignored case & handled 2-digit years (strptime.c)
  8409. Added missing suseconds_t definition (a2time.h)
  8410. Fixed socket CLOSE() define (SocketCore.cc)
  8411. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  8412. Changed utime() test values from x000 to x00000 as MinGW failed on
  8413. values less than timezone offset from Unix epoch
  8414. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  8415. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  8416. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  8417. handle negative dates (CookieParserTest.cc)
  8418. * src/a2time.h
  8419. * src/FtpConnection.cc
  8420. * src/RequestGroupMan.cc
  8421. * src/SocketCore.cc
  8422. * src/strptime.c
  8423. * test/CookieParserTest.cc
  8424. * test/CopyDiskAdaptorTest.cc
  8425. * test/FileTest.cc
  8426. * test/FtpConnectionTest.cc
  8427. * test/MultiDiskAdaptorTest.cc
  8428. 2008-11-20 Tatsuhiro Tsujikawa <[email protected]>
  8429. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  8430. * doc/aria2c.1.txt
  8431. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  8432. * Release 1.0.0
  8433. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  8434. Added '~' to reserved characters.
  8435. * src/Util.cc
  8436. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  8437. Do not urlencode Request::url in setUrl() because we want unmodified
  8438. URL using Request::getUrl()
  8439. * src/Request.cc
  8440. * src/Request.h
  8441. * test/RequestTest.cc
  8442. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  8443. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  8444. Thanks to all translators.
  8445. * po/bg.po
  8446. * po/fr.po
  8447. * po/ja.po
  8448. * po/ru.po
  8449. * po/uk.po
  8450. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  8451. Bump up version number to 1.0.0
  8452. * configure.ac
  8453. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  8454. Added nosqlite3 build to build_test.sh.
  8455. Renamed noxml as expat.
  8456. * build_test.sh
  8457. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  8458. Updated INPUT FILE section.
  8459. * doc/aria2c.1.txt
  8460. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  8461. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  8462. on big endian systems because test .aria2 files are made for little
  8463. endian systems.
  8464. * test/DefaultBtProgressInfoFileTest.cc
  8465. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  8466. Dropped ares support.
  8467. * README
  8468. * configure.ac
  8469. * m4/libares.m4: Removed.
  8470. * src/AsyncNameResolver.cc
  8471. * src/Makefile.am
  8472. * test/Makefile.am
  8473. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  8474. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  8475. Removed const qualifier from DiskWriter::size().
  8476. * src/AbstractDiskWriter.cc
  8477. * src/AbstractDiskWriter.h
  8478. * src/ByteArrayDiskWriter.cc
  8479. * src/ByteArrayDiskWriter.h
  8480. * src/DiskWriter.h
  8481. * test/ByteArrayDiskWriterTest.cc
  8482. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  8483. Fixed the bug that causes segmentation fault/bus error during executing
  8484. choking algorithm while seeding. This is caused by improper
  8485. implementation of compare function which returns inconsistent results
  8486. depending on the timing of last unchoke.
  8487. * src/BtSeederStateChoke.cc
  8488. * src/BtSeederStateChoke.h
  8489. * src/DefaultPeerStorage.cc
  8490. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  8491. Removed TODO
  8492. * TODO
  8493. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  8494. Added a section that explains how to pass argument to options that
  8495. takes optional arguments with its short form.
  8496. * doc/aria2c.1.txt
  8497. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  8498. Added -u for the short form of --max-upload-limit option.
  8499. * doc/aria2c.1.txt
  8500. * src/option_processing.cc
  8501. * src/usage_text.h
  8502. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  8503. Added -V for the short form of --check-integrity option.
  8504. Now the argument of --check-integrity option is optional:
  8505. if it is omitted, it is evaluated as true.
  8506. * doc/aria2c.1.txt
  8507. * src/option_processing.cc
  8508. * src/usage_text.h
  8509. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  8510. Made the default value of --ftp-pasv option set to true and it can take
  8511. true/false values.
  8512. * src/OptionHandlerFactory.cc
  8513. * src/option_processing.cc
  8514. * src/usage_text.h
  8515. * doc/aria2c.1.txt
  8516. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  8517. Given custom random number generator to std::random_shuffle.
  8518. * src/AnnounceList.cc
  8519. * src/BtLeecherStateChoke.cc
  8520. * src/BtSeederStateChoke.cc
  8521. * src/DefaultBtRequestFactory.cc
  8522. * src/MetalinkEntry.cc
  8523. * src/RarestPieceSelector.cc
  8524. * src/SimpleRandomizer.cc
  8525. * src/SimpleRandomizer.h
  8526. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  8527. Now the default value of --enable-direct-io is true.
  8528. * src/OptionHandlerFactory.cc
  8529. * doc/aria2c.1.txt
  8530. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  8531. Erase peer before executing onReturningPeer and onErasingPeer
  8532. because choking algorithm called from onReturningPeer doesn't
  8533. like erasing peer in the active peer list.
  8534. * src/DefaultPeerStorage.cc
  8535. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8536. Instead of creating special filename in createDownloadResult() if
  8537. inMemoryDownload() is true, now it is done in getFilePath().
  8538. * src/RequestGroup.cc
  8539. * test/RequestGroupTest.cc
  8540. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8541. Print "[MEMORY]" and filename if a file is not saved in disk and just
  8542. processed in memory. This is the fix for previous comment out.
  8543. * src/MemoryBufferPreDownloadHandler.cc
  8544. * src/RequestGroup.cc
  8545. * src/RequestGroup.h
  8546. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8547. Commented out the code which sets virtual directory path "[MEMORY]"
  8548. propagate directory to store to following RequestGroup.
  8549. * src/MemoryBufferPreDownloadHandler.cc
  8550. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8551. Bump up version number to 1.0.0b
  8552. * configure.ac
  8553. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8554. Added input_uris.txt to EXTRA_DIST
  8555. * test/Makefile.am
  8556. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8557. Removed PeerObject.h from Makefile.am
  8558. * src/Makefile.am
  8559. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8560. Avoid slow seeding
  8561. * src/PeerInteractionCommand.cc
  8562. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8563. Updated usage for -i option.
  8564. * src/usage_text.h (TEXT_INPUT_FILE)
  8565. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8566. Added INPUT FILE section to man page.
  8567. Escaped fake URLs.
  8568. * doc/aria2c.1.txt
  8569. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8570. Fixed wrong note position for -o option.
  8571. * doc/aria2c.1.txt
  8572. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8573. Fixed compile error without SSL/XML library.
  8574. * src/DefaultBtProgressInfoFile.cc
  8575. * src/DefaultBtProgressInfoFile.h
  8576. * src/FileMetalinkParserState.cc
  8577. * src/RequestGroup.h
  8578. * src/SocketCore.cc
  8579. * src/SocketCore.h
  8580. * src/VerificationMetalinkParserState.cc
  8581. * src/download_helper.h
  8582. * src/main.cc
  8583. * test/DefaultBtProgressInfoFileTest.cc
  8584. * test/DownloadHelperTest.cc
  8585. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  8586. Rewritten URI handling functions. They are now provided as a testable
  8587. functions.
  8588. * src/Makefile.am
  8589. * src/RequestGroup.cc
  8590. * src/RequestGroup.h
  8591. * src/download_helper.cc
  8592. * src/download_helper.h
  8593. * src/main.cc
  8594. * test/DownloadHelperTest.cc
  8595. * test/Makefile.am
  8596. * test/input_uris.txt
  8597. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  8598. Quickly terminate commands when ctrl-c is pressed.
  8599. * src/DownloadEngine.cc
  8600. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  8601. Quickly terminate idle commands when download finished.
  8602. * src/AbstractCommand.cc
  8603. * src/DownloadCommand.cc
  8604. * src/DownloadEngine.cc
  8605. * src/DownloadEngine.h
  8606. * src/SleepCommand.cc
  8607. * src/SleepCommand.h
  8608. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8609. Added the ability to specify output filename and directory in input
  8610. file.
  8611. Additional parameters are added in the following line of URIs
  8612. with proceeding white space(s), 1 parameter in 1 line.
  8613. The parameter names are the same with the command-line option name
  8614. without proceeding "--". Not all the options are available here:
  8615. at the moment, 'dir' and 'out' options are avialable.
  8616. Please note that out option has no effect against Metalink or BitTorrent
  8617. downloads.
  8618. Example input file:
  8619. http://host/foo-1.1.tar.bz2
  8620. out=foo.tar.bz2
  8621. dir=/tmp/downloads
  8622. http://host/thundermonkey-2.0.tar.bz2
  8623. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  8624. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  8625. thundermonkey-2.0.tar.bz2 is saved as
  8626. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  8627. * src/BtPostDownloadHandler.cc
  8628. * src/Metalink2RequestGroup.cc
  8629. * src/Metalink2RequestGroup.h
  8630. * src/MetalinkPostDownloadHandler.cc
  8631. * src/UriListParser.cc
  8632. * src/UriListParser.h
  8633. * src/main.cc
  8634. * test/Metalink2RequestGroupTest.cc
  8635. * test/UriListParserTest.cc
  8636. * test/filelist1.txt
  8637. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8638. Fixed error when SSL library is not found.
  8639. * configure.ac
  8640. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8641. Cross referenced among -s, -C and -j options.
  8642. Updated usage of -C and -s options.
  8643. * src/usage_text.h
  8644. * doc/aria2c.1.txt
  8645. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8646. Fixed bad cast in 32bit platforms.
  8647. * test/DefaultPieceStorageTest.cc
  8648. (DefaultPieceStorageTest::testGetCompletedLength)
  8649. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8650. Fixed unit test fails on 32bit platforms.
  8651. * test/CookieParserTest.cc
  8652. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8653. Show an average download speed in Download results.
  8654. * src/BtFileAllocationEntry.cc
  8655. * src/DefaultPieceStorage.cc
  8656. * src/DownloadContext.cc
  8657. * src/DownloadContext.h
  8658. * src/DownloadResult.h
  8659. * src/RequestGroup.cc
  8660. * src/RequestGroupMan.cc
  8661. * src/StreamFileAllocationEntry.cc
  8662. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8663. Fixed the bug that metalink file is not processed if Content-Type
  8664. field has a paramter.
  8665. * src/HttpResponse.cc
  8666. * src/HttpResponse.h
  8667. * test/HttpResponseTest.cc
  8668. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  8669. Removed unused code.
  8670. * src/DefaultBtAnnounce.cc
  8671. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  8672. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  8673. the value larger than DefaultPieceStorage::getTotalLength() when
  8674. in flight pieces are involved.
  8675. * src/DefaultPieceStorage.cc
  8676. * test/DefaultPieceStorageTest.cc
  8677. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8678. Bump up version number to 1.0.0a.
  8679. * configure.ac
  8680. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8681. Updated configure.ac
  8682. * configure.ac
  8683. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8684. Added usege for proxy.
  8685. * doc/aria2c.1.txt
  8686. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8687. Added usage for --ca-certificate, --certificate, --private-key and
  8688. --check-certificate options.
  8689. * doc/aria2c.1.txt
  8690. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8691. Updated man page
  8692. * doc/aria2c.1.txt
  8693. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8694. Added --no-proxy option. It receives comman separated hostname or
  8695. domains to which proxy should not be used.
  8696. aria2 honors the environment variable no_proxy to override no-proxy
  8697. value in configuration file. The user can override the environment
  8698. variable no_proxy with --no-proxy command-line option.
  8699. * src/AbstractCommand.cc
  8700. * src/OptionHandlerFactory.cc
  8701. * src/option_processing.cc
  8702. * src/prefs.cc
  8703. * src/prefs.h
  8704. * src/usage_text.h
  8705. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8706. Added the ability to verify peer in SSL/TLS using given CA certificates.
  8707. The CA certificates are specified in --ca-certificate option.
  8708. By default, the verification is disabled. Use --check-certificate
  8709. option to enable it.
  8710. * src/HttpRequestCommand.cc
  8711. * src/LibgnutlsTLSContext.cc
  8712. * src/LibgnutlsTLSContext.h
  8713. * src/LibsslTLSContext.cc
  8714. * src/LibsslTLSContext.h
  8715. * src/MultiUrlRequestInfo.cc
  8716. * src/OptionHandlerFactory.cc
  8717. * src/SocketCore.cc
  8718. * src/SocketCore.h
  8719. * src/a2functional.h
  8720. * src/message.h
  8721. * src/option_processing.cc
  8722. * src/prefs.cc
  8723. * src/prefs.h
  8724. * src/usage_text.h
  8725. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  8726. Added client certificate authentication for SSL/TLS.
  8727. Currently a private key must be decrypted for use with aria2.
  8728. If a user accidentally gives encrypted file to aria2 then following
  8729. thing happens:
  8730. If encrypted private key is given to aria2, it behaves differently
  8731. depending on the ssl library it uses. If aria2 built with openssl then
  8732. openssl prompts the user for password. If aria2 build with gnutls then
  8733. aria2 exists with error at start up.
  8734. * src/DownloadEngineFactory.cc
  8735. * src/MultiUrlRequestInfo.cc
  8736. * src/OptionHandlerFactory.cc
  8737. * src/option_processing.cc
  8738. * src/prefs.cc
  8739. * src/prefs.h
  8740. * src/usage_text.h
  8741. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  8742. Introduced TLSContext that holds TLS related data that can be shared
  8743. with multiple SSL connections.
  8744. * src/DownloadEngineFactory.cc
  8745. * src/LibgnutlsTLSContext.cc
  8746. * src/LibgnutlsTLSContext.h
  8747. * src/LibsslTLSContext.cc
  8748. * src/LibsslTLSContext.h
  8749. * src/Makefile.am
  8750. * src/SocketCore.cc
  8751. * src/SocketCore.h
  8752. * src/TLSContext.h
  8753. * src/message.h
  8754. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  8755. Fixed the bug that the DiskWriter of the first FileEntry whose
  8756. `needsFileAllocation' property is false is not created
  8757. even if it shares a piece with next FileEntry which `requested' property
  8758. is true.
  8759. Fixed the bug that zero-length file is not created if pre file
  8760. allocation is not done.
  8761. * src/MultiDiskAdaptor.cc
  8762. * src/MultiDiskAdaptor.h
  8763. * test/MultiDiskAdaptorTest.cc
  8764. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8765. Added the ability to pool proxy connection.
  8766. The conneciton in FTP with proxy-method=GET is not pooled.
  8767. Proxy-Connection header will not be sent when sending CONNECT method.
  8768. * src/DownloadEngine.cc
  8769. * src/DownloadEngine.h
  8770. * src/FtpFinishDownloadCommand.cc
  8771. * src/FtpInitiateConnectionCommand.cc
  8772. * src/FtpNegotiationCommand.cc
  8773. * src/HttpDownloadCommand.cc
  8774. * src/HttpInitiateConnectionCommand.cc
  8775. * src/HttpRequest.cc
  8776. * src/HttpRequest.h
  8777. * src/HttpResponse.cc
  8778. * src/HttpSkipResponseCommand.cc
  8779. * test/HttpRequestTest.cc
  8780. * test/HttpResponseTest.cc
  8781. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. Handle date before epoch.
  8783. To create *bad* Time object, call Time::null().
  8784. * src/CookieParser.cc
  8785. * src/FtpConnection.cc
  8786. * src/FtpConnection.h
  8787. * src/FtpNegotiationCommand.cc
  8788. * src/RequestGroup.cc
  8789. * src/TimeA2.cc
  8790. * src/TimeA2.h
  8791. * test/CookieParserTest.cc
  8792. * test/FtpConnectionTest.cc
  8793. * test/TimeTest.cc
  8794. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Added support for following envrionment variables: http_proxy,
  8796. https_proxy, ftp_proxy and all_proxy.
  8797. Each variable is equivalent to the aria2 option whose name is the
  8798. variable name with '_' replaced with '-'.
  8799. They overrides options specified in aria2.conf file.
  8800. The envrionment variables can be overrode using command-line option.
  8801. * src/option_processing.cc
  8802. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. Renamed --http-proxy-method as --proxy-method.
  8804. * src/AbstractCommand.cc
  8805. * src/FtpInitiateConnectionCommand.cc
  8806. * src/HttpInitiateConnectionCommand.cc
  8807. * src/OptionHandlerFactory.cc
  8808. * src/option_processing.cc
  8809. * src/prefs.cc
  8810. * src/prefs.h
  8811. * src/usage_text.h
  8812. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Deprecated --http-proxy-user and --http-proxy-passwd options.
  8814. Added --https-proxy, --ftp-proxy and --all-proxy options.
  8815. Above 3 options and --http-proxy option can handle proxy in URL format
  8816. like: http://user:passwd@host:port.
  8817. If a proxy requires user/password, they must be specified in a URL.
  8818. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  8819. instead.
  8820. * src/AbstractCommand.cc
  8821. * src/AbstractCommand.h
  8822. * src/AbstractProxyRequestCommand.cc
  8823. * src/AbstractProxyRequestCommand.h
  8824. * src/AuthConfigFactory.cc
  8825. * src/AuthConfigFactory.h
  8826. * src/FtpFinishDownloadCommand.cc
  8827. * src/FtpInitiateConnectionCommand.cc
  8828. * src/FtpInitiateConnectionCommand.h
  8829. * src/FtpNegotiationCommand.cc
  8830. * src/FtpTunnelRequestCommand.cc
  8831. * src/FtpTunnelRequestCommand.h
  8832. * src/HttpDownloadCommand.cc
  8833. * src/HttpInitiateConnectionCommand.cc
  8834. * src/HttpInitiateConnectionCommand.h
  8835. * src/HttpProxyRequestCommand.cc
  8836. * src/HttpProxyRequestCommand.h
  8837. * src/HttpRequest.cc
  8838. * src/HttpRequest.h
  8839. * src/HttpRequestCommand.cc
  8840. * src/HttpRequestCommand.h
  8841. * src/HttpSkipResponseCommand.cc
  8842. * src/InitiateConnectionCommand.cc
  8843. * src/InitiateConnectionCommand.h
  8844. * src/OptionHandlerFactory.cc
  8845. * src/OptionHandlerImpl.h
  8846. * src/Request.cc
  8847. * src/option_processing.cc
  8848. * src/prefs.cc
  8849. * src/prefs.h
  8850. * src/usage_text.h
  8851. * test/AuthConfigFactoryTest.cc
  8852. * test/HttpRequestTest.cc
  8853. * test/OptionHandlerTest.cc
  8854. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8855. Execute choking algorithm when unchoked and interested peer is
  8856. disconected.
  8857. * src/DefaultPeerStorage.cc
  8858. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8859. Added testcase for BtNotInterestedMessage from unchoked peer.
  8860. * test/BtNotInterestedMessageTest.cc
  8861. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. Execute choking algorithm when BtInterestedMessage arrives from
  8863. unchoked peer.
  8864. * src/BtInterestedMessage.cc
  8865. * src/BtInterestedMessage.h
  8866. * src/DefaultBtMessageFactory.cc
  8867. * test/BtInterestedMessageTest.cc
  8868. * test/MockPeerStorage.h
  8869. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. AuthConfigFactory is now part of DownloadEngine.
  8871. * src/AbstractProxyRequestCommand.cc
  8872. * src/AuthConfigFactory.h
  8873. * src/DownloadEngine.cc
  8874. * src/DownloadEngine.h
  8875. * src/FtpConnection.cc
  8876. * src/FtpConnection.h
  8877. * src/FtpNegotiationCommand.cc
  8878. * src/HttpConnection.cc
  8879. * src/HttpRequest.cc
  8880. * src/HttpRequest.h
  8881. * src/HttpRequestCommand.cc
  8882. * src/HttpResponse.cc
  8883. * src/HttpResponseCommand.cc
  8884. * src/HttpSkipResponseCommand.cc
  8885. * src/MultiUrlRequestInfo.cc
  8886. * src/main.cc
  8887. * test/FtpConnectionTest.cc
  8888. * test/HttpRequestTest.cc
  8889. * test/HttpResponseTest.cc
  8890. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8891. Corrected catched exception type.
  8892. * src/ServerStatMan.cc
  8893. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. DNSCache is now part of DownloadEngine.
  8895. * src/DNSCache.h
  8896. * src/DownloadEngine.cc
  8897. * src/DownloadEngine.h
  8898. * src/InitiateConnectionCommand.cc
  8899. * src/MultiUrlRequestInfo.cc
  8900. * test/Makefile.am
  8901. * test/Makefile.in
  8902. * test/SimpleDNSCacheTest.cc
  8903. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  8905. DownloadEngine.
  8906. * src/ActivePeerConnectionCommand.cc
  8907. * src/BtSetup.cc
  8908. * src/CUIDCounter.h
  8909. * src/DHTSetup.cc
  8910. * src/DownloadCommand.cc
  8911. * src/DownloadEngine.cc
  8912. * src/DownloadEngine.h
  8913. * src/DownloadEngineFactory.cc
  8914. * src/FileAllocationDispatcherCommand.cc
  8915. * src/InitiatorMSEHandshakeCommand.cc
  8916. * src/PeerInitiateConnectionCommand.cc
  8917. * src/PeerInteractionCommand.cc
  8918. * src/PeerListenCommand.cc
  8919. * src/RequestGroup.cc
  8920. * src/StreamFileAllocationEntry.cc
  8921. * src/TrackerWatcherCommand.cc
  8922. * src/main.cc
  8923. * test/RequestGroupManTest.cc
  8924. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. Implemented commented code in BtSeederStateChoke
  8926. * src/BtSeederStateChoke.cc
  8927. * src/Peer.cc
  8928. * src/Peer.h
  8929. * src/PeerInteractionCommand.cc
  8930. * src/PeerSessionResource.cc
  8931. * src/PeerSessionResource.h
  8932. * test/MockBtMessageDispatcher.h
  8933. * test/PeerSessionResourceTest.cc
  8934. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8935. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  8936. its object.
  8937. * src/AbstractBtMessage.cc
  8938. * src/ActivePeerConnectionCommand.cc
  8939. * src/ActivePeerConnectionCommand.h
  8940. * src/BtContextAwareCommand.cc
  8941. * src/BtContextAwareCommand.h
  8942. * src/BtExtendedMessage.cc
  8943. * src/BtExtendedMessage.h
  8944. * src/BtInterestedMessage.cc
  8945. * src/BtInterestedMessage.h
  8946. * src/BtNotInterestedMessage.cc
  8947. * src/BtNotInterestedMessage.h
  8948. * src/BtRegistry.cc
  8949. * src/BtRegistry.h
  8950. * src/BtSeederStateChoke.cc
  8951. * src/BtSetup.cc
  8952. * src/DHTGetPeersCommand.cc
  8953. * src/DHTGetPeersCommand.h
  8954. * src/DHTPeerAnnounceEntry.cc
  8955. * src/DHTPeerAnnounceEntry.h
  8956. * src/DHTPeerAnnounceStorage.cc
  8957. * src/DHTPeerAnnounceStorage.h
  8958. * src/DHTPeerLookupTask.cc
  8959. * src/DHTPeerLookupTask.h
  8960. * src/DHTSetup.cc
  8961. * src/DHTSetup.h
  8962. * src/DHTTaskFactory.h
  8963. * src/DHTTaskFactoryImpl.cc
  8964. * src/DHTTaskFactoryImpl.h
  8965. * src/DefaultBtAnnounce.cc
  8966. * src/DefaultBtInteractive.cc
  8967. * src/DefaultBtInteractive.h
  8968. * src/DefaultBtMessageDispatcher.cc
  8969. * src/DefaultBtMessageDispatcher.h
  8970. * src/DefaultBtMessageFactory.cc
  8971. * src/DefaultBtMessageFactory.h
  8972. * src/DefaultBtMessageReceiver.cc
  8973. * src/DefaultBtProgressInfoFile.cc
  8974. * src/DefaultBtProgressInfoFile.h
  8975. * src/DefaultBtRequestFactory.cc
  8976. * src/DefaultBtRequestFactory.h
  8977. * src/DefaultExtensionMessageFactory.cc
  8978. * src/DefaultExtensionMessageFactory.h
  8979. * src/DefaultPeerStorage.cc
  8980. * src/DefaultPeerStorage.h
  8981. * src/DownloadEngine.cc
  8982. * src/DownloadEngine.h
  8983. * src/InitiatorMSEHandshakeCommand.cc
  8984. * src/InitiatorMSEHandshakeCommand.h
  8985. * src/MSEHandshake.cc
  8986. * src/MSEHandshake.h
  8987. * src/Makefile.am
  8988. * src/Makefile.in
  8989. * src/PeerChokeCommand.cc
  8990. * src/PeerChokeCommand.h
  8991. * src/PeerInitiateConnectionCommand.cc
  8992. * src/PeerInitiateConnectionCommand.h
  8993. * src/PeerInteractionCommand.cc
  8994. * src/PeerInteractionCommand.h
  8995. * src/PeerObject.h
  8996. * src/PeerReceiveHandshakeCommand.cc
  8997. * src/PeerReceiveHandshakeCommand.h
  8998. * src/ReceiverMSEHandshakeCommand.cc
  8999. * src/RequestGroup.cc
  9000. * src/RequestGroup.h
  9001. * src/RequestGroupMan.cc
  9002. * src/RequestGroupMan.h
  9003. * src/SeedCheckCommand.cc
  9004. * src/SeedCheckCommand.h
  9005. * src/ShareRatioSeedCriteria.h
  9006. * src/SimpleBtMessage.cc
  9007. * src/TrackerWatcherCommand.cc
  9008. * src/TrackerWatcherCommand.h
  9009. * src/UTPexExtensionMessage.cc
  9010. * src/UTPexExtensionMessage.h
  9011. * test/BtCancelMessageTest.cc
  9012. * test/BtChokeMessageTest.cc
  9013. * test/BtExtendedMessageTest.cc
  9014. * test/BtInterestedMessageTest.cc
  9015. * test/BtNotInterestedMessageTest.cc
  9016. * test/BtPieceMessageTest.cc
  9017. * test/BtPortMessageTest.cc
  9018. * test/BtRegistryTest.cc
  9019. * test/BtRejectMessageTest.cc
  9020. * test/BtRequestMessageTest.cc
  9021. * test/DHTPeerAnnounceEntryTest.cc
  9022. * test/DHTPeerAnnounceStorageTest.cc
  9023. * test/DefaultBtMessageDispatcherTest.cc
  9024. * test/DefaultBtMessageFactoryTest.cc
  9025. * test/DefaultBtProgressInfoFileTest.cc
  9026. * test/DefaultBtRequestFactoryTest.cc
  9027. * test/DefaultExtensionMessageFactoryTest.cc
  9028. * test/MSEHandshakeTest.cc
  9029. * test/MockDHTTaskFactory.h
  9030. * test/ShareRatioSeedCriteriaTest.cc
  9031. * test/UTPexExtensionMessageTest.cc
  9032. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. Fixed compiler warning.
  9034. * test/UtilTest.cc
  9035. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9036. Treat Cookie object as session cookie if expiry = 0 is given.
  9037. With this change, you can specify session scoped cookies in an external
  9038. file setting expiry value to 0.
  9039. * src/Cookie.cc
  9040. * src/Cookie.h
  9041. * test/CookieParserTest.cc
  9042. * test/CookieStorageTest.cc
  9043. * test/CookieTest.cc
  9044. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Changed signature of DHTMessageFactory::createResponseMessage().
  9046. Removed unused validateIDMatch.
  9047. * src/DHTMessageFactory.h
  9048. * src/DHTMessageFactoryImpl.cc
  9049. * src/DHTMessageFactoryImpl.h
  9050. * src/DHTMessageTracker.cc
  9051. * test/DHTMessageFactoryImplTest.cc
  9052. * test/MockDHTMessageFactory.h
  9053. Dropped DHT message coming from same ID of localhost.
  9054. * src/DHTMessageReceiver.cc
  9055. Rejected adding node whose ID is the same as localhost's.
  9056. * src/DHTRoutingTable.cc
  9057. * test/BtPortMessageTest.cc
  9058. * test/DHTRoutingTableTest.cc
  9059. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9060. Pool connection when redirection occurs with Content-Length = 0.
  9061. * src/HttpSkipResponseCommand.cc
  9062. * src/HttpSkipResponseCommand.h
  9063. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9064. Fixed the bug that causes time out when redirection occurs with
  9065. content-length 0.
  9066. * src/HttpResponseCommand.cc
  9067. * src/HttpSkipResponseCommand.cc
  9068. * src/HttpSkipResponseCommand.h
  9069. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. Now each status legends is shown only when it appears in Download
  9071. Result. If Download Result has no item, then status legend will not
  9072. be printed.
  9073. * src/RequestGroupMan.cc
  9074. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Removed duplicate creation of OptionHandlers.
  9076. * src/option_processing.cc
  9077. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. Fixed the bug that causes segmentation fault when accessing files which
  9079. don't exist or are not included in --select-file option while
  9080. validating chunk checksum.
  9081. * src/MultiDiskAdaptor.cc
  9082. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9083. Fixed compiler warning.
  9084. * test/UtilTest.cc
  9085. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Included cstdlib. This fixed the compile error with g++-4.3.2.
  9087. * src/IteratableChecksumValidator.cc
  9088. * src/IteratableChunkChecksumValidator.cc
  9089. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. * Release 0.16.2
  9091. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Added Serbian translation. Updated Ukrainian translation.
  9093. Thanks to all translators.
  9094. * po/sr.po
  9095. * po/uk.po
  9096. * po/LINGUAS
  9097. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9098. Bump up version number to 0.16.2
  9099. * configure.ac
  9100. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9101. Added length equality test to operator== to drop a piece message
  9102. whose length does not match to the requested one.
  9103. * src/RequestSlot.cc
  9104. * test/DefaultBtMessageDispatcherTest.cc
  9105. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  9107. recieved.
  9108. In this fix, if a request larger than 16KiB length is received, aria2
  9109. disconnects the peer.
  9110. * src/BtConstants.h
  9111. * src/PeerMessageUtil.cc
  9112. * src/PeerMessageUtil.h
  9113. * test/BtRequestMessageTest.cc
  9114. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. * Release 0.16.1
  9116. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  9118. * doc/aria2c.1.txt
  9119. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9120. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  9121. Updated French, Simplified Chinese and Japanese translations.
  9122. Thanks to all translators.
  9123. en@quot and en@boldquot are also added.
  9124. * po/LINGUAS
  9125. * po/fr.po
  9126. * po/ja.po
  9127. * po/uk.po
  9128. * po/vi.po
  9129. * po/zh_CN.po
  9130. * po/zh_TW.po
  9131. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9132. Bump up version number to 0.16.1.
  9133. * configure.ac
  9134. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9135. Updated README.
  9136. * README
  9137. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9138. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  9139. not to replace '--' with em dash character.
  9140. * doc/aria2c.1.txt
  9141. * doc/makeman
  9142. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  9144. every SEC seconds.
  9145. * src/DownloadEngineFactory.cc
  9146. * src/OptionHandlerFactory.cc
  9147. * src/option_processing.cc
  9148. * src/usage_text.h
  9149. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9150. Fixed compile warning on linux-amd64
  9151. * src/FtpConnection.cc
  9152. * src/IteratableChunkChecksumValidator.cc
  9153. * src/MultiDiskAdaptor.cc
  9154. Fixed the bug that unit test fails on linux-amd64
  9155. * test/UtilTest.cc
  9156. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Added --dht-file-path option to change the path to dht.dat, which is a
  9158. serialized DHT routing table.
  9159. * src/OptionHandlerFactory.cc
  9160. * src/option_processing.cc
  9161. * src/usage_text.h
  9162. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9163. Fixed possible underflow.
  9164. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  9165. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9166. Fixed the bug that last character in URI is not encoded.
  9167. * src/Request.cc
  9168. * test/RequestTest.cc
  9169. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9170. Fixed the bug that referer header field contains fragment.
  9171. Now Request class removes fragment part of URI and encodes it
  9172. in Request::setUri() and setReferer().
  9173. * src/Request.h
  9174. * src/Request.cc
  9175. * test/RequestTest.cc
  9176. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9177. Added missing m4 macros.
  9178. * m4/cppunit.m4
  9179. * m4/libgcrypt.m4
  9180. * m4/libgnutls-extra.m4
  9181. * m4/libgnutls.m4
  9182. * m4/libxml2.m4
  9183. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9184. Fixed compile error with gcc-4.4(snapshot)
  9185. * src/File.cc
  9186. * src/FtpConnection.cc
  9187. * src/OptionHandlerImpl.h
  9188. * src/Util.cc
  9189. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9190. Removed assert()
  9191. * src/SocketBuffer.cc (SocketBuffer::send)
  9192. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9193. Changed the type of _numNewConnection to unsigned int.
  9194. * src/ActivePeerConnectionCommand.cc
  9195. * src/ActivePeerConnectionCommand.h
  9196. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. * Release 0.16.0
  9198. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9199. Updated doc
  9200. * README
  9201. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9202. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  9203. translations. Thanks to all translators.
  9204. * po/bg.po
  9205. * po/de.po
  9206. * po/fr.po
  9207. * po/ja.po
  9208. * po/zh_CN.po
  9209. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. Bump up version number to 0.16.0.
  9211. * configure.ac
  9212. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. Casted entry->maxConnections to int32_t for std::min<T> with T =
  9214. int32_t.
  9215. Changed the type of count to int32_t.
  9216. * src/Metalink2RequestGroup.cc
  9217. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9218. Added test for Time::elapsed(time_t).
  9219. * test/TimeTest.cc
  9220. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9221. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  9222. Util::difftv() should be used instead.
  9223. * src/TimeA2.cc
  9224. * src/TimeA2.h
  9225. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9226. Made socket for dht connections non-blocking
  9227. * src/DHTAbstractMessage.cc
  9228. * src/DHTAbstractMessage.h
  9229. * src/DHTConnection.h
  9230. * src/DHTConnectionImpl.cc
  9231. * src/DHTConnectionImpl.h
  9232. * src/DHTMessage.h
  9233. * src/DHTMessageDispatcherImpl.cc
  9234. * src/DHTMessageDispatcherImpl.h
  9235. * src/DHTUnknownMessage.cc
  9236. * src/DHTUnknownMessage.h
  9237. * src/SocketCore.cc
  9238. * src/SocketCore.h
  9239. * test/MockDHTMessage.h
  9240. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9241. Changed the type of offset to int.
  9242. * src/ParameterizedStringParser.cc
  9243. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. Made getAsInt() return int32_t
  9245. * src/Option.h
  9246. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9247. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  9248. build.
  9249. * configure.ac
  9250. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9251. Use sqlite3_open if sqlite3_open_v2 is not available.
  9252. * src/Sqlite3MozCookieParser.cc
  9253. * src/Sqlite3MozCookieParser.h
  9254. * m4/sqlite3.m4
  9255. * test/Sqlite3MozCookieParserTest.cc
  9256. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  9258. * src/BtPieceMessage.cc
  9259. * src/DHTPeerAnnounceStorage.cc
  9260. * src/DefaultPieceStorage.cc
  9261. * src/DownloadCommand.cc
  9262. * src/DownloadEngine.cc
  9263. * src/FtpConnection.cc
  9264. * src/PeerConnection.cc
  9265. * src/PeerMessageUtil.cc
  9266. * src/RequestGroup.cc
  9267. * src/RequestGroupMan.cc
  9268. * src/SimpleBtMessage.cc
  9269. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9270. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  9271. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  9272. * src/AbstractDiskWriter.cc
  9273. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9274. Don't set Request::supportsPersistentConnection() in HttpConnection
  9275. since this code is also used in AbstractProxyResponseCommand.
  9276. Moved those code to HttpResponse.
  9277. * src/HttpResponse.cc
  9278. * src/HttpResponse.h
  9279. * src/HttpConnection.cc
  9280. * src/HttpConnection.h
  9281. * src/HttpResponseCommand.cc
  9282. * test/HttpResponseTest.cc
  9283. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  9285. The configuration is minimum: no torrent, no metalink, so there may be
  9286. other compile error on their code.
  9287. * src/a2netcompat.h
  9288. * src/File.cc
  9289. * src/File.h
  9290. * src/SocketCore.cc
  9291. * src/SocketCore.h
  9292. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Made a socket of incoming peer non-blocking.
  9294. * src/PeerListenCommand.cc
  9295. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  9297. whole message data is not sent in one send() call.
  9298. * src/BtPieceMessage.cc
  9299. * src/BtPieceMessage.h
  9300. * src/PeerConnection.cc
  9301. * src/PeerConnection.h
  9302. * src/SimpleBtMessage.cc
  9303. * src/SimpleBtMessage.h
  9304. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9305. Fixed the bug that aria2 downloads faster than max-download-limit when
  9306. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  9307. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  9308. , instead of sum of them.
  9309. * src/ActivePeerConnectionCommand.cc
  9310. * src/DefaultBtInteractive.cc
  9311. * src/DownloadCommand.cc
  9312. * src/PeerInteractionCommand.cc
  9313. * src/PeerReceiveHandshakeCommand.cc
  9314. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9315. Fixed the bug that HTTPS download fails.
  9316. * src/AbstractCommand.cc
  9317. * src/AbstractCommand.h
  9318. * src/DownloadCommand.cc
  9319. * src/FtpConnection.cc
  9320. * src/HttpConnection.cc
  9321. * src/HttpRequestCommand.cc
  9322. * src/HttpResponseCommand.cc
  9323. * src/HttpSkipResponseCommand.cc
  9324. * src/MSEHandshake.cc
  9325. * src/PeerConnection.cc
  9326. * src/SocketCore.cc
  9327. * src/SocketCore.h
  9328. Fixed the bug that aria2 doesn't download whole content body and cannot
  9329. reuse connection if chunked transfer encoding and gzip content encoding
  9330. are set.
  9331. * src/DownloadCommand.cc
  9332. * src/HttpSkipResponseCommand.cc
  9333. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9334. Updated man page.
  9335. * doc/aria2c.1.txt
  9336. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9337. When error occurred while aria2 was parsing an .aria2.conf file, print
  9338. the usage of the option that caused error.
  9339. * src/option_processing.cc
  9340. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Fixed compile error on OptionHandlerException
  9342. * src/Makefile.am
  9343. * src/OptionHandlerException.cc
  9344. * src/OptionHandlerException.h
  9345. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9346. Moved message of the error to OptionHandlerException.h
  9347. * src/NameMatchOptionHandler.h
  9348. * src/OptionHandlerException.h
  9349. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9350. When error occurs while aria2 is parsing an command-line option, print
  9351. the usage of the option.
  9352. * src/Makefile.am
  9353. * src/NameMatchOptionHandler.h
  9354. * src/OptionHandlerException.h
  9355. * src/option_processing.cc
  9356. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9357. Reverted previous change.
  9358. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  9359. username is not in URI.
  9360. * src/HttpRequest.cc
  9361. * src/Request.cc
  9362. * test/HttpRequestTest.cc
  9363. * test/RequestTest.cc
  9364. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Now colon is required for username and password in FTP URL, like:
  9366. ftp://username:password@host.
  9367. If colon is not there, aria2 don't parse it as a username. For example,
  9368. aria2 don't retrieve username from ftp://username@host.
  9369. This fix was made in order to login FTP server via non-transparent ftp
  9370. proxy.
  9371. * src/Request.cc
  9372. * test/RequestTest.cc
  9373. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9374. Use netrc for HTTP.
  9375. Now FTP user/password is sent in Authorization header when
  9376. --ftp-via-http-proxy=get is given.
  9377. * src/AuthConfigFactory.cc
  9378. * src/HttpRequest.cc
  9379. * src/HttpRequest.h
  9380. * src/NetrcAuthResolver.cc
  9381. * src/NetrcAuthResolver.h
  9382. * src/OptionHandlerFactory.cc
  9383. * src/option_processing.cc
  9384. * src/prefs.cc
  9385. * src/prefs.h
  9386. * test/AuthConfigFactoryTest.cc
  9387. * test/HttpRequestTest.cc
  9388. * test/NetrcAuthResolverTest.cc
  9389. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Issue PWD command first and get working directory and use it as a prefix
  9391. for CWD command.
  9392. * src/DownloadEngine.cc
  9393. * src/DownloadEngine.h
  9394. * src/FtpConnection.cc
  9395. * src/FtpConnection.h
  9396. * src/FtpFinishDownloadCommand.cc
  9397. * src/FtpInitiateConnectionCommand.cc
  9398. * src/FtpNegotiationCommand.cc
  9399. * src/FtpNegotiationCommand.h
  9400. * test/FtpConnectionTest.cc
  9401. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. Removed default user/pass for FTP user/pass, since it should not have
  9403. precedence over netrc configuration by default.
  9404. * src/OptionHandlerFactory.cc
  9405. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9406. Added debug log for socket event.
  9407. * src/AbstractCommand.cc
  9408. * src/PeerAbstractCommand.cc
  9409. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Log microseconds.
  9411. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9412. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9413. Replaced HelpItem.cc with OptionHandler.cc.
  9414. * po/POTFILES.in
  9415. Updated po files with 'make update-po'
  9416. * po/aria2c.pot
  9417. * po/*.po
  9418. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9419. Removed possible values from the text.
  9420. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  9421. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. Removed unused preferences:
  9423. PREF_NO_PREALLOCATION
  9424. PREF_STDOUT_LOG
  9425. PREF_TRACKER_MAX_TRIES
  9426. PREF_DIRECT_DOWNLOAD_TIMEOUT
  9427. PREF_MIN_SEGMENT_SIZE
  9428. * src/option_processing.cc
  9429. * src/prefs.cc
  9430. * src/prefs.h
  9431. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9432. Integrated HelpItem into OptionParser to ease the workload for adding
  9433. new options. Removed default value from usage text.
  9434. * src/HelpItem.cc: Removed.
  9435. * src/HelpItem.h: Removed.
  9436. * src/HelpItemFactory.cc: Removed.
  9437. * src/HelpItemFactory.h: Removed.
  9438. * src/Makefile.am
  9439. * src/Makefile.in
  9440. * src/NameMatchOptionHandler.h
  9441. * src/OptionHandler.cc
  9442. * src/OptionHandler.h
  9443. * src/OptionHandlerFactory.cc
  9444. * src/OptionHandlerImpl.h
  9445. * src/OptionParser.cc
  9446. * src/OptionParser.h
  9447. * src/TagContainer.cc: Removed.
  9448. * src/TagContainer.h: Removed.
  9449. * src/TaggedItem.cc: Removed.
  9450. * src/TaggedItem.h: Removed.
  9451. * src/main.cc
  9452. * src/option_processing.cc
  9453. * src/usage_text.h
  9454. * src/version_usage.cc
  9455. * test/HelpItemTest.cc: Removed.
  9456. * test/Makefile.am
  9457. * test/Makefile.in
  9458. * test/OptionHandlerTest.cc
  9459. * test/OptionParserTest.cc
  9460. * test/TagContainerTest.cc: Removed.
  9461. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9462. Moved `TransferStat stat = ...' to inside the `if' clause.
  9463. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  9464. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9465. Fixed the bug that a block in a piece is requested when same block is
  9466. already requested to the same peer in end game mode.
  9467. * src/BtRequestFactory.h
  9468. * src/DefaultBtInteractive.cc
  9469. * src/DefaultBtRequestFactory.cc
  9470. * src/DefaultBtRequestFactory.h
  9471. * src/DefaultPieceStorage.cc
  9472. * src/DefaultPieceStorage.h
  9473. * src/PieceStorage.h
  9474. * src/UnknownLengthPieceStorage.cc
  9475. * src/UnknownLengthPieceStorage.h
  9476. * test/DefaultBtRequestFactoryTest.cc
  9477. * test/DefaultPieceStorageTest.cc
  9478. * test/MockBtRequestFactory.h
  9479. * test/MockPieceStorage.h
  9480. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Removed _uploadLength and _downloadLength from PeerSessionResource
  9482. and use PeerStat::_sessionUploadLength and
  9483. PeerStat::_sessionDownloadLength.
  9484. * src/PeerSessionResource.cc
  9485. * src/PeerSessionResource.h
  9486. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9487. Fixed the bug that prefixLength of split bucket which doesn't include
  9488. local node ID is incremented.
  9489. * src/DHTBucket.cc
  9490. * src/DHTBucket.h
  9491. * test/DHTBucketTest.cc
  9492. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9493. Added cookies.sqlite to EXTRA_DIST
  9494. * test/Makefile.am
  9495. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9496. Added Turkish translation. Updated French, German, Russian and
  9497. Simplified Chinese translations. Thanks to all translators.
  9498. * po/LINGUAS
  9499. * po/de.po
  9500. * po/fr.po
  9501. * po/ru.po
  9502. * po/tr.po
  9503. * po/zh_CN.po
  9504. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. Added deliminating text to the beginning of the log so that one can find
  9506. where the log starts easily.
  9507. * src/main.cc
  9508. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  9510. to fix compile error when async DNS is not enabled by configuration.
  9511. * src/AbstractCommand.cc
  9512. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9513. If establishing conneciton to a server is failed, then mark error on
  9514. its ServerStat.
  9515. Added the cause of error to log when error event occurred.
  9516. Moved message string to message.h for translation.
  9517. * src/AbstractCommand.cc
  9518. * src/AbstractCommand.h
  9519. * src/FtpNegotiationCommand.cc
  9520. * src/HttpRequestCommand.cc
  9521. * src/PeerAbstractCommand.cc
  9522. * src/message.h
  9523. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. Added the function to get error message from socket.
  9525. * src/SocketCore.cc
  9526. * src/SocketCore.h
  9527. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9528. Added convenient method RequestGroupMan::getOrCreateServerStat()
  9529. * src/RequestGroupMan.cc
  9530. * src/RequestGroupMan.h
  9531. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. If error event is received in epoll, then abort download immediately.
  9533. * src/AbstractCommand.cc
  9534. * src/Command.cc
  9535. * src/Command.h
  9536. * src/DownloadEngine.cc
  9537. * src/PeerAbstractCommand.cc
  9538. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9539. Added usage message for --uri-selector, --server-stat-of,
  9540. --server-stat-in, --server-stat-timeout options.
  9541. * src/HelpItemFactory.cc
  9542. * src/usage_text.h
  9543. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9544. Added upper limit of FTP response buffer. The current implementation
  9545. uses 4096bytes as a limit.
  9546. * src/FtpConnection.cc
  9547. * src/FtpConnection.h
  9548. * test/FtpConnectionTest.cc
  9549. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. Use non-blocking socket for TCP communication to avoid possible
  9551. blocking due to buffer full.
  9552. * src/AbstractProxyRequestCommand.cc
  9553. * src/FtpConnection.cc
  9554. * src/FtpConnection.h
  9555. * src/FtpNegotiationCommand.cc
  9556. * src/FtpNegotiationCommand.h
  9557. * src/HttpConnection.cc
  9558. * src/HttpConnection.h
  9559. * src/HttpRequestCommand.cc
  9560. * src/InitiatorMSEHandshakeCommand.cc
  9561. * src/InitiatorMSEHandshakeCommand.h
  9562. * src/MSEHandshake.cc
  9563. * src/MSEHandshake.h
  9564. * src/Makefile.am
  9565. * src/PeerConnection.cc
  9566. * src/PeerConnection.h
  9567. * src/PeerInteractionCommand.cc
  9568. * src/PeerListenCommand.cc
  9569. * src/ReceiverMSEHandshakeCommand.cc
  9570. * src/ReceiverMSEHandshakeCommand.h
  9571. * src/SocketBuffer.cc
  9572. * src/SocketBuffer.h
  9573. * src/SocketCore.cc
  9574. * src/SocketCore.h
  9575. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Call setStatusRealtime() in constructor.
  9577. * src/RealtimeCommand.cc
  9578. * src/RealtimeCommand.h
  9579. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9580. Call Download::setNoWait(true) to execute newly created command without
  9581. a pause.
  9582. * src/AbstractCommand.cc
  9583. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9584. Added --max-file-not-found=NUM option. If aria2 receives `file not
  9585. found' error from HTTP/FTP server NUM times without getting single
  9586. bytes of data, then force the download to fail.
  9587. Basically aria2 tris all URIs available. So if long list of URIs are
  9588. specified in Metalink, then aria2 will take a long time to fail
  9589. eventually if all URIs are outdated. This option eases this situation
  9590. to limit the number of servers to try.
  9591. * src/FtpNegotiationCommand.cc
  9592. * src/HelpItemFactory.cc
  9593. * src/HttpResponseCommand.cc
  9594. * src/OptionHandlerFactory.cc
  9595. * src/PeerStat.h
  9596. * src/RequestGroup.cc
  9597. * src/RequestGroup.h
  9598. * src/SegmentMan.cc
  9599. * src/SegmentMan.h
  9600. * src/option_processing.cc
  9601. * src/prefs.cc
  9602. * src/prefs.h
  9603. * src/usage_text.h
  9604. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9605. Fixed the bug that bulkReceiveResponse() reads all received data as a
  9606. response even if more than one response is in it.
  9607. * src/FtpConnection.cc
  9608. * src/FtpConnection.h
  9609. * test/FtpConnectionTest.cc
  9610. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9611. Merged from stable-0.15
  9612. * m4/libcares.m4
  9613. Use pkg-config
  9614. * m4/sqlite3.m4
  9615. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9616. Removed unnecessary if statement.
  9617. * src/DefaultPieceStorage.cc (initPieceStorage)
  9618. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9619. Added --connect-timeout option to specify connect timeout in seconds.
  9620. This option is in effect for HTTP/FTP/proxy server. The timeout for
  9621. connecting to BitTorrent peer is not controlled by this option.
  9622. * src/AbstractProxyRequestCommand.cc
  9623. * src/FtpNegotiationCommand.cc
  9624. * src/HelpItemFactory.cc
  9625. * src/HttpRequestCommand.cc
  9626. * src/OptionHandlerFactory.cc
  9627. * src/option_processing.cc
  9628. * src/prefs.cc
  9629. * src/prefs.h
  9630. * src/usage_text.h
  9631. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. Added help message for -R option.
  9633. * src/HelpItemFactory.cc
  9634. * src/usage_text.h
  9635. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Added the message that the time is in local time zone.
  9637. * src/RequestGroup.cc
  9638. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9639. Implemented the ability to get timestamp from remote FTP server using
  9640. MDTM command described in RFC3659.
  9641. * src/FtpConnection.cc
  9642. * src/FtpConnection.h
  9643. * src/FtpNegotiationCommand.cc
  9644. * src/FtpNegotiationCommand.h
  9645. * test/FtpConnectionTest.cc
  9646. * test/Makefile.am
  9647. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9648. Implemented the ability to get timestamp from remote HTTP server and
  9649. apply it to local file. To enable this feature, --remote-time option
  9650. is added. No usage text has been written yet.
  9651. If several servers returns difference timestamp, then aria2 uses latest
  9652. one.
  9653. * src/CopyDiskAdaptor.cc
  9654. * src/CopyDiskAdaptor.h
  9655. * src/DirectDiskAdaptor.cc
  9656. * src/DirectDiskAdaptor.h
  9657. * src/DiskAdaptor.h
  9658. * src/File.cc
  9659. * src/File.h
  9660. * src/HttpHeader.cc
  9661. * src/HttpHeader.h
  9662. * src/HttpResponse.cc
  9663. * src/HttpResponse.h
  9664. * src/HttpResponseCommand.cc
  9665. * src/HttpResponseCommand.h
  9666. * src/MultiDiskAdaptor.cc
  9667. * src/MultiDiskAdaptor.h
  9668. * src/OptionHandlerFactory.cc
  9669. * src/RequestGroup.cc
  9670. * src/RequestGroup.h
  9671. * src/RequestGroupMan.cc
  9672. * src/option_processing.cc
  9673. * src/prefs.cc
  9674. * src/prefs.h
  9675. * test/CopyDiskAdaptorTest.cc
  9676. * test/FileTest.cc
  9677. * test/Makefile.am
  9678. * test/Makefile.in
  9679. * test/MultiDiskAdaptorTest.cc
  9680. * test/TestUtil.cc
  9681. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9682. Fixed the bug that DiskWriterEntry is not created when its
  9683. FileEntry.isRequested() is false and it doesn't share a piece with
  9684. other FileEntries that are requested. This bug causes segmentation fault
  9685. in the end.
  9686. * src/MultiDiskAdaptor.cc
  9687. * src/MultiDiskAdaptor.h
  9688. * src/MultiFileAllocationIterator.cc
  9689. * test/MultiDiskAdaptorTest.cc
  9690. * test/MultiFileAllocationIteratorTest.cc
  9691. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9692. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  9693. called if the number of file entries are greater than max open files.
  9694. * src/AbstractSingleDiskAdaptor.cc
  9695. * src/AbstractSingleDiskAdaptor.h
  9696. * src/DiskAdaptor.h
  9697. * src/MultiDiskAdaptor.cc
  9698. * src/MultiDiskAdaptor.h
  9699. * test/MultiDiskAdaptorTest.cc
  9700. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9701. Added a constuctor that receives struct timeval.
  9702. Added operator<.
  9703. * src/TimeA2.cc
  9704. * src/TimeA2.h
  9705. * test/TimeTest.cc
  9706. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9707. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  9708. * src/CookieParser.cc
  9709. * test/CookieParserTest.cc
  9710. * test/HttpResponseTest.cc
  9711. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9712. Implmented the functions to parse date.
  9713. * src/TimeA2.cc
  9714. * src/TimeA2.h
  9715. * test/TimeTest.cc
  9716. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9717. Added "Firefox3 Cookie" feature to FeatureConfig
  9718. * src/FeatureConfig.cc
  9719. * src/FeatureConfig.h
  9720. * test/FeatureConfigTest.cc
  9721. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9722. Bump up version number to 0.16.0b
  9723. * configure.ac
  9724. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9725. Use pkg-config if is is available.
  9726. * m4/openssl.m4
  9727. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9728. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  9729. * src/BtAnnounce.h
  9730. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9731. If an error occurred with a URI, remove identical URI from remaining
  9732. URI list because it is likely that same error occurred in the end and it
  9733. is waste of time.
  9734. * src/AbstractCommand.cc
  9735. * src/RequestGroup.cc
  9736. * src/RequestGroup.h
  9737. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9738. Removed wrong comment.
  9739. * src/DefaultPeerStorage.cc
  9740. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9741. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  9742. Added return value of getpid() to argument of srand() to achieve more
  9743. randomized value.
  9744. * src/SimpleRandomizer.cc
  9745. * src/SimpleRandomizer.h
  9746. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Contact tracker frequently when the number of connections are 0 and
  9748. download is not finished yet.
  9749. * src/ActivePeerConnectionCommand.cc
  9750. * src/BtAnnounce.h
  9751. * src/DefaultBtAnnounce.cc
  9752. * src/DefaultBtAnnounce.h
  9753. * test/MockBtAnnounce.h
  9754. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9755. Moved threshold values to UTPexExtensionMessage.
  9756. * src/DefaultBtInteractive.cc
  9757. * src/Peer.cc
  9758. * src/Peer.h
  9759. * src/UTPexExtensionMessage.cc
  9760. * src/UTPexExtensionMessage.h
  9761. * test/UTPexExtensionMessageTest.cc
  9762. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9763. Added _incoming member to Peer class and made it true if the peer
  9764. initiated connection. Don't add those peer to UTPex message.
  9765. If extended handshake is received, assign _incoming to false.
  9766. * src/DefaultBtInteractive.cc
  9767. * src/HandshakeExtensionMessage.cc
  9768. * src/Peer.cc
  9769. * src/Peer.h
  9770. * src/PeerListenCommand.cc
  9771. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  9773. Encoding Decoder. Removed size threshold for turning off on the fly
  9774. inflation because resulting file may or may not be inflated depending
  9775. on the file size and I think it is not expected by users.
  9776. This change fixes segmentation fault when Metalink file contains gzipped
  9777. file and its filesize is provided.
  9778. * src/HttpResponseCommand.cc
  9779. * src/HttpResponseCommand.h
  9780. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9781. Made Cookie immutable.
  9782. * src/Cookie.cc
  9783. * src/Cookie.h
  9784. * src/CookieParser.cc
  9785. * src/CookieParser.h
  9786. * src/CookieStorage.cc
  9787. * test/CookieParserTest.cc
  9788. * test/CookieStorageTest.cc
  9789. * test/NsCookieParserTest.cc
  9790. * test/Sqlite3MozCookieParserTest.cc
  9791. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9792. Removed CookieBox, CookieBoxFactory.
  9793. * src/CookieBox.cc
  9794. * src/CookieBox.h
  9795. * src/CookieBoxFactory.cc
  9796. * src/CookieBoxFactory.h
  9797. * src/Makefile.am
  9798. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9799. Use CookieStorage class instead of CookieBox class.
  9800. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  9801. * src/AbstractProxyRequestCommand.cc
  9802. * src/CookieStorage.cc
  9803. * src/DownloadEngine.cc
  9804. * src/DownloadEngine.h
  9805. * src/HttpConnection.cc
  9806. * src/HttpConnection.h
  9807. * src/HttpRequest.cc
  9808. * src/HttpRequest.h
  9809. * src/HttpRequestCommand.cc
  9810. * src/HttpResponse.cc
  9811. * src/HttpResponseCommand.cc
  9812. * src/HttpSkipResponseCommand.cc
  9813. * src/Makefile.am
  9814. * src/MultiUrlRequestInfo.cc
  9815. * src/Request.cc
  9816. * src/Request.h
  9817. * src/main.cc
  9818. * test/AllTest.cc
  9819. * test/CookieStorageTest.cc
  9820. * test/CookieTest.cc
  9821. * test/HttpRequestTest.cc
  9822. * test/HttpResponseTest.cc
  9823. * test/Makefile.am
  9824. * test/NsCookieParserTest.cc
  9825. * test/Sqlite3MozCookieParserTest.cc
  9826. * test/nscookietest.txt
  9827. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9828. Updated
  9829. * test/Cookies.sqlite
  9830. * test/nscookietest.txt
  9831. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Added tests for CookieStorage::load()
  9833. * test/CookieStorageTest.cc
  9834. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. Added CookieStorage class which is based on RFC2109 and manages cookies
  9836. more strictly than CookieBox and CookieBoxFactory class.
  9837. * src/CookieStorage.cc
  9838. * src/CookieStorage.h
  9839. * src/Cookie.cc
  9840. * src/Cookie.h
  9841. * test/CookieStorageTest.cc
  9842. * test/CookieTest.cc
  9843. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9844. Fixed the bug that commands are created more than the number of pieces.
  9845. * src/RequestGroup.cc
  9846. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9847. Fixed infinite loop bug in FTP when SIZE command failed.
  9848. * src/FtpNegotiationCommand.cc
  9849. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Removed DirectDiskAdaptorTest.h
  9851. * test/Makefile.am
  9852. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9853. Fixed chunk checksum validation cannot detect trailing garbage data.
  9854. BUG#2074141
  9855. * src/AbstractSingleDiskAdaptor.cc
  9856. * src/AbstractSingleDiskAdaptor.h
  9857. * src/CheckIntegrityEntry.cc
  9858. * src/CheckIntegrityEntry.h
  9859. * src/DiskAdaptor.h
  9860. * src/MultiDiskAdaptor.cc
  9861. * src/MultiDiskAdaptor.h
  9862. * src/RequestGroup.cc
  9863. * test/DirectDiskAdaptorTest.cc
  9864. * test/MultiDiskAdaptorTest.cc
  9865. * test/TestUtil.cc
  9866. * test/TestUtil.h
  9867. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9868. Bump up version number of dht.dat file to 3. In version 3 format, time
  9869. is stored in 64bit, network byte order.
  9870. New build can load old format(version 2) but it saves the file in new
  9871. format. It means once you used new build, your dht.dat becomes
  9872. incompatible with older build.
  9873. * src/DHTRoutingTableDeserializer.cc
  9874. * src/DHTRoutingTableSerializer.cc
  9875. * test/DHTRoutingTableSerializerTest.cc
  9876. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9877. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  9878. * test/Makefile.am
  9879. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Bump up version number of .aria2 control file to 0001.
  9881. New aria2 can still load version 0000 file but it saves the file in
  9882. version 0001 format. It means that new aria2 can resume download
  9883. started by old aria2 but the opposite is not true.
  9884. * src/DefaultBtProgressInfoFile.cc
  9885. * src/DefaultBtProgressInfoFile.h
  9886. * test/DefaultBtProgressInfoFileTest.cc
  9887. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9888. Added ntoh64 and hton64 as inline functions.
  9889. * src/Util.cc
  9890. * test/UtilTest.cc
  9891. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. Added sqlite3 depenency and Firefox3 cookie support.
  9893. * README
  9894. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. State that firefox3 cookie is supported explicitly in the usage.
  9896. * src/usage_text.h
  9897. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9898. Externalized message.
  9899. * src/RequestGroupMan.cc
  9900. * src/message.h
  9901. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9902. Save temporary file first and rename to the destination on success.
  9903. Added test cases.
  9904. * src/RequestGroupMan.cc
  9905. * test/RequestGroupManTest.cc
  9906. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9907. Fixed the bug that the number of connected peer is exceeding the limit
  9908. (55 by default) in seeding mode.
  9909. Multiplied 0.8 to _maxUploadSpeedLimit.
  9910. * src/ActivePeerConnectionCommand.cc
  9911. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9912. Clear table item.
  9913. * src/Dictionary.cc
  9914. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9915. Fixed error handling of lseek.
  9916. * src/AbstractDiskWriter.cc
  9917. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9918. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  9919. style cookie file.
  9920. * src/usage_text.h
  9921. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9922. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  9923. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  9924. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  9925. * src/Util.cc
  9926. * src/Util.h
  9927. * src/CookieParser.cc
  9928. * test/UtilTest.cc
  9929. * test/CookieParserTest.cc
  9930. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Separate the implementation to load old mozilla format of cookie to
  9932. NsCookieParser class.
  9933. * src/CookieBoxFactory.cc
  9934. * src/CookieBoxFactory.h
  9935. * src/NsCookieParser.cc
  9936. * src/NsCookieParser.h
  9937. * test/NsCookieParserTest.cc
  9938. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9939. Made parse() const
  9940. * src/Sqlite3MozCookieParser.cc
  9941. * src/Sqlite3MozCookieParser.h
  9942. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9943. Added firefox3 cookie support based on the patch submitted by
  9944. tizianomueller.
  9945. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  9946. this functionality.
  9947. * configure.ac
  9948. * m4/sqlite3.m4
  9949. * src/CookieBoxFactory.cc
  9950. * src/CookieBoxFactory.h
  9951. * src/Makefile.am
  9952. * src/Makefile.in
  9953. * src/Sqlite3MozCookieParser.cc
  9954. * src/Sqlite3MozCookieParser.h
  9955. * src/main.cc
  9956. * test/CookieBoxFactoryTest.cc
  9957. * test/Makefile.am
  9958. * test/Makefile.in
  9959. * test/Sqlite3MozCookieParserTest.cc
  9960. * test/badcookies.sqlite
  9961. * test/cookies.sqlite
  9962. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9963. Added Danish and Greek translations.
  9964. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  9965. Great thanks to all translators.
  9966. * po/LINGUAS
  9967. * po/el.po
  9968. * po/da.po
  9969. * po/es.po
  9970. * po/ca.po
  9971. * po/nn.po
  9972. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9973. Fixed man page: --follow-bittorrent should be --follow-torrent
  9974. * doc/aria2c.1.txt
  9975. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9976. Fixed: numCommand is less than the value specified in -C option.
  9977. * src/RequestGroup.cc
  9978. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9979. Fixed occasional assertion failure in PieceSegment.
  9980. Calling PieceStorage::getMissingPiece(size_t) was missing after
  9981. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  9982. creation of duplicate segments and one of the segment was finished then
  9983. assertion failure was caused.
  9984. * src/SegmentMan.cc
  9985. * test/SegmentManTest.cc
  9986. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9987. Added options to load/save the server's performance/status to a file
  9988. and the timeout to drop their data.
  9989. --server-stat-of=FILE specifies the file to which performance data
  9990. is saved.
  9991. --server-stat-if=FILE specifies the file to read previously saved
  9992. by --server-stat-of option. Might be used with --uri-selector=feedback.
  9993. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  9994. TIMEOUT is specified in seconds and the default value is 24hours.
  9995. * src/MultiUrlRequestInfo.cc
  9996. * src/OptionHandlerFactory.cc
  9997. * src/RequestGroupMan.cc
  9998. * src/RequestGroupMan.h
  9999. * src/ServerStatMan.cc
  10000. * src/ServerStatMan.h
  10001. * src/option_processing.cc
  10002. * src/prefs.cc
  10003. * src/prefs.h
  10004. * test/ServerStatManTest.cc
  10005. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  10007. * src/ServerStatMan.cc
  10008. * src/ServerStatMan.h
  10009. * test/ServerStatManTest.cc
  10010. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10011. Implemented ServerStatMan::load(...) function and its test case.
  10012. * src/ServerStat.cc
  10013. * src/ServerStat.h
  10014. * src/ServerStatMan.cc
  10015. * test/ServerStatManTest.cc
  10016. * test/ServerStatTest.cc
  10017. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10018. Use time_t instead of int32_t. Use int64_t where milli second is
  10019. expected.
  10020. * src/TimeA2.cc
  10021. * src/TimeA2.h
  10022. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. Implemented ServerStatMan::save(...) function and its test case.
  10024. * src/ServerStat.cc
  10025. * src/ServerStat.h
  10026. * src/ServerStatMan.cc
  10027. * src/ServerStatMan.h
  10028. * test/ServerStatManTest.cc
  10029. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10030. Now aria2 uses name attribute in Metalink as local filename in
  10031. BitTorrent downloads. BUG#2033999
  10032. * src/BtContext.h
  10033. * src/BtDependency.cc
  10034. * src/DefaultBtContext.cc
  10035. * src/DefaultBtContext.h
  10036. * src/SingleFileDownloadContext.cc
  10037. * src/SingleFileDownloadContext.h
  10038. * test/BtDependencyTest.cc
  10039. * test/DefaultBtContextTest.cc
  10040. * test/MockBtContext.h
  10041. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10042. Added AC_C_BIGENDIAN
  10043. * src/configure.ac
  10044. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10045. Limited numCommand less than or equal to the number of piece.
  10046. * src/RequestGroup.cc
  10047. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10048. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  10049. directive.
  10050. * test/DefaultPieceStorageTest.cc
  10051. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. Fixed memory leak in test code
  10053. * test/AnnounceListTest.cc
  10054. * test/DefaultPeerListProcessorTest.cc
  10055. * test/DefaultPeerStorageTest.cc
  10056. * test/MetaFileUtilTest.cc
  10057. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10058. Fixed wrong argument passing to BitfieldMan::isBitSet()
  10059. * src/DefaultPieceStorage.cc
  10060. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. Initialized _directIOAllowed
  10062. * src/MultiDiskAdaptor.cc
  10063. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Fixed memory leak
  10065. * src/GZipDecoder.cc
  10066. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10067. Fixed memory leak
  10068. * src/MetalinkParserStateMachine.cc
  10069. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10070. Fixed memory leak
  10071. * src/Dictionary.cc
  10072. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. Fixed memory leak
  10074. * src/IteratableChunkChecksumValidator.h
  10075. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10076. Fixed unmatched malloc/free.
  10077. * src/IteratableChunkChecksumValidator.cc
  10078. * src/IteratableChecksumValidator.cc
  10079. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10080. Removed max chunk size check. This change fixes BUG#2040169
  10081. * src/ChunkedDecoder.cc
  10082. * src/ChunkedDecoder.h
  10083. * test/ChunkedDecoderTest.cc
  10084. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. Implemented download speed based URI selection algorithm.
  10086. Introduced new option --uri-selector.
  10087. If --uri-selector=feedback is given, aria2 uses download speed observed
  10088. in the previous downloads and chooses fastest server in the URI list.
  10089. Currently at most 10 URIs are considered to introduce randomeness for
  10090. finding better servers. The speed is average download speed in the
  10091. downloads.
  10092. On the other hand, if --uri-selector=inorder is given, which is default,
  10093. URI is tried in order in URI list.
  10094. The usage text for the new option has not been written yet.
  10095. * src/AbstractCommand.cc
  10096. * src/DownloadCommand.cc
  10097. * src/DownloadEngine.cc
  10098. * src/DownloadEngineFactory.cc
  10099. * src/InOrderURISelector.cc
  10100. * src/InOrderURISelector.h
  10101. * src/OptionHandlerFactory.cc
  10102. * src/PeerStat.h
  10103. * src/RequestGroup.cc
  10104. * src/RequestGroup.h
  10105. * src/RequestGroupMan.cc
  10106. * src/RequestGroupMan.h
  10107. * src/SegmentMan.cc
  10108. * src/SegmentMan.h
  10109. * src/ServerStat.cc
  10110. * src/ServerStat.h
  10111. * src/ServerStatMan.cc
  10112. * src/ServerStatMan.h
  10113. * src/ServerStatURISelector.cc
  10114. * src/ServerStatURISelector.h
  10115. * src/URISelector.h
  10116. * src/option_processing.cc
  10117. * src/prefs.cc
  10118. * src/prefs.h
  10119. * test/InOrderURISelectorTest.cc
  10120. * test/RequestGroupManTest.cc
  10121. * test/ServerStatManTest.cc
  10122. * test/ServerStatURISelectorTest.cc
  10123. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10124. * Release 0.15.1+2
  10125. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10126. Bump up version number to 0.15.1+2
  10127. * configure.ac
  10128. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10129. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  10130. * m4/aria2_arg.m4
  10131. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10132. * Release 0.15.1+1
  10133. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10134. Bump up version number to 0.15.1+1
  10135. * configure.ac
  10136. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10137. Fixed the bug that causes segmentaion fault when resuming download
  10138. using metalink without size tag. Reproducible only using HTTP URI.
  10139. * src/HttpResponseCommand.cc
  10140. * src/FtpNegotiationCommand.cc
  10141. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10142. * Release 0.15.1
  10143. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10144. Updated Bulgarian and French translations, thanks to all translators.
  10145. * po/bg.po
  10146. * po/fr.po
  10147. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10148. Bump up version number to 0.15.1
  10149. * configure.ac
  10150. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10151. Avoid repeated call of gettimeofday() when calculating speed.
  10152. * src/SpeedCalc.cc
  10153. * src/SpeedCalc.h
  10154. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. Removed writable check when socket's send buffer is full in BitTorrent
  10156. downloads to lower CPU usage.
  10157. * src/PeerInteractionCommand.cc
  10158. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10159. Fixed broken gzip inflation.
  10160. Turn off segmented downloading if gzip content is smaller than or equal
  10161. to 1MiB and inflate the data on the fly, because HTTP response header
  10162. doesn't contain the length of inflated file we can't determin where
  10163. the chunk of data should be written.
  10164. On the other hand, if gzip content is larger than 1MB, then turn off
  10165. on the fly inflation, because some servers returns "content-type: gzip"
  10166. for *.tgz, *.gz files.
  10167. * src/DownloadCommand.cc
  10168. * src/HttpResponseCommand.cc
  10169. * src/HttpResponseCommand.h
  10170. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10171. Applied tizianomueller's patch to fix compile error.
  10172. * test/BitfieldManTest.cc
  10173. * test/BtRequestMessageTest.cc
  10174. * test/DefaultBtContextTest.cc
  10175. * test/DefaultDiskWriterTest.cc
  10176. * test/DefaultPieceStorageTest.cc
  10177. * test/HttpHeaderProcessorTest.cc
  10178. * test/HttpResponseTest.cc
  10179. * test/Metalink2RequestGroupTest.cc
  10180. * test/MetalinkParserControllerTest.cc
  10181. * test/MetalinkProcessorTest.cc
  10182. * test/PeerSessionResourceTest.cc
  10183. * test/UtilTest.cc
  10184. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10185. * Release 0.15.0
  10186. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10187. Reordered src files in POTFILES.in so that usage text appears first.
  10188. * po/POTFILES.in
  10189. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10190. Bump up version number to 0.15.0
  10191. * configure.ac
  10192. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10193. Added Bulgarian translation.
  10194. Updated Catalan, Spanish, French and Japanese translations.
  10195. Thanks to all translators.
  10196. * po/LINGUAS
  10197. * po/bg.po
  10198. * po/ca.po
  10199. * po/es.po
  10200. * po/fr.po
  10201. * po/ja.po
  10202. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10203. Updated feature list. Added libz for dependency section.
  10204. Added a description about unit testing using CppUnit.
  10205. * README
  10206. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10207. Added a test for libz. Quoted where it is necessary.
  10208. * build_test.sh
  10209. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10210. Added GZip to `Enabled Features' list.
  10211. * src/FeatureConfig.cc
  10212. * src/FeatureConfig.h
  10213. * test/FeatureConfigTest.cc
  10214. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10215. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  10216. the transfer has not yet started.
  10217. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  10218. * src/SegmentMan.cc
  10219. * src/SegmentMan.h
  10220. * test/SegmentManTest.cc
  10221. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10222. Cache last calculated average download/upload speed.
  10223. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  10224. cached value.
  10225. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  10226. * src/PeerStat.h
  10227. * src/SpeedCalc.cc
  10228. * src/SpeedCalc.h
  10229. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10230. Call parseUrl directly.
  10231. * src/Request.cc (resetUrl)
  10232. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10233. Supported absolute/relative path in Location header field.
  10234. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  10235. * src/HttpHeader.cc
  10236. * src/HttpHeader.h
  10237. * src/HttpResponse.cc
  10238. * src/HttpSkipResponseCommand.cc
  10239. * src/Request.cc
  10240. * test/HttpHeaderTest.cc
  10241. * test/HttpResponseTest.cc
  10242. * test/RequestTest.cc
  10243. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10244. Changed help text for --load-cookie option.
  10245. * doc/aria2c.1.txt
  10246. * src/usage_text.h
  10247. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10248. Regenerated test/Makefile.in to remove stale ChangeLog.
  10249. * test/Makefile.in
  10250. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10251. Updated po files.
  10252. * po/aria2c.pot
  10253. * po/*.po
  10254. * po/*.gmo
  10255. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10256. Bump up version number to 0.15.0b
  10257. * configure.ac
  10258. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. Externalize messages.
  10260. * src/RequestGroupMan.cc
  10261. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  10262. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10263. Use File::exists() instead of File::isFile() to allow non-regular file
  10264. such as block special files.
  10265. * src/AbstractDiskWriter.cc
  10266. * src/MultiDiskWriter.cc
  10267. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10268. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  10269. * src/gai_strerror.h
  10270. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10271. Fixed compile error. Thanks gknauf for the patch.
  10272. * src/asctime_r.c
  10273. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10274. Included asctime_r.h from a2time.h.
  10275. * src/a2time.h
  10276. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Added a message "aria2 doesn't verify signature" to log message when
  10278. signature file is saved.
  10279. * src/RequestGroupMan.cc
  10280. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10281. Added the ability to save signature when download is completed if
  10282. signature is available. The filename of signature file is the path to
  10283. download file followed by ".sig". If it already exists, then signature
  10284. will not be saved.
  10285. * src/RequestGroupMan.cc
  10286. * src/Signature.cc
  10287. * test/SignatureTest.cc
  10288. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. Updated the descriptions for --bt-seed-unverified.
  10290. * doc/aria2c.1
  10291. * doc/aria2c.1.html
  10292. * doc/aria2c.1.txt
  10293. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10294. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  10295. that this is not going to verify files using piece hashes.
  10296. * src/HelpItemFactory.cc
  10297. * src/OptionHandlerFactory.cc
  10298. * src/RequestGroup.cc
  10299. * src/option_processing.cc
  10300. * src/prefs.cc
  10301. * src/prefs.h
  10302. * src/usage_text.h
  10303. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10304. Added the ability to retrieve signature from Metalink file.
  10305. A retrieved signature is stored in Signature class and it is held by
  10306. DownloadContext class. Note that aria2 doesn't verify signature.
  10307. * src/DownloadContext.cc
  10308. * src/DownloadContext.h
  10309. * src/Makefile.am
  10310. * src/Makefile.in
  10311. * src/Metalink2RequestGroup.cc
  10312. * src/MetalinkEntry.cc
  10313. * src/MetalinkEntry.h
  10314. * src/MetalinkParserController.cc
  10315. * src/MetalinkParserController.h
  10316. * src/MetalinkParserStateMachine.cc
  10317. * src/MetalinkParserStateMachine.h
  10318. * src/Signature.cc
  10319. * src/Signature.h
  10320. * src/SignatureMetalinkParserState.cc
  10321. * src/SignatureMetalinkParserState.h
  10322. * src/VerificationMetalinkParserState.cc
  10323. * src/VerificationMetalinkParserState.h
  10324. * test/Metalink2RequestGroupTest.cc
  10325. * test/MetalinkParserControllerTest.cc
  10326. * test/MetalinkProcessorTest.cc
  10327. * test/test.xml
  10328. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10329. Close DiskAdaptor after renaming file.
  10330. * src/RequestGroup.cc
  10331. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10332. Corrected indentation
  10333. * src/DefaultBtProgressInfoFile.cc
  10334. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. Moved the calls of std::ios::exceptions() inside of try-catch block
  10336. because if an error occurred in constructor of std::fstream, then
  10337. exception is thrown immediately when std::ios::exceptions() is called
  10338. which results unhandled exception and aria2c aborts.
  10339. * src/DefaultBtProgressInfoFile.cc
  10340. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10341. Added the test for the previous change in DefaultBtContext.cc
  10342. * test/DefaultBtContextTest.cc
  10343. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10344. Fixed the bug that causes infinite loop when the number of pieces are
  10345. fewer than allowed fast set size which is 10 by default.
  10346. * src/DefaultBtContext.cc
  10347. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10348. Updated the descriptions for -j, -s. Added --bt-seed.
  10349. * doc/aria2c.1
  10350. * doc/aria2c.1.html
  10351. * doc/aria2c.1.txt
  10352. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10353. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  10354. aria2 seeds previously downloaded files without validating piece hashs.
  10355. * src/HelpItemFactory.cc
  10356. * src/OptionHandlerFactory.cc
  10357. * src/RequestGroup.cc
  10358. * src/option_processing.cc
  10359. * src/prefs.cc
  10360. * src/prefs.h
  10361. * src/usage_text.h
  10362. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. Updated DESCRIPTION of man page.
  10364. * doc/aria2c.1
  10365. * doc/aria2c.1.html
  10366. * doc/aria2c.1.txt
  10367. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10368. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  10369. Don't define `struct addrinfo' when __sun is defined.
  10370. * src/getaddrinfo.h
  10371. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10372. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  10373. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  10374. second argument is of type `struct _stati64'. Otherwise it is defined as
  10375. `struct stat'.
  10376. * src/AbstractDiskWriter.cc
  10377. * src/File.cc
  10378. * src/File.h
  10379. * src/a2io.h
  10380. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10381. Fixed the compile error in hurd-i386
  10382. See the original bug report:
  10383. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  10384. * src/a2io.h
  10385. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10386. Code cleanup.
  10387. * src/PeerAbstractCommand.cc
  10388. * src/PeerAbstractCommand.h
  10389. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10390. Removed TransferEncoding.
  10391. * src/DownloadCommand.cc
  10392. * src/DownloadCommand.h
  10393. * src/HttpResponseCommand.cc
  10394. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10395. Updated po files.
  10396. * po/aria2c.pot
  10397. * po/*.po
  10398. * po/*.gmo
  10399. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  10401. * src/A2STR.cc
  10402. * src/A2STR.h
  10403. * src/ChunkedDecoder.cc
  10404. * src/ChunkedDecoder.h
  10405. * src/ChunkedEncoding.cc: Removed
  10406. * src/ChunkedEncoding.h: Removed
  10407. * src/DownloadCommand.cc
  10408. * src/DownloadCommand.h
  10409. * src/HttpDownloadCommand.cc
  10410. * src/HttpResponse.cc
  10411. * src/HttpResponse.h
  10412. * src/HttpResponseCommand.cc
  10413. * src/HttpSkipResponseCommand.cc
  10414. * src/HttpSkipResponseCommand.h
  10415. * src/Makefile.am
  10416. * src/TransferEncoding.h: Removed
  10417. * test/ChunkedDecoderTest.cc
  10418. * test/ChunkedEncodingTest.cc: Removed
  10419. * test/HttpResponseTest.cc
  10420. * test/Makefile.am
  10421. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. Use append instead of insert.
  10423. * src/GZipDecoder.cc
  10424. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10425. Updated doc
  10426. * src/Decoder.h
  10427. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10428. Updated usage text for -s option.
  10429. * src/usage_text.h
  10430. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10431. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  10432. * src/Request.cc
  10433. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10434. Cleaned up configure.ac.
  10435. * configure.ac
  10436. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10437. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  10438. AC_ARG_ENABLE.
  10439. * configure.ac
  10440. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10441. Added gzip, deflate decoding support in HTTP using libz. If compiled
  10442. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  10443. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  10444. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  10445. fly and writes decoded data to a local disk.
  10446. * README
  10447. * README.html
  10448. * configure.ac
  10449. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  10450. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  10451. * m4/libz.m4
  10452. * src/Decoder.h
  10453. * src/DownloadCommand.cc
  10454. * src/DownloadCommand.h
  10455. * src/Exception.h
  10456. * src/GZipDecoder.cc
  10457. * src/GZipDecoder.h
  10458. * src/HttpHeader.cc
  10459. * src/HttpHeader.h
  10460. * src/HttpRequest.cc
  10461. * src/HttpRequest.h
  10462. * src/HttpResponse.cc
  10463. * src/HttpResponse.h
  10464. * src/HttpResponseCommand.cc
  10465. * src/Makefile.am
  10466. * test/GZipDecoderTest.cc
  10467. * test/HttpRequestTest.cc
  10468. * test/HttpResponseTest.cc
  10469. * test/Makefile.am
  10470. * test/Makefile.in
  10471. * test/gzip_decode_test.gz
  10472. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10473. Clarified usage of -j option.
  10474. * src/usage_text.h
  10475. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. Disabled getting size from the response of RETR.
  10477. If SIZE command failed, then disable resuming and segmented downloading.
  10478. * src/FtpConnection.cc
  10479. * src/FtpConnection.h
  10480. * src/FtpNegotiationCommand.cc
  10481. * src/FtpNegotiationCommand.h
  10482. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10483. Use digits to find first byte of file size, which makes the intention
  10484. of the code clearer.
  10485. * src/FtpConnection.cc
  10486. Don't call validateTotalLength() when size is 0.
  10487. * src/FtpNegotiationCommand.cc
  10488. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. Updated po files.
  10490. * po/aria2c.pot
  10491. * po/*.gmo
  10492. * po/*.po
  10493. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10494. Clarified usage text for --split option.
  10495. * src/usage_text.h
  10496. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10497. Bump up version number to 0.15.0dev. "dev" means "development"
  10498. version, which means I started the development of the next release!
  10499. * src/configure.ac
  10500. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10501. If FTP server returns negative response with REST raw command and
  10502. requested range is not 0, throw exception. If requested range is 0,
  10503. continue download a file from 0 byte.
  10504. * src/FtpNegotiationCommand.cc
  10505. * src/FtpNegotiationCommand.h
  10506. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10507. Supported FTP server which don't recognize SIZE raw command.
  10508. If SIZE raw command is failed, aria2 will try to get file size
  10509. from the response of RETR raw command. If both attempts are failed,
  10510. then resuming and segmented downloading are disabled.
  10511. * src/FtpConnection.cc
  10512. * src/FtpConnection.h
  10513. * src/FtpNegotiationCommand.cc
  10514. * src/FtpNegotiationCommand.h
  10515. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10516. * Release 0.14.0+1
  10517. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10518. Bump up version number to 0.14.0+1
  10519. * src/configure.ac
  10520. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10521. Fixed the code that refers static member variable from non-static
  10522. context.
  10523. * src/DefaultPeerStorage.cc
  10524. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10525. * Release 0.14.0
  10526. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Added build test script
  10528. * build_test.sh
  10529. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10530. Updated ja.po
  10531. * src/ja.po
  10532. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10533. Bump up version number to 0.14.0
  10534. * src/configure.ac
  10535. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10536. Updated ja.po and fr.po. Great thanks for french translators and
  10537. Sebastien WILLEMIJNS.
  10538. * po/fr.po
  10539. * po/ja.po
  10540. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Added configure option to enable/disable epoll support.
  10542. * configure.ac
  10543. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10544. Updated man page.
  10545. * doc/aria2c.1.txt
  10546. * doc/aria2c.1
  10547. * doc/aria2c.1.html
  10548. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10549. Added missing default value '5' to the usage of --split option.
  10550. * src/HelpItemFactory.cc
  10551. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10552. Filled up pieces based on the number of missing blocks, rather than
  10553. simplay the number of piece * block length.
  10554. * src/BtRequestFactory.h
  10555. * src/DefaultBtInteractive.cc
  10556. * src/DefaultBtInteractive.h
  10557. * src/DefaultBtRequestFactory.cc
  10558. * src/DefaultBtRequestFactory.h
  10559. * src/Piece.cc
  10560. * src/Piece.h
  10561. * test/BitfieldManTest.cc
  10562. * test/DefaultBtRequestFactoryTest.cc
  10563. * test/MockBtRequestFactory.h
  10564. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10565. Made _epEvents a member variable.
  10566. * src/DownloadEngine.cc
  10567. * src/DownloadEngine.h
  10568. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10569. Cancel download if http redirect is bounded more than 20 times.
  10570. * src/AbstractCommand.cc
  10571. * src/HttpSkipResponseCommand.cc
  10572. * src/Request.cc
  10573. * src/Request.h
  10574. * test/RequestTest.cc
  10575. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10576. Fixed unhandled exception(removed keyword `new').
  10577. * src/SocketCore.cc (initEPOLL)
  10578. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10579. Removed visit(const MetaEntry*)
  10580. * src/MetaEntryVisitor.h:
  10581. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  10582. and made them virtual.
  10583. * src/BencodeVisitor.h
  10584. * src/BencodeVisitor.cc
  10585. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10586. Updated po files.
  10587. * po/aria2c.pot
  10588. * po/*.po
  10589. * po/*.gmo
  10590. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. Moved the call setWriteCheckSocket inside the previous clause to reduce
  10592. the number of socket to watch out.
  10593. * src/PeerInteractionCommand.cc
  10594. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. When there is not enough space in disk when writing a chunk of data,
  10596. aria2 now prints the message to the console to warn user and aborts
  10597. its download. Not all downloads are canceled because some downloads
  10598. may use another disk or partition. BUG#1640332
  10599. * src/AbstractDiskWriter.cc
  10600. * src/PeerAbstractCommand.cc
  10601. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  10602. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  10603. setHaltRequested(true) to cancel download.
  10604. * src/PeerInteractionCommand.h
  10605. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10606. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  10607. socket from int to sock_t as sockets are unsigned in Windows.
  10608. For AsyncNameResolver, DownloadEngine, I did additional modification
  10609. for the portion of the code changed according to epoll support.
  10610. I defined sock_t in a2netcompat.h to use sock_t without including
  10611. SocketCore.h.
  10612. * src/AsyncNameResolver.cc
  10613. * src/AsyncNameResolver.h
  10614. * src/DownloadEngine.cc
  10615. * src/DownloadEngine.h
  10616. * src/SocketCore.cc
  10617. * src/SocketCore.h
  10618. * src/a2netcompat.h
  10619. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10620. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  10621. changes in the patch were applied.
  10622. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  10623. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  10624. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  10625. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10626. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  10627. a2io.h and common.h were modified.
  10628. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  10629. MinGW.
  10630. * src/common.h: Changed off_t to 64 bit in MinGW.
  10631. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10632. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  10633. only a2netcompat.h is modified.
  10634. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  10635. directives.
  10636. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10637. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  10638. only gai_strerror.h is modified.
  10639. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  10640. winsock errors in MinGW.
  10641. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  10643. follow sources are applied.
  10644. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  10645. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  10646. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  10647. I included locale.h from Platform.cc.
  10648. * src/main.cc: Moved common setup/teardown code to Platform class.
  10649. * test/AllTest.cc: Use Platform class.
  10650. Set locale to C in AllTest.cc to prevent the messages to be localized.
  10651. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10652. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  10653. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  10654. * test/HttpRequestTest.cc: Casted to off_t where it should.
  10655. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10656. Applied Ross's aria2-0.13.2+1-mingw.patch and
  10657. aria2-0.13.2+1-mingw-2.patch.
  10658. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  10659. systems which don't have termious.h. I moved the directive inside of
  10660. if(isTTY) { ... clause so that line is wiped out without termious.h.
  10661. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  10662. anyway.
  10663. * src/asctime_r.h
  10664. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  10665. I added 2nd argument to the prototype declaration.
  10666. * src/StringFormat.cc: Get rid of vasprintf.
  10667. * src/getaddrinfo.h: Fixed constants.
  10668. * configure.ac: Added the check for asctime_r function.
  10669. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  10670. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10671. Added writable test for Socket when the sending message is in progress.
  10672. Usually the sending message is piece message. Without wriable check,
  10673. upload latency is dropped to more than 1sec.
  10674. * src/PeerInteractionCommand.cc
  10675. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10676. Create only requested files and files which shares a piece with
  10677. requested file in multi-torrent downloads. Directory structures are
  10678. also created in the same rule.
  10679. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  10680. DiskWriterEntry as in the previous implementation.
  10681. * src/MultiDiskWriter.cc
  10682. * src/MultiFileAllocationIterator.cc
  10683. * src/MultiFileAllocationIterator.h
  10684. * test/MultiFileAllocationIteratorTest.cc
  10685. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10686. Commented out -lprofiler
  10687. * src/Makefile.am
  10688. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10689. Bump up version number to 0.14.0b.
  10690. * src/configure.ac
  10691. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10692. Actively establish connection to peers in seeding, when peer cache
  10693. is not full and max upload speed limit is not reached.
  10694. * src/ActivePeerConnectionCommand.cc
  10695. * src/ActivePeerConnectionCommand.h
  10696. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10697. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  10698. to make room more fleshy, recently found peers.
  10699. Peer::_badConditionStartTime is not used anymore. Consider to remove
  10700. it.
  10701. * src/DefaultPeerStorage.cc
  10702. * test/DefaultPeerStorageTest.cc
  10703. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10704. Returns cached data only when the previous receiveHandshake() is called
  10705. with peek = true.
  10706. * src/PeerConnection.cc (receiveHandshake)
  10707. * src/PeerConnection.h (receiveHandshake)
  10708. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10709. Changed default value of -s option from 1 to 5.
  10710. Also max value of -s option is changed from 5 to 16.
  10711. * src/HelpItemFactory.cc
  10712. * src/OptionHandlerFactory.cc
  10713. * src/option_processing.cc
  10714. * src/usage_text.h
  10715. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10716. Changed -s options behavior. Now it means the number of connections
  10717. made simultaneously in each http/ftp download.
  10718. If 1 URL is specified, the behavior is the same with old implementation.
  10719. If -s N is given and more than N URLs are specified, first N URLs are
  10720. used and remaining URLs are used for backup. If less than N URLs are
  10721. specified, some of URLs are used more than once so that totally N
  10722. connections are made simultaneously.
  10723. * src/main.cc
  10724. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10725. Included missing iosfwd or ostream header.
  10726. * src/RequestGroupMan.cc
  10727. * src/TaggedItem.cc
  10728. * src/TaggedItem.h
  10729. * src/Util.cc
  10730. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10731. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  10732. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  10733. * src/HttpConnection.cc: Included missing sstream.
  10734. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10735. Added --bt-max-open-files option.
  10736. * src/DefaultPieceStorage.cc
  10737. * src/HelpItemFactory.cc
  10738. * src/MultiDiskAdaptor.cc
  10739. * src/MultiDiskAdaptor.h
  10740. * src/OptionHandlerFactory.cc
  10741. * src/option_processing.cc
  10742. * src/prefs.cc
  10743. * src/prefs.h
  10744. * src/usage_text.h
  10745. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10746. Fixed the bug that aria2 aborts when a path to a directory is given
  10747. in command-line.
  10748. * src/ProtocolDetector.cc
  10749. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10750. Limited the number files opened in each BitTorrent download. The default
  10751. value is 100. The option to change this value will be added.
  10752. * src/MultiDiskAdaptor.cc
  10753. * src/MultiDiskAdaptor.h
  10754. * src/MultiFileAllocationIterator.cc
  10755. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10756. Fixed the bug that HTTP downloads don't start with old libraries.
  10757. * src/HttpHeaderProcessor.cc
  10758. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10759. Use empty() instead of size() > 0.
  10760. * src/HttpConnection.cc
  10761. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10762. Drop connection if the incoming peer ID is the same with localhost's
  10763. one. The previous implementation drops connection when incoming peer's
  10764. IP address is the same with localhost's one.
  10765. * src/PeerListenCommand.cc
  10766. * src/DefaultBtInteractive.cc
  10767. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10768. Returns cached data without checking whether socket is readable
  10769. if the cache is available.
  10770. * src/PeerConnection.cc (receiveHandshake)
  10771. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. Included stdint.h
  10773. * src/common.h
  10774. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10775. Removed duplicate HAVE_GETTIMEOFDAY
  10776. * src/Makefile.am
  10777. * src/Makefile.in
  10778. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10779. Use interval as a minInterval when minInterval is not supplied.
  10780. * src/DefaultBtAnnounce.cc
  10781. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10782. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  10783. attempt is failed, then 2nd attempt get kicked out more quickly.
  10784. And it is now static const member of DefaultBtAnnounce.
  10785. * src/DefaultBtAnnounce.h
  10786. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10787. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  10788. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  10789. * src/ActivePeerConnectionCommand.cc
  10790. * src/BtConstants.h
  10791. * src/BtRuntime.h
  10792. * src/DHTGetPeersCommand.cc
  10793. * src/DefaultBtAnnounce.cc
  10794. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  10795. BtRuntime::MAX_PEERS.
  10796. * src/DefaultPeerStorage.h
  10797. * src/InitiatorMSEHandshakeCommand.cc
  10798. * src/PeerInitiateConnectionCommand.cc
  10799. * src/PeerInteractionCommand.cc
  10800. * src/PeerReceiveHandshakeCommand.cc
  10801. * src/TrackerWatcherCommand.cc
  10802. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10803. Always Connect to _numNewConnection
  10804. * src/ActivePeerConnectionCommand.cc
  10805. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10806. Made `begin' unsigned int.
  10807. * src/GrowSegment.h
  10808. * src/Piece.cc
  10809. * src/Piece.h
  10810. * src/PiecedSegment.cc
  10811. * src/PiecedSegment.h
  10812. * src/Segment.h
  10813. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10814. Calculate piece hash when data is arrived if the data is arrived in
  10815. order. This removes additional read operation for hash calculation.
  10816. If the data is arrived in out of order, the hash is calucated when the
  10817. piece is completed. This is the same behavior as the old implementation.
  10818. * src/BtPieceMessage.cc
  10819. * src/DefaultBtProgressInfoFile.cc
  10820. * src/DefaultPieceStorage.cc
  10821. * src/DownloadCommand.cc
  10822. * src/DownloadCommand.h
  10823. * src/DownloadEngine.cc
  10824. * src/GrowSegment.cc
  10825. * src/GrowSegment.h
  10826. * src/Piece.cc
  10827. * src/Piece.h
  10828. * src/PiecedSegment.cc
  10829. * src/PiecedSegment.h
  10830. * src/Segment.h
  10831. * test/PieceTest.cc
  10832. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10833. Try to keep the ordering of outgoing piece message.
  10834. * src/DefaultBtMessageDispatcher.cc
  10835. (DefaultBtMessageDispatcher::sendMessages)
  10836. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10837. Fixed busy loop when error/hup epoll events occur.
  10838. * src/AbstractCommand.cc
  10839. * src/PeerAbstractCommand.cc
  10840. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10841. Added --bt-request-peer-speed-limit option, which was a constant
  10842. SLOW_SPEED_THRESHOLD.
  10843. * src/ActivePeerConnectionCommand.cc
  10844. * src/ActivePeerConnectionCommand.h
  10845. * src/BtConstants.h
  10846. * src/HelpItemFactory.cc
  10847. * src/OptionHandlerFactory.cc
  10848. * src/PeerReceiveHandshakeCommand.cc
  10849. * src/option_processing.cc
  10850. * src/prefs.cc
  10851. * src/prefs.h
  10852. * src/usage_text.h
  10853. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10854. Removed repeated call of getTopDirPath(). Instead, call it once and
  10855. cache the result.
  10856. * src/MultiDiskAdaptor.cc
  10857. * src/MultiDiskAdaptor.h
  10858. (mkdir, openFile, initAndOpenFile, openExistingFile)
  10859. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10860. Fixed compile error on debian etch.
  10861. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  10862. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  10863. it is undefined.
  10864. * src/Util.cc (ULLONG_MAX)
  10865. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10866. Added epoll support. Use epoll if it is available. If not, use select.
  10867. When async dns is enabled in compile time, epoll support is enabled
  10868. only when aria2 is built with c-ares. This condition statement is
  10869. defined in a2io.h.
  10870. Currently aria2 supports both c-ares and ares, but ares is maintained
  10871. for quite a while and debian already has c-ares package, ares support
  10872. will be dropped in the future version.
  10873. * configure.ac
  10874. * src/AbstractCommand.cc
  10875. * src/AsyncNameResolver.cc
  10876. * src/AsyncNameResolver.h
  10877. * src/Command.cc
  10878. * src/Command.h
  10879. * src/DownloadEngine.cc
  10880. * src/DownloadEngine.h
  10881. * src/PeerAbstractCommand.cc
  10882. * src/SocketCore.cc
  10883. * src/SocketCore.h
  10884. * src/a2io.h
  10885. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10886. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  10887. directive.
  10888. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10889. Do not do write operation to /dev/null file.
  10890. * src/LogFactory.cc
  10891. * src/SimpleLogger.cc
  10892. Replaced vasprintf with vsnprintf
  10893. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  10894. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10895. * src/BtRequestMessage.cc
  10896. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  10897. for segmentation fault caused by previous commit.
  10898. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10899. Reduced the usage of gettimeofday().
  10900. * src/DefaultBtMessageDispatcher.cc
  10901. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  10902. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10903. * src/RequestSlot.cc
  10904. * src/RequestSlot.h
  10905. (RequestSlot::isTimeout)
  10906. Made RequestSlot have a reference to Piece object to avoid find
  10907. Piece repeatedly.
  10908. * src/DefaultBtMessageDispatcher.cc
  10909. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10910. * src/RequestSlot.cc
  10911. * src/RequestSlot.h
  10912. (RequestSlot::getPiece)
  10913. * test/DefaultBtMessageDispatcherTest.cc
  10914. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10915. * src/TimeA2.cc
  10916. * src/TimeA2.h
  10917. (Time::difference): New function.
  10918. (Time::elapsed): Done optimization.
  10919. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10920. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  10921. directive.
  10922. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10923. * src/option_processing.cc: Added missing `defined' keyword to #if
  10924. directive.
  10925. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10926. Bump up version number to 0.13.2+1
  10927. * src/configure.ac
  10928. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10929. Refactored broken outstanding piece handling.
  10930. * src/DefaultPieceStorage.cc
  10931. * src/DefaultPieceStorage.h
  10932. * src/Piece.cc
  10933. * src/Piece.h
  10934. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10935. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  10936. name collision of static variable and predefined macro.
  10937. * src/BtContext.cc
  10938. * src/BtContext.h
  10939. * src/CookieBoxFactory.cc
  10940. * src/CookieBoxFactory.h
  10941. * src/CookieParser.cc
  10942. * src/CookieParser.h
  10943. * src/DefaultBtContext.cc
  10944. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. * src/RequestGroup.cc
  10946. (RequestGroup::createInitialCommand): Use empty() instead of size().
  10947. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10948. * Release 0.13.2
  10949. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10950. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  10951. * po/fr.po
  10952. * po/ja.po
  10953. * po/aria2c.pot
  10954. * po/*.po
  10955. * po/*.gmo
  10956. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10957. Bump up version number to 0.13.2
  10958. * src/configure.ac
  10959. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10960. Refactord.
  10961. * src/RequestGroupMan.cc
  10962. (removeStoppedGroup)
  10963. (fillRequestGroupFromReserver)
  10964. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10965. Fixed compile error on Ubuntu.
  10966. * src/BtPieceMessage.cc
  10967. * src/MessageDigestHelper.cc
  10968. * src/Util.cc
  10969. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10970. Fixed compile error when configured with --disable-bittorrent
  10971. * test/DownloadHandlerFactoryTest.cc
  10972. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10973. Done make update-po
  10974. * po/aria2c.pot
  10975. * po/*.po
  10976. * po/*.gmo
  10977. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10978. Bump up version number to 0.13.2rc.
  10979. * src/configure.ac
  10980. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10981. Made option name bold. Updated SYNOPSIS to make it more readable.
  10982. * doc/aria2c.1.txt
  10983. * doc/aria2c.1
  10984. * doc/aria2c.1.html
  10985. * src/version_usage.cc
  10986. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10987. Refactored. Use std::string instead of size and char*.
  10988. * Data.cc
  10989. * Data.h
  10990. * test/Data.cc
  10991. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10992. Added trimSelf(). Rewritten trim() to use trimSelf().
  10993. * Util.cc
  10994. * Util.h
  10995. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10996. * src/ChunkChecksum.h (getChecksum): Return const reference.
  10997. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10998. Fixed compile error when configured with --disable-metalink.
  10999. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  11000. * test/FeatureConfigTest.cc
  11001. * test/DownloadHandlerFactoryTest.cc
  11002. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11003. Fixed compile error when configured with --without-gnutls
  11004. --without-openssl
  11005. * src/main.cc
  11006. * test/DefaultBtProgressInfoFileTest.cc
  11007. * test/SegmentManTest.cc
  11008. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11009. Fixed compile error with OpenSSL.
  11010. * src/IteratableChunkChecksumValidator.cc
  11011. * src/LibsslDHKeyExchange.h
  11012. * src/MessageDigestHelper.cc
  11013. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11014. Revert the default value of --max-concurrent-downloads to 5.
  11015. Revert the default value of --metalink-servers to 5.
  11016. Man pages was also updated.
  11017. * src/option_processing.cc
  11018. * doc/aria2c.1.txt
  11019. * doc/aria2c.1.html
  11020. * doc/aria2c.1
  11021. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11022. Returns const reference:
  11023. DownloadContext::getPieceHash, DownloadContext::getName,
  11024. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  11025. BtContext::getInfoHashAsString,
  11026. * src/BtContext.h
  11027. * src/DefaultBtContext.cc
  11028. * src/DefaultBtContext.h
  11029. * src/DownloadContext.h
  11030. * src/SingleFileDownloadContext.h
  11031. * test/MockBtContext.h
  11032. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11033. * src/RequestGroup.h (getDir): Removed.
  11034. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11035. Returns const reference. The internal urlencode function was optimized
  11036. a little bit.
  11037. * src/Request.cc
  11038. * src/Request.h
  11039. * src/HttpRequest.cc
  11040. * src/HttpRequest.h
  11041. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11042. Defined option name and possible values as std::string to reduce
  11043. temporary string object creation in runtime.
  11044. * src/HelpItemFactory.cc
  11045. * src/LogFactory.cc
  11046. * src/Option.cc
  11047. * src/OptionHandlerFactory.cc
  11048. * src/option_processing.cc
  11049. * src/prefs.cc
  11050. * src/prefs.h
  11051. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11052. Return const reference.
  11053. * src/DownloadHandlerConstants.cc
  11054. * src/DownloadHandlerConstants.h
  11055. (getMetalinkExtensions)
  11056. (getMetalinkContentTypes)
  11057. (getBtExtensions)
  11058. (getBtContentTypes)
  11059. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11060. * src/HttpHeader.cc (get): Rewritten.
  11061. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11062. Make HttpHeader::getFirst(...) return const reference.
  11063. * src/HttpHeader.cc
  11064. * src/HttpHeader.h
  11065. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11066. Use Option::getAsBool(...) instead of Option::get(...) and compare
  11067. it with V_TRUE.
  11068. * src/DefaultPieceStorage.cc
  11069. * src/DownloadCommand.cc
  11070. * src/FtpNegotiationCommand.cc
  11071. * src/HttpRequest.cc
  11072. * src/InitiateConnectionCommand.cc
  11073. * src/RequestGroup.cc
  11074. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11075. Made Option::get(...) return const reference of std::string.
  11076. * src/Option.cc
  11077. * src/Option.h
  11078. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11079. Replaced std:copy with insert.
  11080. * src/DefaultBtMessageDispatcher.cc
  11081. * src/DefaultPieceStorage.cc
  11082. * src/DownloadEngineFactory.cc
  11083. * src/RequestGroup.cc
  11084. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11085. Included SocketCore.h to fix compiler warning.
  11086. * src/InitiateConnectionCommand.cc
  11087. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11088. Put piece selection strategy algorithm to RarestPieceSelector class,
  11089. Added a switch to choose whether randomized selection so that unit
  11090. tests emit same results in, possibly, win32.
  11091. * src/DefaultPieceStorage.cc
  11092. * src/DefaultPieceStorage.h
  11093. * src/RarestPieceSelector.cc
  11094. * src/RarestPieceSelector.h
  11095. * test/DefaultPieceStorageTest.cc
  11096. * test/RarestPieceSelectorTest.cc
  11097. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11098. Don't pool connection if HTTP proxy is enabled.
  11099. * src/FtpFinishDownloadCommand.cc
  11100. * src/FtpNegotiationCommand.cc
  11101. * src/HttpSkipResponseCommand.cc
  11102. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11103. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  11104. * src/AbstractCommand.cc
  11105. * src/AbstractCommand.h
  11106. * src/ActivePeerConnectionCommand.cc
  11107. * src/FtpInitiateConnectionCommand.cc
  11108. * src/HttpInitiateConnectionCommand.cc
  11109. * src/InitiateConnectionCommandFactory.cc
  11110. * src/PeerAbstractCommand.cc
  11111. * src/PeerAbstractCommand.h
  11112. * src/PeerInitiateConnectionCommand.cc
  11113. * src/TrackerWatcherCommand.cc
  11114. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11115. Sort RequestSlot in ascending order and manipulate them using
  11116. lower_bound.
  11117. * src/DefaultBtMessageDispatcher.cc
  11118. * src/DefaultBtMessageDispatcher.h
  11119. (getMessageQueue): Added const qualifier.
  11120. (getRequestSlots): Added const qualifier.
  11121. (sendMessages): Use empty() instead of size().
  11122. (doCancelSendingPieceAction): Use HandleEvent object.
  11123. (doAbortOutstandingRequestAction): Rewritten.
  11124. (doChokedAction): Rewritten.
  11125. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  11126. (isOutstandingRequest): Rewritten.
  11127. (getOutstandingRequest): Rewritten.
  11128. (removeOutstandingRequest): Rewritten.
  11129. (addOutstandingRequest): Rewritten.
  11130. * src/RequestSlot.cc
  11131. * src/RequestSlot.h
  11132. (operator=): Rewritten.
  11133. (operator!=): New function.
  11134. (operator<): New function.
  11135. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11136. * src/DefaultBtRequestFactory.cc
  11137. (doChokedAction): Rewritten.
  11138. (removeCompletedPiece): Rewritten.
  11139. (removeTargetPiece): Rewritten.
  11140. (createRequestMessages): Added the debug log.
  11141. (createRequestMessagesOnEndGame: Added the debug log.
  11142. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11143. Added the debug log message.
  11144. * src/BtPieceMessage.cc (doReceivedAction)
  11145. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11146. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  11147. used lower_bound to process them rather than linear search.
  11148. * src/DHTPeerAnnounceStorage.cc
  11149. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11150. Call subtractPieceStats from ~PeerInteractionCommand only when the
  11151. peer has at least one completed piece.
  11152. * src/Peer.cc
  11153. * src/Peer.h
  11154. * src/PeerInteractionCommand.cc
  11155. * src/PeerSessionResource.cc
  11156. * src/PeerSessionResource.h
  11157. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11158. Removed unnecessary sorting
  11159. * src/DefaultPieceStorage (DefaultPieceStorage)
  11160. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11161. Rewritten the portion of the code that mangaes allowed fast indexes.
  11162. * src/PeerSessionResource.cc
  11163. * src/PeerSessionResource.h
  11164. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11165. Removed the invalid string including '\r' from ru.po and
  11166. did make update-po.
  11167. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11168. Added --log-level and --summary-interval to man page.
  11169. * doc/aria2c.1.txt
  11170. * doc/aria2c.1.html
  11171. * doc/aria2c.1
  11172. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Added --log-level option to specify log level. Log messages under
  11174. the specified level are not output. Default value is `debug'.
  11175. * src/HelpItemFactory.cc
  11176. * src/LogFactory.cc
  11177. * src/LogFactory.h
  11178. * src/Logger.h
  11179. * src/OptionHandlerFactory.cc
  11180. * src/SimpleLogger.cc
  11181. * src/SimpleLogger.h
  11182. * src/main.cc
  11183. * src/option_processing.cc
  11184. * src/prefs.h
  11185. * src/usage_text.h
  11186. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11187. Print download progress summary of all parallel downloads in specified
  11188. interval, default 60 secs. While aria2 could download several files
  11189. in parallel (see -j option), it displayed just first download progress,
  11190. and the other downloads are hidden from the users. This new feature
  11191. prints all downloads currently in-progress to the console so that you
  11192. can check the status of all downloads. The interval can be adjusted
  11193. by --summary-interval option.
  11194. The progress readout is now cut so that all fits in the one line of
  11195. console.
  11196. * src/ConsoleStatCalc.cc
  11197. * src/ConsoleStatCalc.h
  11198. * src/HelpItemFactory.cc
  11199. * src/OptionHandlerFactory.cc
  11200. * src/RequestGroupMan.cc
  11201. * src/RequestGroupMan.h
  11202. * src/main.cc
  11203. * src/option_processing.cc
  11204. * src/prefs.h
  11205. * src/usage_text.h
  11206. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11207. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  11208. * src/DownloadEngine.cc (DownloadEngine)
  11209. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11210. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  11211. defined.
  11212. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  11213. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11214. Use erase+lower_bound+insert instead of sort.
  11215. * src/DefaultPieceStorage.cc (addPieceStats)
  11216. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11217. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  11218. * src/A2STR.cc
  11219. * src/A2STR.h
  11220. * src/OptionParser.cc (parse)
  11221. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11222. Defined fake filename `[tracker.announce]' as static const std::string.
  11223. * src/TrackerWatcherCommand.cc (createRequestGroup)
  11224. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11225. Defined default filename `index.html' as static const std::string
  11226. * src/SingleFileDownloadContext.cc
  11227. * src/SingleFileDownloadContext.h
  11228. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11229. Defined "[MEMORY]" as static const std::string.
  11230. * src/MemoryBufferPreDownloadHandler.cc (execute)
  11231. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11232. Defined control file's version number as static const std::string.
  11233. * src/DefaultBtProgressInfoFile.cc
  11234. * src/DefaultBtProgressInfoFile.h
  11235. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11236. Use Request::METHOD_GET
  11237. * src/RequestGroup.cc (createNextCommandWithAdj)
  11238. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11239. Defined "OK", "ERR", "INPR" as static const std::string
  11240. * src/RequestGroupMan.cc (showDownloadResults)
  11241. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11242. Defined default client used in extended handshake as static const
  11243. std::string
  11244. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  11245. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11246. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  11247. * src/HttpConnection.cc (eraseConfidentialInfo)
  11248. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11249. Defined default ftp user and password as static const std::string
  11250. * src/AuthConfigFactory.cc
  11251. * src/AuthConfigFactory.h
  11252. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11253. Defined strings used in netrc as static const std::string
  11254. * src/Netrc.cc
  11255. * src/Netrc.h
  11256. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11257. Defined HTTP status as static const std::string
  11258. * src/AbstractProxyResponseCommand.cc
  11259. * src/HttpHeader.cc
  11260. * src/HttpHeader.h
  11261. * src/HttpResponse.cc
  11262. * src/HttpResponseCommand.cc
  11263. * src/HttpSkipResponseCommand.cc
  11264. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11265. Defined "\r\n", "A", "I" as static const std::string
  11266. * src/A2STR.cc
  11267. * src/A2STR.h
  11268. * src/FtpConnection.cc
  11269. * src/FtpConnection.h
  11270. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11271. Added COLON_C(".") and used it in Request::parseUrl()
  11272. * src/A2STR.cc
  11273. * src/A2STR.h
  11274. * src/Request.cc (parseUrl)
  11275. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11276. Changed the type of padName from `const std::string&' to `const char*'.
  11277. * src/MSEHandshake.cc (verifyPadLength)
  11278. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11279. Defined "sha1" as static const std::string.
  11280. * src/MetalinkParserController.cc
  11281. * src/MetalinkParserController.h
  11282. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11283. Defined message digest algorithm name as static const std::string
  11284. * src/DHTTokenTracker.cc
  11285. * src/DHTUtil.cc
  11286. * src/DefaultBtContext.cc
  11287. * src/MSEHandshake.cc
  11288. * src/MessageDigestHelper.cc
  11289. * src/Peer.cc
  11290. * src/messageDigest.cc
  11291. * src/messageDigest.h
  11292. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11293. Made string literals used in SAX parser static const std::string.
  11294. * src/FileMetalinkParserState.cc
  11295. * src/FileMetalinkParserState.h
  11296. * src/FilesMetalinkParserState.cc
  11297. * src/FilesMetalinkParserState.h
  11298. * src/InitialMetalinkParserState.cc
  11299. * src/InitialMetalinkParserState.h
  11300. * src/MetalinkMetalinkParserState.cc
  11301. * src/MetalinkMetalinkParserState.h
  11302. * src/PiecesMetalinkParserState.cc
  11303. * src/PiecesMetalinkParserState.h
  11304. * src/ResourcesMetalinkParserState.cc
  11305. * src/ResourcesMetalinkParserState.h
  11306. * src/VerificationMetalinkParserState.cc
  11307. * src/VerificationMetalinkParserState.h
  11308. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11309. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  11310. * src/A2STR.cc
  11311. * src/A2STR.h
  11312. * src/File.cc
  11313. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11314. Defined static const std::string IP("ip"), PORT("port") and use them
  11315. instead of string literals.
  11316. * src/DefaultPeerListProcessor.cc
  11317. * src/DefaultPeerListProcessor.h
  11318. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11319. Made string literals for torrent file processing static const
  11320. std::string.
  11321. * src/BtContext.cc
  11322. * src/BtContext.h
  11323. * src/DefaultBtContext.cc
  11324. * src/DefaultBtContext.h
  11325. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11326. Made string literal for tracker response static const std::string
  11327. * src/BtAnnounce.cc
  11328. * src/BtAnnounce.h
  11329. * src/DefaultBtAnnounce.cc
  11330. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11331. Use DHTMessage::T instead of "t".
  11332. * src/DHTMessageTracker.cc (messageArrived)
  11333. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11334. Made keyName static const. Made trimmed charset static const
  11335. std::string.
  11336. * src/Util.cc (getContentDispositionFilename)
  11337. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11338. Made USER_AGENT const. Made "/" static const std::string.
  11339. * src/A2STR.cc
  11340. * src/A2STR.h
  11341. * src/HttpRequest.cc
  11342. * src/HttpRequest.h
  11343. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. Made string listeral to static const std::string:
  11345. "Content-Range", "Content-Length"
  11346. * src/HttpHeader.cc
  11347. * src/HttpHeader.h
  11348. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11349. Made string listeral to static const std::string.
  11350. * src/HttpConnection.cc
  11351. * src/HttpHeader.cc
  11352. * src/HttpHeader.h
  11353. * src/HttpResponse.cc
  11354. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11355. Made string listeral to static const std::string.
  11356. * src/A2STR.cc
  11357. * src/A2STR.h
  11358. * src/SimpleLogger.cc
  11359. * src/SimpleLogger.h
  11360. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11361. Made string literal to static const std::string.
  11362. Rewritten CookieParser::setField.
  11363. * src/A2STR.cc
  11364. * src/A2STR.h
  11365. * src/CookieBoxFactory.cc
  11366. * src/CookieBoxFactory.h
  11367. * src/CookieParser.cc
  11368. * src/CookieParser.h
  11369. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11370. Made string literal to static const std::string
  11371. * src/DHTAbstractMessage.cc
  11372. * src/DHTAnnouncePeerMessage.cc
  11373. * src/DHTAnnouncePeerMessage.h
  11374. * src/DHTAnnouncePeerReplyMessage.cc
  11375. * src/DHTAnnouncePeerReplyMessage.h
  11376. * src/DHTFindNodeMessage.cc
  11377. * src/DHTFindNodeMessage.h
  11378. * src/DHTFindNodeReplyMessage.cc
  11379. * src/DHTFindNodeReplyMessage.h
  11380. * src/DHTGetPeersMessage.cc
  11381. * src/DHTGetPeersMessage.h
  11382. * src/DHTGetPeersReplyMessage.cc
  11383. * src/DHTGetPeersReplyMessage.h
  11384. * src/DHTMessage.cc
  11385. * src/DHTMessage.h
  11386. * src/DHTMessageFactoryImpl.cc
  11387. * src/DHTMessageReceiver.cc
  11388. * src/DHTPingMessage.cc
  11389. * src/DHTPingMessage.h
  11390. * src/DHTPingReplyMessage.cc
  11391. * src/DHTPingReplyMessage.h
  11392. * src/DHTQueryMessage.cc
  11393. * src/DHTQueryMessage.h
  11394. * src/DHTResponseMessage.cc
  11395. * src/DHTResponseMessage.h
  11396. * src/DHTUnknownMessage.cc
  11397. * src/DHTUnknownMessage.h
  11398. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11399. Made string literal to static const std::string
  11400. * src/BtChokeMessage.cc (toString)
  11401. * src/BtHaveAllMessage.cc (toString)
  11402. * src/BtHaveNoneMessage.cc (toString)
  11403. * src/BtInterestedMessage.cc (toString)
  11404. * src/BtNotInterestedMessage.cc (toString)
  11405. * src/BtUnchokeMessage.cc (toString)
  11406. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11407. Replaced "" with static const variable A2STR::NIL.
  11408. Replaced string comparison against "" with std::string::empty().
  11409. Added PROTO_* to Request class and use them as a protocol string
  11410. constant.
  11411. Made "started", "stopped", "completed" static const variable in
  11412. AnnounceList class.
  11413. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11414. Updated translations. Great thanks to translators.
  11415. * po/ca.po
  11416. * po/de.po
  11417. * po/fr.po
  11418. * po/it.po
  11419. * po/ja.po
  11420. * po/ru.po
  11421. * po/zh_CN.po
  11422. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11423. Updated man page; categorized options and fixed typo.
  11424. * doc/aria2c.1.txt
  11425. * doc/aria2c.1.html
  11426. * doc/aria2c.1
  11427. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11428. Removed const ref
  11429. * src/MetalinkEntry.cc (AddProtocolPreference)
  11430. * src/RequestGroup.cc (FindServerHostByHostname)
  11431. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11432. Rewritten Accept-Features handling.
  11433. * src/HttpRequestCommand.cc (createHttpRequest)
  11434. * src/a2functional.h
  11435. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11436. Changed method signature:
  11437. DHTAbstractNodeLookupTask::toEntries
  11438. * src/DHTAbstractNodeLookupTask.cc
  11439. * src/DHTAbstractNodeLookupTask.h
  11440. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11441. Changed method signature:
  11442. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  11443. * src/BtContext.h
  11444. * src/DefaultBtContext.cc
  11445. * src/DefaultBtContext.h
  11446. * src/DefaultBtInteractive.cc
  11447. * test/DefaultBtContextTest.cc
  11448. * test/MockBtContext.h
  11449. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11450. Changed method signature:
  11451. MultiFileAllocationIterator::makeDiskWriterEntries
  11452. * src/MultiFileAllocationIterator.cc
  11453. * src/MultiFileAllocationIterator.h
  11454. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11455. Changed method sinature:
  11456. MetalinkEntry::toFileEntry,
  11457. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  11458. Metalinker::queryEntry
  11459. * src/Metalink2RequestGroup.cc
  11460. * src/MetalinkEntry.cc
  11461. * src/MetalinkEntry.h
  11462. * src/MetalinkHelper.cc
  11463. * src/MetalinkHelper.h
  11464. * src/Metalinker.cc
  11465. * src/Metalinker.h
  11466. * src/main.cc
  11467. * test/MetalinkHelperTest.cc
  11468. * test/MetalinkerTest.cc
  11469. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11470. Changed method sinature:
  11471. RequestGroup::getURIs
  11472. * src/RequestGroup.cc
  11473. * src/RequestGroup.h
  11474. * test/Metalink2RequestGroupTest.cc
  11475. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11476. Changed method signature:
  11477. PeerListProcessor::extractPeer
  11478. * src/CompactPeerListProcessor.cc
  11479. * src/CompactPeerListProcessor.h
  11480. * src/DefaultBtAnnounce.cc
  11481. * src/DefaultPeerListProcessor.cc
  11482. * src/DefaultPeerListProcessor.h
  11483. * src/DelegatingPeerListProcessor.cc
  11484. * src/DelegatingPeerListProcessor.h
  11485. * src/PeerListProcessor.h
  11486. * src/UTPexExtensionMessage.cc
  11487. * test/DefaultPeerListProcessorTest.cc
  11488. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11489. Changed method signature:
  11490. BtRequestFactory::createRequestMessages,
  11491. BtRequestFactory::createRequestMessagesOnEndGame
  11492. * src/BtRequestFactory.h
  11493. * src/DefaultBtInteractive.cc
  11494. * src/DefaultBtRequestFactory.cc
  11495. * src/DefaultBtRequestFactory.h
  11496. * test/DefaultBtRequestFactoryTest.cc
  11497. * test/MockBtRequestFactory.h
  11498. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11499. Changed method signature:
  11500. PieceStorage::getInFlightPieces
  11501. * src/DefaultBtProgressInfoFile.cc
  11502. * src/DefaultPieceStorage.cc
  11503. * src/DefaultPieceStorage.h
  11504. * src/PieceStorage.h
  11505. * src/UnknownLengthPieceStorage.cc
  11506. * src/UnknownLengthPieceStorage.h
  11507. * test/DefaultBtProgressInfoFileTest.cc
  11508. * test/MockPieceStorage.h
  11509. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11510. Changed method signature:
  11511. PostDownloadHandler::getNextRequestGroups
  11512. Metalink2RequestGroup::generate
  11513. RequestGroup::postDownloadProcessing
  11514. * src/BtPostDownloadHandler.cc
  11515. * src/BtPostDownloadHandler.h
  11516. * src/Metalink2RequestGroup.cc
  11517. * src/Metalink2RequestGroup.h
  11518. * src/MetalinkPostDownloadHandler.cc
  11519. * src/MetalinkPostDownloadHandler.h
  11520. * src/PostDownloadHandler.h
  11521. * src/RequestGroup.cc
  11522. * src/RequestGroup.h
  11523. * src/RequestGroupMan.cc
  11524. * src/main.cc
  11525. * test/BtPostDownloadHandlerTest.cc
  11526. * test/Metalink2RequestGroupTest.cc
  11527. * test/MetalinkPostDownloadHandlerTest.cc
  11528. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11529. Rewritten AccRequestGroup
  11530. * src/main.cc
  11531. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11532. Rewritten.
  11533. * src/TaggedItem.cc (toTagString)
  11534. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11535. Rewritten Accept-Features handling.
  11536. * src/HttpRequestCommand.cc (createHttpRequest)
  11537. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11538. Rewritten accept types handling.
  11539. * HttpRequest.cc (createRequest)
  11540. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11541. Rewritten
  11542. * src/FeatureConfig.cc (featureSummary)
  11543. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11544. Changed method signature:
  11545. PeerStorage::getActivePeers
  11546. * src/DHTPeerAnnounceEntry.cc
  11547. * src/DefaultPeerStorage.cc
  11548. * src/DefaultPeerStorage.h
  11549. * src/PeerStorage.h
  11550. * test/DefaultPeerStorageTest.cc
  11551. * test/MockPeerStorage.h
  11552. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11553. Changed method signature:
  11554. DHTPeerAnnounceStorage::getPeers,
  11555. DHTPeerAnnounceEntry::getPeers
  11556. * src/DHTGetPeersMessage.cc
  11557. * src/DHTPeerAnnounceEntry.cc
  11558. * src/DHTPeerAnnounceEntry.h
  11559. * src/DHTPeerAnnounceStorage.cc
  11560. * src/DHTPeerAnnounceStorage.h
  11561. * test/DHTAnnouncePeerMessageTest.cc
  11562. * test/DHTPeerAnnounceEntryTest.cc
  11563. * test/DHTPeerAnnounceStorageTest.cc
  11564. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11565. Changed method signature:
  11566. NameResolver::resolve
  11567. * src/DHTEntryPointNameResolveCommand.cc
  11568. * src/InitiateConnectionCommand.cc
  11569. * src/NameResolver.cc
  11570. * src/NameResolver.h
  11571. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11572. Changed method signature:
  11573. PieceStorage::getAdvertisedPieceIndexes
  11574. * src/DefaultBtInteractive.cc
  11575. * src/DefaultPieceStorage.cc
  11576. * src/DefaultPieceStorage.h
  11577. * src/PieceStorage.h
  11578. * src/UnknownLengthPieceStorage.h
  11579. * test/MockPieceStorage.h
  11580. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11581. Changed method signature:
  11582. SegmentMan::getInFlightSegment
  11583. * src/AbstractCommand.cc
  11584. * src/SegmentMan.cc
  11585. * src/SegmentMan.h
  11586. * test/SegmentManTest.cc
  11587. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11588. Changed method signature:
  11589. DHTAbstractNodeLookupTask::getNodesFromMessage
  11590. * src/DHTAbstractNodeLookupTask.cc
  11591. * src/DHTAbstractNodeLookupTask.h
  11592. * src/DHTNodeLookupTask.cc
  11593. * src/DHTNodeLookupTask.h
  11594. * src/DHTPeerLookupTask.cc
  11595. * src/DHTPeerLookupTask.h
  11596. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11597. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  11598. * src/AbstractCommand.cc
  11599. * src/BtCheckIntegrityEntry.cc
  11600. * src/BtCheckIntegrityEntry.h
  11601. * src/BtFileAllocationEntry.cc
  11602. * src/BtFileAllocationEntry.h
  11603. * src/BtSetup.cc
  11604. * src/BtSetup.h
  11605. * src/CheckIntegrityCommand.cc
  11606. * src/CheckIntegrityEntry.h
  11607. * src/ChecksumCheckIntegrityEntry.cc
  11608. * src/ChecksumCheckIntegrityEntry.h
  11609. * src/DHTSetup.cc
  11610. * src/DHTSetup.h
  11611. * src/DownloadEngine.cc
  11612. * src/FileAllocationCommand.cc
  11613. * src/FileAllocationEntry.h
  11614. * src/RequestGroup.cc
  11615. * src/RequestGroup.h
  11616. * src/RequestGroupMan.cc
  11617. * src/RequestGroupMan.h
  11618. * src/StreamCheckIntegrityEntry.cc
  11619. * src/StreamCheckIntegrityEntry.h
  11620. * src/StreamFileAllocationEntry.cc
  11621. * src/StreamFileAllocationEntry.h
  11622. * src/TrackerWatcherCommand.cc
  11623. * src/a2functional.h
  11624. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11625. Changed method signature:
  11626. BNode::findClosestKNodes, BNode:: enumerateBucket,
  11627. DHTBucket::getGoodNodes,
  11628. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  11629. * src/BNode.cc
  11630. * src/BNode.h
  11631. * src/DHTAbstractNodeLookupTask.cc
  11632. * src/DHTAutoSaveCommand.cc
  11633. * src/DHTBucket.cc
  11634. * src/DHTBucket.h
  11635. * src/DHTBucketRefreshTask.cc
  11636. * src/DHTFindNodeMessage.cc
  11637. * src/DHTGetPeersMessage.cc
  11638. * src/DHTRoutingTable.cc
  11639. * src/DHTRoutingTable.h
  11640. * test/BNodeTest.cc
  11641. * test/DHTBucketTest.cc
  11642. * test/DHTRoutingTableTest.cc
  11643. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11644. In piece selection functions, Pass std::deque<...> by reference rather
  11645. than returning it.
  11646. * src/BitfieldMan.cc
  11647. * src/BitfieldMan.h
  11648. * src/DefaultBtRequestFactory.cc
  11649. * src/DefaultPieceStorage.cc
  11650. * src/Piece.cc
  11651. * src/Piece.h
  11652. * test/BitfieldManTest.cc
  11653. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11654. Implemented rarest piece first piece selection strategy.
  11655. * src/AbstractBtMessage.cc
  11656. * src/AbstractBtMessage.h
  11657. * src/BitfieldMan.cc
  11658. * src/BitfieldMan.h
  11659. * src/BtBitfieldMessage.cc
  11660. * src/BtHaveAllMessage.cc
  11661. * src/BtHaveMessage.cc
  11662. * src/DefaultPieceStorage.cc
  11663. * src/DefaultPieceStorage.h
  11664. * src/PeerInteractionCommand.cc
  11665. * src/PieceStorage.h
  11666. * src/UnknownLengthPieceStorage.h
  11667. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11668. Rewritten readData and writeData.
  11669. * src/MultiDiskAdaptor.cc
  11670. * src/MultiDiskAdaptor.h
  11671. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11672. Move \n out of the message "Usage: ...".
  11673. * src/version_usage.cc
  11674. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11675. Bump up version number to 0.13.2b.
  11676. * configure.ac
  11677. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11678. Added const qualifier to argument Exception& e.
  11679. * src/Logger.h
  11680. * src/SimpleLogger.cc
  11681. * src/SimpleLogger.h
  11682. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11683. Pool connection when CWD, SIZE command fails.
  11684. * src/FtpNegotiationCommand.cc
  11685. * src/FtpNegotiationCommand.h
  11686. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11687. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  11688. * src/HttpResponseCommand.cc
  11689. * src/HttpSkipResponseCommand.cc
  11690. * src/HttpSkipResponseCommand.h
  11691. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11692. Pool connection when a server returns 4xx, 5xx responses.
  11693. * src/HttpNullDownloadCommand.cc
  11694. * src/HttpNullDownloadCommand.h
  11695. * src/HttpResponse.cc
  11696. * src/HttpResponse.h
  11697. * src/HttpResponseCommand.cc
  11698. * src/HttpResponseCommand.h
  11699. * test/HttpResponseTest.cc
  11700. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11701. Print usage when no URL is specifed or bad command-line option is
  11702. specified.
  11703. * src/HelpItemFactory.cc
  11704. * src/help_tags.h
  11705. * src/option_processing.cc
  11706. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11707. Removed duplicate log message.
  11708. * src/AbstractCommand.cc (asyncResolveHostname)
  11709. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11710. Updated man page: --async-dns and --ftp-reuse-connection were added.
  11711. Changed -j option's default value from 5 to 1.
  11712. Added new examples using protocol auto detection feature.
  11713. Removed -T, -M usage where it can be omitted.
  11714. * doc/aria2c.1.txt
  11715. * doc/aria2c.1.html
  11716. * doc/aria2c.1.txt
  11717. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11718. Updated command-line usage text, so that it tells users that they
  11719. can specify any number of torrent files and metalink files in
  11720. command-line.
  11721. * src/version_usage.cc
  11722. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11723. Changed the default value of -j option to 1.
  11724. * src/HelpItemFactory.cc
  11725. * src/option_processing.cc
  11726. * src/usage_text.h
  11727. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11728. Added the ability to reuse connection in FTP and it is enabled by
  11729. default. It can be disabled by --ftp-reuse-connection=false option.
  11730. * src/Command.cc
  11731. * src/DownloadCommand.cc
  11732. * src/FtpDownloadCommand.cc
  11733. * src/FtpDownloadCommand.h
  11734. * src/FtpFinishDownloadCommand.cc
  11735. * src/FtpFinishDownloadCommand.h
  11736. * src/FtpInitiateConnectionCommand.cc
  11737. * src/FtpNegotiationCommand.cc
  11738. * src/FtpNegotiationCommand.h
  11739. * src/HelpItemFactory.cc
  11740. * src/Makefile.am
  11741. * src/Makefile.in
  11742. * src/OptionHandlerFactory.cc
  11743. * src/option_processing.cc
  11744. * src/prefs.h
  11745. * src/usage_text.h
  11746. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11747. Call Command::transitStatus() before calling Command::execute(),
  11748. so that the status change made in execute() is not cleared.
  11749. * src/DownloadEngine.cc
  11750. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11751. Removed forward declaration of SocketCore class.
  11752. * src/HttpDownloadCommand.h
  11753. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11754. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  11755. in InitiateConnectionCommandFactory. They should be set only when
  11756. the protocol is HTTP or HTTPS.
  11757. * src/InitiateConnectionCommandFactory.cc
  11758. * src/RequestGroup.cc
  11759. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11760. Fixed infinite loop in checksum checking.
  11761. * src/IteratableChecksumValidator.cc
  11762. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11763. Set _supportsPersistentConnection to true by default.
  11764. * src/Request.cc
  11765. * src/RequestGroup.cc
  11766. * test/HttpRequestTest.cc
  11767. * test/RequestTest.cc
  11768. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11769. Added timeout to socket pool. The default timeout is 15 seconds,
  11770. which is the same value Apache uses.
  11771. * src/DownloadEngine.cc
  11772. * src/DownloadEngine.h
  11773. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11774. Fixed misuse of multimap::find()
  11775. * src/HttpHeader.cc
  11776. * test/HttpHeaderTest.cc
  11777. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11778. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  11779. option.
  11780. The asynchronous DNS is not capable of IPv6 yet.
  11781. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  11782. least for HTTP download.
  11783. * src/AbstractCommand.cc
  11784. * src/AbstractCommand.h
  11785. * src/AsyncNameResolver.cc
  11786. * src/AsyncNameResolver.h
  11787. * src/DHTEntryPointNameResolveCommand.cc
  11788. * src/DHTEntryPointNameResolveCommand.h
  11789. * src/DownloadEngine.cc
  11790. * src/DownloadEngine.h
  11791. * src/FtpInitiateConnectionCommand.cc
  11792. * src/FtpInitiateConnectionCommand.h
  11793. * src/HelpItemFactory.cc
  11794. * src/HttpInitiateConnectionCommand.cc
  11795. * src/HttpInitiateConnectionCommand.h
  11796. * src/InitiateConnectionCommand.cc
  11797. * src/InitiateConnectionCommand.h
  11798. * src/Makefile.am
  11799. * src/Makefile.in
  11800. * src/NameResolver.cc
  11801. * src/NameResolver.h
  11802. * src/OptionHandlerFactory.cc
  11803. * src/SocketCore.cc
  11804. * src/SocketCore.h
  11805. * src/Util.cc
  11806. * src/Util.h
  11807. * src/option_processing.cc
  11808. * src/prefs.h
  11809. * src/usage_text.h
  11810. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11811. Updated man page: --quiet, --header were added.
  11812. --metalink-servers and --enable-http-keep-alive option were updated.
  11813. * doc/aria2c.1
  11814. * doc/aria2c.1.html
  11815. * doc/aria2c.1.txt
  11816. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11817. Enable HTTP keep-alive by default.
  11818. * src/HelpItemFactory.cc
  11819. * src/option_processing.cc
  11820. * src/usage_text.h
  11821. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11822. Disable http keep-alive if the remote server is not HTTP/1.1.
  11823. * src/HttpConnection.cc
  11824. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11825. Receive content body of 302 response so that the connection can be
  11826. reused later when http keep-alive is enabled.
  11827. * src/HttpNullDownloadCommand.cc
  11828. * src/HttpNullDownloadCommand.h
  11829. * src/HttpResponseCommand.cc
  11830. * src/HttpResponseCommand.h
  11831. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11832. const SharedHandle<Request> -> const SharedHandle<Request>&
  11833. * src/FtpDowndloadCommand.cc
  11834. * src/FtpDowndloadCommand.h
  11835. * src/HttpDownloadCommand.cc
  11836. * src/HttpDownloadCommand.h
  11837. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11838. Fixed the bug that the control file(.aria2 file) is not renamed
  11839. according to tryAutoFileRenaming().
  11840. tryAutoFileRenaming() was rewritten so that if both renamed file and
  11841. its control file exist, use them and continue download.
  11842. The old implementation didn't take into account of control file's
  11843. existence, so basically you couldn't continue download of renamed file.
  11844. * src/BtProgressInfoFile.h
  11845. * src/DefaultBtProgressInfoFile.cc
  11846. * src/DefaultBtProgressInfoFile.h
  11847. * src/NullProgressInfoFile.h
  11848. * src/RequestGroup.cc
  11849. * test/DefaultBtProgressInfoFileTest.cc
  11850. * test/MockBtProgressInfoFile.h
  11851. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11852. Change the default value of --metalink-servers option from `5' to `1'.
  11853. * src/HelpItemFactory.cc
  11854. * src/option_processing.cc
  11855. * src/usage_text.h
  11856. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11857. Reimplemented transparent metalink using Accept request header.
  11858. * src/HttpRequest.cc
  11859. * src/HttpRequest.h
  11860. * src/HttpRequestCommand.cc
  11861. * src/Metalink2RequestGroup.cc
  11862. * src/RequestGroup.cc
  11863. * src/RequestGroup.h
  11864. * test/HttpRequestTest.cc
  11865. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11866. Bump up version number to 0.13.2a
  11867. * configure.ac
  11868. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11869. Updated configure.ac using the result of autoscan.
  11870. * configure.ac
  11871. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11872. Fixed compilation error without gcrypt/openssl.
  11873. * src/DownloadCommand.cc
  11874. * src/DownloadCommand.h
  11875. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11876. Reorganized version information so that it can be displayed in a
  11877. standard terminal screen without scrolling.
  11878. Removed http, ftp from Configuration section, because they are always
  11879. enabled.
  11880. * src/FeatureConfig.cc
  11881. * src/FeatureConfig.h
  11882. * src/main.cc
  11883. * src/messageDigest.cc
  11884. * src/messageDigest.h
  11885. * src/version_usage.cc
  11886. * test/FeatureConfigTest.cc
  11887. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11888. Masked user ID in log.
  11889. * src/FtpConnection.cc (sendUser)
  11890. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11891. Removed query part from filename in HTTP download. The query part means
  11892. the substring after "?" in URL. Firefox seems do the same thing.
  11893. A query part is sometimes very long and not suitable to filename,
  11894. so I think it is better to remove it from filename.
  11895. * src/HttpRequest.cc
  11896. * src/HttpRequest.h
  11897. * src/Request.cc
  11898. * src/Request.h
  11899. * test/HttpRequestTest.cc
  11900. * test/RequestTest.cc
  11901. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11902. Rewritten Exception class. Throw exception object, not its pointer and
  11903. catch by reference, so that remove problematic delete operator for
  11904. catched exception.
  11905. * src/Exception.cc
  11906. * src/Exception.h
  11907. * test/ExceptionTest.cc
  11908. * src/*: All files throwing/catching exception.
  11909. * test/*: All files throwing/catching exception.
  11910. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11911. Now auto protocol detection is enabled without -Z option.
  11912. But there is a important difference between with/without -Z optoin.
  11913. For example, if you type:
  11914. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  11915. then, aria2 interprets there are 3 request groups:
  11916. (1) http://host/file, http://mirror/file <-- multi-source download
  11917. (2) file1.torrent
  11918. (3) file2.metalink
  11919. On the other hand, if you invoke above command with -Z option, it is
  11920. interpreted as 4 request groups:
  11921. (1) http://host/file
  11922. (2) file1.torrent
  11923. (3) file2.metalink
  11924. (4) http://mirror/file
  11925. I think usually user don't mix multi-source URLs and torrent files, so
  11926. there is no big problem here.
  11927. * src/main.cc
  11928. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11929. Fixed the bug that causes segmentaion fault when reading XML containing
  11930. unescapsed character like '&'.
  11931. Also a modification was made which avoids adding unnecessary
  11932. characters stack and appending unused string.
  11933. * src/ExpatMetalinkProcessor.cc
  11934. * src/FileMetalinkParserState.h
  11935. * src/FilesMetalinkParserState.h
  11936. * src/FinMetalinkParserState.h
  11937. * src/HashMetalinkParserState.h
  11938. * src/InitialMetalinkParserState.h
  11939. * src/LanguageMetalinkParserState.h
  11940. * src/MetalinkMetalinkParserState.h
  11941. * src/MetalinkParserState.h
  11942. * src/MetalinkParserStateMachine.cc
  11943. * src/MetalinkParserStateMachine.h
  11944. * src/OSMetalinkParserState.h
  11945. * src/PieceHashMetalinkParserState.h
  11946. * src/PiecesMetalinkParserState.h
  11947. * src/ResourcesMetalinkParserState.h
  11948. * src/SizeMetalinkParserState.h
  11949. * src/SkipTagMetalinkParserState.h
  11950. * src/URLMetalinkParserState.h
  11951. * src/VerificationMetalinkParserState.h
  11952. * src/VersionMetalinkParserState.h
  11953. * src/XML2SAXMetalinkProcessor.cc
  11954. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11955. Added StringFormat class, which internally calls vasprintf.
  11956. operator<< is defined for this class, so it can be used with iostream
  11957. classes nicely. SimpleLogger and following functions are rewritten
  11958. using StringFormat class.
  11959. Besides, now Logger class's methods are non-const, many classes
  11960. that has a const Logger* as a member variable are modified to remove
  11961. const qualifier from the variable declaration.
  11962. * src/HelpItemFactory.cc
  11963. * src/Request.cc
  11964. * src/SimpleLogger.cc
  11965. * src/StringFormat.cc
  11966. * src/StringFormat.h
  11967. * src/Util.cc
  11968. * src/option_processing.cc
  11969. * src/version_usage.cc
  11970. * test/StringFormatTest.cc
  11971. * src/*.h: The classes that has const Logger* as a member variable.
  11972. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11973. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  11974. failed. Also fixed memory link when exception is thrown there.
  11975. * src/main.cc (AccRequestGroup)
  11976. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11977. Added build-in "Accept-Features" support. For now only "metalink" is
  11978. used in this header field.
  11979. This "metalink" value is removed from the list when connecting URLs
  11980. fed by metalink file to avoid loop in "transparent" metlaink.
  11981. * src/HttpRequest.cc
  11982. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  11983. header is also held in this variable. Also renamed setUserHeaders as
  11984. addHeader and it was rewritten to add header not just to clear the old
  11985. value.
  11986. * src/HttpRequestCommand.cc
  11987. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  11988. from "Accept-Features" list.
  11989. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  11990. default.
  11991. * src/RequestGroup.h
  11992. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  11993. * src/a2functional.h: Included <string> because Concat class depends on
  11994. it.
  11995. * test/HttpRequestTest.cc
  11996. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11997. Added comment
  11998. * src/RequestGroup.cc (createNextCommand)
  11999. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12000. Capitalized METHOD_GET and METHOD_HEAD
  12001. * src/Request.cc
  12002. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12003. Added getDownloadResults() method
  12004. * src/RequestGroupMan.cc
  12005. * src/RequestGroupMan.h
  12006. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12007. Fixed the bug that aria2 exits when commands is empty() but
  12008. _routineCommands are not.
  12009. * src/DownloadEngine.cc
  12010. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12011. Use the default value pulled from Option object in HelpItemFactory.
  12012. except options whose defualt value is embedded in a usage text.
  12013. * src/HelpItemFactory.cc
  12014. * src/HelpItemFactory.h
  12015. * src/option_processing.cc
  12016. * src/version_usage.cc
  12017. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12018. Added --quiet option to make aria2 quiet (no console output).
  12019. --quiet option is tagged with ADVANCED.
  12020. * src/HelpItemFactory.cc
  12021. * src/LogFactory.cc
  12022. * src/LogFactory.h
  12023. * src/MultiUrlRequestInfo.cc
  12024. * src/MultiUrlRequestInfo.h
  12025. * src/NullStatCalc.h: New class. This class prints nothing.
  12026. * src/OptionHandlerFactory.cc
  12027. * src/main.cc
  12028. * src/option_processing.cc
  12029. * src/prefs.h
  12030. * src/usage_text.h
  12031. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12032. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  12033. * src/HelpItemFactory.cc (createHelpItems):
  12034. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12035. Fixed compilation error in ExpatMetalinkProcessor.cc
  12036. * src/ExpatMetalinkProcessor.cc
  12037. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12038. Reuse socket if the origin server supports HTTP keep-alive and
  12039. --enable-http-keep-alive or --enable-http-pipelining is given.
  12040. The current implementation doesn't reuse the connections established
  12041. against proxy server.
  12042. * src/AbstractCommand.cc
  12043. * src/DownloadEngine.cc
  12044. * src/DownloadEngine.h
  12045. * src/HttpDownloadCommand.cc
  12046. * src/HttpInitiateConnectionCommand.cc
  12047. * src/HttpResponseCommand.cc
  12048. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12049. Rewritten HTTP keep-alive and pipelining routine.
  12050. * src/AbstractCommand.cc
  12051. * src/HttpConnection.cc
  12052. * src/HttpDownloadCommand.cc
  12053. * src/HttpRequest.cc
  12054. * src/HttpRequestCommand.cc
  12055. * src/HttpResponseCommand.cc
  12056. * src/Request.cc
  12057. * src/Request.h
  12058. * src/RequestGroup.cc
  12059. * test/HttpRequestTest.cc
  12060. * test/HttpResponseTest.cc
  12061. * test/RequestTest.cc
  12062. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12063. Added missing setUserHeaders call
  12064. * src/HttpRequestCommand.cc
  12065. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12066. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  12067. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  12068. waste of time because it is more likey false.
  12069. * src/FileAllocationDispatcherCommand.cc (execute)
  12070. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12071. Now HTTP status and version are a member variable of HttpHeader.
  12072. HTTP status is processed as a string, not integer.
  12073. * src/AbstractProxyResponseCommand.cc
  12074. * src/HttpConnection.cc
  12075. * src/HttpHeader.cc
  12076. * src/HttpHeader.h
  12077. * src/HttpHeaderProcessor.cc
  12078. * src/HttpHeaderProcessor.h
  12079. * src/HttpResponse.cc
  12080. * src/HttpResponse.h
  12081. * test/HttpHeaderProcessorTest.cc
  12082. * test/HttpResponseTest.cc
  12083. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12084. Added --header option. You can specify any number of additional HTTP headers
  12085. like:
  12086. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  12087. Unlike other commad-line option, you can use --header option multiple times.
  12088. * src/HelpItemFactory.cc
  12089. * src/HttpRequest.{cc, h}
  12090. * src/HttpRequestCommand.cc
  12091. * src/OptionHandlerFactory.cc
  12092. * src/OptionHandlerImpl.h
  12093. * src/option_processing.cc
  12094. * src/prefs.h
  12095. * src/usage_text.h
  12096. * test/HttpRequestTest.cc (testUserHeaders)
  12097. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12098. Eliminates the time lag between sequential downloads and commands in
  12099. the same RequestGroup.
  12100. In old implementation, aria2 occasionally waits 1 seconds before
  12101. executing next command or RequestGroup.
  12102. This is really a waste of time, and new implementation eliminates
  12103. this unnecessary time lag.
  12104. * src/AbstractCommand.cc
  12105. * src/AutoSaveCommand.cc
  12106. * src/CheckIntegrityCommand.cc
  12107. * src/Command.{cc, h}
  12108. * src/DownloadEngine.{cc, h}
  12109. * src/DownloadEngineFactory.cc
  12110. * src/FileAllocationCommand.cc
  12111. * src/FileAllocationDispatcherCommand.cc
  12112. * src/FillRequestGroupCommand.cc
  12113. * src/FtpInitiateConnectionCommand.cc
  12114. * src/HaveEraseCommand.cc
  12115. * src/HttpInitiateConnectionCommand.cc
  12116. * src/HttpResponseCommand.cc
  12117. * src/RealtimeCommand.cc
  12118. * src/RequestGroup.cc
  12119. * src/RequestGroupMan.cc
  12120. * src/StreamFileAllocationEntry.cc
  12121. * src/TimeBasedCommand.{cc, h}
  12122. * src/TimedHaltCommand.cc
  12123. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12124. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  12125. keyword explicit and SharedHandle's default constructor initializes
  12126. its internal obj to null, old implementation initializes it using
  12127. obj's default constructor.
  12128. To assign null, write SharedHandle<T> x(...); x.reset();
  12129. TODO: test/SharedHandleTest.cc needs more tests.
  12130. * src/SharedHandle.h
  12131. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12132. Fixed type in man page.
  12133. * doc/aria2c.1.txt
  12134. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12135. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  12136. * src/SimpleLogger.{cc, h}
  12137. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12138. Implemented auto protocol detection.
  12139. Now you can do:
  12140. aria2c -Z http://host/file file1.torrent file2.metalink
  12141. (Note: -Z option is required for auto protcol detection.)
  12142. Then aria2c downloads 3 files simultaneously:
  12143. 1. http://host/file
  12144. 2. file1.torrent <-- read local torrent file
  12145. 3. file2.metalink <-- read local Metalink file.
  12146. Same thing goes with -i option. Assume your uris.txt contans:
  12147. http://host/file
  12148. file1.torrent
  12149. file2.metalink
  12150. Then you can do: aria2c -i uris.txt
  12151. (Note: -Z option is not needed if -i option is given.)
  12152. * src/main.cc
  12153. * src/ProtocolDetector.{cc, h}
  12154. * test/ProtocolDetectorTest.cc
  12155. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12156. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  12157. installed
  12158. * src/ARC4Encryptor.h
  12159. * src/ARC4Decryptor.h
  12160. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12161. Renamed argument from 'errno' to 'err', since errno is confused with
  12162. errno defined in errno.h.
  12163. * src/LibgcryptARC4Decryptor.h
  12164. * src/LibgcryptARC4Context.h
  12165. * src/LibgcryptDHKeyExchange.h
  12166. * src/LibgcryptARC4Encryptor.h
  12167. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12168. Rewritten choking algorithm.
  12169. * src/PeerChokeCommand.{cc, h}
  12170. * src/BtInterestedMessage.cc
  12171. * src/PeerSessionResource.{cc, h}
  12172. * src/DefaultPeerStorage.{cc, h}
  12173. * src/BtNotInterestedMessage.cc
  12174. * src/DefaultBtMessageDispatcher.{cc, h}
  12175. * src/BtMessageDispatcher.h
  12176. * src/Peer.{cc, h}
  12177. * src/BtLeecherStateChoke.{cc, h}
  12178. * src/BtSetup.cc
  12179. * src/BtSeederStateChoke.{cc, h}
  12180. * src/PeerStorage.h
  12181. * test/MockPeerStorage.h
  12182. * test/MockBtMessageDispatcher.h
  12183. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12184. Fixed compilation error on x84-64 platform.
  12185. * src/AuthConfig.cc: Included ostream.
  12186. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12187. Rewritten getBasename() and getDirname(), without standard library
  12188. basename(), dirname().
  12189. * src/File.cc
  12190. * test/FileTest.cc
  12191. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12192. Added Simplified Chinese translation. Also updated the following
  12193. translations: Polish, Dutch, German. Great thanks to all translators.
  12194. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12195. Suppress content-range error when 'Content-Range' response header
  12196. doesn't contains bytes-unit specifier 'bytes'
  12197. * src/HttpHeader.cc (getRange)
  12198. * test/HttpHeaderTest.cc
  12199. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12200. Fixed compilation error with g++-4.3
  12201. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12202. Added missing include files for MinGW
  12203. * test/HttpHeaderProcessorTest.cc
  12204. * test/DHTRoutingTableSerializerTest.cc
  12205. * test/DHTRoutingTableDeserializerTest.cc
  12206. * test/UriListParserTest.cc
  12207. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12208. Now download line is printed nicely with no garbage at the end of
  12209. line. I use ioctl to get the columns of terminal.
  12210. If stdout is redirected to another device, instead of carriage return,
  12211. end of line '\n' character is used. This is feature request#1909659
  12212. * src/ConsoleStatCalc.cc (calculateStat)
  12213. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12214. Included a2time.h
  12215. * src/DHTMessageDispatcher.h
  12216. * src/DHTMessageEntry.h
  12217. * src/DHTReplaceNodeTask.h
  12218. * src/DHTMessageTracker.h
  12219. * src/Util.h
  12220. * src/CookieBox.h
  12221. * src/SocketCore.h
  12222. * src/DefaultBtMessageDispatcher.h
  12223. * src/SocketCore.cc
  12224. * src/Util.cc
  12225. * src/DHTPingTask.h
  12226. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12227. Fixed high memory footprint when DHT is enabled.
  12228. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  12229. queued than it is processed and the queue is getting longer. As a
  12230. consequence, momory usage is increased.
  12231. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  12232. replacement cache in DHTBucket which is described in Kademlia paper.
  12233. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  12234. DHTReplaceNodeTask.
  12235. * src/DHTBucket.{h, cc}
  12236. (cacheNode): New function.
  12237. (getCachedNodes): New function.
  12238. (dropNode): Push back cached node to _nodes.
  12239. * test/DHTBucketTest.cc
  12240. (testCacheNode): New test
  12241. (testDropNode): New test
  12242. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12243. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  12244. the unused 4KB memory when ssl is not used.
  12245. * src/SocketCore.cc
  12246. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12247. Added summary log for peer announce storage.
  12248. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  12249. Removed cast
  12250. * src/DefaultPeerStorage.cc (addPeer)
  12251. Log exception message
  12252. * src/DHTMessageTracker.cc (handleTimeout)
  12253. Fixed casting
  12254. * test/HttpRequestTest.cc
  12255. * test/MetalinkProcessorTest.cc
  12256. * test/PieceTest.cc
  12257. * test/MetalinkEntryTest.cc
  12258. * test/SequenceTest.cc
  12259. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12260. * src/ParameterizedStringParser.cc (createLoop):
  12261. Removed unused variable sstep.
  12262. * src/AlphaNumberDecorator.h (decode): Rewritten.
  12263. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12264. * src/Util.{h, cc}
  12265. (parseUInt): New function.
  12266. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  12267. The actual range is uint32_t.
  12268. * test/UtilTest.cc
  12269. * src/ParameterizedStringParser.cc:
  12270. Use Util::parseUInt() for loop variables.
  12271. * test/ParameterizedStringParserTest.cc
  12272. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  12273. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12274. Rewritten the functions for binding port.
  12275. * src/DHTConnectionImpl.{h, cc}
  12276. * src/PeerListenCommand.{h, cc}
  12277. * src/DHTSetup.cc
  12278. * src/BtSetup.cc
  12279. * test/DHTConnectionImplTest.cc
  12280. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12281. type cleanup for allmost all remaining files.
  12282. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12283. Type clarification
  12284. * src/PeerSessionResource.{h, cc}
  12285. * src/DefaultPieceStorage.{h, cc}
  12286. * src/Peer.{h, cc}
  12287. * test/PeerSessionResourceTest.cc
  12288. Use div function
  12289. * src/BtPieceMessage.cc (erasePieceOnDisk)
  12290. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12291. Type clarification
  12292. * src/DefaultPeerStorage.{h, cc}
  12293. * test/DefaultPeerStorageTest.cc
  12294. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12295. Type clarification: size_t for length or size, uint64_t for file
  12296. length, off_t for file offset.
  12297. * src/DefaultBtProgressInfoFile.cc
  12298. * src/DefaultBtContext.{h, cc}
  12299. * src/DefaultBtInteractive.cc
  12300. * src/DownloadCommand.{h, cc}
  12301. * src/IteratableChunkChecksumValidator.{h, cc}
  12302. * src/SegmentMan.{h, cc}
  12303. * src/SingleFileDownloadContext.{h, cc}
  12304. * src/IteratableChecksumValidator.{h, cc}
  12305. * src/BtContext.h
  12306. * src/IteratableValidator.h
  12307. * src/DownloadContext.h
  12308. * test/SingleFileDownloadContextTest.cc
  12309. * test/DefaultBtContextTest.cc
  12310. * test/MockBtContext.h
  12311. * test/Metalink2RequestGroupTest.cc
  12312. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12313. Type clarification: size_t for length or size, uint64_t for file
  12314. length, off_t for file offset.
  12315. * src/PiecedSegment.cc
  12316. * src/GrowSegment.h
  12317. * src/DefaultBtRequestFactory.h
  12318. * src/DefaultBtProgressInfoFile.cc
  12319. * src/UnknownLengthPieceStorage.h
  12320. * src/DefaultPieceStorage.cc
  12321. * src/UnknownLengthPieceStorage.cc
  12322. * src/DefaultBtInteractive.cc
  12323. * src/GrowSegment.cc
  12324. * src/BitfieldMan.h
  12325. * src/DownloadCommand.cc
  12326. * src/BtRequestFactory.h
  12327. * src/PiecedSegment.h
  12328. * src/DefaultPieceStorage.h
  12329. * src/Piece.cc
  12330. * src/DefaultBtRequestFactory.cc
  12331. * src/PieceStorage.h
  12332. * src/Segment.h
  12333. * src/Piece.h
  12334. * src/BitfieldMan.cc
  12335. * src/Util.cc
  12336. * test/DefaultBtProgressInfoFileTest.cc
  12337. * test/DefaultPieceStorageTest.cc
  12338. * test/MockPieceStorage.h
  12339. * test/BtRequestMessageTest.cc
  12340. * test/DefaultBtMessageDispatcherTest.cc
  12341. * test/BitfieldManTest.cc
  12342. * test/GrowSegmentTest.cc
  12343. * test/PieceTest.cc
  12344. * test/SegmentTest.cc
  12345. * test/SegmentManTest.cc
  12346. * test/DefaultBtRequestFactoryTest.cc
  12347. * test/MockBtRequestFactory.h
  12348. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12349. Fixed compilation error with --disable-nls
  12350. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  12351. in gettext.h causes the problem.
  12352. * src/common.h
  12353. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12354. Removed subPiece related functions.
  12355. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  12356. * src/DefaultPieceStorage.{h, cc}
  12357. * test/PieceTest.cc
  12358. * test/DefaultPieceStorageTest.cc
  12359. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12360. Use unsigned char for data store.
  12361. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12362. Bump up version number to 0.13.0+1
  12363. * configure.ac
  12364. * Release 0.13.0+1
  12365. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12366. Changed inactive connection timeout to 120.
  12367. To accept more mulually interested peers, disconnect peer when there
  12368. is no interest between us after certain time passed.
  12369. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  12370. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12371. Fixed the bug that aria2 only uses first dns server in resolv.conf
  12372. when compiled with async DNS support.
  12373. * src/DownloadEngine.cc
  12374. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  12375. value '10' will be a little bit short when some DNS servers are
  12376. offline and several DNS servers are tried. It should be configured
  12377. by command-line option.
  12378. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12379. Merged Ross's mingw patch.
  12380. * src/DHTRoutingTableDeserializer.cc
  12381. * src/DHTRoutingTableSerializer.cc
  12382. * src/Platform.{h, cc}
  12383. * src/timegm.h
  12384. * src/gettimeofday.h
  12385. * src/getaddrinfo.h
  12386. * src/SocketCore.h
  12387. * src/common.h
  12388. * src/inet_aton.h
  12389. * src/DownloadEngine.h
  12390. * src/gai_strerror.h
  12391. * src/a2netcompat.h
  12392. * configure.ac
  12393. * configure
  12394. * aclocal.m4
  12395. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12396. Included missing iostream.
  12397. * test/AllTest.cc
  12398. * test/BtDependencyTest.cc
  12399. * test/BtExtendedMessageTest.cc
  12400. * test/DHTConnectionImplTest.cc
  12401. * test/DHTMessageFactoryImplTest.cc
  12402. * test/DHTMessageTrackerEntryTest.cc
  12403. * test/DHTNodeTest.cc
  12404. * test/DHTRoutingTableSerializerTest.cc
  12405. * test/DefaultBtAnnounceTest.cc
  12406. * test/DefaultBtContextTest.cc
  12407. * test/DefaultBtMessageFactoryTest.cc
  12408. * test/DefaultExtensionMessageFactoryTest.cc
  12409. * test/HandshakeExtensionMessageTest.cc
  12410. * test/HttpResponseTest.cc
  12411. * test/MetalinkProcessorTest.cc
  12412. * test/MultiFileAllocationIteratorTest.cc
  12413. * test/SocketCoreTest.cc
  12414. * test/UTPexExtensionMessageTest.cc
  12415. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12416. Reorganized includes.
  12417. * src/NameResolver.cc
  12418. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12419. Fixed compilation error without ares/c-ares
  12420. * src/NameResolver.h:
  12421. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12422. Added a test for large file.
  12423. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  12424. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12425. Fixed the bug that file size is ignored if size > INT32_MAX
  12426. * src/SizeMetalinkParserState.cc (endElement):
  12427. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12428. Bump up version number to 0.13.0
  12429. * configure.ac
  12430. * Release 0.13.0
  12431. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12432. Updated Makfefile.am to make 'make dist' work.
  12433. Now packaged filename is aria2c-VERSION.tar.bz2.
  12434. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  12435. Added LICENSE.OpenSSL to dist_noinst_DATA.
  12436. Large file support is now configured by configure script.
  12437. * configure.ac
  12438. Removed unsused source files
  12439. * src/
  12440. * test/
  12441. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  12442. Peer.h and BtContext.h respectively.
  12443. * src/Peer.h
  12444. * src/BtContext.h
  12445. Updated translations.
  12446. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  12447. translations. Great thanks to all translators!;)
  12448. * po/*.{po, gmo}
  12449. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12450. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  12451. statically declared sha1 MessageDigestContext.
  12452. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  12453. initialization of short-lived MessageDigestContext.
  12454. * src/MessageDigestHelper.{h, cc}
  12455. * src/main.cc
  12456. Now DownloadCommand has a reference to MessageDigestContext to avoid
  12457. the initialization of MessageDigestContext every time in validating
  12458. chunk checksum.
  12459. * src/DownloadCommand.{h, cc}
  12460. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12461. Add a file descriptor which connected to fast peer(latency<1500) to
  12462. select(). This change reduced CPU load.
  12463. * src/PeerInteractionCommand.cc
  12464. * src/DefaultBtInteractive.{h, cc}
  12465. * src/BtInteractive.h
  12466. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12467. Fixed the previous insufficient fix for possible busy loop.
  12468. * src/MSEHandshake.cc (identifyHandshakeType)
  12469. Removed unused functions.
  12470. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  12471. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12472. Fixed possible busy loop if first 20 bytes are not received for a few
  12473. minutes.
  12474. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  12475. * src/ReceiverMSEHandshakeCommand.cc
  12476. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12477. Fixed compilation error
  12478. * src/ExpatMetalinkProcessor.cc
  12479. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12480. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  12481. * src/DHTBucket.cc
  12482. Removed unnecessary cast.
  12483. * src/HandshakeExtensionMessage.cc
  12484. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12485. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  12486. is missing.
  12487. * src/OptionHandlerFactory.cc
  12488. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12489. Fixed the bug that HAVE message is not sent for a piece they are
  12490. downloaded fom http/ftp server before any BitTorrent handshake is done
  12491. with peers.
  12492. * src/DefaultBtInteractive.cc
  12493. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12494. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  12495. * src/Makefile.am
  12496. * src/Makefile.in
  12497. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12498. Updated README. Added html version of README and man page.
  12499. * README
  12500. * README.html
  12501. * readme2html: Shell script to generate README.html from README using
  12502. asciidoc.
  12503. * doc/aria2c.1.html
  12504. * doc/makeman: Added the line to generate aria2c.1.html
  12505. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12506. Fixed offset calculation.
  12507. * src/LibgcryptDHKeyExchange.h (computeSecret)
  12508. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12509. Rewritten itos and uitos using template. llitos and ullitos are
  12510. replaced with itos and uitos respectively.
  12511. * src/Util.{h, cc}
  12512. * test/UtilTest.cc
  12513. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12514. Fixed the bug that DH key exchange sometimes fails due to bad handling
  12515. of the number of bytes required for storing public key and shared
  12516. secret.
  12517. * src/LibgcryptDHKeyExchange.h
  12518. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  12519. * src/MSEHandshake.cc
  12520. * test/DHKeyExchangeTest.cc
  12521. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12522. Removed since they are not used.
  12523. * src/Xml2MetalinkProcessor.{h, cc}
  12524. * src/Socket.cc
  12525. * src/SegmentSplitter.{h, cc}
  12526. * test/Xml2MetalinkProcessorTest.cc
  12527. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12528. Fixed the bug that prevents aria2 from stopping other than by pressing
  12529. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  12530. option. aria2 doesn't stop even after --seed-time is satisfied and
  12531. continues to output blank lines in the console.
  12532. * src/ReceiverMSEHandshakeCommand.cc
  12533. * src/PeerReceiveHandshakeCommand.cc
  12534. * src/PeerListenCommand.cc
  12535. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12536. Bump up version number to 0.13.0rc
  12537. * configure.ac
  12538. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12539. Updated man page and some usage text.
  12540. * doc/aria2c.1.txt
  12541. * src/usage_text.h
  12542. * po/*.{po, gmo}
  12543. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12544. Updated translations. Added Finnish and Hebrew translations.
  12545. Great thanks to all translators!
  12546. * po/*.{po, gmo}
  12547. * po/LINGUAS
  12548. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12549. Log more detailed information about each message.
  12550. * src/DHTQueryMessage.{h, cc}
  12551. * src/DHTGetPeersMessage.{h, cc}
  12552. * src/DHTFindNodeReplyMessage.{h, cc}
  12553. * src/DHTGetPeersReplyMessage.{h, cc}
  12554. * src/DHTAnnouncePeerMessage.{h, cc}
  12555. * src/DHTResponseMessage.{h, cc}
  12556. * src/DHTFindNodeMessage.{h, cc}
  12557. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12558. Use constants defined in prefs.h
  12559. * src/option_processing.cc
  12560. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12561. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  12562. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12563. Make room for future enchancements for IPv6 addresses.
  12564. Bump up version number of dht.dat file format to 2.
  12565. Not compatible with previous version.
  12566. * src/DHTRoutingTableSerializer.cc
  12567. * src/DHTRoutingTableDeserializer.cc
  12568. * test/DHTRoutingTableSerializerTest.cc
  12569. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12570. Added handling for the return values from
  12571. PeerMessageUtil::createcompact().
  12572. * src/DefaultBtContext.cc (computeFastSet):
  12573. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12574. Fixed abort when peer's ip address is IPv4-mapped address.
  12575. * src/DefaultBtContext.cc (computeFastSet)
  12576. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  12577. cannot handle IPv4-mapped addresses.
  12578. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  12579. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12580. Proper return value handling for OpenSSL functions.
  12581. * src/LibsslDHKeyExchange.h
  12582. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12583. Random bytes generation using libgcrypt and OpenSSL.
  12584. * src/DHTUtil.{h, cc}
  12585. * test/DHTUtilTest.cc
  12586. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12587. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  12588. received.
  12589. * src/DHTMessageReceiver.cc (receiveMessage)
  12590. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12591. Fixed the bug that a return code is always 0. BUG#1897704
  12592. If error occurred during the download or there exist unfinished
  12593. downloads, aria2 returns with code 1.
  12594. * src/RequestGroupMan.{h, cc}
  12595. * src/MultiUrlRequestInfo.{h, cc}
  12596. * src/main.cc
  12597. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12598. IPv6 support for SocketCore class.
  12599. TODO: In SocketCore::establishConnection(), this is insufficient to
  12600. determin the failure of connect() here because the socket is
  12601. non-blocking state. The next addresses should be tried after select().
  12602. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  12603. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  12604. instead which address family independent.
  12605. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  12606. information in a compact peer format which is for IPv4 only.
  12607. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  12608. this is a spec of BitTorrent protocol.
  12609. * src/SocketCore.{h, cc}
  12610. * src/PeerMessageUtil.cc
  12611. * test/SocketCoreTest.cc
  12612. * test/PeerMessageUtilTest.cc
  12613. * test/DHTConnectionImplTest.cc
  12614. Handle IPv4-mapped addresses.
  12615. * src/DHTNode.cc: Now identity is determined by node id.
  12616. * src/DHTMessageTrackerEntry.cc
  12617. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  12618. should handle it.
  12619. * src/DHTRoutingTableDeserializer.cc
  12620. * src/DHTMessageFactoryImpl.cc
  12621. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12622. Change the unit of --stop option from a minute to a second.
  12623. * src/usage_text.h
  12624. * src/DownloadEngineFactory.cc
  12625. * src/OptionHandlerFactory.cc
  12626. * src/message.h
  12627. * src/TimedHaltCommand.cc
  12628. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12629. Make listening socket non-block mode.
  12630. * src/FtpConnection.cc
  12631. * src/FtpNegotiationCommand.{h, cc}
  12632. * src/PeerListenCommand.cc
  12633. Fixed the bug that cause slow ftp negotiation.
  12634. * src/FtpNegotiationCommand.{h, cc}
  12635. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12636. Added basic tag to --enable-dht, --dht-listen-port option.
  12637. * src/HelpItemFactory.cc (createHelpItems)
  12638. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12639. Updated text.
  12640. * src/usage_text.h
  12641. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12642. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  12643. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12644. Determin _threadtholdSpeed in each constructor for
  12645. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  12646. * src/ActivePeerConnectionCommand.{h, cc}
  12647. * src/PeerReceiveHandshakeCommand.{h, cc}
  12648. * src/BtSetup.cc
  12649. * src/BtConstants.h
  12650. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12651. Added --bt-min-crypto-level and --bt-require-crypto options.
  12652. * src/OptionHandlerFactory.cc
  12653. * src/MSEHandshake.cc
  12654. * src/HelpItemFactory.cc
  12655. * src/option_processing.cc
  12656. * src/ReceiverMSEHandshakeCommand.cc
  12657. * src/prefs.h
  12658. * src/DefaultBtAnnounce.cc
  12659. * src/InitiatorMSEHandshakeCommand.cc
  12660. * src/usage_text.h
  12661. * test/MSEHandshakeTest.cc
  12662. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12663. Bump version number to 0.13.0b
  12664. * configure.ac
  12665. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12666. Updated doc.
  12667. * src/MessageDigestHelper.h:
  12668. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12669. Use raw message digest as a token instead of its hexadecimal
  12670. representation.
  12671. * src/DHTTokenTracker.cc (generateToken)
  12672. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12673. Added Message Stream Encryption(MSE) support.
  12674. Currently, aria2 accepts incoming connections with Obfuscation Header
  12675. and legacy BitTorrent Header and establishes connections with
  12676. Obfuscation Header first and if failed then retry with legacy
  12677. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  12678. choose ARC4. The new option to change the default behavior is planned.
  12679. For tracker extension, "supportcrypto=1" is added statically.
  12680. * src/PeerInitiateConnectionCommand.{h, cc}
  12681. * src/PeerConnection.{h, cc}
  12682. * src/HandleRegistry.h
  12683. * src/SocketCore.h
  12684. * src/PeerReceiveHandshakeCommand.{h, cc}
  12685. * src/BtRegistry.{h, cc}
  12686. * src/PeerListenCommand.cc
  12687. * src/InitiatorMSEHandshakeCommand.{h, cc}
  12688. * src/ReceiverMSEHandshakeCommand.{h, cc}
  12689. * src/MSEHandshake.{h, cc}
  12690. * src/ARC4Encryptor.h
  12691. * src/ARC4Decryptor.h
  12692. * src/LibgcryptARC4Encryptor.h
  12693. * src/LibgcryptARC4Decryptor.h
  12694. * src/LibgcryptARC4Context.h
  12695. * src/LibsslARC4Encryptor.h
  12696. * src/LibsslARC4Decryptor.h
  12697. * src/LibsslARC4Context.h
  12698. * src/DHKeyExchange.h
  12699. * src/LibgcryptDHKeyExchange.h
  12700. * src/LibsslDHKeyExchange.h
  12701. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  12702. * test/DefaultBtAnnounceTest.cc
  12703. * test/ARC4Test.cc
  12704. * test/DHKeyExchangeTest.cc
  12705. Removed prepareForRetry() because it is not used.
  12706. * src/PeerAbstractCommand.{h, cc}
  12707. * src/PeerInteractionCommand.{h, cc}
  12708. * src/PeerInitiateConnectionCommand.{h, cc}
  12709. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12710. Added the ability to load nodes from torrent file. These nodes are
  12711. added to the routing table when downloading that torrent.
  12712. * src/BtContext.h
  12713. * src/DefaultBtContext.{h, cc}
  12714. * src/DHTSetup.cc
  12715. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  12716. hostname and port pair, and resolves all of them.
  12717. * src/NameResolver.{h, cc}: Added reset().
  12718. * src/RequestGroup.cc
  12719. * test/DefaultBtContextTest.cc
  12720. * test/MockBtContext.h
  12721. Removed assert() from DefaultBtContext and throw exception instead.
  12722. * src/DefaultBtContext.cc
  12723. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12724. Fixed segmentation fault bug when exiting if dht is disabled.
  12725. * src/RequestGroup.cc
  12726. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12727. Fixed typo in log message and define the message in message.h
  12728. * src/TimedHaltCommand.cc
  12729. * src/message.h
  12730. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12731. Included RecoverableException.h to fix compilation error.
  12732. * test/DHTMessageFactoryImplTest.cc
  12733. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12734. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  12735. * test/DHTPingMessageTest.cc
  12736. * test/DHTGetPeersMessageTest.cc
  12737. * test/DHTFindNodeMessageTest.cc
  12738. * test/DHTAnnouncePeerMessageTest.cc
  12739. * test/MockDHTMessage.h
  12740. * test/MockDHTMessageFactory.h
  12741. * test/MockDHTMessageDispatcher.h: New class.
  12742. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12743. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  12744. virtual.
  12745. * src/DHTMessageDispatcher.h
  12746. * src/DHTMessageDispatcherImpl.{h, cc}
  12747. * src/DHTSetup.cc
  12748. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12749. Adding handling of DHT error message. Just log error message and
  12750. throw exception.
  12751. * src/DHTMessageFactoryImpl.cc
  12752. * test/DHTMessageFactoryImplTest.cc
  12753. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12754. Added handling of dynamic cast failure.
  12755. * src/DHTNodeLookupTask.cc
  12756. * src/DHTPeerLookupTask.cc
  12757. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12758. Added the ability to stop aria2 itself when given time has passed
  12759. from start. Use --stop option to specify time in minutes.
  12760. When 0 is given, this feature is disabled.
  12761. * src/OptionHandlerFactory.cc
  12762. * src/TimeBasedCommand.h: Make _interval protected scope.
  12763. * src/HelpItemFactory.cc
  12764. * src/option_processing.cc
  12765. * src/prefs.h
  12766. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  12767. before calling RequestGroupMan::fillRequestGroupFromReserver().
  12768. Without this modification, the result list shows "ERR" when aria2 is
  12769. stopped by --stop option. It should be "INPR".
  12770. * src/DownloadEngine.{h, cc}
  12771. * src/DownloadEngineFactory.cc
  12772. * src/usage_text.h
  12773. * src/TimedHaltCommand.{h, cc}: New class.
  12774. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12775. Bootstrap through node added by port message.
  12776. Currently bootstrap is executed if the number of buckets in routing
  12777. table is 1.
  12778. * src/BtPortMessage.{h, cc}
  12779. * src/DefaultBtMessageFactory.{h, cc}
  12780. * src/PeerInteractionCommand.cc
  12781. * test/BtPortMessageTest.cc
  12782. * test/MockDHTTask.h
  12783. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12784. Extract the Peer class's member variables, which are only needed after
  12785. PeerInteractionCommand, into PeerSessionResource class.
  12786. This class is instantiated in PeerInteractionCommand class's ctor and
  12787. released in its dtor.
  12788. This will make Peer class lightweight and uses less memory for peers
  12789. which are not connected and wait in the queue.
  12790. * src/PeerChokeCommand.cc
  12791. * src/PeerSessionResource.{h, cc}
  12792. * src/PeerInteractionCommand.cc
  12793. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  12794. * src/DefaultBtInteractive.cc
  12795. * src/BtPieceMessage.cc
  12796. * src/BtInterestedMessage.cc
  12797. * src/BtUnchokeMessage.cc
  12798. * src/DefaultPeerStorage.{h, cc}
  12799. * src/PeerInitiateConnectionCommand.cc
  12800. * src/ActivePeerConnectionCommand.cc
  12801. * src/BtNotInterestedMessage.cc
  12802. * src/DefaultBtMessageDispatcher.cc
  12803. * src/BtChokeMessage.cc
  12804. * src/BtRequestMessage.cc
  12805. * src/Peer.{h, cc}
  12806. * src/BtRegistry.h
  12807. * src/TrackerWatcherCommand.cc
  12808. * src/PeerReceiveHandshakeCommand.cc
  12809. * test/BtExtendedMessageTest.cc
  12810. * test/BtAllowedFastMessageTest.cc
  12811. * test/BtCancelMessageTest.cc
  12812. * test/DefaultPieceStorageTest.cc
  12813. * test/BtBitfieldMessageTest.cc
  12814. * test/BtHaveMessageTest.cc
  12815. * test/BtNotInterestedMessageTest.cc
  12816. * test/BtRequestMessageTest.cc
  12817. * test/PeerSessionResourceTest.cc
  12818. * test/DefaultBtMessageDispatcherTest.cc
  12819. * test/PeerTest.cc
  12820. * test/BtInterestedMessageTest.cc
  12821. * test/BtRejectMessageTest.cc
  12822. * test/BtChokeMessageTest.cc
  12823. * test/DefaultPeerStorageTest.cc
  12824. * test/BtHaveNoneMessageTest.cc
  12825. * test/BtHaveAllMessageTest.cc
  12826. * test/DefaultExtensionMessageFactoryTest.cc
  12827. * test/BtUnchokeMessageTest.cc
  12828. * test/DefaultBtMessageFactoryTest.cc
  12829. * test/HandshakeExtensionMessageTest.cc
  12830. * test/UTPexExtensionMessageTest.cc
  12831. * test/DefaultBtRequestFactoryTest.cc
  12832. * test/BtPieceMessageTest.cc
  12833. Removed typedef PeerStats.
  12834. * src/PeerStat.h
  12835. * src/SegmentMan.cc
  12836. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12837. Added std namespace to copy, remove_copy, back_inserter,
  12838. front_inserter.
  12839. * src/RequestGroupMan.cc
  12840. * src/DefaultPieceStorage.cc
  12841. * src/StreamFileAllocationEntry.cc
  12842. * src/BtFileAllocationEntry.cc
  12843. * src/RequestGroup.cc
  12844. * src/MetalinkEntry.cc
  12845. * src/DelegatingPeerListProcessor.cc
  12846. * src/DefaultBtRequestFactory.cc
  12847. * src/DefaultBtMessageDispatcher.cc
  12848. * src/version_usage.cc: Included <algorithm>
  12849. * src/main.cc
  12850. * src/MetalinkParserController.cc
  12851. * src/DefaultBtContext.cc
  12852. * src/DownloadEngineFactory.cc
  12853. * src/a2algo.h
  12854. Removed.
  12855. * test/StreamUriListParserTest.cc
  12856. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12857. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  12858. ActivePeerConnectionCommand when it is given and
  12859. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  12860. * src/ActivePeerConnectionCommand.{h, cc}
  12861. * src/BtSetup.cc
  12862. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12863. Only add socket to DownloadEngine's select routine when peer or
  12864. localhost is unchoked and interested. This lowers CPU usage a
  12865. little bit.
  12866. * src/PeerInteractionCommand.cc
  12867. * src/PeerAbstractCommand.{h, cc}
  12868. * src/BtInteractive.h
  12869. * src/DefaultBtInteractive.{h, cc}
  12870. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12871. Revert previous change because get_peers message is needed for
  12872. announce_peer anyway.
  12873. * src/DHTGetPeersCommand.cc
  12874. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12875. Request peers thought DHT only when download hasn't finished.
  12876. * src/DHTGetPeersCommand.cc
  12877. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12878. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  12879. * src/DHTBucketRefreshTask.{h, cc}
  12880. * src/DHTSetup.cc
  12881. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12882. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  12883. standard classes.
  12884. Included string.h where mem* function are used.
  12885. Added namespace aria2.
  12886. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12887. Create directory before saving DHT routing table.
  12888. Now ios::failure is now handled properly.
  12889. * src/DHTAutoSaveCommand.cc
  12890. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12891. Removed unnecessary cerr.
  12892. * src/DownloadEngine.cc
  12893. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12894. Catch exception inside DHTMessageReceiver::receiveMessage().
  12895. Log unknown message.
  12896. * src/DHTMessageReceiver.{h, cc}
  12897. * src/DHTMessageFactory.h
  12898. * src/DHTMessageFactoryImpl.{h, cc}
  12899. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  12900. * src/DHTInteractionCommand.cc
  12901. * src/DHTUnknownMessage.{h, cc}
  12902. * test/DHTUnknownMessageTest.cc
  12903. * test/MockDHTMessageFactory.h
  12904. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12905. Commented out ip address comparison because a host can have multiple
  12906. ip addresses and it is hard to predict the hostname is resolved into
  12907. which one.
  12908. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  12909. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12910. * po/Makefile.in: Removed since this is generated by configure.
  12911. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12912. Fixed compiler warning about redefinition of SIZE_MAX.
  12913. Use common.h instead of config.h directly here.
  12914. * src/Platform.{h, cc}
  12915. The check of ENABLE_NLS is made in gettext.h, so it is not required
  12916. here.
  12917. * common.h
  12918. 2008-02-02 gettextize <[email protected]>
  12919. Updated gettext related files.
  12920. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  12921. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  12922. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12923. Added DHT functionality, compatible with mainline.
  12924. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  12925. You may need to specify entry point to DHT network using
  12926. --dht-entry-point. DHT uses UDP port to listen incoming message.
  12927. Use --dht-listen-port to specify port number. Make sure that your
  12928. firewall configuration can pass through UDP traffic to the port.
  12929. The routing table is saved in $HOME/.aria2/dht.dat.
  12930. * src/DHT*
  12931. * src/BNode.{h, cc}
  12932. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  12933. particular torrent.
  12934. * src/Data.cc: Rewritten ctor.
  12935. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  12936. --dht-entry-point.
  12937. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  12938. * src/RequestGroup.cc: Initialize DHT functionality. When download
  12939. ends, remove BtContext from DHTPeerAnnounceStorage.
  12940. * src/BtPortMessage.{h, cc}: Rewritten.
  12941. * src/message.h
  12942. * src/OptionHandlerImpl.cc
  12943. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  12944. --dht-entry-point.
  12945. * src/Dictionary.{h, cc} (remove): New function.
  12946. * src/prefs.h
  12947. * src/DefaultBtMessageFactory.h
  12948. * src/BtHandshakeMessage.cc
  12949. * src/ActivePeerConnectionCommand.cc
  12950. * src/SocketCore.{h, cc}: Added datagram socket support.
  12951. * src/DefaultBtMessageFactory.cc
  12952. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  12953. Create DHT commands.
  12954. * src/BtMessageFactory.h
  12955. * src/PeerMessageUtil.{h, cc}
  12956. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12957. Fixed the bug that log file is not written when configuration file doesn't exist.
  12958. This is caused by using Logger class before LogFactory is not configured.
  12959. BUG #1875079
  12960. * src/option_processing.cc
  12961. Warning message "configuration doesn't exist" is only printed when --conf is
  12962. given.
  12963. * src/option_processing.cc
  12964. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12965. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  12966. ShaVisitor is now deprecated and slated to be removed.
  12967. * src/DefaultBtContext.cc
  12968. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12969. Externalize message to message.h
  12970. * src/Platform.cc
  12971. * src/message.h
  12972. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12973. Set default domain and default path to cookie.
  12974. * src/HttpResponse.cc
  12975. * src/CookieBox.{h, cc}
  12976. * src/CookieParser.{h, cc}
  12977. * test/CookieParserTest.cc
  12978. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12979. Added --no-conf and --conf-path command-line option.
  12980. --no-conf option disables loading aria2.conf file.
  12981. --conf-path option changes the configuration file path. The default
  12982. file path is $HOME/.aria2/aria2.conf
  12983. Added a warning message when the configuration file is not found.
  12984. * src/HelpItemFactory.cc
  12985. * src/option_processing.cc
  12986. * src/prefs.h
  12987. * src/usage_text.h
  12988. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12989. Added the message to inform users that other help categories are
  12990. available in -h option.
  12991. * src/version_usage.cc
  12992. * src/TagContainer.{h, cc}
  12993. * test/TagContainerTest.cc
  12994. * src/TaggedItem.{h, cc}
  12995. * test/TaggedItemTest.cc
  12996. * src/HelpItem.h
  12997. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12998. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  12999. from PiecedSegment's ctor.
  13000. Previously Piece::getAllMissingBlockIndexes() is called from
  13001. PiecedSegment() but it is rather expensive since only first element is
  13002. used.
  13003. * src/PiecedSegment.cc
  13004. * src/Piece.{h, cc}
  13005. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13006. Rewritten get*Missing*Index functions. Now no need to allocate memory
  13007. each time these functions are called.
  13008. * src/BitfieldMan.{h, cc}
  13009. * test/BitfieldManTest.cc
  13010. * src/array_fun.h
  13011. * test/array_funTest.cc
  13012. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  13013. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  13014. filtered. Removed unnecessary cast to int32_t.
  13015. * src/BitfieldMan.{h, cc}
  13016. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13017. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  13018. payload length(4bytes) are received. This happens because lenbufLength
  13019. is not updated in this particular case and successive call of
  13020. receiveMessage() overwrites payload length with bytes recieved which
  13021. are payload body.
  13022. * src/PeerConnection.{h, cc}
  13023. * src/message.h
  13024. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13025. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  13026. peer if there are peers that have same ipaddr and port.
  13027. I've experiened segmentation fault and "pure virtual function was
  13028. called" error.
  13029. * src/Peer.h
  13030. * test/PeerTest.cc
  13031. * src/DefaultPeerStorage.cc
  13032. * test/DefaultPeerStorageTest.cc
  13033. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13034. Removed a call to isPowerOf() because it is no longer necessary here
  13035. and a request block is not always power of 2.
  13036. BUG#1866924
  13037. * src/PeerMessageUtil.cc (checkLength)
  13038. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13039. Fixed the bug that always first found Segment is removed from
  13040. usedSegmentEntries. Removed unused functions.
  13041. * src/SegmentMan.{h, cc}
  13042. * test/SegmentManTest.cc
  13043. Fixed the bug that ServerHost is not removed.
  13044. * src/RequestGroup.cc
  13045. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13046. Fixed the bug that SegmentMan::completeSegment() is not called
  13047. even if Segment is complete when --lowest-speed-limit is enabled.
  13048. BUG#1864525
  13049. * src/DownloadCommand.{h, cc}
  13050. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13051. Fixed: hash algorithm 'sha1' is always used.
  13052. * src/DownloadCommand.cc (validatePieceHash)
  13053. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13054. Added --enable-peer-exchange command-line option.
  13055. * src/OptionHandlerFactory.cc
  13056. * src/HelpItemFactory.cc
  13057. * src/option_processing.cc
  13058. * src/usage_text.h
  13059. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13060. Move extension from BtRuntime to ExtensionMessageFactory, because
  13061. extension can be specified per peer, not per torrent.
  13062. * src/DefaultBtInteractive.cc
  13063. * src/BtRuntime.h
  13064. * src/ExtendedMessagingAware.h
  13065. * src/ExtensionMessageFactory.h
  13066. * src/DefaultExtensionMessageFactory.cc
  13067. * test/DefaultExtensionMessageFactoryTest.cc
  13068. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13069. Added categorized option help. Specify category using --help option.
  13070. Also added the ability to search options in forward match.
  13071. * src/HelpItem.{h, cc}
  13072. * test/HelpItemTest.cc
  13073. * src/HelpItemFactory.{h, cc}
  13074. * src/TagContainer.{h, cc}
  13075. * test/TagContainerTest.cc
  13076. * src/option_processing.cc
  13077. * src/prefs.h
  13078. * src/TaggedItem.{h, cc}
  13079. * test/TaggedItemTest.cc
  13080. * src/version_usage.cc
  13081. * src/help_tags.h
  13082. * src/usage_text.h
  13083. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13084. Fixed segmentation fault when bad torrent metainfo is parsed.
  13085. Added dynamic_cast properly to detect the misconfiguration of metainfo
  13086. and then throw exception or skip it.
  13087. * src/DefaultBtContext.{h, cc}
  13088. * test/DefaultBtContextTest.cc
  13089. * src/AnnounceList.cc
  13090. * src/CompactPeerListProcessor.cc
  13091. * src/message.h
  13092. * src/DefaultBtAnnounce.{h, cc}
  13093. * test/DefaultBtAnnounceTest.cc
  13094. * src/BencodeVisitor.cc
  13095. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13096. Added missing "B"(=Byte). So now the message looks like this:
  13097. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  13098. * src/message.h (MSG_SHARE_RATIO_REPORT)
  13099. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13100. Show the seed ratio after torrent downloads.
  13101. For example, after torrent download completed and --seed-time and
  13102. --seed-ratio conditions are fulfilled, following message is printed
  13103. right after "Download complete: .....":
  13104. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  13105. * src/RequestGroupMan.cc
  13106. * src/RequestGroup.{h, cc}
  13107. * src/message.h
  13108. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13109. Remove a defunct control file. A defunct control file means that while
  13110. it exists, but the corresponding download file is missing.
  13111. After its removal, a download restarts from the beginning.
  13112. * src/RequestGroup.cc
  13113. * src/message.h
  13114. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13115. Allocate bitfield in Peer when it is really used. More specifically,
  13116. bitfield in Peer is allocated after the connection is established and
  13117. deallocated when the connection is dropped.
  13118. Since 2 parameters(piece length and total length) was removed from the
  13119. constructor of Peer class, many test classes were modified accordingly.
  13120. See svn log for more detailed information.
  13121. * src/PeerInteractionCommand.cc
  13122. * src/CompactPeerListProcessor.cc
  13123. * src/Peer.cc
  13124. * src/DefaultPeerListProcessor.cc
  13125. * src/PeerListenCommand.cc
  13126. * src/PeerReceiveHandshakeCommand.cc
  13127. Fixed memory leak
  13128. * src/Piece.cc
  13129. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13130. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  13131. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  13132. command-line options.
  13133. * src/option_processing.cc
  13134. * src/ActivePeerConnectionCommand.cc
  13135. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13136. Send have message to peer if it already has the piece.
  13137. * src/BtHaveMessage.{h, cc}
  13138. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13139. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  13140. port.
  13141. * src/DefaultPeerStorage.{h, cc}
  13142. * test/DefaultPeerStorageTest.cc
  13143. * src/HandshakeExtensionMessage.cc
  13144. * test/HandshakeExtensionMessageTest.cc
  13145. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  13146. * src/PeerStorage.h
  13147. * test/MockPeerStorage.h
  13148. * src/PeerListenCommand.cc
  13149. * src/PeerReceiveHandshakeCommand.cc
  13150. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13151. Added --metalink-enable-unique-protocol option.
  13152. * src/Metalink2RequestGroup.cc
  13153. * src/option_processing.cc
  13154. * src/prefs.h
  13155. * src/version_usage.cc
  13156. * doc/aria2c.1.txt
  13157. * doc/aria2c.1
  13158. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13159. Allow a peer in incomingPeer to be added peers.
  13160. * src/DefaultPeerStorage.cc
  13161. * test/DefaultPeerStorageTest.cc
  13162. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13163. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  13164. I could reproduce this bug in following procedure:
  13165. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  13166. 2. Restart aria2.
  13167. 3. You see the download stopped around 99%.
  13168. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13169. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  13170. If timeout is reached, then _nextCommand is unused and it may contains
  13171. segments and they won't be canceled. Actually, timeout is not needed
  13172. here because if the server dropped connection, then retry is made.
  13173. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13174. Added uTorrent compatible Peer Exchange.
  13175. * src/BencodeVisitor.{h, cc}
  13176. * test/BencodeVisitorTest.cc
  13177. * src/BtConstants.h
  13178. * src/BtContext.h: Added 'private' flag.
  13179. * src/BtExtendedMessage.{h, cc}
  13180. * test/BtExtendedMessageTest.cc
  13181. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  13182. reserved field.
  13183. * test/BtHandshakeMessageTest.cc
  13184. * src/BtMessageFactory.h
  13185. * src/BtRegistry.h
  13186. * src/BtRuntime.h: This class holds default extension message IDs for
  13187. aria2. By default, aria2 uses ID 8 for ut_pex.
  13188. * src/DefaultBtContext.cc
  13189. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  13190. When it is true, aria2 enables ut_pex. This value is set by
  13191. PeerInteractionCommand.
  13192. * src/DefaultBtMessageFactory.{h, cc}
  13193. * test/DefaultBtMessageFactoryTest.cc
  13194. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  13195. handling to DefaultBtInteractive class.
  13196. * src/DefaultExtensionMessageFactory.{h, cc}
  13197. * test/DefaultExtensionMessageFactoryTest.cc
  13198. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  13199. the container(peers and incomingPeers. The equality is determined by
  13200. Peer::id).
  13201. * test/DefaultPeerStorageTest.cc
  13202. * src/ExtensionMessage.h
  13203. * test/MockExtensionMessage.h
  13204. * src/ExtensionMessageFactory.h
  13205. * test/MockExtensionMessageFactory.h
  13206. * src/HandshakeExtensionMessage.{h, cc}
  13207. * test/HandshakeExtensionMessageTest.cc
  13208. * src/MetaEntry.h
  13209. * src/Peer.{h, cc}
  13210. * src/PeerInteractionCommand.cc
  13211. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  13212. addIncomingPeer.
  13213. * src/PeerMessageUtil.{h, cc}
  13214. * src/PeerObject.h
  13215. * src/UTPexExtensionMessage.{h, cc}
  13216. * test/UTPexExtensionMessageTest.cc
  13217. * src/message.h
  13218. * src/prefs.h
  13219. Fixed the bug that returns incomplete data when it contains null
  13220. character. A convenient constructor was also added.
  13221. * src/Data.{h, cc}
  13222. Rewritten.
  13223. * src/CompactPeerListProcessor.cc
  13224. Fixed typos.
  13225. * src/message.h
  13226. * src/MetaFileUtil.cc
  13227. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13228. Added "Status Legend" label to the explanation text of 'stat' in
  13229. download result and moved it to the last. BUG#1848214
  13230. * src/RequestGroupMan.cc
  13231. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13232. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  13233. * src/Makefie.am
  13234. * test/Makefile.am
  13235. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13236. Fixed the bug that prevents aria2 from loading cookie file when expire
  13237. value is greater than 2^31-1. BUG#1851066
  13238. * src/CookieBoxFactory.cc
  13239. * test/CookieBoxFactoryTest.cc
  13240. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13241. Fixed possible memory leak when an exception is thrown.
  13242. * src/XML2SAXMetalinkProcessor.cc
  13243. Added Expat support. If both libxml2 and Expat are installed, then
  13244. libxml2 is used by default.
  13245. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  13246. ExpatMetalinkProcessor according to the configuration.
  13247. * src/ExpatMetalinkProcessor.{h, cc}
  13248. * src/main.cc: Removed libxml2 specific header and init/free function.
  13249. * src/MetalinkProcessorFactory.{h, cc}
  13250. * src/MetalinkHelper.cc
  13251. * src/Metalinker.h: Removed unnecessary libxml2 header.
  13252. * src/MetalinkProcessor.h
  13253. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  13254. MetalinkProcessorTest is used instead.
  13255. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  13256. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  13257. MetalinkProcessorFactory::newInstance().
  13258. * m4/libexpat.m4
  13259. * configure.ac: Added configuration options for libexpat.
  13260. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13261. Disabled -s option in metalink download.
  13262. * src/Metalink2RequestGroup.cc
  13263. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13264. If several protocols are available for a mirror in metalink file,
  13265. aria2 now use one of them. --metalink-preferred-protocol option was
  13266. added to specify the preference of protocol.
  13267. * src/AbstractCommand.cc
  13268. * src/OptionHandlerFactory.cc
  13269. * src/ServerHost.{h, cc}
  13270. * src/Metalink2RequestGroup.cc
  13271. * src/RequestGroup.{h, cc}
  13272. * test/RequestGroupTest.cc
  13273. * src/option_processing.cc
  13274. * src/prefs.h
  13275. * src/HttpResponseCommand.cc
  13276. * src/MetalinkResource.{h, cc}
  13277. * src/FtpNegotiationCommand.cc
  13278. * src/MetalinkEntry.{h, cc}
  13279. * src/MetalinkEntryTest.cc
  13280. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13281. Code cleanup and added debug log.
  13282. * src/PeerConnection.cc
  13283. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13284. Compiler error fix: applied the patch by Tiziano Mueller
  13285. * src/RequestGroup.cc
  13286. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13287. Fixed the bug: only first announce URL is tried in AnnounceTier,
  13288. in stopped and completed event.
  13289. * src/AnnounceList.{h, cc}
  13290. * test/AnnounceListTest.cc
  13291. * src/DefaultBtAnnounce.cc
  13292. * test/DefaultBtAnnounceTest.cc
  13293. Sorted URLs.
  13294. * test/Metalink2RequestGroupTest.cc
  13295. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13296. Removed unnecessary string copy. Updated doc and corrected indentation.
  13297. * src/Base64.cc
  13298. Fixed compilation warnings
  13299. * test/DataTest.cc
  13300. * test/HttpRequestTest.cc
  13301. * test/MetaFileUtilTest.cc
  13302. * test/RequestTest.cc
  13303. * Release 0.12.0
  13304. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13305. Updated translations
  13306. * po/{de,fr,ja,nl,ru}.po
  13307. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  13308. translations. Many thanks to translators.
  13309. * po/{ca,es,it,pt_BR,sv}.po
  13310. * po/LINGUAS
  13311. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13312. Added a notice about URL
  13313. * src/version_usage.cc
  13314. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  13315. Fixed the bug#1845750; CTRL+C does not stop torrent.
  13316. aria2 repeatedly sends stopped request when tracker returns error code.
  13317. * src/AnnounceList.cc
  13318. * test/AnnounceListTest.cc
  13319. * src/AnnounceTier.h
  13320. Added a message when ctrl-c is hit.
  13321. Now second ctrl-c is also handled in signal handler.
  13322. * src/RequestGroupMan.{h, cc}
  13323. * src/RequestGroup.{h, cc}
  13324. * src/MultiUrlRequestInfo.cc
  13325. * src/DownloadEngine.cc
  13326. * src/TrackerWatcherCommand.cc
  13327. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13328. Code cleanup
  13329. * src/Base64.cc (encode)
  13330. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13331. Changed Direct/IO enable/disable procesure in file allocation routine.
  13332. * src/SingleFileAllocationIterator.cc
  13333. (SingleFileAllocationIterator):
  13334. Disable directIO if offset is not multiple of 512.
  13335. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  13336. * src/MultiFileAllocationIterator.cc (allocateChunk):
  13337. Enable created SingleFileAllocationIterator's directIO.
  13338. * src/FileAllocationEntry.cc
  13339. (FileAllocationEntry): Enable directIO here.
  13340. (~FileAllocationEntry): Disable directIO here.
  13341. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13342. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  13343. * src/Peer.{h, cc}
  13344. * src/DefaultPieceStorage.cc
  13345. * test/DefaultPieceStorageTest.cc
  13346. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13347. Rewritten direct I/O support routine
  13348. * src/SingleFileAllocationIterator.cc
  13349. * src/MultiDiskAdaptor.{h, cc}
  13350. * src/ByteArrayDiskWriter.h
  13351. * src/AbstractSingleDiskAdaptor.h
  13352. * src/AbstractDiskWriter.cc
  13353. * src/DefaultPieceStorage.cc
  13354. * src/DiskWriter.h
  13355. * src/BinaryStream.h
  13356. * src/IteratableChunkChecksumValidator.cc
  13357. * src/IteratableChecksumValidator.cc
  13358. * src/CheckIntegrityEntry.cc
  13359. * src/FileAllocationEntry.cc
  13360. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13361. Fixed typo
  13362. * src/version_usage.cc
  13363. Updated doc
  13364. * doc/aria2c.1.txt
  13365. * doc/aria2c.1
  13366. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13367. Fixed compile error without message digest support.
  13368. * src/FileMetalinkParserState.cc
  13369. * src/MetalinkParserController.{h, cc}
  13370. * test/XML2SAXMetalinkProcessorTest.cc
  13371. * test/MetalinkParserControllerTest.cc
  13372. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13373. Enable direct I/O support in checksum checking.
  13374. * src/IteratableChunkChecksumValidator.{h, cc}
  13375. * test/IteratableChunkChecksumValidatorTest.cc
  13376. * src/CheckIntegrityEntry.cc
  13377. * src/PieceHashCheckIntegrityEntry.cc
  13378. * src/IteratableChecksumValidator.{h, cc}
  13379. * src/BtCheckIntegrityEntry.cc: Added doc.
  13380. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13381. Added --allow-piece-length-change option.
  13382. * src/DefaultBtProgressInfoFile.cc
  13383. * test/DefaultBtProgressInfoFileTest.cc
  13384. * src/OptionHandlerFactory.cc
  13385. * src/option_processing.cc
  13386. * src/prefs.h
  13387. * src/version_usage.cc
  13388. * doc/aria2c.1.txt
  13389. * doc/aria2c.1
  13390. Fixed: duplicated result entry appears when exception is thrown in
  13391. RequestGroup::createInitiateConnectionCommand().
  13392. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  13393. Add RequestGroup to _requestGroup after RequetGroup::
  13394. createInitiateConnectionCommand() succeeds.
  13395. Externalized message
  13396. * src/XML2SAXMetalinkProcessor.cc
  13397. * src/message.h
  13398. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13399. Forced download abort when received negative response from http/ftp
  13400. server.
  13401. * src/HttpResponseCommand.cc
  13402. * src/FtpNegotiationCommand.cc
  13403. * src/HttpResponse.cc
  13404. * src/FtpConnection.cc
  13405. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13406. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  13407. the predecessor, Xml2MetalinkParser class.
  13408. I tested them against 94KB metalink file with 1234 chunk checksums.
  13409. The new one parsed it in 22msec, while it took 6000msec with old one.
  13410. * src/XML2SAXMetalinkProcessor.{h, cc}
  13411. * test/XML2SAXMetalinkProcessorTest.cc
  13412. * src/MetalinkParserController.{h, cc}
  13413. * test/MetalinkParserControllerTest.cc
  13414. * src/MetalinkParserState.h: Also added 16 subclasses.
  13415. * src/main.cc
  13416. * src/Metalink2RequestGroup.cc
  13417. * src/MetalinkHelper.cc
  13418. * src/MetalinkEntry.cc
  13419. * src/ChunkChecksum.h
  13420. Rewritten Base64 class for better performance.
  13421. * src/Base64.{h, cc}
  13422. * test/Base64Test.cc
  13423. * src/HttpRequest.cc
  13424. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13425. Fixed the bug#1841757: aria2 will connect to server to only get
  13426. file size.
  13427. * src/StreamFileAllocationEntry.cc
  13428. * src/option_processing.cc
  13429. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  13430. downloads.
  13431. * src/FtpNegotiationCommand.cc
  13432. Suppressed wrong message when finding PreDownloadHandler
  13433. * src/RequestGroup.cc
  13434. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13435. Updated usage
  13436. * src/version_usage.cc
  13437. Updated man page
  13438. * doc/aria2c.1.txt
  13439. * doc/aria2c.1
  13440. Updated po files
  13441. * po/aria2c.pot
  13442. * po/*.po
  13443. * po/*.gmo
  13444. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13445. Eliminated g++-4.2 warning
  13446. * src/DownloadHandlerConstants.{h, cc}
  13447. * src/Util.cc
  13448. * test/MetaFileUtilTest.cc
  13449. * test/PStringBuildVisitorTest.cc
  13450. Fixed bug: --check-integrity doesn't work for multi file torrent.
  13451. * src/RequestGroup.cc
  13452. * src/BtCheckIntegrityEntry.cc
  13453. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13454. Fixed a2io.h
  13455. * src/a2io.h
  13456. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13457. Added direct I/O support. The current implementation uses O_DIRECT,
  13458. which is not posix standard and is tested on linux 2.6.21.
  13459. Currently only file allocation uses direct I/O.
  13460. * src/SingleFileAllocationIterator.{h, cc}
  13461. * test/SingleFileAllocationIteratorTest.cc
  13462. * src/MultiFileAllocationIterator.{h, cc}
  13463. * test/MultiFileAllocationIteratorTest.cc
  13464. * src/BinaryStream.h
  13465. * src/DiskWriter.h
  13466. * src/AbstractDiskWriter.{h, cc}
  13467. * src/ByteArrayDiskWriter.h
  13468. * src/DiskAdaptor.h
  13469. * src/AbstractSingleDiskAdaptor.{h, cc}
  13470. * src/MultiDiskAdaptor.{h, cc}
  13471. * src/FileAllocationEntry.cc
  13472. * src/Util.{h, cc}
  13473. * src/OptionHandlerFactory.cc
  13474. * src/prefs.h
  13475. * src/version_usage.cc
  13476. * src/option_processing.cc
  13477. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  13478. handleException.
  13479. * src/MultiFileAllocationIterator.cc
  13480. Added EINTR handling
  13481. * src/SocketCore.cc
  13482. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13483. Updated usage
  13484. * src/version_usage.cc
  13485. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13486. Applied Ross's patch for MinGW port.
  13487. * src/DownloadEngine.h
  13488. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13489. Set Content-Type to SingleFileDownloadContext when http response is
  13490. received.
  13491. * src/HttpResponseCommand.cc
  13492. * src/HttpResponse.{h, cc}
  13493. * test/HttpResponseTest.cc
  13494. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13495. Rewritten to add content-type support.
  13496. * src/DownloadHandler.{h, cc}
  13497. * src/BtPostDownloadHandler.{h, cc}
  13498. * test/BtPostDownloadHandlerTest.cc
  13499. * src/MetalinkPostDownloadHandler.{h, cc}
  13500. * test/MetalinkPostDownloadHandlerTest.cc
  13501. * src/PostDownloadHandler.{h, cc}
  13502. * src/DownloadHandlerConstants.{h, cc}
  13503. * src/RequestGroup.cc
  13504. * src/HttpResponseCommand.cc
  13505. * src/FtpNegotiationCommand.cc
  13506. * src/SingleFileDownloadContext.{h, cc}
  13507. * src/RequestGroup.h
  13508. * src/RequestGroupCriteria.h
  13509. * src/ContentTypeRequestGroupCriteria.h
  13510. Added 'mem' option value for --follow-metalink, --follow-torrent.
  13511. If it is give, metalink/torrent file is not written to the disk, but
  13512. just is kept in memory. Parsing is occurred on memory.
  13513. * src/MetalinkHelper.{h, cc}
  13514. * src/MetalinkProcessor.h
  13515. * src/Xml2MetalinkProcessor.{h, cc}
  13516. * test/Xml2MetalinkProcessorTest.cc
  13517. * src/DownloadHandlerFactory.{h, cc}
  13518. * test/DownloadHandlerFactoryTest.cc
  13519. * src/PreDownloadHandler.{h, cc}
  13520. * src/OptionHandlerFactory.cc
  13521. * src/DefaultBtContext.{h, cc}
  13522. * test/DefaultBtContextTest.cc
  13523. * src/version_usage.cc
  13524. * src/Metalink2RequestGroup.{h, cc}
  13525. * src/RequestGroup.{h, cc}
  13526. * src/a2functional.h
  13527. * test/a2functionalTest.cc
  13528. * src/MemoryBufferPreDownloadHandler.{h, cc}
  13529. * src/OptionHandlerImpl.h
  13530. * src/prefs.h
  13531. * src/Util.{h, cc}
  13532. * test/UtilTest.cc
  13533. Keep DownloadResult rather than RequestGroup after downloads to reduce
  13534. memory usage.
  13535. * src/RequestGroupMan.{h, cc}
  13536. * src/DownloadEngine.cc
  13537. * src/BtDependency.{h, cc}: Changed the type of dependee from
  13538. WeakHandle to SharedHandle because WeakHandle could be null.
  13539. * src/RequestGroup.{h, cc}
  13540. * src/DownloadEngineFactory.cc
  13541. * src/DownloadResult.h
  13542. Set totalLength after download finished
  13543. * src/UnknownLengthPieceStorage.{h, cc}
  13544. Keep torrent file specified in metalink in memory.
  13545. * src/Metalink2RequestGroup.cc
  13546. * src/BtDependency.cc
  13547. * src/TrueRequestGroupCriteria.h
  13548. Fixed the bug: seekg is used where seekp should be used.
  13549. * src/ByteArrayDiskWriter.cc
  13550. * test/ByteArraydiskWriterTest.cc
  13551. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13552. Fixed syntax error
  13553. * test/SequenceTest.cc
  13554. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13555. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  13556. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  13557. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  13558. * src/RequestGroup.cc (downloadFinishedByFileLength)
  13559. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13560. Added the check to see whether ares_host_callback accepts timeouts
  13561. with c-ares; only c-ares 1.5.0 or newer accepts it.
  13562. * src/NameResolver.{h, cc}
  13563. * m4/libcares.m4
  13564. * configure.ac: Set C++ for language choice.
  13565. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13566. Fixed: compilation fails without c-ares/ares
  13567. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  13568. Generate http/ftp commands only when download is incomplete.
  13569. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  13570. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13571. Corrected typo. Examples are removed since they are available in man
  13572. page.
  13573. * src/version_usage.cc
  13574. Updated man page.
  13575. * doc/aria2c.1
  13576. * doc/aria2c.1.txt
  13577. * doc/makeman: Commented out sed command.
  13578. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13579. Throw DlAbortEx when a remote file is not found.
  13580. * src/HttpResponse.cc
  13581. * src/FtpNegotiationCommand.cc
  13582. * src/message.h
  13583. Overwrite an existing file if --allow-overwrite=true is given.
  13584. * src/RequestGroup.cc
  13585. Removed unused functions
  13586. * src/AbstractCommand.h
  13587. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13588. Removed 'extern' from 'extern typedef ...' in src/*.h
  13589. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13590. Updated usage
  13591. * src/version_usage.cc
  13592. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13593. Trim announce URL
  13594. * src/DefaultBtContext.cc
  13595. * test/ShaVisitorTest.cc
  13596. Trim argument s. Give trimed s to exception constructor.
  13597. * src/Util.cc (parseInt)(parseLLInt)
  13598. * test/UtilTest.cc
  13599. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13600. Set precision back to 1.
  13601. * src/ConsoleStatCalc.cc (calculateStat)
  13602. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13603. Replaced strtol with Util::parseInt
  13604. * src/ChunkedEncoding.cc
  13605. * src/HttpConnection.cc
  13606. * src/CookieBoxFactory.cc
  13607. * src/ParameterizedStringParser.cc
  13608. * src/Util.cc
  13609. * test/UtilTest.cc
  13610. * test/OptionHandlerTest.cc
  13611. * src/Request.cc
  13612. Throw exception when empty string is given. The message for exception
  13613. changed.
  13614. * src/Util.cc (parseInt)(parseLLInt)
  13615. * src/message.h
  13616. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13617. Set precision to 2 because share ratio is rounded into 1.0 if precision
  13618. set to 1.
  13619. * src/ConsoleStatCalc.cc (calculateStat)
  13620. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13621. Preallocate non-requested file which is adjacent forward to requested
  13622. file('requested' files means the files given in --select-file option)
  13623. if they share a same piece.
  13624. This fixes long pause in the file system which doesn't support sparse
  13625. files like FAT32 while downloading.
  13626. * src/MultiFileAllocationIterator.{h, cc}
  13627. * test/MultiFileAllocationIteratorTest.cc
  13628. * src/FileEntry.{h, cc}
  13629. Removed unused _option.
  13630. * src/MultiDiskAdaptor.h
  13631. * test/MultiDiskAdaptorTest.cc
  13632. * src/DefaultPieceStorage.cc
  13633. Set the default value of --seed-ratio to 1.0.
  13634. If 0.0 is given, then seeding continues regardless of share ratio.
  13635. * src/version_usage.cc
  13636. * src/option_processing.cc
  13637. * src/BtSetup.cc
  13638. * doc/aria2c.1.txt
  13639. * doc/aria2c.1
  13640. Fixed: Selective download is not working in BitTorrent
  13641. * src/RequestGroup.cc
  13642. Introduced Sequence class. Use this instead of Util::unfoldRange()
  13643. * src/PieceStorage.h
  13644. * test/MockPieceStorage.h
  13645. * src/UnknownLengthPieceStorage.h
  13646. * src/DefaultPieceStorage.{h, cc}
  13647. * src/Metalink2RequestGroup.cc
  13648. * src/RequestGroup.cc
  13649. * src/Sequence.h
  13650. * test/SequenceTest.cc
  13651. * src/IntSequence.h
  13652. * src/message.h
  13653. * src/Util.{h, cc}
  13654. * test/UtilTest.cc
  13655. Added new function 'parse' to catch exception thrown by subclass's
  13656. parseArg
  13657. * src/OptionHandler.h
  13658. * src/OptionParser.cc
  13659. * src/NameMatchOptionHandler.h
  13660. * src/OptionHandlerImpl.h
  13661. * test/OptionHandlerTest.cc
  13662. Added IntegerRangeOptionHandler. Used for --listen-port and
  13663. --select-file. Now --listen-port accepts range of port.
  13664. * src/OptionHandlerFactory.cc
  13665. * src/version_usage.cc
  13666. * src/OptionHandlerImpl.h
  13667. * src/option_processing.cc
  13668. * src/BtSetup.cc
  13669. * src/PeerListenCommand.{h, cc}
  13670. * doc/aria2c.1.txt
  13671. * doc/aria2c.1
  13672. Implemented operator< for Exception class to provide easy way to print
  13673. exception stack trace.
  13674. * src/Exception.{h, cc}
  13675. * src/main.cc
  13676. * src/option_processing.cc
  13677. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13678. * src/version_usage.cc
  13679. (showVersion): Reworked.
  13680. (showUsage): Added examples.
  13681. Removed Hint for total length and file name.
  13682. * src/Metalink2RequestGroup.cc
  13683. * src/RequestGroup.{h, cc}
  13684. * src/HttpResponseCommand.cc
  13685. * src/FtpNegotiationCommand.cc
  13686. Now --follow-torrent and --follow-metalink option work properly.
  13687. * src/RequestGroup.cc
  13688. Updated man page
  13689. * doc/aria2c.1.txt
  13690. * doc/aria2c.1
  13691. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13692. Removed.
  13693. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  13694. Use Segment::operator==()
  13695. * src/HttpConnection.cc
  13696. * src/Segment.h
  13697. Updated usage
  13698. * src/version_usage.cc
  13699. Added EINTR treatment.
  13700. * src/SocketCore.cc
  13701. * src/AbstractDiskWriter.cc
  13702. Rewritten.
  13703. * src/Util.cc (rangedFileCopy)
  13704. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13705. Fixed typo.
  13706. * src/version_usage.cc
  13707. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13708. Implemented. Now -c option works fine.
  13709. * src/DefaultPieceStorage.cc (markPiecesDone)
  13710. * test/DefaultPieceStorageTest.cc
  13711. Removed.
  13712. * src/SegmentMan.{h, cc}
  13713. (markAllPiecesDone)
  13714. (markPieceDone)
  13715. Synchronized po files with
  13716. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  13717. * src/fr.po
  13718. * src/ru.po
  13719. * src/de.po
  13720. * src/ja.po
  13721. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13722. Added ifdef and some modifications to compile without BitTorrent,
  13723. Metalink, MessageDigest
  13724. support.
  13725. * src/PieceHashCheckIntegrityEntry.cc
  13726. * src/MetalinkEntry.h
  13727. * src/version_usage.cc
  13728. * src/main.cc
  13729. * src/DownloadEngine.{h, cc}
  13730. * src/Metalink2RequestGroup.cc
  13731. * src/Peer.cc
  13732. * src/RequestGroup.cc
  13733. * src/MetalinkHelper.cc
  13734. * test/DefaultPieceStorageTest.cc
  13735. * test/MetalinkPostDownloadHandlerTest.cc
  13736. * test/Metalink2RequestGroupTest.cc
  13737. Hide TOTAL SPD when all downloads complete.
  13738. * src/ConsoleStatCalc.cc
  13739. Log target system information.
  13740. * src/main.cc
  13741. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13742. Now --metalink-location accepts a comma-deliminated list of locations.
  13743. * src/MetalinkEntry.{h, cc}
  13744. * test/MetalinkEntryTest.cc
  13745. * src/version_usage.cc
  13746. * src/Metalink2RequestGroup.cc
  13747. * src/Xml2MetalinkProcessor.cc
  13748. * test/Xml2MetalinkProcessorTest.cc
  13749. * doc/aria2c.1.txt
  13750. * doc/aria2c.1
  13751. * src/Util.cc (toUpper)(toLower): Rewritten.
  13752. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13753. Added the ability to detect duplicate download entry which is about to
  13754. download the same file other RequestGroup is downloading.
  13755. * src/RequestGroup.cc
  13756. * src/HttpResponseCommand.cc
  13757. * src/FtpNegotiationCommand.cc
  13758. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13759. Recalculates download progress when loading a control file,
  13760. if the piece length of DownloadContext is different from the one saved
  13761. in the control file. Currently in-flight pieces are ignored.
  13762. * src/DefaultBtProgressInfoFile.cc
  13763. * test/DefaultBtProgressInfoFileTest.cc
  13764. * src/Util.{h, cc}
  13765. * test/UtilTest.cc
  13766. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13767. Do not rotate tiers in announce-list.
  13768. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  13769. AnnounceList::allTiersFailed() used instead to detect whether all
  13770. tiers are tried and failed.
  13771. * test/DefaultBtAnnounceTest.cc
  13772. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  13773. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  13774. * test/AnnounceListTest.cc
  13775. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  13776. clause. Catch RecoverableException instead of DlRetryEx instead.
  13777. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13778. Implemented checksum validation feature(1 checksum for each file)
  13779. The validation takes place after the download.
  13780. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  13781. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  13782. * src/CheckIntegrityCommand.cc: Changed log message.
  13783. * src/Metalink2RequestGroup.cc: Set checksum to
  13784. SingleFileDownloadContext.
  13785. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  13786. PieceHashCheckIntegrity class.
  13787. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  13788. PieceHashCheckIntegrity class.
  13789. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  13790. * src/IteratableValidator.h: New class.
  13791. * src/message.h
  13792. * src/CheckIntegrityEntry.{h, cc}
  13793. * src/IteratableChunkChecksumValidator.{h, cc}
  13794. * src/SingleFileDownloadContext.h
  13795. * src/DownloadCommand.cc
  13796. --allow-overwrite=true is no longer needed to check file integrity
  13797. before download in BitTorrent download.
  13798. * src/RequestGroup.cc (getInitialCommand)
  13799. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  13800. throws exception.
  13801. * src/RequestGroupMan.cc (getInitialCommands)
  13802. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13803. urlencode the given url inside Request::parseUrl(...)
  13804. * src/Request.{h, cc}
  13805. * src/Util.{h, cc}
  13806. * test/RequestTest.cc
  13807. Removed #!metalink3! notation support because it is deleted from
  13808. the metalink specification.
  13809. * src/Request.{h, cc}
  13810. * test/RequestTest.cc
  13811. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13812. Don't connect server before checking file integrity at startup, if
  13813. filesize and output file path are known.
  13814. * src/AbstractCommand.cc
  13815. * src/StreamFileAllocationEntry.cc
  13816. * src/Metalink2RequestGroup.cc
  13817. * src/RequestGroup.{h, cc}
  13818. * src/HttpResponseCommand.cc
  13819. * src/FtpNegotiationCommand.cc
  13820. Added DownloadFailureException. If it is thrown, RequestGroup should
  13821. halt.
  13822. * src/AbstractCommand.cc
  13823. * src/DownloadFailureException.h
  13824. * src/RequestGroup.cc
  13825. Catch RecoverableException, instead of DlAbortEx.
  13826. * src/RequestGroupMan.cc
  13827. * src/FillRequestGroupCommand.cc
  13828. * src/MetaFileUtil.cc
  13829. * src/IteratableChunkChecksumValidator.cc
  13830. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  13831. getGID())
  13832. * src/CheckIntegrityCommand.cc
  13833. * src/message.h
  13834. Print gid instead of idx.
  13835. * src/RequestGroupMan.cc
  13836. Removed exception throwers declaration.
  13837. * src/DirectDiskAdaptor.{h, cc}
  13838. * src/SocketCore.{h, cc}
  13839. * src/MultiDiskAdaptor.{h, cc}
  13840. * src/HttpConnection.{h, cc}
  13841. * src/HttpResponse.{h, cc}
  13842. * src/DiskAdaptor.{h, cc}
  13843. * src/CopyDiskAdaptor.{h, cc}
  13844. * src/MultiDiskAdaptor.{h, cc}
  13845. * src/HttpHeaderProcessor.{h, cc}
  13846. * src/AbstractSingleDiskAdaptor.{h, cc}
  13847. * src/Util.{h, cc}
  13848. * test/UtilTest.cc
  13849. * src/DefaultDiskWriter.{h, cc}
  13850. * src/FtpConnection.{h, cc}
  13851. * src/AbstractDiskWriter.{h, cc}
  13852. Removed duplicate code.
  13853. * src/StreamCheckIntegrityEntry.cc
  13854. Removed unnecessary include.
  13855. * src/DiskWriter.h
  13856. Included Exception.h
  13857. * src/option_processing.cc
  13858. Included 2 files and added doc
  13859. * src/TrackerWatcherCommand.cc
  13860. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  13861. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13862. Changed CheckIntegrityEntry interface so that it can define
  13863. the action when all the chunk checksums are valid.
  13864. * src/CheckIntegrityEntry.h
  13865. * src/StreamCheckIntegrityEntry.{h, cc}
  13866. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  13867. are valid, then aira2 goes to seeding mode. Sometimes it is better
  13868. to exit rather than doing seeding. So, it would be good to toggle this
  13869. behavior.
  13870. * src/CheckIntegrityCommand.cc
  13871. * src/AbstractCommand.cc
  13872. * src/RequestGroup.cc
  13873. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13874. Reflect the download length of in-flight pieces.
  13875. It makes the download length readout more precise.
  13876. * src/DefaultPieceStorage.{h, cc}
  13877. * test/DefaultPieceStorageTest.cc
  13878. * src/a2functional.h
  13879. * test/a2functionalTest.cc
  13880. Lower CPU load when --max-download-limit is used.
  13881. There is up and down in speed indicator when enabling
  13882. http-pipelining but a download goes well. I think the problem is that
  13883. because http-pipelining is enabled, DownloadCommand is created for
  13884. each segment and in its constructor, PeerStat::downloadStart() is
  13885. called. In PeerStat::downloadStart(), speed calculation object is
  13886. reseted, which makes download speed zero.
  13887. * src/DownloadCommand.cc
  13888. Rewritten using accumulate.
  13889. * src/RequestGroupMan.cc (calculateStat)
  13890. Code clearnup.
  13891. * src/FtpNegotiationCommand.cc
  13892. * src/HttpResponseCommand.cc
  13893. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13894. Fixed: Can not resume: aria2 reports download already finished.
  13895. * src/AbstractCommand.{h, cc}
  13896. * src/HttpResponseCommand.cc
  13897. * src/FtpNegotiateCommand.cc
  13898. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13899. Now a file is stored in the directory specified in .metalnk file
  13900. (file[@name]).
  13901. * src/Metalink2RequestGroup.cc
  13902. Create the directory structure when opening the file if it doesn't
  13903. exist.
  13904. * src/AbstractDiskWriter.cc
  13905. * src/Util.{h, cc}
  13906. * src/File.h
  13907. * test/UtilTest.cc
  13908. Removed file name comparison
  13909. * src/Metalink2RequestGroup.cc
  13910. * src/HttpResponseCommand.cc
  13911. Rewritten using Util::mkdirs()
  13912. * src/FileEntry.cc (setupDir)
  13913. * test/FileEntryTest.cc
  13914. Updated doc
  13915. * src/SingleFileDownloadContext.h
  13916. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13917. Now SleepCommand dispatches nextCommand when halt is requested.
  13918. It avoids a possible long wait after hitting CTRL-C.
  13919. * src/SleepCommand.{h, cc}
  13920. * src/RequestGroupAware.{h, cc}
  13921. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13922. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  13923. to open listen port, then remove the port number from the tracker
  13924. request.
  13925. * src/DefaultBtAnnounce.cc
  13926. * test/DefaultBtAnnounceTest.cc
  13927. * test/MockPieceStorage.h
  13928. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  13929. them more testable.
  13930. * src/DefaultBtAnnounce.{h, cc}
  13931. * src/DefaultBtContext.{h, cc}
  13932. * src/Util.{h, cc}
  13933. * test/DefaultBtAnnounceTest.cc
  13934. * test/DefaultBtContextTest.cc
  13935. * test/UtilTest.cc
  13936. Added 'B' to upload bytes readout.
  13937. * src/ConsoleStatCalc.cc
  13938. Now the listen port for BitTorrent download is opened when it is
  13939. needed.
  13940. * src/DownloadEngineFactory.cc
  13941. * src/BtSetup.{h, cc}
  13942. * src/PeerListenCommand.{h, cc}
  13943. Now an exception thrown while parsing tracker response is now logged.
  13944. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  13945. called, which means no retry is made in this case, assuming a tracker
  13946. has a problem.
  13947. * src/TrackerWatcherCommand.cc
  13948. Fixed: downloading a file whose length is unkown fails.
  13949. * src/DownloadCommand.cc
  13950. Simplified prepareForNextSegment()
  13951. * src/DownloadCommand.cc
  13952. Updated
  13953. * po/POTFILES.in
  13954. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13955. Re-implemented a file listing for Metalink, which was dropped while
  13956. http/ftp/torrent integration was being implemented.
  13957. * src/MetalinkHelper.{h, cc}: New class.
  13958. * test/MetalinkHelperTest.cc
  13959. * src/main.cc
  13960. * src/Metalink2RequestGroup.cc
  13961. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13962. Added the ability to display the detailed torrent file information.
  13963. Now -S option gives not only a file listing, but also total download
  13964. length, info hash, announce URI, piece length, the number of pieces,
  13965. and mode(single or multi-torrent).
  13966. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  13967. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  13968. KiB)
  13969. * test/UtilTest.cc
  13970. * src/main.cc
  13971. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13972. Added ftp://USER:PASSWD@Servername automatic parsing.
  13973. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  13974. _password. Recognize username and password in URI.
  13975. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  13976. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  13977. * src/RequestFactory.{h, cc}: Removed.
  13978. * src/AuthConfigFactory.{h, cc}: New class.
  13979. * src/FtpConnection.cc: Use AuthConfigFactory.
  13980. * src/HttpRequest.cc: Use AuthConfigFactory.
  13981. * test/HttpRequestTest.cc: Updated.
  13982. * test/RequestTest.cc: Updated.
  13983. * test/AuthConfigFactoryTest.cc: New class.
  13984. * test/RequestFactoryTest.cc: Removed.
  13985. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13986. Use RequestGroup::allDownloadFinished() to decide whether the control
  13987. file should be removed or saved.
  13988. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  13989. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  13990. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13991. Use File::renameTo()
  13992. * src/DefaultBtProgressInfoFile.cc
  13993. Added --no-file-allocation-limit command-line option.
  13994. * src/version_usage.cc
  13995. * src/option_processing.cc
  13996. * src/OptionHandlerFactory.cc
  13997. * src/RequestGroup.{h, cc}
  13998. * src/BtCheckIntegrityEntry.cc
  13999. * src/StreamCheckIntegrityEntry.cc
  14000. * src/prefs.h
  14001. * doc/aria2c.1.txt
  14002. * doc/aria2c.1
  14003. Now prealloc is the default value for --file-allocation option.
  14004. * src/version_usage.cc
  14005. * src/option_processing.cc
  14006. * doc/aria2c.1.txt
  14007. * doc/aria2c.1
  14008. Don't URL-encode user-agent.
  14009. * src/HttpRequest.cc
  14010. Updated translations
  14011. * po/LINGUAS: Added nl for Dutch translation.
  14012. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  14013. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  14014. * po/POTFILES.in: Updated.
  14015. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14016. Added the ability to recognize url-list in a torrent file.
  14017. The retrieved URLs are attached to the corresponding FileEntry.
  14018. * src/DefaultBtContext.{h, cc}
  14019. * src/FileEntry.{h, cc}
  14020. * test/DefaultBtContextTest.cc
  14021. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14022. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  14023. after the download finishes.
  14024. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14025. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  14026. the data smaller than block length.
  14027. A block length can be specified by constructor's argument.
  14028. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  14029. Get a missing piece in the range of given FileEntry. This function is
  14030. not used in the program yet.
  14031. * src/Util.h: Added some macros.
  14032. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14033. Added HTTP/1.1 keep alive and pipelining support.
  14034. See --enable-http-keep-alive and --enable-http-pipelining option.
  14035. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  14036. Segment.
  14037. * src/HttpDownloadCommand.{h, cc}
  14038. * src/OptionHandlerFactory.cc
  14039. * src/HttpConnection.{h, cc}
  14040. * src/version_usage.cc
  14041. * src/HttpInitiateConnectionCommand.cc
  14042. * src/FtpInitiateConnectionCommand.cc
  14043. * src/Segment.h
  14044. * src/HttpRequestCommand.{h, cc}
  14045. * src/option_processing.cc
  14046. * src/prefs.h
  14047. * src/HttpResponseCommand.cc
  14048. * src/SegmentMan.{h, cc}
  14049. * src/FtpNegotiateCommand.cc
  14050. * src/HttpProxyResponseCommand.cc
  14051. * src/Request.cc
  14052. * src/HttpRequest.cc
  14053. * src/DownloadCommand.cc
  14054. * test/HttpRequestTest.cc
  14055. * test/RequestTest.cc
  14056. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14057. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  14058. finished.
  14059. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14060. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  14061. catching it inside the method.
  14062. When no file entry is found in a metalink without querying user
  14063. preferences, throw the exception with the error message that suggests
  14064. metalink file is probably broken.
  14065. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  14066. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14067. Fixed the bug that prevents remote Metalink/Torrent file from begin
  14068. processed.
  14069. * src/RequestGroupMan.cc (removeStoppedGroup)
  14070. Added debug message.
  14071. * src/BtPostDownloadHandler.cc
  14072. * src/MetalinkPostDownloadHandler.cc
  14073. * src/PostDownloadHandler.{h, cc}
  14074. * src/RequestGroup.cc
  14075. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14076. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  14077. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14078. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  14079. stops and there are any unfinished or in-progress downloads.
  14080. Added the legend of "stat".
  14081. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14082. Throw exception when chunck checksum verification fails.
  14083. * src/DownloadCommand.cc (validatePieceHash): New function.
  14084. * src/PiecedSegment.{h, cc} (clear): New function.
  14085. * src/GrowSegment.{h, cc} (clear): New function.
  14086. * src/Segment.h (clear): New function.
  14087. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  14088. * test/SegmentTest.cc
  14089. * test/GrowSegmentTest.cc
  14090. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14091. Do not send referer when redirected.
  14092. * src/Request.cc (redirectUrl)
  14093. * test/RequestTest.cc
  14094. * test/HttpRequestTest.cc
  14095. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14096. Implemented BitTorrent/http/ftp integrated download.
  14097. I've rewritten lots of files and now some headers have forward
  14098. class declarations to reduce compile time.
  14099. The implementation is extremely alpha stage, I recommend to use this
  14100. for testing purpose only.
  14101. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14102. Fixed the compilation error on 64bit platform.
  14103. * test/HttpHeaderProcessorTest.cc
  14104. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14105. Merged Ross's patch that fixes compilation problem in MinGW
  14106. * test/DefaultBtProgressInfoFileTest.cc
  14107. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14108. Updated fr.po by sebone
  14109. * po/fr.po
  14110. Updated man page.
  14111. * doc/aria2c.1.txt
  14112. * Release 0.11.3
  14113. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14114. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  14115. failure in Metalink.
  14116. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14117. Automatically save *.aria2 control file of http/ftp download in every
  14118. 60 seconds.
  14119. * src/AutoSaveCommand.{h, cc}: New class.
  14120. * src/TimeBasedCommand.{h, cc}: New class.
  14121. * src/DownloadEngineFactory.cc (newConsoleEngine)
  14122. Disable parameterized URI support by default. Added -P option to
  14123. enable the feature.
  14124. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  14125. * src/OptionHandlerFactory.cc
  14126. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  14127. Updated Japanese translation.
  14128. * po/ja.po
  14129. Updated man page.
  14130. * doc/aria2c.1.txt
  14131. * Release 0.11.3-rc
  14132. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14133. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  14134. it is successful, then renamed to *.aria2.
  14135. This prevents *.aria2 file from being truncated or corrupted when
  14136. file system becomes out of space.
  14137. * src/DefaultBtProgressInfoFile.cc (save)
  14138. * src/SegmentMan.cc (save)
  14139. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  14140. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14141. Reduced the fragmentation of bitfield in http/ftp download.
  14142. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  14143. * test/BitfieldManTest.cc
  14144. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14145. Added the ability to disable segmented download in .metalink.
  14146. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  14147. 'url' tag.
  14148. * src/MetalinkEntry.{h, cc}
  14149. * src/RequestResource.{h, cc}
  14150. * src/MetalinkRequestInfo.cc
  14151. * src/Xml2MetalinkProcessor.cc
  14152. * test/Xml2MetalinkProcessorTest.cc
  14153. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14154. Added parameterized URI support.
  14155. * src/main.cc: -Z option added.
  14156. * src/OptionHandlerFactory.cc
  14157. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  14158. * src/PStringDatum.h: New class.
  14159. * src/PStringSegment.{h,cc}: New class.
  14160. * src/PStringNumLoop.h: New class.
  14161. * src/PStringSelect.h: New class.
  14162. * src/NumberDecorator.h: New class.
  14163. * src/FixedWidthNumberDecorator.h: New class.
  14164. * src/AlphaNumberDecorator.h: New class.
  14165. * src/PStringVisitor.h: New class.
  14166. * src/PStringBuildVisitor.{h,cc}: New class.
  14167. * src/ParameterizedStringParser.{h,cc}: New class.
  14168. * src/Util.{h,cc}
  14169. (isNumber): New function.
  14170. (isLowercase): New function.
  14171. (isUppercase): New function.
  14172. (alphaToNum): New function.
  14173. * test/ParameterizedStringParserTest.cc: New class.
  14174. * test/AlphaNumberDecoratorTest.cc: New class.
  14175. * test/PStringBuildVisitorTest.cc: New class.
  14176. * test/UtilTest.cc
  14177. (testIsNumber): New function.
  14178. (testIsLowercase): New function.
  14179. (testIsUppercase): New function.
  14180. (testAlphaToNum): New function.
  14181. Added '\n' after the error message
  14182. * src/RequestInfo.h (printDownloadAbortMessage)
  14183. Added auto file renaming feature in http(s)/ftp download.
  14184. * src/main.cc: Added --auto-file-renaming command-line option.
  14185. * src/OptionHandlerFactory.cc
  14186. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  14187. * src/RequestGroup.{h, cc}
  14188. (shouldCancelDownloadForSafety): Rewritten
  14189. (tryAutoFileRenaming): New function.
  14190. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  14191. * src/HttpResponseCommand.cc
  14192. (executeInternal): Removed the call to RequestGroupMan::
  14193. isSameFileBeingDownloaded()
  14194. * src/FtpNegotiateCommand.cc
  14195. (recvSize): Removed the call to RequestGroupMan::
  14196. isSameFileBeingDownloaded()
  14197. * test/RequestGroupTest.cc: New class.
  14198. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14199. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  14200. IO.
  14201. * src/DefaultBtProgressInfoFile.cc
  14202. * src/MetaFileUtil.cc
  14203. * src/SimpleLogger.cc
  14204. * src/SegmentMan.cc
  14205. * src/Util.cc
  14206. * src/Platform.cc
  14207. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14208. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  14209. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14210. Avoid sparse files if possible, because VFAT32 doesn't support it.
  14211. * src/DefaultDiskWriter.cc (initAndOpenFile)
  14212. Fixed the bug that prevents file allocation is not done when
  14213. dowloading multi-torrent file.
  14214. * src/AbstractDiskWriter.cc (openFile)
  14215. Increase the maximum number of -j option from 15 to 45.
  14216. * src/OptionHandlerFactory.cc (createOptionHandlers)
  14217. Added fr.po, thanks to Charles Landemaine.
  14218. * po/fr.po
  14219. * po/LINGUAS
  14220. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  14221. gcc 3.4.4 support:
  14222. * src/DefaultBtContext.cc: int32_t -> int
  14223. * src/main.cc: int -> int32_t, int32_t -> int
  14224. * src/messageDigest.h: uint32_t -> unsigned int
  14225. * src/NameResolver.h: int32_t -> int
  14226. * src/PeerConnection.cc: int -> int32_t
  14227. * src/SpeedCalc.cc: int32_t -> int
  14228. * src/TrackerUpdateCommand.h: int -> int32_t
  14229. * src/Util.cc: int32_t -> int
  14230. * src/Util.h: int32_t -> int
  14231. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  14232. * test/AnnounceListTest.cc: int -> int32_t
  14233. * test/ChunkedEncodingTest.cc: int -> int32_t
  14234. * test/DataTest.cc: int -> int32_t
  14235. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  14236. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  14237. * test/DefaultPieceStorageTest.cc: int -> int32_t
  14238. * test/FeatureConfigTest.cc: int -> int32_t
  14239. * test/MetalinkEntryTest.cc: int -> int32_t
  14240. * test/MockBtRequestFactory.h: int -> int32_t
  14241. * test/MockPieceStorage.h: int -> int32_t
  14242. * test/OptionTest.cc: int -> int32_t
  14243. * test/RequestTest.cc: int -> int32_t
  14244. * test/SegmentManTest.cc: int -> int32_t
  14245. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  14246. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  14247. Move sleep functions to Util class:
  14248. * src/Util.cc
  14249. (sleep): New function.
  14250. (usleep): New function.
  14251. * src/DownloadCommand.cc: sleep -> Util::sleep
  14252. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  14253. MinGW build enhancements. The following files are added:
  14254. * src/timegm.{c,h}
  14255. Changes to support the above new files:
  14256. * configure.ac
  14257. * src/Makefile.am
  14258. * src/a2time.h
  14259. * src/Util.cc:
  14260. * src/strptime.c: Added support for %Z option.
  14261. Fixed MinGW non-blocking bug.
  14262. * src/SocketCore.cc
  14263. * src/HttpRequestCommand.cc
  14264. Miscellenous build fixes/enhancements.
  14265. * configure.ac: Added summary report.
  14266. * src/Platform.h: Tweaked #include's.
  14267. * src/a2netcompat.h: Tweaked #include's.
  14268. * src/strptime.h: Tweaked #include's.
  14269. * src/gai_strerror.c: Tweaked #include's.
  14270. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  14271. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  14272. * src/gettimeofday.h: Added HAVE_CONFIG_H
  14273. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14274. Increased the initial connection size in BitTorrent download to 40.
  14275. * src/BtRuntime.h
  14276. Added the usage message of --peer-id-prefix option.
  14277. * src/main.cc
  14278. * Release 0.11.2
  14279. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14280. MessageDigestHelper is introduced in order to simplify the use
  14281. of message digest. Removed repeated code.
  14282. The message digest algorithm is now specified by string, like "sha1",
  14283. "md5".
  14284. * src/messageDigest.{h, cc}
  14285. * src/MessageDigestHelper.{h, cc}: New class.
  14286. * src/DefaultPieceStorage.cc
  14287. * src/DefaultBtContext.{h, cc}
  14288. (computeFastSet): New function.
  14289. (setInfoHash): Added for unit testing.
  14290. (setNumPieces): Added for unit testing.
  14291. * src/DefaultBtInteractive.cc
  14292. * src/BtPieceMessage.cc
  14293. * src/Peer.cc
  14294. * src/Checksum.h
  14295. * src/message.h
  14296. * src/IteratableChecksumValidator.h
  14297. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  14298. inside it.
  14299. * src/SegmentMan.{h, cc}
  14300. (checkIntegrity): Removed.
  14301. * src/IteratableChunkChecksumValidator.{h, cc}
  14302. * src/Util.h
  14303. (sha1Sum): Removed.
  14304. (simpleMessageDigest): Removed.
  14305. (fileChecksum): Removed.
  14306. (computeFastSet): Removed.
  14307. * src/ShaVisitor.cc
  14308. * src/ChunkChecksum.h
  14309. * src/DownloadCommand.cc
  14310. Removed messageDigest virtual functions.
  14311. * src/MultiDiskAdaptor.{h, cc}
  14312. * src/DiskAdaptor.h
  14313. * src/ByteArrayDiskWriter.h
  14314. * src/DiskWriter.h
  14315. * src/DiskAdaptorWriter.h
  14316. * src/AbstractSingleDiskAdaptor.{h, cc}
  14317. * src/AbstractDiskWriter.{h, cc}
  14318. Fixed comilation error when message digest is disabled.
  14319. * src/MetalinkEntry.{h, cc}
  14320. * src/MetalinkRequestInfo.cc
  14321. Removed srandom and random.
  14322. * src/SimpleRandomizer.h
  14323. Added size() virtual function to DiskAdaptor
  14324. * src/MultiDiskAdaptor.h
  14325. Fixed the bug that causes that files are not opened correctly in
  14326. multi-file torrent.
  14327. * src/TorrentRequestInfo.cc
  14328. * src/MultiDiskAdaptor.cc
  14329. Added SHA256 support
  14330. * src/messageDigest.cc
  14331. * src/Xml2MetalinkProcessor.cc
  14332. Show supported message digest algorithms
  14333. * src/main.cc
  14334. Updated contact info.
  14335. * src/main.cc
  14336. Applied Ross's patch
  14337. * src/a2netcompat.h
  14338. * src/main.cc
  14339. Fixed the bug that prevents a remote metalink from not being processed
  14340. even if '-o foo.metalink' is specified.
  14341. * src/MetalinkRequestInfo.cc
  14342. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14343. Merged Dan's patch:
  14344. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  14345. Use va_copy to avoid core dump on amd64:
  14346. * src/SimpleLogger.cc
  14347. Updated contact info.
  14348. * src/main.cc
  14349. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  14350. digest is not available.
  14351. * src/MetalinkEntry.h
  14352. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14353. Make a2netcompat.h include a2io.h to fix compilation error:
  14354. * src/a2netcompat.h
  14355. * src/SocketCore.cc: Removed include of a2io.h
  14356. * src/Util.cc: Removed include of a2io.h
  14357. Gather time related functions to a2time.h:
  14358. * src/a2time.h: New file.
  14359. * src/DefaultPeerStorage.cc
  14360. * src/SimpleLogger.cc
  14361. * src/Util.{h, cc}
  14362. * src/SimpleRandomizer.h
  14363. * src/TimeA2.{h,cc}
  14364. * src/DownloadCommand.cc
  14365. * src/main.cc
  14366. Removed #ifdef __MINGW32__ since gai_strerror is included in
  14367. a2netcompat.h:
  14368. * src/NameResolver.cc
  14369. Fixed compilation error without openssl:
  14370. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  14371. Added default block to suppress compiler warnings:
  14372. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  14373. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  14374. MinGW build enhancements. The following files are added:
  14375. * src/gai_strerror.{c,h}
  14376. * src/gettimeofday.{c,h}
  14377. Changes to support the above new files:
  14378. * configure.ac
  14379. * src/Makefile.am
  14380. * src/a2netcompat.h
  14381. * src/TimeA2.cc
  14382. * src/DefaultPeerStorage.cc
  14383. * src/NameResolver.cc: removed mingw_strerror() function.
  14384. * src/SocketCore.cc: removed mingw_strerror() function.
  14385. Miscellaneous MinGW build fixes.
  14386. * src/a2io.h: Use _lseeki64() instead of lseek()
  14387. * src/common.h
  14388. * src/DefaultFileAllocator.cc
  14389. * src/GlowFileAllocator.cc
  14390. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  14391. * src/NameResolver.cc
  14392. (callback): Changed int32_t to int.
  14393. (resolve): Changed int32_t to int.
  14394. * src/Platform.cc
  14395. * src/Platform.h
  14396. * test/MultiDiskWriterTest.cc
  14397. * test/PeerMessageUtilTest.cc
  14398. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  14399. Other enhancements and fixes.
  14400. * src/HttpRequestCommand.cc
  14401. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  14402. * src/SocketCore.cc:
  14403. (error): New function to abstract errno/WSAGetLastError().
  14404. (errorMsg): New function to abstract errno/WSAGetLastError().
  14405. (initiateSecureConnection): Added more detailed error reporting.
  14406. * src/SocketCore.h: Added private variable blocking, to allow
  14407. proper handling of OpenSSL psuedo-errors.
  14408. * src/message.h
  14409. (EX_SSL_INIT_FAILURE)
  14410. (EX_SSL_IO_ERROR)
  14411. (EX_SSL_PROTOCOL_ERROR)
  14412. (EX_SSL_UNKNOWN_ERROR)
  14413. (EX_SSL_CONNECT_ERROR)
  14414. (EX_SOCKET_BLOCKING)
  14415. (EX_SOCKET_NONBLOCKING)
  14416. (EX_SOCKET_UNKNOWN_ERROR)
  14417. * src/Util.cc
  14418. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  14419. reserved name.
  14420. (httpGMT): Fixed typo.
  14421. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14422. Merged Ross's win32 patch(manually)
  14423. In the course of merging, following files are added.
  14424. * src/strptime.{h,c}
  14425. * src/libgen.{h,c}
  14426. * src/inet_aton.{h,c}
  14427. * src/Platform.{h,cc}
  14428. * src/localtime_r.{h,c}
  14429. * src/getaddrinfo.{h,c}
  14430. I've gethered network related things, and put them to following file:
  14431. * src/a2netcompat.h
  14432. Also io related things are put to following file:
  14433. * src/a2io.h
  14434. Changed %lld to %s because mingw32 doesn't recognize %lld.
  14435. * src/message.h
  14436. (MSG_ALLOCATION_COMPLETED)
  14437. (EX_TOO_LARGE_FILE)
  14438. (EX_SIZE_MISMATCH)
  14439. (EX_FILE_OFFSET_OUT_OF_RANGE)
  14440. (EX_INVALID_CHUNK_CHECKSUM)
  14441. (EX_INVALID_RANGE_HEADER)
  14442. * src/FileAllocationCommand.cc
  14443. * src/HttpResponse.cc
  14444. * src/RequestGroup.cc
  14445. * src/MultiDiskAdaptor.cc
  14446. * src/OptionHandlerImpl.h
  14447. * src/HttpResponseCommand.cc
  14448. * src/FtpNegotiateCommand.cc
  14449. * src/IteratableChecksumValidator.cc
  14450. * src/SegmentMan.cc
  14451. * src/ChunkChecksumValidator.cc
  14452. Added Randomizer::getRandomNumber(long int)
  14453. * src/Randomizer.h (getRandomNumber)
  14454. * src/SimpleRandomizer.h (getRandomNumber)
  14455. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  14456. * src/Util.cc (randomAlpha): Use this new function.
  14457. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14458. Converted int's to in32_t. long long int's are also converted to
  14459. int64_t
  14460. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14461. Fixed the bug that prevents cookies from being sent to the server
  14462. if the domain of cookie is FQDN and starts with ".".
  14463. * src/Cookie.cc (match)
  14464. To add the ability to change peer id.
  14465. * src/DefaultBtContext.h
  14466. (_peerIdPrefix): New variable
  14467. (setPeerIdPrefix): New function.
  14468. * src/torrentRequestInfo.cc
  14469. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  14470. DefaultBtContext.
  14471. * src/main.cc (main): Added peer-id-prefix command-line option.
  14472. The usage message is not added yet.
  14473. * src/DefaultBtContext.cc
  14474. (generatePeerId): Use _peerIdPrefix.
  14475. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  14476. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14477. Fixed the bug that prevents filename in content-disposition from
  14478. being retrieved when filename is not quoted.
  14479. * src/Util.cc (getContentDispositionFilename)
  14480. Fixed the bug that causes infinate loop and memory leak when file open
  14481. operation failed.
  14482. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  14483. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14484. Fixed the bug that causes segfault when all URIs specified are
  14485. unsupported.
  14486. * src/RequestGroupMan.cc (getInitialCommands)
  14487. Check if RequestGroup::createNextCommand() returns empty list of
  14488. commands.
  14489. * src/RequestGroup.cc (createNextCommand)
  14490. Change log level from info to error so that users can notice that
  14491. an error occurred.
  14492. Fixed the bug that causes segfault when a zero-sized file is
  14493. downloaded.
  14494. * src/BitfieldMan.cc (isAllBitSet)
  14495. Return true if bitfieldLength is 0.
  14496. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14497. * src/main.cc
  14498. (showUsage): Added 3 usage examples for metalink download.
  14499. Replace MetalinkChunkChecksum with ChunkChecksum.
  14500. * src/MetalinkChunkChecksum.h: Removed.
  14501. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  14502. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  14503. * src/Xml2MetalinkProcessor.cc
  14504. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  14505. * src/MetalinkRequestInfo.cc (execute)
  14506. * Release 0.11.1
  14507. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14508. Reads URIs from stdin when "-i -" is specified.
  14509. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  14510. * src/UriListParser.h, src/UriListParser.cc: New class.
  14511. * src/StreamUriListParser.h: New class.
  14512. * src/FileUriListParser.h: New class.
  14513. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  14514. instead of UriFileListParser.
  14515. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14516. Made console readout more readable.
  14517. * src/ConsoleDownloadEngine.cc (sendStatistics)
  14518. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14519. Fix the bug that causes -s option not to work.
  14520. * src/main.cc (main)
  14521. * src/a2algo.h: New file.
  14522. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14523. Create directory structure specified in metalink file.
  14524. * src/RequestGroup.h, src/RequestGroup.cc
  14525. (initAndOpenFile): Create a directory to store files if it does not
  14526. exist.
  14527. (getDir): New function.
  14528. Added ETA and download speed for an individual file to readout.
  14529. * src/ConsoleDownloadEngine.cc (sendStatistics)
  14530. * src/RequestGroup.h
  14531. (calculateDownloadSpeed): New function.
  14532. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14533. Made -S option work with metalink file and provided selective download
  14534. to metalink.
  14535. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  14536. (filename): Removed.
  14537. (file): New variable.
  14538. (size): Removed.
  14539. (operator=): Updated.
  14540. (getPath): New function.
  14541. (getLength): New function.
  14542. (toFileEntry): New function.
  14543. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  14544. (execute): Use toStream.
  14545. (showFileEntry): Removed.
  14546. * src/MetalinkRequestInfo.h
  14547. (targetFiles): New variable.
  14548. (setTargetFiles): New variable.
  14549. * src/MetalinkRequestInfo.cc
  14550. (execute): Added the ability to print file information included in
  14551. a metalink file.
  14552. Added selective download mode to metalink.
  14553. * src/main.cc
  14554. (showUsage): Updated to denote that -S and --select-file options are
  14555. applicable to metalink.
  14556. * src/FileEntry.h
  14557. (operator=): New function.
  14558. (getBasename): New function.
  14559. (getDirname): New function.
  14560. * src/Util.h, src/Util.cc
  14561. (toStream): New function.
  14562. * src/Xml2MetalinkProcessor.cc: Updated.
  14563. Made aria2 work with metalink with directory structure.
  14564. * src/File.h, src/File.cc
  14565. (getBasename): New function.
  14566. (getDirname): New function.
  14567. * src/RequestGroup.h, src/RequestGroup.cc
  14568. (_topDir): New variable.
  14569. (setTopDir): New function.
  14570. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  14571. Rewrote HTTP header parsing with stringstream.
  14572. * src/HttpConnection.h, src/HttpConnection.cc
  14573. (HttpRequestEntry): New class.
  14574. (headerBuf): Removed.
  14575. (headerBufLength): Removed.
  14576. (outstandingHttpRequests): Now its element type is
  14577. HttpRequestEntryHandle.
  14578. (findEndOfHeader): Removed.
  14579. (receiveResponse): Rewritten.
  14580. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  14581. Updated doc for -j option to notice that it should be used with -i
  14582. option.
  14583. * src/main.cc (showUsage)
  14584. Removed unused classes.
  14585. * src/RequestInfo.h
  14586. (FileInfo): Removed.
  14587. (checksum): Removed.
  14588. (fileInfo): Removed.
  14589. (setChecksum): Removed.
  14590. (getChecksum): Removed.
  14591. (getFileInfo): Removed.
  14592. Use ISO units.
  14593. * src/ConsoleDownloadEngine.cc
  14594. * src/TorrentConsoleDownloadEngine.cc
  14595. * src/Util.cc (abbrevSize)
  14596. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14597. Added the default listening ports to the help message.
  14598. * src/main.cc (showUsage)
  14599. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14600. Reduce the number of calls to gettimeofday to lower CPU load.
  14601. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  14602. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  14603. * src/Peer.h (calculateUploadSpeed): New function.
  14604. (calculateDownloadSpeed): New function.
  14605. * src/DefaultPeerStorage.cc
  14606. (CalculateStat): Added _now variable.
  14607. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  14608. and Peer::calculateUploadSpeed(const struct timeval&)
  14609. Drop connection if no request or piece message is exchanged in
  14610. a certain interval.
  14611. * src/DefaultBtInteractive.h
  14612. (btRuntime): New variable.
  14613. (inactiveCheckPoint): New variable.
  14614. (checkActiveInteraction): New function.
  14615. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  14616. request or piece message is received.
  14617. (checkActiveInteraction): New function.
  14618. (doInteractionProcessing): Call checkActiveInteraction.
  14619. Fixed the bug that causes remote Metalink and Torrent files are not
  14620. processed.
  14621. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  14622. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14623. Changed format of log file.
  14624. * src/SimpleLogger.cc
  14625. * Release 0.11.0
  14626. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14627. * src/AbstractCommand.cc
  14628. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  14629. MSG_MAX_TRY from error to info.
  14630. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  14631. * src/message.h
  14632. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  14633. (MSG_DOWNLOAD_ABORTED): Added %s.
  14634. (MSG_RESTARTING_DOWNLOAD): Added %s.
  14635. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  14636. * src/PeerAbstractCommand.cc
  14637. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  14638. * src/Request.h
  14639. (cookieBox): Made ShardHandle.
  14640. * src/RequestGroup.h, src/RequestGroup.cc
  14641. (createNextCommandWithAdj): New function.
  14642. * src/FileAllocationCommand.cc
  14643. (executeInternal): Use createNextCommandWithAdj().
  14644. * src/CheckIntegrityCommand.cc
  14645. (executeInternal): Use createNextCommandWithAdj().
  14646. Added --load-cookies command-option.
  14647. * src/OptionHandlerFactory.cc
  14648. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  14649. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  14650. Now aria2 can handle cookie's expiration date.
  14651. * src/Cookie.h (expires): Changed its type to time_t.
  14652. * src/main.cc: Added --load-cookies command-line option.
  14653. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  14654. * src/Util.h, src/Util.cc (httpGMT): New function.
  14655. * src/Request.cc (Request): Initialize cookieBox using
  14656. CookieBoxFactory.
  14657. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  14658. * src/CookieParser.h, src/CookieParser.cc: New class.
  14659. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  14660. * src/HttpResponseCommand.cc
  14661. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  14662. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  14663. download.
  14664. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14665. Added -j command-line option.
  14666. * src/OptionHandlerFactory.cc (createOptionHandlers)
  14667. * src/main.cc
  14668. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  14669. Rewritten using stringstream.
  14670. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  14671. Rewritten using stringstream.
  14672. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14673. Make download size shown in MB, KB.
  14674. * src/ConsoleDownloadEngine.h (sendStatistics)
  14675. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  14676. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14677. Accept incoming connections if download rate is low.
  14678. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  14679. (_lowestSpeedLimit): New variable.
  14680. (setLowestSpeedLimit): New function.
  14681. (execute): Accept incoming connections if download rate is low.
  14682. MAX_PEERS is ignored in this case.
  14683. Disable PREF_OUT in multiple concurrent download:
  14684. * src/RequestGroup.h, src/RequestGroup.cc
  14685. (setUserDefinedFilename): New function.
  14686. * src/DownloadEngineFactory.cc
  14687. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  14688. concurrent download.
  14689. * src/DefaultSegmentManFactory.cc
  14690. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  14691. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14692. RequestGroup::getNextCommand() was renamed to createNextCommand().
  14693. Added its overloaded method.
  14694. * src/RequestGroup.h
  14695. (_numConcurrentCommand): New variable.
  14696. (setNumConcurrentCommand): New function.
  14697. * src/RequestGroup.cc
  14698. Abort download if same file is being downloaded concurrently.
  14699. * src/RequestGroup.h, src/RequestGroupMan.cc
  14700. (isSameFileBeingDownloaded): New function.
  14701. * src/HttpResponseCommand.cc (executeInternal)
  14702. * src/FtpNegotiateCommand.cc (recvSize)
  14703. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  14704. * main.cc: Added help message for -i option.
  14705. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14706. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  14707. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  14708. * src/MetalinkEntry.h
  14709. (checksum): Changed to ChecksumHandle
  14710. * src/MetalinkRequestInfo.cc
  14711. (checksum): Changed to ChecksumHandle
  14712. * src/File.cc
  14713. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  14714. * src/common.h
  14715. (DIR_OPEN_MODE): New definition
  14716. * src/RequestGroup.cc
  14717. (prepareForNextAction): Added an argument.
  14718. * src/message.h
  14719. (MSG_GOOD_CHECKSUM): New definition
  14720. (MSG_BAD_CHECKSUM): New definition
  14721. * src/HttpResponseCommand.cc
  14722. (handleDefaultEncoding): Continue download sequence in new
  14723. non-segmented download.
  14724. * src/FileAllocationEntry.h
  14725. (_nextDownloadCommand): New variable.
  14726. * src/DownloadCommand.cc
  14727. (prepareForNextSegment): Create ChecksumCommand if checksum is
  14728. available.
  14729. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  14730. * src/IteratableChecksumValidator.h,
  14731. src/IteratableChecksumValidator.cc: New class.
  14732. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  14733. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14734. Change file mode to 666:
  14735. * src/common.h (OPEN_MODE): New definition.
  14736. * src/File.cc
  14737. * src/Util.cc
  14738. * src/Directry.cc
  14739. * src/AbstractDiskWriter.cc
  14740. Change the level of log message "download aborted" to debug:
  14741. * src/PeerAbstractCommand.cc (execute)
  14742. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  14743. * src/TrackerWatcherCommand.cc
  14744. (createCommand): Sleep some seconds after request failed.
  14745. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  14746. then abort tracker request.
  14747. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14748. * Added the simultaneous download feature.
  14749. * src/main.cc: Print "Exception caught: " when exception is caught.
  14750. Use CUIDCounter instead of BtRuntime::getNewCuid():
  14751. * src/ActivePeerConnectionCommand.cc
  14752. * src/PeerInteractionCommand.cc
  14753. * src/BtRuntime.h
  14754. (cuidCounter): Removed.
  14755. (getNewCuid): Removed.
  14756. * src/DownloadEngineFactory.cc
  14757. * src/PeerListenCommand.cc
  14758. * src/TrackerUpdateCommand.cc
  14759. * src/PeerInitiateConnectionCommand.cc
  14760. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14761. * src/PeerAbstractCommand.cc
  14762. (onAbort): Call PeerStorage::returnPeer()
  14763. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  14764. (incomingPeers): New variable.
  14765. (addIncomingPeer): New function.
  14766. (returnPeer): New function.
  14767. (onErasingPeer): New function.
  14768. (addPeer): push_back -> push_front
  14769. (getActivePeers): Rewritten.
  14770. (calculateStat): Rewritten.
  14771. * src/PeerStorage.h
  14772. (TransferStat::copy): New function.
  14773. (TransferStat::TransferStat): New function.
  14774. (TransferStat::operator=): New function.
  14775. (addIncomingPeer): New function.
  14776. (returnPeer): New function.
  14777. * src/PeerListenCommand.cc
  14778. (execute): Use PeerStorage::addIncomingPeer() instead of
  14779. Peer::addPeer().
  14780. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14781. Connect to a peer actively when download speed is lower than specified
  14782. speed in torrent download:
  14783. * src/ActivePeerConnectionCommand.h: New class.
  14784. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14785. * src/HttpRequest.cc (createRequest): url-encode user-agent
  14786. * src/main.cc: Fixed the bug that prevents download if .netrc
  14787. doesn't exist.
  14788. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14789. To cache resolved hostname:
  14790. * src/AbstractCommand.h, src/AbstractCommand.cc
  14791. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  14792. Added dns cache.
  14793. * src/FtpInitiateConnectionCommand.cc
  14794. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  14795. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  14796. NameResolver working without ares.
  14797. * src/TorrentRequestInfo.cc
  14798. (execute): Don't cache dns in torrent download.
  14799. * src/HttpInitiateConnectionCommand.cc
  14800. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  14801. * src/DNSCache.h: New class.
  14802. * src/UrlRequestInfo.cc
  14803. (execute): Use dns cache.
  14804. In http request, suppress port number in http request header if port
  14805. is 80 or 443:
  14806. * src/HttpRequest.cc (getHostText): Suppress port number in http
  14807. request header if port is 80 or 443.
  14808. (createProxyRequest): Allways send port number.
  14809. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14810. To add the command-line option which disables netrc support:
  14811. * src/OptionHandlerFactory.cc
  14812. (createOptionHandlers): Added PREF_NO_NETRC.
  14813. * src/main.cc: Added -n option.
  14814. * src/prefs.h (PREF_NO_NETRC): New definition.
  14815. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  14816. V_TRUE.
  14817. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  14818. is V_FALSE. This may get configurable in the future release.
  14819. To clear peer's error status by time basis:
  14820. * src/PeerAbstractCommand.cc
  14821. (onAbort): Call Peer::startBadCondition().
  14822. * src/Peer.h, src/Peer.cc
  14823. (error): Removed.
  14824. (_badConditionStartTime): New variable.
  14825. (_badConditionInterval): New variable. Initialized to 10 seconds.
  14826. (startBadCondition): New function.
  14827. (isGood): New function.
  14828. * src/DefaultPeerStorage.cc
  14829. (addPeer): Use Peer::isGood().
  14830. (FindFinePeer): Use Peer::isGood().
  14831. Always include port number in http request header:
  14832. * src/HttpRequest.cc (getHostText): Always include port number in
  14833. http request header.
  14834. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14835. To the ability to read options from a config file:
  14836. * src/main.cc: Command-line parameter validation is delegated to
  14837. OptionHandler class.
  14838. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  14839. * src/Option.h, src/Option.cc (clear): New function.
  14840. * src/OptionParser.h, src/OptionParser.cc: New class.
  14841. * src/OptionHandler.h: New class.
  14842. * src/NameMatchOptionHandler.h: New class.
  14843. * src/OptionHandlerImpl.h: New classes.
  14844. * src/prefs.h: '_' -> '-'
  14845. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  14846. (FTP_PASV): New definition.
  14847. * src/Util.h, src/Util.cc (getRealSize): New function.
  14848. To disable netrc support if .netrc file does not have correct
  14849. permissions:
  14850. * src/File.h, src/File.cc (mode): New function.
  14851. To prevent confidential information to be logged:
  14852. * src/HttpConnection.h, src/HttpConnection.cc
  14853. (eraseConfidentialInfo): New function.
  14854. (sendRequest): Call eraseConfidentialInfo().
  14855. (sendProxyRequest): Call eraseConfidentialInfo().
  14856. * src/main.cc: Validate permissions of .netrc file.
  14857. To add --user-agent command-line option:
  14858. * src/main.cc: Added new command line option: --user-agent
  14859. * src/prefs.h (PREF_USER_AGENT): New definition.
  14860. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  14861. parameter to HttpRequest object.
  14862. * src/AbstractProxyRequestCommand.cc
  14863. (executeInternal): Set user-agent option parameter to HttpRequest
  14864. object.
  14865. Marged the patches from Dan Fandrich.
  14866. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14867. Use filename and size from Metalink file instead of sending HEAD
  14868. request:
  14869. * src/UrlRequestInfo.h
  14870. (_filename): New variable.
  14871. (_totalLength): New variable.
  14872. (setTotalLength): New variable.
  14873. (setFilename): New variable.
  14874. * src/MetalinkRequestInfo.cc
  14875. (execute): Set filename and size to UrlRequestInfo
  14876. * src/UrlRequestInfo.cc
  14877. (execute): Use filename and size from Metalink instead of seding
  14878. HEAD request to servers.
  14879. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14880. To add the ability to resume downloading a partially downloaded file
  14881. which is downloaded from the beginning:
  14882. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  14883. takes this role.
  14884. * src/main.cc: Added -c option.
  14885. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  14886. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  14887. * src/prefs.h (PREF_CONTINUE): New definition.
  14888. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  14889. * src/DefaultDiskWriter.cc
  14890. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  14891. * src/AbstractDiskWriter.h
  14892. (glowFileAllocator): New variable.
  14893. * src/AbstractDiskWriter.cc
  14894. (openExistingFile): Now preallocate file space from the end of the
  14895. existing file if totalLength argument is specified and grater than 0.
  14896. * src/UrlRequestInfo.cc: If -c option is specified and the file
  14897. to download exists in local, continue the download of the file.
  14898. --allow-overwrite=true is assumed in this context.
  14899. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  14900. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  14901. Throw exception if --check-integrity=true is specified but chunk
  14902. checksums are not provided:
  14903. * src/UrlRequestInfo.cc
  14904. Do not print URLs to stdout:
  14905. * src/UrlRequestInfo.cc
  14906. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14907. * src/Request.h: Use AuthResolver to get authentication information.
  14908. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  14909. set to RequestFactory object.
  14910. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  14911. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  14912. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  14913. create Request object.
  14914. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  14915. To integrate Netrc into exsiting classes:
  14916. * src/Request.h
  14917. (_userDefinedAuthConfig): New variable.
  14918. (findNetrcAuthenticator): New function.
  14919. (segment): Removed.
  14920. (setUserDefinedAuthConfig): New function.
  14921. (resolveHttpAuthConfigItem): New function.
  14922. (resolveFtpAuthConfigItem): New function.
  14923. (resolveHttpProxyAuthConfigItem): New function.
  14924. * src/HttpRequest.h
  14925. (authConfig): Removed.
  14926. (proxyAuthConfig): Removed.
  14927. (setAuthConfig): Removed.
  14928. (setProxyAuthConfig): Removed.
  14929. * src/UrlRequest.h
  14930. (getHeadResult): Added a parameter: authConfigHandle
  14931. * src/common.h
  14932. (SingletonHolder.h): New include.
  14933. * src/main.cc
  14934. (Netrc.h): New include.
  14935. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  14936. Added initial value of PREF_NETRC_PATH.
  14937. Added the initialization of netrc.
  14938. * src/AuthConfig.h: New class.
  14939. * src/prefs.h
  14940. (PREF_NETRC_PATH): New definition.
  14941. * src/HttpAuthConfig.h: Removed.
  14942. * src/Netrc.cc
  14943. (getRequiredNextToken): New function.
  14944. (skipMacdef): New function.
  14945. (parse): Rewritten.
  14946. * src/Netrc.h
  14947. (getRequiredNextToken): New function.
  14948. (skipMacdef): New function.
  14949. * src/Util.h, src/Util.cc
  14950. (getHomeDir): New function.
  14951. * src/TrackerWatcherComand.cc
  14952. (createRequestCommand): Use AuthConfig.
  14953. * src/FtpConnection.cc
  14954. (sendUser): Use Request::resolveFtpAuthConfigItem().
  14955. (sendPass): Use Request::resolveFtpAuthConfigItem().
  14956. * src/Request.cc
  14957. (findNetrcAuthenticator): New function.
  14958. (resolveHttpAuthConfigItem): New function.
  14959. (resolveFtpAuthConfigItem): New function.
  14960. (resolveHttpProxyAuthConfigItem): New function.
  14961. * src/UrlRequestInfo.cc: Use AuthConfig.
  14962. * src/HttpRequest.cc
  14963. (createRequest): Use authConfig.
  14964. (getProxyAuthString): Use authConfig.
  14965. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  14966. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  14967. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14968. To reduce overhead to find commands whose socket is either
  14969. readable or writable in the download engine loop:
  14970. * src/Command.h, src/Command.cc
  14971. (STATUS): New enum.
  14972. (status): New variable.
  14973. (statusMatch): New function.
  14974. (setStatusActive): New function.
  14975. (setStatusInactive): New function.
  14976. * src/DownloadEngine.h, src/DownloadEngine.cc
  14977. (executeCommand): New function.
  14978. (run): Simplified.
  14979. (waitData): Call Command::setStatusActive() when command's socket is
  14980. readable or writable.
  14981. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14982. To handle Segment as SegmentHandle:
  14983. * src/AbstractCommand.cc (execute): Rewritten.
  14984. * src/SegmentMan.h: Segment -> SegmentHandle
  14985. Introducded HttpResponse class, HttpRequest class to improve code
  14986. extensiveness and make it clear:
  14987. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  14988. HttpResponse class.
  14989. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  14990. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  14991. * src/HttpConnection.cc: Contruction of http request were moved to
  14992. HttpRequest class.
  14993. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  14994. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  14995. * src/HttpAuthConfig.h: New class.
  14996. * src/Range.h: New class.
  14997. To make FtpTunnel{Request, Response}Command and
  14998. HttpProxy{Request, Response}Command derived from
  14999. AbstractProxy{Request, Response}Command:
  15000. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  15001. Derived from AbstractProxyRequestCommand class.
  15002. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  15003. Derived from AbstractProxyResponseCommand class.
  15004. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  15005. Derived from AbstractProxyRequestCommand class.
  15006. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  15007. Derived from AbstractProxyResponseCommand class.
  15008. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  15009. : New class.
  15010. * src/AbstractProxyResponseCommand.h,
  15011. src/AbstractProxyResponseCommand.cc: New class.
  15012. To add netrc support:
  15013. * src/Netrc.h, src/Netrc.cc: New class.
  15014. * src/Util.h, src/Util.cc (split): New function.
  15015. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  15016. "Content-Range" header instead of "Range" header.
  15017. * src/HttpHeader.h
  15018. (getStatus): Removed.
  15019. (setStatus): Removed.
  15020. * src/Segment.h
  15021. (getPositionToWrite): New function.
  15022. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15023. * src/HttpHeader.h
  15024. (Range.h): New include.
  15025. (status): New variable.
  15026. (HttpHeader): Initialized status with 0.
  15027. (getStatus): New function.
  15028. (setStatus): New function.
  15029. (getRange): New function.
  15030. (HttpHeaderHandle): New function.
  15031. * src/HttpHeader.cc
  15032. (getRange): New function.
  15033. * src/Request.h
  15034. (RequestWeakHandle): New definition.
  15035. * src/HttpConnection.h
  15036. (HttpConnectionHandle): New type definition.
  15037. * src/HttpConnection.cc
  15038. (receiveResponse): Set HTTP status to headers.
  15039. * src/main.cc
  15040. (showUsage): Fixed typo.
  15041. * src/Segment.h
  15042. (SegmentHandle): New type definition.
  15043. * src/BitfieldMan.h
  15044. (getMissingUnusedLength): New function.
  15045. * src/BitfieldMan.cc
  15046. (getMissingUnusedLength): New function.
  15047. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15048. To fix static initialization order problem:
  15049. * src/BitfieldManFactory.h
  15050. (defaultRandomizer): Removed.
  15051. (factory): New variable.
  15052. (getNewFactory): Removed.
  15053. (getFactoryInstance): New function.
  15054. (setDefaultRandomizer): Rewritten.
  15055. (getDefaultRandomizer): Rewritten.
  15056. * src/BitfieldManFactory.cc
  15057. (defaultRandomizer): Removed.
  15058. (factory): Initialized to 0.
  15059. (BitfieldManFactory): Initialized randomizer to 0.
  15060. * src/DefaultPieceStorage.cc
  15061. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  15062. * src/Peer.cc
  15063. (Peer): getNewFactory() -> getFactoryInstance()
  15064. * src/SegmentMan.cc
  15065. (initBitfield): getNewFactory() -> getFactoryInstance()
  15066. * src/Piece.cc
  15067. (Piece): getNewFactory() -> getFactoryInstance()
  15068. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15069. To fix the bug that causes crash on Max OS X:
  15070. * src/SimpleRandomizer.h
  15071. (getInstance): Create new instance if the static variable is null.
  15072. * src/SimpleRandomizer.cc
  15073. (randomizer): Initialized to 0.
  15074. * src/BitfieldManFactory.h
  15075. (getNewFactory): Removed the call to setRandomizer().
  15076. To fix the miscalculation of the range of checksum:
  15077. * src/BitfieldMan.h
  15078. (isBitSetOffsetRange): New function.
  15079. * src/BitfieldMan.cc
  15080. (isBitSetOffsetRange): New function.
  15081. * src/SegmentMan.cc
  15082. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  15083. Use bitfield->getBlockLength() instead of segment.segmentLength.
  15084. * Release 0.10.1
  15085. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15086. To lower CPU usage in BitTorrent download when --max-upload-limit
  15087. command-line option specified:
  15088. * src/DefaultBtMessageDispatcher.cc
  15089. (sendMessages): Calculate uploading speed only when current message
  15090. is uploading data and is not sent yet.
  15091. * src/DefaultPeerStorage.h
  15092. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  15093. * src/HttpResponseCommand.cc
  15094. (handleDefaultEncoding): Added the cast to int32_t to itos.
  15095. This fixes compile error in Soralis 10.
  15096. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15097. To fix segfault in Metalink download:
  15098. * src/UrlRequestInfo.h
  15099. (filename): Removed.
  15100. (totalLength): Removed.
  15101. (setTotalLength): Removed.
  15102. (setFilename): Removed.
  15103. * src/MetalinkRequestInfo.cc
  15104. (execute): Do not set filename and totalLength to reqInfo.
  15105. Set chunk checksum to reqInfo if it is not null.
  15106. * src/HttpResponseCommand.cc
  15107. (executeInternal): Fixed filename in log.
  15108. (handleDefaultEncoding): Removed the call to initBitfield() and
  15109. markAllPiecesDone().
  15110. (handleOtherEncoding): Added HEAD method handling.
  15111. * src/FtpNegotiateCommand.cc
  15112. (executeInternal): Added SEQ_HEAD_OK handling.
  15113. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  15114. return false.
  15115. * src/FtpNegotiateCommand.h
  15116. (SEQ_HEAD_OK): New definition.
  15117. * src/SegmentMan.cc
  15118. (initBitfield): Delete bitfield.
  15119. (isChunkChecksumValidationReady): Fixed the condition.
  15120. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  15121. works fine.
  15122. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15123. * src/Xml2MetalinkProcessor.h
  15124. (xpathExists): New function.
  15125. * src/Xml2MetalinkProcessor.cc
  15126. (xpathExists): New function.
  15127. Not to send HEAD request if filename and size are available in Metalink
  15128. file:
  15129. * src/UrlRequestInfo.h
  15130. (filename): New variable.
  15131. (totalLength): New variable.
  15132. (setTotalLength): New function.
  15133. (setFilename): New function.
  15134. * src/MetalinkRequestInfo.cc
  15135. (execute): Set filename and size to UrlRequestInfo.
  15136. * src/MetalinkEntry.cc
  15137. (MetalinkEntry): Initialize size with 0.
  15138. * src/UrlRequestInfo.cc
  15139. (execute): Set filename and size to SegmentMan.
  15140. Not to download rest of the files after selected files are downloaded
  15141. in BitTorrent:
  15142. * src/PieceStorage.h
  15143. (allDownloadFinished): New function.
  15144. * src/DefaultBtAnnounce.cc
  15145. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  15146. downloadFinished.
  15147. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  15148. * src/DefaultPieceStorage.cc
  15149. (completePiece): Use allDownloadFinished instead of downloadFinished.
  15150. Commented out the call to finishSelectiveDownloadingMode().
  15151. (downloadFinished): Call isFilteredAllBitSet() instead of
  15152. isAllBitSet().
  15153. (allDownloadFinished): New function.
  15154. * src/DefaultBtInteractive.cc
  15155. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  15156. downloadFinished().
  15157. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  15158. * src/TorrentDownloadEngine.cc
  15159. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  15160. * src/BitfieldMan.h
  15161. (isFilteredAllBitSet): New function.
  15162. * src/ShareRatioSeedCriteria.h
  15163. (PieceStorage.h): New include.
  15164. (pieceStorage): New variable.
  15165. (evaluate):
  15166. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  15167. * src/BitfieldMan.cc
  15168. (isFilteredAllBitSet): New function.
  15169. (isAllBitSet): Filter is not took into account.
  15170. Rename --force-truncate as --allow-overwrite:
  15171. * src/TorrentRequestInfo.cc
  15172. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  15173. * src/main.cc
  15174. (showUsage): --force-truncate -> --allow-overwrite
  15175. * src/message.h
  15176. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  15177. * src/prefs.h
  15178. (PREF_FORCE_TRUNCATE): Removed.
  15179. (PREF_ALLOW_OVERWRITE): New definition.
  15180. * src/SegmentMan.cc
  15181. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  15182. * src/MetalinkRequestInfo.cc
  15183. (execute): Queueing message are now logged in info level.
  15184. * src/common.h
  15185. (LONG_LONG_MAX): Removed.
  15186. (LONG_LONG_MIN): Removed.
  15187. * src/HttpResponseCommand.cc
  15188. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  15189. * src/FtpNegotiateCommand.cc
  15190. (recvSize): LONG_LONG_MAX -> INT64_MAX
  15191. * src/main.cc
  15192. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  15193. command-line option.
  15194. (main): Added --check-integriy and --realtime-chunk-checksum
  15195. command-line option.
  15196. --force-truncate -> --allow-overwrite
  15197. Set initial value of --check-integrity option to false.
  15198. Don't show usage when error occurs while persing command-line options.
  15199. Removed deprecated --upload-limit option.
  15200. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15201. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  15202. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  15203. * src/BtAllowedFastMessage.cc:
  15204. * src/BtBitfieldMessage.cc
  15205. * src/BtCancelMessage.cc
  15206. * src/BtChokeMessage.cc
  15207. * src/BtHaveAllMessage.cc
  15208. * src/BtHaveMessage.cc
  15209. * src/BtHaveNoneMessage.cc
  15210. * src/BtInterestedMessage.cc
  15211. * src/BtNotInterestedMessage.cc
  15212. * src/BtPieceMessage.cc
  15213. * src/BtPortMessage.cc
  15214. * src/BtRejectMessage.cc
  15215. * src/BtRequestMessage.cc
  15216. * src/BtSuggestPieceMessage.cc
  15217. * src/BtUnchokeMessage.cc
  15218. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  15219. files are affected.
  15220. * src/ChunkChecksumValidator.cc
  15221. * src/SegmentMan.cc
  15222. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15223. To add chunk checksum validation:
  15224. * src/MetalinkEntry.h
  15225. (MetalinkChunkChecksum.h): New include.
  15226. (chunkChecksum): New variable.
  15227. * src/Request.h
  15228. (method): New variable.
  15229. (setMethod): New function.
  15230. (getMethod): New function.
  15231. (METHOD_GET): New static constant.
  15232. (METHOD_HEAD): New static constant.
  15233. * src/Xml2MetalinkProcessor.h
  15234. (getPieceHash): New function.
  15235. * src/PieceStorage.h
  15236. (markAllPiecesDone): New function.
  15237. (checkIntegrity): New function.
  15238. * src/FileAllocator.h
  15239. (NullFileAllocationMonitor.h): New include.
  15240. (FileAllocator): Initialize fileAllocationMonitor with new
  15241. NullFileAllocationMonitor().
  15242. * src/MultiDiskAdaptor.h
  15243. (messageDigest.h): Remove include.
  15244. (ctx): Removed.
  15245. (hashUpdate): Added ctx.
  15246. (MultiDiskAdaptor): Removed ctx.
  15247. (sha1Sum): Renamed as messageDigest.
  15248. (messageDigest): New function.
  15249. * src/UrlRequestInfo.h
  15250. (HeadResult): New class.
  15251. (digestAlgo): New variable.
  15252. (chunkChecksumLength): New variable.
  15253. (chunkChecksums): New variable.
  15254. (getHeadResult): New function.
  15255. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  15256. (setDigestAlgo): New function.
  15257. (setChunkChecksumLength): New function.
  15258. (setChunkChecksums): New function.
  15259. * src/DefaultPieceStorage.cc
  15260. (DiskAdaptorWriter.h): New include.
  15261. (ChunkChecksumValidator.h): New include.
  15262. (markAllPiecesDone): New function.
  15263. (checkIntegrity): New function.
  15264. * src/DefaultBtContext.h
  15265. (getPieceHashes): New function.
  15266. * src/TorrentRequestInfo.cc
  15267. (execute): Try to validate chunk checksum if file already exists and
  15268. .aria2 file doesn't there and user allows aria2 to overwrite it.
  15269. * src/messageDigest.h
  15270. (~MessageDigestContext): Added digestFree().
  15271. * src/MetalinkRequestInfo.cc
  15272. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  15273. * src/DiskAdaptor.h
  15274. (messageDigest.h): New include.
  15275. (sha1Sum): Renamed as messageDigest.
  15276. (messageDigest): New function.
  15277. * src/DownloadCommand.h
  15278. (PeerStat.h): New include.
  15279. (maxDownloadSpeedLimit): New variable.
  15280. (startupIdleTime): New variable.
  15281. (lowestDownloadSpeedLimit): New variable.
  15282. (peerStat): New variable.
  15283. (setMaxDownloadSpeedLimit): New function.
  15284. (setStartupIdleTime): New function.
  15285. (setLowestDownloadSPeedLimit): New function.
  15286. * src/BtContext.h
  15287. (getPieceHashes): New function.
  15288. * src/main.cc
  15289. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  15290. option to true for testing purpose.
  15291. * src/BtPieceMessage.cc
  15292. (checkPieceHash): Use messageDigest
  15293. * src/DownloadEngine.cc
  15294. (SetDescriptor): Removed.
  15295. (AccumulateActiveCommand): Removed.
  15296. (waitData): Rewritten.
  15297. (updateFdSet): Rewritten.
  15298. * src/MultiDiskAdaptor.cc
  15299. (hashUpdate): Added ctx.
  15300. (sha1Sum): Renamed as messageDigest.
  15301. (messageDigest): New function.
  15302. * src/BitfieldMan.h
  15303. (isBitRangeSet): New function.
  15304. (unsetBitRange): New function.
  15305. * src/ByteArrayDiskWriter.h
  15306. (sha1Sum): Renamed as messageDigest.
  15307. (messageDigest): New function.
  15308. * src/ConsoleDownloadEngine.cc
  15309. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  15310. * src/DiskWriter.h
  15311. (messageDigest.h): New include.
  15312. (sha1Sum): Renamed as messageDigest.
  15313. (messageDigest): New function.
  15314. * src/ChunkChecksumValidator.h: New class.
  15315. * src/DiskAdaptorWriter.h: New class.
  15316. * src/prefs.h
  15317. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  15318. (PREF_CHECK_INTEGRITY): New definition.
  15319. * src/HttpResponseCommand.cc
  15320. (handleDefaultEncoding): Added method "HEAD" handling.
  15321. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  15322. (handleOtherEncoding):
  15323. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  15324. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  15325. startupIdleTime, lowestDownloadSpeedLimit to command.
  15326. * src/SegmentMan.h
  15327. (getSegmentEntryByIndex): New function.
  15328. (getSegmentEntryByCuid): New function.
  15329. (getSegmentEntryIteratorByCuid): New function.
  15330. (diskWriter): DiskWriter -> DiskWriterHandle
  15331. (pieceHashes): New variable.
  15332. (chunkHashLength): New variable.
  15333. (digestAlgo): New variable.
  15334. (FindPeerStat): Removed.
  15335. (getPeerStat): Rewritten.
  15336. (markAllPiecesDone): New function.
  15337. (checkIntegrity): New function.
  15338. (tryChunkChecksumValidation): New function.
  15339. (isChunkChecksumValidationReady): New function.
  15340. * src/BitfieldMan.cc
  15341. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  15342. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  15343. blocks to 0.
  15344. (isBitRangeSet): New function.
  15345. (unsetBitRange): New function.
  15346. * src/FtpNegotiateCommand.cc
  15347. (executeInternal): Set maxDownloadSpeedLimit,
  15348. startupIdleTime, lowestDownloadSpeedLimit to command.
  15349. (recvSize): Added method "HEAD" handling.
  15350. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  15351. * src/AbstractSingleDiskAdaptor.cc
  15352. (sha1Sum): Renamed as messageDigest.
  15353. (messageDigest): New function.
  15354. * src/AbstractSingleDiskAdaptor.h
  15355. (sha1Sum): Renamed as messageDigest.
  15356. (messageDigest): New function.
  15357. * src/Util.h
  15358. (indexRange): New function.
  15359. * src/MetalinkEntry.cc
  15360. (MetalinkEntry): Initialized chunkChecksum to 0.
  15361. * src/ShaVisitor.cc
  15362. (~ShaVisitor): Removed the call to ctx.digestFree().
  15363. * src/SegmentMan.cc
  15364. (ChunkChecksumValidator.h): New include.
  15365. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  15366. to DIGEST_ALGO_SHA1.
  15367. (~SegmentMan): Removed diskWriter.
  15368. (FindSegmentEntryByIndex): Removed.
  15369. (FindSegmentEntryByCuid): Removed.
  15370. (checkoutSegment): Rewritten.
  15371. (findSlowerSegmentEntry): Rewritten.
  15372. (getSegment): Rewritten.
  15373. (updateSegment): Rewritten.
  15374. (completeSegment): Rewritten.
  15375. (markAllPiecesDone): New function.
  15376. (checkIntegrity): New function.
  15377. (isChunkChecksumValidationReady): New function.
  15378. (tryChunkChecksumValidation): New function.
  15379. * src/Xml2MetalinkProcessor.cc
  15380. (getEntry): Get size and set it to entry.
  15381. Get chunk checksum and set it to entry.
  15382. (getPieceHash): New function.
  15383. * src/Util.cc
  15384. (sha1Sum): Removed ctx.digestFree()
  15385. (fileChecksum): Removed ctx.digestFree()
  15386. (indexRange): New function.
  15387. * src/Request.cc
  15388. (METHOD_GET): New variable.
  15389. (METHOD_HEAD): New variable.
  15390. (Request): Added method.
  15391. * src/UrlRequestInfo.cc
  15392. (FatalException.h): New include.
  15393. (message.h): New include.
  15394. (operator<<): Added operator<< for class HeadResult.
  15395. (getHeadResult): New function.
  15396. (execute): Get filename and size in separate download engine.
  15397. * src/ChunkChecksumValidator.cc: New class.
  15398. * src/DownloadCommand.cc:
  15399. (DownloadCommand): Added peerStat.
  15400. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  15401. the value from Option.
  15402. The buffer size is now 16KB.
  15403. Use peerStat member instead of getting it from SegmentMan.
  15404. Use startupIdleTime member instead of gettingit from Option.
  15405. Added chunk checksum validation.
  15406. * src/AbstractDiskWriter.cc
  15407. (AbstractDiskWriter): Removed ctx.
  15408. (~AbstractDiskWriter): Removed ctx.digestFree()
  15409. (writeDataInternal): Returns the return value of write.
  15410. (readDataInternal): Returns the return value of read.
  15411. (sha1Sum): Renamed as messageDigest
  15412. (messageDigest): New function.
  15413. * src/AbstractDiwkWriter.h
  15414. (messageDigest.h): Removed include.
  15415. (ctx): Removed.
  15416. (sha1Sum): Renamed as messageDigest
  15417. (messageDigest): New function.
  15418. * src/DefaultPieceStorage.h
  15419. (markAllPiecesDone): New function.
  15420. (checkIntegrity): New function.
  15421. * src/NullFileAllocationMonitor.h: New class.
  15422. * src/MetalinkChunkChecksum.h: New class.
  15423. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15424. To decrease CPU usage in bittorrent download, calculation results in
  15425. BitfieldMan were cached and realtime fetching PeerObject was removed
  15426. with WeakHandle introduced. Option values are set to the objects
  15427. by setter before download begins.
  15428. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  15429. * src/DefaultBtRequestFactory.h
  15430. (dispatcher): BtMessageDispatcherHandle ->
  15431. BtMessageDispatcherWeakHandle.
  15432. (messageFactory): New variable.
  15433. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  15434. BtMessageDispatcherWeakHandle.
  15435. (setBtMessageFactory): New function.
  15436. * src/DefaultBtMessageDispatcher.cc:
  15437. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  15438. from Option.
  15439. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  15440. feating the value from Option.
  15441. Use messageFactory member.
  15442. * src/PeerInteractionCommand.cc
  15443. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  15444. Add reverse dependencies to factory object.
  15445. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  15446. dispatcher.
  15447. Set messageFactory to receiver.
  15448. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  15449. btInteractive.
  15450. Set receiver to peerObject.
  15451. Set maxDownloadSpeedLimit to this.
  15452. (executeInternal): Use maxDownloadSpeedLimit member.
  15453. * src/BtChokeMessage.cc
  15454. (doReceivedAction): Use dispatcher, requestFactory member.
  15455. (onSendComplete): Use dispatcher member.
  15456. * src/PeerInteractionCommand.h
  15457. (maxDownloadSpeedLimit): New variable.
  15458. * src/DefaultBtMessageReceiver.h
  15459. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  15460. (dispatcher):
  15461. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  15462. (messageFactory): New variable.
  15463. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  15464. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  15465. (setDispatcher):
  15466. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  15467. (setBtMessageFactory): New function.
  15468. * src/DefaultBtInteractive.cc
  15469. (initiateHandshake): Use messageFactory member.
  15470. (addBitfieldMessageToQueue): Use messageFactory member.
  15471. (addAllowedFastMessageToQueue): Use messageFactory member.
  15472. (decideChoking): Use messageFactory member.
  15473. (checkHave): Use messageFactory member.
  15474. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  15475. (receiveMessages): Use maxDownloadSpeedLimit member.
  15476. (decideInterest): Use messageFactory member.
  15477. * src/BtRequestMessage.cc
  15478. (doReceivedAction): Use messageFactory, dispatcher member.
  15479. (onQueued): Use dispatcher member.
  15480. * src/BtPieceMessage.cc
  15481. (doReceivedAction): Use dispatcher member.
  15482. (send): Use peerConnection member.
  15483. (onWrongPiece): Use requestFactory member.
  15484. (handleChokingEvent): Use messageFactory, dispatcher member.
  15485. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  15486. * src/BtMessageDispatcher.h
  15487. (BtMessageDispatcherWeakHandle): New type definition.
  15488. * src/SimpleBtMessage.cc
  15489. (send): Use peerConnection member.
  15490. * src/BtRejectMessage.cc
  15491. (doReceivedAction): Use dispatcher member.
  15492. * src/DefaultBtMessageDispatcher.h
  15493. (Option.h): Removed include.
  15494. (messageFactory): New variable.
  15495. (option): Removed.
  15496. (maxUploadSpeedLimit): New variable.
  15497. (requestTimeout): New variable.
  15498. (DefaultBtMessageDispatcher): Removed option.
  15499. Added maxUploadSpeedLimit, requestTimeout.
  15500. (setOption): Removed.
  15501. (getOption): Removed.
  15502. (setMaxUploadSpeedLimit): New function.
  15503. (setRequestTimeout): New function.
  15504. (setBtMessageFactory): New function.
  15505. * src/DefaultBtInteractive.h
  15506. (btMessageReceiver):
  15507. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  15508. (dispatcher):
  15509. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  15510. (btRequestFactory):
  15511. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  15512. (peerConnection):
  15513. PeerConnectionHandle -> PeerConnectionWeakHandle
  15514. (messageFactory): New variable.
  15515. (option): Removed.
  15516. (keepAliveInterval): New variable.
  15517. (maxDownloadSpeedLimit): New variable.
  15518. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  15519. (setBtMessageReceiver):
  15520. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  15521. (setDispatcher):
  15522. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  15523. (setBtRequestFactory):
  15524. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  15525. (setPeerConnection):
  15526. PeerConnectionHandle -> PeerConnectionWeakHandle
  15527. (setOption): Removed.
  15528. (setKeepAliveInterval): New function.
  15529. (setMaxDownloadSpeedLimit): New function.
  15530. (setBtMessageFactory): New function.
  15531. * src/BitfieldMan.h
  15532. (cachedNumMissingBlock): New variable.
  15533. (cachedNumFilteredBlock): New variable.
  15534. (cachedCompletedLength): New variable.
  15535. (cachedFilteredComletedLength): New variable.
  15536. (cachedFilteredTotalLength): New variable.
  15537. (countMissingBlockNow): New function.
  15538. (countFilteredBlockNow): New function.
  15539. (getFilteredTotalLengthNow): New function.
  15540. (getCompletedLengthNow): New function.
  15541. (getFilteredCompletedLengthNow): New function.
  15542. (updateCache): New function.
  15543. * src/AbstractBtMessage.h
  15544. (BtMessageDispatcher.h): New include.
  15545. (PeerConnection.h): New include.
  15546. (BtRequestFactory.h): New include
  15547. (BtMessageFactory.h): New include.
  15548. (dispatcher): New variable.
  15549. (messageFactory): New variable.
  15550. (peerConnection: New variable.
  15551. (setBtMessageDispatcher): New function.
  15552. (setPeerConnection): New function.
  15553. (setBtMessageFactory): New function.
  15554. (setBtRequestFactory): New function.
  15555. * src/DefaultBtMessageFactory.cc
  15556. (setCommonProperty): Set dispatcher, requestFactory, this,
  15557. peerConnection to msg.
  15558. * src/BtRegistry.h
  15559. (BT_MESSAGE_RECEIVER): New macro.
  15560. * src/PeerConnection.h
  15561. (PeerConnectionWeakHandle): New type definition.
  15562. * src/BtMessageFactory.h
  15563. (BtMessageFactoryWeakHandle): New type definition.
  15564. * src/BitfieldMan.cc
  15565. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  15566. cachedCompletedLength, cachedFilteredComletedLength,
  15567. cachedFilteredTotalLength.
  15568. Call updateCache().
  15569. (countMissingBlock): Return cachedNumMissingBlock.
  15570. (countMissingBlockNow): New function.
  15571. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  15572. (countFilteredBlockNow): New function.
  15573. (setBit): Call updateCache().
  15574. (unsetBit): Call updateCache().
  15575. (setBitfield): Call updateCache().
  15576. (clearAllBit): Call updateCache().
  15577. (setAllBit): Use setBitInternal instead of setBit.
  15578. Call updateCache().
  15579. (addFilter): Call updateCache().
  15580. (enableFilter): Call updateCache().
  15581. (disableFilter): Call updateCache().
  15582. (clearFilter): Call updateCache().
  15583. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  15584. (getFilteredTotalLengthNow): New function.
  15585. (getCompletedLength): Return cachedCompletedLength.
  15586. (getCompletedLengthNow): New function.
  15587. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  15588. (getFilteredCompletedLengthNow): New function.
  15589. (updateCache): New function.
  15590. * src/BtMessageReceiver.h
  15591. (BtMessageReceiverWeakHandle): New type definition.
  15592. * src/DefaultBtMessageReceiver.cc
  15593. (receiveHandshake): Use messageFactory member.
  15594. (sendHandshake): Use messageFactory member.
  15595. (receiveMessage): Use messageFactory member.
  15596. * src/DefaultBtMessageFactory.h
  15597. (dispatcher): New variable.
  15598. (requestFactory): New variable.
  15599. (peerConnection): New variablle.
  15600. (setBtMessageDispatcher): New function.
  15601. (setBtRequestFactory): New function.
  15602. (setPeerConnection): New function.
  15603. * src/SharedHandle.h
  15604. (RefCount): New class.
  15605. (WeakHandle): New class.
  15606. * src/PeerObject.h
  15607. (BtMessageReceiver.h): New include.
  15608. (PeerObject): Added btMessageReceiver.
  15609. (btMessageReceiver): New variable.
  15610. * src/Util.cc
  15611. (countBit): Simplified.
  15612. * src/BtCancelMessage.cc
  15613. (doReceivedAction): Use dispatcher member.
  15614. * src/BtRequestFactory.h
  15615. (BtRequestFactoryWeakHandle): New type definition.
  15616. * src/PeerStorage.h
  15617. (downloadSpeed): int -> uint32_t
  15618. (uploadSpeed): int -> uint32_t
  15619. (sessionDownloadLength): long long int -> uint64_t
  15620. (sessionUploadLength): long long int -> uint64_t
  15621. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15622. To add RecoverableException, FatalException:
  15623. * src/AbstractCommand.cc
  15624. (onAbort): Exception -> RecoverableException
  15625. * src/PeerAbstractCommand.h
  15626. (RecoverableException.h): New include.
  15627. (onAbort): Exception -> RecoverableException.
  15628. * src/PeerInteractionCommand.cc
  15629. (onAbort): Exception -> RecoverableException.
  15630. * src/PeerAbstractCommand.cc
  15631. (execute): Exception -> RecoverableException.
  15632. (onAbort): Exception -> RecoverableException.
  15633. * src/TorrentRequestInfo.cc
  15634. (execute): Exception -> RecoverableException.
  15635. * src/MetalinkRequestInfo.cc
  15636. (execute): Exception -> RecoverableException.
  15637. * src/MetaFileUtil.cc: RecoverableException.
  15638. * src/AbstractCommand.h
  15639. (onAbort): Exception -> RecoverableException.
  15640. * src/DlRetryEx.h: Exception -> RecoverableException.
  15641. * src/DlAbortEx.h: Exception -> RecoverableException.
  15642. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  15643. * src/Util.cc: Exception -> RecoverableException.
  15644. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  15645. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  15646. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  15647. To make ID static const int
  15648. * src/BtInterestedMessage.h
  15649. (ID_t): Removed.
  15650. (ID): New variable.
  15651. (getId): Made non-const.
  15652. * src/BtPieceMessage.h
  15653. (ID_t): Removed.
  15654. (ID): New variable.
  15655. (getId): Made non-const.
  15656. * src/BtChokeMessage.h
  15657. (ID_t): Removed.
  15658. (ID): New variable.
  15659. (getId): Made non-const.
  15660. * src/BtHaveAllMessage.h
  15661. (ID_t): Removed.
  15662. (ID): New variable.
  15663. (getId): Made non-const.
  15664. * src/BtKeepAliveMessage.h
  15665. (ID_t): Removed.
  15666. (ID): New variable.
  15667. (getId): Made non-const.
  15668. * src/BtHandshakeMessage.h
  15669. (ID): New variable.
  15670. (getId): Made non-const.
  15671. * src/BtSuggestPieceMessage.h
  15672. (ID_t): Removed.
  15673. (ID): New variable.
  15674. (getId): Made non-const.
  15675. * src/BtPortMessage.h
  15676. (ID_t): Removed.
  15677. (ID): New variable.
  15678. (getId): Made non-const.
  15679. * src/AbstractBtMessage.h
  15680. (id): Removed.
  15681. (AbstractBtMessage): Removed id.
  15682. (getId): Removed.
  15683. * src/BtHaveMessage.h
  15684. (ID_t): Removed.
  15685. (ID): New variable.
  15686. (getId): Made non-const.
  15687. * src/BtAllowedFastMessage.h
  15688. (ID_t): Removed.
  15689. (ID): New variable.
  15690. (getId): Made non-const.
  15691. * src/BtCancelMessage.h
  15692. (ID_t): Removed.
  15693. (ID): New variable.
  15694. (getId): Made non-const.
  15695. * src/BtNotInterestedMessage.h
  15696. (ID_t): Removed.
  15697. (ID): New variable.
  15698. (getId): Made non-const.
  15699. * src/BtChokeMessage.h
  15700. (ID_t): Removed.
  15701. (ID): New variable.
  15702. (getId): Made non-const.
  15703. * src/BtRejectMessage.h
  15704. (ID_t): Removed.
  15705. (ID): New variable.
  15706. (getId): Made non-const.
  15707. * src/BtBitfieldMessage.h
  15708. (ID_t): Removed.
  15709. (ID): New variable.
  15710. (getId): Made non-const.
  15711. * src/BtUnchokeMessage.h
  15712. (ID_t): Removed.
  15713. (ID): New variable.
  15714. (getId): Made non-const.
  15715. * src/BtRequestMessage.h
  15716. (ID_t): Removed.
  15717. (ID): New variable.
  15718. (getId): Made non-const.
  15719. * src/BtHaveMessage.h
  15720. (ID_t): Removed.
  15721. (ID): New variable.
  15722. (getId): Made non-const.
  15723. To add --force-truncate command-line option and a check whether
  15724. the file already exists:
  15725. * src/DirectDiskAdaptor.h
  15726. (getFilePath): Made virtual public.
  15727. * src/MultiDiskAdaptor.h
  15728. (File.h): New include.
  15729. (DiskWriterEntry::fileEntry): Made private.
  15730. (DiskWriterEntry::fileExists): New function.
  15731. (DiskWriterEntry::getFileEntry): New function.
  15732. (fileExists): New function.
  15733. (getFilePath): New function.
  15734. * src/TorrentRequestInfo.cc
  15735. (FatalException.h): New include.
  15736. (message.h): New include.
  15737. (RecoverableException.h): New include.
  15738. (execute): Added a check whether file is already exists or not.
  15739. * src/DiskAdaptor.h
  15740. (fileExists): New function.
  15741. (getFilePath): New function.
  15742. * src/main.cc
  15743. (showUsage): Added an explanation of --force-truncate command-line
  15744. option.
  15745. (main): Added --force-truncate command-line option.
  15746. * src/Exception.h
  15747. (setMsg): buf[256] -> buf[1024]
  15748. * src/CopyDiskWriter.h
  15749. (getFilePath): Made public virtual.
  15750. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  15751. (fileExists): New function.
  15752. * src/DownloadEngineFactory.cc
  15753. (newTorrentConsoleEngine): Don't open file here.
  15754. * src/message.h
  15755. (EX_FILE_ALREADY_EXISTS): New definition.
  15756. * src/prefs.h
  15757. (PREF_FOECE_TRUNCATE): New definition.
  15758. * src/HttpResponseCommand.cc
  15759. (handleDefaultEncoding): Added a check whether the file already exists.
  15760. * src/SegmentMan.h
  15761. (fileExists): New function.
  15762. (shouldCancelDownloadForSafety): New function.
  15763. * src/FtpNegotiateCommand.cc
  15764. (recvSize): Added a check whether the file already exists.
  15765. * src/AbstractSingleDiskAdaptor.cc
  15766. (File.h): New include.
  15767. (fileExists): New function.
  15768. * src/AbstractSingleDiskAdaptor.h
  15769. (getFilePath): Removed.
  15770. (fileExists): New function.
  15771. * src/SegmentMan.cc
  15772. (fileExists): New function.
  15773. (shouldCancelDownloadForSafety): New function.
  15774. To fix regression bug in torrent downloading:
  15775. * src/DefaultBtRequestFactory.cc
  15776. (doChokedAction): New function.
  15777. * src/DefaultBtRequestFactory.h
  15778. (doChokedAction): New function.
  15779. * src/DefaultBtMessageDispatcher.cc
  15780. (doChokedAction): Do not delete request if its target is in allowed
  15781. fast set.
  15782. * src/DefaultBtInteractive.cc
  15783. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  15784. (sendKeepAlive): Send keep alive message even if the outgoing message
  15785. queue is not empty.
  15786. (decideInterest): Simplified the code.
  15787. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  15788. it is already called when BtChokeMessage is received from a peer.
  15789. * src/BtRequestFactory.h
  15790. (doChokedAction): New function.
  15791. To clean up code:
  15792. * src/PeerInteractionCommand.h
  15793. (executeInternal): Added virtual keyword explicitly.
  15794. (prepareForRetry): Added virtual keyword explicitly.
  15795. (prepareForNextPeer): Added virtual keyword explicitly.
  15796. (onAbort): Added virtual keyword explicitly.
  15797. * src/RequestSlot.cc
  15798. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  15799. * src/BtPieceMessage.cc
  15800. (doReceivedAction): Added a debug log of piece's bitfield.
  15801. * src/Piece.h
  15802. (getBitfieldLength): New function.
  15803. * src/ByteArrayDiskWriter.cc
  15804. (clear): Added buf = 0 to avoid double free corruption.
  15805. * src/FileAllocator.cc
  15806. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  15807. Added cp.reset().
  15808. * src/BitfieldMan.h
  15809. (operator=): Rewritten.
  15810. * src/BitfieldMan.cc
  15811. (BitfieldMan): Initialized bitfield, useBitfield.
  15812. * src/PeerConnection.cc
  15813. (receiveMessage): Added a call to socket->readable() after getting
  15814. message length to avoid possible EOF.
  15815. * src/Util.cc
  15816. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  15817. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15818. To add an ability to pre-allocate file space:
  15819. * src/DirectDiskAdaptor.h: Rewritten.
  15820. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  15821. * src/MultiDiskAdaptor.h: Rewritten.
  15822. * src/DefaultPieceStorage.cc
  15823. (MultiDiskWriter.h): Removed include.
  15824. (PreAllocationDiskWriter.h): Removed include.
  15825. (FileAllocationMonitor.h): New include.
  15826. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  15827. (initStorage): Rewritten.
  15828. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15829. * src/FileAllocator.h: New class.
  15830. * src/FileAllocator.cc: New class.
  15831. * src/FileAllocationMonitor.h: New class.
  15832. * src/FileAllocationMonitor.cc: New class.
  15833. * src/ConsoleFileAllocationMonitor.h: New class.
  15834. * src/ConsoleFileAllocationMonitor.cc: New class.
  15835. * src/AbstractSingleDiskAdaptor.h: New class.
  15836. * src/AbstractSingleDiskAdaptor.cc: New class.
  15837. * src/DiskAdaptor.h
  15838. (Directory.h): Removed include.
  15839. (DiskWriter.h): Removed include.
  15840. (FileEntry.h): Removed include.
  15841. (diskWriter): Removed.
  15842. (DiskAdaptor): Removed diskWriter.
  15843. (openFile): Made pure virtual.
  15844. (closeFile): Made pure virtual.
  15845. (openExistingFile): Made pure virtual.
  15846. (initAndOpenFile): Made pure virtual.
  15847. (writeData): Made pure virtual.
  15848. (readData): Made pure virtual.
  15849. (sha1Sum): Made pure virtual.
  15850. (getStoreDir): Returns const reference of storeDir.
  15851. (DiskAdaptorHandle): New type definition.
  15852. * src/main.cc
  15853. (ConsoleFileAllocationMonitor.h): New include.
  15854. (showUsage): Added default value description of -s option.
  15855. Added the description of --file-allocation option.
  15856. (main): Set default value of --file-allocation option to 'none'.
  15857. Added --file-allocation command-line option.
  15858. Setup FileAllocationMonitorFactory.
  15859. * src/FtpInitiateConnectionCommand.cc
  15860. (executeInternal): Removed diskWriter related processing, which was
  15861. moved to FtpNegotiationCommand.cc.
  15862. * src/DirectDiskAdaptor.cc
  15863. (getFilePath): Made non-const.
  15864. * src/CopyDiskAdaptor.h
  15865. (DiskAdaptor.h): Removed include.
  15866. (DiskWriter.h): Removed include.
  15867. (AbstractSingleDiskAdaptor.h): New include.
  15868. (getFilePath): Made non-const. Added virtual keyword.
  15869. (CopyDiskAdaptor): Removed diskWriter.
  15870. (getTempFile): Returns const reference.
  15871. (CopyDiskAdaptorHandle): New type definition.
  15872. * src/ByteArrayDiskWriter.cc
  15873. (clear): Simplified.
  15874. (initAndOpenFile): Rewritten.
  15875. (openFile): Call initAndOpenFile()
  15876. * src/MultiDiskAdaptor.cc: Rewritten.
  15877. * src/DownloadEngineFactory.cc
  15878. (FileAllocator.h): New include.
  15879. (FileAllocationMonitor.h): New include.
  15880. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  15881. create DefaultDiskWriter with file allocator.
  15882. * src/DiskWriter.h
  15883. (initAndOpenFile): Added totalLength argument.
  15884. (openFile): Added totalLength argument.
  15885. * src/prefs.h
  15886. (PREF_FILE_ALLOCATION): New definition.
  15887. (V_PREALLOC): New definition.
  15888. (V_NONE): New definition.
  15889. * src/HttpResponseCommand.cc
  15890. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  15891. size.
  15892. * src/FtpNegotiateCommand.cc
  15893. (Util.h): New include.
  15894. (recvSize): Open file here.
  15895. * src/Util.h
  15896. (ullitos): New function.
  15897. * src/CopyDiskWriter.h
  15898. (getFilePath): Made non-const.
  15899. * src/DefaultDiskWriter.h
  15900. (Option.h): New include.
  15901. (totalLength): Removed.
  15902. (DefaultDiskWriter): Removed totalLength.
  15903. (initAndOpenFile): Added totalLength argument.
  15904. (DefaultDiskWriterHandle): New type definition.
  15905. (createNewDiskWriter): New function.
  15906. * src/Util.cc
  15907. (ullitos): New function.
  15908. * src/DefaultDiskWriter.cc
  15909. (message.h): New include.
  15910. (FileAllocator.h): New include.
  15911. (prefs.h): New include.
  15912. (Util.h): New include.
  15913. (DefaultDiskWriter): Removed totalLength.
  15914. (initAndOpenFile): Added file allocation.
  15915. (createNewDiskWriter): New function. Just for temporary solution.
  15916. It will be rewritten later.
  15917. * src/DiskAdaptor.cc
  15918. (DiskAdaptor): Removed diskWriter.
  15919. * src/AbstractDiskWriter.cc
  15920. (LogFactory.h): New include.
  15921. (AbstractDiskWriter): Added fileAllocator, logger.
  15922. (openFile): Added totalLength argument.
  15923. * src/AbstractDiskWriter.h
  15924. (FileAllocator.h): New include.
  15925. (Logger.h): New include.
  15926. (fileAllocator): New variable.
  15927. (logger): New variable.
  15928. (openFile): Added totalLength argument. Added virtual keyword
  15929. explicitly.
  15930. (openExistingFile): Added totalLength argument. Added virtual keyword
  15931. explicitly.
  15932. (closeFile): Added virtual keyword explicitly.
  15933. (sha1Sum): Added virtual keyword explicitly.
  15934. (writeData): Added virtual keyword explicitly.
  15935. (readData): Added virtual keyword explicitly.
  15936. (setFileAllocator): New function.
  15937. * src/DefaultPieceStorage.h
  15938. (FileAllocator.h): New include.
  15939. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15940. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15941. * src/FileProgressMonitor.h: New class.
  15942. To compile aria2 on PC-BSD:
  15943. * src/DefaultBtContext.cc
  15944. (libgen.h): New include.
  15945. To fix memory leak:
  15946. * src/Exception.h
  15947. (~Exception): Delete cause. Fixed memory leak.
  15948. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15949. Rewritten a portion of bittorrent implementation:
  15950. * src/BtMessageValidator.h: New class.
  15951. * src/BtBitfieldMessageValidator.h: New class.
  15952. * src/BtHandshakeMessageValidator.h: New class.
  15953. * src/BtRequestMessageValidator.h: New class.
  15954. * src/BtSuggestPieceMessageValidator.h: New class.
  15955. * src/BtAllowedFastMessageValidator.h: New class.
  15956. * src/BtRejectMessageValidator.h: New class.
  15957. * src/BtCancelMessageValidator.h: New class.
  15958. * src/BtPieceMessageValidator.h: New class.
  15959. * src/BtHaveMessageValidator.h: New class.
  15960. * src/BtEventListener.h: New class.
  15961. * src/AbstractBtEventListener.h: New class.
  15962. * src/BtEvent.h: New class.
  15963. * src/BtChokingEvent.h: New class.
  15964. * src/BtChokedEvent.h: New class.
  15965. * src/BtCancelSendingPieceEvent.h: New class.
  15966. * src/BtAbortOutstandingRequestEvent.h: New class.
  15967. * src/Randomizer.h: New class.
  15968. * src/SimpleRandomizer.h: New class.
  15969. * src/BtMessage.h: New class.
  15970. * src/AbstractBtMessage.h: New class.
  15971. * src/SimpleBtMessage.h: New class.
  15972. * src/BtHaveMessage.h: New class.
  15973. * src/BtInterestedMessage.h: New class.
  15974. * src/BtAllowedFastMessage.h: New class.
  15975. * src/BtUnchokeMessage.h: New class.
  15976. * src/BtCancelMessage.h: New class.
  15977. * src/BtNotInterestedMessage.h: New class.
  15978. * src/BtChokeMessage.h: New class.
  15979. * src/BtHaveNoneMessage.h: New class.
  15980. * src/BtHandshakeMessage.h: New class.
  15981. * src/BtSuggestPieceMessage.h: New class.
  15982. * src/BtHaveMessage.h: New class.
  15983. * src/BtPieceMessage.h: New class.
  15984. * src/BtHaveAllMessage.h: New class.
  15985. * src/BtKeepAliveMessage.h: New class.
  15986. * src/BtPortMessage.h: New class.
  15987. * src/BtRejectMessage.h: New class.
  15988. * src/BtBitfieldMessage.h: New class.
  15989. * src/BtRequestMessage.h: New class.
  15990. * src/DefaultBtRequestFactory.h: New class.
  15991. * src/DefaultBtMessageReceiver.h: New class.
  15992. * src/BtInteractive.h: New class.
  15993. * src/BtMessageDispatcher.h: New class.
  15994. * src/DefaultBtMessageDispatcher.h: New class.
  15995. * src/DefaultBtInteractive.h: New class.
  15996. * src/BitfieldManFactory.h: New class.
  15997. * src/HandleRegistry.h: New class.
  15998. * src/BtMessageFactory.h: New class.
  15999. * src/BtMessageReceiver.h: New class.
  16000. * src/DefaultBtMessageFactory.h: New class.
  16001. * src/PeerObject.h: New class.
  16002. * src/BtRequestFactory.h: New class.
  16003. * src/SuggestPieceMessage.h: Removed.
  16004. * src/PortMessage.h: Removed.
  16005. * src/SuggestPieceMessage.h: Removed.
  16006. * src/KeepAliveMessage.h: Removed.
  16007. * src/HandshakeMessage.h: Removed.
  16008. * src/PeerInteraction.h: Removed.
  16009. * src/UnchokeMessage.h: Removed.
  16010. * src/PieceMessage.h: Removed.
  16011. * src/RequestMessage.h: Removed.
  16012. * src/InterestedMessage.h: Removed.
  16013. * src/HaveMessage.h: Removed.
  16014. * src/CancelMessage.h: Removed.
  16015. * src/RejectMessage.h: Removed.
  16016. * src/AllowedFastMessage.h: Removed.
  16017. * src/HaveNoneMessage.h: Removed.
  16018. * src/SimplePeerMessage.h: Removed.
  16019. * src/HaveAllMessage.h: Removed.
  16020. * src/BitfieldMessage.h: Removed.
  16021. * src/PeerMessageFactory.h: Removed.
  16022. * src/NotInterestedMessage.h: Removed.
  16023. * src/ChokeMessage.h: Removed.
  16024. * src/PeerMessage.h: Removed.
  16025. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16026. To know root cause of exception:
  16027. * src/Exception.h
  16028. (cause): New variable.
  16029. (Exception): Added a parameter.
  16030. (getMsg): Return const reference to msg.
  16031. (getCause): New function.
  16032. * src/DlRetryEx.h
  16033. (DlRetryEx): Added a parameter 'cause'.
  16034. Added an overloaded constructor.
  16035. (DlAbortEx): Added a parameter 'cause'.
  16036. Added an overloaded constructor.
  16037. * src/SimpleLogger.cc
  16038. (writeLog): Log nested exception messages recursively.
  16039. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16040. * src/DefaultBtProgressInfoFile.cc
  16041. (load): Fixed memory leak when the infohash doesn't match.
  16042. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16043. * src/DefaultPeerStorage.cc
  16044. (calculateStat): Simplified the code by combining 2 loops into 1.
  16045. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16046. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  16047. for BitTorrent download:
  16048. * src/PeerAbstractCommand.cc
  16049. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  16050. * src/main.cc:
  16051. (timeoutSpecified): Removed.
  16052. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  16053. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  16054. * src/TorrentRequestInfo.cc
  16055. (timeoutSpecified): Removed.
  16056. (torrentHandler): Removed timeoutSpecified and the adjustment of
  16057. timeout value.
  16058. * src/prefs.h
  16059. (PREF_BT_TIMEOUT): New definition.
  16060. Delete unused variables:
  16061. * src/TorrentRequestInfo.cc
  16062. (requestInfo): Removed.
  16063. Move setSignalHander to Util::setGlobalSignalHandler:
  16064. * src/TorrentRequestInfo.cc:
  16065. setSignalHander -> Util::setGlobalSignalHandler
  16066. * src/main.cc
  16067. (setSignalHander): Removed.
  16068. (main): setSignalHander -> Util::setGlobalSignalHandler
  16069. * src/Util.h
  16070. (setGlobalSignalHandler): New function.
  16071. * src/Util.cc
  16072. (setGlobalSignalHandler): New function.
  16073. * src/UrlRequestInfo.cc:
  16074. setSignalHander -> Util::setGlobalSignalHandler
  16075. Reset peer status in order to exit gracefully:
  16076. * src/PeerAbstractCommand.cc
  16077. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  16078. To fix the bug that causes the number of bytes uploaded is not saved
  16079. to .aria2 file:
  16080. * src/DefaultPeerStorage.h
  16081. (removedPeerSessionDownloadLength): New variable.
  16082. (removedPeerSessionUploadLength): New variable.
  16083. * src/DefaultPeerStorage.cc
  16084. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  16085. removedPeerSessionUploadLength(0).
  16086. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  16087. through all peers, and then add removedPeerSessionDownloadLength(
  16088. removedPeerSessionUploadLength) to it.
  16089. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  16090. (to) the peer to removedPeerSessionDownloadLength
  16091. (removedPeerSessionUploadLength).
  16092. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16093. To add Metalink location option:
  16094. * src/MetalinkRequestInfo.cc
  16095. (execute): Call MetalinkEntry::setLocationPreference()
  16096. * src/main.cc
  16097. (showUsage): Added the help message for --metalink-location option.
  16098. (main): Added --metalink-location option.
  16099. * src/prefs.h
  16100. (PREF_METALINK_LOCATION): New definition.
  16101. * src/MetalinkEntry.cc
  16102. (AddLocationPreference): New function object.
  16103. (setLocationPreference): New function.
  16104. * src/Xml2MetalinkProcessor.cc
  16105. (getResource): Set location attribute to MetalinkResource
  16106. To show URLs to download
  16107. * src/UrlRequestInfo.h
  16108. (printUrls): New function.
  16109. To add multiple <file> Metalink support:
  16110. * src/MetalinkEntry.h
  16111. (MetalinkResources): Removed.
  16112. (setLocationPreference): New function.
  16113. (MetalinkEntryHandle): New type definition.
  16114. (MetalinkEntries): New type definition.
  16115. * src/Xml2MetalinkProcessor.h
  16116. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  16117. (getResource): MetalinkResource* -> MetalinkResourceHandle
  16118. (parseFile): Metalinker* -> MetalinkerHandle
  16119. * src/UrlRequestInfo.h
  16120. (execute): RequestInfo* -> RequestInfos
  16121. * src/MetalinkRequestInfo.cc
  16122. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  16123. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  16124. (execute): RequestInfo* -> RequestInfos
  16125. Added multiple <file> support. Print filename when it is queued.
  16126. * src/MetalinkRequestInfo.h
  16127. (execute): RequestInfo* -> RequestInfos
  16128. (getDownloadEngine): Removed.
  16129. * src/RequestInfo.h
  16130. (RequestInfoHandle): New type definition.
  16131. (RequestInfos): New type definition.
  16132. (execute): RequestInfo* -> RequestInfos
  16133. (getDownloadEngine): Removed.
  16134. * src/MetalinkResource.h
  16135. (MetalinkResourceHandle): New type definition.
  16136. (MetalinkResources): New type definition.
  16137. * src/MetalinkEntry.cc
  16138. (~MetalinkEntry): Removed the deletion of the elements of resources,
  16139. because the element is now of type MetalinkResourceHandle.
  16140. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  16141. (Supported): MetalinkResource* -> MetalinkResourceHandle
  16142. (dropUnsupportedResource): Removed the deletion of the elements of
  16143. resources because the element is now of type MetalinkResourceHandle.
  16144. * src/Xml2MetalinkProcessor.cc
  16145. (parseFile): Metalinker* -> MetalinkerHandle
  16146. MetalinkEntry* -> MetalinkEntryHandle
  16147. Removed try-catch block.
  16148. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  16149. MetalinkResource* -> MetalinkResourceHandle
  16150. Removed try-catch block.
  16151. (getResource): MetalinkResource* -> MetalinkResourceHandle
  16152. Free result by using xmlXPathFreeObject()
  16153. * src/Metalinker.cc
  16154. (~Metalinker): Removed the deletion of entries.
  16155. MetalinkEntry* -> MetalinkEntryHandle
  16156. (queryEntry): Add multiple <file> Metalink support.
  16157. * src/Metalinker.h
  16158. (MetalinkEntries): Removed.
  16159. (queryEntry): MetalinkEntry* -> MetalinkEntries
  16160. * src/MetalinkProcessor.h
  16161. (parseFile): Metalinker* -> MetalinkerHandle
  16162. Bug fixes:
  16163. * src/PeerChokeCommand.cc
  16164. (execute): cat01->cat02
  16165. * src/DefaultPieceStorage.cc
  16166. (DefaultPieceStorage): Added diskAdaptor(0)
  16167. * src/TrackerWatcherComand.cc:
  16168. (execute): Use btAnnounce->noMoreAnnounce()
  16169. to determin whether the function returns true or not.
  16170. * src/TrackerUpdateCommand.cc:
  16171. (execute): Use btAnnounce->noMoreAnnounce()
  16172. to determin whether the function returns true or not.
  16173. * src/FtpConnection.cc
  16174. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  16175. This is the fix of the busy loop bug.
  16176. * src/DownloadCommand.cc
  16177. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  16178. cached PeerStat.
  16179. The value of "name" entry in torrent file is now set by
  16180. *DiskAdaptor::setTopDir(...) methods.
  16181. * src/MultiDiskAdaptor.h
  16182. (topDir): New variable.
  16183. (setTopDir): New function.
  16184. (getTopDir): New function.
  16185. * src/MultiDiskAdaptor.cc
  16186. (getFilePath): Concat storDir, "/" and topDir.
  16187. (mkdir): Use getFilePath() to get the directory path for output.
  16188. * src/DefaultPieceStorage.cc
  16189. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  16190. CopyDiskAdaptor.
  16191. * src/CopyDiskAdaptor.h
  16192. (topDir): New variable.
  16193. (setTopDir): New function.
  16194. (getTopDir): New function.
  16195. * src/CopyDiskAdaptor.cc
  16196. (fixFilename): Updated.
  16197. Misc
  16198. * src/UrlRequestInfo.h
  16199. (e): Removed.
  16200. (UrlRequestInfo): Removed e.
  16201. (getDownloadEngine): Removed.
  16202. * src/UrlRequestInfo.cc
  16203. (handler): Rewritten.
  16204. (printUrls): New function.
  16205. (execute): Call printUrls().
  16206. * src/HandshakeMessage.cc
  16207. (check): peerinteraction->getBtContext() -> btContext
  16208. * src/PeerInteraction.h
  16209. (getBtContext): Removed.
  16210. * src/TorrentRequestInfo.h
  16211. (execute): RequestInfo* -> RequestInfos
  16212. (getDownloadEngine): Removed.
  16213. * src/TorrentRequestInfo.cc
  16214. (haltRequested): Removed.
  16215. (btHaltRequested): New variable.
  16216. (torrentHandler): haltRequested -> btHaltRequested
  16217. (execute): RequestInfo* -> RequestInfos
  16218. * src/TorrentConsoleDownloadEngine.cc
  16219. (afterEachIteration): haltRequested -> btHaltRequested.
  16220. * src/ConsoleDownloadEngine.h
  16221. (initStatistics): Added virtual.
  16222. (calculateStatistics): Added virtual.
  16223. (onEndOfRun): Added virtual.
  16224. (afterEachIteration): Added virtual.
  16225. * src/ConsoleDownloadEngine.cc
  16226. (haltRequested): New variable.
  16227. (afterEachIteration): New function.
  16228. * src/main.cc
  16229. (requestInfo): Removed.
  16230. * src/SegmentMan.cc
  16231. (findSlowerSegmentEntry): Refactored.
  16232. * Release 0.9.0
  16233. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16234. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  16235. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  16236. * src/TorrentMan.h: Removed.
  16237. * src/TorrentMan.cc: Removed.
  16238. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  16239. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  16240. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  16241. * src/PeerAbstractCommand.cc: Use btRuntime.
  16242. * src/BtContextAwareCommand.h: New class.
  16243. * src/FileEntry.h: Added accessor methods for following variables.
  16244. (path): Made private.
  16245. (length): Made private.
  16246. (offset): Made private.
  16247. (extracted): Made private.
  16248. (requested): Made private.
  16249. (FileEntries): New definition.
  16250. (FileEntryHandle): New definition.
  16251. * src/FileEntry.cc: New file.
  16252. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  16253. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  16254. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  16255. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  16256. * src/PieceStorage.h: New file.
  16257. * src/PeerInteractionCommand.h: Use btContext.
  16258. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  16259. btRuntime.
  16260. * src/DefaultBtProgressInfoFile.h: New file.
  16261. * src/DefaultBtProgressInfoFile.cc: New file.
  16262. * src/File.cc
  16263. (Util.h): New include.
  16264. (mkdirs): New function.
  16265. * src/MultiDiskAdaptor.h
  16266. (mkdir): New function.
  16267. * src/PeerListProcessor.h
  16268. (Peers): Removed.
  16269. * src/PeerInteraction.h
  16270. (torrentMan): Removed.
  16271. (btContext): New variable.
  16272. (peerStorage): New variable.
  16273. (pieceStorage): New variable.
  16274. (btAnnounce): New variable.
  16275. (getTorrentMan): Removed.
  16276. (getBtContext): New function.
  16277. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  16278. btAnnounce.
  16279. * src/HandshakeMessage.h
  16280. (TorrentMan.h): Removed.
  16281. * src/HandshakeMessage.cc: Use btContext.
  16282. * src/DefaultBtAnnounce.cc: New file.
  16283. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  16284. * src/DefaultPieceStorage.cc: New file.
  16285. * src/DefaultBtContext.h: New file.
  16286. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  16287. Use the accessor methods of FileEntry.
  16288. * src/CookieBox.cc: Updated to use Util::slice().
  16289. * src/PieceMessage.cc: Use btContext, pieceStorage.
  16290. * src/common.h (SharedHandle.h): New include.
  16291. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  16292. pieceStorage.
  16293. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  16294. * src/DiskAdaptor.h
  16295. (topDir): Removed.
  16296. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  16297. (setTopDir): Removed.
  16298. (getTopDir): Removed.
  16299. * src/BtContext.h: New file.
  16300. * src/DefaultPeerStorage.h: New file.
  16301. * src/PieceMessage.h (TorrentMan.h): Removed.
  16302. * src/RequestMessage.h (TorrentMan.h): Removed.
  16303. * src/TorrentDownloadEngine.h
  16304. (uploadLength): New variable.
  16305. (btContext): New variable.
  16306. (btRuntime): New variable.
  16307. (pieceStorage): New variable.
  16308. (peerStorage): New variable.
  16309. (btAnnounce): New variable.
  16310. (btProgressInfoFile): New variable.
  16311. (torrentMan): Removed.
  16312. (setBtContext): New function.
  16313. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  16314. peerStorage, btAnnounce, btProgressInfoFile.
  16315. * src/Piece.h
  16316. (toString): New function.
  16317. (Pieces): New type definition.
  16318. * src/Peer.h
  16319. (active): New variable.
  16320. (Peer): Added active.
  16321. (activate): Set active to true.
  16322. (deactivate): Set active to false.
  16323. (isActive): New function.
  16324. (Peers): New type definition.
  16325. * src/DirectDiskAdaptor.cc
  16326. (getFilePath): Use the accessor methods of FileEntry.
  16327. * src/TorrentConsoleDownloadEngine.h
  16328. (afterEachIteration): New function.
  16329. * src/TorrentConsoleDownloadEngine.cc
  16330. (haltRequested): New variable.
  16331. (sendStatistics): Use pieceStorage, btRuntime.
  16332. (afterEachIteration): New function.
  16333. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  16334. * src/Directry.h
  16335. (Directory): New function.
  16336. (DirectoryHandle): New type definition.
  16337. * src/BtProgressInfoFile.h: New file.
  16338. * src/RequestMessage.cc: Use pieceStorage.
  16339. * src/BtRuntime.h: New file.
  16340. * src/DefaultBtContext.cc: New file.
  16341. * src/BitfieldMan.h
  16342. (getCompletedLength): New function(private).
  16343. (getCompletedLength): New function.
  16344. (getFilteredCompletedLength): New function.
  16345. * src/BitfieldMan.h
  16346. (getCompletedLength): New function(private).
  16347. (getCompletedLength): New function.
  16348. (getFilteredCompletedLength): New function.
  16349. * src/MultiDiskAdaptor.cc
  16350. (mkdir): New function.
  16351. (openFile): Call mkdir().
  16352. (initAndOpenFile): Call mkdir().
  16353. * src/CancelMessage.h
  16354. (TorrentMan.h): Removed.
  16355. * src/RejectMessage.h
  16356. (TorrentMan.h): Removed.
  16357. * src/DownloadEngineFactory.cc
  16358. (DefaultPieceStorage.h): New include.
  16359. (DefaultPeerStorage.h): New include.
  16360. (DefaultBtAnnounce.h): New include.
  16361. (DefaultBtProgressInfoFile.h): New include.
  16362. (newTorrentConsoleEngine): Rewritten.
  16363. * src/ShareRatioSeedCriteria.h
  16364. (torrentMan): Removed.
  16365. (btContext): New variable.
  16366. (peerStorage): New variable.
  16367. (btRuntime): New variable.
  16368. (evaluate): Use btContext, btRuntime, peerStorage.
  16369. * src/AnnounceTier.h: New file.
  16370. * src/BtAnnounce.h: New file.
  16371. * src/BtRegistry.h: New file.
  16372. * src/PeerInitiateConnectionCommand.h: Added btContext.
  16373. * src/PeerConnection.h (TorrentMan.h): Removed.
  16374. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  16375. * src/Util.h
  16376. (slice): Added an argument.
  16377. * src/Util.cc
  16378. (slice): Added an argument to control whether trim is made or not.
  16379. * src/PeerStorage.h: New file.
  16380. * src/BtRegistry.cc: New file.
  16381. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  16382. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  16383. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  16384. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  16385. * src/TorrentRequestInfo.h
  16386. (e): Removed.
  16387. (showFileEntry): Added an argument.
  16388. (getDownloadEngine): Return 0.
  16389. * src/DefaultBtAnnounce.h: New file.
  16390. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  16391. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  16392. * src/PeerMessageFactory.h
  16393. (btContext): New variable.
  16394. (pieceStorage): New variable.
  16395. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  16396. btAnnounce.
  16397. * src/DiskAdaptor.cc
  16398. (DiskAdaptor): Removed topDir.
  16399. (~DiskAdaptor): Removed topDir.
  16400. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  16401. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  16402. * src/File.h (mkdirs): New function.
  16403. * src/DefaultPeerStorage): New file.
  16404. * src/DownloadEngineFactory.h
  16405. (newTorrentConsoleEngine): Use btContext.
  16406. * src/BtContextAwareCommand.cc: New file.
  16407. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  16408. * src/PeerMessage.h
  16409. (btContext): New variable.
  16410. (peerStorage): New variable.
  16411. (pieceStorage): New variable.
  16412. (setBtContext): New function.
  16413. * src/Directry.cc
  16414. (Directory): New function.
  16415. (createDir): Do nothing if name.size() == 0.
  16416. * src/AnnounceList.h
  16417. (AnnounceTier): Removed.
  16418. (AnnounceTiers): Removed.
  16419. * src/DefaultPieceStorage.h: New file.
  16420. * src/Piece.cc (toString): New function.
  16421. To fix typo:
  16422. * src/main.cc (showVersion): Fixed typo.
  16423. To fix compile warning:
  16424. * src/DelegatingPeerListProcessor.cc
  16425. (canHandle): Added "return false".
  16426. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16427. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  16428. make the process of announce request testable.
  16429. * src/TrackerWatcherCommand.h
  16430. (TimeA2.h): Removed.
  16431. (interval): Removed.
  16432. (checkPoint): Removed.
  16433. (createRequestCommand): Added an argument 'url'.
  16434. (TrackerWatherCommand): Removed interval.
  16435. (createCommand): New function.
  16436. * src/DownloadEngineFactory.cc
  16437. (newTorrentConsoleEngine): Updated according to the changes in
  16438. TrackerWatherCommand.
  16439. * src/TorrentMan.cc
  16440. (DelegatingPeerListProcessor.h): New includes.
  16441. (TorrentMan): Added the initialization of announceInterval.
  16442. (isStoppedAnnounceReady): New function.
  16443. (isCompletedAnnounceReady): New function.
  16444. (isDefaultAnnounceReady): New function.
  16445. (isAnnounceReady): New function.
  16446. (getAnnounceUrl): New function.
  16447. (announceStart): New function.
  16448. (announceFailure): New function.
  16449. (announceSuccess): New function.
  16450. (isAllAnnounceFailed): New function.
  16451. (resetAnnounce): New function.
  16452. (processAnnounceResponse): New function.
  16453. (needMorePeerConnection): New function.
  16454. (noMoreAnnounce): New function.
  16455. * src/TrackerUpdateCommand.h
  16456. (getTrackerResponse): int->size_t
  16457. * src/TorrentMan.h
  16458. (isStoppedAnnounceReady): New function.
  16459. (isCompletedAnnounceReady): New function.
  16460. (isDefaultAnnounceReady): New function.
  16461. (announceInterval): New variable.
  16462. (isAnnounceReady): New function.
  16463. (getAnnounceUrl): New function.
  16464. (announceStart): New function.
  16465. (announceFailure): New function.
  16466. (announceSuccess): New function.
  16467. (isAllAnnounceFailed): New function.
  16468. (resetAnnounce): New function.
  16469. (processAnnounceResponse): New function.
  16470. (needMorePeerConnection): New function.
  16471. (noMoreAnnounce): New function.
  16472. * src/TrackerWatcherCommand.cc
  16473. (TrackerWatherCommand): Removed interval and checkPoint.
  16474. (execute): Rewritten.
  16475. (createCommand): New function.
  16476. (createRequestCommand): Rewritten.
  16477. * src/TrackerUpdateCommand.cc
  16478. (MetaFileUtil.h): Removed.
  16479. (DelegatingPeerListProcessor.h): Removed.
  16480. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  16481. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16482. Request -> RequestHandle:
  16483. * src/HttpResponseCommand.h: Request->RequestHandle
  16484. * src/AbstractCommand.cc: Request->RequestHandle
  16485. * src/HttpDownloadCommand.cc: Request->RequestHandle
  16486. * src/HttpRequestCommand.cc: Request->RequestHandle
  16487. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  16488. * src/AbstractCommand.h: Request->RequestHandle
  16489. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  16490. * src/HttpResponseCommand.cc: Request->RequestHandle
  16491. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  16492. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  16493. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  16494. * src/HttpConnection.h: Request->RequestHandle
  16495. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  16496. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  16497. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  16498. * src/DownloadCommand.h: Request->RequestHandle
  16499. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  16500. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  16501. * src/HttpRequestCommand.h: Request->RequestHandle
  16502. * src/FtpNegotiateCommand.h: Request->RequestHandle
  16503. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  16504. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  16505. * src/HttpDownloadCommand.h: Request->RequestHandle
  16506. * src/FtpConnection.cc: Request->RequestHandle
  16507. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  16508. * src/UrlRequestInfo.cc: Request->RequestHandle
  16509. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  16510. * src/HttpConnection.h: Request->RequestHandle
  16511. * src/DownloadCommand.cc: Request->RequestHandle
  16512. * src/FtpConnection.h: Request->RequestHandle
  16513. * src/FtpDowndloadCommand.h: Request->RequestHandle
  16514. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  16515. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  16516. * src/Request.h
  16517. (SharedHandle.h): New include.
  16518. (RequestHandle): New type definition.
  16519. (Requests): Redefined.
  16520. To add MULTITRACKER support:
  16521. * src/TrackerWatcherCommand.h
  16522. (createRequestCommand): New function.
  16523. * src/DownloadEngineFactory.cc
  16524. (newTorrentConsoleEngine): Removed req.
  16525. * src/prefs.h
  16526. (PREF_TRACKER_MAX_TRIES): New definition.
  16527. * src/TorrentMan.cc
  16528. (TorrentMan): Removed req. Added trackerNumTry.
  16529. (~TorrentMan): Removed req.
  16530. (setupInternal1): Added announceList.
  16531. * src/TorrentRequestInfo.cc
  16532. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  16533. announces is now specified by PREF_TRACKER_MAX_TRIES.
  16534. * src/main.cc
  16535. (main): Added PREF_TRACKER_MAX_TRIES.
  16536. * src/TorrentMan.h
  16537. (Request.h): Removed.
  16538. (AnnounceList.h): New include.
  16539. (trackerNumTry): New variable.
  16540. (req): Removed.
  16541. (announceList): New variable.
  16542. * src/TrackerWatcherCommand.cc
  16543. (execute): Rewritten.
  16544. (createRequestCommand): New function.
  16545. * src/TrackerUpdateCommand.cc
  16546. (execute): Updated with the use of AnnounceList.
  16547. * src/AnnounceList.cc: New class.
  16548. * src/AnnounceList.h: New class.
  16549. To fix typo:
  16550. * src/prefs.h
  16551. (PREF_MAX_TRIES): max_try->max_tries
  16552. To not to decode "+" as space in URL decode:
  16553. * src/Util.cc
  16554. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  16555. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16556. To add timeout to async name resolution:
  16557. * src/AbstractCommand.h
  16558. (nameResolveFinished): New function. This is not elegant way. It needs
  16559. to be more refined.
  16560. (nameResolverCheck): New variable.
  16561. * src/AbstractCommand.cc
  16562. (AbstractCommand): Added nameResolverCheck.
  16563. (execute): Added the check whether the name resolution has finished.
  16564. (setNameResolverCheck): Set nameResolverCheck to true.
  16565. (disableNameResolverCheck): Set nameResolverCheck to false.
  16566. (nameResolverFinished): New function.
  16567. * src/FtpInitiateConnectionCommand.h
  16568. (nameResolverFinished): New function.
  16569. * src/FtpInitiateConnectionCommand.cc
  16570. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  16571. * src/HttpInitiateConnectionCommand.h
  16572. (nameResolverFinished): New function.
  16573. * src/HttpInitiateConnectionCommand.cc
  16574. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  16575. * src/prefs.h
  16576. (PREF_DNS_TIMEOUT): New definition.
  16577. * src/main.cc
  16578. (main): Added PREF_DNS_TIMEOUT.
  16579. To add the support for a non-compact response from a tracker:
  16580. * src/PeerListProcessor.h: New class.
  16581. * src/DefaultPeerListProcessor.h: New class.
  16582. * src/DefaultPeerListProcessor.cc: New class.
  16583. * src/CompactPeerListProcessor.h: New class.
  16584. * src/CompactPeerListProcessor.cc: New class.
  16585. * src/DelegatingPeerListProcessor.h: New class.
  16586. * src/DelegatingPeerListProcessor.cc: New class.
  16587. * src/TorrentMan.cc
  16588. (addPeer): New function(overload).
  16589. (addPeer): Delete unused peers only when new peer is added.
  16590. * src/TorrentMan.h
  16591. (PeerListProcessor.h): Included.
  16592. (Peers): Removed.
  16593. (addPeer): New function(overload).
  16594. * src/TrackerUpdateCommand.cc
  16595. (netinet/in.h): Removed.
  16596. (DelegatingPeerListProcessor.h): Included.
  16597. (execute): Updated to use DelegatingPeerListProcessor.
  16598. To fix the memory leak in TorrentMan::peers:
  16599. * src/PeerAbstractCommand.cc
  16600. (onAbort): Added peer->resetStatus().
  16601. * src/Peer.h
  16602. (resetStatus): Made public.
  16603. To improve the precision of the speed calculation:
  16604. * src/SpeedCalc.h
  16605. (nextInterval): New variable.
  16606. * src/SpeedCalc.cc
  16607. (reset): Added nextInterval.
  16608. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  16609. (changeSw): Set nextInterval to 15 seconds relative to the current
  16610. instant time.
  16611. * src/main.cc
  16612. (showVersion): Updated.
  16613. (showUsage): Updated.
  16614. * Release 0.8.1
  16615. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16616. * src/main.cc
  16617. (showUsage): Commented out --min-segment-size option.
  16618. (main): Commented out --min-segment-size option.
  16619. * Release 0.8.0
  16620. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16621. * src/*.{h,cc}:
  16622. Added an exception to the license which allows linking with OpenSSL.
  16623. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16624. * src/AbstractCommand.cc
  16625. (execute): Check whether the download has finished before checking
  16626. socket status.
  16627. Return true if peerStat->getStatus() == REQUEST_IDLE.
  16628. Do not exit even if no segment is available.
  16629. * src/prefs.h
  16630. (PREF_STARTUP_IDLE_TIME): New definition.
  16631. * src/PeerInteractionCommand.cc
  16632. (executeInternal): Removed max speed limit. Because it performs bad.
  16633. (receiveMessages): Added max speed limit. This was better than above,
  16634. but still a little bit to be desired. Sometimes the download speed
  16635. became much faster than I specified.
  16636. * src/SpeedCalc.h
  16637. (start): New variable.
  16638. (accumulatedLength): New variable.
  16639. (getAvgSpeed): New function.
  16640. * src/SpeedCalc.cc
  16641. (reset): Added start, accumulatedLength.
  16642. (update): Added calculation of an average speed.
  16643. (getAvgSpeed): New function.
  16644. * src/DownloadCommand.h
  16645. (sw): Removed.
  16646. * src/main.cc
  16647. (main): Added PREF_STARTUP_IDLE_TIME.
  16648. * src/PeerStat.h
  16649. (STATUS): Added REQUEST_IDLE.
  16650. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  16651. (getAvgDownloadSpeed): New function
  16652. (requestIdle): New function.
  16653. * src/SegmentMan.h
  16654. (SegmentEntryHandle): New type definition.
  16655. (SegmentEntries): Now holds SegmentEntryHandle.
  16656. (findSlowerSegmentEntry): New funtion.
  16657. * src/SegmentMan.cc
  16658. (save): Updated according to the changes in SegmentEntries.
  16659. (read): Updated according to the changes in SegmentEntries.
  16660. (FindSegmentEntryByIndex): Updated according to the changes in
  16661. SegmentEntries.
  16662. (FindSegmentEntryByCuid): Updated according to the changes in
  16663. SegmentEntries.
  16664. (checkoutSegment): Updated according to the changes in SegmentEntries.
  16665. (onNullBitfield): Updated according to the changes in SegmentEntries.
  16666. Renamed uitr as itr.
  16667. (findSlowerSegmentEntry): New function.
  16668. (getSegment): Updated according to the changes in SegmentEntries.
  16669. Added the feature that cancels the segment with slow server and fast
  16670. one takes it over.
  16671. (cancelSegment): Updated according to the changes in SegmentEntries.
  16672. (getDownloadLength): Updated according to the changes in
  16673. SegmentEntries.
  16674. (init): Assigned 0 to bitfield after deleting it.
  16675. * src/DownloadCommand.cc
  16676. (STARTUP_IDLE_TIME): Removed.
  16677. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  16678. * src/PeerChokeCommand.cc
  16679. (optUnchokingPeer): Updated according to the changes in Peer.
  16680. (ResetDelta): Removed.
  16681. (UploadFaster): Updated according to the changes in Peer.
  16682. (DownloadFaster): Updated according to the changes in Peer.
  16683. (execute): I clarify the meaning of "upload" and "download" here.
  16684. "upload" means the transfer from localhost to remote host.
  16685. "download" means the transfer from remote host to localhost.
  16686. Based on this rule, I swapped orderByUploadRate and
  16687. orderByDownloadRate.
  16688. * src/PeerInteractionCommand.cc
  16689. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  16690. (executeInternal): Removed the argument of
  16691. peerInteraction->sendMessages().
  16692. (receiveMessages): Rewritten download speed limit.
  16693. (sendKeepAlive): Removed peerInteraction->sendMessages().
  16694. * src/HttpResponseCommand.cc
  16695. (handleDefaultEncoding): If file size is unknown in torrent request,
  16696. do not call segmentMan->initBitfield() here.
  16697. Disabled persistent connection feature in torrent request.
  16698. * src/UrlRequestInfo.h
  16699. (UrlRequestInfo): Removed const qualifier from option.
  16700. * src/TorrentMan.h
  16701. (TransferStat): New class.
  16702. (deltaDownloadLength): Removed.
  16703. (deltaUploadLength): Removed.
  16704. (addDeltaDownloadLength): Removed.
  16705. (getDeltaDownloadLength): Removed.
  16706. (resetDeltaDownloadLength): Removed.
  16707. (addDeltaUploadLength): Removed.
  16708. (getDeltaUploadLength): Removed.
  16709. (resetDeltaUploadLength): Removed.
  16710. (addActivePeer): Added peer->activate().
  16711. (deleteActivePeer): Added peer->deactivate().
  16712. (calculateStat): New function.
  16713. * src/TorrentMan.cc
  16714. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  16715. (calculateStat): New function.
  16716. * src/PeerInteraction.h
  16717. (uploadLimit): Removed.
  16718. (option): New variable.
  16719. (setUploadLimit): Removed.
  16720. (getUploadSpeed): Removed.
  16721. (sendMessages): Removed the argument "currentUploadSpeed".
  16722. * src/PeerInteraction.cc
  16723. (prefs.h): Included.
  16724. (PeerInteraction): Removed uploadLimit. Added option.
  16725. (sendMessages): Rewritten upload speed limit.
  16726. (sendHandshake): Removed the argument from sendMessages().
  16727. (sendBitfield): Removed the argument from sendMessages().
  16728. * src/PeerAbstractCommand.cc
  16729. (execute): Commented out the portion of upload limit.
  16730. (onAbort): Removed peer->resetStatus().
  16731. * src/TorrentRequestInfo.cc
  16732. (timeoutSpecified): Declared extern.
  16733. (execute): Set timeout to 180 if timeout is not specified by.
  16734. command-line.
  16735. * src/PieceMessage.cc
  16736. (receivedAction): Added peer->updateDownloadLength().
  16737. Removed peer->addPeerUpload().
  16738. Removed torrentMan->addDeltaDownloadLength().
  16739. (send): Added peer->updateUploadLength().
  16740. Removed peer->addPeerDownload().
  16741. Removed torrentMan->addDeltaUploadLength().
  16742. * src/main.cc
  16743. (timeoutSpecified): New variable.
  16744. (main): Set timeoutSpecified to false.
  16745. If the command-line option "--upload-limit" is specified, then
  16746. timeoutSpecified is set to true. This option will remain in the next
  16747. release, but be deprecated in the future release.
  16748. * src/TorrentRequestInfo.h
  16749. (TorrentRequestInfo): Removed const qualifier from op.
  16750. * src/PeerStat.h
  16751. (uploadSpeed): New variable.
  16752. (PeerStat): Added default value to cuid.
  16753. (calculateUploadSpeed): New function.
  16754. (updateUploadLength): New function.
  16755. (getMaxUploadSpeed): New function.
  16756. (getAvgUploadSpeed): New function.
  16757. (reset): Added uploadSpeed. Set status to IDLE.
  16758. * src/TorrentDownloadEngine.h
  16759. (cp): Declared as Time.
  16760. (sessionDownloadLengthArray): Removed.
  16761. (sessionUploadLengthArray): Removed.
  16762. (currentCp): Removed.
  16763. (lastCalcStat): New variable
  16764. (lastElapsed): Removed.
  16765. (sessionDownloadLength): Removed.
  16766. (calculateStat): New function.
  16767. * src/TorrentDownloadEngine.cc
  16768. (initStatistics): Removed lastElapsed, cp[],
  16769. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  16770. currentCp, sessionDownloadLength.
  16771. Added cp.reset() and lastCalcStat.reset().
  16772. (calculateSpeed): Changed the name of the argument.
  16773. (calculateStatistics): Rewritten.
  16774. (calculateStat): New function.
  16775. * src/Peer.h
  16776. (PeerStat.h): Included.
  16777. (peerUpload): Removed.
  16778. (peerDownload): Removed.
  16779. (peerStat): New variable.
  16780. (sessionUploadLength): New variable.
  16781. (sessionDownloadLength): New variable.
  16782. (deltaUpload): Removed.
  16783. (deltaDownload): Removed.
  16784. (resetStatus): Made private.
  16785. (Peer): Added sessionUploadLength, sessionDownloadLength.
  16786. Removed peerUpload, peerDownload.
  16787. (updateUploadLength): New function.
  16788. (addDeltaUpload): Removed.
  16789. (updateDownloadLength): New function.
  16790. (resetDeltaUpload): Removed.
  16791. (getDeltaUpload): Removed.
  16792. (addDeltaDownload): Removed.
  16793. (calculateUploadSpeed): New function.
  16794. (resetDeltaDownload): Removed.
  16795. (getDeltaDownload): Removed.
  16796. (calculateDownloadSpeed): New function.
  16797. (getSessionUploadLength): New function.
  16798. (getSessionDownloadLength): New function.
  16799. (activate): New function.
  16800. (deactivate): New function.
  16801. (addPeerUpload): Removed.
  16802. (setPeerUpload): Removed.
  16803. (getPeerUpload): Removed.
  16804. (addPeerDownload): Removed.
  16805. (setPeerDownload): Removed.
  16806. (getPeerDownload): Removed.
  16807. * src/Peer.cc
  16808. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  16809. * src/MetalinkRequestInfo.h
  16810. (MetalinkRequestInfo): Removed const qualifier from op.
  16811. * src/RequestInfo.h
  16812. (op): Removed const qualifier.
  16813. (RequestInfo): Removed const qualifier from op.
  16814. * src/prefs.h
  16815. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  16816. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  16817. * src/PeerInteractionCommand.cc
  16818. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  16819. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  16820. * src/PeerInteraction.cc
  16821. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  16822. * src/main.cc
  16823. (showUsage): Updated the description of "--lowest-speed-limit" option.
  16824. Added the description of "--max-download-limit" option.
  16825. Removed the description of "--upload-limit" option.
  16826. Added the description of "--max-upload-limit" option.
  16827. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  16828. Added "--max-download-limit" option and "--max-upload-limit" option.
  16829. Added the warning message if "--upload-limit" option is used.
  16830. * src/DownloadCommand.cc
  16831. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  16832. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16833. To rewrite segment download mechanism for HTTP/FTP download.
  16834. Use BitfieldMan to manage segment download.
  16835. * src/HttpResponseCommand.h
  16836. (executeInternal): Pass the reference of segment.
  16837. * src/AbstractCommand.cc
  16838. (prepareForRetry): Call segmentMan->cancelSegment here.
  16839. (onAbort): Call segmentMan->cancelSegment here.
  16840. * src/HttpDownloadCommand.cc
  16841. (prepareForNextSegment): New function.
  16842. * src/DownloadEngineFactory.cc
  16843. (newConsoleEngine): Removed splitter.
  16844. (newTorrentConsoleEngine): Removed splitter.
  16845. * src/Request.h
  16846. (segment): Renamed from seg.
  16847. * src/FtpInitiateConnectionCommand.h
  16848. (executeInternal): Pass the reference of segment.
  16849. * src/AbstractCommand.h
  16850. (executeInternal): Pass the reference of segment.
  16851. * src/pref.h
  16852. (PREF_SEGMENT_SIZE): New definition.
  16853. * src/HttpProxyRequestCommand.h
  16854. (executeInternal): Pass the reference of segment.
  16855. * src/HttpResponseCommand.cc
  16856. (checkResponse): Allowed status 206 when a request range starts 0.
  16857. (handleDefaultEncoding): Rewritten the code related to Segment.
  16858. (handleOtherEncoding): Rewritten the code related to Segment.
  16859. * src/SegmentMan.h
  16860. (SegmentEntry): New class.
  16861. (SegmentEntries): New type definition.
  16862. (bitfield): New variable.
  16863. (usedSegmentEntries): New variable.
  16864. (onNullBitfield): New function.
  16865. (checkoutSegment): New function.
  16866. (segments): Removed.
  16867. (splitter): Removed.
  16868. (unregisterId): Removed.
  16869. (getSegment): New function(overload)
  16870. (getDownloadedSize): Removed.
  16871. (cancelSegment): New function.
  16872. (completeSegment): New function.
  16873. (initBitfield): New function.
  16874. (hasSegment): New function.
  16875. (getDownloadLength): New function.
  16876. * src/BitfieldMan.h
  16877. (getStartIndex): New function.
  16878. (getEndIndex): New function.
  16879. (getMissingUnusedIndex): New function(overload).
  16880. (getSparseMissingUnusedIndex): New function.
  16881. * src/BitfieldMan.cc
  16882. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  16883. (getMissingUnusedIndex): New function(overload).
  16884. (Range): New class.
  16885. (getStartIndex): New function.
  16886. (getEndIndex): New function.
  16887. (getSparseMissingUnusedIndex): New function.
  16888. (isBitSetInternal): Return false if the given index is less than 0.
  16889. * src/HttpInitiateConnectionCommand.h
  16890. (executeInternal): Pass the reference of segment.
  16891. * src/FtpNegotiateCommand.h
  16892. (executeInternal): Pass the reference of segment.
  16893. * src/FtpNegotiateCommand.cc
  16894. (recvSize): Initialize bitfield here.
  16895. * src/FtpTunnelResponseCommand.h
  16896. (executeInternal): Pass the reference of segment.
  16897. * src/HttpConnection.cc
  16898. (createRequest): Rewritten range header processing.
  16899. * src/DownloadCommand.h
  16900. (executeInternal): Pass the reference of segment.
  16901. (prepareForRetry): Removed.
  16902. (prepareForNextSegment): Added an argument segment. Made it a virtual
  16903. function.
  16904. * src/main.cc
  16905. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  16906. * src/SegmentMan.cc
  16907. (SegmentMan): Added bitfield. Removed splitter.
  16908. (~SegmentMan): Added bitfield. Removed splitter.
  16909. (unregisterId): Removed.
  16910. (getSegment): Rewritten.
  16911. (updateSegment): Rewritten.
  16912. (save): Rewritten.
  16913. (read): Rewritten.
  16914. (finished): Rewritten.
  16915. (getDownloadedSize): Removed.
  16916. (initBitfield): New function.
  16917. (FindSegmentEntryByIndex): New function object.
  16918. (FindSegmentEntryByCuid): New function object.
  16919. (checkoutSegment): New function.
  16920. (onNullBitfield): New function.
  16921. (getSegment): New function(overload).
  16922. (CancelSegment): New function object.
  16923. (cancelSegment): New function.
  16924. (completeSegment): New function.
  16925. (hasSegment): New function.
  16926. (getDownloadLength): New function.
  16927. * src/FtpInitiateConnectionCommand.cc
  16928. (executeInternal): Load .aria2 file after hostname resolution finishes.
  16929. * src/Segment.h: Rewritten.
  16930. * src/Segment.cc (operator<<): New function.
  16931. * src/HttpDownloadCommand.h
  16932. (prepareForNextSegment): New function.
  16933. * src/Request.cc
  16934. (resetUrl): Made segment null.
  16935. * src/DownloadEngine.cc
  16936. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  16937. * src/HttpProxyRequestCommand.h
  16938. (executeInternal): Pass the reference of segment.
  16939. * src/DownloadCommand.cc
  16940. (executeInternal): Rewritten the code related to Segment.
  16941. (prepareForRetry): Removed.
  16942. (prepareForNextSegment): Rewritten.
  16943. * src/FtpTunnelResponseCommand.h
  16944. (executeInternal): Pass the reference of segment.
  16945. To add HTTP 1.1 persistent connection support(experimental)
  16946. * src/HttpRequestCommand.cc
  16947. (executeInternal): Disable keep alive if it is disabled by
  16948. configuration.
  16949. * src/Request.h
  16950. (keepAlive): New variable.
  16951. (isKeepAlive): New function.
  16952. (setKeepAlive): New function.
  16953. * src/pref.h
  16954. (PREF_HTTP_KEEP_ALIVE): New definition.
  16955. * src/HttpResponseCommand.cc
  16956. (executeInternal): Check the remote server supports keep alive.
  16957. * src/HttpConnection.cc
  16958. (createRequest): Send "Connection: close" only if keep alive is
  16959. disabled.
  16960. * src/main.cc
  16961. (main):
  16962. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  16963. To add max download speed limit:
  16964. * src/pref.h
  16965. (PREF_MAX_SPEED_LIMIT): New definition.
  16966. * src/PeerInteractionCommand.cc
  16967. (executeInternal): Added max download speed limit. Not tested yet.
  16968. * src/SegmentMan.h
  16969. (PeerStats): New type definition.
  16970. (peerStats): New variable.
  16971. (registerPeerStat): New function.
  16972. (FindPeerStat): New function object.
  16973. (getPeerStat): New function.
  16974. (calculateDownloadSpeed): New function.
  16975. * src/SpeedCalc.h: New class.
  16976. * src/SpeedCalc.cc: New class.
  16977. * src/main.cc
  16978. (main):
  16979. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  16980. download speed is not restricted).
  16981. * src/PeerStat.h: New class.
  16982. * src/SegmentMan.cc
  16983. (registerPeerStat): New function.
  16984. (calculateDownloadSpeed): New function.
  16985. * src/DownloadCommand.cc
  16986. (STARTUP_IDLE_TIME): New definition.
  16987. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  16988. downloadStart.
  16989. (~DownloadCommand): Call peerStat->downloadStop.
  16990. (executeInternal): Added download speed limitter. Rewritten lowest
  16991. speed limitter.
  16992. * src/HttpConnection.cc
  16993. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  16994. * src/AbstractCommand.cc
  16995. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  16996. Added hostname to the error message.
  16997. * src/ConsoleDownloadEngine.cc
  16998. (calculateStatistics): Initialize psize with dlSize.
  16999. * src/PieceMessage.cc
  17000. (receivedAction): Do not call peerInteraction->abortPiece here.
  17001. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  17002. * src/BitfieldMan.h
  17003. (clearAllUseBit): New function.
  17004. (setAllUseBit): New function.
  17005. * src/BitfieldMan.cc
  17006. (clearAllBit): Do not clear useBitfield here.
  17007. (clearAllUseBit): New function.
  17008. (setAllUseBit): New function.
  17009. * src/Piece.cc
  17010. (clearAllBlock): Call bitfield->clearAllUseBit().
  17011. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17012. To make filename URL-decoded:
  17013. * src/HttpResponseCommand.h: Updated doc.
  17014. * src/HttpResponseCommand.cc
  17015. (determinFilename): Made filename URL-decoded.
  17016. * src/FtpInitiateConnectionCommand.cc
  17017. (executeInternal): Made filename URL-decoded.
  17018. * src/Util.h (urldecode): New function.
  17019. * src/Util.cc (urldecode): New function.
  17020. To fix a bug that caused assertion failure in ares_strerror:
  17021. * src/NameResolver.cc (callback): Fixed the bug.
  17022. * Release 0.7.3
  17023. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17024. To add --seed-time and --seed-ratio command-line option:
  17025. * src/Option.h (getAsDouble): New function.
  17026. * src/Option.cc (getAsDouble): New function.
  17027. * src/SeedCheckCommand.h: New class.
  17028. * src/SeedCheckCommand.cc: New class.
  17029. * src/DownloadEngineFactory.cc
  17030. (SeedCheckCommand.h): Included.
  17031. (UnionSeedCriteria.h): Included.
  17032. (TimeSeedCriteria.h): Included.
  17033. (ShareRatioSeedCriteria.h): Included.
  17034. (newTorrentConsoleEngine): Added the processing of seed option.
  17035. * src/SeedCriteria.h: New class.
  17036. * src/ShareRatioSeedCriteria.h: New class.
  17037. * src/TimeSeedCriteria.h: New class.
  17038. * src/UnionSeedCriteria.h: New class.
  17039. * src/prefs.h
  17040. (PREF_SEED_TIME): New definition.
  17041. (PREF_SEED_RATIO): New definition.
  17042. * src/main.cc
  17043. (showUsage): Added --seed-time and --seed-ratio option.
  17044. (main): Added --seed-time and --seed-ratio option.
  17045. Made default log file name "/dev/null".
  17046. * src/SharedHandle.h
  17047. (SharedHandle): Copy constructor. Made it assignable from the
  17048. SharedHandle of the subclasses.
  17049. (operator=): Made it assignable from the SharedHandle of the
  17050. subclasses.
  17051. (getRefCount): New function.
  17052. To add notice log level and the switch to write log to stdout. This
  17053. switch is configurable per log level.
  17054. * src/Logger.h
  17055. (notice): New function.
  17056. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  17057. constant.
  17058. * src/LogFactory.cc
  17059. (getInstance): The use of NullLogger was removed. A log message with
  17060. notice log level was made written to stdout along with log file.
  17061. * src/NullLogger.h
  17062. (notice): New function.
  17063. * src/SimpleLogger.h
  17064. (writeHeader): Added the 'file' argument.
  17065. (writeLog): Added the 'file' argument.
  17066. (writeFile): New function.
  17067. (stdoutField): New variable.
  17068. (SimpleLogger): Removed the default constructor.
  17069. (SimpleLogger): Made the default value of logfile 0.
  17070. (debug): Added 'virtual' keyword.
  17071. (info): Added 'virtual' keyword.
  17072. (warn): Added 'virtual' keyword.
  17073. (error): Added 'virtual' keyword.
  17074. (notice): New function.
  17075. (setStdout): New function.
  17076. * src/SimpleLogger.cc
  17077. (WRITE_LOG): Replaced writeLog with writeFile.
  17078. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  17079. (SimpleLogger): Removed the default constructor.
  17080. (setStdout): New function.
  17081. (writeLog): Added the handling of NOTICE log level.
  17082. (writeFile): New function.
  17083. (notice): New function.
  17084. * src/TorrentMan.h: Updated doc.
  17085. * src/BitfieldMan.h: Updated doc.
  17086. * src/TrackerWatcherCommand.cc
  17087. (execute): Return true if error occurred in the request to the tracker
  17088. and halt is requested.
  17089. * src/TrackerUpdateCommand.cc
  17090. (execute): Return true if error occurred in the request to the tracker
  17091. and halt is requested.
  17092. To call onDownloadComplete from TorrentMan::completePiece(), not from
  17093. DownloadEngine:
  17094. * src/TorrentConsoleDownloadEngine.h
  17095. (onSelectiveDownloadingCompletes): Removed.
  17096. * src/TorrentConsoleDownloadEngine.cc
  17097. (onSelectiveDownloadingCompletes): Removed.
  17098. * src/TorrentDownloadEngine.h
  17099. (onEndOfRun): Added 'virtual' keyword.
  17100. (afterEachIteration): Removed.
  17101. (onSelectiveDownloadingCompletes): Removed.
  17102. * src/TorrentDownloadEngine.cc
  17103. (onEndOfRun): Removed filenameFixed.
  17104. (afterEachIteration): Removed.
  17105. * src/TorrentMan.cc
  17106. (completePiece): Call onDownloadComplete here.
  17107. (onDownloadComplete): Added 2 log messages.
  17108. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17109. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  17110. * src/NameResolver.h: Added the prototype declaration of callback().
  17111. To support c-ares library:
  17112. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  17113. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  17114. * src/FtpInitiateConnectionCommand.h:
  17115. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  17116. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  17117. * src/HttpInitiateConnectionCommand.h:
  17118. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  17119. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  17120. Added thes upport of c-ares's ares_strerror(the idea came from patch
  17121. #1542285 by tizianomueller)
  17122. * src/HttpInitiateConnectionCommand.cc:
  17123. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  17124. * src/FtpInitiateConnectionCommand.cc:
  17125. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  17126. * src/DownloadEngine.h:
  17127. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  17128. * src/DownloadEngine.cc:
  17129. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  17130. To fix the bug that causes compilation failure with metalink-support
  17131. disabled(bug#1543587):
  17132. * src/main.cc: Fixed with the patch by tizianomueller.
  17133. * Release 0.7.2
  17134. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17135. * src/main.cc
  17136. (main): Added a message to inform users that aria2 is starting to
  17137. verify checksum.
  17138. * src/RequestInfo.cc
  17139. (printDownloadAbortMessage): Added a message to inform users that
  17140. transfer can be resumed.
  17141. * src/FeatureConfig.cc
  17142. (FEATURE_ASYNC_DNS): New definition.
  17143. (FeatureConfig): Added aysnc DNS entry.
  17144. To replace CommandUuid with Command* in SocketEntry and
  17145. NameResolverEntry:
  17146. * src/DownloadEngine.h
  17147. (CommandUuids): Removed.
  17148. (SocketEntry::commandUuid): Removed.
  17149. (SocketEntry::command): New variable.
  17150. (SocketEntry::SocketEntry): Updated.
  17151. (SocketEntry::operator==): Updated.
  17152. (NameResolverEntry::commandUuid): Removed.
  17153. (NameResolverEntry::command): New variable.
  17154. (NameResolverEntry::NameResolverEntry): Updated.
  17155. (NameResolverEntry::operator==): Updated.
  17156. (waitData): Changed the argument type.
  17157. (addSocketForReadCheck): Changed the argument type.
  17158. (deleteSocketForReadCheck): Changed the argument type.
  17159. (addSocketForWriteCheck): Changed the argument type.
  17160. (deleteSocketForWriteCheck): Changed the argument type.
  17161. (addNameResolverCheck): Changed the argument type.
  17162. (deleteNameResolverCheck): Changed the argument type.
  17163. * src/DownloadEngine.cc
  17164. (FindCommand): Removed.
  17165. (run): Removed activeUuid. Added activeCommands instead.
  17166. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  17167. (AccumulateActiveCommand): New function object.
  17168. (waitData): Use AccumulateActiveCommand.
  17169. (addSocketForReadCheck): Use Command instead of CommandUuid.
  17170. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  17171. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  17172. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  17173. (addNameResolverCheck): Use Command instead of CommandUuid.
  17174. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  17175. * src/AbstractCommand.cc
  17176. (disableReadCheckSocket): Updated according to the changes in
  17177. DownloadEngine.
  17178. (setReadCheckSocket): Updated according to the changes in
  17179. DownloadEngine.
  17180. (disableWriteCheckSocket): Updated according to the changes in
  17181. DownloadEngine.
  17182. (setWriteCheckSocket): Updated according to the changes in
  17183. DownloadEngine.
  17184. (setNameResolverCheck): Updated according to the changes in
  17185. DownloadEngine.
  17186. (disableNameResolverCheck): Updated according to the changes in
  17187. DownloadEngine.
  17188. * src/AbstractCommand.cc
  17189. (disableReadCheckSocket): Updated according to the changes in
  17190. DownloadEngine.
  17191. (setReadCheckSocket): Updated according to the changes in
  17192. DownloadEngine.
  17193. (disableWriteCheckSocket): Updated according to the changes in
  17194. DownloadEngine.
  17195. (setWriteCheckSocket): Updated according to the changes in
  17196. DownloadEngine.
  17197. * release 0.7.1
  17198. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17199. To handle the case where some BitTorrent tracker requires all letters
  17200. except for [A-Za-z0-9] is URL encoded.
  17201. * src/Util.h
  17202. (torrentUrlencode): New function.
  17203. * src/Util.cc
  17204. (ctype.h): Included.
  17205. (torrentUrlencode): New function.
  17206. * src/TrackerWatcherCommand.cc
  17207. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  17208. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17209. To add asynchronous DNS support(libares):
  17210. * src/AbstractCommand.h
  17211. (setNameResolverCheck): New function.
  17212. (disableNameResolverCheck): New function
  17213. (resolveHostname): New function.
  17214. * src/AbstractCommand.cc
  17215. (setNameResolverCheck): New function.
  17216. (disableNameResolverCheck): New function
  17217. (resolveHostname): New function.
  17218. * src/FtpInitiateConnectionCommand.h
  17219. (nameResolver): New function.
  17220. * src/FtpInitiateConnectionCommand.cc
  17221. (Util.h): Included.
  17222. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  17223. disableWriteCheckSocket.
  17224. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  17225. (executeInternal): Added async DNS support.
  17226. * src/HttpInitiateConnectionCommand.h
  17227. (nameResolver): New function.
  17228. * src/HttpInitiateConnectionCommand.cc
  17229. (DlRetryEx.h): Included.
  17230. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  17231. disableWriteCheckSocket.
  17232. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  17233. (executeInternal): Added async DNS support.
  17234. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  17235. by extern "C" declaration.
  17236. * src/NameResolver.cc: New class.
  17237. * src/Util.h:
  17238. (isNumberAndDotsNotation): New function
  17239. * src/Util.cc
  17240. (isNumberAndDotsNotation): New function.
  17241. * src/DownloadEngine.h
  17242. (NameResolver.h): Included.
  17243. (NameResolverEntry): New class.
  17244. (NameResolverEntries): New type definition.
  17245. (addNameResolverCheck): New function.
  17246. (deleteNameResolverCheck): New function.
  17247. * src/DownloadEngine.cc
  17248. (run): Initialize cp with 0.
  17249. (SetDescriptor::operator()): Added for NameResolverEntry.
  17250. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  17251. (waitData): Check nameResolver entries.
  17252. (updateFdSet): Update fds in nameResolver entries.
  17253. (addNameResolverCheck): New function.
  17254. (deleteNameResolverCheck): new function.
  17255. * src/PeerInteractionCommand.cc
  17256. (executeInternal): Fixed wrong socket handling.
  17257. * src/main.cc
  17258. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  17259. * src/Util.cc
  17260. (fileChecksum): Removed the call to ctx.digestReset().
  17261. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17262. * po/ru.po: Azamat sent me Russian translation.
  17263. * src/FtpNegotiateCommand.cc
  17264. (recvGreeting): Call disableWriteCheckSocket just after
  17265. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  17266. (recvRetr): Recognized status code 125 as a acceptable response code.
  17267. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  17268. case-insesitive filesystem(BUG#1531057).
  17269. * src/Time.h: Renamed as TimeA2.h.
  17270. * src/Time.cc: Renamed as TimeA2.cc.
  17271. * src/TimeA2.h: New class.
  17272. * src/TimeA2.cc: New class.
  17273. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  17274. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  17275. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  17276. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  17277. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  17278. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  17279. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  17280. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  17281. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  17282. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  17283. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  17284. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  17285. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  17286. * release 0.7.0
  17287. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17288. * src/PeerChokeCommand.h
  17289. (PeerChokeCommand): Rearranged the arguments.
  17290. * src/PeerChokeCommand.cc
  17291. (PeerChokeCommand): Rearranged the arguments.
  17292. * src/MetalinkEntry.h
  17293. (Checksum.h): Included.
  17294. (md5): Removed.
  17295. (sha1): Removed.
  17296. (checksum): New variable.
  17297. (operator=): Updated.
  17298. (check): Removed.
  17299. * src/prefs.h
  17300. (PREF_LOWEST_SPEED_LIMIT): New definition.
  17301. (PREF_FOLLOW_TORRENT): New definition.
  17302. (PREF_SELECT_FILE): New definition.
  17303. (PREF_FOLLOW_METALINK): New definition.
  17304. * src/MetalinkResource.h
  17305. (TYPE_HTTPS): Added to enum TYPE.
  17306. * src/TorrentMan.cc
  17307. (~TorrentMan): Rewritten.
  17308. * src/MultiDiskWriter.cc
  17309. (MultiDiskAdaptor): Updated according to the changes in
  17310. MessageDigestContext.
  17311. (~MultiDiskAdaptor): Updated according to the changes in
  17312. MessageDigestContext.
  17313. (hashUpdate): Updated according to the changes in MessageDigestContext.
  17314. (sha1Sum): Updated according to the changes in MessageDigestContext.
  17315. * src/Util.h
  17316. (fileChecksum): Updated according to the changes in
  17317. MessageDigestContext.
  17318. * src/Util.cc
  17319. (sha1Sum): Updated according to the changes in MessageDigestContext.
  17320. (fileChecksum): Updated according to the changes in
  17321. MessageDigestContext.
  17322. * src/messageDigest.h: Rewritten.
  17323. * src/MetalinkEntry.cc
  17324. (check): Removed.
  17325. (Supported): Updated.
  17326. (dropUnsupportedResource): Fixed a memory leak.
  17327. * src/ShaVisitor.cc
  17328. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  17329. (~ShaVisitor): Updated according to the changes in
  17330. MessageDigestContext.
  17331. (visit): Updated according to the changes in MessageDigestContext.
  17332. * src/main.cc
  17333. (main): Rewritten the portion of download loop. --lowest-speed-limit
  17334. command-line option added.
  17335. * src/DownloadEngine.h
  17336. (SocketEntry): New class.
  17337. (SocketEntries): New definition.
  17338. (PairFind): Removed.
  17339. (SockCmdMap): Removed.
  17340. * src/DownloadEngine.cc
  17341. (DownloadEngine): Rewritten.
  17342. (~DownloadEngine): Rewritten.
  17343. (run): Renamed activeCommandUuids as activeUuids.
  17344. (SetDescriptor): Rewritten.
  17345. (AccumulateActiveCommandUuid): Removed.
  17346. (AccumulateActiveUuid): New function object.
  17347. (waitData): Rewritten.
  17348. (updateFdSet): Rewritten.
  17349. (addSocket): Rewritten.
  17350. (deleteSocket): Rewritten.
  17351. (addSocketForReadCheck): Rewritten.
  17352. (deleteSocketForReadCheck): Rewritten.
  17353. (addSocketForWriteCheck): Rewritten.
  17354. (deleteSocketForWriteCheck): Rewritten.
  17355. * src/Xml2MetalinkProcessor.cc
  17356. (getEntry): Rewritten the portion of MetalinkEntry creation.
  17357. * src/DownloadCommand.cc
  17358. (executeInternal): Added the check routine for lowest speed limit.
  17359. * src/AbstractDiskWriter.cc
  17360. (AbstractDiskWriter): Updated according to the changes in
  17361. MessageDigestContext.
  17362. (~AbstractDiskWriter): Updated according to the changes in
  17363. MessageDigestContext.
  17364. (sha1Sum): Updated according to the changes in MessageDigestContext.
  17365. * src/RequestInfo.h: New class.
  17366. * src/UrlRequestInfo.h: New class.
  17367. * src/UrlRequestInfo.cc: New class.
  17368. * src/TorrentRequestInfo.h: New class.
  17369. * src/TorrentRequestInfo.cc: New class.
  17370. * src/MetalinkRequestInfo.h: New class.
  17371. * src/MetalinkRequestInfo.cc: New class.
  17372. * src/Checksum.h: New class.
  17373. * src/DownloadEngineFactory.h: New class.
  17374. * src/DownloadEngineFactory.cc: New class.
  17375. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17376. * src/Option.h
  17377. (getAsBool): New function.
  17378. * src/Option.cc
  17379. (prefs.h): Included.
  17380. (defined): 0-length value is now recognized as undefined.
  17381. (getAsInt): Rewritten.
  17382. (getAsLLInt): Rewritten.
  17383. (getAsBool): New function.
  17384. * src/FeatureConfig.h: Rewritten.
  17385. * src/FeatureConfig.cc: Rewritten.
  17386. * src/prefs.h
  17387. (PREF_STDOUT_LOG): New definition.
  17388. (PREF_LOG): New definition.
  17389. (PREF_DIR): New definition.
  17390. (PREF_OUT): New definition.
  17391. (PREF_SPLIT): New definition.
  17392. (PREF_DAEMON): New definition.
  17393. (PREF_REFERER): New definition.
  17394. (PREF_TORRENT_FILE): New definition.
  17395. (PREF_LISTEN_PORT): New definition.
  17396. (PREF_METALINK_FILE): New definition.
  17397. (PREF_METALINK_VERSION): New definition.
  17398. (PREF_METALINK_LANGUAGE): New definition.
  17399. (PREF_METALINK_OS): New definition.
  17400. (PREF_METALINK_SERVERS): New definition.
  17401. * src/main.cc
  17402. (main): Following command-line parameters are now put into Option
  17403. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  17404. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  17405. metalinkLanguage, metalinkOs, metalinkServers
  17406. To fix the bug that aria2 can not handle http response header properly.
  17407. * src/HttpHeader.cc
  17408. (put): Made name lowercased.
  17409. (defined): Made name lowercased.
  17410. (getFirst): Made name lowercased.
  17411. (get): Made name lowercased.
  17412. (getFirstAsInt): Rewritten.
  17413. (getFirstAsLLInt): Rewritten.
  17414. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17415. * src/TorrentMan.h:
  17416. (advertisePiece): Updated doc.
  17417. (getAdvertisedPieceIndexes): Updated doc.
  17418. (removeAdvertisedPiece); New function.
  17419. * src/TorrentMan.cc
  17420. (FindElapsedHave): New function object.
  17421. (removeAdvertisedPiece): New function.
  17422. * src/HaveEraseCommand.h: New class.
  17423. * src/HaveEraseCommand.cc: New class.
  17424. * src/FeatureConfig.h: New class.
  17425. * src/FeatureConfig.cc: New class.
  17426. * src/Request.h
  17427. (defaultPorts): Removed.
  17428. * src/Request.cc
  17429. (FeatureConfig.h): Included.
  17430. (Request): Removed the statements related to defaultPorts.
  17431. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  17432. A default port number is now retrieved from FeatureConfig.
  17433. * src/main.cc
  17434. (HaveEraseCommand.h): Included.
  17435. (showVersion): Added the output of feature list.
  17436. (main): Added HaveEraseCommand to command queue in BitTorrent
  17437. downloading.
  17438. * src/PeerInteractionCommand.h
  17439. (chokeCheckPoint): Commented out.
  17440. (periodicExecPoint): New variable.
  17441. * src/PeerInteractionCommand.cc
  17442. (executeInternal): Following methods are now called in at least every
  17443. 0.5 seconds to reduce CPU usage:
  17444. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  17445. checkHave(), sendKeepAlive().
  17446. (checkLongTimePeerChoking): Commented out.
  17447. * src/BitfieldMan.h
  17448. (getNthBitIndex): Changed the method signature.
  17449. (getMissingIndexRandomly): Changed the method signature.
  17450. * src/BitfieldMan.cc
  17451. (getNthBitIndex): Rewritten
  17452. (getMissingIndexRandomly): Rewritten.
  17453. (hasMissingPiece): Rewritten.
  17454. (getMissingIndex): Refactored.
  17455. (getMissingUnusedIndex); Refactored.
  17456. (getMissingIndex): Refactored.
  17457. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17458. * src/PeerMessage.h
  17459. (Piece.h): Included.
  17460. (SharedHandle.h): Included.
  17461. (invalidate): New variable.
  17462. (uploading): New variable.
  17463. (isInvalidate): New function.
  17464. (isUploading): New function.
  17465. (onPush): New function.
  17466. (onChoked): New function.
  17467. (onCanceled): New function.
  17468. (onAbortPiece): New function.
  17469. (PeerMessageHandle): New type definition.
  17470. * src/PeerMessage.cc
  17471. (PeerMessage): Added the initialization for invalidate and uploading.
  17472. * src/CancelMessage.h
  17473. (CancelMessage): Rewritten.
  17474. * src/RejectMessage.h
  17475. (RejectMessage): Rewritten.
  17476. * src/Metalinker.h
  17477. (operator=): Defined.
  17478. * src/MetaEntry.h
  17479. (operator=): Defined.
  17480. * src/MetalinkResource.h
  17481. (operator=): Defined.
  17482. * src/AllowedFastMessage.h
  17483. (AllowedFastMessage): Rewritten.
  17484. * src/HandshakeMessage.h
  17485. (HandshakeMessage): New function(overload).
  17486. * src/HandshakeMessage.cc
  17487. (HandshakeMessage): Rewritten.
  17488. (init): New function.
  17489. * src/HaveMessage.h
  17490. (HaveMessage): Rewritten.
  17491. * src/Time.h
  17492. (operator=): Defined the function body here.
  17493. * src/Time.cc
  17494. (operator=): Removed.
  17495. * src/SocketCore.h
  17496. (operator==): Defined here.
  17497. (operator!=): Defined here.
  17498. (operator<): Defined here.
  17499. * src/SocketCore.cc
  17500. (operator==): Removed.
  17501. (operator<): Removed.
  17502. * src/BitfieldMan.h
  17503. (operator=): Defined the function body here.
  17504. * src/BitfieldMan.cc
  17505. (operator=): Removed.
  17506. * src/TorrentMan.h
  17507. (deleteErrorPeer): Removed.
  17508. (deleteUnusedPeer); New function.
  17509. * src/TorrentMan.cc
  17510. (addPeer): Call deleteUnusedPeer.
  17511. (deleteErrorPeer): Removed.
  17512. (deleteUnusedPeer): New function.
  17513. * src/PeerAbstractCommand.h
  17514. (setNoCheck): New function.
  17515. (noCheck): New variable.
  17516. * src/PeerAbstractCommand.cc
  17517. (PeerAbstractCommand): Added the initialization of noCheck.
  17518. (execute): Added a check for noCheck.
  17519. (setNoCheck): New function.
  17520. * src/Util.h
  17521. (stdio.h): Included.
  17522. * src/Util.cc
  17523. (unistd.h): Included.
  17524. * src/DefaultDiskWriter.cc
  17525. (unistd.h): Included.
  17526. * src/Peer.h
  17527. (operator==): Defined the function body here.
  17528. (operator!=): Defined the function body here.
  17529. * src/Peer.cc
  17530. (operator==): Removed.
  17531. (operator!=): Removed.
  17532. * src/Piece.h
  17533. (Piece): Defined the function body here(copy constructor).
  17534. (operator=): Defined the function body here.
  17535. (operator==): Defined the function body here.
  17536. * src/Piece.cc
  17537. (Piece): Removed(copy constructor).
  17538. (operator=): Removed.
  17539. (operator==): Removed.
  17540. * src/PeerMessageUtil.h
  17541. (ChokeMessage.h): Removed.
  17542. (UnchokeMessage.h): Removed.
  17543. (InterestedMessage.h): Removed.
  17544. (NotInterestedMessage.h): Removed.
  17545. (HaveMessage.h): Removed.
  17546. (BitfieldMessage.h): Removed.
  17547. (RequestMessage.h): Removed.
  17548. (CancelMessage.h): Removed.
  17549. (PieceMessage.h): Removed.
  17550. (HandshakeMessage.h): Removed.
  17551. (KeepAliveMessage.h): Removed.
  17552. (PortMessage.h): Removed.
  17553. (HaveAllMessage.h): Removed.
  17554. (HaveNoneMessage.h): Removed.
  17555. (PeerConnection.h): Removed.
  17556. (HandshakeMessage.h): Included.
  17557. * src/BitfieldMessage.h
  17558. (init): New function.
  17559. (BitfieldMessage): Rewritten.
  17560. (BitfieldMessage): New function(overload).
  17561. * src/RequestSlot.h
  17562. (operator=): Defined the function body here.
  17563. (operator==): Defined the function body here.
  17564. * src/RequestSlot.cc
  17565. (operator=): Removed.
  17566. (operator==): Removed.
  17567. To remove the dependency on the PeerMessage subclass from
  17568. PeerInteraction:
  17569. * src/PeerMessageFactory.h: New class.
  17570. * src/PeerMessageFactory.cc: New class.
  17571. * src/SimplePeerMessage.cc
  17572. (send): If invalidate is true then do nothing.
  17573. * src/PeerInteractionCommand.cc
  17574. (HandshakeMessage.h): Included.
  17575. (KeepAliveMessage.h): Included.
  17576. (ChokeMessage.h): Included.
  17577. (UnchokeMessage.h): Included.
  17578. (HaveMessage.h): Included.
  17579. (executeInternal): Call setNoCheck().
  17580. Removed setWriteCheckSocket(socket).
  17581. * src/PeerInteraction.h
  17582. (ChokeMessage.h): Removed.
  17583. (UnchokeMessage.h): Removed.
  17584. (InterestedMessage.h): Removed.
  17585. (NotInterestedMessage.h): Removed.
  17586. (HaveMessage.h): Removed.
  17587. (BitfieldMessage.h): Removed.
  17588. (RequestMessage.h): Removed.
  17589. (CancelMessage.h): Removed.
  17590. (PieceMessage.h): Removed.
  17591. (HandshakeMessage.h): Removed.
  17592. (KeepAliveMessage.h): Removed.
  17593. (PortMessage.h): Removed.
  17594. (HaveAllMessage.h): Removed.
  17595. (HaveNoneMessage.h): Removed.
  17596. (RejectMessage.h): Removed.
  17597. (AllowedFastMessage.h): Removed.
  17598. (SuggestPieceMessage.h): Removed.
  17599. (PeerMessageFactory.h): Included.
  17600. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  17601. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  17602. (PeerMessageFactory): New variable.
  17603. (createPeerMessage): Removed.
  17604. (createHandshakeMessage): Removed.
  17605. (setPeerMessageCommonProperty): Removed.
  17606. (addRequestSlot): New function.
  17607. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  17608. (getPeerMessageFactory): New function.
  17609. (createRequestMessage): Removed.
  17610. (createCancelMessage): Removed.
  17611. (createPieceMessage): Removed.
  17612. (createHaveMessage): Removed.
  17613. (createChokeMessage): Removed.
  17614. (createUnchokeMessage): Removed.
  17615. (createInterestedMessage): Removed.
  17616. (createNotInterestedMessage): Removed.
  17617. (createBitfieldMessage): Removed.
  17618. (createKeepAliveMessage): Removed.
  17619. (createHaveAllMessage): Removed.
  17620. (createHaveNoneMessage): Removed.
  17621. (createRejectMessage): Removed.
  17622. (createAllowedFastMessage): Removed.
  17623. * src/PeerInteraction.cc
  17624. (PeerInteraction): Allocate PeerMessageFactory here.
  17625. (~PeerInteraction): Deallocate PeerMessageFactory here.
  17626. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  17627. PieceMessage::ID.
  17628. (addMessage): Simplified by using PeerMessage::onPush().
  17629. (addRequestSlot): New function.
  17630. (rejectAllPieceMessageInQueue): Simplified by using
  17631. PeerMessage::onChoked().
  17632. (rejectPieceMessageInQueue): Simplified by using
  17633. PeerMessage::onCanceled().
  17634. (abortPiece): Simplified by using PeerMessage::abortPiece().
  17635. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  17636. (createHandshakeMessage): Removed.
  17637. (createPeerMessage): Removed.
  17638. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  17639. (setPeerMessageCommonProperty): Removed.
  17640. (createRequestMessage): Removed.
  17641. (createCancelMessage): Removed.
  17642. (createPieceMessage): Removed.
  17643. (createHaveMessage): Removed.
  17644. (createChokeMessage): Removed.
  17645. (createUnchokeMessage): Removed.
  17646. (createInterestedMessage): Removed.
  17647. (createNotInterestedMessage): Removed.
  17648. (createBitfieldMessage): Removed.
  17649. (createKeepAliveMessage): Removed.
  17650. (createHaveAllMessage): Removed.
  17651. (createHaveNoneMessage): Removed.
  17652. (createRejectMessage): Removed.
  17653. (createAllowedFastMessage): Removed.
  17654. * src/PieceMessage.h
  17655. (createRejectMessage): New function.
  17656. (PieceMessage): Rewritten.
  17657. (onChoked): New function.
  17658. (onCanceled): New function.
  17659. * src/PieceMessage.cc
  17660. (send): If invalidate is true then do nothing, just return.
  17661. (createRejectMessage): New function.
  17662. (onChoked): New function.
  17663. (onCanceled): New function.
  17664. * src/RequestMessage.h
  17665. (RequestMessage): Rewritten.
  17666. (onPush): New function.
  17667. (onAbortPiece): New function.
  17668. * src/RequestMessage.cc
  17669. (onPush): New function.
  17670. (onAbortPiece): New function.
  17671. Update fd_set when a socket is added or deleted in order to improve
  17672. performance:
  17673. * src/DownloadEngine.h
  17674. (rfdset): New variable.
  17675. (wfdset): New variable.
  17676. (updateFdSet): New function.
  17677. * src/DownloadEngine.cc
  17678. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  17679. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  17680. (waitData): Copy rfdset and wfdset.
  17681. (updateFdSet): New function.
  17682. (addSocket): Call updateFdSet.
  17683. (deleteSocket): Call updateFdSet.
  17684. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17685. To add the support for Metalink3.0 backward compatible links:
  17686. * src/Request.h
  17687. (SAFE_CHARS): Added '#'.
  17688. (METALINK_MARK): New definition.
  17689. * src/Request.cc
  17690. (parseUrl): Added the support for Metalink3.0 backward compatible
  17691. links.
  17692. etc
  17693. * src/PeerInteraction.cc
  17694. (MsgPushBack): Removed.
  17695. (sendMessages): Use STL copy and back_inserter.
  17696. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  17697. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  17698. * src/TorrentMan.h
  17699. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  17700. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17701. * src/SharedHandle.h: New class.
  17702. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  17703. * src/HttpResponseCommand.h
  17704. (HttpResponseCommand): Wrapped Socket.
  17705. * src/SocketCore.h
  17706. (operator==): New function.
  17707. (operator!=): New function.
  17708. (operator<): New function.
  17709. (getSockfd): New function.
  17710. (isOpen): New function.
  17711. (writeData): New function.
  17712. * src/SocketCore.cc
  17713. (operator==): New function.
  17714. (operator!=): New function.
  17715. (operator<): New function.
  17716. * src/AbstractCommand.h
  17717. (socket): Changed its type to SocketHandle.
  17718. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17719. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17720. (disableReadCheckSocket): New function.
  17721. (disableWriteCheckSocket): New function.
  17722. (readCheckTarget): Changed its type to SocketHandle.
  17723. (writeCheckTarget): Changed its type to SocketHandle.
  17724. (AbstractCommand): Replaced Socket with SocketHandle.
  17725. * src/AbstractCommand.cc
  17726. (AbstractCommand): Replaced Socket with SocketHandle.
  17727. (~AbstractCommand): Removed the deallocation for Socket object.
  17728. (disableReadCheckSocket): New function.
  17729. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17730. (disableWriteCheckSocket): New function.
  17731. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17732. * src/HttpDownloadCommand.cc
  17733. (DownloadCommand): Replaced Socket with SocketHandle.
  17734. * src/PeerAbstractCommand.h
  17735. (socket): Changed its type to SocketHandle.
  17736. (peer): Changed its type to PeerHandle.
  17737. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17738. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17739. (disableReadCheckSocket): New function.
  17740. (disableWriteCheckSocket): New function.
  17741. (readCheckTarget): Changed its type to SocketHandle.
  17742. (writeCheckTarget): Changed its type to SocketHandle.
  17743. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17744. Replaced Peer with PeerHandle.
  17745. * src/HttpRequestCommand.cc
  17746. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17747. Use disableReadCheckSocket.
  17748. * src/PeerInitiateConnectionCommand.h
  17749. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17750. * src/PeerChokeCommand.cc
  17751. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  17752. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  17753. (execute): Use PeerHandle.
  17754. * src/PeerConnection.h
  17755. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  17756. (socket): Changed its type to SocketHandle.
  17757. (PeerConnection): Replaced Socket with SocketHandle.
  17758. * src/PeerConnection.cc
  17759. (PeerConnection): Replaced Socket with SocketHandle.
  17760. * src/PeerInteractionCommand.h
  17761. (PeerInteractionCommand): Replaced socket with SocketHandle.
  17762. Replaced Peer with PeerHandle.
  17763. * src/PeerInteractionCommand.cc
  17764. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  17765. Replaced Peer with PeerHandle.
  17766. (executeInternal): Use disableWriteCheckSocket.
  17767. Use HandshakeMessageHandle.
  17768. (receiveMessages): Use PeerMessageHandle.
  17769. (prepareForNextPeer): Use PeerHandle.
  17770. * src/HttpProxyRequestCommand.h
  17771. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17772. * src/HttpResponseCommand.cc
  17773. (HttpResponseCommand): Replaced Socket with SocketHandle.
  17774. * src/TorrentMan.cc
  17775. (nullPeer): Added external reference.
  17776. (~TorrentMan): Removed the deallocation of the elements of peers.
  17777. (addPeer): Rewritten.
  17778. (isPeerAvailable): Use nullPeer.
  17779. (deleteOldpeers): Replaced with deleteErrorPeer.
  17780. (deleteErrorPeer): New function.
  17781. (getPeer): Use PeerHandle and nullPeer.
  17782. (hasMissingPiece): Replaced Peer with PeerHandle.
  17783. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17784. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17785. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17786. (getMissingPiece): Replaced Peer with PeerHandle.
  17787. * src/FtpNegotiateCommand.cc
  17788. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  17789. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  17790. (recvGreeting): Use disableWriteCheckSocket.
  17791. (recvPasv): Removed the allocation of Socket.
  17792. Use disableReadCheckSocket.
  17793. (sendRestPasv): Use disableWriteCheckSocket.
  17794. (recvRetr): Changed assertion.
  17795. * src/PeerInteraction.h
  17796. (SharedHandle.h): Included SharedHandle.h.
  17797. (PeerMessageHandle): New type definition.
  17798. (HandshakeMessageHandle): New type definition.
  17799. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  17800. (peer): Changed its type to PeerHandle.
  17801. (createHandshakeMessage): Replaced HandshakeMessage with
  17802. HandshakeMessageHandle.
  17803. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  17804. (PeerInteraction): Replaced Peer with PeerHandle.
  17805. Replaced Socket with SocketHandle.
  17806. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17807. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17808. (receiveHandshake): Replaced HandshakeMessage with
  17809. HandshakeMessageHandle.
  17810. * src/PeerInteraction.cc
  17811. (PeerInteraction): Replaced Peer with PeerHandle.
  17812. Replaced Socket with SocketHandle.
  17813. (~PeerInteraction): Removed the deallocation of the elements of
  17814. messageQueue.
  17815. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  17816. (isSendingMessageInProgress): Replaced PeerMessage with
  17817. PeerMessageHandle.
  17818. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  17819. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17820. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  17821. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  17822. (abortPiece): Use PeerMessageHandle.
  17823. (receiveHandshake): Replaced HandshakeMessage with
  17824. HandshakeMessageHandle. Removed try-catch block.
  17825. (createHandshakeMessage): Replaced HandshakeMessage with
  17826. HandshakeMessageHandle.
  17827. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17828. Removed try-catch block.
  17829. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  17830. * src/HttpProxyResponseCommand.cc
  17831. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17832. * src/FtpTunnelResponseCommand.h
  17833. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17834. * src/HttpConnection.cc
  17835. (HttpConnection): Replaced Socket with SocketHandle.
  17836. * src/PeerAbstractCommand.cc
  17837. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17838. (~PeerAbstractCommand): Removed the deallocation of socket.
  17839. Use disableReadCheckSocket, disableWriteCheckSocket.
  17840. (disableReadCheckSocket): New function.
  17841. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17842. (disableWriteCheckSocket): New function.
  17843. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17844. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  17845. * src/FtpTunnelRequestCommand.cc
  17846. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17847. (~FtpTunnelRequestCommand): Corrected indentation.
  17848. * src/DownloadCommand.h
  17849. (DownloadCommand): Replaced Socket with SocketHandle.
  17850. * src/PeerListenCommand.cc
  17851. (PeerListenCommand): Removed the initialization of socket.
  17852. (~PeerListenCommand): Removed the deallocation of socket.
  17853. (bindPort): Use SocketHandle.
  17854. (execute): Use SocketHandle and PeerHandle.
  17855. * src/FtpDowndloadCommand.cc
  17856. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17857. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  17858. * src/main.cc
  17859. (main): Corrected indentation.
  17860. * src/HttpInitiateConnectionCommand.cc
  17861. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  17862. (executeInternal): Removed the allocation of socket.
  17863. * src/HttpRequestCommand.h
  17864. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17865. * src/FtpNegotiationCommand.h
  17866. (dataSocket): Changed its type to SocketHandle.
  17867. (serverSocket): Changed its type to SocketHandle.
  17868. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  17869. * src/TorrentMan.h
  17870. (MAX_PEER_UPDATE): Removed.
  17871. (MAX_PEERS): New definition.
  17872. (Peers): The element is now of type PeerHandle.
  17873. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  17874. (getPeer): Replaced Peer with PeerHandle.
  17875. (deleteOldErrorPeers): Removed.
  17876. (deleteErrorPeer): New function.
  17877. (hasMissingPiece): Replaced Peer with PeerHandle.
  17878. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17879. (getMissingPiece): Replaced Peer with PeerHandle.
  17880. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17881. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17882. (addActivePeer): Replaced Peer with PeerHandle.
  17883. (deleteActivePeer): Replaced Peer with PeerHandle.
  17884. Added a check for the return value of find.
  17885. * src/FtpTunnelResponseCommand.cc
  17886. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17887. * src/FtpInitiateConnectionCommand.cc
  17888. (executeInternal): Removed the allocation of socket.
  17889. * src/DownloadEngine.h
  17890. (Sockets): An element is now of type SocketHandle.
  17891. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  17892. (CommandUuids): New type definition.
  17893. (rsockets): Changed its type to SockCmdMap.
  17894. (wsockets): Changed its type to SockCmdMap.
  17895. (addSocket): Rewritten.
  17896. (deleteSocket): Rewritten.
  17897. (addSocketForReadCheck): Rewritten.
  17898. (deleteSocketForReadCheck): Rewritten.
  17899. (addSocketForWriteCheck): Rewritten.
  17900. (deleteSocketForWriteCheck): Rewritten.
  17901. (PairFind): New template class.
  17902. * src/HttpDownloadCommand.h
  17903. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  17904. * src/FtpConnection.cc
  17905. (FtpConnection): Replaced Socket with SocketHandle.
  17906. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  17907. block.
  17908. * src/InitiateConnectionCommandFactory.cc
  17909. (DlAbortEx.h): Included DlAbortEx.h.
  17910. (createInitiateConnectionCommand): Throw exception if the protocol of
  17911. requested URI is not supported.
  17912. * src/Peer.cc
  17913. (nullPeer): Changed its type to PeerHandle.
  17914. (operator==): New function.
  17915. (operator!=): New function.
  17916. * src/Peer.h
  17917. (SharedHandle.h): Included SharedHandle.h.
  17918. (operator==): New function.
  17919. (operator!=): New function.
  17920. (Peer): Added the default constructor.
  17921. Use resetStatus() to initialize member variables.
  17922. (nullPeer): Removed.
  17923. * src/TrackerUpdateCommand.cc
  17924. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  17925. with MIN_PEERS.
  17926. * src/PeerListenCommand.h
  17927. (socket): Changed its type to SocketHandle.
  17928. * src/Command.h
  17929. (CommandUuid): New type definition.
  17930. (uuid): New variable.
  17931. (uuidGen): New variable.
  17932. (Command): Added the initialization of uuid.
  17933. (getUuid): New function.
  17934. * src/Socket.h
  17935. (Socket): Removed.
  17936. (SocketHandle): New type definition.
  17937. * src/DownloadEngine.h
  17938. (FindCommand): New function object.
  17939. (run): The portion of socket check was rewritten.
  17940. (SetDescriptor): New function object.
  17941. (AccumulateActiveCommandUuid): New function object.
  17942. (waitData): Rewritten.
  17943. (addSocket): Rewritten.
  17944. (deleteSocket): Rewritten.
  17945. (addSocketForReadCheck): Rewritten.
  17946. (addSocketForWriteCheck): Rewritten.
  17947. (deleteSocketForReadCheck): Rewritten.
  17948. (deleteSocketForWriteCheck): Rewritten.
  17949. * src/HttpProxyResponseCommand.h
  17950. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  17951. * src/HttpConnection.h
  17952. (socket): Changed its type to SocketHandle.
  17953. (HttpConnection): Replaced Socket with SocketHandle.
  17954. * src/PeerInitiateConnectionCommand.cc
  17955. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17956. (executeInternal): Removed the allocation of socket.
  17957. (prepareForNextPeer): Use PeerHandle.
  17958. * src/PeerMessage.h
  17959. (peer): Changed its type to PeerHandle.
  17960. (getPeer): Replaced Peer with PeerHandle.
  17961. (setPeer): Replaced Peer with PeerHandle.
  17962. * src/DownloadCommand.cc
  17963. (DownloadCommand): Replaced Socket with SocketHandle.
  17964. * src/FtpConnection.h
  17965. (socket): Changed its type to SocketHandle.
  17966. (FtpConnection): Replaced Socket with SocketHandle.
  17967. (sendPort); Replaced Socket with SocketHandle.
  17968. * src/FtpDowndloadCommand.h
  17969. (ctrlSocket): Changed its type to SocketHandle.
  17970. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17971. * src/HttpProxyRequestCommand.cc
  17972. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17973. * src/FtpTunnelRequestCommand.h
  17974. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17975. etc
  17976. * src/PeerChokeCommand.h
  17977. (setAllPeerChoked): Removed.
  17978. (setAllPeerResetDelta): Removed.
  17979. * src/PeerChokeCommand.cc
  17980. (setAllPeerChoked): Removed.
  17981. (ChokePeer): New function object.
  17982. (setAllPeerResetDelta): Removed.
  17983. (ResetDelta): New function object.
  17984. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  17985. (execute): Show download speed when the local node is a seeder.
  17986. setAllPeerChoked and setAllPeerResetDelta were rewritten
  17987. using STL.
  17988. * src/TrackerWatcherCommand.h
  17989. (MIN_PEERS): Removed.
  17990. * src/TorrentMan.cc
  17991. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  17992. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17993. To fix the bug that .aria2 file is not saved if downloading is stopped
  17994. by the errors:it results that aria2 can not resume downloading:
  17995. * src/main.cc
  17996. (normalDownload): Added the call to save().
  17997. (main): Added the deletion of the elements in 'reserved'.
  17998. To fix log:
  17999. * src/PeerInteraction.cc
  18000. (receiveHandshake): Fixed log.
  18001. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18002. To improve download performance in BitTorrent:
  18003. * src/TorrentMan.cc
  18004. (getPeer): Check the number of connections. Return nullPeer if
  18005. it is greater than MAX_PEER_UPDATE.
  18006. This code was originally here, but was removed in 0.5.1.
  18007. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18008. To improve the conditional compilation:
  18009. * src/MultiDiskWriter.h:
  18010. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  18011. * src/MultiDiskWriter.cc:
  18012. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  18013. * src/Util.h:
  18014. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  18015. Added ENABLE_BITTORRENT around computeFastSet().
  18016. * src/Util.cc:
  18017. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  18018. Added ENABLE_BITTORRENT around computeFastSet().
  18019. * src/messageDigest.h:
  18020. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  18021. * src/ShaVisitor.h:
  18022. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  18023. * src/ShaVisitor.cc:
  18024. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  18025. * src/main.cc:
  18026. Added ENABLE_BITTORRENT around includes and blocks related to
  18027. BitTorrent.
  18028. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  18029. digest support is not available.
  18030. * src/AbstractDiskWriter.h:
  18031. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  18032. * src/AbstractDiskWriter.cc:
  18033. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  18034. * src/MetalinkEntry.cc
  18035. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  18036. support is not available.
  18037. To add command-line options for Metalink:
  18038. * src/main.cc:
  18039. Added metalink-version, metalink-language, metalink-os,
  18040. follow-metalink.
  18041. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  18042. * src/main.cc: Use these definition.
  18043. * Release 0.6.0
  18044. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18045. To add Metalink support(http/ftp only):
  18046. * src/AbstractCommand.h
  18047. (tryReserved): New function.
  18048. * src/AbstractCommand.cc
  18049. (execute): Call tryReserved().
  18050. (tryReserved): New function.
  18051. * src/Request.h
  18052. (Requests): New type definition.
  18053. * src/SegmentMan.h
  18054. (reserved): New variable.
  18055. * src/Util.h
  18056. (fileChecksum): New function.
  18057. (toUpper): New function.
  18058. (toLower): New function.
  18059. * src/Util.cc
  18060. (messageDigest.h): Included.
  18061. (trim): Trim \r\n\t.
  18062. (fileChecksum): New function.
  18063. (toUpper): New function.
  18064. (toLower): New function.
  18065. * src/main.cc
  18066. (normalDownload): New function.
  18067. (main): Added 2 command-line options: metalink-file,
  18068. metalink-connection. Their usage has not been written yet.
  18069. * src/MetalinkProcessor.h: New class.
  18070. * src/Xml2MetalinkProcessor.h: New class.
  18071. * src/Xml2MetalinkProcessor.cc: New class.
  18072. * src/MetalinkEntry.h: New class.
  18073. * src/MetalinkEntry.cc: New class.
  18074. * src/MetalinkResource.h: New class.
  18075. * src/MetalinkResource.cc: New class.
  18076. To add md5 message digest checking:
  18077. * src/messageDigest.h: Rewritten.
  18078. * src/MultiDiskWriter.cc: Updated according to the changes in
  18079. messageDigest.h.
  18080. * src/ShaVisitor.cc: Updated according to the changes in
  18081. messageDigest.h.
  18082. * src/Util.cc: Updated according to the changes in messageDigest.h.
  18083. * src/AbstractDiskWriter.cc: Updated according to the changes in
  18084. messageDigest.h.
  18085. To fix a bug that causes segfault when the payload length in peer
  18086. message is less than 0:
  18087. * src/PeerConnection.cc:
  18088. (receiveMessage): Fixed the bug.
  18089. * src/PeerMessageUtil.cc
  18090. (checkLength): Throw an exception if length is less than or equals to
  18091. 0.
  18092. To add new interfaces to Base64 encoding/decoding:
  18093. * src/Base64.h
  18094. (part_encode): Changed the method signature.
  18095. (encode): New function(overload).
  18096. (decode): New function(overload).
  18097. * src/Base64.cc
  18098. (part_encode): Rewritten.
  18099. (encode): Rewritten.
  18100. (encode): New function(overload).
  18101. To prevent a peer to download same piece if there is an error in
  18102. checksum:
  18103. * src/PieceMessage.cc
  18104. (receivedAction): Call peerInteraction->abortPiece().
  18105. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18106. To fix the bug that causes same have message is sent many times to
  18107. a single peer.
  18108. * src/Time.cc
  18109. (isNewer): Use Util::difftv().
  18110. * src/Util.cc
  18111. (difftv): Added a cast to (long long int).
  18112. * src/TorrentMan.cc
  18113. (advertisePiece): Use push_front.
  18114. (getAdvertisedPieceIndexes): A performance improvement was made.
  18115. To fix the bug that sends tracker requests without a sleep interval
  18116. when the number of connections is less than 15.
  18117. * src/TrackerWatcherCommand.cc
  18118. (execute): Now the number of connections is not a factor to decide
  18119. whether or not a tracker request should be sent or not.
  18120. * src/Time.h
  18121. (setTimeInSec): New function.
  18122. * src/Time.cc
  18123. (setTimeInSec): New function.
  18124. etc.
  18125. * src/ChokeMessage.cc
  18126. (receivedAction): Removed peer->snubbing = false
  18127. * src/PeerConnection.h
  18128. (receiveHandshake): Updated doc.
  18129. * src/TorrentMan.h
  18130. (getAdvertisedPieceIndexes): Updated the method signature.
  18131. * src/TorrentMan.cc
  18132. (getAdvertisedPieceIndexes): Updated the method signature.
  18133. * src/Time.h
  18134. (getTimeInMicros): Added a cast to (long long int).
  18135. (getTimeInMillis): Added a cast to (long long int).
  18136. * Release 0.5.2
  18137. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18138. To make a listening socket non-block:
  18139. * src/SocketCore.h
  18140. (setNonBlockingMode): New function.
  18141. * src/SocketCore.cc
  18142. (setNonBlockingMode): New function.
  18143. (beginListen): Added a call to setNonBlockingMode().
  18144. (acceptConnection): Call setNonBlockingMode().
  18145. (setBlockingMode): Updated.
  18146. To handle tracker's NAT-checking:
  18147. * src/PeerConnection.cc
  18148. (receiveHandshake): 'msg' param is filled with received data and
  18149. its length is assigned to 'length' param, even if all handshake
  18150. message is not yet received.
  18151. * src/PeerInteractionCommand.cc
  18152. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  18153. a new peer connects to localhost.
  18154. A call to peerInteraction->sendHandshake() was removed because
  18155. it is called from peerInteraction->receiveHandshake(true).
  18156. * src/PeerInteraction.h
  18157. (quickReplied): New variable.
  18158. (receiveHandshake): Added an argument.
  18159. * src/PeerInteraction.cc
  18160. (PeerInteraction): Added the initialization of quickReplied.
  18161. (receiveHandshake): Send handshake message as soon as the info hash
  18162. in a handshake message from a peer is correct.
  18163. To change the random part of peer id and key parameter:
  18164. * src/TorrentMan.h
  18165. (key): New variable.
  18166. * src/TorrentMan.cc
  18167. (setupInternal1): Use Util::randomAlpha() to generate random part
  18168. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  18169. key is also generated by Util::randomAlpha() and it is now 8 character
  18170. long.
  18171. * src/Util.h
  18172. (randomAlpha): New function.
  18173. * src/Util.cc
  18174. (randomAlpha): New function.
  18175. * src/TrackerWatcherCommand.cc
  18176. (execute): In a tracker request: Use torrentMan->key as key parameter.
  18177. Added no_peer_id=1.
  18178. Set snubbing flag to false when a choke message is received from a
  18179. snubbed peer.
  18180. * src/ChokeMessage.cc
  18181. (receivedAction): Set snubbing flag to false.
  18182. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18183. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  18184. * src/SimpleLogger.h (writeHeader): New function.
  18185. * src/SimpleLogger.cc (writeHeader): New function.
  18186. (writeLog): Fixed the bug that causes segfaults if exception message
  18187. contains an unescaped "%" character.
  18188. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  18189. when a tracker request fails.
  18190. * src/Request.cc (parseUrl): Query string is now handled properly.
  18191. * Release 0.5.1
  18192. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18193. To add Time class which represents a specific instant in time and
  18194. its precision is microseconds. Time checking procedures were rewritten
  18195. using this object.
  18196. * src/Time.h: New class.
  18197. * src/Time.cc: New class.
  18198. * src/AbstractCommand.h
  18199. (updateCheckPoint): Removed.
  18200. (isTimeoutDetected): Removed.
  18201. (checkPoint): Changed the type to Time.
  18202. (timeout): New variable.
  18203. (setTimeout): New function.
  18204. * src/AbstractCommand.cc
  18205. (AbstractCommand): Removed the initialization of checkPoint.
  18206. Added the initialization of timeout.
  18207. (updateCheckPoint): Removed.
  18208. (isTimeoutDetected): Removed.
  18209. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  18210. * src/PeerChokeCommand.h
  18211. (checkPoint): Changed the type to Time.
  18212. * src/PeerChokeCommand.cc
  18213. (PeerChokeCommand): Removed the initialization of checkPoint.
  18214. (execute): Rewritten using Time object.
  18215. * src/TrackerWatcherCommand.h
  18216. (checkPoint): Changed the type to Time.
  18217. * src/TrackerWatcherCommand.cc
  18218. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  18219. (execute): Rewritten.
  18220. * src/ConsoleDownloadEngine.h
  18221. (cp): Changed the type to Time.
  18222. (startup): Changed the type to Time.
  18223. * src/ConsoleDownloadEngine.cc
  18224. (initStatistics): Use cp.reset(), startup.reset().
  18225. (calculateStatistics): Rewritten using Time object.
  18226. * src/PeerAbstractCommand.h
  18227. (updateCheckPoint): Removed.
  18228. (isTimeoutDetected): Removed.
  18229. (checkPoint): Changed the type to Time.
  18230. * src/PeerAbstractCommand.cc
  18231. (PeerAbstractCommand): Removed the initialization of checkPoint.
  18232. (updateCheckPoint): Removed.
  18233. (isTimeoutDetected): Removed.
  18234. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  18235. * src/PeerInteractionCommand.cc
  18236. (PeerInteractionCommand): Removed the initializations of struct
  18237. timeval variables.
  18238. * src/PeerInteractionCommand.h
  18239. (keepAliveCheckPoint): Changed the type to Time.
  18240. (chokeCheckPoint): Changed the type to Time.
  18241. (freqCheckPoint): Changed the type to Time.
  18242. (haveCheckTime): Changed the type to Time.
  18243. * src/PeerInteractionCommand.cc
  18244. (executeInternal): Rewritten using Time object.
  18245. (detectMessageFlooding): Rewritten using Time object.
  18246. (checkLongTimePeerChoking): Rewritten using Time object.
  18247. (sendKeepAlive): Rewritten using Time object.
  18248. (checkHave): Rewritten using Time object.
  18249. * src/SleepCommand.h
  18250. (checkPoint): Changed the type to Time.
  18251. * src/SleepCommand.cc
  18252. (SleepCommand): Removed the initialization of checkPoint.
  18253. (execute): Rewritten using Time object.
  18254. * src/TorrentAutoSaveCommand.h
  18255. (checkPoint): Changed the type to Time.
  18256. * src/TorrentAutoSaveCommand.cc
  18257. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  18258. (execute): Rewritten.
  18259. * src/DownloadCommand.h
  18260. (sw): Changed the type to Time.
  18261. * src/DownloadCommand.cc
  18262. (DownloadCommand): Removed the initialization of sw.
  18263. (executeInternal): Rewritten.
  18264. * src/RequestSlot.h
  18265. (dispatchedTime): Changed the type to Time.
  18266. * src/RequestSlot.cc
  18267. (RequestSlot): Removed the call to setDispatchedTime().
  18268. (setDispatchedTime): Rewirtten.
  18269. (isTimeout): Rewritten.
  18270. (getLatencyInMillis): Rewritten.
  18271. * src/TorrentDownloadEngine.h
  18272. (cp): Changed the type to Time[2].
  18273. (startup): Changed the type to Time.
  18274. * src/TorrentDownloadEngine.cc
  18275. (initStatistics): Rewritten.
  18276. (calculateStatistics): Rewritten.
  18277. * src/DownloadEngine.cc
  18278. (run): Rewritten.
  18279. To detect all attempts to connect to the tracker are failed:
  18280. * src/AbstractCommand.cc
  18281. (execute): Increment e->segmentMan->errors if a command aborted.
  18282. * src/SegmentMan.h
  18283. (errors): New variable.
  18284. * src/SegmentMan.cc
  18285. (SegmentMan): Added the initialization of errors.
  18286. (init): Added the initialization of errors.
  18287. * src/TrackerWatcherCommand.cc
  18288. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  18289. request was failed.
  18290. To handle snubbed peers:
  18291. * src/PeerChokeCommand.cc
  18292. (optUnchokingPeer): Snubbed peers don't get unchoked.
  18293. (execute): Snubbed peers don't get unchoked.
  18294. * src/PeerInteraction.h
  18295. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  18296. * src/PeerInteraction.cc
  18297. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  18298. back the requested 16k block in 60 seconds.
  18299. * src/PieceMessage.cc
  18300. (receivedAction): A peer's snubbed state is cleard if it sends
  18301. the requested 16k block in 60 seconds.
  18302. * src/Peer.h
  18303. (snubbing): New variable.
  18304. * src/Peer.cc
  18305. (resetStatus): Added snubbed = false.
  18306. To fix the bug that causes have message is not sent:
  18307. * src/PeerInteractionCommand.cc
  18308. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  18309. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  18310. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  18311. * src/TorrentMan.h
  18312. (HaveEntry): New class.
  18313. (advertisePiece): Rewritten.
  18314. (getAdvertisedPieceIndexes): Rewritten.
  18315. (Haves): Changed the type.
  18316. (getAdvertisedPieceIndexes): Added an argument.
  18317. Others:
  18318. * src/TorrentMan.h
  18319. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  18320. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  18321. * src/TorrentMan.cc
  18322. (getPeer): Don't check the number of connections here.
  18323. (setupInternal1): Changed peerId.
  18324. * src/PeerInteractionCommand.h
  18325. (KEEP_ALIVE_INTERVAL): New definition.
  18326. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  18327. * src/main.cc
  18328. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  18329. * src/DownloadEngine.h: Removed unnecessary header includes.
  18330. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18331. To fix the bug that causes segfaults if a tracker returns a zero-length
  18332. list as "peers":
  18333. * src/TrackerUpdateCommand.cc
  18334. (execute): Added a check to see wether the type of peers is Data*.
  18335. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18336. * Release 0.5.0
  18337. To fix compile issue with gcc3:
  18338. * src/CancelMessage.h
  18339. (ID): Renamed as ID_t
  18340. (ID_t): New enum.
  18341. * src/RejectMessage.h
  18342. (ID): Renamed as ID_t
  18343. (ID_t): New enum.
  18344. * src/SuggestPieceMessage.h
  18345. (ID): Renamed as ID_t
  18346. (ID_t): New enum.
  18347. * src/AllowedFastMessage.h
  18348. (ID): Renamed as ID_t
  18349. (ID_t): New enum.
  18350. * src/PortMessage.h
  18351. (ID): Renamed as ID_t
  18352. (ID_t): New enum.
  18353. * src/HaveNoneMessage.h
  18354. (ID): Renamed as ID_t
  18355. (ID_t): New enum.
  18356. * src/KeepAliveMessage.h
  18357. (ID): Renamed as ID_t
  18358. (ID_t): New enum.
  18359. * src/HaveAllMessage.h
  18360. (ID): Renamed as ID_t
  18361. (ID_t): New enum.
  18362. * src/UnchokeMessage.h
  18363. (ID): Renamed as ID_t
  18364. (ID_t): New enum.
  18365. * src/BitfieldMessage.h
  18366. (ID): Renamed as ID_t
  18367. (ID_t): New enum.
  18368. * src/PieceMessage.h
  18369. (ID): Renamed as ID_t
  18370. (ID_t): New enum.
  18371. * src/RequestMessage.h
  18372. (ID): Renamed as ID_t
  18373. (ID_t): New enum.
  18374. * src/NotInterestedMessage.h
  18375. (ID): Renamed as ID_t
  18376. (ID_t): New enum.
  18377. * src/ChokeMessage.h
  18378. (ID): Renamed as ID_t
  18379. (ID_t): New enum.
  18380. * src/InterestedMessage.h
  18381. (ID): Renamed as ID_t
  18382. (ID_t): New enum.
  18383. * src/HaveMessage.h
  18384. (ID): Renamed as ID_t
  18385. (ID_t): New enum.
  18386. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18387. * src/PeerAbstractCommand.h
  18388. (beforeSocketCheck): Removed.
  18389. * src/PeerAbstractCommand.cc
  18390. Modified in order to call executeInternal() even if socket check
  18391. and upload limit check fail.
  18392. * src/PeerInteractionCommand.h
  18393. (keepAlive): Removed.
  18394. (sendKeepAlive): New function.
  18395. (checkHave): New function.
  18396. (beforeSocketCheck): Removed.
  18397. * src/PeerInteractionCommand.cc
  18398. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  18399. calls to checkHave() and sendKeepAlive().
  18400. (keepAlive): Renamed to sendKeepAlive().
  18401. (sendKeepAlive): New function.
  18402. (beforeSocketCheck): Removed.
  18403. (checkHave): New function.
  18404. * src/BitfieldMan.cc
  18405. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  18406. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  18407. 0.
  18408. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  18409. * src/TorrentMan.h
  18410. (UsedPieces): Removed.
  18411. (Pieces): New type definition.
  18412. * src/Piece.h: Updated doc.
  18413. * src/Peer.h
  18414. (totalLength): Removed.
  18415. * src/Peer.cc
  18416. (updateLatency): Fixed the latency calculation.
  18417. * src/TorrentMan.cc
  18418. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  18419. than or equal to MAX_PEER_LIST_SIZE.
  18420. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  18421. then return false.
  18422. (deleteOldErrorPeers): Rewritten.
  18423. (deleteUsedPiece): Fixed the miss use of STL remove.
  18424. * src/PeerInteraction.h
  18425. (Pieces): Removed.
  18426. (deleteTimeoutRequestSlot): Removed.
  18427. (deleteCompletedRequestSlot): Removed.
  18428. (checkRequestSlot): New function.
  18429. * src/PeerInteraction.cc
  18430. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  18431. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  18432. (checkRequestSlot): New function.
  18433. * src/DownloadEngine.cc
  18434. (run): Clear activeSockets before calling waitData().
  18435. (waitData): Removed a call to activeSockets.clear().
  18436. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18437. To attempt to handle EINTR:
  18438. * src/SocketCore.cc
  18439. (isReadable): Added EINTR handling.
  18440. (isWritable): Added EINTR handling.
  18441. To improve the performance:
  18442. * src/AbstractCommand.cc
  18443. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  18444. * src/PeerInteractionCommand.h
  18445. (receiveMessage): Renamed as receiveMessages().
  18446. (receiveMessages): New function.
  18447. * src/PeerInteractionCommand.cc
  18448. (executeInternal): receiveMessage loop is moved to new receiveMessages
  18449. () function. detectMessageFlooding() is moved here.
  18450. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  18451. (). The flooding detection for have message is comment out.
  18452. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  18453. Util::difftv().
  18454. (receiveMessage): Renamed as receiveMessages().
  18455. (receiveMessages): New function.
  18456. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  18457. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  18458. * src/SleepCommand.cc
  18459. (execute): Use Util::difftvsec() instead of Util::difftv().
  18460. * src/BitfieldMan.h
  18461. (getNthBitIndex): New function.
  18462. (hasMissingPiece): New function.
  18463. (getAllMissingIndexes): New function.
  18464. * src/BitfieldMan.cc
  18465. (countSetBit): Rewritten.
  18466. (getNthBitIndex): New function.
  18467. (getMissingIndexRandomly): Rewritten.
  18468. (hasMissingPiece): New function.
  18469. (getAllMissingIndexes): New function.
  18470. * src/TorrentMan.cc
  18471. (hasMissingPiece): New function.
  18472. (deleteUsedPiece): Rewritten using STL.
  18473. * src/PeerInteraction.cc
  18474. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  18475. is a little bit faster then TorrentMan::getMissingPieceIndex().
  18476. (addRequests): Updated the number of pending requests.
  18477. * src/PeerAbstractCommand.cc
  18478. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  18479. (execute): Returns true if TorrentMan::isHalt() is true.
  18480. Corrected the condition of upload limit checking.
  18481. * src/Util.h
  18482. (countBit): New function.
  18483. * src/Util.cc
  18484. (nbits): New variable.
  18485. (countBit): New function.
  18486. * src/DownloadEngine.h
  18487. (SockCmdMap): New type definition.
  18488. (waitData): Added an argument.
  18489. (addSocket): Added an argument.
  18490. (addSocketForReadCheck): Added an argument.
  18491. (addSocketForWriteCheck): Added an argument.
  18492. * src/DownloadEngine.cc
  18493. (run): Executes only commands whose sockets are ready to read or write.
  18494. All commands are executed in every 1 second.
  18495. (waitData): Calls select() again if it returned
  18496. EINTR.
  18497. (addSocket): Saves socket and command object pair to the map.
  18498. (deleteSocket): Deletes socket and command object pair from the map.
  18499. (addSocketForReadCheck): Added an argument.
  18500. (addSocketForWriteCheck): Added an argument.
  18501. * src/DownloadCommand.cc
  18502. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  18503. To send "event=stopped" to the tracker when the application finishes:
  18504. * src/PeerChokeCommand.h
  18505. (checkPoint): New variable.
  18506. * src/PeerChokeCommand.cc
  18507. (PeerChokeCommand): Added the initialization of checkPoint.
  18508. (execute): The interval check is now done by checkPoint, not
  18509. SleepCommand. Return true if TorrentMan::isHalt() is true.
  18510. * src/TorrentMan.h
  18511. (halt): New function.
  18512. (hasMissingPiece): New function.
  18513. (isHalt): New function.
  18514. (setHalt): New function.
  18515. * src/TorrentMan.cc
  18516. (TorrentMan): Added the initialization of halt.
  18517. * src/TorrentAutoSaveCommand.h
  18518. (checkPoint): New variable.
  18519. * src/PeerListenCommand.cc
  18520. (execute): Returns true if TorrentMan::isHalt() is true.
  18521. * src/main.cc
  18522. (setSignalHander): Added flags argument.
  18523. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  18524. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  18525. Removed printDownloadAbortMessage() after torrent downloading loop.
  18526. * src/TorrentAutoSaveCommand.cc
  18527. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  18528. (execute): Returns true if TorrentMan::isHalt() is true.
  18529. The interval check is now done by checkPoint, not SleepCommand.
  18530. * src/TrackerWatcherCommand.cc
  18531. (execute): If TorrentMan::isHalt(), then create a tracker request with
  18532. event=stopped.
  18533. * src/TrackerUpdateCommand.cc
  18534. (prepareForRetry): Do not use SleepCommand here.
  18535. (execute): Returns true if TorrentMan::isHalt() is true.
  18536. Others:
  18537. * src/TorrentMan.cc
  18538. (getMissingPieceIndex): Updated log message.
  18539. * src/PeerInteraction.cc
  18540. (createPeerMessag): Updated log message.
  18541. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18542. To add the ability to download several pieces in mix in a command and
  18543. increase the number of request slots according to request-cancel
  18544. latency:
  18545. * src/PeerInteractionCommand.cc
  18546. (executeInternal): The number of messages to be received at a time
  18547. is increased from 10 to 50.
  18548. * src/LogFactory
  18549. (getInstance): Added NullLogger.
  18550. * src/NullLogger.h: New class.
  18551. * src/BitfieldMan.h
  18552. (getMissingIndex): New function.
  18553. * src/BitfieldMan.cc
  18554. (getMissingIndex): New function.
  18555. * src/TorrentMan.h
  18556. (checkOutPiece): New function.
  18557. (getMissingPieceIndex): New function.
  18558. (getMissingFastPieceIndex): New function.
  18559. (getMissingFastPiece): New function.
  18560. * src/TorrentMan.cc
  18561. (updatePiece): Rewritten using STL.
  18562. (syncPiece): Rewritten using STL.
  18563. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  18564. checkOutPiece().
  18565. (getMissingPieceIndex): New function.
  18566. (getMissingFastPieceIndex): New function.
  18567. (getMissingFastPiece): New function.
  18568. (checkOutPiece): New function.
  18569. * src/PeerInteraction.h
  18570. (Pieces): New type definition.
  18571. (piece): Removed.
  18572. (pieces): New variable.
  18573. (getNewPieceAndSendInterest): Added the "piece" argument.
  18574. (abortPiece): Added the "piece" argument.
  18575. (abortAllPieces): New function.
  18576. (isInRequestSlot): New function.
  18577. (hasDownloadPiece): Added the "index" argument.
  18578. (setDownloadPiece): Removed.
  18579. (getDownloadPiece): Added the "index" argument.
  18580. (updatePiece): New function.
  18581. (createRequestMessage): Added the "index" argument.
  18582. * src/PeerInteraction.cc
  18583. (onChoked): Rewritten.
  18584. (abortPiece): Rewirtten.
  18585. (abortAllPieces): New function.
  18586. (deleteTimeoutRequestSlot): Rewritten.
  18587. Clarified code a little bit.
  18588. (deleteCompletedRequestSlot): Rewritten.
  18589. (isInRequestSlot): New function.
  18590. (syncPiece): Rewritten.
  18591. (updatePiece): New function.
  18592. (getNewPieceAndSendInterest): Rewritten.
  18593. (addRequests): Rewritten.
  18594. (getDownloadPiece): Rewritten.
  18595. (hasDownloadPiece): Rewritten.
  18596. (createRequestMessage): Added the "index" argument.
  18597. * src/common.h
  18598. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  18599. (DIV_FLOOR): New definition.
  18600. * src/PieceMessage.cc
  18601. (receivedAction): Update request-piece latency here.
  18602. * src/RequestSlot.h
  18603. (getLatencyInMillis): New function.
  18604. * src/RequestSlot.cc
  18605. (isTimeout): Rewritten using getLatencyInMillis.
  18606. (getLatencyInMillis): New function.
  18607. * src/Piece.h
  18608. (operator==): New function.
  18609. (getMissingBlockIndex): New function.
  18610. * src/Piece.cc
  18611. (operator==): New function.
  18612. (getMissingBlockIndex): New function.
  18613. * src/Peer.h
  18614. (DEFAULT_LATENCY): New definition.
  18615. (latency): New variable.
  18616. (updateLatency): New function.
  18617. (getLatency): New function.
  18618. * src/Peer.cc
  18619. (resetStatus): Reset latecy.
  18620. (updateLatency): New function.
  18621. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18622. * src/SocketCore.cc
  18623. (isReadable): Added secure to the condition.
  18624. * src/HttpConnection.cc
  18625. (receiveResponse): Fixed a bug that causes no response header
  18626. exception.
  18627. * src/Peer.h
  18628. (getFastSet): Fixed the return value type.
  18629. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18630. To remove a wait from download loop:
  18631. * src/DownloadEngine.cc
  18632. (run): Comment out shortSleep.
  18633. To rewrite the message handling:
  18634. * src/SimplePeerMessage.h: New class.
  18635. * src/SimplePeerMessage.cc: New class.
  18636. * src/CancelMessage.h: Derived from SimplePeerMessage.
  18637. (msg): New variable.
  18638. (create): New function.
  18639. (send): Removed.
  18640. (getMessage): New function.
  18641. (getMessageLength): New function.
  18642. * src/CancelMessage.cc
  18643. (create): New function.
  18644. (receivedAction): Replaced deleteRequestMessageInQueue with
  18645. rejectPieceMessageInQueue.
  18646. (send): Removed.
  18647. (getMessage): New function.
  18648. (getMessageLength): New function.
  18649. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  18650. (msg): New variable.
  18651. (msgLength): New variable.
  18652. (~BitfieldMessage): Deleted msg.
  18653. (send): Removed.
  18654. (getMessage): New function.
  18655. (getMessageLength): New function.
  18656. * src/BitfieldMessage.cc
  18657. (create): New function.
  18658. (send): Removed.
  18659. (getMessage): New function.
  18660. (getMessageLength): New function.
  18661. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  18662. (msg): New variable.
  18663. (sendPredicate): New function.
  18664. (onSendComplete): New function.
  18665. (send): Removed.
  18666. (getMessage): New function.
  18667. (getMessageLength): New function.
  18668. (create): New function.
  18669. * src/ChokeMessage.cc
  18670. (create): New function.
  18671. (send): Removed.
  18672. (sendPredicate): New function.
  18673. (getMessage): New function.
  18674. (getMessageLength): New function.
  18675. (onSendComplete): New function.
  18676. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  18677. (msg): New variable.
  18678. (send): Removed.
  18679. (getMessage): New function.
  18680. (getMessageLength): New function.
  18681. * src/KeepAliveMessage.cc
  18682. (send): Removed.
  18683. (getMessage): New function.
  18684. (getMessageLength): New function.
  18685. * src/PortMessage.h
  18686. (create): New function.
  18687. (receivedAction): Updated log message.
  18688. * src/PortMessage.cc: New file.
  18689. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  18690. (msg): New variable.
  18691. (sendPredicate): New function.
  18692. (onSendComplete): New function.
  18693. (create): New function.
  18694. (send): Removed.
  18695. (getMessage): New function.
  18696. (getMessageLength): New function.
  18697. * src/UnchokeMessage.cc
  18698. (create): New function.
  18699. (send): Removed.
  18700. (sendPredicate): New function.
  18701. (getMessage): New function.
  18702. (getMessageLength): New function.
  18703. (onSendComplete): New function.
  18704. * src/PieceMessage.h
  18705. (leftPieceDataLength): Removed.
  18706. (leftDataLength): New variable.
  18707. (headerSend): New variable.
  18708. (pendingCount): New variable.
  18709. (msgHeader): New variable.
  18710. (sendPieceData): New function.
  18711. (incrementPendingCount): New function.
  18712. (isPendingCountMax): New function.
  18713. (create): New function.
  18714. (getMessageHeader): New function.
  18715. (getMessageHeaderLength): New function.
  18716. * src/PieceMessage.cc
  18717. (create): New function.
  18718. (getMessageHeader): New function.
  18719. (getMessageHeaderLength): New function.
  18720. (send): Rewritten.
  18721. (sendPieceData): New function.
  18722. * src/HaveMessage.h: Derived from SimplePeerMessage.
  18723. (msg): New variable.
  18724. (create): New function.
  18725. (getMessage): New function.
  18726. (getMessageLength): New function.
  18727. * src/HaveMessage.cc
  18728. (create): New function.
  18729. (send): Removed.
  18730. (sendPieceData): New function.
  18731. (getMessage): New function.
  18732. (getMessageLength): New function.
  18733. * src/RequestMessage.h: Derived from SimplePeerMessage.
  18734. (msg): New variable.
  18735. (create): New function.
  18736. (send): Removed.
  18737. (getMessage): New function.
  18738. (getMessageLength): New function.
  18739. * src/RequestMessage.cc
  18740. (create): New function.
  18741. (receivedAction): Added the handling of fast extension.
  18742. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  18743. (send): Removed.
  18744. (getMessage): New function.
  18745. (getMessageLength): New function.
  18746. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  18747. (msg): New variable.
  18748. (sendPredicate): New function.
  18749. (onSendComplete): New function.
  18750. (create): New function.
  18751. (getMessage): New function.
  18752. (getMessageLength): New function.
  18753. * src/InterestedMessage.cc
  18754. (create): New function.
  18755. (send): Removed.
  18756. (sendPieceData): New function.
  18757. (getMessage): New function.
  18758. (getMessageLength): New function.
  18759. (onSendComplete): New function.
  18760. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  18761. (msg): New variable.
  18762. (sendPieceData): New function.
  18763. (onSendComplete): New function.
  18764. (create): New function.
  18765. (send): Removed.
  18766. (getMessage): New function.
  18767. (getMessageLength): New function.
  18768. * src/NotInterestedMessage.cc
  18769. (create): New function.
  18770. (send): Removed.
  18771. (sendPredicate): New function.
  18772. (getMessage): New function.
  18773. (getMessageLength): New function.
  18774. (onSendComplete): New function.
  18775. * src/AllowedFastMessage.h: New class.
  18776. * src/AllowedFastMessage.cc: New class.
  18777. * src/RejectMessage.h: New class.
  18778. * src/RejectMessage.cc: New class.
  18779. * src/SuggestPieceMessage.h: New class.
  18780. * src/SuggestPieceMessage.cc: New class.
  18781. * src/HaveAllMessage.h: New class.
  18782. * src/HaveAllMessage.cc: New class.
  18783. * src/HaveNoneMessage.h: New class.
  18784. * src/HaveNoneMessage.cc: New class.
  18785. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  18786. (msg): New variable.
  18787. (reserved): New variable.
  18788. (create): New function.
  18789. (getId): New function.
  18790. (receivedAction): New function.
  18791. (getMessage): New function.
  18792. (getMessageLength): New function.
  18793. (isFastExtensionSupported): New function.
  18794. * src/HandshakeMessage.cc
  18795. (HandshakeMessage): Moved here from HandshakeMessage.h.
  18796. (create): New function.
  18797. (getMessage): New function.
  18798. (getMessageLength): New function.
  18799. (toString): Added the output of reserved field.
  18800. (check): Added const qualifier.
  18801. (isFastExtensionSupported): New function.
  18802. * src/PeerMessageUtil.h
  18803. (createChokeMessage): Removed.
  18804. (createUnchokeMessage): Removed.
  18805. (createInterestedMessage): Removed.
  18806. (createNotInterestedMessage): Removed.
  18807. (createHaveMessage): Removed.
  18808. (createBitfieldMessage): Removed.
  18809. (createRequestMessage): Removed.
  18810. (createCancelMessage): Removed.
  18811. (createPieceMessage): Removed.
  18812. (createPortMessage): Removed.
  18813. (createChokeMessage): Removed.
  18814. (createUnchokeMessage): Removed.
  18815. (createInterestedMessage): Removed.
  18816. (createNotInterestedMessage): Removed.
  18817. (createHaveMessage): Removed.
  18818. (createBitfieldMessage): Removed.
  18819. (createRequestMessage): Removed.
  18820. (createCancelMessage): Removed.
  18821. (createPieceMessage): Removed.
  18822. (createKeepAliveMessage): Removed.
  18823. (createHandshakeMessage): Removed.
  18824. (setIntParam): New function.
  18825. (createPeerMessageString): New function.
  18826. * src/PeerMessageUtil.cc
  18827. (createChokeMessage): Removed.
  18828. (createUnchokeMessage): Removed.
  18829. (createInterestedMessage): Removed.
  18830. (createNotInterestedMessage): Removed.
  18831. (createHaveMessage): Removed.
  18832. (createBitfieldMessage): Removed.
  18833. (createRequestMessage): Removed.
  18834. (createCancelMessage): Removed.
  18835. (createPieceMessage): Removed.
  18836. (createPortMessage): Removed.
  18837. (createRequestMessage): Removed.
  18838. (createCancelMessage): Removed.
  18839. (createPieceMessage): Removed.
  18840. (createHaveMessage): Removed.
  18841. (createChokeMessage): Removed.
  18842. (createUnchokeMessage): Removed.
  18843. (createInterestedMessage): Removed.
  18844. (createNotInterestedMessage): Removed.
  18845. (createBitfieldMessage): Removed.
  18846. (createKeepAliveMessage): Removed.
  18847. (createHandshakeMessage): Removed.
  18848. (setIntParam): New function.
  18849. (createPeerMessageString): New function.
  18850. * src/PeerConnection.h
  18851. (peer): Removed.
  18852. (torrentMan): Removed.
  18853. (createNLengthMessage): Removed.
  18854. (setIntParam): Removed.
  18855. (writeOutgoingMessageLog): Removed all overloaded functions.
  18856. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18857. (sendMessage): New function.
  18858. (sendHandshake): Removed.
  18859. (sendKeepAlive): Removed.
  18860. (sendChoke): Removed.
  18861. (sendUnchoke): Removed.
  18862. (sendInterested): Removed.
  18863. (sendNotInterested): Removed.
  18864. (sendHave): Removed.
  18865. (sendBitfield): Removed.
  18866. (sendRequest): Removed.
  18867. (sendPiece): Removed.
  18868. (sendPieceHeader): Removed.
  18869. (sendPieceData): Removed.
  18870. (sendCancel): Removed.
  18871. (getPeer): Removed.
  18872. * src/PeerConnection.cc
  18873. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18874. (sendHandshake): Removed.
  18875. (sendKeepAlive): Removed.
  18876. (createNLengthMessage): Removed.
  18877. (setIntParam): Removed.
  18878. (writeOutgoingMessageLog): Removed all overloaded functions.
  18879. (sendChoke): Removed.
  18880. (sendUnchoke): Removed.
  18881. (sendInterested): Removed.
  18882. (sendNotInterested): Removed.
  18883. (sendHave): Removed.
  18884. (sendBitfield): Removed.
  18885. (sendRequest): Removed.
  18886. (sendPiece): Removed.
  18887. (sendPieceHeader): Removed.
  18888. (sendPieceData): Removed.
  18889. (sendMessage): New function.
  18890. (sendCancel): Removed.
  18891. * src/PeerInteractionCommand.cc
  18892. (PeerInteractionCommand): Call setUploadLimit.
  18893. (executeInternal): Call setUploadLimit.
  18894. Added the handling of "inProgress" state of handshake message.
  18895. Call sendBitfield() or sendAllowdFast() instead of deprecated
  18896. sendNow().
  18897. (keepAlive): Call addMessage and sendMessage instead of deprecated
  18898. sendNow().
  18899. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  18900. * src/TorrentMan.h
  18901. (PEER_ID_LENGTH): New definition.
  18902. (hasAllPieces): New function.
  18903. * src/TorrentMan.cc
  18904. (getMissingPiece): Added the handling of fast extension.
  18905. (cancelPiece): Call updatePiece().
  18906. (hasAllPieces): New function.
  18907. * src/PeerInteraction.h
  18908. (fastSet): New variable.
  18909. (getNewPieceAndSendInterest): Changed the return type to void.
  18910. (send): Renamed as sendMessages.
  18911. (deleteAllRequestSlot): Removed.
  18912. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18913. (cancelAllRequest): Removed all overloaded functions.
  18914. (deleteAllRequestSlot): Removed.
  18915. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18916. (rejectPieceMessageInQueue): New function.
  18917. (rejectAllPieceMessageInQueue): New function.
  18918. (onChoked): New function.
  18919. (isSendingMessageInProgress): New function.
  18920. (getCorrespondingRequestSlot): Changed its arguments.
  18921. (isInFastSet): New function.
  18922. (addFastSetIndex): New function.
  18923. (addRequests): New function.
  18924. (sendNow): Removed.
  18925. (trySendNow): Removed.
  18926. (sendBitfield): New function.
  18927. (sendAllowdFast): New function.
  18928. (createHaveAllMessage): New function.
  18929. (createHaveNoneMessage): New function.
  18930. (createRejectMessage): New function.
  18931. (createAllowedFastMessage): New function.
  18932. * src/PeerInteraction.cc
  18933. (send): Renamed as sendMessages.
  18934. (sendMessages): New function.
  18935. (MsgPushBack): New class.
  18936. (isSendingMessageInProgress): New function.
  18937. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18938. (rejectAllPieceMessageInQueue): New function.
  18939. Added the handling of fast extension.
  18940. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18941. (rejectPieceMessageInQueue): New function.
  18942. Added the handling of fast extension.
  18943. (deleteRequestSlot): Replaced for loop with std::find.
  18944. (onChoked): New function.
  18945. (deleteAllRequestSlot): Removed.
  18946. (abortPiece): Rewirtten.
  18947. (deleteTimeoutRequestSlot): Updated log messages.
  18948. (getCorrespondingRequestSlot): Changed its arguments.
  18949. (cancelAllRequest): Removed all overloaded functions.
  18950. (receiveHandshake): Added the check to see whether an incoming peer
  18951. supports fast extension.
  18952. (createHandshakeMessage): Use HandshakeMessage::create instead of
  18953. PeerMessageUtil.
  18954. (createPeerMessage): Use create() of each message class instead of
  18955. PeerMessageUtil.
  18956. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  18957. AllowedFastMessage were added.
  18958. (getNewPieceAndSendInterest): Changed its return value type to void.
  18959. Added the handling of fast extension.
  18960. (addRequests): New function.
  18961. (sendNow): Removed.
  18962. (sendHandshake): Rewritten.
  18963. (trySendNow): Removed.
  18964. (sendBitfield): New function.
  18965. (sendAllowdFast): New function.
  18966. (isInFastSet): New function.
  18967. (addFastSetIndex): New function.
  18968. (createRequestMessage): Use RequestMessage::create instead of
  18969. PeerMessageUtil.
  18970. (createCancelMessage): Use CancelMessage::create instead of
  18971. PeerMessageUtil.
  18972. (createPieceMessage): Use PieceMessage::create instead of
  18973. PeerMessageUtil.
  18974. (createHaveMessage): Use HaveMessage::create instead of
  18975. PeerMessageUtil.
  18976. (createChokeMessage): Use ChokeMessage::create instead of
  18977. PeerMessageUtil.
  18978. (createUnchokeMessage): Use UnchokeMessage::create instead of
  18979. PeerMessageUtil.
  18980. (createInterestedMessage): Use InterestedMessage::create instead of
  18981. PeerMessageUtil.
  18982. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  18983. of PeerMessageUtil.
  18984. (createBitfieldMessage): Use BitfieldMessage::create instead of
  18985. PeerMessageUtil.
  18986. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  18987. PeerMessageUtil.
  18988. (createHaveAllMessage): New function.
  18989. (createHaveNoneMessage): New function.
  18990. (createRejectMessage): New function.
  18991. (createAllowedFastMessage: New function.
  18992. * src/Util.h
  18993. (sha1Sum): New function.
  18994. (computeFastSet): New function.
  18995. * src/Util.cc
  18996. (sha1Sum): New function.
  18997. (computeFastSet): New function.
  18998. * src/Peer.h
  18999. (fastExtensionEnabled): New variable.
  19000. (fastSet): New variable.
  19001. (setAllBitfield): New function.
  19002. (setFastExtensionEnabled): New function.
  19003. (isFastExtensionEnabled): New function.
  19004. (addFastSetIndex): New function.
  19005. (getFastSet): New function.
  19006. (isInFastSet): New function.
  19007. (countFastSet): New function.
  19008. * src/Peer.cc
  19009. (isInFastSet): New function.
  19010. (addFastSetIndex): New function.
  19011. (setAllBitfield): New function.
  19012. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  19013. sockets.
  19014. * src/PeerAbstractCommand.cc
  19015. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  19016. and uploadLimit.
  19017. (execute): Changed the procedure of checking sockets. The upload speed
  19018. checking were added.
  19019. (setUploadLimit): New function.
  19020. (setUploadLimitCheck): New function.
  19021. * src/PeerAbstractCommand.h
  19022. (setUploadLimit): New function.
  19023. (setUploadLimitCheck): New function.
  19024. (uploadLimit): New variable.
  19025. (uploadLimitCheck): New variable.
  19026. To contact a tracker regularly:
  19027. * src/TrackerWatcherCommand.h (interval): New variable.
  19028. (checkPoint): New variable.
  19029. (TrackerWatcherCommand): Added interval argument.
  19030. * src/TrackerWatcherCommand.cc
  19031. (TrackerWatcherCommand): Initialized checkPoint.
  19032. (execute): Now a tracker is contacted in every specified period.
  19033. If peer list is not needed, send request with numwant=0.
  19034. * src/TrackerUpdateCommand.cc
  19035. (execute): Updated log messages.
  19036. * src/DownloadEngine.cc
  19037. (~DownloadEngine): Removed two asserts.
  19038. (waitData): Uncommented wfds. May be a bug fix.
  19039. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19040. * src/PeerInteractionCommand.h
  19041. (checkInactiveConnection): Removed.
  19042. * src/PeerInteractionCommand.cc
  19043. (executeInternal): Removed following function calls:
  19044. detectMessageFlooding(), checkLongTimePeerChoking and
  19045. checkInactiveConnection().
  19046. (checkInactiveConnection): Removed.
  19047. (detectMessageFlooding): Removed function call to
  19048. checkInactiveConnection().
  19049. * src/PeerMessageUtil.h
  19050. (createChokeMessage): New function. Overload.
  19051. (createUnchokeMessage): New function. Overload.
  19052. (createInterestedMessage): New function. Overload.
  19053. (createNotInterestedMessage): New function. Overload.
  19054. (createHaveMessage): New function. Overload.
  19055. (createBitfieldMessage): New function. Overload.
  19056. (createRequestMessage): New function. Overload.
  19057. (createCancelMessage): New function. Overload.
  19058. (createPieceMessage): New function. Overload.
  19059. (createKeepAliveMessage): New function. Overload.
  19060. * src/PeerMessageUtil.cc
  19061. (createChokeMessage): New function. Overload.
  19062. (createUnchokeMessage): New function. Overload.
  19063. (createInterestedMessage): New function. Overload.
  19064. (createNotInterestedMessage): New function. Overload.
  19065. (createHaveMessage): New function. Overload.
  19066. (createBitfieldMessage): New function. Overload.
  19067. (createRequestMessage): New function. Overload.
  19068. (createCancelMessage): New function. Overload.
  19069. (createPieceMessage): New function. Overload.
  19070. (createKeepAliveMessage): New function. Overload.
  19071. * src/SendMessageQueue.cc
  19072. (createRequestMessage): Use PeerMessageUtil.
  19073. (createCancelMessage): Use PeerMessageUtil.
  19074. (createPieceMessage): Use PeerMessageUtil.
  19075. (createHaveMessage): Use PeerMessageUtil.
  19076. (createChokeMessage): Use PeerMessageUtil.
  19077. (createUnchokeMessage): Use PeerMessageUtil.
  19078. (createInterestedMessage): Use PeerMessageUtil.
  19079. (createNotInterestedMessage): Use PeerMessageUtil.
  19080. (createBitfieldMessage): Use PeerMessageUtil.
  19081. (createKeepAliveMessage): Use PeerMessageUtil.
  19082. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  19083. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  19084. * src/PeerInteraction.h: New class.
  19085. * src/PeerInteraction.cc: New class.
  19086. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19087. Each peer message has its own class.
  19088. * src/PendingMessages.h: Removed.
  19089. * src/PendingMessages.cc: Removed. The sending process was moved to
  19090. each message class.
  19091. * src/RequestSlotMan.h: Removed.
  19092. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  19093. SendMessageQueue.
  19094. * src/RequestMessage.h: New class.
  19095. * src/RequestMessage.cc: New class.
  19096. * src/CancelMessage.h: New class.
  19097. * src/CancelMessage.cc: New class.
  19098. * src/BitfieldMessage.h: New class.
  19099. * src/BitfieldMessage.cc: New class.
  19100. * src/ChokeMessage.h: New class.
  19101. * src/ChokeMessage.cc: New class.
  19102. * src/KeepAliveMessage.h: New class.
  19103. * src/KeepAliveMessage.cc: New class.
  19104. * src/PortMessage.h: New class.
  19105. * src/UnchokeMessage.h: New class.
  19106. * src/UnchokeMessage.cc: New class.
  19107. * src/PieceMessage.h: New class.
  19108. * src/PieceMessage.cc: New class.
  19109. * src/HaveMessage.h: New class.
  19110. * src/HaveMessage.cc: New class.
  19111. * src/BitfieldMessage.h: New class.
  19112. * src/BitfieldMessage.cc: New class.
  19113. * src/NotInterestedMessage.h: New class.
  19114. * src/NotInterestedMessage.cc: New class.
  19115. * src/InterestedMessage.h: New class.
  19116. * src/InterestedMessage.cc: New class.
  19117. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  19118. (getSendMessageQueue): New function.
  19119. (setSendMessageQueue): New function.
  19120. * src/HandshakeMessage.cc: New class.
  19121. * src/PeerConnection.h (receiveMessage): Changed return value and
  19122. arguments.
  19123. (receiveHandshake): Changed return value and arguments.
  19124. * src/PeerConnection.cc (receiveMessage): Do not create message class
  19125. here.
  19126. (receiveHandshake): Do not create handshake class here.
  19127. * src/PeerInteractionCommand.h (peerConnection): Removed.
  19128. (piece): Removed.
  19129. (syncPiece): Removed.
  19130. (sendInterest): Removed.
  19131. (sendMessages): Removed.
  19132. (createRequestPendingMessage): Removed.
  19133. (checkPieceHash): Removed.
  19134. (erasePieceOnDisk): Removed.
  19135. (getNewPieceAndSendInterest): Removed.
  19136. (onGotNewPice): Removed.
  19137. (onGotWrongPiece): Removed.
  19138. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  19139. Removed peerConnection, piece.
  19140. (~PeerInteractionCommand): Removed peerConnection.
  19141. (executeInternal): Use sendMessageQueue instead of peerConnection.
  19142. (syncPiece): Moved to SendMessageQueue.
  19143. (decideChoking): Removed PendingMessage.
  19144. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  19145. The action after receiving peer message was moved to each message
  19146. class.
  19147. (onGotNewPice): Moved to SendMessageQueue.
  19148. (onGotWrongPiece): Moved to SendMessageQueue.
  19149. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  19150. (sendInterest): Moved to SendMessageQueue.
  19151. (createRequestPendingMessage): Removed.
  19152. (sendMessages): Moved to SendMessageQueue.
  19153. (onAbort): Use SendMessageQueue::abortPiece()
  19154. (keepAlive): Use sendMessageQueue instead of peerConnection.
  19155. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  19156. (checkPieceHash): Moved to SendMessageQueue.
  19157. (erasePieceOnDisk): Moved to SendMessageQueue.
  19158. * src/PeerMessageUtil.h
  19159. (createBitfieldMessage): Removed.
  19160. (createHaveMessage): Changed return value and arguments.
  19161. (createBitfieldMessage): Changed return value and arguments.
  19162. (createRequestCancelMessage): Removed.
  19163. (createPieceMessage): Changed return value and arguments.
  19164. (getShortIntParam): New function.
  19165. (checkIndex): Changed arguments.
  19166. (checkBegin): Changed arguments.
  19167. (checkLength): Changed arguments.
  19168. (checkPieceOffset): Removed.
  19169. (checkRange): New function.
  19170. (checkBitfield): Changed arguments.
  19171. (createPeerMessage): Removed.
  19172. (checkIntegrity): Removed.
  19173. (createHandshakeMessage): Changed arguments.
  19174. (createChokeMessage): New function.
  19175. (createUnchokeMessage): New function.
  19176. (createInterestedMessage): New function.
  19177. (createNotInterestedMessage): New function.
  19178. (createRequestMessage): New function.
  19179. (createCancelMessage): New function.
  19180. (createPortMessage): New function.
  19181. * src/PeerMessageUtil.cc
  19182. (createBitfieldMessage): Removed.
  19183. (createHaveMessage): Changed return value and arguments.
  19184. (createBitfieldMessage): Changed return value and arguments.
  19185. (createRequestCancelMessage): Removed.
  19186. (createPieceMessage): Changed return value and arguments.
  19187. (getShortIntParam): New function.
  19188. (checkIndex): Changed arguments.
  19189. (checkBegin): Changed arguments.
  19190. (checkLength): Changed arguments.
  19191. (checkPieceOffset): Removed.
  19192. (checkRange): New function.
  19193. (checkBitfield): Changed arguments.
  19194. (createPeerMessage): Removed.
  19195. (checkIntegrity): Removed.
  19196. (createHandshakeMessage): Changed arguments.
  19197. (createChokeMessage): New function.
  19198. (createUnchokeMessage): New function.
  19199. (createInterestedMessage): New function.
  19200. (createNotInterestedMessage): New function.
  19201. (createRequestMessage): New function.
  19202. (createCancelMessage): New function.
  19203. (createPortMessage): New function.
  19204. * src/PeerMessage.h
  19205. (id): Removed.
  19206. (index): Removed.
  19207. (begin): Removed.
  19208. (length): Removed.
  19209. (bitfield): Removed.
  19210. (bitfieldLength): Removed.
  19211. (block): Removed.
  19212. (blockLength): Removed.
  19213. (inProgress): New variable.
  19214. (cuid): New variable.
  19215. (peer): New variable.
  19216. (sendMessageQueue): New variable.
  19217. (logger): New variable.
  19218. (setBitfield): Removed.
  19219. (getBitfield): Removed.
  19220. (setBlock): Removed.
  19221. (getBlock): Removed.
  19222. (getBitfieldLength): Removed.
  19223. (getBlockLength): Removed.
  19224. (isInProgress): New function.
  19225. (toString): Made pure virtual.
  19226. (check): New function.
  19227. (send): New function.
  19228. (receivedAction): New function.
  19229. (getId): Made pure virtual.
  19230. (setId): Removed.
  19231. (getIndex): Removed.
  19232. (setIndex): Removed.
  19233. (getBegin): Removed.
  19234. (setBegin): Removed.
  19235. (getLength): Removed.
  19236. (setLength): Removed.
  19237. (getCuid): New function.
  19238. (setCuid): New function.
  19239. (getPeer): New function.
  19240. (setPeer): New function.
  19241. (getSendMessageQueue): New function.
  19242. (setSendMessageQueue): New function.
  19243. (ID): Removed.
  19244. * src/PeerMessage.cc
  19245. (setBitfield): Removed.
  19246. (setBlock): Removed.
  19247. (toString): Removed.
  19248. * src/TorrentMan.h
  19249. (getPieceLength): New function.
  19250. (getPieceLength): New function.
  19251. * src/SendMessageQueue.h
  19252. (REQUEST_TIME_OUT): New definition.
  19253. (RequestSlots): New definition.
  19254. (MessageQueue): New definition.
  19255. (requestSlotMan): Removed.
  19256. (pendingMessages): Removed.
  19257. (requestSlots): New variable.
  19258. (messageQueue): New variable.
  19259. (torrentMan): New variable.
  19260. (peerConnection): New variable.
  19261. (peer): New variable.
  19262. (piece): New variable.
  19263. (getNewPieceAndSendInterest): New function.
  19264. (createPeerMessage): New function.
  19265. (createHandshakeMessage): New function.
  19266. (send): Made private.
  19267. (setPeerMessageCommonProperty): New function.
  19268. (deleteAllRequestSlot): New function.
  19269. (deleteRequestMessageInQueue): New function.
  19270. (cancelAllRequest): Made private.
  19271. (cancelAllRequest): Made private.
  19272. (countRequestSlot): Made private.
  19273. (addPendingMessage): Removed.
  19274. (deletePendingPieceMessage): Removed.
  19275. (deletePendingRequestMessage): Removed.
  19276. (addMessage): New function.
  19277. (deletePieceMessageInQueue): New function.
  19278. (deleteTimeoutRequestSlot): Changed argument.
  19279. (deleteCompletedRequestSlot): Changed argument.
  19280. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  19281. (getCorrespondingRequestSlot): New function.
  19282. (countPendingMessage): Removed.
  19283. (countMessageInQueue): New function.
  19284. (getTorrentMan): New function.
  19285. (getPeerConnection): New function.
  19286. (hasDownloadPiece): New function.
  19287. (getDownloadPiece): New function.
  19288. (setDownloadPiece): New function.
  19289. (syncPiece): New function.
  19290. (sendMessages): New function.
  19291. (sendNow): New function.
  19292. (trySendNow): New function.
  19293. (abortPiece): New function.
  19294. (sendHandshake): New function.
  19295. (receiveMessage): New function.
  19296. (receiveHandshake): New function.
  19297. (createRequestMessage): New function.
  19298. (createCancelMessage): New function.
  19299. (createPieceMessage): New function.
  19300. (createHaveMessage): New function.
  19301. (createChokeMessage): New function.
  19302. (createUnchokeMessage): New function.
  19303. (createInterestedMessage): New function.
  19304. (createNotInterestedMessage): New function.
  19305. (createBitfieldMessage): New function.
  19306. (createKeepAliveMessage): New function.
  19307. * src/SendMessageQueue.cc
  19308. (SendMessageQueue): Removed requestSlotMan.
  19309. Instantiated peerConnection here.
  19310. (~SendMessageQueue): Removed requestSlotMan.
  19311. Added deletion of peerConnection and the contents of messageQueue.
  19312. (send): Updated according to the change of messageQueue.
  19313. (addPendingMessage): Renamed to addMessage.
  19314. (addMessage): New function.
  19315. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  19316. (deletePieceMessageInQueue): New function.
  19317. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  19318. (deleteRequestMessageInQueue): New function.
  19319. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  19320. here.
  19321. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  19322. (...) was moved here.
  19323. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  19324. moved here.
  19325. (deleteCompletedRequestSlot):
  19326. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  19327. (getCorrespondingRequestSlot):
  19328. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  19329. And renamed to getCorrespondingRequestSlot, correcting a typo.
  19330. (countPendingMessage): Renamed to countMessageInQueue.
  19331. (countMessageInQueue): New function.
  19332. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  19333. (receiveHandshake): New function.
  19334. (createHandshakeMessage): New function.
  19335. (receiveMessage): New function.
  19336. (createPeerMessage): New function.
  19337. (syncPiece): New function.
  19338. (getNewPieceAndSendInterest): New function.
  19339. (sendMessages): New function.
  19340. (sendNow): New function.
  19341. (trySendNow): New function.
  19342. (sendHandshake): New function.
  19343. (abortPiece): New function.
  19344. (getDownloadPiece): New function.
  19345. (getPeerMessageCommonProperty): New function.
  19346. (createRequestMessage): New function.
  19347. (createCancelMessage): New function.
  19348. (createPieceMessage): New function.
  19349. (createHaveMessage): New function.
  19350. (createChokeMessage): New function.
  19351. (createUnchokeMessage): New function.
  19352. (createInterestedMessage): New function.
  19353. (createNotInterestedMessage): New function.
  19354. (createBitfieldMessage): New function.
  19355. (createKeepAliveMessage): New function.
  19356. To add simple Content-Disposition support:
  19357. * src/HttpResponseCommand.h (determinFilename): New function.
  19358. * src/HttpResponseCommand.cc (executeInternal):
  19359. Use determinFilename(headers) instead of req->getFile() when comparing
  19360. filename.
  19361. (determinFilename): New function.
  19362. (handleDefaultEncoding): Use determinFilename(headers) instead of
  19363. req->getFile().
  19364. (handleOtherEncoding): Use determinFilename(headers) instead of
  19365. req->getFile().
  19366. * src/Util.h (getContentDispositionFilename): New function.
  19367. * src/Util.cc (getContentDispositionFilename): New function.
  19368. * src/LogFactory.h (release): New function.
  19369. * src/LogFactory.cc (release): New function.
  19370. To fix a bug that causes out-of-bound exception when HTTP status
  19371. line is wrong:
  19372. * src/HttpConnection.cc (receiveResponse): Added a check for header
  19373. size.
  19374. * src/common.h (Deleter): New class.
  19375. * src/SegmentMan.cc
  19376. (~SegmentMan): Added deletion of splitter and diskWriter.
  19377. * src/DownloadEngine.h
  19378. (Commands): Use deque.
  19379. (clearQueue): New function.
  19380. * src/DownloadEngine.cc
  19381. (~DownloadEngine): Added deletion of segmentMan.
  19382. (cleanQueue): New function.
  19383. * src/TorrentDownloadEngine.h
  19384. (TorrentDownloadEngine): The implementation was moved to
  19385. TorrentDownloadEngine.cc.
  19386. (~TorrentDownloadEngine): The implementation was moved to
  19387. TorrentDownloadEngine.cc.
  19388. * src/TorrentDownloadEngine.cc
  19389. (~TorrentDownloadEngine): Added deletion of torrentMan.
  19390. * src/main.cc
  19391. (clearRequest): Removed.
  19392. (handler): Added deletion of e.
  19393. (torrentHandler): Added deletion of te.
  19394. (main): Do not share splitter.
  19395. Use Deleter instead of clearRequest.
  19396. Deletion of classes were updated.
  19397. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19398. * src/main.cc (main): Fixed typo.
  19399. * src/message.h: Fixed typo.
  19400. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  19401. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19402. To add --select-file command-line option:
  19403. * src/Util.cc
  19404. (unfoldRange): New function.
  19405. (getNum): New function.
  19406. (unfoldSubRange): New function
  19407. * src/main.cc
  19408. (showUsage): Added help message.
  19409. (main): Added --select-file command-line option. Updated the layout of
  19410. file listing.
  19411. * src/common.h
  19412. (Integers): New definition.
  19413. * src/SocketCore.cc
  19414. (writeData): Removed timeout argument.
  19415. (readData): Removed timeout argument.
  19416. (peekData): Removed timeout argument.
  19417. * src/Socket.cc
  19418. (writeData): Removed timeout argument.
  19419. (readData): Removed timeout argument.
  19420. (peekData): Removed timeout argument.
  19421. * Release 0.4.1
  19422. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19423. To deploy upload rate based choking algorithm:
  19424. * src/PeerInteractionCommand.cc
  19425. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  19426. peer currently used.
  19427. (decideChoking): Deleted the choke/unchoke decision algorithm when
  19428. download completes. Simplified.
  19429. (receiveMessage): Updated.
  19430. * src/TorrentMan.h
  19431. (activePeers): New variable.
  19432. (addActivePeer): New function.
  19433. (getActivePeers): New function.
  19434. (deleteActivePeer): New function.
  19435. * src/TorrentMan.cc
  19436. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  19437. * src/PeerAbstractCommand.cc
  19438. (onAbort): Use peer->resetStatus().
  19439. * src/main.cc
  19440. (PeerChokeCommand.h): Included.
  19441. (main): Added the instance of ChokingCommand to the command queue.
  19442. * src/Peer.h
  19443. (amChoking): Renamed from amChocking
  19444. (chokingRequired): New variable.
  19445. (optUnchoking): New variable.
  19446. (deltaUpload): New variable.
  19447. (deltaDownload): New variable.
  19448. (addDeltaUpload): New function.
  19449. (resetDeltaUpload): New function.
  19450. (addDeltaDownload): New function.
  19451. (resetDeltaDownload): New function.
  19452. (addPeerUpload): Added a call to addDeltaUpload.
  19453. (addPeerDownload): Added a call to addDeltaDownload.
  19454. * src/Peer.cc
  19455. (shouldBeChoking): Renamed from shouldChoke.
  19456. (resetStatus): New function.
  19457. * src/PeerChokeCommand.h: New class.
  19458. * src/PeerChokeCommand.cc: New class.
  19459. To add lazy upload speed limiter:
  19460. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  19461. statistics calculation to TorrentDownloadEngine.
  19462. * src/TorrentConsoleDownloadEngine.cc
  19463. (sendStatistics): Renamed from printStatistics.
  19464. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  19465. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  19466. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  19467. * src/TorrentDownloadEngine.h: Added the variables for statistics
  19468. calculation.
  19469. (sendStatistics): New function as pure virtual function.
  19470. (getUploadSpeed): New function.
  19471. * src/TorrentDownloadEngine.cc
  19472. (initStatistics): New function.
  19473. (calculateSpeed): New function.
  19474. (calculateStatistics): New function.
  19475. * src/SendMessageQueue.h
  19476. (uploadLength): New variable.
  19477. (send): Added an argument.
  19478. (setUploadLimit): New function.
  19479. (getUploadLimit): New function.
  19480. * src/SendMessageQueue.cc
  19481. (send): Added upload speed limiter.
  19482. * src/prefs.h
  19483. (PREF_UPLOAD_LIMIT): New definition.
  19484. * src/PeerInteractionCommand.cc
  19485. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  19486. * src/main.cc
  19487. (main): Added --upload-limit option
  19488. For bug fixes:
  19489. * src/main.cc
  19490. (showUsage): Corrected --listen-port help
  19491. Other changes:
  19492. * src/TorrentMan.cc
  19493. (getPeer): Return nullPeer if connection is grather than
  19494. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  19495. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19496. To add some useful information to the exception message:
  19497. * src/SocketCore.cc : Updated messages.
  19498. * src/SegmentMan.cc :
  19499. * src/TorrentMan.cc : Updated messages.
  19500. * src/MultiDiskWriter.cc : Updated messages.
  19501. * src/Util.cc : Updated messages.
  19502. * src/AbstractDiskWriter.cc : Updated messages.
  19503. * src/PreAllocationDiskWriter.cc : Updated messages.
  19504. * src/message.cc : Added new messages. Updated some messages.
  19505. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  19506. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  19507. Updated threshold from 30 to 15.
  19508. * src/AbstractDiskWriter.h (filename): New variable.
  19509. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  19510. (createFile): Assigned filename.
  19511. * src/main.cc: Updated the help message for http-auth-scheme.
  19512. * Release 0.4.0
  19513. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19514. To add TrackerUpdateCommand with which replaces
  19515. CompactTrackerResponseProcessor:
  19516. * src/TrackerWatcherCommand.h (req): Removed.
  19517. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  19518. if the number of peer connections are less than 30.
  19519. * src/ByteArrayDiskWriter.h (readData): Implemented.
  19520. * src/SegmentMan.h (diskWriter): New function.
  19521. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  19522. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  19523. (main): Use TrackerUpdateCommand.
  19524. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  19525. (req): New variable.
  19526. (setTrackerResponseProcessor): Removed.
  19527. (getTrackerResponseProcessor): Removed.
  19528. (processTrackerResponse): Removed.
  19529. * src/DownloadEngine.h (diskWriter): Removed.
  19530. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  19531. to torrentMan->processTrackerResponse().
  19532. To add Util::expandBuffer:
  19533. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  19534. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  19535. * src/Util.h (expandBuffer): New function.
  19536. To fix the bug that causes segmentation fault when "-l ." is specified
  19537. in command-line option:
  19538. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  19539. (openFile): New function.
  19540. (closeFile): New function.
  19541. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  19542. (~SimpleLogger): Call closeFile();
  19543. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  19544. * src/main.cc (main): Added a check to see logger is configured
  19545. properly.
  19546. To enable HTTP authentication without specifying "--http-auth-scheme"
  19547. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  19548. * src/HttpConnection.cc (createRequest): Send Authorization header
  19549. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  19550. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  19551. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  19552. * src/Peer.cc (shouldChoke): Updated algorithm.
  19553. * src/message.h (EX_AUTH_FAILED): New definition.
  19554. (EX_FILE_OPEN): New definition.
  19555. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  19556. if status == 401.
  19557. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  19558. if req->isTorrent == true.
  19559. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  19560. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  19561. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  19562. (createFile): Updated message.
  19563. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19564. To add a readout of estimated remaining time to normal HTTP/FTP
  19565. downloads:
  19566. * src/ConsoleDownloadEngine.h (startup): New variable.
  19567. (startupLength): New variable.
  19568. (isStartupLengthSet): New variable.
  19569. (avgSpeed): New variable.
  19570. (eta): New variable.
  19571. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  19572. estimated remaining time.
  19573. (initStatistics): Initialized newly added variables.
  19574. (calculateStatistics): Calculate average speed and estimated remaining
  19575. time.
  19576. To decouple TorrentDownloadEngine from HttpResponseCommand:
  19577. * src/TrackerDownloadCommand.h: Removed.
  19578. * src/TrackerDownloadCommand.cc: Removed.
  19579. * src/TrackerInitCommand.h: Removed.
  19580. * src/TrackerInitCommand.cc: Removed.
  19581. * src/TrackerUpdateCommand.h: Removed.
  19582. * src/TrackerUpdateCommand.cc: Removed.
  19583. * src/TrackerWatcherCommand.cc (execute): The construction of request
  19584. url written in TrackerInitCommand was moved here. Do not create
  19585. tracker request command if torrentMan->trackers != 0.
  19586. * src/CompactTrackerResponseProcessor.h: New class.
  19587. * src/CompactTrackerResponseProcessor.cc: New class.
  19588. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  19589. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  19590. Decoupled TorrentDownloadEngine from this.
  19591. * src/SegmentMan.h (init): New function.
  19592. * src/SegmentMan.cc (init): New function.
  19593. * src/TorrentMan.h (responseProcessor): New variable.
  19594. (trackers): New variable.
  19595. (setTrackerResponseProcessor): New function.
  19596. (getTrackerResponseProcessor): New function.
  19597. (processTrackerResponse): New function.
  19598. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  19599. (processTrackerResponse): New function.
  19600. * src/main.cc (main): Use ByteArrayDiskWriter and
  19601. CompactTrackerResponseProcessor.
  19602. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  19603. processTrackerResponse().
  19604. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  19605. readout.
  19606. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  19607. which indicates download has completed.
  19608. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  19609. (closeFile): fd >= 0, not fd > 0
  19610. * src/main.cc (main): Added short cut for show-files.
  19611. Added short cut for torrent-file.
  19612. Added new command-line option listen-port.
  19613. Updated i18n messages.
  19614. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19615. To add LogFactory which creates singleton logger:
  19616. * src/LogFactory.h: New class.
  19617. * src/LogFactory.cc: New class.
  19618. * src/Command.h (logger): New variable.
  19619. (Constructor): Use LogFactory.
  19620. * src/AbstractCommand.cc: Use Command::logger
  19621. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  19622. Use LogFactory.
  19623. * src/SegmentSplitter.h : Made logger protected.
  19624. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  19625. * src/SegmentMan.cc (Constructor): Use LogFactory.
  19626. * src/DownloadEngine.h : Made logger protected.
  19627. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  19628. * src/PeerInteractionCommand.cc : Use Command::logger.
  19629. * src/HttpResponseCommand.cc : Use Command::logger.
  19630. * src/SegmentMan.h : Made logger private.
  19631. * src/TorrentMan.h : Made logger private.
  19632. * src/TorrentMan.cc : Use LogFactory.
  19633. * src/FtpNegotiateCommand.cc : Use Command::logger.
  19634. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  19635. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  19636. Use LogFactory.
  19637. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  19638. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  19639. Use LogFactory.
  19640. * src/DownloadCommand.cc : Use Command::logger.
  19641. * src/PeerAbstractCommand.cc : Use Command::logger.
  19642. * src/PeerListenCommand.cc : Use Command::logger.
  19643. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  19644. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  19645. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  19646. * src/TrackerWatcherCommand.cc : Use Command::logger.
  19647. * src/TrackerUpdateCommand.cc : Use Command::logger.
  19648. * src/TrackerDownloadCommand.cc : Use Command::logger.
  19649. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  19650. Use LogFactory.
  19651. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  19652. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  19653. Use LogFactory.
  19654. * src/main.cc (main): Use LogFactory.
  19655. * src/DiskAdaptor.h (logger): New variable.
  19656. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  19657. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  19658. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19659. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  19660. parameter to a tracker request.
  19661. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  19662. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  19663. * src/main.cc (setSignalHander): New function.
  19664. (main): Added a handler for SIGTERM.
  19665. (handler): Updated message.
  19666. (torrentHandler): Updated message.
  19667. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19668. * src/TorrentConsoleDownloadEngine.cc
  19669. (onPartialDownloadingCompletes): Renamed as
  19670. onSelectiveDownloadingCompletes.
  19671. (onSelectiveDownloadingCompletes): Updated message.
  19672. To add DiskAdaptor which abstract DiskWriter family:
  19673. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  19674. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  19675. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  19676. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  19677. MultiDiskAdaptor.h.
  19678. (readFileEntry): Changed its arguments.
  19679. (setup): setupDiskWriter is merged into this function.
  19680. (setupDiskWriter): Removed.
  19681. (setFileFilter): New function.
  19682. (readFileEntryFromMetaInfoFile): Updated according to the changes
  19683. made in readFileEntry.
  19684. (getFilePath): Removed.
  19685. (getTempFilePath): Removed.
  19686. (getSegmentFilePath): Updated due to the removal of getFilePath.
  19687. (fixFilename): Removed.
  19688. (copySingleFile): Removed.
  19689. (splitMultiFile): Removed.
  19690. (deleteTempFile): Removed.
  19691. (setFileEntriesToDownload): Removed.
  19692. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  19693. (isSelectiveDownloadingMode): New function.
  19694. (setAllMultiFileRequestedState): Removed.
  19695. (finishPartialDownloadingMode): Renamed as
  19696. finishSelectiveDownloadingMode.
  19697. (finishSelectiveDownloadingMode): New function.
  19698. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  19699. (getSelectedTotalLength): New function.
  19700. (onDownloadComplete): Use diskAdaptor.
  19701. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  19702. (Range): Removed.
  19703. (setMultiFileEntries): Renamed as setFileEntries.
  19704. (setFileEntries): New function.
  19705. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  19706. (pieceLength): New variable.
  19707. * src/main.cc (printDownloadCompeleteMessage): New function.
  19708. (torrentHandler): Use diskAdaptor instead of diskWriter.
  19709. (main): Renamed torrent-show-files to show-files.
  19710. Rewritten file contents listing.
  19711. * src/TorrentMan.h (FileEntry): Removed.
  19712. (multiFileTopDir): Removed.
  19713. (multiFileEntries): Removed.
  19714. (diskWriter): Removed.
  19715. (diskAdaptor): New variable.
  19716. * src/DefaultDiskWriter.h (totalLength): New variable.
  19717. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  19718. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  19719. diskWriter.
  19720. * src/TorrentConsoleDownloadEngine.h
  19721. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  19722. (partialTotalLength): Renamed as selectedTotalLength.
  19723. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  19724. openExistingFile, otherwise call initAndOpenFile.
  19725. (closeFile): fd > 0, not fd != 0.
  19726. * src/DirectDiskAdaptor.h: New class.
  19727. * src/DirectDiskAdaptor.cc: New class.
  19728. * src/MultiDiskAdaptor.h: New class.
  19729. * src/MultiDiskAdaptor.cc: New class.
  19730. * src/CopyDiskAdaptor.h: New class.
  19731. * src/CopyDiskAdaptor.cc: New class.
  19732. * src/DiskAdaptor.h: New class.
  19733. * src/DiskAdaptor.cc: New class.
  19734. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  19735. (PREF_SHOW_FILES): New definition.
  19736. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19737. To add the ability to download multi torrent into respective files
  19738. directly:
  19739. * src/DiskWriter.h (openFile): New function.
  19740. (seek): Removed.
  19741. * src/MultiDiskWriter.h: New class.
  19742. * src/MultiDiskWriter.cc: New class.
  19743. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  19744. protected.
  19745. (openFile): New function.
  19746. * src/AbstractDiskWriter.cc (openFile): New function.
  19747. * src/prefs.h (V_FALSE): New definition.
  19748. (PREF_DIRECT_FILE_MAPPING): New definition.
  19749. * src/TorrentMan.h (setupDiskWriter): New function.
  19750. (setAllMultiFileRequestedState): New function.
  19751. (onDownloadComplete): New function.
  19752. * src/TorrentMan.cc : Included MultiDiskWriter.h
  19753. (setupDiskWriter): New function.
  19754. (getFilePath): Updated.
  19755. (getTempFilePath): Updated.
  19756. (getSegmentFilePath): Updated.
  19757. (fixFilename): Updated.
  19758. (deleteTempFile): Updated.
  19759. (setAllMultiFileRequestedState): New function.
  19760. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  19761. (finishPartialDownloadingMode): Reset requested flags.
  19762. (onDownloadComplete): New function.
  19763. * src/main.cc: Added --direct-file-mapping option.
  19764. Use TorrentMan::setupDiskWriter().
  19765. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  19766. onDownloadComplete().
  19767. To fix ETA bug:
  19768. * src/Util.h (difftvsec): New function.
  19769. * src/Util.cc (difftvsec): New function.
  19770. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  19771. type of "elapsed" instead of long long int.
  19772. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  19773. The updates of statistics takes place every 1 seconds.
  19774. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  19775. (calculateSpeed): Changed its argument signature.
  19776. * src/PeerMessage.cc (toString): Fixed message.
  19777. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19778. To print ETA:
  19779. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  19780. completion handling when dealing with
  19781. TorrentMan::isPartialDownloadingMode() == true.
  19782. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  19783. New function.
  19784. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  19785. (sessionDownloadLength): New variable.
  19786. (avgSpeed): New variable.
  19787. (eta): New variable.
  19788. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  19789. new variables: eta, avgSpeed, startup.
  19790. (calculateSpeed): Calculate average speed and ETA.
  19791. (printStatistics): Added ETA.
  19792. * src/Util.h (secfmt): New function.
  19793. * src/Util.cc (secfmt): New function.
  19794. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19795. To detect "keep alive" flooding:
  19796. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  19797. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  19798. variable: keepAliveCount.
  19799. (detectMessageFlooding): Added "keep alive" flooding detection.
  19800. (receiveMessage): Increase keepAliveCount when "keep alive" message
  19801. received.
  19802. To add the ability to download only specified files in multi-file
  19803. torrent:
  19804. * src/BitfieldMan.h (filterBitfield): New variable.
  19805. (filterEnabled): New variable.
  19806. (setFilterBit): New function.
  19807. (enableFilter): New function.
  19808. (disableFilter): New function.
  19809. (isFilterEnabled): New function.
  19810. (getFilteredTotalLength): New function.
  19811. (getCompletedLength): New function.
  19812. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  19813. filterBitfield, filterEnabled.
  19814. (CopyConstructor): Added filterBitfield and filterEnabled.
  19815. (operator==): Added filterBitfield and filterEnabled.
  19816. (Destructor): Added filterBitfield.
  19817. (getMissingIndex): Use filterBitfield.
  19818. (getMissingUnusedIndex): Use filterBitfield.
  19819. (getFirstMissingUnusedIndex): Use filterBitfield.
  19820. (getFirstMissingUnusedIndex): Use filterBitfield.
  19821. (getAllMissingIndexes): Use filterBitfield.
  19822. (countMissingBlock): Use filterBitfield.
  19823. (countBlock): Use filterBitfield.
  19824. (setBitInternal): Added new argument on.
  19825. (setUseBit): Use setBitInternal.
  19826. (unsetUseBit): Use setBitInternal.
  19827. (setBit): Use setBitInternal.
  19828. (unsetBit): Use setBitInternal.
  19829. (isAllBitSet): Use filterBitfield.
  19830. (setFilterBit): New function.
  19831. (addFilter): New function.
  19832. (enableFilter): New function.
  19833. (disableFilter): New function.
  19834. (clearFilter): New function.
  19835. (isFilterEnabled): New function.
  19836. (getFilteredTotalLength): New function.
  19837. (getCompletedLength): New function.
  19838. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  19839. Initalized newly added variables.
  19840. [FileEntry](offset): New variable.
  19841. [FileEntry](extracted): New variable.
  19842. [FileEntry](requested): New variable.
  19843. (readFileEntry): New function.
  19844. (option): New variable.
  19845. (splitMultiFile): Removed const qualifier.
  19846. (fixFilename): Removed const qualifier.
  19847. (readFileEntryFromMetaInfoFile): New function.
  19848. (finishPartialDownloadingMode): New function.
  19849. (isPartialDownloadingMode): New function.
  19850. (setFileEntriesToDownload): New function.
  19851. (getCompletedLength): New function.
  19852. (getPartialTotalLength): New function.
  19853. * src/TorrentMan.cc (readFileEntry): New function.
  19854. (setup): Use readFileEntry. If no-preallocation option is specified,
  19855. use DefaultDiskWriter.
  19856. (readFileEntryFromMetaInfoFile): New function.
  19857. (fixFilename): Removed const qualifier.
  19858. (splitMultiFile): Removed const qualifier.
  19859. (setFileEntriesToDownload): New function.
  19860. (isPartialDownloadingMode): New function.
  19861. (finishPartialDownloadingMode): New function.
  19862. (getCompletedLength): New function.
  19863. (getPartialTotalLength): New function.
  19864. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  19865. New variable.
  19866. (partialTotalLength): New variable.
  19867. (downloadLength): New variable.
  19868. (totalLength): New variable.
  19869. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  19870. Added log.
  19871. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  19872. partialTotalLength, downloadLength, totalLength.
  19873. (calculate): Calculate downloadLength and totalLength.
  19874. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  19875. * src/main.cc (addCommand): Changed argument signature.
  19876. (main): Added new variable: args. Added new option "torrent-show-files"
  19877. "no-preallocation". Usage is not updated yet.
  19878. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19879. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  19880. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19881. Attempt to add the ability to listing file entries in a .torrent file.
  19882. This feature is not yet complete.
  19883. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  19884. * src/TorrentMan.cc (getMultiFileEntries): New function.
  19885. (getName): New function.
  19886. * src/TorrentMan.h (getMultiFileEntries): New function.
  19887. (getName): New function.
  19888. * src/main.cc (main): Use above 2 funtion.
  19889. * Release 0.3.2
  19890. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19891. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  19892. (detectMessageFlooding): Updated threshold value.
  19893. (checkLongTimePeerChoking): Updated timeout value.
  19894. (getNewPieceAndSendInterest): Added debug log.
  19895. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  19896. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  19897. (getPeer): Updated.
  19898. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  19899. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  19900. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  19901. is localhost.
  19902. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  19903. * src/PendingMessage.cc (processMessage): Not to send piece message
  19904. if peer is not interested in the pieces localhost has.
  19905. * src/Peer.cc (shouldChoke): Updated.
  19906. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  19907. * src/Util.cc (isPowerOf): New function.
  19908. * src/Util.h (isPowerOf): New function.
  19909. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  19910. whether or not it is power of 2.
  19911. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19912. Added new class SendMessageQueue that includes PendingMessages and
  19913. RequestSlotMan.
  19914. * src/SendMessageQueue.h: New class.
  19915. * src/SendMessageQueue.cc: New class.
  19916. * src/PendingMessage.h: Added new member variable blockIndex and its
  19917. accessors.
  19918. (createRequestMessage): Updated.
  19919. * src/PendingMessage.cc (createRequestMessage): Updated.
  19920. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  19921. SendMessageQueue.
  19922. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  19923. (receiveMessage): Updated with SendMessageQueue.
  19924. (deletePendingPieceMessage): Removed.
  19925. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  19926. (sendInterest): Updated with SendMessageQueue.
  19927. (createRequestPendingMessage): Updated with SendMessageQueue.
  19928. (sendMessages): Updated with SendMessageQueue.
  19929. (onAbort): Updated with SendMessageQueue.
  19930. (keepAlive): Updated with SendMessageQueue.
  19931. (beforeSocketCheck): Updated SendMessageQueue.
  19932. * src/PeerInteractionCommand (sendMessages): Shuffle
  19933. missingBLockIndexes before using it.
  19934. Added its own timeout for peer connection.
  19935. * src/PeerAbstractCommand.h: Added member variable timeout and its
  19936. setter.
  19937. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  19938. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  19939. Added setTimeout() call.
  19940. (executeInternal): Added setTimeout() call.
  19941. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  19942. Added timeout.
  19943. (isTimeoutDetected): Updated.
  19944. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  19945. option.
  19946. Added *simple* message flooding checker.
  19947. * src/PeerInteractionCommand.cc (executeInternal):
  19948. Added detectMessageFlooding() call.
  19949. (detectMessageFlooding): New function.
  19950. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  19951. (beforeSocketCheck): Added detectMessageFlooding() call.
  19952. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  19953. chokeUnchokeCount, haveCount, detectMessageFlooding().
  19954. Removed deletePendingPieceMessage(), getRequestSlot(),
  19955. deleteRequestSlot(), deleteAllRequestSlot().
  19956. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  19957. Added checkLongTimePeerChoking() call.
  19958. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  19959. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  19960. if duplicate == false.
  19961. The parameter "uploaded" and "downloaded" in the tracker request are
  19962. the size since the client sent the "started" event to the tracker.
  19963. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  19964. uploaded size to preDownloadedSize, preUploadedSize respectively.
  19965. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  19966. getSessionDownloadedSize(), getSessionUploadedSize().
  19967. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  19968. getSessionUploadedSize() instead of getDownloadedSize(),
  19969. getUploadedSize().
  19970. * src/PendingMessage.cc (processMessage): Do not send request message
  19971. if the peer is choking the client.
  19972. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  19973. less than interval.
  19974. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19975. * configure.in: Added gnutls support. Added several CPP macros.
  19976. * m4/openssl.m4: Added.
  19977. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  19978. readData(), peekData(). Added gnutls support.
  19979. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  19980. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  19981. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  19982. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  19983. Instead, added a check for whether setup method has executed
  19984. successfully.
  19985. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  19986. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  19987. * src/Makefile.am: Updated.
  19988. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  19989. using whether OpenSSL or gcrypt, depending on the result of configure
  19990. script.
  19991. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19992. messageDigest.h.
  19993. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  19994. * src/PeerListenCommand.cc: Added log about port binded successfully.
  19995. Fixed memory leak.
  19996. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  19997. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  19998. Removed instantiation of TrackerInitCommand. Instead,
  19999. TrackerWatcherCommand is instantiated and pushed to the command queue.
  20000. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  20001. ENABLE_SSL.
  20002. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  20003. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  20004. If a piece is already acquired by another command, delete the request
  20005. slots for the piece.
  20006. * src/TrackerUpdateCommand.cc (execute):
  20007. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  20008. Added a check whether peer list is null.
  20009. Fixed the bug that causes sending completed event to the tracker
  20010. several times.
  20011. * src/TrackerInitCommand.cc (execute):
  20012. Fixed the bug that causes sending completed event to the tracker
  20013. several times.
  20014. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  20015. by using messageDigest.h.
  20016. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20017. * PeerConnection.cc: Replaced log message "keep-alive" with
  20018. "keep alive".
  20019. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  20020. localhost long time.
  20021. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  20022. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  20023. at most 100 failure entry from the list. If with duplicate = false,
  20024. MAX_PEER_LIST is not checked.
  20025. * PeerListenCommand.cc: Fixed the argument order of log message.
  20026. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20027. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  20028. Added warn().
  20029. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  20030. Implemented warn().
  20031. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  20032. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20033. * Request.h: Added AFTER_COMPLETED event.
  20034. * TorrentDownloadEngine.cc: Prints "Download complete" message
  20035. instead of downloaded size and progress(%) after download completes.
  20036. * PeerInteractionCommand.cc: After download completes, sends unchoke
  20037. message to the peer if it is interested in what localhost has
  20038. downloaded.
  20039. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  20040. destination instead of just renaming it.
  20041. * TorrentMan.cc: Added deleteTempFile().
  20042. * PeerAbstractCommand.cc: do not stop execution after download
  20043. completes. This makes localhost a seeder.
  20044. * Util.{h,cc}: Added fileCopy().
  20045. * PeerListenCommand.cc: do not stop execution after download completes.
  20046. This makes localhost a seeder.
  20047. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  20048. Added TorrentMan::deleteTempFile() to torrentHandler.
  20049. Initialized the variable dir as ".".
  20050. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  20051. Deleted renameSingleFile().
  20052. Added copySingleFile(), deleteTempFile().
  20053. * DownloadEngine.h: Added virtual function afterEachIteration().
  20054. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  20055. in onEndOfRun() to afterEachIteration().
  20056. In onEndOfRun(), changed if condition to check whether filenameFixed is
  20057. true.
  20058. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  20059. In rangedFileCopy(), added try-catch block to properly close file
  20060. descriptors.
  20061. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  20062. Added afterEachIteration(), isFilenameFixed().
  20063. * Peer.cc: Changed choking strategy.
  20064. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  20065. * TrackerInitCommand.cc: Send completed event only once.
  20066. * DownloadEngine.cc: Added a call to afterEachIteration().
  20067. * TrackerUpdateCommand.cc: Do not stop execution after download
  20068. completes.
  20069. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  20070. connect the peers at most MAX_PEER_UPDATE when a peer list is
  20071. received from a tracker.
  20072. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  20073. Decreased the number of failure peers to delete to 0(just comment out
  20074. the line).
  20075. * Release 0.3.1
  20076. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20077. * PeerInteractionCommand.cc: added a call to
  20078. TorrentMan::unadvertisePiece in Destructor.
  20079. * PeerInteractionCommand.cc: make have message sent immediately
  20080. if the size of pending message queue is zero.
  20081. * TorrentMan.cc: set the maximum size of peer list to 250.
  20082. * TorrentMan.h: changed the container type of Peers and UsedPieces
  20083. to deque.
  20084. * Util.cc: fixed rangedFileCopy.
  20085. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  20086. to Constructor. Also, moved digest cleanup to Destructor.
  20087. * MetaFileUtil.cc: fixed memory leak
  20088. * replaced std::vector with std::deque.
  20089. * AbstractCommand.cc: casted timeout value to long long int.
  20090. * ChunkedEncoding.cc: fixed memory leak.
  20091. * PeerInteractionCommand.cc: casted timeout value to long long int.
  20092. * SleepCommand.cc: casted timeout value to long long int.
  20093. * Data.cc: fixed memory leak.
  20094. * Data.cc: fixed toLLInt().
  20095. * BitfieldMan.cc: fixed memory leak.
  20096. * TorrentMan.cc: initialized storeDir to ".".
  20097. * TorrentMan.cc: fixed memory leak.
  20098. * TorrentMan.cc: corrected file paths of splitted files.
  20099. * PeerAbstractCommand.cc: casted timeout to long long int.
  20100. * main.cc: added delete(req) and delete(te->diskWriter).
  20101. * RequestSlot.cc: casted timeout value to long long int.
  20102. * Request.cc: fixed memory leak.
  20103. * PendingMessage.cc: make HAVE messages sent only when peer does not
  20104. have the piece.
  20105. * Peer.{h,cc}: added hasPiece(int index).
  20106. * main.cc: corrected addCommand.
  20107. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20108. * BitTorrent protocol support added.
  20109. * Release 0.3.0
  20110. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20111. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  20112. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20113. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  20114. decoding did not work properly.
  20115. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20116. * DownloadEngine.h: included sys/time.h
  20117. * DownloadEngine.cc: remove sys/time.h
  20118. * Makefile.am (SUBDIRS): Add intl.
  20119. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  20120. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20121. * main.cc: correct help message for --http-auth-scheme.
  20122. * main.cc: changed e-mail address for bug reports.
  20123. * ja.po: added japanese translation.
  20124. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20125. * SimpleLogger.cc: flush log file instead of stdout.
  20126. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20127. * main.cc: Fixed command-line option: max-tries
  20128. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  20129. does not equal to seg.sp.
  20130. * DownloadCommand.cc: If EOF is got from the server and the total size
  20131. of file is not zero, then throw DlRetryEx.
  20132. * main.cc: Set the minium value of min-segment-size to 1024.
  20133. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  20134. fails because of a regression since 0.2.0 release.
  20135. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20136. * HttpConnection.cc:
  20137. * common.h: defined the user agent name as macro
  20138. * DownloadEngine.{h, cc}:
  20139. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  20140. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  20141. * main.cc: Download complete/abort message is now generated by main.
  20142. * Makefile.am (SUBDIRS): Add m4.
  20143. (ACLOCAL_AMFLAGS): New variable.
  20144. (EXTRA_DIST): New variable.
  20145. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  20146. * gettext: added gettext functionality
  20147. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20148. * AbstractCommand.cc:
  20149. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  20150. unregister its cuid from SegmentMan.
  20151. * DownloadEngine.cc: .aria2 file was written when a downloading
  20152. failed with errors.
  20153. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  20154. Added "User-Agent" header to CONNECT proxy request.
  20155. Fixed "Proxy-Authorization" header. Now proxy authorization works
  20156. properly.
  20157. * Logger.h:
  20158. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  20159. * ChunkedEncoding.cc: Added #include directive for strings.h
  20160. * Release 0.2.1
  20161. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20162. * Util.{h,cc}: added startsWith().
  20163. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  20164. Util::endsWith().
  20165. * SocketCore.cc: struct addrinfo is now zero-initialized.
  20166. * common.h: added #include directive of limit.h.
  20167. * DownloadEngine.cc: added #include directive of sys/time.h and
  20168. algorithm.
  20169. * Exception.h: added #include directive of stdio.h.
  20170. * AbstractCommand.h: added #include directive of sys/time.h.
  20171. * DownloadCommand.h: added #include directive of sys/time.h.
  20172. * *.h: added #include directive of common.h to all base classes.
  20173. subclasses' one was removed.
  20174. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  20175. does not define these macros.
  20176. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20177. * Release 0.2.0
  20178. * main.cc:
  20179. * HttpInitiateConnectionCommand.{h,cc}:
  20180. * prefs.h:
  20181. * HttpConnection.{h,cc}: added --http-proxy-method option.
  20182. We can now use GET command in http proxy.
  20183. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20184. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  20185. that splits slowest segment of SegmentMan::commands vector.
  20186. This is the default split algorithm of aria2.
  20187. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  20188. that splits first segment of SegmentMan::commands vector.
  20189. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  20190. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  20191. * Segment.h:
  20192. * SegmentMan.cc: Added speed field to Segment.h
  20193. * main.cc: -s option now affects all URLs in command-line arguemtns.
  20194. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  20195. * message.h: Change file size related %d to %lld.
  20196. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20197. * FtpInitiateConnectionCommand.{h,cc}:
  20198. * FtpNegotiationCommand.{h,cc}:
  20199. * FtpDownloadCommand.{h,cc}:
  20200. * FtpConnection.{h,cc}: Added FTP support
  20201. * SimpleLogger.cc: Log message now includes time information.
  20202. * main.cc: The value of --http-auth-scheme option is chagned from
  20203. 'BASIC' to 'basic'
  20204. * main.cc: Added --timeout command-line option.
  20205. * main.cc: Added --min-segment-size command-line option.
  20206. * main.cc: Added --max-retries command-line option.
  20207. * prefs.h: option string constants are now defined in prefs.h
  20208. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20209. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  20210. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  20211. with version 0.1.0's one.
  20212. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  20213. * configure.in: Added --enable-ssl option to configure script.
  20214. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  20215. cannot permit absoluteURI as Request-URI.
  20216. * HttpConnection.cc: Added Referer support.
  20217. * main.cc: Added referer command-line option.
  20218. * main.cc: Added rety-wait command-line option.
  20219. * Exception.h: Fixed formating bug in Exception::setMsg()
  20220. * SocketCore.{h,cc}:
  20221. * Socket.{h, cc}:
  20222. * Request.cc:
  20223. * InitiateConnectionCommandFactory.cc:
  20224. * HttpRequestCommand.cc: Added HTTPS support.
  20225. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  20226. for SocketCore.
  20227. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  20228. size is wrong
  20229. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  20230. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  20231. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  20232. * Release 0.1.0