ChangeLog 719 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286
  1. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Use cuid_t type for cuid.
  3. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4. Added v key in DHT message. aria2's DHT version is independent of
  5. the package version and we defined it as 1 at the moment. It is
  6. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  7. scheme is "A2"+2bytes DHT version number in network byte order.
  8. * src/DHTAbstractMessage.cc
  9. * src/DHTConstants.h
  10. * src/DHTMessage.cc
  11. * src/DHTMessage.h
  12. * src/DHTMessageFactoryImpl.cc
  13. * src/DHTQueryMessage.cc
  14. * src/DHTResponseMessage.cc
  15. * src/util.h
  16. * test/DHTAnnouncePeerMessageTest.cc
  17. * test/DHTAnnouncePeerReplyMessageTest.cc
  18. * test/DHTFindNodeMessageTest.cc
  19. * test/DHTFindNodeReplyMessageTest.cc
  20. * test/DHTGetPeersMessageTest.cc
  21. * test/DHTGetPeersReplyMessageTest.cc
  22. * test/DHTPingMessageTest.cc
  23. * test/DHTPingReplyMessageTest.cc
  24. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  26. method response is integer, while manual says it is string. When
  27. peer's port is not listening port, set '0' to port in
  28. aria2.getPeers response.
  29. * src/XmlRpcMethodImpl.cc
  30. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Lines starting "#" in -i list are treated as comments.
  32. Example:
  33. # this is comment
  34. http://example.org/file
  35. http://example.org/file2
  36. dir=/tmp
  37. # another comment
  38. out=myfile
  39. * doc/aria2c.1.txt
  40. * src/UriListParser.cc
  41. * test/filelist1.txt
  42. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Accept IPv4 network address with CIDR block in --no-proxy option
  44. and no_proxy environment variable. Current implementation does
  45. not resolve hostname in URI to compare network address. So it is
  46. only effecive if URI has numeric IP addresses.
  47. * doc/aria2c.1.txt
  48. * src/AbstractCommand.cc
  49. * src/OptionHandlerFactory.cc
  50. * src/bitfield.h
  51. * src/usage_text.h
  52. * src/util.cc
  53. * src/util.h
  54. * test/UtilTest.cc
  55. * test/bitfieldTest.cc
  56. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  57. Reduced interval for metadatagetmode to quickly gather metadata.
  58. * src/BtSetup.cc
  59. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  60. Release 1.9.0
  61. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Updated po templates.
  63. * po/aria2.pot
  64. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Updated doc.
  66. * doc/aria2c.1.txt
  67. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  68. Documented about Metalink4 and LPD in README
  69. * RADME
  70. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  71. Few adjustment for timeouts in DHT. DHT message timeout is changed
  72. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  73. it adds another 5 seconds in each retry.
  74. * src/DHTConstants.h
  75. * src/DHTGetPeersCommand.cc
  76. * src/DHTGetPeersCommand.h
  77. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Changed log level from error to info for DHT message send error.
  79. * src/DHTMessageDispatcherImpl.cc
  80. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Inspect all xt in magnet to find urn:btih.
  82. * src/bittorrent_helper.cc
  83. * test/BittorrentHelperTest.cc
  84. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. Use global option for DHTSetup.
  86. * src/DHTSetup.cc
  87. * src/DHTSetup.h
  88. * src/RequestGroup.cc
  89. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Added bt-enable-lpt, reuse-uri
  91. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  92. options.
  93. * doc/aria2c.1.txt
  94. * doc/xmlrpc/aria2rpc
  95. * src/download_helper.cc
  96. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  98. * src/BtSetup.cc
  99. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Resurrected --http-proxy-user and --http-proxy-passwd option.
  101. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  102. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  103. * doc/aria2c.1.txt
  104. * src/OptionHandlerFactory.cc
  105. * src/OptionHandlerImpl.h
  106. * src/prefs.cc
  107. * src/prefs.h
  108. * src/usage_text.h
  109. * test/OptionHandlerTest.cc
  110. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Updated Russian and Simplified Chinese translation. Thanks to all
  112. translators.
  113. * po/ru.po
  114. * po/zh_CN.po
  115. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Updated po templates.
  117. * po/aria2.pot
  118. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. For LPD sockets, bind IN_ADDRANY because binding multicast address
  120. fails under Windows.
  121. * src/LpdMessageReceiver.cc
  122. * test/LpdMessageDispatcherTest.cc
  123. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Fixed the bug that error message is not propagated to Exception.
  125. * src/SocketCore.cc
  126. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Documented --bt-lpd-interface option in man page.
  128. * doc/aria2c.1.txt
  129. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Bump up version number to 1.9.0
  131. * configure.ac
  132. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Fixed the bug that FillRequestGroupCommand is not invoked when
  134. RequestGroupMan::createInitialCommand() creates no Command object.
  135. * src/FillRequestGroupCommand.cc
  136. * src/RequestGroupMan.cc
  137. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. Added debug logs.
  139. * src/FileEntry.cc
  140. * src/SegmentMan.cc
  141. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Fixed unit test error with mingw32 build.
  143. * test/LpdMessageReceiverTest.cc
  144. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Updated automake-1.11.1
  146. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Fixed compile error and unit test error without openssl and
  148. gnutls.
  149. * src/MetalinkParserController.cc
  150. * test/MetalinkProcessorTest.cc
  151. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Fixed unitest fails if openssl doesn't support sha-256.
  153. * src/MetalinkParserStateV4Impl.cc
  154. * test/MetalinkProcessorTest.cc
  155. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Wait until message arrives(again)
  157. * test/LpdMessageReceiverTest.cc
  158. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. Added missing wallclock.h to SRCS.
  160. * src/Makefile.am
  161. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Fixed compile error with --disable-bittorrent
  163. * test/Metalink2RequestGroupTest.cc
  164. * test/MetalinkParserControllerTest.cc
  165. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Added --reuse-uri option. This option has existed quite long, but
  167. been hidden.
  168. * doc/aria2c.1.txt
  169. * src/OptionHandlerFactory.cc
  170. * src/usage_text.h
  171. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Ignore filename parameter if it contains directory traversal
  173. directives.
  174. * src/util.cc
  175. * test/UtilTest.cc
  176. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. urldecode -> percentDecode
  178. * src/FtpConnection.cc
  179. * src/FtpNegotiationCommand.cc
  180. * src/HttpResponse.cc
  181. * src/Request.cc
  182. * src/magnet.cc
  183. * src/util.cc
  184. * src/util.h
  185. * test/UtilTest.cc
  186. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  187. urlencode -> percentEncode,
  188. torrentUrlencode -> torrentPercentEncode
  189. * src/BtHandshakeMessage.cc
  190. * src/BtHandshakeMessageValidator.h
  191. * src/DHTMessageFactoryImpl.cc
  192. * src/DefaultBtAnnounce.cc
  193. * src/HandshakeExtensionMessage.cc
  194. * src/HttpRequest.cc
  195. * src/XmlRpcMethodImpl.cc
  196. * src/bittorrent_helper.cc
  197. * src/util.cc
  198. * src/util.h
  199. * test/DHTAnnouncePeerMessageTest.cc
  200. * test/DHTGetPeersMessageTest.cc
  201. * test/DHTGetPeersReplyMessageTest.cc
  202. * test/UTPexExtensionMessageTest.cc
  203. * test/UtilTest.cc
  204. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Fixed the bug that filename is percent encoded where it must be
  206. percent decoded in sendMdtm().
  207. * src/FtpConnection.cc
  208. * test/FtpConnectionTest.cc
  209. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. url -> uri in Request class.
  211. * src/AbstractCommand.cc
  212. * src/AdaptiveURISelector.cc
  213. * src/DefaultBtAnnounce.cc
  214. * src/FeedbackURISelector.cc
  215. * src/FileEntry.cc
  216. * src/FileEntry.h
  217. * src/HttpRequest.h
  218. * src/HttpResponse.cc
  219. * src/InitiateConnectionCommandFactory.cc
  220. * src/Metalink2RequestGroup.cc
  221. * src/OptionHandlerImpl.h
  222. * src/ProtocolDetector.cc
  223. * src/Request.cc
  224. * src/Request.h
  225. * src/XmlRpcMethodImpl.cc
  226. * test/AuthConfigFactoryTest.cc
  227. * test/FtpConnectionTest.cc
  228. * test/HttpRequestTest.cc
  229. * test/HttpResponseTest.cc
  230. * test/RequestTest.cc
  231. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Added getServers XML-RPC method.
  233. * doc/aria2c.1.txt
  234. * src/FileEntry.h
  235. * src/XmlRpcMethodFactory.cc
  236. * src/XmlRpcMethodImpl.cc
  237. * src/XmlRpcMethodImpl.h
  238. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Pool request when download finished.
  240. * src/DownloadCommand.cc
  241. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  243. 1-based.
  244. * doc/aria2c.1.txt
  245. * src/XmlRpcMethodImpl.cc
  246. * test/XmlRpcMethodTest.cc
  247. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  248. Call RequestGroupMan::requestQueueCheck() when
  249. max-concurrent-downloads option is changed or new downloads are
  250. added/inserted into reserved list.
  251. * src/RequestGroupMan.cc
  252. * src/XmlRpcMethodImpl.cc
  253. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Added aria2.forceRemove XML-RPC method.
  255. * doc/aria2c.1.txt
  256. * src/XmlRpcMethodFactory.cc
  257. * src/XmlRpcMethodImpl.cc
  258. * src/XmlRpcMethodImpl.h
  259. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Added debug log.
  261. * src/AbstractCommand.cc
  262. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Create CreateRequestCommand to the number of -s/-C when URIs are
  264. added by XML-RPC.
  265. * src/RequestGroup.cc
  266. * src/RequestGroup.h
  267. * src/XmlRpcMethodImpl.cc
  268. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Added 'status' key to the response of getUri XML-RPC method.
  270. * doc/aria2c.1.txt
  271. * src/XmlRpcMethodImpl.cc
  272. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Replaced Time::reset() call with assigning of global::wallclock.
  274. * src/BtLeecherStateChoke.cc
  275. * src/BtSeederStateChoke.cc
  276. * src/PeerSessionResource.cc
  277. * src/RequestSlot.cc
  278. * src/ServerStat.cc
  279. * src/SpeedCalc.cc
  280. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Added changeUri XML-RPC method. This method removes/adds URIs
  282. dynamically.
  283. * doc/aria2c.1.txt
  284. * src/AbstractCommand.cc
  285. * src/DownloadContext.cc
  286. * src/DownloadContext.h
  287. * src/FileEntry.cc
  288. * src/FileEntry.h
  289. * src/Request.cc
  290. * src/Request.h
  291. * src/RequestGroup.cc
  292. * src/RequestGroupMan.cc
  293. * src/XmlRpcMethodFactory.cc
  294. * src/XmlRpcMethodImpl.cc
  295. * src/XmlRpcMethodImpl.h
  296. * test/FileEntryTest.cc
  297. * test/XmlRpcMethodTest.cc
  298. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  299. Rewritten copy ctor of RequestSlot to use initialization list.
  300. * src/RequestSlot.h
  301. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  302. Added Time global::wallclock to cache "current time" to reduce the
  303. call gettimeofday(). Global variables are now in namespace global.
  304. * src/AbstractCommand.cc
  305. * src/ActivePeerConnectionCommand.cc
  306. * src/AdaptiveURISelector.cc
  307. * src/BtLeecherStateChoke.cc
  308. * src/BtLeecherStateChoke.h
  309. * src/BtSeederStateChoke.cc
  310. * src/BtSeederStateChoke.h
  311. * src/BtStopDownloadCommand.cc
  312. * src/ConsoleStatCalc.cc
  313. * src/DHTBucket.cc
  314. * src/DHTGetPeersCommand.cc
  315. * src/DHTMessageTrackerEntry.cc
  316. * src/DHTNode.cc
  317. * src/DHTPeerAnnounceEntry.cc
  318. * src/DHTPeerAnnounceStorage.cc
  319. * src/DHTSetup.cc
  320. * src/DefaultBtAnnounce.cc
  321. * src/DefaultBtInteractive.cc
  322. * src/DefaultBtMessageDispatcher.cc
  323. * src/DefaultPeerStorage.cc
  324. * src/DefaultPieceStorage.cc
  325. * src/DownloadCommand.cc
  326. * src/DownloadEngine.cc
  327. * src/FileEntry.cc
  328. * src/HttpServerBodyCommand.cc
  329. * src/HttpServerCommand.cc
  330. * src/HttpServerResponseCommand.cc
  331. * src/LpdMessageDispatcher.cc
  332. * src/MultiUrlRequestInfo.cc
  333. * src/Peer.cc
  334. * src/Peer.h
  335. * src/PeerAbstractCommand.cc
  336. * src/PeerStat.h
  337. * src/RequestSlot.cc
  338. * src/RequestSlot.h
  339. * src/SegmentMan.cc
  340. * src/ServerStatMan.cc
  341. * src/SleepCommand.cc
  342. * src/SpeedCalc.cc
  343. * src/SpeedCalc.h
  344. * src/TimeA2.cc
  345. * src/TimeA2.h
  346. * src/TimeBasedCommand.cc
  347. * src/TimeSeedCriteria.h
  348. * src/UTMetadataRequestTracker.h
  349. * src/UTPexExtensionMessage.cc
  350. * src/wallclock.h
  351. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Fixed the bug that util::itos(INT64_MIN) fails.
  353. * src/util.cc
  354. * src/util.h
  355. * test/UtilTest.cc
  356. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Fixed memory leak in SocketBuffer when _bufq is not empty when
  358. SocketBuffer is deleted. Added BufEntry constructor and deleted
  359. static factory functions.
  360. * src/SocketBuffer.cc
  361. * src/SocketBuffer.h
  362. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  364. queue maintenance is requested by RequestGroup to avoid to call
  365. the function unnecessarily.
  366. * src/FillRequestGroupCommand.cc
  367. * src/RequestGroup.cc
  368. * src/RequestGroup.h
  369. * src/RequestGroupMan.cc
  370. * src/RequestGroupMan.h
  371. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Don't use hash for Peer::id. Simple concatenation of ip address
  373. and port is enough.
  374. * src/Peer.cc
  375. * test/PeerTest.cc
  376. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Enclosed log of DHTMessage::toString() with Logger::info().
  378. * src/DHTMessageDispatcherImpl.cc
  379. * src/DHTMessageReceiver.cc
  380. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Rewritten util::toHex().
  382. * src/util.cc
  383. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Removed SocketBuffer::feedAndSend(). Renamed
  385. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  386. * src/FtpConnection.cc
  387. * src/HttpConnection.cc
  388. * src/HttpServer.cc
  389. * src/MSEHandshake.cc
  390. * src/PeerConnection.cc
  391. * src/SocketBuffer.cc
  392. * src/SocketBuffer.h
  393. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  394. Removed unused PeerConnection::sendMessage(). Updated doc.
  395. * src/PeerConnection.cc
  396. * src/PeerConnection.h
  397. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Reduced copying/std::string instantiation in sending/receiving
  399. BitTorrent messages.
  400. * src/BtBitfieldMessage.cc
  401. * src/BtBitfieldMessage.h
  402. * src/BtExtendedMessage.cc
  403. * src/BtExtendedMessage.h
  404. * src/BtHandshakeMessage.cc
  405. * src/BtHandshakeMessage.h
  406. * src/BtKeepAliveMessage.cc
  407. * src/BtKeepAliveMessage.h
  408. * src/BtPieceMessage.cc
  409. * src/BtPieceMessage.h
  410. * src/BtPortMessage.cc
  411. * src/BtPortMessage.h
  412. * src/BtUnchokeMessage.h
  413. * src/DefaultBtMessageReceiver.cc
  414. * src/IndexBtMessage.cc
  415. * src/IndexBtMessage.h
  416. * src/PeerConnection.cc
  417. * src/PeerConnection.h
  418. * src/RangeBtMessage.cc
  419. * src/RangeBtMessage.h
  420. * src/SimpleBtMessage.cc
  421. * src/SimpleBtMessage.h
  422. * src/SocketBuffer.cc
  423. * src/SocketBuffer.h
  424. * src/ZeroBtMessage.cc
  425. * src/ZeroBtMessage.h
  426. * test/BtAllowedFastMessageTest.cc
  427. * test/BtBitfieldMessageTest.cc
  428. * test/BtCancelMessageTest.cc
  429. * test/BtChokeMessageTest.cc
  430. * test/BtExtendedMessageTest.cc
  431. * test/BtHandshakeMessageTest.cc
  432. * test/BtHaveAllMessageTest.cc
  433. * test/BtHaveMessageTest.cc
  434. * test/BtHaveNoneMessageTest.cc
  435. * test/BtInterestedMessageTest.cc
  436. * test/BtKeepAliveMessageTest.cc
  437. * test/BtNotInterestedMessageTest.cc
  438. * test/BtPieceMessageTest.cc
  439. * test/BtPortMessageTest.cc
  440. * test/BtRejectMessageTest.cc
  441. * test/BtRequestMessageTest.cc
  442. * test/BtSuggestPieceMessageTest.cc
  443. * test/BtUnchokeMessageTest.cc
  444. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Rewritten SocketBuffer. Old implementation uses single std::string
  446. to store data and erase sent data, which is costly. New
  447. implementation uses deque to hold each data to avoid to mutate
  448. string.
  449. * src/SocketBuffer.cc
  450. * src/SocketBuffer.h
  451. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  452. Removed unused FileEntry::extracted
  453. * src/FileEntry.cc
  454. * src/FileEntry.h
  455. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Wait until data arrives.
  457. * test/LpdMessageReceiverTest.cc
  458. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  459. In Metalink4, if size element contains invalid size, discard whole
  460. document. Added strict hash value check for metalink3/4.
  461. * src/MetalinkParserController.cc
  462. * src/MetalinkParserStateMachine.cc
  463. * src/MetalinkParserStateMachine.h
  464. * src/MetalinkParserStateV3Impl.cc
  465. * src/MetalinkParserStateV4Impl.cc
  466. * src/util.cc
  467. * src/util.h
  468. * test/MetalinkParserControllerTest.cc
  469. * test/MetalinkProcessorTest.cc
  470. * test/metalink4.xml
  471. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  472. Added strict attribute validation for metalink4. When
  473. specification violation is found, discard the whole document.
  474. * src/ExpatMetalinkProcessor.cc
  475. * src/MetalinkParserStateMachine.cc
  476. * src/MetalinkParserStateMachine.h
  477. * src/MetalinkParserStateV4Impl.cc
  478. * src/XML2SAXMetalinkProcessor.cc
  479. * test/Makefile.am
  480. * test/MetalinkProcessorTest.cc
  481. * test/metalink4-attrs.xml: Removed
  482. * test/metalink4-dirtraversal.xml: Removed
  483. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Added test for Metaurl transaction.
  485. * src/MetalinkParserController.cc
  486. * test/MetalinkParserControllerTest.cc
  487. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. Avoid costly BtMessage::toString() if info level log is not
  489. required.
  490. * src/DefaultBtInteractive.cc
  491. * src/Logger.h
  492. * src/SimpleBtMessage.cc
  493. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  494. Reserved vector elements based on profiler results.
  495. * src/DefaultBtInteractive.cc
  496. * src/DefaultBtProgressInfoFile.cc
  497. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Avoid to calculate end() iterator in each loop. std::deque is
  499. particularly slow. Make sure that recalculate end iterator if
  500. element is erased during loop.
  501. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  502. Use vector instead of deque for containers which is used for
  503. mostly read-only purpose.
  504. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Fixed typo
  506. * test/Makefile.am
  507. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  509. * test/Makefile.am
  510. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Small optimization: In updateTransferStatFor(), don't search peer
  512. ID twice.
  513. * src/DefaultPeerStorage.cc
  514. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  515. Use vector instead of deque for MetalinkEntry and MetalinkResource
  516. objects.
  517. * src/Metalink2RequestGroup.cc
  518. * src/Metalink2RequestGroup.h
  519. * src/MetalinkEntry.cc
  520. * src/MetalinkEntry.h
  521. * src/MetalinkHelper.cc
  522. * src/MetalinkHelper.h
  523. * src/Metalinker.cc
  524. * src/Metalinker.h
  525. * src/main.cc
  526. * test/MetalinkEntryTest.cc
  527. * test/MetalinkHelperTest.cc
  528. * test/MetalinkProcessorTest.cc
  529. * test/MetalinkerTest.cc
  530. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Fixed the bug that grouped FileEntry objects are not used but
  532. instead all FileEntry objects are used for each metaurl group.
  533. * src/Metalink2RequestGroup.cc
  534. * test/Metalink2RequestGroupTest.cc
  535. * test/metalink4-groupbymetaurl.xml
  536. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  537. Use vector instead of deque for ChunkChecksum.
  538. * src/ChunkChecksum.h
  539. * src/MetalinkParserController.cc
  540. * src/MetalinkParserController.h
  541. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  543. algorithm in Metalink properly
  544. * src/MetalinkParserController.cc
  545. * src/MetalinkParserController.h
  546. * src/messageDigest.cc
  547. * src/messageDigest.h
  548. * test/MetalinkProcessorTest.cc
  549. * test/metalink4.xml
  550. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Replaced null or control characters in file path with '_'. For
  552. MinGW32 build, additional characters which is not allowed in
  553. Windows kernel are also replaced. util::detectDirTraversal() now
  554. returns true if given string contains null or control characters.
  555. * src/DownloadContext.cc
  556. * src/DownloadContext.h
  557. * src/Metalink2RequestGroup.cc
  558. * src/MetalinkParserController.cc
  559. * src/bittorrent_helper.cc
  560. * src/util.cc
  561. * src/util.h
  562. * test/UtilTest.cc
  563. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Discard metalink:file if its name attribute is empty string.
  565. Removed FileEntry instantiation in
  566. MetalinkParserController::setFileLengthOfEntry()
  567. * src/MetalinkParserController.cc
  568. * src/MetalinkParserStateV3Impl.cc
  569. * src/MetalinkParserStateV4Impl.cc
  570. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Discard torrent file if path data in it contains directory
  572. traversal directives. Discard metalink:file element in Metalink3
  573. format if its name attribute contains directory traversal
  574. directives. Ignore name attribute of metalink:signature element
  575. in Metalink3 format if it contains directory traversal directives.
  576. * src/MetalinkParserStateV3Impl.cc
  577. * src/bittorrent_helper.cc
  578. * src/message.h
  579. * test/BittorrentHelperTest.cc
  580. * test/Makefile.am
  581. * test/MetalinkProcessorTest.cc
  582. * test/metalink3-dirtraversal.xml
  583. * test/test.xml
  584. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Removed useless comment
  586. * src/MetalinkParserStateV4Impl.cc
  587. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Supported name attribute of metalink::metaurl element and
  589. multi-file torrent with Metalink4. Files with same metaurl are
  590. grouped and downloaded in one RequestGroup.
  591. * src/BtDependency.cc
  592. * src/FileEntry.h
  593. * src/Metalink2RequestGroup.cc
  594. * src/Metalink2RequestGroup.h
  595. * src/MetalinkEntry.cc
  596. * src/MetalinkEntry.h
  597. * src/MetalinkHelper.cc
  598. * src/MetalinkHelper.h
  599. * src/MetalinkMetaurl.cc
  600. * src/MetalinkMetaurl.h
  601. * src/MetalinkParserController.cc
  602. * src/RequestGroup.cc
  603. * src/RequestGroup.h
  604. * src/bittorrent_helper.cc
  605. * test/BittorrentHelperTest.cc
  606. * test/BtDependencyTest.cc
  607. * test/MetalinkHelperTest.cc
  608. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  609. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  610. * src/MetalinkMetaurl.h
  611. * src/MetalinkParserController.cc
  612. * src/MetalinkParserController.h
  613. * src/MetalinkParserStateMachine.cc
  614. * src/MetalinkParserStateMachine.h
  615. * src/MetalinkParserStateV4Impl.cc
  616. * test/MetalinkProcessorTest.cc
  617. * test/metalink4-dirtraversal.xml
  618. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  620. element.
  621. * src/Makefile.am
  622. * src/Metalink2RequestGroup.cc
  623. * src/MetalinkEntry.cc
  624. * src/MetalinkEntry.h
  625. * src/MetalinkMetaurl.cc
  626. * src/MetalinkMetaurl.h
  627. * src/MetalinkParserController.cc
  628. * src/MetalinkParserController.h
  629. * src/MetalinkParserStateMachine.cc
  630. * src/MetalinkParserStateMachine.h
  631. * src/MetalinkParserStateV4Impl.cc
  632. * src/MetalinkParserStateV4Impl.h
  633. * test/MetalinkProcessorTest.cc
  634. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  635. Added Metalink4 support. Currently, name attribute of
  636. metalink::metaurl is ignored and multi-file torrent cannot be used
  637. with Metalink4.
  638. * doc/aria2c.1.txt
  639. * src/DownloadHandlerConstants.cc
  640. * src/ExpatMetalinkProcessor.cc
  641. * src/Makefile.am
  642. * src/Metalink2RequestGroup.cc
  643. * src/MetalinkEntry.cc
  644. * src/MetalinkEntry.h
  645. * src/MetalinkParserController.cc
  646. * src/MetalinkParserController.h
  647. * src/MetalinkParserState.h
  648. * src/MetalinkParserStateImpl.cc
  649. * src/MetalinkParserStateImpl.h
  650. * src/MetalinkParserStateMachine.cc
  651. * src/MetalinkParserStateMachine.h
  652. * src/MetalinkParserStateV3Impl.cc
  653. * src/MetalinkParserStateV3Impl.h
  654. * src/MetalinkParserStateV4Impl.cc
  655. * src/MetalinkParserStateV4Impl.h
  656. * src/MetalinkResource.cc
  657. * src/MetalinkResource.h
  658. * src/Metalinker.cc
  659. * src/RequestGroup.cc
  660. * src/RequestGroup.h
  661. * src/XML2SAXMetalinkProcessor.cc
  662. * src/messageDigest.cc
  663. * src/util.cc
  664. * src/util.h
  665. * test/Makefile.am
  666. * test/MetalinkEntryTest.cc
  667. * test/MetalinkParserControllerTest.cc
  668. * test/MetalinkProcessorTest.cc
  669. * test/MetalinkerTest.cc
  670. * test/UtilTest.cc
  671. * test/metalink4-attrs.xml
  672. * test/metalink4-dirtraversal.xml
  673. * test/metalink4.xml
  674. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Added aiFlags argument to getInterfaceAddress(). Use
  676. AI_NUMERICHOST to find interface specified using
  677. --bt-lpd-interface option to avoid time-consuming address lookup.
  678. * src/BtSetup.cc
  679. * src/SocketCore.cc
  680. * src/SocketCore.h
  681. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  683. is bad in LpdMessageReceiver.
  684. * src/LpdMessage.h
  685. * src/LpdMessageReceiver.cc
  686. * src/LpdMessageReceiver.h
  687. * src/LpdReceiveMessageCommand.cc
  688. * test/LpdMessageReceiverTest.cc
  689. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Added --bt-lpd-interface option to specify the interface to use
  691. for Local Peer Discovery. LpdMessageDispatcher object now has its
  692. own socket. LpdMessageReceiver's socket is binded to multicast
  693. address to only receive multicast packets.
  694. * src/BtSetup.cc
  695. * src/LpdMessageDispatcher.cc
  696. * src/LpdMessageDispatcher.h
  697. * src/LpdMessageReceiver.cc
  698. * src/LpdMessageReceiver.h
  699. * src/LpdReceiveMessageCommand.cc
  700. * src/LpdReceiveMessageCommand.h
  701. * src/OptionHandlerFactory.cc
  702. * src/SocketCore.cc
  703. * src/SocketCore.h
  704. * src/prefs.cc
  705. * src/prefs.h
  706. * src/usage_text.h
  707. * test/LpdMessageDispatcherTest.cc
  708. * test/LpdMessageReceiverTest.cc
  709. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Put the portion of code to get interface addresses in
  711. SocketCore::bindAddress() into newly added getInterfaceAddress().
  712. * src/SocketCore.cc
  713. * src/SocketCore.h
  714. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  715. Rewritten util::parseInt() and parseUInt()
  716. * src/util.cc
  717. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  718. Fixed compile error with mingw32 cross compiler. Defined
  719. a2_sockopt_t as void* for the target systems other than mingw32.
  720. * src/SocketCore.cc
  721. * src/a2netcompat.h
  722. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Removed 'always true' condition
  724. * src/util.cc
  725. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Documented --bt-enable-lpd option in man page.
  727. * doc/aria2c.1.txt
  728. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Added Local Peer Discovery. It is disabled by default. Use
  730. --bt-enable-lpd to enable the function.
  731. * src/BtConstants.h
  732. * src/BtSetup.cc
  733. * src/LpdDispatchMessageCommand.cc
  734. * src/LpdDispatchMessageCommand.h
  735. * src/LpdMessage.h
  736. * src/LpdMessageDispatcher.cc
  737. * src/LpdMessageDispatcher.h
  738. * src/LpdMessageReceiver.cc
  739. * src/LpdMessageReceiver.h
  740. * src/LpdReceiveMessageCommand.cc
  741. * src/LpdReceiveMessageCommand.h
  742. * src/Makefile.am
  743. * src/OptionHandlerFactory.cc
  744. * src/Peer.cc
  745. * src/Peer.h
  746. * src/PeerInteractionCommand.cc
  747. * src/SocketCore.cc
  748. * src/SocketCore.h
  749. * src/prefs.cc
  750. * src/prefs.h
  751. * src/usage_text.h
  752. * src/util.cc
  753. * src/util.h
  754. * test/LpdMessageDispatcherTest.cc
  755. * test/LpdMessageReceiverTest.cc
  756. * test/Makefile.am
  757. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. User-defined custom request headers specified by --header option
  759. now override builtin headers if they have same name.
  760. * src/HttpRequest.cc
  761. * src/HttpRequest.h
  762. * test/HttpRequestTest.cc
  763. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Rewirtten util::isNumber()
  765. * src/util.cc
  766. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  768. because without it localized error messages are not printed
  769. correctly.
  770. * src/Platform.cc
  771. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Added unit tests for util::getContentDispositionFilename() from
  773. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  774. tests are passed.
  775. * src/util.cc
  776. * test/UtilTest.cc
  777. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  779. util.cc
  780. * src/Platform.cc
  781. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Support RFC2231 "Parameter Value Character Set and Language
  783. Information" in Content-Disposition header.
  784. * src/HttpResponse.cc
  785. * src/util.cc
  786. * src/util.h
  787. * test/UtilTest.cc
  788. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Print CXXFLAGS
  790. * configure.ac
  791. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Small optimization for A2_WOULDBLOCK(e)
  793. * src/SocketCore.cc
  794. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  795. Removed test file
  796. * test/CookieStorageTest.cc
  797. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Check both EAGAIN and EWOULDBLOCK
  799. * src/SocketCore.cc
  800. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Removed ret == 0 checking for SSL_read(), SSL_write() and
  802. SSL_peek() because the checks are done in the caller. In
  803. SocketBuffer::send(), throw exception if nothing could be written
  804. and socket error was not EWOULDBLOCK
  805. * src/SocketBuffer.cc
  806. * src/SocketCore.cc
  807. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Fixed error code handling so that it can handle Winsock2 error
  809. code.
  810. * src/SocketCore.cc
  811. * src/SocketCore.h
  812. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Bump up version number to 1.9.0a
  814. * configure.ac
  815. * doc/aria2c.1.txt
  816. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Fixed the bug that aria2 doesn't handle return value if error
  818. occurred before download begins.
  819. * src/MultiUrlRequestInfo.cc
  820. * src/main.cc
  821. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Removed SegmentManFactory class.
  823. * src/AbstractSegmentManFactory.h
  824. * src/DefaultSegmentManFactory.cc
  825. * src/DefaultSegmentManFactory.h
  826. * src/Makefile.am
  827. * src/RequestGroup.cc
  828. * src/RequestGroup.h
  829. * src/SegmentManFactory.h
  830. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Destroyed digest context after getting calculated hash.
  832. * src/Piece.cc
  833. * src/Piece.h
  834. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Removed BitfieldManFactory class.
  836. * src/BitfieldManFactory.cc
  837. * src/BitfieldManFactory.h
  838. * src/DefaultPieceStorage.cc
  839. * src/Makefile.am
  840. * src/PeerSessionResource.cc
  841. * src/Piece.cc
  842. * src/main.cc
  843. * test/DefaultPieceStorageTest.cc
  844. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Removed unused methods from BitfieldMan class. Moved
  846. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  847. class.
  848. * src/BitfieldMan.cc
  849. * src/BitfieldMan.h
  850. * src/BitfieldManFactory.cc
  851. * src/BitfieldManFactory.h
  852. * src/bitfield.h
  853. * src/main.cc
  854. * test/BitfieldManTest.cc
  855. * test/DefaultPieceStorageTest.cc
  856. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. Moved getFirstNMissingIndex to bitfield.h and made it return the
  858. number of appended indexes.
  859. * src/BitfieldMan.cc
  860. * src/BitfieldMan.h
  861. * src/Piece.cc
  862. * src/Piece.h
  863. * src/bitfield.h
  864. * test/BitfieldManTest.cc
  865. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Added more tests.
  867. * test/BitfieldManTest.cc
  868. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  870. unused block indexes at once instead of calling
  871. getFirstMissingUnusedIndex() multiple times. Made use of it in
  872. Piece class and DefaultBtRequestFactory class via Piece class.
  873. * src/BitfieldMan.cc
  874. * src/BitfieldMan.h
  875. * src/DefaultBtRequestFactory.cc
  876. * src/Piece.cc
  877. * src/Piece.h
  878. * test/BitfieldManTest.cc
  879. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Use std::make_pair(...)
  881. * src/DHTMessageTracker.cc
  882. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Use std::make_pair(...)
  884. * src/bittorrent_helper.cc
  885. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. urlencode(removeFragment(...)) in parseUrl(...)
  887. * src/Request.cc
  888. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  890. * src/AbstractCommand.cc
  891. * src/AdaptiveURISelector.cc
  892. * src/BtPieceMessage.cc
  893. * src/BtPortMessage.cc
  894. * src/CreateRequestCommand.cc
  895. * src/DHTAbstractNodeLookupTask.cc
  896. * src/DHTBucket.cc
  897. * src/DHTGetPeersCommand.cc
  898. * src/DHTMessageDispatcherImpl.cc
  899. * src/DHTMessageFactoryImpl.cc
  900. * src/DHTMessageTracker.cc
  901. * src/DHTPeerAnnounceStorage.cc
  902. * src/DHTRoutingTable.cc
  903. * src/DHTSetup.cc
  904. * src/DefaultBtAnnounce.cc
  905. * src/DefaultBtInteractive.cc
  906. * src/DefaultBtMessageDispatcher.cc
  907. * src/DefaultBtMessageReceiver.cc
  908. * src/DefaultBtProgressInfoFile.cc
  909. * src/DefaultBtRequestFactory.cc
  910. * src/DefaultPeerStorage.cc
  911. * src/DefaultPieceStorage.cc
  912. * src/DownloadCommand.cc
  913. * src/DownloadEngine.cc
  914. * src/EpollEventPoll.cc
  915. * src/FileAllocationCommand.cc
  916. * src/FileEntry.cc
  917. * src/FtpNegotiationCommand.cc
  918. * src/HandshakeExtensionMessage.cc
  919. * src/HttpListenCommand.cc
  920. * src/HttpServer.cc
  921. * src/HttpSkipResponseCommand.cc
  922. * src/IteratableChunkChecksumValidator.cc
  923. * src/Logger.h
  924. * src/MSEHandshake.cc
  925. * src/MetalinkPostDownloadHandler.cc
  926. * src/MultiDiskAdaptor.cc
  927. * src/PeerAbstractCommand.cc
  928. * src/PeerConnection.cc
  929. * src/PeerListenCommand.cc
  930. * src/PeerReceiveHandshakeCommand.cc
  931. * src/RequestGroup.cc
  932. * src/RequestGroupMan.cc
  933. * src/SegmentMan.cc
  934. * src/SelectEventPoll.cc
  935. * src/ServerStat.cc
  936. * src/SimpleBtMessage.cc
  937. * src/SocketCore.cc
  938. * src/TrackerWatcherCommand.cc
  939. * src/UTMetadataDataExtensionMessage.cc
  940. * src/UTMetadataRequestFactory.cc
  941. * src/UTMetadataRequestTracker.cc
  942. * src/XmlRpcMethod.cc
  943. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Changed log level from debug to info
  945. * src/BtDependency.cc
  946. * src/BtPostDownloadHandler.cc
  947. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Removed unused PeerSessionResource::_latency.
  949. * src/BtConstants.h
  950. * src/BtPieceMessage.cc
  951. * src/Peer.cc
  952. * src/Peer.h
  953. * src/PeerSessionResource.cc
  954. * src/PeerSessionResource.h
  955. * test/PeerSessionResourceTest.cc
  956. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  957. Fixed the bug that --file-allocation=falloc doesn't work with
  958. single file download.
  959. * src/AbstractSingleDiskAdaptor.cc
  960. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  961. Release 1.8.2
  962. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. Added Portuguese translation. Updated Ukrainian and Spanish
  964. translation. Thanks to all translators.
  965. * po/LINGUAS
  966. * po/es.po
  967. * po/pt.po
  968. * po/uk.po
  969. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  970. Remove fragment from redirected URI.
  971. * src/Request.cc
  972. * test/RequestTest.cc
  973. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  974. Updated po templates.
  975. * po/aria2.pot
  976. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Drop legacy ifdef for ares support and code cleanup.
  978. * src/AsyncNameResolver.cc
  979. * src/AsyncNameResolver.h
  980. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Call ares_library_init and ares_library_cleanup if they are
  982. available. Some code cleanups.
  983. * src/Platform.cc
  984. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Call ares_process_fd() each time after epoll to handle timeout.
  986. * src/EpollEventPoll.cc
  987. * src/EpollEventPoll.h
  988. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  989. Suppressed type-cast compiler warning
  990. * src/CookieStorage.cc
  991. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  992. Fixed compile error on Mac OS X.
  993. * src/CookieStorage.h
  994. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Removed cookietest.txt from Makefile.am
  996. * test/Makefile.am
  997. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  998. Updated version number in man page.
  999. * doc/aria2c.1.txt
  1000. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. Rewritten help message for --allow-overwrite option.
  1002. * doc/aria2c.1.txt
  1003. * src/usage_text.h
  1004. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. Added bittorrent key to the response of tellStatus XML-RPC method.
  1006. The associated value of the key is a struct and contains data
  1007. retrieved from .torrent file, such as name, announce-list,
  1008. comment, etc.
  1009. * doc/aria2c.1.txt
  1010. * src/XmlRpcMethodImpl.cc
  1011. * src/XmlRpcMethodImpl.h
  1012. * test/XmlRpcMethodTest.cc
  1013. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Removed parse(std::istream&) and parse(const std::string&) from
  1015. CookieParser.
  1016. * src/CookieParser.cc
  1017. * src/CookieParser.h
  1018. * test/CookieParserTest.cc
  1019. * test/cookietest.txt: Removed
  1020. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1022. a.b.c if no other cookies are stored. Fixed the bug that
  1023. Cookie::markOriginServerOnly() is not called when cookies are
  1024. loaded from file/sqlite3 database.
  1025. * src/Cookie.h
  1026. * src/CookieStorage.cc
  1027. * src/NsCookieParser.cc
  1028. * src/Sqlite3MozCookieParser.cc
  1029. * test/CookieStorageTest.cc
  1030. * test/NsCookieParserTest.cc
  1031. * test/Sqlite3MozCookieParserTest.cc
  1032. * test/cookies.sqlite
  1033. * test/nscookietest.txt
  1034. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1036. both _pieceStorage and _segmentMan are initialized or they are
  1037. not.
  1038. * src/RequestGroup.cc
  1039. * src/RequestGroup.h
  1040. * test/BtDependencyTest.cc
  1041. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1042. Bump up version number to 1.8.2
  1043. * configure.ac
  1044. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Replaced "." with A2STR::DOT_C
  1046. * src/AbstractCommand.cc
  1047. * src/Cookie.cc
  1048. * src/DownloadContext.cc
  1049. * src/FtpConnection.cc
  1050. * src/RequestGroup.cc
  1051. * src/util.cc
  1052. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Replaced isNumberAndDotsNotation() with isNumericHost().
  1054. isNumericHost() can handle IPv6 address.
  1055. * src/Cookie.cc
  1056. * src/CookieStorage.cc
  1057. * src/util.cc
  1058. * src/util.h
  1059. * test/CookieTest.cc
  1060. * test/UtilTest.cc
  1061. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Included A2STR.h
  1063. * src/CookieStorage.cc
  1064. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Rewritten Cookie storage.
  1066. * src/Cookie.cc
  1067. * src/Cookie.h
  1068. * src/CookieParser.cc
  1069. * src/CookieStorage.cc
  1070. * src/CookieStorage.h
  1071. * src/a2functional.h
  1072. * test/CookieParserTest.cc
  1073. * test/CookieStorageTest.cc
  1074. * test/CookieTest.cc
  1075. * test/HttpResponseTest.cc
  1076. * test/TestUtil.h
  1077. * test/a2functionalTest.cc
  1078. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Handle redirected URI which is not properly percent encoded.
  1080. * src/Request.cc
  1081. * test/RequestTest.cc
  1082. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1083. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1084. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1085. in a row without single '200 OK' response.
  1086. * src/RequestGroup.cc.
  1087. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1088. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1089. readout by 80 characters in mingw32 build. Catch exception in
  1090. DHTMessageReceiver::receiveMessage().
  1091. * src/AbstractDiskWriter.cc
  1092. * src/ConsoleStatCalc.cc
  1093. * src/DHTMessageReceiver.cc
  1094. * src/File.cc
  1095. * src/RequestGroupMan.cc
  1096. * src/a2io.h
  1097. * test/FileTest.cc
  1098. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Fixed compile error with intel compiler
  1100. * src/XmlRpcMethodImpl.cc
  1101. * src/XmlRpcMethodImpl.h
  1102. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Release 1.8.1
  1104. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Updated Swedish, Russian and Italian translations. Thanks to all
  1106. translators.
  1107. * po/it.po
  1108. * po/ru.po
  1109. * po/sv.po
  1110. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Fixed broken OptionParser::findByName().
  1112. * src/OptionParser.cc
  1113. * test/OptionParserTest.cc
  1114. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Fixed test error without BitTorrent support.
  1116. * test/XmlRpcMethodTest.cc
  1117. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. Fixed compile error without GNUTLS/OpenSSL.
  1119. * src/util.cc
  1120. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1121. Changed compression level to Z_DEFAULT_COMPRESSION.
  1122. * src/GZipEncoder.cc
  1123. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Added missing command line options: --http-no-cache,
  1125. --bt-save-metadata and --bt-metadata-only.
  1126. * doc/xmlrpc/aria2rpc
  1127. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1129. client accepts gzip content encoding.
  1130. * src/A2STR.cc
  1131. * src/A2STR.h
  1132. * src/GZipEncoder.cc
  1133. * src/GZipEncoder.h
  1134. * src/HttpHeader.cc
  1135. * src/HttpHeader.h
  1136. * src/HttpServer.cc
  1137. * src/HttpServer.h
  1138. * src/HttpServerBodyCommand.cc
  1139. * src/HttpServerCommand.cc
  1140. * src/Makefile.am
  1141. * src/XmlRpcResponse.cc
  1142. * src/XmlRpcResponse.h
  1143. * test/GZipEncoderTest.cc
  1144. * test/Makefile.am
  1145. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Added XML-RPC client sample code in Python.
  1147. * doc/aria2c.1.txt
  1148. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1149. Updated po templates.
  1150. * po/aria2.pot
  1151. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Bump up version number to 1.8.1
  1153. * configure.ac
  1154. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1155. Added version number to man page. Updated copyright year in man
  1156. page.
  1157. * doc/aria2c.1.txt
  1158. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Rewritten toTagString
  1160. * src/NameMatchOptionHandler.cc
  1161. * test/OptionHandlerTest.cc
  1162. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1163. Added dir and files key to the response struct of aria2.tellStatus
  1164. XML-RPC method. The value associated with files key is the list
  1165. of files. Its element is the same struct used in aria2.getFiles
  1166. XML-RPC method. Added uris key to the response struct of
  1167. aria2.getFiles XML-RPC method. The value associated with uris key
  1168. is the list of URIs. Its element is the same struct used in
  1169. aria2.getUris XML-RPC method.
  1170. * doc/aria2c.1.txt
  1171. * src/XmlRpcMethodImpl.cc
  1172. * test/XmlRpcMethodTest.cc
  1173. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1174. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1175. struct containing Session ID, which is generated each time when
  1176. aria2 is invoked.
  1177. * doc/aria2c.1.txt
  1178. * doc/xmlrpc/aria2rpc
  1179. * src/DownloadEngine.cc
  1180. * src/DownloadEngine.h
  1181. * src/XmlRpcMethodFactory.cc
  1182. * src/XmlRpcMethodImpl.cc
  1183. * src/XmlRpcMethodImpl.h
  1184. * test/XmlRpcMethodTest.cc
  1185. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Moved generateRandomKey() from bittorrent_helper to util.
  1187. * src/DHTBucket.cc
  1188. * src/DHTNode.cc
  1189. * src/bittorrent_helper.cc
  1190. * src/bittorrent_helper.h
  1191. * src/util.cc
  1192. * src/util.h
  1193. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Updated doc about GID.
  1195. * doc/aria2c.1.txt
  1196. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1198. accepts a negative integer. 'offset' == -1 points last download
  1199. in the waiting queue and 'offset' == -2 points the download before
  1200. the last download, and so on. The downloads in the response are in
  1201. reversed order.
  1202. * doc/aria2c.1.txt
  1203. * src/XmlRpcMethodImpl.cc
  1204. * src/XmlRpcMethodImpl.h
  1205. * test/XmlRpcMethodTest.cc
  1206. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Added --human-readable option. This option, when true is given,
  1208. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1209. 3.4Mi) in the console readout. The default value is true and it
  1210. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1211. appears when false is given. In this case, sizes and speed are
  1212. printed without in bytes. No Ki, Mi units conversion is used.
  1213. This may be useful for a program to parse the output of aria2.
  1214. * doc/aria2c.1.txt
  1215. * src/ConsoleStatCalc.cc
  1216. * src/ConsoleStatCalc.h
  1217. * src/OptionHandlerFactory.cc
  1218. * src/main.cc
  1219. * src/prefs.cc
  1220. * src/prefs.h
  1221. * src/usage_text.h
  1222. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1223. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1224. option accepts empty string "". When "" is given, it erases
  1225. previously defined proxy.
  1226. * doc/aria2c.1.txt
  1227. * src/OptionHandlerImpl.h
  1228. * src/usage_text.h
  1229. * test/OptionHandlerTest.cc
  1230. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Code cleanup for proxy URI handling.
  1232. * src/AbstractCommand.cc
  1233. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Added --bt-metadata-only option. If true is given to this option,
  1235. aria2 downloads metadata only. The file(s) described in metadata
  1236. will not be downloaded. This option has effect only when
  1237. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1238. * doc/aria2c.1.txt
  1239. * src/OptionHandlerFactory.cc
  1240. * src/UTMetadataPostDownloadHandler.cc
  1241. * src/download_helper.cc
  1242. * src/prefs.cc
  1243. * src/prefs.h
  1244. * src/usage_text.h
  1245. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1246. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1247. deleted when exception is thrown. Make sure that when passing
  1248. std::deque<Command*> to function to store Commands, handle
  1249. exception and delete these Commands.
  1250. * src/AbstractCommand.cc
  1251. * src/CheckIntegrityCommand.cc
  1252. * src/FileAllocationCommand.cc
  1253. * src/RequestGroup.cc
  1254. * src/TrackerWatcherCommand.cc
  1255. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1257. * src/A2STR.cc
  1258. * src/A2STR.h
  1259. * src/FtpNegotiationCommand.cc
  1260. * src/HttpResponseCommand.cc
  1261. * src/util.cc
  1262. * src/util.h
  1263. * test/UtilTest.cc
  1264. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Treat --dir="" as --dir="."
  1266. * src/FtpNegotiationCommand.cc
  1267. * src/HttpResponseCommand.cc
  1268. * src/Metalink2RequestGroup.cc
  1269. * src/UTMetadataPostDownloadHandler.cc
  1270. * src/bittorrent_helper.cc
  1271. * src/download_helper.cc
  1272. * src/util.cc
  1273. * src/util.h
  1274. * test/UtilTest.cc
  1275. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Code clean up.
  1277. * src/main.cc
  1278. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Reset GID to 1 when they reach maximum value. Rewritten
  1280. CUIDCounter::newID()
  1281. * src/CUIDCounter.h
  1282. * src/RequestGroup.cc
  1283. * src/RequestGroup.h
  1284. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Documented --http-no-cache option in man page.
  1286. * doc/aria2c.1.txt
  1287. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1288. Added --http-no-cache option. When true is given, aria2 sends
  1289. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1290. cached content. If false is given , these headers are not sent
  1291. and you can add Cache-Control header with a directive you like
  1292. using --header option.
  1293. * src/HttpRequest.cc
  1294. * src/HttpRequest.h
  1295. * src/HttpRequestCommand.cc
  1296. * src/OptionHandlerFactory.cc
  1297. * src/download_helper.cc
  1298. * src/prefs.cc
  1299. * src/prefs.h
  1300. * src/usage_text.h
  1301. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1302. Removed Logger from OptionParser. When OptionParser is used to
  1303. parse options at bootstrap, LogFactory is not configured yet
  1304. properly. When LogFactory is used in OptionParser, it initializes
  1305. itself to return a logger which has no ability to write log to the
  1306. disk.
  1307. * src/OptionParser.cc
  1308. * src/OptionParser.h
  1309. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. Added following sentance to the help message of --out option:
  1311. --out option is ignored when -Z is used.
  1312. * doc/aria2c.1.txt
  1313. * src/usage_text.h
  1314. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1315. Added --bt-save-metadata option to -i list options.
  1316. * doc/aria2c.1.txt
  1317. * src/download_helper.cc
  1318. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1320. additional libraries.
  1321. * src/MultiUrlRequestInfo.cc
  1322. * src/NameResolver.cc
  1323. * src/SelectEventPoll.cc
  1324. * src/SelectEventPoll.h
  1325. * src/SocketCore.cc
  1326. * src/SocketCore.h
  1327. * src/a2netcompat.h
  1328. * src/daemon.cc
  1329. * src/main.cc
  1330. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Fixed typo.
  1332. * src/DHTMessageReceiver.cc
  1333. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Fixed the bug that causes segmentation fault if unknown option is
  1335. put in aria2.conf file. BUG#2928303
  1336. * src/OptionParser.cc
  1337. * src/OptionParser.h
  1338. * src/option_processing.cc
  1339. * test/OptionParserTest.cc
  1340. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Ignore port message with port=0.
  1342. * src/BtPortMessage.cc
  1343. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Run autoupdate
  1345. * configure.ac
  1346. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Updated autoconf/automake auxiliary files.
  1348. * INSTALL
  1349. * config.guess
  1350. * config.sub
  1351. * depcomp
  1352. * install-sh
  1353. * m4/intldir.m4
  1354. * missing
  1355. * mkinstalldirs
  1356. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Removed unused function.
  1358. * src/SharedHandle.h
  1359. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Find pooled socket using all cached addresses.
  1361. * src/DNSCache.h
  1362. * src/DownloadEngine.cc
  1363. * src/DownloadEngine.h
  1364. * src/InitiateConnectionCommand.cc
  1365. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Updated copyright year.
  1367. * src/version_usage.cc
  1368. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Pool connection if _contentEncodingDecoder is used and server
  1370. supports persistent connection.
  1371. * src/HttpDownloadCommand.cc
  1372. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Updated doc.
  1374. * src/DownloadCommand.cc
  1375. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Untabify. Fixed one line in copyright which is longer than 80
  1377. columns.
  1378. * src
  1379. * test
  1380. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Release 1.8.0
  1382. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1383. Updated po templates.
  1384. * po/aria2.pot
  1385. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1386. Documented --bt-save-metadata option in man page.
  1387. * doc/aria2c.1.txt
  1388. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Fixed usage of --bt-save-metadata option.
  1390. * src/usage_text.h
  1391. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1392. Updated po templates.
  1393. * po/aria2.pot
  1394. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1396. causes name resolution error when none of network interface has
  1397. IPv4 address.
  1398. * src/main.cc
  1399. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1400. Bump up version number to 1.8.0.
  1401. * configure.ac
  1402. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1403. Use info hash as a filename when saving BitTorrent metadata.
  1404. * src/UTMetadataPostDownloadHandler.cc
  1405. * test/UTMetadataPostDownloadHandlerTest.cc
  1406. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Documented system.multicall XML-RPC method in man page.
  1408. * doc/aria2c.1.txt
  1409. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Added signal handler for SIGHUP to save .aria2 file when terminal
  1411. is closed. The handler is the same one for SIGINT and SIGTERM.
  1412. * src/MultiUrlRequestInfo.cc
  1413. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1414. Defined method name in XmlRpcMethod subclasses.
  1415. * src/XmlRpcMethodFactory.cc
  1416. * src/XmlRpcMethodImpl.cc
  1417. * src/XmlRpcMethodImpl.h
  1418. * test/XmlRpcMethodTest.cc
  1419. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Added system.multicall XML-RPC method.
  1421. * src/XmlRpcMethod.cc
  1422. * src/XmlRpcMethod.h
  1423. * src/XmlRpcMethodFactory.cc
  1424. * src/XmlRpcMethodImpl.cc
  1425. * src/XmlRpcMethodImpl.h
  1426. * test/XmlRpcMethodTest.cc
  1427. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Check structure depth when decoding.
  1429. * src/bencode.cc
  1430. * src/bencode.h
  1431. * test/BencodeTest.cc
  1432. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Documented tellStopped XML-RPC method in man page.
  1434. * doc/aria2c.1.txt
  1435. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Added tellStopped XML-RPC method to aria2rpc.
  1437. * doc/xmlrpc/aria2rpc
  1438. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Added tellStopped XML-RPC method. This method returns stopped
  1440. download in the specified range. It takes same parameters with
  1441. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1442. * src/XmlRpcMethodFactory.cc
  1443. * src/XmlRpcMethodImpl.cc
  1444. * src/XmlRpcMethodImpl.h
  1445. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1447. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1448. when conducting unit tests because they fail if networking
  1449. interface is not configured with IPv4 address.
  1450. * src/NameResolver.cc
  1451. * src/SocketCore.cc
  1452. * src/SocketCore.h
  1453. * src/a2netcompat.h
  1454. * test/AllTest.cc
  1455. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. Fixed unit test error
  1457. * test/UTMetadataPostDownloadHandlerTest.cc
  1458. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Defined static string constants for efficiency.
  1460. * src/XmlRpcMethodImpl.cc
  1461. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Added --bt-save-metadata option. When true is given, it saves
  1463. metadata as .torrent file. This option has effect only when
  1464. BitTorrent Magnet URI is used. The filename is name in metadata
  1465. with suffix .torrent. The directory to be saved is the same
  1466. directory where download file is saved. If the same file already
  1467. exists, metdata is not saved.
  1468. * src/OptionHandlerFactory.cc
  1469. * src/UTMetadataPostDownloadHandler.cc
  1470. * src/UTMetadataPostDownloadHandler.h
  1471. * src/message.h
  1472. * src/prefs.cc
  1473. * src/prefs.h
  1474. * src/usage_text.h
  1475. * test/UTMetadataDataExtensionMessageTest.cc
  1476. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Added util::saveAs() function. Use it in Signature::save().
  1478. * src/Signature.cc
  1479. * src/util.cc
  1480. * src/util.h
  1481. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Upcase info hash in Magnet URI.
  1483. * doc/aria2c.1.txt
  1484. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1485. Refactored RequestGroupMan::changeReservedGroupPosition()
  1486. * src/RequestGroupMan.cc
  1487. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Updated the description for aria2.addTorrent XML-RPC method.
  1489. * doc/aria2c.1.txt
  1490. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1491. Added changePosition to aria2rpc.
  1492. * doc/xmlrpc/aria2rpc
  1493. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Documented changePosition XML-RPC method in man page.
  1495. * doc/aria2c.1.txt
  1496. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1498. pos and how. This method changes the position of download denoted
  1499. by gid. If how is POS_SET, it moves the download to a position
  1500. relative to the beginning of the queue. If how is POS_CUR, it
  1501. moves the download to a position relative to the current
  1502. position. If how is POS_END, it moves the download to a position
  1503. relative to the end of the queue. If the destination position is
  1504. less than 0 or beyond the end of the queue, it moves the download
  1505. to the beginning or the end of the queue respectively. Returns
  1506. the destination position.
  1507. * src/RequestGroupMan.cc
  1508. * src/RequestGroupMan.h
  1509. * src/XmlRpcMethodFactory.cc
  1510. * src/XmlRpcMethodImpl.cc
  1511. * src/XmlRpcMethodImpl.h
  1512. * test/RequestGroupManTest.cc
  1513. * test/XmlRpcMethodTest.cc
  1514. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Added getOption and getGlobalOption to aria2rpc.
  1516. * doc/xmlrpc/aria2rpc
  1517. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Documented getOption and getGlobalOption XML-RPC method in man
  1519. page
  1520. * doc/aria2c.1.txt
  1521. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Added getOption and getGlobalOption XML-RPC method. getOption
  1523. takes GID as a parameter and returns its options as struct.
  1524. getGlobalOption takes no parameter and returns global
  1525. options. Because global option is used as a template for the
  1526. option of newly added downloads, it includes options returned by
  1527. getOption.
  1528. * src/Option.h
  1529. * src/XmlRpcMethodFactory.cc
  1530. * src/XmlRpcMethodImpl.cc
  1531. * src/XmlRpcMethodImpl.h
  1532. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Sort _optionHandlers in OptionParser by name in ascending order.
  1534. Use vector instead of deque for efficiency.
  1535. * src/OptionHandler.h
  1536. * src/OptionHandlerFactory.h
  1537. * src/OptionParser.cc
  1538. * src/OptionParser.h
  1539. * src/version_usage.cc
  1540. * test/OptionParserTest.cc
  1541. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Code cleanup
  1543. * src/XmlRpcMethod.cc
  1544. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Documented about followedBy and belongsTo in man page.
  1546. * doc/aria2c.1.txt
  1547. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1548. Added following 2 keys, followedBy and belongsTo, to the response
  1549. of tellStatus.
  1550. followedBy: List of GIDs which are generated by the consequence of
  1551. this download. For example, when aria2 downloaded Metalink file,
  1552. it generates downloads described in it(see *--follow-metalink*
  1553. option). This value is useful to track these auto generated
  1554. downloads. If there is no such downloads, this key will not be
  1555. included in the response.
  1556. belongsTo: GID of a parent download. Some downloads are a part of
  1557. another download. For example, if a file in Metalink has
  1558. BitTorrent resource, the download of .torrent is a part of that
  1559. file. If this download has no parent, this key will not be
  1560. included in the response.
  1561. * src/BtPostDownloadHandler.cc
  1562. * src/DownloadResult.h
  1563. * src/Metalink2RequestGroup.cc
  1564. * src/MetalinkPostDownloadHandler.cc
  1565. * src/RequestGroup.cc
  1566. * src/RequestGroup.h
  1567. * src/UTMetadataPostDownloadHandler.cc
  1568. * src/XmlRpcMethodImpl.cc
  1569. * src/XmlRpcMethodImpl.h
  1570. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Assigned BObject in BDE() to avoid segmentation fault when calling
  1572. methods of BDE::none().
  1573. * src/BDE.cc
  1574. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Show info hash in Magnet URI in upper case letters in -S output.
  1576. * src/bittorrent_helper.cc
  1577. * test/BittorrentHelperTest.cc
  1578. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Removed old useless comment
  1580. * src/MultiUrlRequestInfo.cc
  1581. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1582. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1583. not properly used in configure script and failed to detect gnutls.
  1584. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1585. and the initialization of pkg-config is done in first occurrence
  1586. of PKG_CHECK_MODULES which is not executed because it is inside of
  1587. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1588. * configure.ac
  1589. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1590. Release 1.7.2
  1591. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1593. true even if all downloads haven't finished, especially when
  1594. PostDownloadHandler is involved. Changed the condition so that it
  1595. only returns true if both _requestGroups and _reservedGroups are
  1596. empty.
  1597. * src/RequestGroupMan.cc
  1598. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Log listening port for BitTorrent/DHT in notice level.
  1600. * src/DHTConnectionImpl.cc
  1601. * src/PeerListenCommand.cc
  1602. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Updated po templates.
  1604. * po/aria2.pot
  1605. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Bump up version number to 1.7.2
  1607. * configure.ac
  1608. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Changed default value of --enable-dht from 'false' to 'true'.
  1610. * doc/aria2c.1.txt
  1611. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Enabled DHT by default because of Magnet URI support. To disable
  1613. DHT, use --enable-dht=false
  1614. * src/OptionHandlerFactory.cc
  1615. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Print Magnet URI in -S output.
  1617. * src/AnnounceList.cc
  1618. * src/bittorrent_helper.cc
  1619. * src/bittorrent_helper.h
  1620. * test/BittorrentHelperTest.cc
  1621. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Added --bt-prioritize-piece option to aria2rpc.
  1623. * doc/xmlrpc/aria2rpc
  1624. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Refer Magnet URI in --help. Made some cosmetic changes.
  1626. * src/version_usage.cc
  1627. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Updated -T and -M option.
  1629. * doc/aria2c.1.txt
  1630. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Fixed typo
  1632. * doc/aria2c.1.txt
  1633. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Fixed the bug that line separator is missing in horizontal bar.
  1635. * doc/xmlrpc/aria2mon
  1636. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Updated usage text for --metalink-file option.
  1638. * src/usage_text.h
  1639. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. If '-' is given as an argument to --metalink-file option, aria2
  1641. reads Metalink file from stdin.
  1642. * src/OptionHandlerFactory.cc
  1643. * src/OptionHandlerImpl.h
  1644. * src/a2io.h
  1645. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1646. Fixed the bug that aria2 listens wrong port if --interface option
  1647. is used.
  1648. * src/SocketCore.cc
  1649. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Fixed the bug that query parameter in magnet URI is not decoded.
  1651. * src/magnet.cc
  1652. * test/MagnetTest.cc
  1653. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Specified defaultSize as an argument for easy testing.
  1655. * src/util.cc
  1656. * src/util.h
  1657. * test/UtilTest.cc
  1658. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Release 1.7.1
  1660. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Bump up version number to 1.7.1
  1662. * configure.ac
  1663. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Fixed the bug --bt-prioritize-piece=tail is not working.
  1665. * src/util.cc
  1666. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Release 1.7.0
  1668. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Updated po templates.
  1670. * po/aria2.pot
  1671. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. Updated help message for --bt-prioritize-piece. Some cosmetic
  1673. changes.
  1674. * doc/aria2c.1.txt
  1675. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1676. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1677. * src/usage_text.h
  1678. * src/util.cc
  1679. * test/UtilTest.cc
  1680. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Updated Russian, Ukrainian, German and French translations.
  1682. Thanks to all translators involved.
  1683. * po/de.po
  1684. * po/fr.po
  1685. * po/ru.po
  1686. * po/uk.po
  1687. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Mentioned about pkg-config
  1689. * README
  1690. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1691. Fixed typo. Referred --index-out option in BitTorrent notes.
  1692. * README
  1693. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1695. bind, try all addresses until success
  1696. * src/SocketCore.cc
  1697. * src/SocketCore.h
  1698. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Updated po templates.
  1700. * po/aria2.pot
  1701. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Bump up version number to 1.7.0
  1703. * configure.ac
  1704. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1706. * src/DefaultPieceStorage.cc
  1707. * src/DefaultPieceStorage.h
  1708. * src/PieceStorage.h
  1709. * src/UnknownLengthPieceStorage.cc
  1710. * src/UnknownLengthPieceStorage.h
  1711. * test/MockPieceStorage.h
  1712. * test/ProtocolDetectorTest.cc
  1713. * test/XmlRpcMethodTest.cc
  1714. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1715. Documented in man page that if getifaddrs() is missing,
  1716. --interface option doesn't accept interface name.
  1717. * doc/aria2c.1.txt
  1718. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1719. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1720. * src/DefaultBtAnnounce.cc
  1721. * src/DefaultBtAnnounce.h
  1722. * test/DefaultBtAnnounceTest.cc
  1723. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Fixed the bug that connection is always dropped if handshake
  1725. message in extension protocol don't have metadata_size.
  1726. src/HandshakeExtensionMessage.cc
  1727. * src/HandshakeExtensionMessage.cc
  1728. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1729. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1730. text saying DHT is recommended when Magnet URI is provided.
  1731. * doc/aria2c.1.txt
  1732. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1734. URI is supplied. Notify user that they should consider enabling
  1735. DHT if they use Magnet URI.
  1736. * src/RequestGroup.cc
  1737. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Added --disable-ipv6 option to disable IPv6.
  1739. * doc/aria2c.1.txt
  1740. * src/InitiateConnectionCommand.cc
  1741. * src/NameResolver.cc
  1742. * src/NameResolver.h
  1743. * src/OptionHandlerFactory.cc
  1744. * src/main.cc
  1745. * src/prefs.cc
  1746. * src/prefs.h
  1747. * src/usage_text.h
  1748. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1749. Updated usage text for --bt-prioritize-piece option.
  1750. * doc/aria2c.1.txt
  1751. * src/usage_text.h
  1752. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1754. given and PACKAGE is missing in the system or FEATURE cannot be
  1755. enabled, print error message and stop the script.
  1756. * configure.ac
  1757. * m4/aria2_arg.m4
  1758. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Halt metadata download immediately when metadata download is done.
  1760. Don't wait unresponsive tracker.
  1761. * src/ByteArrayDiskWriter.h
  1762. * src/DefaultBtInteractive.cc
  1763. * src/DefaultExtensionMessageFactory.cc
  1764. * src/DefaultExtensionMessageFactory.h
  1765. * src/PeerInteractionCommand.cc
  1766. * src/UTMetadataDataExtensionMessage.cc
  1767. * src/UTMetadataDataExtensionMessage.h
  1768. * src/UTMetadataRequestExtensionMessage.cc
  1769. * test/UTMetadataDataExtensionMessageTest.cc
  1770. * test/UTMetadataRequestExtensionMessageTest.cc
  1771. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Documented --interface option in man page.
  1773. * doc/aria2c.1.txt
  1774. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1775. Try resolved address in the order received from the resolver.
  1776. * src/DNSCache.h
  1777. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Added debug logs.
  1779. * src/SocketCore.cc
  1780. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Fixed type of tail to uint64_t
  1782. * src/util.cc
  1783. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1784. Added --interface option. This feature binds sockets to given
  1785. interface. You can specify interface name, IP address and
  1786. hostname.
  1787. * configure.ac
  1788. * src/OptionHandlerFactory.cc
  1789. * src/SocketCore.cc
  1790. * src/SocketCore.h
  1791. * src/main.cc
  1792. * src/message.h
  1793. * src/prefs.cc
  1794. * src/prefs.h
  1795. * src/usage_text.h
  1796. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Updated man page for bt-prioritize-piece option in -i list.
  1798. * doc/aria2c.1.txt
  1799. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Added bt-prioritize-piece option to -i list.
  1801. * src/download_helper.cc
  1802. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Removed --http-auth-scheme option from man page.
  1804. * doc/aria2c.1.txt
  1805. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Removed --http-auth-scheme option since it doesn't do nothing.
  1807. * src/OptionHandlerFactory.cc
  1808. * src/prefs.cc
  1809. * src/prefs.h
  1810. * src/usage_text.h
  1811. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. Adjusted the number of peer info which get_peers reply message can
  1813. carry.
  1814. * src/DHTGetPeersReplyMessage.cc
  1815. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1816. Added extension_message_test_helper.h to aria2c_SOURCES.
  1817. * test/Makefile.am
  1818. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Documented --bt-prioritize-piece option in man page.
  1820. * doc/aria2c.1.txt
  1821. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Added option --bt-prioritize-piece. This option instruct aria2 to
  1823. try to download first and last pieces of each file first. The
  1824. argument can contain 2 keywords:head and tail. To include both
  1825. keywords, they must be separated by comma. These keywords can take
  1826. one parameter, SIZE. For example , if head=SIZE is specified,
  1827. pieces in the range of first SIZE bytes of each file get higher
  1828. priority. tail=SIZE means the range of last SIZE bytes of each
  1829. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1830. * src/DefaultPieceStorage.h
  1831. * src/Makefile.am
  1832. * src/OptionHandlerFactory.cc
  1833. * src/OptionHandlerImpl.h
  1834. * src/PriorityPieceSelector.cc
  1835. * src/PriorityPieceSelector.h
  1836. * src/RequestGroup.cc
  1837. * src/prefs.cc
  1838. * src/prefs.h
  1839. * src/usage_text.h
  1840. * src/util.cc
  1841. * src/util.h
  1842. * test/Makefile.am
  1843. * test/MockPieceSelector.h
  1844. * test/PriorityPieceSelectorTest.cc
  1845. * test/UtilTest.cc
  1846. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1847. Fixed typo
  1848. * src/HttpRequest.h
  1849. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1850. In Magnet URI with tr parameter, put each announce URI in separate
  1851. tier.
  1852. * src/bittorrent_helper.cc
  1853. * test/BittorrentHelperTest.cc
  1854. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1855. Renamed ExtensionMessage::getBencodedData() as
  1856. ExtensionMessage::getPayload()
  1857. * src/BtExtendedMessage.cc
  1858. * src/ExtensionMessage.h
  1859. * src/HandshakeExtensionMessage.cc
  1860. * src/HandshakeExtensionMessage.h
  1861. * src/UTMetadataDataExtensionMessage.cc
  1862. * src/UTMetadataDataExtensionMessage.h
  1863. * src/UTMetadataRejectExtensionMessage.cc
  1864. * src/UTMetadataRejectExtensionMessage.h
  1865. * src/UTMetadataRequestExtensionMessage.cc
  1866. * src/UTMetadataRequestExtensionMessage.h
  1867. * src/UTPexExtensionMessage.cc
  1868. * src/UTPexExtensionMessage.h
  1869. * test/HandshakeExtensionMessageTest.cc
  1870. * test/MockExtensionMessage.h
  1871. * test/UTMetadataDataExtensionMessageTest.cc
  1872. * test/UTMetadataRejectExtensionMessageTest.cc
  1873. * test/UTMetadataRequestExtensionMessageTest.cc
  1874. * test/UTPexExtensionMessageTest.cc
  1875. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1876. Updated man page for BitTorrent Magnet URI.
  1877. * doc/aria2c.1.txt
  1878. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1879. Call DownloadContext::setOwnerRequestGroup() in
  1880. RequestGroup::setDownloadContext().
  1881. * src/BtDependency.cc
  1882. * src/RequestGroup.cc
  1883. * src/RequestGroup.h
  1884. * src/download_helper.cc
  1885. * test/DefaultBtMessageDispatcherTest.cc
  1886. * test/DefaultExtensionMessageFactoryTest.cc
  1887. * test/HandshakeExtensionMessageTest.cc
  1888. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1890. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1891. from metadata, use new metadata2Torrent() function.
  1892. * src/BtDependency.cc
  1893. * src/UTMetadataPostDownloadHandler.cc
  1894. * src/bittorrent_helper.cc
  1895. * src/bittorrent_helper.h
  1896. * test/BittorrentHelperTest.cc
  1897. * test/BtDependencyTest.cc
  1898. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Use createRequestGroupForUri to create the download for torrent
  1900. file.
  1901. * src/Metalink2RequestGroup.cc
  1902. * test/Metalink2RequestGroupTest.cc
  1903. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Fixed typo
  1905. * src/DownloadContext.h
  1906. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Use createRequestGroupForBitTorrent()
  1908. * src/BtPostDownloadHandler.cc
  1909. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1910. Added remove().
  1911. * src/Option.cc
  1912. * src/Option.h
  1913. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Removed options which is only valid for URIs specified in
  1915. command-line. If they are left, because op is used as a template
  1916. for new RequestGroup(such as created in XML-RPC command,
  1917. BtPostDownloadHandler etc), they causes unintentional effect.
  1918. * src/main.cc
  1919. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Refer to option value of PREF_OUT only in download_helper.
  1921. * src/FtpNegotiationCommand.cc
  1922. * src/HttpResponseCommand.cc
  1923. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1924. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1925. * src/download_helper.cc
  1926. * src/download_helper.h
  1927. * src/XmlRpcMethodImpl.cc
  1928. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1929. Updated man page for changeOption XML-RPC method.
  1930. * doc/aria2c.1.txt
  1931. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1932. Added --bt-max-peers option to changeOption XML-RPC method.
  1933. * src/XmlRpcMethod.cc
  1934. * src/XmlRpcMethodImpl.cc
  1935. * test/XmlRpcMethodTest.cc
  1936. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1937. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1938. * test/XmlRpcMethodTest.cc
  1939. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Removed redundant DownloadContext::hasAttribute(...) calls.
  1941. * src/ConsoleStatCalc.cc
  1942. * src/RequestGroup.cc
  1943. * src/XmlRpcMethodImpl.cc
  1944. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Changed the number of tracker request attempt from 5 to 2.
  1946. * src/TrackerWatcherCommand.cc
  1947. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Use host and protocol in original URI, because URI selector
  1949. selects URI based on original URI, not redirected one.
  1950. * src/Request.cc
  1951. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1952. Fixed the bug which causes segmentation fault with tellWaiting
  1953. XML-RPC method when BitTorrent download is waiting. The key of
  1954. BtRegistry is changed from info hash to GID, because it is
  1955. registered per RequestGroup, not info hash.
  1956. * src/BtRegistry.cc
  1957. * src/BtRegistry.h
  1958. * src/BtSetup.cc
  1959. * src/ConsoleStatCalc.cc
  1960. * src/InitiatorMSEHandshakeCommand.cc
  1961. * src/PeerInitiateConnectionCommand.cc
  1962. * src/PeerInteractionCommand.cc
  1963. * src/PeerInteractionCommand.h
  1964. * src/PeerReceiveHandshakeCommand.cc
  1965. * src/RequestGroup.cc
  1966. * src/XmlRpcMethodImpl.cc
  1967. * test/BtRegistryTest.cc
  1968. * test/XmlRpcMethodTest.cc
  1969. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Updated man page for changeOption XML-RPC method.
  1971. * doc/aria2c.1.txt
  1972. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1973. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1974. method.
  1975. * src/XmlRpcMethod.cc
  1976. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1977. Documented about BitTorrent Magnet URI in man page.
  1978. * doc/aria2c.1.txt
  1979. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1980. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1981. inherited to generated RequestGroup.
  1982. * src/UTMetadataPostDownloadHandler.cc
  1983. * test/UTMetadataPostDownloadHandlerTest.cc
  1984. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1985. Prepended "[METADATA]" before dn.
  1986. * src/bittorrent_helper.cc
  1987. * test/BittorrentHelperTest.cc
  1988. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Rewritten Magnet URI parser.
  1990. * src/Makefile.am
  1991. * src/ProtocolDetector.cc
  1992. * src/bittorrent_helper.cc
  1993. * src/bittorrent_helper.h
  1994. * src/download_helper.cc
  1995. * src/magnet.cc
  1996. * src/magnet.h
  1997. * test/BittorrentHelperTest.cc
  1998. * test/MagnetTest.cc
  1999. * test/Makefile.am
  2000. * test/ProtocolDetectorTest.cc
  2001. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Use hton64
  2003. * src/base32.cc
  2004. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2005. Added Base32 encoded BitTorrent Magnet Link support.
  2006. * src/Makefile.am
  2007. * src/base32.cc
  2008. * src/base32.h
  2009. * src/bittorrent_helper.cc
  2010. * test/Base32Test.cc
  2011. * test/BittorrentHelperTest.cc
  2012. * test/Makefile.am
  2013. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2015. supported yet. Fixed typo in method name in RequestGroup. In
  2016. metadataGetMode, don't show "Your share ratio was ..." message.
  2017. * src/DefaultBtInteractive.cc
  2018. * src/DefaultBtInteractive.h
  2019. * src/DownloadHandlerFactory.cc
  2020. * src/DownloadHandlerFactory.h
  2021. * src/HandshakeExtensionMessage.cc
  2022. * src/Makefile.am
  2023. * src/Metalink2RequestGroup.cc
  2024. * src/PeerInteractionCommand.cc
  2025. * src/RequestGroup.cc
  2026. * src/RequestGroup.h
  2027. * src/UTMetadataPostDownloadHandler.cc
  2028. * src/UTMetadataPostDownloadHandler.h
  2029. * src/download_helper.cc
  2030. * test/HandshakeExtensionMessageTest.cc
  2031. * test/Makefile.am
  2032. * test/UTMetadataPostDownloadHandlerTest.cc
  2033. * test/UTMetadataRejectExtensionMessageTest.cc
  2034. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. In metadataGetMode, don't show SEEDING.
  2036. * src/ConsoleStatCalc.cc
  2037. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2038. Fixed ut_metadata data handling. Implemented
  2039. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2040. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2041. metadata_size is received.
  2042. * src/DefaultExtensionMessageFactory.cc
  2043. * src/DefaultExtensionMessageFactory.h
  2044. * src/HandshakeExtensionMessage.cc
  2045. * src/HandshakeExtensionMessage.h
  2046. * src/UTMetadataDataExtensionMessage.cc
  2047. * src/UTMetadataDataExtensionMessage.h
  2048. * src/UTMetadataRequestExtensionMessage.cc
  2049. * src/UTMetadataRequestFactory.cc
  2050. * src/UTMetadataRequestFactory.h
  2051. * src/UTMetadataRequestTracker.cc
  2052. * src/UTMetadataRequestTracker.h
  2053. * test/DefaultExtensionMessageFactoryTest.cc
  2054. * test/HandshakeExtensionMessageTest.cc
  2055. * test/MockBtMessage.h
  2056. * test/UTMetadataDataExtensionMessageTest.cc
  2057. * test/UTMetadataRequestExtensionMessageTest.cc
  2058. * test/UTMetadataRequestFactoryTest.cc
  2059. * test/UTMetadataRequestTrackerTest.cc
  2060. * test/extension_message_test_helper.h
  2061. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2062. Drop connection if ut_metadata reject message is received.
  2063. * src/UTMetadataRejectExtensionMessage.cc
  2064. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2065. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2066. get high enough in that mode.
  2067. * src/ActivePeerConnectionCommand.cc
  2068. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Added BitTorrent magnet link support to ProtocolDetector.
  2070. * src/ProtocolDetector.cc
  2071. * src/ProtocolDetector.h
  2072. * test/ProtocolDetectorTest.cc
  2073. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Don't inject validator into BtMessage in metadataGetMode because
  2075. most of the checks depends on the total length of download but it
  2076. is unknown. Delegate metadataGetMode to BtMessage.
  2077. * src/DefaultBtMessageFactory.cc
  2078. * src/DefaultBtMessageFactory.h
  2079. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2081. * src/DefaultPieceStorage.h
  2082. * src/PieceStorage.h
  2083. * src/UnknownLengthPieceStorage.h
  2084. * test/MockPieceStorage.h
  2085. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2086. Added markTotalLengthIsKnown().
  2087. * src/DownloadContext.h
  2088. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2090. missing. If metadata is missing, always use DHT when it is ready.
  2091. * src/BtSetup.cc
  2092. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2093. Added parseMagnetLink(). Hex encoded info hash is supported.
  2094. Base32 encoded info hash is not supported yet.
  2095. * src/bittorrent_helper.cc
  2096. * src/bittorrent_helper.h
  2097. * test/BittorrentHelperTest.cc
  2098. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Added FromHex()
  2100. * src/util.cc
  2101. * src/util.h
  2102. * test/UtilTest.cc
  2103. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Added _metadataGetMode member variable. It toggles the action when
  2105. messages are received: usually they almost do nothing if
  2106. _metadataGetMode is true.
  2107. * src/AbstractBtMessage.cc
  2108. * src/AbstractBtMessage.h
  2109. * src/BtAllowedFastMessage.cc
  2110. * src/BtBitfieldMessage.cc
  2111. * src/BtCancelMessage.cc
  2112. * src/BtChokeMessage.cc
  2113. * src/BtHaveAllMessage.cc
  2114. * src/BtHaveMessage.cc
  2115. * src/BtInterestedMessage.cc
  2116. * src/BtNotInterestedMessage.cc
  2117. * src/BtPieceMessage.cc
  2118. * src/BtRejectMessage.cc
  2119. * src/BtRequestMessage.cc
  2120. * src/BtUnchokeMessage.cc
  2121. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Added bencode::decode overload functions. They have extra argument
  2123. 'end', passed by reference. 'end' points to the beyond the last
  2124. position of data used in decoding process.
  2125. * src/bencode.cc
  2126. * src/bencode.h
  2127. * test/BencodeTest.cc
  2128. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2129. Initial support of Extension for Peers to Send Metadata
  2130. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2131. metadata from swarm.
  2132. * src/BtConstants.h
  2133. * src/DefaultBtInteractive.cc
  2134. * src/DefaultExtensionMessageFactory.cc
  2135. * src/DefaultExtensionMessageFactory.h
  2136. * src/ExtensionMessage.h
  2137. * src/ExtensionMessageRegistry.h
  2138. * src/HandshakeExtensionMessage.cc
  2139. * src/HandshakeExtensionMessage.h
  2140. * src/Makefile.am
  2141. * src/PeerConnection.h
  2142. * src/PeerInteractionCommand.cc
  2143. * src/UTMetadataDataExtensionMessage.cc
  2144. * src/UTMetadataDataExtensionMessage.h
  2145. * src/UTMetadataExtensionMessage.cc
  2146. * src/UTMetadataExtensionMessage.h
  2147. * src/UTMetadataRejectExtensionMessage.cc
  2148. * src/UTMetadataRejectExtensionMessage.h
  2149. * src/UTMetadataRequestExtensionMessage.cc
  2150. * src/UTMetadataRequestExtensionMessage.h
  2151. * src/bittorrent_helper.cc
  2152. * src/bittorrent_helper.h
  2153. * test/BittorrentHelperTest.cc
  2154. * test/DefaultExtensionMessageFactoryTest.cc
  2155. * test/HandshakeExtensionMessageTest.cc
  2156. * test/Makefile.am
  2157. * test/UTMetadataDataExtensionMessageTest.cc
  2158. * test/UTMetadataRejectExtensionMessageTest.cc
  2159. * test/UTMetadataRequestExtensionMessageTest.cc
  2160. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Cancel segment in prepareForRetry() because there is a chance that
  2162. the command has segments.
  2163. * src/CreateRequestCommand.cc
  2164. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Fixed the bug that slow server is not knocked down in favor of
  2166. faster one.
  2167. * src/AbstractCommand.cc
  2168. * src/DefaultPieceStorage.cc
  2169. * src/DefaultPieceStorage.h
  2170. * src/PieceStorage.h
  2171. * src/UnknownLengthPieceStorage.cc
  2172. * src/UnknownLengthPieceStorage.h
  2173. * test/MockPieceStorage.h
  2174. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Fixed the bug that Request object is not added to
  2176. _inFlightRequests in findFasterRequest().
  2177. * src/FileEntry.cc
  2178. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Changed the strategry of how to increase the number of outstanding
  2180. requests. Now the number is doubled if there are no outstanding
  2181. requests after receiving messages.
  2182. * src/BtConstants.h
  2183. * src/DefaultBtInteractive.cc
  2184. * src/DefaultBtInteractive.h
  2185. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2186. Check socket for reading if there are outstanding requests.
  2187. * src/PeerInteractionCommand.cc
  2188. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. Moved frequently called methods to header file so they get
  2190. inlined.
  2191. * src/RequestSlot.cc
  2192. * src/RequestSlot.h
  2193. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Copied in_addr instead of just casting from char* which might
  2195. violate strict aliasing rules.
  2196. * src/AsyncNameResolver.cc
  2197. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2198. Use dynamic_pointer_cast
  2199. * test/BtPieceMessageTest.cc
  2200. * test/BtRequestMessageTest.cc
  2201. * test/DefaultBtRequestFactoryTest.cc
  2202. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Added testSetUrl20()
  2204. * test/RequestTest.cc
  2205. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2206. Code cleanup
  2207. * src/bittorrent_helper.cc
  2208. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. Use C++ style cast
  2210. * src/AsyncNameResolver.cc
  2211. * src/Base64.h
  2212. * src/BtBitfieldMessage.cc
  2213. * src/BtHandshakeMessage.cc
  2214. * src/DefaultBtMessageFactory.cc
  2215. * src/DefaultBtProgressInfoFile.cc
  2216. * src/EpollEventPoll.cc
  2217. * src/ExpatMetalinkProcessor.cc
  2218. * src/IteratableChecksumValidator.cc
  2219. * src/IteratableChunkChecksumValidator.cc
  2220. * src/MessageDigestHelper.cc
  2221. * src/Platform.cc
  2222. * src/RequestGroupMan.cc
  2223. * src/SingleFileAllocationIterator.cc
  2224. * src/Sqlite3MozCookieParser.cc
  2225. * src/XML2SAXMetalinkProcessor.cc
  2226. * src/Xml2XmlRpcRequestProcessor.cc
  2227. * src/util.cc
  2228. * src/util.h
  2229. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Fixed integer potential alignment problem.
  2231. * src/bitfield.h
  2232. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2234. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2235. include file ordering.
  2236. * src/PeerListProcessor.h
  2237. * src/bittorrent_helper.cc
  2238. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2239. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2240. * src/Request.cc
  2241. * src/util.cc
  2242. * src/util.h
  2243. * test/RequestTest.cc
  2244. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2245. Rewritten util::uitos()
  2246. * src/util.h
  2247. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Code cleanup
  2249. * src/Request.cc
  2250. * src/Request.h
  2251. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Rewritten Request::parseUrl()
  2253. * src/Request.cc
  2254. * test/RequestTest.cc
  2255. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2256. Removed unused macro SAFE_CHARS
  2257. * src/Request.cc
  2258. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Updated doc
  2260. * src/DHTRoutingTableDeserializer.cc
  2261. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Release 1.6.3
  2263. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. Removed unused function.
  2265. * test/DHTPeerAnnounceStorageTest.cc
  2266. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Only decrement cols if cols > 0
  2268. * src/ConsoleStatCalc.cc
  2269. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2270. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2271. translations. Thanks to all translators.
  2272. * po/ca.po
  2273. * po/fr.po
  2274. * po/it.po
  2275. * po/ja.po
  2276. * po/pl.po
  2277. * po/ru.po
  2278. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Updated translation template
  2280. * po
  2281. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2282. Fixed compile error without ssl library.
  2283. * src/util.cc
  2284. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Logged received nodes in get_peers reply message.
  2286. * src/DHTAbstractNodeLookupTask.cc
  2287. * src/DHTAbstractNodeLookupTask.h
  2288. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2290. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2291. * src/DHTMessageDispatcherImpl.cc
  2292. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Don't reuse URI if Request pool is not empty.
  2294. * src/CreateRequestCommand.cc
  2295. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2297. receive get_peers request for torrent which the client is now
  2298. downloading.
  2299. * src/BtSetup.cc
  2300. * src/DHTPeerAnnounceEntry.cc
  2301. * src/DHTPeerAnnounceEntry.h
  2302. * src/DHTPeerAnnounceStorage.cc
  2303. * src/DHTPeerAnnounceStorage.h
  2304. * src/RequestGroup.cc
  2305. * test/DHTPeerAnnounceEntryTest.cc
  2306. * test/DHTPeerAnnounceStorageTest.cc
  2307. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Fixed the bug that in Windows environment new blank line is
  2309. inserted when console readout is updated.
  2310. * src/ConsoleStatCalc.cc
  2311. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2312. Throw exception if binding listening port is failed. Removed
  2313. RequestGroupMan::getInitialCommand(). Use
  2314. fillRequestGroupFromReserver() instead. Delete commands for
  2315. RequestGroup which has errors when it is being added.
  2316. * src/BtSetup.cc
  2317. * src/DownloadEngine.cc
  2318. * src/DownloadEngine.h
  2319. * src/DownloadEngineFactory.cc
  2320. * src/MultiUrlRequestInfo.cc
  2321. * src/RequestGroupMan.cc
  2322. * src/RequestGroupMan.h
  2323. * test/RequestGroupManTest.cc
  2324. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2325. Fixed the bug that when downloading more than one torrent,
  2326. listening port is not reported properly to tracker for 2nd or
  2327. later torrents.
  2328. * src/BtSetup.cc
  2329. * src/PeerListenCommand.cc
  2330. * src/PeerListenCommand.h
  2331. * src/RequestGroup.cc
  2332. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2333. Bump up version number to 1.6.3
  2334. * configure.ac
  2335. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Removed Util.cc from POTFILES.in
  2337. * po/POTFILES.in
  2338. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Updated man page for previous change.
  2340. * doc/aria2c.1.txt
  2341. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. If user name is embedded but password is missing in URI, first
  2343. resolve password using .netrc. If password is found in .netrc,
  2344. then use it as password. If not, use the password specified in
  2345. --ftp-passwd.
  2346. * src/AuthConfigFactory.cc
  2347. * src/Request.cc
  2348. * src/Request.h
  2349. * test/AuthConfigFactoryTest.cc
  2350. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Fixed typo
  2352. * doc/aria2c.1.txt
  2353. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2354. Fixed typo
  2355. * src/usage_text.h
  2356. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Added missing bitfield.cc
  2358. * src/bitfield.cc
  2359. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2360. Renamed Util.{cc,h} as util.{cc,h}
  2361. * src/Util.cc
  2362. * src/Util.h
  2363. * src/util.cc
  2364. * src/util.h
  2365. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2366. Moved static functions in Util class to namespace util.
  2367. * src
  2368. * test
  2369. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2370. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2371. Moved generateRandomKey to bittorrent_helper.cc.
  2372. * src/DHTBucket.cc
  2373. * src/DHTGetPeersMessage.cc
  2374. * src/DHTGetPeersReplyMessage.cc
  2375. * src/DHTMessage.cc
  2376. * src/DHTNode.cc
  2377. * src/DHTTokenTracker.cc
  2378. * src/DHTUtil.cc: Removed.
  2379. * src/DHTUtil.h: Removed.
  2380. * src/Makefile.am
  2381. * src/Util.cc
  2382. * src/Util.h
  2383. * src/bitfield.h
  2384. * src/bittorrent_helper.cc
  2385. * src/bittorrent_helper.h
  2386. * test/ARC4Test.cc
  2387. * test/BNodeTest.cc
  2388. * test/DHTAnnouncePeerMessageTest.cc
  2389. * test/DHTAnnouncePeerReplyMessageTest.cc
  2390. * test/DHTFindNodeMessageTest.cc
  2391. * test/DHTFindNodeReplyMessageTest.cc
  2392. * test/DHTGetPeersMessageTest.cc
  2393. * test/DHTGetPeersReplyMessageTest.cc
  2394. * test/DHTPingMessageTest.cc
  2395. * test/DHTPingReplyMessageTest.cc
  2396. * test/DHTTokenTrackerTest.cc
  2397. * test/DHTUtilTest.cc: Removed.
  2398. * test/Makefile.am
  2399. * test/UtilTest.cc
  2400. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Removed the call to trim() because trim() is called for each
  2402. element in split().
  2403. * src/CookieParser.cc
  2404. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Replaced Util::slice() with split()
  2406. * src/AbstractCommand.cc
  2407. * src/CookieParser.cc
  2408. * src/File.cc
  2409. * src/HttpHeaderProcessor.cc
  2410. * src/HttpRequest.cc
  2411. * src/Metalink2RequestGroup.cc
  2412. * src/MetalinkParserController.cc
  2413. * src/Netrc.cc
  2414. * src/NsCookieParser.cc
  2415. * src/ParameterizedStringParser.cc
  2416. * src/ServerStatMan.cc
  2417. * src/UriListParser.cc
  2418. * src/Util.cc
  2419. * src/Util.h
  2420. * src/bittorrent_helper.cc
  2421. * test/UtilTest.cc
  2422. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2423. Use request->getDir() instead of "/" for embedded user/pass in
  2424. URI.
  2425. * src/AuthConfigFactory.cc
  2426. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2427. Fixed wrong insertion point for BasicCred.
  2428. * src/AuthConfigFactory.cc
  2429. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2430. Allowed non-regular file in LocalFilePathOptionHandler
  2431. * src/OptionHandlerImpl.h
  2432. * src/message.h
  2433. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2434. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2435. * src/Netrc.cc
  2436. * src/Util.h
  2437. * test/NetrcTest.cc
  2438. * test/sample.netrc
  2439. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2440. Fixed typo
  2441. * src/BtDependency.cc
  2442. * src/BtRejectMessage.cc
  2443. * src/FtpConnection.cc
  2444. * src/HttpHeaderProcessor.h
  2445. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2446. Fixed lintian report in man page
  2447. * doc/aria2c.1.txt
  2448. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2449. Release 1.6.2
  2450. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Updated Ukrainian translation. Thanks to all translators.
  2452. * po/uk.po
  2453. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2454. Updated translation template
  2455. * po
  2456. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Bump up version number to 1.6.2
  2458. * configure.ac
  2459. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2460. Updated licence message in -v output.
  2461. * src/version_usage.cc
  2462. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Replaced aria2 with aria2c in help message.
  2464. * src/version_usage.cc
  2465. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2466. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2467. * src/version_usage.cc
  2468. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Quoted localedir
  2470. * src/Makefile.am
  2471. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2473. utime. Check header for utime.h.
  2474. * configure.ac
  2475. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2476. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2477. * configure.ac
  2478. * src/daemon.cc
  2479. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Don't set localedir manually. Leave it to autoconf.
  2481. * configure.ac
  2482. * src/Makefile.am
  2483. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Added --install to ACLOCAL_AMFLAGS.
  2485. Removed m4 from SUBDIRS.
  2486. Updated automake 1.11 and autoconf 2.64.
  2487. Replaced some obsolute macros with new one.
  2488. * Makefile.am
  2489. * configure.ac
  2490. * m4/aria2_arg.m4
  2491. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Removed Makefile.am in m4 directory.
  2493. * configure.ac
  2494. * m4/ChangeLog
  2495. * m4/Makefile.am
  2496. * m4/Makefile.in
  2497. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. Removed unused m4 macros.
  2499. * m4/intldir.m4
  2500. * m4/inttypes.m4
  2501. * m4/isc-posix.m4
  2502. * m4/libgnutls-extra.m4
  2503. * m4/ulonglong.m4
  2504. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2505. Fixed the bug that causes segmentation fault if
  2506. req->getCurrentUrl() contains printf formatting characters such as
  2507. %d. The statement that causes this bug is useless and removed.
  2508. * src/AbstractCommand.cc
  2509. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. * Release 1.6.1
  2511. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Updated Simplified Chinese translation. Thanks to translators.
  2513. * po/zh_CN.po
  2514. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2515. Updated translation template
  2516. * po
  2517. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2518. Bump up version number to 1.6.1
  2519. * configure.ac
  2520. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. Changed interval from 120 to 60 for dropping inactive peer.
  2522. * src/DefaultBtInteractive.cc
  2523. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2524. Updated man page for --user-agent and --peer-id-prefix option.
  2525. * doc/aria2c.1.txt
  2526. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2527. Code clean up
  2528. * src/BtPostDownloadHandler.cc
  2529. * src/ContentTypeRequestGroupCriteria.cc
  2530. * src/ContentTypeRequestGroupCriteria.h
  2531. * src/DownloadHandlerConstants.cc
  2532. * src/DownloadHandlerConstants.h
  2533. * src/DownloadHandlerFactory.cc
  2534. * src/MetalinkPostDownloadHandler.cc
  2535. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Don't save control file when aria2 exists while checking piece
  2537. hash(behavior of -V option). If control file doesn't exist when
  2538. aria2 launched, the completed length in saved control file will be
  2539. 0 byte and this confuses user. disableSaveControlFile() is called
  2540. in RequestGroup::processCheckIntegrityEntry().
  2541. enableSaveControlFile() will be called after hash checking is
  2542. done. See CheckIntegrityCommand.
  2543. * src/CheckIntegrityCommand.cc
  2544. * src/RequestGroup.cc
  2545. * src/RequestGroup.h
  2546. * src/RequestGroupMan.cc
  2547. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2548. Included version number in Peer ID and client version. Peer ID
  2549. now starts with "aria2/VERSION-", where VERSION is
  2550. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2551. * src/DefaultBtInteractive.cc
  2552. * src/OptionHandlerFactory.cc
  2553. * src/bittorrent_helper.cc
  2554. * src/bittorrent_helper.h
  2555. * src/main.cc
  2556. * src/usage_text.h
  2557. * test/BittorrentHelperTest.cc
  2558. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Fixed memory leak.
  2560. * src/DownloadCommand.cc
  2561. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. Removed server, port, user and passwd key from options before
  2563. XMLRPC::Client.call since they are not options of aria2.
  2564. * doc/xmlrpc/aria2mon
  2565. * doc/xmlrpc/aria2rpc
  2566. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2567. Included version number in user-agent string.
  2568. * src/OptionHandlerFactory.cc
  2569. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2570. Fixed the bug that the option values changed by XML-RPC
  2571. method(changeOption and changeGlobalOption) are overwritten to the
  2572. previous value by the next these request which doesn't contain
  2573. that option value. Supporse max-download-limit is initially 0. You
  2574. changed this value to 100K by changeOption. Then you issue
  2575. changeOption request to change max-upload-limit to 50K. This
  2576. second request doesn't contain xml-download-limit, so it is back
  2577. to initial value, 0. Another improvement is that exception is
  2578. thrown when changeOption and changeGlobalOption request contains
  2579. option name which doesn't allowed in each request.
  2580. * src/DownloadEngine.h
  2581. * src/XmlRpcMethod.cc
  2582. * src/XmlRpcMethod.h
  2583. * src/XmlRpcMethodImpl.cc
  2584. * src/download_helper.cc
  2585. * src/download_helper.h
  2586. * test/XmlRpcMethodTest.cc
  2587. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Added missing MetalinkParserStateImpl.{cc,h}
  2589. * src/MetalinkParserStateImpl.cc
  2590. * src/MetalinkParserStateImpl.h
  2591. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Put all MetalinkParserState subclasses into
  2593. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2594. * src/FileMetalinkParserState.cc: Removed
  2595. * src/FileMetalinkParserState.h: Removed
  2596. * src/FilesMetalinkParserState.cc: Removed
  2597. * src/FilesMetalinkParserState.h: Removed
  2598. * src/FinMetalinkParserState.cc: Removed
  2599. * src/FinMetalinkParserState.h: Removed
  2600. * src/HashMetalinkParserState.cc: Removed
  2601. * src/HashMetalinkParserState.h: Removed
  2602. * src/InitialMetalinkParserState.cc: Removed
  2603. * src/InitialMetalinkParserState.h: Removed
  2604. * src/LanguageMetalinkParserState.cc: Removed
  2605. * src/LanguageMetalinkParserState.h: Removed
  2606. * src/Makefile.am
  2607. * src/MetalinkMetalinkParserState.cc: Removed
  2608. * src/MetalinkMetalinkParserState.h: Removed
  2609. * src/MetalinkParserState.h
  2610. * src/MetalinkParserStateMachine.cc
  2611. * src/MetalinkParserStateMachine.h
  2612. * src/OSMetalinkParserState.cc: Removed
  2613. * src/OSMetalinkParserState.h: Removed
  2614. * src/PieceHashMetalinkParserState.cc: Removed
  2615. * src/PieceHashMetalinkParserState.h: Removed
  2616. * src/PiecesMetalinkParserState.cc: Removed
  2617. * src/PiecesMetalinkParserState.h: Removed
  2618. * src/ResourcesMetalinkParserState.cc: Removed
  2619. * src/ResourcesMetalinkParserState.h: Removed
  2620. * src/SignatureMetalinkParserState.cc: Removed
  2621. * src/SignatureMetalinkParserState.h: Removed
  2622. * src/SizeMetalinkParserState.cc: Removed
  2623. * src/SizeMetalinkParserState.h: Removed
  2624. * src/SkipTagMetalinkParserState.cc: Removed
  2625. * src/SkipTagMetalinkParserState.h: Removed
  2626. * src/URLMetalinkParserState.cc: Removed
  2627. * src/URLMetalinkParserState.h: Removed
  2628. * src/VerificationMetalinkParserState.cc: Removed
  2629. * src/VerificationMetalinkParserState.h: Removed
  2630. * src/VersionMetalinkParserState.cc: Removed
  2631. * src/VersionMetalinkParserState.h: Removed
  2632. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Move all functions in PeerMessageUtil to bittorrent_helper.
  2634. * src/BtBitfieldMessage.cc
  2635. * src/BtBitfieldMessageValidator.h
  2636. * src/BtExtendedMessage.cc
  2637. * src/BtHandshakeMessage.cc
  2638. * src/BtHandshakeMessageValidator.h
  2639. * src/BtPieceMessage.cc
  2640. * src/BtPieceMessageValidator.h
  2641. * src/BtPortMessage.cc
  2642. * src/DHTFindNodeReplyMessage.cc
  2643. * src/DHTGetPeersReplyMessage.cc
  2644. * src/DHTMessageFactoryImpl.cc
  2645. * src/DHTRoutingTableDeserializer.cc
  2646. * src/DHTRoutingTableSerializer.cc
  2647. * src/DHTTokenTracker.cc
  2648. * src/DefaultBtMessageFactory.cc
  2649. * src/IndexBtMessage.cc
  2650. * src/IndexBtMessage.h
  2651. * src/IndexBtMessageValidator.h
  2652. * src/Makefile.am
  2653. * src/PeerMessageUtil.cc: Removed.
  2654. * src/PeerMessageUtil.h: Removed.
  2655. * src/RangeBtMessage.cc
  2656. * src/RangeBtMessage.h
  2657. * src/RangeBtMessageValidator.h
  2658. * src/UTPexExtensionMessage.cc
  2659. * src/ZeroBtMessage.cc
  2660. * src/ZeroBtMessage.h
  2661. * src/bittorrent_helper.cc
  2662. * src/bittorrent_helper.h
  2663. * test/BittorrentHelperTest.cc
  2664. * test/BtAllowedFastMessageTest.cc
  2665. * test/BtBitfieldMessageTest.cc
  2666. * test/BtCancelMessageTest.cc
  2667. * test/BtChokeMessageTest.cc
  2668. * test/BtExtendedMessageTest.cc
  2669. * test/BtHandshakeMessageTest.cc
  2670. * test/BtHaveAllMessageTest.cc
  2671. * test/BtHaveMessageTest.cc
  2672. * test/BtHaveNoneMessageTest.cc
  2673. * test/BtInterestedMessageTest.cc
  2674. * test/BtNotInterestedMessageTest.cc
  2675. * test/BtPieceMessageTest.cc
  2676. * test/BtPortMessageTest.cc
  2677. * test/BtRejectMessageTest.cc
  2678. * test/BtRequestMessageTest.cc
  2679. * test/BtSuggestPieceMessageTest.cc
  2680. * test/BtUnchokeMessageTest.cc
  2681. * test/DHTFindNodeReplyMessageTest.cc
  2682. * test/DHTGetPeersReplyMessageTest.cc
  2683. * test/DHTMessageFactoryImplTest.cc
  2684. * test/DHTRoutingTableDeserializerTest.cc
  2685. * test/DHTRoutingTableSerializerTest.cc
  2686. * test/DefaultBtMessageFactoryTest.cc
  2687. * test/DefaultExtensionMessageFactoryTest.cc
  2688. * test/Makefile.am
  2689. * test/PeerListProcessorTest.cc
  2690. * test/PeerMessageUtilTest.cc: Removed.
  2691. * test/UTPexExtensionMessageTest.cc
  2692. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Limit the size of values list when sending get_peers reply.
  2694. * src/DHTGetPeersReplyMessage.cc
  2695. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2696. Updated banner
  2697. * doc/xmlrpc/aria2rpc
  2698. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Added missing help message for remove command.
  2700. * doc/xmlrpc/aria2rpc
  2701. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2702. Generated configure and config.h.in
  2703. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2704. Add check for fork(), which is missing on MinGW
  2705. * src/daemon.cc
  2706. * configure.ac
  2707. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2708. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2709. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2710. Util::httpGMT().
  2711. * src/Util.cc
  2712. * src/Util.h
  2713. * test/UtilTest.cc
  2714. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2715. * Release 1.6.0
  2716. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2717. Fixed a path to xmlrpc/README.txt
  2718. * doc/Makefile.am
  2719. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2720. Added XML-RPC in -v Configuration output.
  2721. * src/FeatureConfig.cc
  2722. * src/FeatureConfig.h
  2723. * test/FeatureConfigTest.cc
  2724. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2725. Updated Bulgarian, Russian, Slovak and Japanese
  2726. translations. Thanks to all translators.
  2727. * po/bg.po
  2728. * po/ja.po
  2729. * po/ru.po
  2730. * po/sk.po
  2731. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Removed --retry-wait option from aria2rpc
  2733. * doc/xmlrpc/aria2rpc
  2734. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Removed --retry-wait option from man page.
  2736. * doc/aria2c.1.txt
  2737. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2738. Removed --retry-wait option since the current architecture doesn't
  2739. allow sleep for particular URI.
  2740. * src/AbstractCommand.cc
  2741. * src/OptionHandlerFactory.cc
  2742. * src/download_helper.cc
  2743. * src/prefs.cc
  2744. * src/prefs.h
  2745. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2746. Removed Retry-After header support. Since the current architecture
  2747. doesn't allow sleep for particular URI.
  2748. * src/HttpSkipResponseCommand.cc
  2749. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Updated the help message for --daemon option.
  2751. * doc/aria2c.1.txt
  2752. * src/usage_text.h
  2753. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. Added our own daemon() function for systems which desn't have
  2755. daemon(3).
  2756. * configure.ac
  2757. * src/Makefile.am
  2758. * src/daemon.cc
  2759. * src/daemon.h
  2760. * src/option_processing.cc
  2761. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2762. Simplified File::getCurrentDir()
  2763. * src/File.cc
  2764. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2765. Use exit() instead of _exit
  2766. * src/RequestGroupMan.cc
  2767. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2768. Replaced "CATEGORY" with "TAGS".
  2769. * src/usage_text.h
  2770. * doc/aria2c.1.txt
  2771. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2772. Updated the help message for --help option.
  2773. * src/usage_text.h
  2774. * doc/aria2c.1.txt
  2775. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. Updated man page for added help tags.
  2777. * doc/aria2c.1.txt
  2778. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Added help category #file. Added #file tag to the options related
  2780. to downloaded file.
  2781. * src/OptionHandlerFactory.cc
  2782. * src/help_tags.h
  2783. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2784. Added help categories: #cookie and #hook. Added #https tag to
  2785. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2786. * src/OptionHandlerFactory.cc
  2787. * src/help_tags.h
  2788. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2789. Made MSG_NOT_FILE translatable.
  2790. * src/message.h
  2791. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2792. Updated man page for --help option.
  2793. * doc/aria2c.1.txt
  2794. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2795. Updated doc.
  2796. * src/XmlRpcMethod.h
  2797. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2798. Help category now starts with "#" to distinguish a category from
  2799. keyword search. For example, "http" categroy is now "#http". You
  2800. can type "--help=#http" to get explanation of options related to
  2801. http. If '#' is omitted, then the argument is treated as a keyword
  2802. and aria2 searches options whose name includes the keyword and
  2803. print matched ones. For example, "--help=http" will show options
  2804. whose name includes "http".
  2805. * src/OptionHandlerFactory.cc
  2806. * src/help_tags.h
  2807. * src/usage_text.h
  2808. * src/version_usage.cc
  2809. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Documented missing experimental tag and newly added xml-rpc tag in
  2811. man page.
  2812. * doc/aria2c.1.txt
  2813. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Added xml-rpc help tag. Tagged xml-rpc related options with
  2815. xml-rpc tag.
  2816. * src/OptionHandlerFactory.cc
  2817. * src/help_tags.h
  2818. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2819. Updated message when a path is not a file. Updated common message
  2820. for wrong option.
  2821. * src/OptionHandlerException.cc
  2822. * src/message.h
  2823. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2824. Use File::isFile() instead of File::exists(). Updated message when
  2825. a path is not a file.
  2826. * src/OptionHandlerImpl.cc
  2827. * src/message.h
  2828. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2829. Fixed the bug that server performence profile is not updated when
  2830. aria2c was terminated by emergency shutdown.
  2831. * src/TrackerWatcherCommand.cc
  2832. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Use LocalFilePathOptionHandler for -T and -M option.
  2834. Updated message of MSG_FILE_NOT_EXIST.
  2835. * src/OptionHandlerFactory.cc
  2836. * src/message.h
  2837. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2838. Added LocalFilePathOptionHandler which check whether the specified
  2839. file path does exist or not.
  2840. * src/OptionHandlerImpl.cc
  2841. * src/message.h
  2842. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2843. Updated wiki page URI.
  2844. * README
  2845. * doc/aria2c.1.txt
  2846. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2847. Added README.txt for xmlrpc directory.
  2848. * doc/Makefile.am
  2849. * doc/xmlrpc/README.txt
  2850. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2851. Bump up version number to 1.6.0.
  2852. * configure.ac
  2853. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. Added XML-RPC client scripts written in ruby.
  2855. * doc/Makefile.am
  2856. * doc/xmlrpc/aria2mon
  2857. * doc/xmlrpc/aria2rpc
  2858. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2859. Added support for IPv6 literal address in URI. Now aria2 can
  2860. handle URI such as http://[::1]/
  2861. * src/HttpRequest.cc
  2862. * src/HttpRequest.h
  2863. * src/Request.cc
  2864. * src/Request.h
  2865. * test/HttpRequestTest.cc
  2866. * test/OptionHandlerTest.cc
  2867. * test/RequestTest.cc
  2868. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Fixed the bug that HTTP request header for XML-RPC request is not
  2870. parsed properly.
  2871. * src/HttpHeader.cc
  2872. * src/HttpHeaderProcessor.cc
  2873. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2874. Fixed the bug that XML-RPC authorization might be done before HTTP
  2875. request header is fully received.
  2876. * src/HttpServerCommand.cc
  2877. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2878. Documented --xml-rpc-listen-all option in man page.
  2879. * doc/aria2c.1.txt
  2880. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. Added --xml-rpc-listen-all option. If true is given to this
  2882. option, aria2 listens incoming XML-RPC requests on all network
  2883. interfaces. If false is given, listens only on local loopback
  2884. interface. The default value is false.
  2885. * src/HttpListenCommand.cc
  2886. * src/OptionHandlerFactory.cc
  2887. * src/SocketCore.cc
  2888. * src/SocketCore.h
  2889. * src/prefs.cc
  2890. * src/prefs.h
  2891. * src/usage_text.h
  2892. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2893. * Release 1.5.2
  2894. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2895. Updated Ukrainian and Russian translations. Thanks to all
  2896. translators.
  2897. * po/ru.po
  2898. * po/uk.po
  2899. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2900. Bump up version number to 1.5.2
  2901. * configure.ac
  2902. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Get comment, comment.utf-8, created by and creation date from
  2904. .torrent file and print them in -S output.
  2905. * src/bittorrent_helper.cc
  2906. * src/bittorrent_helper.h
  2907. * test/BittorrentHelperTest.cc
  2908. * test/test.torrent
  2909. * test/utf8.torrent
  2910. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Show exact file size along in -S option output.
  2912. * src/Util.h
  2913. * src/bittorrent_helper.cc
  2914. * test/UtilTest.cc
  2915. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2916. Avoided unnecessary memory allocation in
  2917. BitfieldMan::getCompletedLength().
  2918. * src/BitfieldMan.cc
  2919. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2920. Fixed the bug that download fails if
  2921. SocketCore::establishConnection() throws exception and aria2
  2922. doesn't try another address.
  2923. * src/AbstractCommand.cc
  2924. * src/InitiateConnectionCommand.cc
  2925. * src/message.h
  2926. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2927. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2928. detected properly.
  2929. * m4/sqlite3.m4
  2930. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2931. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2932. because it causes compile error if PARAMS macro is defined.
  2933. * src/XmlRpcElements.cc
  2934. * src/XmlRpcElements.h
  2935. * src/XmlRpcRequestParserStateImpl.cc
  2936. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2937. * Release 1.5.1
  2938. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2939. Bump up version number to 1.5.1
  2940. * configure.ac
  2941. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2942. Fixed compile error without BitTorrent support
  2943. * src/DefaultBtProgressInfoFile.cc
  2944. * src/DownloadEngine.cc
  2945. * src/DownloadEngine.h
  2946. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2947. Added missing '=' in Download Results
  2948. * src/RequestGroupMan.cc
  2949. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2950. Fixed compiler warning
  2951. * src/DefaultBtProgressInfoFile.cc
  2952. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2953. Fixed compiler warning on 32bit systems.
  2954. * src/DownloadCommand.cc
  2955. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Call flush from ServerStatMan::save()
  2957. * src/ServerStatMan.cc
  2958. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Check stream status after file is opened.
  2960. * src/CookieStorage.cc
  2961. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Rewritten Signature::save()
  2963. * src/Signature.cc
  2964. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2965. Rewritten RequestGroupMan::saveServerStat()
  2966. * src/RequestGroupMan.cc
  2967. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2968. Rewritten stream error handling
  2969. * src/DHTAutoSaveCommand.cc
  2970. * src/DHTRoutingTableDeserializer.cc
  2971. * src/DHTRoutingTableSerializer.cc
  2972. * src/DHTSetup.cc
  2973. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Check stream status after file is opened.
  2975. * src/DefaultBtProgressInfoFile.cc
  2976. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2977. Rewritten stream error handling
  2978. * src/DefaultBtProgressInfoFile.cc
  2979. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2980. Make sure that stream is closed before renaming file. Unit test
  2981. fails on mingw32 in the previous implementation.
  2982. * src/CookieStorage.cc
  2983. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2984. Fixed the unit test error without sqlite3
  2985. * test/CookieStorageTest.cc
  2986. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2987. Fixed the undefined reference error
  2988. * test/HttpResponseTest.cc
  2989. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2990. * Release 1.5.0
  2991. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2993. Ukrainian translations. Thanks to all translators.
  2994. * po/ru.po
  2995. * po/it.po
  2996. * po/da.po
  2997. * po/bg.po
  2998. * po/ja.po
  2999. * po/uk.po
  3000. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3001. Added missing src/Logger.cc
  3002. * src/Logger.cc
  3003. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3004. Rewritten Logger to avoiding constly virtual call.
  3005. * src/LogFactory.cc
  3006. * src/LogFactory.h
  3007. * src/Logger.h
  3008. * src/Makefile.am
  3009. * src/Makefile.in
  3010. * src/NullLogger.h: Removed.
  3011. * src/SimpleLogger.cc
  3012. * src/SimpleLogger.h
  3013. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3014. Updated doc
  3015. * src/main.cc
  3016. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Updated debug log message
  3018. * src/AbstractCommand.cc
  3019. * src/message.h
  3020. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3021. Avoid to create zombie process when commands specified in
  3022. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3023. X and NetBSD.
  3024. * src/main.cc
  3025. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3026. Fixed typo
  3027. * src/usage_text.h
  3028. * doc/aria2c.1.txt
  3029. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Documented 'errorCode' of tellStatus in man page.
  3031. * doc/aria2c.1.txt
  3032. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3033. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3034. This key is only available for stopped/completed downloads and its
  3035. value is the error code defined in EXIT STATUS in man page.
  3036. * src/XmlRpcMethodImpl.cc
  3037. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3038. Fixed the bug that session download length is not updated when
  3039. PeerStat is not fastest one.
  3040. * src/SegmentMan.cc
  3041. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3042. Updated doc.
  3043. * doc/aria2c.1.txt
  3044. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3045. Updated doc.
  3046. * src/AbstractCommand.cc
  3047. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3048. Handle the case when DownloadContext has no FileEntry.
  3049. * src/XmlRpcMethodImpl.cc
  3050. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3051. Handle the situation where struct option.name is char *.
  3052. * configure.ac
  3053. * src/OptionParser.cc
  3054. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3055. Code cleanup
  3056. * src/AbstractCommand.cc
  3057. * src/DownloadCommand.cc
  3058. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3059. Use option of each download to create AuthConfig instead of global
  3060. option.
  3061. * src/AuthConfigFactory.cc
  3062. * src/AuthConfigFactory.h
  3063. * src/FtpNegotiationCommand.cc
  3064. * src/HttpRequest.cc
  3065. * src/HttpRequest.h
  3066. * src/HttpRequestCommand.cc
  3067. * src/HttpSkipResponseCommand.cc
  3068. * src/MultiUrlRequestInfo.cc
  3069. * test/AuthConfigFactoryTest.cc
  3070. * test/FtpConnectionTest.cc
  3071. * test/HttpRequestTest.cc
  3072. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3073. Don't call prepareForRetry(1) if all segments are ignored in
  3074. SegmentMan.
  3075. * src/AbstractCommand.cc
  3076. * src/BitfieldMan.cc
  3077. * src/BitfieldMan.h
  3078. * src/SegmentMan.cc
  3079. * src/SegmentMan.h
  3080. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Removed FileEntry::getAssociatedUris()
  3082. * src/FileEntry.h
  3083. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Updated doc: TODO1.5 -> TODO
  3085. * src/FileEntry.cc
  3086. * src/HttpResponseCommand.cc
  3087. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3088. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3089. involved.
  3090. * src/RequestGroup.cc
  3091. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3092. Eliminated duplicated filterBitfield initialization code.
  3093. * src/BitfieldMan.cc
  3094. * src/BitfieldMan.h
  3095. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3096. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3097. relatively naive approach, though). For DownloadFailureException,
  3098. we handle the case when req is null properly.
  3099. * src/AbstractCommand.cc
  3100. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3101. Added function returning suffix of control file to
  3102. DefaultBtProgressInfoFile.
  3103. * src/DefaultBtProgressInfoFile.cc
  3104. * src/DefaultBtProgressInfoFile.h
  3105. * src/RequestGroup.cc
  3106. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3107. Documented getVersion in man page.
  3108. * doc/aria2c.1.txt
  3109. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3110. Documented type of offset and num for tellWaiting xml-rpc method.
  3111. * doc/aria2c.1.txt
  3112. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3113. Implemented getVersion xml-rpc method. This method returns struct
  3114. which has 2 key-value pairs: "version" key is associated to the
  3115. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3116. associated to the list of enabled features, such as "Async DNS",
  3117. "BitTorrent".
  3118. * src/FeatureConfig.h
  3119. * src/XmlRpcMethodFactory.cc
  3120. * src/XmlRpcMethodImpl.cc
  3121. * src/XmlRpcMethodImpl.h
  3122. * test/XmlRpcMethodTest.cc
  3123. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3124. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3125. for compatibility issue.
  3126. * src/SocketCore.cc
  3127. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3128. Fixed compile error with openSSL
  3129. * src/bittorrent_helper.cc
  3130. * src/messageDigest.h
  3131. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3132. Removed bad code: setting certificate type priority to key
  3133. exchange priority.
  3134. * src/SocketCore.cc
  3135. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3136. Disconnect seeder if client is also in seed state.
  3137. * src/BtBitfieldMessage.cc
  3138. * src/BtHaveAllMessage.cc
  3139. * src/BtHaveMessage.cc
  3140. * src/message.h
  3141. * test/BtBitfieldMessageTest.cc
  3142. * test/BtHaveAllMessageTest.cc
  3143. * test/BtHaveMessageTest.cc
  3144. * test/MockPieceStorage.h
  3145. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3146. Keep CreateRequestCommand in queue when no segment is available so
  3147. that they can pick up pieces which slow BitTorrent peers are
  3148. downloading.
  3149. * src/AbstractCommand.cc
  3150. * src/CreateRequestCommand.cc
  3151. * src/CreateRequestCommand.h
  3152. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. --bt-stop-timeout now only checks download speed.
  3154. * src/BtStopDownloadCommand.cc
  3155. * src/BtStopDownloadCommand.h
  3156. * src/BtSetup.cc
  3157. * src/usage_text.h
  3158. * doc/aria2c.1.txt
  3159. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. Fixed compile error regarding BUFSIZE.
  3161. * src/DownloadCommand.cc
  3162. * src/DownloadCommand.h
  3163. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3164. Documented tellWaiting xml-rpc method in man page.
  3165. * doc/aria2c.1.txt
  3166. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3167. Bump up version number to 1.5.0
  3168. * configure.ac
  3169. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Removed resolved TODO1.5
  3171. * src/AbstractCommand.cc
  3172. * src/DownloadCommand.cc
  3173. * src/RequestGroup.cc
  3174. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3175. Release pooled and in-flight Request objectsand URIResult objects
  3176. in FileEntry after download completed.
  3177. * src/DownloadContext.cc
  3178. * src/DownloadContext.h
  3179. * src/FileEntry.cc
  3180. * src/FileEntry.h
  3181. * src/RequestGroup.cc
  3182. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. Set manual and source attribute in aria2c.1.txt
  3184. * doc/aria2c.1.txt
  3185. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3186. Documented that the default value of --use-head is 'false' in man
  3187. page.
  3188. * doc/aria2c.1.txt
  3189. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3190. Added bt-stop-timeout option to -i list.
  3191. * doc/aria2c.1.txt
  3192. * src/download_helper.cc
  3193. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3194. Fixed typo
  3195. * doc/aria2c.1.txt
  3196. * src/usage_text.h
  3197. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3198. Removed peer-id-prefix option from -i list.
  3199. * doc/aria2c.1.txt
  3200. * src/download_helper.cc
  3201. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3202. Fixed typo
  3203. * doc/aria2c.1.txt
  3204. * src/usage_text.h
  3205. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3206. Documented --bt-stop-timeout option in man page.
  3207. * doc/aria2c.1.txt
  3208. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3209. Updated README regarding multi-file torrent web-seeding.
  3210. * doc/README.txt
  3211. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3212. Updated man page regarding multi-file torrent web-seeding.
  3213. * doc/aria2c.1.txt
  3214. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3215. Updated doc
  3216. * src/version_usage.cc
  3217. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3218. Winsock select() doesn't work if no socket is in FD_SET. To
  3219. overcome this problem, a dummy socket is added to FD_SET and it is
  3220. given to select().
  3221. * src/SelectEventPoll.cc
  3222. * src/SelectEventPoll.h
  3223. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3224. Disabled --use-head option by default because --use-head=true
  3225. causes problems on some web sites.
  3226. * src/OptionHandlerFactory.cc
  3227. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3228. Print URL List in -S option for torrent.
  3229. * src/bittorrent_helper.cc
  3230. * src/bittorrent_helper.h
  3231. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Allocate buffer in ctor of DownloadCommand.
  3233. * src/DownloadCommand.cc
  3234. * src/DownloadCommand.h
  3235. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3236. Removed DiskAdaptor::onDownloadComplete()
  3237. * src/DirectDiskAdaptor.cc
  3238. * src/DirectDiskAdaptor.h
  3239. * src/DiskAdaptor.h
  3240. * src/MultiDiskAdaptor.cc
  3241. * src/MultiDiskAdaptor.h
  3242. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3243. Committed missing BtStopDownloadCommand.{cc,h}
  3244. * src/BtStopDownloadCommand.cc
  3245. * src/BtStopDownloadCommand.h
  3246. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3247. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3248. download if the download speed is 0 and the number of seeder is 0
  3249. in consecutive SEC seconds. By default, this function is disabled.
  3250. * src/BtSetup.cc
  3251. * src/Makefile.am
  3252. * src/OptionHandlerFactory.cc
  3253. * src/prefs.cc
  3254. * src/prefs.h
  3255. * src/usage_text.h
  3256. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3257. Removed the call to DiskAdaptor::onDownloadComplete() from
  3258. BtCheckIntegrityEntry and DefaultPieceStorage.
  3259. * src/BtCheckIntegrityEntry.cc
  3260. * src/DefaultPieceStorage.cc
  3261. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3262. Commented out throw statements when number of piece is 0 to
  3263. download 0 length torrent.
  3264. * src/bittorrent_helper.cc
  3265. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3266. Call RequestGroup::createNextCommandWithAdj() from
  3267. BtFileAllocationEntry if at least one FileEntry has URI. The
  3268. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3269. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3270. * src/BtFileAllocationEntry.cc
  3271. * src/FileEntry.h
  3272. * src/RequestGroup.cc
  3273. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3274. Generate peer ID after SimpleRandomizer is initialized.
  3275. * src/main.cc
  3276. * src/option_processing.cc
  3277. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3278. Removed unused method argument.
  3279. * src/CreateRequestCommand.cc
  3280. * src/RequestGroup.cc
  3281. * src/RequestGroup.h
  3282. * src/RequestGroupMan.cc
  3283. * src/TrackerWatcherCommand.cc
  3284. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3285. Made URI reusing function work.
  3286. * src/CreateRequestCommand.cc
  3287. * src/FileEntry.cc
  3288. * src/FileEntry.h
  3289. * test/FileEntryTest.cc
  3290. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3291. Add formerly fastest PeerStat's sessionDownloadLength to new
  3292. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3293. bytes in a session.
  3294. * src/PeerStat.cc
  3295. * src/SegmentMan.cc
  3296. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3297. If pipelining is enabled, we can always pool socket.
  3298. * src/HttpDownloadCommand.cc
  3299. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. In a single file download, file size becomes known just after
  3301. downloading, set total length to FileEntry object when download
  3302. completed.
  3303. * src/DownloadCommand.cc
  3304. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3305. Use std::vector::reserve() for fileEntries and pieceHashes in
  3306. bittorrent_helper
  3307. * src/bittorrent_helper.cc
  3308. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3309. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3310. Removed hidden option PREF_RESET_URI.
  3311. * src/AbstractCommand.cc
  3312. * src/OptionHandlerFactory.cc
  3313. * src/prefs.cc
  3314. * src/prefs.h
  3315. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3316. Removed unused variable/function.
  3317. * src/PeerStat.h
  3318. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3319. Show first URL in Download Results if file path is not available.
  3320. * src/FileEntry.h
  3321. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3322. Throw exception if file path doesn't exist in FTP URL.
  3323. * src/InitiateConnectionCommandFactory.cc
  3324. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3325. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3326. * src/BitfieldMan.cc
  3327. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3329. of PeerStat in SegmentMan. peerStats is used for calculating
  3330. download speed. Therefore all active PeerStats should be in
  3331. there. Another one is _fastestPeerStats and it only contains
  3332. fastest PeerStat for each hostname/protocol pair. They are used
  3333. for updating ServerStat.
  3334. * src/DownloadCommand.cc
  3335. * src/Request.h
  3336. * src/RequestGroupMan.cc
  3337. * src/SegmentMan.cc
  3338. * src/SegmentMan.h
  3339. * test/SegmentManTest.cc
  3340. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3341. Try all available addresses returned by DNS until it gets
  3342. connected in HTTP(S)/FTP download
  3343. * src/AbstractCommand.cc
  3344. * src/AbstractCommand.h
  3345. * src/AbstractProxyRequestCommand.cc
  3346. * src/AbstractProxyRequestCommand.h
  3347. * src/DNSCache.h
  3348. * src/DownloadEngine.cc
  3349. * src/DownloadEngine.h
  3350. * src/FtpInitiateConnectionCommand.cc
  3351. * src/FtpInitiateConnectionCommand.h
  3352. * src/FtpNegotiationCommand.cc
  3353. * src/FtpNegotiationCommand.h
  3354. * src/HttpInitiateConnectionCommand.cc
  3355. * src/HttpInitiateConnectionCommand.h
  3356. * src/HttpRequestCommand.cc
  3357. * src/HttpRequestCommand.h
  3358. * src/InitiateConnectionCommand.cc
  3359. * src/InitiateConnectionCommand.h
  3360. * test/DNSCacheTest.cc
  3361. * test/Makefile.am
  3362. * test/SimpleDNSCacheTest.cc
  3363. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3364. Updated doc
  3365. * src/download_helper.cc
  3366. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3367. Refactored fieldMan ctor.
  3368. * src/BitfieldMan.cc
  3369. * src/BitfieldMan.h
  3370. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3371. Don't print "No files to download." message if -S is given.
  3372. * src/main.cc
  3373. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3374. Set referer and method to newly created Request object.
  3375. * src/CreateRequestCommand.cc
  3376. * src/FileEntry.cc
  3377. * src/FileEntry.h
  3378. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3379. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3380. * src/AbstractCommand.cc
  3381. * src/AbstractCommand.h
  3382. * src/CreateRequestCommand.cc
  3383. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3384. Get proxy download working
  3385. * src/AbstractProxyRequestCommand.cc
  3386. * src/AbstractProxyRequestCommand.h
  3387. * src/AbstractProxyResponseCommand.cc
  3388. * src/AbstractProxyResponseCommand.h
  3389. * src/FtpInitiateConnectionCommand.cc
  3390. * src/FtpTunnelRequestCommand.cc
  3391. * src/FtpTunnelRequestCommand.h
  3392. * src/FtpTunnelResponseCommand.cc
  3393. * src/FtpTunnelResponseCommand.h
  3394. * src/HttpInitiateConnectionCommand.cc
  3395. * src/HttpProxyRequestCommand.cc
  3396. * src/HttpProxyRequestCommand.h
  3397. * src/HttpProxyResponseCommand.cc
  3398. * src/HttpProxyResponseCommand.h
  3399. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3400. Use SegmentMan::getSegment(cuid) for single file download.
  3401. * src/AbstractCommand.cc
  3402. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3403. Fixed bufSize calculation
  3404. * src/DownloadCommand.cc
  3405. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3406. Don't append "/" if base URI ends with "/".
  3407. * src/bittorrent_helper.cc
  3408. * test/url-list-multiFile.torrent
  3409. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3410. HTTP pipelining is now working. Fixed Segmention fault in
  3411. BitfieldMan's copy ctor.
  3412. * src/AbstractCommand.cc
  3413. * src/BitfieldMan.cc
  3414. * src/BitfieldMan.h
  3415. * src/DownloadCommand.cc
  3416. * src/HttpDownloadCommand.cc
  3417. * src/HttpRequest.cc
  3418. * src/SegmentMan.cc
  3419. * src/SegmentMan.h
  3420. * test/BitfieldManTest.cc
  3421. * test/SegmentManTest.cc
  3422. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3423. Removed ServerHost. Same functionality is implemented using
  3424. FileEntry's in-flight Request objects.
  3425. * src/AbstractCommand.cc
  3426. * src/BtDependency.cc
  3427. * src/CreateRequestCommand.cc
  3428. * src/FileEntry.cc
  3429. * src/FileEntry.h
  3430. * src/FtpNegotiationCommand.cc
  3431. * src/HttpResponseCommand.cc
  3432. * src/Makefile.am
  3433. * src/Metalink2RequestGroup.cc
  3434. * src/RequestGroup.cc
  3435. * src/RequestGroup.h
  3436. * src/ServerHost.cc: Removed
  3437. * src/ServerHost.h: Removed
  3438. * test/BtDependencyTest.cc
  3439. * test/FileEntryTest.cc
  3440. * test/RequestGroupTest.cc
  3441. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3442. Rewritten PeerStat handling. In the previous implementation,
  3443. faster command tries to find slower command. In this new
  3444. implementation, slower command tries to find faster command.
  3445. PeerStat is now created in each HTTP/FTP request to get download
  3446. rate correctly. If the download range is small, the download rate
  3447. tends to small and this will occur at the later stage of download.
  3448. * src/AbstractCommand.cc
  3449. * src/DownloadCommand.cc
  3450. * src/FileEntry.cc
  3451. * src/FileEntry.h
  3452. * src/Request.cc
  3453. * src/Request.h
  3454. * src/RequestGroup.h
  3455. * src/RequestGroupMan.cc
  3456. * src/SegmentMan.cc
  3457. * src/SegmentMan.h
  3458. * test/SegmentManTest.cc
  3459. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3460. Removed _uris from RequestGroup. All functions that refer to _uris
  3461. were moved to FileEntry. Exit status code are now defined in
  3462. DownloadResultCode.h.
  3463. * src/AbstractCommand.cc
  3464. * src/AdaptiveURISelector.cc
  3465. * src/AdaptiveURISelector.h
  3466. * src/AutoSaveCommand.cc
  3467. * src/BtPostDownloadHandler.cc
  3468. * src/CheckIntegrityDispatcherCommand.cc
  3469. * src/CookieStorage.cc
  3470. * src/DHTAutoSaveCommand.cc
  3471. * src/DHTBucketRefreshCommand.cc
  3472. * src/DHTEntryPointNameResolveCommand.cc
  3473. * src/DHTInteractionCommand.cc
  3474. * src/DHTPeerAnnounceCommand.cc
  3475. * src/DHTTokenUpdateCommand.cc
  3476. * src/DlAbortEx.h
  3477. * src/DlRetryEx.h
  3478. * src/DownloadCommand.cc
  3479. * src/DownloadContext.h
  3480. * src/DownloadFailureException.h
  3481. * src/DownloadResult.h
  3482. * src/DownloadResultCode.h
  3483. * src/FeedbackURISelector.cc
  3484. * src/FeedbackURISelector.h
  3485. * src/FileEntry.cc
  3486. * src/FileEntry.h
  3487. * src/FtpNegotiationCommand.cc
  3488. * src/HttpListenCommand.cc
  3489. * src/HttpResponseCommand.cc
  3490. * src/HttpServerResponseCommand.cc
  3491. * src/HttpSkipResponseCommand.cc
  3492. * src/InOrderURISelector.cc
  3493. * src/InOrderURISelector.h
  3494. * src/Makefile.am
  3495. * src/Makefile.in
  3496. * src/Metalink2RequestGroup.cc
  3497. * src/MultiUrlRequestInfo.cc
  3498. * src/MultiUrlRequestInfo.h
  3499. * src/OptionHandlerFactory.cc
  3500. * src/PeerListenCommand.cc
  3501. * src/RecoverableException.h
  3502. * src/RequestGroup.cc
  3503. * src/RequestGroup.h
  3504. * src/RequestGroupMan.cc
  3505. * src/RequestGroupMan.h
  3506. * src/TimedHaltCommand.cc
  3507. * src/TrackerWatcherCommand.cc
  3508. * src/URIResult.cc
  3509. * src/URIResult.h
  3510. * src/URISelector.h
  3511. * src/XmlRpcMethodImpl.cc
  3512. * src/bittorrent_helper.cc
  3513. * src/bittorrent_helper.h
  3514. * src/download_helper.cc
  3515. * src/main.cc
  3516. * src/option_processing.cc
  3517. * test/BtDependencyTest.cc
  3518. * test/BtPostDownloadHandlerTest.cc
  3519. * test/CookieStorageTest.cc
  3520. * test/DefaultBtMessageDispatcherTest.cc
  3521. * test/DownloadHandlerFactoryTest.cc
  3522. * test/DownloadHelperTest.cc
  3523. * test/FeedbackURISelectorTest.cc
  3524. * test/FileEntryTest.cc
  3525. * test/InOrderURISelectorTest.cc
  3526. * test/Metalink2RequestGroupTest.cc
  3527. * test/MetalinkPostDownloadHandlerTest.cc
  3528. * test/RequestGroupManTest.cc
  3529. * test/RequestGroupTest.cc
  3530. * test/XmlRpcMethodTest.cc
  3531. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3532. Removed MockBtContext.h
  3533. * test/Makefile.am
  3534. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3535. Removed _currentRequest from StreamCheckIntegrityEntry and
  3536. StreamFileAllocationEntry.
  3537. * src/AbstractCommand.cc
  3538. * src/HttpResponseCommand.cc
  3539. * src/RequestGroup.cc
  3540. * src/StreamCheckIntegrityEntry.cc
  3541. * src/StreamCheckIntegrityEntry.h
  3542. * src/StreamFileAllocationEntry.cc
  3543. * src/StreamFileAllocationEntry.h
  3544. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3545. Rewritten DownloadContext and removed SingleFileDownloadContext
  3546. and BtContext and its derived classes. BitTorrent specific
  3547. attributes are now set by DownloadContext::setAttribute() with key
  3548. bittorrent::BITTORRENT.
  3549. * src/AbstractBtMessage.cc
  3550. * src/AbstractBtMessage.h
  3551. * src/AbstractCommand.cc
  3552. * src/AbstractCommand.h
  3553. * src/AbstractProxyRequestCommand.cc
  3554. * src/AbstractProxyResponseCommand.cc
  3555. * src/ActivePeerConnectionCommand.cc
  3556. * src/ActivePeerConnectionCommand.h
  3557. * src/AnnounceList.cc
  3558. * src/BtCheckIntegrityEntry.cc
  3559. * src/BtConstants.h
  3560. * src/BtContext.h: Removed
  3561. * src/BtDependency.cc
  3562. * src/BtExtendedMessage.cc
  3563. * src/BtPieceMessage.cc
  3564. * src/BtPieceMessage.h
  3565. * src/BtPostDownloadHandler.cc
  3566. * src/BtRegistry.cc
  3567. * src/BtRegistry.h
  3568. * src/BtSetup.cc
  3569. * src/CheckIntegrityCommand.cc
  3570. * src/CheckIntegrityEntry.cc
  3571. * src/ChecksumCheckIntegrityEntry.cc
  3572. * src/ConsoleStatCalc.cc
  3573. * src/ContentTypeRequestGroupCriteria.cc
  3574. * src/DHTGetPeersCommand.cc
  3575. * src/DHTGetPeersCommand.h
  3576. * src/DHTPeerLookupTask.cc
  3577. * src/DHTPeerLookupTask.h
  3578. * src/DHTTaskFactory.h
  3579. * src/DHTTaskFactoryImpl.cc
  3580. * src/DHTTaskFactoryImpl.h
  3581. * src/DefaultBtAnnounce.cc
  3582. * src/DefaultBtAnnounce.h
  3583. * src/DefaultBtContext.cc: Removed
  3584. * src/DefaultBtContext.h: Removed
  3585. * src/DefaultBtInteractive.cc
  3586. * src/DefaultBtInteractive.h
  3587. * src/DefaultBtMessageDispatcher.cc
  3588. * src/DefaultBtMessageDispatcher.h
  3589. * src/DefaultBtMessageFactory.cc
  3590. * src/DefaultBtMessageFactory.h
  3591. * src/DefaultBtMessageReceiver.cc
  3592. * src/DefaultBtMessageReceiver.h
  3593. * src/DefaultBtProgressInfoFile.cc
  3594. * src/DefaultBtRequestFactory.cc
  3595. * src/DefaultBtRequestFactory.h
  3596. * src/DefaultExtensionMessageFactory.cc
  3597. * src/DefaultExtensionMessageFactory.h
  3598. * src/DefaultPeerStorage.cc
  3599. * src/DefaultPeerStorage.h
  3600. * src/DefaultPieceStorage.cc
  3601. * src/DefaultSegmentManFactory.cc
  3602. * src/DiskAdaptor.cc
  3603. * src/DiskAdaptor.h
  3604. * src/DownloadContext.cc
  3605. * src/DownloadContext.h
  3606. * src/DownloadEngine.cc
  3607. * src/DownloadEngineFactory.cc
  3608. * src/DownloadHandler.cc
  3609. * src/DownloadResult.h
  3610. * src/FileAllocationCommand.cc
  3611. * src/FileAllocationDispatcherCommand.cc
  3612. * src/FileAllocationEntry.cc
  3613. * src/FileEntry.h
  3614. * src/FillRequestGroupCommand.cc
  3615. * src/FtpDownloadCommand.cc
  3616. * src/FtpFinishDownloadCommand.cc
  3617. * src/FtpInitiateConnectionCommand.cc
  3618. * src/FtpNegotiationCommand.cc
  3619. * src/FtpTunnelRequestCommand.cc
  3620. * src/FtpTunnelResponseCommand.cc
  3621. * src/HandshakeExtensionMessage.cc
  3622. * src/HandshakeExtensionMessage.h
  3623. * src/HaveEraseCommand.cc
  3624. * src/HttpDownloadCommand.cc
  3625. * src/HttpInitiateConnectionCommand.cc
  3626. * src/HttpProxyRequestCommand.cc
  3627. * src/HttpProxyResponseCommand.cc
  3628. * src/HttpRequest.cc
  3629. * src/HttpRequest.h
  3630. * src/HttpRequestCommand.cc
  3631. * src/HttpResponseCommand.cc
  3632. * src/HttpServerBodyCommand.cc
  3633. * src/HttpServerCommand.cc
  3634. * src/HttpSkipResponseCommand.cc
  3635. * src/InitiateConnectionCommandFactory.cc
  3636. * src/InitiatorMSEHandshakeCommand.cc
  3637. * src/InitiatorMSEHandshakeCommand.h
  3638. * src/IteratableChecksumValidator.cc
  3639. * src/IteratableChecksumValidator.h
  3640. * src/IteratableChunkChecksumValidator.cc
  3641. * src/MSEHandshake.cc
  3642. * src/MSEHandshake.h
  3643. * src/Makefile.am
  3644. * src/Makefile.in
  3645. * src/Metalink2RequestGroup.cc
  3646. * src/MetalinkPostDownloadHandler.cc
  3647. * src/MultiDiskAdaptor.cc
  3648. * src/MultiDiskAdaptor.h
  3649. * src/MultiFileAllocationIterator.cc
  3650. * src/MultiUrlRequestInfo.cc
  3651. * src/PeerChokeCommand.cc
  3652. * src/PeerChokeCommand.h
  3653. * src/PeerInitiateConnectionCommand.cc
  3654. * src/PeerInitiateConnectionCommand.h
  3655. * src/PeerInteractionCommand.cc
  3656. * src/PeerInteractionCommand.h
  3657. * src/PeerReceiveHandshakeCommand.cc
  3658. * src/PieceHashCheckIntegrityEntry.cc
  3659. * src/RealtimeCommand.cc
  3660. * src/ReceiverMSEHandshakeCommand.cc
  3661. * src/RequestGroup.cc
  3662. * src/RequestGroup.h
  3663. * src/RequestGroupEntry.cc
  3664. * src/RequestGroupMan.cc
  3665. * src/SeedCheckCommand.cc
  3666. * src/SeedCheckCommand.h
  3667. * src/SegmentMan.cc
  3668. * src/ShareRatioSeedCriteria.h
  3669. * src/SingleFileDownloadContext.cc: Removed
  3670. * src/SingleFileDownloadContext.h: Removed
  3671. * src/SleepCommand.cc
  3672. * src/StreamCheckIntegrityEntry.cc
  3673. * src/TrackerWatcherCommand.cc
  3674. * src/TrackerWatcherCommand.h
  3675. * src/UnknownLengthPieceStorage.cc
  3676. * src/Util.cc
  3677. * src/Util.h
  3678. * src/XmlRpcMethodImpl.cc
  3679. * src/bittorrent_helper.cc
  3680. * src/bittorrent_helper.h
  3681. * src/download_helper.cc
  3682. * src/main.cc
  3683. * src/option_processing.cc
  3684. * test/BitfieldManTest.cc
  3685. * test/BittorrentHelperTest.cc
  3686. * test/BtCancelMessageTest.cc
  3687. * test/BtChokeMessageTest.cc
  3688. * test/BtDependencyTest.cc
  3689. * test/BtPieceMessageTest.cc
  3690. * test/BtPostDownloadHandlerTest.cc
  3691. * test/BtRegistryTest.cc
  3692. * test/BtRejectMessageTest.cc
  3693. * test/BtRequestMessageTest.cc
  3694. * test/DHTPeerAnnounceStorageTest.cc
  3695. * test/DefaultBtAnnounceTest.cc
  3696. * test/DefaultBtContextTest.cc: Removed
  3697. * test/DefaultBtMessageDispatcherTest.cc
  3698. * test/DefaultBtMessageFactoryTest.cc
  3699. * test/DefaultBtProgressInfoFileTest.cc
  3700. * test/DefaultBtRequestFactoryTest.cc
  3701. * test/DefaultExtensionMessageFactoryTest.cc
  3702. * test/DefaultPeerStorageTest.cc
  3703. * test/DefaultPieceStorageTest.cc
  3704. * test/DirectDiskAdaptorTest.cc
  3705. * test/DownloadContextTest.cc
  3706. * test/DownloadHandlerFactoryTest.cc
  3707. * test/DownloadHelperTest.cc
  3708. * test/HandshakeExtensionMessageTest.cc
  3709. * test/HttpRequestTest.cc
  3710. * test/HttpResponseTest.cc
  3711. * test/IteratableChecksumValidatorTest.cc
  3712. * test/IteratableChunkChecksumValidatorTest.cc
  3713. * test/MSEHandshakeTest.cc
  3714. * test/Makefile.am
  3715. * test/Makefile.in
  3716. * test/Metalink2RequestGroupTest.cc
  3717. * test/MetalinkPostDownloadHandlerTest.cc
  3718. * test/MockBtContext.h: Removed
  3719. * test/MockDHTTaskFactory.h
  3720. * test/MockDownloadContext.h: Removed
  3721. * test/MockPieceStorage.h
  3722. * test/MultiDiskAdaptorTest.cc
  3723. * test/MultiFileAllocationIteratorTest.cc
  3724. * test/RequestGroupManTest.cc
  3725. * test/RequestGroupTest.cc
  3726. * test/SegmentManTest.cc
  3727. * test/ShareRatioSeedCriteriaTest.cc
  3728. * test/SingleFileDownloadContextTest.cc: Removed
  3729. * test/UtilTest.cc
  3730. * test/XmlRpcMethodTest.cc
  3731. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Added experimental support of WEB-Seeding for multi-file torrent.
  3733. Due to fundamental changes in file handling in HTTP/FTP code, many
  3734. functions are not working: PeerStat, ServerHost, proxy..etc
  3735. * src/AbstractCommand.cc
  3736. * src/AbstractCommand.h
  3737. * src/BitfieldMan.cc
  3738. * src/BitfieldMan.h
  3739. * src/CreateRequestCommand.cc
  3740. * src/CreateRequestCommand.h
  3741. * src/DefaultPieceStorage.cc
  3742. * src/DefaultPieceStorage.h
  3743. * src/DownloadCommand.cc
  3744. * src/DownloadCommand.h
  3745. * src/DownloadContext.cc
  3746. * src/DownloadContext.h
  3747. * src/FileEntry.cc
  3748. * src/FileEntry.h
  3749. * src/FtpDownloadCommand.cc
  3750. * src/FtpDownloadCommand.h
  3751. * src/FtpFinishDownloadCommand.cc
  3752. * src/FtpFinishDownloadCommand.h
  3753. * src/FtpInitiateConnectionCommand.cc
  3754. * src/FtpInitiateConnectionCommand.h
  3755. * src/FtpNegotiationCommand.cc
  3756. * src/FtpNegotiationCommand.h
  3757. * src/FtpTunnelResponseCommand.cc
  3758. * src/HttpDownloadCommand.cc
  3759. * src/HttpDownloadCommand.h
  3760. * src/HttpInitiateConnectionCommand.cc
  3761. * src/HttpInitiateConnectionCommand.h
  3762. * src/HttpProxyResponseCommand.cc
  3763. * src/HttpRequest.cc
  3764. * src/HttpRequest.h
  3765. * src/HttpRequestCommand.cc
  3766. * src/HttpRequestCommand.h
  3767. * src/HttpResponseCommand.cc
  3768. * src/HttpResponseCommand.h
  3769. * src/HttpSkipResponseCommand.cc
  3770. * src/HttpSkipResponseCommand.h
  3771. * src/InitiateConnectionCommand.cc
  3772. * src/InitiateConnectionCommand.h
  3773. * src/InitiateConnectionCommandFactory.cc
  3774. * src/InitiateConnectionCommandFactory.h
  3775. * src/Makefile.am
  3776. * src/PieceStorage.h
  3777. * src/RequestGroup.cc
  3778. * src/RequestGroup.h
  3779. * src/RequestGroupMan.cc
  3780. * src/SegmentMan.cc
  3781. * src/SegmentMan.h
  3782. * src/SingleFileDownloadContext.h
  3783. * src/StreamFileAllocationEntry.cc
  3784. * src/TrackerWatcherCommand.cc
  3785. * src/UnknownLengthPieceStorage.cc
  3786. * src/UnknownLengthPieceStorage.h
  3787. * src/array_fun.h
  3788. * src/bitfield.h
  3789. * src/download_helper.cc
  3790. * test/DownloadContextTest.cc
  3791. * test/Makefile.am
  3792. * test/MockDownloadContext.h
  3793. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Added tellWaiting XML-RPC method.
  3795. * src/SingleFileDownloadContext.cc
  3796. * src/XmlRpcMethodFactory.cc
  3797. * src/XmlRpcMethodImpl.cc
  3798. * src/XmlRpcMethodImpl.h
  3799. * test/XmlRpcMethodTest.cc
  3800. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3801. Updated CookieStorageTest
  3802. * test/CookieStorageTest.cc
  3803. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3804. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3805. handle excepion inside these functions.
  3806. * src/LibgnutlsTLSContext.cc
  3807. * src/LibgnutlsTLSContext.h
  3808. * src/LibsslTLSContext.cc
  3809. * src/LibsslTLSContext.h
  3810. * src/MultiUrlRequestInfo.cc
  3811. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3812. Added comment
  3813. * src/RequestGroup.cc
  3814. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. In CookieStorage::load() and saveNsFormat(), handle exception
  3816. inside the functions. When saving Cookies, first write temporary
  3817. file and after successful writes, then renames it to final
  3818. destination.
  3819. * src/CookieStorage.cc
  3820. * src/CookieStorage.h
  3821. * src/MultiUrlRequestInfo.cc
  3822. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3823. The default value of --dir option is the absolute path to the
  3824. current directory. If getcwd() is failed, then it is ".", which is
  3825. the same value with old implementation. This change is necessary
  3826. because after daemon() call, the current working directory is
  3827. changed to /.
  3828. * src/File.cc
  3829. * src/File.h
  3830. * src/OptionHandlerFactory.cc
  3831. * src/option_processing.cc
  3832. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3833. Call daemon() with arguments(0,0), which means daemon() changes
  3834. current working directory to / and redirects stdin, stdout and
  3835. stderr to /dev/null.
  3836. * src/option_processing.cc
  3837. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3838. Small performance optimizations.
  3839. * src/RequestGroupMan.cc
  3840. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3842. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3843. * src/RequestGroupMan.cc
  3844. * src/RequestGroupMan.h
  3845. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3846. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3847. setNoWiat(true) if newly created command calls
  3848. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3849. * src/HttpListenCommand.cc
  3850. * src/HttpServerBodyCommand.cc
  3851. * src/HttpServerCommand.cc
  3852. * src/HttpServerResponseCommand.cc
  3853. * src/InitiateConnectionCommand.cc
  3854. * src/RequestGroup.cc
  3855. * src/StreamFileAllocationEntry.cc
  3856. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3857. Removed include vector
  3858. * src/BtRegistry.h
  3859. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3860. Rewritten BtRegistry
  3861. * src/BtRegistry.cc
  3862. * src/BtRegistry.h
  3863. * src/BtSetup.cc
  3864. * src/ConsoleStatCalc.cc
  3865. * src/PeerInteractionCommand.cc
  3866. * src/PeerReceiveHandshakeCommand.cc
  3867. * src/ReceiverMSEHandshakeCommand.cc
  3868. * src/RequestGroup.cc
  3869. * src/XmlRpcMethodImpl.cc
  3870. * test/BtRegistryTest.cc
  3871. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3872. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3873. * src/DefaultBtProgressInfoFile.cc
  3874. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Throw an exception if position is less than 0.
  3876. * src/XmlRpcMethodImpl.cc
  3877. * test/XmlRpcMethodTest.cc
  3878. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3879. Use writeFilePath() in ConsoleStatCalc.cc
  3880. * src/ConsoleStatCalc.cc
  3881. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3882. Receive the return value as const reference from
  3883. DownloadContext::getFileEntries().
  3884. * src/DefaultPieceStorage.cc
  3885. * src/RequestGroupMan.cc
  3886. * src/XmlRpcMethodImpl.cc
  3887. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3888. DownloadContext now has _fileEntries so that
  3889. DownloadContext::getFileEntries() can returns its const reference.
  3890. * src/DefaultBtContext.cc
  3891. * src/DefaultBtContext.h
  3892. * src/DownloadContext.cc
  3893. * src/DownloadContext.h
  3894. * src/SingleFileDownloadContext.cc
  3895. * src/SingleFileDownloadContext.h
  3896. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3898. writeFilePath() function template from RequestGroupMan.cc to
  3899. FileEntry.h
  3900. * src/FileEntry.h
  3901. * src/RequestGroupMan.cc
  3902. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Documented 'position' parameter is starting from 0 in man page.
  3904. * doc/aria2c.1.txt
  3905. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. Updated doc.
  3907. * src/MSEHandshake.cc
  3908. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3909. Removed _acceptFeatures and its accessor functions from
  3910. RequestGroup since they are not used practically.
  3911. * src/HttpRequestCommand.cc
  3912. * src/RequestGroup.cc
  3913. * src/RequestGroup.h
  3914. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Removed member _maxTries from RequestGroup class to avoid
  3916. duplicate option value. Those classes who refer this variable
  3917. should use option value of PREF_MAX_TRIES directly.
  3918. * src/AbstractCommand.cc
  3919. * src/RequestGroup.cc
  3920. * src/RequestGroup.h
  3921. * src/TrackerWatcherCommand.cc
  3922. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. * Release 1.4.1
  3924. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3925. Fixed compiler warnings on netbsd
  3926. * src/DHTConnectionImpl.cc
  3927. * src/PeerListenCommand.cc
  3928. * src/PeerSessionResource.cc
  3929. * src/SegmentMan.cc
  3930. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3931. Updated Ukrainian translation. Thanks to all translators.
  3932. * po/uk.po
  3933. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. Bump up version number to 1.4.1.
  3935. * configure.ac
  3936. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3937. Added unit tests for strjoin, strconcat and strappend.
  3938. * test/a2functionalTest.cc
  3939. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3940. Rewritten strconcat and strappend using operator+ instead of
  3941. append().
  3942. * src/a2functional.h
  3943. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3944. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3945. is enabled.
  3946. * src/Makefile.am
  3947. * test/Makefile.am
  3948. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Added countSeeder() function which counts seeder in the given
  3950. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3951. * src/ConsoleStatCalc.cc
  3952. * src/Peer.h
  3953. * src/XmlRpcMethodImpl.cc
  3954. * test/PeerTest.cc
  3955. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3956. Documented missing seeder in getPeers xml-rpc method.
  3957. Documented uploadLength and numSeeders.
  3958. * doc/aria2c.1.txt
  3959. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3960. Added uploadLength and numSeeders to the response of tellStatus
  3961. xml-rpc method. Assert that PeerStorage instance is not null
  3962. instead of checking if statement. It should be non-null in this
  3963. context.
  3964. * src/XmlRpcMethodImpl.cc
  3965. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3966. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3967. * src/XmlRpcResponse.cc
  3968. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3969. Avoid intermediate object during string concatenation.
  3970. * src/HttpRequest.cc
  3971. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3972. Added strjoin function template. Use it in pathJoin()
  3973. * src/Util.h
  3974. * src/a2functional.h
  3975. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3976. Avoid intermediate object during string concatenation. Replaced
  3977. post-increment unary operator with pre-increment one in for loop.
  3978. * src/AdaptiveURISelector.cc
  3979. * src/AnnounceList.cc
  3980. * src/AuthConfig.h
  3981. * src/BtBitfieldMessage.cc
  3982. * src/BtExtendedMessage.cc
  3983. * src/BtHandshakeMessage.cc
  3984. * src/BtPieceMessage.cc
  3985. * src/BtPortMessage.cc
  3986. * src/Cookie.cc
  3987. * src/DHTAnnouncePeerMessage.cc
  3988. * src/DHTAutoSaveCommand.cc
  3989. * src/DHTGetPeersReplyMessage.cc
  3990. * src/DHTNode.cc
  3991. * src/DHTQueryMessage.cc
  3992. * src/DHTResponseMessage.cc
  3993. * src/DHTUnknownMessage.cc
  3994. * src/DefaultBtAnnounce.cc
  3995. * src/DefaultBtContext.cc
  3996. * src/DefaultBtInteractive.cc
  3997. * src/DefaultBtProgressInfoFile.cc
  3998. * src/DefaultPeerStorage.cc
  3999. * src/DownloadEngine.cc
  4000. * src/FeatureConfig.cc
  4001. * src/File.cc
  4002. * src/FtpConnection.cc
  4003. * src/FtpNegotiationCommand.cc
  4004. * src/HandshakeExtensionMessage.cc
  4005. * src/HttpConnection.cc
  4006. * src/HttpRequest.cc
  4007. * src/HttpResponseCommand.cc
  4008. * src/HttpServer.cc
  4009. * src/IndexBtMessage.cc
  4010. * src/Metalink2RequestGroup.cc
  4011. * src/OptionHandlerImpl.h
  4012. * src/PStringBuildVisitor.cc
  4013. * src/Peer.cc
  4014. * src/PeerListenCommand.cc
  4015. * src/Piece.cc
  4016. * src/RangeBtMessage.cc
  4017. * src/Request.cc
  4018. * src/Request.h
  4019. * src/RequestGroup.cc
  4020. * src/RequestGroupMan.cc
  4021. * src/ServerStat.cc
  4022. * src/ServerStatMan.cc
  4023. * src/UTPexExtensionMessage.cc
  4024. * src/Util.cc
  4025. * src/a2functional.h
  4026. * src/download_helper.cc
  4027. * src/messageDigest.cc
  4028. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4029. Unchoke a peer randomly at first and second choke round in seed
  4030. state.
  4031. * src/BtSeederStateChoke.cc
  4032. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4033. Added (sock_t) to quiet compiler warnings in MinGW
  4034. * src/SocketCore.cc
  4035. * src/SocketCore.h
  4036. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4037. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4038. * src/EpollEventPoll.h
  4039. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4040. Added fork() emulation using CreateProcess() in MinGW
  4041. * src/RequestGroupMan.cc
  4042. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4043. * Release 1.4.0
  4044. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4045. Added utf8.torrent to EXTRA_DIST
  4046. * test/Makefile.am
  4047. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4048. Fixed docs of aria2.addMetalink xml-rpc method.
  4049. * doc/aria2c.1.txt
  4050. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4051. Added Slovak translation. Updated Ukrainian and Brazilian
  4052. Portuguese translation. Thanks to all translators.
  4053. * po/sk.po
  4054. * po/uk.po
  4055. * po/pt_BR.po
  4056. * po/LINGUAS
  4057. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4058. Added test case for XmlRpcProcessor to fail to parse malformed
  4059. document.
  4060. * test/XmlRpcRequestProcessorTest.cc
  4061. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4062. Removed *.gmo files in po because they are generated on 'make
  4063. dist'
  4064. * po/*.gmo
  4065. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4066. Documented max-concurrent-downloads of changeGlobalOption method
  4067. in man page.
  4068. * doc/aria2c.1.txt
  4069. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4070. Added max-concurrent-downloads option to changeGlobalOption
  4071. xml-rpc method. Rewritten loop conditional in
  4072. RequestGroupMan::fillRequestGroupFromReserver().
  4073. * src/RequestGroupMan.cc
  4074. * src/RequestGroupMan.h
  4075. * src/XmlRpcMethod.cc
  4076. * src/XmlRpcMethodImpl.cc
  4077. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4078. Documented position parameter in man page.
  4079. * doc/aria2c.1.txt
  4080. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4081. Added 'position' parameter to addUri, addTorrent and addMetalink
  4082. xml-rpc method.
  4083. * src/RequestGroupMan.cc
  4084. * src/RequestGroupMan.h
  4085. * src/XmlRpcMethodImpl.cc
  4086. * test/XmlRpcMethodTest.cc
  4087. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4088. Removed Peer.cc from compile source list when --disable-bittorrent
  4089. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4090. takes Peer.
  4091. * src/DefaultPieceStorage.cc
  4092. * src/DefaultPieceStorage.h
  4093. * src/Makefile.am
  4094. * src/PieceStorage.h
  4095. * src/UnknownLengthPieceStorage.cc
  4096. * src/UnknownLengthPieceStorage.h
  4097. * test/MockPieceStorage.h
  4098. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4099. Implemented getter methods in header files to give them more
  4100. chance of optimization.
  4101. Return const reference for SharadHandle if possible.
  4102. * src/AbstractAuthResolver.cc
  4103. * src/AbstractAuthResolver.h
  4104. * src/AbstractBtMessage.cc
  4105. * src/AbstractBtMessage.h
  4106. * src/AbstractSingleDiskAdaptor.cc
  4107. * src/AbstractSingleDiskAdaptor.h
  4108. * src/AsyncNameResolver.cc
  4109. * src/AsyncNameResolver.h
  4110. * src/BNode.cc
  4111. * src/BNode.h
  4112. * src/BitfieldMan.cc
  4113. * src/BitfieldMan.h
  4114. * src/BtAbortOutstandingRequestEvent.h
  4115. * src/BtExtendedMessage.cc
  4116. * src/BtExtendedMessage.h
  4117. * src/BtSeederStateChoke.cc
  4118. * src/BtSeederStateChoke.h
  4119. * src/Cookie.cc
  4120. * src/Cookie.h
  4121. * src/DHTBucket.cc
  4122. * src/DHTBucket.h
  4123. * src/DHTConnectionImpl.cc
  4124. * src/DHTConnectionImpl.h
  4125. * src/DHTFindNodeReplyMessage.cc
  4126. * src/DHTFindNodeReplyMessage.h
  4127. * src/DHTGetPeersReplyMessage.cc
  4128. * src/DHTGetPeersReplyMessage.h
  4129. * src/DHTInteractionCommand.cc
  4130. * src/DHTMessage.cc
  4131. * src/DHTMessage.h
  4132. * src/DHTMessageDispatcherImpl.cc
  4133. * src/DHTMessageEntry.cc
  4134. * src/DHTMessageReceiver.cc
  4135. * src/DHTMessageReceiver.h
  4136. * src/DHTMessageTrackerEntry.cc
  4137. * src/DHTMessageTrackerEntry.h
  4138. * src/DHTPeerAnnounceEntry.cc
  4139. * src/DHTPeerAnnounceEntry.h
  4140. * src/DHTPeerLookupTask.cc
  4141. * src/DHTPeerLookupTask.h
  4142. * src/DHTRoutingTableDeserializer.cc
  4143. * src/DHTRoutingTableDeserializer.h
  4144. * src/DefaultBtAnnounce.cc
  4145. * src/DefaultBtAnnounce.h
  4146. * src/DefaultBtMessageDispatcher.cc
  4147. * src/DefaultBtMessageDispatcher.h
  4148. * src/DefaultBtRequestFactory.cc
  4149. * src/DefaultBtRequestFactory.h
  4150. * src/DiskAdaptor.cc
  4151. * src/DiskAdaptor.h
  4152. * src/DownloadContext.cc
  4153. * src/DownloadContext.h
  4154. * src/DownloadEngine.cc
  4155. * src/DownloadEngine.h
  4156. * src/EpollEventPoll.cc
  4157. * src/EpollEventPoll.h
  4158. * src/FtpConnection.cc
  4159. * src/FtpConnection.h
  4160. * src/HttpConnection.cc
  4161. * src/HttpConnection.h
  4162. * src/HttpHeader.cc
  4163. * src/HttpHeader.h
  4164. * src/HttpRequest.cc
  4165. * src/HttpRequest.h
  4166. * src/HttpResponse.cc
  4167. * src/HttpResponse.h
  4168. * src/LibsslTLSContext.cc
  4169. * src/LibsslTLSContext.h
  4170. * src/MSEHandshake.cc
  4171. * src/MSEHandshake.h
  4172. * src/MetalinkEntry.cc
  4173. * src/MetalinkEntry.h
  4174. * src/MetalinkParserController.cc
  4175. * src/MetalinkParserController.h
  4176. * src/MetalinkParserStateMachine.cc
  4177. * src/MetalinkParserStateMachine.h
  4178. * src/MultiDiskAdaptor.cc
  4179. * src/MultiDiskAdaptor.h
  4180. * src/NetrcAuthResolver.cc
  4181. * src/NetrcAuthResolver.h
  4182. * src/Peer.cc
  4183. * src/Peer.h
  4184. * src/PeerSessionResource.cc
  4185. * src/PeerSessionResource.h
  4186. * src/Piece.cc
  4187. * src/Piece.h
  4188. * src/PieceStatMan.cc
  4189. * src/PieceStatMan.h
  4190. * src/Request.cc
  4191. * src/Request.h
  4192. * src/RequestGroup.cc
  4193. * src/RequestGroup.h
  4194. * src/RequestGroupMan.cc
  4195. * src/RequestGroupMan.h
  4196. * src/RequestSlot.cc
  4197. * src/RequestSlot.h
  4198. * src/SegmentMan.cc
  4199. * src/SegmentMan.h
  4200. * src/SelectEventPoll.cc
  4201. * src/SelectEventPoll.h
  4202. * src/ServerStat.cc
  4203. * src/ServerStat.h
  4204. * src/Signature.cc
  4205. * src/Signature.h
  4206. * src/URIResult.cc
  4207. * src/URIResult.h
  4208. * src/UTPexExtensionMessage.cc
  4209. * src/UTPexExtensionMessage.h
  4210. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4211. Fixed compile error without BitTorrent and Metalink support.
  4212. * src/XmlRpcMethod.cc
  4213. * src/XmlRpcMethodFactory.cc
  4214. * src/XmlRpcMethodImpl.cc
  4215. * src/XmlRpcMethodImpl.h
  4216. * test/XmlRpcMethodTest.cc
  4217. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4218. Rewritten the help message for --allow-overwrite option.
  4219. * doc/aria2c.1.txt
  4220. * src/usage_text.h
  4221. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4222. Fixed typo
  4223. * doc/aria2c.1.txt
  4224. * src/usage_text.h
  4225. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4226. Updated README for 1.4.0 release. Use new table syntax of
  4227. asciidoc.
  4228. * README
  4229. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4230. Documented --xml-rpc-max-request-size option in man page.
  4231. * doc/aria2c.1.txt
  4232. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4233. Moved C_* constants from BtContext to DefaultBtContext.
  4234. * src/BtContext.cc: Removed.
  4235. * src/BtContext.h
  4236. * src/DefaultBtContext.cc
  4237. * src/DefaultBtContext.h
  4238. * src/Makefile.am
  4239. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4240. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4241. path key respectively when persing .torrent file.
  4242. * src/BtContext.cc
  4243. * src/BtContext.h
  4244. * src/DefaultBtContext.cc
  4245. * test/DefaultBtContextTest.cc
  4246. * test/utf8.torrent
  4247. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4248. Added --xml-rpc-max-request-size option to limit the size of
  4249. XML-RPC request.
  4250. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4251. Documented XML-RPC API in man page.
  4252. * doc/aria2c.1.txt
  4253. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4254. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4255. will break strict-aliasing rules
  4256. * src/PeerConnection.cc
  4257. * test/DHTRoutingTableSerializerTest.cc
  4258. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4259. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4260. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4261. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4262. PKG_CHECK_MODULES macro uses latter name.
  4263. * m4/sqlite3.m4
  4264. * src/Makefile.am
  4265. * test/Makefile.am
  4266. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4267. Fixed typo
  4268. * configure.ac
  4269. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4270. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4271. presence of libgnutls using pkg-config first. If it fails, fall
  4272. back to old macro libgnutls.m4.
  4273. * configure.ac
  4274. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4275. Use s itself instead of !s.bad()
  4276. * src/CookieStorage.cc
  4277. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4278. Documented --on-download-* option and --save-cookies option in man
  4279. page.
  4280. * doc/aria2c.1.txt
  4281. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4282. Set possible values for --load-cookie option to "/path/to/file".
  4283. * src/OptionHandlerFactory.cc
  4284. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4285. Added --save-cookies option.
  4286. * src/Cookie.cc
  4287. * src/Cookie.h
  4288. * src/CookieStorage.cc
  4289. * src/CookieStorage.h
  4290. * src/MultiUrlRequestInfo.cc
  4291. * src/OptionHandlerFactory.cc
  4292. * src/prefs.cc
  4293. * src/prefs.h
  4294. * src/usage_text.h
  4295. * test/CookieStorageTest.cc
  4296. * test/CookieTest.cc
  4297. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4298. Removed tellAll XML-RPC command because its reponse tends to be
  4299. big if stopped/waiting downloads pile up.
  4300. * src/XmlRpcMethodFactory.cc
  4301. * src/XmlRpcMethodImpl.cc
  4302. * src/XmlRpcMethodImpl.h
  4303. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4304. Added the ability to execute command when download starts and
  4305. stops. You can also specify command for particular cases such as
  4306. complete/error download. Added --on-download-start,
  4307. --on-download-stop, --on-download-complete and --on-download-error
  4308. option.
  4309. * src/OptionHandlerFactory.cc
  4310. * src/RequestGroupMan.cc
  4311. * src/prefs.cc
  4312. * src/prefs.h
  4313. * src/usage_text.h
  4314. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4315. Fixed test error
  4316. * test/BencodeTest.cc
  4317. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4318. Added unit tests.
  4319. * test/XmlRpcMethodTest.cc
  4320. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4321. Made exception message more verbose.
  4322. * src/bencode.cc
  4323. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4324. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4325. space in console readout. Also they are now shown in MiB/s if
  4326. speed > 1024KiB/s.
  4327. * src/ConsoleStatCalc.cc
  4328. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4329. Added SEED to console output, which represents the number of
  4330. seeders currently the client is connecting to.
  4331. * src/ConsoleStatCalc.cc
  4332. * src/ConsoleStatCalc.h
  4333. * src/DownloadEngine.cc
  4334. * src/NullStatCalc.h
  4335. * src/StatCalc.h
  4336. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Added source filename(__FILE__) and line number(__LINE__) to
  4338. exception message.
  4339. * src/AbstractCommand.cc
  4340. * src/AbstractDiskWriter.cc
  4341. * src/AbstractProxyResponseCommand.cc
  4342. * src/BDE.h
  4343. * src/BtAllowedFastMessage.cc
  4344. * src/BtHandshakeMessageValidator.h
  4345. * src/BtHaveAllMessage.cc
  4346. * src/BtHaveNoneMessage.cc
  4347. * src/BtPieceMessage.cc
  4348. * src/BtRejectMessage.cc
  4349. * src/ChunkedDecoder.cc
  4350. * src/CookieStorage.cc
  4351. * src/DHTAnnouncePeerMessage.cc
  4352. * src/DHTEntryPointNameResolveCommand.cc
  4353. * src/DHTMessageFactoryImpl.cc
  4354. * src/DHTMessageTracker.cc
  4355. * src/DHTRoutingTableDeserializer.cc
  4356. * src/DHTRoutingTableSerializer.cc
  4357. * src/DHTSetup.cc
  4358. * src/DHTTokenTracker.cc
  4359. * src/DefaultBtAnnounce.cc
  4360. * src/DefaultBtContext.cc
  4361. * src/DefaultBtInteractive.cc
  4362. * src/DefaultBtMessageFactory.cc
  4363. * src/DefaultBtProgressInfoFile.cc
  4364. * src/DefaultExtensionMessageFactory.cc
  4365. * src/DlAbortEx.h
  4366. * src/DlRetryEx.h
  4367. * src/DownloadCommand.cc
  4368. * src/DownloadEngineFactory.cc
  4369. * src/DownloadFailureException.h
  4370. * src/Exception.cc
  4371. * src/Exception.h
  4372. * src/ExpatMetalinkProcessor.cc
  4373. * src/ExpatXmlRpcRequestProcessor.cc
  4374. * src/FallocFileAllocationIterator.cc
  4375. * src/FatalException.h
  4376. * src/FtpConnection.cc
  4377. * src/FtpFinishDownloadCommand.cc
  4378. * src/FtpInitiateConnectionCommand.cc
  4379. * src/FtpNegotiationCommand.cc
  4380. * src/GZipDecoder.cc
  4381. * src/HandshakeExtensionMessage.cc
  4382. * src/HttpConnection.cc
  4383. * src/HttpHeaderProcessor.cc
  4384. * src/HttpInitiateConnectionCommand.cc
  4385. * src/HttpResponse.cc
  4386. * src/HttpResponseCommand.cc
  4387. * src/HttpServer.cc
  4388. * src/HttpSkipResponseCommand.cc
  4389. * src/InitiateConnectionCommandFactory.cc
  4390. * src/IteratableChunkChecksumValidator.cc
  4391. * src/LibgcryptARC4Context.h
  4392. * src/LibgcryptARC4Decryptor.h
  4393. * src/LibgcryptARC4Encryptor.h
  4394. * src/LibgcryptDHKeyExchange.h
  4395. * src/LibgnutlsTLSContext.cc
  4396. * src/LibsslARC4Context.h
  4397. * src/LibsslARC4Decryptor.h
  4398. * src/LibsslARC4Encryptor.h
  4399. * src/LibsslDHKeyExchange.h
  4400. * src/LibsslTLSContext.cc
  4401. * src/MSEHandshake.cc
  4402. * src/MessageDigestHelper.cc
  4403. * src/MetalinkHelper.cc
  4404. * src/MultiDiskAdaptor.cc
  4405. * src/NameMatchOptionHandler.h
  4406. * src/NameResolver.cc
  4407. * src/Netrc.cc
  4408. * src/NsCookieParser.cc
  4409. * src/OptionHandlerException.cc
  4410. * src/OptionHandlerException.h
  4411. * src/OptionHandlerImpl.h
  4412. * src/OptionParser.cc
  4413. * src/ParameterizedStringParser.cc
  4414. * src/PeerAbstractCommand.cc
  4415. * src/PeerConnection.cc
  4416. * src/PeerMessageUtil.cc
  4417. * src/PeerReceiveHandshakeCommand.cc
  4418. * src/Platform.cc
  4419. * src/ReceiverMSEHandshakeCommand.cc
  4420. * src/RecoverableException.h
  4421. * src/RequestGroup.cc
  4422. * src/SimpleLogger.cc
  4423. * src/SocketCore.cc
  4424. * src/Sqlite3MozCookieParser.cc
  4425. * src/UTPexExtensionMessage.cc
  4426. * src/Util.cc
  4427. * src/XML2SAXMetalinkProcessor.cc
  4428. * src/Xml2XmlRpcRequestProcessor.cc
  4429. * src/XmlRpcMethodImpl.cc
  4430. * src/bencode.cc
  4431. * src/download_helper.cc
  4432. * src/messageDigest.h
  4433. * test/ExceptionTest.cc
  4434. * test/TestUtil.cc
  4435. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4436. Bump up version number to 1.4.0
  4437. * configure.ac
  4438. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4439. Added 2files.metalink to EXTRA_DIST
  4440. * test/Makefile.am
  4441. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4442. Added missing 2files.metalink
  4443. * test/2files.metalink
  4444. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4445. Show "[MEMORY]" prefix before filename in download summary if it
  4446. is downloaded into memory.
  4447. * src/DownloadResult.h
  4448. * src/RequestGroup.cc
  4449. * src/RequestGroupMan.cc
  4450. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4451. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4452. * src/ExpatXmlRpcRequestProcessor.cc
  4453. * src/Xml2XmlRpcRequestProcessor.cc
  4454. * src/message.h
  4455. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Defined const BDEs to avoid duplicate instantiation.
  4457. Defined MSG_GID_NOT_PROVIDED.
  4458. * src/XmlRpcMethodImpl.cc
  4459. * src/message.h
  4460. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4461. Code cleanup
  4462. * src/Xml2XmlRpcRequestProcessor.cc
  4463. * src/Xml2XmlRpcRequestProcessor.h
  4464. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4465. Defined ENABLE_XML_RPC
  4466. * configure.ac
  4467. * configure
  4468. * config.h.in
  4469. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4470. Added ExpatXmlRpcRequestProcessor
  4471. * src/ExpatXmlRpcRequestProcessor.cc
  4472. * src/ExpatXmlRpcRequestProcessor.h
  4473. * src/Makefile.am
  4474. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4475. Added tests for addTorrent and addMetalink command.
  4476. * test/TestUtil.cc
  4477. * test/TestUtil.h
  4478. * test/XmlRpcMethodTest.cc
  4479. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4480. Corrected the description of --file-allocation option.
  4481. * doc/aria2c.1.txt
  4482. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4483. Added tellAll command.
  4484. * src/XmlRpcMethodFactory.cc
  4485. * src/XmlRpcMethodImpl.cc
  4486. * src/XmlRpcMethodImpl.h
  4487. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4488. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4489. * src/XmlRpcMethodImpl.cc
  4490. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4491. Added changeGlobalOption command. Currently,
  4492. max-overall-download-limit and max-overall-upload-limit option are
  4493. available.
  4494. * src/RequestGroupMan.h
  4495. * src/XmlRpcMethod.cc
  4496. * src/XmlRpcMethod.h
  4497. * src/XmlRpcMethodFactory.cc
  4498. * src/XmlRpcMethodImpl.cc
  4499. * src/XmlRpcMethodImpl.h
  4500. * test/XmlRpcMethodTest.cc
  4501. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4502. Added changeOption command. Currently, max-download-limit,
  4503. max-upload-limit option are available in this command.
  4504. * src/RequestGroup.h
  4505. * src/XmlRpcMethod.cc
  4506. * src/XmlRpcMethod.h
  4507. * src/XmlRpcMethodFactory.cc
  4508. * src/XmlRpcMethodImpl.cc
  4509. * src/XmlRpcMethodImpl.h
  4510. * test/XmlRpcMethodTest.cc
  4511. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Added purgeDownloadResult command.
  4513. * src/RequestGroupMan.cc
  4514. * src/RequestGroupMan.h
  4515. * src/XmlRpcMethodFactory.cc
  4516. * src/XmlRpcMethodImpl.cc
  4517. * src/XmlRpcMethodImpl.h
  4518. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4519. Refactored.
  4520. * src/XmlRpcMethod.cc
  4521. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4522. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4523. XmlRpcResponse.
  4524. * src/HttpServerBodyCommand.cc
  4525. * src/Makefile.am
  4526. * src/XmlRpcMethod.cc
  4527. * src/XmlRpcMethod.h
  4528. * src/XmlRpcMethodImpl.cc
  4529. * src/XmlRpcResponse.cc
  4530. * src/XmlRpcResponse.h
  4531. * test/XmlRpcMethodTest.cc
  4532. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4533. In XML-RPC option struct, header and index-out option can take
  4534. array as value.
  4535. * src/XmlRpcMethod.cc
  4536. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4537. Removed unused option member from PeerConnection.
  4538. * src/InitiatorMSEHandshakeCommand.cc
  4539. * src/PeerConnection.cc
  4540. * src/PeerConnection.h
  4541. * src/PeerInteractionCommand.cc
  4542. * src/PeerReceiveHandshakeCommand.cc
  4543. * src/ReceiverMSEHandshakeCommand.cc
  4544. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4545. Added "seeder" key to getPeers response.
  4546. * src/XmlRpcMethodImpl.cc
  4547. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Added addMetalink XML-RPC command.
  4549. * src/XmlRpcMethodFactory.cc
  4550. * src/XmlRpcMethodImpl.cc
  4551. * src/XmlRpcMethodImpl.h
  4552. * src/download_helper.cc
  4553. * src/download_helper.h
  4554. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4555. Fixed the bug that POU peers are never choked in seeding.
  4556. * src/BtSeederStateChoke.cc
  4557. * src/BtSeederStateChoke.h
  4558. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4559. Added web-seeding URI handling in addTorrent command.
  4560. * src/XmlRpcMethodImpl.cc
  4561. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4562. Added "length" key to getFiles response.
  4563. * src/XmlRpcMethodImpl.cc
  4564. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4565. Moved --no-netrc option from ftp option section to http/ftp option
  4566. section.
  4567. * doc/aria2c.1.txt
  4568. * src/OptionHandlerFactory.cc
  4569. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4570. Removed garbage "\" character before '
  4571. * doc/aria2c.1.txt
  4572. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4573. Removed garbage "\" character before http.
  4574. * doc/aria2c.1.txt
  4575. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4576. Documented additional options that can be specified in -i list.
  4577. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4578. and --xml-rpc-passwd. Removed --enable-http-server and
  4579. --http-server-listen-port.
  4580. * doc/aria2c.1.txt
  4581. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4582. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4583. * src/DefaultPeerStorage.cc
  4584. * src/DefaultPeerStorage.h
  4585. * src/PeerStorage.h
  4586. * src/XmlRpcMethodImpl.cc
  4587. * test/MockPeerStorage.h
  4588. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. Put a call to Socket::isReadable() in try block.
  4590. * src/HttpServerBodyCommand.cc
  4591. * src/HttpServerCommand.cc
  4592. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4593. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4594. exception , so it is now in try block.
  4595. * src/HttpServerResponseCommand.cc
  4596. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4597. Added "amChoking" and "peerChoking" key in getPeers response.
  4598. * src/XmlRpcMethodImpl.cc
  4599. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4600. Added test case for zero-length filter.
  4601. * test/BitfieldManTest.cc
  4602. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4603. getFiles command now returns file data for finished/stopped
  4604. downloads.
  4605. * src/XmlRpcMethodImpl.cc
  4606. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4607. DownloadResult now has the list of FileEntry. The download
  4608. summary displays the path of first selected file and the number of
  4609. remaining files for multi-file torrent.
  4610. * src/DownloadResult.h
  4611. * src/RequestGroup.cc
  4612. * src/RequestGroupMan.cc
  4613. * test/RequestGroupTest.cc
  4614. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4615. Fixed segmentation fault error when no file is selected in
  4616. multi-file torrent.
  4617. * src/BitfieldMan.cc
  4618. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4619. Escaped <,>,& character in XML-RPC response.
  4620. * src/XmlRpcMethod.cc
  4621. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4622. Throw DlAbortEx instead of FatalException during parsing options
  4623. because we don't want for aria2 to quit when bad option is passed
  4624. via XML-RPC.
  4625. * src/OptionHandlerException.cc
  4626. * src/OptionHandlerException.h
  4627. * src/OptionHandlerImpl.h
  4628. * src/OptionParser.cc
  4629. * src/OptionParser.h
  4630. * src/PStringSegment.cc
  4631. * src/ParameterizedStringParser.cc
  4632. * src/download_helper.cc
  4633. * test/ParameterizedStringParserTest.cc
  4634. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Selecting files are now done in
  4636. DefaultBtContext::setFileFileter().
  4637. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4638. functions are removed because they are no longer used. Creating
  4639. filter in BitfieldMan is done in new funtion
  4640. PieceStorage::setupFileFilter()
  4641. * src/BtContext.cc
  4642. * src/BtContext.h
  4643. * src/DefaultBtContext.cc
  4644. * src/DefaultBtContext.h
  4645. * src/DefaultPieceStorage.cc
  4646. * src/DefaultPieceStorage.h
  4647. * src/DiskAdaptor.cc
  4648. * src/DiskAdaptor.h
  4649. * src/PieceStorage.h
  4650. * src/RequestGroup.cc
  4651. * src/UnknownLengthPieceStorage.h
  4652. * src/XmlRpcMethodImpl.cc
  4653. * test/DefaultBtContextTest.cc
  4654. * test/MockBtContext.h
  4655. * test/MockPieceStorage.h
  4656. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4657. Fixed compile error on Mac OS X
  4658. * src/HttpServer.cc
  4659. * src/XmlRpcMethod.h
  4660. * src/XmlRpcMethodImpl.cc
  4661. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4662. Use std::binary_search instead of std::find
  4663. * src/DefaultPieceStorage.cc
  4664. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4665. Removed unnecessary BDE() call; leave them to implicit conversion.
  4666. * src/XmlRpcMethodImpl.cc
  4667. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4668. Return connections and gid in string
  4669. * src/XmlRpcMethodImpl.cc
  4670. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4671. Renamed addURI as addUri
  4672. * src/XmlRpcMethodFactory.cc
  4673. * src/XmlRpcMethodImpl.cc
  4674. * src/XmlRpcMethodImpl.h
  4675. * test/XmlRpcMethodTest.cc
  4676. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4677. Renamed addTorrentFile as addTorrent
  4678. * src/XmlRpcMethodFactory.cc
  4679. * src/XmlRpcMethodImpl.cc
  4680. * src/XmlRpcMethodImpl.h
  4681. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4682. The information for files, URIs, peers are removed from the
  4683. reponse of TellaActive, TellStatus command because they tend to be
  4684. large. Instead they can be retrieved by the dedicated commands:
  4685. getFiles, getUris and getPeers respectively.
  4686. * src/XmlRpcMethodFactory.cc
  4687. * src/XmlRpcMethodImpl.cc
  4688. * src/XmlRpcMethodImpl.h
  4689. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4690. Removed --max-overall-upload-limit and
  4691. --max-overall-download-limit option from listRequestOptions.
  4692. * src/download_helper.cc
  4693. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4694. Log incoming host in HttpListenCommand.
  4695. * src/HttpListenCommand.cc
  4696. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4697. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4698. --xml-rpc-passwd option.
  4699. * src/HttpServer.cc
  4700. * src/HttpServer.h
  4701. * src/HttpServerCommand.cc
  4702. * src/OptionHandlerFactory.cc
  4703. * src/prefs.cc
  4704. * src/prefs.h
  4705. * src/usage_text.h
  4706. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4707. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4708. processing 0 length request.
  4709. * src/HttpServerBodyCommand.cc
  4710. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4711. Removed --enable-http-server and --http-server-listen-port
  4712. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4713. instead. The original feature for --enable-http-server that
  4714. reports download progress in HTML was officially removed. Persist
  4715. XML-RPC connection if client supports keep-alive.
  4716. * src/DownloadEngineFactory.cc
  4717. * src/HttpServerCommand.cc
  4718. * src/HttpServerResponseCommand.cc
  4719. * src/Makefile.am
  4720. * src/Makefile.in
  4721. * src/OptionHandlerFactory.cc
  4722. * src/RequestGroupMan.cc
  4723. * src/main.cc
  4724. * src/option_processing.cc
  4725. * src/prefs.cc
  4726. * src/prefs.h
  4727. * src/usage_text.h
  4728. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4729. Added "uris" key to the response of tellStatus command. Added
  4730. "connections" key to the response of tellStatus and tellActive
  4731. command.
  4732. * src/XmlRpcMethodImpl.cc
  4733. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4734. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4735. Added TellStatusXmlRpcMethod. Remove command can now remove
  4736. waiting RequestGroup.
  4737. * src/RequestGroupMan.cc
  4738. * src/RequestGroupMan.h
  4739. * src/XmlRpcMethodFactory.cc
  4740. * src/XmlRpcMethodImpl.cc
  4741. * src/XmlRpcMethodImpl.h
  4742. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4743. Initialized _peerId
  4744. * src/Peer.cc
  4745. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4746. Return fault structure for error. FailXmlRpcMethod is renamed as
  4747. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4748. in non-torrent download. Return single param value.
  4749. * src/XmlRpcMethod.cc
  4750. * src/XmlRpcMethodFactory.cc
  4751. * src/XmlRpcMethodImpl.cc
  4752. * src/XmlRpcMethodImpl.h
  4753. * test/XmlRpcMethodTest.cc
  4754. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4755. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4756. command.
  4757. * src/RequestGroup.cc
  4758. * src/RequestGroup.h
  4759. * src/RequestGroupMan.cc
  4760. * src/XmlRpcMethodImpl.cc
  4761. * test/RequestGroupTest.cc
  4762. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4763. Added more options that can be specified in -i list and xml-rpc
  4764. add* command.
  4765. * src/download_helper.h
  4766. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4767. The available options in -i list should be listed in
  4768. listRequestOptions().
  4769. * src/download_helper.cc
  4770. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4771. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4772. command.
  4773. * src/XmlRpcMethodImpl.cc
  4774. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4775. Now RequestGroup has its own copy of Option object. This will help
  4776. to give custom option for each RequestGroup.
  4777. addTorrentFile command now takes options.
  4778. * src/AbstractCommand.cc
  4779. * src/AbstractCommand.h
  4780. * src/AbstractProxyRequestCommand.cc
  4781. * src/ActivePeerConnectionCommand.cc
  4782. * src/ActivePeerConnectionCommand.h
  4783. * src/AdaptiveURISelector.cc
  4784. * src/BtCheckIntegrityEntry.cc
  4785. * src/BtDependency.cc
  4786. * src/BtDependency.h
  4787. * src/BtFileAllocationEntry.cc
  4788. * src/BtPostDownloadHandler.cc
  4789. * src/CheckIntegrityEntry.cc
  4790. * src/DownloadCommand.cc
  4791. * src/FtpDownloadCommand.cc
  4792. * src/FtpFinishDownloadCommand.cc
  4793. * src/FtpInitiateConnectionCommand.cc
  4794. * src/FtpNegotiationCommand.cc
  4795. * src/HttpInitiateConnectionCommand.cc
  4796. * src/HttpRequestCommand.cc
  4797. * src/HttpResponseCommand.cc
  4798. * src/HttpSkipResponseCommand.cc
  4799. * src/InitiateConnectionCommand.cc
  4800. * src/InitiateConnectionCommandFactory.cc
  4801. * src/InitiatorMSEHandshakeCommand.cc
  4802. * src/InitiatorMSEHandshakeCommand.h
  4803. * src/Metalink2RequestGroup.cc
  4804. * src/Metalink2RequestGroup.h
  4805. * src/MetalinkPostDownloadHandler.cc
  4806. * src/MultiUrlRequestInfo.cc
  4807. * src/MultiUrlRequestInfo.h
  4808. * src/PeerAbstractCommand.cc
  4809. * src/PeerInteractionCommand.cc
  4810. * src/PeerInteractionCommand.h
  4811. * src/PeerReceiveHandshakeCommand.cc
  4812. * src/PeerReceiveHandshakeCommand.h
  4813. * src/RequestGroup.cc
  4814. * src/RequestGroup.h
  4815. * src/TrackerWatcherCommand.cc
  4816. * src/TrackerWatcherCommand.h
  4817. * src/XmlRpcMethod.cc
  4818. * src/XmlRpcMethod.h
  4819. * src/XmlRpcMethodImpl.cc
  4820. * src/download_helper.cc
  4821. * src/download_helper.h
  4822. * src/main.cc
  4823. * test/BtDependencyTest.cc
  4824. * test/BtPostDownloadHandlerTest.cc
  4825. * test/DefaultBtMessageDispatcherTest.cc
  4826. * test/DownloadHandlerFactoryTest.cc
  4827. * test/DownloadHelperTest.cc
  4828. * test/Metalink2RequestGroupTest.cc
  4829. * test/MetalinkPostDownloadHandlerTest.cc
  4830. * test/RequestGroupManTest.cc
  4831. * test/RequestGroupTest.cc
  4832. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4833. Added tellActiveStatus xml-rpc command which reports download
  4834. status of active downloads.
  4835. * src/XmlRpcMethodFactory.cc
  4836. * src/XmlRpcMethodImpl.cc
  4837. * src/XmlRpcMethodImpl.h
  4838. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4839. Added addTorrentFile xml-rpc command which receives uploaded
  4840. torrent file and add download for it.
  4841. * src/RequestGroupMan.cc
  4842. * src/XmlRpcMethodFactory.cc
  4843. * src/XmlRpcMethodImpl.cc
  4844. * src/XmlRpcMethodImpl.h
  4845. * src/download_helper.cc
  4846. * src/download_helper.h
  4847. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4848. Added remove xml-rpc command which removes specified download.
  4849. There is a known issue: the removed unfinished downloads are
  4850. reported ERR when aria2 exits. They should be reported as INPR.
  4851. * src/RequestGroupMan.cc
  4852. * src/RequestGroupMan.h
  4853. * src/XmlRpcMethodFactory.cc
  4854. * src/XmlRpcMethodImpl.cc
  4855. * src/XmlRpcMethodImpl.h
  4856. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4857. If --enable-http-server is enabled, don't stop aria2 when all
  4858. download finished and don't quit when no files to download at
  4859. start up.
  4860. * src/RequestGroupMan.cc
  4861. * src/main.cc
  4862. * src/option_processing.cc
  4863. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4864. Added missing AM_CONDITIONAL
  4865. * configure.ac
  4866. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4867. Added xml-rpc functionality. Currently only addURI commad is
  4868. supported. To enable xml-rpc, run aria2 with
  4869. --enable-http-server. This option name is temporal and will be
  4870. changed. The feature that reports download progress in html format
  4871. is temporarily disabled.
  4872. * src/HttpServer.cc
  4873. * src/HttpServer.h
  4874. * src/HttpServerBodyCommand.cc
  4875. * src/HttpServerBodyCommand.h
  4876. * src/HttpServerCommand.cc
  4877. * src/HttpServerResponseCommand.cc
  4878. * src/Makefile.am
  4879. * src/OptionParser.cc
  4880. * src/OptionParser.h
  4881. * src/RequestGroupMan.cc
  4882. * src/RequestGroupMan.h
  4883. * src/XmlRpcMethod.cc
  4884. * src/XmlRpcMethod.h
  4885. * src/XmlRpcMethodFactory.cc
  4886. * src/XmlRpcMethodFactory.h
  4887. * src/XmlRpcMethodImpl.cc
  4888. * src/XmlRpcMethodImpl.h
  4889. * src/download_helper.cc
  4890. * src/download_helper.h
  4891. * test/Makefile.am
  4892. * test/XmlRpcMethodTest.cc
  4893. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4894. Added xml-rpc request parser. The supported value types are:
  4895. i4/int, string, double, struct, array, base64. Currently only
  4896. libxml2 version is provided.
  4897. * src/Xml2XmlRpcRequestProcessor.cc
  4898. * src/Xml2XmlRpcRequestProcessor.h
  4899. * src/XmlRpcElements.cc
  4900. * src/XmlRpcElements.h
  4901. * src/XmlRpcRequest.h
  4902. * src/XmlRpcRequestParserController.cc
  4903. * src/XmlRpcRequestParserController.h
  4904. * src/XmlRpcRequestParserState.h
  4905. * src/XmlRpcRequestParserStateImpl.cc
  4906. * src/XmlRpcRequestParserStateImpl.h
  4907. * src/XmlRpcRequestParserStateMachine.cc
  4908. * src/XmlRpcRequestParserStateMachine.h
  4909. * src/XmlRpcRequestProcessor.h
  4910. * test/XmlRpcRequestParserControllerTest.cc
  4911. * test/XmlRpcRequestProcessorTest.cc
  4912. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4913. * Release 1.3.3
  4914. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4915. Fixed compile error since r1202.
  4916. * src/ExpatMetalinkProcessor.cc
  4917. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4918. Updated Ukrainian, Russian and Simplified Chinese
  4919. translations. Thanks to all translators.
  4920. * po/ru.po
  4921. * po/uk.po
  4922. * po/zh_CN.po
  4923. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4924. Pass reference of Option object instead of pointer.
  4925. * src/download_helper.cc
  4926. * src/download_helper.h
  4927. * src/main.cc
  4928. * test/DownloadHelperTest.cc
  4929. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4930. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4931. from option directly. Instead, get them from RequestGroup.
  4932. * src/ActivePeerConnectionCommand.cc
  4933. * src/ActivePeerConnectionCommand.h
  4934. * src/PeerReceiveHandshakeCommand.cc
  4935. * src/RequestGroup.h
  4936. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4937. Removed unused uploadLimitCheck and uploadLimit from
  4938. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4939. PeerInteractionCommand.
  4940. * src/PeerAbstractCommand.cc
  4941. * src/PeerAbstractCommand.h
  4942. * src/PeerInteractionCommand.cc
  4943. * src/PeerInteractionCommand.h
  4944. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4945. Fixed broken file renaming feature since r1202.
  4946. * src/FtpNegotiationCommand.cc
  4947. * src/FtpNegotiationCommand.h
  4948. * src/HttpResponseCommand.cc
  4949. * src/RequestGroup.cc
  4950. * src/RequestGroup.h
  4951. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4952. Removed unused debug log
  4953. * src/SocketCore.cc
  4954. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4955. Generated configure and Makefile.in using autoconf 2.63 and
  4956. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4957. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4958. * configure.ac
  4959. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4960. Moved piece statistics stuff to new PieceStatMan class.
  4961. Refactored PieceSelector interface.
  4962. * src/DefaultPieceStorage.cc
  4963. * src/DefaultPieceStorage.h
  4964. * src/LongestSequencePieceSelector.cc
  4965. * src/LongestSequencePieceSelector.h
  4966. * src/Makefile.am
  4967. * src/PieceSelector.h
  4968. * src/PieceStatMan.cc
  4969. * src/PieceStatMan.h
  4970. * src/RarestPieceSelector.cc
  4971. * src/RarestPieceSelector.h
  4972. * src/RequestGroup.cc
  4973. * test/DefaultPieceStorageTest.cc
  4974. * test/InOrderPieceSelector.h
  4975. * test/Makefile.am
  4976. * test/PieceStatManTest.cc
  4977. * test/RarestPieceSelectorTest.cc
  4978. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4979. Added static member _protocolFamily to SocketCore. By default,
  4980. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4981. address. Sometime SocketCore::bind() and
  4982. SocketCore::establishConnection() use difference protocl family
  4983. and latter cannot connect to former. To avoid this situation, we
  4984. limit protocol family to AF_INET for unit tests.
  4985. * src/SocketCore.cc
  4986. * src/SocketCore.h
  4987. * test/AllTest.cc
  4988. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4989. Avoid std::bad_alloc for negative bencode string length.
  4990. * src/bencode.cc
  4991. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4992. Supported segmented downloading with chunked transfer encoding and
  4993. content-length.
  4994. * src/DownloadCommand.cc
  4995. * src/HttpResponseCommand.cc
  4996. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4997. Bump up version number to 1.3.3
  4998. * configure.ac
  4999. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5000. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5001. from 4096 to 65536 (for insanely large ftp login banners)
  5002. * src/FtpConnection.h
  5003. * test/FtpConnectionTest.cc
  5004. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5005. In DefaultBtContext::getActualBasePath(), return first
  5006. FileEntry::getPath() for single file torrent.
  5007. * src/DefaultBtContext.cc
  5008. * test/DefaultBtContextTest.cc
  5009. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5010. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5011. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5012. Removed _directIOAllowed member from DiskWriter.
  5013. * src/AbstractDiskWriter.cc
  5014. * src/AbstractDiskWriter.h
  5015. * src/AbstractSingleDiskAdaptor.cc
  5016. * src/AbstractSingleDiskAdaptor.h
  5017. * src/BinaryStream.h
  5018. * src/ByteArrayDiskWriter.h
  5019. * src/DefaultPieceStorage.cc
  5020. * src/DiskWriter.h
  5021. * src/MultiDiskAdaptor.cc
  5022. * src/MultiDiskAdaptor.h
  5023. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5024. Now the constructor of AbstractDiskWriter takes filename as an
  5025. argument and filename argument is removed from openFile(),
  5026. initAndOpenFile(), openExistingFile() interface. storeDir member
  5027. and its accessor functions are removed from DiskAdaptor because it
  5028. is not used anymore. size() member function of DefaultDiskWriter,
  5029. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5030. opening file.
  5031. * src/AbstractDiskWriter.cc
  5032. * src/AbstractDiskWriter.h
  5033. * src/AbstractSingleDiskAdaptor.cc
  5034. * src/AbstractSingleDiskAdaptor.h
  5035. * src/ByteArrayDiskWriter.cc
  5036. * src/ByteArrayDiskWriter.h
  5037. * src/ByteArrayDiskWriterFactory.cc
  5038. * src/ByteArrayDiskWriterFactory.h
  5039. * src/DefaultDiskWriter.cc
  5040. * src/DefaultDiskWriter.h
  5041. * src/DefaultDiskWriterFactory.cc
  5042. * src/DefaultDiskWriterFactory.h
  5043. * src/DefaultPieceStorage.cc
  5044. * src/DirectDiskAdaptor.cc
  5045. * src/DirectDiskAdaptor.h
  5046. * src/DiskAdaptor.h
  5047. * src/DiskWriter.h
  5048. * src/DiskWriterFactory.h
  5049. * src/MessageDigestHelper.cc
  5050. * src/MultiDiskAdaptor.cc
  5051. * src/RequestGroup.cc
  5052. * src/UnknownLengthPieceStorage.cc
  5053. * src/Util.cc
  5054. * test/DefaultDiskWriterTest.cc
  5055. * test/DirectDiskAdaptorTest.cc
  5056. * test/FallocFileAllocationIteratorTest.cc
  5057. * test/MessageDigestHelperTest.cc
  5058. * test/MetalinkProcessorTest.cc
  5059. * test/MultiDiskAdaptorTest.cc
  5060. * test/MultiFileAllocationIteratorTest.cc
  5061. * test/SingleFileAllocationIteratorTest.cc
  5062. * test/UtilTest.cc
  5063. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Fixed the bug that aria2 aborts when --select-file is used. This
  5065. bug was introduced in r1199.
  5066. * src/MultiDiskAdaptor.cc
  5067. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5068. Code cleanup
  5069. * test/MockPieceStorage.cc
  5070. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5071. Fixed the bug that read-only file with wrong file size will cause
  5072. error because it cannot be truncated to the correct size. Now if
  5073. file size is different than the expected one, re-open file in
  5074. writable mode.
  5075. * src/AbstractSingleDiskAdaptor.cc
  5076. * src/AbstractSingleDiskAdaptor.h
  5077. * src/BtCheckIntegrityEntry.cc
  5078. * src/DiskAdaptor.h
  5079. * src/MultiDiskAdaptor.h
  5080. * src/RequestGroup.cc
  5081. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5082. Fixed the bug that with --check-integrity option aria2 reports
  5083. downloaded file size is 0 even if some parts of file is correctly
  5084. downloaded. This bug is reproducible for the download that a file
  5085. includes last piece is missing. This bug doesn't reveal for
  5086. single-torrent with file allocation on.
  5087. * src/IteratableChecksumValidator.cc
  5088. * test/IteratableChecksumValidatorTest.cc
  5089. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5090. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5091. * src/RequestGroupMan.cc
  5092. * src/AdaptiveURISelector.cc
  5093. * src/AdaptiveURISelector.h
  5094. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5095. * Release 1.3.2
  5096. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5097. Updated README
  5098. * README
  5099. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5100. Updated Ukrainian translations. Thanks to Alexander10.
  5101. * po/uk.po
  5102. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5103. Code cleanup
  5104. * src/MetalinkParserStateMachine.cc
  5105. * src/MetalinkParserStateMachine.h
  5106. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5107. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5108. and expat simultaneously, MetalinkProcessor is now not base class
  5109. and it is directly implemented in XML2SAXMetalinkProcessor and
  5110. ExpatMetalinkProcessor.
  5111. * src/ExpatMetalinkProcessor.cc
  5112. * src/ExpatMetalinkProcessor.h
  5113. * src/Makefile.am
  5114. * src/MetalinkHelper.cc
  5115. * src/MetalinkProcessor.h
  5116. * src/MetalinkProcessorFactory.cc: Removed.
  5117. * src/MetalinkProcessorFactory.h: Removed
  5118. * src/XML2SAXMetalinkProcessor.cc
  5119. * src/XML2SAXMetalinkProcessor.h
  5120. * test/MetalinkProcessorTest.cc
  5121. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5122. Bump up version number to 1.3.2
  5123. * configure.ac
  5124. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5125. Added missing file.
  5126. * test/Makefile.am
  5127. * test/url-list-singleFileEndsWithSlash.torrent
  5128. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5129. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5130. request.
  5131. * src/AnnounceList.cc
  5132. * src/AnnounceList.h
  5133. * src/BDE.cc: Added
  5134. * src/BDE.h: Added
  5135. * src/DHTAbstractMessage.cc
  5136. * src/DHTAbstractMessage.h
  5137. * src/DHTAnnouncePeerMessage.cc
  5138. * src/DHTAnnouncePeerMessage.h
  5139. * src/DHTAnnouncePeerReplyMessage.cc
  5140. * src/DHTAnnouncePeerReplyMessage.h
  5141. * src/DHTFindNodeMessage.cc
  5142. * src/DHTFindNodeMessage.h
  5143. * src/DHTFindNodeReplyMessage.cc
  5144. * src/DHTFindNodeReplyMessage.h
  5145. * src/DHTGetPeersMessage.cc
  5146. * src/DHTGetPeersMessage.h
  5147. * src/DHTGetPeersReplyMessage.cc
  5148. * src/DHTGetPeersReplyMessage.h
  5149. * src/DHTMessageFactory.h
  5150. * src/DHTMessageFactoryImpl.cc
  5151. * src/DHTMessageFactoryImpl.h
  5152. * src/DHTMessageReceiver.cc
  5153. * src/DHTMessageTracker.cc
  5154. * src/DHTMessageTracker.h
  5155. * src/DHTPingMessage.cc
  5156. * src/DHTPingMessage.h
  5157. * src/DHTPingReplyMessage.cc
  5158. * src/DHTPingReplyMessage.h
  5159. * src/DHTQueryMessage.cc
  5160. * src/DHTQueryMessage.h
  5161. * src/DHTResponseMessage.cc
  5162. * src/DHTResponseMessage.h
  5163. * src/DefaultBtAnnounce.cc
  5164. * src/DefaultBtContext.cc
  5165. * src/DefaultBtContext.h
  5166. * src/HandshakeExtensionMessage.cc
  5167. * src/Makefile.am
  5168. * src/PeerListProcessor.h
  5169. * src/UTPexExtensionMessage.cc
  5170. * src/bencode.cc
  5171. * src/bencode.h
  5172. * test/AnnounceListTest.cc
  5173. * test/BDETest.cc: Added
  5174. * test/BencodeTest.cc
  5175. * test/DHTAnnouncePeerMessageTest.cc
  5176. * test/DHTAnnouncePeerReplyMessageTest.cc
  5177. * test/DHTFindNodeMessageTest.cc
  5178. * test/DHTFindNodeReplyMessageTest.cc
  5179. * test/DHTGetPeersMessageTest.cc
  5180. * test/DHTGetPeersReplyMessageTest.cc
  5181. * test/DHTMessageFactoryImplTest.cc
  5182. * test/DHTMessageTrackerTest.cc
  5183. * test/DHTPingMessageTest.cc
  5184. * test/DHTPingReplyMessageTest.cc
  5185. * test/Makefile.am
  5186. * test/MockDHTMessageFactory.h
  5187. * test/PeerListProcessorTest.cc
  5188. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5189. Use url-list (web-seeding) only for single-file torrent. This is
  5190. basically the same behavior with Metalink file with torrent and
  5191. URIs.
  5192. * src/RequestGroup.cc
  5193. * src/DefaultBtContext.cc
  5194. * test/DefaultBtContextTest.cc
  5195. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5196. Rewritten expr
  5197. * src/array_fun.h
  5198. * test/array_funTest.cc
  5199. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5200. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5201. * src/DefaultBtMessageDispatcher.cc
  5202. * src/a2algo.h
  5203. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5204. Removed ExtendedMessagingAware. Instead of using inheritance,
  5205. added ExtensionMessageRegistry and it is passed to
  5206. DefaultExtensionMessageFactory.
  5207. * src/DefaultBtInteractive.cc
  5208. * src/DefaultBtInteractive.h
  5209. * src/DefaultExtensionMessageFactory.cc
  5210. * src/DefaultExtensionMessageFactory.h
  5211. * src/ExtendedMessagingAware.h: Removed.
  5212. * src/ExtensionMessageFactory.h
  5213. * src/ExtensionMessageRegistry.h: Added.
  5214. * src/Makefile.am
  5215. * src/PeerInteractionCommand.cc
  5216. * test/DefaultExtensionMessageFactoryTest.cc
  5217. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5218. Fixed typo in log messages
  5219. * src/MSEHandshake.cc
  5220. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5221. Fixed the bug that prevents torrent download from finishing. The
  5222. bug doesn't reveal for all torrents. The torrents affected this
  5223. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5224. of pieces.
  5225. * src/bitfield.h
  5226. * test/bitfieldTest.cc
  5227. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5228. Code cleanup
  5229. * src/PeerListProcessor.h
  5230. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5231. Removed RequestGroupAware
  5232. * src/AbstractCommand.cc
  5233. * src/AbstractCommand.h
  5234. * src/ActivePeerConnectionCommand.cc
  5235. * src/ActivePeerConnectionCommand.h
  5236. * src/DHTGetPeersCommand.cc
  5237. * src/DHTGetPeersCommand.h
  5238. * src/InitiatorMSEHandshakeCommand.cc
  5239. * src/InitiatorMSEHandshakeCommand.h
  5240. * src/Makefile.am
  5241. * src/PeerInitiateConnectionCommand.cc
  5242. * src/PeerInitiateConnectionCommand.h
  5243. * src/PeerInteractionCommand.cc
  5244. * src/PeerInteractionCommand.h
  5245. * src/RealtimeCommand.cc
  5246. * src/RealtimeCommand.h
  5247. * src/RequestGroupAware.cc: Removed
  5248. * src/RequestGroupAware.h: Removed
  5249. * src/SeedCheckCommand.cc
  5250. * src/SeedCheckCommand.h
  5251. * src/SleepCommand.cc
  5252. * src/TrackerWatcherCommand.cc
  5253. * src/TrackerWatcherCommand.h
  5254. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5255. Rewritten PeerListProcessor
  5256. * src/PeerListProcessor.h
  5257. * src/CompactPeerListProcessor.h: Removed
  5258. * src/CompactPeerListProcessor.cc: Removed
  5259. * src/DelegatingPeerListProcessor.cc: Removed.
  5260. * src/DefaultBtAnnounce.cc
  5261. * src/Makefile.am
  5262. * src/UTPexExtensionMessage.cc
  5263. * src/DefaultPeerListProcessor.h: Removed.
  5264. * src/DefaultPeerListProcessor.cc: Removed.
  5265. * src/DelegatingPeerListProcessor.h: Removed.
  5266. * test/Makefile.am
  5267. * test/PeerListProcessorTest.cc
  5268. * test/DefaultPeerListProcessorTest.cc: Removed.
  5269. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5270. Rewritten RequestGroupMan::calculateStat()
  5271. * src/RequestGroupMan.cc
  5272. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5273. Removed unnecessary virtual destructor for Request class.
  5274. * src/Request.cc
  5275. * src/Request.h
  5276. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5277. Avoid dynamic_pointer_cast.
  5278. * src/DHTGetPeersCommand.cc
  5279. * src/DHTGetPeersCommand.h
  5280. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5281. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5282. BtEvent.
  5283. * src/AbstractBtEventListener.h: Removed.
  5284. * src/AbstractBtMessage.cc
  5285. * src/AbstractBtMessage.h
  5286. * src/BtAbortOutstandingRequestEvent.h
  5287. * src/BtCancelSendingPieceEvent.h
  5288. * src/BtChokedEvent.h: Removed.
  5289. * src/BtChokingEvent.h
  5290. * src/BtEvent.h: Removed
  5291. * src/BtEventListener.h: Removed.
  5292. * src/BtMessage.h
  5293. * src/BtPieceMessage.cc
  5294. * src/BtPieceMessage.h
  5295. * src/BtRequestMessage.cc
  5296. * src/BtRequestMessage.h
  5297. * src/DefaultBtMessageDispatcher.cc
  5298. * src/Makefile.am
  5299. * src/a2functional.h
  5300. * test/BtPieceMessageTest.cc
  5301. * test/BtRequestMessageTest.cc
  5302. * test/DefaultBtMessageDispatcherTest.cc
  5303. * test/MockBtMessage.h
  5304. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5305. Code cleanup
  5306. * src/RequestGroupMan.cc
  5307. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5308. Code cleanup
  5309. * src/DownloadCommand.cc
  5310. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5311. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5312. byte.
  5313. * src/DownloadCommand.cc
  5314. * src/bitfield.h
  5315. * test/bitfieldTest.cc
  5316. Fixed the bug that causes infinite loop if broken web server
  5317. returns chunked response without last "0" chunk-size marker and
  5318. closes connection.
  5319. * src/DownloadCommand.cc
  5320. Instantiate properly configured HttpDownloadCommand for
  5321. non-resumable downlaods.
  5322. * src/HttpResponseCommand.cc
  5323. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Rewritten array operation functions.
  5325. * src/BitfieldMan.cc
  5326. * src/array_fun.h
  5327. * test/array_funTest.cc
  5328. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5329. Removed unused variable 'query'
  5330. * src/Request.cc
  5331. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5332. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5333. accidentally set to false in r1162.
  5334. * configure.ac
  5335. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5336. Code cleanup
  5337. * src/BNode.cc
  5338. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5339. Increase prefixLength for the bucket which doesn't own local node
  5340. ID when splitting bucket.
  5341. * src/DHTBucket.cc
  5342. * test/DHTBucketTest.cc
  5343. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5344. * Release 1.3.1
  5345. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5346. Bump up version number to 1.3.1
  5347. * configure.ac
  5348. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5349. Removed unused variable checkPoint. Also removed include directive
  5350. for TimeA2.h.
  5351. * src/SeedCheckCommand.h
  5352. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5353. Fixed the bug that upload limit exceeds the value specified in
  5354. --seed-ratio option depending on the timing of the execution of
  5355. SeedCheckCommand.
  5356. * src/SeedCheckCommand.cc
  5357. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5358. Fixed the bug that removed peer's session upload/download length
  5359. are counted twice in _cachedTransferStat before it is
  5360. re-calculated. This affected the calculation of shara ratio,
  5361. resulting aria2 wrongly determines that specified share ratio is
  5362. reached. Also fixed the typo in calculateStatFor function name.
  5363. * src/BtSetup.cc
  5364. * src/DefaultPeerStorage.cc
  5365. * src/ShareRatioSeedCriteria.h
  5366. * test/ShareRatioSeedCriteriaTest.cc
  5367. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5368. * Release 1.3.0
  5369. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5370. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5371. Nynorsk translations. Thanks to all translators.
  5372. * po/es.po
  5373. * po/ja.po
  5374. * po/nn.po
  5375. * po/ru.po
  5376. * po/uk.po
  5377. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5378. Rewritten isInRange()
  5379. * src/DHTBucket.cc
  5380. * test/DHTBucketTest.cc
  5381. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5382. Fixed typo
  5383. * doc/aria2c.1.txt
  5384. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5385. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5386. malloc/realloc is not used.
  5387. * src/configure.ac
  5388. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5389. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5390. char* bitfield instead of stl container for efficiency.
  5391. PieceSelector::select now takes this
  5392. bitfield. RarestPieceSelector::select now also performs
  5393. efficiently for this change. bitfield namespace is introduced and
  5394. it has several helper functions to handle basic bitfield
  5395. operations such as test, count set bits, etc.
  5396. * src/BitfieldMan.cc
  5397. * src/BitfieldMan.h
  5398. * src/DefaultBtRequestFactory.cc
  5399. * src/DefaultPieceStorage.cc
  5400. * src/DefaultPieceStorage.h
  5401. * src/LongestSequencePieceSelector.cc
  5402. * src/LongestSequencePieceSelector.h
  5403. * src/Makefile.am
  5404. * src/Piece.cc
  5405. * src/Piece.h
  5406. * src/PieceSelector.h
  5407. * src/RarestPieceSelector.cc
  5408. * src/RarestPieceSelector.h
  5409. * src/Util.cc
  5410. * src/Util.h
  5411. * src/bitfield.h
  5412. * test/BitfieldManTest.cc
  5413. * test/LongestSequencePieceSelectorTest.cc
  5414. * test/Makefile.am
  5415. * test/RarestPieceSelectorTest.cc
  5416. * test/UtilTest.cc
  5417. * test/bitfieldTest.cc
  5418. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5419. Made accepted socket non-block.
  5420. * src/FtpNegotiationCommand.cc
  5421. * src/HttpListenCommand.cc
  5422. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5423. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5424. * src/AbstractSingleDiskAdaptor.cc
  5425. * src/DefaultPieceStorage.cc
  5426. * src/DiskAdaptor.h
  5427. * src/DiskAdaptor.h
  5428. * src/MultiFileAllocationIterator.cc
  5429. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5430. Run
  5431. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5432. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5433. it doesn't need to be called every time when
  5434. DefaultBtInteractive::doInteractionProcessing() is called.
  5435. * src/DefaultBtInteractive.cc
  5436. * src/DefaultBtInteractive.h
  5437. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5438. Documented 'falloc' in man page.
  5439. * doc/aria2c.1.txt
  5440. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5441. Updated doc
  5442. * src/usage_text.h
  5443. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5444. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5445. allocation mode uses posix_fallocate() system call to allocate
  5446. file on disk. If you are using newer file systems such as ext4
  5447. (with extents support), btrfs or xfs, 'falloc' is your best
  5448. choice. It allocates large(few GiB) files almost instantly. Don't
  5449. use 'falloc' with legacy file systems such as ext3 because it
  5450. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5451. until allocation finishes. 'falloc' may not be available if your
  5452. system doesn't have posix_fallocate() system call.
  5453. * configure.ac
  5454. * src/AbstractDiskWriter.cc
  5455. * src/AbstractDiskWriter.h
  5456. * src/AbstractSingleDiskAdaptor.cc
  5457. * src/BinaryStream.h
  5458. * src/BtCheckIntegrityEntry.cc
  5459. * src/ByteArrayDiskWriter.h
  5460. * src/CheckIntegrityEntry.cc
  5461. * src/CheckIntegrityEntry.h
  5462. * src/DefaultPieceStorage.cc
  5463. * src/DiskAdaptor.cc
  5464. * src/DiskAdaptor.h
  5465. * src/DiskWriter.h
  5466. * src/FallocFileAllocationIterator.cc
  5467. * src/FallocFileAllocationIterator.h
  5468. * src/FileAllocationEntry.cc
  5469. * src/FileAllocationEntry.h
  5470. * src/Makefile.am
  5471. * src/MultiFileAllocationIterator.cc
  5472. * src/MultiFileAllocationIterator.h
  5473. * src/OptionHandlerFactory.cc
  5474. * src/RequestGroup.cc
  5475. * src/StreamCheckIntegrityEntry.cc
  5476. * src/prefs.cc
  5477. * src/prefs.h
  5478. * src/usage_text.h
  5479. * test/FallocFileAllocationIteratorTest.cc
  5480. * test/Makefile.am
  5481. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5482. Removed duplicate enableDirectIO() call.
  5483. * src/MultiFileAllocationIterator.cc
  5484. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5485. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5486. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5487. cost of std::rotate().
  5488. * src/RarestPieceSelector.cc
  5489. * src/RarestPieceSelector.h
  5490. * test/RarestPieceSelectorTest.cc
  5491. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5492. Updated usage doc for --bt-tracker-interval option.
  5493. * src/usage_text.h
  5494. * doc/aria2c.1.txt
  5495. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5496. Documented --bt-tracker-interval option in man page.
  5497. * doc/aria2c.1.txt
  5498. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5499. Added an option to specify the interval between tracker requests.
  5500. If non-zero value is specified, aria2 uses it and ignores the
  5501. interval value in the response of tracker. If zero is specified,
  5502. aria2 determines the inteval value based on the tarcker response
  5503. and download progress.
  5504. * src/DefaultBtAnnounce.cc
  5505. * src/DefaultBtAnnounce.h
  5506. * src/OptionHandlerFactory.cc
  5507. * src/RequestGroup.cc
  5508. * src/prefs.cc
  5509. * src/prefs.h
  5510. * src/usage_text.h
  5511. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5512. Added operator+=, operator-=, operator-
  5513. * src/TransferStat.cc
  5514. * src/TransferStat.h
  5515. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5516. Refactored RarestPieceSelector to reduce CPU load, especially for
  5517. addPieceStats.
  5518. * src/RarestPieceSelector.cc
  5519. * src/RarestPieceSelector.h
  5520. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5521. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5522. getAllMissingBlockIndexes to reduce a call to
  5523. array_function_base::operator[].
  5524. * src/BitfieldMan.cc
  5525. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5526. Cached TransferStat/download speed to avoid to sum them up in each
  5527. call.
  5528. * src/DefaultPeerStorage.cc
  5529. * src/DefaultPeerStorage.h
  5530. * src/SegmentMan.cc
  5531. * src/SegmentMan.h
  5532. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5533. Typedefed cuid_t as int32_t in Command.h
  5534. * src/CUIDCounter.h
  5535. * src/Command.cc
  5536. * src/Command.h
  5537. * src/DownloadEngine.cc
  5538. * src/DownloadEngine.h
  5539. * src/PeerStat.h
  5540. * src/SegmentMan.cc
  5541. * src/SegmentMan.h
  5542. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5543. Reduced the number of calls to PeerStorage::calculateStat() and
  5544. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5545. transfer rate.
  5546. * src/DefaultBtInteractive.cc
  5547. * src/DefaultBtMessageDispatcher.cc
  5548. * src/DefaultPeerStorage.cc
  5549. * src/DefaultPeerStorage.h
  5550. * src/DownloadCommand.cc
  5551. * src/DownloadEngine.cc
  5552. * src/PeerStorage.h
  5553. * src/SegmentMan.cc
  5554. * src/SegmentMan.h
  5555. * test/MockPeerStorage.h
  5556. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5557. Prepended _dir+"/" after joining path elements in torrent file.
  5558. * src/DefaultBtContext.cc
  5559. * test/DefaultBtContextTest.cc
  5560. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5561. Added missing IndexBtMessageValidator.h
  5562. * src/Makefile.am
  5563. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5564. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5565. Chinese translations. Thank you for contributing our project.
  5566. * po/id.po
  5567. * po/it.po
  5568. * po/ru.po
  5569. * po/uk.po
  5570. * po/zh_CN.po
  5571. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5572. Updated README
  5573. * README
  5574. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5575. Bump up version number to 1.3.0
  5576. * configure.ac
  5577. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5578. Updated doc
  5579. * src/DefaultBtContext.h
  5580. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5581. Slice/joinPath for name of single torrent.
  5582. * src/DefaultBtContext.cc
  5583. * test/DefaultBtContextTest.cc
  5584. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5585. Updated man page: Documented --dry-run and --index-out
  5586. options. Changed the default value of --uri-selector and
  5587. --http-auth-challenge options. Removed --direct-file-mapping
  5588. option. Added example for --index-out
  5589. * doc/aria2c.1.txt
  5590. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5591. Updated TEXT_DRY_RUN
  5592. * src/usage_text.h
  5593. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5594. Changed the default value of --uri-selector option from 'inorder'
  5595. to 'feedback'
  5596. * src/OptionHandlerFactory.cc
  5597. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5598. Included current URI in exception message.
  5599. * src/AbstractCommand.cc
  5600. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5601. Renamed ServerStatURISelector as FeedbackURISelector.
  5602. * src/FeedbackURISelector.cc
  5603. * src/FeedbackURISelector.h
  5604. * src/Makefile.am
  5605. * src/RequestGroupMan.cc
  5606. * src/ServerStatURISelector.cc
  5607. * src/ServerStatURISelector.h
  5608. * test/FeedbackURISelectorTest.cc
  5609. * test/Makefile.am
  5610. * test/ServerStatURISelectorTest.cc
  5611. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5612. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5613. all URIs are tested and their timeout is not reached.
  5614. * src/AdaptiveURISelector.cc
  5615. * src/AdaptiveURISelector.h
  5616. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5617. Changed the default value of --http-auth-challenge option to false.
  5618. * src/OptionHandlerFactory.cc
  5619. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5620. Reuse URIs when all unused URIs run out.
  5621. * src/OptionHandlerFactory.cc
  5622. * src/RequestGroup.cc
  5623. * src/prefs.cc
  5624. * src/prefs.h
  5625. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5626. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5627. and BtRejectMessage are derived from RangeBtMessage class.
  5628. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5629. derived from IndexBtMessage class. BtChokeMessage,
  5630. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5631. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5632. ZeroBtMessage class.
  5633. * src/AbstractBtMessage.cc
  5634. * src/AbstractBtMessage.h
  5635. * src/BtAllowedFastMessage.cc
  5636. * src/BtAllowedFastMessage.h
  5637. * src/BtAllowedFastMessageValidator.h: Removed
  5638. * src/BtBitfieldMessage.cc
  5639. * src/BtBitfieldMessage.h
  5640. * src/BtCancelMessage.cc
  5641. * src/BtCancelMessage.h
  5642. * src/BtCancelMessageValidator.h: Removed
  5643. * src/BtChokeMessage.cc
  5644. * src/BtChokeMessage.h
  5645. * src/BtExtendedMessage.cc
  5646. * src/BtExtendedMessage.h
  5647. * src/BtHandshakeMessage.cc
  5648. * src/BtHandshakeMessage.h
  5649. * src/BtHaveAllMessage.cc
  5650. * src/BtHaveAllMessage.h
  5651. * src/BtHaveMessage.cc
  5652. * src/BtHaveMessage.h
  5653. * src/BtHaveMessageValidator.h: Removed
  5654. * src/BtHaveNoneMessage.cc
  5655. * src/BtHaveNoneMessage.h
  5656. * src/BtInterestedMessage.cc
  5657. * src/BtInterestedMessage.h
  5658. * src/BtKeepAliveMessage.cc
  5659. * src/BtKeepAliveMessage.h
  5660. * src/BtNotInterestedMessage.cc
  5661. * src/BtNotInterestedMessage.h
  5662. * src/BtPieceMessage.cc
  5663. * src/BtPieceMessage.h
  5664. * src/BtPortMessage.cc
  5665. * src/BtPortMessage.h
  5666. * src/BtRejectMessage.cc
  5667. * src/BtRejectMessage.h
  5668. * src/BtRejectMessageValidator.h: Removed
  5669. * src/BtRequestMessage.cc
  5670. * src/BtRequestMessage.h
  5671. * src/BtRequestMessageValidator.h: Removed
  5672. * src/BtSuggestPieceMessage.cc
  5673. * src/BtSuggestPieceMessage.h
  5674. * src/BtSuggestPieceMessageValidator.h: Removed
  5675. * src/BtUnchokeMessage.cc
  5676. * src/BtUnchokeMessage.h
  5677. * src/DefaultBtMessageFactory.cc
  5678. * src/IndexBtMessage.cc
  5679. * src/IndexBtMessage.h
  5680. * src/IndexBtMessageValidator.h
  5681. * src/Makefile.am
  5682. * src/PeerMessageUtil.cc
  5683. * src/PeerMessageUtil.h
  5684. * src/RangeBtMessage.cc
  5685. * src/RangeBtMessage.h
  5686. * src/RangeBtMessageValidator.h
  5687. * src/SimpleBtMessage.cc
  5688. * src/SimpleBtMessage.h
  5689. * src/ZeroBtMessage.cc
  5690. * src/ZeroBtMessage.h
  5691. * test/BtRequestMessageTest.cc
  5692. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5693. Reverted usage_text.h to r1093 to avoid to lose translated
  5694. messages.
  5695. * src/usage_text.h
  5696. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5697. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5698. declared as non-const previously is now const and defined in class
  5699. definition.
  5700. * src/AbstractBtMessage.cc
  5701. * src/AbstractBtMessage.h
  5702. * src/BtAllowedFastMessage.cc
  5703. * src/BtAllowedFastMessage.h
  5704. * src/BtBitfieldMessage.h
  5705. * src/BtCancelMessage.cc
  5706. * src/BtCancelMessage.h
  5707. * src/BtChokeMessage.cc
  5708. * src/BtChokeMessage.h
  5709. * src/BtExtendedMessage.cc
  5710. * src/BtExtendedMessage.h
  5711. * src/BtHandshakeMessage.cc
  5712. * src/BtHandshakeMessage.h
  5713. * src/BtHaveAllMessage.cc
  5714. * src/BtHaveAllMessage.h
  5715. * src/BtHaveMessage.cc
  5716. * src/BtHaveMessage.h
  5717. * src/BtHaveNoneMessage.cc
  5718. * src/BtHaveNoneMessage.h
  5719. * src/BtInterestedMessage.cc
  5720. * src/BtInterestedMessage.h
  5721. * src/BtKeepAliveMessage.cc
  5722. * src/BtKeepAliveMessage.h
  5723. * src/BtMessage.h
  5724. * src/BtNotInterestedMessage.cc
  5725. * src/BtNotInterestedMessage.h
  5726. * src/BtPieceMessage.h
  5727. * src/BtPortMessage.cc
  5728. * src/BtPortMessage.h
  5729. * src/BtRejectMessage.cc
  5730. * src/BtRejectMessage.h
  5731. * src/BtRequestMessage.cc
  5732. * src/BtRequestMessage.h
  5733. * src/BtSuggestPieceMessage.cc
  5734. * src/BtSuggestPieceMessage.h
  5735. * src/BtUnchokeMessage.cc
  5736. * src/BtUnchokeMessage.h
  5737. * src/SimpleBtMessage.cc
  5738. * src/SimpleBtMessage.h
  5739. * test/MockBtMessage.h
  5740. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5741. Use FileEntry::exists()
  5742. * src/MultiDiskAdaptor.cc
  5743. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5744. Added exists()
  5745. * src/FileEntry.cc
  5746. * src/FileEntry.h
  5747. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5748. Added missing prefix dir.
  5749. * src/download_helper.cc
  5750. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5751. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5752. * src/CopyDiskAdaptor.cc: Removed
  5753. * src/CopyDiskAdaptor.h: Removed
  5754. * src/DefaultPieceStorage.cc
  5755. * src/Makefile.am
  5756. * src/OptionHandlerFactory.cc
  5757. * src/prefs.cc
  5758. * src/prefs.h
  5759. * src/usage_text.h
  5760. * test/CopyDiskAdaptorTest.cc: Removed
  5761. * test/Makefile.am
  5762. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5763. Rewritten isSameFileBeingDownloaded()
  5764. * src/RequestGroupMan.cc
  5765. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5766. Removed getName() from DownloadContext. getName() is declared in
  5767. BtContext.
  5768. * src/BtContext.h
  5769. * src/DownloadContext.h
  5770. * src/SingleFileDownloadContext.cc
  5771. * src/SingleFileDownloadContext.h
  5772. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5773. in AbstractSingleDiskAdaptor.
  5774. * src/AbstractSingleDiskAdaptor.h
  5775. * src/DiskAdaptor.h
  5776. * src/MultiDiskAdaptor.h
  5777. * src/RequestGroup.cc
  5778. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5779. MultiDiskAdaptor.
  5780. * src/DefaultPieceStorage.cc
  5781. * src/MultiDiskAdaptor.cc
  5782. * src/MultiDiskAdaptor.h
  5783. * test/MultiDiskAdaptorTest.cc
  5784. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5785. FileEntry::getPath() contains store(top level) directory to
  5786. simplify path handling operation. In the previous implementation,
  5787. store directory is concatenated to FileEntry::getPath() in
  5788. DownloadContext.
  5789. * src/BtDependency.cc
  5790. * src/BtPostDownloadHandler.cc
  5791. * src/CopyDiskAdaptor.cc
  5792. * src/DefaultBtContext.cc
  5793. * src/DirectDiskAdaptor.cc
  5794. * src/FileEntry.cc
  5795. * src/FileEntry.h
  5796. * src/FtpNegotiationCommand.cc
  5797. * src/HttpResponse.cc
  5798. * src/HttpResponseCommand.cc
  5799. * src/Metalink2RequestGroup.cc
  5800. * src/MultiDiskAdaptor.cc
  5801. * src/MultiDiskAdaptor.h
  5802. * src/MultiFileAllocationIterator.cc
  5803. * src/RequestGroup.cc
  5804. * src/SingleFileDownloadContext.cc
  5805. * src/SingleFileDownloadContext.h
  5806. * src/download_helper.cc
  5807. * test/BtDependencyTest.cc
  5808. * test/CopyDiskAdaptorTest.cc
  5809. * test/DefaultBtContextTest.cc
  5810. * test/DefaultBtProgressInfoFileTest.cc
  5811. * test/DirectDiskAdaptorTest.cc
  5812. * test/DownloadHelperTest.cc
  5813. * test/FileEntryTest.cc
  5814. * test/MultiDiskAdaptorTest.cc
  5815. * test/MultiFileAllocationIteratorTest.cc
  5816. * test/RequestGroupTest.cc
  5817. * test/SingleFileDownloadContextTest.cc
  5818. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5819. Fixed compiler warning
  5820. * src/download_helper.cc
  5821. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5822. Throw exception if same infohash torrent is now downloading.
  5823. * src/RequestGroup.cc
  5824. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5825. Added --dry-run option. In this mode, aria2 just checks whether
  5826. the remote file is available and doesn't download data. This
  5827. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5828. are canceled in this mode.
  5829. * src/FtpNegotiationCommand.cc
  5830. * src/HttpResponseCommand.cc
  5831. * src/HttpResponseCommand.h
  5832. * src/OptionHandlerFactory.cc
  5833. * src/RequestGroup.cc
  5834. * src/RequestGroupMan.cc
  5835. * src/prefs.cc
  5836. * src/prefs.h
  5837. * src/usage_text.h
  5838. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5839. Fixed compiler waring
  5840. * test/UriListParserTest.cc
  5841. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5842. Parse options in -i list using OptionParser.
  5843. * src/UriListParser.cc
  5844. * src/UriListParser.h
  5845. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5846. Don't reset URI in retry to avoid additional round trips because
  5847. of redirects.
  5848. * src/AbstractCommand.cc
  5849. * src/OptionHandlerFactory.cc
  5850. * src/prefs.cc
  5851. * src/prefs.h
  5852. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5853. Declared hide() in OptionHandler.
  5854. * src/NameMatchOptionHandler.h
  5855. * src/OptionHandler.h
  5856. * src/OptionHandlerImpl.h
  5857. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5858. Updated doc
  5859. * src/Peer.h
  5860. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5861. Added log message in setStatusInternal()
  5862. * src/ServerStat.cc
  5863. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5864. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5865. effectively exclude failed server.
  5866. * src/AbstractCommand.cc
  5867. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5868. Added --index-out option to specify each file path for torrent.
  5869. Here index shown in --show-files option is used to specify which
  5870. file path should be altered. For example, to change the file path
  5871. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5872. option multiple times: --index-out=1=aria2.tar.bz2
  5873. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5874. available. This option can be specified in -i list.
  5875. * src/DefaultBtContext.cc
  5876. * src/DefaultBtContext.h
  5877. * src/MultiDiskAdaptor.cc
  5878. * src/MultiDiskAdaptor.h
  5879. * src/MultiFileAllocationIterator.cc
  5880. * src/OptionHandlerFactory.cc
  5881. * src/OptionHandlerImpl.h
  5882. * src/Util.cc
  5883. * src/Util.h
  5884. * src/download_helper.cc
  5885. * src/prefs.cc
  5886. * src/prefs.h
  5887. * src/usage_text.h
  5888. * test/DefaultBtContextTest.cc
  5889. * test/MultiDiskAdaptorTest.cc
  5890. * test/MultiFileAllocationIteratorTest.cc
  5891. * test/UtilTest.cc
  5892. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5893. Use Util::pathJoin()
  5894. * src/MetalinkParserController.cc
  5895. * test/test.xml
  5896. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5897. Use Util::pathJoin()
  5898. * src/DefaultBtContext.cc
  5899. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5900. Added Util::pathJoin()
  5901. * src/Util.h
  5902. * test/UtilTest.cc
  5903. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5904. Applied basename function to remove directory element in
  5905. content-disposition value.
  5906. Return empty string if content-disposition value is ".." or ".".
  5907. * src/Util.cc
  5908. * test/UtilTest.cc
  5909. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5910. Added --max-overall-download-limit in man page.
  5911. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5912. * doc/aria2c.1.txt
  5913. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5914. Added --max-overall-download-limit option. Now --max-upload-limit
  5915. option is not ignored when --max-overall-upload-limit option has
  5916. non-zero value. aria2 checks download(upload) speed in the order:
  5917. first checks overall speed limit and if it is not exceeded, then
  5918. checks speed limit per download. Thus you can specify both
  5919. value. For example, set --max-overall-download-limit=1M and
  5920. --max-download-limit=500K to prevent from one download from eating
  5921. all overall speed limit.
  5922. * src/DefaultBtInteractive.cc
  5923. * src/DefaultBtInteractive.h
  5924. * src/DefaultBtMessageDispatcher.cc
  5925. * src/DefaultBtMessageDispatcher.h
  5926. * src/DownloadCommand.cc
  5927. * src/DownloadCommand.h
  5928. * src/FtpNegotiationCommand.cc
  5929. * src/HttpResponseCommand.cc
  5930. * src/OptionHandlerFactory.cc
  5931. * src/PeerInteractionCommand.cc
  5932. * src/RequestGroup.cc
  5933. * src/RequestGroup.h
  5934. * src/RequestGroupMan.cc
  5935. * src/RequestGroupMan.h
  5936. * src/prefs.cc
  5937. * src/prefs.h
  5938. * src/usage_text.h
  5939. * test/DefaultBtMessageDispatcherTest.cc
  5940. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5941. Documented select-file option in Input File section.
  5942. Documented --http-auth-challenge option.
  5943. * doc/aria2c.1.txt
  5944. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5945. Now select-file can be specified in the uri list(-i list).
  5946. * src/BtContext.cc
  5947. * src/BtContext.h
  5948. * src/RequestGroup.cc
  5949. * src/Sequence.h
  5950. * src/download_helper.cc
  5951. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5952. Made the upper value of --max-concurrent-downloads options unlimited.
  5953. * src/OptionHandlerFactory.cc
  5954. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5955. Fixed the bug that disk writer is not created even if it shares
  5956. same piece with the preceding file if the length of previous file
  5957. is 0.
  5958. * src/MultiDiskAdaptor.cc
  5959. * test/MultiDiskAdaptorTest.cc
  5960. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5961. In BitTorrent, Open files in read-only mode for hash check. After
  5962. that, re-open file in read/write mode only when the download is
  5963. not finished.
  5964. * src/AbstractDiskWriter.cc
  5965. * src/AbstractDiskWriter.h
  5966. * src/AbstractSingleDiskAdaptor.cc
  5967. * src/AbstractSingleDiskAdaptor.h
  5968. * src/BtCheckIntegrityEntry.cc
  5969. * src/DiskAdaptor.h
  5970. * src/DiskWriter.h
  5971. * src/MultiDiskAdaptor.cc
  5972. * src/MultiDiskAdaptor.h
  5973. * src/RequestGroup.cc
  5974. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5975. Added --http-auth-challenge option. If it is set to true(by
  5976. default), aria2 sends HTTP authorization header only when it is
  5977. requested by the server. If false is set, then authorization
  5978. header is always sent to the server. This is useful for servers
  5979. that don't respond 401 code when authentication is required.
  5980. There is an exception: if username and password are embedded in
  5981. URI, authorization header is always sent to the server regardless
  5982. of this option.
  5983. * src/AuthConfigFactory.cc
  5984. * src/HttpSkipResponseCommand.cc
  5985. * src/OptionHandlerFactory.cc
  5986. * src/prefs.cc
  5987. * src/prefs.h
  5988. * src/usage_text.h
  5989. * test/AuthConfigFactoryTest.cc
  5990. * test/HttpRequestTest.cc
  5991. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5992. * Release 1.2.0
  5993. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5994. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5995. Thanks to all translators.
  5996. * po/es.po
  5997. * po/ja.po
  5998. * po/ru.po
  5999. * po/uk.po
  6000. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6001. Call deleteSocketForReadCheck() before socket is closed.
  6002. * src/HttpListenCommand.cc
  6003. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6004. Defined virtual destructor for BObject.
  6005. * src/bencode.h
  6006. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6007. Rewritten BDE to make it efficient.
  6008. * src/bencode.cc
  6009. * src/bencode.h
  6010. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6011. Removed function throw list.
  6012. * src/bencode.cc
  6013. * src/bencode.h
  6014. * test/BencodeTest.cc
  6015. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6016. Enclosed all URLs in double quotes in command-line examples.
  6017. * doc/aria2c.1.txt
  6018. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6019. Updated reference/see also section.
  6020. * README
  6021. * doc/aria2c.1.txt
  6022. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6023. Reorganized man page based on man man-pages.
  6024. * doc/aria2c.1.txt
  6025. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6026. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6027. because same documents are available in man page. Added
  6028. References section.
  6029. * README
  6030. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6031. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6032. PERFORMANCE PROFILE section.
  6033. * doc/aria2c.1.txt
  6034. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6035. Rewritten the section for configuration file.
  6036. * README
  6037. * doc/aria2c.1.txt
  6038. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6039. Fixed the segmentation fault during execution of choking algorithm
  6040. in leecher state because of broken compare operator
  6041. implementation.
  6042. * src/BtLeecherStateChoke.cc
  6043. * src/BtLeecherStateChoke.h
  6044. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6045. Open file in binary mode.
  6046. * src/CookieStorage.cc
  6047. * src/DHTSetup.cc
  6048. * src/DHTUtil.cc
  6049. * src/Netrc.cc
  6050. * src/NsCookieParser.cc
  6051. * src/ProtocolDetector.cc
  6052. * src/RequestGroupMan.cc
  6053. * src/Signature.cc
  6054. * src/bencode.cc
  6055. * src/download_helper.cc
  6056. * src/option_processing.cc
  6057. * test/CookieParserTest.cc
  6058. * test/DefaultBtProgressInfoFileTest.cc
  6059. * test/FileTest.cc
  6060. * test/GZipDecoderTest.cc
  6061. * test/RequestGroupManTest.cc
  6062. * test/SignatureTest.cc
  6063. * test/SingleFileAllocationIteratorTest.cc
  6064. * test/UriListParserTest.cc
  6065. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6066. Removed operator[] because it is ambiguous with built-in []
  6067. operator.
  6068. * src/array_fun.h
  6069. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6070. Fixed compile error
  6071. * src/OptionParser.cc
  6072. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6073. Added missing call to arrayWrapperConst
  6074. * test/array_funTest.cc
  6075. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6076. Use array_wrapper instead of array_ptr.
  6077. * src/DHTRoutingTableDeserializer.cc
  6078. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6079. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6080. * src/array_fun.h
  6081. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6082. Added array_wrapper template.
  6083. * src/array_fun.h
  6084. * test/array_funTest.cc
  6085. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6086. Use operator T* of array_ptr.
  6087. * src/OptionParser.cc
  6088. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6089. Use localhost instead of 127.0.0.1
  6090. * test/FtpConnectionTest.cc
  6091. * test/MSEHandshakeTest.cc
  6092. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6093. Added operator T*
  6094. * src/array_fun.h
  6095. * test/array_funTest.cc
  6096. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6097. Use dynamically allocated char array to detect memory access
  6098. violation.
  6099. * src/DHTRoutingTableDeserializer.cc
  6100. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6101. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6102. defined.
  6103. * src/PeerMessageUtil.cc
  6104. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6105. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6106. * configure.ac
  6107. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6108. Added a check to see struct sockaddr_in has sin_len member.
  6109. * configure.ac
  6110. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6111. Fixed buffer overrun.
  6112. * src/DHTRoutingTableDeserializer.cc
  6113. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6114. Added LL for long long int constant.
  6115. * test/FtpConnectionTest.cc
  6116. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6117. Casted to unsigned int to suppress compiler warning on netbsd.
  6118. * src/BtRuntime.h
  6119. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6120. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6121. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6122. type time_t.
  6123. * src/SimpleLogger.cc
  6124. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6125. Added test for FtpConnection::receiveSizeResponse().
  6126. * test/FtpConnectionTest.cc
  6127. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6128. Fix epoll error on the old kernel 2.6.8 or ealier.
  6129. * src/EpollEventPoll.cc
  6130. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6131. Use Util::parseLLInt instead of sscanf for portability. The
  6132. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6133. * src/FtpConnection.cc
  6134. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6135. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6136. block. It should not filter anything.
  6137. * src/BitfieldMan.cc
  6138. * src/ConsoleStatCalc.cc
  6139. * test/BitfieldManTest.cc
  6140. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6141. Fixed the bug that the boolean options that don't take arguments
  6142. don't work.
  6143. * src/OptionHandlerImpl.h
  6144. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6145. Fixed broken selected file BitTorrent download.
  6146. * src/MultiDiskAdaptor.cc
  6147. * test/MultiDiskAdaptorTest.cc
  6148. * test/MultiFileAllocationIteratorTest.cc
  6149. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6150. Fixed #define guard for EpollEventPoll
  6151. * src/EpollEventPoll.h
  6152. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6153. Wait 2 seconds. 1 second is sometimes not enough.
  6154. * test/TimeSeedCriteriaTest.cc
  6155. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6156. Use localhost instead of 127.0.0.1.
  6157. * test/DHTConnectionImplTest.cc
  6158. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6159. Suppressed compiler warning.
  6160. * src/AdaptiveURISelector.cc
  6161. * src/DefaultPieceStorage.cc
  6162. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6163. Defined virtual destructor.
  6164. * src/MetalinkParserState.h
  6165. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6166. Give NULL for second argument of getaddrinfo instead of "0".
  6167. * src/NameResolver.cc
  6168. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6169. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6170. included strptime doesn't parse data for this format.
  6171. * src/FtpConnection.cc
  6172. * test/FtpConnectionTest.cc
  6173. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6174. Removed tests giving -1 for unsigned argument.
  6175. * test/SingleFileDownloadContextTest.cc
  6176. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6177. Don't use sha256 in tests because it might not be supported by the
  6178. SSL library.
  6179. * test/MetalinkProcessorTest.cc
  6180. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6181. Removed tests giving -1 for unsigned argument.
  6182. * test/AlphaNumberDecoratorTest
  6183. * test/BitfieldManTest.cc
  6184. * test/DefaultBtContextTest.cc
  6185. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6186. Fixed compile error without libcares when epoll is available.
  6187. * src/EpollEventPoll.cc
  6188. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6189. Included fstream instead of iostream.
  6190. * test/SignatureTest.cc
  6191. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6192. Removed #include <algorithm>
  6193. * test/RequestGroupTest.cc
  6194. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6195. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6196. using RequestGroup::extractURIResult().
  6197. * src/AdaptiveURISelector.cc
  6198. * src/RequestGroup.cc
  6199. * src/RequestGroup.h
  6200. * test/RequestGroupTest.cc
  6201. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6202. Added tests for array_ptr.
  6203. * test/array_funTest.cc
  6204. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6205. Don't send ip parameter to a tracker if ip parameter is empty
  6206. string.
  6207. * src/DefaultBtAnnounce.cc
  6208. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6209. Adjusted line feed.
  6210. * src/version_usage.cc
  6211. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6212. Print tags, possible values when OptionHandlerException is caught.
  6213. * src/option_processing.cc
  6214. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6215. Changed the message for FatalException.
  6216. * src/OptionParser.cc
  6217. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6218. Documented --bt-external-ip option in man page. Updated man pages
  6219. for --proxy-method option.
  6220. * doc/aria2c.1.txt
  6221. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6222. Use GET method for FTP via HTTP proxy.
  6223. * src/FtpInitiateConnectionCommand.cc
  6224. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6225. Changed the default value of --proxy-method option from 'tunnel'
  6226. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6227. option.
  6228. * src/AbstractCommand.cc
  6229. * src/AbstractCommand.h
  6230. * src/FtpInitiateConnectionCommand.cc
  6231. * src/HttpDownloadCommand.cc
  6232. * src/HttpInitiateConnectionCommand.cc
  6233. * src/HttpInitiateConnectionCommand.h
  6234. * src/OptionHandlerFactory.cc
  6235. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6236. Initialized _logger
  6237. * src/SelectEventPoll.cc
  6238. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6239. Defined a copy constructor for the same type.
  6240. * src/SharedHandle.h
  6241. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6242. Added OptionParser::parseArg() which internally uses getopt_long
  6243. to parse command-line options. All command-line options are now
  6244. configured by OptionHandler. No manual editing of struct option*
  6245. is required any more.
  6246. * src/NameMatchOptionHandler.h
  6247. * src/OptionHandler.h
  6248. * src/OptionHandlerFactory.cc
  6249. * src/OptionHandlerImpl.h
  6250. * src/OptionParser.cc
  6251. * src/OptionParser.h
  6252. * src/array_fun.h
  6253. * src/main.cc
  6254. * src/option_processing.cc
  6255. * test/OptionHandlerTest.cc
  6256. * test/OptionParserTest.cc
  6257. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6258. Fixed configure error with --disable-epoll
  6259. * configure.ac
  6260. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6261. Fixed compile error when HAVE_EPOLL is not defined.
  6262. Fixed linker error on bigendian systems.
  6263. * src/SocketCore.cc
  6264. * src/SocketCore.h
  6265. * test/DefaultBtProgressInfoFileTest.cc
  6266. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6267. Added --bt-external-ip option. You can specify the external IP
  6268. address to report to a BitTorrent tracker. Although this function
  6269. is named 'external', it can accept any kind of IP addresses.
  6270. * src/DefaultBtAnnounce.cc
  6271. * src/OptionHandlerFactory.cc
  6272. * src/option_processing.cc
  6273. * src/prefs.cc
  6274. * src/prefs.h
  6275. * src/usage_text.h
  6276. * test/DefaultBtAnnounceTest.cc
  6277. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6278. Extracted the algorithm to find the longest incremental sequence
  6279. as max_sequence template.
  6280. * src/LongestSequencePieceSelector.cc
  6281. * src/a2algo.h
  6282. * test/Makefile.am
  6283. * test/a2algoTest.cc
  6284. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6285. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6286. * src/usage_text.h
  6287. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6288. Updated doc for --uri-selector, --http-server-listen-port and
  6289. --enable-http-server option. Documented --event-poll option.
  6290. * doc/aria2c.1.txt
  6291. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6292. Updated doc for --enable-http-server.
  6293. * src/usage_text.h
  6294. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6295. Documented --http-server-listen-port and --enable-http-server in
  6296. man page.
  6297. * doc/aria2c.1.txt
  6298. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6299. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6300. translations. Thanks to all translators.
  6301. * po/es.po
  6302. * po/id.po
  6303. * po/it.po
  6304. * po/ru.po
  6305. * po/uk.po
  6306. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6307. Bump up version number to 1.2.0
  6308. * configure.ac
  6309. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6310. BtContext::getAnnounceTiers() now returns const reference.
  6311. * src/BtContext.h
  6312. * src/DefaultBtContext.cc
  6313. * src/DefaultBtContext.h
  6314. * test/MockBtContext.h
  6315. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6316. Change the number of retries for tracker request based on the
  6317. number of available tracker in a torrent file.
  6318. * src/TrackerWatcherCommand.cc
  6319. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6320. Added _maxTries property to RequestGroup and assign the option
  6321. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6322. RequestGroup::getMaxTries() instead of
  6323. Option::getAsInt(PREF_MAX_TRIES).
  6324. * src/AbstractCommand.cc
  6325. * src/RequestGroup.cc
  6326. * src/RequestGroup.h
  6327. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6328. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6329. Mandriva. I modified the patch: make RequestGroup have the
  6330. timeout value and AdaptiveURISelector directly modifies that
  6331. value.
  6332. * src/AbstractCommand.cc
  6333. * src/AdaptiveURISelector.cc
  6334. * src/AdaptiveURISelector.h
  6335. * src/FtpNegotiationCommand.cc
  6336. * src/RequestGroup.cc
  6337. * src/RequestGroup.h
  6338. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6339. Fixed compiler warning
  6340. * test/IteratableChecksumValidatorTest.cc
  6341. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6342. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6343. integrated downloads. This PieceSelector subclass finds the
  6344. longest continuous sequence in the available missing pieces and
  6345. selects the last index of such sequence. This makes HTTP/FTP
  6346. connections less interrupted by the pieces obtained by BitTorrent
  6347. peers.
  6348. * src/DefaultPieceStorage.cc
  6349. * src/DefaultPieceStorage.h
  6350. * src/LongestSequencePieceSelector.cc
  6351. * src/LongestSequencePieceSelector.h
  6352. * src/Makefile.am
  6353. * src/PieceSelector.h
  6354. * src/RarestPieceSelector.h
  6355. * src/RequestGroup.cc
  6356. * test/BtDependencyTest.cc
  6357. * test/DefaultPieceStorageTest.cc
  6358. * test/IteratableChecksumValidatorTest.cc
  6359. * test/LongestSequencePieceSelectorTest.cc
  6360. * test/Makefile.am
  6361. * test/SegmentManTest.cc
  6362. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6363. Fixed the bug that the average speed is wrong in
  6364. http/ftp/BitTorrent integrated download. Only the download bytes
  6365. in BitTorrent were considered.
  6366. * src/RequestGroup.cc
  6367. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6368. Choose port for BitTorrent/DHT randomly from the specified range.
  6369. * src/DHTConnectionImpl.cc
  6370. * src/PeerListenCommand.cc
  6371. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6372. Send HTTP Authorization header only if it is requested by the
  6373. server(response 401). There are some exceptions. The authorization
  6374. header for proxy is always sent if it is available without request
  6375. by the server. If username/password is specified in the URI, it
  6376. is immediately sent to the server without request by the server.
  6377. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6378. SharedHandle<AuthConfig>().
  6379. NetrcAuthResolver::resolveAuthConfig() returns
  6380. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6381. * src/AbstractAuthResolver.cc
  6382. * src/AbstractProxyRequestCommand.cc
  6383. * src/AuthConfigFactory.cc
  6384. * src/AuthConfigFactory.h
  6385. * src/HttpConnection.cc
  6386. * src/HttpRequest.cc
  6387. * src/HttpRequest.h
  6388. * src/HttpResponse.cc
  6389. * src/HttpResponseCommand.cc
  6390. * src/HttpSkipResponseCommand.cc
  6391. * test/AuthConfigFactoryTest.cc
  6392. * test/HttpRequestTest.cc
  6393. * test/HttpResponseTest.cc
  6394. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6395. Remove leading "--" from help keyword and a substring after "="
  6396. from help keyword, so that one can query options by '-h--max-' or
  6397. '-hmax-peers=10'.
  6398. * src/option_processing.cc
  6399. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6400. Rewritten PStringVisitor and its implementation.
  6401. * src/PStringBuildVisitor.cc
  6402. * src/PStringBuildVisitor.h
  6403. * src/PStringDatum.h
  6404. * src/PStringNumLoop.h
  6405. * src/PStringSegment.cc
  6406. * src/PStringSegment.h
  6407. * src/PStringSelect.h
  6408. * src/PStringVisitor.h
  6409. * src/download_helper.cc
  6410. * test/PStringBuildVisitorTest.cc
  6411. * test/ParameterizedStringParserTest.cc
  6412. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6413. Persist connection between the built-in HTTP server and a client
  6414. if a client supports keep-alive. Fixed the bug that aria2 exits
  6415. when the HTTP server receives EOF from a client.
  6416. * src/HttpServer.cc
  6417. * src/HttpServer.h
  6418. * src/HttpServerCommand.cc
  6419. * src/HttpServerCommand.h
  6420. * src/HttpServerResponseCommand.cc
  6421. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6422. Added experimental built-in HTTP server. Currently, when a client
  6423. accesses to the server, it responds with the current download
  6424. progress. By default, it is disabled. To enable the server, give
  6425. --enable-http-server option. To change the default port number
  6426. for the server to listen to, use --http-server-listen-port option.
  6427. The response HTML is very simple and refreshes it self each 1
  6428. second. Because of this refresh, you see flicker in normal web
  6429. browser such as Firefox. I recommend to use console-based browser
  6430. such as elinks, w3m. To connect to the server, run 'elinks
  6431. http://localhost:6800/' while running aria2. Please replace port
  6432. number '6800'(which is default) with your preference.
  6433. * src/DownloadEngineFactory.cc
  6434. * src/HttpHeader.cc
  6435. * src/HttpHeader.h
  6436. * src/HttpHeaderProcessor.cc
  6437. * src/HttpHeaderProcessor.h
  6438. * src/HttpListenCommand.cc
  6439. * src/HttpListenCommand.h
  6440. * src/HttpServer.cc
  6441. * src/HttpServer.h
  6442. * src/HttpServerCommand.cc
  6443. * src/HttpServerCommand.h
  6444. * src/HttpServerResponseCommand.cc
  6445. * src/HttpServerResponseCommand.h
  6446. * src/Makefile.am
  6447. * src/OptionHandlerFactory.cc
  6448. * src/Util.cc
  6449. * src/Util.h
  6450. * src/help_tags.h
  6451. * src/option_processing.cc
  6452. * src/prefs.cc
  6453. * src/prefs.h
  6454. * src/usage_text.h
  6455. * test/HttpHeaderProcessorTest.cc
  6456. * test/UtilTest.cc
  6457. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6458. Removed.
  6459. * src/CheckIntegrityMan.cc
  6460. * src/FileAllocationMan.cc
  6461. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6462. Made (piece) hash check sequential for each RequestGroup because
  6463. simultaneous hash check is slower than sequential execution.
  6464. * src/CheckIntegrityCommand.cc
  6465. * src/CheckIntegrityDispatcherCommand.cc
  6466. * src/CheckIntegrityDispatcherCommand.h
  6467. * src/CheckIntegrityMan.h
  6468. * src/ConsoleStatCalc.cc
  6469. * src/DownloadCommand.cc
  6470. * src/DownloadEngine.cc
  6471. * src/DownloadEngine.h
  6472. * src/DownloadEngineFactory.cc
  6473. * src/Makefile.am
  6474. * src/Makefile.in
  6475. * src/RequestGroup.cc
  6476. * src/StatCalc.h
  6477. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6478. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6479. SequentialDispatcherCommand.
  6480. * src/FileAllocationDispatcherCommand.cc
  6481. * src/SequentialDispatcherCommand.h
  6482. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6483. Rewritten FileAllocationDispatcherCommand using brand new
  6484. SequentialDispatcherCommand.
  6485. * src/DownloadEngineFactory.cc
  6486. * src/FileAllocationCommand.cc
  6487. * src/FileAllocationDispatcherCommand.cc
  6488. * src/FileAllocationDispatcherCommand.h
  6489. * src/Makefile.am
  6490. * src/SequentialDispatcherCommand.h
  6491. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6492. Replaced FileAllocationMan with
  6493. SequentialPicker<FileAllocationEntry>.
  6494. * src/BtCheckIntegrityEntry.cc
  6495. * src/ConsoleStatCalc.cc
  6496. * src/DownloadEngine.cc
  6497. * src/DownloadEngine.h
  6498. * src/DownloadEngineFactory.cc
  6499. * src/FileAllocationCommand.cc
  6500. * src/FileAllocationDispatcherCommand.cc
  6501. * src/FileAllocationMan.h
  6502. * src/Makefile.am
  6503. * src/SequentialPicker.h
  6504. * src/StatCalc.h
  6505. * src/StreamCheckIntegrityEntry.cc
  6506. * test/Makefile.am
  6507. * test/SequentialPickerTest.cc
  6508. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6509. Added doc for adaptive URI selector.
  6510. * doc/aria2c.1.txt
  6511. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6512. Added doc for adaptive URI selector.
  6513. * src/usage_text.h
  6514. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6515. Added doc for --bt-max-peers option.
  6516. * doc/aria2c.1.txt
  6517. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6518. Added doc for --bt-hash-check-seed option.
  6519. * doc/aria2c.1.txt
  6520. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6521. Documented exit codes.
  6522. * doc/aria2c.1.txt
  6523. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6524. Added --bt-max-peers option to specify the maximum number of peers
  6525. per torrent. 0 means unlimited number of peers.
  6526. * src/ActivePeerConnectionCommand.cc
  6527. * src/BtRuntime.h
  6528. * src/DefaultPeerStorage.cc
  6529. * src/DefaultPeerStorage.h
  6530. * src/OptionHandlerFactory.cc
  6531. * src/RequestGroup.cc
  6532. * src/option_processing.cc
  6533. * src/prefs.cc
  6534. * src/prefs.h
  6535. * src/usage_text.h
  6536. * test/DefaultPeerStorageTest.cc
  6537. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6538. Added --bt-hash-check-seed option. If true is given to this
  6539. option, after hash check using --check-integrity option and file
  6540. is complete, continue to seed file. If you want to check file and
  6541. download it only when it is damaged or incomplete, set this option
  6542. to false. This option has effect only on BitTorrent download.
  6543. The default value is true(This is the same behavior with the
  6544. previous release).
  6545. * src/BtCheckIntegrityEntry.cc
  6546. * src/OptionHandlerFactory.cc
  6547. * src/option_processing.cc
  6548. * src/prefs.cc
  6549. * src/prefs.h
  6550. * src/usage_text.h
  6551. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6552. Updated copyright year.
  6553. * src/version_usage.cc
  6554. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6555. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6556. * doc/aria2c.1.txt
  6557. * src/usage_text.h
  6558. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6559. Made the max value of split option unlimited.
  6560. * doc/aria2c.1.txt
  6561. * src/OptionHandlerFactory.cc
  6562. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6563. Fixed compile warning/error.
  6564. * src/DownloadResult.h
  6565. * src/HttpDownloadCommand.cc
  6566. * src/ServerStat.cc
  6567. * test/RequestGroupTest.cc
  6568. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6569. Added --event-poll option to select the method for polling events.
  6570. The available methods are "select" and "epoll". "epoll" is
  6571. available on Linux only. The earlier release has the compile
  6572. option to choose from these methods.
  6573. * configure.ac
  6574. * src/RequestGroupMan.cc
  6575. * src/OptionHandlerFactory.cc
  6576. * src/EpollEventPoll.h
  6577. * src/StreamFileAllocationEntry.cc
  6578. * src/a2io.h
  6579. * src/SelectEventPoll.h
  6580. * src/option_processing.cc
  6581. * src/prefs.h
  6582. * src/EpollEventPoll.cc
  6583. * src/EventPoll.h
  6584. * src/SocketCore.h
  6585. * src/Makefile.am
  6586. * src/main.cc
  6587. * src/DownloadEngine.h
  6588. * src/SelectEventPoll.cc
  6589. * src/DownloadEngine.cc
  6590. * src/SocketCore.cc
  6591. * src/DownloadEngineFactory.cc
  6592. * src/Makefile.in
  6593. * src/prefs.cc
  6594. * src/usage_text.h
  6595. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6596. Included RecoverableException.h from main.cc
  6597. * src/main.cc
  6598. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6599. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6600. now returns last error encountered in the HTTP/FTP downloads as a
  6601. exit status value. If all downloads finished successfully, aria2
  6602. returns 0. The error code is defined in src/DownloadResult.h.
  6603. The error occurred in the download currently in progress is not
  6604. reported as a last error. If no error has encountered but there
  6605. are in progress or waiting downloads, aria2 returns 7.
  6606. * src/AbstractCommand.cc
  6607. * src/DlAbortEx.h
  6608. * src/DlRetryEx.h
  6609. * src/DownloadCommand.cc
  6610. * src/DownloadFailureException.h
  6611. * src/DownloadResult.h
  6612. * src/FtpNegotiationCommand.cc
  6613. * src/HttpSkipResponseCommand.cc
  6614. * src/Makefile.am
  6615. * src/MultiUrlRequestInfo.cc
  6616. * src/MultiUrlRequestInfo.h
  6617. * src/RecoverableException.h
  6618. * src/RequestGroup.cc
  6619. * src/RequestGroup.h
  6620. * src/RequestGroupMan.cc
  6621. * src/RequestGroupMan.h
  6622. * src/URIResult.cc
  6623. * src/URIResult.h
  6624. * src/main.cc
  6625. * src/option_processing.cc
  6626. * test/RequestGroupTest.cc
  6627. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6628. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6629. patch adds AdaptiveURISelector, which selects one of the bests
  6630. mirrors for first and reserved connections. For supplementary
  6631. ones, it returns mirrors which has not been tested yet, and if
  6632. each of them already tested, returns mirrors which has to be
  6633. tested again. Otherwise, it doesn't return anymore mirrors.
  6634. * src/AdaptiveURISelector.cc
  6635. * src/AdaptiveURISelector.h
  6636. * src/FtpNegotiationCommand.cc
  6637. * src/HttpResponseCommand.cc
  6638. * src/Makefile.am
  6639. * src/Makefile.in
  6640. * src/OptionHandlerFactory.cc
  6641. * src/RequestGroup.cc
  6642. * src/RequestGroup.h
  6643. * src/RequestGroupMan.cc
  6644. * src/ServerStat.cc
  6645. * src/ServerStat.h
  6646. * src/ServerStatMan.cc
  6647. * src/SpeedCalc.cc
  6648. * src/URISelector.h
  6649. * src/prefs.cc
  6650. * src/prefs.h
  6651. * test/RequestGroupManTest.cc
  6652. * test/ServerStatManTest.cc
  6653. * test/ServerStatTest.cc
  6654. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6655. Fixed unit test error.
  6656. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6657. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6658. * Release 1.1.2
  6659. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6660. Updated Russian translation. Thanks to the translators.
  6661. * po/ru.po
  6662. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6663. Added the description of --use-head option to man page.
  6664. * doc/aria2c.1.txt
  6665. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6666. Bump up version number to 1.1.2
  6667. * configure.ac
  6668. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6669. Added --use-head option to toggle whether HEAD method should be
  6670. used in the first HTTP request. By default aria2 uses HEAD method
  6671. as the first request. When the server doesn't recognize HEAD, then
  6672. give aria2 --use-head=false to force aria2 to use GET method
  6673. instead.
  6674. * src/OptionHandlerFactory.cc
  6675. * src/RequestGroupMan.cc
  6676. * src/option_processing.cc
  6677. * src/prefs.cc
  6678. * src/prefs.h
  6679. * src/usage_text.h
  6680. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6681. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6682. message is received before CHOKE message. The old implementation
  6683. doen't clear the use-bit of the piece when recieved REJECT
  6684. message.
  6685. * src/DefaultBtMessageDispatcher.cc
  6686. * test/DefaultBtMessageDispatcherTest.cc
  6687. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6688. * Release 1.1.1
  6689. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6690. Bump up version number to 1.1.1.
  6691. * configure.ac
  6692. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6693. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6694. is printed repeatedly.
  6695. * src/ConsoleStatCalc.cc
  6696. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6697. * Release 1.1.0
  6698. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6699. Added ifdef clause for conditional compilation.
  6700. * src/main.cc
  6701. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6702. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6703. translations. Thanks to all translators.
  6704. * po/ja.po
  6705. * po/ru.po
  6706. * po/uk.po
  6707. * po/zh_CN.po
  6708. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6709. Added the preceding ">>> " before the message "Printing the
  6710. contents of file..." to make the output more readable.
  6711. * src/main.cc
  6712. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6713. Added try-catch block in the loop in showFiles() to continue the
  6714. operation even if the exception occurred in one file.
  6715. * src/main.cc (showFiles)
  6716. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6717. Made messages in showFiles() translatable.
  6718. * po/aria2.pot
  6719. * src/main.cc
  6720. * src/message.h
  6721. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6722. Print the contents of Torrent/Metalink files are printed without
  6723. -T/-M options.
  6724. * src/main.cc
  6725. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6726. Escaped '--' with '\--'
  6727. * README
  6728. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6729. Updated "How to build" section in README. Mentioned about
  6730. --with-ca-bundle compile option.
  6731. * README
  6732. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6733. Bump up version number to 1.1.0.
  6734. * configure.ac
  6735. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6736. Added a note for --dht-listen-port option.
  6737. * doc/aria2c.1.txt
  6738. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6739. Update doc for --realtime-chunk-checksum option.
  6740. * doc/aria2c.1.txt
  6741. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6742. Update doc for --realtime-chunk-checksum option.
  6743. * src/usage_text.h
  6744. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6745. Updated French, Japanese, Russian and Ukrainian translations.
  6746. Thanks to all translators.
  6747. * po/fr.po
  6748. * po/ja.po
  6749. * po/ru.po
  6750. * po/uk.po
  6751. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6752. Renamed aria2c.pot to aria2.pot
  6753. * po/aria2.pot
  6754. * po/aria2c.pot: Removed.
  6755. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6756. Removed MetaEntry.h
  6757. * src/Makefile.am
  6758. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6759. Rename file by appending digits if a local file exists and its
  6760. file size is larger than that of remote file with --continue
  6761. option. The old implementation just throws exception in such case.
  6762. * src/RequestGroup.cc
  6763. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6764. Fixed the bug that download progress summary is not printed in the
  6765. interval specified by the option.
  6766. * src/ConsoleStatCalc.cc
  6767. * src/ConsoleStatCalc.h
  6768. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6769. Fixed compiler warning
  6770. * src/Cookie.cc
  6771. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6772. Fixed the cookie implementation based on RFC2965.
  6773. Now if a value in domain field is not started with dot, then
  6774. prepend dot. That means a cookie with domain=sf.net is sent to
  6775. wiki.sf.net.
  6776. * src/Cookie.cc
  6777. * test/CookieParserTest.cc
  6778. * test/CookieStorageTest.cc
  6779. * test/CookieTest.cc
  6780. * test/NsCookieParserTest.cc
  6781. * test/Sqlite3MozCookieParserTest.cc
  6782. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6783. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6784. is enabled and the server doesn't support keep-alive.
  6785. * src/AbstractCommand.cc
  6786. * src/DownloadCommand.cc
  6787. * src/HttpDownloadCommand.cc
  6788. * src/HttpDownloadCommand.h
  6789. * src/HttpResponseCommand.cc
  6790. * src/Request.cc
  6791. * src/Request.h
  6792. * test/RequestTest.cc
  6793. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6794. Removed Dictionary/List/Data and its related classes.
  6795. * src/BencodeVisitor.cc: Removed.
  6796. * src/BencodeVisitor.h: Removed.
  6797. * src/Data.cc: Removed.
  6798. * src/Data.h: Removed.
  6799. * src/Dictionary.cc: Removed.
  6800. * src/Dictionary.h: Removed.
  6801. * src/List.cc: Removed.
  6802. * src/List.h: Removed.
  6803. * src/Makefile.am
  6804. * src/MetaEntry.h: Removed.
  6805. * src/MetaEntryVisitor.h: Removed.
  6806. * src/MetaFileUtil.cc: Removed.
  6807. * src/MetaFileUtil.h: Removed.
  6808. * test/BencodeVisitorTest.cc: Removed.
  6809. * test/DataTest.cc: Removed.
  6810. * test/DictionaryTest.cc: Removed.
  6811. * test/ListTest.cc: Removed.
  6812. * test/Makefile.am
  6813. * test/MetaFileUtilTest.cc: Removed.
  6814. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6815. Removed include of MetaEntry.h
  6816. * test/DHTMessageTrackerEntryTest.cc
  6817. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6818. Use BDE instead of Dictionary/List/Data.
  6819. * src/AnnounceList.cc
  6820. * src/AnnounceList.h
  6821. * test/AnnounceListTest.cc
  6822. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6823. Use BDE instead of Dictionary/List/Data.
  6824. * src/DHTAbstractMessage.cc
  6825. * src/DHTAbstractMessage.h
  6826. * src/DHTAnnouncePeerMessage.cc
  6827. * src/DHTAnnouncePeerMessage.h
  6828. * src/DHTAnnouncePeerReplyMessage.cc
  6829. * src/DHTAnnouncePeerReplyMessage.h
  6830. * src/DHTFindNodeMessage.cc
  6831. * src/DHTFindNodeMessage.h
  6832. * src/DHTFindNodeReplyMessage.cc
  6833. * src/DHTFindNodeReplyMessage.h
  6834. * src/DHTGetPeersMessage.cc
  6835. * src/DHTGetPeersMessage.h
  6836. * src/DHTGetPeersReplyMessage.cc
  6837. * src/DHTGetPeersReplyMessage.h
  6838. * src/DHTMessageFactory.h
  6839. * src/DHTMessageFactoryImpl.cc
  6840. * src/DHTMessageFactoryImpl.h
  6841. * src/DHTMessageReceiver.cc
  6842. * src/DHTMessageTracker.cc
  6843. * src/DHTMessageTracker.h
  6844. * src/DHTPingMessage.cc
  6845. * src/DHTPingMessage.h
  6846. * src/DHTPingReplyMessage.cc
  6847. * src/DHTPingReplyMessage.h
  6848. * src/DHTQueryMessage.cc
  6849. * src/DHTQueryMessage.h
  6850. * src/DHTResponseMessage.cc
  6851. * src/DHTResponseMessage.h
  6852. * test/DHTAnnouncePeerMessageTest.cc
  6853. * test/DHTAnnouncePeerReplyMessageTest.cc
  6854. * test/DHTFindNodeMessageTest.cc
  6855. * test/DHTFindNodeReplyMessageTest.cc
  6856. * test/DHTGetPeersMessageTest.cc
  6857. * test/DHTGetPeersReplyMessageTest.cc
  6858. * test/DHTMessageFactoryImplTest.cc
  6859. * test/DHTMessageTrackerTest.cc
  6860. * test/DHTPingMessageTest.cc
  6861. * test/DHTPingReplyMessageTest.cc
  6862. * test/MockDHTMessageFactory.h
  6863. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6864. Added tests the case where length < 0 is specified.
  6865. * test/BencodeTest.cc
  6866. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6867. Fixed memory leak in decoderawstring()
  6868. * src/bencode.cc
  6869. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6870. Added missing #ifdef guard. Added uc() function for String and
  6871. removeKey() for Dict.
  6872. * src/bencode.cc
  6873. * src/bencode.h
  6874. * test/BencodeTest.cc
  6875. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6876. Use BDE instead of Dictionary/List/Data.
  6877. * src/HandshakeExtensionMessage.cc
  6878. * src/HandshakeExtensionMessage.h
  6879. * test/HandshakeExtensionMessageTest.cc
  6880. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6881. Added --max-overall-upload-limit option. This option limits the
  6882. overall upload speed. Stated in help message that the existing
  6883. --max-upload-limit option limits the upload speed per each
  6884. torrent. Man page is also updated.
  6885. * doc/aria2c.1.txt
  6886. * src/DefaultBtMessageDispatcher.cc
  6887. * src/DefaultBtMessageDispatcher.h
  6888. * src/OptionHandlerFactory.cc
  6889. * src/PeerInteractionCommand.cc
  6890. * src/option_processing.cc
  6891. * src/prefs.cc
  6892. * src/prefs.h
  6893. * src/usage_text.h
  6894. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6895. Use BDE instead of Dictionary/List/Data classes.
  6896. * src/CompactPeerListProcessor.cc
  6897. * src/CompactPeerListProcessor.h
  6898. * src/DefaultBtAnnounce.cc
  6899. * src/DefaultBtContext.cc
  6900. * src/DefaultBtContext.h
  6901. * src/DefaultPeerListProcessor.cc
  6902. * src/DefaultPeerListProcessor.h
  6903. * src/DelegatingPeerListProcessor.cc
  6904. * src/DelegatingPeerListProcessor.h
  6905. * src/PeerListProcessor.h
  6906. * src/UTPexExtensionMessage.cc
  6907. * src/Util.h
  6908. * src/message.h
  6909. * test/DefaultBtContextTest.cc
  6910. * test/DefaultPeerListProcessorTest.cc
  6911. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6912. Added bencode helper functions and BDE class.
  6913. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6914. * src/Makefile.am
  6915. * src/bencode.cc
  6916. * src/bencode.h
  6917. * test/BencodeTest.cc
  6918. * test/Makefile.am
  6919. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6920. Fixed the bug that bad URI is sent to the tracker when the announe
  6921. URI in torrent file includes query.
  6922. * src/DefaultBtAnnounce.cc
  6923. * test/DefaultBtAnnounceTest.cc
  6924. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6925. Added Option::blank().
  6926. Use !Option::blank(name) instead of Option::defined(name) for
  6927. the options that take filename.
  6928. * src/MultiUrlRequestInfo.cc
  6929. * src/Option.cc
  6930. * src/Option.h
  6931. * src/main.cc
  6932. * src/option_processing.cc
  6933. * test/OptionTest.cc
  6934. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6935. Documented the default value of --check-certificate option in man
  6936. page.
  6937. * doc/aria2c.1.txt
  6938. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6939. Enabled --check-certificate by default. Added compile
  6940. time(configure) option --with-ca-bundle to specify CA bundle.
  6941. Warn if --check-certificate=true and --ca-certificate is not
  6942. specified or loading CA certificate is failed.
  6943. * configure.ac
  6944. * src/MultiUrlRequestInfo.cc
  6945. * src/OptionHandlerFactory.cc
  6946. * src/message.h
  6947. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6948. Mentioned https tag in help option.
  6949. * doc/aria2c.1.txt
  6950. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6951. Added `https' tag to help option category. Added https tag to
  6952. --ca-certificate, --certificate, --check-certificate and
  6953. --private-key option.
  6954. * src/OptionHandlerFactory.cc
  6955. * src/help_tags.h
  6956. * src/option_processing.cc
  6957. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6958. Changed the package name from `aria2c' to `aria2' in order to fix
  6959. the packaging issue in Debian and Fedora. The name of the
  6960. executable is not changed.
  6961. * configure.ac
  6962. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6963. Fixed typos
  6964. * src/usage_text.h
  6965. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6966. Fixed typos and updated doc.
  6967. * README
  6968. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6969. Fixed typos
  6970. * doc/aria2c.1.txt
  6971. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6972. Fixed typos
  6973. * src/usage_text.h
  6974. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6975. Print a message when no files to download.
  6976. * src/download_helper.cc
  6977. * src/main.cc
  6978. * src/message.h
  6979. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6980. RFC3986 complied Percent-Encoding(urlencode).
  6981. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6982. ones.
  6983. * src/Request.cc
  6984. * src/Util.cc
  6985. * src/Util.h
  6986. * test/BtHandshakeMessageTest.cc
  6987. * test/DefaultBtAnnounceTest.cc
  6988. * test/DefaultBtContextTest.cc
  6989. * test/RequestTest.cc
  6990. * test/UtilTest.cc
  6991. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6992. Fixed the bug that prevents aria2 from downloading 0-length files
  6993. via HTTP/FTP.
  6994. * src/DefaultBtContext.cc
  6995. * src/DefaultBtContext.h
  6996. * src/DownloadContext.h
  6997. * src/FtpNegotiationCommand.cc
  6998. * src/HttpResponseCommand.cc
  6999. * src/HttpResponseCommand.h
  7000. * src/RequestGroup.cc
  7001. * src/SingleFileDownloadContext.cc
  7002. * src/SingleFileDownloadContext.h
  7003. * test/BtPostDownloadHandlerTest.cc
  7004. * test/MetalinkPostDownloadHandlerTest.cc
  7005. * test/MockBtContext.h
  7006. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7007. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7008. * src/option_processing.cc
  7009. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7010. Applied aria2-1.0.1-mingw.patch.
  7011. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7012. mingw.
  7013. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7014. * src/SocketCore.cc
  7015. * src/a2netcompat.h
  7016. * test/SocketCoreTest.cc
  7017. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7018. * Release 1.0.1
  7019. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7020. Updated Ukrainian and Norwegian Nynorsk translations.
  7021. Thanks to all translators.
  7022. * po/nn.po
  7023. * po/uk.po
  7024. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7025. Don't show download result when -S option is used.
  7026. * src/main.cc
  7027. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7028. Bump up version number to 1.0.1
  7029. * configure.ac
  7030. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7031. Closed files after the test cases in MultiDiskWriterTest::
  7032. testResetDiskWriterEntries(). This will fix the unit test error
  7033. in mingw32 build.
  7034. * test/MultiDiskWriterTest.cc
  7035. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7036. Use HEAD method to get file size from HTTP server for segmented
  7037. downloading.
  7038. The request to the BitTorrent Tracker always uses GET method because
  7039. the response of the tracker is small and it doesn't need segmented
  7040. download.
  7041. * src/FtpNegotiationCommand.cc
  7042. * src/HttpRequest.cc
  7043. * src/HttpResponseCommand.cc
  7044. * src/HttpSkipResponseCommand.cc
  7045. * src/RequestGroup.cc
  7046. * src/RequestGroup.h
  7047. * src/TrackerWatcherCommand.cc
  7048. * test/HttpRequestTest.cc
  7049. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7050. Fixed the bug that causes floating exception when -T option is used and
  7051. no URIs are given.
  7052. * src/download_helper.cc
  7053. * test/DownloadHelperTest.cc
  7054. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7055. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7056. errors in MinGW:
  7057. Closed file after saving server stats (RequestGroupMan.cc)
  7058. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7059. Ignored case & handled 2-digit years (strptime.c)
  7060. Added missing suseconds_t definition (a2time.h)
  7061. Fixed socket CLOSE() define (SocketCore.cc)
  7062. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7063. Changed utime() test values from x000 to x00000 as MinGW failed on
  7064. values less than timezone offset from Unix epoch
  7065. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7066. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7067. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7068. handle negative dates (CookieParserTest.cc)
  7069. * src/a2time.h
  7070. * src/FtpConnection.cc
  7071. * src/RequestGroupMan.cc
  7072. * src/SocketCore.cc
  7073. * src/strptime.c
  7074. * test/CookieParserTest.cc
  7075. * test/CopyDiskAdaptorTest.cc
  7076. * test/FileTest.cc
  7077. * test/FtpConnectionTest.cc
  7078. * test/MultiDiskAdaptorTest.cc
  7079. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7080. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7081. * doc/aria2c.1.txt
  7082. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7083. * Release 1.0.0
  7084. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7085. Added '~' to reserved characters.
  7086. * src/Util.cc
  7087. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7088. Do not urlencode Request::url in setUrl() because we want unmodified
  7089. URL using Request::getUrl()
  7090. * src/Request.cc
  7091. * src/Request.h
  7092. * test/RequestTest.cc
  7093. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7094. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7095. Thanks to all translators.
  7096. * po/bg.po
  7097. * po/fr.po
  7098. * po/ja.po
  7099. * po/ru.po
  7100. * po/uk.po
  7101. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7102. Bump up version number to 1.0.0
  7103. * configure.ac
  7104. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7105. Added nosqlite3 build to build_test.sh.
  7106. Renamed noxml as expat.
  7107. * build_test.sh
  7108. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7109. Updated INPUT FILE section.
  7110. * doc/aria2c.1.txt
  7111. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7112. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7113. on big endian systems because test .aria2 files are made for little
  7114. endian systems.
  7115. * test/DefaultBtProgressInfoFileTest.cc
  7116. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7117. Dropped ares support.
  7118. * README
  7119. * configure.ac
  7120. * m4/libares.m4: Removed.
  7121. * src/AsyncNameResolver.cc
  7122. * src/Makefile.am
  7123. * test/Makefile.am
  7124. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7125. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7126. Removed const qualifier from DiskWriter::size().
  7127. * src/AbstractDiskWriter.cc
  7128. * src/AbstractDiskWriter.h
  7129. * src/ByteArrayDiskWriter.cc
  7130. * src/ByteArrayDiskWriter.h
  7131. * src/DiskWriter.h
  7132. * test/ByteArrayDiskWriterTest.cc
  7133. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7134. Fixed the bug that causes segmentation fault/bus error during executing
  7135. choking algorithm while seeding. This is caused by improper
  7136. implementation of compare function which returns inconsistent results
  7137. depending on the timing of last unchoke.
  7138. * src/BtSeederStateChoke.cc
  7139. * src/BtSeederStateChoke.h
  7140. * src/DefaultPeerStorage.cc
  7141. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7142. Removed TODO
  7143. * TODO
  7144. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7145. Added a section that explains how to pass argument to options that
  7146. takes optional arguments with its short form.
  7147. * doc/aria2c.1.txt
  7148. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7149. Added -u for the short form of --max-upload-limit option.
  7150. * doc/aria2c.1.txt
  7151. * src/option_processing.cc
  7152. * src/usage_text.h
  7153. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7154. Added -V for the short form of --check-integrity option.
  7155. Now the argument of --check-integrity option is optional:
  7156. if it is omitted, it is evaluated as true.
  7157. * doc/aria2c.1.txt
  7158. * src/option_processing.cc
  7159. * src/usage_text.h
  7160. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7161. Made the default value of --ftp-pasv option set to true and it can take
  7162. true/false values.
  7163. * src/OptionHandlerFactory.cc
  7164. * src/option_processing.cc
  7165. * src/usage_text.h
  7166. * doc/aria2c.1.txt
  7167. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7168. Given custom random number generator to std::random_shuffle.
  7169. * src/AnnounceList.cc
  7170. * src/BtLeecherStateChoke.cc
  7171. * src/BtSeederStateChoke.cc
  7172. * src/DefaultBtRequestFactory.cc
  7173. * src/MetalinkEntry.cc
  7174. * src/RarestPieceSelector.cc
  7175. * src/SimpleRandomizer.cc
  7176. * src/SimpleRandomizer.h
  7177. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7178. Now the default value of --enable-direct-io is true.
  7179. * src/OptionHandlerFactory.cc
  7180. * doc/aria2c.1.txt
  7181. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7182. Erase peer before executing onReturningPeer and onErasingPeer
  7183. because choking algorithm called from onReturningPeer doesn't
  7184. like erasing peer in the active peer list.
  7185. * src/DefaultPeerStorage.cc
  7186. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7187. Instead of creating special filename in createDownloadResult() if
  7188. inMemoryDownload() is true, now it is done in getFilePath().
  7189. * src/RequestGroup.cc
  7190. * test/RequestGroupTest.cc
  7191. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7192. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7193. processed in memory. This is the fix for previous comment out.
  7194. * src/MemoryBufferPreDownloadHandler.cc
  7195. * src/RequestGroup.cc
  7196. * src/RequestGroup.h
  7197. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7198. Commented out the code which sets virtual directory path "[MEMORY]"
  7199. propagate directory to store to following RequestGroup.
  7200. * src/MemoryBufferPreDownloadHandler.cc
  7201. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7202. Bump up version number to 1.0.0b
  7203. * configure.ac
  7204. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7205. Added input_uris.txt to EXTRA_DIST
  7206. * test/Makefile.am
  7207. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7208. Removed PeerObject.h from Makefile.am
  7209. * src/Makefile.am
  7210. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7211. Avoid slow seeding
  7212. * src/PeerInteractionCommand.cc
  7213. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7214. Updated usage for -i option.
  7215. * src/usage_text.h (TEXT_INPUT_FILE)
  7216. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7217. Added INPUT FILE section to man page.
  7218. Escaped fake URLs.
  7219. * doc/aria2c.1.txt
  7220. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7221. Fixed wrong note position for -o option.
  7222. * doc/aria2c.1.txt
  7223. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7224. Fixed compile error without SSL/XML library.
  7225. * src/DefaultBtProgressInfoFile.cc
  7226. * src/DefaultBtProgressInfoFile.h
  7227. * src/FileMetalinkParserState.cc
  7228. * src/RequestGroup.h
  7229. * src/SocketCore.cc
  7230. * src/SocketCore.h
  7231. * src/VerificationMetalinkParserState.cc
  7232. * src/download_helper.h
  7233. * src/main.cc
  7234. * test/DefaultBtProgressInfoFileTest.cc
  7235. * test/DownloadHelperTest.cc
  7236. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7237. Rewritten URI handling functions. They are now provided as a testable
  7238. functions.
  7239. * src/Makefile.am
  7240. * src/RequestGroup.cc
  7241. * src/RequestGroup.h
  7242. * src/download_helper.cc
  7243. * src/download_helper.h
  7244. * src/main.cc
  7245. * test/DownloadHelperTest.cc
  7246. * test/Makefile.am
  7247. * test/input_uris.txt
  7248. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7249. Quickly terminate commands when ctrl-c is pressed.
  7250. * src/DownloadEngine.cc
  7251. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7252. Quickly terminate idle commands when download finished.
  7253. * src/AbstractCommand.cc
  7254. * src/DownloadCommand.cc
  7255. * src/DownloadEngine.cc
  7256. * src/DownloadEngine.h
  7257. * src/SleepCommand.cc
  7258. * src/SleepCommand.h
  7259. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7260. Added the ability to specify output filename and directory in input
  7261. file.
  7262. Additional parameters are added in the following line of URIs
  7263. with proceeding white space(s), 1 parameter in 1 line.
  7264. The parameter names are the same with the command-line option name
  7265. without proceeding "--". Not all the options are available here:
  7266. at the moment, 'dir' and 'out' options are avialable.
  7267. Please note that out option has no effect against Metalink or BitTorrent
  7268. downloads.
  7269. Example input file:
  7270. http://host/foo-1.1.tar.bz2
  7271. out=foo.tar.bz2
  7272. dir=/tmp/downloads
  7273. http://host/thundermonkey-2.0.tar.bz2
  7274. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7275. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7276. thundermonkey-2.0.tar.bz2 is saved as
  7277. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7278. * src/BtPostDownloadHandler.cc
  7279. * src/Metalink2RequestGroup.cc
  7280. * src/Metalink2RequestGroup.h
  7281. * src/MetalinkPostDownloadHandler.cc
  7282. * src/UriListParser.cc
  7283. * src/UriListParser.h
  7284. * src/main.cc
  7285. * test/Metalink2RequestGroupTest.cc
  7286. * test/UriListParserTest.cc
  7287. * test/filelist1.txt
  7288. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7289. Fixed error when SSL library is not found.
  7290. * configure.ac
  7291. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7292. Cross referenced among -s, -C and -j options.
  7293. Updated usage of -C and -s options.
  7294. * src/usage_text.h
  7295. * doc/aria2c.1.txt
  7296. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7297. Fixed bad cast in 32bit platforms.
  7298. * test/DefaultPieceStorageTest.cc
  7299. (DefaultPieceStorageTest::testGetCompletedLength)
  7300. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7301. Fixed unit test fails on 32bit platforms.
  7302. * test/CookieParserTest.cc
  7303. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7304. Show an average download speed in Download results.
  7305. * src/BtFileAllocationEntry.cc
  7306. * src/DefaultPieceStorage.cc
  7307. * src/DownloadContext.cc
  7308. * src/DownloadContext.h
  7309. * src/DownloadResult.h
  7310. * src/RequestGroup.cc
  7311. * src/RequestGroupMan.cc
  7312. * src/StreamFileAllocationEntry.cc
  7313. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7314. Fixed the bug that metalink file is not processed if Content-Type
  7315. field has a paramter.
  7316. * src/HttpResponse.cc
  7317. * src/HttpResponse.h
  7318. * test/HttpResponseTest.cc
  7319. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7320. Removed unused code.
  7321. * src/DefaultBtAnnounce.cc
  7322. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7323. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7324. the value larger than DefaultPieceStorage::getTotalLength() when
  7325. in flight pieces are involved.
  7326. * src/DefaultPieceStorage.cc
  7327. * test/DefaultPieceStorageTest.cc
  7328. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7329. Bump up version number to 1.0.0a.
  7330. * configure.ac
  7331. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7332. Updated configure.ac
  7333. * configure.ac
  7334. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7335. Added usege for proxy.
  7336. * doc/aria2c.1.txt
  7337. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7338. Added usage for --ca-certificate, --certificate, --private-key and
  7339. --check-certificate options.
  7340. * doc/aria2c.1.txt
  7341. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7342. Updated man page
  7343. * doc/aria2c.1.txt
  7344. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7345. Added --no-proxy option. It receives comman separated hostname or
  7346. domains to which proxy should not be used.
  7347. aria2 honors the environment variable no_proxy to override no-proxy
  7348. value in configuration file. The user can override the environment
  7349. variable no_proxy with --no-proxy command-line option.
  7350. * src/AbstractCommand.cc
  7351. * src/OptionHandlerFactory.cc
  7352. * src/option_processing.cc
  7353. * src/prefs.cc
  7354. * src/prefs.h
  7355. * src/usage_text.h
  7356. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7357. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7358. The CA certificates are specified in --ca-certificate option.
  7359. By default, the verification is disabled. Use --check-certificate
  7360. option to enable it.
  7361. * src/HttpRequestCommand.cc
  7362. * src/LibgnutlsTLSContext.cc
  7363. * src/LibgnutlsTLSContext.h
  7364. * src/LibsslTLSContext.cc
  7365. * src/LibsslTLSContext.h
  7366. * src/MultiUrlRequestInfo.cc
  7367. * src/OptionHandlerFactory.cc
  7368. * src/SocketCore.cc
  7369. * src/SocketCore.h
  7370. * src/a2functional.h
  7371. * src/message.h
  7372. * src/option_processing.cc
  7373. * src/prefs.cc
  7374. * src/prefs.h
  7375. * src/usage_text.h
  7376. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7377. Added client certificate authentication for SSL/TLS.
  7378. Currently a private key must be decrypted for use with aria2.
  7379. If a user accidentally gives encrypted file to aria2 then following
  7380. thing happens:
  7381. If encrypted private key is given to aria2, it behaves differently
  7382. depending on the ssl library it uses. If aria2 built with openssl then
  7383. openssl prompts the user for password. If aria2 build with gnutls then
  7384. aria2 exists with error at start up.
  7385. * src/DownloadEngineFactory.cc
  7386. * src/MultiUrlRequestInfo.cc
  7387. * src/OptionHandlerFactory.cc
  7388. * src/option_processing.cc
  7389. * src/prefs.cc
  7390. * src/prefs.h
  7391. * src/usage_text.h
  7392. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7393. Introduced TLSContext that holds TLS related data that can be shared
  7394. with multiple SSL connections.
  7395. * src/DownloadEngineFactory.cc
  7396. * src/LibgnutlsTLSContext.cc
  7397. * src/LibgnutlsTLSContext.h
  7398. * src/LibsslTLSContext.cc
  7399. * src/LibsslTLSContext.h
  7400. * src/Makefile.am
  7401. * src/SocketCore.cc
  7402. * src/SocketCore.h
  7403. * src/TLSContext.h
  7404. * src/message.h
  7405. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7406. Fixed the bug that the DiskWriter of the first FileEntry whose
  7407. `needsFileAllocation' property is false is not created
  7408. even if it shares a piece with next FileEntry which `requested' property
  7409. is true.
  7410. Fixed the bug that zero-length file is not created if pre file
  7411. allocation is not done.
  7412. * src/MultiDiskAdaptor.cc
  7413. * src/MultiDiskAdaptor.h
  7414. * test/MultiDiskAdaptorTest.cc
  7415. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7416. Added the ability to pool proxy connection.
  7417. The conneciton in FTP with proxy-method=GET is not pooled.
  7418. Proxy-Connection header will not be sent when sending CONNECT method.
  7419. * src/DownloadEngine.cc
  7420. * src/DownloadEngine.h
  7421. * src/FtpFinishDownloadCommand.cc
  7422. * src/FtpInitiateConnectionCommand.cc
  7423. * src/FtpNegotiationCommand.cc
  7424. * src/HttpDownloadCommand.cc
  7425. * src/HttpInitiateConnectionCommand.cc
  7426. * src/HttpRequest.cc
  7427. * src/HttpRequest.h
  7428. * src/HttpResponse.cc
  7429. * src/HttpSkipResponseCommand.cc
  7430. * test/HttpRequestTest.cc
  7431. * test/HttpResponseTest.cc
  7432. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7433. Handle date before epoch.
  7434. To create *bad* Time object, call Time::null().
  7435. * src/CookieParser.cc
  7436. * src/FtpConnection.cc
  7437. * src/FtpConnection.h
  7438. * src/FtpNegotiationCommand.cc
  7439. * src/RequestGroup.cc
  7440. * src/TimeA2.cc
  7441. * src/TimeA2.h
  7442. * test/CookieParserTest.cc
  7443. * test/FtpConnectionTest.cc
  7444. * test/TimeTest.cc
  7445. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7446. Added support for following envrionment variables: http_proxy,
  7447. https_proxy, ftp_proxy and all_proxy.
  7448. Each variable is equivalent to the aria2 option whose name is the
  7449. variable name with '_' replaced with '-'.
  7450. They overrides options specified in aria2.conf file.
  7451. The envrionment variables can be overrode using command-line option.
  7452. * src/option_processing.cc
  7453. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7454. Renamed --http-proxy-method as --proxy-method.
  7455. * src/AbstractCommand.cc
  7456. * src/FtpInitiateConnectionCommand.cc
  7457. * src/HttpInitiateConnectionCommand.cc
  7458. * src/OptionHandlerFactory.cc
  7459. * src/option_processing.cc
  7460. * src/prefs.cc
  7461. * src/prefs.h
  7462. * src/usage_text.h
  7463. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7464. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7465. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7466. Above 3 options and --http-proxy option can handle proxy in URL format
  7467. like: http://user:passwd@host:port.
  7468. If a proxy requires user/password, they must be specified in a URL.
  7469. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7470. instead.
  7471. * src/AbstractCommand.cc
  7472. * src/AbstractCommand.h
  7473. * src/AbstractProxyRequestCommand.cc
  7474. * src/AbstractProxyRequestCommand.h
  7475. * src/AuthConfigFactory.cc
  7476. * src/AuthConfigFactory.h
  7477. * src/FtpFinishDownloadCommand.cc
  7478. * src/FtpInitiateConnectionCommand.cc
  7479. * src/FtpInitiateConnectionCommand.h
  7480. * src/FtpNegotiationCommand.cc
  7481. * src/FtpTunnelRequestCommand.cc
  7482. * src/FtpTunnelRequestCommand.h
  7483. * src/HttpDownloadCommand.cc
  7484. * src/HttpInitiateConnectionCommand.cc
  7485. * src/HttpInitiateConnectionCommand.h
  7486. * src/HttpProxyRequestCommand.cc
  7487. * src/HttpProxyRequestCommand.h
  7488. * src/HttpRequest.cc
  7489. * src/HttpRequest.h
  7490. * src/HttpRequestCommand.cc
  7491. * src/HttpRequestCommand.h
  7492. * src/HttpSkipResponseCommand.cc
  7493. * src/InitiateConnectionCommand.cc
  7494. * src/InitiateConnectionCommand.h
  7495. * src/OptionHandlerFactory.cc
  7496. * src/OptionHandlerImpl.h
  7497. * src/Request.cc
  7498. * src/option_processing.cc
  7499. * src/prefs.cc
  7500. * src/prefs.h
  7501. * src/usage_text.h
  7502. * test/AuthConfigFactoryTest.cc
  7503. * test/HttpRequestTest.cc
  7504. * test/OptionHandlerTest.cc
  7505. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Execute choking algorithm when unchoked and interested peer is
  7507. disconected.
  7508. * src/DefaultPeerStorage.cc
  7509. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. Added testcase for BtNotInterestedMessage from unchoked peer.
  7511. * test/BtNotInterestedMessageTest.cc
  7512. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. Execute choking algorithm when BtInterestedMessage arrives from
  7514. unchoked peer.
  7515. * src/BtInterestedMessage.cc
  7516. * src/BtInterestedMessage.h
  7517. * src/DefaultBtMessageFactory.cc
  7518. * test/BtInterestedMessageTest.cc
  7519. * test/MockPeerStorage.h
  7520. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7521. AuthConfigFactory is now part of DownloadEngine.
  7522. * src/AbstractProxyRequestCommand.cc
  7523. * src/AuthConfigFactory.h
  7524. * src/DownloadEngine.cc
  7525. * src/DownloadEngine.h
  7526. * src/FtpConnection.cc
  7527. * src/FtpConnection.h
  7528. * src/FtpNegotiationCommand.cc
  7529. * src/HttpConnection.cc
  7530. * src/HttpRequest.cc
  7531. * src/HttpRequest.h
  7532. * src/HttpRequestCommand.cc
  7533. * src/HttpResponse.cc
  7534. * src/HttpResponseCommand.cc
  7535. * src/HttpSkipResponseCommand.cc
  7536. * src/MultiUrlRequestInfo.cc
  7537. * src/main.cc
  7538. * test/FtpConnectionTest.cc
  7539. * test/HttpRequestTest.cc
  7540. * test/HttpResponseTest.cc
  7541. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Corrected catched exception type.
  7543. * src/ServerStatMan.cc
  7544. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7545. DNSCache is now part of DownloadEngine.
  7546. * src/DNSCache.h
  7547. * src/DownloadEngine.cc
  7548. * src/DownloadEngine.h
  7549. * src/InitiateConnectionCommand.cc
  7550. * src/MultiUrlRequestInfo.cc
  7551. * test/Makefile.am
  7552. * test/Makefile.in
  7553. * test/SimpleDNSCacheTest.cc
  7554. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7555. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7556. DownloadEngine.
  7557. * src/ActivePeerConnectionCommand.cc
  7558. * src/BtSetup.cc
  7559. * src/CUIDCounter.h
  7560. * src/DHTSetup.cc
  7561. * src/DownloadCommand.cc
  7562. * src/DownloadEngine.cc
  7563. * src/DownloadEngine.h
  7564. * src/DownloadEngineFactory.cc
  7565. * src/FileAllocationDispatcherCommand.cc
  7566. * src/InitiatorMSEHandshakeCommand.cc
  7567. * src/PeerInitiateConnectionCommand.cc
  7568. * src/PeerInteractionCommand.cc
  7569. * src/PeerListenCommand.cc
  7570. * src/RequestGroup.cc
  7571. * src/StreamFileAllocationEntry.cc
  7572. * src/TrackerWatcherCommand.cc
  7573. * src/main.cc
  7574. * test/RequestGroupManTest.cc
  7575. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Implemented commented code in BtSeederStateChoke
  7577. * src/BtSeederStateChoke.cc
  7578. * src/Peer.cc
  7579. * src/Peer.h
  7580. * src/PeerInteractionCommand.cc
  7581. * src/PeerSessionResource.cc
  7582. * src/PeerSessionResource.h
  7583. * test/MockBtMessageDispatcher.h
  7584. * test/PeerSessionResourceTest.cc
  7585. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7586. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7587. its object.
  7588. * src/AbstractBtMessage.cc
  7589. * src/ActivePeerConnectionCommand.cc
  7590. * src/ActivePeerConnectionCommand.h
  7591. * src/BtContextAwareCommand.cc
  7592. * src/BtContextAwareCommand.h
  7593. * src/BtExtendedMessage.cc
  7594. * src/BtExtendedMessage.h
  7595. * src/BtInterestedMessage.cc
  7596. * src/BtInterestedMessage.h
  7597. * src/BtNotInterestedMessage.cc
  7598. * src/BtNotInterestedMessage.h
  7599. * src/BtRegistry.cc
  7600. * src/BtRegistry.h
  7601. * src/BtSeederStateChoke.cc
  7602. * src/BtSetup.cc
  7603. * src/DHTGetPeersCommand.cc
  7604. * src/DHTGetPeersCommand.h
  7605. * src/DHTPeerAnnounceEntry.cc
  7606. * src/DHTPeerAnnounceEntry.h
  7607. * src/DHTPeerAnnounceStorage.cc
  7608. * src/DHTPeerAnnounceStorage.h
  7609. * src/DHTPeerLookupTask.cc
  7610. * src/DHTPeerLookupTask.h
  7611. * src/DHTSetup.cc
  7612. * src/DHTSetup.h
  7613. * src/DHTTaskFactory.h
  7614. * src/DHTTaskFactoryImpl.cc
  7615. * src/DHTTaskFactoryImpl.h
  7616. * src/DefaultBtAnnounce.cc
  7617. * src/DefaultBtInteractive.cc
  7618. * src/DefaultBtInteractive.h
  7619. * src/DefaultBtMessageDispatcher.cc
  7620. * src/DefaultBtMessageDispatcher.h
  7621. * src/DefaultBtMessageFactory.cc
  7622. * src/DefaultBtMessageFactory.h
  7623. * src/DefaultBtMessageReceiver.cc
  7624. * src/DefaultBtProgressInfoFile.cc
  7625. * src/DefaultBtProgressInfoFile.h
  7626. * src/DefaultBtRequestFactory.cc
  7627. * src/DefaultBtRequestFactory.h
  7628. * src/DefaultExtensionMessageFactory.cc
  7629. * src/DefaultExtensionMessageFactory.h
  7630. * src/DefaultPeerStorage.cc
  7631. * src/DefaultPeerStorage.h
  7632. * src/DownloadEngine.cc
  7633. * src/DownloadEngine.h
  7634. * src/InitiatorMSEHandshakeCommand.cc
  7635. * src/InitiatorMSEHandshakeCommand.h
  7636. * src/MSEHandshake.cc
  7637. * src/MSEHandshake.h
  7638. * src/Makefile.am
  7639. * src/Makefile.in
  7640. * src/PeerChokeCommand.cc
  7641. * src/PeerChokeCommand.h
  7642. * src/PeerInitiateConnectionCommand.cc
  7643. * src/PeerInitiateConnectionCommand.h
  7644. * src/PeerInteractionCommand.cc
  7645. * src/PeerInteractionCommand.h
  7646. * src/PeerObject.h
  7647. * src/PeerReceiveHandshakeCommand.cc
  7648. * src/PeerReceiveHandshakeCommand.h
  7649. * src/ReceiverMSEHandshakeCommand.cc
  7650. * src/RequestGroup.cc
  7651. * src/RequestGroup.h
  7652. * src/RequestGroupMan.cc
  7653. * src/RequestGroupMan.h
  7654. * src/SeedCheckCommand.cc
  7655. * src/SeedCheckCommand.h
  7656. * src/ShareRatioSeedCriteria.h
  7657. * src/SimpleBtMessage.cc
  7658. * src/TrackerWatcherCommand.cc
  7659. * src/TrackerWatcherCommand.h
  7660. * src/UTPexExtensionMessage.cc
  7661. * src/UTPexExtensionMessage.h
  7662. * test/BtCancelMessageTest.cc
  7663. * test/BtChokeMessageTest.cc
  7664. * test/BtExtendedMessageTest.cc
  7665. * test/BtInterestedMessageTest.cc
  7666. * test/BtNotInterestedMessageTest.cc
  7667. * test/BtPieceMessageTest.cc
  7668. * test/BtPortMessageTest.cc
  7669. * test/BtRegistryTest.cc
  7670. * test/BtRejectMessageTest.cc
  7671. * test/BtRequestMessageTest.cc
  7672. * test/DHTPeerAnnounceEntryTest.cc
  7673. * test/DHTPeerAnnounceStorageTest.cc
  7674. * test/DefaultBtMessageDispatcherTest.cc
  7675. * test/DefaultBtMessageFactoryTest.cc
  7676. * test/DefaultBtProgressInfoFileTest.cc
  7677. * test/DefaultBtRequestFactoryTest.cc
  7678. * test/DefaultExtensionMessageFactoryTest.cc
  7679. * test/MSEHandshakeTest.cc
  7680. * test/MockDHTTaskFactory.h
  7681. * test/ShareRatioSeedCriteriaTest.cc
  7682. * test/UTPexExtensionMessageTest.cc
  7683. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7684. Fixed compiler warning.
  7685. * test/UtilTest.cc
  7686. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7687. Treat Cookie object as session cookie if expiry = 0 is given.
  7688. With this change, you can specify session scoped cookies in an external
  7689. file setting expiry value to 0.
  7690. * src/Cookie.cc
  7691. * src/Cookie.h
  7692. * test/CookieParserTest.cc
  7693. * test/CookieStorageTest.cc
  7694. * test/CookieTest.cc
  7695. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Changed signature of DHTMessageFactory::createResponseMessage().
  7697. Removed unused validateIDMatch.
  7698. * src/DHTMessageFactory.h
  7699. * src/DHTMessageFactoryImpl.cc
  7700. * src/DHTMessageFactoryImpl.h
  7701. * src/DHTMessageTracker.cc
  7702. * test/DHTMessageFactoryImplTest.cc
  7703. * test/MockDHTMessageFactory.h
  7704. Dropped DHT message coming from same ID of localhost.
  7705. * src/DHTMessageReceiver.cc
  7706. Rejected adding node whose ID is the same as localhost's.
  7707. * src/DHTRoutingTable.cc
  7708. * test/BtPortMessageTest.cc
  7709. * test/DHTRoutingTableTest.cc
  7710. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Pool connection when redirection occurs with Content-Length = 0.
  7712. * src/HttpSkipResponseCommand.cc
  7713. * src/HttpSkipResponseCommand.h
  7714. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7715. Fixed the bug that causes time out when redirection occurs with
  7716. content-length 0.
  7717. * src/HttpResponseCommand.cc
  7718. * src/HttpSkipResponseCommand.cc
  7719. * src/HttpSkipResponseCommand.h
  7720. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Now each status legends is shown only when it appears in Download
  7722. Result. If Download Result has no item, then status legend will not
  7723. be printed.
  7724. * src/RequestGroupMan.cc
  7725. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7726. Removed duplicate creation of OptionHandlers.
  7727. * src/option_processing.cc
  7728. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7729. Fixed the bug that causes segmentation fault when accessing files which
  7730. don't exist or are not included in --select-file option while
  7731. validating chunk checksum.
  7732. * src/MultiDiskAdaptor.cc
  7733. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Fixed compiler warning.
  7735. * test/UtilTest.cc
  7736. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7737. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7738. * src/IteratableChecksumValidator.cc
  7739. * src/IteratableChunkChecksumValidator.cc
  7740. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. * Release 0.16.2
  7742. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7743. Added Serbian translation. Updated Ukrainian translation.
  7744. Thanks to all translators.
  7745. * po/sr.po
  7746. * po/uk.po
  7747. * po/LINGUAS
  7748. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7749. Bump up version number to 0.16.2
  7750. * configure.ac
  7751. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Added length equality test to operator== to drop a piece message
  7753. whose length does not match to the requested one.
  7754. * src/RequestSlot.cc
  7755. * test/DefaultBtMessageDispatcherTest.cc
  7756. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7758. recieved.
  7759. In this fix, if a request larger than 16KiB length is received, aria2
  7760. disconnects the peer.
  7761. * src/BtConstants.h
  7762. * src/PeerMessageUtil.cc
  7763. * src/PeerMessageUtil.h
  7764. * test/BtRequestMessageTest.cc
  7765. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7766. * Release 0.16.1
  7767. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7768. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7769. * doc/aria2c.1.txt
  7770. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7771. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7772. Updated French, Simplified Chinese and Japanese translations.
  7773. Thanks to all translators.
  7774. en@quot and en@boldquot are also added.
  7775. * po/LINGUAS
  7776. * po/fr.po
  7777. * po/ja.po
  7778. * po/uk.po
  7779. * po/vi.po
  7780. * po/zh_CN.po
  7781. * po/zh_TW.po
  7782. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Bump up version number to 0.16.1.
  7784. * configure.ac
  7785. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7786. Updated README.
  7787. * README
  7788. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7789. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7790. not to replace '--' with em dash character.
  7791. * doc/aria2c.1.txt
  7792. * doc/makeman
  7793. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7794. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7795. every SEC seconds.
  7796. * src/DownloadEngineFactory.cc
  7797. * src/OptionHandlerFactory.cc
  7798. * src/option_processing.cc
  7799. * src/usage_text.h
  7800. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7801. Fixed compile warning on linux-amd64
  7802. * src/FtpConnection.cc
  7803. * src/IteratableChunkChecksumValidator.cc
  7804. * src/MultiDiskAdaptor.cc
  7805. Fixed the bug that unit test fails on linux-amd64
  7806. * test/UtilTest.cc
  7807. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. Added --dht-file-path option to change the path to dht.dat, which is a
  7809. serialized DHT routing table.
  7810. * src/OptionHandlerFactory.cc
  7811. * src/option_processing.cc
  7812. * src/usage_text.h
  7813. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7814. Fixed possible underflow.
  7815. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7816. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7817. Fixed the bug that last character in URI is not encoded.
  7818. * src/Request.cc
  7819. * test/RequestTest.cc
  7820. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7821. Fixed the bug that referer header field contains fragment.
  7822. Now Request class removes fragment part of URI and encodes it
  7823. in Request::setUri() and setReferer().
  7824. * src/Request.h
  7825. * src/Request.cc
  7826. * test/RequestTest.cc
  7827. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Added missing m4 macros.
  7829. * m4/cppunit.m4
  7830. * m4/libgcrypt.m4
  7831. * m4/libgnutls-extra.m4
  7832. * m4/libgnutls.m4
  7833. * m4/libxml2.m4
  7834. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7835. Fixed compile error with gcc-4.4(snapshot)
  7836. * src/File.cc
  7837. * src/FtpConnection.cc
  7838. * src/OptionHandlerImpl.h
  7839. * src/Util.cc
  7840. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. Removed assert()
  7842. * src/SocketBuffer.cc (SocketBuffer::send)
  7843. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Changed the type of _numNewConnection to unsigned int.
  7845. * src/ActivePeerConnectionCommand.cc
  7846. * src/ActivePeerConnectionCommand.h
  7847. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. * Release 0.16.0
  7849. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7850. Updated doc
  7851. * README
  7852. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7854. translations. Thanks to all translators.
  7855. * po/bg.po
  7856. * po/de.po
  7857. * po/fr.po
  7858. * po/ja.po
  7859. * po/zh_CN.po
  7860. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7861. Bump up version number to 0.16.0.
  7862. * configure.ac
  7863. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7865. int32_t.
  7866. Changed the type of count to int32_t.
  7867. * src/Metalink2RequestGroup.cc
  7868. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. Added test for Time::elapsed(time_t).
  7870. * test/TimeTest.cc
  7871. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7873. Util::difftv() should be used instead.
  7874. * src/TimeA2.cc
  7875. * src/TimeA2.h
  7876. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7877. Made socket for dht connections non-blocking
  7878. * src/DHTAbstractMessage.cc
  7879. * src/DHTAbstractMessage.h
  7880. * src/DHTConnection.h
  7881. * src/DHTConnectionImpl.cc
  7882. * src/DHTConnectionImpl.h
  7883. * src/DHTMessage.h
  7884. * src/DHTMessageDispatcherImpl.cc
  7885. * src/DHTMessageDispatcherImpl.h
  7886. * src/DHTUnknownMessage.cc
  7887. * src/DHTUnknownMessage.h
  7888. * src/SocketCore.cc
  7889. * src/SocketCore.h
  7890. * test/MockDHTMessage.h
  7891. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Changed the type of offset to int.
  7893. * src/ParameterizedStringParser.cc
  7894. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7895. Made getAsInt() return int32_t
  7896. * src/Option.h
  7897. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7898. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7899. build.
  7900. * configure.ac
  7901. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. Use sqlite3_open if sqlite3_open_v2 is not available.
  7903. * src/Sqlite3MozCookieParser.cc
  7904. * src/Sqlite3MozCookieParser.h
  7905. * m4/sqlite3.m4
  7906. * test/Sqlite3MozCookieParserTest.cc
  7907. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7909. * src/BtPieceMessage.cc
  7910. * src/DHTPeerAnnounceStorage.cc
  7911. * src/DefaultPieceStorage.cc
  7912. * src/DownloadCommand.cc
  7913. * src/DownloadEngine.cc
  7914. * src/FtpConnection.cc
  7915. * src/PeerConnection.cc
  7916. * src/PeerMessageUtil.cc
  7917. * src/RequestGroup.cc
  7918. * src/RequestGroupMan.cc
  7919. * src/SimpleBtMessage.cc
  7920. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7921. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7922. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7923. * src/AbstractDiskWriter.cc
  7924. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7925. Don't set Request::supportsPersistentConnection() in HttpConnection
  7926. since this code is also used in AbstractProxyResponseCommand.
  7927. Moved those code to HttpResponse.
  7928. * src/HttpResponse.cc
  7929. * src/HttpResponse.h
  7930. * src/HttpConnection.cc
  7931. * src/HttpConnection.h
  7932. * src/HttpResponseCommand.cc
  7933. * test/HttpResponseTest.cc
  7934. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7936. The configuration is minimum: no torrent, no metalink, so there may be
  7937. other compile error on their code.
  7938. * src/a2netcompat.h
  7939. * src/File.cc
  7940. * src/File.h
  7941. * src/SocketCore.cc
  7942. * src/SocketCore.h
  7943. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7944. Made a socket of incoming peer non-blocking.
  7945. * src/PeerListenCommand.cc
  7946. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7948. whole message data is not sent in one send() call.
  7949. * src/BtPieceMessage.cc
  7950. * src/BtPieceMessage.h
  7951. * src/PeerConnection.cc
  7952. * src/PeerConnection.h
  7953. * src/SimpleBtMessage.cc
  7954. * src/SimpleBtMessage.h
  7955. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. Fixed the bug that aria2 downloads faster than max-download-limit when
  7957. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7958. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7959. , instead of sum of them.
  7960. * src/ActivePeerConnectionCommand.cc
  7961. * src/DefaultBtInteractive.cc
  7962. * src/DownloadCommand.cc
  7963. * src/PeerInteractionCommand.cc
  7964. * src/PeerReceiveHandshakeCommand.cc
  7965. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. Fixed the bug that HTTPS download fails.
  7967. * src/AbstractCommand.cc
  7968. * src/AbstractCommand.h
  7969. * src/DownloadCommand.cc
  7970. * src/FtpConnection.cc
  7971. * src/HttpConnection.cc
  7972. * src/HttpRequestCommand.cc
  7973. * src/HttpResponseCommand.cc
  7974. * src/HttpSkipResponseCommand.cc
  7975. * src/MSEHandshake.cc
  7976. * src/PeerConnection.cc
  7977. * src/SocketCore.cc
  7978. * src/SocketCore.h
  7979. Fixed the bug that aria2 doesn't download whole content body and cannot
  7980. reuse connection if chunked transfer encoding and gzip content encoding
  7981. are set.
  7982. * src/DownloadCommand.cc
  7983. * src/HttpSkipResponseCommand.cc
  7984. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7985. Updated man page.
  7986. * doc/aria2c.1.txt
  7987. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7988. When error occurred while aria2 was parsing an .aria2.conf file, print
  7989. the usage of the option that caused error.
  7990. * src/option_processing.cc
  7991. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7992. Fixed compile error on OptionHandlerException
  7993. * src/Makefile.am
  7994. * src/OptionHandlerException.cc
  7995. * src/OptionHandlerException.h
  7996. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7997. Moved message of the error to OptionHandlerException.h
  7998. * src/NameMatchOptionHandler.h
  7999. * src/OptionHandlerException.h
  8000. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. When error occurs while aria2 is parsing an command-line option, print
  8002. the usage of the option.
  8003. * src/Makefile.am
  8004. * src/NameMatchOptionHandler.h
  8005. * src/OptionHandlerException.h
  8006. * src/option_processing.cc
  8007. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. Reverted previous change.
  8009. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8010. username is not in URI.
  8011. * src/HttpRequest.cc
  8012. * src/Request.cc
  8013. * test/HttpRequestTest.cc
  8014. * test/RequestTest.cc
  8015. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Now colon is required for username and password in FTP URL, like:
  8017. ftp://username:password@host.
  8018. If colon is not there, aria2 don't parse it as a username. For example,
  8019. aria2 don't retrieve username from ftp://username@host.
  8020. This fix was made in order to login FTP server via non-transparent ftp
  8021. proxy.
  8022. * src/Request.cc
  8023. * test/RequestTest.cc
  8024. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8025. Use netrc for HTTP.
  8026. Now FTP user/password is sent in Authorization header when
  8027. --ftp-via-http-proxy=get is given.
  8028. * src/AuthConfigFactory.cc
  8029. * src/HttpRequest.cc
  8030. * src/HttpRequest.h
  8031. * src/NetrcAuthResolver.cc
  8032. * src/NetrcAuthResolver.h
  8033. * src/OptionHandlerFactory.cc
  8034. * src/option_processing.cc
  8035. * src/prefs.cc
  8036. * src/prefs.h
  8037. * test/AuthConfigFactoryTest.cc
  8038. * test/HttpRequestTest.cc
  8039. * test/NetrcAuthResolverTest.cc
  8040. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Issue PWD command first and get working directory and use it as a prefix
  8042. for CWD command.
  8043. * src/DownloadEngine.cc
  8044. * src/DownloadEngine.h
  8045. * src/FtpConnection.cc
  8046. * src/FtpConnection.h
  8047. * src/FtpFinishDownloadCommand.cc
  8048. * src/FtpInitiateConnectionCommand.cc
  8049. * src/FtpNegotiationCommand.cc
  8050. * src/FtpNegotiationCommand.h
  8051. * test/FtpConnectionTest.cc
  8052. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8053. Removed default user/pass for FTP user/pass, since it should not have
  8054. precedence over netrc configuration by default.
  8055. * src/OptionHandlerFactory.cc
  8056. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8057. Added debug log for socket event.
  8058. * src/AbstractCommand.cc
  8059. * src/PeerAbstractCommand.cc
  8060. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Log microseconds.
  8062. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8063. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Replaced HelpItem.cc with OptionHandler.cc.
  8065. * po/POTFILES.in
  8066. Updated po files with 'make update-po'
  8067. * po/aria2c.pot
  8068. * po/*.po
  8069. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. Removed possible values from the text.
  8071. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8072. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. Removed unused preferences:
  8074. PREF_NO_PREALLOCATION
  8075. PREF_STDOUT_LOG
  8076. PREF_TRACKER_MAX_TRIES
  8077. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8078. PREF_MIN_SEGMENT_SIZE
  8079. * src/option_processing.cc
  8080. * src/prefs.cc
  8081. * src/prefs.h
  8082. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. Integrated HelpItem into OptionParser to ease the workload for adding
  8084. new options. Removed default value from usage text.
  8085. * src/HelpItem.cc: Removed.
  8086. * src/HelpItem.h: Removed.
  8087. * src/HelpItemFactory.cc: Removed.
  8088. * src/HelpItemFactory.h: Removed.
  8089. * src/Makefile.am
  8090. * src/Makefile.in
  8091. * src/NameMatchOptionHandler.h
  8092. * src/OptionHandler.cc
  8093. * src/OptionHandler.h
  8094. * src/OptionHandlerFactory.cc
  8095. * src/OptionHandlerImpl.h
  8096. * src/OptionParser.cc
  8097. * src/OptionParser.h
  8098. * src/TagContainer.cc: Removed.
  8099. * src/TagContainer.h: Removed.
  8100. * src/TaggedItem.cc: Removed.
  8101. * src/TaggedItem.h: Removed.
  8102. * src/main.cc
  8103. * src/option_processing.cc
  8104. * src/usage_text.h
  8105. * src/version_usage.cc
  8106. * test/HelpItemTest.cc: Removed.
  8107. * test/Makefile.am
  8108. * test/Makefile.in
  8109. * test/OptionHandlerTest.cc
  8110. * test/OptionParserTest.cc
  8111. * test/TagContainerTest.cc: Removed.
  8112. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. Moved `TransferStat stat = ...' to inside the `if' clause.
  8114. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8115. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Fixed the bug that a block in a piece is requested when same block is
  8117. already requested to the same peer in end game mode.
  8118. * src/BtRequestFactory.h
  8119. * src/DefaultBtInteractive.cc
  8120. * src/DefaultBtRequestFactory.cc
  8121. * src/DefaultBtRequestFactory.h
  8122. * src/DefaultPieceStorage.cc
  8123. * src/DefaultPieceStorage.h
  8124. * src/PieceStorage.h
  8125. * src/UnknownLengthPieceStorage.cc
  8126. * src/UnknownLengthPieceStorage.h
  8127. * test/DefaultBtRequestFactoryTest.cc
  8128. * test/DefaultPieceStorageTest.cc
  8129. * test/MockBtRequestFactory.h
  8130. * test/MockPieceStorage.h
  8131. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8132. Removed _uploadLength and _downloadLength from PeerSessionResource
  8133. and use PeerStat::_sessionUploadLength and
  8134. PeerStat::_sessionDownloadLength.
  8135. * src/PeerSessionResource.cc
  8136. * src/PeerSessionResource.h
  8137. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8138. Fixed the bug that prefixLength of split bucket which doesn't include
  8139. local node ID is incremented.
  8140. * src/DHTBucket.cc
  8141. * src/DHTBucket.h
  8142. * test/DHTBucketTest.cc
  8143. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Added cookies.sqlite to EXTRA_DIST
  8145. * test/Makefile.am
  8146. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8147. Added Turkish translation. Updated French, German, Russian and
  8148. Simplified Chinese translations. Thanks to all translators.
  8149. * po/LINGUAS
  8150. * po/de.po
  8151. * po/fr.po
  8152. * po/ru.po
  8153. * po/tr.po
  8154. * po/zh_CN.po
  8155. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. Added deliminating text to the beginning of the log so that one can find
  8157. where the log starts easily.
  8158. * src/main.cc
  8159. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8160. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8161. to fix compile error when async DNS is not enabled by configuration.
  8162. * src/AbstractCommand.cc
  8163. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. If establishing conneciton to a server is failed, then mark error on
  8165. its ServerStat.
  8166. Added the cause of error to log when error event occurred.
  8167. Moved message string to message.h for translation.
  8168. * src/AbstractCommand.cc
  8169. * src/AbstractCommand.h
  8170. * src/FtpNegotiationCommand.cc
  8171. * src/HttpRequestCommand.cc
  8172. * src/PeerAbstractCommand.cc
  8173. * src/message.h
  8174. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8175. Added the function to get error message from socket.
  8176. * src/SocketCore.cc
  8177. * src/SocketCore.h
  8178. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8179. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8180. * src/RequestGroupMan.cc
  8181. * src/RequestGroupMan.h
  8182. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. If error event is received in epoll, then abort download immediately.
  8184. * src/AbstractCommand.cc
  8185. * src/Command.cc
  8186. * src/Command.h
  8187. * src/DownloadEngine.cc
  8188. * src/PeerAbstractCommand.cc
  8189. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Added usage message for --uri-selector, --server-stat-of,
  8191. --server-stat-in, --server-stat-timeout options.
  8192. * src/HelpItemFactory.cc
  8193. * src/usage_text.h
  8194. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8195. Added upper limit of FTP response buffer. The current implementation
  8196. uses 4096bytes as a limit.
  8197. * src/FtpConnection.cc
  8198. * src/FtpConnection.h
  8199. * test/FtpConnectionTest.cc
  8200. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Use non-blocking socket for TCP communication to avoid possible
  8202. blocking due to buffer full.
  8203. * src/AbstractProxyRequestCommand.cc
  8204. * src/FtpConnection.cc
  8205. * src/FtpConnection.h
  8206. * src/FtpNegotiationCommand.cc
  8207. * src/FtpNegotiationCommand.h
  8208. * src/HttpConnection.cc
  8209. * src/HttpConnection.h
  8210. * src/HttpRequestCommand.cc
  8211. * src/InitiatorMSEHandshakeCommand.cc
  8212. * src/InitiatorMSEHandshakeCommand.h
  8213. * src/MSEHandshake.cc
  8214. * src/MSEHandshake.h
  8215. * src/Makefile.am
  8216. * src/PeerConnection.cc
  8217. * src/PeerConnection.h
  8218. * src/PeerInteractionCommand.cc
  8219. * src/PeerListenCommand.cc
  8220. * src/ReceiverMSEHandshakeCommand.cc
  8221. * src/ReceiverMSEHandshakeCommand.h
  8222. * src/SocketBuffer.cc
  8223. * src/SocketBuffer.h
  8224. * src/SocketCore.cc
  8225. * src/SocketCore.h
  8226. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. Call setStatusRealtime() in constructor.
  8228. * src/RealtimeCommand.cc
  8229. * src/RealtimeCommand.h
  8230. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8231. Call Download::setNoWait(true) to execute newly created command without
  8232. a pause.
  8233. * src/AbstractCommand.cc
  8234. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8236. found' error from HTTP/FTP server NUM times without getting single
  8237. bytes of data, then force the download to fail.
  8238. Basically aria2 tris all URIs available. So if long list of URIs are
  8239. specified in Metalink, then aria2 will take a long time to fail
  8240. eventually if all URIs are outdated. This option eases this situation
  8241. to limit the number of servers to try.
  8242. * src/FtpNegotiationCommand.cc
  8243. * src/HelpItemFactory.cc
  8244. * src/HttpResponseCommand.cc
  8245. * src/OptionHandlerFactory.cc
  8246. * src/PeerStat.h
  8247. * src/RequestGroup.cc
  8248. * src/RequestGroup.h
  8249. * src/SegmentMan.cc
  8250. * src/SegmentMan.h
  8251. * src/option_processing.cc
  8252. * src/prefs.cc
  8253. * src/prefs.h
  8254. * src/usage_text.h
  8255. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8257. response even if more than one response is in it.
  8258. * src/FtpConnection.cc
  8259. * src/FtpConnection.h
  8260. * test/FtpConnectionTest.cc
  8261. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. Merged from stable-0.15
  8263. * m4/libcares.m4
  8264. Use pkg-config
  8265. * m4/sqlite3.m4
  8266. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Removed unnecessary if statement.
  8268. * src/DefaultPieceStorage.cc (initPieceStorage)
  8269. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Added --connect-timeout option to specify connect timeout in seconds.
  8271. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8272. connecting to BitTorrent peer is not controlled by this option.
  8273. * src/AbstractProxyRequestCommand.cc
  8274. * src/FtpNegotiationCommand.cc
  8275. * src/HelpItemFactory.cc
  8276. * src/HttpRequestCommand.cc
  8277. * src/OptionHandlerFactory.cc
  8278. * src/option_processing.cc
  8279. * src/prefs.cc
  8280. * src/prefs.h
  8281. * src/usage_text.h
  8282. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Added help message for -R option.
  8284. * src/HelpItemFactory.cc
  8285. * src/usage_text.h
  8286. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8287. Added the message that the time is in local time zone.
  8288. * src/RequestGroup.cc
  8289. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Implemented the ability to get timestamp from remote FTP server using
  8291. MDTM command described in RFC3659.
  8292. * src/FtpConnection.cc
  8293. * src/FtpConnection.h
  8294. * src/FtpNegotiationCommand.cc
  8295. * src/FtpNegotiationCommand.h
  8296. * test/FtpConnectionTest.cc
  8297. * test/Makefile.am
  8298. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. Implemented the ability to get timestamp from remote HTTP server and
  8300. apply it to local file. To enable this feature, --remote-time option
  8301. is added. No usage text has been written yet.
  8302. If several servers returns difference timestamp, then aria2 uses latest
  8303. one.
  8304. * src/CopyDiskAdaptor.cc
  8305. * src/CopyDiskAdaptor.h
  8306. * src/DirectDiskAdaptor.cc
  8307. * src/DirectDiskAdaptor.h
  8308. * src/DiskAdaptor.h
  8309. * src/File.cc
  8310. * src/File.h
  8311. * src/HttpHeader.cc
  8312. * src/HttpHeader.h
  8313. * src/HttpResponse.cc
  8314. * src/HttpResponse.h
  8315. * src/HttpResponseCommand.cc
  8316. * src/HttpResponseCommand.h
  8317. * src/MultiDiskAdaptor.cc
  8318. * src/MultiDiskAdaptor.h
  8319. * src/OptionHandlerFactory.cc
  8320. * src/RequestGroup.cc
  8321. * src/RequestGroup.h
  8322. * src/RequestGroupMan.cc
  8323. * src/option_processing.cc
  8324. * src/prefs.cc
  8325. * src/prefs.h
  8326. * test/CopyDiskAdaptorTest.cc
  8327. * test/FileTest.cc
  8328. * test/Makefile.am
  8329. * test/Makefile.in
  8330. * test/MultiDiskAdaptorTest.cc
  8331. * test/TestUtil.cc
  8332. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Fixed the bug that DiskWriterEntry is not created when its
  8334. FileEntry.isRequested() is false and it doesn't share a piece with
  8335. other FileEntries that are requested. This bug causes segmentation fault
  8336. in the end.
  8337. * src/MultiDiskAdaptor.cc
  8338. * src/MultiDiskAdaptor.h
  8339. * src/MultiFileAllocationIterator.cc
  8340. * test/MultiDiskAdaptorTest.cc
  8341. * test/MultiFileAllocationIteratorTest.cc
  8342. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8343. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8344. called if the number of file entries are greater than max open files.
  8345. * src/AbstractSingleDiskAdaptor.cc
  8346. * src/AbstractSingleDiskAdaptor.h
  8347. * src/DiskAdaptor.h
  8348. * src/MultiDiskAdaptor.cc
  8349. * src/MultiDiskAdaptor.h
  8350. * test/MultiDiskAdaptorTest.cc
  8351. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Added a constuctor that receives struct timeval.
  8353. Added operator<.
  8354. * src/TimeA2.cc
  8355. * src/TimeA2.h
  8356. * test/TimeTest.cc
  8357. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8358. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8359. * src/CookieParser.cc
  8360. * test/CookieParserTest.cc
  8361. * test/HttpResponseTest.cc
  8362. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8363. Implmented the functions to parse date.
  8364. * src/TimeA2.cc
  8365. * src/TimeA2.h
  8366. * test/TimeTest.cc
  8367. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Added "Firefox3 Cookie" feature to FeatureConfig
  8369. * src/FeatureConfig.cc
  8370. * src/FeatureConfig.h
  8371. * test/FeatureConfigTest.cc
  8372. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8373. Bump up version number to 0.16.0b
  8374. * configure.ac
  8375. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8376. Use pkg-config if is is available.
  8377. * m4/openssl.m4
  8378. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8380. * src/BtAnnounce.h
  8381. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8382. If an error occurred with a URI, remove identical URI from remaining
  8383. URI list because it is likely that same error occurred in the end and it
  8384. is waste of time.
  8385. * src/AbstractCommand.cc
  8386. * src/RequestGroup.cc
  8387. * src/RequestGroup.h
  8388. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8389. Removed wrong comment.
  8390. * src/DefaultPeerStorage.cc
  8391. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8392. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8393. Added return value of getpid() to argument of srand() to achieve more
  8394. randomized value.
  8395. * src/SimpleRandomizer.cc
  8396. * src/SimpleRandomizer.h
  8397. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8398. Contact tracker frequently when the number of connections are 0 and
  8399. download is not finished yet.
  8400. * src/ActivePeerConnectionCommand.cc
  8401. * src/BtAnnounce.h
  8402. * src/DefaultBtAnnounce.cc
  8403. * src/DefaultBtAnnounce.h
  8404. * test/MockBtAnnounce.h
  8405. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. Moved threshold values to UTPexExtensionMessage.
  8407. * src/DefaultBtInteractive.cc
  8408. * src/Peer.cc
  8409. * src/Peer.h
  8410. * src/UTPexExtensionMessage.cc
  8411. * src/UTPexExtensionMessage.h
  8412. * test/UTPexExtensionMessageTest.cc
  8413. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8414. Added _incoming member to Peer class and made it true if the peer
  8415. initiated connection. Don't add those peer to UTPex message.
  8416. If extended handshake is received, assign _incoming to false.
  8417. * src/DefaultBtInteractive.cc
  8418. * src/HandshakeExtensionMessage.cc
  8419. * src/Peer.cc
  8420. * src/Peer.h
  8421. * src/PeerListenCommand.cc
  8422. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8423. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8424. Encoding Decoder. Removed size threshold for turning off on the fly
  8425. inflation because resulting file may or may not be inflated depending
  8426. on the file size and I think it is not expected by users.
  8427. This change fixes segmentation fault when Metalink file contains gzipped
  8428. file and its filesize is provided.
  8429. * src/HttpResponseCommand.cc
  8430. * src/HttpResponseCommand.h
  8431. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. Made Cookie immutable.
  8433. * src/Cookie.cc
  8434. * src/Cookie.h
  8435. * src/CookieParser.cc
  8436. * src/CookieParser.h
  8437. * src/CookieStorage.cc
  8438. * test/CookieParserTest.cc
  8439. * test/CookieStorageTest.cc
  8440. * test/NsCookieParserTest.cc
  8441. * test/Sqlite3MozCookieParserTest.cc
  8442. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8443. Removed CookieBox, CookieBoxFactory.
  8444. * src/CookieBox.cc
  8445. * src/CookieBox.h
  8446. * src/CookieBoxFactory.cc
  8447. * src/CookieBoxFactory.h
  8448. * src/Makefile.am
  8449. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8450. Use CookieStorage class instead of CookieBox class.
  8451. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8452. * src/AbstractProxyRequestCommand.cc
  8453. * src/CookieStorage.cc
  8454. * src/DownloadEngine.cc
  8455. * src/DownloadEngine.h
  8456. * src/HttpConnection.cc
  8457. * src/HttpConnection.h
  8458. * src/HttpRequest.cc
  8459. * src/HttpRequest.h
  8460. * src/HttpRequestCommand.cc
  8461. * src/HttpResponse.cc
  8462. * src/HttpResponseCommand.cc
  8463. * src/HttpSkipResponseCommand.cc
  8464. * src/Makefile.am
  8465. * src/MultiUrlRequestInfo.cc
  8466. * src/Request.cc
  8467. * src/Request.h
  8468. * src/main.cc
  8469. * test/AllTest.cc
  8470. * test/CookieStorageTest.cc
  8471. * test/CookieTest.cc
  8472. * test/HttpRequestTest.cc
  8473. * test/HttpResponseTest.cc
  8474. * test/Makefile.am
  8475. * test/NsCookieParserTest.cc
  8476. * test/Sqlite3MozCookieParserTest.cc
  8477. * test/nscookietest.txt
  8478. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Updated
  8480. * test/Cookies.sqlite
  8481. * test/nscookietest.txt
  8482. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Added tests for CookieStorage::load()
  8484. * test/CookieStorageTest.cc
  8485. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8486. Added CookieStorage class which is based on RFC2109 and manages cookies
  8487. more strictly than CookieBox and CookieBoxFactory class.
  8488. * src/CookieStorage.cc
  8489. * src/CookieStorage.h
  8490. * src/Cookie.cc
  8491. * src/Cookie.h
  8492. * test/CookieStorageTest.cc
  8493. * test/CookieTest.cc
  8494. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Fixed the bug that commands are created more than the number of pieces.
  8496. * src/RequestGroup.cc
  8497. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Fixed infinite loop bug in FTP when SIZE command failed.
  8499. * src/FtpNegotiationCommand.cc
  8500. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8501. Removed DirectDiskAdaptorTest.h
  8502. * test/Makefile.am
  8503. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8504. Fixed chunk checksum validation cannot detect trailing garbage data.
  8505. BUG#2074141
  8506. * src/AbstractSingleDiskAdaptor.cc
  8507. * src/AbstractSingleDiskAdaptor.h
  8508. * src/CheckIntegrityEntry.cc
  8509. * src/CheckIntegrityEntry.h
  8510. * src/DiskAdaptor.h
  8511. * src/MultiDiskAdaptor.cc
  8512. * src/MultiDiskAdaptor.h
  8513. * src/RequestGroup.cc
  8514. * test/DirectDiskAdaptorTest.cc
  8515. * test/MultiDiskAdaptorTest.cc
  8516. * test/TestUtil.cc
  8517. * test/TestUtil.h
  8518. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8519. Bump up version number of dht.dat file to 3. In version 3 format, time
  8520. is stored in 64bit, network byte order.
  8521. New build can load old format(version 2) but it saves the file in new
  8522. format. It means once you used new build, your dht.dat becomes
  8523. incompatible with older build.
  8524. * src/DHTRoutingTableDeserializer.cc
  8525. * src/DHTRoutingTableSerializer.cc
  8526. * test/DHTRoutingTableSerializerTest.cc
  8527. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8529. * test/Makefile.am
  8530. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8531. Bump up version number of .aria2 control file to 0001.
  8532. New aria2 can still load version 0000 file but it saves the file in
  8533. version 0001 format. It means that new aria2 can resume download
  8534. started by old aria2 but the opposite is not true.
  8535. * src/DefaultBtProgressInfoFile.cc
  8536. * src/DefaultBtProgressInfoFile.h
  8537. * test/DefaultBtProgressInfoFileTest.cc
  8538. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8539. Added ntoh64 and hton64 as inline functions.
  8540. * src/Util.cc
  8541. * test/UtilTest.cc
  8542. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. Added sqlite3 depenency and Firefox3 cookie support.
  8544. * README
  8545. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. State that firefox3 cookie is supported explicitly in the usage.
  8547. * src/usage_text.h
  8548. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Externalized message.
  8550. * src/RequestGroupMan.cc
  8551. * src/message.h
  8552. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Save temporary file first and rename to the destination on success.
  8554. Added test cases.
  8555. * src/RequestGroupMan.cc
  8556. * test/RequestGroupManTest.cc
  8557. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. Fixed the bug that the number of connected peer is exceeding the limit
  8559. (55 by default) in seeding mode.
  8560. Multiplied 0.8 to _maxUploadSpeedLimit.
  8561. * src/ActivePeerConnectionCommand.cc
  8562. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. Clear table item.
  8564. * src/Dictionary.cc
  8565. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. Fixed error handling of lseek.
  8567. * src/AbstractDiskWriter.cc
  8568. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8569. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8570. style cookie file.
  8571. * src/usage_text.h
  8572. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8574. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8575. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8576. * src/Util.cc
  8577. * src/Util.h
  8578. * src/CookieParser.cc
  8579. * test/UtilTest.cc
  8580. * test/CookieParserTest.cc
  8581. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8582. Separate the implementation to load old mozilla format of cookie to
  8583. NsCookieParser class.
  8584. * src/CookieBoxFactory.cc
  8585. * src/CookieBoxFactory.h
  8586. * src/NsCookieParser.cc
  8587. * src/NsCookieParser.h
  8588. * test/NsCookieParserTest.cc
  8589. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. Made parse() const
  8591. * src/Sqlite3MozCookieParser.cc
  8592. * src/Sqlite3MozCookieParser.h
  8593. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8594. Added firefox3 cookie support based on the patch submitted by
  8595. tizianomueller.
  8596. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8597. this functionality.
  8598. * configure.ac
  8599. * m4/sqlite3.m4
  8600. * src/CookieBoxFactory.cc
  8601. * src/CookieBoxFactory.h
  8602. * src/Makefile.am
  8603. * src/Makefile.in
  8604. * src/Sqlite3MozCookieParser.cc
  8605. * src/Sqlite3MozCookieParser.h
  8606. * src/main.cc
  8607. * test/CookieBoxFactoryTest.cc
  8608. * test/Makefile.am
  8609. * test/Makefile.in
  8610. * test/Sqlite3MozCookieParserTest.cc
  8611. * test/badcookies.sqlite
  8612. * test/cookies.sqlite
  8613. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. Added Danish and Greek translations.
  8615. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8616. Great thanks to all translators.
  8617. * po/LINGUAS
  8618. * po/el.po
  8619. * po/da.po
  8620. * po/es.po
  8621. * po/ca.po
  8622. * po/nn.po
  8623. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8624. Fixed man page: --follow-bittorrent should be --follow-torrent
  8625. * doc/aria2c.1.txt
  8626. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Fixed: numCommand is less than the value specified in -C option.
  8628. * src/RequestGroup.cc
  8629. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. Fixed occasional assertion failure in PieceSegment.
  8631. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8632. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8633. creation of duplicate segments and one of the segment was finished then
  8634. assertion failure was caused.
  8635. * src/SegmentMan.cc
  8636. * test/SegmentManTest.cc
  8637. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8638. Added options to load/save the server's performance/status to a file
  8639. and the timeout to drop their data.
  8640. --server-stat-of=FILE specifies the file to which performance data
  8641. is saved.
  8642. --server-stat-if=FILE specifies the file to read previously saved
  8643. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8644. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8645. TIMEOUT is specified in seconds and the default value is 24hours.
  8646. * src/MultiUrlRequestInfo.cc
  8647. * src/OptionHandlerFactory.cc
  8648. * src/RequestGroupMan.cc
  8649. * src/RequestGroupMan.h
  8650. * src/ServerStatMan.cc
  8651. * src/ServerStatMan.h
  8652. * src/option_processing.cc
  8653. * src/prefs.cc
  8654. * src/prefs.h
  8655. * test/ServerStatManTest.cc
  8656. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8658. * src/ServerStatMan.cc
  8659. * src/ServerStatMan.h
  8660. * test/ServerStatManTest.cc
  8661. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8662. Implemented ServerStatMan::load(...) function and its test case.
  8663. * src/ServerStat.cc
  8664. * src/ServerStat.h
  8665. * src/ServerStatMan.cc
  8666. * test/ServerStatManTest.cc
  8667. * test/ServerStatTest.cc
  8668. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8669. Use time_t instead of int32_t. Use int64_t where milli second is
  8670. expected.
  8671. * src/TimeA2.cc
  8672. * src/TimeA2.h
  8673. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. Implemented ServerStatMan::save(...) function and its test case.
  8675. * src/ServerStat.cc
  8676. * src/ServerStat.h
  8677. * src/ServerStatMan.cc
  8678. * src/ServerStatMan.h
  8679. * test/ServerStatManTest.cc
  8680. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. Now aria2 uses name attribute in Metalink as local filename in
  8682. BitTorrent downloads. BUG#2033999
  8683. * src/BtContext.h
  8684. * src/BtDependency.cc
  8685. * src/DefaultBtContext.cc
  8686. * src/DefaultBtContext.h
  8687. * src/SingleFileDownloadContext.cc
  8688. * src/SingleFileDownloadContext.h
  8689. * test/BtDependencyTest.cc
  8690. * test/DefaultBtContextTest.cc
  8691. * test/MockBtContext.h
  8692. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. Added AC_C_BIGENDIAN
  8694. * src/configure.ac
  8695. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8696. Limited numCommand less than or equal to the number of piece.
  8697. * src/RequestGroup.cc
  8698. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8700. directive.
  8701. * test/DefaultPieceStorageTest.cc
  8702. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8703. Fixed memory leak in test code
  8704. * test/AnnounceListTest.cc
  8705. * test/DefaultPeerListProcessorTest.cc
  8706. * test/DefaultPeerStorageTest.cc
  8707. * test/MetaFileUtilTest.cc
  8708. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8709. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8710. * src/DefaultPieceStorage.cc
  8711. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8712. Initialized _directIOAllowed
  8713. * src/MultiDiskAdaptor.cc
  8714. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Fixed memory leak
  8716. * src/GZipDecoder.cc
  8717. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8718. Fixed memory leak
  8719. * src/MetalinkParserStateMachine.cc
  8720. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Fixed memory leak
  8722. * src/Dictionary.cc
  8723. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. Fixed memory leak
  8725. * src/IteratableChunkChecksumValidator.h
  8726. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Fixed unmatched malloc/free.
  8728. * src/IteratableChunkChecksumValidator.cc
  8729. * src/IteratableChecksumValidator.cc
  8730. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8731. Removed max chunk size check. This change fixes BUG#2040169
  8732. * src/ChunkedDecoder.cc
  8733. * src/ChunkedDecoder.h
  8734. * test/ChunkedDecoderTest.cc
  8735. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8736. Implemented download speed based URI selection algorithm.
  8737. Introduced new option --uri-selector.
  8738. If --uri-selector=feedback is given, aria2 uses download speed observed
  8739. in the previous downloads and chooses fastest server in the URI list.
  8740. Currently at most 10 URIs are considered to introduce randomeness for
  8741. finding better servers. The speed is average download speed in the
  8742. downloads.
  8743. On the other hand, if --uri-selector=inorder is given, which is default,
  8744. URI is tried in order in URI list.
  8745. The usage text for the new option has not been written yet.
  8746. * src/AbstractCommand.cc
  8747. * src/DownloadCommand.cc
  8748. * src/DownloadEngine.cc
  8749. * src/DownloadEngineFactory.cc
  8750. * src/InOrderURISelector.cc
  8751. * src/InOrderURISelector.h
  8752. * src/OptionHandlerFactory.cc
  8753. * src/PeerStat.h
  8754. * src/RequestGroup.cc
  8755. * src/RequestGroup.h
  8756. * src/RequestGroupMan.cc
  8757. * src/RequestGroupMan.h
  8758. * src/SegmentMan.cc
  8759. * src/SegmentMan.h
  8760. * src/ServerStat.cc
  8761. * src/ServerStat.h
  8762. * src/ServerStatMan.cc
  8763. * src/ServerStatMan.h
  8764. * src/ServerStatURISelector.cc
  8765. * src/ServerStatURISelector.h
  8766. * src/URISelector.h
  8767. * src/option_processing.cc
  8768. * src/prefs.cc
  8769. * src/prefs.h
  8770. * test/InOrderURISelectorTest.cc
  8771. * test/RequestGroupManTest.cc
  8772. * test/ServerStatManTest.cc
  8773. * test/ServerStatURISelectorTest.cc
  8774. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8775. * Release 0.15.1+2
  8776. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8777. Bump up version number to 0.15.1+2
  8778. * configure.ac
  8779. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8780. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8781. * m4/aria2_arg.m4
  8782. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. * Release 0.15.1+1
  8784. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Bump up version number to 0.15.1+1
  8786. * configure.ac
  8787. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. Fixed the bug that causes segmentaion fault when resuming download
  8789. using metalink without size tag. Reproducible only using HTTP URI.
  8790. * src/HttpResponseCommand.cc
  8791. * src/FtpNegotiationCommand.cc
  8792. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. * Release 0.15.1
  8794. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Updated Bulgarian and French translations, thanks to all translators.
  8796. * po/bg.po
  8797. * po/fr.po
  8798. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8799. Bump up version number to 0.15.1
  8800. * configure.ac
  8801. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8802. Avoid repeated call of gettimeofday() when calculating speed.
  8803. * src/SpeedCalc.cc
  8804. * src/SpeedCalc.h
  8805. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8806. Removed writable check when socket's send buffer is full in BitTorrent
  8807. downloads to lower CPU usage.
  8808. * src/PeerInteractionCommand.cc
  8809. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Fixed broken gzip inflation.
  8811. Turn off segmented downloading if gzip content is smaller than or equal
  8812. to 1MiB and inflate the data on the fly, because HTTP response header
  8813. doesn't contain the length of inflated file we can't determin where
  8814. the chunk of data should be written.
  8815. On the other hand, if gzip content is larger than 1MB, then turn off
  8816. on the fly inflation, because some servers returns "content-type: gzip"
  8817. for *.tgz, *.gz files.
  8818. * src/DownloadCommand.cc
  8819. * src/HttpResponseCommand.cc
  8820. * src/HttpResponseCommand.h
  8821. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8822. Applied tizianomueller's patch to fix compile error.
  8823. * test/BitfieldManTest.cc
  8824. * test/BtRequestMessageTest.cc
  8825. * test/DefaultBtContextTest.cc
  8826. * test/DefaultDiskWriterTest.cc
  8827. * test/DefaultPieceStorageTest.cc
  8828. * test/HttpHeaderProcessorTest.cc
  8829. * test/HttpResponseTest.cc
  8830. * test/Metalink2RequestGroupTest.cc
  8831. * test/MetalinkParserControllerTest.cc
  8832. * test/MetalinkProcessorTest.cc
  8833. * test/PeerSessionResourceTest.cc
  8834. * test/UtilTest.cc
  8835. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. * Release 0.15.0
  8837. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Reordered src files in POTFILES.in so that usage text appears first.
  8839. * po/POTFILES.in
  8840. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Bump up version number to 0.15.0
  8842. * configure.ac
  8843. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. Added Bulgarian translation.
  8845. Updated Catalan, Spanish, French and Japanese translations.
  8846. Thanks to all translators.
  8847. * po/LINGUAS
  8848. * po/bg.po
  8849. * po/ca.po
  8850. * po/es.po
  8851. * po/fr.po
  8852. * po/ja.po
  8853. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. Updated feature list. Added libz for dependency section.
  8855. Added a description about unit testing using CppUnit.
  8856. * README
  8857. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Added a test for libz. Quoted where it is necessary.
  8859. * build_test.sh
  8860. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Added GZip to `Enabled Features' list.
  8862. * src/FeatureConfig.cc
  8863. * src/FeatureConfig.h
  8864. * test/FeatureConfigTest.cc
  8865. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8867. the transfer has not yet started.
  8868. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8869. * src/SegmentMan.cc
  8870. * src/SegmentMan.h
  8871. * test/SegmentManTest.cc
  8872. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8873. Cache last calculated average download/upload speed.
  8874. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8875. cached value.
  8876. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8877. * src/PeerStat.h
  8878. * src/SpeedCalc.cc
  8879. * src/SpeedCalc.h
  8880. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8881. Call parseUrl directly.
  8882. * src/Request.cc (resetUrl)
  8883. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8884. Supported absolute/relative path in Location header field.
  8885. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8886. * src/HttpHeader.cc
  8887. * src/HttpHeader.h
  8888. * src/HttpResponse.cc
  8889. * src/HttpSkipResponseCommand.cc
  8890. * src/Request.cc
  8891. * test/HttpHeaderTest.cc
  8892. * test/HttpResponseTest.cc
  8893. * test/RequestTest.cc
  8894. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8895. Changed help text for --load-cookie option.
  8896. * doc/aria2c.1.txt
  8897. * src/usage_text.h
  8898. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8899. Regenerated test/Makefile.in to remove stale ChangeLog.
  8900. * test/Makefile.in
  8901. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8902. Updated po files.
  8903. * po/aria2c.pot
  8904. * po/*.po
  8905. * po/*.gmo
  8906. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8907. Bump up version number to 0.15.0b
  8908. * configure.ac
  8909. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8910. Externalize messages.
  8911. * src/RequestGroupMan.cc
  8912. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8913. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8914. Use File::exists() instead of File::isFile() to allow non-regular file
  8915. such as block special files.
  8916. * src/AbstractDiskWriter.cc
  8917. * src/MultiDiskWriter.cc
  8918. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8920. * src/gai_strerror.h
  8921. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8922. Fixed compile error. Thanks gknauf for the patch.
  8923. * src/asctime_r.c
  8924. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. Included asctime_r.h from a2time.h.
  8926. * src/a2time.h
  8927. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8928. Added a message "aria2 doesn't verify signature" to log message when
  8929. signature file is saved.
  8930. * src/RequestGroupMan.cc
  8931. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8932. Added the ability to save signature when download is completed if
  8933. signature is available. The filename of signature file is the path to
  8934. download file followed by ".sig". If it already exists, then signature
  8935. will not be saved.
  8936. * src/RequestGroupMan.cc
  8937. * src/Signature.cc
  8938. * test/SignatureTest.cc
  8939. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8940. Updated the descriptions for --bt-seed-unverified.
  8941. * doc/aria2c.1
  8942. * doc/aria2c.1.html
  8943. * doc/aria2c.1.txt
  8944. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8945. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8946. that this is not going to verify files using piece hashes.
  8947. * src/HelpItemFactory.cc
  8948. * src/OptionHandlerFactory.cc
  8949. * src/RequestGroup.cc
  8950. * src/option_processing.cc
  8951. * src/prefs.cc
  8952. * src/prefs.h
  8953. * src/usage_text.h
  8954. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8955. Added the ability to retrieve signature from Metalink file.
  8956. A retrieved signature is stored in Signature class and it is held by
  8957. DownloadContext class. Note that aria2 doesn't verify signature.
  8958. * src/DownloadContext.cc
  8959. * src/DownloadContext.h
  8960. * src/Makefile.am
  8961. * src/Makefile.in
  8962. * src/Metalink2RequestGroup.cc
  8963. * src/MetalinkEntry.cc
  8964. * src/MetalinkEntry.h
  8965. * src/MetalinkParserController.cc
  8966. * src/MetalinkParserController.h
  8967. * src/MetalinkParserStateMachine.cc
  8968. * src/MetalinkParserStateMachine.h
  8969. * src/Signature.cc
  8970. * src/Signature.h
  8971. * src/SignatureMetalinkParserState.cc
  8972. * src/SignatureMetalinkParserState.h
  8973. * src/VerificationMetalinkParserState.cc
  8974. * src/VerificationMetalinkParserState.h
  8975. * test/Metalink2RequestGroupTest.cc
  8976. * test/MetalinkParserControllerTest.cc
  8977. * test/MetalinkProcessorTest.cc
  8978. * test/test.xml
  8979. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Close DiskAdaptor after renaming file.
  8981. * src/RequestGroup.cc
  8982. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8983. Corrected indentation
  8984. * src/DefaultBtProgressInfoFile.cc
  8985. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8986. Moved the calls of std::ios::exceptions() inside of try-catch block
  8987. because if an error occurred in constructor of std::fstream, then
  8988. exception is thrown immediately when std::ios::exceptions() is called
  8989. which results unhandled exception and aria2c aborts.
  8990. * src/DefaultBtProgressInfoFile.cc
  8991. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Added the test for the previous change in DefaultBtContext.cc
  8993. * test/DefaultBtContextTest.cc
  8994. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8995. Fixed the bug that causes infinite loop when the number of pieces are
  8996. fewer than allowed fast set size which is 10 by default.
  8997. * src/DefaultBtContext.cc
  8998. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8999. Updated the descriptions for -j, -s. Added --bt-seed.
  9000. * doc/aria2c.1
  9001. * doc/aria2c.1.html
  9002. * doc/aria2c.1.txt
  9003. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9005. aria2 seeds previously downloaded files without validating piece hashs.
  9006. * src/HelpItemFactory.cc
  9007. * src/OptionHandlerFactory.cc
  9008. * src/RequestGroup.cc
  9009. * src/option_processing.cc
  9010. * src/prefs.cc
  9011. * src/prefs.h
  9012. * src/usage_text.h
  9013. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9014. Updated DESCRIPTION of man page.
  9015. * doc/aria2c.1
  9016. * doc/aria2c.1.html
  9017. * doc/aria2c.1.txt
  9018. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9019. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9020. Don't define `struct addrinfo' when __sun is defined.
  9021. * src/getaddrinfo.h
  9022. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9024. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9025. second argument is of type `struct _stati64'. Otherwise it is defined as
  9026. `struct stat'.
  9027. * src/AbstractDiskWriter.cc
  9028. * src/File.cc
  9029. * src/File.h
  9030. * src/a2io.h
  9031. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Fixed the compile error in hurd-i386
  9033. See the original bug report:
  9034. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9035. * src/a2io.h
  9036. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9037. Code cleanup.
  9038. * src/PeerAbstractCommand.cc
  9039. * src/PeerAbstractCommand.h
  9040. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. Removed TransferEncoding.
  9042. * src/DownloadCommand.cc
  9043. * src/DownloadCommand.h
  9044. * src/HttpResponseCommand.cc
  9045. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9046. Updated po files.
  9047. * po/aria2c.pot
  9048. * po/*.po
  9049. * po/*.gmo
  9050. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9052. * src/A2STR.cc
  9053. * src/A2STR.h
  9054. * src/ChunkedDecoder.cc
  9055. * src/ChunkedDecoder.h
  9056. * src/ChunkedEncoding.cc: Removed
  9057. * src/ChunkedEncoding.h: Removed
  9058. * src/DownloadCommand.cc
  9059. * src/DownloadCommand.h
  9060. * src/HttpDownloadCommand.cc
  9061. * src/HttpResponse.cc
  9062. * src/HttpResponse.h
  9063. * src/HttpResponseCommand.cc
  9064. * src/HttpSkipResponseCommand.cc
  9065. * src/HttpSkipResponseCommand.h
  9066. * src/Makefile.am
  9067. * src/TransferEncoding.h: Removed
  9068. * test/ChunkedDecoderTest.cc
  9069. * test/ChunkedEncodingTest.cc: Removed
  9070. * test/HttpResponseTest.cc
  9071. * test/Makefile.am
  9072. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9073. Use append instead of insert.
  9074. * src/GZipDecoder.cc
  9075. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9076. Updated doc
  9077. * src/Decoder.h
  9078. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9079. Updated usage text for -s option.
  9080. * src/usage_text.h
  9081. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9083. * src/Request.cc
  9084. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9085. Cleaned up configure.ac.
  9086. * configure.ac
  9087. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9088. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9089. AC_ARG_ENABLE.
  9090. * configure.ac
  9091. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9093. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9094. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9095. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9096. fly and writes decoded data to a local disk.
  9097. * README
  9098. * README.html
  9099. * configure.ac
  9100. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9101. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9102. * m4/libz.m4
  9103. * src/Decoder.h
  9104. * src/DownloadCommand.cc
  9105. * src/DownloadCommand.h
  9106. * src/Exception.h
  9107. * src/GZipDecoder.cc
  9108. * src/GZipDecoder.h
  9109. * src/HttpHeader.cc
  9110. * src/HttpHeader.h
  9111. * src/HttpRequest.cc
  9112. * src/HttpRequest.h
  9113. * src/HttpResponse.cc
  9114. * src/HttpResponse.h
  9115. * src/HttpResponseCommand.cc
  9116. * src/Makefile.am
  9117. * test/GZipDecoderTest.cc
  9118. * test/HttpRequestTest.cc
  9119. * test/HttpResponseTest.cc
  9120. * test/Makefile.am
  9121. * test/Makefile.in
  9122. * test/gzip_decode_test.gz
  9123. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9124. Clarified usage of -j option.
  9125. * src/usage_text.h
  9126. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9127. Disabled getting size from the response of RETR.
  9128. If SIZE command failed, then disable resuming and segmented downloading.
  9129. * src/FtpConnection.cc
  9130. * src/FtpConnection.h
  9131. * src/FtpNegotiationCommand.cc
  9132. * src/FtpNegotiationCommand.h
  9133. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. Use digits to find first byte of file size, which makes the intention
  9135. of the code clearer.
  9136. * src/FtpConnection.cc
  9137. Don't call validateTotalLength() when size is 0.
  9138. * src/FtpNegotiationCommand.cc
  9139. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. Updated po files.
  9141. * po/aria2c.pot
  9142. * po/*.gmo
  9143. * po/*.po
  9144. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9145. Clarified usage text for --split option.
  9146. * src/usage_text.h
  9147. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9148. Bump up version number to 0.15.0dev. "dev" means "development"
  9149. version, which means I started the development of the next release!
  9150. * src/configure.ac
  9151. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. If FTP server returns negative response with REST raw command and
  9153. requested range is not 0, throw exception. If requested range is 0,
  9154. continue download a file from 0 byte.
  9155. * src/FtpNegotiationCommand.cc
  9156. * src/FtpNegotiationCommand.h
  9157. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9158. Supported FTP server which don't recognize SIZE raw command.
  9159. If SIZE raw command is failed, aria2 will try to get file size
  9160. from the response of RETR raw command. If both attempts are failed,
  9161. then resuming and segmented downloading are disabled.
  9162. * src/FtpConnection.cc
  9163. * src/FtpConnection.h
  9164. * src/FtpNegotiationCommand.cc
  9165. * src/FtpNegotiationCommand.h
  9166. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. * Release 0.14.0+1
  9168. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9169. Bump up version number to 0.14.0+1
  9170. * src/configure.ac
  9171. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9172. Fixed the code that refers static member variable from non-static
  9173. context.
  9174. * src/DefaultPeerStorage.cc
  9175. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. * Release 0.14.0
  9177. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9178. Added build test script
  9179. * build_test.sh
  9180. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9181. Updated ja.po
  9182. * src/ja.po
  9183. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9184. Bump up version number to 0.14.0
  9185. * src/configure.ac
  9186. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9187. Updated ja.po and fr.po. Great thanks for french translators and
  9188. Sebastien WILLEMIJNS.
  9189. * po/fr.po
  9190. * po/ja.po
  9191. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. Added configure option to enable/disable epoll support.
  9193. * configure.ac
  9194. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Updated man page.
  9196. * doc/aria2c.1.txt
  9197. * doc/aria2c.1
  9198. * doc/aria2c.1.html
  9199. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. Added missing default value '5' to the usage of --split option.
  9201. * src/HelpItemFactory.cc
  9202. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Filled up pieces based on the number of missing blocks, rather than
  9204. simplay the number of piece * block length.
  9205. * src/BtRequestFactory.h
  9206. * src/DefaultBtInteractive.cc
  9207. * src/DefaultBtInteractive.h
  9208. * src/DefaultBtRequestFactory.cc
  9209. * src/DefaultBtRequestFactory.h
  9210. * src/Piece.cc
  9211. * src/Piece.h
  9212. * test/BitfieldManTest.cc
  9213. * test/DefaultBtRequestFactoryTest.cc
  9214. * test/MockBtRequestFactory.h
  9215. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9216. Made _epEvents a member variable.
  9217. * src/DownloadEngine.cc
  9218. * src/DownloadEngine.h
  9219. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Cancel download if http redirect is bounded more than 20 times.
  9221. * src/AbstractCommand.cc
  9222. * src/HttpSkipResponseCommand.cc
  9223. * src/Request.cc
  9224. * src/Request.h
  9225. * test/RequestTest.cc
  9226. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Fixed unhandled exception(removed keyword `new').
  9228. * src/SocketCore.cc (initEPOLL)
  9229. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9230. Removed visit(const MetaEntry*)
  9231. * src/MetaEntryVisitor.h:
  9232. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9233. and made them virtual.
  9234. * src/BencodeVisitor.h
  9235. * src/BencodeVisitor.cc
  9236. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9237. Updated po files.
  9238. * po/aria2c.pot
  9239. * po/*.po
  9240. * po/*.gmo
  9241. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9243. the number of socket to watch out.
  9244. * src/PeerInteractionCommand.cc
  9245. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. When there is not enough space in disk when writing a chunk of data,
  9247. aria2 now prints the message to the console to warn user and aborts
  9248. its download. Not all downloads are canceled because some downloads
  9249. may use another disk or partition. BUG#1640332
  9250. * src/AbstractDiskWriter.cc
  9251. * src/PeerAbstractCommand.cc
  9252. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9253. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9254. setHaltRequested(true) to cancel download.
  9255. * src/PeerInteractionCommand.h
  9256. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9258. socket from int to sock_t as sockets are unsigned in Windows.
  9259. For AsyncNameResolver, DownloadEngine, I did additional modification
  9260. for the portion of the code changed according to epoll support.
  9261. I defined sock_t in a2netcompat.h to use sock_t without including
  9262. SocketCore.h.
  9263. * src/AsyncNameResolver.cc
  9264. * src/AsyncNameResolver.h
  9265. * src/DownloadEngine.cc
  9266. * src/DownloadEngine.h
  9267. * src/SocketCore.cc
  9268. * src/SocketCore.h
  9269. * src/a2netcompat.h
  9270. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9271. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9272. changes in the patch were applied.
  9273. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9274. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9275. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9276. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9277. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9278. a2io.h and common.h were modified.
  9279. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9280. MinGW.
  9281. * src/common.h: Changed off_t to 64 bit in MinGW.
  9282. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9283. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9284. only a2netcompat.h is modified.
  9285. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9286. directives.
  9287. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9289. only gai_strerror.h is modified.
  9290. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9291. winsock errors in MinGW.
  9292. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9294. follow sources are applied.
  9295. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9296. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9297. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9298. I included locale.h from Platform.cc.
  9299. * src/main.cc: Moved common setup/teardown code to Platform class.
  9300. * test/AllTest.cc: Use Platform class.
  9301. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9302. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9303. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9304. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9305. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9306. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9307. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9308. aria2-0.13.2+1-mingw-2.patch.
  9309. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9310. systems which don't have termious.h. I moved the directive inside of
  9311. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9312. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9313. anyway.
  9314. * src/asctime_r.h
  9315. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9316. I added 2nd argument to the prototype declaration.
  9317. * src/StringFormat.cc: Get rid of vasprintf.
  9318. * src/getaddrinfo.h: Fixed constants.
  9319. * configure.ac: Added the check for asctime_r function.
  9320. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9321. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9322. Added writable test for Socket when the sending message is in progress.
  9323. Usually the sending message is piece message. Without wriable check,
  9324. upload latency is dropped to more than 1sec.
  9325. * src/PeerInteractionCommand.cc
  9326. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. Create only requested files and files which shares a piece with
  9328. requested file in multi-torrent downloads. Directory structures are
  9329. also created in the same rule.
  9330. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9331. DiskWriterEntry as in the previous implementation.
  9332. * src/MultiDiskWriter.cc
  9333. * src/MultiFileAllocationIterator.cc
  9334. * src/MultiFileAllocationIterator.h
  9335. * test/MultiFileAllocationIteratorTest.cc
  9336. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9337. Commented out -lprofiler
  9338. * src/Makefile.am
  9339. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9340. Bump up version number to 0.14.0b.
  9341. * src/configure.ac
  9342. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Actively establish connection to peers in seeding, when peer cache
  9344. is not full and max upload speed limit is not reached.
  9345. * src/ActivePeerConnectionCommand.cc
  9346. * src/ActivePeerConnectionCommand.h
  9347. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9348. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9349. to make room more fleshy, recently found peers.
  9350. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9351. it.
  9352. * src/DefaultPeerStorage.cc
  9353. * test/DefaultPeerStorageTest.cc
  9354. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9355. Returns cached data only when the previous receiveHandshake() is called
  9356. with peek = true.
  9357. * src/PeerConnection.cc (receiveHandshake)
  9358. * src/PeerConnection.h (receiveHandshake)
  9359. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9360. Changed default value of -s option from 1 to 5.
  9361. Also max value of -s option is changed from 5 to 16.
  9362. * src/HelpItemFactory.cc
  9363. * src/OptionHandlerFactory.cc
  9364. * src/option_processing.cc
  9365. * src/usage_text.h
  9366. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9367. Changed -s options behavior. Now it means the number of connections
  9368. made simultaneously in each http/ftp download.
  9369. If 1 URL is specified, the behavior is the same with old implementation.
  9370. If -s N is given and more than N URLs are specified, first N URLs are
  9371. used and remaining URLs are used for backup. If less than N URLs are
  9372. specified, some of URLs are used more than once so that totally N
  9373. connections are made simultaneously.
  9374. * src/main.cc
  9375. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Included missing iosfwd or ostream header.
  9377. * src/RequestGroupMan.cc
  9378. * src/TaggedItem.cc
  9379. * src/TaggedItem.h
  9380. * src/Util.cc
  9381. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9383. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9384. * src/HttpConnection.cc: Included missing sstream.
  9385. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. Added --bt-max-open-files option.
  9387. * src/DefaultPieceStorage.cc
  9388. * src/HelpItemFactory.cc
  9389. * src/MultiDiskAdaptor.cc
  9390. * src/MultiDiskAdaptor.h
  9391. * src/OptionHandlerFactory.cc
  9392. * src/option_processing.cc
  9393. * src/prefs.cc
  9394. * src/prefs.h
  9395. * src/usage_text.h
  9396. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9397. Fixed the bug that aria2 aborts when a path to a directory is given
  9398. in command-line.
  9399. * src/ProtocolDetector.cc
  9400. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. Limited the number files opened in each BitTorrent download. The default
  9402. value is 100. The option to change this value will be added.
  9403. * src/MultiDiskAdaptor.cc
  9404. * src/MultiDiskAdaptor.h
  9405. * src/MultiFileAllocationIterator.cc
  9406. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9407. Fixed the bug that HTTP downloads don't start with old libraries.
  9408. * src/HttpHeaderProcessor.cc
  9409. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Use empty() instead of size() > 0.
  9411. * src/HttpConnection.cc
  9412. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9413. Drop connection if the incoming peer ID is the same with localhost's
  9414. one. The previous implementation drops connection when incoming peer's
  9415. IP address is the same with localhost's one.
  9416. * src/PeerListenCommand.cc
  9417. * src/DefaultBtInteractive.cc
  9418. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9419. Returns cached data without checking whether socket is readable
  9420. if the cache is available.
  9421. * src/PeerConnection.cc (receiveHandshake)
  9422. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9423. Included stdint.h
  9424. * src/common.h
  9425. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Removed duplicate HAVE_GETTIMEOFDAY
  9427. * src/Makefile.am
  9428. * src/Makefile.in
  9429. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Use interval as a minInterval when minInterval is not supplied.
  9431. * src/DefaultBtAnnounce.cc
  9432. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9434. attempt is failed, then 2nd attempt get kicked out more quickly.
  9435. And it is now static const member of DefaultBtAnnounce.
  9436. * src/DefaultBtAnnounce.h
  9437. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9438. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9439. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9440. * src/ActivePeerConnectionCommand.cc
  9441. * src/BtConstants.h
  9442. * src/BtRuntime.h
  9443. * src/DHTGetPeersCommand.cc
  9444. * src/DefaultBtAnnounce.cc
  9445. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9446. BtRuntime::MAX_PEERS.
  9447. * src/DefaultPeerStorage.h
  9448. * src/InitiatorMSEHandshakeCommand.cc
  9449. * src/PeerInitiateConnectionCommand.cc
  9450. * src/PeerInteractionCommand.cc
  9451. * src/PeerReceiveHandshakeCommand.cc
  9452. * src/TrackerWatcherCommand.cc
  9453. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Always Connect to _numNewConnection
  9455. * src/ActivePeerConnectionCommand.cc
  9456. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. Made `begin' unsigned int.
  9458. * src/GrowSegment.h
  9459. * src/Piece.cc
  9460. * src/Piece.h
  9461. * src/PiecedSegment.cc
  9462. * src/PiecedSegment.h
  9463. * src/Segment.h
  9464. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9465. Calculate piece hash when data is arrived if the data is arrived in
  9466. order. This removes additional read operation for hash calculation.
  9467. If the data is arrived in out of order, the hash is calucated when the
  9468. piece is completed. This is the same behavior as the old implementation.
  9469. * src/BtPieceMessage.cc
  9470. * src/DefaultBtProgressInfoFile.cc
  9471. * src/DefaultPieceStorage.cc
  9472. * src/DownloadCommand.cc
  9473. * src/DownloadCommand.h
  9474. * src/DownloadEngine.cc
  9475. * src/GrowSegment.cc
  9476. * src/GrowSegment.h
  9477. * src/Piece.cc
  9478. * src/Piece.h
  9479. * src/PiecedSegment.cc
  9480. * src/PiecedSegment.h
  9481. * src/Segment.h
  9482. * test/PieceTest.cc
  9483. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9484. Try to keep the ordering of outgoing piece message.
  9485. * src/DefaultBtMessageDispatcher.cc
  9486. (DefaultBtMessageDispatcher::sendMessages)
  9487. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9488. Fixed busy loop when error/hup epoll events occur.
  9489. * src/AbstractCommand.cc
  9490. * src/PeerAbstractCommand.cc
  9491. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9492. Added --bt-request-peer-speed-limit option, which was a constant
  9493. SLOW_SPEED_THRESHOLD.
  9494. * src/ActivePeerConnectionCommand.cc
  9495. * src/ActivePeerConnectionCommand.h
  9496. * src/BtConstants.h
  9497. * src/HelpItemFactory.cc
  9498. * src/OptionHandlerFactory.cc
  9499. * src/PeerReceiveHandshakeCommand.cc
  9500. * src/option_processing.cc
  9501. * src/prefs.cc
  9502. * src/prefs.h
  9503. * src/usage_text.h
  9504. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. Removed repeated call of getTopDirPath(). Instead, call it once and
  9506. cache the result.
  9507. * src/MultiDiskAdaptor.cc
  9508. * src/MultiDiskAdaptor.h
  9509. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9510. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. Fixed compile error on debian etch.
  9512. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9513. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9514. it is undefined.
  9515. * src/Util.cc (ULLONG_MAX)
  9516. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9517. Added epoll support. Use epoll if it is available. If not, use select.
  9518. When async dns is enabled in compile time, epoll support is enabled
  9519. only when aria2 is built with c-ares. This condition statement is
  9520. defined in a2io.h.
  9521. Currently aria2 supports both c-ares and ares, but ares is maintained
  9522. for quite a while and debian already has c-ares package, ares support
  9523. will be dropped in the future version.
  9524. * configure.ac
  9525. * src/AbstractCommand.cc
  9526. * src/AsyncNameResolver.cc
  9527. * src/AsyncNameResolver.h
  9528. * src/Command.cc
  9529. * src/Command.h
  9530. * src/DownloadEngine.cc
  9531. * src/DownloadEngine.h
  9532. * src/PeerAbstractCommand.cc
  9533. * src/SocketCore.cc
  9534. * src/SocketCore.h
  9535. * src/a2io.h
  9536. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9537. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9538. directive.
  9539. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9540. Do not do write operation to /dev/null file.
  9541. * src/LogFactory.cc
  9542. * src/SimpleLogger.cc
  9543. Replaced vasprintf with vsnprintf
  9544. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9545. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9546. * src/BtRequestMessage.cc
  9547. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9548. for segmentation fault caused by previous commit.
  9549. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. Reduced the usage of gettimeofday().
  9551. * src/DefaultBtMessageDispatcher.cc
  9552. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9553. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9554. * src/RequestSlot.cc
  9555. * src/RequestSlot.h
  9556. (RequestSlot::isTimeout)
  9557. Made RequestSlot have a reference to Piece object to avoid find
  9558. Piece repeatedly.
  9559. * src/DefaultBtMessageDispatcher.cc
  9560. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9561. * src/RequestSlot.cc
  9562. * src/RequestSlot.h
  9563. (RequestSlot::getPiece)
  9564. * test/DefaultBtMessageDispatcherTest.cc
  9565. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9566. * src/TimeA2.cc
  9567. * src/TimeA2.h
  9568. (Time::difference): New function.
  9569. (Time::elapsed): Done optimization.
  9570. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9571. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9572. directive.
  9573. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9574. * src/option_processing.cc: Added missing `defined' keyword to #if
  9575. directive.
  9576. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9577. Bump up version number to 0.13.2+1
  9578. * src/configure.ac
  9579. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9580. Refactored broken outstanding piece handling.
  9581. * src/DefaultPieceStorage.cc
  9582. * src/DefaultPieceStorage.h
  9583. * src/Piece.cc
  9584. * src/Piece.h
  9585. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9587. name collision of static variable and predefined macro.
  9588. * src/BtContext.cc
  9589. * src/BtContext.h
  9590. * src/CookieBoxFactory.cc
  9591. * src/CookieBoxFactory.h
  9592. * src/CookieParser.cc
  9593. * src/CookieParser.h
  9594. * src/DefaultBtContext.cc
  9595. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. * src/RequestGroup.cc
  9597. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9598. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9599. * Release 0.13.2
  9600. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9601. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9602. * po/fr.po
  9603. * po/ja.po
  9604. * po/aria2c.pot
  9605. * po/*.po
  9606. * po/*.gmo
  9607. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Bump up version number to 0.13.2
  9609. * src/configure.ac
  9610. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9611. Refactord.
  9612. * src/RequestGroupMan.cc
  9613. (removeStoppedGroup)
  9614. (fillRequestGroupFromReserver)
  9615. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9616. Fixed compile error on Ubuntu.
  9617. * src/BtPieceMessage.cc
  9618. * src/MessageDigestHelper.cc
  9619. * src/Util.cc
  9620. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9621. Fixed compile error when configured with --disable-bittorrent
  9622. * test/DownloadHandlerFactoryTest.cc
  9623. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9624. Done make update-po
  9625. * po/aria2c.pot
  9626. * po/*.po
  9627. * po/*.gmo
  9628. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9629. Bump up version number to 0.13.2rc.
  9630. * src/configure.ac
  9631. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. Made option name bold. Updated SYNOPSIS to make it more readable.
  9633. * doc/aria2c.1.txt
  9634. * doc/aria2c.1
  9635. * doc/aria2c.1.html
  9636. * src/version_usage.cc
  9637. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. Refactored. Use std::string instead of size and char*.
  9639. * Data.cc
  9640. * Data.h
  9641. * test/Data.cc
  9642. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9643. Added trimSelf(). Rewritten trim() to use trimSelf().
  9644. * Util.cc
  9645. * Util.h
  9646. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9647. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9648. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Fixed compile error when configured with --disable-metalink.
  9650. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9651. * test/FeatureConfigTest.cc
  9652. * test/DownloadHandlerFactoryTest.cc
  9653. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Fixed compile error when configured with --without-gnutls
  9655. --without-openssl
  9656. * src/main.cc
  9657. * test/DefaultBtProgressInfoFileTest.cc
  9658. * test/SegmentManTest.cc
  9659. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9660. Fixed compile error with OpenSSL.
  9661. * src/IteratableChunkChecksumValidator.cc
  9662. * src/LibsslDHKeyExchange.h
  9663. * src/MessageDigestHelper.cc
  9664. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9665. Revert the default value of --max-concurrent-downloads to 5.
  9666. Revert the default value of --metalink-servers to 5.
  9667. Man pages was also updated.
  9668. * src/option_processing.cc
  9669. * doc/aria2c.1.txt
  9670. * doc/aria2c.1.html
  9671. * doc/aria2c.1
  9672. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9673. Returns const reference:
  9674. DownloadContext::getPieceHash, DownloadContext::getName,
  9675. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9676. BtContext::getInfoHashAsString,
  9677. * src/BtContext.h
  9678. * src/DefaultBtContext.cc
  9679. * src/DefaultBtContext.h
  9680. * src/DownloadContext.h
  9681. * src/SingleFileDownloadContext.h
  9682. * test/MockBtContext.h
  9683. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. * src/RequestGroup.h (getDir): Removed.
  9685. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Returns const reference. The internal urlencode function was optimized
  9687. a little bit.
  9688. * src/Request.cc
  9689. * src/Request.h
  9690. * src/HttpRequest.cc
  9691. * src/HttpRequest.h
  9692. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. Defined option name and possible values as std::string to reduce
  9694. temporary string object creation in runtime.
  9695. * src/HelpItemFactory.cc
  9696. * src/LogFactory.cc
  9697. * src/Option.cc
  9698. * src/OptionHandlerFactory.cc
  9699. * src/option_processing.cc
  9700. * src/prefs.cc
  9701. * src/prefs.h
  9702. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9703. Return const reference.
  9704. * src/DownloadHandlerConstants.cc
  9705. * src/DownloadHandlerConstants.h
  9706. (getMetalinkExtensions)
  9707. (getMetalinkContentTypes)
  9708. (getBtExtensions)
  9709. (getBtContentTypes)
  9710. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9711. * src/HttpHeader.cc (get): Rewritten.
  9712. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9713. Make HttpHeader::getFirst(...) return const reference.
  9714. * src/HttpHeader.cc
  9715. * src/HttpHeader.h
  9716. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9717. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9718. it with V_TRUE.
  9719. * src/DefaultPieceStorage.cc
  9720. * src/DownloadCommand.cc
  9721. * src/FtpNegotiationCommand.cc
  9722. * src/HttpRequest.cc
  9723. * src/InitiateConnectionCommand.cc
  9724. * src/RequestGroup.cc
  9725. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. Made Option::get(...) return const reference of std::string.
  9727. * src/Option.cc
  9728. * src/Option.h
  9729. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9730. Replaced std:copy with insert.
  9731. * src/DefaultBtMessageDispatcher.cc
  9732. * src/DefaultPieceStorage.cc
  9733. * src/DownloadEngineFactory.cc
  9734. * src/RequestGroup.cc
  9735. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9736. Included SocketCore.h to fix compiler warning.
  9737. * src/InitiateConnectionCommand.cc
  9738. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9739. Put piece selection strategy algorithm to RarestPieceSelector class,
  9740. Added a switch to choose whether randomized selection so that unit
  9741. tests emit same results in, possibly, win32.
  9742. * src/DefaultPieceStorage.cc
  9743. * src/DefaultPieceStorage.h
  9744. * src/RarestPieceSelector.cc
  9745. * src/RarestPieceSelector.h
  9746. * test/DefaultPieceStorageTest.cc
  9747. * test/RarestPieceSelectorTest.cc
  9748. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9749. Don't pool connection if HTTP proxy is enabled.
  9750. * src/FtpFinishDownloadCommand.cc
  9751. * src/FtpNegotiationCommand.cc
  9752. * src/HttpSkipResponseCommand.cc
  9753. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9754. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9755. * src/AbstractCommand.cc
  9756. * src/AbstractCommand.h
  9757. * src/ActivePeerConnectionCommand.cc
  9758. * src/FtpInitiateConnectionCommand.cc
  9759. * src/HttpInitiateConnectionCommand.cc
  9760. * src/InitiateConnectionCommandFactory.cc
  9761. * src/PeerAbstractCommand.cc
  9762. * src/PeerAbstractCommand.h
  9763. * src/PeerInitiateConnectionCommand.cc
  9764. * src/TrackerWatcherCommand.cc
  9765. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9766. Sort RequestSlot in ascending order and manipulate them using
  9767. lower_bound.
  9768. * src/DefaultBtMessageDispatcher.cc
  9769. * src/DefaultBtMessageDispatcher.h
  9770. (getMessageQueue): Added const qualifier.
  9771. (getRequestSlots): Added const qualifier.
  9772. (sendMessages): Use empty() instead of size().
  9773. (doCancelSendingPieceAction): Use HandleEvent object.
  9774. (doAbortOutstandingRequestAction): Rewritten.
  9775. (doChokedAction): Rewritten.
  9776. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9777. (isOutstandingRequest): Rewritten.
  9778. (getOutstandingRequest): Rewritten.
  9779. (removeOutstandingRequest): Rewritten.
  9780. (addOutstandingRequest): Rewritten.
  9781. * src/RequestSlot.cc
  9782. * src/RequestSlot.h
  9783. (operator=): Rewritten.
  9784. (operator!=): New function.
  9785. (operator<): New function.
  9786. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9787. * src/DefaultBtRequestFactory.cc
  9788. (doChokedAction): Rewritten.
  9789. (removeCompletedPiece): Rewritten.
  9790. (removeTargetPiece): Rewritten.
  9791. (createRequestMessages): Added the debug log.
  9792. (createRequestMessagesOnEndGame: Added the debug log.
  9793. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9794. Added the debug log message.
  9795. * src/BtPieceMessage.cc (doReceivedAction)
  9796. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9798. used lower_bound to process them rather than linear search.
  9799. * src/DHTPeerAnnounceStorage.cc
  9800. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9801. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9802. peer has at least one completed piece.
  9803. * src/Peer.cc
  9804. * src/Peer.h
  9805. * src/PeerInteractionCommand.cc
  9806. * src/PeerSessionResource.cc
  9807. * src/PeerSessionResource.h
  9808. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9809. Removed unnecessary sorting
  9810. * src/DefaultPieceStorage (DefaultPieceStorage)
  9811. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9812. Rewritten the portion of the code that mangaes allowed fast indexes.
  9813. * src/PeerSessionResource.cc
  9814. * src/PeerSessionResource.h
  9815. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9816. Removed the invalid string including '\r' from ru.po and
  9817. did make update-po.
  9818. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9819. Added --log-level and --summary-interval to man page.
  9820. * doc/aria2c.1.txt
  9821. * doc/aria2c.1.html
  9822. * doc/aria2c.1
  9823. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9824. Added --log-level option to specify log level. Log messages under
  9825. the specified level are not output. Default value is `debug'.
  9826. * src/HelpItemFactory.cc
  9827. * src/LogFactory.cc
  9828. * src/LogFactory.h
  9829. * src/Logger.h
  9830. * src/OptionHandlerFactory.cc
  9831. * src/SimpleLogger.cc
  9832. * src/SimpleLogger.h
  9833. * src/main.cc
  9834. * src/option_processing.cc
  9835. * src/prefs.h
  9836. * src/usage_text.h
  9837. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9838. Print download progress summary of all parallel downloads in specified
  9839. interval, default 60 secs. While aria2 could download several files
  9840. in parallel (see -j option), it displayed just first download progress,
  9841. and the other downloads are hidden from the users. This new feature
  9842. prints all downloads currently in-progress to the console so that you
  9843. can check the status of all downloads. The interval can be adjusted
  9844. by --summary-interval option.
  9845. The progress readout is now cut so that all fits in the one line of
  9846. console.
  9847. * src/ConsoleStatCalc.cc
  9848. * src/ConsoleStatCalc.h
  9849. * src/HelpItemFactory.cc
  9850. * src/OptionHandlerFactory.cc
  9851. * src/RequestGroupMan.cc
  9852. * src/RequestGroupMan.h
  9853. * src/main.cc
  9854. * src/option_processing.cc
  9855. * src/prefs.h
  9856. * src/usage_text.h
  9857. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9858. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9859. * src/DownloadEngine.cc (DownloadEngine)
  9860. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9862. defined.
  9863. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9864. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9865. Use erase+lower_bound+insert instead of sort.
  9866. * src/DefaultPieceStorage.cc (addPieceStats)
  9867. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9868. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9869. * src/A2STR.cc
  9870. * src/A2STR.h
  9871. * src/OptionParser.cc (parse)
  9872. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9873. Defined fake filename `[tracker.announce]' as static const std::string.
  9874. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9875. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Defined default filename `index.html' as static const std::string
  9877. * src/SingleFileDownloadContext.cc
  9878. * src/SingleFileDownloadContext.h
  9879. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Defined "[MEMORY]" as static const std::string.
  9881. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9882. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Defined control file's version number as static const std::string.
  9884. * src/DefaultBtProgressInfoFile.cc
  9885. * src/DefaultBtProgressInfoFile.h
  9886. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9887. Use Request::METHOD_GET
  9888. * src/RequestGroup.cc (createNextCommandWithAdj)
  9889. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9890. Defined "OK", "ERR", "INPR" as static const std::string
  9891. * src/RequestGroupMan.cc (showDownloadResults)
  9892. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9893. Defined default client used in extended handshake as static const
  9894. std::string
  9895. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9896. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9897. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9898. * src/HttpConnection.cc (eraseConfidentialInfo)
  9899. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9900. Defined default ftp user and password as static const std::string
  9901. * src/AuthConfigFactory.cc
  9902. * src/AuthConfigFactory.h
  9903. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9904. Defined strings used in netrc as static const std::string
  9905. * src/Netrc.cc
  9906. * src/Netrc.h
  9907. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9908. Defined HTTP status as static const std::string
  9909. * src/AbstractProxyResponseCommand.cc
  9910. * src/HttpHeader.cc
  9911. * src/HttpHeader.h
  9912. * src/HttpResponse.cc
  9913. * src/HttpResponseCommand.cc
  9914. * src/HttpSkipResponseCommand.cc
  9915. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9916. Defined "\r\n", "A", "I" as static const std::string
  9917. * src/A2STR.cc
  9918. * src/A2STR.h
  9919. * src/FtpConnection.cc
  9920. * src/FtpConnection.h
  9921. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9922. Added COLON_C(".") and used it in Request::parseUrl()
  9923. * src/A2STR.cc
  9924. * src/A2STR.h
  9925. * src/Request.cc (parseUrl)
  9926. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Changed the type of padName from `const std::string&' to `const char*'.
  9928. * src/MSEHandshake.cc (verifyPadLength)
  9929. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9930. Defined "sha1" as static const std::string.
  9931. * src/MetalinkParserController.cc
  9932. * src/MetalinkParserController.h
  9933. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9934. Defined message digest algorithm name as static const std::string
  9935. * src/DHTTokenTracker.cc
  9936. * src/DHTUtil.cc
  9937. * src/DefaultBtContext.cc
  9938. * src/MSEHandshake.cc
  9939. * src/MessageDigestHelper.cc
  9940. * src/Peer.cc
  9941. * src/messageDigest.cc
  9942. * src/messageDigest.h
  9943. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9944. Made string literals used in SAX parser static const std::string.
  9945. * src/FileMetalinkParserState.cc
  9946. * src/FileMetalinkParserState.h
  9947. * src/FilesMetalinkParserState.cc
  9948. * src/FilesMetalinkParserState.h
  9949. * src/InitialMetalinkParserState.cc
  9950. * src/InitialMetalinkParserState.h
  9951. * src/MetalinkMetalinkParserState.cc
  9952. * src/MetalinkMetalinkParserState.h
  9953. * src/PiecesMetalinkParserState.cc
  9954. * src/PiecesMetalinkParserState.h
  9955. * src/ResourcesMetalinkParserState.cc
  9956. * src/ResourcesMetalinkParserState.h
  9957. * src/VerificationMetalinkParserState.cc
  9958. * src/VerificationMetalinkParserState.h
  9959. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9960. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9961. * src/A2STR.cc
  9962. * src/A2STR.h
  9963. * src/File.cc
  9964. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9965. Defined static const std::string IP("ip"), PORT("port") and use them
  9966. instead of string literals.
  9967. * src/DefaultPeerListProcessor.cc
  9968. * src/DefaultPeerListProcessor.h
  9969. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9970. Made string literals for torrent file processing static const
  9971. std::string.
  9972. * src/BtContext.cc
  9973. * src/BtContext.h
  9974. * src/DefaultBtContext.cc
  9975. * src/DefaultBtContext.h
  9976. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9977. Made string literal for tracker response static const std::string
  9978. * src/BtAnnounce.cc
  9979. * src/BtAnnounce.h
  9980. * src/DefaultBtAnnounce.cc
  9981. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Use DHTMessage::T instead of "t".
  9983. * src/DHTMessageTracker.cc (messageArrived)
  9984. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9985. Made keyName static const. Made trimmed charset static const
  9986. std::string.
  9987. * src/Util.cc (getContentDispositionFilename)
  9988. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9989. Made USER_AGENT const. Made "/" static const std::string.
  9990. * src/A2STR.cc
  9991. * src/A2STR.h
  9992. * src/HttpRequest.cc
  9993. * src/HttpRequest.h
  9994. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9995. Made string listeral to static const std::string:
  9996. "Content-Range", "Content-Length"
  9997. * src/HttpHeader.cc
  9998. * src/HttpHeader.h
  9999. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10000. Made string listeral to static const std::string.
  10001. * src/HttpConnection.cc
  10002. * src/HttpHeader.cc
  10003. * src/HttpHeader.h
  10004. * src/HttpResponse.cc
  10005. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. Made string listeral to static const std::string.
  10007. * src/A2STR.cc
  10008. * src/A2STR.h
  10009. * src/SimpleLogger.cc
  10010. * src/SimpleLogger.h
  10011. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10012. Made string literal to static const std::string.
  10013. Rewritten CookieParser::setField.
  10014. * src/A2STR.cc
  10015. * src/A2STR.h
  10016. * src/CookieBoxFactory.cc
  10017. * src/CookieBoxFactory.h
  10018. * src/CookieParser.cc
  10019. * src/CookieParser.h
  10020. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10021. Made string literal to static const std::string
  10022. * src/DHTAbstractMessage.cc
  10023. * src/DHTAnnouncePeerMessage.cc
  10024. * src/DHTAnnouncePeerMessage.h
  10025. * src/DHTAnnouncePeerReplyMessage.cc
  10026. * src/DHTAnnouncePeerReplyMessage.h
  10027. * src/DHTFindNodeMessage.cc
  10028. * src/DHTFindNodeMessage.h
  10029. * src/DHTFindNodeReplyMessage.cc
  10030. * src/DHTFindNodeReplyMessage.h
  10031. * src/DHTGetPeersMessage.cc
  10032. * src/DHTGetPeersMessage.h
  10033. * src/DHTGetPeersReplyMessage.cc
  10034. * src/DHTGetPeersReplyMessage.h
  10035. * src/DHTMessage.cc
  10036. * src/DHTMessage.h
  10037. * src/DHTMessageFactoryImpl.cc
  10038. * src/DHTMessageReceiver.cc
  10039. * src/DHTPingMessage.cc
  10040. * src/DHTPingMessage.h
  10041. * src/DHTPingReplyMessage.cc
  10042. * src/DHTPingReplyMessage.h
  10043. * src/DHTQueryMessage.cc
  10044. * src/DHTQueryMessage.h
  10045. * src/DHTResponseMessage.cc
  10046. * src/DHTResponseMessage.h
  10047. * src/DHTUnknownMessage.cc
  10048. * src/DHTUnknownMessage.h
  10049. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. Made string literal to static const std::string
  10051. * src/BtChokeMessage.cc (toString)
  10052. * src/BtHaveAllMessage.cc (toString)
  10053. * src/BtHaveNoneMessage.cc (toString)
  10054. * src/BtInterestedMessage.cc (toString)
  10055. * src/BtNotInterestedMessage.cc (toString)
  10056. * src/BtUnchokeMessage.cc (toString)
  10057. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10058. Replaced "" with static const variable A2STR::NIL.
  10059. Replaced string comparison against "" with std::string::empty().
  10060. Added PROTO_* to Request class and use them as a protocol string
  10061. constant.
  10062. Made "started", "stopped", "completed" static const variable in
  10063. AnnounceList class.
  10064. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10065. Updated translations. Great thanks to translators.
  10066. * po/ca.po
  10067. * po/de.po
  10068. * po/fr.po
  10069. * po/it.po
  10070. * po/ja.po
  10071. * po/ru.po
  10072. * po/zh_CN.po
  10073. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10074. Updated man page; categorized options and fixed typo.
  10075. * doc/aria2c.1.txt
  10076. * doc/aria2c.1.html
  10077. * doc/aria2c.1
  10078. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Removed const ref
  10080. * src/MetalinkEntry.cc (AddProtocolPreference)
  10081. * src/RequestGroup.cc (FindServerHostByHostname)
  10082. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10083. Rewritten Accept-Features handling.
  10084. * src/HttpRequestCommand.cc (createHttpRequest)
  10085. * src/a2functional.h
  10086. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10087. Changed method signature:
  10088. DHTAbstractNodeLookupTask::toEntries
  10089. * src/DHTAbstractNodeLookupTask.cc
  10090. * src/DHTAbstractNodeLookupTask.h
  10091. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10092. Changed method signature:
  10093. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10094. * src/BtContext.h
  10095. * src/DefaultBtContext.cc
  10096. * src/DefaultBtContext.h
  10097. * src/DefaultBtInteractive.cc
  10098. * test/DefaultBtContextTest.cc
  10099. * test/MockBtContext.h
  10100. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Changed method signature:
  10102. MultiFileAllocationIterator::makeDiskWriterEntries
  10103. * src/MultiFileAllocationIterator.cc
  10104. * src/MultiFileAllocationIterator.h
  10105. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10106. Changed method sinature:
  10107. MetalinkEntry::toFileEntry,
  10108. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10109. Metalinker::queryEntry
  10110. * src/Metalink2RequestGroup.cc
  10111. * src/MetalinkEntry.cc
  10112. * src/MetalinkEntry.h
  10113. * src/MetalinkHelper.cc
  10114. * src/MetalinkHelper.h
  10115. * src/Metalinker.cc
  10116. * src/Metalinker.h
  10117. * src/main.cc
  10118. * test/MetalinkHelperTest.cc
  10119. * test/MetalinkerTest.cc
  10120. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10121. Changed method sinature:
  10122. RequestGroup::getURIs
  10123. * src/RequestGroup.cc
  10124. * src/RequestGroup.h
  10125. * test/Metalink2RequestGroupTest.cc
  10126. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10127. Changed method signature:
  10128. PeerListProcessor::extractPeer
  10129. * src/CompactPeerListProcessor.cc
  10130. * src/CompactPeerListProcessor.h
  10131. * src/DefaultBtAnnounce.cc
  10132. * src/DefaultPeerListProcessor.cc
  10133. * src/DefaultPeerListProcessor.h
  10134. * src/DelegatingPeerListProcessor.cc
  10135. * src/DelegatingPeerListProcessor.h
  10136. * src/PeerListProcessor.h
  10137. * src/UTPexExtensionMessage.cc
  10138. * test/DefaultPeerListProcessorTest.cc
  10139. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. Changed method signature:
  10141. BtRequestFactory::createRequestMessages,
  10142. BtRequestFactory::createRequestMessagesOnEndGame
  10143. * src/BtRequestFactory.h
  10144. * src/DefaultBtInteractive.cc
  10145. * src/DefaultBtRequestFactory.cc
  10146. * src/DefaultBtRequestFactory.h
  10147. * test/DefaultBtRequestFactoryTest.cc
  10148. * test/MockBtRequestFactory.h
  10149. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. Changed method signature:
  10151. PieceStorage::getInFlightPieces
  10152. * src/DefaultBtProgressInfoFile.cc
  10153. * src/DefaultPieceStorage.cc
  10154. * src/DefaultPieceStorage.h
  10155. * src/PieceStorage.h
  10156. * src/UnknownLengthPieceStorage.cc
  10157. * src/UnknownLengthPieceStorage.h
  10158. * test/DefaultBtProgressInfoFileTest.cc
  10159. * test/MockPieceStorage.h
  10160. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10161. Changed method signature:
  10162. PostDownloadHandler::getNextRequestGroups
  10163. Metalink2RequestGroup::generate
  10164. RequestGroup::postDownloadProcessing
  10165. * src/BtPostDownloadHandler.cc
  10166. * src/BtPostDownloadHandler.h
  10167. * src/Metalink2RequestGroup.cc
  10168. * src/Metalink2RequestGroup.h
  10169. * src/MetalinkPostDownloadHandler.cc
  10170. * src/MetalinkPostDownloadHandler.h
  10171. * src/PostDownloadHandler.h
  10172. * src/RequestGroup.cc
  10173. * src/RequestGroup.h
  10174. * src/RequestGroupMan.cc
  10175. * src/main.cc
  10176. * test/BtPostDownloadHandlerTest.cc
  10177. * test/Metalink2RequestGroupTest.cc
  10178. * test/MetalinkPostDownloadHandlerTest.cc
  10179. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10180. Rewritten AccRequestGroup
  10181. * src/main.cc
  10182. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10183. Rewritten.
  10184. * src/TaggedItem.cc (toTagString)
  10185. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10186. Rewritten Accept-Features handling.
  10187. * src/HttpRequestCommand.cc (createHttpRequest)
  10188. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10189. Rewritten accept types handling.
  10190. * HttpRequest.cc (createRequest)
  10191. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10192. Rewritten
  10193. * src/FeatureConfig.cc (featureSummary)
  10194. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10195. Changed method signature:
  10196. PeerStorage::getActivePeers
  10197. * src/DHTPeerAnnounceEntry.cc
  10198. * src/DefaultPeerStorage.cc
  10199. * src/DefaultPeerStorage.h
  10200. * src/PeerStorage.h
  10201. * test/DefaultPeerStorageTest.cc
  10202. * test/MockPeerStorage.h
  10203. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10204. Changed method signature:
  10205. DHTPeerAnnounceStorage::getPeers,
  10206. DHTPeerAnnounceEntry::getPeers
  10207. * src/DHTGetPeersMessage.cc
  10208. * src/DHTPeerAnnounceEntry.cc
  10209. * src/DHTPeerAnnounceEntry.h
  10210. * src/DHTPeerAnnounceStorage.cc
  10211. * src/DHTPeerAnnounceStorage.h
  10212. * test/DHTAnnouncePeerMessageTest.cc
  10213. * test/DHTPeerAnnounceEntryTest.cc
  10214. * test/DHTPeerAnnounceStorageTest.cc
  10215. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. Changed method signature:
  10217. NameResolver::resolve
  10218. * src/DHTEntryPointNameResolveCommand.cc
  10219. * src/InitiateConnectionCommand.cc
  10220. * src/NameResolver.cc
  10221. * src/NameResolver.h
  10222. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10223. Changed method signature:
  10224. PieceStorage::getAdvertisedPieceIndexes
  10225. * src/DefaultBtInteractive.cc
  10226. * src/DefaultPieceStorage.cc
  10227. * src/DefaultPieceStorage.h
  10228. * src/PieceStorage.h
  10229. * src/UnknownLengthPieceStorage.h
  10230. * test/MockPieceStorage.h
  10231. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10232. Changed method signature:
  10233. SegmentMan::getInFlightSegment
  10234. * src/AbstractCommand.cc
  10235. * src/SegmentMan.cc
  10236. * src/SegmentMan.h
  10237. * test/SegmentManTest.cc
  10238. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10239. Changed method signature:
  10240. DHTAbstractNodeLookupTask::getNodesFromMessage
  10241. * src/DHTAbstractNodeLookupTask.cc
  10242. * src/DHTAbstractNodeLookupTask.h
  10243. * src/DHTNodeLookupTask.cc
  10244. * src/DHTNodeLookupTask.h
  10245. * src/DHTPeerLookupTask.cc
  10246. * src/DHTPeerLookupTask.h
  10247. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10248. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10249. * src/AbstractCommand.cc
  10250. * src/BtCheckIntegrityEntry.cc
  10251. * src/BtCheckIntegrityEntry.h
  10252. * src/BtFileAllocationEntry.cc
  10253. * src/BtFileAllocationEntry.h
  10254. * src/BtSetup.cc
  10255. * src/BtSetup.h
  10256. * src/CheckIntegrityCommand.cc
  10257. * src/CheckIntegrityEntry.h
  10258. * src/ChecksumCheckIntegrityEntry.cc
  10259. * src/ChecksumCheckIntegrityEntry.h
  10260. * src/DHTSetup.cc
  10261. * src/DHTSetup.h
  10262. * src/DownloadEngine.cc
  10263. * src/FileAllocationCommand.cc
  10264. * src/FileAllocationEntry.h
  10265. * src/RequestGroup.cc
  10266. * src/RequestGroup.h
  10267. * src/RequestGroupMan.cc
  10268. * src/RequestGroupMan.h
  10269. * src/StreamCheckIntegrityEntry.cc
  10270. * src/StreamCheckIntegrityEntry.h
  10271. * src/StreamFileAllocationEntry.cc
  10272. * src/StreamFileAllocationEntry.h
  10273. * src/TrackerWatcherCommand.cc
  10274. * src/a2functional.h
  10275. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10276. Changed method signature:
  10277. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10278. DHTBucket::getGoodNodes,
  10279. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10280. * src/BNode.cc
  10281. * src/BNode.h
  10282. * src/DHTAbstractNodeLookupTask.cc
  10283. * src/DHTAutoSaveCommand.cc
  10284. * src/DHTBucket.cc
  10285. * src/DHTBucket.h
  10286. * src/DHTBucketRefreshTask.cc
  10287. * src/DHTFindNodeMessage.cc
  10288. * src/DHTGetPeersMessage.cc
  10289. * src/DHTRoutingTable.cc
  10290. * src/DHTRoutingTable.h
  10291. * test/BNodeTest.cc
  10292. * test/DHTBucketTest.cc
  10293. * test/DHTRoutingTableTest.cc
  10294. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10295. In piece selection functions, Pass std::deque<...> by reference rather
  10296. than returning it.
  10297. * src/BitfieldMan.cc
  10298. * src/BitfieldMan.h
  10299. * src/DefaultBtRequestFactory.cc
  10300. * src/DefaultPieceStorage.cc
  10301. * src/Piece.cc
  10302. * src/Piece.h
  10303. * test/BitfieldManTest.cc
  10304. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10305. Implemented rarest piece first piece selection strategy.
  10306. * src/AbstractBtMessage.cc
  10307. * src/AbstractBtMessage.h
  10308. * src/BitfieldMan.cc
  10309. * src/BitfieldMan.h
  10310. * src/BtBitfieldMessage.cc
  10311. * src/BtHaveAllMessage.cc
  10312. * src/BtHaveMessage.cc
  10313. * src/DefaultPieceStorage.cc
  10314. * src/DefaultPieceStorage.h
  10315. * src/PeerInteractionCommand.cc
  10316. * src/PieceStorage.h
  10317. * src/UnknownLengthPieceStorage.h
  10318. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. Rewritten readData and writeData.
  10320. * src/MultiDiskAdaptor.cc
  10321. * src/MultiDiskAdaptor.h
  10322. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10323. Move \n out of the message "Usage: ...".
  10324. * src/version_usage.cc
  10325. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10326. Bump up version number to 0.13.2b.
  10327. * configure.ac
  10328. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10329. Added const qualifier to argument Exception& e.
  10330. * src/Logger.h
  10331. * src/SimpleLogger.cc
  10332. * src/SimpleLogger.h
  10333. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10334. Pool connection when CWD, SIZE command fails.
  10335. * src/FtpNegotiationCommand.cc
  10336. * src/FtpNegotiationCommand.h
  10337. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10338. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10339. * src/HttpResponseCommand.cc
  10340. * src/HttpSkipResponseCommand.cc
  10341. * src/HttpSkipResponseCommand.h
  10342. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10343. Pool connection when a server returns 4xx, 5xx responses.
  10344. * src/HttpNullDownloadCommand.cc
  10345. * src/HttpNullDownloadCommand.h
  10346. * src/HttpResponse.cc
  10347. * src/HttpResponse.h
  10348. * src/HttpResponseCommand.cc
  10349. * src/HttpResponseCommand.h
  10350. * test/HttpResponseTest.cc
  10351. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10352. Print usage when no URL is specifed or bad command-line option is
  10353. specified.
  10354. * src/HelpItemFactory.cc
  10355. * src/help_tags.h
  10356. * src/option_processing.cc
  10357. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10358. Removed duplicate log message.
  10359. * src/AbstractCommand.cc (asyncResolveHostname)
  10360. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10362. Changed -j option's default value from 5 to 1.
  10363. Added new examples using protocol auto detection feature.
  10364. Removed -T, -M usage where it can be omitted.
  10365. * doc/aria2c.1.txt
  10366. * doc/aria2c.1.html
  10367. * doc/aria2c.1.txt
  10368. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10369. Updated command-line usage text, so that it tells users that they
  10370. can specify any number of torrent files and metalink files in
  10371. command-line.
  10372. * src/version_usage.cc
  10373. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10374. Changed the default value of -j option to 1.
  10375. * src/HelpItemFactory.cc
  10376. * src/option_processing.cc
  10377. * src/usage_text.h
  10378. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10379. Added the ability to reuse connection in FTP and it is enabled by
  10380. default. It can be disabled by --ftp-reuse-connection=false option.
  10381. * src/Command.cc
  10382. * src/DownloadCommand.cc
  10383. * src/FtpDownloadCommand.cc
  10384. * src/FtpDownloadCommand.h
  10385. * src/FtpFinishDownloadCommand.cc
  10386. * src/FtpFinishDownloadCommand.h
  10387. * src/FtpInitiateConnectionCommand.cc
  10388. * src/FtpNegotiationCommand.cc
  10389. * src/FtpNegotiationCommand.h
  10390. * src/HelpItemFactory.cc
  10391. * src/Makefile.am
  10392. * src/Makefile.in
  10393. * src/OptionHandlerFactory.cc
  10394. * src/option_processing.cc
  10395. * src/prefs.h
  10396. * src/usage_text.h
  10397. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10398. Call Command::transitStatus() before calling Command::execute(),
  10399. so that the status change made in execute() is not cleared.
  10400. * src/DownloadEngine.cc
  10401. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Removed forward declaration of SocketCore class.
  10403. * src/HttpDownloadCommand.h
  10404. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10405. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10406. in InitiateConnectionCommandFactory. They should be set only when
  10407. the protocol is HTTP or HTTPS.
  10408. * src/InitiateConnectionCommandFactory.cc
  10409. * src/RequestGroup.cc
  10410. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10411. Fixed infinite loop in checksum checking.
  10412. * src/IteratableChecksumValidator.cc
  10413. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10414. Set _supportsPersistentConnection to true by default.
  10415. * src/Request.cc
  10416. * src/RequestGroup.cc
  10417. * test/HttpRequestTest.cc
  10418. * test/RequestTest.cc
  10419. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10420. Added timeout to socket pool. The default timeout is 15 seconds,
  10421. which is the same value Apache uses.
  10422. * src/DownloadEngine.cc
  10423. * src/DownloadEngine.h
  10424. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10425. Fixed misuse of multimap::find()
  10426. * src/HttpHeader.cc
  10427. * test/HttpHeaderTest.cc
  10428. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10429. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10430. option.
  10431. The asynchronous DNS is not capable of IPv6 yet.
  10432. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10433. least for HTTP download.
  10434. * src/AbstractCommand.cc
  10435. * src/AbstractCommand.h
  10436. * src/AsyncNameResolver.cc
  10437. * src/AsyncNameResolver.h
  10438. * src/DHTEntryPointNameResolveCommand.cc
  10439. * src/DHTEntryPointNameResolveCommand.h
  10440. * src/DownloadEngine.cc
  10441. * src/DownloadEngine.h
  10442. * src/FtpInitiateConnectionCommand.cc
  10443. * src/FtpInitiateConnectionCommand.h
  10444. * src/HelpItemFactory.cc
  10445. * src/HttpInitiateConnectionCommand.cc
  10446. * src/HttpInitiateConnectionCommand.h
  10447. * src/InitiateConnectionCommand.cc
  10448. * src/InitiateConnectionCommand.h
  10449. * src/Makefile.am
  10450. * src/Makefile.in
  10451. * src/NameResolver.cc
  10452. * src/NameResolver.h
  10453. * src/OptionHandlerFactory.cc
  10454. * src/SocketCore.cc
  10455. * src/SocketCore.h
  10456. * src/Util.cc
  10457. * src/Util.h
  10458. * src/option_processing.cc
  10459. * src/prefs.h
  10460. * src/usage_text.h
  10461. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10462. Updated man page: --quiet, --header were added.
  10463. --metalink-servers and --enable-http-keep-alive option were updated.
  10464. * doc/aria2c.1
  10465. * doc/aria2c.1.html
  10466. * doc/aria2c.1.txt
  10467. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10468. Enable HTTP keep-alive by default.
  10469. * src/HelpItemFactory.cc
  10470. * src/option_processing.cc
  10471. * src/usage_text.h
  10472. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10473. Disable http keep-alive if the remote server is not HTTP/1.1.
  10474. * src/HttpConnection.cc
  10475. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. Receive content body of 302 response so that the connection can be
  10477. reused later when http keep-alive is enabled.
  10478. * src/HttpNullDownloadCommand.cc
  10479. * src/HttpNullDownloadCommand.h
  10480. * src/HttpResponseCommand.cc
  10481. * src/HttpResponseCommand.h
  10482. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10483. const SharedHandle<Request> -> const SharedHandle<Request>&
  10484. * src/FtpDowndloadCommand.cc
  10485. * src/FtpDowndloadCommand.h
  10486. * src/HttpDownloadCommand.cc
  10487. * src/HttpDownloadCommand.h
  10488. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. Fixed the bug that the control file(.aria2 file) is not renamed
  10490. according to tryAutoFileRenaming().
  10491. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10492. its control file exist, use them and continue download.
  10493. The old implementation didn't take into account of control file's
  10494. existence, so basically you couldn't continue download of renamed file.
  10495. * src/BtProgressInfoFile.h
  10496. * src/DefaultBtProgressInfoFile.cc
  10497. * src/DefaultBtProgressInfoFile.h
  10498. * src/NullProgressInfoFile.h
  10499. * src/RequestGroup.cc
  10500. * test/DefaultBtProgressInfoFileTest.cc
  10501. * test/MockBtProgressInfoFile.h
  10502. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10503. Change the default value of --metalink-servers option from `5' to `1'.
  10504. * src/HelpItemFactory.cc
  10505. * src/option_processing.cc
  10506. * src/usage_text.h
  10507. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10508. Reimplemented transparent metalink using Accept request header.
  10509. * src/HttpRequest.cc
  10510. * src/HttpRequest.h
  10511. * src/HttpRequestCommand.cc
  10512. * src/Metalink2RequestGroup.cc
  10513. * src/RequestGroup.cc
  10514. * src/RequestGroup.h
  10515. * test/HttpRequestTest.cc
  10516. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10517. Bump up version number to 0.13.2a
  10518. * configure.ac
  10519. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10520. Updated configure.ac using the result of autoscan.
  10521. * configure.ac
  10522. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10523. Fixed compilation error without gcrypt/openssl.
  10524. * src/DownloadCommand.cc
  10525. * src/DownloadCommand.h
  10526. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Reorganized version information so that it can be displayed in a
  10528. standard terminal screen without scrolling.
  10529. Removed http, ftp from Configuration section, because they are always
  10530. enabled.
  10531. * src/FeatureConfig.cc
  10532. * src/FeatureConfig.h
  10533. * src/main.cc
  10534. * src/messageDigest.cc
  10535. * src/messageDigest.h
  10536. * src/version_usage.cc
  10537. * test/FeatureConfigTest.cc
  10538. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. Masked user ID in log.
  10540. * src/FtpConnection.cc (sendUser)
  10541. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10542. Removed query part from filename in HTTP download. The query part means
  10543. the substring after "?" in URL. Firefox seems do the same thing.
  10544. A query part is sometimes very long and not suitable to filename,
  10545. so I think it is better to remove it from filename.
  10546. * src/HttpRequest.cc
  10547. * src/HttpRequest.h
  10548. * src/Request.cc
  10549. * src/Request.h
  10550. * test/HttpRequestTest.cc
  10551. * test/RequestTest.cc
  10552. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10553. Rewritten Exception class. Throw exception object, not its pointer and
  10554. catch by reference, so that remove problematic delete operator for
  10555. catched exception.
  10556. * src/Exception.cc
  10557. * src/Exception.h
  10558. * test/ExceptionTest.cc
  10559. * src/*: All files throwing/catching exception.
  10560. * test/*: All files throwing/catching exception.
  10561. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10562. Now auto protocol detection is enabled without -Z option.
  10563. But there is a important difference between with/without -Z optoin.
  10564. For example, if you type:
  10565. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10566. then, aria2 interprets there are 3 request groups:
  10567. (1) http://host/file, http://mirror/file <-- multi-source download
  10568. (2) file1.torrent
  10569. (3) file2.metalink
  10570. On the other hand, if you invoke above command with -Z option, it is
  10571. interpreted as 4 request groups:
  10572. (1) http://host/file
  10573. (2) file1.torrent
  10574. (3) file2.metalink
  10575. (4) http://mirror/file
  10576. I think usually user don't mix multi-source URLs and torrent files, so
  10577. there is no big problem here.
  10578. * src/main.cc
  10579. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. Fixed the bug that causes segmentaion fault when reading XML containing
  10581. unescapsed character like '&'.
  10582. Also a modification was made which avoids adding unnecessary
  10583. characters stack and appending unused string.
  10584. * src/ExpatMetalinkProcessor.cc
  10585. * src/FileMetalinkParserState.h
  10586. * src/FilesMetalinkParserState.h
  10587. * src/FinMetalinkParserState.h
  10588. * src/HashMetalinkParserState.h
  10589. * src/InitialMetalinkParserState.h
  10590. * src/LanguageMetalinkParserState.h
  10591. * src/MetalinkMetalinkParserState.h
  10592. * src/MetalinkParserState.h
  10593. * src/MetalinkParserStateMachine.cc
  10594. * src/MetalinkParserStateMachine.h
  10595. * src/OSMetalinkParserState.h
  10596. * src/PieceHashMetalinkParserState.h
  10597. * src/PiecesMetalinkParserState.h
  10598. * src/ResourcesMetalinkParserState.h
  10599. * src/SizeMetalinkParserState.h
  10600. * src/SkipTagMetalinkParserState.h
  10601. * src/URLMetalinkParserState.h
  10602. * src/VerificationMetalinkParserState.h
  10603. * src/VersionMetalinkParserState.h
  10604. * src/XML2SAXMetalinkProcessor.cc
  10605. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10606. Added StringFormat class, which internally calls vasprintf.
  10607. operator<< is defined for this class, so it can be used with iostream
  10608. classes nicely. SimpleLogger and following functions are rewritten
  10609. using StringFormat class.
  10610. Besides, now Logger class's methods are non-const, many classes
  10611. that has a const Logger* as a member variable are modified to remove
  10612. const qualifier from the variable declaration.
  10613. * src/HelpItemFactory.cc
  10614. * src/Request.cc
  10615. * src/SimpleLogger.cc
  10616. * src/StringFormat.cc
  10617. * src/StringFormat.h
  10618. * src/Util.cc
  10619. * src/option_processing.cc
  10620. * src/version_usage.cc
  10621. * test/StringFormatTest.cc
  10622. * src/*.h: The classes that has const Logger* as a member variable.
  10623. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10624. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10625. failed. Also fixed memory link when exception is thrown there.
  10626. * src/main.cc (AccRequestGroup)
  10627. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10628. Added build-in "Accept-Features" support. For now only "metalink" is
  10629. used in this header field.
  10630. This "metalink" value is removed from the list when connecting URLs
  10631. fed by metalink file to avoid loop in "transparent" metlaink.
  10632. * src/HttpRequest.cc
  10633. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10634. header is also held in this variable. Also renamed setUserHeaders as
  10635. addHeader and it was rewritten to add header not just to clear the old
  10636. value.
  10637. * src/HttpRequestCommand.cc
  10638. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10639. from "Accept-Features" list.
  10640. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10641. default.
  10642. * src/RequestGroup.h
  10643. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10644. * src/a2functional.h: Included <string> because Concat class depends on
  10645. it.
  10646. * test/HttpRequestTest.cc
  10647. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10648. Added comment
  10649. * src/RequestGroup.cc (createNextCommand)
  10650. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. Capitalized METHOD_GET and METHOD_HEAD
  10652. * src/Request.cc
  10653. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10654. Added getDownloadResults() method
  10655. * src/RequestGroupMan.cc
  10656. * src/RequestGroupMan.h
  10657. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10658. Fixed the bug that aria2 exits when commands is empty() but
  10659. _routineCommands are not.
  10660. * src/DownloadEngine.cc
  10661. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10662. Use the default value pulled from Option object in HelpItemFactory.
  10663. except options whose defualt value is embedded in a usage text.
  10664. * src/HelpItemFactory.cc
  10665. * src/HelpItemFactory.h
  10666. * src/option_processing.cc
  10667. * src/version_usage.cc
  10668. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. Added --quiet option to make aria2 quiet (no console output).
  10670. --quiet option is tagged with ADVANCED.
  10671. * src/HelpItemFactory.cc
  10672. * src/LogFactory.cc
  10673. * src/LogFactory.h
  10674. * src/MultiUrlRequestInfo.cc
  10675. * src/MultiUrlRequestInfo.h
  10676. * src/NullStatCalc.h: New class. This class prints nothing.
  10677. * src/OptionHandlerFactory.cc
  10678. * src/main.cc
  10679. * src/option_processing.cc
  10680. * src/prefs.h
  10681. * src/usage_text.h
  10682. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10683. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10684. * src/HelpItemFactory.cc (createHelpItems):
  10685. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10686. Fixed compilation error in ExpatMetalinkProcessor.cc
  10687. * src/ExpatMetalinkProcessor.cc
  10688. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10689. Reuse socket if the origin server supports HTTP keep-alive and
  10690. --enable-http-keep-alive or --enable-http-pipelining is given.
  10691. The current implementation doesn't reuse the connections established
  10692. against proxy server.
  10693. * src/AbstractCommand.cc
  10694. * src/DownloadEngine.cc
  10695. * src/DownloadEngine.h
  10696. * src/HttpDownloadCommand.cc
  10697. * src/HttpInitiateConnectionCommand.cc
  10698. * src/HttpResponseCommand.cc
  10699. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10700. Rewritten HTTP keep-alive and pipelining routine.
  10701. * src/AbstractCommand.cc
  10702. * src/HttpConnection.cc
  10703. * src/HttpDownloadCommand.cc
  10704. * src/HttpRequest.cc
  10705. * src/HttpRequestCommand.cc
  10706. * src/HttpResponseCommand.cc
  10707. * src/Request.cc
  10708. * src/Request.h
  10709. * src/RequestGroup.cc
  10710. * test/HttpRequestTest.cc
  10711. * test/HttpResponseTest.cc
  10712. * test/RequestTest.cc
  10713. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. Added missing setUserHeaders call
  10715. * src/HttpRequestCommand.cc
  10716. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10717. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10718. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10719. waste of time because it is more likey false.
  10720. * src/FileAllocationDispatcherCommand.cc (execute)
  10721. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10722. Now HTTP status and version are a member variable of HttpHeader.
  10723. HTTP status is processed as a string, not integer.
  10724. * src/AbstractProxyResponseCommand.cc
  10725. * src/HttpConnection.cc
  10726. * src/HttpHeader.cc
  10727. * src/HttpHeader.h
  10728. * src/HttpHeaderProcessor.cc
  10729. * src/HttpHeaderProcessor.h
  10730. * src/HttpResponse.cc
  10731. * src/HttpResponse.h
  10732. * test/HttpHeaderProcessorTest.cc
  10733. * test/HttpResponseTest.cc
  10734. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10735. Added --header option. You can specify any number of additional HTTP headers
  10736. like:
  10737. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10738. Unlike other commad-line option, you can use --header option multiple times.
  10739. * src/HelpItemFactory.cc
  10740. * src/HttpRequest.{cc, h}
  10741. * src/HttpRequestCommand.cc
  10742. * src/OptionHandlerFactory.cc
  10743. * src/OptionHandlerImpl.h
  10744. * src/option_processing.cc
  10745. * src/prefs.h
  10746. * src/usage_text.h
  10747. * test/HttpRequestTest.cc (testUserHeaders)
  10748. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10749. Eliminates the time lag between sequential downloads and commands in
  10750. the same RequestGroup.
  10751. In old implementation, aria2 occasionally waits 1 seconds before
  10752. executing next command or RequestGroup.
  10753. This is really a waste of time, and new implementation eliminates
  10754. this unnecessary time lag.
  10755. * src/AbstractCommand.cc
  10756. * src/AutoSaveCommand.cc
  10757. * src/CheckIntegrityCommand.cc
  10758. * src/Command.{cc, h}
  10759. * src/DownloadEngine.{cc, h}
  10760. * src/DownloadEngineFactory.cc
  10761. * src/FileAllocationCommand.cc
  10762. * src/FileAllocationDispatcherCommand.cc
  10763. * src/FillRequestGroupCommand.cc
  10764. * src/FtpInitiateConnectionCommand.cc
  10765. * src/HaveEraseCommand.cc
  10766. * src/HttpInitiateConnectionCommand.cc
  10767. * src/HttpResponseCommand.cc
  10768. * src/RealtimeCommand.cc
  10769. * src/RequestGroup.cc
  10770. * src/RequestGroupMan.cc
  10771. * src/StreamFileAllocationEntry.cc
  10772. * src/TimeBasedCommand.{cc, h}
  10773. * src/TimedHaltCommand.cc
  10774. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10775. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10776. keyword explicit and SharedHandle's default constructor initializes
  10777. its internal obj to null, old implementation initializes it using
  10778. obj's default constructor.
  10779. To assign null, write SharedHandle<T> x(...); x.reset();
  10780. TODO: test/SharedHandleTest.cc needs more tests.
  10781. * src/SharedHandle.h
  10782. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10783. Fixed type in man page.
  10784. * doc/aria2c.1.txt
  10785. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10786. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10787. * src/SimpleLogger.{cc, h}
  10788. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10789. Implemented auto protocol detection.
  10790. Now you can do:
  10791. aria2c -Z http://host/file file1.torrent file2.metalink
  10792. (Note: -Z option is required for auto protcol detection.)
  10793. Then aria2c downloads 3 files simultaneously:
  10794. 1. http://host/file
  10795. 2. file1.torrent <-- read local torrent file
  10796. 3. file2.metalink <-- read local Metalink file.
  10797. Same thing goes with -i option. Assume your uris.txt contans:
  10798. http://host/file
  10799. file1.torrent
  10800. file2.metalink
  10801. Then you can do: aria2c -i uris.txt
  10802. (Note: -Z option is not needed if -i option is given.)
  10803. * src/main.cc
  10804. * src/ProtocolDetector.{cc, h}
  10805. * test/ProtocolDetectorTest.cc
  10806. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10807. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10808. installed
  10809. * src/ARC4Encryptor.h
  10810. * src/ARC4Decryptor.h
  10811. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10812. Renamed argument from 'errno' to 'err', since errno is confused with
  10813. errno defined in errno.h.
  10814. * src/LibgcryptARC4Decryptor.h
  10815. * src/LibgcryptARC4Context.h
  10816. * src/LibgcryptDHKeyExchange.h
  10817. * src/LibgcryptARC4Encryptor.h
  10818. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10819. Rewritten choking algorithm.
  10820. * src/PeerChokeCommand.{cc, h}
  10821. * src/BtInterestedMessage.cc
  10822. * src/PeerSessionResource.{cc, h}
  10823. * src/DefaultPeerStorage.{cc, h}
  10824. * src/BtNotInterestedMessage.cc
  10825. * src/DefaultBtMessageDispatcher.{cc, h}
  10826. * src/BtMessageDispatcher.h
  10827. * src/Peer.{cc, h}
  10828. * src/BtLeecherStateChoke.{cc, h}
  10829. * src/BtSetup.cc
  10830. * src/BtSeederStateChoke.{cc, h}
  10831. * src/PeerStorage.h
  10832. * test/MockPeerStorage.h
  10833. * test/MockBtMessageDispatcher.h
  10834. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10835. Fixed compilation error on x84-64 platform.
  10836. * src/AuthConfig.cc: Included ostream.
  10837. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10838. Rewritten getBasename() and getDirname(), without standard library
  10839. basename(), dirname().
  10840. * src/File.cc
  10841. * test/FileTest.cc
  10842. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10843. Added Simplified Chinese translation. Also updated the following
  10844. translations: Polish, Dutch, German. Great thanks to all translators.
  10845. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10846. Suppress content-range error when 'Content-Range' response header
  10847. doesn't contains bytes-unit specifier 'bytes'
  10848. * src/HttpHeader.cc (getRange)
  10849. * test/HttpHeaderTest.cc
  10850. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10851. Fixed compilation error with g++-4.3
  10852. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10853. Added missing include files for MinGW
  10854. * test/HttpHeaderProcessorTest.cc
  10855. * test/DHTRoutingTableSerializerTest.cc
  10856. * test/DHTRoutingTableDeserializerTest.cc
  10857. * test/UriListParserTest.cc
  10858. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10859. Now download line is printed nicely with no garbage at the end of
  10860. line. I use ioctl to get the columns of terminal.
  10861. If stdout is redirected to another device, instead of carriage return,
  10862. end of line '\n' character is used. This is feature request#1909659
  10863. * src/ConsoleStatCalc.cc (calculateStat)
  10864. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10865. Included a2time.h
  10866. * src/DHTMessageDispatcher.h
  10867. * src/DHTMessageEntry.h
  10868. * src/DHTReplaceNodeTask.h
  10869. * src/DHTMessageTracker.h
  10870. * src/Util.h
  10871. * src/CookieBox.h
  10872. * src/SocketCore.h
  10873. * src/DefaultBtMessageDispatcher.h
  10874. * src/SocketCore.cc
  10875. * src/Util.cc
  10876. * src/DHTPingTask.h
  10877. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10878. Fixed high memory footprint when DHT is enabled.
  10879. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10880. queued than it is processed and the queue is getting longer. As a
  10881. consequence, momory usage is increased.
  10882. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10883. replacement cache in DHTBucket which is described in Kademlia paper.
  10884. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10885. DHTReplaceNodeTask.
  10886. * src/DHTBucket.{h, cc}
  10887. (cacheNode): New function.
  10888. (getCachedNodes): New function.
  10889. (dropNode): Push back cached node to _nodes.
  10890. * test/DHTBucketTest.cc
  10891. (testCacheNode): New test
  10892. (testDropNode): New test
  10893. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10895. the unused 4KB memory when ssl is not used.
  10896. * src/SocketCore.cc
  10897. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10898. Added summary log for peer announce storage.
  10899. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10900. Removed cast
  10901. * src/DefaultPeerStorage.cc (addPeer)
  10902. Log exception message
  10903. * src/DHTMessageTracker.cc (handleTimeout)
  10904. Fixed casting
  10905. * test/HttpRequestTest.cc
  10906. * test/MetalinkProcessorTest.cc
  10907. * test/PieceTest.cc
  10908. * test/MetalinkEntryTest.cc
  10909. * test/SequenceTest.cc
  10910. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10911. * src/ParameterizedStringParser.cc (createLoop):
  10912. Removed unused variable sstep.
  10913. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10914. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10915. * src/Util.{h, cc}
  10916. (parseUInt): New function.
  10917. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10918. The actual range is uint32_t.
  10919. * test/UtilTest.cc
  10920. * src/ParameterizedStringParser.cc:
  10921. Use Util::parseUInt() for loop variables.
  10922. * test/ParameterizedStringParserTest.cc
  10923. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10924. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10925. Rewritten the functions for binding port.
  10926. * src/DHTConnectionImpl.{h, cc}
  10927. * src/PeerListenCommand.{h, cc}
  10928. * src/DHTSetup.cc
  10929. * src/BtSetup.cc
  10930. * test/DHTConnectionImplTest.cc
  10931. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10932. type cleanup for allmost all remaining files.
  10933. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10934. Type clarification
  10935. * src/PeerSessionResource.{h, cc}
  10936. * src/DefaultPieceStorage.{h, cc}
  10937. * src/Peer.{h, cc}
  10938. * test/PeerSessionResourceTest.cc
  10939. Use div function
  10940. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10941. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. Type clarification
  10943. * src/DefaultPeerStorage.{h, cc}
  10944. * test/DefaultPeerStorageTest.cc
  10945. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10946. Type clarification: size_t for length or size, uint64_t for file
  10947. length, off_t for file offset.
  10948. * src/DefaultBtProgressInfoFile.cc
  10949. * src/DefaultBtContext.{h, cc}
  10950. * src/DefaultBtInteractive.cc
  10951. * src/DownloadCommand.{h, cc}
  10952. * src/IteratableChunkChecksumValidator.{h, cc}
  10953. * src/SegmentMan.{h, cc}
  10954. * src/SingleFileDownloadContext.{h, cc}
  10955. * src/IteratableChecksumValidator.{h, cc}
  10956. * src/BtContext.h
  10957. * src/IteratableValidator.h
  10958. * src/DownloadContext.h
  10959. * test/SingleFileDownloadContextTest.cc
  10960. * test/DefaultBtContextTest.cc
  10961. * test/MockBtContext.h
  10962. * test/Metalink2RequestGroupTest.cc
  10963. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10964. Type clarification: size_t for length or size, uint64_t for file
  10965. length, off_t for file offset.
  10966. * src/PiecedSegment.cc
  10967. * src/GrowSegment.h
  10968. * src/DefaultBtRequestFactory.h
  10969. * src/DefaultBtProgressInfoFile.cc
  10970. * src/UnknownLengthPieceStorage.h
  10971. * src/DefaultPieceStorage.cc
  10972. * src/UnknownLengthPieceStorage.cc
  10973. * src/DefaultBtInteractive.cc
  10974. * src/GrowSegment.cc
  10975. * src/BitfieldMan.h
  10976. * src/DownloadCommand.cc
  10977. * src/BtRequestFactory.h
  10978. * src/PiecedSegment.h
  10979. * src/DefaultPieceStorage.h
  10980. * src/Piece.cc
  10981. * src/DefaultBtRequestFactory.cc
  10982. * src/PieceStorage.h
  10983. * src/Segment.h
  10984. * src/Piece.h
  10985. * src/BitfieldMan.cc
  10986. * src/Util.cc
  10987. * test/DefaultBtProgressInfoFileTest.cc
  10988. * test/DefaultPieceStorageTest.cc
  10989. * test/MockPieceStorage.h
  10990. * test/BtRequestMessageTest.cc
  10991. * test/DefaultBtMessageDispatcherTest.cc
  10992. * test/BitfieldManTest.cc
  10993. * test/GrowSegmentTest.cc
  10994. * test/PieceTest.cc
  10995. * test/SegmentTest.cc
  10996. * test/SegmentManTest.cc
  10997. * test/DefaultBtRequestFactoryTest.cc
  10998. * test/MockBtRequestFactory.h
  10999. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11000. Fixed compilation error with --disable-nls
  11001. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11002. in gettext.h causes the problem.
  11003. * src/common.h
  11004. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11005. Removed subPiece related functions.
  11006. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11007. * src/DefaultPieceStorage.{h, cc}
  11008. * test/PieceTest.cc
  11009. * test/DefaultPieceStorageTest.cc
  11010. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11011. Use unsigned char for data store.
  11012. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11013. Bump up version number to 0.13.0+1
  11014. * configure.ac
  11015. * Release 0.13.0+1
  11016. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Changed inactive connection timeout to 120.
  11018. To accept more mulually interested peers, disconnect peer when there
  11019. is no interest between us after certain time passed.
  11020. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11021. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11022. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11023. when compiled with async DNS support.
  11024. * src/DownloadEngine.cc
  11025. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11026. value '10' will be a little bit short when some DNS servers are
  11027. offline and several DNS servers are tried. It should be configured
  11028. by command-line option.
  11029. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11030. Merged Ross's mingw patch.
  11031. * src/DHTRoutingTableDeserializer.cc
  11032. * src/DHTRoutingTableSerializer.cc
  11033. * src/Platform.{h, cc}
  11034. * src/timegm.h
  11035. * src/gettimeofday.h
  11036. * src/getaddrinfo.h
  11037. * src/SocketCore.h
  11038. * src/common.h
  11039. * src/inet_aton.h
  11040. * src/DownloadEngine.h
  11041. * src/gai_strerror.h
  11042. * src/a2netcompat.h
  11043. * configure.ac
  11044. * configure
  11045. * aclocal.m4
  11046. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11047. Included missing iostream.
  11048. * test/AllTest.cc
  11049. * test/BtDependencyTest.cc
  11050. * test/BtExtendedMessageTest.cc
  11051. * test/DHTConnectionImplTest.cc
  11052. * test/DHTMessageFactoryImplTest.cc
  11053. * test/DHTMessageTrackerEntryTest.cc
  11054. * test/DHTNodeTest.cc
  11055. * test/DHTRoutingTableSerializerTest.cc
  11056. * test/DefaultBtAnnounceTest.cc
  11057. * test/DefaultBtContextTest.cc
  11058. * test/DefaultBtMessageFactoryTest.cc
  11059. * test/DefaultExtensionMessageFactoryTest.cc
  11060. * test/HandshakeExtensionMessageTest.cc
  11061. * test/HttpResponseTest.cc
  11062. * test/MetalinkProcessorTest.cc
  11063. * test/MultiFileAllocationIteratorTest.cc
  11064. * test/SocketCoreTest.cc
  11065. * test/UTPexExtensionMessageTest.cc
  11066. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11067. Reorganized includes.
  11068. * src/NameResolver.cc
  11069. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11070. Fixed compilation error without ares/c-ares
  11071. * src/NameResolver.h:
  11072. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11073. Added a test for large file.
  11074. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11075. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11076. Fixed the bug that file size is ignored if size > INT32_MAX
  11077. * src/SizeMetalinkParserState.cc (endElement):
  11078. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11079. Bump up version number to 0.13.0
  11080. * configure.ac
  11081. * Release 0.13.0
  11082. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11083. Updated Makfefile.am to make 'make dist' work.
  11084. Now packaged filename is aria2c-VERSION.tar.bz2.
  11085. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11086. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11087. Large file support is now configured by configure script.
  11088. * configure.ac
  11089. Removed unsused source files
  11090. * src/
  11091. * test/
  11092. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11093. Peer.h and BtContext.h respectively.
  11094. * src/Peer.h
  11095. * src/BtContext.h
  11096. Updated translations.
  11097. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11098. translations. Great thanks to all translators!;)
  11099. * po/*.{po, gmo}
  11100. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11101. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11102. statically declared sha1 MessageDigestContext.
  11103. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11104. initialization of short-lived MessageDigestContext.
  11105. * src/MessageDigestHelper.{h, cc}
  11106. * src/main.cc
  11107. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11108. the initialization of MessageDigestContext every time in validating
  11109. chunk checksum.
  11110. * src/DownloadCommand.{h, cc}
  11111. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11112. Add a file descriptor which connected to fast peer(latency<1500) to
  11113. select(). This change reduced CPU load.
  11114. * src/PeerInteractionCommand.cc
  11115. * src/DefaultBtInteractive.{h, cc}
  11116. * src/BtInteractive.h
  11117. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11118. Fixed the previous insufficient fix for possible busy loop.
  11119. * src/MSEHandshake.cc (identifyHandshakeType)
  11120. Removed unused functions.
  11121. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11122. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11123. Fixed possible busy loop if first 20 bytes are not received for a few
  11124. minutes.
  11125. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11126. * src/ReceiverMSEHandshakeCommand.cc
  11127. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11128. Fixed compilation error
  11129. * src/ExpatMetalinkProcessor.cc
  11130. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11131. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11132. * src/DHTBucket.cc
  11133. Removed unnecessary cast.
  11134. * src/HandshakeExtensionMessage.cc
  11135. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11136. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11137. is missing.
  11138. * src/OptionHandlerFactory.cc
  11139. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11140. Fixed the bug that HAVE message is not sent for a piece they are
  11141. downloaded fom http/ftp server before any BitTorrent handshake is done
  11142. with peers.
  11143. * src/DefaultBtInteractive.cc
  11144. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11145. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11146. * src/Makefile.am
  11147. * src/Makefile.in
  11148. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11149. Updated README. Added html version of README and man page.
  11150. * README
  11151. * README.html
  11152. * readme2html: Shell script to generate README.html from README using
  11153. asciidoc.
  11154. * doc/aria2c.1.html
  11155. * doc/makeman: Added the line to generate aria2c.1.html
  11156. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11157. Fixed offset calculation.
  11158. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11159. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11160. Rewritten itos and uitos using template. llitos and ullitos are
  11161. replaced with itos and uitos respectively.
  11162. * src/Util.{h, cc}
  11163. * test/UtilTest.cc
  11164. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11165. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11166. of the number of bytes required for storing public key and shared
  11167. secret.
  11168. * src/LibgcryptDHKeyExchange.h
  11169. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11170. * src/MSEHandshake.cc
  11171. * test/DHKeyExchangeTest.cc
  11172. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Removed since they are not used.
  11174. * src/Xml2MetalinkProcessor.{h, cc}
  11175. * src/Socket.cc
  11176. * src/SegmentSplitter.{h, cc}
  11177. * test/Xml2MetalinkProcessorTest.cc
  11178. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11179. Fixed the bug that prevents aria2 from stopping other than by pressing
  11180. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11181. option. aria2 doesn't stop even after --seed-time is satisfied and
  11182. continues to output blank lines in the console.
  11183. * src/ReceiverMSEHandshakeCommand.cc
  11184. * src/PeerReceiveHandshakeCommand.cc
  11185. * src/PeerListenCommand.cc
  11186. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11187. Bump up version number to 0.13.0rc
  11188. * configure.ac
  11189. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11190. Updated man page and some usage text.
  11191. * doc/aria2c.1.txt
  11192. * src/usage_text.h
  11193. * po/*.{po, gmo}
  11194. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11195. Updated translations. Added Finnish and Hebrew translations.
  11196. Great thanks to all translators!
  11197. * po/*.{po, gmo}
  11198. * po/LINGUAS
  11199. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11200. Log more detailed information about each message.
  11201. * src/DHTQueryMessage.{h, cc}
  11202. * src/DHTGetPeersMessage.{h, cc}
  11203. * src/DHTFindNodeReplyMessage.{h, cc}
  11204. * src/DHTGetPeersReplyMessage.{h, cc}
  11205. * src/DHTAnnouncePeerMessage.{h, cc}
  11206. * src/DHTResponseMessage.{h, cc}
  11207. * src/DHTFindNodeMessage.{h, cc}
  11208. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11209. Use constants defined in prefs.h
  11210. * src/option_processing.cc
  11211. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11212. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11213. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11214. Make room for future enchancements for IPv6 addresses.
  11215. Bump up version number of dht.dat file format to 2.
  11216. Not compatible with previous version.
  11217. * src/DHTRoutingTableSerializer.cc
  11218. * src/DHTRoutingTableDeserializer.cc
  11219. * test/DHTRoutingTableSerializerTest.cc
  11220. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11221. Added handling for the return values from
  11222. PeerMessageUtil::createcompact().
  11223. * src/DefaultBtContext.cc (computeFastSet):
  11224. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11225. Fixed abort when peer's ip address is IPv4-mapped address.
  11226. * src/DefaultBtContext.cc (computeFastSet)
  11227. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11228. cannot handle IPv4-mapped addresses.
  11229. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11230. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11231. Proper return value handling for OpenSSL functions.
  11232. * src/LibsslDHKeyExchange.h
  11233. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11234. Random bytes generation using libgcrypt and OpenSSL.
  11235. * src/DHTUtil.{h, cc}
  11236. * test/DHTUtilTest.cc
  11237. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11238. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11239. received.
  11240. * src/DHTMessageReceiver.cc (receiveMessage)
  11241. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11242. Fixed the bug that a return code is always 0. BUG#1897704
  11243. If error occurred during the download or there exist unfinished
  11244. downloads, aria2 returns with code 1.
  11245. * src/RequestGroupMan.{h, cc}
  11246. * src/MultiUrlRequestInfo.{h, cc}
  11247. * src/main.cc
  11248. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11249. IPv6 support for SocketCore class.
  11250. TODO: In SocketCore::establishConnection(), this is insufficient to
  11251. determin the failure of connect() here because the socket is
  11252. non-blocking state. The next addresses should be tried after select().
  11253. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11254. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11255. instead which address family independent.
  11256. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11257. information in a compact peer format which is for IPv4 only.
  11258. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11259. this is a spec of BitTorrent protocol.
  11260. * src/SocketCore.{h, cc}
  11261. * src/PeerMessageUtil.cc
  11262. * test/SocketCoreTest.cc
  11263. * test/PeerMessageUtilTest.cc
  11264. * test/DHTConnectionImplTest.cc
  11265. Handle IPv4-mapped addresses.
  11266. * src/DHTNode.cc: Now identity is determined by node id.
  11267. * src/DHTMessageTrackerEntry.cc
  11268. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11269. should handle it.
  11270. * src/DHTRoutingTableDeserializer.cc
  11271. * src/DHTMessageFactoryImpl.cc
  11272. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11273. Change the unit of --stop option from a minute to a second.
  11274. * src/usage_text.h
  11275. * src/DownloadEngineFactory.cc
  11276. * src/OptionHandlerFactory.cc
  11277. * src/message.h
  11278. * src/TimedHaltCommand.cc
  11279. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11280. Make listening socket non-block mode.
  11281. * src/FtpConnection.cc
  11282. * src/FtpNegotiationCommand.{h, cc}
  11283. * src/PeerListenCommand.cc
  11284. Fixed the bug that cause slow ftp negotiation.
  11285. * src/FtpNegotiationCommand.{h, cc}
  11286. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11287. Added basic tag to --enable-dht, --dht-listen-port option.
  11288. * src/HelpItemFactory.cc (createHelpItems)
  11289. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11290. Updated text.
  11291. * src/usage_text.h
  11292. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11293. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11294. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11295. Determin _threadtholdSpeed in each constructor for
  11296. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11297. * src/ActivePeerConnectionCommand.{h, cc}
  11298. * src/PeerReceiveHandshakeCommand.{h, cc}
  11299. * src/BtSetup.cc
  11300. * src/BtConstants.h
  11301. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11302. Added --bt-min-crypto-level and --bt-require-crypto options.
  11303. * src/OptionHandlerFactory.cc
  11304. * src/MSEHandshake.cc
  11305. * src/HelpItemFactory.cc
  11306. * src/option_processing.cc
  11307. * src/ReceiverMSEHandshakeCommand.cc
  11308. * src/prefs.h
  11309. * src/DefaultBtAnnounce.cc
  11310. * src/InitiatorMSEHandshakeCommand.cc
  11311. * src/usage_text.h
  11312. * test/MSEHandshakeTest.cc
  11313. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11314. Bump version number to 0.13.0b
  11315. * configure.ac
  11316. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11317. Updated doc.
  11318. * src/MessageDigestHelper.h:
  11319. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11320. Use raw message digest as a token instead of its hexadecimal
  11321. representation.
  11322. * src/DHTTokenTracker.cc (generateToken)
  11323. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11324. Added Message Stream Encryption(MSE) support.
  11325. Currently, aria2 accepts incoming connections with Obfuscation Header
  11326. and legacy BitTorrent Header and establishes connections with
  11327. Obfuscation Header first and if failed then retry with legacy
  11328. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11329. choose ARC4. The new option to change the default behavior is planned.
  11330. For tracker extension, "supportcrypto=1" is added statically.
  11331. * src/PeerInitiateConnectionCommand.{h, cc}
  11332. * src/PeerConnection.{h, cc}
  11333. * src/HandleRegistry.h
  11334. * src/SocketCore.h
  11335. * src/PeerReceiveHandshakeCommand.{h, cc}
  11336. * src/BtRegistry.{h, cc}
  11337. * src/PeerListenCommand.cc
  11338. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11339. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11340. * src/MSEHandshake.{h, cc}
  11341. * src/ARC4Encryptor.h
  11342. * src/ARC4Decryptor.h
  11343. * src/LibgcryptARC4Encryptor.h
  11344. * src/LibgcryptARC4Decryptor.h
  11345. * src/LibgcryptARC4Context.h
  11346. * src/LibsslARC4Encryptor.h
  11347. * src/LibsslARC4Decryptor.h
  11348. * src/LibsslARC4Context.h
  11349. * src/DHKeyExchange.h
  11350. * src/LibgcryptDHKeyExchange.h
  11351. * src/LibsslDHKeyExchange.h
  11352. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11353. * test/DefaultBtAnnounceTest.cc
  11354. * test/ARC4Test.cc
  11355. * test/DHKeyExchangeTest.cc
  11356. Removed prepareForRetry() because it is not used.
  11357. * src/PeerAbstractCommand.{h, cc}
  11358. * src/PeerInteractionCommand.{h, cc}
  11359. * src/PeerInitiateConnectionCommand.{h, cc}
  11360. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11361. Added the ability to load nodes from torrent file. These nodes are
  11362. added to the routing table when downloading that torrent.
  11363. * src/BtContext.h
  11364. * src/DefaultBtContext.{h, cc}
  11365. * src/DHTSetup.cc
  11366. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11367. hostname and port pair, and resolves all of them.
  11368. * src/NameResolver.{h, cc}: Added reset().
  11369. * src/RequestGroup.cc
  11370. * test/DefaultBtContextTest.cc
  11371. * test/MockBtContext.h
  11372. Removed assert() from DefaultBtContext and throw exception instead.
  11373. * src/DefaultBtContext.cc
  11374. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11375. Fixed segmentation fault bug when exiting if dht is disabled.
  11376. * src/RequestGroup.cc
  11377. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11378. Fixed typo in log message and define the message in message.h
  11379. * src/TimedHaltCommand.cc
  11380. * src/message.h
  11381. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11382. Included RecoverableException.h to fix compilation error.
  11383. * test/DHTMessageFactoryImplTest.cc
  11384. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11385. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11386. * test/DHTPingMessageTest.cc
  11387. * test/DHTGetPeersMessageTest.cc
  11388. * test/DHTFindNodeMessageTest.cc
  11389. * test/DHTAnnouncePeerMessageTest.cc
  11390. * test/MockDHTMessage.h
  11391. * test/MockDHTMessageFactory.h
  11392. * test/MockDHTMessageDispatcher.h: New class.
  11393. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11394. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11395. virtual.
  11396. * src/DHTMessageDispatcher.h
  11397. * src/DHTMessageDispatcherImpl.{h, cc}
  11398. * src/DHTSetup.cc
  11399. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11400. Adding handling of DHT error message. Just log error message and
  11401. throw exception.
  11402. * src/DHTMessageFactoryImpl.cc
  11403. * test/DHTMessageFactoryImplTest.cc
  11404. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11405. Added handling of dynamic cast failure.
  11406. * src/DHTNodeLookupTask.cc
  11407. * src/DHTPeerLookupTask.cc
  11408. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11409. Added the ability to stop aria2 itself when given time has passed
  11410. from start. Use --stop option to specify time in minutes.
  11411. When 0 is given, this feature is disabled.
  11412. * src/OptionHandlerFactory.cc
  11413. * src/TimeBasedCommand.h: Make _interval protected scope.
  11414. * src/HelpItemFactory.cc
  11415. * src/option_processing.cc
  11416. * src/prefs.h
  11417. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11418. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11419. Without this modification, the result list shows "ERR" when aria2 is
  11420. stopped by --stop option. It should be "INPR".
  11421. * src/DownloadEngine.{h, cc}
  11422. * src/DownloadEngineFactory.cc
  11423. * src/usage_text.h
  11424. * src/TimedHaltCommand.{h, cc}: New class.
  11425. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11426. Bootstrap through node added by port message.
  11427. Currently bootstrap is executed if the number of buckets in routing
  11428. table is 1.
  11429. * src/BtPortMessage.{h, cc}
  11430. * src/DefaultBtMessageFactory.{h, cc}
  11431. * src/PeerInteractionCommand.cc
  11432. * test/BtPortMessageTest.cc
  11433. * test/MockDHTTask.h
  11434. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11435. Extract the Peer class's member variables, which are only needed after
  11436. PeerInteractionCommand, into PeerSessionResource class.
  11437. This class is instantiated in PeerInteractionCommand class's ctor and
  11438. released in its dtor.
  11439. This will make Peer class lightweight and uses less memory for peers
  11440. which are not connected and wait in the queue.
  11441. * src/PeerChokeCommand.cc
  11442. * src/PeerSessionResource.{h, cc}
  11443. * src/PeerInteractionCommand.cc
  11444. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11445. * src/DefaultBtInteractive.cc
  11446. * src/BtPieceMessage.cc
  11447. * src/BtInterestedMessage.cc
  11448. * src/BtUnchokeMessage.cc
  11449. * src/DefaultPeerStorage.{h, cc}
  11450. * src/PeerInitiateConnectionCommand.cc
  11451. * src/ActivePeerConnectionCommand.cc
  11452. * src/BtNotInterestedMessage.cc
  11453. * src/DefaultBtMessageDispatcher.cc
  11454. * src/BtChokeMessage.cc
  11455. * src/BtRequestMessage.cc
  11456. * src/Peer.{h, cc}
  11457. * src/BtRegistry.h
  11458. * src/TrackerWatcherCommand.cc
  11459. * src/PeerReceiveHandshakeCommand.cc
  11460. * test/BtExtendedMessageTest.cc
  11461. * test/BtAllowedFastMessageTest.cc
  11462. * test/BtCancelMessageTest.cc
  11463. * test/DefaultPieceStorageTest.cc
  11464. * test/BtBitfieldMessageTest.cc
  11465. * test/BtHaveMessageTest.cc
  11466. * test/BtNotInterestedMessageTest.cc
  11467. * test/BtRequestMessageTest.cc
  11468. * test/PeerSessionResourceTest.cc
  11469. * test/DefaultBtMessageDispatcherTest.cc
  11470. * test/PeerTest.cc
  11471. * test/BtInterestedMessageTest.cc
  11472. * test/BtRejectMessageTest.cc
  11473. * test/BtChokeMessageTest.cc
  11474. * test/DefaultPeerStorageTest.cc
  11475. * test/BtHaveNoneMessageTest.cc
  11476. * test/BtHaveAllMessageTest.cc
  11477. * test/DefaultExtensionMessageFactoryTest.cc
  11478. * test/BtUnchokeMessageTest.cc
  11479. * test/DefaultBtMessageFactoryTest.cc
  11480. * test/HandshakeExtensionMessageTest.cc
  11481. * test/UTPexExtensionMessageTest.cc
  11482. * test/DefaultBtRequestFactoryTest.cc
  11483. * test/BtPieceMessageTest.cc
  11484. Removed typedef PeerStats.
  11485. * src/PeerStat.h
  11486. * src/SegmentMan.cc
  11487. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. Added std namespace to copy, remove_copy, back_inserter,
  11489. front_inserter.
  11490. * src/RequestGroupMan.cc
  11491. * src/DefaultPieceStorage.cc
  11492. * src/StreamFileAllocationEntry.cc
  11493. * src/BtFileAllocationEntry.cc
  11494. * src/RequestGroup.cc
  11495. * src/MetalinkEntry.cc
  11496. * src/DelegatingPeerListProcessor.cc
  11497. * src/DefaultBtRequestFactory.cc
  11498. * src/DefaultBtMessageDispatcher.cc
  11499. * src/version_usage.cc: Included <algorithm>
  11500. * src/main.cc
  11501. * src/MetalinkParserController.cc
  11502. * src/DefaultBtContext.cc
  11503. * src/DownloadEngineFactory.cc
  11504. * src/a2algo.h
  11505. Removed.
  11506. * test/StreamUriListParserTest.cc
  11507. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11508. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11509. ActivePeerConnectionCommand when it is given and
  11510. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11511. * src/ActivePeerConnectionCommand.{h, cc}
  11512. * src/BtSetup.cc
  11513. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11514. Only add socket to DownloadEngine's select routine when peer or
  11515. localhost is unchoked and interested. This lowers CPU usage a
  11516. little bit.
  11517. * src/PeerInteractionCommand.cc
  11518. * src/PeerAbstractCommand.{h, cc}
  11519. * src/BtInteractive.h
  11520. * src/DefaultBtInteractive.{h, cc}
  11521. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11522. Revert previous change because get_peers message is needed for
  11523. announce_peer anyway.
  11524. * src/DHTGetPeersCommand.cc
  11525. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11526. Request peers thought DHT only when download hasn't finished.
  11527. * src/DHTGetPeersCommand.cc
  11528. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11529. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11530. * src/DHTBucketRefreshTask.{h, cc}
  11531. * src/DHTSetup.cc
  11532. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11533. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11534. standard classes.
  11535. Included string.h where mem* function are used.
  11536. Added namespace aria2.
  11537. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11538. Create directory before saving DHT routing table.
  11539. Now ios::failure is now handled properly.
  11540. * src/DHTAutoSaveCommand.cc
  11541. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11542. Removed unnecessary cerr.
  11543. * src/DownloadEngine.cc
  11544. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11545. Catch exception inside DHTMessageReceiver::receiveMessage().
  11546. Log unknown message.
  11547. * src/DHTMessageReceiver.{h, cc}
  11548. * src/DHTMessageFactory.h
  11549. * src/DHTMessageFactoryImpl.{h, cc}
  11550. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11551. * src/DHTInteractionCommand.cc
  11552. * src/DHTUnknownMessage.{h, cc}
  11553. * test/DHTUnknownMessageTest.cc
  11554. * test/MockDHTMessageFactory.h
  11555. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11556. Commented out ip address comparison because a host can have multiple
  11557. ip addresses and it is hard to predict the hostname is resolved into
  11558. which one.
  11559. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11560. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11561. * po/Makefile.in: Removed since this is generated by configure.
  11562. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11563. Fixed compiler warning about redefinition of SIZE_MAX.
  11564. Use common.h instead of config.h directly here.
  11565. * src/Platform.{h, cc}
  11566. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11567. here.
  11568. * common.h
  11569. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11570. Updated gettext related files.
  11571. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11572. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11573. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11574. Added DHT functionality, compatible with mainline.
  11575. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11576. You may need to specify entry point to DHT network using
  11577. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11578. Use --dht-listen-port to specify port number. Make sure that your
  11579. firewall configuration can pass through UDP traffic to the port.
  11580. The routing table is saved in $HOME/.aria2/dht.dat.
  11581. * src/DHT*
  11582. * src/BNode.{h, cc}
  11583. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11584. particular torrent.
  11585. * src/Data.cc: Rewritten ctor.
  11586. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11587. --dht-entry-point.
  11588. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11589. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11590. ends, remove BtContext from DHTPeerAnnounceStorage.
  11591. * src/BtPortMessage.{h, cc}: Rewritten.
  11592. * src/message.h
  11593. * src/OptionHandlerImpl.cc
  11594. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11595. --dht-entry-point.
  11596. * src/Dictionary.{h, cc} (remove): New function.
  11597. * src/prefs.h
  11598. * src/DefaultBtMessageFactory.h
  11599. * src/BtHandshakeMessage.cc
  11600. * src/ActivePeerConnectionCommand.cc
  11601. * src/SocketCore.{h, cc}: Added datagram socket support.
  11602. * src/DefaultBtMessageFactory.cc
  11603. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11604. Create DHT commands.
  11605. * src/BtMessageFactory.h
  11606. * src/PeerMessageUtil.{h, cc}
  11607. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11608. Fixed the bug that log file is not written when configuration file doesn't exist.
  11609. This is caused by using Logger class before LogFactory is not configured.
  11610. BUG #1875079
  11611. * src/option_processing.cc
  11612. Warning message "configuration doesn't exist" is only printed when --conf is
  11613. given.
  11614. * src/option_processing.cc
  11615. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11616. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11617. ShaVisitor is now deprecated and slated to be removed.
  11618. * src/DefaultBtContext.cc
  11619. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11620. Externalize message to message.h
  11621. * src/Platform.cc
  11622. * src/message.h
  11623. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11624. Set default domain and default path to cookie.
  11625. * src/HttpResponse.cc
  11626. * src/CookieBox.{h, cc}
  11627. * src/CookieParser.{h, cc}
  11628. * test/CookieParserTest.cc
  11629. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11630. Added --no-conf and --conf-path command-line option.
  11631. --no-conf option disables loading aria2.conf file.
  11632. --conf-path option changes the configuration file path. The default
  11633. file path is $HOME/.aria2/aria2.conf
  11634. Added a warning message when the configuration file is not found.
  11635. * src/HelpItemFactory.cc
  11636. * src/option_processing.cc
  11637. * src/prefs.h
  11638. * src/usage_text.h
  11639. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11640. Added the message to inform users that other help categories are
  11641. available in -h option.
  11642. * src/version_usage.cc
  11643. * src/TagContainer.{h, cc}
  11644. * test/TagContainerTest.cc
  11645. * src/TaggedItem.{h, cc}
  11646. * test/TaggedItemTest.cc
  11647. * src/HelpItem.h
  11648. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11649. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11650. from PiecedSegment's ctor.
  11651. Previously Piece::getAllMissingBlockIndexes() is called from
  11652. PiecedSegment() but it is rather expensive since only first element is
  11653. used.
  11654. * src/PiecedSegment.cc
  11655. * src/Piece.{h, cc}
  11656. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11657. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11658. each time these functions are called.
  11659. * src/BitfieldMan.{h, cc}
  11660. * test/BitfieldManTest.cc
  11661. * src/array_fun.h
  11662. * test/array_funTest.cc
  11663. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11664. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11665. filtered. Removed unnecessary cast to int32_t.
  11666. * src/BitfieldMan.{h, cc}
  11667. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11668. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11669. payload length(4bytes) are received. This happens because lenbufLength
  11670. is not updated in this particular case and successive call of
  11671. receiveMessage() overwrites payload length with bytes recieved which
  11672. are payload body.
  11673. * src/PeerConnection.{h, cc}
  11674. * src/message.h
  11675. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11676. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11677. peer if there are peers that have same ipaddr and port.
  11678. I've experiened segmentation fault and "pure virtual function was
  11679. called" error.
  11680. * src/Peer.h
  11681. * test/PeerTest.cc
  11682. * src/DefaultPeerStorage.cc
  11683. * test/DefaultPeerStorageTest.cc
  11684. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11685. Removed a call to isPowerOf() because it is no longer necessary here
  11686. and a request block is not always power of 2.
  11687. BUG#1866924
  11688. * src/PeerMessageUtil.cc (checkLength)
  11689. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11690. Fixed the bug that always first found Segment is removed from
  11691. usedSegmentEntries. Removed unused functions.
  11692. * src/SegmentMan.{h, cc}
  11693. * test/SegmentManTest.cc
  11694. Fixed the bug that ServerHost is not removed.
  11695. * src/RequestGroup.cc
  11696. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11697. Fixed the bug that SegmentMan::completeSegment() is not called
  11698. even if Segment is complete when --lowest-speed-limit is enabled.
  11699. BUG#1864525
  11700. * src/DownloadCommand.{h, cc}
  11701. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11702. Fixed: hash algorithm 'sha1' is always used.
  11703. * src/DownloadCommand.cc (validatePieceHash)
  11704. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11705. Added --enable-peer-exchange command-line option.
  11706. * src/OptionHandlerFactory.cc
  11707. * src/HelpItemFactory.cc
  11708. * src/option_processing.cc
  11709. * src/usage_text.h
  11710. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11711. Move extension from BtRuntime to ExtensionMessageFactory, because
  11712. extension can be specified per peer, not per torrent.
  11713. * src/DefaultBtInteractive.cc
  11714. * src/BtRuntime.h
  11715. * src/ExtendedMessagingAware.h
  11716. * src/ExtensionMessageFactory.h
  11717. * src/DefaultExtensionMessageFactory.cc
  11718. * test/DefaultExtensionMessageFactoryTest.cc
  11719. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11720. Added categorized option help. Specify category using --help option.
  11721. Also added the ability to search options in forward match.
  11722. * src/HelpItem.{h, cc}
  11723. * test/HelpItemTest.cc
  11724. * src/HelpItemFactory.{h, cc}
  11725. * src/TagContainer.{h, cc}
  11726. * test/TagContainerTest.cc
  11727. * src/option_processing.cc
  11728. * src/prefs.h
  11729. * src/TaggedItem.{h, cc}
  11730. * test/TaggedItemTest.cc
  11731. * src/version_usage.cc
  11732. * src/help_tags.h
  11733. * src/usage_text.h
  11734. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11735. Fixed segmentation fault when bad torrent metainfo is parsed.
  11736. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11737. and then throw exception or skip it.
  11738. * src/DefaultBtContext.{h, cc}
  11739. * test/DefaultBtContextTest.cc
  11740. * src/AnnounceList.cc
  11741. * src/CompactPeerListProcessor.cc
  11742. * src/message.h
  11743. * src/DefaultBtAnnounce.{h, cc}
  11744. * test/DefaultBtAnnounceTest.cc
  11745. * src/BencodeVisitor.cc
  11746. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11747. Added missing "B"(=Byte). So now the message looks like this:
  11748. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11749. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11750. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11751. Show the seed ratio after torrent downloads.
  11752. For example, after torrent download completed and --seed-time and
  11753. --seed-ratio conditions are fulfilled, following message is printed
  11754. right after "Download complete: .....":
  11755. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11756. * src/RequestGroupMan.cc
  11757. * src/RequestGroup.{h, cc}
  11758. * src/message.h
  11759. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11760. Remove a defunct control file. A defunct control file means that while
  11761. it exists, but the corresponding download file is missing.
  11762. After its removal, a download restarts from the beginning.
  11763. * src/RequestGroup.cc
  11764. * src/message.h
  11765. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11766. Allocate bitfield in Peer when it is really used. More specifically,
  11767. bitfield in Peer is allocated after the connection is established and
  11768. deallocated when the connection is dropped.
  11769. Since 2 parameters(piece length and total length) was removed from the
  11770. constructor of Peer class, many test classes were modified accordingly.
  11771. See svn log for more detailed information.
  11772. * src/PeerInteractionCommand.cc
  11773. * src/CompactPeerListProcessor.cc
  11774. * src/Peer.cc
  11775. * src/DefaultPeerListProcessor.cc
  11776. * src/PeerListenCommand.cc
  11777. * src/PeerReceiveHandshakeCommand.cc
  11778. Fixed memory leak
  11779. * src/Piece.cc
  11780. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11781. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11782. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11783. command-line options.
  11784. * src/option_processing.cc
  11785. * src/ActivePeerConnectionCommand.cc
  11786. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11787. Send have message to peer if it already has the piece.
  11788. * src/BtHaveMessage.{h, cc}
  11789. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11790. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11791. port.
  11792. * src/DefaultPeerStorage.{h, cc}
  11793. * test/DefaultPeerStorageTest.cc
  11794. * src/HandshakeExtensionMessage.cc
  11795. * test/HandshakeExtensionMessageTest.cc
  11796. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11797. * src/PeerStorage.h
  11798. * test/MockPeerStorage.h
  11799. * src/PeerListenCommand.cc
  11800. * src/PeerReceiveHandshakeCommand.cc
  11801. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11802. Added --metalink-enable-unique-protocol option.
  11803. * src/Metalink2RequestGroup.cc
  11804. * src/option_processing.cc
  11805. * src/prefs.h
  11806. * src/version_usage.cc
  11807. * doc/aria2c.1.txt
  11808. * doc/aria2c.1
  11809. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11810. Allow a peer in incomingPeer to be added peers.
  11811. * src/DefaultPeerStorage.cc
  11812. * test/DefaultPeerStorageTest.cc
  11813. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11814. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11815. I could reproduce this bug in following procedure:
  11816. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11817. 2. Restart aria2.
  11818. 3. You see the download stopped around 99%.
  11819. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11820. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11821. If timeout is reached, then _nextCommand is unused and it may contains
  11822. segments and they won't be canceled. Actually, timeout is not needed
  11823. here because if the server dropped connection, then retry is made.
  11824. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11825. Added uTorrent compatible Peer Exchange.
  11826. * src/BencodeVisitor.{h, cc}
  11827. * test/BencodeVisitorTest.cc
  11828. * src/BtConstants.h
  11829. * src/BtContext.h: Added 'private' flag.
  11830. * src/BtExtendedMessage.{h, cc}
  11831. * test/BtExtendedMessageTest.cc
  11832. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11833. reserved field.
  11834. * test/BtHandshakeMessageTest.cc
  11835. * src/BtMessageFactory.h
  11836. * src/BtRegistry.h
  11837. * src/BtRuntime.h: This class holds default extension message IDs for
  11838. aria2. By default, aria2 uses ID 8 for ut_pex.
  11839. * src/DefaultBtContext.cc
  11840. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11841. When it is true, aria2 enables ut_pex. This value is set by
  11842. PeerInteractionCommand.
  11843. * src/DefaultBtMessageFactory.{h, cc}
  11844. * test/DefaultBtMessageFactoryTest.cc
  11845. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11846. handling to DefaultBtInteractive class.
  11847. * src/DefaultExtensionMessageFactory.{h, cc}
  11848. * test/DefaultExtensionMessageFactoryTest.cc
  11849. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11850. the container(peers and incomingPeers. The equality is determined by
  11851. Peer::id).
  11852. * test/DefaultPeerStorageTest.cc
  11853. * src/ExtensionMessage.h
  11854. * test/MockExtensionMessage.h
  11855. * src/ExtensionMessageFactory.h
  11856. * test/MockExtensionMessageFactory.h
  11857. * src/HandshakeExtensionMessage.{h, cc}
  11858. * test/HandshakeExtensionMessageTest.cc
  11859. * src/MetaEntry.h
  11860. * src/Peer.{h, cc}
  11861. * src/PeerInteractionCommand.cc
  11862. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11863. addIncomingPeer.
  11864. * src/PeerMessageUtil.{h, cc}
  11865. * src/PeerObject.h
  11866. * src/UTPexExtensionMessage.{h, cc}
  11867. * test/UTPexExtensionMessageTest.cc
  11868. * src/message.h
  11869. * src/prefs.h
  11870. Fixed the bug that returns incomplete data when it contains null
  11871. character. A convenient constructor was also added.
  11872. * src/Data.{h, cc}
  11873. Rewritten.
  11874. * src/CompactPeerListProcessor.cc
  11875. Fixed typos.
  11876. * src/message.h
  11877. * src/MetaFileUtil.cc
  11878. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11879. Added "Status Legend" label to the explanation text of 'stat' in
  11880. download result and moved it to the last. BUG#1848214
  11881. * src/RequestGroupMan.cc
  11882. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11883. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11884. * src/Makefie.am
  11885. * test/Makefile.am
  11886. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11887. Fixed the bug that prevents aria2 from loading cookie file when expire
  11888. value is greater than 2^31-1. BUG#1851066
  11889. * src/CookieBoxFactory.cc
  11890. * test/CookieBoxFactoryTest.cc
  11891. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11892. Fixed possible memory leak when an exception is thrown.
  11893. * src/XML2SAXMetalinkProcessor.cc
  11894. Added Expat support. If both libxml2 and Expat are installed, then
  11895. libxml2 is used by default.
  11896. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11897. ExpatMetalinkProcessor according to the configuration.
  11898. * src/ExpatMetalinkProcessor.{h, cc}
  11899. * src/main.cc: Removed libxml2 specific header and init/free function.
  11900. * src/MetalinkProcessorFactory.{h, cc}
  11901. * src/MetalinkHelper.cc
  11902. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11903. * src/MetalinkProcessor.h
  11904. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11905. MetalinkProcessorTest is used instead.
  11906. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11907. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11908. MetalinkProcessorFactory::newInstance().
  11909. * m4/libexpat.m4
  11910. * configure.ac: Added configuration options for libexpat.
  11911. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11912. Disabled -s option in metalink download.
  11913. * src/Metalink2RequestGroup.cc
  11914. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11915. If several protocols are available for a mirror in metalink file,
  11916. aria2 now use one of them. --metalink-preferred-protocol option was
  11917. added to specify the preference of protocol.
  11918. * src/AbstractCommand.cc
  11919. * src/OptionHandlerFactory.cc
  11920. * src/ServerHost.{h, cc}
  11921. * src/Metalink2RequestGroup.cc
  11922. * src/RequestGroup.{h, cc}
  11923. * test/RequestGroupTest.cc
  11924. * src/option_processing.cc
  11925. * src/prefs.h
  11926. * src/HttpResponseCommand.cc
  11927. * src/MetalinkResource.{h, cc}
  11928. * src/FtpNegotiationCommand.cc
  11929. * src/MetalinkEntry.{h, cc}
  11930. * src/MetalinkEntryTest.cc
  11931. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11932. Code cleanup and added debug log.
  11933. * src/PeerConnection.cc
  11934. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11935. Compiler error fix: applied the patch by Tiziano Mueller
  11936. * src/RequestGroup.cc
  11937. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11938. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11939. in stopped and completed event.
  11940. * src/AnnounceList.{h, cc}
  11941. * test/AnnounceListTest.cc
  11942. * src/DefaultBtAnnounce.cc
  11943. * test/DefaultBtAnnounceTest.cc
  11944. Sorted URLs.
  11945. * test/Metalink2RequestGroupTest.cc
  11946. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11947. Removed unnecessary string copy. Updated doc and corrected indentation.
  11948. * src/Base64.cc
  11949. Fixed compilation warnings
  11950. * test/DataTest.cc
  11951. * test/HttpRequestTest.cc
  11952. * test/MetaFileUtilTest.cc
  11953. * test/RequestTest.cc
  11954. * Release 0.12.0
  11955. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11956. Updated translations
  11957. * po/{de,fr,ja,nl,ru}.po
  11958. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11959. translations. Many thanks to translators.
  11960. * po/{ca,es,it,pt_BR,sv}.po
  11961. * po/LINGUAS
  11962. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11963. Added a notice about URL
  11964. * src/version_usage.cc
  11965. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11966. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11967. aria2 repeatedly sends stopped request when tracker returns error code.
  11968. * src/AnnounceList.cc
  11969. * test/AnnounceListTest.cc
  11970. * src/AnnounceTier.h
  11971. Added a message when ctrl-c is hit.
  11972. Now second ctrl-c is also handled in signal handler.
  11973. * src/RequestGroupMan.{h, cc}
  11974. * src/RequestGroup.{h, cc}
  11975. * src/MultiUrlRequestInfo.cc
  11976. * src/DownloadEngine.cc
  11977. * src/TrackerWatcherCommand.cc
  11978. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11979. Code cleanup
  11980. * src/Base64.cc (encode)
  11981. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11982. Changed Direct/IO enable/disable procesure in file allocation routine.
  11983. * src/SingleFileAllocationIterator.cc
  11984. (SingleFileAllocationIterator):
  11985. Disable directIO if offset is not multiple of 512.
  11986. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11987. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11988. Enable created SingleFileAllocationIterator's directIO.
  11989. * src/FileAllocationEntry.cc
  11990. (FileAllocationEntry): Enable directIO here.
  11991. (~FileAllocationEntry): Disable directIO here.
  11992. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11993. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11994. * src/Peer.{h, cc}
  11995. * src/DefaultPieceStorage.cc
  11996. * test/DefaultPieceStorageTest.cc
  11997. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11998. Rewritten direct I/O support routine
  11999. * src/SingleFileAllocationIterator.cc
  12000. * src/MultiDiskAdaptor.{h, cc}
  12001. * src/ByteArrayDiskWriter.h
  12002. * src/AbstractSingleDiskAdaptor.h
  12003. * src/AbstractDiskWriter.cc
  12004. * src/DefaultPieceStorage.cc
  12005. * src/DiskWriter.h
  12006. * src/BinaryStream.h
  12007. * src/IteratableChunkChecksumValidator.cc
  12008. * src/IteratableChecksumValidator.cc
  12009. * src/CheckIntegrityEntry.cc
  12010. * src/FileAllocationEntry.cc
  12011. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12012. Fixed typo
  12013. * src/version_usage.cc
  12014. Updated doc
  12015. * doc/aria2c.1.txt
  12016. * doc/aria2c.1
  12017. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12018. Fixed compile error without message digest support.
  12019. * src/FileMetalinkParserState.cc
  12020. * src/MetalinkParserController.{h, cc}
  12021. * test/XML2SAXMetalinkProcessorTest.cc
  12022. * test/MetalinkParserControllerTest.cc
  12023. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12024. Enable direct I/O support in checksum checking.
  12025. * src/IteratableChunkChecksumValidator.{h, cc}
  12026. * test/IteratableChunkChecksumValidatorTest.cc
  12027. * src/CheckIntegrityEntry.cc
  12028. * src/PieceHashCheckIntegrityEntry.cc
  12029. * src/IteratableChecksumValidator.{h, cc}
  12030. * src/BtCheckIntegrityEntry.cc: Added doc.
  12031. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12032. Added --allow-piece-length-change option.
  12033. * src/DefaultBtProgressInfoFile.cc
  12034. * test/DefaultBtProgressInfoFileTest.cc
  12035. * src/OptionHandlerFactory.cc
  12036. * src/option_processing.cc
  12037. * src/prefs.h
  12038. * src/version_usage.cc
  12039. * doc/aria2c.1.txt
  12040. * doc/aria2c.1
  12041. Fixed: duplicated result entry appears when exception is thrown in
  12042. RequestGroup::createInitiateConnectionCommand().
  12043. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12044. Add RequestGroup to _requestGroup after RequetGroup::
  12045. createInitiateConnectionCommand() succeeds.
  12046. Externalized message
  12047. * src/XML2SAXMetalinkProcessor.cc
  12048. * src/message.h
  12049. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12050. Forced download abort when received negative response from http/ftp
  12051. server.
  12052. * src/HttpResponseCommand.cc
  12053. * src/FtpNegotiationCommand.cc
  12054. * src/HttpResponse.cc
  12055. * src/FtpConnection.cc
  12056. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12057. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12058. the predecessor, Xml2MetalinkParser class.
  12059. I tested them against 94KB metalink file with 1234 chunk checksums.
  12060. The new one parsed it in 22msec, while it took 6000msec with old one.
  12061. * src/XML2SAXMetalinkProcessor.{h, cc}
  12062. * test/XML2SAXMetalinkProcessorTest.cc
  12063. * src/MetalinkParserController.{h, cc}
  12064. * test/MetalinkParserControllerTest.cc
  12065. * src/MetalinkParserState.h: Also added 16 subclasses.
  12066. * src/main.cc
  12067. * src/Metalink2RequestGroup.cc
  12068. * src/MetalinkHelper.cc
  12069. * src/MetalinkEntry.cc
  12070. * src/ChunkChecksum.h
  12071. Rewritten Base64 class for better performance.
  12072. * src/Base64.{h, cc}
  12073. * test/Base64Test.cc
  12074. * src/HttpRequest.cc
  12075. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12076. Fixed the bug#1841757: aria2 will connect to server to only get
  12077. file size.
  12078. * src/StreamFileAllocationEntry.cc
  12079. * src/option_processing.cc
  12080. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12081. downloads.
  12082. * src/FtpNegotiationCommand.cc
  12083. Suppressed wrong message when finding PreDownloadHandler
  12084. * src/RequestGroup.cc
  12085. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. Updated usage
  12087. * src/version_usage.cc
  12088. Updated man page
  12089. * doc/aria2c.1.txt
  12090. * doc/aria2c.1
  12091. Updated po files
  12092. * po/aria2c.pot
  12093. * po/*.po
  12094. * po/*.gmo
  12095. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12096. Eliminated g++-4.2 warning
  12097. * src/DownloadHandlerConstants.{h, cc}
  12098. * src/Util.cc
  12099. * test/MetaFileUtilTest.cc
  12100. * test/PStringBuildVisitorTest.cc
  12101. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12102. * src/RequestGroup.cc
  12103. * src/BtCheckIntegrityEntry.cc
  12104. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12105. Fixed a2io.h
  12106. * src/a2io.h
  12107. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12108. Added direct I/O support. The current implementation uses O_DIRECT,
  12109. which is not posix standard and is tested on linux 2.6.21.
  12110. Currently only file allocation uses direct I/O.
  12111. * src/SingleFileAllocationIterator.{h, cc}
  12112. * test/SingleFileAllocationIteratorTest.cc
  12113. * src/MultiFileAllocationIterator.{h, cc}
  12114. * test/MultiFileAllocationIteratorTest.cc
  12115. * src/BinaryStream.h
  12116. * src/DiskWriter.h
  12117. * src/AbstractDiskWriter.{h, cc}
  12118. * src/ByteArrayDiskWriter.h
  12119. * src/DiskAdaptor.h
  12120. * src/AbstractSingleDiskAdaptor.{h, cc}
  12121. * src/MultiDiskAdaptor.{h, cc}
  12122. * src/FileAllocationEntry.cc
  12123. * src/Util.{h, cc}
  12124. * src/OptionHandlerFactory.cc
  12125. * src/prefs.h
  12126. * src/version_usage.cc
  12127. * src/option_processing.cc
  12128. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12129. handleException.
  12130. * src/MultiFileAllocationIterator.cc
  12131. Added EINTR handling
  12132. * src/SocketCore.cc
  12133. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12134. Updated usage
  12135. * src/version_usage.cc
  12136. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12137. Applied Ross's patch for MinGW port.
  12138. * src/DownloadEngine.h
  12139. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12140. Set Content-Type to SingleFileDownloadContext when http response is
  12141. received.
  12142. * src/HttpResponseCommand.cc
  12143. * src/HttpResponse.{h, cc}
  12144. * test/HttpResponseTest.cc
  12145. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12146. Rewritten to add content-type support.
  12147. * src/DownloadHandler.{h, cc}
  12148. * src/BtPostDownloadHandler.{h, cc}
  12149. * test/BtPostDownloadHandlerTest.cc
  12150. * src/MetalinkPostDownloadHandler.{h, cc}
  12151. * test/MetalinkPostDownloadHandlerTest.cc
  12152. * src/PostDownloadHandler.{h, cc}
  12153. * src/DownloadHandlerConstants.{h, cc}
  12154. * src/RequestGroup.cc
  12155. * src/HttpResponseCommand.cc
  12156. * src/FtpNegotiationCommand.cc
  12157. * src/SingleFileDownloadContext.{h, cc}
  12158. * src/RequestGroup.h
  12159. * src/RequestGroupCriteria.h
  12160. * src/ContentTypeRequestGroupCriteria.h
  12161. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12162. If it is give, metalink/torrent file is not written to the disk, but
  12163. just is kept in memory. Parsing is occurred on memory.
  12164. * src/MetalinkHelper.{h, cc}
  12165. * src/MetalinkProcessor.h
  12166. * src/Xml2MetalinkProcessor.{h, cc}
  12167. * test/Xml2MetalinkProcessorTest.cc
  12168. * src/DownloadHandlerFactory.{h, cc}
  12169. * test/DownloadHandlerFactoryTest.cc
  12170. * src/PreDownloadHandler.{h, cc}
  12171. * src/OptionHandlerFactory.cc
  12172. * src/DefaultBtContext.{h, cc}
  12173. * test/DefaultBtContextTest.cc
  12174. * src/version_usage.cc
  12175. * src/Metalink2RequestGroup.{h, cc}
  12176. * src/RequestGroup.{h, cc}
  12177. * src/a2functional.h
  12178. * test/a2functionalTest.cc
  12179. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12180. * src/OptionHandlerImpl.h
  12181. * src/prefs.h
  12182. * src/Util.{h, cc}
  12183. * test/UtilTest.cc
  12184. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12185. memory usage.
  12186. * src/RequestGroupMan.{h, cc}
  12187. * src/DownloadEngine.cc
  12188. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12189. WeakHandle to SharedHandle because WeakHandle could be null.
  12190. * src/RequestGroup.{h, cc}
  12191. * src/DownloadEngineFactory.cc
  12192. * src/DownloadResult.h
  12193. Set totalLength after download finished
  12194. * src/UnknownLengthPieceStorage.{h, cc}
  12195. Keep torrent file specified in metalink in memory.
  12196. * src/Metalink2RequestGroup.cc
  12197. * src/BtDependency.cc
  12198. * src/TrueRequestGroupCriteria.h
  12199. Fixed the bug: seekg is used where seekp should be used.
  12200. * src/ByteArrayDiskWriter.cc
  12201. * test/ByteArraydiskWriterTest.cc
  12202. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12203. Fixed syntax error
  12204. * test/SequenceTest.cc
  12205. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12206. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12207. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12208. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12209. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12210. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12211. Added the check to see whether ares_host_callback accepts timeouts
  12212. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12213. * src/NameResolver.{h, cc}
  12214. * m4/libcares.m4
  12215. * configure.ac: Set C++ for language choice.
  12216. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12217. Fixed: compilation fails without c-ares/ares
  12218. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12219. Generate http/ftp commands only when download is incomplete.
  12220. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12221. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12222. Corrected typo. Examples are removed since they are available in man
  12223. page.
  12224. * src/version_usage.cc
  12225. Updated man page.
  12226. * doc/aria2c.1
  12227. * doc/aria2c.1.txt
  12228. * doc/makeman: Commented out sed command.
  12229. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12230. Throw DlAbortEx when a remote file is not found.
  12231. * src/HttpResponse.cc
  12232. * src/FtpNegotiationCommand.cc
  12233. * src/message.h
  12234. Overwrite an existing file if --allow-overwrite=true is given.
  12235. * src/RequestGroup.cc
  12236. Removed unused functions
  12237. * src/AbstractCommand.h
  12238. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12239. Removed 'extern' from 'extern typedef ...' in src/*.h
  12240. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12241. Updated usage
  12242. * src/version_usage.cc
  12243. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12244. Trim announce URL
  12245. * src/DefaultBtContext.cc
  12246. * test/ShaVisitorTest.cc
  12247. Trim argument s. Give trimed s to exception constructor.
  12248. * src/Util.cc (parseInt)(parseLLInt)
  12249. * test/UtilTest.cc
  12250. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12251. Set precision back to 1.
  12252. * src/ConsoleStatCalc.cc (calculateStat)
  12253. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12254. Replaced strtol with Util::parseInt
  12255. * src/ChunkedEncoding.cc
  12256. * src/HttpConnection.cc
  12257. * src/CookieBoxFactory.cc
  12258. * src/ParameterizedStringParser.cc
  12259. * src/Util.cc
  12260. * test/UtilTest.cc
  12261. * test/OptionHandlerTest.cc
  12262. * src/Request.cc
  12263. Throw exception when empty string is given. The message for exception
  12264. changed.
  12265. * src/Util.cc (parseInt)(parseLLInt)
  12266. * src/message.h
  12267. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12268. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12269. set to 1.
  12270. * src/ConsoleStatCalc.cc (calculateStat)
  12271. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12272. Preallocate non-requested file which is adjacent forward to requested
  12273. file('requested' files means the files given in --select-file option)
  12274. if they share a same piece.
  12275. This fixes long pause in the file system which doesn't support sparse
  12276. files like FAT32 while downloading.
  12277. * src/MultiFileAllocationIterator.{h, cc}
  12278. * test/MultiFileAllocationIteratorTest.cc
  12279. * src/FileEntry.{h, cc}
  12280. Removed unused _option.
  12281. * src/MultiDiskAdaptor.h
  12282. * test/MultiDiskAdaptorTest.cc
  12283. * src/DefaultPieceStorage.cc
  12284. Set the default value of --seed-ratio to 1.0.
  12285. If 0.0 is given, then seeding continues regardless of share ratio.
  12286. * src/version_usage.cc
  12287. * src/option_processing.cc
  12288. * src/BtSetup.cc
  12289. * doc/aria2c.1.txt
  12290. * doc/aria2c.1
  12291. Fixed: Selective download is not working in BitTorrent
  12292. * src/RequestGroup.cc
  12293. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12294. * src/PieceStorage.h
  12295. * test/MockPieceStorage.h
  12296. * src/UnknownLengthPieceStorage.h
  12297. * src/DefaultPieceStorage.{h, cc}
  12298. * src/Metalink2RequestGroup.cc
  12299. * src/RequestGroup.cc
  12300. * src/Sequence.h
  12301. * test/SequenceTest.cc
  12302. * src/IntSequence.h
  12303. * src/message.h
  12304. * src/Util.{h, cc}
  12305. * test/UtilTest.cc
  12306. Added new function 'parse' to catch exception thrown by subclass's
  12307. parseArg
  12308. * src/OptionHandler.h
  12309. * src/OptionParser.cc
  12310. * src/NameMatchOptionHandler.h
  12311. * src/OptionHandlerImpl.h
  12312. * test/OptionHandlerTest.cc
  12313. Added IntegerRangeOptionHandler. Used for --listen-port and
  12314. --select-file. Now --listen-port accepts range of port.
  12315. * src/OptionHandlerFactory.cc
  12316. * src/version_usage.cc
  12317. * src/OptionHandlerImpl.h
  12318. * src/option_processing.cc
  12319. * src/BtSetup.cc
  12320. * src/PeerListenCommand.{h, cc}
  12321. * doc/aria2c.1.txt
  12322. * doc/aria2c.1
  12323. Implemented operator< for Exception class to provide easy way to print
  12324. exception stack trace.
  12325. * src/Exception.{h, cc}
  12326. * src/main.cc
  12327. * src/option_processing.cc
  12328. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12329. * src/version_usage.cc
  12330. (showVersion): Reworked.
  12331. (showUsage): Added examples.
  12332. Removed Hint for total length and file name.
  12333. * src/Metalink2RequestGroup.cc
  12334. * src/RequestGroup.{h, cc}
  12335. * src/HttpResponseCommand.cc
  12336. * src/FtpNegotiationCommand.cc
  12337. Now --follow-torrent and --follow-metalink option work properly.
  12338. * src/RequestGroup.cc
  12339. Updated man page
  12340. * doc/aria2c.1.txt
  12341. * doc/aria2c.1
  12342. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12343. Removed.
  12344. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12345. Use Segment::operator==()
  12346. * src/HttpConnection.cc
  12347. * src/Segment.h
  12348. Updated usage
  12349. * src/version_usage.cc
  12350. Added EINTR treatment.
  12351. * src/SocketCore.cc
  12352. * src/AbstractDiskWriter.cc
  12353. Rewritten.
  12354. * src/Util.cc (rangedFileCopy)
  12355. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12356. Fixed typo.
  12357. * src/version_usage.cc
  12358. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12359. Implemented. Now -c option works fine.
  12360. * src/DefaultPieceStorage.cc (markPiecesDone)
  12361. * test/DefaultPieceStorageTest.cc
  12362. Removed.
  12363. * src/SegmentMan.{h, cc}
  12364. (markAllPiecesDone)
  12365. (markPieceDone)
  12366. Synchronized po files with
  12367. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12368. * src/fr.po
  12369. * src/ru.po
  12370. * src/de.po
  12371. * src/ja.po
  12372. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12373. Added ifdef and some modifications to compile without BitTorrent,
  12374. Metalink, MessageDigest
  12375. support.
  12376. * src/PieceHashCheckIntegrityEntry.cc
  12377. * src/MetalinkEntry.h
  12378. * src/version_usage.cc
  12379. * src/main.cc
  12380. * src/DownloadEngine.{h, cc}
  12381. * src/Metalink2RequestGroup.cc
  12382. * src/Peer.cc
  12383. * src/RequestGroup.cc
  12384. * src/MetalinkHelper.cc
  12385. * test/DefaultPieceStorageTest.cc
  12386. * test/MetalinkPostDownloadHandlerTest.cc
  12387. * test/Metalink2RequestGroupTest.cc
  12388. Hide TOTAL SPD when all downloads complete.
  12389. * src/ConsoleStatCalc.cc
  12390. Log target system information.
  12391. * src/main.cc
  12392. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12393. Now --metalink-location accepts a comma-deliminated list of locations.
  12394. * src/MetalinkEntry.{h, cc}
  12395. * test/MetalinkEntryTest.cc
  12396. * src/version_usage.cc
  12397. * src/Metalink2RequestGroup.cc
  12398. * src/Xml2MetalinkProcessor.cc
  12399. * test/Xml2MetalinkProcessorTest.cc
  12400. * doc/aria2c.1.txt
  12401. * doc/aria2c.1
  12402. * src/Util.cc (toUpper)(toLower): Rewritten.
  12403. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12404. Added the ability to detect duplicate download entry which is about to
  12405. download the same file other RequestGroup is downloading.
  12406. * src/RequestGroup.cc
  12407. * src/HttpResponseCommand.cc
  12408. * src/FtpNegotiationCommand.cc
  12409. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12410. Recalculates download progress when loading a control file,
  12411. if the piece length of DownloadContext is different from the one saved
  12412. in the control file. Currently in-flight pieces are ignored.
  12413. * src/DefaultBtProgressInfoFile.cc
  12414. * test/DefaultBtProgressInfoFileTest.cc
  12415. * src/Util.{h, cc}
  12416. * test/UtilTest.cc
  12417. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12418. Do not rotate tiers in announce-list.
  12419. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12420. AnnounceList::allTiersFailed() used instead to detect whether all
  12421. tiers are tried and failed.
  12422. * test/DefaultBtAnnounceTest.cc
  12423. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12424. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12425. * test/AnnounceListTest.cc
  12426. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12427. clause. Catch RecoverableException instead of DlRetryEx instead.
  12428. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12429. Implemented checksum validation feature(1 checksum for each file)
  12430. The validation takes place after the download.
  12431. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12432. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12433. * src/CheckIntegrityCommand.cc: Changed log message.
  12434. * src/Metalink2RequestGroup.cc: Set checksum to
  12435. SingleFileDownloadContext.
  12436. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12437. PieceHashCheckIntegrity class.
  12438. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12439. PieceHashCheckIntegrity class.
  12440. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12441. * src/IteratableValidator.h: New class.
  12442. * src/message.h
  12443. * src/CheckIntegrityEntry.{h, cc}
  12444. * src/IteratableChunkChecksumValidator.{h, cc}
  12445. * src/SingleFileDownloadContext.h
  12446. * src/DownloadCommand.cc
  12447. --allow-overwrite=true is no longer needed to check file integrity
  12448. before download in BitTorrent download.
  12449. * src/RequestGroup.cc (getInitialCommand)
  12450. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12451. throws exception.
  12452. * src/RequestGroupMan.cc (getInitialCommands)
  12453. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12454. urlencode the given url inside Request::parseUrl(...)
  12455. * src/Request.{h, cc}
  12456. * src/Util.{h, cc}
  12457. * test/RequestTest.cc
  12458. Removed #!metalink3! notation support because it is deleted from
  12459. the metalink specification.
  12460. * src/Request.{h, cc}
  12461. * test/RequestTest.cc
  12462. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12463. Don't connect server before checking file integrity at startup, if
  12464. filesize and output file path are known.
  12465. * src/AbstractCommand.cc
  12466. * src/StreamFileAllocationEntry.cc
  12467. * src/Metalink2RequestGroup.cc
  12468. * src/RequestGroup.{h, cc}
  12469. * src/HttpResponseCommand.cc
  12470. * src/FtpNegotiationCommand.cc
  12471. Added DownloadFailureException. If it is thrown, RequestGroup should
  12472. halt.
  12473. * src/AbstractCommand.cc
  12474. * src/DownloadFailureException.h
  12475. * src/RequestGroup.cc
  12476. Catch RecoverableException, instead of DlAbortEx.
  12477. * src/RequestGroupMan.cc
  12478. * src/FillRequestGroupCommand.cc
  12479. * src/MetaFileUtil.cc
  12480. * src/IteratableChunkChecksumValidator.cc
  12481. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12482. getGID())
  12483. * src/CheckIntegrityCommand.cc
  12484. * src/message.h
  12485. Print gid instead of idx.
  12486. * src/RequestGroupMan.cc
  12487. Removed exception throwers declaration.
  12488. * src/DirectDiskAdaptor.{h, cc}
  12489. * src/SocketCore.{h, cc}
  12490. * src/MultiDiskAdaptor.{h, cc}
  12491. * src/HttpConnection.{h, cc}
  12492. * src/HttpResponse.{h, cc}
  12493. * src/DiskAdaptor.{h, cc}
  12494. * src/CopyDiskAdaptor.{h, cc}
  12495. * src/MultiDiskAdaptor.{h, cc}
  12496. * src/HttpHeaderProcessor.{h, cc}
  12497. * src/AbstractSingleDiskAdaptor.{h, cc}
  12498. * src/Util.{h, cc}
  12499. * test/UtilTest.cc
  12500. * src/DefaultDiskWriter.{h, cc}
  12501. * src/FtpConnection.{h, cc}
  12502. * src/AbstractDiskWriter.{h, cc}
  12503. Removed duplicate code.
  12504. * src/StreamCheckIntegrityEntry.cc
  12505. Removed unnecessary include.
  12506. * src/DiskWriter.h
  12507. Included Exception.h
  12508. * src/option_processing.cc
  12509. Included 2 files and added doc
  12510. * src/TrackerWatcherCommand.cc
  12511. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12512. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12513. Changed CheckIntegrityEntry interface so that it can define
  12514. the action when all the chunk checksums are valid.
  12515. * src/CheckIntegrityEntry.h
  12516. * src/StreamCheckIntegrityEntry.{h, cc}
  12517. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12518. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12519. to exit rather than doing seeding. So, it would be good to toggle this
  12520. behavior.
  12521. * src/CheckIntegrityCommand.cc
  12522. * src/AbstractCommand.cc
  12523. * src/RequestGroup.cc
  12524. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12525. Reflect the download length of in-flight pieces.
  12526. It makes the download length readout more precise.
  12527. * src/DefaultPieceStorage.{h, cc}
  12528. * test/DefaultPieceStorageTest.cc
  12529. * src/a2functional.h
  12530. * test/a2functionalTest.cc
  12531. Lower CPU load when --max-download-limit is used.
  12532. There is up and down in speed indicator when enabling
  12533. http-pipelining but a download goes well. I think the problem is that
  12534. because http-pipelining is enabled, DownloadCommand is created for
  12535. each segment and in its constructor, PeerStat::downloadStart() is
  12536. called. In PeerStat::downloadStart(), speed calculation object is
  12537. reseted, which makes download speed zero.
  12538. * src/DownloadCommand.cc
  12539. Rewritten using accumulate.
  12540. * src/RequestGroupMan.cc (calculateStat)
  12541. Code clearnup.
  12542. * src/FtpNegotiationCommand.cc
  12543. * src/HttpResponseCommand.cc
  12544. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12545. Fixed: Can not resume: aria2 reports download already finished.
  12546. * src/AbstractCommand.{h, cc}
  12547. * src/HttpResponseCommand.cc
  12548. * src/FtpNegotiateCommand.cc
  12549. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12550. Now a file is stored in the directory specified in .metalnk file
  12551. (file[@name]).
  12552. * src/Metalink2RequestGroup.cc
  12553. Create the directory structure when opening the file if it doesn't
  12554. exist.
  12555. * src/AbstractDiskWriter.cc
  12556. * src/Util.{h, cc}
  12557. * src/File.h
  12558. * test/UtilTest.cc
  12559. Removed file name comparison
  12560. * src/Metalink2RequestGroup.cc
  12561. * src/HttpResponseCommand.cc
  12562. Rewritten using Util::mkdirs()
  12563. * src/FileEntry.cc (setupDir)
  12564. * test/FileEntryTest.cc
  12565. Updated doc
  12566. * src/SingleFileDownloadContext.h
  12567. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12568. Now SleepCommand dispatches nextCommand when halt is requested.
  12569. It avoids a possible long wait after hitting CTRL-C.
  12570. * src/SleepCommand.{h, cc}
  12571. * src/RequestGroupAware.{h, cc}
  12572. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12573. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12574. to open listen port, then remove the port number from the tracker
  12575. request.
  12576. * src/DefaultBtAnnounce.cc
  12577. * test/DefaultBtAnnounceTest.cc
  12578. * test/MockPieceStorage.h
  12579. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12580. them more testable.
  12581. * src/DefaultBtAnnounce.{h, cc}
  12582. * src/DefaultBtContext.{h, cc}
  12583. * src/Util.{h, cc}
  12584. * test/DefaultBtAnnounceTest.cc
  12585. * test/DefaultBtContextTest.cc
  12586. * test/UtilTest.cc
  12587. Added 'B' to upload bytes readout.
  12588. * src/ConsoleStatCalc.cc
  12589. Now the listen port for BitTorrent download is opened when it is
  12590. needed.
  12591. * src/DownloadEngineFactory.cc
  12592. * src/BtSetup.{h, cc}
  12593. * src/PeerListenCommand.{h, cc}
  12594. Now an exception thrown while parsing tracker response is now logged.
  12595. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12596. called, which means no retry is made in this case, assuming a tracker
  12597. has a problem.
  12598. * src/TrackerWatcherCommand.cc
  12599. Fixed: downloading a file whose length is unkown fails.
  12600. * src/DownloadCommand.cc
  12601. Simplified prepareForNextSegment()
  12602. * src/DownloadCommand.cc
  12603. Updated
  12604. * po/POTFILES.in
  12605. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12606. Re-implemented a file listing for Metalink, which was dropped while
  12607. http/ftp/torrent integration was being implemented.
  12608. * src/MetalinkHelper.{h, cc}: New class.
  12609. * test/MetalinkHelperTest.cc
  12610. * src/main.cc
  12611. * src/Metalink2RequestGroup.cc
  12612. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12613. Added the ability to display the detailed torrent file information.
  12614. Now -S option gives not only a file listing, but also total download
  12615. length, info hash, announce URI, piece length, the number of pieces,
  12616. and mode(single or multi-torrent).
  12617. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12618. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12619. KiB)
  12620. * test/UtilTest.cc
  12621. * src/main.cc
  12622. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12623. Added ftp://USER:PASSWD@Servername automatic parsing.
  12624. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12625. _password. Recognize username and password in URI.
  12626. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12627. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12628. * src/RequestFactory.{h, cc}: Removed.
  12629. * src/AuthConfigFactory.{h, cc}: New class.
  12630. * src/FtpConnection.cc: Use AuthConfigFactory.
  12631. * src/HttpRequest.cc: Use AuthConfigFactory.
  12632. * test/HttpRequestTest.cc: Updated.
  12633. * test/RequestTest.cc: Updated.
  12634. * test/AuthConfigFactoryTest.cc: New class.
  12635. * test/RequestFactoryTest.cc: Removed.
  12636. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12637. Use RequestGroup::allDownloadFinished() to decide whether the control
  12638. file should be removed or saved.
  12639. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12640. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12641. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12642. Use File::renameTo()
  12643. * src/DefaultBtProgressInfoFile.cc
  12644. Added --no-file-allocation-limit command-line option.
  12645. * src/version_usage.cc
  12646. * src/option_processing.cc
  12647. * src/OptionHandlerFactory.cc
  12648. * src/RequestGroup.{h, cc}
  12649. * src/BtCheckIntegrityEntry.cc
  12650. * src/StreamCheckIntegrityEntry.cc
  12651. * src/prefs.h
  12652. * doc/aria2c.1.txt
  12653. * doc/aria2c.1
  12654. Now prealloc is the default value for --file-allocation option.
  12655. * src/version_usage.cc
  12656. * src/option_processing.cc
  12657. * doc/aria2c.1.txt
  12658. * doc/aria2c.1
  12659. Don't URL-encode user-agent.
  12660. * src/HttpRequest.cc
  12661. Updated translations
  12662. * po/LINGUAS: Added nl for Dutch translation.
  12663. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12664. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12665. * po/POTFILES.in: Updated.
  12666. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12667. Added the ability to recognize url-list in a torrent file.
  12668. The retrieved URLs are attached to the corresponding FileEntry.
  12669. * src/DefaultBtContext.{h, cc}
  12670. * src/FileEntry.{h, cc}
  12671. * test/DefaultBtContextTest.cc
  12672. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12673. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12674. after the download finishes.
  12675. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12676. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12677. the data smaller than block length.
  12678. A block length can be specified by constructor's argument.
  12679. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12680. Get a missing piece in the range of given FileEntry. This function is
  12681. not used in the program yet.
  12682. * src/Util.h: Added some macros.
  12683. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12684. Added HTTP/1.1 keep alive and pipelining support.
  12685. See --enable-http-keep-alive and --enable-http-pipelining option.
  12686. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12687. Segment.
  12688. * src/HttpDownloadCommand.{h, cc}
  12689. * src/OptionHandlerFactory.cc
  12690. * src/HttpConnection.{h, cc}
  12691. * src/version_usage.cc
  12692. * src/HttpInitiateConnectionCommand.cc
  12693. * src/FtpInitiateConnectionCommand.cc
  12694. * src/Segment.h
  12695. * src/HttpRequestCommand.{h, cc}
  12696. * src/option_processing.cc
  12697. * src/prefs.h
  12698. * src/HttpResponseCommand.cc
  12699. * src/SegmentMan.{h, cc}
  12700. * src/FtpNegotiateCommand.cc
  12701. * src/HttpProxyResponseCommand.cc
  12702. * src/Request.cc
  12703. * src/HttpRequest.cc
  12704. * src/DownloadCommand.cc
  12705. * test/HttpRequestTest.cc
  12706. * test/RequestTest.cc
  12707. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12708. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12709. finished.
  12710. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12711. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12712. catching it inside the method.
  12713. When no file entry is found in a metalink without querying user
  12714. preferences, throw the exception with the error message that suggests
  12715. metalink file is probably broken.
  12716. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12717. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12718. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12719. processed.
  12720. * src/RequestGroupMan.cc (removeStoppedGroup)
  12721. Added debug message.
  12722. * src/BtPostDownloadHandler.cc
  12723. * src/MetalinkPostDownloadHandler.cc
  12724. * src/PostDownloadHandler.{h, cc}
  12725. * src/RequestGroup.cc
  12726. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12727. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12728. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12729. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12730. stops and there are any unfinished or in-progress downloads.
  12731. Added the legend of "stat".
  12732. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12733. Throw exception when chunck checksum verification fails.
  12734. * src/DownloadCommand.cc (validatePieceHash): New function.
  12735. * src/PiecedSegment.{h, cc} (clear): New function.
  12736. * src/GrowSegment.{h, cc} (clear): New function.
  12737. * src/Segment.h (clear): New function.
  12738. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12739. * test/SegmentTest.cc
  12740. * test/GrowSegmentTest.cc
  12741. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12742. Do not send referer when redirected.
  12743. * src/Request.cc (redirectUrl)
  12744. * test/RequestTest.cc
  12745. * test/HttpRequestTest.cc
  12746. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12747. Implemented BitTorrent/http/ftp integrated download.
  12748. I've rewritten lots of files and now some headers have forward
  12749. class declarations to reduce compile time.
  12750. The implementation is extremely alpha stage, I recommend to use this
  12751. for testing purpose only.
  12752. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12753. Fixed the compilation error on 64bit platform.
  12754. * test/HttpHeaderProcessorTest.cc
  12755. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12756. Merged Ross's patch that fixes compilation problem in MinGW
  12757. * test/DefaultBtProgressInfoFileTest.cc
  12758. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12759. Updated fr.po by sebone
  12760. * po/fr.po
  12761. Updated man page.
  12762. * doc/aria2c.1.txt
  12763. * Release 0.11.3
  12764. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12765. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12766. failure in Metalink.
  12767. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12768. Automatically save *.aria2 control file of http/ftp download in every
  12769. 60 seconds.
  12770. * src/AutoSaveCommand.{h, cc}: New class.
  12771. * src/TimeBasedCommand.{h, cc}: New class.
  12772. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12773. Disable parameterized URI support by default. Added -P option to
  12774. enable the feature.
  12775. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12776. * src/OptionHandlerFactory.cc
  12777. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12778. Updated Japanese translation.
  12779. * po/ja.po
  12780. Updated man page.
  12781. * doc/aria2c.1.txt
  12782. * Release 0.11.3-rc
  12783. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12784. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12785. it is successful, then renamed to *.aria2.
  12786. This prevents *.aria2 file from being truncated or corrupted when
  12787. file system becomes out of space.
  12788. * src/DefaultBtProgressInfoFile.cc (save)
  12789. * src/SegmentMan.cc (save)
  12790. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12791. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12792. Reduced the fragmentation of bitfield in http/ftp download.
  12793. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12794. * test/BitfieldManTest.cc
  12795. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12796. Added the ability to disable segmented download in .metalink.
  12797. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12798. 'url' tag.
  12799. * src/MetalinkEntry.{h, cc}
  12800. * src/RequestResource.{h, cc}
  12801. * src/MetalinkRequestInfo.cc
  12802. * src/Xml2MetalinkProcessor.cc
  12803. * test/Xml2MetalinkProcessorTest.cc
  12804. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12805. Added parameterized URI support.
  12806. * src/main.cc: -Z option added.
  12807. * src/OptionHandlerFactory.cc
  12808. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12809. * src/PStringDatum.h: New class.
  12810. * src/PStringSegment.{h,cc}: New class.
  12811. * src/PStringNumLoop.h: New class.
  12812. * src/PStringSelect.h: New class.
  12813. * src/NumberDecorator.h: New class.
  12814. * src/FixedWidthNumberDecorator.h: New class.
  12815. * src/AlphaNumberDecorator.h: New class.
  12816. * src/PStringVisitor.h: New class.
  12817. * src/PStringBuildVisitor.{h,cc}: New class.
  12818. * src/ParameterizedStringParser.{h,cc}: New class.
  12819. * src/Util.{h,cc}
  12820. (isNumber): New function.
  12821. (isLowercase): New function.
  12822. (isUppercase): New function.
  12823. (alphaToNum): New function.
  12824. * test/ParameterizedStringParserTest.cc: New class.
  12825. * test/AlphaNumberDecoratorTest.cc: New class.
  12826. * test/PStringBuildVisitorTest.cc: New class.
  12827. * test/UtilTest.cc
  12828. (testIsNumber): New function.
  12829. (testIsLowercase): New function.
  12830. (testIsUppercase): New function.
  12831. (testAlphaToNum): New function.
  12832. Added '\n' after the error message
  12833. * src/RequestInfo.h (printDownloadAbortMessage)
  12834. Added auto file renaming feature in http(s)/ftp download.
  12835. * src/main.cc: Added --auto-file-renaming command-line option.
  12836. * src/OptionHandlerFactory.cc
  12837. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12838. * src/RequestGroup.{h, cc}
  12839. (shouldCancelDownloadForSafety): Rewritten
  12840. (tryAutoFileRenaming): New function.
  12841. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12842. * src/HttpResponseCommand.cc
  12843. (executeInternal): Removed the call to RequestGroupMan::
  12844. isSameFileBeingDownloaded()
  12845. * src/FtpNegotiateCommand.cc
  12846. (recvSize): Removed the call to RequestGroupMan::
  12847. isSameFileBeingDownloaded()
  12848. * test/RequestGroupTest.cc: New class.
  12849. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12850. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12851. IO.
  12852. * src/DefaultBtProgressInfoFile.cc
  12853. * src/MetaFileUtil.cc
  12854. * src/SimpleLogger.cc
  12855. * src/SegmentMan.cc
  12856. * src/Util.cc
  12857. * src/Platform.cc
  12858. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12859. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12860. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12861. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12862. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12863. Fixed the bug that prevents file allocation is not done when
  12864. dowloading multi-torrent file.
  12865. * src/AbstractDiskWriter.cc (openFile)
  12866. Increase the maximum number of -j option from 15 to 45.
  12867. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12868. Added fr.po, thanks to Charles Landemaine.
  12869. * po/fr.po
  12870. * po/LINGUAS
  12871. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12872. gcc 3.4.4 support:
  12873. * src/DefaultBtContext.cc: int32_t -> int
  12874. * src/main.cc: int -> int32_t, int32_t -> int
  12875. * src/messageDigest.h: uint32_t -> unsigned int
  12876. * src/NameResolver.h: int32_t -> int
  12877. * src/PeerConnection.cc: int -> int32_t
  12878. * src/SpeedCalc.cc: int32_t -> int
  12879. * src/TrackerUpdateCommand.h: int -> int32_t
  12880. * src/Util.cc: int32_t -> int
  12881. * src/Util.h: int32_t -> int
  12882. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12883. * test/AnnounceListTest.cc: int -> int32_t
  12884. * test/ChunkedEncodingTest.cc: int -> int32_t
  12885. * test/DataTest.cc: int -> int32_t
  12886. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12887. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12888. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12889. * test/FeatureConfigTest.cc: int -> int32_t
  12890. * test/MetalinkEntryTest.cc: int -> int32_t
  12891. * test/MockBtRequestFactory.h: int -> int32_t
  12892. * test/MockPieceStorage.h: int -> int32_t
  12893. * test/OptionTest.cc: int -> int32_t
  12894. * test/RequestTest.cc: int -> int32_t
  12895. * test/SegmentManTest.cc: int -> int32_t
  12896. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12897. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12898. Move sleep functions to Util class:
  12899. * src/Util.cc
  12900. (sleep): New function.
  12901. (usleep): New function.
  12902. * src/DownloadCommand.cc: sleep -> Util::sleep
  12903. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12904. MinGW build enhancements. The following files are added:
  12905. * src/timegm.{c,h}
  12906. Changes to support the above new files:
  12907. * configure.ac
  12908. * src/Makefile.am
  12909. * src/a2time.h
  12910. * src/Util.cc:
  12911. * src/strptime.c: Added support for %Z option.
  12912. Fixed MinGW non-blocking bug.
  12913. * src/SocketCore.cc
  12914. * src/HttpRequestCommand.cc
  12915. Miscellenous build fixes/enhancements.
  12916. * configure.ac: Added summary report.
  12917. * src/Platform.h: Tweaked #include's.
  12918. * src/a2netcompat.h: Tweaked #include's.
  12919. * src/strptime.h: Tweaked #include's.
  12920. * src/gai_strerror.c: Tweaked #include's.
  12921. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12922. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12923. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12924. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12925. Increased the initial connection size in BitTorrent download to 40.
  12926. * src/BtRuntime.h
  12927. Added the usage message of --peer-id-prefix option.
  12928. * src/main.cc
  12929. * Release 0.11.2
  12930. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12931. MessageDigestHelper is introduced in order to simplify the use
  12932. of message digest. Removed repeated code.
  12933. The message digest algorithm is now specified by string, like "sha1",
  12934. "md5".
  12935. * src/messageDigest.{h, cc}
  12936. * src/MessageDigestHelper.{h, cc}: New class.
  12937. * src/DefaultPieceStorage.cc
  12938. * src/DefaultBtContext.{h, cc}
  12939. (computeFastSet): New function.
  12940. (setInfoHash): Added for unit testing.
  12941. (setNumPieces): Added for unit testing.
  12942. * src/DefaultBtInteractive.cc
  12943. * src/BtPieceMessage.cc
  12944. * src/Peer.cc
  12945. * src/Checksum.h
  12946. * src/message.h
  12947. * src/IteratableChecksumValidator.h
  12948. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12949. inside it.
  12950. * src/SegmentMan.{h, cc}
  12951. (checkIntegrity): Removed.
  12952. * src/IteratableChunkChecksumValidator.{h, cc}
  12953. * src/Util.h
  12954. (sha1Sum): Removed.
  12955. (simpleMessageDigest): Removed.
  12956. (fileChecksum): Removed.
  12957. (computeFastSet): Removed.
  12958. * src/ShaVisitor.cc
  12959. * src/ChunkChecksum.h
  12960. * src/DownloadCommand.cc
  12961. Removed messageDigest virtual functions.
  12962. * src/MultiDiskAdaptor.{h, cc}
  12963. * src/DiskAdaptor.h
  12964. * src/ByteArrayDiskWriter.h
  12965. * src/DiskWriter.h
  12966. * src/DiskAdaptorWriter.h
  12967. * src/AbstractSingleDiskAdaptor.{h, cc}
  12968. * src/AbstractDiskWriter.{h, cc}
  12969. Fixed comilation error when message digest is disabled.
  12970. * src/MetalinkEntry.{h, cc}
  12971. * src/MetalinkRequestInfo.cc
  12972. Removed srandom and random.
  12973. * src/SimpleRandomizer.h
  12974. Added size() virtual function to DiskAdaptor
  12975. * src/MultiDiskAdaptor.h
  12976. Fixed the bug that causes that files are not opened correctly in
  12977. multi-file torrent.
  12978. * src/TorrentRequestInfo.cc
  12979. * src/MultiDiskAdaptor.cc
  12980. Added SHA256 support
  12981. * src/messageDigest.cc
  12982. * src/Xml2MetalinkProcessor.cc
  12983. Show supported message digest algorithms
  12984. * src/main.cc
  12985. Updated contact info.
  12986. * src/main.cc
  12987. Applied Ross's patch
  12988. * src/a2netcompat.h
  12989. * src/main.cc
  12990. Fixed the bug that prevents a remote metalink from not being processed
  12991. even if '-o foo.metalink' is specified.
  12992. * src/MetalinkRequestInfo.cc
  12993. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12994. Merged Dan's patch:
  12995. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12996. Use va_copy to avoid core dump on amd64:
  12997. * src/SimpleLogger.cc
  12998. Updated contact info.
  12999. * src/main.cc
  13000. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13001. digest is not available.
  13002. * src/MetalinkEntry.h
  13003. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13004. Make a2netcompat.h include a2io.h to fix compilation error:
  13005. * src/a2netcompat.h
  13006. * src/SocketCore.cc: Removed include of a2io.h
  13007. * src/Util.cc: Removed include of a2io.h
  13008. Gather time related functions to a2time.h:
  13009. * src/a2time.h: New file.
  13010. * src/DefaultPeerStorage.cc
  13011. * src/SimpleLogger.cc
  13012. * src/Util.{h, cc}
  13013. * src/SimpleRandomizer.h
  13014. * src/TimeA2.{h,cc}
  13015. * src/DownloadCommand.cc
  13016. * src/main.cc
  13017. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13018. a2netcompat.h:
  13019. * src/NameResolver.cc
  13020. Fixed compilation error without openssl:
  13021. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13022. Added default block to suppress compiler warnings:
  13023. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13024. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13025. MinGW build enhancements. The following files are added:
  13026. * src/gai_strerror.{c,h}
  13027. * src/gettimeofday.{c,h}
  13028. Changes to support the above new files:
  13029. * configure.ac
  13030. * src/Makefile.am
  13031. * src/a2netcompat.h
  13032. * src/TimeA2.cc
  13033. * src/DefaultPeerStorage.cc
  13034. * src/NameResolver.cc: removed mingw_strerror() function.
  13035. * src/SocketCore.cc: removed mingw_strerror() function.
  13036. Miscellaneous MinGW build fixes.
  13037. * src/a2io.h: Use _lseeki64() instead of lseek()
  13038. * src/common.h
  13039. * src/DefaultFileAllocator.cc
  13040. * src/GlowFileAllocator.cc
  13041. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13042. * src/NameResolver.cc
  13043. (callback): Changed int32_t to int.
  13044. (resolve): Changed int32_t to int.
  13045. * src/Platform.cc
  13046. * src/Platform.h
  13047. * test/MultiDiskWriterTest.cc
  13048. * test/PeerMessageUtilTest.cc
  13049. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13050. Other enhancements and fixes.
  13051. * src/HttpRequestCommand.cc
  13052. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13053. * src/SocketCore.cc:
  13054. (error): New function to abstract errno/WSAGetLastError().
  13055. (errorMsg): New function to abstract errno/WSAGetLastError().
  13056. (initiateSecureConnection): Added more detailed error reporting.
  13057. * src/SocketCore.h: Added private variable blocking, to allow
  13058. proper handling of OpenSSL psuedo-errors.
  13059. * src/message.h
  13060. (EX_SSL_INIT_FAILURE)
  13061. (EX_SSL_IO_ERROR)
  13062. (EX_SSL_PROTOCOL_ERROR)
  13063. (EX_SSL_UNKNOWN_ERROR)
  13064. (EX_SSL_CONNECT_ERROR)
  13065. (EX_SOCKET_BLOCKING)
  13066. (EX_SOCKET_NONBLOCKING)
  13067. (EX_SOCKET_UNKNOWN_ERROR)
  13068. * src/Util.cc
  13069. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13070. reserved name.
  13071. (httpGMT): Fixed typo.
  13072. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13073. Merged Ross's win32 patch(manually)
  13074. In the course of merging, following files are added.
  13075. * src/strptime.{h,c}
  13076. * src/libgen.{h,c}
  13077. * src/inet_aton.{h,c}
  13078. * src/Platform.{h,cc}
  13079. * src/localtime_r.{h,c}
  13080. * src/getaddrinfo.{h,c}
  13081. I've gethered network related things, and put them to following file:
  13082. * src/a2netcompat.h
  13083. Also io related things are put to following file:
  13084. * src/a2io.h
  13085. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13086. * src/message.h
  13087. (MSG_ALLOCATION_COMPLETED)
  13088. (EX_TOO_LARGE_FILE)
  13089. (EX_SIZE_MISMATCH)
  13090. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13091. (EX_INVALID_CHUNK_CHECKSUM)
  13092. (EX_INVALID_RANGE_HEADER)
  13093. * src/FileAllocationCommand.cc
  13094. * src/HttpResponse.cc
  13095. * src/RequestGroup.cc
  13096. * src/MultiDiskAdaptor.cc
  13097. * src/OptionHandlerImpl.h
  13098. * src/HttpResponseCommand.cc
  13099. * src/FtpNegotiateCommand.cc
  13100. * src/IteratableChecksumValidator.cc
  13101. * src/SegmentMan.cc
  13102. * src/ChunkChecksumValidator.cc
  13103. Added Randomizer::getRandomNumber(long int)
  13104. * src/Randomizer.h (getRandomNumber)
  13105. * src/SimpleRandomizer.h (getRandomNumber)
  13106. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13107. * src/Util.cc (randomAlpha): Use this new function.
  13108. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13109. Converted int's to in32_t. long long int's are also converted to
  13110. int64_t
  13111. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13112. Fixed the bug that prevents cookies from being sent to the server
  13113. if the domain of cookie is FQDN and starts with ".".
  13114. * src/Cookie.cc (match)
  13115. To add the ability to change peer id.
  13116. * src/DefaultBtContext.h
  13117. (_peerIdPrefix): New variable
  13118. (setPeerIdPrefix): New function.
  13119. * src/torrentRequestInfo.cc
  13120. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13121. DefaultBtContext.
  13122. * src/main.cc (main): Added peer-id-prefix command-line option.
  13123. The usage message is not added yet.
  13124. * src/DefaultBtContext.cc
  13125. (generatePeerId): Use _peerIdPrefix.
  13126. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13127. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13128. Fixed the bug that prevents filename in content-disposition from
  13129. being retrieved when filename is not quoted.
  13130. * src/Util.cc (getContentDispositionFilename)
  13131. Fixed the bug that causes infinate loop and memory leak when file open
  13132. operation failed.
  13133. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13134. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13135. Fixed the bug that causes segfault when all URIs specified are
  13136. unsupported.
  13137. * src/RequestGroupMan.cc (getInitialCommands)
  13138. Check if RequestGroup::createNextCommand() returns empty list of
  13139. commands.
  13140. * src/RequestGroup.cc (createNextCommand)
  13141. Change log level from info to error so that users can notice that
  13142. an error occurred.
  13143. Fixed the bug that causes segfault when a zero-sized file is
  13144. downloaded.
  13145. * src/BitfieldMan.cc (isAllBitSet)
  13146. Return true if bitfieldLength is 0.
  13147. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13148. * src/main.cc
  13149. (showUsage): Added 3 usage examples for metalink download.
  13150. Replace MetalinkChunkChecksum with ChunkChecksum.
  13151. * src/MetalinkChunkChecksum.h: Removed.
  13152. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13153. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13154. * src/Xml2MetalinkProcessor.cc
  13155. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13156. * src/MetalinkRequestInfo.cc (execute)
  13157. * Release 0.11.1
  13158. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13159. Reads URIs from stdin when "-i -" is specified.
  13160. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13161. * src/UriListParser.h, src/UriListParser.cc: New class.
  13162. * src/StreamUriListParser.h: New class.
  13163. * src/FileUriListParser.h: New class.
  13164. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13165. instead of UriFileListParser.
  13166. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13167. Made console readout more readable.
  13168. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13169. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13170. Fix the bug that causes -s option not to work.
  13171. * src/main.cc (main)
  13172. * src/a2algo.h: New file.
  13173. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13174. Create directory structure specified in metalink file.
  13175. * src/RequestGroup.h, src/RequestGroup.cc
  13176. (initAndOpenFile): Create a directory to store files if it does not
  13177. exist.
  13178. (getDir): New function.
  13179. Added ETA and download speed for an individual file to readout.
  13180. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13181. * src/RequestGroup.h
  13182. (calculateDownloadSpeed): New function.
  13183. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13184. Made -S option work with metalink file and provided selective download
  13185. to metalink.
  13186. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13187. (filename): Removed.
  13188. (file): New variable.
  13189. (size): Removed.
  13190. (operator=): Updated.
  13191. (getPath): New function.
  13192. (getLength): New function.
  13193. (toFileEntry): New function.
  13194. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13195. (execute): Use toStream.
  13196. (showFileEntry): Removed.
  13197. * src/MetalinkRequestInfo.h
  13198. (targetFiles): New variable.
  13199. (setTargetFiles): New variable.
  13200. * src/MetalinkRequestInfo.cc
  13201. (execute): Added the ability to print file information included in
  13202. a metalink file.
  13203. Added selective download mode to metalink.
  13204. * src/main.cc
  13205. (showUsage): Updated to denote that -S and --select-file options are
  13206. applicable to metalink.
  13207. * src/FileEntry.h
  13208. (operator=): New function.
  13209. (getBasename): New function.
  13210. (getDirname): New function.
  13211. * src/Util.h, src/Util.cc
  13212. (toStream): New function.
  13213. * src/Xml2MetalinkProcessor.cc: Updated.
  13214. Made aria2 work with metalink with directory structure.
  13215. * src/File.h, src/File.cc
  13216. (getBasename): New function.
  13217. (getDirname): New function.
  13218. * src/RequestGroup.h, src/RequestGroup.cc
  13219. (_topDir): New variable.
  13220. (setTopDir): New function.
  13221. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13222. Rewrote HTTP header parsing with stringstream.
  13223. * src/HttpConnection.h, src/HttpConnection.cc
  13224. (HttpRequestEntry): New class.
  13225. (headerBuf): Removed.
  13226. (headerBufLength): Removed.
  13227. (outstandingHttpRequests): Now its element type is
  13228. HttpRequestEntryHandle.
  13229. (findEndOfHeader): Removed.
  13230. (receiveResponse): Rewritten.
  13231. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13232. Updated doc for -j option to notice that it should be used with -i
  13233. option.
  13234. * src/main.cc (showUsage)
  13235. Removed unused classes.
  13236. * src/RequestInfo.h
  13237. (FileInfo): Removed.
  13238. (checksum): Removed.
  13239. (fileInfo): Removed.
  13240. (setChecksum): Removed.
  13241. (getChecksum): Removed.
  13242. (getFileInfo): Removed.
  13243. Use ISO units.
  13244. * src/ConsoleDownloadEngine.cc
  13245. * src/TorrentConsoleDownloadEngine.cc
  13246. * src/Util.cc (abbrevSize)
  13247. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13248. Added the default listening ports to the help message.
  13249. * src/main.cc (showUsage)
  13250. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13251. Reduce the number of calls to gettimeofday to lower CPU load.
  13252. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13253. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13254. * src/Peer.h (calculateUploadSpeed): New function.
  13255. (calculateDownloadSpeed): New function.
  13256. * src/DefaultPeerStorage.cc
  13257. (CalculateStat): Added _now variable.
  13258. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13259. and Peer::calculateUploadSpeed(const struct timeval&)
  13260. Drop connection if no request or piece message is exchanged in
  13261. a certain interval.
  13262. * src/DefaultBtInteractive.h
  13263. (btRuntime): New variable.
  13264. (inactiveCheckPoint): New variable.
  13265. (checkActiveInteraction): New function.
  13266. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13267. request or piece message is received.
  13268. (checkActiveInteraction): New function.
  13269. (doInteractionProcessing): Call checkActiveInteraction.
  13270. Fixed the bug that causes remote Metalink and Torrent files are not
  13271. processed.
  13272. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13273. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13274. Changed format of log file.
  13275. * src/SimpleLogger.cc
  13276. * Release 0.11.0
  13277. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13278. * src/AbstractCommand.cc
  13279. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13280. MSG_MAX_TRY from error to info.
  13281. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13282. * src/message.h
  13283. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13284. (MSG_DOWNLOAD_ABORTED): Added %s.
  13285. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13286. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13287. * src/PeerAbstractCommand.cc
  13288. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13289. * src/Request.h
  13290. (cookieBox): Made ShardHandle.
  13291. * src/RequestGroup.h, src/RequestGroup.cc
  13292. (createNextCommandWithAdj): New function.
  13293. * src/FileAllocationCommand.cc
  13294. (executeInternal): Use createNextCommandWithAdj().
  13295. * src/CheckIntegrityCommand.cc
  13296. (executeInternal): Use createNextCommandWithAdj().
  13297. Added --load-cookies command-option.
  13298. * src/OptionHandlerFactory.cc
  13299. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13300. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13301. Now aria2 can handle cookie's expiration date.
  13302. * src/Cookie.h (expires): Changed its type to time_t.
  13303. * src/main.cc: Added --load-cookies command-line option.
  13304. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13305. * src/Util.h, src/Util.cc (httpGMT): New function.
  13306. * src/Request.cc (Request): Initialize cookieBox using
  13307. CookieBoxFactory.
  13308. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13309. * src/CookieParser.h, src/CookieParser.cc: New class.
  13310. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13311. * src/HttpResponseCommand.cc
  13312. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13313. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13314. download.
  13315. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13316. Added -j command-line option.
  13317. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13318. * src/main.cc
  13319. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13320. Rewritten using stringstream.
  13321. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13322. Rewritten using stringstream.
  13323. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13324. Make download size shown in MB, KB.
  13325. * src/ConsoleDownloadEngine.h (sendStatistics)
  13326. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13327. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13328. Accept incoming connections if download rate is low.
  13329. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13330. (_lowestSpeedLimit): New variable.
  13331. (setLowestSpeedLimit): New function.
  13332. (execute): Accept incoming connections if download rate is low.
  13333. MAX_PEERS is ignored in this case.
  13334. Disable PREF_OUT in multiple concurrent download:
  13335. * src/RequestGroup.h, src/RequestGroup.cc
  13336. (setUserDefinedFilename): New function.
  13337. * src/DownloadEngineFactory.cc
  13338. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13339. concurrent download.
  13340. * src/DefaultSegmentManFactory.cc
  13341. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13342. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13343. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13344. Added its overloaded method.
  13345. * src/RequestGroup.h
  13346. (_numConcurrentCommand): New variable.
  13347. (setNumConcurrentCommand): New function.
  13348. * src/RequestGroup.cc
  13349. Abort download if same file is being downloaded concurrently.
  13350. * src/RequestGroup.h, src/RequestGroupMan.cc
  13351. (isSameFileBeingDownloaded): New function.
  13352. * src/HttpResponseCommand.cc (executeInternal)
  13353. * src/FtpNegotiateCommand.cc (recvSize)
  13354. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13355. * main.cc: Added help message for -i option.
  13356. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13357. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13358. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13359. * src/MetalinkEntry.h
  13360. (checksum): Changed to ChecksumHandle
  13361. * src/MetalinkRequestInfo.cc
  13362. (checksum): Changed to ChecksumHandle
  13363. * src/File.cc
  13364. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13365. * src/common.h
  13366. (DIR_OPEN_MODE): New definition
  13367. * src/RequestGroup.cc
  13368. (prepareForNextAction): Added an argument.
  13369. * src/message.h
  13370. (MSG_GOOD_CHECKSUM): New definition
  13371. (MSG_BAD_CHECKSUM): New definition
  13372. * src/HttpResponseCommand.cc
  13373. (handleDefaultEncoding): Continue download sequence in new
  13374. non-segmented download.
  13375. * src/FileAllocationEntry.h
  13376. (_nextDownloadCommand): New variable.
  13377. * src/DownloadCommand.cc
  13378. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13379. available.
  13380. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13381. * src/IteratableChecksumValidator.h,
  13382. src/IteratableChecksumValidator.cc: New class.
  13383. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13384. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13385. Change file mode to 666:
  13386. * src/common.h (OPEN_MODE): New definition.
  13387. * src/File.cc
  13388. * src/Util.cc
  13389. * src/Directry.cc
  13390. * src/AbstractDiskWriter.cc
  13391. Change the level of log message "download aborted" to debug:
  13392. * src/PeerAbstractCommand.cc (execute)
  13393. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13394. * src/TrackerWatcherCommand.cc
  13395. (createCommand): Sleep some seconds after request failed.
  13396. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13397. then abort tracker request.
  13398. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13399. * Added the simultaneous download feature.
  13400. * src/main.cc: Print "Exception caught: " when exception is caught.
  13401. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13402. * src/ActivePeerConnectionCommand.cc
  13403. * src/PeerInteractionCommand.cc
  13404. * src/BtRuntime.h
  13405. (cuidCounter): Removed.
  13406. (getNewCuid): Removed.
  13407. * src/DownloadEngineFactory.cc
  13408. * src/PeerListenCommand.cc
  13409. * src/TrackerUpdateCommand.cc
  13410. * src/PeerInitiateConnectionCommand.cc
  13411. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13412. * src/PeerAbstractCommand.cc
  13413. (onAbort): Call PeerStorage::returnPeer()
  13414. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13415. (incomingPeers): New variable.
  13416. (addIncomingPeer): New function.
  13417. (returnPeer): New function.
  13418. (onErasingPeer): New function.
  13419. (addPeer): push_back -> push_front
  13420. (getActivePeers): Rewritten.
  13421. (calculateStat): Rewritten.
  13422. * src/PeerStorage.h
  13423. (TransferStat::copy): New function.
  13424. (TransferStat::TransferStat): New function.
  13425. (TransferStat::operator=): New function.
  13426. (addIncomingPeer): New function.
  13427. (returnPeer): New function.
  13428. * src/PeerListenCommand.cc
  13429. (execute): Use PeerStorage::addIncomingPeer() instead of
  13430. Peer::addPeer().
  13431. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13432. Connect to a peer actively when download speed is lower than specified
  13433. speed in torrent download:
  13434. * src/ActivePeerConnectionCommand.h: New class.
  13435. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13436. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13437. * src/main.cc: Fixed the bug that prevents download if .netrc
  13438. doesn't exist.
  13439. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13440. To cache resolved hostname:
  13441. * src/AbstractCommand.h, src/AbstractCommand.cc
  13442. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13443. Added dns cache.
  13444. * src/FtpInitiateConnectionCommand.cc
  13445. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13446. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13447. NameResolver working without ares.
  13448. * src/TorrentRequestInfo.cc
  13449. (execute): Don't cache dns in torrent download.
  13450. * src/HttpInitiateConnectionCommand.cc
  13451. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13452. * src/DNSCache.h: New class.
  13453. * src/UrlRequestInfo.cc
  13454. (execute): Use dns cache.
  13455. In http request, suppress port number in http request header if port
  13456. is 80 or 443:
  13457. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13458. request header if port is 80 or 443.
  13459. (createProxyRequest): Allways send port number.
  13460. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13461. To add the command-line option which disables netrc support:
  13462. * src/OptionHandlerFactory.cc
  13463. (createOptionHandlers): Added PREF_NO_NETRC.
  13464. * src/main.cc: Added -n option.
  13465. * src/prefs.h (PREF_NO_NETRC): New definition.
  13466. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13467. V_TRUE.
  13468. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13469. is V_FALSE. This may get configurable in the future release.
  13470. To clear peer's error status by time basis:
  13471. * src/PeerAbstractCommand.cc
  13472. (onAbort): Call Peer::startBadCondition().
  13473. * src/Peer.h, src/Peer.cc
  13474. (error): Removed.
  13475. (_badConditionStartTime): New variable.
  13476. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13477. (startBadCondition): New function.
  13478. (isGood): New function.
  13479. * src/DefaultPeerStorage.cc
  13480. (addPeer): Use Peer::isGood().
  13481. (FindFinePeer): Use Peer::isGood().
  13482. Always include port number in http request header:
  13483. * src/HttpRequest.cc (getHostText): Always include port number in
  13484. http request header.
  13485. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13486. To the ability to read options from a config file:
  13487. * src/main.cc: Command-line parameter validation is delegated to
  13488. OptionHandler class.
  13489. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13490. * src/Option.h, src/Option.cc (clear): New function.
  13491. * src/OptionParser.h, src/OptionParser.cc: New class.
  13492. * src/OptionHandler.h: New class.
  13493. * src/NameMatchOptionHandler.h: New class.
  13494. * src/OptionHandlerImpl.h: New classes.
  13495. * src/prefs.h: '_' -> '-'
  13496. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13497. (FTP_PASV): New definition.
  13498. * src/Util.h, src/Util.cc (getRealSize): New function.
  13499. To disable netrc support if .netrc file does not have correct
  13500. permissions:
  13501. * src/File.h, src/File.cc (mode): New function.
  13502. To prevent confidential information to be logged:
  13503. * src/HttpConnection.h, src/HttpConnection.cc
  13504. (eraseConfidentialInfo): New function.
  13505. (sendRequest): Call eraseConfidentialInfo().
  13506. (sendProxyRequest): Call eraseConfidentialInfo().
  13507. * src/main.cc: Validate permissions of .netrc file.
  13508. To add --user-agent command-line option:
  13509. * src/main.cc: Added new command line option: --user-agent
  13510. * src/prefs.h (PREF_USER_AGENT): New definition.
  13511. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13512. parameter to HttpRequest object.
  13513. * src/AbstractProxyRequestCommand.cc
  13514. (executeInternal): Set user-agent option parameter to HttpRequest
  13515. object.
  13516. Marged the patches from Dan Fandrich.
  13517. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13518. Use filename and size from Metalink file instead of sending HEAD
  13519. request:
  13520. * src/UrlRequestInfo.h
  13521. (_filename): New variable.
  13522. (_totalLength): New variable.
  13523. (setTotalLength): New variable.
  13524. (setFilename): New variable.
  13525. * src/MetalinkRequestInfo.cc
  13526. (execute): Set filename and size to UrlRequestInfo
  13527. * src/UrlRequestInfo.cc
  13528. (execute): Use filename and size from Metalink instead of seding
  13529. HEAD request to servers.
  13530. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13531. To add the ability to resume downloading a partially downloaded file
  13532. which is downloaded from the beginning:
  13533. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13534. takes this role.
  13535. * src/main.cc: Added -c option.
  13536. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13537. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13538. * src/prefs.h (PREF_CONTINUE): New definition.
  13539. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13540. * src/DefaultDiskWriter.cc
  13541. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13542. * src/AbstractDiskWriter.h
  13543. (glowFileAllocator): New variable.
  13544. * src/AbstractDiskWriter.cc
  13545. (openExistingFile): Now preallocate file space from the end of the
  13546. existing file if totalLength argument is specified and grater than 0.
  13547. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13548. to download exists in local, continue the download of the file.
  13549. --allow-overwrite=true is assumed in this context.
  13550. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13551. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13552. Throw exception if --check-integrity=true is specified but chunk
  13553. checksums are not provided:
  13554. * src/UrlRequestInfo.cc
  13555. Do not print URLs to stdout:
  13556. * src/UrlRequestInfo.cc
  13557. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13558. * src/Request.h: Use AuthResolver to get authentication information.
  13559. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13560. set to RequestFactory object.
  13561. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13562. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13563. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13564. create Request object.
  13565. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13566. To integrate Netrc into exsiting classes:
  13567. * src/Request.h
  13568. (_userDefinedAuthConfig): New variable.
  13569. (findNetrcAuthenticator): New function.
  13570. (segment): Removed.
  13571. (setUserDefinedAuthConfig): New function.
  13572. (resolveHttpAuthConfigItem): New function.
  13573. (resolveFtpAuthConfigItem): New function.
  13574. (resolveHttpProxyAuthConfigItem): New function.
  13575. * src/HttpRequest.h
  13576. (authConfig): Removed.
  13577. (proxyAuthConfig): Removed.
  13578. (setAuthConfig): Removed.
  13579. (setProxyAuthConfig): Removed.
  13580. * src/UrlRequest.h
  13581. (getHeadResult): Added a parameter: authConfigHandle
  13582. * src/common.h
  13583. (SingletonHolder.h): New include.
  13584. * src/main.cc
  13585. (Netrc.h): New include.
  13586. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13587. Added initial value of PREF_NETRC_PATH.
  13588. Added the initialization of netrc.
  13589. * src/AuthConfig.h: New class.
  13590. * src/prefs.h
  13591. (PREF_NETRC_PATH): New definition.
  13592. * src/HttpAuthConfig.h: Removed.
  13593. * src/Netrc.cc
  13594. (getRequiredNextToken): New function.
  13595. (skipMacdef): New function.
  13596. (parse): Rewritten.
  13597. * src/Netrc.h
  13598. (getRequiredNextToken): New function.
  13599. (skipMacdef): New function.
  13600. * src/Util.h, src/Util.cc
  13601. (getHomeDir): New function.
  13602. * src/TrackerWatcherComand.cc
  13603. (createRequestCommand): Use AuthConfig.
  13604. * src/FtpConnection.cc
  13605. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13606. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13607. * src/Request.cc
  13608. (findNetrcAuthenticator): New function.
  13609. (resolveHttpAuthConfigItem): New function.
  13610. (resolveFtpAuthConfigItem): New function.
  13611. (resolveHttpProxyAuthConfigItem): New function.
  13612. * src/UrlRequestInfo.cc: Use AuthConfig.
  13613. * src/HttpRequest.cc
  13614. (createRequest): Use authConfig.
  13615. (getProxyAuthString): Use authConfig.
  13616. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13617. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13618. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13619. To reduce overhead to find commands whose socket is either
  13620. readable or writable in the download engine loop:
  13621. * src/Command.h, src/Command.cc
  13622. (STATUS): New enum.
  13623. (status): New variable.
  13624. (statusMatch): New function.
  13625. (setStatusActive): New function.
  13626. (setStatusInactive): New function.
  13627. * src/DownloadEngine.h, src/DownloadEngine.cc
  13628. (executeCommand): New function.
  13629. (run): Simplified.
  13630. (waitData): Call Command::setStatusActive() when command's socket is
  13631. readable or writable.
  13632. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13633. To handle Segment as SegmentHandle:
  13634. * src/AbstractCommand.cc (execute): Rewritten.
  13635. * src/SegmentMan.h: Segment -> SegmentHandle
  13636. Introducded HttpResponse class, HttpRequest class to improve code
  13637. extensiveness and make it clear:
  13638. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13639. HttpResponse class.
  13640. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13641. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13642. * src/HttpConnection.cc: Contruction of http request were moved to
  13643. HttpRequest class.
  13644. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13645. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13646. * src/HttpAuthConfig.h: New class.
  13647. * src/Range.h: New class.
  13648. To make FtpTunnel{Request, Response}Command and
  13649. HttpProxy{Request, Response}Command derived from
  13650. AbstractProxy{Request, Response}Command:
  13651. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13652. Derived from AbstractProxyRequestCommand class.
  13653. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13654. Derived from AbstractProxyResponseCommand class.
  13655. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13656. Derived from AbstractProxyRequestCommand class.
  13657. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13658. Derived from AbstractProxyResponseCommand class.
  13659. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13660. : New class.
  13661. * src/AbstractProxyResponseCommand.h,
  13662. src/AbstractProxyResponseCommand.cc: New class.
  13663. To add netrc support:
  13664. * src/Netrc.h, src/Netrc.cc: New class.
  13665. * src/Util.h, src/Util.cc (split): New function.
  13666. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13667. "Content-Range" header instead of "Range" header.
  13668. * src/HttpHeader.h
  13669. (getStatus): Removed.
  13670. (setStatus): Removed.
  13671. * src/Segment.h
  13672. (getPositionToWrite): New function.
  13673. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13674. * src/HttpHeader.h
  13675. (Range.h): New include.
  13676. (status): New variable.
  13677. (HttpHeader): Initialized status with 0.
  13678. (getStatus): New function.
  13679. (setStatus): New function.
  13680. (getRange): New function.
  13681. (HttpHeaderHandle): New function.
  13682. * src/HttpHeader.cc
  13683. (getRange): New function.
  13684. * src/Request.h
  13685. (RequestWeakHandle): New definition.
  13686. * src/HttpConnection.h
  13687. (HttpConnectionHandle): New type definition.
  13688. * src/HttpConnection.cc
  13689. (receiveResponse): Set HTTP status to headers.
  13690. * src/main.cc
  13691. (showUsage): Fixed typo.
  13692. * src/Segment.h
  13693. (SegmentHandle): New type definition.
  13694. * src/BitfieldMan.h
  13695. (getMissingUnusedLength): New function.
  13696. * src/BitfieldMan.cc
  13697. (getMissingUnusedLength): New function.
  13698. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13699. To fix static initialization order problem:
  13700. * src/BitfieldManFactory.h
  13701. (defaultRandomizer): Removed.
  13702. (factory): New variable.
  13703. (getNewFactory): Removed.
  13704. (getFactoryInstance): New function.
  13705. (setDefaultRandomizer): Rewritten.
  13706. (getDefaultRandomizer): Rewritten.
  13707. * src/BitfieldManFactory.cc
  13708. (defaultRandomizer): Removed.
  13709. (factory): Initialized to 0.
  13710. (BitfieldManFactory): Initialized randomizer to 0.
  13711. * src/DefaultPieceStorage.cc
  13712. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13713. * src/Peer.cc
  13714. (Peer): getNewFactory() -> getFactoryInstance()
  13715. * src/SegmentMan.cc
  13716. (initBitfield): getNewFactory() -> getFactoryInstance()
  13717. * src/Piece.cc
  13718. (Piece): getNewFactory() -> getFactoryInstance()
  13719. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13720. To fix the bug that causes crash on Max OS X:
  13721. * src/SimpleRandomizer.h
  13722. (getInstance): Create new instance if the static variable is null.
  13723. * src/SimpleRandomizer.cc
  13724. (randomizer): Initialized to 0.
  13725. * src/BitfieldManFactory.h
  13726. (getNewFactory): Removed the call to setRandomizer().
  13727. To fix the miscalculation of the range of checksum:
  13728. * src/BitfieldMan.h
  13729. (isBitSetOffsetRange): New function.
  13730. * src/BitfieldMan.cc
  13731. (isBitSetOffsetRange): New function.
  13732. * src/SegmentMan.cc
  13733. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13734. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13735. * Release 0.10.1
  13736. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13737. To lower CPU usage in BitTorrent download when --max-upload-limit
  13738. command-line option specified:
  13739. * src/DefaultBtMessageDispatcher.cc
  13740. (sendMessages): Calculate uploading speed only when current message
  13741. is uploading data and is not sent yet.
  13742. * src/DefaultPeerStorage.h
  13743. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13744. * src/HttpResponseCommand.cc
  13745. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13746. This fixes compile error in Soralis 10.
  13747. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13748. To fix segfault in Metalink download:
  13749. * src/UrlRequestInfo.h
  13750. (filename): Removed.
  13751. (totalLength): Removed.
  13752. (setTotalLength): Removed.
  13753. (setFilename): Removed.
  13754. * src/MetalinkRequestInfo.cc
  13755. (execute): Do not set filename and totalLength to reqInfo.
  13756. Set chunk checksum to reqInfo if it is not null.
  13757. * src/HttpResponseCommand.cc
  13758. (executeInternal): Fixed filename in log.
  13759. (handleDefaultEncoding): Removed the call to initBitfield() and
  13760. markAllPiecesDone().
  13761. (handleOtherEncoding): Added HEAD method handling.
  13762. * src/FtpNegotiateCommand.cc
  13763. (executeInternal): Added SEQ_HEAD_OK handling.
  13764. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13765. return false.
  13766. * src/FtpNegotiateCommand.h
  13767. (SEQ_HEAD_OK): New definition.
  13768. * src/SegmentMan.cc
  13769. (initBitfield): Delete bitfield.
  13770. (isChunkChecksumValidationReady): Fixed the condition.
  13771. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13772. works fine.
  13773. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13774. * src/Xml2MetalinkProcessor.h
  13775. (xpathExists): New function.
  13776. * src/Xml2MetalinkProcessor.cc
  13777. (xpathExists): New function.
  13778. Not to send HEAD request if filename and size are available in Metalink
  13779. file:
  13780. * src/UrlRequestInfo.h
  13781. (filename): New variable.
  13782. (totalLength): New variable.
  13783. (setTotalLength): New function.
  13784. (setFilename): New function.
  13785. * src/MetalinkRequestInfo.cc
  13786. (execute): Set filename and size to UrlRequestInfo.
  13787. * src/MetalinkEntry.cc
  13788. (MetalinkEntry): Initialize size with 0.
  13789. * src/UrlRequestInfo.cc
  13790. (execute): Set filename and size to SegmentMan.
  13791. Not to download rest of the files after selected files are downloaded
  13792. in BitTorrent:
  13793. * src/PieceStorage.h
  13794. (allDownloadFinished): New function.
  13795. * src/DefaultBtAnnounce.cc
  13796. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13797. downloadFinished.
  13798. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13799. * src/DefaultPieceStorage.cc
  13800. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13801. Commented out the call to finishSelectiveDownloadingMode().
  13802. (downloadFinished): Call isFilteredAllBitSet() instead of
  13803. isAllBitSet().
  13804. (allDownloadFinished): New function.
  13805. * src/DefaultBtInteractive.cc
  13806. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13807. downloadFinished().
  13808. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13809. * src/TorrentDownloadEngine.cc
  13810. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13811. * src/BitfieldMan.h
  13812. (isFilteredAllBitSet): New function.
  13813. * src/ShareRatioSeedCriteria.h
  13814. (PieceStorage.h): New include.
  13815. (pieceStorage): New variable.
  13816. (evaluate):
  13817. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13818. * src/BitfieldMan.cc
  13819. (isFilteredAllBitSet): New function.
  13820. (isAllBitSet): Filter is not took into account.
  13821. Rename --force-truncate as --allow-overwrite:
  13822. * src/TorrentRequestInfo.cc
  13823. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13824. * src/main.cc
  13825. (showUsage): --force-truncate -> --allow-overwrite
  13826. * src/message.h
  13827. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13828. * src/prefs.h
  13829. (PREF_FORCE_TRUNCATE): Removed.
  13830. (PREF_ALLOW_OVERWRITE): New definition.
  13831. * src/SegmentMan.cc
  13832. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13833. * src/MetalinkRequestInfo.cc
  13834. (execute): Queueing message are now logged in info level.
  13835. * src/common.h
  13836. (LONG_LONG_MAX): Removed.
  13837. (LONG_LONG_MIN): Removed.
  13838. * src/HttpResponseCommand.cc
  13839. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13840. * src/FtpNegotiateCommand.cc
  13841. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13842. * src/main.cc
  13843. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13844. command-line option.
  13845. (main): Added --check-integriy and --realtime-chunk-checksum
  13846. command-line option.
  13847. --force-truncate -> --allow-overwrite
  13848. Set initial value of --check-integrity option to false.
  13849. Don't show usage when error occurs while persing command-line options.
  13850. Removed deprecated --upload-limit option.
  13851. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13852. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13853. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13854. * src/BtAllowedFastMessage.cc:
  13855. * src/BtBitfieldMessage.cc
  13856. * src/BtCancelMessage.cc
  13857. * src/BtChokeMessage.cc
  13858. * src/BtHaveAllMessage.cc
  13859. * src/BtHaveMessage.cc
  13860. * src/BtHaveNoneMessage.cc
  13861. * src/BtInterestedMessage.cc
  13862. * src/BtNotInterestedMessage.cc
  13863. * src/BtPieceMessage.cc
  13864. * src/BtPortMessage.cc
  13865. * src/BtRejectMessage.cc
  13866. * src/BtRequestMessage.cc
  13867. * src/BtSuggestPieceMessage.cc
  13868. * src/BtUnchokeMessage.cc
  13869. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13870. files are affected.
  13871. * src/ChunkChecksumValidator.cc
  13872. * src/SegmentMan.cc
  13873. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13874. To add chunk checksum validation:
  13875. * src/MetalinkEntry.h
  13876. (MetalinkChunkChecksum.h): New include.
  13877. (chunkChecksum): New variable.
  13878. * src/Request.h
  13879. (method): New variable.
  13880. (setMethod): New function.
  13881. (getMethod): New function.
  13882. (METHOD_GET): New static constant.
  13883. (METHOD_HEAD): New static constant.
  13884. * src/Xml2MetalinkProcessor.h
  13885. (getPieceHash): New function.
  13886. * src/PieceStorage.h
  13887. (markAllPiecesDone): New function.
  13888. (checkIntegrity): New function.
  13889. * src/FileAllocator.h
  13890. (NullFileAllocationMonitor.h): New include.
  13891. (FileAllocator): Initialize fileAllocationMonitor with new
  13892. NullFileAllocationMonitor().
  13893. * src/MultiDiskAdaptor.h
  13894. (messageDigest.h): Remove include.
  13895. (ctx): Removed.
  13896. (hashUpdate): Added ctx.
  13897. (MultiDiskAdaptor): Removed ctx.
  13898. (sha1Sum): Renamed as messageDigest.
  13899. (messageDigest): New function.
  13900. * src/UrlRequestInfo.h
  13901. (HeadResult): New class.
  13902. (digestAlgo): New variable.
  13903. (chunkChecksumLength): New variable.
  13904. (chunkChecksums): New variable.
  13905. (getHeadResult): New function.
  13906. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13907. (setDigestAlgo): New function.
  13908. (setChunkChecksumLength): New function.
  13909. (setChunkChecksums): New function.
  13910. * src/DefaultPieceStorage.cc
  13911. (DiskAdaptorWriter.h): New include.
  13912. (ChunkChecksumValidator.h): New include.
  13913. (markAllPiecesDone): New function.
  13914. (checkIntegrity): New function.
  13915. * src/DefaultBtContext.h
  13916. (getPieceHashes): New function.
  13917. * src/TorrentRequestInfo.cc
  13918. (execute): Try to validate chunk checksum if file already exists and
  13919. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13920. * src/messageDigest.h
  13921. (~MessageDigestContext): Added digestFree().
  13922. * src/MetalinkRequestInfo.cc
  13923. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13924. * src/DiskAdaptor.h
  13925. (messageDigest.h): New include.
  13926. (sha1Sum): Renamed as messageDigest.
  13927. (messageDigest): New function.
  13928. * src/DownloadCommand.h
  13929. (PeerStat.h): New include.
  13930. (maxDownloadSpeedLimit): New variable.
  13931. (startupIdleTime): New variable.
  13932. (lowestDownloadSpeedLimit): New variable.
  13933. (peerStat): New variable.
  13934. (setMaxDownloadSpeedLimit): New function.
  13935. (setStartupIdleTime): New function.
  13936. (setLowestDownloadSPeedLimit): New function.
  13937. * src/BtContext.h
  13938. (getPieceHashes): New function.
  13939. * src/main.cc
  13940. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13941. option to true for testing purpose.
  13942. * src/BtPieceMessage.cc
  13943. (checkPieceHash): Use messageDigest
  13944. * src/DownloadEngine.cc
  13945. (SetDescriptor): Removed.
  13946. (AccumulateActiveCommand): Removed.
  13947. (waitData): Rewritten.
  13948. (updateFdSet): Rewritten.
  13949. * src/MultiDiskAdaptor.cc
  13950. (hashUpdate): Added ctx.
  13951. (sha1Sum): Renamed as messageDigest.
  13952. (messageDigest): New function.
  13953. * src/BitfieldMan.h
  13954. (isBitRangeSet): New function.
  13955. (unsetBitRange): New function.
  13956. * src/ByteArrayDiskWriter.h
  13957. (sha1Sum): Renamed as messageDigest.
  13958. (messageDigest): New function.
  13959. * src/ConsoleDownloadEngine.cc
  13960. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13961. * src/DiskWriter.h
  13962. (messageDigest.h): New include.
  13963. (sha1Sum): Renamed as messageDigest.
  13964. (messageDigest): New function.
  13965. * src/ChunkChecksumValidator.h: New class.
  13966. * src/DiskAdaptorWriter.h: New class.
  13967. * src/prefs.h
  13968. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13969. (PREF_CHECK_INTEGRITY): New definition.
  13970. * src/HttpResponseCommand.cc
  13971. (handleDefaultEncoding): Added method "HEAD" handling.
  13972. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13973. (handleOtherEncoding):
  13974. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13975. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13976. startupIdleTime, lowestDownloadSpeedLimit to command.
  13977. * src/SegmentMan.h
  13978. (getSegmentEntryByIndex): New function.
  13979. (getSegmentEntryByCuid): New function.
  13980. (getSegmentEntryIteratorByCuid): New function.
  13981. (diskWriter): DiskWriter -> DiskWriterHandle
  13982. (pieceHashes): New variable.
  13983. (chunkHashLength): New variable.
  13984. (digestAlgo): New variable.
  13985. (FindPeerStat): Removed.
  13986. (getPeerStat): Rewritten.
  13987. (markAllPiecesDone): New function.
  13988. (checkIntegrity): New function.
  13989. (tryChunkChecksumValidation): New function.
  13990. (isChunkChecksumValidationReady): New function.
  13991. * src/BitfieldMan.cc
  13992. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13993. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13994. blocks to 0.
  13995. (isBitRangeSet): New function.
  13996. (unsetBitRange): New function.
  13997. * src/FtpNegotiateCommand.cc
  13998. (executeInternal): Set maxDownloadSpeedLimit,
  13999. startupIdleTime, lowestDownloadSpeedLimit to command.
  14000. (recvSize): Added method "HEAD" handling.
  14001. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14002. * src/AbstractSingleDiskAdaptor.cc
  14003. (sha1Sum): Renamed as messageDigest.
  14004. (messageDigest): New function.
  14005. * src/AbstractSingleDiskAdaptor.h
  14006. (sha1Sum): Renamed as messageDigest.
  14007. (messageDigest): New function.
  14008. * src/Util.h
  14009. (indexRange): New function.
  14010. * src/MetalinkEntry.cc
  14011. (MetalinkEntry): Initialized chunkChecksum to 0.
  14012. * src/ShaVisitor.cc
  14013. (~ShaVisitor): Removed the call to ctx.digestFree().
  14014. * src/SegmentMan.cc
  14015. (ChunkChecksumValidator.h): New include.
  14016. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14017. to DIGEST_ALGO_SHA1.
  14018. (~SegmentMan): Removed diskWriter.
  14019. (FindSegmentEntryByIndex): Removed.
  14020. (FindSegmentEntryByCuid): Removed.
  14021. (checkoutSegment): Rewritten.
  14022. (findSlowerSegmentEntry): Rewritten.
  14023. (getSegment): Rewritten.
  14024. (updateSegment): Rewritten.
  14025. (completeSegment): Rewritten.
  14026. (markAllPiecesDone): New function.
  14027. (checkIntegrity): New function.
  14028. (isChunkChecksumValidationReady): New function.
  14029. (tryChunkChecksumValidation): New function.
  14030. * src/Xml2MetalinkProcessor.cc
  14031. (getEntry): Get size and set it to entry.
  14032. Get chunk checksum and set it to entry.
  14033. (getPieceHash): New function.
  14034. * src/Util.cc
  14035. (sha1Sum): Removed ctx.digestFree()
  14036. (fileChecksum): Removed ctx.digestFree()
  14037. (indexRange): New function.
  14038. * src/Request.cc
  14039. (METHOD_GET): New variable.
  14040. (METHOD_HEAD): New variable.
  14041. (Request): Added method.
  14042. * src/UrlRequestInfo.cc
  14043. (FatalException.h): New include.
  14044. (message.h): New include.
  14045. (operator<<): Added operator<< for class HeadResult.
  14046. (getHeadResult): New function.
  14047. (execute): Get filename and size in separate download engine.
  14048. * src/ChunkChecksumValidator.cc: New class.
  14049. * src/DownloadCommand.cc:
  14050. (DownloadCommand): Added peerStat.
  14051. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14052. the value from Option.
  14053. The buffer size is now 16KB.
  14054. Use peerStat member instead of getting it from SegmentMan.
  14055. Use startupIdleTime member instead of gettingit from Option.
  14056. Added chunk checksum validation.
  14057. * src/AbstractDiskWriter.cc
  14058. (AbstractDiskWriter): Removed ctx.
  14059. (~AbstractDiskWriter): Removed ctx.digestFree()
  14060. (writeDataInternal): Returns the return value of write.
  14061. (readDataInternal): Returns the return value of read.
  14062. (sha1Sum): Renamed as messageDigest
  14063. (messageDigest): New function.
  14064. * src/AbstractDiwkWriter.h
  14065. (messageDigest.h): Removed include.
  14066. (ctx): Removed.
  14067. (sha1Sum): Renamed as messageDigest
  14068. (messageDigest): New function.
  14069. * src/DefaultPieceStorage.h
  14070. (markAllPiecesDone): New function.
  14071. (checkIntegrity): New function.
  14072. * src/NullFileAllocationMonitor.h: New class.
  14073. * src/MetalinkChunkChecksum.h: New class.
  14074. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14075. To decrease CPU usage in bittorrent download, calculation results in
  14076. BitfieldMan were cached and realtime fetching PeerObject was removed
  14077. with WeakHandle introduced. Option values are set to the objects
  14078. by setter before download begins.
  14079. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14080. * src/DefaultBtRequestFactory.h
  14081. (dispatcher): BtMessageDispatcherHandle ->
  14082. BtMessageDispatcherWeakHandle.
  14083. (messageFactory): New variable.
  14084. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14085. BtMessageDispatcherWeakHandle.
  14086. (setBtMessageFactory): New function.
  14087. * src/DefaultBtMessageDispatcher.cc:
  14088. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14089. from Option.
  14090. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14091. feating the value from Option.
  14092. Use messageFactory member.
  14093. * src/PeerInteractionCommand.cc
  14094. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14095. Add reverse dependencies to factory object.
  14096. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14097. dispatcher.
  14098. Set messageFactory to receiver.
  14099. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14100. btInteractive.
  14101. Set receiver to peerObject.
  14102. Set maxDownloadSpeedLimit to this.
  14103. (executeInternal): Use maxDownloadSpeedLimit member.
  14104. * src/BtChokeMessage.cc
  14105. (doReceivedAction): Use dispatcher, requestFactory member.
  14106. (onSendComplete): Use dispatcher member.
  14107. * src/PeerInteractionCommand.h
  14108. (maxDownloadSpeedLimit): New variable.
  14109. * src/DefaultBtMessageReceiver.h
  14110. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14111. (dispatcher):
  14112. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14113. (messageFactory): New variable.
  14114. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14115. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14116. (setDispatcher):
  14117. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14118. (setBtMessageFactory): New function.
  14119. * src/DefaultBtInteractive.cc
  14120. (initiateHandshake): Use messageFactory member.
  14121. (addBitfieldMessageToQueue): Use messageFactory member.
  14122. (addAllowedFastMessageToQueue): Use messageFactory member.
  14123. (decideChoking): Use messageFactory member.
  14124. (checkHave): Use messageFactory member.
  14125. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14126. (receiveMessages): Use maxDownloadSpeedLimit member.
  14127. (decideInterest): Use messageFactory member.
  14128. * src/BtRequestMessage.cc
  14129. (doReceivedAction): Use messageFactory, dispatcher member.
  14130. (onQueued): Use dispatcher member.
  14131. * src/BtPieceMessage.cc
  14132. (doReceivedAction): Use dispatcher member.
  14133. (send): Use peerConnection member.
  14134. (onWrongPiece): Use requestFactory member.
  14135. (handleChokingEvent): Use messageFactory, dispatcher member.
  14136. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14137. * src/BtMessageDispatcher.h
  14138. (BtMessageDispatcherWeakHandle): New type definition.
  14139. * src/SimpleBtMessage.cc
  14140. (send): Use peerConnection member.
  14141. * src/BtRejectMessage.cc
  14142. (doReceivedAction): Use dispatcher member.
  14143. * src/DefaultBtMessageDispatcher.h
  14144. (Option.h): Removed include.
  14145. (messageFactory): New variable.
  14146. (option): Removed.
  14147. (maxUploadSpeedLimit): New variable.
  14148. (requestTimeout): New variable.
  14149. (DefaultBtMessageDispatcher): Removed option.
  14150. Added maxUploadSpeedLimit, requestTimeout.
  14151. (setOption): Removed.
  14152. (getOption): Removed.
  14153. (setMaxUploadSpeedLimit): New function.
  14154. (setRequestTimeout): New function.
  14155. (setBtMessageFactory): New function.
  14156. * src/DefaultBtInteractive.h
  14157. (btMessageReceiver):
  14158. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14159. (dispatcher):
  14160. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14161. (btRequestFactory):
  14162. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14163. (peerConnection):
  14164. PeerConnectionHandle -> PeerConnectionWeakHandle
  14165. (messageFactory): New variable.
  14166. (option): Removed.
  14167. (keepAliveInterval): New variable.
  14168. (maxDownloadSpeedLimit): New variable.
  14169. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14170. (setBtMessageReceiver):
  14171. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14172. (setDispatcher):
  14173. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14174. (setBtRequestFactory):
  14175. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14176. (setPeerConnection):
  14177. PeerConnectionHandle -> PeerConnectionWeakHandle
  14178. (setOption): Removed.
  14179. (setKeepAliveInterval): New function.
  14180. (setMaxDownloadSpeedLimit): New function.
  14181. (setBtMessageFactory): New function.
  14182. * src/BitfieldMan.h
  14183. (cachedNumMissingBlock): New variable.
  14184. (cachedNumFilteredBlock): New variable.
  14185. (cachedCompletedLength): New variable.
  14186. (cachedFilteredComletedLength): New variable.
  14187. (cachedFilteredTotalLength): New variable.
  14188. (countMissingBlockNow): New function.
  14189. (countFilteredBlockNow): New function.
  14190. (getFilteredTotalLengthNow): New function.
  14191. (getCompletedLengthNow): New function.
  14192. (getFilteredCompletedLengthNow): New function.
  14193. (updateCache): New function.
  14194. * src/AbstractBtMessage.h
  14195. (BtMessageDispatcher.h): New include.
  14196. (PeerConnection.h): New include.
  14197. (BtRequestFactory.h): New include
  14198. (BtMessageFactory.h): New include.
  14199. (dispatcher): New variable.
  14200. (messageFactory): New variable.
  14201. (peerConnection: New variable.
  14202. (setBtMessageDispatcher): New function.
  14203. (setPeerConnection): New function.
  14204. (setBtMessageFactory): New function.
  14205. (setBtRequestFactory): New function.
  14206. * src/DefaultBtMessageFactory.cc
  14207. (setCommonProperty): Set dispatcher, requestFactory, this,
  14208. peerConnection to msg.
  14209. * src/BtRegistry.h
  14210. (BT_MESSAGE_RECEIVER): New macro.
  14211. * src/PeerConnection.h
  14212. (PeerConnectionWeakHandle): New type definition.
  14213. * src/BtMessageFactory.h
  14214. (BtMessageFactoryWeakHandle): New type definition.
  14215. * src/BitfieldMan.cc
  14216. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14217. cachedCompletedLength, cachedFilteredComletedLength,
  14218. cachedFilteredTotalLength.
  14219. Call updateCache().
  14220. (countMissingBlock): Return cachedNumMissingBlock.
  14221. (countMissingBlockNow): New function.
  14222. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14223. (countFilteredBlockNow): New function.
  14224. (setBit): Call updateCache().
  14225. (unsetBit): Call updateCache().
  14226. (setBitfield): Call updateCache().
  14227. (clearAllBit): Call updateCache().
  14228. (setAllBit): Use setBitInternal instead of setBit.
  14229. Call updateCache().
  14230. (addFilter): Call updateCache().
  14231. (enableFilter): Call updateCache().
  14232. (disableFilter): Call updateCache().
  14233. (clearFilter): Call updateCache().
  14234. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14235. (getFilteredTotalLengthNow): New function.
  14236. (getCompletedLength): Return cachedCompletedLength.
  14237. (getCompletedLengthNow): New function.
  14238. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14239. (getFilteredCompletedLengthNow): New function.
  14240. (updateCache): New function.
  14241. * src/BtMessageReceiver.h
  14242. (BtMessageReceiverWeakHandle): New type definition.
  14243. * src/DefaultBtMessageReceiver.cc
  14244. (receiveHandshake): Use messageFactory member.
  14245. (sendHandshake): Use messageFactory member.
  14246. (receiveMessage): Use messageFactory member.
  14247. * src/DefaultBtMessageFactory.h
  14248. (dispatcher): New variable.
  14249. (requestFactory): New variable.
  14250. (peerConnection): New variablle.
  14251. (setBtMessageDispatcher): New function.
  14252. (setBtRequestFactory): New function.
  14253. (setPeerConnection): New function.
  14254. * src/SharedHandle.h
  14255. (RefCount): New class.
  14256. (WeakHandle): New class.
  14257. * src/PeerObject.h
  14258. (BtMessageReceiver.h): New include.
  14259. (PeerObject): Added btMessageReceiver.
  14260. (btMessageReceiver): New variable.
  14261. * src/Util.cc
  14262. (countBit): Simplified.
  14263. * src/BtCancelMessage.cc
  14264. (doReceivedAction): Use dispatcher member.
  14265. * src/BtRequestFactory.h
  14266. (BtRequestFactoryWeakHandle): New type definition.
  14267. * src/PeerStorage.h
  14268. (downloadSpeed): int -> uint32_t
  14269. (uploadSpeed): int -> uint32_t
  14270. (sessionDownloadLength): long long int -> uint64_t
  14271. (sessionUploadLength): long long int -> uint64_t
  14272. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14273. To add RecoverableException, FatalException:
  14274. * src/AbstractCommand.cc
  14275. (onAbort): Exception -> RecoverableException
  14276. * src/PeerAbstractCommand.h
  14277. (RecoverableException.h): New include.
  14278. (onAbort): Exception -> RecoverableException.
  14279. * src/PeerInteractionCommand.cc
  14280. (onAbort): Exception -> RecoverableException.
  14281. * src/PeerAbstractCommand.cc
  14282. (execute): Exception -> RecoverableException.
  14283. (onAbort): Exception -> RecoverableException.
  14284. * src/TorrentRequestInfo.cc
  14285. (execute): Exception -> RecoverableException.
  14286. * src/MetalinkRequestInfo.cc
  14287. (execute): Exception -> RecoverableException.
  14288. * src/MetaFileUtil.cc: RecoverableException.
  14289. * src/AbstractCommand.h
  14290. (onAbort): Exception -> RecoverableException.
  14291. * src/DlRetryEx.h: Exception -> RecoverableException.
  14292. * src/DlAbortEx.h: Exception -> RecoverableException.
  14293. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14294. * src/Util.cc: Exception -> RecoverableException.
  14295. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14296. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14297. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14298. To make ID static const int
  14299. * src/BtInterestedMessage.h
  14300. (ID_t): Removed.
  14301. (ID): New variable.
  14302. (getId): Made non-const.
  14303. * src/BtPieceMessage.h
  14304. (ID_t): Removed.
  14305. (ID): New variable.
  14306. (getId): Made non-const.
  14307. * src/BtChokeMessage.h
  14308. (ID_t): Removed.
  14309. (ID): New variable.
  14310. (getId): Made non-const.
  14311. * src/BtHaveAllMessage.h
  14312. (ID_t): Removed.
  14313. (ID): New variable.
  14314. (getId): Made non-const.
  14315. * src/BtKeepAliveMessage.h
  14316. (ID_t): Removed.
  14317. (ID): New variable.
  14318. (getId): Made non-const.
  14319. * src/BtHandshakeMessage.h
  14320. (ID): New variable.
  14321. (getId): Made non-const.
  14322. * src/BtSuggestPieceMessage.h
  14323. (ID_t): Removed.
  14324. (ID): New variable.
  14325. (getId): Made non-const.
  14326. * src/BtPortMessage.h
  14327. (ID_t): Removed.
  14328. (ID): New variable.
  14329. (getId): Made non-const.
  14330. * src/AbstractBtMessage.h
  14331. (id): Removed.
  14332. (AbstractBtMessage): Removed id.
  14333. (getId): Removed.
  14334. * src/BtHaveMessage.h
  14335. (ID_t): Removed.
  14336. (ID): New variable.
  14337. (getId): Made non-const.
  14338. * src/BtAllowedFastMessage.h
  14339. (ID_t): Removed.
  14340. (ID): New variable.
  14341. (getId): Made non-const.
  14342. * src/BtCancelMessage.h
  14343. (ID_t): Removed.
  14344. (ID): New variable.
  14345. (getId): Made non-const.
  14346. * src/BtNotInterestedMessage.h
  14347. (ID_t): Removed.
  14348. (ID): New variable.
  14349. (getId): Made non-const.
  14350. * src/BtChokeMessage.h
  14351. (ID_t): Removed.
  14352. (ID): New variable.
  14353. (getId): Made non-const.
  14354. * src/BtRejectMessage.h
  14355. (ID_t): Removed.
  14356. (ID): New variable.
  14357. (getId): Made non-const.
  14358. * src/BtBitfieldMessage.h
  14359. (ID_t): Removed.
  14360. (ID): New variable.
  14361. (getId): Made non-const.
  14362. * src/BtUnchokeMessage.h
  14363. (ID_t): Removed.
  14364. (ID): New variable.
  14365. (getId): Made non-const.
  14366. * src/BtRequestMessage.h
  14367. (ID_t): Removed.
  14368. (ID): New variable.
  14369. (getId): Made non-const.
  14370. * src/BtHaveMessage.h
  14371. (ID_t): Removed.
  14372. (ID): New variable.
  14373. (getId): Made non-const.
  14374. To add --force-truncate command-line option and a check whether
  14375. the file already exists:
  14376. * src/DirectDiskAdaptor.h
  14377. (getFilePath): Made virtual public.
  14378. * src/MultiDiskAdaptor.h
  14379. (File.h): New include.
  14380. (DiskWriterEntry::fileEntry): Made private.
  14381. (DiskWriterEntry::fileExists): New function.
  14382. (DiskWriterEntry::getFileEntry): New function.
  14383. (fileExists): New function.
  14384. (getFilePath): New function.
  14385. * src/TorrentRequestInfo.cc
  14386. (FatalException.h): New include.
  14387. (message.h): New include.
  14388. (RecoverableException.h): New include.
  14389. (execute): Added a check whether file is already exists or not.
  14390. * src/DiskAdaptor.h
  14391. (fileExists): New function.
  14392. (getFilePath): New function.
  14393. * src/main.cc
  14394. (showUsage): Added an explanation of --force-truncate command-line
  14395. option.
  14396. (main): Added --force-truncate command-line option.
  14397. * src/Exception.h
  14398. (setMsg): buf[256] -> buf[1024]
  14399. * src/CopyDiskWriter.h
  14400. (getFilePath): Made public virtual.
  14401. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14402. (fileExists): New function.
  14403. * src/DownloadEngineFactory.cc
  14404. (newTorrentConsoleEngine): Don't open file here.
  14405. * src/message.h
  14406. (EX_FILE_ALREADY_EXISTS): New definition.
  14407. * src/prefs.h
  14408. (PREF_FOECE_TRUNCATE): New definition.
  14409. * src/HttpResponseCommand.cc
  14410. (handleDefaultEncoding): Added a check whether the file already exists.
  14411. * src/SegmentMan.h
  14412. (fileExists): New function.
  14413. (shouldCancelDownloadForSafety): New function.
  14414. * src/FtpNegotiateCommand.cc
  14415. (recvSize): Added a check whether the file already exists.
  14416. * src/AbstractSingleDiskAdaptor.cc
  14417. (File.h): New include.
  14418. (fileExists): New function.
  14419. * src/AbstractSingleDiskAdaptor.h
  14420. (getFilePath): Removed.
  14421. (fileExists): New function.
  14422. * src/SegmentMan.cc
  14423. (fileExists): New function.
  14424. (shouldCancelDownloadForSafety): New function.
  14425. To fix regression bug in torrent downloading:
  14426. * src/DefaultBtRequestFactory.cc
  14427. (doChokedAction): New function.
  14428. * src/DefaultBtRequestFactory.h
  14429. (doChokedAction): New function.
  14430. * src/DefaultBtMessageDispatcher.cc
  14431. (doChokedAction): Do not delete request if its target is in allowed
  14432. fast set.
  14433. * src/DefaultBtInteractive.cc
  14434. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14435. (sendKeepAlive): Send keep alive message even if the outgoing message
  14436. queue is not empty.
  14437. (decideInterest): Simplified the code.
  14438. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14439. it is already called when BtChokeMessage is received from a peer.
  14440. * src/BtRequestFactory.h
  14441. (doChokedAction): New function.
  14442. To clean up code:
  14443. * src/PeerInteractionCommand.h
  14444. (executeInternal): Added virtual keyword explicitly.
  14445. (prepareForRetry): Added virtual keyword explicitly.
  14446. (prepareForNextPeer): Added virtual keyword explicitly.
  14447. (onAbort): Added virtual keyword explicitly.
  14448. * src/RequestSlot.cc
  14449. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14450. * src/BtPieceMessage.cc
  14451. (doReceivedAction): Added a debug log of piece's bitfield.
  14452. * src/Piece.h
  14453. (getBitfieldLength): New function.
  14454. * src/ByteArrayDiskWriter.cc
  14455. (clear): Added buf = 0 to avoid double free corruption.
  14456. * src/FileAllocator.cc
  14457. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14458. Added cp.reset().
  14459. * src/BitfieldMan.h
  14460. (operator=): Rewritten.
  14461. * src/BitfieldMan.cc
  14462. (BitfieldMan): Initialized bitfield, useBitfield.
  14463. * src/PeerConnection.cc
  14464. (receiveMessage): Added a call to socket->readable() after getting
  14465. message length to avoid possible EOF.
  14466. * src/Util.cc
  14467. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14468. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14469. To add an ability to pre-allocate file space:
  14470. * src/DirectDiskAdaptor.h: Rewritten.
  14471. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14472. * src/MultiDiskAdaptor.h: Rewritten.
  14473. * src/DefaultPieceStorage.cc
  14474. (MultiDiskWriter.h): Removed include.
  14475. (PreAllocationDiskWriter.h): Removed include.
  14476. (FileAllocationMonitor.h): New include.
  14477. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14478. (initStorage): Rewritten.
  14479. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14480. * src/FileAllocator.h: New class.
  14481. * src/FileAllocator.cc: New class.
  14482. * src/FileAllocationMonitor.h: New class.
  14483. * src/FileAllocationMonitor.cc: New class.
  14484. * src/ConsoleFileAllocationMonitor.h: New class.
  14485. * src/ConsoleFileAllocationMonitor.cc: New class.
  14486. * src/AbstractSingleDiskAdaptor.h: New class.
  14487. * src/AbstractSingleDiskAdaptor.cc: New class.
  14488. * src/DiskAdaptor.h
  14489. (Directory.h): Removed include.
  14490. (DiskWriter.h): Removed include.
  14491. (FileEntry.h): Removed include.
  14492. (diskWriter): Removed.
  14493. (DiskAdaptor): Removed diskWriter.
  14494. (openFile): Made pure virtual.
  14495. (closeFile): Made pure virtual.
  14496. (openExistingFile): Made pure virtual.
  14497. (initAndOpenFile): Made pure virtual.
  14498. (writeData): Made pure virtual.
  14499. (readData): Made pure virtual.
  14500. (sha1Sum): Made pure virtual.
  14501. (getStoreDir): Returns const reference of storeDir.
  14502. (DiskAdaptorHandle): New type definition.
  14503. * src/main.cc
  14504. (ConsoleFileAllocationMonitor.h): New include.
  14505. (showUsage): Added default value description of -s option.
  14506. Added the description of --file-allocation option.
  14507. (main): Set default value of --file-allocation option to 'none'.
  14508. Added --file-allocation command-line option.
  14509. Setup FileAllocationMonitorFactory.
  14510. * src/FtpInitiateConnectionCommand.cc
  14511. (executeInternal): Removed diskWriter related processing, which was
  14512. moved to FtpNegotiationCommand.cc.
  14513. * src/DirectDiskAdaptor.cc
  14514. (getFilePath): Made non-const.
  14515. * src/CopyDiskAdaptor.h
  14516. (DiskAdaptor.h): Removed include.
  14517. (DiskWriter.h): Removed include.
  14518. (AbstractSingleDiskAdaptor.h): New include.
  14519. (getFilePath): Made non-const. Added virtual keyword.
  14520. (CopyDiskAdaptor): Removed diskWriter.
  14521. (getTempFile): Returns const reference.
  14522. (CopyDiskAdaptorHandle): New type definition.
  14523. * src/ByteArrayDiskWriter.cc
  14524. (clear): Simplified.
  14525. (initAndOpenFile): Rewritten.
  14526. (openFile): Call initAndOpenFile()
  14527. * src/MultiDiskAdaptor.cc: Rewritten.
  14528. * src/DownloadEngineFactory.cc
  14529. (FileAllocator.h): New include.
  14530. (FileAllocationMonitor.h): New include.
  14531. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14532. create DefaultDiskWriter with file allocator.
  14533. * src/DiskWriter.h
  14534. (initAndOpenFile): Added totalLength argument.
  14535. (openFile): Added totalLength argument.
  14536. * src/prefs.h
  14537. (PREF_FILE_ALLOCATION): New definition.
  14538. (V_PREALLOC): New definition.
  14539. (V_NONE): New definition.
  14540. * src/HttpResponseCommand.cc
  14541. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14542. size.
  14543. * src/FtpNegotiateCommand.cc
  14544. (Util.h): New include.
  14545. (recvSize): Open file here.
  14546. * src/Util.h
  14547. (ullitos): New function.
  14548. * src/CopyDiskWriter.h
  14549. (getFilePath): Made non-const.
  14550. * src/DefaultDiskWriter.h
  14551. (Option.h): New include.
  14552. (totalLength): Removed.
  14553. (DefaultDiskWriter): Removed totalLength.
  14554. (initAndOpenFile): Added totalLength argument.
  14555. (DefaultDiskWriterHandle): New type definition.
  14556. (createNewDiskWriter): New function.
  14557. * src/Util.cc
  14558. (ullitos): New function.
  14559. * src/DefaultDiskWriter.cc
  14560. (message.h): New include.
  14561. (FileAllocator.h): New include.
  14562. (prefs.h): New include.
  14563. (Util.h): New include.
  14564. (DefaultDiskWriter): Removed totalLength.
  14565. (initAndOpenFile): Added file allocation.
  14566. (createNewDiskWriter): New function. Just for temporary solution.
  14567. It will be rewritten later.
  14568. * src/DiskAdaptor.cc
  14569. (DiskAdaptor): Removed diskWriter.
  14570. * src/AbstractDiskWriter.cc
  14571. (LogFactory.h): New include.
  14572. (AbstractDiskWriter): Added fileAllocator, logger.
  14573. (openFile): Added totalLength argument.
  14574. * src/AbstractDiskWriter.h
  14575. (FileAllocator.h): New include.
  14576. (Logger.h): New include.
  14577. (fileAllocator): New variable.
  14578. (logger): New variable.
  14579. (openFile): Added totalLength argument. Added virtual keyword
  14580. explicitly.
  14581. (openExistingFile): Added totalLength argument. Added virtual keyword
  14582. explicitly.
  14583. (closeFile): Added virtual keyword explicitly.
  14584. (sha1Sum): Added virtual keyword explicitly.
  14585. (writeData): Added virtual keyword explicitly.
  14586. (readData): Added virtual keyword explicitly.
  14587. (setFileAllocator): New function.
  14588. * src/DefaultPieceStorage.h
  14589. (FileAllocator.h): New include.
  14590. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14591. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14592. * src/FileProgressMonitor.h: New class.
  14593. To compile aria2 on PC-BSD:
  14594. * src/DefaultBtContext.cc
  14595. (libgen.h): New include.
  14596. To fix memory leak:
  14597. * src/Exception.h
  14598. (~Exception): Delete cause. Fixed memory leak.
  14599. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14600. Rewritten a portion of bittorrent implementation:
  14601. * src/BtMessageValidator.h: New class.
  14602. * src/BtBitfieldMessageValidator.h: New class.
  14603. * src/BtHandshakeMessageValidator.h: New class.
  14604. * src/BtRequestMessageValidator.h: New class.
  14605. * src/BtSuggestPieceMessageValidator.h: New class.
  14606. * src/BtAllowedFastMessageValidator.h: New class.
  14607. * src/BtRejectMessageValidator.h: New class.
  14608. * src/BtCancelMessageValidator.h: New class.
  14609. * src/BtPieceMessageValidator.h: New class.
  14610. * src/BtHaveMessageValidator.h: New class.
  14611. * src/BtEventListener.h: New class.
  14612. * src/AbstractBtEventListener.h: New class.
  14613. * src/BtEvent.h: New class.
  14614. * src/BtChokingEvent.h: New class.
  14615. * src/BtChokedEvent.h: New class.
  14616. * src/BtCancelSendingPieceEvent.h: New class.
  14617. * src/BtAbortOutstandingRequestEvent.h: New class.
  14618. * src/Randomizer.h: New class.
  14619. * src/SimpleRandomizer.h: New class.
  14620. * src/BtMessage.h: New class.
  14621. * src/AbstractBtMessage.h: New class.
  14622. * src/SimpleBtMessage.h: New class.
  14623. * src/BtHaveMessage.h: New class.
  14624. * src/BtInterestedMessage.h: New class.
  14625. * src/BtAllowedFastMessage.h: New class.
  14626. * src/BtUnchokeMessage.h: New class.
  14627. * src/BtCancelMessage.h: New class.
  14628. * src/BtNotInterestedMessage.h: New class.
  14629. * src/BtChokeMessage.h: New class.
  14630. * src/BtHaveNoneMessage.h: New class.
  14631. * src/BtHandshakeMessage.h: New class.
  14632. * src/BtSuggestPieceMessage.h: New class.
  14633. * src/BtHaveMessage.h: New class.
  14634. * src/BtPieceMessage.h: New class.
  14635. * src/BtHaveAllMessage.h: New class.
  14636. * src/BtKeepAliveMessage.h: New class.
  14637. * src/BtPortMessage.h: New class.
  14638. * src/BtRejectMessage.h: New class.
  14639. * src/BtBitfieldMessage.h: New class.
  14640. * src/BtRequestMessage.h: New class.
  14641. * src/DefaultBtRequestFactory.h: New class.
  14642. * src/DefaultBtMessageReceiver.h: New class.
  14643. * src/BtInteractive.h: New class.
  14644. * src/BtMessageDispatcher.h: New class.
  14645. * src/DefaultBtMessageDispatcher.h: New class.
  14646. * src/DefaultBtInteractive.h: New class.
  14647. * src/BitfieldManFactory.h: New class.
  14648. * src/HandleRegistry.h: New class.
  14649. * src/BtMessageFactory.h: New class.
  14650. * src/BtMessageReceiver.h: New class.
  14651. * src/DefaultBtMessageFactory.h: New class.
  14652. * src/PeerObject.h: New class.
  14653. * src/BtRequestFactory.h: New class.
  14654. * src/SuggestPieceMessage.h: Removed.
  14655. * src/PortMessage.h: Removed.
  14656. * src/SuggestPieceMessage.h: Removed.
  14657. * src/KeepAliveMessage.h: Removed.
  14658. * src/HandshakeMessage.h: Removed.
  14659. * src/PeerInteraction.h: Removed.
  14660. * src/UnchokeMessage.h: Removed.
  14661. * src/PieceMessage.h: Removed.
  14662. * src/RequestMessage.h: Removed.
  14663. * src/InterestedMessage.h: Removed.
  14664. * src/HaveMessage.h: Removed.
  14665. * src/CancelMessage.h: Removed.
  14666. * src/RejectMessage.h: Removed.
  14667. * src/AllowedFastMessage.h: Removed.
  14668. * src/HaveNoneMessage.h: Removed.
  14669. * src/SimplePeerMessage.h: Removed.
  14670. * src/HaveAllMessage.h: Removed.
  14671. * src/BitfieldMessage.h: Removed.
  14672. * src/PeerMessageFactory.h: Removed.
  14673. * src/NotInterestedMessage.h: Removed.
  14674. * src/ChokeMessage.h: Removed.
  14675. * src/PeerMessage.h: Removed.
  14676. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14677. To know root cause of exception:
  14678. * src/Exception.h
  14679. (cause): New variable.
  14680. (Exception): Added a parameter.
  14681. (getMsg): Return const reference to msg.
  14682. (getCause): New function.
  14683. * src/DlRetryEx.h
  14684. (DlRetryEx): Added a parameter 'cause'.
  14685. Added an overloaded constructor.
  14686. (DlAbortEx): Added a parameter 'cause'.
  14687. Added an overloaded constructor.
  14688. * src/SimpleLogger.cc
  14689. (writeLog): Log nested exception messages recursively.
  14690. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14691. * src/DefaultBtProgressInfoFile.cc
  14692. (load): Fixed memory leak when the infohash doesn't match.
  14693. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14694. * src/DefaultPeerStorage.cc
  14695. (calculateStat): Simplified the code by combining 2 loops into 1.
  14696. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14697. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14698. for BitTorrent download:
  14699. * src/PeerAbstractCommand.cc
  14700. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14701. * src/main.cc:
  14702. (timeoutSpecified): Removed.
  14703. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14704. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14705. * src/TorrentRequestInfo.cc
  14706. (timeoutSpecified): Removed.
  14707. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14708. timeout value.
  14709. * src/prefs.h
  14710. (PREF_BT_TIMEOUT): New definition.
  14711. Delete unused variables:
  14712. * src/TorrentRequestInfo.cc
  14713. (requestInfo): Removed.
  14714. Move setSignalHander to Util::setGlobalSignalHandler:
  14715. * src/TorrentRequestInfo.cc:
  14716. setSignalHander -> Util::setGlobalSignalHandler
  14717. * src/main.cc
  14718. (setSignalHander): Removed.
  14719. (main): setSignalHander -> Util::setGlobalSignalHandler
  14720. * src/Util.h
  14721. (setGlobalSignalHandler): New function.
  14722. * src/Util.cc
  14723. (setGlobalSignalHandler): New function.
  14724. * src/UrlRequestInfo.cc:
  14725. setSignalHander -> Util::setGlobalSignalHandler
  14726. Reset peer status in order to exit gracefully:
  14727. * src/PeerAbstractCommand.cc
  14728. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14729. To fix the bug that causes the number of bytes uploaded is not saved
  14730. to .aria2 file:
  14731. * src/DefaultPeerStorage.h
  14732. (removedPeerSessionDownloadLength): New variable.
  14733. (removedPeerSessionUploadLength): New variable.
  14734. * src/DefaultPeerStorage.cc
  14735. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14736. removedPeerSessionUploadLength(0).
  14737. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14738. through all peers, and then add removedPeerSessionDownloadLength(
  14739. removedPeerSessionUploadLength) to it.
  14740. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14741. (to) the peer to removedPeerSessionDownloadLength
  14742. (removedPeerSessionUploadLength).
  14743. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14744. To add Metalink location option:
  14745. * src/MetalinkRequestInfo.cc
  14746. (execute): Call MetalinkEntry::setLocationPreference()
  14747. * src/main.cc
  14748. (showUsage): Added the help message for --metalink-location option.
  14749. (main): Added --metalink-location option.
  14750. * src/prefs.h
  14751. (PREF_METALINK_LOCATION): New definition.
  14752. * src/MetalinkEntry.cc
  14753. (AddLocationPreference): New function object.
  14754. (setLocationPreference): New function.
  14755. * src/Xml2MetalinkProcessor.cc
  14756. (getResource): Set location attribute to MetalinkResource
  14757. To show URLs to download
  14758. * src/UrlRequestInfo.h
  14759. (printUrls): New function.
  14760. To add multiple <file> Metalink support:
  14761. * src/MetalinkEntry.h
  14762. (MetalinkResources): Removed.
  14763. (setLocationPreference): New function.
  14764. (MetalinkEntryHandle): New type definition.
  14765. (MetalinkEntries): New type definition.
  14766. * src/Xml2MetalinkProcessor.h
  14767. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14768. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14769. (parseFile): Metalinker* -> MetalinkerHandle
  14770. * src/UrlRequestInfo.h
  14771. (execute): RequestInfo* -> RequestInfos
  14772. * src/MetalinkRequestInfo.cc
  14773. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14774. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14775. (execute): RequestInfo* -> RequestInfos
  14776. Added multiple <file> support. Print filename when it is queued.
  14777. * src/MetalinkRequestInfo.h
  14778. (execute): RequestInfo* -> RequestInfos
  14779. (getDownloadEngine): Removed.
  14780. * src/RequestInfo.h
  14781. (RequestInfoHandle): New type definition.
  14782. (RequestInfos): New type definition.
  14783. (execute): RequestInfo* -> RequestInfos
  14784. (getDownloadEngine): Removed.
  14785. * src/MetalinkResource.h
  14786. (MetalinkResourceHandle): New type definition.
  14787. (MetalinkResources): New type definition.
  14788. * src/MetalinkEntry.cc
  14789. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14790. because the element is now of type MetalinkResourceHandle.
  14791. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14792. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14793. (dropUnsupportedResource): Removed the deletion of the elements of
  14794. resources because the element is now of type MetalinkResourceHandle.
  14795. * src/Xml2MetalinkProcessor.cc
  14796. (parseFile): Metalinker* -> MetalinkerHandle
  14797. MetalinkEntry* -> MetalinkEntryHandle
  14798. Removed try-catch block.
  14799. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14800. MetalinkResource* -> MetalinkResourceHandle
  14801. Removed try-catch block.
  14802. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14803. Free result by using xmlXPathFreeObject()
  14804. * src/Metalinker.cc
  14805. (~Metalinker): Removed the deletion of entries.
  14806. MetalinkEntry* -> MetalinkEntryHandle
  14807. (queryEntry): Add multiple <file> Metalink support.
  14808. * src/Metalinker.h
  14809. (MetalinkEntries): Removed.
  14810. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14811. * src/MetalinkProcessor.h
  14812. (parseFile): Metalinker* -> MetalinkerHandle
  14813. Bug fixes:
  14814. * src/PeerChokeCommand.cc
  14815. (execute): cat01->cat02
  14816. * src/DefaultPieceStorage.cc
  14817. (DefaultPieceStorage): Added diskAdaptor(0)
  14818. * src/TrackerWatcherComand.cc:
  14819. (execute): Use btAnnounce->noMoreAnnounce()
  14820. to determin whether the function returns true or not.
  14821. * src/TrackerUpdateCommand.cc:
  14822. (execute): Use btAnnounce->noMoreAnnounce()
  14823. to determin whether the function returns true or not.
  14824. * src/FtpConnection.cc
  14825. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14826. This is the fix of the busy loop bug.
  14827. * src/DownloadCommand.cc
  14828. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14829. cached PeerStat.
  14830. The value of "name" entry in torrent file is now set by
  14831. *DiskAdaptor::setTopDir(...) methods.
  14832. * src/MultiDiskAdaptor.h
  14833. (topDir): New variable.
  14834. (setTopDir): New function.
  14835. (getTopDir): New function.
  14836. * src/MultiDiskAdaptor.cc
  14837. (getFilePath): Concat storDir, "/" and topDir.
  14838. (mkdir): Use getFilePath() to get the directory path for output.
  14839. * src/DefaultPieceStorage.cc
  14840. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14841. CopyDiskAdaptor.
  14842. * src/CopyDiskAdaptor.h
  14843. (topDir): New variable.
  14844. (setTopDir): New function.
  14845. (getTopDir): New function.
  14846. * src/CopyDiskAdaptor.cc
  14847. (fixFilename): Updated.
  14848. Misc
  14849. * src/UrlRequestInfo.h
  14850. (e): Removed.
  14851. (UrlRequestInfo): Removed e.
  14852. (getDownloadEngine): Removed.
  14853. * src/UrlRequestInfo.cc
  14854. (handler): Rewritten.
  14855. (printUrls): New function.
  14856. (execute): Call printUrls().
  14857. * src/HandshakeMessage.cc
  14858. (check): peerinteraction->getBtContext() -> btContext
  14859. * src/PeerInteraction.h
  14860. (getBtContext): Removed.
  14861. * src/TorrentRequestInfo.h
  14862. (execute): RequestInfo* -> RequestInfos
  14863. (getDownloadEngine): Removed.
  14864. * src/TorrentRequestInfo.cc
  14865. (haltRequested): Removed.
  14866. (btHaltRequested): New variable.
  14867. (torrentHandler): haltRequested -> btHaltRequested
  14868. (execute): RequestInfo* -> RequestInfos
  14869. * src/TorrentConsoleDownloadEngine.cc
  14870. (afterEachIteration): haltRequested -> btHaltRequested.
  14871. * src/ConsoleDownloadEngine.h
  14872. (initStatistics): Added virtual.
  14873. (calculateStatistics): Added virtual.
  14874. (onEndOfRun): Added virtual.
  14875. (afterEachIteration): Added virtual.
  14876. * src/ConsoleDownloadEngine.cc
  14877. (haltRequested): New variable.
  14878. (afterEachIteration): New function.
  14879. * src/main.cc
  14880. (requestInfo): Removed.
  14881. * src/SegmentMan.cc
  14882. (findSlowerSegmentEntry): Refactored.
  14883. * Release 0.9.0
  14884. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14885. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14886. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14887. * src/TorrentMan.h: Removed.
  14888. * src/TorrentMan.cc: Removed.
  14889. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14890. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14891. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14892. * src/PeerAbstractCommand.cc: Use btRuntime.
  14893. * src/BtContextAwareCommand.h: New class.
  14894. * src/FileEntry.h: Added accessor methods for following variables.
  14895. (path): Made private.
  14896. (length): Made private.
  14897. (offset): Made private.
  14898. (extracted): Made private.
  14899. (requested): Made private.
  14900. (FileEntries): New definition.
  14901. (FileEntryHandle): New definition.
  14902. * src/FileEntry.cc: New file.
  14903. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14904. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14905. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14906. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14907. * src/PieceStorage.h: New file.
  14908. * src/PeerInteractionCommand.h: Use btContext.
  14909. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14910. btRuntime.
  14911. * src/DefaultBtProgressInfoFile.h: New file.
  14912. * src/DefaultBtProgressInfoFile.cc: New file.
  14913. * src/File.cc
  14914. (Util.h): New include.
  14915. (mkdirs): New function.
  14916. * src/MultiDiskAdaptor.h
  14917. (mkdir): New function.
  14918. * src/PeerListProcessor.h
  14919. (Peers): Removed.
  14920. * src/PeerInteraction.h
  14921. (torrentMan): Removed.
  14922. (btContext): New variable.
  14923. (peerStorage): New variable.
  14924. (pieceStorage): New variable.
  14925. (btAnnounce): New variable.
  14926. (getTorrentMan): Removed.
  14927. (getBtContext): New function.
  14928. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14929. btAnnounce.
  14930. * src/HandshakeMessage.h
  14931. (TorrentMan.h): Removed.
  14932. * src/HandshakeMessage.cc: Use btContext.
  14933. * src/DefaultBtAnnounce.cc: New file.
  14934. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14935. * src/DefaultPieceStorage.cc: New file.
  14936. * src/DefaultBtContext.h: New file.
  14937. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14938. Use the accessor methods of FileEntry.
  14939. * src/CookieBox.cc: Updated to use Util::slice().
  14940. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14941. * src/common.h (SharedHandle.h): New include.
  14942. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14943. pieceStorage.
  14944. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14945. * src/DiskAdaptor.h
  14946. (topDir): Removed.
  14947. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14948. (setTopDir): Removed.
  14949. (getTopDir): Removed.
  14950. * src/BtContext.h: New file.
  14951. * src/DefaultPeerStorage.h: New file.
  14952. * src/PieceMessage.h (TorrentMan.h): Removed.
  14953. * src/RequestMessage.h (TorrentMan.h): Removed.
  14954. * src/TorrentDownloadEngine.h
  14955. (uploadLength): New variable.
  14956. (btContext): New variable.
  14957. (btRuntime): New variable.
  14958. (pieceStorage): New variable.
  14959. (peerStorage): New variable.
  14960. (btAnnounce): New variable.
  14961. (btProgressInfoFile): New variable.
  14962. (torrentMan): Removed.
  14963. (setBtContext): New function.
  14964. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14965. peerStorage, btAnnounce, btProgressInfoFile.
  14966. * src/Piece.h
  14967. (toString): New function.
  14968. (Pieces): New type definition.
  14969. * src/Peer.h
  14970. (active): New variable.
  14971. (Peer): Added active.
  14972. (activate): Set active to true.
  14973. (deactivate): Set active to false.
  14974. (isActive): New function.
  14975. (Peers): New type definition.
  14976. * src/DirectDiskAdaptor.cc
  14977. (getFilePath): Use the accessor methods of FileEntry.
  14978. * src/TorrentConsoleDownloadEngine.h
  14979. (afterEachIteration): New function.
  14980. * src/TorrentConsoleDownloadEngine.cc
  14981. (haltRequested): New variable.
  14982. (sendStatistics): Use pieceStorage, btRuntime.
  14983. (afterEachIteration): New function.
  14984. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14985. * src/Directry.h
  14986. (Directory): New function.
  14987. (DirectoryHandle): New type definition.
  14988. * src/BtProgressInfoFile.h: New file.
  14989. * src/RequestMessage.cc: Use pieceStorage.
  14990. * src/BtRuntime.h: New file.
  14991. * src/DefaultBtContext.cc: New file.
  14992. * src/BitfieldMan.h
  14993. (getCompletedLength): New function(private).
  14994. (getCompletedLength): New function.
  14995. (getFilteredCompletedLength): New function.
  14996. * src/BitfieldMan.h
  14997. (getCompletedLength): New function(private).
  14998. (getCompletedLength): New function.
  14999. (getFilteredCompletedLength): New function.
  15000. * src/MultiDiskAdaptor.cc
  15001. (mkdir): New function.
  15002. (openFile): Call mkdir().
  15003. (initAndOpenFile): Call mkdir().
  15004. * src/CancelMessage.h
  15005. (TorrentMan.h): Removed.
  15006. * src/RejectMessage.h
  15007. (TorrentMan.h): Removed.
  15008. * src/DownloadEngineFactory.cc
  15009. (DefaultPieceStorage.h): New include.
  15010. (DefaultPeerStorage.h): New include.
  15011. (DefaultBtAnnounce.h): New include.
  15012. (DefaultBtProgressInfoFile.h): New include.
  15013. (newTorrentConsoleEngine): Rewritten.
  15014. * src/ShareRatioSeedCriteria.h
  15015. (torrentMan): Removed.
  15016. (btContext): New variable.
  15017. (peerStorage): New variable.
  15018. (btRuntime): New variable.
  15019. (evaluate): Use btContext, btRuntime, peerStorage.
  15020. * src/AnnounceTier.h: New file.
  15021. * src/BtAnnounce.h: New file.
  15022. * src/BtRegistry.h: New file.
  15023. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15024. * src/PeerConnection.h (TorrentMan.h): Removed.
  15025. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15026. * src/Util.h
  15027. (slice): Added an argument.
  15028. * src/Util.cc
  15029. (slice): Added an argument to control whether trim is made or not.
  15030. * src/PeerStorage.h: New file.
  15031. * src/BtRegistry.cc: New file.
  15032. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15033. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15034. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15035. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15036. * src/TorrentRequestInfo.h
  15037. (e): Removed.
  15038. (showFileEntry): Added an argument.
  15039. (getDownloadEngine): Return 0.
  15040. * src/DefaultBtAnnounce.h: New file.
  15041. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15042. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15043. * src/PeerMessageFactory.h
  15044. (btContext): New variable.
  15045. (pieceStorage): New variable.
  15046. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15047. btAnnounce.
  15048. * src/DiskAdaptor.cc
  15049. (DiskAdaptor): Removed topDir.
  15050. (~DiskAdaptor): Removed topDir.
  15051. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15052. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15053. * src/File.h (mkdirs): New function.
  15054. * src/DefaultPeerStorage): New file.
  15055. * src/DownloadEngineFactory.h
  15056. (newTorrentConsoleEngine): Use btContext.
  15057. * src/BtContextAwareCommand.cc: New file.
  15058. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15059. * src/PeerMessage.h
  15060. (btContext): New variable.
  15061. (peerStorage): New variable.
  15062. (pieceStorage): New variable.
  15063. (setBtContext): New function.
  15064. * src/Directry.cc
  15065. (Directory): New function.
  15066. (createDir): Do nothing if name.size() == 0.
  15067. * src/AnnounceList.h
  15068. (AnnounceTier): Removed.
  15069. (AnnounceTiers): Removed.
  15070. * src/DefaultPieceStorage.h: New file.
  15071. * src/Piece.cc (toString): New function.
  15072. To fix typo:
  15073. * src/main.cc (showVersion): Fixed typo.
  15074. To fix compile warning:
  15075. * src/DelegatingPeerListProcessor.cc
  15076. (canHandle): Added "return false".
  15077. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15078. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15079. make the process of announce request testable.
  15080. * src/TrackerWatcherCommand.h
  15081. (TimeA2.h): Removed.
  15082. (interval): Removed.
  15083. (checkPoint): Removed.
  15084. (createRequestCommand): Added an argument 'url'.
  15085. (TrackerWatherCommand): Removed interval.
  15086. (createCommand): New function.
  15087. * src/DownloadEngineFactory.cc
  15088. (newTorrentConsoleEngine): Updated according to the changes in
  15089. TrackerWatherCommand.
  15090. * src/TorrentMan.cc
  15091. (DelegatingPeerListProcessor.h): New includes.
  15092. (TorrentMan): Added the initialization of announceInterval.
  15093. (isStoppedAnnounceReady): New function.
  15094. (isCompletedAnnounceReady): New function.
  15095. (isDefaultAnnounceReady): New function.
  15096. (isAnnounceReady): New function.
  15097. (getAnnounceUrl): New function.
  15098. (announceStart): New function.
  15099. (announceFailure): New function.
  15100. (announceSuccess): New function.
  15101. (isAllAnnounceFailed): New function.
  15102. (resetAnnounce): New function.
  15103. (processAnnounceResponse): New function.
  15104. (needMorePeerConnection): New function.
  15105. (noMoreAnnounce): New function.
  15106. * src/TrackerUpdateCommand.h
  15107. (getTrackerResponse): int->size_t
  15108. * src/TorrentMan.h
  15109. (isStoppedAnnounceReady): New function.
  15110. (isCompletedAnnounceReady): New function.
  15111. (isDefaultAnnounceReady): New function.
  15112. (announceInterval): New variable.
  15113. (isAnnounceReady): New function.
  15114. (getAnnounceUrl): New function.
  15115. (announceStart): New function.
  15116. (announceFailure): New function.
  15117. (announceSuccess): New function.
  15118. (isAllAnnounceFailed): New function.
  15119. (resetAnnounce): New function.
  15120. (processAnnounceResponse): New function.
  15121. (needMorePeerConnection): New function.
  15122. (noMoreAnnounce): New function.
  15123. * src/TrackerWatcherCommand.cc
  15124. (TrackerWatherCommand): Removed interval and checkPoint.
  15125. (execute): Rewritten.
  15126. (createCommand): New function.
  15127. (createRequestCommand): Rewritten.
  15128. * src/TrackerUpdateCommand.cc
  15129. (MetaFileUtil.h): Removed.
  15130. (DelegatingPeerListProcessor.h): Removed.
  15131. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15132. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15133. Request -> RequestHandle:
  15134. * src/HttpResponseCommand.h: Request->RequestHandle
  15135. * src/AbstractCommand.cc: Request->RequestHandle
  15136. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15137. * src/HttpRequestCommand.cc: Request->RequestHandle
  15138. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15139. * src/AbstractCommand.h: Request->RequestHandle
  15140. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15141. * src/HttpResponseCommand.cc: Request->RequestHandle
  15142. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15143. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15144. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15145. * src/HttpConnection.h: Request->RequestHandle
  15146. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15147. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15148. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15149. * src/DownloadCommand.h: Request->RequestHandle
  15150. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15151. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15152. * src/HttpRequestCommand.h: Request->RequestHandle
  15153. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15154. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15155. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15156. * src/HttpDownloadCommand.h: Request->RequestHandle
  15157. * src/FtpConnection.cc: Request->RequestHandle
  15158. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15159. * src/UrlRequestInfo.cc: Request->RequestHandle
  15160. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15161. * src/HttpConnection.h: Request->RequestHandle
  15162. * src/DownloadCommand.cc: Request->RequestHandle
  15163. * src/FtpConnection.h: Request->RequestHandle
  15164. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15165. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15166. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15167. * src/Request.h
  15168. (SharedHandle.h): New include.
  15169. (RequestHandle): New type definition.
  15170. (Requests): Redefined.
  15171. To add MULTITRACKER support:
  15172. * src/TrackerWatcherCommand.h
  15173. (createRequestCommand): New function.
  15174. * src/DownloadEngineFactory.cc
  15175. (newTorrentConsoleEngine): Removed req.
  15176. * src/prefs.h
  15177. (PREF_TRACKER_MAX_TRIES): New definition.
  15178. * src/TorrentMan.cc
  15179. (TorrentMan): Removed req. Added trackerNumTry.
  15180. (~TorrentMan): Removed req.
  15181. (setupInternal1): Added announceList.
  15182. * src/TorrentRequestInfo.cc
  15183. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15184. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15185. * src/main.cc
  15186. (main): Added PREF_TRACKER_MAX_TRIES.
  15187. * src/TorrentMan.h
  15188. (Request.h): Removed.
  15189. (AnnounceList.h): New include.
  15190. (trackerNumTry): New variable.
  15191. (req): Removed.
  15192. (announceList): New variable.
  15193. * src/TrackerWatcherCommand.cc
  15194. (execute): Rewritten.
  15195. (createRequestCommand): New function.
  15196. * src/TrackerUpdateCommand.cc
  15197. (execute): Updated with the use of AnnounceList.
  15198. * src/AnnounceList.cc: New class.
  15199. * src/AnnounceList.h: New class.
  15200. To fix typo:
  15201. * src/prefs.h
  15202. (PREF_MAX_TRIES): max_try->max_tries
  15203. To not to decode "+" as space in URL decode:
  15204. * src/Util.cc
  15205. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15206. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15207. To add timeout to async name resolution:
  15208. * src/AbstractCommand.h
  15209. (nameResolveFinished): New function. This is not elegant way. It needs
  15210. to be more refined.
  15211. (nameResolverCheck): New variable.
  15212. * src/AbstractCommand.cc
  15213. (AbstractCommand): Added nameResolverCheck.
  15214. (execute): Added the check whether the name resolution has finished.
  15215. (setNameResolverCheck): Set nameResolverCheck to true.
  15216. (disableNameResolverCheck): Set nameResolverCheck to false.
  15217. (nameResolverFinished): New function.
  15218. * src/FtpInitiateConnectionCommand.h
  15219. (nameResolverFinished): New function.
  15220. * src/FtpInitiateConnectionCommand.cc
  15221. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15222. * src/HttpInitiateConnectionCommand.h
  15223. (nameResolverFinished): New function.
  15224. * src/HttpInitiateConnectionCommand.cc
  15225. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15226. * src/prefs.h
  15227. (PREF_DNS_TIMEOUT): New definition.
  15228. * src/main.cc
  15229. (main): Added PREF_DNS_TIMEOUT.
  15230. To add the support for a non-compact response from a tracker:
  15231. * src/PeerListProcessor.h: New class.
  15232. * src/DefaultPeerListProcessor.h: New class.
  15233. * src/DefaultPeerListProcessor.cc: New class.
  15234. * src/CompactPeerListProcessor.h: New class.
  15235. * src/CompactPeerListProcessor.cc: New class.
  15236. * src/DelegatingPeerListProcessor.h: New class.
  15237. * src/DelegatingPeerListProcessor.cc: New class.
  15238. * src/TorrentMan.cc
  15239. (addPeer): New function(overload).
  15240. (addPeer): Delete unused peers only when new peer is added.
  15241. * src/TorrentMan.h
  15242. (PeerListProcessor.h): Included.
  15243. (Peers): Removed.
  15244. (addPeer): New function(overload).
  15245. * src/TrackerUpdateCommand.cc
  15246. (netinet/in.h): Removed.
  15247. (DelegatingPeerListProcessor.h): Included.
  15248. (execute): Updated to use DelegatingPeerListProcessor.
  15249. To fix the memory leak in TorrentMan::peers:
  15250. * src/PeerAbstractCommand.cc
  15251. (onAbort): Added peer->resetStatus().
  15252. * src/Peer.h
  15253. (resetStatus): Made public.
  15254. To improve the precision of the speed calculation:
  15255. * src/SpeedCalc.h
  15256. (nextInterval): New variable.
  15257. * src/SpeedCalc.cc
  15258. (reset): Added nextInterval.
  15259. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15260. (changeSw): Set nextInterval to 15 seconds relative to the current
  15261. instant time.
  15262. * src/main.cc
  15263. (showVersion): Updated.
  15264. (showUsage): Updated.
  15265. * Release 0.8.1
  15266. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15267. * src/main.cc
  15268. (showUsage): Commented out --min-segment-size option.
  15269. (main): Commented out --min-segment-size option.
  15270. * Release 0.8.0
  15271. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15272. * src/*.{h,cc}:
  15273. Added an exception to the license which allows linking with OpenSSL.
  15274. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15275. * src/AbstractCommand.cc
  15276. (execute): Check whether the download has finished before checking
  15277. socket status.
  15278. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15279. Do not exit even if no segment is available.
  15280. * src/prefs.h
  15281. (PREF_STARTUP_IDLE_TIME): New definition.
  15282. * src/PeerInteractionCommand.cc
  15283. (executeInternal): Removed max speed limit. Because it performs bad.
  15284. (receiveMessages): Added max speed limit. This was better than above,
  15285. but still a little bit to be desired. Sometimes the download speed
  15286. became much faster than I specified.
  15287. * src/SpeedCalc.h
  15288. (start): New variable.
  15289. (accumulatedLength): New variable.
  15290. (getAvgSpeed): New function.
  15291. * src/SpeedCalc.cc
  15292. (reset): Added start, accumulatedLength.
  15293. (update): Added calculation of an average speed.
  15294. (getAvgSpeed): New function.
  15295. * src/DownloadCommand.h
  15296. (sw): Removed.
  15297. * src/main.cc
  15298. (main): Added PREF_STARTUP_IDLE_TIME.
  15299. * src/PeerStat.h
  15300. (STATUS): Added REQUEST_IDLE.
  15301. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15302. (getAvgDownloadSpeed): New function
  15303. (requestIdle): New function.
  15304. * src/SegmentMan.h
  15305. (SegmentEntryHandle): New type definition.
  15306. (SegmentEntries): Now holds SegmentEntryHandle.
  15307. (findSlowerSegmentEntry): New funtion.
  15308. * src/SegmentMan.cc
  15309. (save): Updated according to the changes in SegmentEntries.
  15310. (read): Updated according to the changes in SegmentEntries.
  15311. (FindSegmentEntryByIndex): Updated according to the changes in
  15312. SegmentEntries.
  15313. (FindSegmentEntryByCuid): Updated according to the changes in
  15314. SegmentEntries.
  15315. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15316. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15317. Renamed uitr as itr.
  15318. (findSlowerSegmentEntry): New function.
  15319. (getSegment): Updated according to the changes in SegmentEntries.
  15320. Added the feature that cancels the segment with slow server and fast
  15321. one takes it over.
  15322. (cancelSegment): Updated according to the changes in SegmentEntries.
  15323. (getDownloadLength): Updated according to the changes in
  15324. SegmentEntries.
  15325. (init): Assigned 0 to bitfield after deleting it.
  15326. * src/DownloadCommand.cc
  15327. (STARTUP_IDLE_TIME): Removed.
  15328. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15329. * src/PeerChokeCommand.cc
  15330. (optUnchokingPeer): Updated according to the changes in Peer.
  15331. (ResetDelta): Removed.
  15332. (UploadFaster): Updated according to the changes in Peer.
  15333. (DownloadFaster): Updated according to the changes in Peer.
  15334. (execute): I clarify the meaning of "upload" and "download" here.
  15335. "upload" means the transfer from localhost to remote host.
  15336. "download" means the transfer from remote host to localhost.
  15337. Based on this rule, I swapped orderByUploadRate and
  15338. orderByDownloadRate.
  15339. * src/PeerInteractionCommand.cc
  15340. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15341. (executeInternal): Removed the argument of
  15342. peerInteraction->sendMessages().
  15343. (receiveMessages): Rewritten download speed limit.
  15344. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15345. * src/HttpResponseCommand.cc
  15346. (handleDefaultEncoding): If file size is unknown in torrent request,
  15347. do not call segmentMan->initBitfield() here.
  15348. Disabled persistent connection feature in torrent request.
  15349. * src/UrlRequestInfo.h
  15350. (UrlRequestInfo): Removed const qualifier from option.
  15351. * src/TorrentMan.h
  15352. (TransferStat): New class.
  15353. (deltaDownloadLength): Removed.
  15354. (deltaUploadLength): Removed.
  15355. (addDeltaDownloadLength): Removed.
  15356. (getDeltaDownloadLength): Removed.
  15357. (resetDeltaDownloadLength): Removed.
  15358. (addDeltaUploadLength): Removed.
  15359. (getDeltaUploadLength): Removed.
  15360. (resetDeltaUploadLength): Removed.
  15361. (addActivePeer): Added peer->activate().
  15362. (deleteActivePeer): Added peer->deactivate().
  15363. (calculateStat): New function.
  15364. * src/TorrentMan.cc
  15365. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15366. (calculateStat): New function.
  15367. * src/PeerInteraction.h
  15368. (uploadLimit): Removed.
  15369. (option): New variable.
  15370. (setUploadLimit): Removed.
  15371. (getUploadSpeed): Removed.
  15372. (sendMessages): Removed the argument "currentUploadSpeed".
  15373. * src/PeerInteraction.cc
  15374. (prefs.h): Included.
  15375. (PeerInteraction): Removed uploadLimit. Added option.
  15376. (sendMessages): Rewritten upload speed limit.
  15377. (sendHandshake): Removed the argument from sendMessages().
  15378. (sendBitfield): Removed the argument from sendMessages().
  15379. * src/PeerAbstractCommand.cc
  15380. (execute): Commented out the portion of upload limit.
  15381. (onAbort): Removed peer->resetStatus().
  15382. * src/TorrentRequestInfo.cc
  15383. (timeoutSpecified): Declared extern.
  15384. (execute): Set timeout to 180 if timeout is not specified by.
  15385. command-line.
  15386. * src/PieceMessage.cc
  15387. (receivedAction): Added peer->updateDownloadLength().
  15388. Removed peer->addPeerUpload().
  15389. Removed torrentMan->addDeltaDownloadLength().
  15390. (send): Added peer->updateUploadLength().
  15391. Removed peer->addPeerDownload().
  15392. Removed torrentMan->addDeltaUploadLength().
  15393. * src/main.cc
  15394. (timeoutSpecified): New variable.
  15395. (main): Set timeoutSpecified to false.
  15396. If the command-line option "--upload-limit" is specified, then
  15397. timeoutSpecified is set to true. This option will remain in the next
  15398. release, but be deprecated in the future release.
  15399. * src/TorrentRequestInfo.h
  15400. (TorrentRequestInfo): Removed const qualifier from op.
  15401. * src/PeerStat.h
  15402. (uploadSpeed): New variable.
  15403. (PeerStat): Added default value to cuid.
  15404. (calculateUploadSpeed): New function.
  15405. (updateUploadLength): New function.
  15406. (getMaxUploadSpeed): New function.
  15407. (getAvgUploadSpeed): New function.
  15408. (reset): Added uploadSpeed. Set status to IDLE.
  15409. * src/TorrentDownloadEngine.h
  15410. (cp): Declared as Time.
  15411. (sessionDownloadLengthArray): Removed.
  15412. (sessionUploadLengthArray): Removed.
  15413. (currentCp): Removed.
  15414. (lastCalcStat): New variable
  15415. (lastElapsed): Removed.
  15416. (sessionDownloadLength): Removed.
  15417. (calculateStat): New function.
  15418. * src/TorrentDownloadEngine.cc
  15419. (initStatistics): Removed lastElapsed, cp[],
  15420. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15421. currentCp, sessionDownloadLength.
  15422. Added cp.reset() and lastCalcStat.reset().
  15423. (calculateSpeed): Changed the name of the argument.
  15424. (calculateStatistics): Rewritten.
  15425. (calculateStat): New function.
  15426. * src/Peer.h
  15427. (PeerStat.h): Included.
  15428. (peerUpload): Removed.
  15429. (peerDownload): Removed.
  15430. (peerStat): New variable.
  15431. (sessionUploadLength): New variable.
  15432. (sessionDownloadLength): New variable.
  15433. (deltaUpload): Removed.
  15434. (deltaDownload): Removed.
  15435. (resetStatus): Made private.
  15436. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15437. Removed peerUpload, peerDownload.
  15438. (updateUploadLength): New function.
  15439. (addDeltaUpload): Removed.
  15440. (updateDownloadLength): New function.
  15441. (resetDeltaUpload): Removed.
  15442. (getDeltaUpload): Removed.
  15443. (addDeltaDownload): Removed.
  15444. (calculateUploadSpeed): New function.
  15445. (resetDeltaDownload): Removed.
  15446. (getDeltaDownload): Removed.
  15447. (calculateDownloadSpeed): New function.
  15448. (getSessionUploadLength): New function.
  15449. (getSessionDownloadLength): New function.
  15450. (activate): New function.
  15451. (deactivate): New function.
  15452. (addPeerUpload): Removed.
  15453. (setPeerUpload): Removed.
  15454. (getPeerUpload): Removed.
  15455. (addPeerDownload): Removed.
  15456. (setPeerDownload): Removed.
  15457. (getPeerDownload): Removed.
  15458. * src/Peer.cc
  15459. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15460. * src/MetalinkRequestInfo.h
  15461. (MetalinkRequestInfo): Removed const qualifier from op.
  15462. * src/RequestInfo.h
  15463. (op): Removed const qualifier.
  15464. (RequestInfo): Removed const qualifier from op.
  15465. * src/prefs.h
  15466. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15467. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15468. * src/PeerInteractionCommand.cc
  15469. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15470. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15471. * src/PeerInteraction.cc
  15472. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15473. * src/main.cc
  15474. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15475. Added the description of "--max-download-limit" option.
  15476. Removed the description of "--upload-limit" option.
  15477. Added the description of "--max-upload-limit" option.
  15478. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15479. Added "--max-download-limit" option and "--max-upload-limit" option.
  15480. Added the warning message if "--upload-limit" option is used.
  15481. * src/DownloadCommand.cc
  15482. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15483. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15484. To rewrite segment download mechanism for HTTP/FTP download.
  15485. Use BitfieldMan to manage segment download.
  15486. * src/HttpResponseCommand.h
  15487. (executeInternal): Pass the reference of segment.
  15488. * src/AbstractCommand.cc
  15489. (prepareForRetry): Call segmentMan->cancelSegment here.
  15490. (onAbort): Call segmentMan->cancelSegment here.
  15491. * src/HttpDownloadCommand.cc
  15492. (prepareForNextSegment): New function.
  15493. * src/DownloadEngineFactory.cc
  15494. (newConsoleEngine): Removed splitter.
  15495. (newTorrentConsoleEngine): Removed splitter.
  15496. * src/Request.h
  15497. (segment): Renamed from seg.
  15498. * src/FtpInitiateConnectionCommand.h
  15499. (executeInternal): Pass the reference of segment.
  15500. * src/AbstractCommand.h
  15501. (executeInternal): Pass the reference of segment.
  15502. * src/pref.h
  15503. (PREF_SEGMENT_SIZE): New definition.
  15504. * src/HttpProxyRequestCommand.h
  15505. (executeInternal): Pass the reference of segment.
  15506. * src/HttpResponseCommand.cc
  15507. (checkResponse): Allowed status 206 when a request range starts 0.
  15508. (handleDefaultEncoding): Rewritten the code related to Segment.
  15509. (handleOtherEncoding): Rewritten the code related to Segment.
  15510. * src/SegmentMan.h
  15511. (SegmentEntry): New class.
  15512. (SegmentEntries): New type definition.
  15513. (bitfield): New variable.
  15514. (usedSegmentEntries): New variable.
  15515. (onNullBitfield): New function.
  15516. (checkoutSegment): New function.
  15517. (segments): Removed.
  15518. (splitter): Removed.
  15519. (unregisterId): Removed.
  15520. (getSegment): New function(overload)
  15521. (getDownloadedSize): Removed.
  15522. (cancelSegment): New function.
  15523. (completeSegment): New function.
  15524. (initBitfield): New function.
  15525. (hasSegment): New function.
  15526. (getDownloadLength): New function.
  15527. * src/BitfieldMan.h
  15528. (getStartIndex): New function.
  15529. (getEndIndex): New function.
  15530. (getMissingUnusedIndex): New function(overload).
  15531. (getSparseMissingUnusedIndex): New function.
  15532. * src/BitfieldMan.cc
  15533. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15534. (getMissingUnusedIndex): New function(overload).
  15535. (Range): New class.
  15536. (getStartIndex): New function.
  15537. (getEndIndex): New function.
  15538. (getSparseMissingUnusedIndex): New function.
  15539. (isBitSetInternal): Return false if the given index is less than 0.
  15540. * src/HttpInitiateConnectionCommand.h
  15541. (executeInternal): Pass the reference of segment.
  15542. * src/FtpNegotiateCommand.h
  15543. (executeInternal): Pass the reference of segment.
  15544. * src/FtpNegotiateCommand.cc
  15545. (recvSize): Initialize bitfield here.
  15546. * src/FtpTunnelResponseCommand.h
  15547. (executeInternal): Pass the reference of segment.
  15548. * src/HttpConnection.cc
  15549. (createRequest): Rewritten range header processing.
  15550. * src/DownloadCommand.h
  15551. (executeInternal): Pass the reference of segment.
  15552. (prepareForRetry): Removed.
  15553. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15554. function.
  15555. * src/main.cc
  15556. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15557. * src/SegmentMan.cc
  15558. (SegmentMan): Added bitfield. Removed splitter.
  15559. (~SegmentMan): Added bitfield. Removed splitter.
  15560. (unregisterId): Removed.
  15561. (getSegment): Rewritten.
  15562. (updateSegment): Rewritten.
  15563. (save): Rewritten.
  15564. (read): Rewritten.
  15565. (finished): Rewritten.
  15566. (getDownloadedSize): Removed.
  15567. (initBitfield): New function.
  15568. (FindSegmentEntryByIndex): New function object.
  15569. (FindSegmentEntryByCuid): New function object.
  15570. (checkoutSegment): New function.
  15571. (onNullBitfield): New function.
  15572. (getSegment): New function(overload).
  15573. (CancelSegment): New function object.
  15574. (cancelSegment): New function.
  15575. (completeSegment): New function.
  15576. (hasSegment): New function.
  15577. (getDownloadLength): New function.
  15578. * src/FtpInitiateConnectionCommand.cc
  15579. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15580. * src/Segment.h: Rewritten.
  15581. * src/Segment.cc (operator<<): New function.
  15582. * src/HttpDownloadCommand.h
  15583. (prepareForNextSegment): New function.
  15584. * src/Request.cc
  15585. (resetUrl): Made segment null.
  15586. * src/DownloadEngine.cc
  15587. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15588. * src/HttpProxyRequestCommand.h
  15589. (executeInternal): Pass the reference of segment.
  15590. * src/DownloadCommand.cc
  15591. (executeInternal): Rewritten the code related to Segment.
  15592. (prepareForRetry): Removed.
  15593. (prepareForNextSegment): Rewritten.
  15594. * src/FtpTunnelResponseCommand.h
  15595. (executeInternal): Pass the reference of segment.
  15596. To add HTTP 1.1 persistent connection support(experimental)
  15597. * src/HttpRequestCommand.cc
  15598. (executeInternal): Disable keep alive if it is disabled by
  15599. configuration.
  15600. * src/Request.h
  15601. (keepAlive): New variable.
  15602. (isKeepAlive): New function.
  15603. (setKeepAlive): New function.
  15604. * src/pref.h
  15605. (PREF_HTTP_KEEP_ALIVE): New definition.
  15606. * src/HttpResponseCommand.cc
  15607. (executeInternal): Check the remote server supports keep alive.
  15608. * src/HttpConnection.cc
  15609. (createRequest): Send "Connection: close" only if keep alive is
  15610. disabled.
  15611. * src/main.cc
  15612. (main):
  15613. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15614. To add max download speed limit:
  15615. * src/pref.h
  15616. (PREF_MAX_SPEED_LIMIT): New definition.
  15617. * src/PeerInteractionCommand.cc
  15618. (executeInternal): Added max download speed limit. Not tested yet.
  15619. * src/SegmentMan.h
  15620. (PeerStats): New type definition.
  15621. (peerStats): New variable.
  15622. (registerPeerStat): New function.
  15623. (FindPeerStat): New function object.
  15624. (getPeerStat): New function.
  15625. (calculateDownloadSpeed): New function.
  15626. * src/SpeedCalc.h: New class.
  15627. * src/SpeedCalc.cc: New class.
  15628. * src/main.cc
  15629. (main):
  15630. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15631. download speed is not restricted).
  15632. * src/PeerStat.h: New class.
  15633. * src/SegmentMan.cc
  15634. (registerPeerStat): New function.
  15635. (calculateDownloadSpeed): New function.
  15636. * src/DownloadCommand.cc
  15637. (STARTUP_IDLE_TIME): New definition.
  15638. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15639. downloadStart.
  15640. (~DownloadCommand): Call peerStat->downloadStop.
  15641. (executeInternal): Added download speed limitter. Rewritten lowest
  15642. speed limitter.
  15643. * src/HttpConnection.cc
  15644. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15645. * src/AbstractCommand.cc
  15646. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15647. Added hostname to the error message.
  15648. * src/ConsoleDownloadEngine.cc
  15649. (calculateStatistics): Initialize psize with dlSize.
  15650. * src/PieceMessage.cc
  15651. (receivedAction): Do not call peerInteraction->abortPiece here.
  15652. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15653. * src/BitfieldMan.h
  15654. (clearAllUseBit): New function.
  15655. (setAllUseBit): New function.
  15656. * src/BitfieldMan.cc
  15657. (clearAllBit): Do not clear useBitfield here.
  15658. (clearAllUseBit): New function.
  15659. (setAllUseBit): New function.
  15660. * src/Piece.cc
  15661. (clearAllBlock): Call bitfield->clearAllUseBit().
  15662. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15663. To make filename URL-decoded:
  15664. * src/HttpResponseCommand.h: Updated doc.
  15665. * src/HttpResponseCommand.cc
  15666. (determinFilename): Made filename URL-decoded.
  15667. * src/FtpInitiateConnectionCommand.cc
  15668. (executeInternal): Made filename URL-decoded.
  15669. * src/Util.h (urldecode): New function.
  15670. * src/Util.cc (urldecode): New function.
  15671. To fix a bug that caused assertion failure in ares_strerror:
  15672. * src/NameResolver.cc (callback): Fixed the bug.
  15673. * Release 0.7.3
  15674. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15675. To add --seed-time and --seed-ratio command-line option:
  15676. * src/Option.h (getAsDouble): New function.
  15677. * src/Option.cc (getAsDouble): New function.
  15678. * src/SeedCheckCommand.h: New class.
  15679. * src/SeedCheckCommand.cc: New class.
  15680. * src/DownloadEngineFactory.cc
  15681. (SeedCheckCommand.h): Included.
  15682. (UnionSeedCriteria.h): Included.
  15683. (TimeSeedCriteria.h): Included.
  15684. (ShareRatioSeedCriteria.h): Included.
  15685. (newTorrentConsoleEngine): Added the processing of seed option.
  15686. * src/SeedCriteria.h: New class.
  15687. * src/ShareRatioSeedCriteria.h: New class.
  15688. * src/TimeSeedCriteria.h: New class.
  15689. * src/UnionSeedCriteria.h: New class.
  15690. * src/prefs.h
  15691. (PREF_SEED_TIME): New definition.
  15692. (PREF_SEED_RATIO): New definition.
  15693. * src/main.cc
  15694. (showUsage): Added --seed-time and --seed-ratio option.
  15695. (main): Added --seed-time and --seed-ratio option.
  15696. Made default log file name "/dev/null".
  15697. * src/SharedHandle.h
  15698. (SharedHandle): Copy constructor. Made it assignable from the
  15699. SharedHandle of the subclasses.
  15700. (operator=): Made it assignable from the SharedHandle of the
  15701. subclasses.
  15702. (getRefCount): New function.
  15703. To add notice log level and the switch to write log to stdout. This
  15704. switch is configurable per log level.
  15705. * src/Logger.h
  15706. (notice): New function.
  15707. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15708. constant.
  15709. * src/LogFactory.cc
  15710. (getInstance): The use of NullLogger was removed. A log message with
  15711. notice log level was made written to stdout along with log file.
  15712. * src/NullLogger.h
  15713. (notice): New function.
  15714. * src/SimpleLogger.h
  15715. (writeHeader): Added the 'file' argument.
  15716. (writeLog): Added the 'file' argument.
  15717. (writeFile): New function.
  15718. (stdoutField): New variable.
  15719. (SimpleLogger): Removed the default constructor.
  15720. (SimpleLogger): Made the default value of logfile 0.
  15721. (debug): Added 'virtual' keyword.
  15722. (info): Added 'virtual' keyword.
  15723. (warn): Added 'virtual' keyword.
  15724. (error): Added 'virtual' keyword.
  15725. (notice): New function.
  15726. (setStdout): New function.
  15727. * src/SimpleLogger.cc
  15728. (WRITE_LOG): Replaced writeLog with writeFile.
  15729. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15730. (SimpleLogger): Removed the default constructor.
  15731. (setStdout): New function.
  15732. (writeLog): Added the handling of NOTICE log level.
  15733. (writeFile): New function.
  15734. (notice): New function.
  15735. * src/TorrentMan.h: Updated doc.
  15736. * src/BitfieldMan.h: Updated doc.
  15737. * src/TrackerWatcherCommand.cc
  15738. (execute): Return true if error occurred in the request to the tracker
  15739. and halt is requested.
  15740. * src/TrackerUpdateCommand.cc
  15741. (execute): Return true if error occurred in the request to the tracker
  15742. and halt is requested.
  15743. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15744. DownloadEngine:
  15745. * src/TorrentConsoleDownloadEngine.h
  15746. (onSelectiveDownloadingCompletes): Removed.
  15747. * src/TorrentConsoleDownloadEngine.cc
  15748. (onSelectiveDownloadingCompletes): Removed.
  15749. * src/TorrentDownloadEngine.h
  15750. (onEndOfRun): Added 'virtual' keyword.
  15751. (afterEachIteration): Removed.
  15752. (onSelectiveDownloadingCompletes): Removed.
  15753. * src/TorrentDownloadEngine.cc
  15754. (onEndOfRun): Removed filenameFixed.
  15755. (afterEachIteration): Removed.
  15756. * src/TorrentMan.cc
  15757. (completePiece): Call onDownloadComplete here.
  15758. (onDownloadComplete): Added 2 log messages.
  15759. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15760. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15761. * src/NameResolver.h: Added the prototype declaration of callback().
  15762. To support c-ares library:
  15763. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15764. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15765. * src/FtpInitiateConnectionCommand.h:
  15766. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15767. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15768. * src/HttpInitiateConnectionCommand.h:
  15769. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15770. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15771. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15772. #1542285 by tizianomueller)
  15773. * src/HttpInitiateConnectionCommand.cc:
  15774. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15775. * src/FtpInitiateConnectionCommand.cc:
  15776. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15777. * src/DownloadEngine.h:
  15778. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15779. * src/DownloadEngine.cc:
  15780. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15781. To fix the bug that causes compilation failure with metalink-support
  15782. disabled(bug#1543587):
  15783. * src/main.cc: Fixed with the patch by tizianomueller.
  15784. * Release 0.7.2
  15785. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15786. * src/main.cc
  15787. (main): Added a message to inform users that aria2 is starting to
  15788. verify checksum.
  15789. * src/RequestInfo.cc
  15790. (printDownloadAbortMessage): Added a message to inform users that
  15791. transfer can be resumed.
  15792. * src/FeatureConfig.cc
  15793. (FEATURE_ASYNC_DNS): New definition.
  15794. (FeatureConfig): Added aysnc DNS entry.
  15795. To replace CommandUuid with Command* in SocketEntry and
  15796. NameResolverEntry:
  15797. * src/DownloadEngine.h
  15798. (CommandUuids): Removed.
  15799. (SocketEntry::commandUuid): Removed.
  15800. (SocketEntry::command): New variable.
  15801. (SocketEntry::SocketEntry): Updated.
  15802. (SocketEntry::operator==): Updated.
  15803. (NameResolverEntry::commandUuid): Removed.
  15804. (NameResolverEntry::command): New variable.
  15805. (NameResolverEntry::NameResolverEntry): Updated.
  15806. (NameResolverEntry::operator==): Updated.
  15807. (waitData): Changed the argument type.
  15808. (addSocketForReadCheck): Changed the argument type.
  15809. (deleteSocketForReadCheck): Changed the argument type.
  15810. (addSocketForWriteCheck): Changed the argument type.
  15811. (deleteSocketForWriteCheck): Changed the argument type.
  15812. (addNameResolverCheck): Changed the argument type.
  15813. (deleteNameResolverCheck): Changed the argument type.
  15814. * src/DownloadEngine.cc
  15815. (FindCommand): Removed.
  15816. (run): Removed activeUuid. Added activeCommands instead.
  15817. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15818. (AccumulateActiveCommand): New function object.
  15819. (waitData): Use AccumulateActiveCommand.
  15820. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15821. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15822. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15823. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15824. (addNameResolverCheck): Use Command instead of CommandUuid.
  15825. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15826. * src/AbstractCommand.cc
  15827. (disableReadCheckSocket): Updated according to the changes in
  15828. DownloadEngine.
  15829. (setReadCheckSocket): Updated according to the changes in
  15830. DownloadEngine.
  15831. (disableWriteCheckSocket): Updated according to the changes in
  15832. DownloadEngine.
  15833. (setWriteCheckSocket): Updated according to the changes in
  15834. DownloadEngine.
  15835. (setNameResolverCheck): Updated according to the changes in
  15836. DownloadEngine.
  15837. (disableNameResolverCheck): Updated according to the changes in
  15838. DownloadEngine.
  15839. * src/AbstractCommand.cc
  15840. (disableReadCheckSocket): Updated according to the changes in
  15841. DownloadEngine.
  15842. (setReadCheckSocket): Updated according to the changes in
  15843. DownloadEngine.
  15844. (disableWriteCheckSocket): Updated according to the changes in
  15845. DownloadEngine.
  15846. (setWriteCheckSocket): Updated according to the changes in
  15847. DownloadEngine.
  15848. * release 0.7.1
  15849. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15850. To handle the case where some BitTorrent tracker requires all letters
  15851. except for [A-Za-z0-9] is URL encoded.
  15852. * src/Util.h
  15853. (torrentUrlencode): New function.
  15854. * src/Util.cc
  15855. (ctype.h): Included.
  15856. (torrentUrlencode): New function.
  15857. * src/TrackerWatcherCommand.cc
  15858. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15859. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15860. To add asynchronous DNS support(libares):
  15861. * src/AbstractCommand.h
  15862. (setNameResolverCheck): New function.
  15863. (disableNameResolverCheck): New function
  15864. (resolveHostname): New function.
  15865. * src/AbstractCommand.cc
  15866. (setNameResolverCheck): New function.
  15867. (disableNameResolverCheck): New function
  15868. (resolveHostname): New function.
  15869. * src/FtpInitiateConnectionCommand.h
  15870. (nameResolver): New function.
  15871. * src/FtpInitiateConnectionCommand.cc
  15872. (Util.h): Included.
  15873. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15874. disableWriteCheckSocket.
  15875. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15876. (executeInternal): Added async DNS support.
  15877. * src/HttpInitiateConnectionCommand.h
  15878. (nameResolver): New function.
  15879. * src/HttpInitiateConnectionCommand.cc
  15880. (DlRetryEx.h): Included.
  15881. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15882. disableWriteCheckSocket.
  15883. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15884. (executeInternal): Added async DNS support.
  15885. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15886. by extern "C" declaration.
  15887. * src/NameResolver.cc: New class.
  15888. * src/Util.h:
  15889. (isNumberAndDotsNotation): New function
  15890. * src/Util.cc
  15891. (isNumberAndDotsNotation): New function.
  15892. * src/DownloadEngine.h
  15893. (NameResolver.h): Included.
  15894. (NameResolverEntry): New class.
  15895. (NameResolverEntries): New type definition.
  15896. (addNameResolverCheck): New function.
  15897. (deleteNameResolverCheck): New function.
  15898. * src/DownloadEngine.cc
  15899. (run): Initialize cp with 0.
  15900. (SetDescriptor::operator()): Added for NameResolverEntry.
  15901. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15902. (waitData): Check nameResolver entries.
  15903. (updateFdSet): Update fds in nameResolver entries.
  15904. (addNameResolverCheck): New function.
  15905. (deleteNameResolverCheck): new function.
  15906. * src/PeerInteractionCommand.cc
  15907. (executeInternal): Fixed wrong socket handling.
  15908. * src/main.cc
  15909. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15910. * src/Util.cc
  15911. (fileChecksum): Removed the call to ctx.digestReset().
  15912. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15913. * po/ru.po: Azamat sent me Russian translation.
  15914. * src/FtpNegotiateCommand.cc
  15915. (recvGreeting): Call disableWriteCheckSocket just after
  15916. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15917. (recvRetr): Recognized status code 125 as a acceptable response code.
  15918. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15919. case-insesitive filesystem(BUG#1531057).
  15920. * src/Time.h: Renamed as TimeA2.h.
  15921. * src/Time.cc: Renamed as TimeA2.cc.
  15922. * src/TimeA2.h: New class.
  15923. * src/TimeA2.cc: New class.
  15924. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15925. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15926. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15927. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15928. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15929. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15930. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15931. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15932. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15933. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15934. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15935. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15936. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15937. * release 0.7.0
  15938. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15939. * src/PeerChokeCommand.h
  15940. (PeerChokeCommand): Rearranged the arguments.
  15941. * src/PeerChokeCommand.cc
  15942. (PeerChokeCommand): Rearranged the arguments.
  15943. * src/MetalinkEntry.h
  15944. (Checksum.h): Included.
  15945. (md5): Removed.
  15946. (sha1): Removed.
  15947. (checksum): New variable.
  15948. (operator=): Updated.
  15949. (check): Removed.
  15950. * src/prefs.h
  15951. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15952. (PREF_FOLLOW_TORRENT): New definition.
  15953. (PREF_SELECT_FILE): New definition.
  15954. (PREF_FOLLOW_METALINK): New definition.
  15955. * src/MetalinkResource.h
  15956. (TYPE_HTTPS): Added to enum TYPE.
  15957. * src/TorrentMan.cc
  15958. (~TorrentMan): Rewritten.
  15959. * src/MultiDiskWriter.cc
  15960. (MultiDiskAdaptor): Updated according to the changes in
  15961. MessageDigestContext.
  15962. (~MultiDiskAdaptor): Updated according to the changes in
  15963. MessageDigestContext.
  15964. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15965. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15966. * src/Util.h
  15967. (fileChecksum): Updated according to the changes in
  15968. MessageDigestContext.
  15969. * src/Util.cc
  15970. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15971. (fileChecksum): Updated according to the changes in
  15972. MessageDigestContext.
  15973. * src/messageDigest.h: Rewritten.
  15974. * src/MetalinkEntry.cc
  15975. (check): Removed.
  15976. (Supported): Updated.
  15977. (dropUnsupportedResource): Fixed a memory leak.
  15978. * src/ShaVisitor.cc
  15979. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15980. (~ShaVisitor): Updated according to the changes in
  15981. MessageDigestContext.
  15982. (visit): Updated according to the changes in MessageDigestContext.
  15983. * src/main.cc
  15984. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15985. command-line option added.
  15986. * src/DownloadEngine.h
  15987. (SocketEntry): New class.
  15988. (SocketEntries): New definition.
  15989. (PairFind): Removed.
  15990. (SockCmdMap): Removed.
  15991. * src/DownloadEngine.cc
  15992. (DownloadEngine): Rewritten.
  15993. (~DownloadEngine): Rewritten.
  15994. (run): Renamed activeCommandUuids as activeUuids.
  15995. (SetDescriptor): Rewritten.
  15996. (AccumulateActiveCommandUuid): Removed.
  15997. (AccumulateActiveUuid): New function object.
  15998. (waitData): Rewritten.
  15999. (updateFdSet): Rewritten.
  16000. (addSocket): Rewritten.
  16001. (deleteSocket): Rewritten.
  16002. (addSocketForReadCheck): Rewritten.
  16003. (deleteSocketForReadCheck): Rewritten.
  16004. (addSocketForWriteCheck): Rewritten.
  16005. (deleteSocketForWriteCheck): Rewritten.
  16006. * src/Xml2MetalinkProcessor.cc
  16007. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16008. * src/DownloadCommand.cc
  16009. (executeInternal): Added the check routine for lowest speed limit.
  16010. * src/AbstractDiskWriter.cc
  16011. (AbstractDiskWriter): Updated according to the changes in
  16012. MessageDigestContext.
  16013. (~AbstractDiskWriter): Updated according to the changes in
  16014. MessageDigestContext.
  16015. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16016. * src/RequestInfo.h: New class.
  16017. * src/UrlRequestInfo.h: New class.
  16018. * src/UrlRequestInfo.cc: New class.
  16019. * src/TorrentRequestInfo.h: New class.
  16020. * src/TorrentRequestInfo.cc: New class.
  16021. * src/MetalinkRequestInfo.h: New class.
  16022. * src/MetalinkRequestInfo.cc: New class.
  16023. * src/Checksum.h: New class.
  16024. * src/DownloadEngineFactory.h: New class.
  16025. * src/DownloadEngineFactory.cc: New class.
  16026. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16027. * src/Option.h
  16028. (getAsBool): New function.
  16029. * src/Option.cc
  16030. (prefs.h): Included.
  16031. (defined): 0-length value is now recognized as undefined.
  16032. (getAsInt): Rewritten.
  16033. (getAsLLInt): Rewritten.
  16034. (getAsBool): New function.
  16035. * src/FeatureConfig.h: Rewritten.
  16036. * src/FeatureConfig.cc: Rewritten.
  16037. * src/prefs.h
  16038. (PREF_STDOUT_LOG): New definition.
  16039. (PREF_LOG): New definition.
  16040. (PREF_DIR): New definition.
  16041. (PREF_OUT): New definition.
  16042. (PREF_SPLIT): New definition.
  16043. (PREF_DAEMON): New definition.
  16044. (PREF_REFERER): New definition.
  16045. (PREF_TORRENT_FILE): New definition.
  16046. (PREF_LISTEN_PORT): New definition.
  16047. (PREF_METALINK_FILE): New definition.
  16048. (PREF_METALINK_VERSION): New definition.
  16049. (PREF_METALINK_LANGUAGE): New definition.
  16050. (PREF_METALINK_OS): New definition.
  16051. (PREF_METALINK_SERVERS): New definition.
  16052. * src/main.cc
  16053. (main): Following command-line parameters are now put into Option
  16054. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16055. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16056. metalinkLanguage, metalinkOs, metalinkServers
  16057. To fix the bug that aria2 can not handle http response header properly.
  16058. * src/HttpHeader.cc
  16059. (put): Made name lowercased.
  16060. (defined): Made name lowercased.
  16061. (getFirst): Made name lowercased.
  16062. (get): Made name lowercased.
  16063. (getFirstAsInt): Rewritten.
  16064. (getFirstAsLLInt): Rewritten.
  16065. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16066. * src/TorrentMan.h:
  16067. (advertisePiece): Updated doc.
  16068. (getAdvertisedPieceIndexes): Updated doc.
  16069. (removeAdvertisedPiece); New function.
  16070. * src/TorrentMan.cc
  16071. (FindElapsedHave): New function object.
  16072. (removeAdvertisedPiece): New function.
  16073. * src/HaveEraseCommand.h: New class.
  16074. * src/HaveEraseCommand.cc: New class.
  16075. * src/FeatureConfig.h: New class.
  16076. * src/FeatureConfig.cc: New class.
  16077. * src/Request.h
  16078. (defaultPorts): Removed.
  16079. * src/Request.cc
  16080. (FeatureConfig.h): Included.
  16081. (Request): Removed the statements related to defaultPorts.
  16082. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16083. A default port number is now retrieved from FeatureConfig.
  16084. * src/main.cc
  16085. (HaveEraseCommand.h): Included.
  16086. (showVersion): Added the output of feature list.
  16087. (main): Added HaveEraseCommand to command queue in BitTorrent
  16088. downloading.
  16089. * src/PeerInteractionCommand.h
  16090. (chokeCheckPoint): Commented out.
  16091. (periodicExecPoint): New variable.
  16092. * src/PeerInteractionCommand.cc
  16093. (executeInternal): Following methods are now called in at least every
  16094. 0.5 seconds to reduce CPU usage:
  16095. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16096. checkHave(), sendKeepAlive().
  16097. (checkLongTimePeerChoking): Commented out.
  16098. * src/BitfieldMan.h
  16099. (getNthBitIndex): Changed the method signature.
  16100. (getMissingIndexRandomly): Changed the method signature.
  16101. * src/BitfieldMan.cc
  16102. (getNthBitIndex): Rewritten
  16103. (getMissingIndexRandomly): Rewritten.
  16104. (hasMissingPiece): Rewritten.
  16105. (getMissingIndex): Refactored.
  16106. (getMissingUnusedIndex); Refactored.
  16107. (getMissingIndex): Refactored.
  16108. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16109. * src/PeerMessage.h
  16110. (Piece.h): Included.
  16111. (SharedHandle.h): Included.
  16112. (invalidate): New variable.
  16113. (uploading): New variable.
  16114. (isInvalidate): New function.
  16115. (isUploading): New function.
  16116. (onPush): New function.
  16117. (onChoked): New function.
  16118. (onCanceled): New function.
  16119. (onAbortPiece): New function.
  16120. (PeerMessageHandle): New type definition.
  16121. * src/PeerMessage.cc
  16122. (PeerMessage): Added the initialization for invalidate and uploading.
  16123. * src/CancelMessage.h
  16124. (CancelMessage): Rewritten.
  16125. * src/RejectMessage.h
  16126. (RejectMessage): Rewritten.
  16127. * src/Metalinker.h
  16128. (operator=): Defined.
  16129. * src/MetaEntry.h
  16130. (operator=): Defined.
  16131. * src/MetalinkResource.h
  16132. (operator=): Defined.
  16133. * src/AllowedFastMessage.h
  16134. (AllowedFastMessage): Rewritten.
  16135. * src/HandshakeMessage.h
  16136. (HandshakeMessage): New function(overload).
  16137. * src/HandshakeMessage.cc
  16138. (HandshakeMessage): Rewritten.
  16139. (init): New function.
  16140. * src/HaveMessage.h
  16141. (HaveMessage): Rewritten.
  16142. * src/Time.h
  16143. (operator=): Defined the function body here.
  16144. * src/Time.cc
  16145. (operator=): Removed.
  16146. * src/SocketCore.h
  16147. (operator==): Defined here.
  16148. (operator!=): Defined here.
  16149. (operator<): Defined here.
  16150. * src/SocketCore.cc
  16151. (operator==): Removed.
  16152. (operator<): Removed.
  16153. * src/BitfieldMan.h
  16154. (operator=): Defined the function body here.
  16155. * src/BitfieldMan.cc
  16156. (operator=): Removed.
  16157. * src/TorrentMan.h
  16158. (deleteErrorPeer): Removed.
  16159. (deleteUnusedPeer); New function.
  16160. * src/TorrentMan.cc
  16161. (addPeer): Call deleteUnusedPeer.
  16162. (deleteErrorPeer): Removed.
  16163. (deleteUnusedPeer): New function.
  16164. * src/PeerAbstractCommand.h
  16165. (setNoCheck): New function.
  16166. (noCheck): New variable.
  16167. * src/PeerAbstractCommand.cc
  16168. (PeerAbstractCommand): Added the initialization of noCheck.
  16169. (execute): Added a check for noCheck.
  16170. (setNoCheck): New function.
  16171. * src/Util.h
  16172. (stdio.h): Included.
  16173. * src/Util.cc
  16174. (unistd.h): Included.
  16175. * src/DefaultDiskWriter.cc
  16176. (unistd.h): Included.
  16177. * src/Peer.h
  16178. (operator==): Defined the function body here.
  16179. (operator!=): Defined the function body here.
  16180. * src/Peer.cc
  16181. (operator==): Removed.
  16182. (operator!=): Removed.
  16183. * src/Piece.h
  16184. (Piece): Defined the function body here(copy constructor).
  16185. (operator=): Defined the function body here.
  16186. (operator==): Defined the function body here.
  16187. * src/Piece.cc
  16188. (Piece): Removed(copy constructor).
  16189. (operator=): Removed.
  16190. (operator==): Removed.
  16191. * src/PeerMessageUtil.h
  16192. (ChokeMessage.h): Removed.
  16193. (UnchokeMessage.h): Removed.
  16194. (InterestedMessage.h): Removed.
  16195. (NotInterestedMessage.h): Removed.
  16196. (HaveMessage.h): Removed.
  16197. (BitfieldMessage.h): Removed.
  16198. (RequestMessage.h): Removed.
  16199. (CancelMessage.h): Removed.
  16200. (PieceMessage.h): Removed.
  16201. (HandshakeMessage.h): Removed.
  16202. (KeepAliveMessage.h): Removed.
  16203. (PortMessage.h): Removed.
  16204. (HaveAllMessage.h): Removed.
  16205. (HaveNoneMessage.h): Removed.
  16206. (PeerConnection.h): Removed.
  16207. (HandshakeMessage.h): Included.
  16208. * src/BitfieldMessage.h
  16209. (init): New function.
  16210. (BitfieldMessage): Rewritten.
  16211. (BitfieldMessage): New function(overload).
  16212. * src/RequestSlot.h
  16213. (operator=): Defined the function body here.
  16214. (operator==): Defined the function body here.
  16215. * src/RequestSlot.cc
  16216. (operator=): Removed.
  16217. (operator==): Removed.
  16218. To remove the dependency on the PeerMessage subclass from
  16219. PeerInteraction:
  16220. * src/PeerMessageFactory.h: New class.
  16221. * src/PeerMessageFactory.cc: New class.
  16222. * src/SimplePeerMessage.cc
  16223. (send): If invalidate is true then do nothing.
  16224. * src/PeerInteractionCommand.cc
  16225. (HandshakeMessage.h): Included.
  16226. (KeepAliveMessage.h): Included.
  16227. (ChokeMessage.h): Included.
  16228. (UnchokeMessage.h): Included.
  16229. (HaveMessage.h): Included.
  16230. (executeInternal): Call setNoCheck().
  16231. Removed setWriteCheckSocket(socket).
  16232. * src/PeerInteraction.h
  16233. (ChokeMessage.h): Removed.
  16234. (UnchokeMessage.h): Removed.
  16235. (InterestedMessage.h): Removed.
  16236. (NotInterestedMessage.h): Removed.
  16237. (HaveMessage.h): Removed.
  16238. (BitfieldMessage.h): Removed.
  16239. (RequestMessage.h): Removed.
  16240. (CancelMessage.h): Removed.
  16241. (PieceMessage.h): Removed.
  16242. (HandshakeMessage.h): Removed.
  16243. (KeepAliveMessage.h): Removed.
  16244. (PortMessage.h): Removed.
  16245. (HaveAllMessage.h): Removed.
  16246. (HaveNoneMessage.h): Removed.
  16247. (RejectMessage.h): Removed.
  16248. (AllowedFastMessage.h): Removed.
  16249. (SuggestPieceMessage.h): Removed.
  16250. (PeerMessageFactory.h): Included.
  16251. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16252. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16253. (PeerMessageFactory): New variable.
  16254. (createPeerMessage): Removed.
  16255. (createHandshakeMessage): Removed.
  16256. (setPeerMessageCommonProperty): Removed.
  16257. (addRequestSlot): New function.
  16258. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16259. (getPeerMessageFactory): New function.
  16260. (createRequestMessage): Removed.
  16261. (createCancelMessage): Removed.
  16262. (createPieceMessage): Removed.
  16263. (createHaveMessage): Removed.
  16264. (createChokeMessage): Removed.
  16265. (createUnchokeMessage): Removed.
  16266. (createInterestedMessage): Removed.
  16267. (createNotInterestedMessage): Removed.
  16268. (createBitfieldMessage): Removed.
  16269. (createKeepAliveMessage): Removed.
  16270. (createHaveAllMessage): Removed.
  16271. (createHaveNoneMessage): Removed.
  16272. (createRejectMessage): Removed.
  16273. (createAllowedFastMessage): Removed.
  16274. * src/PeerInteraction.cc
  16275. (PeerInteraction): Allocate PeerMessageFactory here.
  16276. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16277. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16278. PieceMessage::ID.
  16279. (addMessage): Simplified by using PeerMessage::onPush().
  16280. (addRequestSlot): New function.
  16281. (rejectAllPieceMessageInQueue): Simplified by using
  16282. PeerMessage::onChoked().
  16283. (rejectPieceMessageInQueue): Simplified by using
  16284. PeerMessage::onCanceled().
  16285. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16286. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16287. (createHandshakeMessage): Removed.
  16288. (createPeerMessage): Removed.
  16289. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16290. (setPeerMessageCommonProperty): Removed.
  16291. (createRequestMessage): Removed.
  16292. (createCancelMessage): Removed.
  16293. (createPieceMessage): Removed.
  16294. (createHaveMessage): Removed.
  16295. (createChokeMessage): Removed.
  16296. (createUnchokeMessage): Removed.
  16297. (createInterestedMessage): Removed.
  16298. (createNotInterestedMessage): Removed.
  16299. (createBitfieldMessage): Removed.
  16300. (createKeepAliveMessage): Removed.
  16301. (createHaveAllMessage): Removed.
  16302. (createHaveNoneMessage): Removed.
  16303. (createRejectMessage): Removed.
  16304. (createAllowedFastMessage): Removed.
  16305. * src/PieceMessage.h
  16306. (createRejectMessage): New function.
  16307. (PieceMessage): Rewritten.
  16308. (onChoked): New function.
  16309. (onCanceled): New function.
  16310. * src/PieceMessage.cc
  16311. (send): If invalidate is true then do nothing, just return.
  16312. (createRejectMessage): New function.
  16313. (onChoked): New function.
  16314. (onCanceled): New function.
  16315. * src/RequestMessage.h
  16316. (RequestMessage): Rewritten.
  16317. (onPush): New function.
  16318. (onAbortPiece): New function.
  16319. * src/RequestMessage.cc
  16320. (onPush): New function.
  16321. (onAbortPiece): New function.
  16322. Update fd_set when a socket is added or deleted in order to improve
  16323. performance:
  16324. * src/DownloadEngine.h
  16325. (rfdset): New variable.
  16326. (wfdset): New variable.
  16327. (updateFdSet): New function.
  16328. * src/DownloadEngine.cc
  16329. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16330. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16331. (waitData): Copy rfdset and wfdset.
  16332. (updateFdSet): New function.
  16333. (addSocket): Call updateFdSet.
  16334. (deleteSocket): Call updateFdSet.
  16335. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16336. To add the support for Metalink3.0 backward compatible links:
  16337. * src/Request.h
  16338. (SAFE_CHARS): Added '#'.
  16339. (METALINK_MARK): New definition.
  16340. * src/Request.cc
  16341. (parseUrl): Added the support for Metalink3.0 backward compatible
  16342. links.
  16343. etc
  16344. * src/PeerInteraction.cc
  16345. (MsgPushBack): Removed.
  16346. (sendMessages): Use STL copy and back_inserter.
  16347. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16348. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16349. * src/TorrentMan.h
  16350. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16351. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16352. * src/SharedHandle.h: New class.
  16353. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16354. * src/HttpResponseCommand.h
  16355. (HttpResponseCommand): Wrapped Socket.
  16356. * src/SocketCore.h
  16357. (operator==): New function.
  16358. (operator!=): New function.
  16359. (operator<): New function.
  16360. (getSockfd): New function.
  16361. (isOpen): New function.
  16362. (writeData): New function.
  16363. * src/SocketCore.cc
  16364. (operator==): New function.
  16365. (operator!=): New function.
  16366. (operator<): New function.
  16367. * src/AbstractCommand.h
  16368. (socket): Changed its type to SocketHandle.
  16369. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16370. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16371. (disableReadCheckSocket): New function.
  16372. (disableWriteCheckSocket): New function.
  16373. (readCheckTarget): Changed its type to SocketHandle.
  16374. (writeCheckTarget): Changed its type to SocketHandle.
  16375. (AbstractCommand): Replaced Socket with SocketHandle.
  16376. * src/AbstractCommand.cc
  16377. (AbstractCommand): Replaced Socket with SocketHandle.
  16378. (~AbstractCommand): Removed the deallocation for Socket object.
  16379. (disableReadCheckSocket): New function.
  16380. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16381. (disableWriteCheckSocket): New function.
  16382. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16383. * src/HttpDownloadCommand.cc
  16384. (DownloadCommand): Replaced Socket with SocketHandle.
  16385. * src/PeerAbstractCommand.h
  16386. (socket): Changed its type to SocketHandle.
  16387. (peer): Changed its type to PeerHandle.
  16388. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16389. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16390. (disableReadCheckSocket): New function.
  16391. (disableWriteCheckSocket): New function.
  16392. (readCheckTarget): Changed its type to SocketHandle.
  16393. (writeCheckTarget): Changed its type to SocketHandle.
  16394. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16395. Replaced Peer with PeerHandle.
  16396. * src/HttpRequestCommand.cc
  16397. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16398. Use disableReadCheckSocket.
  16399. * src/PeerInitiateConnectionCommand.h
  16400. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16401. * src/PeerChokeCommand.cc
  16402. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16403. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16404. (execute): Use PeerHandle.
  16405. * src/PeerConnection.h
  16406. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16407. (socket): Changed its type to SocketHandle.
  16408. (PeerConnection): Replaced Socket with SocketHandle.
  16409. * src/PeerConnection.cc
  16410. (PeerConnection): Replaced Socket with SocketHandle.
  16411. * src/PeerInteractionCommand.h
  16412. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16413. Replaced Peer with PeerHandle.
  16414. * src/PeerInteractionCommand.cc
  16415. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16416. Replaced Peer with PeerHandle.
  16417. (executeInternal): Use disableWriteCheckSocket.
  16418. Use HandshakeMessageHandle.
  16419. (receiveMessages): Use PeerMessageHandle.
  16420. (prepareForNextPeer): Use PeerHandle.
  16421. * src/HttpProxyRequestCommand.h
  16422. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16423. * src/HttpResponseCommand.cc
  16424. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16425. * src/TorrentMan.cc
  16426. (nullPeer): Added external reference.
  16427. (~TorrentMan): Removed the deallocation of the elements of peers.
  16428. (addPeer): Rewritten.
  16429. (isPeerAvailable): Use nullPeer.
  16430. (deleteOldpeers): Replaced with deleteErrorPeer.
  16431. (deleteErrorPeer): New function.
  16432. (getPeer): Use PeerHandle and nullPeer.
  16433. (hasMissingPiece): Replaced Peer with PeerHandle.
  16434. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16435. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16436. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16437. (getMissingPiece): Replaced Peer with PeerHandle.
  16438. * src/FtpNegotiateCommand.cc
  16439. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16440. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16441. (recvGreeting): Use disableWriteCheckSocket.
  16442. (recvPasv): Removed the allocation of Socket.
  16443. Use disableReadCheckSocket.
  16444. (sendRestPasv): Use disableWriteCheckSocket.
  16445. (recvRetr): Changed assertion.
  16446. * src/PeerInteraction.h
  16447. (SharedHandle.h): Included SharedHandle.h.
  16448. (PeerMessageHandle): New type definition.
  16449. (HandshakeMessageHandle): New type definition.
  16450. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16451. (peer): Changed its type to PeerHandle.
  16452. (createHandshakeMessage): Replaced HandshakeMessage with
  16453. HandshakeMessageHandle.
  16454. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16455. (PeerInteraction): Replaced Peer with PeerHandle.
  16456. Replaced Socket with SocketHandle.
  16457. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16458. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16459. (receiveHandshake): Replaced HandshakeMessage with
  16460. HandshakeMessageHandle.
  16461. * src/PeerInteraction.cc
  16462. (PeerInteraction): Replaced Peer with PeerHandle.
  16463. Replaced Socket with SocketHandle.
  16464. (~PeerInteraction): Removed the deallocation of the elements of
  16465. messageQueue.
  16466. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16467. (isSendingMessageInProgress): Replaced PeerMessage with
  16468. PeerMessageHandle.
  16469. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16470. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16471. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16472. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16473. (abortPiece): Use PeerMessageHandle.
  16474. (receiveHandshake): Replaced HandshakeMessage with
  16475. HandshakeMessageHandle. Removed try-catch block.
  16476. (createHandshakeMessage): Replaced HandshakeMessage with
  16477. HandshakeMessageHandle.
  16478. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16479. Removed try-catch block.
  16480. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16481. * src/HttpProxyResponseCommand.cc
  16482. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16483. * src/FtpTunnelResponseCommand.h
  16484. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16485. * src/HttpConnection.cc
  16486. (HttpConnection): Replaced Socket with SocketHandle.
  16487. * src/PeerAbstractCommand.cc
  16488. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16489. (~PeerAbstractCommand): Removed the deallocation of socket.
  16490. Use disableReadCheckSocket, disableWriteCheckSocket.
  16491. (disableReadCheckSocket): New function.
  16492. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16493. (disableWriteCheckSocket): New function.
  16494. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16495. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16496. * src/FtpTunnelRequestCommand.cc
  16497. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16498. (~FtpTunnelRequestCommand): Corrected indentation.
  16499. * src/DownloadCommand.h
  16500. (DownloadCommand): Replaced Socket with SocketHandle.
  16501. * src/PeerListenCommand.cc
  16502. (PeerListenCommand): Removed the initialization of socket.
  16503. (~PeerListenCommand): Removed the deallocation of socket.
  16504. (bindPort): Use SocketHandle.
  16505. (execute): Use SocketHandle and PeerHandle.
  16506. * src/FtpDowndloadCommand.cc
  16507. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16508. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16509. * src/main.cc
  16510. (main): Corrected indentation.
  16511. * src/HttpInitiateConnectionCommand.cc
  16512. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16513. (executeInternal): Removed the allocation of socket.
  16514. * src/HttpRequestCommand.h
  16515. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16516. * src/FtpNegotiationCommand.h
  16517. (dataSocket): Changed its type to SocketHandle.
  16518. (serverSocket): Changed its type to SocketHandle.
  16519. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16520. * src/TorrentMan.h
  16521. (MAX_PEER_UPDATE): Removed.
  16522. (MAX_PEERS): New definition.
  16523. (Peers): The element is now of type PeerHandle.
  16524. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16525. (getPeer): Replaced Peer with PeerHandle.
  16526. (deleteOldErrorPeers): Removed.
  16527. (deleteErrorPeer): New function.
  16528. (hasMissingPiece): Replaced Peer with PeerHandle.
  16529. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16530. (getMissingPiece): Replaced Peer with PeerHandle.
  16531. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16532. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16533. (addActivePeer): Replaced Peer with PeerHandle.
  16534. (deleteActivePeer): Replaced Peer with PeerHandle.
  16535. Added a check for the return value of find.
  16536. * src/FtpTunnelResponseCommand.cc
  16537. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16538. * src/FtpInitiateConnectionCommand.cc
  16539. (executeInternal): Removed the allocation of socket.
  16540. * src/DownloadEngine.h
  16541. (Sockets): An element is now of type SocketHandle.
  16542. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16543. (CommandUuids): New type definition.
  16544. (rsockets): Changed its type to SockCmdMap.
  16545. (wsockets): Changed its type to SockCmdMap.
  16546. (addSocket): Rewritten.
  16547. (deleteSocket): Rewritten.
  16548. (addSocketForReadCheck): Rewritten.
  16549. (deleteSocketForReadCheck): Rewritten.
  16550. (addSocketForWriteCheck): Rewritten.
  16551. (deleteSocketForWriteCheck): Rewritten.
  16552. (PairFind): New template class.
  16553. * src/HttpDownloadCommand.h
  16554. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16555. * src/FtpConnection.cc
  16556. (FtpConnection): Replaced Socket with SocketHandle.
  16557. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16558. block.
  16559. * src/InitiateConnectionCommandFactory.cc
  16560. (DlAbortEx.h): Included DlAbortEx.h.
  16561. (createInitiateConnectionCommand): Throw exception if the protocol of
  16562. requested URI is not supported.
  16563. * src/Peer.cc
  16564. (nullPeer): Changed its type to PeerHandle.
  16565. (operator==): New function.
  16566. (operator!=): New function.
  16567. * src/Peer.h
  16568. (SharedHandle.h): Included SharedHandle.h.
  16569. (operator==): New function.
  16570. (operator!=): New function.
  16571. (Peer): Added the default constructor.
  16572. Use resetStatus() to initialize member variables.
  16573. (nullPeer): Removed.
  16574. * src/TrackerUpdateCommand.cc
  16575. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16576. with MIN_PEERS.
  16577. * src/PeerListenCommand.h
  16578. (socket): Changed its type to SocketHandle.
  16579. * src/Command.h
  16580. (CommandUuid): New type definition.
  16581. (uuid): New variable.
  16582. (uuidGen): New variable.
  16583. (Command): Added the initialization of uuid.
  16584. (getUuid): New function.
  16585. * src/Socket.h
  16586. (Socket): Removed.
  16587. (SocketHandle): New type definition.
  16588. * src/DownloadEngine.h
  16589. (FindCommand): New function object.
  16590. (run): The portion of socket check was rewritten.
  16591. (SetDescriptor): New function object.
  16592. (AccumulateActiveCommandUuid): New function object.
  16593. (waitData): Rewritten.
  16594. (addSocket): Rewritten.
  16595. (deleteSocket): Rewritten.
  16596. (addSocketForReadCheck): Rewritten.
  16597. (addSocketForWriteCheck): Rewritten.
  16598. (deleteSocketForReadCheck): Rewritten.
  16599. (deleteSocketForWriteCheck): Rewritten.
  16600. * src/HttpProxyResponseCommand.h
  16601. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16602. * src/HttpConnection.h
  16603. (socket): Changed its type to SocketHandle.
  16604. (HttpConnection): Replaced Socket with SocketHandle.
  16605. * src/PeerInitiateConnectionCommand.cc
  16606. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16607. (executeInternal): Removed the allocation of socket.
  16608. (prepareForNextPeer): Use PeerHandle.
  16609. * src/PeerMessage.h
  16610. (peer): Changed its type to PeerHandle.
  16611. (getPeer): Replaced Peer with PeerHandle.
  16612. (setPeer): Replaced Peer with PeerHandle.
  16613. * src/DownloadCommand.cc
  16614. (DownloadCommand): Replaced Socket with SocketHandle.
  16615. * src/FtpConnection.h
  16616. (socket): Changed its type to SocketHandle.
  16617. (FtpConnection): Replaced Socket with SocketHandle.
  16618. (sendPort); Replaced Socket with SocketHandle.
  16619. * src/FtpDowndloadCommand.h
  16620. (ctrlSocket): Changed its type to SocketHandle.
  16621. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16622. * src/HttpProxyRequestCommand.cc
  16623. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16624. * src/FtpTunnelRequestCommand.h
  16625. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16626. etc
  16627. * src/PeerChokeCommand.h
  16628. (setAllPeerChoked): Removed.
  16629. (setAllPeerResetDelta): Removed.
  16630. * src/PeerChokeCommand.cc
  16631. (setAllPeerChoked): Removed.
  16632. (ChokePeer): New function object.
  16633. (setAllPeerResetDelta): Removed.
  16634. (ResetDelta): New function object.
  16635. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16636. (execute): Show download speed when the local node is a seeder.
  16637. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16638. using STL.
  16639. * src/TrackerWatcherCommand.h
  16640. (MIN_PEERS): Removed.
  16641. * src/TorrentMan.cc
  16642. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16643. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16644. To fix the bug that .aria2 file is not saved if downloading is stopped
  16645. by the errors:it results that aria2 can not resume downloading:
  16646. * src/main.cc
  16647. (normalDownload): Added the call to save().
  16648. (main): Added the deletion of the elements in 'reserved'.
  16649. To fix log:
  16650. * src/PeerInteraction.cc
  16651. (receiveHandshake): Fixed log.
  16652. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16653. To improve download performance in BitTorrent:
  16654. * src/TorrentMan.cc
  16655. (getPeer): Check the number of connections. Return nullPeer if
  16656. it is greater than MAX_PEER_UPDATE.
  16657. This code was originally here, but was removed in 0.5.1.
  16658. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16659. To improve the conditional compilation:
  16660. * src/MultiDiskWriter.h:
  16661. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16662. * src/MultiDiskWriter.cc:
  16663. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16664. * src/Util.h:
  16665. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16666. Added ENABLE_BITTORRENT around computeFastSet().
  16667. * src/Util.cc:
  16668. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16669. Added ENABLE_BITTORRENT around computeFastSet().
  16670. * src/messageDigest.h:
  16671. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16672. * src/ShaVisitor.h:
  16673. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16674. * src/ShaVisitor.cc:
  16675. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16676. * src/main.cc:
  16677. Added ENABLE_BITTORRENT around includes and blocks related to
  16678. BitTorrent.
  16679. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16680. digest support is not available.
  16681. * src/AbstractDiskWriter.h:
  16682. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16683. * src/AbstractDiskWriter.cc:
  16684. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16685. * src/MetalinkEntry.cc
  16686. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16687. support is not available.
  16688. To add command-line options for Metalink:
  16689. * src/main.cc:
  16690. Added metalink-version, metalink-language, metalink-os,
  16691. follow-metalink.
  16692. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16693. * src/main.cc: Use these definition.
  16694. * Release 0.6.0
  16695. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16696. To add Metalink support(http/ftp only):
  16697. * src/AbstractCommand.h
  16698. (tryReserved): New function.
  16699. * src/AbstractCommand.cc
  16700. (execute): Call tryReserved().
  16701. (tryReserved): New function.
  16702. * src/Request.h
  16703. (Requests): New type definition.
  16704. * src/SegmentMan.h
  16705. (reserved): New variable.
  16706. * src/Util.h
  16707. (fileChecksum): New function.
  16708. (toUpper): New function.
  16709. (toLower): New function.
  16710. * src/Util.cc
  16711. (messageDigest.h): Included.
  16712. (trim): Trim \r\n\t.
  16713. (fileChecksum): New function.
  16714. (toUpper): New function.
  16715. (toLower): New function.
  16716. * src/main.cc
  16717. (normalDownload): New function.
  16718. (main): Added 2 command-line options: metalink-file,
  16719. metalink-connection. Their usage has not been written yet.
  16720. * src/MetalinkProcessor.h: New class.
  16721. * src/Xml2MetalinkProcessor.h: New class.
  16722. * src/Xml2MetalinkProcessor.cc: New class.
  16723. * src/MetalinkEntry.h: New class.
  16724. * src/MetalinkEntry.cc: New class.
  16725. * src/MetalinkResource.h: New class.
  16726. * src/MetalinkResource.cc: New class.
  16727. To add md5 message digest checking:
  16728. * src/messageDigest.h: Rewritten.
  16729. * src/MultiDiskWriter.cc: Updated according to the changes in
  16730. messageDigest.h.
  16731. * src/ShaVisitor.cc: Updated according to the changes in
  16732. messageDigest.h.
  16733. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16734. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16735. messageDigest.h.
  16736. To fix a bug that causes segfault when the payload length in peer
  16737. message is less than 0:
  16738. * src/PeerConnection.cc:
  16739. (receiveMessage): Fixed the bug.
  16740. * src/PeerMessageUtil.cc
  16741. (checkLength): Throw an exception if length is less than or equals to
  16742. 0.
  16743. To add new interfaces to Base64 encoding/decoding:
  16744. * src/Base64.h
  16745. (part_encode): Changed the method signature.
  16746. (encode): New function(overload).
  16747. (decode): New function(overload).
  16748. * src/Base64.cc
  16749. (part_encode): Rewritten.
  16750. (encode): Rewritten.
  16751. (encode): New function(overload).
  16752. To prevent a peer to download same piece if there is an error in
  16753. checksum:
  16754. * src/PieceMessage.cc
  16755. (receivedAction): Call peerInteraction->abortPiece().
  16756. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16757. To fix the bug that causes same have message is sent many times to
  16758. a single peer.
  16759. * src/Time.cc
  16760. (isNewer): Use Util::difftv().
  16761. * src/Util.cc
  16762. (difftv): Added a cast to (long long int).
  16763. * src/TorrentMan.cc
  16764. (advertisePiece): Use push_front.
  16765. (getAdvertisedPieceIndexes): A performance improvement was made.
  16766. To fix the bug that sends tracker requests without a sleep interval
  16767. when the number of connections is less than 15.
  16768. * src/TrackerWatcherCommand.cc
  16769. (execute): Now the number of connections is not a factor to decide
  16770. whether or not a tracker request should be sent or not.
  16771. * src/Time.h
  16772. (setTimeInSec): New function.
  16773. * src/Time.cc
  16774. (setTimeInSec): New function.
  16775. etc.
  16776. * src/ChokeMessage.cc
  16777. (receivedAction): Removed peer->snubbing = false
  16778. * src/PeerConnection.h
  16779. (receiveHandshake): Updated doc.
  16780. * src/TorrentMan.h
  16781. (getAdvertisedPieceIndexes): Updated the method signature.
  16782. * src/TorrentMan.cc
  16783. (getAdvertisedPieceIndexes): Updated the method signature.
  16784. * src/Time.h
  16785. (getTimeInMicros): Added a cast to (long long int).
  16786. (getTimeInMillis): Added a cast to (long long int).
  16787. * Release 0.5.2
  16788. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16789. To make a listening socket non-block:
  16790. * src/SocketCore.h
  16791. (setNonBlockingMode): New function.
  16792. * src/SocketCore.cc
  16793. (setNonBlockingMode): New function.
  16794. (beginListen): Added a call to setNonBlockingMode().
  16795. (acceptConnection): Call setNonBlockingMode().
  16796. (setBlockingMode): Updated.
  16797. To handle tracker's NAT-checking:
  16798. * src/PeerConnection.cc
  16799. (receiveHandshake): 'msg' param is filled with received data and
  16800. its length is assigned to 'length' param, even if all handshake
  16801. message is not yet received.
  16802. * src/PeerInteractionCommand.cc
  16803. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16804. a new peer connects to localhost.
  16805. A call to peerInteraction->sendHandshake() was removed because
  16806. it is called from peerInteraction->receiveHandshake(true).
  16807. * src/PeerInteraction.h
  16808. (quickReplied): New variable.
  16809. (receiveHandshake): Added an argument.
  16810. * src/PeerInteraction.cc
  16811. (PeerInteraction): Added the initialization of quickReplied.
  16812. (receiveHandshake): Send handshake message as soon as the info hash
  16813. in a handshake message from a peer is correct.
  16814. To change the random part of peer id and key parameter:
  16815. * src/TorrentMan.h
  16816. (key): New variable.
  16817. * src/TorrentMan.cc
  16818. (setupInternal1): Use Util::randomAlpha() to generate random part
  16819. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16820. key is also generated by Util::randomAlpha() and it is now 8 character
  16821. long.
  16822. * src/Util.h
  16823. (randomAlpha): New function.
  16824. * src/Util.cc
  16825. (randomAlpha): New function.
  16826. * src/TrackerWatcherCommand.cc
  16827. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16828. Added no_peer_id=1.
  16829. Set snubbing flag to false when a choke message is received from a
  16830. snubbed peer.
  16831. * src/ChokeMessage.cc
  16832. (receivedAction): Set snubbing flag to false.
  16833. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16834. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16835. * src/SimpleLogger.h (writeHeader): New function.
  16836. * src/SimpleLogger.cc (writeHeader): New function.
  16837. (writeLog): Fixed the bug that causes segfaults if exception message
  16838. contains an unescaped "%" character.
  16839. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16840. when a tracker request fails.
  16841. * src/Request.cc (parseUrl): Query string is now handled properly.
  16842. * Release 0.5.1
  16843. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16844. To add Time class which represents a specific instant in time and
  16845. its precision is microseconds. Time checking procedures were rewritten
  16846. using this object.
  16847. * src/Time.h: New class.
  16848. * src/Time.cc: New class.
  16849. * src/AbstractCommand.h
  16850. (updateCheckPoint): Removed.
  16851. (isTimeoutDetected): Removed.
  16852. (checkPoint): Changed the type to Time.
  16853. (timeout): New variable.
  16854. (setTimeout): New function.
  16855. * src/AbstractCommand.cc
  16856. (AbstractCommand): Removed the initialization of checkPoint.
  16857. Added the initialization of timeout.
  16858. (updateCheckPoint): Removed.
  16859. (isTimeoutDetected): Removed.
  16860. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16861. * src/PeerChokeCommand.h
  16862. (checkPoint): Changed the type to Time.
  16863. * src/PeerChokeCommand.cc
  16864. (PeerChokeCommand): Removed the initialization of checkPoint.
  16865. (execute): Rewritten using Time object.
  16866. * src/TrackerWatcherCommand.h
  16867. (checkPoint): Changed the type to Time.
  16868. * src/TrackerWatcherCommand.cc
  16869. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16870. (execute): Rewritten.
  16871. * src/ConsoleDownloadEngine.h
  16872. (cp): Changed the type to Time.
  16873. (startup): Changed the type to Time.
  16874. * src/ConsoleDownloadEngine.cc
  16875. (initStatistics): Use cp.reset(), startup.reset().
  16876. (calculateStatistics): Rewritten using Time object.
  16877. * src/PeerAbstractCommand.h
  16878. (updateCheckPoint): Removed.
  16879. (isTimeoutDetected): Removed.
  16880. (checkPoint): Changed the type to Time.
  16881. * src/PeerAbstractCommand.cc
  16882. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16883. (updateCheckPoint): Removed.
  16884. (isTimeoutDetected): Removed.
  16885. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16886. * src/PeerInteractionCommand.cc
  16887. (PeerInteractionCommand): Removed the initializations of struct
  16888. timeval variables.
  16889. * src/PeerInteractionCommand.h
  16890. (keepAliveCheckPoint): Changed the type to Time.
  16891. (chokeCheckPoint): Changed the type to Time.
  16892. (freqCheckPoint): Changed the type to Time.
  16893. (haveCheckTime): Changed the type to Time.
  16894. * src/PeerInteractionCommand.cc
  16895. (executeInternal): Rewritten using Time object.
  16896. (detectMessageFlooding): Rewritten using Time object.
  16897. (checkLongTimePeerChoking): Rewritten using Time object.
  16898. (sendKeepAlive): Rewritten using Time object.
  16899. (checkHave): Rewritten using Time object.
  16900. * src/SleepCommand.h
  16901. (checkPoint): Changed the type to Time.
  16902. * src/SleepCommand.cc
  16903. (SleepCommand): Removed the initialization of checkPoint.
  16904. (execute): Rewritten using Time object.
  16905. * src/TorrentAutoSaveCommand.h
  16906. (checkPoint): Changed the type to Time.
  16907. * src/TorrentAutoSaveCommand.cc
  16908. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16909. (execute): Rewritten.
  16910. * src/DownloadCommand.h
  16911. (sw): Changed the type to Time.
  16912. * src/DownloadCommand.cc
  16913. (DownloadCommand): Removed the initialization of sw.
  16914. (executeInternal): Rewritten.
  16915. * src/RequestSlot.h
  16916. (dispatchedTime): Changed the type to Time.
  16917. * src/RequestSlot.cc
  16918. (RequestSlot): Removed the call to setDispatchedTime().
  16919. (setDispatchedTime): Rewirtten.
  16920. (isTimeout): Rewritten.
  16921. (getLatencyInMillis): Rewritten.
  16922. * src/TorrentDownloadEngine.h
  16923. (cp): Changed the type to Time[2].
  16924. (startup): Changed the type to Time.
  16925. * src/TorrentDownloadEngine.cc
  16926. (initStatistics): Rewritten.
  16927. (calculateStatistics): Rewritten.
  16928. * src/DownloadEngine.cc
  16929. (run): Rewritten.
  16930. To detect all attempts to connect to the tracker are failed:
  16931. * src/AbstractCommand.cc
  16932. (execute): Increment e->segmentMan->errors if a command aborted.
  16933. * src/SegmentMan.h
  16934. (errors): New variable.
  16935. * src/SegmentMan.cc
  16936. (SegmentMan): Added the initialization of errors.
  16937. (init): Added the initialization of errors.
  16938. * src/TrackerWatcherCommand.cc
  16939. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16940. request was failed.
  16941. To handle snubbed peers:
  16942. * src/PeerChokeCommand.cc
  16943. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16944. (execute): Snubbed peers don't get unchoked.
  16945. * src/PeerInteraction.h
  16946. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16947. * src/PeerInteraction.cc
  16948. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16949. back the requested 16k block in 60 seconds.
  16950. * src/PieceMessage.cc
  16951. (receivedAction): A peer's snubbed state is cleard if it sends
  16952. the requested 16k block in 60 seconds.
  16953. * src/Peer.h
  16954. (snubbing): New variable.
  16955. * src/Peer.cc
  16956. (resetStatus): Added snubbed = false.
  16957. To fix the bug that causes have message is not sent:
  16958. * src/PeerInteractionCommand.cc
  16959. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16960. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16961. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16962. * src/TorrentMan.h
  16963. (HaveEntry): New class.
  16964. (advertisePiece): Rewritten.
  16965. (getAdvertisedPieceIndexes): Rewritten.
  16966. (Haves): Changed the type.
  16967. (getAdvertisedPieceIndexes): Added an argument.
  16968. Others:
  16969. * src/TorrentMan.h
  16970. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16971. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16972. * src/TorrentMan.cc
  16973. (getPeer): Don't check the number of connections here.
  16974. (setupInternal1): Changed peerId.
  16975. * src/PeerInteractionCommand.h
  16976. (KEEP_ALIVE_INTERVAL): New definition.
  16977. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16978. * src/main.cc
  16979. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16980. * src/DownloadEngine.h: Removed unnecessary header includes.
  16981. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16982. To fix the bug that causes segfaults if a tracker returns a zero-length
  16983. list as "peers":
  16984. * src/TrackerUpdateCommand.cc
  16985. (execute): Added a check to see wether the type of peers is Data*.
  16986. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16987. * Release 0.5.0
  16988. To fix compile issue with gcc3:
  16989. * src/CancelMessage.h
  16990. (ID): Renamed as ID_t
  16991. (ID_t): New enum.
  16992. * src/RejectMessage.h
  16993. (ID): Renamed as ID_t
  16994. (ID_t): New enum.
  16995. * src/SuggestPieceMessage.h
  16996. (ID): Renamed as ID_t
  16997. (ID_t): New enum.
  16998. * src/AllowedFastMessage.h
  16999. (ID): Renamed as ID_t
  17000. (ID_t): New enum.
  17001. * src/PortMessage.h
  17002. (ID): Renamed as ID_t
  17003. (ID_t): New enum.
  17004. * src/HaveNoneMessage.h
  17005. (ID): Renamed as ID_t
  17006. (ID_t): New enum.
  17007. * src/KeepAliveMessage.h
  17008. (ID): Renamed as ID_t
  17009. (ID_t): New enum.
  17010. * src/HaveAllMessage.h
  17011. (ID): Renamed as ID_t
  17012. (ID_t): New enum.
  17013. * src/UnchokeMessage.h
  17014. (ID): Renamed as ID_t
  17015. (ID_t): New enum.
  17016. * src/BitfieldMessage.h
  17017. (ID): Renamed as ID_t
  17018. (ID_t): New enum.
  17019. * src/PieceMessage.h
  17020. (ID): Renamed as ID_t
  17021. (ID_t): New enum.
  17022. * src/RequestMessage.h
  17023. (ID): Renamed as ID_t
  17024. (ID_t): New enum.
  17025. * src/NotInterestedMessage.h
  17026. (ID): Renamed as ID_t
  17027. (ID_t): New enum.
  17028. * src/ChokeMessage.h
  17029. (ID): Renamed as ID_t
  17030. (ID_t): New enum.
  17031. * src/InterestedMessage.h
  17032. (ID): Renamed as ID_t
  17033. (ID_t): New enum.
  17034. * src/HaveMessage.h
  17035. (ID): Renamed as ID_t
  17036. (ID_t): New enum.
  17037. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17038. * src/PeerAbstractCommand.h
  17039. (beforeSocketCheck): Removed.
  17040. * src/PeerAbstractCommand.cc
  17041. Modified in order to call executeInternal() even if socket check
  17042. and upload limit check fail.
  17043. * src/PeerInteractionCommand.h
  17044. (keepAlive): Removed.
  17045. (sendKeepAlive): New function.
  17046. (checkHave): New function.
  17047. (beforeSocketCheck): Removed.
  17048. * src/PeerInteractionCommand.cc
  17049. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17050. calls to checkHave() and sendKeepAlive().
  17051. (keepAlive): Renamed to sendKeepAlive().
  17052. (sendKeepAlive): New function.
  17053. (beforeSocketCheck): Removed.
  17054. (checkHave): New function.
  17055. * src/BitfieldMan.cc
  17056. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17057. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17058. 0.
  17059. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17060. * src/TorrentMan.h
  17061. (UsedPieces): Removed.
  17062. (Pieces): New type definition.
  17063. * src/Piece.h: Updated doc.
  17064. * src/Peer.h
  17065. (totalLength): Removed.
  17066. * src/Peer.cc
  17067. (updateLatency): Fixed the latency calculation.
  17068. * src/TorrentMan.cc
  17069. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17070. than or equal to MAX_PEER_LIST_SIZE.
  17071. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17072. then return false.
  17073. (deleteOldErrorPeers): Rewritten.
  17074. (deleteUsedPiece): Fixed the miss use of STL remove.
  17075. * src/PeerInteraction.h
  17076. (Pieces): Removed.
  17077. (deleteTimeoutRequestSlot): Removed.
  17078. (deleteCompletedRequestSlot): Removed.
  17079. (checkRequestSlot): New function.
  17080. * src/PeerInteraction.cc
  17081. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17082. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17083. (checkRequestSlot): New function.
  17084. * src/DownloadEngine.cc
  17085. (run): Clear activeSockets before calling waitData().
  17086. (waitData): Removed a call to activeSockets.clear().
  17087. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17088. To attempt to handle EINTR:
  17089. * src/SocketCore.cc
  17090. (isReadable): Added EINTR handling.
  17091. (isWritable): Added EINTR handling.
  17092. To improve the performance:
  17093. * src/AbstractCommand.cc
  17094. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17095. * src/PeerInteractionCommand.h
  17096. (receiveMessage): Renamed as receiveMessages().
  17097. (receiveMessages): New function.
  17098. * src/PeerInteractionCommand.cc
  17099. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17100. () function. detectMessageFlooding() is moved here.
  17101. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17102. (). The flooding detection for have message is comment out.
  17103. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17104. Util::difftv().
  17105. (receiveMessage): Renamed as receiveMessages().
  17106. (receiveMessages): New function.
  17107. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17108. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17109. * src/SleepCommand.cc
  17110. (execute): Use Util::difftvsec() instead of Util::difftv().
  17111. * src/BitfieldMan.h
  17112. (getNthBitIndex): New function.
  17113. (hasMissingPiece): New function.
  17114. (getAllMissingIndexes): New function.
  17115. * src/BitfieldMan.cc
  17116. (countSetBit): Rewritten.
  17117. (getNthBitIndex): New function.
  17118. (getMissingIndexRandomly): Rewritten.
  17119. (hasMissingPiece): New function.
  17120. (getAllMissingIndexes): New function.
  17121. * src/TorrentMan.cc
  17122. (hasMissingPiece): New function.
  17123. (deleteUsedPiece): Rewritten using STL.
  17124. * src/PeerInteraction.cc
  17125. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17126. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17127. (addRequests): Updated the number of pending requests.
  17128. * src/PeerAbstractCommand.cc
  17129. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17130. (execute): Returns true if TorrentMan::isHalt() is true.
  17131. Corrected the condition of upload limit checking.
  17132. * src/Util.h
  17133. (countBit): New function.
  17134. * src/Util.cc
  17135. (nbits): New variable.
  17136. (countBit): New function.
  17137. * src/DownloadEngine.h
  17138. (SockCmdMap): New type definition.
  17139. (waitData): Added an argument.
  17140. (addSocket): Added an argument.
  17141. (addSocketForReadCheck): Added an argument.
  17142. (addSocketForWriteCheck): Added an argument.
  17143. * src/DownloadEngine.cc
  17144. (run): Executes only commands whose sockets are ready to read or write.
  17145. All commands are executed in every 1 second.
  17146. (waitData): Calls select() again if it returned
  17147. EINTR.
  17148. (addSocket): Saves socket and command object pair to the map.
  17149. (deleteSocket): Deletes socket and command object pair from the map.
  17150. (addSocketForReadCheck): Added an argument.
  17151. (addSocketForWriteCheck): Added an argument.
  17152. * src/DownloadCommand.cc
  17153. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17154. To send "event=stopped" to the tracker when the application finishes:
  17155. * src/PeerChokeCommand.h
  17156. (checkPoint): New variable.
  17157. * src/PeerChokeCommand.cc
  17158. (PeerChokeCommand): Added the initialization of checkPoint.
  17159. (execute): The interval check is now done by checkPoint, not
  17160. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17161. * src/TorrentMan.h
  17162. (halt): New function.
  17163. (hasMissingPiece): New function.
  17164. (isHalt): New function.
  17165. (setHalt): New function.
  17166. * src/TorrentMan.cc
  17167. (TorrentMan): Added the initialization of halt.
  17168. * src/TorrentAutoSaveCommand.h
  17169. (checkPoint): New variable.
  17170. * src/PeerListenCommand.cc
  17171. (execute): Returns true if TorrentMan::isHalt() is true.
  17172. * src/main.cc
  17173. (setSignalHander): Added flags argument.
  17174. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17175. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17176. Removed printDownloadAbortMessage() after torrent downloading loop.
  17177. * src/TorrentAutoSaveCommand.cc
  17178. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17179. (execute): Returns true if TorrentMan::isHalt() is true.
  17180. The interval check is now done by checkPoint, not SleepCommand.
  17181. * src/TrackerWatcherCommand.cc
  17182. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17183. event=stopped.
  17184. * src/TrackerUpdateCommand.cc
  17185. (prepareForRetry): Do not use SleepCommand here.
  17186. (execute): Returns true if TorrentMan::isHalt() is true.
  17187. Others:
  17188. * src/TorrentMan.cc
  17189. (getMissingPieceIndex): Updated log message.
  17190. * src/PeerInteraction.cc
  17191. (createPeerMessag): Updated log message.
  17192. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17193. To add the ability to download several pieces in mix in a command and
  17194. increase the number of request slots according to request-cancel
  17195. latency:
  17196. * src/PeerInteractionCommand.cc
  17197. (executeInternal): The number of messages to be received at a time
  17198. is increased from 10 to 50.
  17199. * src/LogFactory
  17200. (getInstance): Added NullLogger.
  17201. * src/NullLogger.h: New class.
  17202. * src/BitfieldMan.h
  17203. (getMissingIndex): New function.
  17204. * src/BitfieldMan.cc
  17205. (getMissingIndex): New function.
  17206. * src/TorrentMan.h
  17207. (checkOutPiece): New function.
  17208. (getMissingPieceIndex): New function.
  17209. (getMissingFastPieceIndex): New function.
  17210. (getMissingFastPiece): New function.
  17211. * src/TorrentMan.cc
  17212. (updatePiece): Rewritten using STL.
  17213. (syncPiece): Rewritten using STL.
  17214. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17215. checkOutPiece().
  17216. (getMissingPieceIndex): New function.
  17217. (getMissingFastPieceIndex): New function.
  17218. (getMissingFastPiece): New function.
  17219. (checkOutPiece): New function.
  17220. * src/PeerInteraction.h
  17221. (Pieces): New type definition.
  17222. (piece): Removed.
  17223. (pieces): New variable.
  17224. (getNewPieceAndSendInterest): Added the "piece" argument.
  17225. (abortPiece): Added the "piece" argument.
  17226. (abortAllPieces): New function.
  17227. (isInRequestSlot): New function.
  17228. (hasDownloadPiece): Added the "index" argument.
  17229. (setDownloadPiece): Removed.
  17230. (getDownloadPiece): Added the "index" argument.
  17231. (updatePiece): New function.
  17232. (createRequestMessage): Added the "index" argument.
  17233. * src/PeerInteraction.cc
  17234. (onChoked): Rewritten.
  17235. (abortPiece): Rewirtten.
  17236. (abortAllPieces): New function.
  17237. (deleteTimeoutRequestSlot): Rewritten.
  17238. Clarified code a little bit.
  17239. (deleteCompletedRequestSlot): Rewritten.
  17240. (isInRequestSlot): New function.
  17241. (syncPiece): Rewritten.
  17242. (updatePiece): New function.
  17243. (getNewPieceAndSendInterest): Rewritten.
  17244. (addRequests): Rewritten.
  17245. (getDownloadPiece): Rewritten.
  17246. (hasDownloadPiece): Rewritten.
  17247. (createRequestMessage): Added the "index" argument.
  17248. * src/common.h
  17249. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17250. (DIV_FLOOR): New definition.
  17251. * src/PieceMessage.cc
  17252. (receivedAction): Update request-piece latency here.
  17253. * src/RequestSlot.h
  17254. (getLatencyInMillis): New function.
  17255. * src/RequestSlot.cc
  17256. (isTimeout): Rewritten using getLatencyInMillis.
  17257. (getLatencyInMillis): New function.
  17258. * src/Piece.h
  17259. (operator==): New function.
  17260. (getMissingBlockIndex): New function.
  17261. * src/Piece.cc
  17262. (operator==): New function.
  17263. (getMissingBlockIndex): New function.
  17264. * src/Peer.h
  17265. (DEFAULT_LATENCY): New definition.
  17266. (latency): New variable.
  17267. (updateLatency): New function.
  17268. (getLatency): New function.
  17269. * src/Peer.cc
  17270. (resetStatus): Reset latecy.
  17271. (updateLatency): New function.
  17272. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17273. * src/SocketCore.cc
  17274. (isReadable): Added secure to the condition.
  17275. * src/HttpConnection.cc
  17276. (receiveResponse): Fixed a bug that causes no response header
  17277. exception.
  17278. * src/Peer.h
  17279. (getFastSet): Fixed the return value type.
  17280. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17281. To remove a wait from download loop:
  17282. * src/DownloadEngine.cc
  17283. (run): Comment out shortSleep.
  17284. To rewrite the message handling:
  17285. * src/SimplePeerMessage.h: New class.
  17286. * src/SimplePeerMessage.cc: New class.
  17287. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17288. (msg): New variable.
  17289. (create): New function.
  17290. (send): Removed.
  17291. (getMessage): New function.
  17292. (getMessageLength): New function.
  17293. * src/CancelMessage.cc
  17294. (create): New function.
  17295. (receivedAction): Replaced deleteRequestMessageInQueue with
  17296. rejectPieceMessageInQueue.
  17297. (send): Removed.
  17298. (getMessage): New function.
  17299. (getMessageLength): New function.
  17300. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17301. (msg): New variable.
  17302. (msgLength): New variable.
  17303. (~BitfieldMessage): Deleted msg.
  17304. (send): Removed.
  17305. (getMessage): New function.
  17306. (getMessageLength): New function.
  17307. * src/BitfieldMessage.cc
  17308. (create): New function.
  17309. (send): Removed.
  17310. (getMessage): New function.
  17311. (getMessageLength): New function.
  17312. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17313. (msg): New variable.
  17314. (sendPredicate): New function.
  17315. (onSendComplete): New function.
  17316. (send): Removed.
  17317. (getMessage): New function.
  17318. (getMessageLength): New function.
  17319. (create): New function.
  17320. * src/ChokeMessage.cc
  17321. (create): New function.
  17322. (send): Removed.
  17323. (sendPredicate): New function.
  17324. (getMessage): New function.
  17325. (getMessageLength): New function.
  17326. (onSendComplete): New function.
  17327. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17328. (msg): New variable.
  17329. (send): Removed.
  17330. (getMessage): New function.
  17331. (getMessageLength): New function.
  17332. * src/KeepAliveMessage.cc
  17333. (send): Removed.
  17334. (getMessage): New function.
  17335. (getMessageLength): New function.
  17336. * src/PortMessage.h
  17337. (create): New function.
  17338. (receivedAction): Updated log message.
  17339. * src/PortMessage.cc: New file.
  17340. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17341. (msg): New variable.
  17342. (sendPredicate): New function.
  17343. (onSendComplete): New function.
  17344. (create): New function.
  17345. (send): Removed.
  17346. (getMessage): New function.
  17347. (getMessageLength): New function.
  17348. * src/UnchokeMessage.cc
  17349. (create): New function.
  17350. (send): Removed.
  17351. (sendPredicate): New function.
  17352. (getMessage): New function.
  17353. (getMessageLength): New function.
  17354. (onSendComplete): New function.
  17355. * src/PieceMessage.h
  17356. (leftPieceDataLength): Removed.
  17357. (leftDataLength): New variable.
  17358. (headerSend): New variable.
  17359. (pendingCount): New variable.
  17360. (msgHeader): New variable.
  17361. (sendPieceData): New function.
  17362. (incrementPendingCount): New function.
  17363. (isPendingCountMax): New function.
  17364. (create): New function.
  17365. (getMessageHeader): New function.
  17366. (getMessageHeaderLength): New function.
  17367. * src/PieceMessage.cc
  17368. (create): New function.
  17369. (getMessageHeader): New function.
  17370. (getMessageHeaderLength): New function.
  17371. (send): Rewritten.
  17372. (sendPieceData): New function.
  17373. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17374. (msg): New variable.
  17375. (create): New function.
  17376. (getMessage): New function.
  17377. (getMessageLength): New function.
  17378. * src/HaveMessage.cc
  17379. (create): New function.
  17380. (send): Removed.
  17381. (sendPieceData): New function.
  17382. (getMessage): New function.
  17383. (getMessageLength): New function.
  17384. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17385. (msg): New variable.
  17386. (create): New function.
  17387. (send): Removed.
  17388. (getMessage): New function.
  17389. (getMessageLength): New function.
  17390. * src/RequestMessage.cc
  17391. (create): New function.
  17392. (receivedAction): Added the handling of fast extension.
  17393. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17394. (send): Removed.
  17395. (getMessage): New function.
  17396. (getMessageLength): New function.
  17397. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17398. (msg): New variable.
  17399. (sendPredicate): New function.
  17400. (onSendComplete): New function.
  17401. (create): New function.
  17402. (getMessage): New function.
  17403. (getMessageLength): New function.
  17404. * src/InterestedMessage.cc
  17405. (create): New function.
  17406. (send): Removed.
  17407. (sendPieceData): New function.
  17408. (getMessage): New function.
  17409. (getMessageLength): New function.
  17410. (onSendComplete): New function.
  17411. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17412. (msg): New variable.
  17413. (sendPieceData): New function.
  17414. (onSendComplete): New function.
  17415. (create): New function.
  17416. (send): Removed.
  17417. (getMessage): New function.
  17418. (getMessageLength): New function.
  17419. * src/NotInterestedMessage.cc
  17420. (create): New function.
  17421. (send): Removed.
  17422. (sendPredicate): New function.
  17423. (getMessage): New function.
  17424. (getMessageLength): New function.
  17425. (onSendComplete): New function.
  17426. * src/AllowedFastMessage.h: New class.
  17427. * src/AllowedFastMessage.cc: New class.
  17428. * src/RejectMessage.h: New class.
  17429. * src/RejectMessage.cc: New class.
  17430. * src/SuggestPieceMessage.h: New class.
  17431. * src/SuggestPieceMessage.cc: New class.
  17432. * src/HaveAllMessage.h: New class.
  17433. * src/HaveAllMessage.cc: New class.
  17434. * src/HaveNoneMessage.h: New class.
  17435. * src/HaveNoneMessage.cc: New class.
  17436. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17437. (msg): New variable.
  17438. (reserved): New variable.
  17439. (create): New function.
  17440. (getId): New function.
  17441. (receivedAction): New function.
  17442. (getMessage): New function.
  17443. (getMessageLength): New function.
  17444. (isFastExtensionSupported): New function.
  17445. * src/HandshakeMessage.cc
  17446. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17447. (create): New function.
  17448. (getMessage): New function.
  17449. (getMessageLength): New function.
  17450. (toString): Added the output of reserved field.
  17451. (check): Added const qualifier.
  17452. (isFastExtensionSupported): New function.
  17453. * src/PeerMessageUtil.h
  17454. (createChokeMessage): Removed.
  17455. (createUnchokeMessage): Removed.
  17456. (createInterestedMessage): Removed.
  17457. (createNotInterestedMessage): Removed.
  17458. (createHaveMessage): Removed.
  17459. (createBitfieldMessage): Removed.
  17460. (createRequestMessage): Removed.
  17461. (createCancelMessage): Removed.
  17462. (createPieceMessage): Removed.
  17463. (createPortMessage): Removed.
  17464. (createChokeMessage): Removed.
  17465. (createUnchokeMessage): Removed.
  17466. (createInterestedMessage): Removed.
  17467. (createNotInterestedMessage): Removed.
  17468. (createHaveMessage): Removed.
  17469. (createBitfieldMessage): Removed.
  17470. (createRequestMessage): Removed.
  17471. (createCancelMessage): Removed.
  17472. (createPieceMessage): Removed.
  17473. (createKeepAliveMessage): Removed.
  17474. (createHandshakeMessage): Removed.
  17475. (setIntParam): New function.
  17476. (createPeerMessageString): New function.
  17477. * src/PeerMessageUtil.cc
  17478. (createChokeMessage): Removed.
  17479. (createUnchokeMessage): Removed.
  17480. (createInterestedMessage): Removed.
  17481. (createNotInterestedMessage): Removed.
  17482. (createHaveMessage): Removed.
  17483. (createBitfieldMessage): Removed.
  17484. (createRequestMessage): Removed.
  17485. (createCancelMessage): Removed.
  17486. (createPieceMessage): Removed.
  17487. (createPortMessage): Removed.
  17488. (createRequestMessage): Removed.
  17489. (createCancelMessage): Removed.
  17490. (createPieceMessage): Removed.
  17491. (createHaveMessage): Removed.
  17492. (createChokeMessage): Removed.
  17493. (createUnchokeMessage): Removed.
  17494. (createInterestedMessage): Removed.
  17495. (createNotInterestedMessage): Removed.
  17496. (createBitfieldMessage): Removed.
  17497. (createKeepAliveMessage): Removed.
  17498. (createHandshakeMessage): Removed.
  17499. (setIntParam): New function.
  17500. (createPeerMessageString): New function.
  17501. * src/PeerConnection.h
  17502. (peer): Removed.
  17503. (torrentMan): Removed.
  17504. (createNLengthMessage): Removed.
  17505. (setIntParam): Removed.
  17506. (writeOutgoingMessageLog): Removed all overloaded functions.
  17507. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17508. (sendMessage): New function.
  17509. (sendHandshake): Removed.
  17510. (sendKeepAlive): Removed.
  17511. (sendChoke): Removed.
  17512. (sendUnchoke): Removed.
  17513. (sendInterested): Removed.
  17514. (sendNotInterested): Removed.
  17515. (sendHave): Removed.
  17516. (sendBitfield): Removed.
  17517. (sendRequest): Removed.
  17518. (sendPiece): Removed.
  17519. (sendPieceHeader): Removed.
  17520. (sendPieceData): Removed.
  17521. (sendCancel): Removed.
  17522. (getPeer): Removed.
  17523. * src/PeerConnection.cc
  17524. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17525. (sendHandshake): Removed.
  17526. (sendKeepAlive): Removed.
  17527. (createNLengthMessage): Removed.
  17528. (setIntParam): Removed.
  17529. (writeOutgoingMessageLog): Removed all overloaded functions.
  17530. (sendChoke): Removed.
  17531. (sendUnchoke): Removed.
  17532. (sendInterested): Removed.
  17533. (sendNotInterested): Removed.
  17534. (sendHave): Removed.
  17535. (sendBitfield): Removed.
  17536. (sendRequest): Removed.
  17537. (sendPiece): Removed.
  17538. (sendPieceHeader): Removed.
  17539. (sendPieceData): Removed.
  17540. (sendMessage): New function.
  17541. (sendCancel): Removed.
  17542. * src/PeerInteractionCommand.cc
  17543. (PeerInteractionCommand): Call setUploadLimit.
  17544. (executeInternal): Call setUploadLimit.
  17545. Added the handling of "inProgress" state of handshake message.
  17546. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17547. sendNow().
  17548. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17549. sendNow().
  17550. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17551. * src/TorrentMan.h
  17552. (PEER_ID_LENGTH): New definition.
  17553. (hasAllPieces): New function.
  17554. * src/TorrentMan.cc
  17555. (getMissingPiece): Added the handling of fast extension.
  17556. (cancelPiece): Call updatePiece().
  17557. (hasAllPieces): New function.
  17558. * src/PeerInteraction.h
  17559. (fastSet): New variable.
  17560. (getNewPieceAndSendInterest): Changed the return type to void.
  17561. (send): Renamed as sendMessages.
  17562. (deleteAllRequestSlot): Removed.
  17563. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17564. (cancelAllRequest): Removed all overloaded functions.
  17565. (deleteAllRequestSlot): Removed.
  17566. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17567. (rejectPieceMessageInQueue): New function.
  17568. (rejectAllPieceMessageInQueue): New function.
  17569. (onChoked): New function.
  17570. (isSendingMessageInProgress): New function.
  17571. (getCorrespondingRequestSlot): Changed its arguments.
  17572. (isInFastSet): New function.
  17573. (addFastSetIndex): New function.
  17574. (addRequests): New function.
  17575. (sendNow): Removed.
  17576. (trySendNow): Removed.
  17577. (sendBitfield): New function.
  17578. (sendAllowdFast): New function.
  17579. (createHaveAllMessage): New function.
  17580. (createHaveNoneMessage): New function.
  17581. (createRejectMessage): New function.
  17582. (createAllowedFastMessage): New function.
  17583. * src/PeerInteraction.cc
  17584. (send): Renamed as sendMessages.
  17585. (sendMessages): New function.
  17586. (MsgPushBack): New class.
  17587. (isSendingMessageInProgress): New function.
  17588. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17589. (rejectAllPieceMessageInQueue): New function.
  17590. Added the handling of fast extension.
  17591. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17592. (rejectPieceMessageInQueue): New function.
  17593. Added the handling of fast extension.
  17594. (deleteRequestSlot): Replaced for loop with std::find.
  17595. (onChoked): New function.
  17596. (deleteAllRequestSlot): Removed.
  17597. (abortPiece): Rewirtten.
  17598. (deleteTimeoutRequestSlot): Updated log messages.
  17599. (getCorrespondingRequestSlot): Changed its arguments.
  17600. (cancelAllRequest): Removed all overloaded functions.
  17601. (receiveHandshake): Added the check to see whether an incoming peer
  17602. supports fast extension.
  17603. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17604. PeerMessageUtil.
  17605. (createPeerMessage): Use create() of each message class instead of
  17606. PeerMessageUtil.
  17607. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17608. AllowedFastMessage were added.
  17609. (getNewPieceAndSendInterest): Changed its return value type to void.
  17610. Added the handling of fast extension.
  17611. (addRequests): New function.
  17612. (sendNow): Removed.
  17613. (sendHandshake): Rewritten.
  17614. (trySendNow): Removed.
  17615. (sendBitfield): New function.
  17616. (sendAllowdFast): New function.
  17617. (isInFastSet): New function.
  17618. (addFastSetIndex): New function.
  17619. (createRequestMessage): Use RequestMessage::create instead of
  17620. PeerMessageUtil.
  17621. (createCancelMessage): Use CancelMessage::create instead of
  17622. PeerMessageUtil.
  17623. (createPieceMessage): Use PieceMessage::create instead of
  17624. PeerMessageUtil.
  17625. (createHaveMessage): Use HaveMessage::create instead of
  17626. PeerMessageUtil.
  17627. (createChokeMessage): Use ChokeMessage::create instead of
  17628. PeerMessageUtil.
  17629. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17630. PeerMessageUtil.
  17631. (createInterestedMessage): Use InterestedMessage::create instead of
  17632. PeerMessageUtil.
  17633. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17634. of PeerMessageUtil.
  17635. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17636. PeerMessageUtil.
  17637. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17638. PeerMessageUtil.
  17639. (createHaveAllMessage): New function.
  17640. (createHaveNoneMessage): New function.
  17641. (createRejectMessage): New function.
  17642. (createAllowedFastMessage: New function.
  17643. * src/Util.h
  17644. (sha1Sum): New function.
  17645. (computeFastSet): New function.
  17646. * src/Util.cc
  17647. (sha1Sum): New function.
  17648. (computeFastSet): New function.
  17649. * src/Peer.h
  17650. (fastExtensionEnabled): New variable.
  17651. (fastSet): New variable.
  17652. (setAllBitfield): New function.
  17653. (setFastExtensionEnabled): New function.
  17654. (isFastExtensionEnabled): New function.
  17655. (addFastSetIndex): New function.
  17656. (getFastSet): New function.
  17657. (isInFastSet): New function.
  17658. (countFastSet): New function.
  17659. * src/Peer.cc
  17660. (isInFastSet): New function.
  17661. (addFastSetIndex): New function.
  17662. (setAllBitfield): New function.
  17663. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17664. sockets.
  17665. * src/PeerAbstractCommand.cc
  17666. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17667. and uploadLimit.
  17668. (execute): Changed the procedure of checking sockets. The upload speed
  17669. checking were added.
  17670. (setUploadLimit): New function.
  17671. (setUploadLimitCheck): New function.
  17672. * src/PeerAbstractCommand.h
  17673. (setUploadLimit): New function.
  17674. (setUploadLimitCheck): New function.
  17675. (uploadLimit): New variable.
  17676. (uploadLimitCheck): New variable.
  17677. To contact a tracker regularly:
  17678. * src/TrackerWatcherCommand.h (interval): New variable.
  17679. (checkPoint): New variable.
  17680. (TrackerWatcherCommand): Added interval argument.
  17681. * src/TrackerWatcherCommand.cc
  17682. (TrackerWatcherCommand): Initialized checkPoint.
  17683. (execute): Now a tracker is contacted in every specified period.
  17684. If peer list is not needed, send request with numwant=0.
  17685. * src/TrackerUpdateCommand.cc
  17686. (execute): Updated log messages.
  17687. * src/DownloadEngine.cc
  17688. (~DownloadEngine): Removed two asserts.
  17689. (waitData): Uncommented wfds. May be a bug fix.
  17690. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17691. * src/PeerInteractionCommand.h
  17692. (checkInactiveConnection): Removed.
  17693. * src/PeerInteractionCommand.cc
  17694. (executeInternal): Removed following function calls:
  17695. detectMessageFlooding(), checkLongTimePeerChoking and
  17696. checkInactiveConnection().
  17697. (checkInactiveConnection): Removed.
  17698. (detectMessageFlooding): Removed function call to
  17699. checkInactiveConnection().
  17700. * src/PeerMessageUtil.h
  17701. (createChokeMessage): New function. Overload.
  17702. (createUnchokeMessage): New function. Overload.
  17703. (createInterestedMessage): New function. Overload.
  17704. (createNotInterestedMessage): New function. Overload.
  17705. (createHaveMessage): New function. Overload.
  17706. (createBitfieldMessage): New function. Overload.
  17707. (createRequestMessage): New function. Overload.
  17708. (createCancelMessage): New function. Overload.
  17709. (createPieceMessage): New function. Overload.
  17710. (createKeepAliveMessage): New function. Overload.
  17711. * src/PeerMessageUtil.cc
  17712. (createChokeMessage): New function. Overload.
  17713. (createUnchokeMessage): New function. Overload.
  17714. (createInterestedMessage): New function. Overload.
  17715. (createNotInterestedMessage): New function. Overload.
  17716. (createHaveMessage): New function. Overload.
  17717. (createBitfieldMessage): New function. Overload.
  17718. (createRequestMessage): New function. Overload.
  17719. (createCancelMessage): New function. Overload.
  17720. (createPieceMessage): New function. Overload.
  17721. (createKeepAliveMessage): New function. Overload.
  17722. * src/SendMessageQueue.cc
  17723. (createRequestMessage): Use PeerMessageUtil.
  17724. (createCancelMessage): Use PeerMessageUtil.
  17725. (createPieceMessage): Use PeerMessageUtil.
  17726. (createHaveMessage): Use PeerMessageUtil.
  17727. (createChokeMessage): Use PeerMessageUtil.
  17728. (createUnchokeMessage): Use PeerMessageUtil.
  17729. (createInterestedMessage): Use PeerMessageUtil.
  17730. (createNotInterestedMessage): Use PeerMessageUtil.
  17731. (createBitfieldMessage): Use PeerMessageUtil.
  17732. (createKeepAliveMessage): Use PeerMessageUtil.
  17733. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17734. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17735. * src/PeerInteraction.h: New class.
  17736. * src/PeerInteraction.cc: New class.
  17737. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17738. Each peer message has its own class.
  17739. * src/PendingMessages.h: Removed.
  17740. * src/PendingMessages.cc: Removed. The sending process was moved to
  17741. each message class.
  17742. * src/RequestSlotMan.h: Removed.
  17743. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17744. SendMessageQueue.
  17745. * src/RequestMessage.h: New class.
  17746. * src/RequestMessage.cc: New class.
  17747. * src/CancelMessage.h: New class.
  17748. * src/CancelMessage.cc: New class.
  17749. * src/BitfieldMessage.h: New class.
  17750. * src/BitfieldMessage.cc: New class.
  17751. * src/ChokeMessage.h: New class.
  17752. * src/ChokeMessage.cc: New class.
  17753. * src/KeepAliveMessage.h: New class.
  17754. * src/KeepAliveMessage.cc: New class.
  17755. * src/PortMessage.h: New class.
  17756. * src/UnchokeMessage.h: New class.
  17757. * src/UnchokeMessage.cc: New class.
  17758. * src/PieceMessage.h: New class.
  17759. * src/PieceMessage.cc: New class.
  17760. * src/HaveMessage.h: New class.
  17761. * src/HaveMessage.cc: New class.
  17762. * src/BitfieldMessage.h: New class.
  17763. * src/BitfieldMessage.cc: New class.
  17764. * src/NotInterestedMessage.h: New class.
  17765. * src/NotInterestedMessage.cc: New class.
  17766. * src/InterestedMessage.h: New class.
  17767. * src/InterestedMessage.cc: New class.
  17768. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17769. (getSendMessageQueue): New function.
  17770. (setSendMessageQueue): New function.
  17771. * src/HandshakeMessage.cc: New class.
  17772. * src/PeerConnection.h (receiveMessage): Changed return value and
  17773. arguments.
  17774. (receiveHandshake): Changed return value and arguments.
  17775. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17776. here.
  17777. (receiveHandshake): Do not create handshake class here.
  17778. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17779. (piece): Removed.
  17780. (syncPiece): Removed.
  17781. (sendInterest): Removed.
  17782. (sendMessages): Removed.
  17783. (createRequestPendingMessage): Removed.
  17784. (checkPieceHash): Removed.
  17785. (erasePieceOnDisk): Removed.
  17786. (getNewPieceAndSendInterest): Removed.
  17787. (onGotNewPice): Removed.
  17788. (onGotWrongPiece): Removed.
  17789. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17790. Removed peerConnection, piece.
  17791. (~PeerInteractionCommand): Removed peerConnection.
  17792. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17793. (syncPiece): Moved to SendMessageQueue.
  17794. (decideChoking): Removed PendingMessage.
  17795. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17796. The action after receiving peer message was moved to each message
  17797. class.
  17798. (onGotNewPice): Moved to SendMessageQueue.
  17799. (onGotWrongPiece): Moved to SendMessageQueue.
  17800. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17801. (sendInterest): Moved to SendMessageQueue.
  17802. (createRequestPendingMessage): Removed.
  17803. (sendMessages): Moved to SendMessageQueue.
  17804. (onAbort): Use SendMessageQueue::abortPiece()
  17805. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17806. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17807. (checkPieceHash): Moved to SendMessageQueue.
  17808. (erasePieceOnDisk): Moved to SendMessageQueue.
  17809. * src/PeerMessageUtil.h
  17810. (createBitfieldMessage): Removed.
  17811. (createHaveMessage): Changed return value and arguments.
  17812. (createBitfieldMessage): Changed return value and arguments.
  17813. (createRequestCancelMessage): Removed.
  17814. (createPieceMessage): Changed return value and arguments.
  17815. (getShortIntParam): New function.
  17816. (checkIndex): Changed arguments.
  17817. (checkBegin): Changed arguments.
  17818. (checkLength): Changed arguments.
  17819. (checkPieceOffset): Removed.
  17820. (checkRange): New function.
  17821. (checkBitfield): Changed arguments.
  17822. (createPeerMessage): Removed.
  17823. (checkIntegrity): Removed.
  17824. (createHandshakeMessage): Changed arguments.
  17825. (createChokeMessage): New function.
  17826. (createUnchokeMessage): New function.
  17827. (createInterestedMessage): New function.
  17828. (createNotInterestedMessage): New function.
  17829. (createRequestMessage): New function.
  17830. (createCancelMessage): New function.
  17831. (createPortMessage): New function.
  17832. * src/PeerMessageUtil.cc
  17833. (createBitfieldMessage): Removed.
  17834. (createHaveMessage): Changed return value and arguments.
  17835. (createBitfieldMessage): Changed return value and arguments.
  17836. (createRequestCancelMessage): Removed.
  17837. (createPieceMessage): Changed return value and arguments.
  17838. (getShortIntParam): New function.
  17839. (checkIndex): Changed arguments.
  17840. (checkBegin): Changed arguments.
  17841. (checkLength): Changed arguments.
  17842. (checkPieceOffset): Removed.
  17843. (checkRange): New function.
  17844. (checkBitfield): Changed arguments.
  17845. (createPeerMessage): Removed.
  17846. (checkIntegrity): Removed.
  17847. (createHandshakeMessage): Changed arguments.
  17848. (createChokeMessage): New function.
  17849. (createUnchokeMessage): New function.
  17850. (createInterestedMessage): New function.
  17851. (createNotInterestedMessage): New function.
  17852. (createRequestMessage): New function.
  17853. (createCancelMessage): New function.
  17854. (createPortMessage): New function.
  17855. * src/PeerMessage.h
  17856. (id): Removed.
  17857. (index): Removed.
  17858. (begin): Removed.
  17859. (length): Removed.
  17860. (bitfield): Removed.
  17861. (bitfieldLength): Removed.
  17862. (block): Removed.
  17863. (blockLength): Removed.
  17864. (inProgress): New variable.
  17865. (cuid): New variable.
  17866. (peer): New variable.
  17867. (sendMessageQueue): New variable.
  17868. (logger): New variable.
  17869. (setBitfield): Removed.
  17870. (getBitfield): Removed.
  17871. (setBlock): Removed.
  17872. (getBlock): Removed.
  17873. (getBitfieldLength): Removed.
  17874. (getBlockLength): Removed.
  17875. (isInProgress): New function.
  17876. (toString): Made pure virtual.
  17877. (check): New function.
  17878. (send): New function.
  17879. (receivedAction): New function.
  17880. (getId): Made pure virtual.
  17881. (setId): Removed.
  17882. (getIndex): Removed.
  17883. (setIndex): Removed.
  17884. (getBegin): Removed.
  17885. (setBegin): Removed.
  17886. (getLength): Removed.
  17887. (setLength): Removed.
  17888. (getCuid): New function.
  17889. (setCuid): New function.
  17890. (getPeer): New function.
  17891. (setPeer): New function.
  17892. (getSendMessageQueue): New function.
  17893. (setSendMessageQueue): New function.
  17894. (ID): Removed.
  17895. * src/PeerMessage.cc
  17896. (setBitfield): Removed.
  17897. (setBlock): Removed.
  17898. (toString): Removed.
  17899. * src/TorrentMan.h
  17900. (getPieceLength): New function.
  17901. (getPieceLength): New function.
  17902. * src/SendMessageQueue.h
  17903. (REQUEST_TIME_OUT): New definition.
  17904. (RequestSlots): New definition.
  17905. (MessageQueue): New definition.
  17906. (requestSlotMan): Removed.
  17907. (pendingMessages): Removed.
  17908. (requestSlots): New variable.
  17909. (messageQueue): New variable.
  17910. (torrentMan): New variable.
  17911. (peerConnection): New variable.
  17912. (peer): New variable.
  17913. (piece): New variable.
  17914. (getNewPieceAndSendInterest): New function.
  17915. (createPeerMessage): New function.
  17916. (createHandshakeMessage): New function.
  17917. (send): Made private.
  17918. (setPeerMessageCommonProperty): New function.
  17919. (deleteAllRequestSlot): New function.
  17920. (deleteRequestMessageInQueue): New function.
  17921. (cancelAllRequest): Made private.
  17922. (cancelAllRequest): Made private.
  17923. (countRequestSlot): Made private.
  17924. (addPendingMessage): Removed.
  17925. (deletePendingPieceMessage): Removed.
  17926. (deletePendingRequestMessage): Removed.
  17927. (addMessage): New function.
  17928. (deletePieceMessageInQueue): New function.
  17929. (deleteTimeoutRequestSlot): Changed argument.
  17930. (deleteCompletedRequestSlot): Changed argument.
  17931. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17932. (getCorrespondingRequestSlot): New function.
  17933. (countPendingMessage): Removed.
  17934. (countMessageInQueue): New function.
  17935. (getTorrentMan): New function.
  17936. (getPeerConnection): New function.
  17937. (hasDownloadPiece): New function.
  17938. (getDownloadPiece): New function.
  17939. (setDownloadPiece): New function.
  17940. (syncPiece): New function.
  17941. (sendMessages): New function.
  17942. (sendNow): New function.
  17943. (trySendNow): New function.
  17944. (abortPiece): New function.
  17945. (sendHandshake): New function.
  17946. (receiveMessage): New function.
  17947. (receiveHandshake): New function.
  17948. (createRequestMessage): New function.
  17949. (createCancelMessage): New function.
  17950. (createPieceMessage): New function.
  17951. (createHaveMessage): New function.
  17952. (createChokeMessage): New function.
  17953. (createUnchokeMessage): New function.
  17954. (createInterestedMessage): New function.
  17955. (createNotInterestedMessage): New function.
  17956. (createBitfieldMessage): New function.
  17957. (createKeepAliveMessage): New function.
  17958. * src/SendMessageQueue.cc
  17959. (SendMessageQueue): Removed requestSlotMan.
  17960. Instantiated peerConnection here.
  17961. (~SendMessageQueue): Removed requestSlotMan.
  17962. Added deletion of peerConnection and the contents of messageQueue.
  17963. (send): Updated according to the change of messageQueue.
  17964. (addPendingMessage): Renamed to addMessage.
  17965. (addMessage): New function.
  17966. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17967. (deletePieceMessageInQueue): New function.
  17968. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17969. (deleteRequestMessageInQueue): New function.
  17970. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17971. here.
  17972. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17973. (...) was moved here.
  17974. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17975. moved here.
  17976. (deleteCompletedRequestSlot):
  17977. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17978. (getCorrespondingRequestSlot):
  17979. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17980. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17981. (countPendingMessage): Renamed to countMessageInQueue.
  17982. (countMessageInQueue): New function.
  17983. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17984. (receiveHandshake): New function.
  17985. (createHandshakeMessage): New function.
  17986. (receiveMessage): New function.
  17987. (createPeerMessage): New function.
  17988. (syncPiece): New function.
  17989. (getNewPieceAndSendInterest): New function.
  17990. (sendMessages): New function.
  17991. (sendNow): New function.
  17992. (trySendNow): New function.
  17993. (sendHandshake): New function.
  17994. (abortPiece): New function.
  17995. (getDownloadPiece): New function.
  17996. (getPeerMessageCommonProperty): New function.
  17997. (createRequestMessage): New function.
  17998. (createCancelMessage): New function.
  17999. (createPieceMessage): New function.
  18000. (createHaveMessage): New function.
  18001. (createChokeMessage): New function.
  18002. (createUnchokeMessage): New function.
  18003. (createInterestedMessage): New function.
  18004. (createNotInterestedMessage): New function.
  18005. (createBitfieldMessage): New function.
  18006. (createKeepAliveMessage): New function.
  18007. To add simple Content-Disposition support:
  18008. * src/HttpResponseCommand.h (determinFilename): New function.
  18009. * src/HttpResponseCommand.cc (executeInternal):
  18010. Use determinFilename(headers) instead of req->getFile() when comparing
  18011. filename.
  18012. (determinFilename): New function.
  18013. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18014. req->getFile().
  18015. (handleOtherEncoding): Use determinFilename(headers) instead of
  18016. req->getFile().
  18017. * src/Util.h (getContentDispositionFilename): New function.
  18018. * src/Util.cc (getContentDispositionFilename): New function.
  18019. * src/LogFactory.h (release): New function.
  18020. * src/LogFactory.cc (release): New function.
  18021. To fix a bug that causes out-of-bound exception when HTTP status
  18022. line is wrong:
  18023. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18024. size.
  18025. * src/common.h (Deleter): New class.
  18026. * src/SegmentMan.cc
  18027. (~SegmentMan): Added deletion of splitter and diskWriter.
  18028. * src/DownloadEngine.h
  18029. (Commands): Use deque.
  18030. (clearQueue): New function.
  18031. * src/DownloadEngine.cc
  18032. (~DownloadEngine): Added deletion of segmentMan.
  18033. (cleanQueue): New function.
  18034. * src/TorrentDownloadEngine.h
  18035. (TorrentDownloadEngine): The implementation was moved to
  18036. TorrentDownloadEngine.cc.
  18037. (~TorrentDownloadEngine): The implementation was moved to
  18038. TorrentDownloadEngine.cc.
  18039. * src/TorrentDownloadEngine.cc
  18040. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18041. * src/main.cc
  18042. (clearRequest): Removed.
  18043. (handler): Added deletion of e.
  18044. (torrentHandler): Added deletion of te.
  18045. (main): Do not share splitter.
  18046. Use Deleter instead of clearRequest.
  18047. Deletion of classes were updated.
  18048. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18049. * src/main.cc (main): Fixed typo.
  18050. * src/message.h: Fixed typo.
  18051. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18052. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18053. To add --select-file command-line option:
  18054. * src/Util.cc
  18055. (unfoldRange): New function.
  18056. (getNum): New function.
  18057. (unfoldSubRange): New function
  18058. * src/main.cc
  18059. (showUsage): Added help message.
  18060. (main): Added --select-file command-line option. Updated the layout of
  18061. file listing.
  18062. * src/common.h
  18063. (Integers): New definition.
  18064. * src/SocketCore.cc
  18065. (writeData): Removed timeout argument.
  18066. (readData): Removed timeout argument.
  18067. (peekData): Removed timeout argument.
  18068. * src/Socket.cc
  18069. (writeData): Removed timeout argument.
  18070. (readData): Removed timeout argument.
  18071. (peekData): Removed timeout argument.
  18072. * Release 0.4.1
  18073. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18074. To deploy upload rate based choking algorithm:
  18075. * src/PeerInteractionCommand.cc
  18076. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18077. peer currently used.
  18078. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18079. download completes. Simplified.
  18080. (receiveMessage): Updated.
  18081. * src/TorrentMan.h
  18082. (activePeers): New variable.
  18083. (addActivePeer): New function.
  18084. (getActivePeers): New function.
  18085. (deleteActivePeer): New function.
  18086. * src/TorrentMan.cc
  18087. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18088. * src/PeerAbstractCommand.cc
  18089. (onAbort): Use peer->resetStatus().
  18090. * src/main.cc
  18091. (PeerChokeCommand.h): Included.
  18092. (main): Added the instance of ChokingCommand to the command queue.
  18093. * src/Peer.h
  18094. (amChoking): Renamed from amChocking
  18095. (chokingRequired): New variable.
  18096. (optUnchoking): New variable.
  18097. (deltaUpload): New variable.
  18098. (deltaDownload): New variable.
  18099. (addDeltaUpload): New function.
  18100. (resetDeltaUpload): New function.
  18101. (addDeltaDownload): New function.
  18102. (resetDeltaDownload): New function.
  18103. (addPeerUpload): Added a call to addDeltaUpload.
  18104. (addPeerDownload): Added a call to addDeltaDownload.
  18105. * src/Peer.cc
  18106. (shouldBeChoking): Renamed from shouldChoke.
  18107. (resetStatus): New function.
  18108. * src/PeerChokeCommand.h: New class.
  18109. * src/PeerChokeCommand.cc: New class.
  18110. To add lazy upload speed limiter:
  18111. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18112. statistics calculation to TorrentDownloadEngine.
  18113. * src/TorrentConsoleDownloadEngine.cc
  18114. (sendStatistics): Renamed from printStatistics.
  18115. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18116. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18117. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18118. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18119. calculation.
  18120. (sendStatistics): New function as pure virtual function.
  18121. (getUploadSpeed): New function.
  18122. * src/TorrentDownloadEngine.cc
  18123. (initStatistics): New function.
  18124. (calculateSpeed): New function.
  18125. (calculateStatistics): New function.
  18126. * src/SendMessageQueue.h
  18127. (uploadLength): New variable.
  18128. (send): Added an argument.
  18129. (setUploadLimit): New function.
  18130. (getUploadLimit): New function.
  18131. * src/SendMessageQueue.cc
  18132. (send): Added upload speed limiter.
  18133. * src/prefs.h
  18134. (PREF_UPLOAD_LIMIT): New definition.
  18135. * src/PeerInteractionCommand.cc
  18136. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18137. * src/main.cc
  18138. (main): Added --upload-limit option
  18139. For bug fixes:
  18140. * src/main.cc
  18141. (showUsage): Corrected --listen-port help
  18142. Other changes:
  18143. * src/TorrentMan.cc
  18144. (getPeer): Return nullPeer if connection is grather than
  18145. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18146. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18147. To add some useful information to the exception message:
  18148. * src/SocketCore.cc : Updated messages.
  18149. * src/SegmentMan.cc :
  18150. * src/TorrentMan.cc : Updated messages.
  18151. * src/MultiDiskWriter.cc : Updated messages.
  18152. * src/Util.cc : Updated messages.
  18153. * src/AbstractDiskWriter.cc : Updated messages.
  18154. * src/PreAllocationDiskWriter.cc : Updated messages.
  18155. * src/message.cc : Added new messages. Updated some messages.
  18156. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18157. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18158. Updated threshold from 30 to 15.
  18159. * src/AbstractDiskWriter.h (filename): New variable.
  18160. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18161. (createFile): Assigned filename.
  18162. * src/main.cc: Updated the help message for http-auth-scheme.
  18163. * Release 0.4.0
  18164. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18165. To add TrackerUpdateCommand with which replaces
  18166. CompactTrackerResponseProcessor:
  18167. * src/TrackerWatcherCommand.h (req): Removed.
  18168. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18169. if the number of peer connections are less than 30.
  18170. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18171. * src/SegmentMan.h (diskWriter): New function.
  18172. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18173. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18174. (main): Use TrackerUpdateCommand.
  18175. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18176. (req): New variable.
  18177. (setTrackerResponseProcessor): Removed.
  18178. (getTrackerResponseProcessor): Removed.
  18179. (processTrackerResponse): Removed.
  18180. * src/DownloadEngine.h (diskWriter): Removed.
  18181. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18182. to torrentMan->processTrackerResponse().
  18183. To add Util::expandBuffer:
  18184. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18185. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18186. * src/Util.h (expandBuffer): New function.
  18187. To fix the bug that causes segmentation fault when "-l ." is specified
  18188. in command-line option:
  18189. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18190. (openFile): New function.
  18191. (closeFile): New function.
  18192. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18193. (~SimpleLogger): Call closeFile();
  18194. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18195. * src/main.cc (main): Added a check to see logger is configured
  18196. properly.
  18197. To enable HTTP authentication without specifying "--http-auth-scheme"
  18198. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18199. * src/HttpConnection.cc (createRequest): Send Authorization header
  18200. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18201. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18202. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18203. * src/Peer.cc (shouldChoke): Updated algorithm.
  18204. * src/message.h (EX_AUTH_FAILED): New definition.
  18205. (EX_FILE_OPEN): New definition.
  18206. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18207. if status == 401.
  18208. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18209. if req->isTorrent == true.
  18210. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18211. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18212. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18213. (createFile): Updated message.
  18214. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18215. To add a readout of estimated remaining time to normal HTTP/FTP
  18216. downloads:
  18217. * src/ConsoleDownloadEngine.h (startup): New variable.
  18218. (startupLength): New variable.
  18219. (isStartupLengthSet): New variable.
  18220. (avgSpeed): New variable.
  18221. (eta): New variable.
  18222. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18223. estimated remaining time.
  18224. (initStatistics): Initialized newly added variables.
  18225. (calculateStatistics): Calculate average speed and estimated remaining
  18226. time.
  18227. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18228. * src/TrackerDownloadCommand.h: Removed.
  18229. * src/TrackerDownloadCommand.cc: Removed.
  18230. * src/TrackerInitCommand.h: Removed.
  18231. * src/TrackerInitCommand.cc: Removed.
  18232. * src/TrackerUpdateCommand.h: Removed.
  18233. * src/TrackerUpdateCommand.cc: Removed.
  18234. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18235. url written in TrackerInitCommand was moved here. Do not create
  18236. tracker request command if torrentMan->trackers != 0.
  18237. * src/CompactTrackerResponseProcessor.h: New class.
  18238. * src/CompactTrackerResponseProcessor.cc: New class.
  18239. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18240. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18241. Decoupled TorrentDownloadEngine from this.
  18242. * src/SegmentMan.h (init): New function.
  18243. * src/SegmentMan.cc (init): New function.
  18244. * src/TorrentMan.h (responseProcessor): New variable.
  18245. (trackers): New variable.
  18246. (setTrackerResponseProcessor): New function.
  18247. (getTrackerResponseProcessor): New function.
  18248. (processTrackerResponse): New function.
  18249. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18250. (processTrackerResponse): New function.
  18251. * src/main.cc (main): Use ByteArrayDiskWriter and
  18252. CompactTrackerResponseProcessor.
  18253. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18254. processTrackerResponse().
  18255. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18256. readout.
  18257. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18258. which indicates download has completed.
  18259. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18260. (closeFile): fd >= 0, not fd > 0
  18261. * src/main.cc (main): Added short cut for show-files.
  18262. Added short cut for torrent-file.
  18263. Added new command-line option listen-port.
  18264. Updated i18n messages.
  18265. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18266. To add LogFactory which creates singleton logger:
  18267. * src/LogFactory.h: New class.
  18268. * src/LogFactory.cc: New class.
  18269. * src/Command.h (logger): New variable.
  18270. (Constructor): Use LogFactory.
  18271. * src/AbstractCommand.cc: Use Command::logger
  18272. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18273. Use LogFactory.
  18274. * src/SegmentSplitter.h : Made logger protected.
  18275. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18276. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18277. * src/DownloadEngine.h : Made logger protected.
  18278. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18279. * src/PeerInteractionCommand.cc : Use Command::logger.
  18280. * src/HttpResponseCommand.cc : Use Command::logger.
  18281. * src/SegmentMan.h : Made logger private.
  18282. * src/TorrentMan.h : Made logger private.
  18283. * src/TorrentMan.cc : Use LogFactory.
  18284. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18285. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18286. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18287. Use LogFactory.
  18288. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18289. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18290. Use LogFactory.
  18291. * src/DownloadCommand.cc : Use Command::logger.
  18292. * src/PeerAbstractCommand.cc : Use Command::logger.
  18293. * src/PeerListenCommand.cc : Use Command::logger.
  18294. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18295. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18296. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18297. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18298. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18299. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18300. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18301. Use LogFactory.
  18302. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18303. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18304. Use LogFactory.
  18305. * src/main.cc (main): Use LogFactory.
  18306. * src/DiskAdaptor.h (logger): New variable.
  18307. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18308. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18309. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18310. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18311. parameter to a tracker request.
  18312. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18313. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18314. * src/main.cc (setSignalHander): New function.
  18315. (main): Added a handler for SIGTERM.
  18316. (handler): Updated message.
  18317. (torrentHandler): Updated message.
  18318. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18319. * src/TorrentConsoleDownloadEngine.cc
  18320. (onPartialDownloadingCompletes): Renamed as
  18321. onSelectiveDownloadingCompletes.
  18322. (onSelectiveDownloadingCompletes): Updated message.
  18323. To add DiskAdaptor which abstract DiskWriter family:
  18324. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18325. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18326. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18327. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18328. MultiDiskAdaptor.h.
  18329. (readFileEntry): Changed its arguments.
  18330. (setup): setupDiskWriter is merged into this function.
  18331. (setupDiskWriter): Removed.
  18332. (setFileFilter): New function.
  18333. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18334. made in readFileEntry.
  18335. (getFilePath): Removed.
  18336. (getTempFilePath): Removed.
  18337. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18338. (fixFilename): Removed.
  18339. (copySingleFile): Removed.
  18340. (splitMultiFile): Removed.
  18341. (deleteTempFile): Removed.
  18342. (setFileEntriesToDownload): Removed.
  18343. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18344. (isSelectiveDownloadingMode): New function.
  18345. (setAllMultiFileRequestedState): Removed.
  18346. (finishPartialDownloadingMode): Renamed as
  18347. finishSelectiveDownloadingMode.
  18348. (finishSelectiveDownloadingMode): New function.
  18349. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18350. (getSelectedTotalLength): New function.
  18351. (onDownloadComplete): Use diskAdaptor.
  18352. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18353. (Range): Removed.
  18354. (setMultiFileEntries): Renamed as setFileEntries.
  18355. (setFileEntries): New function.
  18356. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18357. (pieceLength): New variable.
  18358. * src/main.cc (printDownloadCompeleteMessage): New function.
  18359. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18360. (main): Renamed torrent-show-files to show-files.
  18361. Rewritten file contents listing.
  18362. * src/TorrentMan.h (FileEntry): Removed.
  18363. (multiFileTopDir): Removed.
  18364. (multiFileEntries): Removed.
  18365. (diskWriter): Removed.
  18366. (diskAdaptor): New variable.
  18367. * src/DefaultDiskWriter.h (totalLength): New variable.
  18368. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18369. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18370. diskWriter.
  18371. * src/TorrentConsoleDownloadEngine.h
  18372. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18373. (partialTotalLength): Renamed as selectedTotalLength.
  18374. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18375. openExistingFile, otherwise call initAndOpenFile.
  18376. (closeFile): fd > 0, not fd != 0.
  18377. * src/DirectDiskAdaptor.h: New class.
  18378. * src/DirectDiskAdaptor.cc: New class.
  18379. * src/MultiDiskAdaptor.h: New class.
  18380. * src/MultiDiskAdaptor.cc: New class.
  18381. * src/CopyDiskAdaptor.h: New class.
  18382. * src/CopyDiskAdaptor.cc: New class.
  18383. * src/DiskAdaptor.h: New class.
  18384. * src/DiskAdaptor.cc: New class.
  18385. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18386. (PREF_SHOW_FILES): New definition.
  18387. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18388. To add the ability to download multi torrent into respective files
  18389. directly:
  18390. * src/DiskWriter.h (openFile): New function.
  18391. (seek): Removed.
  18392. * src/MultiDiskWriter.h: New class.
  18393. * src/MultiDiskWriter.cc: New class.
  18394. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18395. protected.
  18396. (openFile): New function.
  18397. * src/AbstractDiskWriter.cc (openFile): New function.
  18398. * src/prefs.h (V_FALSE): New definition.
  18399. (PREF_DIRECT_FILE_MAPPING): New definition.
  18400. * src/TorrentMan.h (setupDiskWriter): New function.
  18401. (setAllMultiFileRequestedState): New function.
  18402. (onDownloadComplete): New function.
  18403. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18404. (setupDiskWriter): New function.
  18405. (getFilePath): Updated.
  18406. (getTempFilePath): Updated.
  18407. (getSegmentFilePath): Updated.
  18408. (fixFilename): Updated.
  18409. (deleteTempFile): Updated.
  18410. (setAllMultiFileRequestedState): New function.
  18411. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18412. (finishPartialDownloadingMode): Reset requested flags.
  18413. (onDownloadComplete): New function.
  18414. * src/main.cc: Added --direct-file-mapping option.
  18415. Use TorrentMan::setupDiskWriter().
  18416. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18417. onDownloadComplete().
  18418. To fix ETA bug:
  18419. * src/Util.h (difftvsec): New function.
  18420. * src/Util.cc (difftvsec): New function.
  18421. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18422. type of "elapsed" instead of long long int.
  18423. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18424. The updates of statistics takes place every 1 seconds.
  18425. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18426. (calculateSpeed): Changed its argument signature.
  18427. * src/PeerMessage.cc (toString): Fixed message.
  18428. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18429. To print ETA:
  18430. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18431. completion handling when dealing with
  18432. TorrentMan::isPartialDownloadingMode() == true.
  18433. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18434. New function.
  18435. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18436. (sessionDownloadLength): New variable.
  18437. (avgSpeed): New variable.
  18438. (eta): New variable.
  18439. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18440. new variables: eta, avgSpeed, startup.
  18441. (calculateSpeed): Calculate average speed and ETA.
  18442. (printStatistics): Added ETA.
  18443. * src/Util.h (secfmt): New function.
  18444. * src/Util.cc (secfmt): New function.
  18445. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18446. To detect "keep alive" flooding:
  18447. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18448. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18449. variable: keepAliveCount.
  18450. (detectMessageFlooding): Added "keep alive" flooding detection.
  18451. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18452. received.
  18453. To add the ability to download only specified files in multi-file
  18454. torrent:
  18455. * src/BitfieldMan.h (filterBitfield): New variable.
  18456. (filterEnabled): New variable.
  18457. (setFilterBit): New function.
  18458. (enableFilter): New function.
  18459. (disableFilter): New function.
  18460. (isFilterEnabled): New function.
  18461. (getFilteredTotalLength): New function.
  18462. (getCompletedLength): New function.
  18463. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18464. filterBitfield, filterEnabled.
  18465. (CopyConstructor): Added filterBitfield and filterEnabled.
  18466. (operator==): Added filterBitfield and filterEnabled.
  18467. (Destructor): Added filterBitfield.
  18468. (getMissingIndex): Use filterBitfield.
  18469. (getMissingUnusedIndex): Use filterBitfield.
  18470. (getFirstMissingUnusedIndex): Use filterBitfield.
  18471. (getFirstMissingUnusedIndex): Use filterBitfield.
  18472. (getAllMissingIndexes): Use filterBitfield.
  18473. (countMissingBlock): Use filterBitfield.
  18474. (countBlock): Use filterBitfield.
  18475. (setBitInternal): Added new argument on.
  18476. (setUseBit): Use setBitInternal.
  18477. (unsetUseBit): Use setBitInternal.
  18478. (setBit): Use setBitInternal.
  18479. (unsetBit): Use setBitInternal.
  18480. (isAllBitSet): Use filterBitfield.
  18481. (setFilterBit): New function.
  18482. (addFilter): New function.
  18483. (enableFilter): New function.
  18484. (disableFilter): New function.
  18485. (clearFilter): New function.
  18486. (isFilterEnabled): New function.
  18487. (getFilteredTotalLength): New function.
  18488. (getCompletedLength): New function.
  18489. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18490. Initalized newly added variables.
  18491. [FileEntry](offset): New variable.
  18492. [FileEntry](extracted): New variable.
  18493. [FileEntry](requested): New variable.
  18494. (readFileEntry): New function.
  18495. (option): New variable.
  18496. (splitMultiFile): Removed const qualifier.
  18497. (fixFilename): Removed const qualifier.
  18498. (readFileEntryFromMetaInfoFile): New function.
  18499. (finishPartialDownloadingMode): New function.
  18500. (isPartialDownloadingMode): New function.
  18501. (setFileEntriesToDownload): New function.
  18502. (getCompletedLength): New function.
  18503. (getPartialTotalLength): New function.
  18504. * src/TorrentMan.cc (readFileEntry): New function.
  18505. (setup): Use readFileEntry. If no-preallocation option is specified,
  18506. use DefaultDiskWriter.
  18507. (readFileEntryFromMetaInfoFile): New function.
  18508. (fixFilename): Removed const qualifier.
  18509. (splitMultiFile): Removed const qualifier.
  18510. (setFileEntriesToDownload): New function.
  18511. (isPartialDownloadingMode): New function.
  18512. (finishPartialDownloadingMode): New function.
  18513. (getCompletedLength): New function.
  18514. (getPartialTotalLength): New function.
  18515. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18516. New variable.
  18517. (partialTotalLength): New variable.
  18518. (downloadLength): New variable.
  18519. (totalLength): New variable.
  18520. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18521. Added log.
  18522. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18523. partialTotalLength, downloadLength, totalLength.
  18524. (calculate): Calculate downloadLength and totalLength.
  18525. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18526. * src/main.cc (addCommand): Changed argument signature.
  18527. (main): Added new variable: args. Added new option "torrent-show-files"
  18528. "no-preallocation". Usage is not updated yet.
  18529. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18530. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18531. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18532. Attempt to add the ability to listing file entries in a .torrent file.
  18533. This feature is not yet complete.
  18534. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18535. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18536. (getName): New function.
  18537. * src/TorrentMan.h (getMultiFileEntries): New function.
  18538. (getName): New function.
  18539. * src/main.cc (main): Use above 2 funtion.
  18540. * Release 0.3.2
  18541. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18542. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18543. (detectMessageFlooding): Updated threshold value.
  18544. (checkLongTimePeerChoking): Updated timeout value.
  18545. (getNewPieceAndSendInterest): Added debug log.
  18546. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18547. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18548. (getPeer): Updated.
  18549. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18550. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18551. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18552. is localhost.
  18553. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18554. * src/PendingMessage.cc (processMessage): Not to send piece message
  18555. if peer is not interested in the pieces localhost has.
  18556. * src/Peer.cc (shouldChoke): Updated.
  18557. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18558. * src/Util.cc (isPowerOf): New function.
  18559. * src/Util.h (isPowerOf): New function.
  18560. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18561. whether or not it is power of 2.
  18562. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18563. Added new class SendMessageQueue that includes PendingMessages and
  18564. RequestSlotMan.
  18565. * src/SendMessageQueue.h: New class.
  18566. * src/SendMessageQueue.cc: New class.
  18567. * src/PendingMessage.h: Added new member variable blockIndex and its
  18568. accessors.
  18569. (createRequestMessage): Updated.
  18570. * src/PendingMessage.cc (createRequestMessage): Updated.
  18571. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18572. SendMessageQueue.
  18573. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18574. (receiveMessage): Updated with SendMessageQueue.
  18575. (deletePendingPieceMessage): Removed.
  18576. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18577. (sendInterest): Updated with SendMessageQueue.
  18578. (createRequestPendingMessage): Updated with SendMessageQueue.
  18579. (sendMessages): Updated with SendMessageQueue.
  18580. (onAbort): Updated with SendMessageQueue.
  18581. (keepAlive): Updated with SendMessageQueue.
  18582. (beforeSocketCheck): Updated SendMessageQueue.
  18583. * src/PeerInteractionCommand (sendMessages): Shuffle
  18584. missingBLockIndexes before using it.
  18585. Added its own timeout for peer connection.
  18586. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18587. setter.
  18588. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18589. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18590. Added setTimeout() call.
  18591. (executeInternal): Added setTimeout() call.
  18592. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18593. Added timeout.
  18594. (isTimeoutDetected): Updated.
  18595. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18596. option.
  18597. Added *simple* message flooding checker.
  18598. * src/PeerInteractionCommand.cc (executeInternal):
  18599. Added detectMessageFlooding() call.
  18600. (detectMessageFlooding): New function.
  18601. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18602. (beforeSocketCheck): Added detectMessageFlooding() call.
  18603. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18604. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18605. Removed deletePendingPieceMessage(), getRequestSlot(),
  18606. deleteRequestSlot(), deleteAllRequestSlot().
  18607. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18608. Added checkLongTimePeerChoking() call.
  18609. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18610. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18611. if duplicate == false.
  18612. The parameter "uploaded" and "downloaded" in the tracker request are
  18613. the size since the client sent the "started" event to the tracker.
  18614. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18615. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18616. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18617. getSessionDownloadedSize(), getSessionUploadedSize().
  18618. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18619. getSessionUploadedSize() instead of getDownloadedSize(),
  18620. getUploadedSize().
  18621. * src/PendingMessage.cc (processMessage): Do not send request message
  18622. if the peer is choking the client.
  18623. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18624. less than interval.
  18625. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18626. * configure.in: Added gnutls support. Added several CPP macros.
  18627. * m4/openssl.m4: Added.
  18628. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18629. readData(), peekData(). Added gnutls support.
  18630. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18631. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18632. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18633. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18634. Instead, added a check for whether setup method has executed
  18635. successfully.
  18636. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18637. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18638. * src/Makefile.am: Updated.
  18639. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18640. using whether OpenSSL or gcrypt, depending on the result of configure
  18641. script.
  18642. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18643. messageDigest.h.
  18644. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18645. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18646. Fixed memory leak.
  18647. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18648. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18649. Removed instantiation of TrackerInitCommand. Instead,
  18650. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18651. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18652. ENABLE_SSL.
  18653. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18654. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18655. If a piece is already acquired by another command, delete the request
  18656. slots for the piece.
  18657. * src/TrackerUpdateCommand.cc (execute):
  18658. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18659. Added a check whether peer list is null.
  18660. Fixed the bug that causes sending completed event to the tracker
  18661. several times.
  18662. * src/TrackerInitCommand.cc (execute):
  18663. Fixed the bug that causes sending completed event to the tracker
  18664. several times.
  18665. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18666. by using messageDigest.h.
  18667. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18668. * PeerConnection.cc: Replaced log message "keep-alive" with
  18669. "keep alive".
  18670. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18671. localhost long time.
  18672. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18673. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18674. at most 100 failure entry from the list. If with duplicate = false,
  18675. MAX_PEER_LIST is not checked.
  18676. * PeerListenCommand.cc: Fixed the argument order of log message.
  18677. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18678. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18679. Added warn().
  18680. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18681. Implemented warn().
  18682. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18683. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18684. * Request.h: Added AFTER_COMPLETED event.
  18685. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18686. instead of downloaded size and progress(%) after download completes.
  18687. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18688. message to the peer if it is interested in what localhost has
  18689. downloaded.
  18690. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18691. destination instead of just renaming it.
  18692. * TorrentMan.cc: Added deleteTempFile().
  18693. * PeerAbstractCommand.cc: do not stop execution after download
  18694. completes. This makes localhost a seeder.
  18695. * Util.{h,cc}: Added fileCopy().
  18696. * PeerListenCommand.cc: do not stop execution after download completes.
  18697. This makes localhost a seeder.
  18698. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18699. Added TorrentMan::deleteTempFile() to torrentHandler.
  18700. Initialized the variable dir as ".".
  18701. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18702. Deleted renameSingleFile().
  18703. Added copySingleFile(), deleteTempFile().
  18704. * DownloadEngine.h: Added virtual function afterEachIteration().
  18705. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18706. in onEndOfRun() to afterEachIteration().
  18707. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18708. true.
  18709. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18710. In rangedFileCopy(), added try-catch block to properly close file
  18711. descriptors.
  18712. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18713. Added afterEachIteration(), isFilenameFixed().
  18714. * Peer.cc: Changed choking strategy.
  18715. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18716. * TrackerInitCommand.cc: Send completed event only once.
  18717. * DownloadEngine.cc: Added a call to afterEachIteration().
  18718. * TrackerUpdateCommand.cc: Do not stop execution after download
  18719. completes.
  18720. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18721. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18722. received from a tracker.
  18723. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18724. Decreased the number of failure peers to delete to 0(just comment out
  18725. the line).
  18726. * Release 0.3.1
  18727. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18728. * PeerInteractionCommand.cc: added a call to
  18729. TorrentMan::unadvertisePiece in Destructor.
  18730. * PeerInteractionCommand.cc: make have message sent immediately
  18731. if the size of pending message queue is zero.
  18732. * TorrentMan.cc: set the maximum size of peer list to 250.
  18733. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18734. to deque.
  18735. * Util.cc: fixed rangedFileCopy.
  18736. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18737. to Constructor. Also, moved digest cleanup to Destructor.
  18738. * MetaFileUtil.cc: fixed memory leak
  18739. * replaced std::vector with std::deque.
  18740. * AbstractCommand.cc: casted timeout value to long long int.
  18741. * ChunkedEncoding.cc: fixed memory leak.
  18742. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18743. * SleepCommand.cc: casted timeout value to long long int.
  18744. * Data.cc: fixed memory leak.
  18745. * Data.cc: fixed toLLInt().
  18746. * BitfieldMan.cc: fixed memory leak.
  18747. * TorrentMan.cc: initialized storeDir to ".".
  18748. * TorrentMan.cc: fixed memory leak.
  18749. * TorrentMan.cc: corrected file paths of splitted files.
  18750. * PeerAbstractCommand.cc: casted timeout to long long int.
  18751. * main.cc: added delete(req) and delete(te->diskWriter).
  18752. * RequestSlot.cc: casted timeout value to long long int.
  18753. * Request.cc: fixed memory leak.
  18754. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18755. have the piece.
  18756. * Peer.{h,cc}: added hasPiece(int index).
  18757. * main.cc: corrected addCommand.
  18758. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18759. * BitTorrent protocol support added.
  18760. * Release 0.3.0
  18761. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18762. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18763. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18764. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18765. decoding did not work properly.
  18766. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18767. * DownloadEngine.h: included sys/time.h
  18768. * DownloadEngine.cc: remove sys/time.h
  18769. * Makefile.am (SUBDIRS): Add intl.
  18770. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18771. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18772. * main.cc: correct help message for --http-auth-scheme.
  18773. * main.cc: changed e-mail address for bug reports.
  18774. * ja.po: added japanese translation.
  18775. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18776. * SimpleLogger.cc: flush log file instead of stdout.
  18777. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18778. * main.cc: Fixed command-line option: max-tries
  18779. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18780. does not equal to seg.sp.
  18781. * DownloadCommand.cc: If EOF is got from the server and the total size
  18782. of file is not zero, then throw DlRetryEx.
  18783. * main.cc: Set the minium value of min-segment-size to 1024.
  18784. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18785. fails because of a regression since 0.2.0 release.
  18786. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18787. * HttpConnection.cc:
  18788. * common.h: defined the user agent name as macro
  18789. * DownloadEngine.{h, cc}:
  18790. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18791. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18792. * main.cc: Download complete/abort message is now generated by main.
  18793. * Makefile.am (SUBDIRS): Add m4.
  18794. (ACLOCAL_AMFLAGS): New variable.
  18795. (EXTRA_DIST): New variable.
  18796. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18797. * gettext: added gettext functionality
  18798. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18799. * AbstractCommand.cc:
  18800. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18801. unregister its cuid from SegmentMan.
  18802. * DownloadEngine.cc: .aria2 file was written when a downloading
  18803. failed with errors.
  18804. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18805. Added "User-Agent" header to CONNECT proxy request.
  18806. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18807. properly.
  18808. * Logger.h:
  18809. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18810. * ChunkedEncoding.cc: Added #include directive for strings.h
  18811. * Release 0.2.1
  18812. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18813. * Util.{h,cc}: added startsWith().
  18814. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18815. Util::endsWith().
  18816. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18817. * common.h: added #include directive of limit.h.
  18818. * DownloadEngine.cc: added #include directive of sys/time.h and
  18819. algorithm.
  18820. * Exception.h: added #include directive of stdio.h.
  18821. * AbstractCommand.h: added #include directive of sys/time.h.
  18822. * DownloadCommand.h: added #include directive of sys/time.h.
  18823. * *.h: added #include directive of common.h to all base classes.
  18824. subclasses' one was removed.
  18825. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18826. does not define these macros.
  18827. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18828. * Release 0.2.0
  18829. * main.cc:
  18830. * HttpInitiateConnectionCommand.{h,cc}:
  18831. * prefs.h:
  18832. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18833. We can now use GET command in http proxy.
  18834. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18835. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18836. that splits slowest segment of SegmentMan::commands vector.
  18837. This is the default split algorithm of aria2.
  18838. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18839. that splits first segment of SegmentMan::commands vector.
  18840. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18841. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18842. * Segment.h:
  18843. * SegmentMan.cc: Added speed field to Segment.h
  18844. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18845. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18846. * message.h: Change file size related %d to %lld.
  18847. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18848. * FtpInitiateConnectionCommand.{h,cc}:
  18849. * FtpNegotiationCommand.{h,cc}:
  18850. * FtpDownloadCommand.{h,cc}:
  18851. * FtpConnection.{h,cc}: Added FTP support
  18852. * SimpleLogger.cc: Log message now includes time information.
  18853. * main.cc: The value of --http-auth-scheme option is chagned from
  18854. 'BASIC' to 'basic'
  18855. * main.cc: Added --timeout command-line option.
  18856. * main.cc: Added --min-segment-size command-line option.
  18857. * main.cc: Added --max-retries command-line option.
  18858. * prefs.h: option string constants are now defined in prefs.h
  18859. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18860. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18861. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18862. with version 0.1.0's one.
  18863. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18864. * configure.in: Added --enable-ssl option to configure script.
  18865. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18866. cannot permit absoluteURI as Request-URI.
  18867. * HttpConnection.cc: Added Referer support.
  18868. * main.cc: Added referer command-line option.
  18869. * main.cc: Added rety-wait command-line option.
  18870. * Exception.h: Fixed formating bug in Exception::setMsg()
  18871. * SocketCore.{h,cc}:
  18872. * Socket.{h, cc}:
  18873. * Request.cc:
  18874. * InitiateConnectionCommandFactory.cc:
  18875. * HttpRequestCommand.cc: Added HTTPS support.
  18876. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18877. for SocketCore.
  18878. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18879. size is wrong
  18880. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18881. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18882. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18883. * Release 0.1.0