ChangeLog 613 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639
  1. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Made MSG_NOT_FILE translatable.
  3. * src/message.h
  4. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Updated man page for --help option.
  6. * doc/aria2c.1.txt
  7. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Updated doc.
  9. * src/XmlRpcMethod.h
  10. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Help category now starts with "#" to distinguish a category from
  12. keyword search. For example, "http" categroy is now "#http". You
  13. can type "--help=#http" to get explanation of options related to
  14. http. If '#' is omitted, then the argument is treated as a keyword
  15. and aria2 searches options whose name includes the keyword and
  16. print matched ones. For example, "--help=http" will show options
  17. whose name includes "http".
  18. * src/OptionHandlerFactory.cc
  19. * src/help_tags.h
  20. * src/usage_text.h
  21. * src/version_usage.cc
  22. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  23. Documented missing experimental tag and newly added xml-rpc tag in
  24. man page.
  25. * doc/aria2c.1.txt
  26. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  27. Added xml-rpc help tag. Tagged xml-rpc related options with
  28. xml-rpc tag.
  29. * src/OptionHandlerFactory.cc
  30. * src/help_tags.h
  31. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Updated message when a path is not a file. Updated common message
  33. for wrong option.
  34. * src/OptionHandlerException.cc
  35. * src/message.h
  36. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Use File::isFile() instead of File::exists(). Updated message when
  38. a path is not a file.
  39. * src/OptionHandlerImpl.cc
  40. * src/message.h
  41. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Fixed the bug that server performence profile is not updated when
  43. aria2c was terminated by emergency shutdown.
  44. * src/TrackerWatcherCommand.cc
  45. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Use LocalFilePathOptionHandler for -T and -M option.
  47. Updated message of MSG_FILE_NOT_EXIST.
  48. * src/OptionHandlerFactory.cc
  49. * src/message.h
  50. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Added LocalFilePathOptionHandler which check whether the specified
  52. file path does exist or not.
  53. * src/OptionHandlerImpl.cc
  54. * src/message.h
  55. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Updated wiki page URI.
  57. * README
  58. * doc/aria2c.1.txt
  59. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  60. Added README.txt for xmlrpc directory.
  61. * doc/Makefile.am
  62. * doc/xmlrpc/README.txt
  63. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Bump up version number to 1.6.0.
  65. * configure.ac
  66. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Added XML-RPC client scripts written in ruby.
  68. * doc/Makefile.am
  69. * doc/xmlrpc/aria2mon
  70. * doc/xmlrpc/aria2rpc
  71. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Added support for IPv6 literal address in URI. Now aria2 can
  73. handle URI such as http://[::1]/
  74. * src/HttpRequest.cc
  75. * src/HttpRequest.h
  76. * src/Request.cc
  77. * src/Request.h
  78. * test/HttpRequestTest.cc
  79. * test/OptionHandlerTest.cc
  80. * test/RequestTest.cc
  81. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Fixed the bug that HTTP request header for XML-RPC request is not
  83. parsed properly.
  84. * src/HttpHeader.cc
  85. * src/HttpHeaderProcessor.cc
  86. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Fixed the bug that XML-RPC authorization might be done before HTTP
  88. request header is fully received.
  89. * src/HttpServerCommand.cc
  90. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  91. Documented --xml-rpc-listen-all option in man page.
  92. * doc/aria2c.1.txt
  93. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Added --xml-rpc-listen-all option. If true is given to this
  95. option, aria2 listens incoming XML-RPC requests on all network
  96. interfaces. If false is given, listens only on local loopback
  97. interface. The default value is false.
  98. * src/HttpListenCommand.cc
  99. * src/OptionHandlerFactory.cc
  100. * src/SocketCore.cc
  101. * src/SocketCore.h
  102. * src/prefs.cc
  103. * src/prefs.h
  104. * src/usage_text.h
  105. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. * Release 1.5.2
  107. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Updated Ukrainian and Russian translations. Thanks to all
  109. translators.
  110. * po/ru.po
  111. * po/uk.po
  112. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  113. Bump up version number to 1.5.2
  114. * configure.ac
  115. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Get comment, comment.utf-8, created by and creation date from
  117. .torrent file and print them in -S output.
  118. * src/bittorrent_helper.cc
  119. * src/bittorrent_helper.h
  120. * test/BittorrentHelperTest.cc
  121. * test/test.torrent
  122. * test/utf8.torrent
  123. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Show exact file size along in -S option output.
  125. * src/Util.h
  126. * src/bittorrent_helper.cc
  127. * test/UtilTest.cc
  128. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  129. Avoided unnecessary memory allocation in
  130. BitfieldMan::getCompletedLength().
  131. * src/BitfieldMan.cc
  132. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Fixed the bug that download fails if
  134. SocketCore::establishConnection() throws exception and aria2
  135. doesn't try another address.
  136. * src/AbstractCommand.cc
  137. * src/InitiateConnectionCommand.cc
  138. * src/message.h
  139. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  141. detected properly.
  142. * m4/sqlite3.m4
  143. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  144. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  145. because it causes compile error if PARAMS macro is defined.
  146. * src/XmlRpcElements.cc
  147. * src/XmlRpcElements.h
  148. * src/XmlRpcRequestParserStateImpl.cc
  149. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. * Release 1.5.1
  151. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Bump up version number to 1.5.1
  153. * configure.ac
  154. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Fixed compile error without BitTorrent support
  156. * src/DefaultBtProgressInfoFile.cc
  157. * src/DownloadEngine.cc
  158. * src/DownloadEngine.h
  159. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Added missing '=' in Download Results
  161. * src/RequestGroupMan.cc
  162. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  163. Fixed compiler warning
  164. * src/DefaultBtProgressInfoFile.cc
  165. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Fixed compiler warning on 32bit systems.
  167. * src/DownloadCommand.cc
  168. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Call flush from ServerStatMan::save()
  170. * src/ServerStatMan.cc
  171. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Check stream status after file is opened.
  173. * src/CookieStorage.cc
  174. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Rewritten Signature::save()
  176. * src/Signature.cc
  177. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Rewritten RequestGroupMan::saveServerStat()
  179. * src/RequestGroupMan.cc
  180. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Rewritten stream error handling
  182. * src/DHTAutoSaveCommand.cc
  183. * src/DHTRoutingTableDeserializer.cc
  184. * src/DHTRoutingTableSerializer.cc
  185. * src/DHTSetup.cc
  186. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  187. Check stream status after file is opened.
  188. * src/DefaultBtProgressInfoFile.cc
  189. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Rewritten stream error handling
  191. * src/DefaultBtProgressInfoFile.cc
  192. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  193. Make sure that stream is closed before renaming file. Unit test
  194. fails on mingw32 in the previous implementation.
  195. * src/CookieStorage.cc
  196. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Fixed the unit test error without sqlite3
  198. * test/CookieStorageTest.cc
  199. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Fixed the undefined reference error
  201. * test/HttpResponseTest.cc
  202. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. * Release 1.5.0
  204. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  206. Ukrainian translations. Thanks to all translators.
  207. * po/ru.po
  208. * po/it.po
  209. * po/da.po
  210. * po/bg.po
  211. * po/ja.po
  212. * po/uk.po
  213. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Added missing src/Logger.cc
  215. * src/Logger.cc
  216. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Rewritten Logger to avoiding constly virtual call.
  218. * src/LogFactory.cc
  219. * src/LogFactory.h
  220. * src/Logger.h
  221. * src/Makefile.am
  222. * src/Makefile.in
  223. * src/NullLogger.h: Removed.
  224. * src/SimpleLogger.cc
  225. * src/SimpleLogger.h
  226. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  227. Updated doc
  228. * src/main.cc
  229. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Updated debug log message
  231. * src/AbstractCommand.cc
  232. * src/message.h
  233. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Avoid to create zombie process when commands specified in
  235. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  236. X and NetBSD.
  237. * src/main.cc
  238. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Fixed typo
  240. * src/usage_text.h
  241. * doc/aria2c.1.txt
  242. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Documented 'errorCode' of tellStatus in man page.
  244. * doc/aria2c.1.txt
  245. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  247. This key is only available for stopped/completed downloads and its
  248. value is the error code defined in EXIT STATUS in man page.
  249. * src/XmlRpcMethodImpl.cc
  250. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Fixed the bug that session download length is not updated when
  252. PeerStat is not fastest one.
  253. * src/SegmentMan.cc
  254. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Updated doc.
  256. * doc/aria2c.1.txt
  257. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Updated doc.
  259. * src/AbstractCommand.cc
  260. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Handle the case when DownloadContext has no FileEntry.
  262. * src/XmlRpcMethodImpl.cc
  263. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Handle the situation where struct option.name is char *.
  265. * configure.ac
  266. * src/OptionParser.cc
  267. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Code cleanup
  269. * src/AbstractCommand.cc
  270. * src/DownloadCommand.cc
  271. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Use option of each download to create AuthConfig instead of global
  273. option.
  274. * src/AuthConfigFactory.cc
  275. * src/AuthConfigFactory.h
  276. * src/FtpNegotiationCommand.cc
  277. * src/HttpRequest.cc
  278. * src/HttpRequest.h
  279. * src/HttpRequestCommand.cc
  280. * src/HttpSkipResponseCommand.cc
  281. * src/MultiUrlRequestInfo.cc
  282. * test/AuthConfigFactoryTest.cc
  283. * test/FtpConnectionTest.cc
  284. * test/HttpRequestTest.cc
  285. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Don't call prepareForRetry(1) if all segments are ignored in
  287. SegmentMan.
  288. * src/AbstractCommand.cc
  289. * src/BitfieldMan.cc
  290. * src/BitfieldMan.h
  291. * src/SegmentMan.cc
  292. * src/SegmentMan.h
  293. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Removed FileEntry::getAssociatedUris()
  295. * src/FileEntry.h
  296. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Updated doc: TODO1.5 -> TODO
  298. * src/FileEntry.cc
  299. * src/HttpResponseCommand.cc
  300. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Added assertion fileEntries.size() == 1 if BitTorrent is not
  302. involved.
  303. * src/RequestGroup.cc
  304. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Eliminated duplicated filterBitfield initialization code.
  306. * src/BitfieldMan.cc
  307. * src/BitfieldMan.h
  308. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  310. relatively naive approach, though). For DownloadFailureException,
  311. we handle the case when req is null properly.
  312. * src/AbstractCommand.cc
  313. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  314. Added function returning suffix of control file to
  315. DefaultBtProgressInfoFile.
  316. * src/DefaultBtProgressInfoFile.cc
  317. * src/DefaultBtProgressInfoFile.h
  318. * src/RequestGroup.cc
  319. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  320. Documented getVersion in man page.
  321. * doc/aria2c.1.txt
  322. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  323. Documented type of offset and num for tellWaiting xml-rpc method.
  324. * doc/aria2c.1.txt
  325. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Implemented getVersion xml-rpc method. This method returns struct
  327. which has 2 key-value pairs: "version" key is associated to the
  328. version of aria2, such as "1.5.0". "enabledFeatures" key is
  329. associated to the list of enabled features, such as "Async DNS",
  330. "BitTorrent".
  331. * src/FeatureConfig.h
  332. * src/XmlRpcMethodFactory.cc
  333. * src/XmlRpcMethodImpl.cc
  334. * src/XmlRpcMethodImpl.h
  335. * test/XmlRpcMethodTest.cc
  336. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Removed TLS1.1 protocol support when aria2 is built with gnutls
  338. for compatibility issue.
  339. * src/SocketCore.cc
  340. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Fixed compile error with openSSL
  342. * src/bittorrent_helper.cc
  343. * src/messageDigest.h
  344. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  345. Removed bad code: setting certificate type priority to key
  346. exchange priority.
  347. * src/SocketCore.cc
  348. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Disconnect seeder if client is also in seed state.
  350. * src/BtBitfieldMessage.cc
  351. * src/BtHaveAllMessage.cc
  352. * src/BtHaveMessage.cc
  353. * src/message.h
  354. * test/BtBitfieldMessageTest.cc
  355. * test/BtHaveAllMessageTest.cc
  356. * test/BtHaveMessageTest.cc
  357. * test/MockPieceStorage.h
  358. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Keep CreateRequestCommand in queue when no segment is available so
  360. that they can pick up pieces which slow BitTorrent peers are
  361. downloading.
  362. * src/AbstractCommand.cc
  363. * src/CreateRequestCommand.cc
  364. * src/CreateRequestCommand.h
  365. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. --bt-stop-timeout now only checks download speed.
  367. * src/BtStopDownloadCommand.cc
  368. * src/BtStopDownloadCommand.h
  369. * src/BtSetup.cc
  370. * src/usage_text.h
  371. * doc/aria2c.1.txt
  372. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Fixed compile error regarding BUFSIZE.
  374. * src/DownloadCommand.cc
  375. * src/DownloadCommand.h
  376. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Documented tellWaiting xml-rpc method in man page.
  378. * doc/aria2c.1.txt
  379. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Bump up version number to 1.5.0
  381. * configure.ac
  382. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Removed resolved TODO1.5
  384. * src/AbstractCommand.cc
  385. * src/DownloadCommand.cc
  386. * src/RequestGroup.cc
  387. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Release pooled and in-flight Request objectsand URIResult objects
  389. in FileEntry after download completed.
  390. * src/DownloadContext.cc
  391. * src/DownloadContext.h
  392. * src/FileEntry.cc
  393. * src/FileEntry.h
  394. * src/RequestGroup.cc
  395. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Set manual and source attribute in aria2c.1.txt
  397. * doc/aria2c.1.txt
  398. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Documented that the default value of --use-head is 'false' in man
  400. page.
  401. * doc/aria2c.1.txt
  402. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Added bt-stop-timeout option to -i list.
  404. * doc/aria2c.1.txt
  405. * src/download_helper.cc
  406. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Fixed typo
  408. * doc/aria2c.1.txt
  409. * src/usage_text.h
  410. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. Removed peer-id-prefix option from -i list.
  412. * doc/aria2c.1.txt
  413. * src/download_helper.cc
  414. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  415. Fixed typo
  416. * doc/aria2c.1.txt
  417. * src/usage_text.h
  418. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Documented --bt-stop-timeout option in man page.
  420. * doc/aria2c.1.txt
  421. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. Updated README regarding multi-file torrent web-seeding.
  423. * doc/README.txt
  424. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. Updated man page regarding multi-file torrent web-seeding.
  426. * doc/aria2c.1.txt
  427. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  428. Updated doc
  429. * src/version_usage.cc
  430. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Winsock select() doesn't work if no socket is in FD_SET. To
  432. overcome this problem, a dummy socket is added to FD_SET and it is
  433. given to select().
  434. * src/SelectEventPoll.cc
  435. * src/SelectEventPoll.h
  436. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Disabled --use-head option by default because --use-head=true
  438. causes problems on some web sites.
  439. * src/OptionHandlerFactory.cc
  440. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  441. Print URL List in -S option for torrent.
  442. * src/bittorrent_helper.cc
  443. * src/bittorrent_helper.h
  444. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Allocate buffer in ctor of DownloadCommand.
  446. * src/DownloadCommand.cc
  447. * src/DownloadCommand.h
  448. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Removed DiskAdaptor::onDownloadComplete()
  450. * src/DirectDiskAdaptor.cc
  451. * src/DirectDiskAdaptor.h
  452. * src/DiskAdaptor.h
  453. * src/MultiDiskAdaptor.cc
  454. * src/MultiDiskAdaptor.h
  455. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Committed missing BtStopDownloadCommand.{cc,h}
  457. * src/BtStopDownloadCommand.cc
  458. * src/BtStopDownloadCommand.h
  459. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  461. download if the download speed is 0 and the number of seeder is 0
  462. in consecutive SEC seconds. By default, this function is disabled.
  463. * src/BtSetup.cc
  464. * src/Makefile.am
  465. * src/OptionHandlerFactory.cc
  466. * src/prefs.cc
  467. * src/prefs.h
  468. * src/usage_text.h
  469. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Removed the call to DiskAdaptor::onDownloadComplete() from
  471. BtCheckIntegrityEntry and DefaultPieceStorage.
  472. * src/BtCheckIntegrityEntry.cc
  473. * src/DefaultPieceStorage.cc
  474. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Commented out throw statements when number of piece is 0 to
  476. download 0 length torrent.
  477. * src/bittorrent_helper.cc
  478. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Call RequestGroup::createNextCommandWithAdj() from
  480. BtFileAllocationEntry if at least one FileEntry has URI. The
  481. static function hasAssociatedUri in RequestGroup.cc is renamed as
  482. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  483. * src/BtFileAllocationEntry.cc
  484. * src/FileEntry.h
  485. * src/RequestGroup.cc
  486. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  487. Generate peer ID after SimpleRandomizer is initialized.
  488. * src/main.cc
  489. * src/option_processing.cc
  490. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Removed unused method argument.
  492. * src/CreateRequestCommand.cc
  493. * src/RequestGroup.cc
  494. * src/RequestGroup.h
  495. * src/RequestGroupMan.cc
  496. * src/TrackerWatcherCommand.cc
  497. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Made URI reusing function work.
  499. * src/CreateRequestCommand.cc
  500. * src/FileEntry.cc
  501. * src/FileEntry.h
  502. * test/FileEntryTest.cc
  503. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  504. Add formerly fastest PeerStat's sessionDownloadLength to new
  505. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  506. bytes in a session.
  507. * src/PeerStat.cc
  508. * src/SegmentMan.cc
  509. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. If pipelining is enabled, we can always pool socket.
  511. * src/HttpDownloadCommand.cc
  512. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. In a single file download, file size becomes known just after
  514. downloading, set total length to FileEntry object when download
  515. completed.
  516. * src/DownloadCommand.cc
  517. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Use std::vector::reserve() for fileEntries and pieceHashes in
  519. bittorrent_helper
  520. * src/bittorrent_helper.cc
  521. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  523. Removed hidden option PREF_RESET_URI.
  524. * src/AbstractCommand.cc
  525. * src/OptionHandlerFactory.cc
  526. * src/prefs.cc
  527. * src/prefs.h
  528. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Removed unused variable/function.
  530. * src/PeerStat.h
  531. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  532. Show first URL in Download Results if file path is not available.
  533. * src/FileEntry.h
  534. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Throw exception if file path doesn't exist in FTP URL.
  536. * src/InitiateConnectionCommandFactory.cc
  537. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  539. * src/BitfieldMan.cc
  540. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  541. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  542. of PeerStat in SegmentMan. peerStats is used for calculating
  543. download speed. Therefore all active PeerStats should be in
  544. there. Another one is _fastestPeerStats and it only contains
  545. fastest PeerStat for each hostname/protocol pair. They are used
  546. for updating ServerStat.
  547. * src/DownloadCommand.cc
  548. * src/Request.h
  549. * src/RequestGroupMan.cc
  550. * src/SegmentMan.cc
  551. * src/SegmentMan.h
  552. * test/SegmentManTest.cc
  553. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Try all available addresses returned by DNS until it gets
  555. connected in HTTP(S)/FTP download
  556. * src/AbstractCommand.cc
  557. * src/AbstractCommand.h
  558. * src/AbstractProxyRequestCommand.cc
  559. * src/AbstractProxyRequestCommand.h
  560. * src/DNSCache.h
  561. * src/DownloadEngine.cc
  562. * src/DownloadEngine.h
  563. * src/FtpInitiateConnectionCommand.cc
  564. * src/FtpInitiateConnectionCommand.h
  565. * src/FtpNegotiationCommand.cc
  566. * src/FtpNegotiationCommand.h
  567. * src/HttpInitiateConnectionCommand.cc
  568. * src/HttpInitiateConnectionCommand.h
  569. * src/HttpRequestCommand.cc
  570. * src/HttpRequestCommand.h
  571. * src/InitiateConnectionCommand.cc
  572. * src/InitiateConnectionCommand.h
  573. * test/DNSCacheTest.cc
  574. * test/Makefile.am
  575. * test/SimpleDNSCacheTest.cc
  576. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  577. Updated doc
  578. * src/download_helper.cc
  579. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Refactored fieldMan ctor.
  581. * src/BitfieldMan.cc
  582. * src/BitfieldMan.h
  583. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  584. Don't print "No files to download." message if -S is given.
  585. * src/main.cc
  586. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  587. Set referer and method to newly created Request object.
  588. * src/CreateRequestCommand.cc
  589. * src/FileEntry.cc
  590. * src/FileEntry.h
  591. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Removed ctor of AbstractCommand which doesn't take FileEntry.
  593. * src/AbstractCommand.cc
  594. * src/AbstractCommand.h
  595. * src/CreateRequestCommand.cc
  596. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Get proxy download working
  598. * src/AbstractProxyRequestCommand.cc
  599. * src/AbstractProxyRequestCommand.h
  600. * src/AbstractProxyResponseCommand.cc
  601. * src/AbstractProxyResponseCommand.h
  602. * src/FtpInitiateConnectionCommand.cc
  603. * src/FtpTunnelRequestCommand.cc
  604. * src/FtpTunnelRequestCommand.h
  605. * src/FtpTunnelResponseCommand.cc
  606. * src/FtpTunnelResponseCommand.h
  607. * src/HttpInitiateConnectionCommand.cc
  608. * src/HttpProxyRequestCommand.cc
  609. * src/HttpProxyRequestCommand.h
  610. * src/HttpProxyResponseCommand.cc
  611. * src/HttpProxyResponseCommand.h
  612. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Use SegmentMan::getSegment(cuid) for single file download.
  614. * src/AbstractCommand.cc
  615. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. Fixed bufSize calculation
  617. * src/DownloadCommand.cc
  618. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Don't append "/" if base URI ends with "/".
  620. * src/bittorrent_helper.cc
  621. * test/url-list-multiFile.torrent
  622. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. HTTP pipelining is now working. Fixed Segmention fault in
  624. BitfieldMan's copy ctor.
  625. * src/AbstractCommand.cc
  626. * src/BitfieldMan.cc
  627. * src/BitfieldMan.h
  628. * src/DownloadCommand.cc
  629. * src/HttpDownloadCommand.cc
  630. * src/HttpRequest.cc
  631. * src/SegmentMan.cc
  632. * src/SegmentMan.h
  633. * test/BitfieldManTest.cc
  634. * test/SegmentManTest.cc
  635. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Removed ServerHost. Same functionality is implemented using
  637. FileEntry's in-flight Request objects.
  638. * src/AbstractCommand.cc
  639. * src/BtDependency.cc
  640. * src/CreateRequestCommand.cc
  641. * src/FileEntry.cc
  642. * src/FileEntry.h
  643. * src/FtpNegotiationCommand.cc
  644. * src/HttpResponseCommand.cc
  645. * src/Makefile.am
  646. * src/Metalink2RequestGroup.cc
  647. * src/RequestGroup.cc
  648. * src/RequestGroup.h
  649. * src/ServerHost.cc: Removed
  650. * src/ServerHost.h: Removed
  651. * test/BtDependencyTest.cc
  652. * test/FileEntryTest.cc
  653. * test/RequestGroupTest.cc
  654. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Rewritten PeerStat handling. In the previous implementation,
  656. faster command tries to find slower command. In this new
  657. implementation, slower command tries to find faster command.
  658. PeerStat is now created in each HTTP/FTP request to get download
  659. rate correctly. If the download range is small, the download rate
  660. tends to small and this will occur at the later stage of download.
  661. * src/AbstractCommand.cc
  662. * src/DownloadCommand.cc
  663. * src/FileEntry.cc
  664. * src/FileEntry.h
  665. * src/Request.cc
  666. * src/Request.h
  667. * src/RequestGroup.h
  668. * src/RequestGroupMan.cc
  669. * src/SegmentMan.cc
  670. * src/SegmentMan.h
  671. * test/SegmentManTest.cc
  672. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Removed _uris from RequestGroup. All functions that refer to _uris
  674. were moved to FileEntry. Exit status code are now defined in
  675. DownloadResultCode.h.
  676. * src/AbstractCommand.cc
  677. * src/AdaptiveURISelector.cc
  678. * src/AdaptiveURISelector.h
  679. * src/AutoSaveCommand.cc
  680. * src/BtPostDownloadHandler.cc
  681. * src/CheckIntegrityDispatcherCommand.cc
  682. * src/CookieStorage.cc
  683. * src/DHTAutoSaveCommand.cc
  684. * src/DHTBucketRefreshCommand.cc
  685. * src/DHTEntryPointNameResolveCommand.cc
  686. * src/DHTInteractionCommand.cc
  687. * src/DHTPeerAnnounceCommand.cc
  688. * src/DHTTokenUpdateCommand.cc
  689. * src/DlAbortEx.h
  690. * src/DlRetryEx.h
  691. * src/DownloadCommand.cc
  692. * src/DownloadContext.h
  693. * src/DownloadFailureException.h
  694. * src/DownloadResult.h
  695. * src/DownloadResultCode.h
  696. * src/FeedbackURISelector.cc
  697. * src/FeedbackURISelector.h
  698. * src/FileEntry.cc
  699. * src/FileEntry.h
  700. * src/FtpNegotiationCommand.cc
  701. * src/HttpListenCommand.cc
  702. * src/HttpResponseCommand.cc
  703. * src/HttpServerResponseCommand.cc
  704. * src/HttpSkipResponseCommand.cc
  705. * src/InOrderURISelector.cc
  706. * src/InOrderURISelector.h
  707. * src/Makefile.am
  708. * src/Makefile.in
  709. * src/Metalink2RequestGroup.cc
  710. * src/MultiUrlRequestInfo.cc
  711. * src/MultiUrlRequestInfo.h
  712. * src/OptionHandlerFactory.cc
  713. * src/PeerListenCommand.cc
  714. * src/RecoverableException.h
  715. * src/RequestGroup.cc
  716. * src/RequestGroup.h
  717. * src/RequestGroupMan.cc
  718. * src/RequestGroupMan.h
  719. * src/TimedHaltCommand.cc
  720. * src/TrackerWatcherCommand.cc
  721. * src/URIResult.cc
  722. * src/URIResult.h
  723. * src/URISelector.h
  724. * src/XmlRpcMethodImpl.cc
  725. * src/bittorrent_helper.cc
  726. * src/bittorrent_helper.h
  727. * src/download_helper.cc
  728. * src/main.cc
  729. * src/option_processing.cc
  730. * test/BtDependencyTest.cc
  731. * test/BtPostDownloadHandlerTest.cc
  732. * test/CookieStorageTest.cc
  733. * test/DefaultBtMessageDispatcherTest.cc
  734. * test/DownloadHandlerFactoryTest.cc
  735. * test/DownloadHelperTest.cc
  736. * test/FeedbackURISelectorTest.cc
  737. * test/FileEntryTest.cc
  738. * test/InOrderURISelectorTest.cc
  739. * test/Metalink2RequestGroupTest.cc
  740. * test/MetalinkPostDownloadHandlerTest.cc
  741. * test/RequestGroupManTest.cc
  742. * test/RequestGroupTest.cc
  743. * test/XmlRpcMethodTest.cc
  744. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Removed MockBtContext.h
  746. * test/Makefile.am
  747. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Removed _currentRequest from StreamCheckIntegrityEntry and
  749. StreamFileAllocationEntry.
  750. * src/AbstractCommand.cc
  751. * src/HttpResponseCommand.cc
  752. * src/RequestGroup.cc
  753. * src/StreamCheckIntegrityEntry.cc
  754. * src/StreamCheckIntegrityEntry.h
  755. * src/StreamFileAllocationEntry.cc
  756. * src/StreamFileAllocationEntry.h
  757. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. Rewritten DownloadContext and removed SingleFileDownloadContext
  759. and BtContext and its derived classes. BitTorrent specific
  760. attributes are now set by DownloadContext::setAttribute() with key
  761. bittorrent::BITTORRENT.
  762. * src/AbstractBtMessage.cc
  763. * src/AbstractBtMessage.h
  764. * src/AbstractCommand.cc
  765. * src/AbstractCommand.h
  766. * src/AbstractProxyRequestCommand.cc
  767. * src/AbstractProxyResponseCommand.cc
  768. * src/ActivePeerConnectionCommand.cc
  769. * src/ActivePeerConnectionCommand.h
  770. * src/AnnounceList.cc
  771. * src/BtCheckIntegrityEntry.cc
  772. * src/BtConstants.h
  773. * src/BtContext.h: Removed
  774. * src/BtDependency.cc
  775. * src/BtExtendedMessage.cc
  776. * src/BtPieceMessage.cc
  777. * src/BtPieceMessage.h
  778. * src/BtPostDownloadHandler.cc
  779. * src/BtRegistry.cc
  780. * src/BtRegistry.h
  781. * src/BtSetup.cc
  782. * src/CheckIntegrityCommand.cc
  783. * src/CheckIntegrityEntry.cc
  784. * src/ChecksumCheckIntegrityEntry.cc
  785. * src/ConsoleStatCalc.cc
  786. * src/ContentTypeRequestGroupCriteria.cc
  787. * src/DHTGetPeersCommand.cc
  788. * src/DHTGetPeersCommand.h
  789. * src/DHTPeerLookupTask.cc
  790. * src/DHTPeerLookupTask.h
  791. * src/DHTTaskFactory.h
  792. * src/DHTTaskFactoryImpl.cc
  793. * src/DHTTaskFactoryImpl.h
  794. * src/DefaultBtAnnounce.cc
  795. * src/DefaultBtAnnounce.h
  796. * src/DefaultBtContext.cc: Removed
  797. * src/DefaultBtContext.h: Removed
  798. * src/DefaultBtInteractive.cc
  799. * src/DefaultBtInteractive.h
  800. * src/DefaultBtMessageDispatcher.cc
  801. * src/DefaultBtMessageDispatcher.h
  802. * src/DefaultBtMessageFactory.cc
  803. * src/DefaultBtMessageFactory.h
  804. * src/DefaultBtMessageReceiver.cc
  805. * src/DefaultBtMessageReceiver.h
  806. * src/DefaultBtProgressInfoFile.cc
  807. * src/DefaultBtRequestFactory.cc
  808. * src/DefaultBtRequestFactory.h
  809. * src/DefaultExtensionMessageFactory.cc
  810. * src/DefaultExtensionMessageFactory.h
  811. * src/DefaultPeerStorage.cc
  812. * src/DefaultPeerStorage.h
  813. * src/DefaultPieceStorage.cc
  814. * src/DefaultSegmentManFactory.cc
  815. * src/DiskAdaptor.cc
  816. * src/DiskAdaptor.h
  817. * src/DownloadContext.cc
  818. * src/DownloadContext.h
  819. * src/DownloadEngine.cc
  820. * src/DownloadEngineFactory.cc
  821. * src/DownloadHandler.cc
  822. * src/DownloadResult.h
  823. * src/FileAllocationCommand.cc
  824. * src/FileAllocationDispatcherCommand.cc
  825. * src/FileAllocationEntry.cc
  826. * src/FileEntry.h
  827. * src/FillRequestGroupCommand.cc
  828. * src/FtpDownloadCommand.cc
  829. * src/FtpFinishDownloadCommand.cc
  830. * src/FtpInitiateConnectionCommand.cc
  831. * src/FtpNegotiationCommand.cc
  832. * src/FtpTunnelRequestCommand.cc
  833. * src/FtpTunnelResponseCommand.cc
  834. * src/HandshakeExtensionMessage.cc
  835. * src/HandshakeExtensionMessage.h
  836. * src/HaveEraseCommand.cc
  837. * src/HttpDownloadCommand.cc
  838. * src/HttpInitiateConnectionCommand.cc
  839. * src/HttpProxyRequestCommand.cc
  840. * src/HttpProxyResponseCommand.cc
  841. * src/HttpRequest.cc
  842. * src/HttpRequest.h
  843. * src/HttpRequestCommand.cc
  844. * src/HttpResponseCommand.cc
  845. * src/HttpServerBodyCommand.cc
  846. * src/HttpServerCommand.cc
  847. * src/HttpSkipResponseCommand.cc
  848. * src/InitiateConnectionCommandFactory.cc
  849. * src/InitiatorMSEHandshakeCommand.cc
  850. * src/InitiatorMSEHandshakeCommand.h
  851. * src/IteratableChecksumValidator.cc
  852. * src/IteratableChecksumValidator.h
  853. * src/IteratableChunkChecksumValidator.cc
  854. * src/MSEHandshake.cc
  855. * src/MSEHandshake.h
  856. * src/Makefile.am
  857. * src/Makefile.in
  858. * src/Metalink2RequestGroup.cc
  859. * src/MetalinkPostDownloadHandler.cc
  860. * src/MultiDiskAdaptor.cc
  861. * src/MultiDiskAdaptor.h
  862. * src/MultiFileAllocationIterator.cc
  863. * src/MultiUrlRequestInfo.cc
  864. * src/PeerChokeCommand.cc
  865. * src/PeerChokeCommand.h
  866. * src/PeerInitiateConnectionCommand.cc
  867. * src/PeerInitiateConnectionCommand.h
  868. * src/PeerInteractionCommand.cc
  869. * src/PeerInteractionCommand.h
  870. * src/PeerReceiveHandshakeCommand.cc
  871. * src/PieceHashCheckIntegrityEntry.cc
  872. * src/RealtimeCommand.cc
  873. * src/ReceiverMSEHandshakeCommand.cc
  874. * src/RequestGroup.cc
  875. * src/RequestGroup.h
  876. * src/RequestGroupEntry.cc
  877. * src/RequestGroupMan.cc
  878. * src/SeedCheckCommand.cc
  879. * src/SeedCheckCommand.h
  880. * src/SegmentMan.cc
  881. * src/ShareRatioSeedCriteria.h
  882. * src/SingleFileDownloadContext.cc: Removed
  883. * src/SingleFileDownloadContext.h: Removed
  884. * src/SleepCommand.cc
  885. * src/StreamCheckIntegrityEntry.cc
  886. * src/TrackerWatcherCommand.cc
  887. * src/TrackerWatcherCommand.h
  888. * src/UnknownLengthPieceStorage.cc
  889. * src/Util.cc
  890. * src/Util.h
  891. * src/XmlRpcMethodImpl.cc
  892. * src/bittorrent_helper.cc
  893. * src/bittorrent_helper.h
  894. * src/download_helper.cc
  895. * src/main.cc
  896. * src/option_processing.cc
  897. * test/BitfieldManTest.cc
  898. * test/BittorrentHelperTest.cc
  899. * test/BtCancelMessageTest.cc
  900. * test/BtChokeMessageTest.cc
  901. * test/BtDependencyTest.cc
  902. * test/BtPieceMessageTest.cc
  903. * test/BtPostDownloadHandlerTest.cc
  904. * test/BtRegistryTest.cc
  905. * test/BtRejectMessageTest.cc
  906. * test/BtRequestMessageTest.cc
  907. * test/DHTPeerAnnounceStorageTest.cc
  908. * test/DefaultBtAnnounceTest.cc
  909. * test/DefaultBtContextTest.cc: Removed
  910. * test/DefaultBtMessageDispatcherTest.cc
  911. * test/DefaultBtMessageFactoryTest.cc
  912. * test/DefaultBtProgressInfoFileTest.cc
  913. * test/DefaultBtRequestFactoryTest.cc
  914. * test/DefaultExtensionMessageFactoryTest.cc
  915. * test/DefaultPeerStorageTest.cc
  916. * test/DefaultPieceStorageTest.cc
  917. * test/DirectDiskAdaptorTest.cc
  918. * test/DownloadContextTest.cc
  919. * test/DownloadHandlerFactoryTest.cc
  920. * test/DownloadHelperTest.cc
  921. * test/HandshakeExtensionMessageTest.cc
  922. * test/HttpRequestTest.cc
  923. * test/HttpResponseTest.cc
  924. * test/IteratableChecksumValidatorTest.cc
  925. * test/IteratableChunkChecksumValidatorTest.cc
  926. * test/MSEHandshakeTest.cc
  927. * test/Makefile.am
  928. * test/Makefile.in
  929. * test/Metalink2RequestGroupTest.cc
  930. * test/MetalinkPostDownloadHandlerTest.cc
  931. * test/MockBtContext.h: Removed
  932. * test/MockDHTTaskFactory.h
  933. * test/MockDownloadContext.h: Removed
  934. * test/MockPieceStorage.h
  935. * test/MultiDiskAdaptorTest.cc
  936. * test/MultiFileAllocationIteratorTest.cc
  937. * test/RequestGroupManTest.cc
  938. * test/RequestGroupTest.cc
  939. * test/SegmentManTest.cc
  940. * test/ShareRatioSeedCriteriaTest.cc
  941. * test/SingleFileDownloadContextTest.cc: Removed
  942. * test/UtilTest.cc
  943. * test/XmlRpcMethodTest.cc
  944. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Added experimental support of WEB-Seeding for multi-file torrent.
  946. Due to fundamental changes in file handling in HTTP/FTP code, many
  947. functions are not working: PeerStat, ServerHost, proxy..etc
  948. * src/AbstractCommand.cc
  949. * src/AbstractCommand.h
  950. * src/BitfieldMan.cc
  951. * src/BitfieldMan.h
  952. * src/CreateRequestCommand.cc
  953. * src/CreateRequestCommand.h
  954. * src/DefaultPieceStorage.cc
  955. * src/DefaultPieceStorage.h
  956. * src/DownloadCommand.cc
  957. * src/DownloadCommand.h
  958. * src/DownloadContext.cc
  959. * src/DownloadContext.h
  960. * src/FileEntry.cc
  961. * src/FileEntry.h
  962. * src/FtpDownloadCommand.cc
  963. * src/FtpDownloadCommand.h
  964. * src/FtpFinishDownloadCommand.cc
  965. * src/FtpFinishDownloadCommand.h
  966. * src/FtpInitiateConnectionCommand.cc
  967. * src/FtpInitiateConnectionCommand.h
  968. * src/FtpNegotiationCommand.cc
  969. * src/FtpNegotiationCommand.h
  970. * src/FtpTunnelResponseCommand.cc
  971. * src/HttpDownloadCommand.cc
  972. * src/HttpDownloadCommand.h
  973. * src/HttpInitiateConnectionCommand.cc
  974. * src/HttpInitiateConnectionCommand.h
  975. * src/HttpProxyResponseCommand.cc
  976. * src/HttpRequest.cc
  977. * src/HttpRequest.h
  978. * src/HttpRequestCommand.cc
  979. * src/HttpRequestCommand.h
  980. * src/HttpResponseCommand.cc
  981. * src/HttpResponseCommand.h
  982. * src/HttpSkipResponseCommand.cc
  983. * src/HttpSkipResponseCommand.h
  984. * src/InitiateConnectionCommand.cc
  985. * src/InitiateConnectionCommand.h
  986. * src/InitiateConnectionCommandFactory.cc
  987. * src/InitiateConnectionCommandFactory.h
  988. * src/Makefile.am
  989. * src/PieceStorage.h
  990. * src/RequestGroup.cc
  991. * src/RequestGroup.h
  992. * src/RequestGroupMan.cc
  993. * src/SegmentMan.cc
  994. * src/SegmentMan.h
  995. * src/SingleFileDownloadContext.h
  996. * src/StreamFileAllocationEntry.cc
  997. * src/TrackerWatcherCommand.cc
  998. * src/UnknownLengthPieceStorage.cc
  999. * src/UnknownLengthPieceStorage.h
  1000. * src/array_fun.h
  1001. * src/bitfield.h
  1002. * src/download_helper.cc
  1003. * test/DownloadContextTest.cc
  1004. * test/Makefile.am
  1005. * test/MockDownloadContext.h
  1006. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Added tellWaiting XML-RPC method.
  1008. * src/SingleFileDownloadContext.cc
  1009. * src/XmlRpcMethodFactory.cc
  1010. * src/XmlRpcMethodImpl.cc
  1011. * src/XmlRpcMethodImpl.h
  1012. * test/XmlRpcMethodTest.cc
  1013. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Updated CookieStorageTest
  1015. * test/CookieStorageTest.cc
  1016. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1018. handle excepion inside these functions.
  1019. * src/LibgnutlsTLSContext.cc
  1020. * src/LibgnutlsTLSContext.h
  1021. * src/LibsslTLSContext.cc
  1022. * src/LibsslTLSContext.h
  1023. * src/MultiUrlRequestInfo.cc
  1024. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1025. Added comment
  1026. * src/RequestGroup.cc
  1027. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1028. In CookieStorage::load() and saveNsFormat(), handle exception
  1029. inside the functions. When saving Cookies, first write temporary
  1030. file and after successful writes, then renames it to final
  1031. destination.
  1032. * src/CookieStorage.cc
  1033. * src/CookieStorage.h
  1034. * src/MultiUrlRequestInfo.cc
  1035. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. The default value of --dir option is the absolute path to the
  1037. current directory. If getcwd() is failed, then it is ".", which is
  1038. the same value with old implementation. This change is necessary
  1039. because after daemon() call, the current working directory is
  1040. changed to /.
  1041. * src/File.cc
  1042. * src/File.h
  1043. * src/OptionHandlerFactory.cc
  1044. * src/option_processing.cc
  1045. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Call daemon() with arguments(0,0), which means daemon() changes
  1047. current working directory to / and redirects stdin, stdout and
  1048. stderr to /dev/null.
  1049. * src/option_processing.cc
  1050. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1051. Small performance optimizations.
  1052. * src/RequestGroupMan.cc
  1053. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1055. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1056. * src/RequestGroupMan.cc
  1057. * src/RequestGroupMan.h
  1058. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1060. setNoWiat(true) if newly created command calls
  1061. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1062. * src/HttpListenCommand.cc
  1063. * src/HttpServerBodyCommand.cc
  1064. * src/HttpServerCommand.cc
  1065. * src/HttpServerResponseCommand.cc
  1066. * src/InitiateConnectionCommand.cc
  1067. * src/RequestGroup.cc
  1068. * src/StreamFileAllocationEntry.cc
  1069. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1070. Removed include vector
  1071. * src/BtRegistry.h
  1072. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1073. Rewritten BtRegistry
  1074. * src/BtRegistry.cc
  1075. * src/BtRegistry.h
  1076. * src/BtSetup.cc
  1077. * src/ConsoleStatCalc.cc
  1078. * src/PeerInteractionCommand.cc
  1079. * src/PeerReceiveHandshakeCommand.cc
  1080. * src/ReceiverMSEHandshakeCommand.cc
  1081. * src/RequestGroup.cc
  1082. * src/XmlRpcMethodImpl.cc
  1083. * test/BtRegistryTest.cc
  1084. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1086. * src/DefaultBtProgressInfoFile.cc
  1087. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1088. Throw an exception if position is less than 0.
  1089. * src/XmlRpcMethodImpl.cc
  1090. * test/XmlRpcMethodTest.cc
  1091. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Use writeFilePath() in ConsoleStatCalc.cc
  1093. * src/ConsoleStatCalc.cc
  1094. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Receive the return value as const reference from
  1096. DownloadContext::getFileEntries().
  1097. * src/DefaultPieceStorage.cc
  1098. * src/RequestGroupMan.cc
  1099. * src/XmlRpcMethodImpl.cc
  1100. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1101. DownloadContext now has _fileEntries so that
  1102. DownloadContext::getFileEntries() can returns its const reference.
  1103. * src/DefaultBtContext.cc
  1104. * src/DefaultBtContext.h
  1105. * src/DownloadContext.cc
  1106. * src/DownloadContext.h
  1107. * src/SingleFileDownloadContext.cc
  1108. * src/SingleFileDownloadContext.h
  1109. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1111. writeFilePath() function template from RequestGroupMan.cc to
  1112. FileEntry.h
  1113. * src/FileEntry.h
  1114. * src/RequestGroupMan.cc
  1115. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Documented 'position' parameter is starting from 0 in man page.
  1117. * doc/aria2c.1.txt
  1118. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1119. Updated doc.
  1120. * src/MSEHandshake.cc
  1121. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Removed _acceptFeatures and its accessor functions from
  1123. RequestGroup since they are not used practically.
  1124. * src/HttpRequestCommand.cc
  1125. * src/RequestGroup.cc
  1126. * src/RequestGroup.h
  1127. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Removed member _maxTries from RequestGroup class to avoid
  1129. duplicate option value. Those classes who refer this variable
  1130. should use option value of PREF_MAX_TRIES directly.
  1131. * src/AbstractCommand.cc
  1132. * src/RequestGroup.cc
  1133. * src/RequestGroup.h
  1134. * src/TrackerWatcherCommand.cc
  1135. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. * Release 1.4.1
  1137. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1138. Fixed compiler warnings on netbsd
  1139. * src/DHTConnectionImpl.cc
  1140. * src/PeerListenCommand.cc
  1141. * src/PeerSessionResource.cc
  1142. * src/SegmentMan.cc
  1143. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1144. Updated Ukrainian translation. Thanks to all translators.
  1145. * po/uk.po
  1146. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Bump up version number to 1.4.1.
  1148. * configure.ac
  1149. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Added unit tests for strjoin, strconcat and strappend.
  1151. * test/a2functionalTest.cc
  1152. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. Rewritten strconcat and strappend using operator+ instead of
  1154. append().
  1155. * src/a2functional.h
  1156. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1157. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1158. is enabled.
  1159. * src/Makefile.am
  1160. * test/Makefile.am
  1161. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Added countSeeder() function which counts seeder in the given
  1163. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1164. * src/ConsoleStatCalc.cc
  1165. * src/Peer.h
  1166. * src/XmlRpcMethodImpl.cc
  1167. * test/PeerTest.cc
  1168. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Documented missing seeder in getPeers xml-rpc method.
  1170. Documented uploadLength and numSeeders.
  1171. * doc/aria2c.1.txt
  1172. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Added uploadLength and numSeeders to the response of tellStatus
  1174. xml-rpc method. Assert that PeerStorage instance is not null
  1175. instead of checking if statement. It should be non-null in this
  1176. context.
  1177. * src/XmlRpcMethodImpl.cc
  1178. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1179. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1180. * src/XmlRpcResponse.cc
  1181. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1182. Avoid intermediate object during string concatenation.
  1183. * src/HttpRequest.cc
  1184. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Added strjoin function template. Use it in pathJoin()
  1186. * src/Util.h
  1187. * src/a2functional.h
  1188. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1189. Avoid intermediate object during string concatenation. Replaced
  1190. post-increment unary operator with pre-increment one in for loop.
  1191. * src/AdaptiveURISelector.cc
  1192. * src/AnnounceList.cc
  1193. * src/AuthConfig.h
  1194. * src/BtBitfieldMessage.cc
  1195. * src/BtExtendedMessage.cc
  1196. * src/BtHandshakeMessage.cc
  1197. * src/BtPieceMessage.cc
  1198. * src/BtPortMessage.cc
  1199. * src/Cookie.cc
  1200. * src/DHTAnnouncePeerMessage.cc
  1201. * src/DHTAutoSaveCommand.cc
  1202. * src/DHTGetPeersReplyMessage.cc
  1203. * src/DHTNode.cc
  1204. * src/DHTQueryMessage.cc
  1205. * src/DHTResponseMessage.cc
  1206. * src/DHTUnknownMessage.cc
  1207. * src/DefaultBtAnnounce.cc
  1208. * src/DefaultBtContext.cc
  1209. * src/DefaultBtInteractive.cc
  1210. * src/DefaultBtProgressInfoFile.cc
  1211. * src/DefaultPeerStorage.cc
  1212. * src/DownloadEngine.cc
  1213. * src/FeatureConfig.cc
  1214. * src/File.cc
  1215. * src/FtpConnection.cc
  1216. * src/FtpNegotiationCommand.cc
  1217. * src/HandshakeExtensionMessage.cc
  1218. * src/HttpConnection.cc
  1219. * src/HttpRequest.cc
  1220. * src/HttpResponseCommand.cc
  1221. * src/HttpServer.cc
  1222. * src/IndexBtMessage.cc
  1223. * src/Metalink2RequestGroup.cc
  1224. * src/OptionHandlerImpl.h
  1225. * src/PStringBuildVisitor.cc
  1226. * src/Peer.cc
  1227. * src/PeerListenCommand.cc
  1228. * src/Piece.cc
  1229. * src/RangeBtMessage.cc
  1230. * src/Request.cc
  1231. * src/Request.h
  1232. * src/RequestGroup.cc
  1233. * src/RequestGroupMan.cc
  1234. * src/ServerStat.cc
  1235. * src/ServerStatMan.cc
  1236. * src/UTPexExtensionMessage.cc
  1237. * src/Util.cc
  1238. * src/a2functional.h
  1239. * src/download_helper.cc
  1240. * src/messageDigest.cc
  1241. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1242. Unchoke a peer randomly at first and second choke round in seed
  1243. state.
  1244. * src/BtSeederStateChoke.cc
  1245. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1246. Added (sock_t) to quiet compiler warnings in MinGW
  1247. * src/SocketCore.cc
  1248. * src/SocketCore.h
  1249. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1250. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1251. * src/EpollEventPoll.h
  1252. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1253. Added fork() emulation using CreateProcess() in MinGW
  1254. * src/RequestGroupMan.cc
  1255. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. * Release 1.4.0
  1257. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Added utf8.torrent to EXTRA_DIST
  1259. * test/Makefile.am
  1260. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. Fixed docs of aria2.addMetalink xml-rpc method.
  1262. * doc/aria2c.1.txt
  1263. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1264. Added Slovak translation. Updated Ukrainian and Brazilian
  1265. Portuguese translation. Thanks to all translators.
  1266. * po/sk.po
  1267. * po/uk.po
  1268. * po/pt_BR.po
  1269. * po/LINGUAS
  1270. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Added test case for XmlRpcProcessor to fail to parse malformed
  1272. document.
  1273. * test/XmlRpcRequestProcessorTest.cc
  1274. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Removed *.gmo files in po because they are generated on 'make
  1276. dist'
  1277. * po/*.gmo
  1278. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Documented max-concurrent-downloads of changeGlobalOption method
  1280. in man page.
  1281. * doc/aria2c.1.txt
  1282. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1283. Added max-concurrent-downloads option to changeGlobalOption
  1284. xml-rpc method. Rewritten loop conditional in
  1285. RequestGroupMan::fillRequestGroupFromReserver().
  1286. * src/RequestGroupMan.cc
  1287. * src/RequestGroupMan.h
  1288. * src/XmlRpcMethod.cc
  1289. * src/XmlRpcMethodImpl.cc
  1290. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1291. Documented position parameter in man page.
  1292. * doc/aria2c.1.txt
  1293. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Added 'position' parameter to addUri, addTorrent and addMetalink
  1295. xml-rpc method.
  1296. * src/RequestGroupMan.cc
  1297. * src/RequestGroupMan.h
  1298. * src/XmlRpcMethodImpl.cc
  1299. * test/XmlRpcMethodTest.cc
  1300. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Removed Peer.cc from compile source list when --disable-bittorrent
  1302. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1303. takes Peer.
  1304. * src/DefaultPieceStorage.cc
  1305. * src/DefaultPieceStorage.h
  1306. * src/Makefile.am
  1307. * src/PieceStorage.h
  1308. * src/UnknownLengthPieceStorage.cc
  1309. * src/UnknownLengthPieceStorage.h
  1310. * test/MockPieceStorage.h
  1311. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Implemented getter methods in header files to give them more
  1313. chance of optimization.
  1314. Return const reference for SharadHandle if possible.
  1315. * src/AbstractAuthResolver.cc
  1316. * src/AbstractAuthResolver.h
  1317. * src/AbstractBtMessage.cc
  1318. * src/AbstractBtMessage.h
  1319. * src/AbstractSingleDiskAdaptor.cc
  1320. * src/AbstractSingleDiskAdaptor.h
  1321. * src/AsyncNameResolver.cc
  1322. * src/AsyncNameResolver.h
  1323. * src/BNode.cc
  1324. * src/BNode.h
  1325. * src/BitfieldMan.cc
  1326. * src/BitfieldMan.h
  1327. * src/BtAbortOutstandingRequestEvent.h
  1328. * src/BtExtendedMessage.cc
  1329. * src/BtExtendedMessage.h
  1330. * src/BtSeederStateChoke.cc
  1331. * src/BtSeederStateChoke.h
  1332. * src/Cookie.cc
  1333. * src/Cookie.h
  1334. * src/DHTBucket.cc
  1335. * src/DHTBucket.h
  1336. * src/DHTConnectionImpl.cc
  1337. * src/DHTConnectionImpl.h
  1338. * src/DHTFindNodeReplyMessage.cc
  1339. * src/DHTFindNodeReplyMessage.h
  1340. * src/DHTGetPeersReplyMessage.cc
  1341. * src/DHTGetPeersReplyMessage.h
  1342. * src/DHTInteractionCommand.cc
  1343. * src/DHTMessage.cc
  1344. * src/DHTMessage.h
  1345. * src/DHTMessageDispatcherImpl.cc
  1346. * src/DHTMessageEntry.cc
  1347. * src/DHTMessageReceiver.cc
  1348. * src/DHTMessageReceiver.h
  1349. * src/DHTMessageTrackerEntry.cc
  1350. * src/DHTMessageTrackerEntry.h
  1351. * src/DHTPeerAnnounceEntry.cc
  1352. * src/DHTPeerAnnounceEntry.h
  1353. * src/DHTPeerLookupTask.cc
  1354. * src/DHTPeerLookupTask.h
  1355. * src/DHTRoutingTableDeserializer.cc
  1356. * src/DHTRoutingTableDeserializer.h
  1357. * src/DefaultBtAnnounce.cc
  1358. * src/DefaultBtAnnounce.h
  1359. * src/DefaultBtMessageDispatcher.cc
  1360. * src/DefaultBtMessageDispatcher.h
  1361. * src/DefaultBtRequestFactory.cc
  1362. * src/DefaultBtRequestFactory.h
  1363. * src/DiskAdaptor.cc
  1364. * src/DiskAdaptor.h
  1365. * src/DownloadContext.cc
  1366. * src/DownloadContext.h
  1367. * src/DownloadEngine.cc
  1368. * src/DownloadEngine.h
  1369. * src/EpollEventPoll.cc
  1370. * src/EpollEventPoll.h
  1371. * src/FtpConnection.cc
  1372. * src/FtpConnection.h
  1373. * src/HttpConnection.cc
  1374. * src/HttpConnection.h
  1375. * src/HttpHeader.cc
  1376. * src/HttpHeader.h
  1377. * src/HttpRequest.cc
  1378. * src/HttpRequest.h
  1379. * src/HttpResponse.cc
  1380. * src/HttpResponse.h
  1381. * src/LibsslTLSContext.cc
  1382. * src/LibsslTLSContext.h
  1383. * src/MSEHandshake.cc
  1384. * src/MSEHandshake.h
  1385. * src/MetalinkEntry.cc
  1386. * src/MetalinkEntry.h
  1387. * src/MetalinkParserController.cc
  1388. * src/MetalinkParserController.h
  1389. * src/MetalinkParserStateMachine.cc
  1390. * src/MetalinkParserStateMachine.h
  1391. * src/MultiDiskAdaptor.cc
  1392. * src/MultiDiskAdaptor.h
  1393. * src/NetrcAuthResolver.cc
  1394. * src/NetrcAuthResolver.h
  1395. * src/Peer.cc
  1396. * src/Peer.h
  1397. * src/PeerSessionResource.cc
  1398. * src/PeerSessionResource.h
  1399. * src/Piece.cc
  1400. * src/Piece.h
  1401. * src/PieceStatMan.cc
  1402. * src/PieceStatMan.h
  1403. * src/Request.cc
  1404. * src/Request.h
  1405. * src/RequestGroup.cc
  1406. * src/RequestGroup.h
  1407. * src/RequestGroupMan.cc
  1408. * src/RequestGroupMan.h
  1409. * src/RequestSlot.cc
  1410. * src/RequestSlot.h
  1411. * src/SegmentMan.cc
  1412. * src/SegmentMan.h
  1413. * src/SelectEventPoll.cc
  1414. * src/SelectEventPoll.h
  1415. * src/ServerStat.cc
  1416. * src/ServerStat.h
  1417. * src/Signature.cc
  1418. * src/Signature.h
  1419. * src/URIResult.cc
  1420. * src/URIResult.h
  1421. * src/UTPexExtensionMessage.cc
  1422. * src/UTPexExtensionMessage.h
  1423. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Fixed compile error without BitTorrent and Metalink support.
  1425. * src/XmlRpcMethod.cc
  1426. * src/XmlRpcMethodFactory.cc
  1427. * src/XmlRpcMethodImpl.cc
  1428. * src/XmlRpcMethodImpl.h
  1429. * test/XmlRpcMethodTest.cc
  1430. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Rewritten the help message for --allow-overwrite option.
  1432. * doc/aria2c.1.txt
  1433. * src/usage_text.h
  1434. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Fixed typo
  1436. * doc/aria2c.1.txt
  1437. * src/usage_text.h
  1438. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Updated README for 1.4.0 release. Use new table syntax of
  1440. asciidoc.
  1441. * README
  1442. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Documented --xml-rpc-max-request-size option in man page.
  1444. * doc/aria2c.1.txt
  1445. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Moved C_* constants from BtContext to DefaultBtContext.
  1447. * src/BtContext.cc: Removed.
  1448. * src/BtContext.h
  1449. * src/DefaultBtContext.cc
  1450. * src/DefaultBtContext.h
  1451. * src/Makefile.am
  1452. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1454. path key respectively when persing .torrent file.
  1455. * src/BtContext.cc
  1456. * src/BtContext.h
  1457. * src/DefaultBtContext.cc
  1458. * test/DefaultBtContextTest.cc
  1459. * test/utf8.torrent
  1460. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1461. Added --xml-rpc-max-request-size option to limit the size of
  1462. XML-RPC request.
  1463. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Documented XML-RPC API in man page.
  1465. * doc/aria2c.1.txt
  1466. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1468. will break strict-aliasing rules
  1469. * src/PeerConnection.cc
  1470. * test/DHTRoutingTableSerializerTest.cc
  1471. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1473. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1474. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1475. PKG_CHECK_MODULES macro uses latter name.
  1476. * m4/sqlite3.m4
  1477. * src/Makefile.am
  1478. * test/Makefile.am
  1479. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1480. Fixed typo
  1481. * configure.ac
  1482. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1483. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1484. presence of libgnutls using pkg-config first. If it fails, fall
  1485. back to old macro libgnutls.m4.
  1486. * configure.ac
  1487. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Use s itself instead of !s.bad()
  1489. * src/CookieStorage.cc
  1490. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1491. Documented --on-download-* option and --save-cookies option in man
  1492. page.
  1493. * doc/aria2c.1.txt
  1494. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1495. Set possible values for --load-cookie option to "/path/to/file".
  1496. * src/OptionHandlerFactory.cc
  1497. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Added --save-cookies option.
  1499. * src/Cookie.cc
  1500. * src/Cookie.h
  1501. * src/CookieStorage.cc
  1502. * src/CookieStorage.h
  1503. * src/MultiUrlRequestInfo.cc
  1504. * src/OptionHandlerFactory.cc
  1505. * src/prefs.cc
  1506. * src/prefs.h
  1507. * src/usage_text.h
  1508. * test/CookieStorageTest.cc
  1509. * test/CookieTest.cc
  1510. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Removed tellAll XML-RPC command because its reponse tends to be
  1512. big if stopped/waiting downloads pile up.
  1513. * src/XmlRpcMethodFactory.cc
  1514. * src/XmlRpcMethodImpl.cc
  1515. * src/XmlRpcMethodImpl.h
  1516. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Added the ability to execute command when download starts and
  1518. stops. You can also specify command for particular cases such as
  1519. complete/error download. Added --on-download-start,
  1520. --on-download-stop, --on-download-complete and --on-download-error
  1521. option.
  1522. * src/OptionHandlerFactory.cc
  1523. * src/RequestGroupMan.cc
  1524. * src/prefs.cc
  1525. * src/prefs.h
  1526. * src/usage_text.h
  1527. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1528. Fixed test error
  1529. * test/BencodeTest.cc
  1530. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1531. Added unit tests.
  1532. * test/XmlRpcMethodTest.cc
  1533. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Made exception message more verbose.
  1535. * src/bencode.cc
  1536. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1538. space in console readout. Also they are now shown in MiB/s if
  1539. speed > 1024KiB/s.
  1540. * src/ConsoleStatCalc.cc
  1541. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Added SEED to console output, which represents the number of
  1543. seeders currently the client is connecting to.
  1544. * src/ConsoleStatCalc.cc
  1545. * src/ConsoleStatCalc.h
  1546. * src/DownloadEngine.cc
  1547. * src/NullStatCalc.h
  1548. * src/StatCalc.h
  1549. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Added source filename(__FILE__) and line number(__LINE__) to
  1551. exception message.
  1552. * src/AbstractCommand.cc
  1553. * src/AbstractDiskWriter.cc
  1554. * src/AbstractProxyResponseCommand.cc
  1555. * src/BDE.h
  1556. * src/BtAllowedFastMessage.cc
  1557. * src/BtHandshakeMessageValidator.h
  1558. * src/BtHaveAllMessage.cc
  1559. * src/BtHaveNoneMessage.cc
  1560. * src/BtPieceMessage.cc
  1561. * src/BtRejectMessage.cc
  1562. * src/ChunkedDecoder.cc
  1563. * src/CookieStorage.cc
  1564. * src/DHTAnnouncePeerMessage.cc
  1565. * src/DHTEntryPointNameResolveCommand.cc
  1566. * src/DHTMessageFactoryImpl.cc
  1567. * src/DHTMessageTracker.cc
  1568. * src/DHTRoutingTableDeserializer.cc
  1569. * src/DHTRoutingTableSerializer.cc
  1570. * src/DHTSetup.cc
  1571. * src/DHTTokenTracker.cc
  1572. * src/DefaultBtAnnounce.cc
  1573. * src/DefaultBtContext.cc
  1574. * src/DefaultBtInteractive.cc
  1575. * src/DefaultBtMessageFactory.cc
  1576. * src/DefaultBtProgressInfoFile.cc
  1577. * src/DefaultExtensionMessageFactory.cc
  1578. * src/DlAbortEx.h
  1579. * src/DlRetryEx.h
  1580. * src/DownloadCommand.cc
  1581. * src/DownloadEngineFactory.cc
  1582. * src/DownloadFailureException.h
  1583. * src/Exception.cc
  1584. * src/Exception.h
  1585. * src/ExpatMetalinkProcessor.cc
  1586. * src/ExpatXmlRpcRequestProcessor.cc
  1587. * src/FallocFileAllocationIterator.cc
  1588. * src/FatalException.h
  1589. * src/FtpConnection.cc
  1590. * src/FtpFinishDownloadCommand.cc
  1591. * src/FtpInitiateConnectionCommand.cc
  1592. * src/FtpNegotiationCommand.cc
  1593. * src/GZipDecoder.cc
  1594. * src/HandshakeExtensionMessage.cc
  1595. * src/HttpConnection.cc
  1596. * src/HttpHeaderProcessor.cc
  1597. * src/HttpInitiateConnectionCommand.cc
  1598. * src/HttpResponse.cc
  1599. * src/HttpResponseCommand.cc
  1600. * src/HttpServer.cc
  1601. * src/HttpSkipResponseCommand.cc
  1602. * src/InitiateConnectionCommandFactory.cc
  1603. * src/IteratableChunkChecksumValidator.cc
  1604. * src/LibgcryptARC4Context.h
  1605. * src/LibgcryptARC4Decryptor.h
  1606. * src/LibgcryptARC4Encryptor.h
  1607. * src/LibgcryptDHKeyExchange.h
  1608. * src/LibgnutlsTLSContext.cc
  1609. * src/LibsslARC4Context.h
  1610. * src/LibsslARC4Decryptor.h
  1611. * src/LibsslARC4Encryptor.h
  1612. * src/LibsslDHKeyExchange.h
  1613. * src/LibsslTLSContext.cc
  1614. * src/MSEHandshake.cc
  1615. * src/MessageDigestHelper.cc
  1616. * src/MetalinkHelper.cc
  1617. * src/MultiDiskAdaptor.cc
  1618. * src/NameMatchOptionHandler.h
  1619. * src/NameResolver.cc
  1620. * src/Netrc.cc
  1621. * src/NsCookieParser.cc
  1622. * src/OptionHandlerException.cc
  1623. * src/OptionHandlerException.h
  1624. * src/OptionHandlerImpl.h
  1625. * src/OptionParser.cc
  1626. * src/ParameterizedStringParser.cc
  1627. * src/PeerAbstractCommand.cc
  1628. * src/PeerConnection.cc
  1629. * src/PeerMessageUtil.cc
  1630. * src/PeerReceiveHandshakeCommand.cc
  1631. * src/Platform.cc
  1632. * src/ReceiverMSEHandshakeCommand.cc
  1633. * src/RecoverableException.h
  1634. * src/RequestGroup.cc
  1635. * src/SimpleLogger.cc
  1636. * src/SocketCore.cc
  1637. * src/Sqlite3MozCookieParser.cc
  1638. * src/UTPexExtensionMessage.cc
  1639. * src/Util.cc
  1640. * src/XML2SAXMetalinkProcessor.cc
  1641. * src/Xml2XmlRpcRequestProcessor.cc
  1642. * src/XmlRpcMethodImpl.cc
  1643. * src/bencode.cc
  1644. * src/download_helper.cc
  1645. * src/messageDigest.h
  1646. * test/ExceptionTest.cc
  1647. * test/TestUtil.cc
  1648. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1649. Bump up version number to 1.4.0
  1650. * configure.ac
  1651. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Added 2files.metalink to EXTRA_DIST
  1653. * test/Makefile.am
  1654. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Added missing 2files.metalink
  1656. * test/2files.metalink
  1657. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Show "[MEMORY]" prefix before filename in download summary if it
  1659. is downloaded into memory.
  1660. * src/DownloadResult.h
  1661. * src/RequestGroup.cc
  1662. * src/RequestGroupMan.cc
  1663. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1665. * src/ExpatXmlRpcRequestProcessor.cc
  1666. * src/Xml2XmlRpcRequestProcessor.cc
  1667. * src/message.h
  1668. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Defined const BDEs to avoid duplicate instantiation.
  1670. Defined MSG_GID_NOT_PROVIDED.
  1671. * src/XmlRpcMethodImpl.cc
  1672. * src/message.h
  1673. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Code cleanup
  1675. * src/Xml2XmlRpcRequestProcessor.cc
  1676. * src/Xml2XmlRpcRequestProcessor.h
  1677. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Defined ENABLE_XML_RPC
  1679. * configure.ac
  1680. * configure
  1681. * config.h.in
  1682. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Added ExpatXmlRpcRequestProcessor
  1684. * src/ExpatXmlRpcRequestProcessor.cc
  1685. * src/ExpatXmlRpcRequestProcessor.h
  1686. * src/Makefile.am
  1687. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Added tests for addTorrent and addMetalink command.
  1689. * test/TestUtil.cc
  1690. * test/TestUtil.h
  1691. * test/XmlRpcMethodTest.cc
  1692. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Corrected the description of --file-allocation option.
  1694. * doc/aria2c.1.txt
  1695. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Added tellAll command.
  1697. * src/XmlRpcMethodFactory.cc
  1698. * src/XmlRpcMethodImpl.cc
  1699. * src/XmlRpcMethodImpl.h
  1700. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1702. * src/XmlRpcMethodImpl.cc
  1703. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Added changeGlobalOption command. Currently,
  1705. max-overall-download-limit and max-overall-upload-limit option are
  1706. available.
  1707. * src/RequestGroupMan.h
  1708. * src/XmlRpcMethod.cc
  1709. * src/XmlRpcMethod.h
  1710. * src/XmlRpcMethodFactory.cc
  1711. * src/XmlRpcMethodImpl.cc
  1712. * src/XmlRpcMethodImpl.h
  1713. * test/XmlRpcMethodTest.cc
  1714. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1715. Added changeOption command. Currently, max-download-limit,
  1716. max-upload-limit option are available in this command.
  1717. * src/RequestGroup.h
  1718. * src/XmlRpcMethod.cc
  1719. * src/XmlRpcMethod.h
  1720. * src/XmlRpcMethodFactory.cc
  1721. * src/XmlRpcMethodImpl.cc
  1722. * src/XmlRpcMethodImpl.h
  1723. * test/XmlRpcMethodTest.cc
  1724. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Added purgeDownloadResult command.
  1726. * src/RequestGroupMan.cc
  1727. * src/RequestGroupMan.h
  1728. * src/XmlRpcMethodFactory.cc
  1729. * src/XmlRpcMethodImpl.cc
  1730. * src/XmlRpcMethodImpl.h
  1731. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1732. Refactored.
  1733. * src/XmlRpcMethod.cc
  1734. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1736. XmlRpcResponse.
  1737. * src/HttpServerBodyCommand.cc
  1738. * src/Makefile.am
  1739. * src/XmlRpcMethod.cc
  1740. * src/XmlRpcMethod.h
  1741. * src/XmlRpcMethodImpl.cc
  1742. * src/XmlRpcResponse.cc
  1743. * src/XmlRpcResponse.h
  1744. * test/XmlRpcMethodTest.cc
  1745. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. In XML-RPC option struct, header and index-out option can take
  1747. array as value.
  1748. * src/XmlRpcMethod.cc
  1749. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Removed unused option member from PeerConnection.
  1751. * src/InitiatorMSEHandshakeCommand.cc
  1752. * src/PeerConnection.cc
  1753. * src/PeerConnection.h
  1754. * src/PeerInteractionCommand.cc
  1755. * src/PeerReceiveHandshakeCommand.cc
  1756. * src/ReceiverMSEHandshakeCommand.cc
  1757. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Added "seeder" key to getPeers response.
  1759. * src/XmlRpcMethodImpl.cc
  1760. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. Added addMetalink XML-RPC command.
  1762. * src/XmlRpcMethodFactory.cc
  1763. * src/XmlRpcMethodImpl.cc
  1764. * src/XmlRpcMethodImpl.h
  1765. * src/download_helper.cc
  1766. * src/download_helper.h
  1767. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1768. Fixed the bug that POU peers are never choked in seeding.
  1769. * src/BtSeederStateChoke.cc
  1770. * src/BtSeederStateChoke.h
  1771. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Added web-seeding URI handling in addTorrent command.
  1773. * src/XmlRpcMethodImpl.cc
  1774. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1775. Added "length" key to getFiles response.
  1776. * src/XmlRpcMethodImpl.cc
  1777. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Moved --no-netrc option from ftp option section to http/ftp option
  1779. section.
  1780. * doc/aria2c.1.txt
  1781. * src/OptionHandlerFactory.cc
  1782. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1783. Removed garbage "\" character before '
  1784. * doc/aria2c.1.txt
  1785. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Removed garbage "\" character before http.
  1787. * doc/aria2c.1.txt
  1788. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Documented additional options that can be specified in -i list.
  1790. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1791. and --xml-rpc-passwd. Removed --enable-http-server and
  1792. --http-server-listen-port.
  1793. * doc/aria2c.1.txt
  1794. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1796. * src/DefaultPeerStorage.cc
  1797. * src/DefaultPeerStorage.h
  1798. * src/PeerStorage.h
  1799. * src/XmlRpcMethodImpl.cc
  1800. * test/MockPeerStorage.h
  1801. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Put a call to Socket::isReadable() in try block.
  1803. * src/HttpServerBodyCommand.cc
  1804. * src/HttpServerCommand.cc
  1805. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1807. exception , so it is now in try block.
  1808. * src/HttpServerResponseCommand.cc
  1809. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Added "amChoking" and "peerChoking" key in getPeers response.
  1811. * src/XmlRpcMethodImpl.cc
  1812. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1813. Added test case for zero-length filter.
  1814. * test/BitfieldManTest.cc
  1815. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1816. getFiles command now returns file data for finished/stopped
  1817. downloads.
  1818. * src/XmlRpcMethodImpl.cc
  1819. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1820. DownloadResult now has the list of FileEntry. The download
  1821. summary displays the path of first selected file and the number of
  1822. remaining files for multi-file torrent.
  1823. * src/DownloadResult.h
  1824. * src/RequestGroup.cc
  1825. * src/RequestGroupMan.cc
  1826. * test/RequestGroupTest.cc
  1827. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Fixed segmentation fault error when no file is selected in
  1829. multi-file torrent.
  1830. * src/BitfieldMan.cc
  1831. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Escaped <,>,& character in XML-RPC response.
  1833. * src/XmlRpcMethod.cc
  1834. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Throw DlAbortEx instead of FatalException during parsing options
  1836. because we don't want for aria2 to quit when bad option is passed
  1837. via XML-RPC.
  1838. * src/OptionHandlerException.cc
  1839. * src/OptionHandlerException.h
  1840. * src/OptionHandlerImpl.h
  1841. * src/OptionParser.cc
  1842. * src/OptionParser.h
  1843. * src/PStringSegment.cc
  1844. * src/ParameterizedStringParser.cc
  1845. * src/download_helper.cc
  1846. * test/ParameterizedStringParserTest.cc
  1847. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Selecting files are now done in
  1849. DefaultBtContext::setFileFileter().
  1850. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1851. functions are removed because they are no longer used. Creating
  1852. filter in BitfieldMan is done in new funtion
  1853. PieceStorage::setupFileFilter()
  1854. * src/BtContext.cc
  1855. * src/BtContext.h
  1856. * src/DefaultBtContext.cc
  1857. * src/DefaultBtContext.h
  1858. * src/DefaultPieceStorage.cc
  1859. * src/DefaultPieceStorage.h
  1860. * src/DiskAdaptor.cc
  1861. * src/DiskAdaptor.h
  1862. * src/PieceStorage.h
  1863. * src/RequestGroup.cc
  1864. * src/UnknownLengthPieceStorage.h
  1865. * src/XmlRpcMethodImpl.cc
  1866. * test/DefaultBtContextTest.cc
  1867. * test/MockBtContext.h
  1868. * test/MockPieceStorage.h
  1869. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Fixed compile error on Mac OS X
  1871. * src/HttpServer.cc
  1872. * src/XmlRpcMethod.h
  1873. * src/XmlRpcMethodImpl.cc
  1874. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1875. Use std::binary_search instead of std::find
  1876. * src/DefaultPieceStorage.cc
  1877. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1878. Removed unnecessary BDE() call; leave them to implicit conversion.
  1879. * src/XmlRpcMethodImpl.cc
  1880. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1881. Return connections and gid in string
  1882. * src/XmlRpcMethodImpl.cc
  1883. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1884. Renamed addURI as addUri
  1885. * src/XmlRpcMethodFactory.cc
  1886. * src/XmlRpcMethodImpl.cc
  1887. * src/XmlRpcMethodImpl.h
  1888. * test/XmlRpcMethodTest.cc
  1889. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1890. Renamed addTorrentFile as addTorrent
  1891. * src/XmlRpcMethodFactory.cc
  1892. * src/XmlRpcMethodImpl.cc
  1893. * src/XmlRpcMethodImpl.h
  1894. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. The information for files, URIs, peers are removed from the
  1896. reponse of TellaActive, TellStatus command because they tend to be
  1897. large. Instead they can be retrieved by the dedicated commands:
  1898. getFiles, getUris and getPeers respectively.
  1899. * src/XmlRpcMethodFactory.cc
  1900. * src/XmlRpcMethodImpl.cc
  1901. * src/XmlRpcMethodImpl.h
  1902. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1903. Removed --max-overall-upload-limit and
  1904. --max-overall-download-limit option from listRequestOptions.
  1905. * src/download_helper.cc
  1906. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Log incoming host in HttpListenCommand.
  1908. * src/HttpListenCommand.cc
  1909. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1910. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1911. --xml-rpc-passwd option.
  1912. * src/HttpServer.cc
  1913. * src/HttpServer.h
  1914. * src/HttpServerCommand.cc
  1915. * src/OptionHandlerFactory.cc
  1916. * src/prefs.cc
  1917. * src/prefs.h
  1918. * src/usage_text.h
  1919. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1921. processing 0 length request.
  1922. * src/HttpServerBodyCommand.cc
  1923. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1924. Removed --enable-http-server and --http-server-listen-port
  1925. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1926. instead. The original feature for --enable-http-server that
  1927. reports download progress in HTML was officially removed. Persist
  1928. XML-RPC connection if client supports keep-alive.
  1929. * src/DownloadEngineFactory.cc
  1930. * src/HttpServerCommand.cc
  1931. * src/HttpServerResponseCommand.cc
  1932. * src/Makefile.am
  1933. * src/Makefile.in
  1934. * src/OptionHandlerFactory.cc
  1935. * src/RequestGroupMan.cc
  1936. * src/main.cc
  1937. * src/option_processing.cc
  1938. * src/prefs.cc
  1939. * src/prefs.h
  1940. * src/usage_text.h
  1941. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1942. Added "uris" key to the response of tellStatus command. Added
  1943. "connections" key to the response of tellStatus and tellActive
  1944. command.
  1945. * src/XmlRpcMethodImpl.cc
  1946. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1948. Added TellStatusXmlRpcMethod. Remove command can now remove
  1949. waiting RequestGroup.
  1950. * src/RequestGroupMan.cc
  1951. * src/RequestGroupMan.h
  1952. * src/XmlRpcMethodFactory.cc
  1953. * src/XmlRpcMethodImpl.cc
  1954. * src/XmlRpcMethodImpl.h
  1955. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1956. Initialized _peerId
  1957. * src/Peer.cc
  1958. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Return fault structure for error. FailXmlRpcMethod is renamed as
  1960. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1961. in non-torrent download. Return single param value.
  1962. * src/XmlRpcMethod.cc
  1963. * src/XmlRpcMethodFactory.cc
  1964. * src/XmlRpcMethodImpl.cc
  1965. * src/XmlRpcMethodImpl.h
  1966. * test/XmlRpcMethodTest.cc
  1967. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1968. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1969. command.
  1970. * src/RequestGroup.cc
  1971. * src/RequestGroup.h
  1972. * src/RequestGroupMan.cc
  1973. * src/XmlRpcMethodImpl.cc
  1974. * test/RequestGroupTest.cc
  1975. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Added more options that can be specified in -i list and xml-rpc
  1977. add* command.
  1978. * src/download_helper.h
  1979. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1980. The available options in -i list should be listed in
  1981. listRequestOptions().
  1982. * src/download_helper.cc
  1983. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1985. command.
  1986. * src/XmlRpcMethodImpl.cc
  1987. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1988. Now RequestGroup has its own copy of Option object. This will help
  1989. to give custom option for each RequestGroup.
  1990. addTorrentFile command now takes options.
  1991. * src/AbstractCommand.cc
  1992. * src/AbstractCommand.h
  1993. * src/AbstractProxyRequestCommand.cc
  1994. * src/ActivePeerConnectionCommand.cc
  1995. * src/ActivePeerConnectionCommand.h
  1996. * src/AdaptiveURISelector.cc
  1997. * src/BtCheckIntegrityEntry.cc
  1998. * src/BtDependency.cc
  1999. * src/BtDependency.h
  2000. * src/BtFileAllocationEntry.cc
  2001. * src/BtPostDownloadHandler.cc
  2002. * src/CheckIntegrityEntry.cc
  2003. * src/DownloadCommand.cc
  2004. * src/FtpDownloadCommand.cc
  2005. * src/FtpFinishDownloadCommand.cc
  2006. * src/FtpInitiateConnectionCommand.cc
  2007. * src/FtpNegotiationCommand.cc
  2008. * src/HttpInitiateConnectionCommand.cc
  2009. * src/HttpRequestCommand.cc
  2010. * src/HttpResponseCommand.cc
  2011. * src/HttpSkipResponseCommand.cc
  2012. * src/InitiateConnectionCommand.cc
  2013. * src/InitiateConnectionCommandFactory.cc
  2014. * src/InitiatorMSEHandshakeCommand.cc
  2015. * src/InitiatorMSEHandshakeCommand.h
  2016. * src/Metalink2RequestGroup.cc
  2017. * src/Metalink2RequestGroup.h
  2018. * src/MetalinkPostDownloadHandler.cc
  2019. * src/MultiUrlRequestInfo.cc
  2020. * src/MultiUrlRequestInfo.h
  2021. * src/PeerAbstractCommand.cc
  2022. * src/PeerInteractionCommand.cc
  2023. * src/PeerInteractionCommand.h
  2024. * src/PeerReceiveHandshakeCommand.cc
  2025. * src/PeerReceiveHandshakeCommand.h
  2026. * src/RequestGroup.cc
  2027. * src/RequestGroup.h
  2028. * src/TrackerWatcherCommand.cc
  2029. * src/TrackerWatcherCommand.h
  2030. * src/XmlRpcMethod.cc
  2031. * src/XmlRpcMethod.h
  2032. * src/XmlRpcMethodImpl.cc
  2033. * src/download_helper.cc
  2034. * src/download_helper.h
  2035. * src/main.cc
  2036. * test/BtDependencyTest.cc
  2037. * test/BtPostDownloadHandlerTest.cc
  2038. * test/DefaultBtMessageDispatcherTest.cc
  2039. * test/DownloadHandlerFactoryTest.cc
  2040. * test/DownloadHelperTest.cc
  2041. * test/Metalink2RequestGroupTest.cc
  2042. * test/MetalinkPostDownloadHandlerTest.cc
  2043. * test/RequestGroupManTest.cc
  2044. * test/RequestGroupTest.cc
  2045. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Added tellActiveStatus xml-rpc command which reports download
  2047. status of active downloads.
  2048. * src/XmlRpcMethodFactory.cc
  2049. * src/XmlRpcMethodImpl.cc
  2050. * src/XmlRpcMethodImpl.h
  2051. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Added addTorrentFile xml-rpc command which receives uploaded
  2053. torrent file and add download for it.
  2054. * src/RequestGroupMan.cc
  2055. * src/XmlRpcMethodFactory.cc
  2056. * src/XmlRpcMethodImpl.cc
  2057. * src/XmlRpcMethodImpl.h
  2058. * src/download_helper.cc
  2059. * src/download_helper.h
  2060. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. Added remove xml-rpc command which removes specified download.
  2062. There is a known issue: the removed unfinished downloads are
  2063. reported ERR when aria2 exits. They should be reported as INPR.
  2064. * src/RequestGroupMan.cc
  2065. * src/RequestGroupMan.h
  2066. * src/XmlRpcMethodFactory.cc
  2067. * src/XmlRpcMethodImpl.cc
  2068. * src/XmlRpcMethodImpl.h
  2069. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. If --enable-http-server is enabled, don't stop aria2 when all
  2071. download finished and don't quit when no files to download at
  2072. start up.
  2073. * src/RequestGroupMan.cc
  2074. * src/main.cc
  2075. * src/option_processing.cc
  2076. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2077. Added missing AM_CONDITIONAL
  2078. * configure.ac
  2079. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. Added xml-rpc functionality. Currently only addURI commad is
  2081. supported. To enable xml-rpc, run aria2 with
  2082. --enable-http-server. This option name is temporal and will be
  2083. changed. The feature that reports download progress in html format
  2084. is temporarily disabled.
  2085. * src/HttpServer.cc
  2086. * src/HttpServer.h
  2087. * src/HttpServerBodyCommand.cc
  2088. * src/HttpServerBodyCommand.h
  2089. * src/HttpServerCommand.cc
  2090. * src/HttpServerResponseCommand.cc
  2091. * src/Makefile.am
  2092. * src/OptionParser.cc
  2093. * src/OptionParser.h
  2094. * src/RequestGroupMan.cc
  2095. * src/RequestGroupMan.h
  2096. * src/XmlRpcMethod.cc
  2097. * src/XmlRpcMethod.h
  2098. * src/XmlRpcMethodFactory.cc
  2099. * src/XmlRpcMethodFactory.h
  2100. * src/XmlRpcMethodImpl.cc
  2101. * src/XmlRpcMethodImpl.h
  2102. * src/download_helper.cc
  2103. * src/download_helper.h
  2104. * test/Makefile.am
  2105. * test/XmlRpcMethodTest.cc
  2106. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Added xml-rpc request parser. The supported value types are:
  2108. i4/int, string, double, struct, array, base64. Currently only
  2109. libxml2 version is provided.
  2110. * src/Xml2XmlRpcRequestProcessor.cc
  2111. * src/Xml2XmlRpcRequestProcessor.h
  2112. * src/XmlRpcElements.cc
  2113. * src/XmlRpcElements.h
  2114. * src/XmlRpcRequest.h
  2115. * src/XmlRpcRequestParserController.cc
  2116. * src/XmlRpcRequestParserController.h
  2117. * src/XmlRpcRequestParserState.h
  2118. * src/XmlRpcRequestParserStateImpl.cc
  2119. * src/XmlRpcRequestParserStateImpl.h
  2120. * src/XmlRpcRequestParserStateMachine.cc
  2121. * src/XmlRpcRequestParserStateMachine.h
  2122. * src/XmlRpcRequestProcessor.h
  2123. * test/XmlRpcRequestParserControllerTest.cc
  2124. * test/XmlRpcRequestProcessorTest.cc
  2125. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. * Release 1.3.3
  2127. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Fixed compile error since r1202.
  2129. * src/ExpatMetalinkProcessor.cc
  2130. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Updated Ukrainian, Russian and Simplified Chinese
  2132. translations. Thanks to all translators.
  2133. * po/ru.po
  2134. * po/uk.po
  2135. * po/zh_CN.po
  2136. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Pass reference of Option object instead of pointer.
  2138. * src/download_helper.cc
  2139. * src/download_helper.h
  2140. * src/main.cc
  2141. * test/DownloadHelperTest.cc
  2142. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2144. from option directly. Instead, get them from RequestGroup.
  2145. * src/ActivePeerConnectionCommand.cc
  2146. * src/ActivePeerConnectionCommand.h
  2147. * src/PeerReceiveHandshakeCommand.cc
  2148. * src/RequestGroup.h
  2149. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2150. Removed unused uploadLimitCheck and uploadLimit from
  2151. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2152. PeerInteractionCommand.
  2153. * src/PeerAbstractCommand.cc
  2154. * src/PeerAbstractCommand.h
  2155. * src/PeerInteractionCommand.cc
  2156. * src/PeerInteractionCommand.h
  2157. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Fixed broken file renaming feature since r1202.
  2159. * src/FtpNegotiationCommand.cc
  2160. * src/FtpNegotiationCommand.h
  2161. * src/HttpResponseCommand.cc
  2162. * src/RequestGroup.cc
  2163. * src/RequestGroup.h
  2164. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Removed unused debug log
  2166. * src/SocketCore.cc
  2167. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2168. Generated configure and Makefile.in using autoconf 2.63 and
  2169. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2170. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2171. * configure.ac
  2172. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Moved piece statistics stuff to new PieceStatMan class.
  2174. Refactored PieceSelector interface.
  2175. * src/DefaultPieceStorage.cc
  2176. * src/DefaultPieceStorage.h
  2177. * src/LongestSequencePieceSelector.cc
  2178. * src/LongestSequencePieceSelector.h
  2179. * src/Makefile.am
  2180. * src/PieceSelector.h
  2181. * src/PieceStatMan.cc
  2182. * src/PieceStatMan.h
  2183. * src/RarestPieceSelector.cc
  2184. * src/RarestPieceSelector.h
  2185. * src/RequestGroup.cc
  2186. * test/DefaultPieceStorageTest.cc
  2187. * test/InOrderPieceSelector.h
  2188. * test/Makefile.am
  2189. * test/PieceStatManTest.cc
  2190. * test/RarestPieceSelectorTest.cc
  2191. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2192. Added static member _protocolFamily to SocketCore. By default,
  2193. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2194. address. Sometime SocketCore::bind() and
  2195. SocketCore::establishConnection() use difference protocl family
  2196. and latter cannot connect to former. To avoid this situation, we
  2197. limit protocol family to AF_INET for unit tests.
  2198. * src/SocketCore.cc
  2199. * src/SocketCore.h
  2200. * test/AllTest.cc
  2201. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2202. Avoid std::bad_alloc for negative bencode string length.
  2203. * src/bencode.cc
  2204. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2205. Supported segmented downloading with chunked transfer encoding and
  2206. content-length.
  2207. * src/DownloadCommand.cc
  2208. * src/HttpResponseCommand.cc
  2209. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2210. Bump up version number to 1.3.3
  2211. * configure.ac
  2212. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2213. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2214. from 4096 to 65536 (for insanely large ftp login banners)
  2215. * src/FtpConnection.h
  2216. * test/FtpConnectionTest.cc
  2217. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. In DefaultBtContext::getActualBasePath(), return first
  2219. FileEntry::getPath() for single file torrent.
  2220. * src/DefaultBtContext.cc
  2221. * test/DefaultBtContextTest.cc
  2222. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2224. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2225. Removed _directIOAllowed member from DiskWriter.
  2226. * src/AbstractDiskWriter.cc
  2227. * src/AbstractDiskWriter.h
  2228. * src/AbstractSingleDiskAdaptor.cc
  2229. * src/AbstractSingleDiskAdaptor.h
  2230. * src/BinaryStream.h
  2231. * src/ByteArrayDiskWriter.h
  2232. * src/DefaultPieceStorage.cc
  2233. * src/DiskWriter.h
  2234. * src/MultiDiskAdaptor.cc
  2235. * src/MultiDiskAdaptor.h
  2236. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Now the constructor of AbstractDiskWriter takes filename as an
  2238. argument and filename argument is removed from openFile(),
  2239. initAndOpenFile(), openExistingFile() interface. storeDir member
  2240. and its accessor functions are removed from DiskAdaptor because it
  2241. is not used anymore. size() member function of DefaultDiskWriter,
  2242. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2243. opening file.
  2244. * src/AbstractDiskWriter.cc
  2245. * src/AbstractDiskWriter.h
  2246. * src/AbstractSingleDiskAdaptor.cc
  2247. * src/AbstractSingleDiskAdaptor.h
  2248. * src/ByteArrayDiskWriter.cc
  2249. * src/ByteArrayDiskWriter.h
  2250. * src/ByteArrayDiskWriterFactory.cc
  2251. * src/ByteArrayDiskWriterFactory.h
  2252. * src/DefaultDiskWriter.cc
  2253. * src/DefaultDiskWriter.h
  2254. * src/DefaultDiskWriterFactory.cc
  2255. * src/DefaultDiskWriterFactory.h
  2256. * src/DefaultPieceStorage.cc
  2257. * src/DirectDiskAdaptor.cc
  2258. * src/DirectDiskAdaptor.h
  2259. * src/DiskAdaptor.h
  2260. * src/DiskWriter.h
  2261. * src/DiskWriterFactory.h
  2262. * src/MessageDigestHelper.cc
  2263. * src/MultiDiskAdaptor.cc
  2264. * src/RequestGroup.cc
  2265. * src/UnknownLengthPieceStorage.cc
  2266. * src/Util.cc
  2267. * test/DefaultDiskWriterTest.cc
  2268. * test/DirectDiskAdaptorTest.cc
  2269. * test/FallocFileAllocationIteratorTest.cc
  2270. * test/MessageDigestHelperTest.cc
  2271. * test/MetalinkProcessorTest.cc
  2272. * test/MultiDiskAdaptorTest.cc
  2273. * test/MultiFileAllocationIteratorTest.cc
  2274. * test/SingleFileAllocationIteratorTest.cc
  2275. * test/UtilTest.cc
  2276. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Fixed the bug that aria2 aborts when --select-file is used. This
  2278. bug was introduced in r1199.
  2279. * src/MultiDiskAdaptor.cc
  2280. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2281. Code cleanup
  2282. * test/MockPieceStorage.cc
  2283. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Fixed the bug that read-only file with wrong file size will cause
  2285. error because it cannot be truncated to the correct size. Now if
  2286. file size is different than the expected one, re-open file in
  2287. writable mode.
  2288. * src/AbstractSingleDiskAdaptor.cc
  2289. * src/AbstractSingleDiskAdaptor.h
  2290. * src/BtCheckIntegrityEntry.cc
  2291. * src/DiskAdaptor.h
  2292. * src/MultiDiskAdaptor.h
  2293. * src/RequestGroup.cc
  2294. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Fixed the bug that with --check-integrity option aria2 reports
  2296. downloaded file size is 0 even if some parts of file is correctly
  2297. downloaded. This bug is reproducible for the download that a file
  2298. includes last piece is missing. This bug doesn't reveal for
  2299. single-torrent with file allocation on.
  2300. * src/IteratableChecksumValidator.cc
  2301. * test/IteratableChecksumValidatorTest.cc
  2302. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2303. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2304. * src/RequestGroupMan.cc
  2305. * src/AdaptiveURISelector.cc
  2306. * src/AdaptiveURISelector.h
  2307. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. * Release 1.3.2
  2309. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2310. Updated README
  2311. * README
  2312. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2313. Updated Ukrainian translations. Thanks to Alexander10.
  2314. * po/uk.po
  2315. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2316. Code cleanup
  2317. * src/MetalinkParserStateMachine.cc
  2318. * src/MetalinkParserStateMachine.h
  2319. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2321. and expat simultaneously, MetalinkProcessor is now not base class
  2322. and it is directly implemented in XML2SAXMetalinkProcessor and
  2323. ExpatMetalinkProcessor.
  2324. * src/ExpatMetalinkProcessor.cc
  2325. * src/ExpatMetalinkProcessor.h
  2326. * src/Makefile.am
  2327. * src/MetalinkHelper.cc
  2328. * src/MetalinkProcessor.h
  2329. * src/MetalinkProcessorFactory.cc: Removed.
  2330. * src/MetalinkProcessorFactory.h: Removed
  2331. * src/XML2SAXMetalinkProcessor.cc
  2332. * src/XML2SAXMetalinkProcessor.h
  2333. * test/MetalinkProcessorTest.cc
  2334. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Bump up version number to 1.3.2
  2336. * configure.ac
  2337. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2338. Added missing file.
  2339. * test/Makefile.am
  2340. * test/url-list-singleFileEndsWithSlash.torrent
  2341. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2343. request.
  2344. * src/AnnounceList.cc
  2345. * src/AnnounceList.h
  2346. * src/BDE.cc: Added
  2347. * src/BDE.h: Added
  2348. * src/DHTAbstractMessage.cc
  2349. * src/DHTAbstractMessage.h
  2350. * src/DHTAnnouncePeerMessage.cc
  2351. * src/DHTAnnouncePeerMessage.h
  2352. * src/DHTAnnouncePeerReplyMessage.cc
  2353. * src/DHTAnnouncePeerReplyMessage.h
  2354. * src/DHTFindNodeMessage.cc
  2355. * src/DHTFindNodeMessage.h
  2356. * src/DHTFindNodeReplyMessage.cc
  2357. * src/DHTFindNodeReplyMessage.h
  2358. * src/DHTGetPeersMessage.cc
  2359. * src/DHTGetPeersMessage.h
  2360. * src/DHTGetPeersReplyMessage.cc
  2361. * src/DHTGetPeersReplyMessage.h
  2362. * src/DHTMessageFactory.h
  2363. * src/DHTMessageFactoryImpl.cc
  2364. * src/DHTMessageFactoryImpl.h
  2365. * src/DHTMessageReceiver.cc
  2366. * src/DHTMessageTracker.cc
  2367. * src/DHTMessageTracker.h
  2368. * src/DHTPingMessage.cc
  2369. * src/DHTPingMessage.h
  2370. * src/DHTPingReplyMessage.cc
  2371. * src/DHTPingReplyMessage.h
  2372. * src/DHTQueryMessage.cc
  2373. * src/DHTQueryMessage.h
  2374. * src/DHTResponseMessage.cc
  2375. * src/DHTResponseMessage.h
  2376. * src/DefaultBtAnnounce.cc
  2377. * src/DefaultBtContext.cc
  2378. * src/DefaultBtContext.h
  2379. * src/HandshakeExtensionMessage.cc
  2380. * src/Makefile.am
  2381. * src/PeerListProcessor.h
  2382. * src/UTPexExtensionMessage.cc
  2383. * src/bencode.cc
  2384. * src/bencode.h
  2385. * test/AnnounceListTest.cc
  2386. * test/BDETest.cc: Added
  2387. * test/BencodeTest.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/DHTMessageFactoryImplTest.cc
  2395. * test/DHTMessageTrackerTest.cc
  2396. * test/DHTPingMessageTest.cc
  2397. * test/DHTPingReplyMessageTest.cc
  2398. * test/Makefile.am
  2399. * test/MockDHTMessageFactory.h
  2400. * test/PeerListProcessorTest.cc
  2401. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Use url-list (web-seeding) only for single-file torrent. This is
  2403. basically the same behavior with Metalink file with torrent and
  2404. URIs.
  2405. * src/RequestGroup.cc
  2406. * src/DefaultBtContext.cc
  2407. * test/DefaultBtContextTest.cc
  2408. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2409. Rewritten expr
  2410. * src/array_fun.h
  2411. * test/array_funTest.cc
  2412. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2414. * src/DefaultBtMessageDispatcher.cc
  2415. * src/a2algo.h
  2416. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2417. Removed ExtendedMessagingAware. Instead of using inheritance,
  2418. added ExtensionMessageRegistry and it is passed to
  2419. DefaultExtensionMessageFactory.
  2420. * src/DefaultBtInteractive.cc
  2421. * src/DefaultBtInteractive.h
  2422. * src/DefaultExtensionMessageFactory.cc
  2423. * src/DefaultExtensionMessageFactory.h
  2424. * src/ExtendedMessagingAware.h: Removed.
  2425. * src/ExtensionMessageFactory.h
  2426. * src/ExtensionMessageRegistry.h: Added.
  2427. * src/Makefile.am
  2428. * src/PeerInteractionCommand.cc
  2429. * test/DefaultExtensionMessageFactoryTest.cc
  2430. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2431. Fixed typo in log messages
  2432. * src/MSEHandshake.cc
  2433. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2434. Fixed the bug that prevents torrent download from finishing. The
  2435. bug doesn't reveal for all torrents. The torrents affected this
  2436. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2437. of pieces.
  2438. * src/bitfield.h
  2439. * test/bitfieldTest.cc
  2440. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2441. Code cleanup
  2442. * src/PeerListProcessor.h
  2443. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Removed RequestGroupAware
  2445. * src/AbstractCommand.cc
  2446. * src/AbstractCommand.h
  2447. * src/ActivePeerConnectionCommand.cc
  2448. * src/ActivePeerConnectionCommand.h
  2449. * src/DHTGetPeersCommand.cc
  2450. * src/DHTGetPeersCommand.h
  2451. * src/InitiatorMSEHandshakeCommand.cc
  2452. * src/InitiatorMSEHandshakeCommand.h
  2453. * src/Makefile.am
  2454. * src/PeerInitiateConnectionCommand.cc
  2455. * src/PeerInitiateConnectionCommand.h
  2456. * src/PeerInteractionCommand.cc
  2457. * src/PeerInteractionCommand.h
  2458. * src/RealtimeCommand.cc
  2459. * src/RealtimeCommand.h
  2460. * src/RequestGroupAware.cc: Removed
  2461. * src/RequestGroupAware.h: Removed
  2462. * src/SeedCheckCommand.cc
  2463. * src/SeedCheckCommand.h
  2464. * src/SleepCommand.cc
  2465. * src/TrackerWatcherCommand.cc
  2466. * src/TrackerWatcherCommand.h
  2467. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2468. Rewritten PeerListProcessor
  2469. * src/PeerListProcessor.h
  2470. * src/CompactPeerListProcessor.h: Removed
  2471. * src/CompactPeerListProcessor.cc: Removed
  2472. * src/DelegatingPeerListProcessor.cc: Removed.
  2473. * src/DefaultBtAnnounce.cc
  2474. * src/Makefile.am
  2475. * src/UTPexExtensionMessage.cc
  2476. * src/DefaultPeerListProcessor.h: Removed.
  2477. * src/DefaultPeerListProcessor.cc: Removed.
  2478. * src/DelegatingPeerListProcessor.h: Removed.
  2479. * test/Makefile.am
  2480. * test/PeerListProcessorTest.cc
  2481. * test/DefaultPeerListProcessorTest.cc: Removed.
  2482. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2483. Rewritten RequestGroupMan::calculateStat()
  2484. * src/RequestGroupMan.cc
  2485. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Removed unnecessary virtual destructor for Request class.
  2487. * src/Request.cc
  2488. * src/Request.h
  2489. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2490. Avoid dynamic_pointer_cast.
  2491. * src/DHTGetPeersCommand.cc
  2492. * src/DHTGetPeersCommand.h
  2493. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2494. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2495. BtEvent.
  2496. * src/AbstractBtEventListener.h: Removed.
  2497. * src/AbstractBtMessage.cc
  2498. * src/AbstractBtMessage.h
  2499. * src/BtAbortOutstandingRequestEvent.h
  2500. * src/BtCancelSendingPieceEvent.h
  2501. * src/BtChokedEvent.h: Removed.
  2502. * src/BtChokingEvent.h
  2503. * src/BtEvent.h: Removed
  2504. * src/BtEventListener.h: Removed.
  2505. * src/BtMessage.h
  2506. * src/BtPieceMessage.cc
  2507. * src/BtPieceMessage.h
  2508. * src/BtRequestMessage.cc
  2509. * src/BtRequestMessage.h
  2510. * src/DefaultBtMessageDispatcher.cc
  2511. * src/Makefile.am
  2512. * src/a2functional.h
  2513. * test/BtPieceMessageTest.cc
  2514. * test/BtRequestMessageTest.cc
  2515. * test/DefaultBtMessageDispatcherTest.cc
  2516. * test/MockBtMessage.h
  2517. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2518. Code cleanup
  2519. * src/RequestGroupMan.cc
  2520. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. Code cleanup
  2522. * src/DownloadCommand.cc
  2523. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2524. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2525. byte.
  2526. * src/DownloadCommand.cc
  2527. * src/bitfield.h
  2528. * test/bitfieldTest.cc
  2529. Fixed the bug that causes infinite loop if broken web server
  2530. returns chunked response without last "0" chunk-size marker and
  2531. closes connection.
  2532. * src/DownloadCommand.cc
  2533. Instantiate properly configured HttpDownloadCommand for
  2534. non-resumable downlaods.
  2535. * src/HttpResponseCommand.cc
  2536. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Rewritten array operation functions.
  2538. * src/BitfieldMan.cc
  2539. * src/array_fun.h
  2540. * test/array_funTest.cc
  2541. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Removed unused variable 'query'
  2543. * src/Request.cc
  2544. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2546. accidentally set to false in r1162.
  2547. * configure.ac
  2548. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2549. Code cleanup
  2550. * src/BNode.cc
  2551. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2552. Increase prefixLength for the bucket which doesn't own local node
  2553. ID when splitting bucket.
  2554. * src/DHTBucket.cc
  2555. * test/DHTBucketTest.cc
  2556. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. * Release 1.3.1
  2558. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Bump up version number to 1.3.1
  2560. * configure.ac
  2561. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. Removed unused variable checkPoint. Also removed include directive
  2563. for TimeA2.h.
  2564. * src/SeedCheckCommand.h
  2565. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2566. Fixed the bug that upload limit exceeds the value specified in
  2567. --seed-ratio option depending on the timing of the execution of
  2568. SeedCheckCommand.
  2569. * src/SeedCheckCommand.cc
  2570. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2571. Fixed the bug that removed peer's session upload/download length
  2572. are counted twice in _cachedTransferStat before it is
  2573. re-calculated. This affected the calculation of shara ratio,
  2574. resulting aria2 wrongly determines that specified share ratio is
  2575. reached. Also fixed the typo in calculateStatFor function name.
  2576. * src/BtSetup.cc
  2577. * src/DefaultPeerStorage.cc
  2578. * src/ShareRatioSeedCriteria.h
  2579. * test/ShareRatioSeedCriteriaTest.cc
  2580. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. * Release 1.3.0
  2582. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2583. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2584. Nynorsk translations. Thanks to all translators.
  2585. * po/es.po
  2586. * po/ja.po
  2587. * po/nn.po
  2588. * po/ru.po
  2589. * po/uk.po
  2590. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Rewritten isInRange()
  2592. * src/DHTBucket.cc
  2593. * test/DHTBucketTest.cc
  2594. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Fixed typo
  2596. * doc/aria2c.1.txt
  2597. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2599. malloc/realloc is not used.
  2600. * src/configure.ac
  2601. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2602. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2603. char* bitfield instead of stl container for efficiency.
  2604. PieceSelector::select now takes this
  2605. bitfield. RarestPieceSelector::select now also performs
  2606. efficiently for this change. bitfield namespace is introduced and
  2607. it has several helper functions to handle basic bitfield
  2608. operations such as test, count set bits, etc.
  2609. * src/BitfieldMan.cc
  2610. * src/BitfieldMan.h
  2611. * src/DefaultBtRequestFactory.cc
  2612. * src/DefaultPieceStorage.cc
  2613. * src/DefaultPieceStorage.h
  2614. * src/LongestSequencePieceSelector.cc
  2615. * src/LongestSequencePieceSelector.h
  2616. * src/Makefile.am
  2617. * src/Piece.cc
  2618. * src/Piece.h
  2619. * src/PieceSelector.h
  2620. * src/RarestPieceSelector.cc
  2621. * src/RarestPieceSelector.h
  2622. * src/Util.cc
  2623. * src/Util.h
  2624. * src/bitfield.h
  2625. * test/BitfieldManTest.cc
  2626. * test/LongestSequencePieceSelectorTest.cc
  2627. * test/Makefile.am
  2628. * test/RarestPieceSelectorTest.cc
  2629. * test/UtilTest.cc
  2630. * test/bitfieldTest.cc
  2631. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Made accepted socket non-block.
  2633. * src/FtpNegotiationCommand.cc
  2634. * src/HttpListenCommand.cc
  2635. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2637. * src/AbstractSingleDiskAdaptor.cc
  2638. * src/DefaultPieceStorage.cc
  2639. * src/DiskAdaptor.h
  2640. * src/DiskAdaptor.h
  2641. * src/MultiFileAllocationIterator.cc
  2642. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Run
  2644. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2645. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2646. it doesn't need to be called every time when
  2647. DefaultBtInteractive::doInteractionProcessing() is called.
  2648. * src/DefaultBtInteractive.cc
  2649. * src/DefaultBtInteractive.h
  2650. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Documented 'falloc' in man page.
  2652. * doc/aria2c.1.txt
  2653. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Updated doc
  2655. * src/usage_text.h
  2656. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2657. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2658. allocation mode uses posix_fallocate() system call to allocate
  2659. file on disk. If you are using newer file systems such as ext4
  2660. (with extents support), btrfs or xfs, 'falloc' is your best
  2661. choice. It allocates large(few GiB) files almost instantly. Don't
  2662. use 'falloc' with legacy file systems such as ext3 because it
  2663. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2664. until allocation finishes. 'falloc' may not be available if your
  2665. system doesn't have posix_fallocate() system call.
  2666. * configure.ac
  2667. * src/AbstractDiskWriter.cc
  2668. * src/AbstractDiskWriter.h
  2669. * src/AbstractSingleDiskAdaptor.cc
  2670. * src/BinaryStream.h
  2671. * src/BtCheckIntegrityEntry.cc
  2672. * src/ByteArrayDiskWriter.h
  2673. * src/CheckIntegrityEntry.cc
  2674. * src/CheckIntegrityEntry.h
  2675. * src/DefaultPieceStorage.cc
  2676. * src/DiskAdaptor.cc
  2677. * src/DiskAdaptor.h
  2678. * src/DiskWriter.h
  2679. * src/FallocFileAllocationIterator.cc
  2680. * src/FallocFileAllocationIterator.h
  2681. * src/FileAllocationEntry.cc
  2682. * src/FileAllocationEntry.h
  2683. * src/Makefile.am
  2684. * src/MultiFileAllocationIterator.cc
  2685. * src/MultiFileAllocationIterator.h
  2686. * src/OptionHandlerFactory.cc
  2687. * src/RequestGroup.cc
  2688. * src/StreamCheckIntegrityEntry.cc
  2689. * src/prefs.cc
  2690. * src/prefs.h
  2691. * src/usage_text.h
  2692. * test/FallocFileAllocationIteratorTest.cc
  2693. * test/Makefile.am
  2694. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2695. Removed duplicate enableDirectIO() call.
  2696. * src/MultiFileAllocationIterator.cc
  2697. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2699. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2700. cost of std::rotate().
  2701. * src/RarestPieceSelector.cc
  2702. * src/RarestPieceSelector.h
  2703. * test/RarestPieceSelectorTest.cc
  2704. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2705. Updated usage doc for --bt-tracker-interval option.
  2706. * src/usage_text.h
  2707. * doc/aria2c.1.txt
  2708. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. Documented --bt-tracker-interval option in man page.
  2710. * doc/aria2c.1.txt
  2711. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2712. Added an option to specify the interval between tracker requests.
  2713. If non-zero value is specified, aria2 uses it and ignores the
  2714. interval value in the response of tracker. If zero is specified,
  2715. aria2 determines the inteval value based on the tarcker response
  2716. and download progress.
  2717. * src/DefaultBtAnnounce.cc
  2718. * src/DefaultBtAnnounce.h
  2719. * src/OptionHandlerFactory.cc
  2720. * src/RequestGroup.cc
  2721. * src/prefs.cc
  2722. * src/prefs.h
  2723. * src/usage_text.h
  2724. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2725. Added operator+=, operator-=, operator-
  2726. * src/TransferStat.cc
  2727. * src/TransferStat.h
  2728. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. Refactored RarestPieceSelector to reduce CPU load, especially for
  2730. addPieceStats.
  2731. * src/RarestPieceSelector.cc
  2732. * src/RarestPieceSelector.h
  2733. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2734. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2735. getAllMissingBlockIndexes to reduce a call to
  2736. array_function_base::operator[].
  2737. * src/BitfieldMan.cc
  2738. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2739. Cached TransferStat/download speed to avoid to sum them up in each
  2740. call.
  2741. * src/DefaultPeerStorage.cc
  2742. * src/DefaultPeerStorage.h
  2743. * src/SegmentMan.cc
  2744. * src/SegmentMan.h
  2745. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2746. Typedefed cuid_t as int32_t in Command.h
  2747. * src/CUIDCounter.h
  2748. * src/Command.cc
  2749. * src/Command.h
  2750. * src/DownloadEngine.cc
  2751. * src/DownloadEngine.h
  2752. * src/PeerStat.h
  2753. * src/SegmentMan.cc
  2754. * src/SegmentMan.h
  2755. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2756. Reduced the number of calls to PeerStorage::calculateStat() and
  2757. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2758. transfer rate.
  2759. * src/DefaultBtInteractive.cc
  2760. * src/DefaultBtMessageDispatcher.cc
  2761. * src/DefaultPeerStorage.cc
  2762. * src/DefaultPeerStorage.h
  2763. * src/DownloadCommand.cc
  2764. * src/DownloadEngine.cc
  2765. * src/PeerStorage.h
  2766. * src/SegmentMan.cc
  2767. * src/SegmentMan.h
  2768. * test/MockPeerStorage.h
  2769. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2770. Prepended _dir+"/" after joining path elements in torrent file.
  2771. * src/DefaultBtContext.cc
  2772. * test/DefaultBtContextTest.cc
  2773. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2774. Added missing IndexBtMessageValidator.h
  2775. * src/Makefile.am
  2776. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2777. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2778. Chinese translations. Thank you for contributing our project.
  2779. * po/id.po
  2780. * po/it.po
  2781. * po/ru.po
  2782. * po/uk.po
  2783. * po/zh_CN.po
  2784. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2785. Updated README
  2786. * README
  2787. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Bump up version number to 1.3.0
  2789. * configure.ac
  2790. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Updated doc
  2792. * src/DefaultBtContext.h
  2793. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Slice/joinPath for name of single torrent.
  2795. * src/DefaultBtContext.cc
  2796. * test/DefaultBtContextTest.cc
  2797. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2798. Updated man page: Documented --dry-run and --index-out
  2799. options. Changed the default value of --uri-selector and
  2800. --http-auth-challenge options. Removed --direct-file-mapping
  2801. option. Added example for --index-out
  2802. * doc/aria2c.1.txt
  2803. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Updated TEXT_DRY_RUN
  2805. * src/usage_text.h
  2806. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2807. Changed the default value of --uri-selector option from 'inorder'
  2808. to 'feedback'
  2809. * src/OptionHandlerFactory.cc
  2810. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2811. Included current URI in exception message.
  2812. * src/AbstractCommand.cc
  2813. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Renamed ServerStatURISelector as FeedbackURISelector.
  2815. * src/FeedbackURISelector.cc
  2816. * src/FeedbackURISelector.h
  2817. * src/Makefile.am
  2818. * src/RequestGroupMan.cc
  2819. * src/ServerStatURISelector.cc
  2820. * src/ServerStatURISelector.h
  2821. * test/FeedbackURISelectorTest.cc
  2822. * test/Makefile.am
  2823. * test/ServerStatURISelectorTest.cc
  2824. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2826. all URIs are tested and their timeout is not reached.
  2827. * src/AdaptiveURISelector.cc
  2828. * src/AdaptiveURISelector.h
  2829. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2830. Changed the default value of --http-auth-challenge option to false.
  2831. * src/OptionHandlerFactory.cc
  2832. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Reuse URIs when all unused URIs run out.
  2834. * src/OptionHandlerFactory.cc
  2835. * src/RequestGroup.cc
  2836. * src/prefs.cc
  2837. * src/prefs.h
  2838. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2840. and BtRejectMessage are derived from RangeBtMessage class.
  2841. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2842. derived from IndexBtMessage class. BtChokeMessage,
  2843. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2844. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2845. ZeroBtMessage class.
  2846. * src/AbstractBtMessage.cc
  2847. * src/AbstractBtMessage.h
  2848. * src/BtAllowedFastMessage.cc
  2849. * src/BtAllowedFastMessage.h
  2850. * src/BtAllowedFastMessageValidator.h: Removed
  2851. * src/BtBitfieldMessage.cc
  2852. * src/BtBitfieldMessage.h
  2853. * src/BtCancelMessage.cc
  2854. * src/BtCancelMessage.h
  2855. * src/BtCancelMessageValidator.h: Removed
  2856. * src/BtChokeMessage.cc
  2857. * src/BtChokeMessage.h
  2858. * src/BtExtendedMessage.cc
  2859. * src/BtExtendedMessage.h
  2860. * src/BtHandshakeMessage.cc
  2861. * src/BtHandshakeMessage.h
  2862. * src/BtHaveAllMessage.cc
  2863. * src/BtHaveAllMessage.h
  2864. * src/BtHaveMessage.cc
  2865. * src/BtHaveMessage.h
  2866. * src/BtHaveMessageValidator.h: Removed
  2867. * src/BtHaveNoneMessage.cc
  2868. * src/BtHaveNoneMessage.h
  2869. * src/BtInterestedMessage.cc
  2870. * src/BtInterestedMessage.h
  2871. * src/BtKeepAliveMessage.cc
  2872. * src/BtKeepAliveMessage.h
  2873. * src/BtNotInterestedMessage.cc
  2874. * src/BtNotInterestedMessage.h
  2875. * src/BtPieceMessage.cc
  2876. * src/BtPieceMessage.h
  2877. * src/BtPortMessage.cc
  2878. * src/BtPortMessage.h
  2879. * src/BtRejectMessage.cc
  2880. * src/BtRejectMessage.h
  2881. * src/BtRejectMessageValidator.h: Removed
  2882. * src/BtRequestMessage.cc
  2883. * src/BtRequestMessage.h
  2884. * src/BtRequestMessageValidator.h: Removed
  2885. * src/BtSuggestPieceMessage.cc
  2886. * src/BtSuggestPieceMessage.h
  2887. * src/BtSuggestPieceMessageValidator.h: Removed
  2888. * src/BtUnchokeMessage.cc
  2889. * src/BtUnchokeMessage.h
  2890. * src/DefaultBtMessageFactory.cc
  2891. * src/IndexBtMessage.cc
  2892. * src/IndexBtMessage.h
  2893. * src/IndexBtMessageValidator.h
  2894. * src/Makefile.am
  2895. * src/PeerMessageUtil.cc
  2896. * src/PeerMessageUtil.h
  2897. * src/RangeBtMessage.cc
  2898. * src/RangeBtMessage.h
  2899. * src/RangeBtMessageValidator.h
  2900. * src/SimpleBtMessage.cc
  2901. * src/SimpleBtMessage.h
  2902. * src/ZeroBtMessage.cc
  2903. * src/ZeroBtMessage.h
  2904. * test/BtRequestMessageTest.cc
  2905. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2906. Reverted usage_text.h to r1093 to avoid to lose translated
  2907. messages.
  2908. * src/usage_text.h
  2909. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2910. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2911. declared as non-const previously is now const and defined in class
  2912. definition.
  2913. * src/AbstractBtMessage.cc
  2914. * src/AbstractBtMessage.h
  2915. * src/BtAllowedFastMessage.cc
  2916. * src/BtAllowedFastMessage.h
  2917. * src/BtBitfieldMessage.h
  2918. * src/BtCancelMessage.cc
  2919. * src/BtCancelMessage.h
  2920. * src/BtChokeMessage.cc
  2921. * src/BtChokeMessage.h
  2922. * src/BtExtendedMessage.cc
  2923. * src/BtExtendedMessage.h
  2924. * src/BtHandshakeMessage.cc
  2925. * src/BtHandshakeMessage.h
  2926. * src/BtHaveAllMessage.cc
  2927. * src/BtHaveAllMessage.h
  2928. * src/BtHaveMessage.cc
  2929. * src/BtHaveMessage.h
  2930. * src/BtHaveNoneMessage.cc
  2931. * src/BtHaveNoneMessage.h
  2932. * src/BtInterestedMessage.cc
  2933. * src/BtInterestedMessage.h
  2934. * src/BtKeepAliveMessage.cc
  2935. * src/BtKeepAliveMessage.h
  2936. * src/BtMessage.h
  2937. * src/BtNotInterestedMessage.cc
  2938. * src/BtNotInterestedMessage.h
  2939. * src/BtPieceMessage.h
  2940. * src/BtPortMessage.cc
  2941. * src/BtPortMessage.h
  2942. * src/BtRejectMessage.cc
  2943. * src/BtRejectMessage.h
  2944. * src/BtRequestMessage.cc
  2945. * src/BtRequestMessage.h
  2946. * src/BtSuggestPieceMessage.cc
  2947. * src/BtSuggestPieceMessage.h
  2948. * src/BtUnchokeMessage.cc
  2949. * src/BtUnchokeMessage.h
  2950. * src/SimpleBtMessage.cc
  2951. * src/SimpleBtMessage.h
  2952. * test/MockBtMessage.h
  2953. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2954. Use FileEntry::exists()
  2955. * src/MultiDiskAdaptor.cc
  2956. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2957. Added exists()
  2958. * src/FileEntry.cc
  2959. * src/FileEntry.h
  2960. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2961. Added missing prefix dir.
  2962. * src/download_helper.cc
  2963. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2965. * src/CopyDiskAdaptor.cc: Removed
  2966. * src/CopyDiskAdaptor.h: Removed
  2967. * src/DefaultPieceStorage.cc
  2968. * src/Makefile.am
  2969. * src/OptionHandlerFactory.cc
  2970. * src/prefs.cc
  2971. * src/prefs.h
  2972. * src/usage_text.h
  2973. * test/CopyDiskAdaptorTest.cc: Removed
  2974. * test/Makefile.am
  2975. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2976. Rewritten isSameFileBeingDownloaded()
  2977. * src/RequestGroupMan.cc
  2978. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2979. Removed getName() from DownloadContext. getName() is declared in
  2980. BtContext.
  2981. * src/BtContext.h
  2982. * src/DownloadContext.h
  2983. * src/SingleFileDownloadContext.cc
  2984. * src/SingleFileDownloadContext.h
  2985. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2986. in AbstractSingleDiskAdaptor.
  2987. * src/AbstractSingleDiskAdaptor.h
  2988. * src/DiskAdaptor.h
  2989. * src/MultiDiskAdaptor.h
  2990. * src/RequestGroup.cc
  2991. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2992. MultiDiskAdaptor.
  2993. * src/DefaultPieceStorage.cc
  2994. * src/MultiDiskAdaptor.cc
  2995. * src/MultiDiskAdaptor.h
  2996. * test/MultiDiskAdaptorTest.cc
  2997. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2998. FileEntry::getPath() contains store(top level) directory to
  2999. simplify path handling operation. In the previous implementation,
  3000. store directory is concatenated to FileEntry::getPath() in
  3001. DownloadContext.
  3002. * src/BtDependency.cc
  3003. * src/BtPostDownloadHandler.cc
  3004. * src/CopyDiskAdaptor.cc
  3005. * src/DefaultBtContext.cc
  3006. * src/DirectDiskAdaptor.cc
  3007. * src/FileEntry.cc
  3008. * src/FileEntry.h
  3009. * src/FtpNegotiationCommand.cc
  3010. * src/HttpResponse.cc
  3011. * src/HttpResponseCommand.cc
  3012. * src/Metalink2RequestGroup.cc
  3013. * src/MultiDiskAdaptor.cc
  3014. * src/MultiDiskAdaptor.h
  3015. * src/MultiFileAllocationIterator.cc
  3016. * src/RequestGroup.cc
  3017. * src/SingleFileDownloadContext.cc
  3018. * src/SingleFileDownloadContext.h
  3019. * src/download_helper.cc
  3020. * test/BtDependencyTest.cc
  3021. * test/CopyDiskAdaptorTest.cc
  3022. * test/DefaultBtContextTest.cc
  3023. * test/DefaultBtProgressInfoFileTest.cc
  3024. * test/DirectDiskAdaptorTest.cc
  3025. * test/DownloadHelperTest.cc
  3026. * test/FileEntryTest.cc
  3027. * test/MultiDiskAdaptorTest.cc
  3028. * test/MultiFileAllocationIteratorTest.cc
  3029. * test/RequestGroupTest.cc
  3030. * test/SingleFileDownloadContextTest.cc
  3031. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Fixed compiler warning
  3033. * src/download_helper.cc
  3034. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Throw exception if same infohash torrent is now downloading.
  3036. * src/RequestGroup.cc
  3037. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3038. Added --dry-run option. In this mode, aria2 just checks whether
  3039. the remote file is available and doesn't download data. This
  3040. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3041. are canceled in this mode.
  3042. * src/FtpNegotiationCommand.cc
  3043. * src/HttpResponseCommand.cc
  3044. * src/HttpResponseCommand.h
  3045. * src/OptionHandlerFactory.cc
  3046. * src/RequestGroup.cc
  3047. * src/RequestGroupMan.cc
  3048. * src/prefs.cc
  3049. * src/prefs.h
  3050. * src/usage_text.h
  3051. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Fixed compiler waring
  3053. * test/UriListParserTest.cc
  3054. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3055. Parse options in -i list using OptionParser.
  3056. * src/UriListParser.cc
  3057. * src/UriListParser.h
  3058. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3059. Don't reset URI in retry to avoid additional round trips because
  3060. of redirects.
  3061. * src/AbstractCommand.cc
  3062. * src/OptionHandlerFactory.cc
  3063. * src/prefs.cc
  3064. * src/prefs.h
  3065. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Declared hide() in OptionHandler.
  3067. * src/NameMatchOptionHandler.h
  3068. * src/OptionHandler.h
  3069. * src/OptionHandlerImpl.h
  3070. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3071. Updated doc
  3072. * src/Peer.h
  3073. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3074. Added log message in setStatusInternal()
  3075. * src/ServerStat.cc
  3076. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3077. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3078. effectively exclude failed server.
  3079. * src/AbstractCommand.cc
  3080. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Added --index-out option to specify each file path for torrent.
  3082. Here index shown in --show-files option is used to specify which
  3083. file path should be altered. For example, to change the file path
  3084. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3085. option multiple times: --index-out=1=aria2.tar.bz2
  3086. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3087. available. This option can be specified in -i list.
  3088. * src/DefaultBtContext.cc
  3089. * src/DefaultBtContext.h
  3090. * src/MultiDiskAdaptor.cc
  3091. * src/MultiDiskAdaptor.h
  3092. * src/MultiFileAllocationIterator.cc
  3093. * src/OptionHandlerFactory.cc
  3094. * src/OptionHandlerImpl.h
  3095. * src/Util.cc
  3096. * src/Util.h
  3097. * src/download_helper.cc
  3098. * src/prefs.cc
  3099. * src/prefs.h
  3100. * src/usage_text.h
  3101. * test/DefaultBtContextTest.cc
  3102. * test/MultiDiskAdaptorTest.cc
  3103. * test/MultiFileAllocationIteratorTest.cc
  3104. * test/UtilTest.cc
  3105. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3106. Use Util::pathJoin()
  3107. * src/MetalinkParserController.cc
  3108. * test/test.xml
  3109. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3110. Use Util::pathJoin()
  3111. * src/DefaultBtContext.cc
  3112. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3113. Added Util::pathJoin()
  3114. * src/Util.h
  3115. * test/UtilTest.cc
  3116. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Applied basename function to remove directory element in
  3118. content-disposition value.
  3119. Return empty string if content-disposition value is ".." or ".".
  3120. * src/Util.cc
  3121. * test/UtilTest.cc
  3122. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3123. Added --max-overall-download-limit in man page.
  3124. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3125. * doc/aria2c.1.txt
  3126. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3127. Added --max-overall-download-limit option. Now --max-upload-limit
  3128. option is not ignored when --max-overall-upload-limit option has
  3129. non-zero value. aria2 checks download(upload) speed in the order:
  3130. first checks overall speed limit and if it is not exceeded, then
  3131. checks speed limit per download. Thus you can specify both
  3132. value. For example, set --max-overall-download-limit=1M and
  3133. --max-download-limit=500K to prevent from one download from eating
  3134. all overall speed limit.
  3135. * src/DefaultBtInteractive.cc
  3136. * src/DefaultBtInteractive.h
  3137. * src/DefaultBtMessageDispatcher.cc
  3138. * src/DefaultBtMessageDispatcher.h
  3139. * src/DownloadCommand.cc
  3140. * src/DownloadCommand.h
  3141. * src/FtpNegotiationCommand.cc
  3142. * src/HttpResponseCommand.cc
  3143. * src/OptionHandlerFactory.cc
  3144. * src/PeerInteractionCommand.cc
  3145. * src/RequestGroup.cc
  3146. * src/RequestGroup.h
  3147. * src/RequestGroupMan.cc
  3148. * src/RequestGroupMan.h
  3149. * src/prefs.cc
  3150. * src/prefs.h
  3151. * src/usage_text.h
  3152. * test/DefaultBtMessageDispatcherTest.cc
  3153. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Documented select-file option in Input File section.
  3155. Documented --http-auth-challenge option.
  3156. * doc/aria2c.1.txt
  3157. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3158. Now select-file can be specified in the uri list(-i list).
  3159. * src/BtContext.cc
  3160. * src/BtContext.h
  3161. * src/RequestGroup.cc
  3162. * src/Sequence.h
  3163. * src/download_helper.cc
  3164. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. Made the upper value of --max-concurrent-downloads options unlimited.
  3166. * src/OptionHandlerFactory.cc
  3167. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3168. Fixed the bug that disk writer is not created even if it shares
  3169. same piece with the preceding file if the length of previous file
  3170. is 0.
  3171. * src/MultiDiskAdaptor.cc
  3172. * test/MultiDiskAdaptorTest.cc
  3173. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3174. In BitTorrent, Open files in read-only mode for hash check. After
  3175. that, re-open file in read/write mode only when the download is
  3176. not finished.
  3177. * src/AbstractDiskWriter.cc
  3178. * src/AbstractDiskWriter.h
  3179. * src/AbstractSingleDiskAdaptor.cc
  3180. * src/AbstractSingleDiskAdaptor.h
  3181. * src/BtCheckIntegrityEntry.cc
  3182. * src/DiskAdaptor.h
  3183. * src/DiskWriter.h
  3184. * src/MultiDiskAdaptor.cc
  3185. * src/MultiDiskAdaptor.h
  3186. * src/RequestGroup.cc
  3187. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3188. Added --http-auth-challenge option. If it is set to true(by
  3189. default), aria2 sends HTTP authorization header only when it is
  3190. requested by the server. If false is set, then authorization
  3191. header is always sent to the server. This is useful for servers
  3192. that don't respond 401 code when authentication is required.
  3193. There is an exception: if username and password are embedded in
  3194. URI, authorization header is always sent to the server regardless
  3195. of this option.
  3196. * src/AuthConfigFactory.cc
  3197. * src/HttpSkipResponseCommand.cc
  3198. * src/OptionHandlerFactory.cc
  3199. * src/prefs.cc
  3200. * src/prefs.h
  3201. * src/usage_text.h
  3202. * test/AuthConfigFactoryTest.cc
  3203. * test/HttpRequestTest.cc
  3204. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3205. * Release 1.2.0
  3206. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3208. Thanks to all translators.
  3209. * po/es.po
  3210. * po/ja.po
  3211. * po/ru.po
  3212. * po/uk.po
  3213. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3214. Call deleteSocketForReadCheck() before socket is closed.
  3215. * src/HttpListenCommand.cc
  3216. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3217. Defined virtual destructor for BObject.
  3218. * src/bencode.h
  3219. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3220. Rewritten BDE to make it efficient.
  3221. * src/bencode.cc
  3222. * src/bencode.h
  3223. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3224. Removed function throw list.
  3225. * src/bencode.cc
  3226. * src/bencode.h
  3227. * test/BencodeTest.cc
  3228. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Enclosed all URLs in double quotes in command-line examples.
  3230. * doc/aria2c.1.txt
  3231. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Updated reference/see also section.
  3233. * README
  3234. * doc/aria2c.1.txt
  3235. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3236. Reorganized man page based on man man-pages.
  3237. * doc/aria2c.1.txt
  3238. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3239. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3240. because same documents are available in man page. Added
  3241. References section.
  3242. * README
  3243. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3244. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3245. PERFORMANCE PROFILE section.
  3246. * doc/aria2c.1.txt
  3247. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Rewritten the section for configuration file.
  3249. * README
  3250. * doc/aria2c.1.txt
  3251. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3252. Fixed the segmentation fault during execution of choking algorithm
  3253. in leecher state because of broken compare operator
  3254. implementation.
  3255. * src/BtLeecherStateChoke.cc
  3256. * src/BtLeecherStateChoke.h
  3257. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3258. Open file in binary mode.
  3259. * src/CookieStorage.cc
  3260. * src/DHTSetup.cc
  3261. * src/DHTUtil.cc
  3262. * src/Netrc.cc
  3263. * src/NsCookieParser.cc
  3264. * src/ProtocolDetector.cc
  3265. * src/RequestGroupMan.cc
  3266. * src/Signature.cc
  3267. * src/bencode.cc
  3268. * src/download_helper.cc
  3269. * src/option_processing.cc
  3270. * test/CookieParserTest.cc
  3271. * test/DefaultBtProgressInfoFileTest.cc
  3272. * test/FileTest.cc
  3273. * test/GZipDecoderTest.cc
  3274. * test/RequestGroupManTest.cc
  3275. * test/SignatureTest.cc
  3276. * test/SingleFileAllocationIteratorTest.cc
  3277. * test/UriListParserTest.cc
  3278. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3279. Removed operator[] because it is ambiguous with built-in []
  3280. operator.
  3281. * src/array_fun.h
  3282. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Fixed compile error
  3284. * src/OptionParser.cc
  3285. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Added missing call to arrayWrapperConst
  3287. * test/array_funTest.cc
  3288. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3289. Use array_wrapper instead of array_ptr.
  3290. * src/DHTRoutingTableDeserializer.cc
  3291. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3292. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3293. * src/array_fun.h
  3294. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3295. Added array_wrapper template.
  3296. * src/array_fun.h
  3297. * test/array_funTest.cc
  3298. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3299. Use operator T* of array_ptr.
  3300. * src/OptionParser.cc
  3301. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3302. Use localhost instead of 127.0.0.1
  3303. * test/FtpConnectionTest.cc
  3304. * test/MSEHandshakeTest.cc
  3305. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3306. Added operator T*
  3307. * src/array_fun.h
  3308. * test/array_funTest.cc
  3309. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3310. Use dynamically allocated char array to detect memory access
  3311. violation.
  3312. * src/DHTRoutingTableDeserializer.cc
  3313. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3314. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3315. defined.
  3316. * src/PeerMessageUtil.cc
  3317. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3319. * configure.ac
  3320. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3321. Added a check to see struct sockaddr_in has sin_len member.
  3322. * configure.ac
  3323. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3324. Fixed buffer overrun.
  3325. * src/DHTRoutingTableDeserializer.cc
  3326. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3327. Added LL for long long int constant.
  3328. * test/FtpConnectionTest.cc
  3329. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3330. Casted to unsigned int to suppress compiler warning on netbsd.
  3331. * src/BtRuntime.h
  3332. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3333. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3334. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3335. type time_t.
  3336. * src/SimpleLogger.cc
  3337. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3338. Added test for FtpConnection::receiveSizeResponse().
  3339. * test/FtpConnectionTest.cc
  3340. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3341. Fix epoll error on the old kernel 2.6.8 or ealier.
  3342. * src/EpollEventPoll.cc
  3343. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3344. Use Util::parseLLInt instead of sscanf for portability. The
  3345. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3346. * src/FtpConnection.cc
  3347. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3348. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3349. block. It should not filter anything.
  3350. * src/BitfieldMan.cc
  3351. * src/ConsoleStatCalc.cc
  3352. * test/BitfieldManTest.cc
  3353. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3354. Fixed the bug that the boolean options that don't take arguments
  3355. don't work.
  3356. * src/OptionHandlerImpl.h
  3357. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3358. Fixed broken selected file BitTorrent download.
  3359. * src/MultiDiskAdaptor.cc
  3360. * test/MultiDiskAdaptorTest.cc
  3361. * test/MultiFileAllocationIteratorTest.cc
  3362. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3363. Fixed #define guard for EpollEventPoll
  3364. * src/EpollEventPoll.h
  3365. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3366. Wait 2 seconds. 1 second is sometimes not enough.
  3367. * test/TimeSeedCriteriaTest.cc
  3368. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3369. Use localhost instead of 127.0.0.1.
  3370. * test/DHTConnectionImplTest.cc
  3371. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. Suppressed compiler warning.
  3373. * src/AdaptiveURISelector.cc
  3374. * src/DefaultPieceStorage.cc
  3375. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3376. Defined virtual destructor.
  3377. * src/MetalinkParserState.h
  3378. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3379. Give NULL for second argument of getaddrinfo instead of "0".
  3380. * src/NameResolver.cc
  3381. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3382. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3383. included strptime doesn't parse data for this format.
  3384. * src/FtpConnection.cc
  3385. * test/FtpConnectionTest.cc
  3386. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3387. Removed tests giving -1 for unsigned argument.
  3388. * test/SingleFileDownloadContextTest.cc
  3389. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3390. Don't use sha256 in tests because it might not be supported by the
  3391. SSL library.
  3392. * test/MetalinkProcessorTest.cc
  3393. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. Removed tests giving -1 for unsigned argument.
  3395. * test/AlphaNumberDecoratorTest
  3396. * test/BitfieldManTest.cc
  3397. * test/DefaultBtContextTest.cc
  3398. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3399. Fixed compile error without libcares when epoll is available.
  3400. * src/EpollEventPoll.cc
  3401. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Included fstream instead of iostream.
  3403. * test/SignatureTest.cc
  3404. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Removed #include <algorithm>
  3406. * test/RequestGroupTest.cc
  3407. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3408. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3409. using RequestGroup::extractURIResult().
  3410. * src/AdaptiveURISelector.cc
  3411. * src/RequestGroup.cc
  3412. * src/RequestGroup.h
  3413. * test/RequestGroupTest.cc
  3414. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3415. Added tests for array_ptr.
  3416. * test/array_funTest.cc
  3417. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Don't send ip parameter to a tracker if ip parameter is empty
  3419. string.
  3420. * src/DefaultBtAnnounce.cc
  3421. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3422. Adjusted line feed.
  3423. * src/version_usage.cc
  3424. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3425. Print tags, possible values when OptionHandlerException is caught.
  3426. * src/option_processing.cc
  3427. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3428. Changed the message for FatalException.
  3429. * src/OptionParser.cc
  3430. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3431. Documented --bt-external-ip option in man page. Updated man pages
  3432. for --proxy-method option.
  3433. * doc/aria2c.1.txt
  3434. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3435. Use GET method for FTP via HTTP proxy.
  3436. * src/FtpInitiateConnectionCommand.cc
  3437. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3438. Changed the default value of --proxy-method option from 'tunnel'
  3439. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3440. option.
  3441. * src/AbstractCommand.cc
  3442. * src/AbstractCommand.h
  3443. * src/FtpInitiateConnectionCommand.cc
  3444. * src/HttpDownloadCommand.cc
  3445. * src/HttpInitiateConnectionCommand.cc
  3446. * src/HttpInitiateConnectionCommand.h
  3447. * src/OptionHandlerFactory.cc
  3448. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Initialized _logger
  3450. * src/SelectEventPoll.cc
  3451. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3452. Defined a copy constructor for the same type.
  3453. * src/SharedHandle.h
  3454. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3455. Added OptionParser::parseArg() which internally uses getopt_long
  3456. to parse command-line options. All command-line options are now
  3457. configured by OptionHandler. No manual editing of struct option*
  3458. is required any more.
  3459. * src/NameMatchOptionHandler.h
  3460. * src/OptionHandler.h
  3461. * src/OptionHandlerFactory.cc
  3462. * src/OptionHandlerImpl.h
  3463. * src/OptionParser.cc
  3464. * src/OptionParser.h
  3465. * src/array_fun.h
  3466. * src/main.cc
  3467. * src/option_processing.cc
  3468. * test/OptionHandlerTest.cc
  3469. * test/OptionParserTest.cc
  3470. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3471. Fixed configure error with --disable-epoll
  3472. * configure.ac
  3473. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3474. Fixed compile error when HAVE_EPOLL is not defined.
  3475. Fixed linker error on bigendian systems.
  3476. * src/SocketCore.cc
  3477. * src/SocketCore.h
  3478. * test/DefaultBtProgressInfoFileTest.cc
  3479. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3480. Added --bt-external-ip option. You can specify the external IP
  3481. address to report to a BitTorrent tracker. Although this function
  3482. is named 'external', it can accept any kind of IP addresses.
  3483. * src/DefaultBtAnnounce.cc
  3484. * src/OptionHandlerFactory.cc
  3485. * src/option_processing.cc
  3486. * src/prefs.cc
  3487. * src/prefs.h
  3488. * src/usage_text.h
  3489. * test/DefaultBtAnnounceTest.cc
  3490. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3491. Extracted the algorithm to find the longest incremental sequence
  3492. as max_sequence template.
  3493. * src/LongestSequencePieceSelector.cc
  3494. * src/a2algo.h
  3495. * test/Makefile.am
  3496. * test/a2algoTest.cc
  3497. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3498. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3499. * src/usage_text.h
  3500. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3501. Updated doc for --uri-selector, --http-server-listen-port and
  3502. --enable-http-server option. Documented --event-poll option.
  3503. * doc/aria2c.1.txt
  3504. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3505. Updated doc for --enable-http-server.
  3506. * src/usage_text.h
  3507. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Documented --http-server-listen-port and --enable-http-server in
  3509. man page.
  3510. * doc/aria2c.1.txt
  3511. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3512. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3513. translations. Thanks to all translators.
  3514. * po/es.po
  3515. * po/id.po
  3516. * po/it.po
  3517. * po/ru.po
  3518. * po/uk.po
  3519. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3520. Bump up version number to 1.2.0
  3521. * configure.ac
  3522. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. BtContext::getAnnounceTiers() now returns const reference.
  3524. * src/BtContext.h
  3525. * src/DefaultBtContext.cc
  3526. * src/DefaultBtContext.h
  3527. * test/MockBtContext.h
  3528. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Change the number of retries for tracker request based on the
  3530. number of available tracker in a torrent file.
  3531. * src/TrackerWatcherCommand.cc
  3532. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3533. Added _maxTries property to RequestGroup and assign the option
  3534. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3535. RequestGroup::getMaxTries() instead of
  3536. Option::getAsInt(PREF_MAX_TRIES).
  3537. * src/AbstractCommand.cc
  3538. * src/RequestGroup.cc
  3539. * src/RequestGroup.h
  3540. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3541. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3542. Mandriva. I modified the patch: make RequestGroup have the
  3543. timeout value and AdaptiveURISelector directly modifies that
  3544. value.
  3545. * src/AbstractCommand.cc
  3546. * src/AdaptiveURISelector.cc
  3547. * src/AdaptiveURISelector.h
  3548. * src/FtpNegotiationCommand.cc
  3549. * src/RequestGroup.cc
  3550. * src/RequestGroup.h
  3551. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Fixed compiler warning
  3553. * test/IteratableChecksumValidatorTest.cc
  3554. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3555. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3556. integrated downloads. This PieceSelector subclass finds the
  3557. longest continuous sequence in the available missing pieces and
  3558. selects the last index of such sequence. This makes HTTP/FTP
  3559. connections less interrupted by the pieces obtained by BitTorrent
  3560. peers.
  3561. * src/DefaultPieceStorage.cc
  3562. * src/DefaultPieceStorage.h
  3563. * src/LongestSequencePieceSelector.cc
  3564. * src/LongestSequencePieceSelector.h
  3565. * src/Makefile.am
  3566. * src/PieceSelector.h
  3567. * src/RarestPieceSelector.h
  3568. * src/RequestGroup.cc
  3569. * test/BtDependencyTest.cc
  3570. * test/DefaultPieceStorageTest.cc
  3571. * test/IteratableChecksumValidatorTest.cc
  3572. * test/LongestSequencePieceSelectorTest.cc
  3573. * test/Makefile.am
  3574. * test/SegmentManTest.cc
  3575. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3576. Fixed the bug that the average speed is wrong in
  3577. http/ftp/BitTorrent integrated download. Only the download bytes
  3578. in BitTorrent were considered.
  3579. * src/RequestGroup.cc
  3580. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Choose port for BitTorrent/DHT randomly from the specified range.
  3582. * src/DHTConnectionImpl.cc
  3583. * src/PeerListenCommand.cc
  3584. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3585. Send HTTP Authorization header only if it is requested by the
  3586. server(response 401). There are some exceptions. The authorization
  3587. header for proxy is always sent if it is available without request
  3588. by the server. If username/password is specified in the URI, it
  3589. is immediately sent to the server without request by the server.
  3590. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3591. SharedHandle<AuthConfig>().
  3592. NetrcAuthResolver::resolveAuthConfig() returns
  3593. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3594. * src/AbstractAuthResolver.cc
  3595. * src/AbstractProxyRequestCommand.cc
  3596. * src/AuthConfigFactory.cc
  3597. * src/AuthConfigFactory.h
  3598. * src/HttpConnection.cc
  3599. * src/HttpRequest.cc
  3600. * src/HttpRequest.h
  3601. * src/HttpResponse.cc
  3602. * src/HttpResponseCommand.cc
  3603. * src/HttpSkipResponseCommand.cc
  3604. * test/AuthConfigFactoryTest.cc
  3605. * test/HttpRequestTest.cc
  3606. * test/HttpResponseTest.cc
  3607. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3608. Remove leading "--" from help keyword and a substring after "="
  3609. from help keyword, so that one can query options by '-h--max-' or
  3610. '-hmax-peers=10'.
  3611. * src/option_processing.cc
  3612. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3613. Rewritten PStringVisitor and its implementation.
  3614. * src/PStringBuildVisitor.cc
  3615. * src/PStringBuildVisitor.h
  3616. * src/PStringDatum.h
  3617. * src/PStringNumLoop.h
  3618. * src/PStringSegment.cc
  3619. * src/PStringSegment.h
  3620. * src/PStringSelect.h
  3621. * src/PStringVisitor.h
  3622. * src/download_helper.cc
  3623. * test/PStringBuildVisitorTest.cc
  3624. * test/ParameterizedStringParserTest.cc
  3625. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3626. Persist connection between the built-in HTTP server and a client
  3627. if a client supports keep-alive. Fixed the bug that aria2 exits
  3628. when the HTTP server receives EOF from a client.
  3629. * src/HttpServer.cc
  3630. * src/HttpServer.h
  3631. * src/HttpServerCommand.cc
  3632. * src/HttpServerCommand.h
  3633. * src/HttpServerResponseCommand.cc
  3634. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3635. Added experimental built-in HTTP server. Currently, when a client
  3636. accesses to the server, it responds with the current download
  3637. progress. By default, it is disabled. To enable the server, give
  3638. --enable-http-server option. To change the default port number
  3639. for the server to listen to, use --http-server-listen-port option.
  3640. The response HTML is very simple and refreshes it self each 1
  3641. second. Because of this refresh, you see flicker in normal web
  3642. browser such as Firefox. I recommend to use console-based browser
  3643. such as elinks, w3m. To connect to the server, run 'elinks
  3644. http://localhost:6800/' while running aria2. Please replace port
  3645. number '6800'(which is default) with your preference.
  3646. * src/DownloadEngineFactory.cc
  3647. * src/HttpHeader.cc
  3648. * src/HttpHeader.h
  3649. * src/HttpHeaderProcessor.cc
  3650. * src/HttpHeaderProcessor.h
  3651. * src/HttpListenCommand.cc
  3652. * src/HttpListenCommand.h
  3653. * src/HttpServer.cc
  3654. * src/HttpServer.h
  3655. * src/HttpServerCommand.cc
  3656. * src/HttpServerCommand.h
  3657. * src/HttpServerResponseCommand.cc
  3658. * src/HttpServerResponseCommand.h
  3659. * src/Makefile.am
  3660. * src/OptionHandlerFactory.cc
  3661. * src/Util.cc
  3662. * src/Util.h
  3663. * src/help_tags.h
  3664. * src/option_processing.cc
  3665. * src/prefs.cc
  3666. * src/prefs.h
  3667. * src/usage_text.h
  3668. * test/HttpHeaderProcessorTest.cc
  3669. * test/UtilTest.cc
  3670. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Removed.
  3672. * src/CheckIntegrityMan.cc
  3673. * src/FileAllocationMan.cc
  3674. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3675. Made (piece) hash check sequential for each RequestGroup because
  3676. simultaneous hash check is slower than sequential execution.
  3677. * src/CheckIntegrityCommand.cc
  3678. * src/CheckIntegrityDispatcherCommand.cc
  3679. * src/CheckIntegrityDispatcherCommand.h
  3680. * src/CheckIntegrityMan.h
  3681. * src/ConsoleStatCalc.cc
  3682. * src/DownloadCommand.cc
  3683. * src/DownloadEngine.cc
  3684. * src/DownloadEngine.h
  3685. * src/DownloadEngineFactory.cc
  3686. * src/Makefile.am
  3687. * src/Makefile.in
  3688. * src/RequestGroup.cc
  3689. * src/StatCalc.h
  3690. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3691. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3692. SequentialDispatcherCommand.
  3693. * src/FileAllocationDispatcherCommand.cc
  3694. * src/SequentialDispatcherCommand.h
  3695. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3696. Rewritten FileAllocationDispatcherCommand using brand new
  3697. SequentialDispatcherCommand.
  3698. * src/DownloadEngineFactory.cc
  3699. * src/FileAllocationCommand.cc
  3700. * src/FileAllocationDispatcherCommand.cc
  3701. * src/FileAllocationDispatcherCommand.h
  3702. * src/Makefile.am
  3703. * src/SequentialDispatcherCommand.h
  3704. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3705. Replaced FileAllocationMan with
  3706. SequentialPicker<FileAllocationEntry>.
  3707. * src/BtCheckIntegrityEntry.cc
  3708. * src/ConsoleStatCalc.cc
  3709. * src/DownloadEngine.cc
  3710. * src/DownloadEngine.h
  3711. * src/DownloadEngineFactory.cc
  3712. * src/FileAllocationCommand.cc
  3713. * src/FileAllocationDispatcherCommand.cc
  3714. * src/FileAllocationMan.h
  3715. * src/Makefile.am
  3716. * src/SequentialPicker.h
  3717. * src/StatCalc.h
  3718. * src/StreamCheckIntegrityEntry.cc
  3719. * test/Makefile.am
  3720. * test/SequentialPickerTest.cc
  3721. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3722. Added doc for adaptive URI selector.
  3723. * doc/aria2c.1.txt
  3724. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3725. Added doc for adaptive URI selector.
  3726. * src/usage_text.h
  3727. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3728. Added doc for --bt-max-peers option.
  3729. * doc/aria2c.1.txt
  3730. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3731. Added doc for --bt-hash-check-seed option.
  3732. * doc/aria2c.1.txt
  3733. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3734. Documented exit codes.
  3735. * doc/aria2c.1.txt
  3736. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3737. Added --bt-max-peers option to specify the maximum number of peers
  3738. per torrent. 0 means unlimited number of peers.
  3739. * src/ActivePeerConnectionCommand.cc
  3740. * src/BtRuntime.h
  3741. * src/DefaultPeerStorage.cc
  3742. * src/DefaultPeerStorage.h
  3743. * src/OptionHandlerFactory.cc
  3744. * src/RequestGroup.cc
  3745. * src/option_processing.cc
  3746. * src/prefs.cc
  3747. * src/prefs.h
  3748. * src/usage_text.h
  3749. * test/DefaultPeerStorageTest.cc
  3750. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3751. Added --bt-hash-check-seed option. If true is given to this
  3752. option, after hash check using --check-integrity option and file
  3753. is complete, continue to seed file. If you want to check file and
  3754. download it only when it is damaged or incomplete, set this option
  3755. to false. This option has effect only on BitTorrent download.
  3756. The default value is true(This is the same behavior with the
  3757. previous release).
  3758. * src/BtCheckIntegrityEntry.cc
  3759. * src/OptionHandlerFactory.cc
  3760. * src/option_processing.cc
  3761. * src/prefs.cc
  3762. * src/prefs.h
  3763. * src/usage_text.h
  3764. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Updated copyright year.
  3766. * src/version_usage.cc
  3767. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3768. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3769. * doc/aria2c.1.txt
  3770. * src/usage_text.h
  3771. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3772. Made the max value of split option unlimited.
  3773. * doc/aria2c.1.txt
  3774. * src/OptionHandlerFactory.cc
  3775. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3776. Fixed compile warning/error.
  3777. * src/DownloadResult.h
  3778. * src/HttpDownloadCommand.cc
  3779. * src/ServerStat.cc
  3780. * test/RequestGroupTest.cc
  3781. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3782. Added --event-poll option to select the method for polling events.
  3783. The available methods are "select" and "epoll". "epoll" is
  3784. available on Linux only. The earlier release has the compile
  3785. option to choose from these methods.
  3786. * configure.ac
  3787. * src/RequestGroupMan.cc
  3788. * src/OptionHandlerFactory.cc
  3789. * src/EpollEventPoll.h
  3790. * src/StreamFileAllocationEntry.cc
  3791. * src/a2io.h
  3792. * src/SelectEventPoll.h
  3793. * src/option_processing.cc
  3794. * src/prefs.h
  3795. * src/EpollEventPoll.cc
  3796. * src/EventPoll.h
  3797. * src/SocketCore.h
  3798. * src/Makefile.am
  3799. * src/main.cc
  3800. * src/DownloadEngine.h
  3801. * src/SelectEventPoll.cc
  3802. * src/DownloadEngine.cc
  3803. * src/SocketCore.cc
  3804. * src/DownloadEngineFactory.cc
  3805. * src/Makefile.in
  3806. * src/prefs.cc
  3807. * src/usage_text.h
  3808. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3809. Included RecoverableException.h from main.cc
  3810. * src/main.cc
  3811. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3812. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3813. now returns last error encountered in the HTTP/FTP downloads as a
  3814. exit status value. If all downloads finished successfully, aria2
  3815. returns 0. The error code is defined in src/DownloadResult.h.
  3816. The error occurred in the download currently in progress is not
  3817. reported as a last error. If no error has encountered but there
  3818. are in progress or waiting downloads, aria2 returns 7.
  3819. * src/AbstractCommand.cc
  3820. * src/DlAbortEx.h
  3821. * src/DlRetryEx.h
  3822. * src/DownloadCommand.cc
  3823. * src/DownloadFailureException.h
  3824. * src/DownloadResult.h
  3825. * src/FtpNegotiationCommand.cc
  3826. * src/HttpSkipResponseCommand.cc
  3827. * src/Makefile.am
  3828. * src/MultiUrlRequestInfo.cc
  3829. * src/MultiUrlRequestInfo.h
  3830. * src/RecoverableException.h
  3831. * src/RequestGroup.cc
  3832. * src/RequestGroup.h
  3833. * src/RequestGroupMan.cc
  3834. * src/RequestGroupMan.h
  3835. * src/URIResult.cc
  3836. * src/URIResult.h
  3837. * src/main.cc
  3838. * src/option_processing.cc
  3839. * test/RequestGroupTest.cc
  3840. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3842. patch adds AdaptiveURISelector, which selects one of the bests
  3843. mirrors for first and reserved connections. For supplementary
  3844. ones, it returns mirrors which has not been tested yet, and if
  3845. each of them already tested, returns mirrors which has to be
  3846. tested again. Otherwise, it doesn't return anymore mirrors.
  3847. * src/AdaptiveURISelector.cc
  3848. * src/AdaptiveURISelector.h
  3849. * src/FtpNegotiationCommand.cc
  3850. * src/HttpResponseCommand.cc
  3851. * src/Makefile.am
  3852. * src/Makefile.in
  3853. * src/OptionHandlerFactory.cc
  3854. * src/RequestGroup.cc
  3855. * src/RequestGroup.h
  3856. * src/RequestGroupMan.cc
  3857. * src/ServerStat.cc
  3858. * src/ServerStat.h
  3859. * src/ServerStatMan.cc
  3860. * src/SpeedCalc.cc
  3861. * src/URISelector.h
  3862. * src/prefs.cc
  3863. * src/prefs.h
  3864. * test/RequestGroupManTest.cc
  3865. * test/ServerStatManTest.cc
  3866. * test/ServerStatTest.cc
  3867. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3868. Fixed unit test error.
  3869. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3870. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3871. * Release 1.1.2
  3872. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3873. Updated Russian translation. Thanks to the translators.
  3874. * po/ru.po
  3875. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3876. Added the description of --use-head option to man page.
  3877. * doc/aria2c.1.txt
  3878. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3879. Bump up version number to 1.1.2
  3880. * configure.ac
  3881. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3882. Added --use-head option to toggle whether HEAD method should be
  3883. used in the first HTTP request. By default aria2 uses HEAD method
  3884. as the first request. When the server doesn't recognize HEAD, then
  3885. give aria2 --use-head=false to force aria2 to use GET method
  3886. instead.
  3887. * src/OptionHandlerFactory.cc
  3888. * src/RequestGroupMan.cc
  3889. * src/option_processing.cc
  3890. * src/prefs.cc
  3891. * src/prefs.h
  3892. * src/usage_text.h
  3893. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3895. message is received before CHOKE message. The old implementation
  3896. doen't clear the use-bit of the piece when recieved REJECT
  3897. message.
  3898. * src/DefaultBtMessageDispatcher.cc
  3899. * test/DefaultBtMessageDispatcherTest.cc
  3900. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3901. * Release 1.1.1
  3902. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Bump up version number to 1.1.1.
  3904. * configure.ac
  3905. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3907. is printed repeatedly.
  3908. * src/ConsoleStatCalc.cc
  3909. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3910. * Release 1.1.0
  3911. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3912. Added ifdef clause for conditional compilation.
  3913. * src/main.cc
  3914. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3916. translations. Thanks to all translators.
  3917. * po/ja.po
  3918. * po/ru.po
  3919. * po/uk.po
  3920. * po/zh_CN.po
  3921. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Added the preceding ">>> " before the message "Printing the
  3923. contents of file..." to make the output more readable.
  3924. * src/main.cc
  3925. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. Added try-catch block in the loop in showFiles() to continue the
  3927. operation even if the exception occurred in one file.
  3928. * src/main.cc (showFiles)
  3929. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3930. Made messages in showFiles() translatable.
  3931. * po/aria2.pot
  3932. * src/main.cc
  3933. * src/message.h
  3934. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3935. Print the contents of Torrent/Metalink files are printed without
  3936. -T/-M options.
  3937. * src/main.cc
  3938. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3939. Escaped '--' with '\--'
  3940. * README
  3941. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3942. Updated "How to build" section in README. Mentioned about
  3943. --with-ca-bundle compile option.
  3944. * README
  3945. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. Bump up version number to 1.1.0.
  3947. * configure.ac
  3948. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Added a note for --dht-listen-port option.
  3950. * doc/aria2c.1.txt
  3951. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3952. Update doc for --realtime-chunk-checksum option.
  3953. * doc/aria2c.1.txt
  3954. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3955. Update doc for --realtime-chunk-checksum option.
  3956. * src/usage_text.h
  3957. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3958. Updated French, Japanese, Russian and Ukrainian translations.
  3959. Thanks to all translators.
  3960. * po/fr.po
  3961. * po/ja.po
  3962. * po/ru.po
  3963. * po/uk.po
  3964. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3965. Renamed aria2c.pot to aria2.pot
  3966. * po/aria2.pot
  3967. * po/aria2c.pot: Removed.
  3968. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3969. Removed MetaEntry.h
  3970. * src/Makefile.am
  3971. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3972. Rename file by appending digits if a local file exists and its
  3973. file size is larger than that of remote file with --continue
  3974. option. The old implementation just throws exception in such case.
  3975. * src/RequestGroup.cc
  3976. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. Fixed the bug that download progress summary is not printed in the
  3978. interval specified by the option.
  3979. * src/ConsoleStatCalc.cc
  3980. * src/ConsoleStatCalc.h
  3981. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3982. Fixed compiler warning
  3983. * src/Cookie.cc
  3984. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Fixed the cookie implementation based on RFC2965.
  3986. Now if a value in domain field is not started with dot, then
  3987. prepend dot. That means a cookie with domain=sf.net is sent to
  3988. wiki.sf.net.
  3989. * src/Cookie.cc
  3990. * test/CookieParserTest.cc
  3991. * test/CookieStorageTest.cc
  3992. * test/CookieTest.cc
  3993. * test/NsCookieParserTest.cc
  3994. * test/Sqlite3MozCookieParserTest.cc
  3995. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3997. is enabled and the server doesn't support keep-alive.
  3998. * src/AbstractCommand.cc
  3999. * src/DownloadCommand.cc
  4000. * src/HttpDownloadCommand.cc
  4001. * src/HttpDownloadCommand.h
  4002. * src/HttpResponseCommand.cc
  4003. * src/Request.cc
  4004. * src/Request.h
  4005. * test/RequestTest.cc
  4006. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4007. Removed Dictionary/List/Data and its related classes.
  4008. * src/BencodeVisitor.cc: Removed.
  4009. * src/BencodeVisitor.h: Removed.
  4010. * src/Data.cc: Removed.
  4011. * src/Data.h: Removed.
  4012. * src/Dictionary.cc: Removed.
  4013. * src/Dictionary.h: Removed.
  4014. * src/List.cc: Removed.
  4015. * src/List.h: Removed.
  4016. * src/Makefile.am
  4017. * src/MetaEntry.h: Removed.
  4018. * src/MetaEntryVisitor.h: Removed.
  4019. * src/MetaFileUtil.cc: Removed.
  4020. * src/MetaFileUtil.h: Removed.
  4021. * test/BencodeVisitorTest.cc: Removed.
  4022. * test/DataTest.cc: Removed.
  4023. * test/DictionaryTest.cc: Removed.
  4024. * test/ListTest.cc: Removed.
  4025. * test/Makefile.am
  4026. * test/MetaFileUtilTest.cc: Removed.
  4027. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4028. Removed include of MetaEntry.h
  4029. * test/DHTMessageTrackerEntryTest.cc
  4030. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. Use BDE instead of Dictionary/List/Data.
  4032. * src/AnnounceList.cc
  4033. * src/AnnounceList.h
  4034. * test/AnnounceListTest.cc
  4035. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4036. Use BDE instead of Dictionary/List/Data.
  4037. * src/DHTAbstractMessage.cc
  4038. * src/DHTAbstractMessage.h
  4039. * src/DHTAnnouncePeerMessage.cc
  4040. * src/DHTAnnouncePeerMessage.h
  4041. * src/DHTAnnouncePeerReplyMessage.cc
  4042. * src/DHTAnnouncePeerReplyMessage.h
  4043. * src/DHTFindNodeMessage.cc
  4044. * src/DHTFindNodeMessage.h
  4045. * src/DHTFindNodeReplyMessage.cc
  4046. * src/DHTFindNodeReplyMessage.h
  4047. * src/DHTGetPeersMessage.cc
  4048. * src/DHTGetPeersMessage.h
  4049. * src/DHTGetPeersReplyMessage.cc
  4050. * src/DHTGetPeersReplyMessage.h
  4051. * src/DHTMessageFactory.h
  4052. * src/DHTMessageFactoryImpl.cc
  4053. * src/DHTMessageFactoryImpl.h
  4054. * src/DHTMessageReceiver.cc
  4055. * src/DHTMessageTracker.cc
  4056. * src/DHTMessageTracker.h
  4057. * src/DHTPingMessage.cc
  4058. * src/DHTPingMessage.h
  4059. * src/DHTPingReplyMessage.cc
  4060. * src/DHTPingReplyMessage.h
  4061. * src/DHTQueryMessage.cc
  4062. * src/DHTQueryMessage.h
  4063. * src/DHTResponseMessage.cc
  4064. * src/DHTResponseMessage.h
  4065. * test/DHTAnnouncePeerMessageTest.cc
  4066. * test/DHTAnnouncePeerReplyMessageTest.cc
  4067. * test/DHTFindNodeMessageTest.cc
  4068. * test/DHTFindNodeReplyMessageTest.cc
  4069. * test/DHTGetPeersMessageTest.cc
  4070. * test/DHTGetPeersReplyMessageTest.cc
  4071. * test/DHTMessageFactoryImplTest.cc
  4072. * test/DHTMessageTrackerTest.cc
  4073. * test/DHTPingMessageTest.cc
  4074. * test/DHTPingReplyMessageTest.cc
  4075. * test/MockDHTMessageFactory.h
  4076. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4077. Added tests the case where length < 0 is specified.
  4078. * test/BencodeTest.cc
  4079. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4080. Fixed memory leak in decoderawstring()
  4081. * src/bencode.cc
  4082. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4083. Added missing #ifdef guard. Added uc() function for String and
  4084. removeKey() for Dict.
  4085. * src/bencode.cc
  4086. * src/bencode.h
  4087. * test/BencodeTest.cc
  4088. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4089. Use BDE instead of Dictionary/List/Data.
  4090. * src/HandshakeExtensionMessage.cc
  4091. * src/HandshakeExtensionMessage.h
  4092. * test/HandshakeExtensionMessageTest.cc
  4093. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. Added --max-overall-upload-limit option. This option limits the
  4095. overall upload speed. Stated in help message that the existing
  4096. --max-upload-limit option limits the upload speed per each
  4097. torrent. Man page is also updated.
  4098. * doc/aria2c.1.txt
  4099. * src/DefaultBtMessageDispatcher.cc
  4100. * src/DefaultBtMessageDispatcher.h
  4101. * src/OptionHandlerFactory.cc
  4102. * src/PeerInteractionCommand.cc
  4103. * src/option_processing.cc
  4104. * src/prefs.cc
  4105. * src/prefs.h
  4106. * src/usage_text.h
  4107. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4108. Use BDE instead of Dictionary/List/Data classes.
  4109. * src/CompactPeerListProcessor.cc
  4110. * src/CompactPeerListProcessor.h
  4111. * src/DefaultBtAnnounce.cc
  4112. * src/DefaultBtContext.cc
  4113. * src/DefaultBtContext.h
  4114. * src/DefaultPeerListProcessor.cc
  4115. * src/DefaultPeerListProcessor.h
  4116. * src/DelegatingPeerListProcessor.cc
  4117. * src/DelegatingPeerListProcessor.h
  4118. * src/PeerListProcessor.h
  4119. * src/UTPexExtensionMessage.cc
  4120. * src/Util.h
  4121. * src/message.h
  4122. * test/DefaultBtContextTest.cc
  4123. * test/DefaultPeerListProcessorTest.cc
  4124. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4125. Added bencode helper functions and BDE class.
  4126. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4127. * src/Makefile.am
  4128. * src/bencode.cc
  4129. * src/bencode.h
  4130. * test/BencodeTest.cc
  4131. * test/Makefile.am
  4132. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4133. Fixed the bug that bad URI is sent to the tracker when the announe
  4134. URI in torrent file includes query.
  4135. * src/DefaultBtAnnounce.cc
  4136. * test/DefaultBtAnnounceTest.cc
  4137. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4138. Added Option::blank().
  4139. Use !Option::blank(name) instead of Option::defined(name) for
  4140. the options that take filename.
  4141. * src/MultiUrlRequestInfo.cc
  4142. * src/Option.cc
  4143. * src/Option.h
  4144. * src/main.cc
  4145. * src/option_processing.cc
  4146. * test/OptionTest.cc
  4147. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4148. Documented the default value of --check-certificate option in man
  4149. page.
  4150. * doc/aria2c.1.txt
  4151. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4152. Enabled --check-certificate by default. Added compile
  4153. time(configure) option --with-ca-bundle to specify CA bundle.
  4154. Warn if --check-certificate=true and --ca-certificate is not
  4155. specified or loading CA certificate is failed.
  4156. * configure.ac
  4157. * src/MultiUrlRequestInfo.cc
  4158. * src/OptionHandlerFactory.cc
  4159. * src/message.h
  4160. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4161. Mentioned https tag in help option.
  4162. * doc/aria2c.1.txt
  4163. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4164. Added `https' tag to help option category. Added https tag to
  4165. --ca-certificate, --certificate, --check-certificate and
  4166. --private-key option.
  4167. * src/OptionHandlerFactory.cc
  4168. * src/help_tags.h
  4169. * src/option_processing.cc
  4170. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4171. Changed the package name from `aria2c' to `aria2' in order to fix
  4172. the packaging issue in Debian and Fedora. The name of the
  4173. executable is not changed.
  4174. * configure.ac
  4175. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4176. Fixed typos
  4177. * src/usage_text.h
  4178. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4179. Fixed typos and updated doc.
  4180. * README
  4181. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4182. Fixed typos
  4183. * doc/aria2c.1.txt
  4184. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4185. Fixed typos
  4186. * src/usage_text.h
  4187. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4188. Print a message when no files to download.
  4189. * src/download_helper.cc
  4190. * src/main.cc
  4191. * src/message.h
  4192. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4193. RFC3986 complied Percent-Encoding(urlencode).
  4194. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4195. ones.
  4196. * src/Request.cc
  4197. * src/Util.cc
  4198. * src/Util.h
  4199. * test/BtHandshakeMessageTest.cc
  4200. * test/DefaultBtAnnounceTest.cc
  4201. * test/DefaultBtContextTest.cc
  4202. * test/RequestTest.cc
  4203. * test/UtilTest.cc
  4204. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4205. Fixed the bug that prevents aria2 from downloading 0-length files
  4206. via HTTP/FTP.
  4207. * src/DefaultBtContext.cc
  4208. * src/DefaultBtContext.h
  4209. * src/DownloadContext.h
  4210. * src/FtpNegotiationCommand.cc
  4211. * src/HttpResponseCommand.cc
  4212. * src/HttpResponseCommand.h
  4213. * src/RequestGroup.cc
  4214. * src/SingleFileDownloadContext.cc
  4215. * src/SingleFileDownloadContext.h
  4216. * test/BtPostDownloadHandlerTest.cc
  4217. * test/MetalinkPostDownloadHandlerTest.cc
  4218. * test/MockBtContext.h
  4219. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4220. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4221. * src/option_processing.cc
  4222. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4223. Applied aria2-1.0.1-mingw.patch.
  4224. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4225. mingw.
  4226. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4227. * src/SocketCore.cc
  4228. * src/a2netcompat.h
  4229. * test/SocketCoreTest.cc
  4230. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4231. * Release 1.0.1
  4232. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4233. Updated Ukrainian and Norwegian Nynorsk translations.
  4234. Thanks to all translators.
  4235. * po/nn.po
  4236. * po/uk.po
  4237. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4238. Don't show download result when -S option is used.
  4239. * src/main.cc
  4240. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4241. Bump up version number to 1.0.1
  4242. * configure.ac
  4243. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Closed files after the test cases in MultiDiskWriterTest::
  4245. testResetDiskWriterEntries(). This will fix the unit test error
  4246. in mingw32 build.
  4247. * test/MultiDiskWriterTest.cc
  4248. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4249. Use HEAD method to get file size from HTTP server for segmented
  4250. downloading.
  4251. The request to the BitTorrent Tracker always uses GET method because
  4252. the response of the tracker is small and it doesn't need segmented
  4253. download.
  4254. * src/FtpNegotiationCommand.cc
  4255. * src/HttpRequest.cc
  4256. * src/HttpResponseCommand.cc
  4257. * src/HttpSkipResponseCommand.cc
  4258. * src/RequestGroup.cc
  4259. * src/RequestGroup.h
  4260. * src/TrackerWatcherCommand.cc
  4261. * test/HttpRequestTest.cc
  4262. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4263. Fixed the bug that causes floating exception when -T option is used and
  4264. no URIs are given.
  4265. * src/download_helper.cc
  4266. * test/DownloadHelperTest.cc
  4267. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4268. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4269. errors in MinGW:
  4270. Closed file after saving server stats (RequestGroupMan.cc)
  4271. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4272. Ignored case & handled 2-digit years (strptime.c)
  4273. Added missing suseconds_t definition (a2time.h)
  4274. Fixed socket CLOSE() define (SocketCore.cc)
  4275. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4276. Changed utime() test values from x000 to x00000 as MinGW failed on
  4277. values less than timezone offset from Unix epoch
  4278. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4279. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4280. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4281. handle negative dates (CookieParserTest.cc)
  4282. * src/a2time.h
  4283. * src/FtpConnection.cc
  4284. * src/RequestGroupMan.cc
  4285. * src/SocketCore.cc
  4286. * src/strptime.c
  4287. * test/CookieParserTest.cc
  4288. * test/CopyDiskAdaptorTest.cc
  4289. * test/FileTest.cc
  4290. * test/FtpConnectionTest.cc
  4291. * test/MultiDiskAdaptorTest.cc
  4292. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4293. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4294. * doc/aria2c.1.txt
  4295. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. * Release 1.0.0
  4297. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4298. Added '~' to reserved characters.
  4299. * src/Util.cc
  4300. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4301. Do not urlencode Request::url in setUrl() because we want unmodified
  4302. URL using Request::getUrl()
  4303. * src/Request.cc
  4304. * src/Request.h
  4305. * test/RequestTest.cc
  4306. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4307. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4308. Thanks to all translators.
  4309. * po/bg.po
  4310. * po/fr.po
  4311. * po/ja.po
  4312. * po/ru.po
  4313. * po/uk.po
  4314. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4315. Bump up version number to 1.0.0
  4316. * configure.ac
  4317. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4318. Added nosqlite3 build to build_test.sh.
  4319. Renamed noxml as expat.
  4320. * build_test.sh
  4321. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4322. Updated INPUT FILE section.
  4323. * doc/aria2c.1.txt
  4324. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4325. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4326. on big endian systems because test .aria2 files are made for little
  4327. endian systems.
  4328. * test/DefaultBtProgressInfoFileTest.cc
  4329. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4330. Dropped ares support.
  4331. * README
  4332. * configure.ac
  4333. * m4/libares.m4: Removed.
  4334. * src/AsyncNameResolver.cc
  4335. * src/Makefile.am
  4336. * test/Makefile.am
  4337. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4338. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4339. Removed const qualifier from DiskWriter::size().
  4340. * src/AbstractDiskWriter.cc
  4341. * src/AbstractDiskWriter.h
  4342. * src/ByteArrayDiskWriter.cc
  4343. * src/ByteArrayDiskWriter.h
  4344. * src/DiskWriter.h
  4345. * test/ByteArrayDiskWriterTest.cc
  4346. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4347. Fixed the bug that causes segmentation fault/bus error during executing
  4348. choking algorithm while seeding. This is caused by improper
  4349. implementation of compare function which returns inconsistent results
  4350. depending on the timing of last unchoke.
  4351. * src/BtSeederStateChoke.cc
  4352. * src/BtSeederStateChoke.h
  4353. * src/DefaultPeerStorage.cc
  4354. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4355. Removed TODO
  4356. * TODO
  4357. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4358. Added a section that explains how to pass argument to options that
  4359. takes optional arguments with its short form.
  4360. * doc/aria2c.1.txt
  4361. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4362. Added -u for the short form of --max-upload-limit option.
  4363. * doc/aria2c.1.txt
  4364. * src/option_processing.cc
  4365. * src/usage_text.h
  4366. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4367. Added -V for the short form of --check-integrity option.
  4368. Now the argument of --check-integrity option is optional:
  4369. if it is omitted, it is evaluated as true.
  4370. * doc/aria2c.1.txt
  4371. * src/option_processing.cc
  4372. * src/usage_text.h
  4373. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4374. Made the default value of --ftp-pasv option set to true and it can take
  4375. true/false values.
  4376. * src/OptionHandlerFactory.cc
  4377. * src/option_processing.cc
  4378. * src/usage_text.h
  4379. * doc/aria2c.1.txt
  4380. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4381. Given custom random number generator to std::random_shuffle.
  4382. * src/AnnounceList.cc
  4383. * src/BtLeecherStateChoke.cc
  4384. * src/BtSeederStateChoke.cc
  4385. * src/DefaultBtRequestFactory.cc
  4386. * src/MetalinkEntry.cc
  4387. * src/RarestPieceSelector.cc
  4388. * src/SimpleRandomizer.cc
  4389. * src/SimpleRandomizer.h
  4390. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4391. Now the default value of --enable-direct-io is true.
  4392. * src/OptionHandlerFactory.cc
  4393. * doc/aria2c.1.txt
  4394. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. Erase peer before executing onReturningPeer and onErasingPeer
  4396. because choking algorithm called from onReturningPeer doesn't
  4397. like erasing peer in the active peer list.
  4398. * src/DefaultPeerStorage.cc
  4399. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4400. Instead of creating special filename in createDownloadResult() if
  4401. inMemoryDownload() is true, now it is done in getFilePath().
  4402. * src/RequestGroup.cc
  4403. * test/RequestGroupTest.cc
  4404. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4405. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4406. processed in memory. This is the fix for previous comment out.
  4407. * src/MemoryBufferPreDownloadHandler.cc
  4408. * src/RequestGroup.cc
  4409. * src/RequestGroup.h
  4410. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4411. Commented out the code which sets virtual directory path "[MEMORY]"
  4412. propagate directory to store to following RequestGroup.
  4413. * src/MemoryBufferPreDownloadHandler.cc
  4414. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4415. Bump up version number to 1.0.0b
  4416. * configure.ac
  4417. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4418. Added input_uris.txt to EXTRA_DIST
  4419. * test/Makefile.am
  4420. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4421. Removed PeerObject.h from Makefile.am
  4422. * src/Makefile.am
  4423. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4424. Avoid slow seeding
  4425. * src/PeerInteractionCommand.cc
  4426. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4427. Updated usage for -i option.
  4428. * src/usage_text.h (TEXT_INPUT_FILE)
  4429. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4430. Added INPUT FILE section to man page.
  4431. Escaped fake URLs.
  4432. * doc/aria2c.1.txt
  4433. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4434. Fixed wrong note position for -o option.
  4435. * doc/aria2c.1.txt
  4436. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4437. Fixed compile error without SSL/XML library.
  4438. * src/DefaultBtProgressInfoFile.cc
  4439. * src/DefaultBtProgressInfoFile.h
  4440. * src/FileMetalinkParserState.cc
  4441. * src/RequestGroup.h
  4442. * src/SocketCore.cc
  4443. * src/SocketCore.h
  4444. * src/VerificationMetalinkParserState.cc
  4445. * src/download_helper.h
  4446. * src/main.cc
  4447. * test/DefaultBtProgressInfoFileTest.cc
  4448. * test/DownloadHelperTest.cc
  4449. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4450. Rewritten URI handling functions. They are now provided as a testable
  4451. functions.
  4452. * src/Makefile.am
  4453. * src/RequestGroup.cc
  4454. * src/RequestGroup.h
  4455. * src/download_helper.cc
  4456. * src/download_helper.h
  4457. * src/main.cc
  4458. * test/DownloadHelperTest.cc
  4459. * test/Makefile.am
  4460. * test/input_uris.txt
  4461. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4462. Quickly terminate commands when ctrl-c is pressed.
  4463. * src/DownloadEngine.cc
  4464. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4465. Quickly terminate idle commands when download finished.
  4466. * src/AbstractCommand.cc
  4467. * src/DownloadCommand.cc
  4468. * src/DownloadEngine.cc
  4469. * src/DownloadEngine.h
  4470. * src/SleepCommand.cc
  4471. * src/SleepCommand.h
  4472. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4473. Added the ability to specify output filename and directory in input
  4474. file.
  4475. Additional parameters are added in the following line of URIs
  4476. with proceeding white space(s), 1 parameter in 1 line.
  4477. The parameter names are the same with the command-line option name
  4478. without proceeding "--". Not all the options are available here:
  4479. at the moment, 'dir' and 'out' options are avialable.
  4480. Please note that out option has no effect against Metalink or BitTorrent
  4481. downloads.
  4482. Example input file:
  4483. http://host/foo-1.1.tar.bz2
  4484. out=foo.tar.bz2
  4485. dir=/tmp/downloads
  4486. http://host/thundermonkey-2.0.tar.bz2
  4487. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4488. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4489. thundermonkey-2.0.tar.bz2 is saved as
  4490. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4491. * src/BtPostDownloadHandler.cc
  4492. * src/Metalink2RequestGroup.cc
  4493. * src/Metalink2RequestGroup.h
  4494. * src/MetalinkPostDownloadHandler.cc
  4495. * src/UriListParser.cc
  4496. * src/UriListParser.h
  4497. * src/main.cc
  4498. * test/Metalink2RequestGroupTest.cc
  4499. * test/UriListParserTest.cc
  4500. * test/filelist1.txt
  4501. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4502. Fixed error when SSL library is not found.
  4503. * configure.ac
  4504. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4505. Cross referenced among -s, -C and -j options.
  4506. Updated usage of -C and -s options.
  4507. * src/usage_text.h
  4508. * doc/aria2c.1.txt
  4509. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4510. Fixed bad cast in 32bit platforms.
  4511. * test/DefaultPieceStorageTest.cc
  4512. (DefaultPieceStorageTest::testGetCompletedLength)
  4513. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4514. Fixed unit test fails on 32bit platforms.
  4515. * test/CookieParserTest.cc
  4516. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4517. Show an average download speed in Download results.
  4518. * src/BtFileAllocationEntry.cc
  4519. * src/DefaultPieceStorage.cc
  4520. * src/DownloadContext.cc
  4521. * src/DownloadContext.h
  4522. * src/DownloadResult.h
  4523. * src/RequestGroup.cc
  4524. * src/RequestGroupMan.cc
  4525. * src/StreamFileAllocationEntry.cc
  4526. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4527. Fixed the bug that metalink file is not processed if Content-Type
  4528. field has a paramter.
  4529. * src/HttpResponse.cc
  4530. * src/HttpResponse.h
  4531. * test/HttpResponseTest.cc
  4532. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4533. Removed unused code.
  4534. * src/DefaultBtAnnounce.cc
  4535. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4537. the value larger than DefaultPieceStorage::getTotalLength() when
  4538. in flight pieces are involved.
  4539. * src/DefaultPieceStorage.cc
  4540. * test/DefaultPieceStorageTest.cc
  4541. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4542. Bump up version number to 1.0.0a.
  4543. * configure.ac
  4544. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4545. Updated configure.ac
  4546. * configure.ac
  4547. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Added usege for proxy.
  4549. * doc/aria2c.1.txt
  4550. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4551. Added usage for --ca-certificate, --certificate, --private-key and
  4552. --check-certificate options.
  4553. * doc/aria2c.1.txt
  4554. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4555. Updated man page
  4556. * doc/aria2c.1.txt
  4557. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4558. Added --no-proxy option. It receives comman separated hostname or
  4559. domains to which proxy should not be used.
  4560. aria2 honors the environment variable no_proxy to override no-proxy
  4561. value in configuration file. The user can override the environment
  4562. variable no_proxy with --no-proxy command-line option.
  4563. * src/AbstractCommand.cc
  4564. * src/OptionHandlerFactory.cc
  4565. * src/option_processing.cc
  4566. * src/prefs.cc
  4567. * src/prefs.h
  4568. * src/usage_text.h
  4569. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4570. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4571. The CA certificates are specified in --ca-certificate option.
  4572. By default, the verification is disabled. Use --check-certificate
  4573. option to enable it.
  4574. * src/HttpRequestCommand.cc
  4575. * src/LibgnutlsTLSContext.cc
  4576. * src/LibgnutlsTLSContext.h
  4577. * src/LibsslTLSContext.cc
  4578. * src/LibsslTLSContext.h
  4579. * src/MultiUrlRequestInfo.cc
  4580. * src/OptionHandlerFactory.cc
  4581. * src/SocketCore.cc
  4582. * src/SocketCore.h
  4583. * src/a2functional.h
  4584. * src/message.h
  4585. * src/option_processing.cc
  4586. * src/prefs.cc
  4587. * src/prefs.h
  4588. * src/usage_text.h
  4589. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4590. Added client certificate authentication for SSL/TLS.
  4591. Currently a private key must be decrypted for use with aria2.
  4592. If a user accidentally gives encrypted file to aria2 then following
  4593. thing happens:
  4594. If encrypted private key is given to aria2, it behaves differently
  4595. depending on the ssl library it uses. If aria2 built with openssl then
  4596. openssl prompts the user for password. If aria2 build with gnutls then
  4597. aria2 exists with error at start up.
  4598. * src/DownloadEngineFactory.cc
  4599. * src/MultiUrlRequestInfo.cc
  4600. * src/OptionHandlerFactory.cc
  4601. * src/option_processing.cc
  4602. * src/prefs.cc
  4603. * src/prefs.h
  4604. * src/usage_text.h
  4605. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4606. Introduced TLSContext that holds TLS related data that can be shared
  4607. with multiple SSL connections.
  4608. * src/DownloadEngineFactory.cc
  4609. * src/LibgnutlsTLSContext.cc
  4610. * src/LibgnutlsTLSContext.h
  4611. * src/LibsslTLSContext.cc
  4612. * src/LibsslTLSContext.h
  4613. * src/Makefile.am
  4614. * src/SocketCore.cc
  4615. * src/SocketCore.h
  4616. * src/TLSContext.h
  4617. * src/message.h
  4618. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4619. Fixed the bug that the DiskWriter of the first FileEntry whose
  4620. `needsFileAllocation' property is false is not created
  4621. even if it shares a piece with next FileEntry which `requested' property
  4622. is true.
  4623. Fixed the bug that zero-length file is not created if pre file
  4624. allocation is not done.
  4625. * src/MultiDiskAdaptor.cc
  4626. * src/MultiDiskAdaptor.h
  4627. * test/MultiDiskAdaptorTest.cc
  4628. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4629. Added the ability to pool proxy connection.
  4630. The conneciton in FTP with proxy-method=GET is not pooled.
  4631. Proxy-Connection header will not be sent when sending CONNECT method.
  4632. * src/DownloadEngine.cc
  4633. * src/DownloadEngine.h
  4634. * src/FtpFinishDownloadCommand.cc
  4635. * src/FtpInitiateConnectionCommand.cc
  4636. * src/FtpNegotiationCommand.cc
  4637. * src/HttpDownloadCommand.cc
  4638. * src/HttpInitiateConnectionCommand.cc
  4639. * src/HttpRequest.cc
  4640. * src/HttpRequest.h
  4641. * src/HttpResponse.cc
  4642. * src/HttpSkipResponseCommand.cc
  4643. * test/HttpRequestTest.cc
  4644. * test/HttpResponseTest.cc
  4645. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4646. Handle date before epoch.
  4647. To create *bad* Time object, call Time::null().
  4648. * src/CookieParser.cc
  4649. * src/FtpConnection.cc
  4650. * src/FtpConnection.h
  4651. * src/FtpNegotiationCommand.cc
  4652. * src/RequestGroup.cc
  4653. * src/TimeA2.cc
  4654. * src/TimeA2.h
  4655. * test/CookieParserTest.cc
  4656. * test/FtpConnectionTest.cc
  4657. * test/TimeTest.cc
  4658. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4659. Added support for following envrionment variables: http_proxy,
  4660. https_proxy, ftp_proxy and all_proxy.
  4661. Each variable is equivalent to the aria2 option whose name is the
  4662. variable name with '_' replaced with '-'.
  4663. They overrides options specified in aria2.conf file.
  4664. The envrionment variables can be overrode using command-line option.
  4665. * src/option_processing.cc
  4666. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4667. Renamed --http-proxy-method as --proxy-method.
  4668. * src/AbstractCommand.cc
  4669. * src/FtpInitiateConnectionCommand.cc
  4670. * src/HttpInitiateConnectionCommand.cc
  4671. * src/OptionHandlerFactory.cc
  4672. * src/option_processing.cc
  4673. * src/prefs.cc
  4674. * src/prefs.h
  4675. * src/usage_text.h
  4676. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4677. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4678. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4679. Above 3 options and --http-proxy option can handle proxy in URL format
  4680. like: http://user:passwd@host:port.
  4681. If a proxy requires user/password, they must be specified in a URL.
  4682. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4683. instead.
  4684. * src/AbstractCommand.cc
  4685. * src/AbstractCommand.h
  4686. * src/AbstractProxyRequestCommand.cc
  4687. * src/AbstractProxyRequestCommand.h
  4688. * src/AuthConfigFactory.cc
  4689. * src/AuthConfigFactory.h
  4690. * src/FtpFinishDownloadCommand.cc
  4691. * src/FtpInitiateConnectionCommand.cc
  4692. * src/FtpInitiateConnectionCommand.h
  4693. * src/FtpNegotiationCommand.cc
  4694. * src/FtpTunnelRequestCommand.cc
  4695. * src/FtpTunnelRequestCommand.h
  4696. * src/HttpDownloadCommand.cc
  4697. * src/HttpInitiateConnectionCommand.cc
  4698. * src/HttpInitiateConnectionCommand.h
  4699. * src/HttpProxyRequestCommand.cc
  4700. * src/HttpProxyRequestCommand.h
  4701. * src/HttpRequest.cc
  4702. * src/HttpRequest.h
  4703. * src/HttpRequestCommand.cc
  4704. * src/HttpRequestCommand.h
  4705. * src/HttpSkipResponseCommand.cc
  4706. * src/InitiateConnectionCommand.cc
  4707. * src/InitiateConnectionCommand.h
  4708. * src/OptionHandlerFactory.cc
  4709. * src/OptionHandlerImpl.h
  4710. * src/Request.cc
  4711. * src/option_processing.cc
  4712. * src/prefs.cc
  4713. * src/prefs.h
  4714. * src/usage_text.h
  4715. * test/AuthConfigFactoryTest.cc
  4716. * test/HttpRequestTest.cc
  4717. * test/OptionHandlerTest.cc
  4718. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4719. Execute choking algorithm when unchoked and interested peer is
  4720. disconected.
  4721. * src/DefaultPeerStorage.cc
  4722. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4723. Added testcase for BtNotInterestedMessage from unchoked peer.
  4724. * test/BtNotInterestedMessageTest.cc
  4725. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4726. Execute choking algorithm when BtInterestedMessage arrives from
  4727. unchoked peer.
  4728. * src/BtInterestedMessage.cc
  4729. * src/BtInterestedMessage.h
  4730. * src/DefaultBtMessageFactory.cc
  4731. * test/BtInterestedMessageTest.cc
  4732. * test/MockPeerStorage.h
  4733. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4734. AuthConfigFactory is now part of DownloadEngine.
  4735. * src/AbstractProxyRequestCommand.cc
  4736. * src/AuthConfigFactory.h
  4737. * src/DownloadEngine.cc
  4738. * src/DownloadEngine.h
  4739. * src/FtpConnection.cc
  4740. * src/FtpConnection.h
  4741. * src/FtpNegotiationCommand.cc
  4742. * src/HttpConnection.cc
  4743. * src/HttpRequest.cc
  4744. * src/HttpRequest.h
  4745. * src/HttpRequestCommand.cc
  4746. * src/HttpResponse.cc
  4747. * src/HttpResponseCommand.cc
  4748. * src/HttpSkipResponseCommand.cc
  4749. * src/MultiUrlRequestInfo.cc
  4750. * src/main.cc
  4751. * test/FtpConnectionTest.cc
  4752. * test/HttpRequestTest.cc
  4753. * test/HttpResponseTest.cc
  4754. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4755. Corrected catched exception type.
  4756. * src/ServerStatMan.cc
  4757. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4758. DNSCache is now part of DownloadEngine.
  4759. * src/DNSCache.h
  4760. * src/DownloadEngine.cc
  4761. * src/DownloadEngine.h
  4762. * src/InitiateConnectionCommand.cc
  4763. * src/MultiUrlRequestInfo.cc
  4764. * test/Makefile.am
  4765. * test/Makefile.in
  4766. * test/SimpleDNSCacheTest.cc
  4767. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4768. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4769. DownloadEngine.
  4770. * src/ActivePeerConnectionCommand.cc
  4771. * src/BtSetup.cc
  4772. * src/CUIDCounter.h
  4773. * src/DHTSetup.cc
  4774. * src/DownloadCommand.cc
  4775. * src/DownloadEngine.cc
  4776. * src/DownloadEngine.h
  4777. * src/DownloadEngineFactory.cc
  4778. * src/FileAllocationDispatcherCommand.cc
  4779. * src/InitiatorMSEHandshakeCommand.cc
  4780. * src/PeerInitiateConnectionCommand.cc
  4781. * src/PeerInteractionCommand.cc
  4782. * src/PeerListenCommand.cc
  4783. * src/RequestGroup.cc
  4784. * src/StreamFileAllocationEntry.cc
  4785. * src/TrackerWatcherCommand.cc
  4786. * src/main.cc
  4787. * test/RequestGroupManTest.cc
  4788. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. Implemented commented code in BtSeederStateChoke
  4790. * src/BtSeederStateChoke.cc
  4791. * src/Peer.cc
  4792. * src/Peer.h
  4793. * src/PeerInteractionCommand.cc
  4794. * src/PeerSessionResource.cc
  4795. * src/PeerSessionResource.h
  4796. * test/MockBtMessageDispatcher.h
  4797. * test/PeerSessionResourceTest.cc
  4798. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4800. its object.
  4801. * src/AbstractBtMessage.cc
  4802. * src/ActivePeerConnectionCommand.cc
  4803. * src/ActivePeerConnectionCommand.h
  4804. * src/BtContextAwareCommand.cc
  4805. * src/BtContextAwareCommand.h
  4806. * src/BtExtendedMessage.cc
  4807. * src/BtExtendedMessage.h
  4808. * src/BtInterestedMessage.cc
  4809. * src/BtInterestedMessage.h
  4810. * src/BtNotInterestedMessage.cc
  4811. * src/BtNotInterestedMessage.h
  4812. * src/BtRegistry.cc
  4813. * src/BtRegistry.h
  4814. * src/BtSeederStateChoke.cc
  4815. * src/BtSetup.cc
  4816. * src/DHTGetPeersCommand.cc
  4817. * src/DHTGetPeersCommand.h
  4818. * src/DHTPeerAnnounceEntry.cc
  4819. * src/DHTPeerAnnounceEntry.h
  4820. * src/DHTPeerAnnounceStorage.cc
  4821. * src/DHTPeerAnnounceStorage.h
  4822. * src/DHTPeerLookupTask.cc
  4823. * src/DHTPeerLookupTask.h
  4824. * src/DHTSetup.cc
  4825. * src/DHTSetup.h
  4826. * src/DHTTaskFactory.h
  4827. * src/DHTTaskFactoryImpl.cc
  4828. * src/DHTTaskFactoryImpl.h
  4829. * src/DefaultBtAnnounce.cc
  4830. * src/DefaultBtInteractive.cc
  4831. * src/DefaultBtInteractive.h
  4832. * src/DefaultBtMessageDispatcher.cc
  4833. * src/DefaultBtMessageDispatcher.h
  4834. * src/DefaultBtMessageFactory.cc
  4835. * src/DefaultBtMessageFactory.h
  4836. * src/DefaultBtMessageReceiver.cc
  4837. * src/DefaultBtProgressInfoFile.cc
  4838. * src/DefaultBtProgressInfoFile.h
  4839. * src/DefaultBtRequestFactory.cc
  4840. * src/DefaultBtRequestFactory.h
  4841. * src/DefaultExtensionMessageFactory.cc
  4842. * src/DefaultExtensionMessageFactory.h
  4843. * src/DefaultPeerStorage.cc
  4844. * src/DefaultPeerStorage.h
  4845. * src/DownloadEngine.cc
  4846. * src/DownloadEngine.h
  4847. * src/InitiatorMSEHandshakeCommand.cc
  4848. * src/InitiatorMSEHandshakeCommand.h
  4849. * src/MSEHandshake.cc
  4850. * src/MSEHandshake.h
  4851. * src/Makefile.am
  4852. * src/Makefile.in
  4853. * src/PeerChokeCommand.cc
  4854. * src/PeerChokeCommand.h
  4855. * src/PeerInitiateConnectionCommand.cc
  4856. * src/PeerInitiateConnectionCommand.h
  4857. * src/PeerInteractionCommand.cc
  4858. * src/PeerInteractionCommand.h
  4859. * src/PeerObject.h
  4860. * src/PeerReceiveHandshakeCommand.cc
  4861. * src/PeerReceiveHandshakeCommand.h
  4862. * src/ReceiverMSEHandshakeCommand.cc
  4863. * src/RequestGroup.cc
  4864. * src/RequestGroup.h
  4865. * src/RequestGroupMan.cc
  4866. * src/RequestGroupMan.h
  4867. * src/SeedCheckCommand.cc
  4868. * src/SeedCheckCommand.h
  4869. * src/ShareRatioSeedCriteria.h
  4870. * src/SimpleBtMessage.cc
  4871. * src/TrackerWatcherCommand.cc
  4872. * src/TrackerWatcherCommand.h
  4873. * src/UTPexExtensionMessage.cc
  4874. * src/UTPexExtensionMessage.h
  4875. * test/BtCancelMessageTest.cc
  4876. * test/BtChokeMessageTest.cc
  4877. * test/BtExtendedMessageTest.cc
  4878. * test/BtInterestedMessageTest.cc
  4879. * test/BtNotInterestedMessageTest.cc
  4880. * test/BtPieceMessageTest.cc
  4881. * test/BtPortMessageTest.cc
  4882. * test/BtRegistryTest.cc
  4883. * test/BtRejectMessageTest.cc
  4884. * test/BtRequestMessageTest.cc
  4885. * test/DHTPeerAnnounceEntryTest.cc
  4886. * test/DHTPeerAnnounceStorageTest.cc
  4887. * test/DefaultBtMessageDispatcherTest.cc
  4888. * test/DefaultBtMessageFactoryTest.cc
  4889. * test/DefaultBtProgressInfoFileTest.cc
  4890. * test/DefaultBtRequestFactoryTest.cc
  4891. * test/DefaultExtensionMessageFactoryTest.cc
  4892. * test/MSEHandshakeTest.cc
  4893. * test/MockDHTTaskFactory.h
  4894. * test/ShareRatioSeedCriteriaTest.cc
  4895. * test/UTPexExtensionMessageTest.cc
  4896. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4897. Fixed compiler warning.
  4898. * test/UtilTest.cc
  4899. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Treat Cookie object as session cookie if expiry = 0 is given.
  4901. With this change, you can specify session scoped cookies in an external
  4902. file setting expiry value to 0.
  4903. * src/Cookie.cc
  4904. * src/Cookie.h
  4905. * test/CookieParserTest.cc
  4906. * test/CookieStorageTest.cc
  4907. * test/CookieTest.cc
  4908. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4909. Changed signature of DHTMessageFactory::createResponseMessage().
  4910. Removed unused validateIDMatch.
  4911. * src/DHTMessageFactory.h
  4912. * src/DHTMessageFactoryImpl.cc
  4913. * src/DHTMessageFactoryImpl.h
  4914. * src/DHTMessageTracker.cc
  4915. * test/DHTMessageFactoryImplTest.cc
  4916. * test/MockDHTMessageFactory.h
  4917. Dropped DHT message coming from same ID of localhost.
  4918. * src/DHTMessageReceiver.cc
  4919. Rejected adding node whose ID is the same as localhost's.
  4920. * src/DHTRoutingTable.cc
  4921. * test/BtPortMessageTest.cc
  4922. * test/DHTRoutingTableTest.cc
  4923. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4924. Pool connection when redirection occurs with Content-Length = 0.
  4925. * src/HttpSkipResponseCommand.cc
  4926. * src/HttpSkipResponseCommand.h
  4927. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4928. Fixed the bug that causes time out when redirection occurs with
  4929. content-length 0.
  4930. * src/HttpResponseCommand.cc
  4931. * src/HttpSkipResponseCommand.cc
  4932. * src/HttpSkipResponseCommand.h
  4933. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4934. Now each status legends is shown only when it appears in Download
  4935. Result. If Download Result has no item, then status legend will not
  4936. be printed.
  4937. * src/RequestGroupMan.cc
  4938. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4939. Removed duplicate creation of OptionHandlers.
  4940. * src/option_processing.cc
  4941. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Fixed the bug that causes segmentation fault when accessing files which
  4943. don't exist or are not included in --select-file option while
  4944. validating chunk checksum.
  4945. * src/MultiDiskAdaptor.cc
  4946. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4947. Fixed compiler warning.
  4948. * test/UtilTest.cc
  4949. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4950. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4951. * src/IteratableChecksumValidator.cc
  4952. * src/IteratableChunkChecksumValidator.cc
  4953. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4954. * Release 0.16.2
  4955. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4956. Added Serbian translation. Updated Ukrainian translation.
  4957. Thanks to all translators.
  4958. * po/sr.po
  4959. * po/uk.po
  4960. * po/LINGUAS
  4961. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4962. Bump up version number to 0.16.2
  4963. * configure.ac
  4964. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4965. Added length equality test to operator== to drop a piece message
  4966. whose length does not match to the requested one.
  4967. * src/RequestSlot.cc
  4968. * test/DefaultBtMessageDispatcherTest.cc
  4969. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4970. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4971. recieved.
  4972. In this fix, if a request larger than 16KiB length is received, aria2
  4973. disconnects the peer.
  4974. * src/BtConstants.h
  4975. * src/PeerMessageUtil.cc
  4976. * src/PeerMessageUtil.h
  4977. * test/BtRequestMessageTest.cc
  4978. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. * Release 0.16.1
  4980. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4981. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4982. * doc/aria2c.1.txt
  4983. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4984. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4985. Updated French, Simplified Chinese and Japanese translations.
  4986. Thanks to all translators.
  4987. en@quot and en@boldquot are also added.
  4988. * po/LINGUAS
  4989. * po/fr.po
  4990. * po/ja.po
  4991. * po/uk.po
  4992. * po/vi.po
  4993. * po/zh_CN.po
  4994. * po/zh_TW.po
  4995. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4996. Bump up version number to 0.16.1.
  4997. * configure.ac
  4998. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4999. Updated README.
  5000. * README
  5001. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5002. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5003. not to replace '--' with em dash character.
  5004. * doc/aria2c.1.txt
  5005. * doc/makeman
  5006. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5007. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5008. every SEC seconds.
  5009. * src/DownloadEngineFactory.cc
  5010. * src/OptionHandlerFactory.cc
  5011. * src/option_processing.cc
  5012. * src/usage_text.h
  5013. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5014. Fixed compile warning on linux-amd64
  5015. * src/FtpConnection.cc
  5016. * src/IteratableChunkChecksumValidator.cc
  5017. * src/MultiDiskAdaptor.cc
  5018. Fixed the bug that unit test fails on linux-amd64
  5019. * test/UtilTest.cc
  5020. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Added --dht-file-path option to change the path to dht.dat, which is a
  5022. serialized DHT routing table.
  5023. * src/OptionHandlerFactory.cc
  5024. * src/option_processing.cc
  5025. * src/usage_text.h
  5026. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5027. Fixed possible underflow.
  5028. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5029. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Fixed the bug that last character in URI is not encoded.
  5031. * src/Request.cc
  5032. * test/RequestTest.cc
  5033. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5034. Fixed the bug that referer header field contains fragment.
  5035. Now Request class removes fragment part of URI and encodes it
  5036. in Request::setUri() and setReferer().
  5037. * src/Request.h
  5038. * src/Request.cc
  5039. * test/RequestTest.cc
  5040. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5041. Added missing m4 macros.
  5042. * m4/cppunit.m4
  5043. * m4/libgcrypt.m4
  5044. * m4/libgnutls-extra.m4
  5045. * m4/libgnutls.m4
  5046. * m4/libxml2.m4
  5047. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5048. Fixed compile error with gcc-4.4(snapshot)
  5049. * src/File.cc
  5050. * src/FtpConnection.cc
  5051. * src/OptionHandlerImpl.h
  5052. * src/Util.cc
  5053. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5054. Removed assert()
  5055. * src/SocketBuffer.cc (SocketBuffer::send)
  5056. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. Changed the type of _numNewConnection to unsigned int.
  5058. * src/ActivePeerConnectionCommand.cc
  5059. * src/ActivePeerConnectionCommand.h
  5060. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. * Release 0.16.0
  5062. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Updated doc
  5064. * README
  5065. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5066. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5067. translations. Thanks to all translators.
  5068. * po/bg.po
  5069. * po/de.po
  5070. * po/fr.po
  5071. * po/ja.po
  5072. * po/zh_CN.po
  5073. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5074. Bump up version number to 0.16.0.
  5075. * configure.ac
  5076. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5077. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5078. int32_t.
  5079. Changed the type of count to int32_t.
  5080. * src/Metalink2RequestGroup.cc
  5081. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5082. Added test for Time::elapsed(time_t).
  5083. * test/TimeTest.cc
  5084. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5086. Util::difftv() should be used instead.
  5087. * src/TimeA2.cc
  5088. * src/TimeA2.h
  5089. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5090. Made socket for dht connections non-blocking
  5091. * src/DHTAbstractMessage.cc
  5092. * src/DHTAbstractMessage.h
  5093. * src/DHTConnection.h
  5094. * src/DHTConnectionImpl.cc
  5095. * src/DHTConnectionImpl.h
  5096. * src/DHTMessage.h
  5097. * src/DHTMessageDispatcherImpl.cc
  5098. * src/DHTMessageDispatcherImpl.h
  5099. * src/DHTUnknownMessage.cc
  5100. * src/DHTUnknownMessage.h
  5101. * src/SocketCore.cc
  5102. * src/SocketCore.h
  5103. * test/MockDHTMessage.h
  5104. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5105. Changed the type of offset to int.
  5106. * src/ParameterizedStringParser.cc
  5107. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5108. Made getAsInt() return int32_t
  5109. * src/Option.h
  5110. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5111. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5112. build.
  5113. * configure.ac
  5114. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5115. Use sqlite3_open if sqlite3_open_v2 is not available.
  5116. * src/Sqlite3MozCookieParser.cc
  5117. * src/Sqlite3MozCookieParser.h
  5118. * m4/sqlite3.m4
  5119. * test/Sqlite3MozCookieParserTest.cc
  5120. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5121. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5122. * src/BtPieceMessage.cc
  5123. * src/DHTPeerAnnounceStorage.cc
  5124. * src/DefaultPieceStorage.cc
  5125. * src/DownloadCommand.cc
  5126. * src/DownloadEngine.cc
  5127. * src/FtpConnection.cc
  5128. * src/PeerConnection.cc
  5129. * src/PeerMessageUtil.cc
  5130. * src/RequestGroup.cc
  5131. * src/RequestGroupMan.cc
  5132. * src/SimpleBtMessage.cc
  5133. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5134. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5135. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5136. * src/AbstractDiskWriter.cc
  5137. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5138. Don't set Request::supportsPersistentConnection() in HttpConnection
  5139. since this code is also used in AbstractProxyResponseCommand.
  5140. Moved those code to HttpResponse.
  5141. * src/HttpResponse.cc
  5142. * src/HttpResponse.h
  5143. * src/HttpConnection.cc
  5144. * src/HttpConnection.h
  5145. * src/HttpResponseCommand.cc
  5146. * test/HttpResponseTest.cc
  5147. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5148. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5149. The configuration is minimum: no torrent, no metalink, so there may be
  5150. other compile error on their code.
  5151. * src/a2netcompat.h
  5152. * src/File.cc
  5153. * src/File.h
  5154. * src/SocketCore.cc
  5155. * src/SocketCore.h
  5156. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5157. Made a socket of incoming peer non-blocking.
  5158. * src/PeerListenCommand.cc
  5159. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5160. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5161. whole message data is not sent in one send() call.
  5162. * src/BtPieceMessage.cc
  5163. * src/BtPieceMessage.h
  5164. * src/PeerConnection.cc
  5165. * src/PeerConnection.h
  5166. * src/SimpleBtMessage.cc
  5167. * src/SimpleBtMessage.h
  5168. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Fixed the bug that aria2 downloads faster than max-download-limit when
  5170. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5171. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5172. , instead of sum of them.
  5173. * src/ActivePeerConnectionCommand.cc
  5174. * src/DefaultBtInteractive.cc
  5175. * src/DownloadCommand.cc
  5176. * src/PeerInteractionCommand.cc
  5177. * src/PeerReceiveHandshakeCommand.cc
  5178. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5179. Fixed the bug that HTTPS download fails.
  5180. * src/AbstractCommand.cc
  5181. * src/AbstractCommand.h
  5182. * src/DownloadCommand.cc
  5183. * src/FtpConnection.cc
  5184. * src/HttpConnection.cc
  5185. * src/HttpRequestCommand.cc
  5186. * src/HttpResponseCommand.cc
  5187. * src/HttpSkipResponseCommand.cc
  5188. * src/MSEHandshake.cc
  5189. * src/PeerConnection.cc
  5190. * src/SocketCore.cc
  5191. * src/SocketCore.h
  5192. Fixed the bug that aria2 doesn't download whole content body and cannot
  5193. reuse connection if chunked transfer encoding and gzip content encoding
  5194. are set.
  5195. * src/DownloadCommand.cc
  5196. * src/HttpSkipResponseCommand.cc
  5197. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5198. Updated man page.
  5199. * doc/aria2c.1.txt
  5200. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5201. When error occurred while aria2 was parsing an .aria2.conf file, print
  5202. the usage of the option that caused error.
  5203. * src/option_processing.cc
  5204. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5205. Fixed compile error on OptionHandlerException
  5206. * src/Makefile.am
  5207. * src/OptionHandlerException.cc
  5208. * src/OptionHandlerException.h
  5209. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5210. Moved message of the error to OptionHandlerException.h
  5211. * src/NameMatchOptionHandler.h
  5212. * src/OptionHandlerException.h
  5213. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. When error occurs while aria2 is parsing an command-line option, print
  5215. the usage of the option.
  5216. * src/Makefile.am
  5217. * src/NameMatchOptionHandler.h
  5218. * src/OptionHandlerException.h
  5219. * src/option_processing.cc
  5220. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5221. Reverted previous change.
  5222. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5223. username is not in URI.
  5224. * src/HttpRequest.cc
  5225. * src/Request.cc
  5226. * test/HttpRequestTest.cc
  5227. * test/RequestTest.cc
  5228. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. Now colon is required for username and password in FTP URL, like:
  5230. ftp://username:password@host.
  5231. If colon is not there, aria2 don't parse it as a username. For example,
  5232. aria2 don't retrieve username from ftp://username@host.
  5233. This fix was made in order to login FTP server via non-transparent ftp
  5234. proxy.
  5235. * src/Request.cc
  5236. * test/RequestTest.cc
  5237. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5238. Use netrc for HTTP.
  5239. Now FTP user/password is sent in Authorization header when
  5240. --ftp-via-http-proxy=get is given.
  5241. * src/AuthConfigFactory.cc
  5242. * src/HttpRequest.cc
  5243. * src/HttpRequest.h
  5244. * src/NetrcAuthResolver.cc
  5245. * src/NetrcAuthResolver.h
  5246. * src/OptionHandlerFactory.cc
  5247. * src/option_processing.cc
  5248. * src/prefs.cc
  5249. * src/prefs.h
  5250. * test/AuthConfigFactoryTest.cc
  5251. * test/HttpRequestTest.cc
  5252. * test/NetrcAuthResolverTest.cc
  5253. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5254. Issue PWD command first and get working directory and use it as a prefix
  5255. for CWD command.
  5256. * src/DownloadEngine.cc
  5257. * src/DownloadEngine.h
  5258. * src/FtpConnection.cc
  5259. * src/FtpConnection.h
  5260. * src/FtpFinishDownloadCommand.cc
  5261. * src/FtpInitiateConnectionCommand.cc
  5262. * src/FtpNegotiationCommand.cc
  5263. * src/FtpNegotiationCommand.h
  5264. * test/FtpConnectionTest.cc
  5265. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5266. Removed default user/pass for FTP user/pass, since it should not have
  5267. precedence over netrc configuration by default.
  5268. * src/OptionHandlerFactory.cc
  5269. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5270. Added debug log for socket event.
  5271. * src/AbstractCommand.cc
  5272. * src/PeerAbstractCommand.cc
  5273. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5274. Log microseconds.
  5275. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5276. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5277. Replaced HelpItem.cc with OptionHandler.cc.
  5278. * po/POTFILES.in
  5279. Updated po files with 'make update-po'
  5280. * po/aria2c.pot
  5281. * po/*.po
  5282. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5283. Removed possible values from the text.
  5284. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5285. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5286. Removed unused preferences:
  5287. PREF_NO_PREALLOCATION
  5288. PREF_STDOUT_LOG
  5289. PREF_TRACKER_MAX_TRIES
  5290. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5291. PREF_MIN_SEGMENT_SIZE
  5292. * src/option_processing.cc
  5293. * src/prefs.cc
  5294. * src/prefs.h
  5295. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5296. Integrated HelpItem into OptionParser to ease the workload for adding
  5297. new options. Removed default value from usage text.
  5298. * src/HelpItem.cc: Removed.
  5299. * src/HelpItem.h: Removed.
  5300. * src/HelpItemFactory.cc: Removed.
  5301. * src/HelpItemFactory.h: Removed.
  5302. * src/Makefile.am
  5303. * src/Makefile.in
  5304. * src/NameMatchOptionHandler.h
  5305. * src/OptionHandler.cc
  5306. * src/OptionHandler.h
  5307. * src/OptionHandlerFactory.cc
  5308. * src/OptionHandlerImpl.h
  5309. * src/OptionParser.cc
  5310. * src/OptionParser.h
  5311. * src/TagContainer.cc: Removed.
  5312. * src/TagContainer.h: Removed.
  5313. * src/TaggedItem.cc: Removed.
  5314. * src/TaggedItem.h: Removed.
  5315. * src/main.cc
  5316. * src/option_processing.cc
  5317. * src/usage_text.h
  5318. * src/version_usage.cc
  5319. * test/HelpItemTest.cc: Removed.
  5320. * test/Makefile.am
  5321. * test/Makefile.in
  5322. * test/OptionHandlerTest.cc
  5323. * test/OptionParserTest.cc
  5324. * test/TagContainerTest.cc: Removed.
  5325. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Moved `TransferStat stat = ...' to inside the `if' clause.
  5327. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5328. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Fixed the bug that a block in a piece is requested when same block is
  5330. already requested to the same peer in end game mode.
  5331. * src/BtRequestFactory.h
  5332. * src/DefaultBtInteractive.cc
  5333. * src/DefaultBtRequestFactory.cc
  5334. * src/DefaultBtRequestFactory.h
  5335. * src/DefaultPieceStorage.cc
  5336. * src/DefaultPieceStorage.h
  5337. * src/PieceStorage.h
  5338. * src/UnknownLengthPieceStorage.cc
  5339. * src/UnknownLengthPieceStorage.h
  5340. * test/DefaultBtRequestFactoryTest.cc
  5341. * test/DefaultPieceStorageTest.cc
  5342. * test/MockBtRequestFactory.h
  5343. * test/MockPieceStorage.h
  5344. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5345. Removed _uploadLength and _downloadLength from PeerSessionResource
  5346. and use PeerStat::_sessionUploadLength and
  5347. PeerStat::_sessionDownloadLength.
  5348. * src/PeerSessionResource.cc
  5349. * src/PeerSessionResource.h
  5350. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5351. Fixed the bug that prefixLength of split bucket which doesn't include
  5352. local node ID is incremented.
  5353. * src/DHTBucket.cc
  5354. * src/DHTBucket.h
  5355. * test/DHTBucketTest.cc
  5356. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5357. Added cookies.sqlite to EXTRA_DIST
  5358. * test/Makefile.am
  5359. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5360. Added Turkish translation. Updated French, German, Russian and
  5361. Simplified Chinese translations. Thanks to all translators.
  5362. * po/LINGUAS
  5363. * po/de.po
  5364. * po/fr.po
  5365. * po/ru.po
  5366. * po/tr.po
  5367. * po/zh_CN.po
  5368. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5369. Added deliminating text to the beginning of the log so that one can find
  5370. where the log starts easily.
  5371. * src/main.cc
  5372. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5373. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5374. to fix compile error when async DNS is not enabled by configuration.
  5375. * src/AbstractCommand.cc
  5376. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5377. If establishing conneciton to a server is failed, then mark error on
  5378. its ServerStat.
  5379. Added the cause of error to log when error event occurred.
  5380. Moved message string to message.h for translation.
  5381. * src/AbstractCommand.cc
  5382. * src/AbstractCommand.h
  5383. * src/FtpNegotiationCommand.cc
  5384. * src/HttpRequestCommand.cc
  5385. * src/PeerAbstractCommand.cc
  5386. * src/message.h
  5387. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5388. Added the function to get error message from socket.
  5389. * src/SocketCore.cc
  5390. * src/SocketCore.h
  5391. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5392. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5393. * src/RequestGroupMan.cc
  5394. * src/RequestGroupMan.h
  5395. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5396. If error event is received in epoll, then abort download immediately.
  5397. * src/AbstractCommand.cc
  5398. * src/Command.cc
  5399. * src/Command.h
  5400. * src/DownloadEngine.cc
  5401. * src/PeerAbstractCommand.cc
  5402. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5403. Added usage message for --uri-selector, --server-stat-of,
  5404. --server-stat-in, --server-stat-timeout options.
  5405. * src/HelpItemFactory.cc
  5406. * src/usage_text.h
  5407. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Added upper limit of FTP response buffer. The current implementation
  5409. uses 4096bytes as a limit.
  5410. * src/FtpConnection.cc
  5411. * src/FtpConnection.h
  5412. * test/FtpConnectionTest.cc
  5413. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5414. Use non-blocking socket for TCP communication to avoid possible
  5415. blocking due to buffer full.
  5416. * src/AbstractProxyRequestCommand.cc
  5417. * src/FtpConnection.cc
  5418. * src/FtpConnection.h
  5419. * src/FtpNegotiationCommand.cc
  5420. * src/FtpNegotiationCommand.h
  5421. * src/HttpConnection.cc
  5422. * src/HttpConnection.h
  5423. * src/HttpRequestCommand.cc
  5424. * src/InitiatorMSEHandshakeCommand.cc
  5425. * src/InitiatorMSEHandshakeCommand.h
  5426. * src/MSEHandshake.cc
  5427. * src/MSEHandshake.h
  5428. * src/Makefile.am
  5429. * src/PeerConnection.cc
  5430. * src/PeerConnection.h
  5431. * src/PeerInteractionCommand.cc
  5432. * src/PeerListenCommand.cc
  5433. * src/ReceiverMSEHandshakeCommand.cc
  5434. * src/ReceiverMSEHandshakeCommand.h
  5435. * src/SocketBuffer.cc
  5436. * src/SocketBuffer.h
  5437. * src/SocketCore.cc
  5438. * src/SocketCore.h
  5439. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5440. Call setStatusRealtime() in constructor.
  5441. * src/RealtimeCommand.cc
  5442. * src/RealtimeCommand.h
  5443. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5444. Call Download::setNoWait(true) to execute newly created command without
  5445. a pause.
  5446. * src/AbstractCommand.cc
  5447. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5448. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5449. found' error from HTTP/FTP server NUM times without getting single
  5450. bytes of data, then force the download to fail.
  5451. Basically aria2 tris all URIs available. So if long list of URIs are
  5452. specified in Metalink, then aria2 will take a long time to fail
  5453. eventually if all URIs are outdated. This option eases this situation
  5454. to limit the number of servers to try.
  5455. * src/FtpNegotiationCommand.cc
  5456. * src/HelpItemFactory.cc
  5457. * src/HttpResponseCommand.cc
  5458. * src/OptionHandlerFactory.cc
  5459. * src/PeerStat.h
  5460. * src/RequestGroup.cc
  5461. * src/RequestGroup.h
  5462. * src/SegmentMan.cc
  5463. * src/SegmentMan.h
  5464. * src/option_processing.cc
  5465. * src/prefs.cc
  5466. * src/prefs.h
  5467. * src/usage_text.h
  5468. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5469. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5470. response even if more than one response is in it.
  5471. * src/FtpConnection.cc
  5472. * src/FtpConnection.h
  5473. * test/FtpConnectionTest.cc
  5474. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5475. Merged from stable-0.15
  5476. * m4/libcares.m4
  5477. Use pkg-config
  5478. * m4/sqlite3.m4
  5479. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5480. Removed unnecessary if statement.
  5481. * src/DefaultPieceStorage.cc (initPieceStorage)
  5482. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5483. Added --connect-timeout option to specify connect timeout in seconds.
  5484. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5485. connecting to BitTorrent peer is not controlled by this option.
  5486. * src/AbstractProxyRequestCommand.cc
  5487. * src/FtpNegotiationCommand.cc
  5488. * src/HelpItemFactory.cc
  5489. * src/HttpRequestCommand.cc
  5490. * src/OptionHandlerFactory.cc
  5491. * src/option_processing.cc
  5492. * src/prefs.cc
  5493. * src/prefs.h
  5494. * src/usage_text.h
  5495. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Added help message for -R option.
  5497. * src/HelpItemFactory.cc
  5498. * src/usage_text.h
  5499. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. Added the message that the time is in local time zone.
  5501. * src/RequestGroup.cc
  5502. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. Implemented the ability to get timestamp from remote FTP server using
  5504. MDTM command described in RFC3659.
  5505. * src/FtpConnection.cc
  5506. * src/FtpConnection.h
  5507. * src/FtpNegotiationCommand.cc
  5508. * src/FtpNegotiationCommand.h
  5509. * test/FtpConnectionTest.cc
  5510. * test/Makefile.am
  5511. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5512. Implemented the ability to get timestamp from remote HTTP server and
  5513. apply it to local file. To enable this feature, --remote-time option
  5514. is added. No usage text has been written yet.
  5515. If several servers returns difference timestamp, then aria2 uses latest
  5516. one.
  5517. * src/CopyDiskAdaptor.cc
  5518. * src/CopyDiskAdaptor.h
  5519. * src/DirectDiskAdaptor.cc
  5520. * src/DirectDiskAdaptor.h
  5521. * src/DiskAdaptor.h
  5522. * src/File.cc
  5523. * src/File.h
  5524. * src/HttpHeader.cc
  5525. * src/HttpHeader.h
  5526. * src/HttpResponse.cc
  5527. * src/HttpResponse.h
  5528. * src/HttpResponseCommand.cc
  5529. * src/HttpResponseCommand.h
  5530. * src/MultiDiskAdaptor.cc
  5531. * src/MultiDiskAdaptor.h
  5532. * src/OptionHandlerFactory.cc
  5533. * src/RequestGroup.cc
  5534. * src/RequestGroup.h
  5535. * src/RequestGroupMan.cc
  5536. * src/option_processing.cc
  5537. * src/prefs.cc
  5538. * src/prefs.h
  5539. * test/CopyDiskAdaptorTest.cc
  5540. * test/FileTest.cc
  5541. * test/Makefile.am
  5542. * test/Makefile.in
  5543. * test/MultiDiskAdaptorTest.cc
  5544. * test/TestUtil.cc
  5545. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5546. Fixed the bug that DiskWriterEntry is not created when its
  5547. FileEntry.isRequested() is false and it doesn't share a piece with
  5548. other FileEntries that are requested. This bug causes segmentation fault
  5549. in the end.
  5550. * src/MultiDiskAdaptor.cc
  5551. * src/MultiDiskAdaptor.h
  5552. * src/MultiFileAllocationIterator.cc
  5553. * test/MultiDiskAdaptorTest.cc
  5554. * test/MultiFileAllocationIteratorTest.cc
  5555. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5556. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5557. called if the number of file entries are greater than max open files.
  5558. * src/AbstractSingleDiskAdaptor.cc
  5559. * src/AbstractSingleDiskAdaptor.h
  5560. * src/DiskAdaptor.h
  5561. * src/MultiDiskAdaptor.cc
  5562. * src/MultiDiskAdaptor.h
  5563. * test/MultiDiskAdaptorTest.cc
  5564. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5565. Added a constuctor that receives struct timeval.
  5566. Added operator<.
  5567. * src/TimeA2.cc
  5568. * src/TimeA2.h
  5569. * test/TimeTest.cc
  5570. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5571. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5572. * src/CookieParser.cc
  5573. * test/CookieParserTest.cc
  5574. * test/HttpResponseTest.cc
  5575. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5576. Implmented the functions to parse date.
  5577. * src/TimeA2.cc
  5578. * src/TimeA2.h
  5579. * test/TimeTest.cc
  5580. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5581. Added "Firefox3 Cookie" feature to FeatureConfig
  5582. * src/FeatureConfig.cc
  5583. * src/FeatureConfig.h
  5584. * test/FeatureConfigTest.cc
  5585. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5586. Bump up version number to 0.16.0b
  5587. * configure.ac
  5588. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5589. Use pkg-config if is is available.
  5590. * m4/openssl.m4
  5591. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5592. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5593. * src/BtAnnounce.h
  5594. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5595. If an error occurred with a URI, remove identical URI from remaining
  5596. URI list because it is likely that same error occurred in the end and it
  5597. is waste of time.
  5598. * src/AbstractCommand.cc
  5599. * src/RequestGroup.cc
  5600. * src/RequestGroup.h
  5601. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5602. Removed wrong comment.
  5603. * src/DefaultPeerStorage.cc
  5604. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5605. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5606. Added return value of getpid() to argument of srand() to achieve more
  5607. randomized value.
  5608. * src/SimpleRandomizer.cc
  5609. * src/SimpleRandomizer.h
  5610. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5611. Contact tracker frequently when the number of connections are 0 and
  5612. download is not finished yet.
  5613. * src/ActivePeerConnectionCommand.cc
  5614. * src/BtAnnounce.h
  5615. * src/DefaultBtAnnounce.cc
  5616. * src/DefaultBtAnnounce.h
  5617. * test/MockBtAnnounce.h
  5618. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5619. Moved threshold values to UTPexExtensionMessage.
  5620. * src/DefaultBtInteractive.cc
  5621. * src/Peer.cc
  5622. * src/Peer.h
  5623. * src/UTPexExtensionMessage.cc
  5624. * src/UTPexExtensionMessage.h
  5625. * test/UTPexExtensionMessageTest.cc
  5626. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5627. Added _incoming member to Peer class and made it true if the peer
  5628. initiated connection. Don't add those peer to UTPex message.
  5629. If extended handshake is received, assign _incoming to false.
  5630. * src/DefaultBtInteractive.cc
  5631. * src/HandshakeExtensionMessage.cc
  5632. * src/Peer.cc
  5633. * src/Peer.h
  5634. * src/PeerListenCommand.cc
  5635. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5636. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5637. Encoding Decoder. Removed size threshold for turning off on the fly
  5638. inflation because resulting file may or may not be inflated depending
  5639. on the file size and I think it is not expected by users.
  5640. This change fixes segmentation fault when Metalink file contains gzipped
  5641. file and its filesize is provided.
  5642. * src/HttpResponseCommand.cc
  5643. * src/HttpResponseCommand.h
  5644. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5645. Made Cookie immutable.
  5646. * src/Cookie.cc
  5647. * src/Cookie.h
  5648. * src/CookieParser.cc
  5649. * src/CookieParser.h
  5650. * src/CookieStorage.cc
  5651. * test/CookieParserTest.cc
  5652. * test/CookieStorageTest.cc
  5653. * test/NsCookieParserTest.cc
  5654. * test/Sqlite3MozCookieParserTest.cc
  5655. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5656. Removed CookieBox, CookieBoxFactory.
  5657. * src/CookieBox.cc
  5658. * src/CookieBox.h
  5659. * src/CookieBoxFactory.cc
  5660. * src/CookieBoxFactory.h
  5661. * src/Makefile.am
  5662. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Use CookieStorage class instead of CookieBox class.
  5664. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5665. * src/AbstractProxyRequestCommand.cc
  5666. * src/CookieStorage.cc
  5667. * src/DownloadEngine.cc
  5668. * src/DownloadEngine.h
  5669. * src/HttpConnection.cc
  5670. * src/HttpConnection.h
  5671. * src/HttpRequest.cc
  5672. * src/HttpRequest.h
  5673. * src/HttpRequestCommand.cc
  5674. * src/HttpResponse.cc
  5675. * src/HttpResponseCommand.cc
  5676. * src/HttpSkipResponseCommand.cc
  5677. * src/Makefile.am
  5678. * src/MultiUrlRequestInfo.cc
  5679. * src/Request.cc
  5680. * src/Request.h
  5681. * src/main.cc
  5682. * test/AllTest.cc
  5683. * test/CookieStorageTest.cc
  5684. * test/CookieTest.cc
  5685. * test/HttpRequestTest.cc
  5686. * test/HttpResponseTest.cc
  5687. * test/Makefile.am
  5688. * test/NsCookieParserTest.cc
  5689. * test/Sqlite3MozCookieParserTest.cc
  5690. * test/nscookietest.txt
  5691. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5692. Updated
  5693. * test/Cookies.sqlite
  5694. * test/nscookietest.txt
  5695. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5696. Added tests for CookieStorage::load()
  5697. * test/CookieStorageTest.cc
  5698. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5699. Added CookieStorage class which is based on RFC2109 and manages cookies
  5700. more strictly than CookieBox and CookieBoxFactory class.
  5701. * src/CookieStorage.cc
  5702. * src/CookieStorage.h
  5703. * src/Cookie.cc
  5704. * src/Cookie.h
  5705. * test/CookieStorageTest.cc
  5706. * test/CookieTest.cc
  5707. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Fixed the bug that commands are created more than the number of pieces.
  5709. * src/RequestGroup.cc
  5710. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5711. Fixed infinite loop bug in FTP when SIZE command failed.
  5712. * src/FtpNegotiationCommand.cc
  5713. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5714. Removed DirectDiskAdaptorTest.h
  5715. * test/Makefile.am
  5716. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5717. Fixed chunk checksum validation cannot detect trailing garbage data.
  5718. BUG#2074141
  5719. * src/AbstractSingleDiskAdaptor.cc
  5720. * src/AbstractSingleDiskAdaptor.h
  5721. * src/CheckIntegrityEntry.cc
  5722. * src/CheckIntegrityEntry.h
  5723. * src/DiskAdaptor.h
  5724. * src/MultiDiskAdaptor.cc
  5725. * src/MultiDiskAdaptor.h
  5726. * src/RequestGroup.cc
  5727. * test/DirectDiskAdaptorTest.cc
  5728. * test/MultiDiskAdaptorTest.cc
  5729. * test/TestUtil.cc
  5730. * test/TestUtil.h
  5731. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5732. Bump up version number of dht.dat file to 3. In version 3 format, time
  5733. is stored in 64bit, network byte order.
  5734. New build can load old format(version 2) but it saves the file in new
  5735. format. It means once you used new build, your dht.dat becomes
  5736. incompatible with older build.
  5737. * src/DHTRoutingTableDeserializer.cc
  5738. * src/DHTRoutingTableSerializer.cc
  5739. * test/DHTRoutingTableSerializerTest.cc
  5740. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5741. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5742. * test/Makefile.am
  5743. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. Bump up version number of .aria2 control file to 0001.
  5745. New aria2 can still load version 0000 file but it saves the file in
  5746. version 0001 format. It means that new aria2 can resume download
  5747. started by old aria2 but the opposite is not true.
  5748. * src/DefaultBtProgressInfoFile.cc
  5749. * src/DefaultBtProgressInfoFile.h
  5750. * test/DefaultBtProgressInfoFileTest.cc
  5751. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5752. Added ntoh64 and hton64 as inline functions.
  5753. * src/Util.cc
  5754. * test/UtilTest.cc
  5755. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5756. Added sqlite3 depenency and Firefox3 cookie support.
  5757. * README
  5758. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5759. State that firefox3 cookie is supported explicitly in the usage.
  5760. * src/usage_text.h
  5761. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5762. Externalized message.
  5763. * src/RequestGroupMan.cc
  5764. * src/message.h
  5765. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5766. Save temporary file first and rename to the destination on success.
  5767. Added test cases.
  5768. * src/RequestGroupMan.cc
  5769. * test/RequestGroupManTest.cc
  5770. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5771. Fixed the bug that the number of connected peer is exceeding the limit
  5772. (55 by default) in seeding mode.
  5773. Multiplied 0.8 to _maxUploadSpeedLimit.
  5774. * src/ActivePeerConnectionCommand.cc
  5775. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5776. Clear table item.
  5777. * src/Dictionary.cc
  5778. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Fixed error handling of lseek.
  5780. * src/AbstractDiskWriter.cc
  5781. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5782. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5783. style cookie file.
  5784. * src/usage_text.h
  5785. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5786. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5787. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5788. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5789. * src/Util.cc
  5790. * src/Util.h
  5791. * src/CookieParser.cc
  5792. * test/UtilTest.cc
  5793. * test/CookieParserTest.cc
  5794. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5795. Separate the implementation to load old mozilla format of cookie to
  5796. NsCookieParser class.
  5797. * src/CookieBoxFactory.cc
  5798. * src/CookieBoxFactory.h
  5799. * src/NsCookieParser.cc
  5800. * src/NsCookieParser.h
  5801. * test/NsCookieParserTest.cc
  5802. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5803. Made parse() const
  5804. * src/Sqlite3MozCookieParser.cc
  5805. * src/Sqlite3MozCookieParser.h
  5806. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. Added firefox3 cookie support based on the patch submitted by
  5808. tizianomueller.
  5809. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5810. this functionality.
  5811. * configure.ac
  5812. * m4/sqlite3.m4
  5813. * src/CookieBoxFactory.cc
  5814. * src/CookieBoxFactory.h
  5815. * src/Makefile.am
  5816. * src/Makefile.in
  5817. * src/Sqlite3MozCookieParser.cc
  5818. * src/Sqlite3MozCookieParser.h
  5819. * src/main.cc
  5820. * test/CookieBoxFactoryTest.cc
  5821. * test/Makefile.am
  5822. * test/Makefile.in
  5823. * test/Sqlite3MozCookieParserTest.cc
  5824. * test/badcookies.sqlite
  5825. * test/cookies.sqlite
  5826. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Added Danish and Greek translations.
  5828. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5829. Great thanks to all translators.
  5830. * po/LINGUAS
  5831. * po/el.po
  5832. * po/da.po
  5833. * po/es.po
  5834. * po/ca.po
  5835. * po/nn.po
  5836. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5837. Fixed man page: --follow-bittorrent should be --follow-torrent
  5838. * doc/aria2c.1.txt
  5839. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5840. Fixed: numCommand is less than the value specified in -C option.
  5841. * src/RequestGroup.cc
  5842. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5843. Fixed occasional assertion failure in PieceSegment.
  5844. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5845. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5846. creation of duplicate segments and one of the segment was finished then
  5847. assertion failure was caused.
  5848. * src/SegmentMan.cc
  5849. * test/SegmentManTest.cc
  5850. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Added options to load/save the server's performance/status to a file
  5852. and the timeout to drop their data.
  5853. --server-stat-of=FILE specifies the file to which performance data
  5854. is saved.
  5855. --server-stat-if=FILE specifies the file to read previously saved
  5856. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5857. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5858. TIMEOUT is specified in seconds and the default value is 24hours.
  5859. * src/MultiUrlRequestInfo.cc
  5860. * src/OptionHandlerFactory.cc
  5861. * src/RequestGroupMan.cc
  5862. * src/RequestGroupMan.h
  5863. * src/ServerStatMan.cc
  5864. * src/ServerStatMan.h
  5865. * src/option_processing.cc
  5866. * src/prefs.cc
  5867. * src/prefs.h
  5868. * test/ServerStatManTest.cc
  5869. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5871. * src/ServerStatMan.cc
  5872. * src/ServerStatMan.h
  5873. * test/ServerStatManTest.cc
  5874. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5875. Implemented ServerStatMan::load(...) function and its test case.
  5876. * src/ServerStat.cc
  5877. * src/ServerStat.h
  5878. * src/ServerStatMan.cc
  5879. * test/ServerStatManTest.cc
  5880. * test/ServerStatTest.cc
  5881. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5882. Use time_t instead of int32_t. Use int64_t where milli second is
  5883. expected.
  5884. * src/TimeA2.cc
  5885. * src/TimeA2.h
  5886. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5887. Implemented ServerStatMan::save(...) function and its test case.
  5888. * src/ServerStat.cc
  5889. * src/ServerStat.h
  5890. * src/ServerStatMan.cc
  5891. * src/ServerStatMan.h
  5892. * test/ServerStatManTest.cc
  5893. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5894. Now aria2 uses name attribute in Metalink as local filename in
  5895. BitTorrent downloads. BUG#2033999
  5896. * src/BtContext.h
  5897. * src/BtDependency.cc
  5898. * src/DefaultBtContext.cc
  5899. * src/DefaultBtContext.h
  5900. * src/SingleFileDownloadContext.cc
  5901. * src/SingleFileDownloadContext.h
  5902. * test/BtDependencyTest.cc
  5903. * test/DefaultBtContextTest.cc
  5904. * test/MockBtContext.h
  5905. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5906. Added AC_C_BIGENDIAN
  5907. * src/configure.ac
  5908. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5909. Limited numCommand less than or equal to the number of piece.
  5910. * src/RequestGroup.cc
  5911. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5912. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5913. directive.
  5914. * test/DefaultPieceStorageTest.cc
  5915. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5916. Fixed memory leak in test code
  5917. * test/AnnounceListTest.cc
  5918. * test/DefaultPeerListProcessorTest.cc
  5919. * test/DefaultPeerStorageTest.cc
  5920. * test/MetaFileUtilTest.cc
  5921. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5922. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5923. * src/DefaultPieceStorage.cc
  5924. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5925. Initialized _directIOAllowed
  5926. * src/MultiDiskAdaptor.cc
  5927. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5928. Fixed memory leak
  5929. * src/GZipDecoder.cc
  5930. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5931. Fixed memory leak
  5932. * src/MetalinkParserStateMachine.cc
  5933. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5934. Fixed memory leak
  5935. * src/Dictionary.cc
  5936. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5937. Fixed memory leak
  5938. * src/IteratableChunkChecksumValidator.h
  5939. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5940. Fixed unmatched malloc/free.
  5941. * src/IteratableChunkChecksumValidator.cc
  5942. * src/IteratableChecksumValidator.cc
  5943. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Removed max chunk size check. This change fixes BUG#2040169
  5945. * src/ChunkedDecoder.cc
  5946. * src/ChunkedDecoder.h
  5947. * test/ChunkedDecoderTest.cc
  5948. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5949. Implemented download speed based URI selection algorithm.
  5950. Introduced new option --uri-selector.
  5951. If --uri-selector=feedback is given, aria2 uses download speed observed
  5952. in the previous downloads and chooses fastest server in the URI list.
  5953. Currently at most 10 URIs are considered to introduce randomeness for
  5954. finding better servers. The speed is average download speed in the
  5955. downloads.
  5956. On the other hand, if --uri-selector=inorder is given, which is default,
  5957. URI is tried in order in URI list.
  5958. The usage text for the new option has not been written yet.
  5959. * src/AbstractCommand.cc
  5960. * src/DownloadCommand.cc
  5961. * src/DownloadEngine.cc
  5962. * src/DownloadEngineFactory.cc
  5963. * src/InOrderURISelector.cc
  5964. * src/InOrderURISelector.h
  5965. * src/OptionHandlerFactory.cc
  5966. * src/PeerStat.h
  5967. * src/RequestGroup.cc
  5968. * src/RequestGroup.h
  5969. * src/RequestGroupMan.cc
  5970. * src/RequestGroupMan.h
  5971. * src/SegmentMan.cc
  5972. * src/SegmentMan.h
  5973. * src/ServerStat.cc
  5974. * src/ServerStat.h
  5975. * src/ServerStatMan.cc
  5976. * src/ServerStatMan.h
  5977. * src/ServerStatURISelector.cc
  5978. * src/ServerStatURISelector.h
  5979. * src/URISelector.h
  5980. * src/option_processing.cc
  5981. * src/prefs.cc
  5982. * src/prefs.h
  5983. * test/InOrderURISelectorTest.cc
  5984. * test/RequestGroupManTest.cc
  5985. * test/ServerStatManTest.cc
  5986. * test/ServerStatURISelectorTest.cc
  5987. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. * Release 0.15.1+2
  5989. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5990. Bump up version number to 0.15.1+2
  5991. * configure.ac
  5992. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5993. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5994. * m4/aria2_arg.m4
  5995. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5996. * Release 0.15.1+1
  5997. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5998. Bump up version number to 0.15.1+1
  5999. * configure.ac
  6000. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6001. Fixed the bug that causes segmentaion fault when resuming download
  6002. using metalink without size tag. Reproducible only using HTTP URI.
  6003. * src/HttpResponseCommand.cc
  6004. * src/FtpNegotiationCommand.cc
  6005. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6006. * Release 0.15.1
  6007. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6008. Updated Bulgarian and French translations, thanks to all translators.
  6009. * po/bg.po
  6010. * po/fr.po
  6011. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6012. Bump up version number to 0.15.1
  6013. * configure.ac
  6014. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6015. Avoid repeated call of gettimeofday() when calculating speed.
  6016. * src/SpeedCalc.cc
  6017. * src/SpeedCalc.h
  6018. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6019. Removed writable check when socket's send buffer is full in BitTorrent
  6020. downloads to lower CPU usage.
  6021. * src/PeerInteractionCommand.cc
  6022. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6023. Fixed broken gzip inflation.
  6024. Turn off segmented downloading if gzip content is smaller than or equal
  6025. to 1MiB and inflate the data on the fly, because HTTP response header
  6026. doesn't contain the length of inflated file we can't determin where
  6027. the chunk of data should be written.
  6028. On the other hand, if gzip content is larger than 1MB, then turn off
  6029. on the fly inflation, because some servers returns "content-type: gzip"
  6030. for *.tgz, *.gz files.
  6031. * src/DownloadCommand.cc
  6032. * src/HttpResponseCommand.cc
  6033. * src/HttpResponseCommand.h
  6034. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. Applied tizianomueller's patch to fix compile error.
  6036. * test/BitfieldManTest.cc
  6037. * test/BtRequestMessageTest.cc
  6038. * test/DefaultBtContextTest.cc
  6039. * test/DefaultDiskWriterTest.cc
  6040. * test/DefaultPieceStorageTest.cc
  6041. * test/HttpHeaderProcessorTest.cc
  6042. * test/HttpResponseTest.cc
  6043. * test/Metalink2RequestGroupTest.cc
  6044. * test/MetalinkParserControllerTest.cc
  6045. * test/MetalinkProcessorTest.cc
  6046. * test/PeerSessionResourceTest.cc
  6047. * test/UtilTest.cc
  6048. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6049. * Release 0.15.0
  6050. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6051. Reordered src files in POTFILES.in so that usage text appears first.
  6052. * po/POTFILES.in
  6053. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6054. Bump up version number to 0.15.0
  6055. * configure.ac
  6056. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. Added Bulgarian translation.
  6058. Updated Catalan, Spanish, French and Japanese translations.
  6059. Thanks to all translators.
  6060. * po/LINGUAS
  6061. * po/bg.po
  6062. * po/ca.po
  6063. * po/es.po
  6064. * po/fr.po
  6065. * po/ja.po
  6066. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6067. Updated feature list. Added libz for dependency section.
  6068. Added a description about unit testing using CppUnit.
  6069. * README
  6070. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Added a test for libz. Quoted where it is necessary.
  6072. * build_test.sh
  6073. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. Added GZip to `Enabled Features' list.
  6075. * src/FeatureConfig.cc
  6076. * src/FeatureConfig.h
  6077. * test/FeatureConfigTest.cc
  6078. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6080. the transfer has not yet started.
  6081. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6082. * src/SegmentMan.cc
  6083. * src/SegmentMan.h
  6084. * test/SegmentManTest.cc
  6085. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Cache last calculated average download/upload speed.
  6087. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6088. cached value.
  6089. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6090. * src/PeerStat.h
  6091. * src/SpeedCalc.cc
  6092. * src/SpeedCalc.h
  6093. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6094. Call parseUrl directly.
  6095. * src/Request.cc (resetUrl)
  6096. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6097. Supported absolute/relative path in Location header field.
  6098. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6099. * src/HttpHeader.cc
  6100. * src/HttpHeader.h
  6101. * src/HttpResponse.cc
  6102. * src/HttpSkipResponseCommand.cc
  6103. * src/Request.cc
  6104. * test/HttpHeaderTest.cc
  6105. * test/HttpResponseTest.cc
  6106. * test/RequestTest.cc
  6107. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6108. Changed help text for --load-cookie option.
  6109. * doc/aria2c.1.txt
  6110. * src/usage_text.h
  6111. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6112. Regenerated test/Makefile.in to remove stale ChangeLog.
  6113. * test/Makefile.in
  6114. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. Updated po files.
  6116. * po/aria2c.pot
  6117. * po/*.po
  6118. * po/*.gmo
  6119. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Bump up version number to 0.15.0b
  6121. * configure.ac
  6122. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Externalize messages.
  6124. * src/RequestGroupMan.cc
  6125. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6126. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Use File::exists() instead of File::isFile() to allow non-regular file
  6128. such as block special files.
  6129. * src/AbstractDiskWriter.cc
  6130. * src/MultiDiskWriter.cc
  6131. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6132. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6133. * src/gai_strerror.h
  6134. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Fixed compile error. Thanks gknauf for the patch.
  6136. * src/asctime_r.c
  6137. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. Included asctime_r.h from a2time.h.
  6139. * src/a2time.h
  6140. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. Added a message "aria2 doesn't verify signature" to log message when
  6142. signature file is saved.
  6143. * src/RequestGroupMan.cc
  6144. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Added the ability to save signature when download is completed if
  6146. signature is available. The filename of signature file is the path to
  6147. download file followed by ".sig". If it already exists, then signature
  6148. will not be saved.
  6149. * src/RequestGroupMan.cc
  6150. * src/Signature.cc
  6151. * test/SignatureTest.cc
  6152. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Updated the descriptions for --bt-seed-unverified.
  6154. * doc/aria2c.1
  6155. * doc/aria2c.1.html
  6156. * doc/aria2c.1.txt
  6157. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6158. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6159. that this is not going to verify files using piece hashes.
  6160. * src/HelpItemFactory.cc
  6161. * src/OptionHandlerFactory.cc
  6162. * src/RequestGroup.cc
  6163. * src/option_processing.cc
  6164. * src/prefs.cc
  6165. * src/prefs.h
  6166. * src/usage_text.h
  6167. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. Added the ability to retrieve signature from Metalink file.
  6169. A retrieved signature is stored in Signature class and it is held by
  6170. DownloadContext class. Note that aria2 doesn't verify signature.
  6171. * src/DownloadContext.cc
  6172. * src/DownloadContext.h
  6173. * src/Makefile.am
  6174. * src/Makefile.in
  6175. * src/Metalink2RequestGroup.cc
  6176. * src/MetalinkEntry.cc
  6177. * src/MetalinkEntry.h
  6178. * src/MetalinkParserController.cc
  6179. * src/MetalinkParserController.h
  6180. * src/MetalinkParserStateMachine.cc
  6181. * src/MetalinkParserStateMachine.h
  6182. * src/Signature.cc
  6183. * src/Signature.h
  6184. * src/SignatureMetalinkParserState.cc
  6185. * src/SignatureMetalinkParserState.h
  6186. * src/VerificationMetalinkParserState.cc
  6187. * src/VerificationMetalinkParserState.h
  6188. * test/Metalink2RequestGroupTest.cc
  6189. * test/MetalinkParserControllerTest.cc
  6190. * test/MetalinkProcessorTest.cc
  6191. * test/test.xml
  6192. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6193. Close DiskAdaptor after renaming file.
  6194. * src/RequestGroup.cc
  6195. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Corrected indentation
  6197. * src/DefaultBtProgressInfoFile.cc
  6198. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6199. Moved the calls of std::ios::exceptions() inside of try-catch block
  6200. because if an error occurred in constructor of std::fstream, then
  6201. exception is thrown immediately when std::ios::exceptions() is called
  6202. which results unhandled exception and aria2c aborts.
  6203. * src/DefaultBtProgressInfoFile.cc
  6204. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Added the test for the previous change in DefaultBtContext.cc
  6206. * test/DefaultBtContextTest.cc
  6207. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6208. Fixed the bug that causes infinite loop when the number of pieces are
  6209. fewer than allowed fast set size which is 10 by default.
  6210. * src/DefaultBtContext.cc
  6211. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. Updated the descriptions for -j, -s. Added --bt-seed.
  6213. * doc/aria2c.1
  6214. * doc/aria2c.1.html
  6215. * doc/aria2c.1.txt
  6216. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6217. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6218. aria2 seeds previously downloaded files without validating piece hashs.
  6219. * src/HelpItemFactory.cc
  6220. * src/OptionHandlerFactory.cc
  6221. * src/RequestGroup.cc
  6222. * src/option_processing.cc
  6223. * src/prefs.cc
  6224. * src/prefs.h
  6225. * src/usage_text.h
  6226. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6227. Updated DESCRIPTION of man page.
  6228. * doc/aria2c.1
  6229. * doc/aria2c.1.html
  6230. * doc/aria2c.1.txt
  6231. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6233. Don't define `struct addrinfo' when __sun is defined.
  6234. * src/getaddrinfo.h
  6235. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6236. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6237. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6238. second argument is of type `struct _stati64'. Otherwise it is defined as
  6239. `struct stat'.
  6240. * src/AbstractDiskWriter.cc
  6241. * src/File.cc
  6242. * src/File.h
  6243. * src/a2io.h
  6244. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Fixed the compile error in hurd-i386
  6246. See the original bug report:
  6247. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6248. * src/a2io.h
  6249. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6250. Code cleanup.
  6251. * src/PeerAbstractCommand.cc
  6252. * src/PeerAbstractCommand.h
  6253. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6254. Removed TransferEncoding.
  6255. * src/DownloadCommand.cc
  6256. * src/DownloadCommand.h
  6257. * src/HttpResponseCommand.cc
  6258. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6259. Updated po files.
  6260. * po/aria2c.pot
  6261. * po/*.po
  6262. * po/*.gmo
  6263. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6264. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6265. * src/A2STR.cc
  6266. * src/A2STR.h
  6267. * src/ChunkedDecoder.cc
  6268. * src/ChunkedDecoder.h
  6269. * src/ChunkedEncoding.cc: Removed
  6270. * src/ChunkedEncoding.h: Removed
  6271. * src/DownloadCommand.cc
  6272. * src/DownloadCommand.h
  6273. * src/HttpDownloadCommand.cc
  6274. * src/HttpResponse.cc
  6275. * src/HttpResponse.h
  6276. * src/HttpResponseCommand.cc
  6277. * src/HttpSkipResponseCommand.cc
  6278. * src/HttpSkipResponseCommand.h
  6279. * src/Makefile.am
  6280. * src/TransferEncoding.h: Removed
  6281. * test/ChunkedDecoderTest.cc
  6282. * test/ChunkedEncodingTest.cc: Removed
  6283. * test/HttpResponseTest.cc
  6284. * test/Makefile.am
  6285. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. Use append instead of insert.
  6287. * src/GZipDecoder.cc
  6288. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6289. Updated doc
  6290. * src/Decoder.h
  6291. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6292. Updated usage text for -s option.
  6293. * src/usage_text.h
  6294. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6296. * src/Request.cc
  6297. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Cleaned up configure.ac.
  6299. * configure.ac
  6300. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6301. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6302. AC_ARG_ENABLE.
  6303. * configure.ac
  6304. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6306. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6307. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6308. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6309. fly and writes decoded data to a local disk.
  6310. * README
  6311. * README.html
  6312. * configure.ac
  6313. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6314. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6315. * m4/libz.m4
  6316. * src/Decoder.h
  6317. * src/DownloadCommand.cc
  6318. * src/DownloadCommand.h
  6319. * src/Exception.h
  6320. * src/GZipDecoder.cc
  6321. * src/GZipDecoder.h
  6322. * src/HttpHeader.cc
  6323. * src/HttpHeader.h
  6324. * src/HttpRequest.cc
  6325. * src/HttpRequest.h
  6326. * src/HttpResponse.cc
  6327. * src/HttpResponse.h
  6328. * src/HttpResponseCommand.cc
  6329. * src/Makefile.am
  6330. * test/GZipDecoderTest.cc
  6331. * test/HttpRequestTest.cc
  6332. * test/HttpResponseTest.cc
  6333. * test/Makefile.am
  6334. * test/Makefile.in
  6335. * test/gzip_decode_test.gz
  6336. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Clarified usage of -j option.
  6338. * src/usage_text.h
  6339. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6340. Disabled getting size from the response of RETR.
  6341. If SIZE command failed, then disable resuming and segmented downloading.
  6342. * src/FtpConnection.cc
  6343. * src/FtpConnection.h
  6344. * src/FtpNegotiationCommand.cc
  6345. * src/FtpNegotiationCommand.h
  6346. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. Use digits to find first byte of file size, which makes the intention
  6348. of the code clearer.
  6349. * src/FtpConnection.cc
  6350. Don't call validateTotalLength() when size is 0.
  6351. * src/FtpNegotiationCommand.cc
  6352. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Updated po files.
  6354. * po/aria2c.pot
  6355. * po/*.gmo
  6356. * po/*.po
  6357. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6358. Clarified usage text for --split option.
  6359. * src/usage_text.h
  6360. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6361. Bump up version number to 0.15.0dev. "dev" means "development"
  6362. version, which means I started the development of the next release!
  6363. * src/configure.ac
  6364. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. If FTP server returns negative response with REST raw command and
  6366. requested range is not 0, throw exception. If requested range is 0,
  6367. continue download a file from 0 byte.
  6368. * src/FtpNegotiationCommand.cc
  6369. * src/FtpNegotiationCommand.h
  6370. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6371. Supported FTP server which don't recognize SIZE raw command.
  6372. If SIZE raw command is failed, aria2 will try to get file size
  6373. from the response of RETR raw command. If both attempts are failed,
  6374. then resuming and segmented downloading are disabled.
  6375. * src/FtpConnection.cc
  6376. * src/FtpConnection.h
  6377. * src/FtpNegotiationCommand.cc
  6378. * src/FtpNegotiationCommand.h
  6379. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6380. * Release 0.14.0+1
  6381. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Bump up version number to 0.14.0+1
  6383. * src/configure.ac
  6384. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6385. Fixed the code that refers static member variable from non-static
  6386. context.
  6387. * src/DefaultPeerStorage.cc
  6388. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6389. * Release 0.14.0
  6390. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6391. Added build test script
  6392. * build_test.sh
  6393. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. Updated ja.po
  6395. * src/ja.po
  6396. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6397. Bump up version number to 0.14.0
  6398. * src/configure.ac
  6399. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Updated ja.po and fr.po. Great thanks for french translators and
  6401. Sebastien WILLEMIJNS.
  6402. * po/fr.po
  6403. * po/ja.po
  6404. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6405. Added configure option to enable/disable epoll support.
  6406. * configure.ac
  6407. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6408. Updated man page.
  6409. * doc/aria2c.1.txt
  6410. * doc/aria2c.1
  6411. * doc/aria2c.1.html
  6412. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6413. Added missing default value '5' to the usage of --split option.
  6414. * src/HelpItemFactory.cc
  6415. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6416. Filled up pieces based on the number of missing blocks, rather than
  6417. simplay the number of piece * block length.
  6418. * src/BtRequestFactory.h
  6419. * src/DefaultBtInteractive.cc
  6420. * src/DefaultBtInteractive.h
  6421. * src/DefaultBtRequestFactory.cc
  6422. * src/DefaultBtRequestFactory.h
  6423. * src/Piece.cc
  6424. * src/Piece.h
  6425. * test/BitfieldManTest.cc
  6426. * test/DefaultBtRequestFactoryTest.cc
  6427. * test/MockBtRequestFactory.h
  6428. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. Made _epEvents a member variable.
  6430. * src/DownloadEngine.cc
  6431. * src/DownloadEngine.h
  6432. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6433. Cancel download if http redirect is bounded more than 20 times.
  6434. * src/AbstractCommand.cc
  6435. * src/HttpSkipResponseCommand.cc
  6436. * src/Request.cc
  6437. * src/Request.h
  6438. * test/RequestTest.cc
  6439. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. Fixed unhandled exception(removed keyword `new').
  6441. * src/SocketCore.cc (initEPOLL)
  6442. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Removed visit(const MetaEntry*)
  6444. * src/MetaEntryVisitor.h:
  6445. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6446. and made them virtual.
  6447. * src/BencodeVisitor.h
  6448. * src/BencodeVisitor.cc
  6449. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6450. Updated po files.
  6451. * po/aria2c.pot
  6452. * po/*.po
  6453. * po/*.gmo
  6454. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6455. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6456. the number of socket to watch out.
  6457. * src/PeerInteractionCommand.cc
  6458. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. When there is not enough space in disk when writing a chunk of data,
  6460. aria2 now prints the message to the console to warn user and aborts
  6461. its download. Not all downloads are canceled because some downloads
  6462. may use another disk or partition. BUG#1640332
  6463. * src/AbstractDiskWriter.cc
  6464. * src/PeerAbstractCommand.cc
  6465. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6466. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6467. setHaltRequested(true) to cancel download.
  6468. * src/PeerInteractionCommand.h
  6469. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6470. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6471. socket from int to sock_t as sockets are unsigned in Windows.
  6472. For AsyncNameResolver, DownloadEngine, I did additional modification
  6473. for the portion of the code changed according to epoll support.
  6474. I defined sock_t in a2netcompat.h to use sock_t without including
  6475. SocketCore.h.
  6476. * src/AsyncNameResolver.cc
  6477. * src/AsyncNameResolver.h
  6478. * src/DownloadEngine.cc
  6479. * src/DownloadEngine.h
  6480. * src/SocketCore.cc
  6481. * src/SocketCore.h
  6482. * src/a2netcompat.h
  6483. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6484. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6485. changes in the patch were applied.
  6486. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6487. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6488. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6489. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6490. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6491. a2io.h and common.h were modified.
  6492. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6493. MinGW.
  6494. * src/common.h: Changed off_t to 64 bit in MinGW.
  6495. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6496. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6497. only a2netcompat.h is modified.
  6498. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6499. directives.
  6500. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6501. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6502. only gai_strerror.h is modified.
  6503. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6504. winsock errors in MinGW.
  6505. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6507. follow sources are applied.
  6508. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6509. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6510. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6511. I included locale.h from Platform.cc.
  6512. * src/main.cc: Moved common setup/teardown code to Platform class.
  6513. * test/AllTest.cc: Use Platform class.
  6514. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6515. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6517. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6518. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6519. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6520. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6521. aria2-0.13.2+1-mingw-2.patch.
  6522. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6523. systems which don't have termious.h. I moved the directive inside of
  6524. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6525. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6526. anyway.
  6527. * src/asctime_r.h
  6528. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6529. I added 2nd argument to the prototype declaration.
  6530. * src/StringFormat.cc: Get rid of vasprintf.
  6531. * src/getaddrinfo.h: Fixed constants.
  6532. * configure.ac: Added the check for asctime_r function.
  6533. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6534. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6535. Added writable test for Socket when the sending message is in progress.
  6536. Usually the sending message is piece message. Without wriable check,
  6537. upload latency is dropped to more than 1sec.
  6538. * src/PeerInteractionCommand.cc
  6539. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6540. Create only requested files and files which shares a piece with
  6541. requested file in multi-torrent downloads. Directory structures are
  6542. also created in the same rule.
  6543. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6544. DiskWriterEntry as in the previous implementation.
  6545. * src/MultiDiskWriter.cc
  6546. * src/MultiFileAllocationIterator.cc
  6547. * src/MultiFileAllocationIterator.h
  6548. * test/MultiFileAllocationIteratorTest.cc
  6549. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6550. Commented out -lprofiler
  6551. * src/Makefile.am
  6552. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6553. Bump up version number to 0.14.0b.
  6554. * src/configure.ac
  6555. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Actively establish connection to peers in seeding, when peer cache
  6557. is not full and max upload speed limit is not reached.
  6558. * src/ActivePeerConnectionCommand.cc
  6559. * src/ActivePeerConnectionCommand.h
  6560. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6561. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6562. to make room more fleshy, recently found peers.
  6563. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6564. it.
  6565. * src/DefaultPeerStorage.cc
  6566. * test/DefaultPeerStorageTest.cc
  6567. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6568. Returns cached data only when the previous receiveHandshake() is called
  6569. with peek = true.
  6570. * src/PeerConnection.cc (receiveHandshake)
  6571. * src/PeerConnection.h (receiveHandshake)
  6572. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6573. Changed default value of -s option from 1 to 5.
  6574. Also max value of -s option is changed from 5 to 16.
  6575. * src/HelpItemFactory.cc
  6576. * src/OptionHandlerFactory.cc
  6577. * src/option_processing.cc
  6578. * src/usage_text.h
  6579. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6580. Changed -s options behavior. Now it means the number of connections
  6581. made simultaneously in each http/ftp download.
  6582. If 1 URL is specified, the behavior is the same with old implementation.
  6583. If -s N is given and more than N URLs are specified, first N URLs are
  6584. used and remaining URLs are used for backup. If less than N URLs are
  6585. specified, some of URLs are used more than once so that totally N
  6586. connections are made simultaneously.
  6587. * src/main.cc
  6588. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Included missing iosfwd or ostream header.
  6590. * src/RequestGroupMan.cc
  6591. * src/TaggedItem.cc
  6592. * src/TaggedItem.h
  6593. * src/Util.cc
  6594. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6596. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6597. * src/HttpConnection.cc: Included missing sstream.
  6598. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6599. Added --bt-max-open-files option.
  6600. * src/DefaultPieceStorage.cc
  6601. * src/HelpItemFactory.cc
  6602. * src/MultiDiskAdaptor.cc
  6603. * src/MultiDiskAdaptor.h
  6604. * src/OptionHandlerFactory.cc
  6605. * src/option_processing.cc
  6606. * src/prefs.cc
  6607. * src/prefs.h
  6608. * src/usage_text.h
  6609. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6610. Fixed the bug that aria2 aborts when a path to a directory is given
  6611. in command-line.
  6612. * src/ProtocolDetector.cc
  6613. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6614. Limited the number files opened in each BitTorrent download. The default
  6615. value is 100. The option to change this value will be added.
  6616. * src/MultiDiskAdaptor.cc
  6617. * src/MultiDiskAdaptor.h
  6618. * src/MultiFileAllocationIterator.cc
  6619. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6620. Fixed the bug that HTTP downloads don't start with old libraries.
  6621. * src/HttpHeaderProcessor.cc
  6622. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Use empty() instead of size() > 0.
  6624. * src/HttpConnection.cc
  6625. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6626. Drop connection if the incoming peer ID is the same with localhost's
  6627. one. The previous implementation drops connection when incoming peer's
  6628. IP address is the same with localhost's one.
  6629. * src/PeerListenCommand.cc
  6630. * src/DefaultBtInteractive.cc
  6631. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6632. Returns cached data without checking whether socket is readable
  6633. if the cache is available.
  6634. * src/PeerConnection.cc (receiveHandshake)
  6635. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6636. Included stdint.h
  6637. * src/common.h
  6638. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6639. Removed duplicate HAVE_GETTIMEOFDAY
  6640. * src/Makefile.am
  6641. * src/Makefile.in
  6642. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Use interval as a minInterval when minInterval is not supplied.
  6644. * src/DefaultBtAnnounce.cc
  6645. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6646. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6647. attempt is failed, then 2nd attempt get kicked out more quickly.
  6648. And it is now static const member of DefaultBtAnnounce.
  6649. * src/DefaultBtAnnounce.h
  6650. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6652. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6653. * src/ActivePeerConnectionCommand.cc
  6654. * src/BtConstants.h
  6655. * src/BtRuntime.h
  6656. * src/DHTGetPeersCommand.cc
  6657. * src/DefaultBtAnnounce.cc
  6658. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6659. BtRuntime::MAX_PEERS.
  6660. * src/DefaultPeerStorage.h
  6661. * src/InitiatorMSEHandshakeCommand.cc
  6662. * src/PeerInitiateConnectionCommand.cc
  6663. * src/PeerInteractionCommand.cc
  6664. * src/PeerReceiveHandshakeCommand.cc
  6665. * src/TrackerWatcherCommand.cc
  6666. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6667. Always Connect to _numNewConnection
  6668. * src/ActivePeerConnectionCommand.cc
  6669. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6670. Made `begin' unsigned int.
  6671. * src/GrowSegment.h
  6672. * src/Piece.cc
  6673. * src/Piece.h
  6674. * src/PiecedSegment.cc
  6675. * src/PiecedSegment.h
  6676. * src/Segment.h
  6677. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6678. Calculate piece hash when data is arrived if the data is arrived in
  6679. order. This removes additional read operation for hash calculation.
  6680. If the data is arrived in out of order, the hash is calucated when the
  6681. piece is completed. This is the same behavior as the old implementation.
  6682. * src/BtPieceMessage.cc
  6683. * src/DefaultBtProgressInfoFile.cc
  6684. * src/DefaultPieceStorage.cc
  6685. * src/DownloadCommand.cc
  6686. * src/DownloadCommand.h
  6687. * src/DownloadEngine.cc
  6688. * src/GrowSegment.cc
  6689. * src/GrowSegment.h
  6690. * src/Piece.cc
  6691. * src/Piece.h
  6692. * src/PiecedSegment.cc
  6693. * src/PiecedSegment.h
  6694. * src/Segment.h
  6695. * test/PieceTest.cc
  6696. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. Try to keep the ordering of outgoing piece message.
  6698. * src/DefaultBtMessageDispatcher.cc
  6699. (DefaultBtMessageDispatcher::sendMessages)
  6700. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Fixed busy loop when error/hup epoll events occur.
  6702. * src/AbstractCommand.cc
  6703. * src/PeerAbstractCommand.cc
  6704. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Added --bt-request-peer-speed-limit option, which was a constant
  6706. SLOW_SPEED_THRESHOLD.
  6707. * src/ActivePeerConnectionCommand.cc
  6708. * src/ActivePeerConnectionCommand.h
  6709. * src/BtConstants.h
  6710. * src/HelpItemFactory.cc
  6711. * src/OptionHandlerFactory.cc
  6712. * src/PeerReceiveHandshakeCommand.cc
  6713. * src/option_processing.cc
  6714. * src/prefs.cc
  6715. * src/prefs.h
  6716. * src/usage_text.h
  6717. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6718. Removed repeated call of getTopDirPath(). Instead, call it once and
  6719. cache the result.
  6720. * src/MultiDiskAdaptor.cc
  6721. * src/MultiDiskAdaptor.h
  6722. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6723. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6724. Fixed compile error on debian etch.
  6725. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6726. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6727. it is undefined.
  6728. * src/Util.cc (ULLONG_MAX)
  6729. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. Added epoll support. Use epoll if it is available. If not, use select.
  6731. When async dns is enabled in compile time, epoll support is enabled
  6732. only when aria2 is built with c-ares. This condition statement is
  6733. defined in a2io.h.
  6734. Currently aria2 supports both c-ares and ares, but ares is maintained
  6735. for quite a while and debian already has c-ares package, ares support
  6736. will be dropped in the future version.
  6737. * configure.ac
  6738. * src/AbstractCommand.cc
  6739. * src/AsyncNameResolver.cc
  6740. * src/AsyncNameResolver.h
  6741. * src/Command.cc
  6742. * src/Command.h
  6743. * src/DownloadEngine.cc
  6744. * src/DownloadEngine.h
  6745. * src/PeerAbstractCommand.cc
  6746. * src/SocketCore.cc
  6747. * src/SocketCore.h
  6748. * src/a2io.h
  6749. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6750. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6751. directive.
  6752. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. Do not do write operation to /dev/null file.
  6754. * src/LogFactory.cc
  6755. * src/SimpleLogger.cc
  6756. Replaced vasprintf with vsnprintf
  6757. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6758. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6759. * src/BtRequestMessage.cc
  6760. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6761. for segmentation fault caused by previous commit.
  6762. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Reduced the usage of gettimeofday().
  6764. * src/DefaultBtMessageDispatcher.cc
  6765. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6766. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6767. * src/RequestSlot.cc
  6768. * src/RequestSlot.h
  6769. (RequestSlot::isTimeout)
  6770. Made RequestSlot have a reference to Piece object to avoid find
  6771. Piece repeatedly.
  6772. * src/DefaultBtMessageDispatcher.cc
  6773. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6774. * src/RequestSlot.cc
  6775. * src/RequestSlot.h
  6776. (RequestSlot::getPiece)
  6777. * test/DefaultBtMessageDispatcherTest.cc
  6778. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6779. * src/TimeA2.cc
  6780. * src/TimeA2.h
  6781. (Time::difference): New function.
  6782. (Time::elapsed): Done optimization.
  6783. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6785. directive.
  6786. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6787. * src/option_processing.cc: Added missing `defined' keyword to #if
  6788. directive.
  6789. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6790. Bump up version number to 0.13.2+1
  6791. * src/configure.ac
  6792. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Refactored broken outstanding piece handling.
  6794. * src/DefaultPieceStorage.cc
  6795. * src/DefaultPieceStorage.h
  6796. * src/Piece.cc
  6797. * src/Piece.h
  6798. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6799. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6800. name collision of static variable and predefined macro.
  6801. * src/BtContext.cc
  6802. * src/BtContext.h
  6803. * src/CookieBoxFactory.cc
  6804. * src/CookieBoxFactory.h
  6805. * src/CookieParser.cc
  6806. * src/CookieParser.h
  6807. * src/DefaultBtContext.cc
  6808. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6809. * src/RequestGroup.cc
  6810. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6811. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. * Release 0.13.2
  6813. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6815. * po/fr.po
  6816. * po/ja.po
  6817. * po/aria2c.pot
  6818. * po/*.po
  6819. * po/*.gmo
  6820. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6821. Bump up version number to 0.13.2
  6822. * src/configure.ac
  6823. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6824. Refactord.
  6825. * src/RequestGroupMan.cc
  6826. (removeStoppedGroup)
  6827. (fillRequestGroupFromReserver)
  6828. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6829. Fixed compile error on Ubuntu.
  6830. * src/BtPieceMessage.cc
  6831. * src/MessageDigestHelper.cc
  6832. * src/Util.cc
  6833. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6834. Fixed compile error when configured with --disable-bittorrent
  6835. * test/DownloadHandlerFactoryTest.cc
  6836. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Done make update-po
  6838. * po/aria2c.pot
  6839. * po/*.po
  6840. * po/*.gmo
  6841. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6842. Bump up version number to 0.13.2rc.
  6843. * src/configure.ac
  6844. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Made option name bold. Updated SYNOPSIS to make it more readable.
  6846. * doc/aria2c.1.txt
  6847. * doc/aria2c.1
  6848. * doc/aria2c.1.html
  6849. * src/version_usage.cc
  6850. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6851. Refactored. Use std::string instead of size and char*.
  6852. * Data.cc
  6853. * Data.h
  6854. * test/Data.cc
  6855. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6856. Added trimSelf(). Rewritten trim() to use trimSelf().
  6857. * Util.cc
  6858. * Util.h
  6859. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6861. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6862. Fixed compile error when configured with --disable-metalink.
  6863. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6864. * test/FeatureConfigTest.cc
  6865. * test/DownloadHandlerFactoryTest.cc
  6866. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. Fixed compile error when configured with --without-gnutls
  6868. --without-openssl
  6869. * src/main.cc
  6870. * test/DefaultBtProgressInfoFileTest.cc
  6871. * test/SegmentManTest.cc
  6872. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Fixed compile error with OpenSSL.
  6874. * src/IteratableChunkChecksumValidator.cc
  6875. * src/LibsslDHKeyExchange.h
  6876. * src/MessageDigestHelper.cc
  6877. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Revert the default value of --max-concurrent-downloads to 5.
  6879. Revert the default value of --metalink-servers to 5.
  6880. Man pages was also updated.
  6881. * src/option_processing.cc
  6882. * doc/aria2c.1.txt
  6883. * doc/aria2c.1.html
  6884. * doc/aria2c.1
  6885. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6886. Returns const reference:
  6887. DownloadContext::getPieceHash, DownloadContext::getName,
  6888. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6889. BtContext::getInfoHashAsString,
  6890. * src/BtContext.h
  6891. * src/DefaultBtContext.cc
  6892. * src/DefaultBtContext.h
  6893. * src/DownloadContext.h
  6894. * src/SingleFileDownloadContext.h
  6895. * test/MockBtContext.h
  6896. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. * src/RequestGroup.h (getDir): Removed.
  6898. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6899. Returns const reference. The internal urlencode function was optimized
  6900. a little bit.
  6901. * src/Request.cc
  6902. * src/Request.h
  6903. * src/HttpRequest.cc
  6904. * src/HttpRequest.h
  6905. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6906. Defined option name and possible values as std::string to reduce
  6907. temporary string object creation in runtime.
  6908. * src/HelpItemFactory.cc
  6909. * src/LogFactory.cc
  6910. * src/Option.cc
  6911. * src/OptionHandlerFactory.cc
  6912. * src/option_processing.cc
  6913. * src/prefs.cc
  6914. * src/prefs.h
  6915. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Return const reference.
  6917. * src/DownloadHandlerConstants.cc
  6918. * src/DownloadHandlerConstants.h
  6919. (getMetalinkExtensions)
  6920. (getMetalinkContentTypes)
  6921. (getBtExtensions)
  6922. (getBtContentTypes)
  6923. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. * src/HttpHeader.cc (get): Rewritten.
  6925. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6926. Make HttpHeader::getFirst(...) return const reference.
  6927. * src/HttpHeader.cc
  6928. * src/HttpHeader.h
  6929. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6930. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6931. it with V_TRUE.
  6932. * src/DefaultPieceStorage.cc
  6933. * src/DownloadCommand.cc
  6934. * src/FtpNegotiationCommand.cc
  6935. * src/HttpRequest.cc
  6936. * src/InitiateConnectionCommand.cc
  6937. * src/RequestGroup.cc
  6938. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6939. Made Option::get(...) return const reference of std::string.
  6940. * src/Option.cc
  6941. * src/Option.h
  6942. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6943. Replaced std:copy with insert.
  6944. * src/DefaultBtMessageDispatcher.cc
  6945. * src/DefaultPieceStorage.cc
  6946. * src/DownloadEngineFactory.cc
  6947. * src/RequestGroup.cc
  6948. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6949. Included SocketCore.h to fix compiler warning.
  6950. * src/InitiateConnectionCommand.cc
  6951. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. Put piece selection strategy algorithm to RarestPieceSelector class,
  6953. Added a switch to choose whether randomized selection so that unit
  6954. tests emit same results in, possibly, win32.
  6955. * src/DefaultPieceStorage.cc
  6956. * src/DefaultPieceStorage.h
  6957. * src/RarestPieceSelector.cc
  6958. * src/RarestPieceSelector.h
  6959. * test/DefaultPieceStorageTest.cc
  6960. * test/RarestPieceSelectorTest.cc
  6961. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6962. Don't pool connection if HTTP proxy is enabled.
  6963. * src/FtpFinishDownloadCommand.cc
  6964. * src/FtpNegotiationCommand.cc
  6965. * src/HttpSkipResponseCommand.cc
  6966. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6967. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6968. * src/AbstractCommand.cc
  6969. * src/AbstractCommand.h
  6970. * src/ActivePeerConnectionCommand.cc
  6971. * src/FtpInitiateConnectionCommand.cc
  6972. * src/HttpInitiateConnectionCommand.cc
  6973. * src/InitiateConnectionCommandFactory.cc
  6974. * src/PeerAbstractCommand.cc
  6975. * src/PeerAbstractCommand.h
  6976. * src/PeerInitiateConnectionCommand.cc
  6977. * src/TrackerWatcherCommand.cc
  6978. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6979. Sort RequestSlot in ascending order and manipulate them using
  6980. lower_bound.
  6981. * src/DefaultBtMessageDispatcher.cc
  6982. * src/DefaultBtMessageDispatcher.h
  6983. (getMessageQueue): Added const qualifier.
  6984. (getRequestSlots): Added const qualifier.
  6985. (sendMessages): Use empty() instead of size().
  6986. (doCancelSendingPieceAction): Use HandleEvent object.
  6987. (doAbortOutstandingRequestAction): Rewritten.
  6988. (doChokedAction): Rewritten.
  6989. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6990. (isOutstandingRequest): Rewritten.
  6991. (getOutstandingRequest): Rewritten.
  6992. (removeOutstandingRequest): Rewritten.
  6993. (addOutstandingRequest): Rewritten.
  6994. * src/RequestSlot.cc
  6995. * src/RequestSlot.h
  6996. (operator=): Rewritten.
  6997. (operator!=): New function.
  6998. (operator<): New function.
  6999. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7000. * src/DefaultBtRequestFactory.cc
  7001. (doChokedAction): Rewritten.
  7002. (removeCompletedPiece): Rewritten.
  7003. (removeTargetPiece): Rewritten.
  7004. (createRequestMessages): Added the debug log.
  7005. (createRequestMessagesOnEndGame: Added the debug log.
  7006. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. Added the debug log message.
  7008. * src/BtPieceMessage.cc (doReceivedAction)
  7009. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7011. used lower_bound to process them rather than linear search.
  7012. * src/DHTPeerAnnounceStorage.cc
  7013. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7014. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7015. peer has at least one completed piece.
  7016. * src/Peer.cc
  7017. * src/Peer.h
  7018. * src/PeerInteractionCommand.cc
  7019. * src/PeerSessionResource.cc
  7020. * src/PeerSessionResource.h
  7021. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7022. Removed unnecessary sorting
  7023. * src/DefaultPieceStorage (DefaultPieceStorage)
  7024. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. Rewritten the portion of the code that mangaes allowed fast indexes.
  7026. * src/PeerSessionResource.cc
  7027. * src/PeerSessionResource.h
  7028. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7029. Removed the invalid string including '\r' from ru.po and
  7030. did make update-po.
  7031. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7032. Added --log-level and --summary-interval to man page.
  7033. * doc/aria2c.1.txt
  7034. * doc/aria2c.1.html
  7035. * doc/aria2c.1
  7036. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7037. Added --log-level option to specify log level. Log messages under
  7038. the specified level are not output. Default value is `debug'.
  7039. * src/HelpItemFactory.cc
  7040. * src/LogFactory.cc
  7041. * src/LogFactory.h
  7042. * src/Logger.h
  7043. * src/OptionHandlerFactory.cc
  7044. * src/SimpleLogger.cc
  7045. * src/SimpleLogger.h
  7046. * src/main.cc
  7047. * src/option_processing.cc
  7048. * src/prefs.h
  7049. * src/usage_text.h
  7050. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Print download progress summary of all parallel downloads in specified
  7052. interval, default 60 secs. While aria2 could download several files
  7053. in parallel (see -j option), it displayed just first download progress,
  7054. and the other downloads are hidden from the users. This new feature
  7055. prints all downloads currently in-progress to the console so that you
  7056. can check the status of all downloads. The interval can be adjusted
  7057. by --summary-interval option.
  7058. The progress readout is now cut so that all fits in the one line of
  7059. console.
  7060. * src/ConsoleStatCalc.cc
  7061. * src/ConsoleStatCalc.h
  7062. * src/HelpItemFactory.cc
  7063. * src/OptionHandlerFactory.cc
  7064. * src/RequestGroupMan.cc
  7065. * src/RequestGroupMan.h
  7066. * src/main.cc
  7067. * src/option_processing.cc
  7068. * src/prefs.h
  7069. * src/usage_text.h
  7070. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7072. * src/DownloadEngine.cc (DownloadEngine)
  7073. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7075. defined.
  7076. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7077. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Use erase+lower_bound+insert instead of sort.
  7079. * src/DefaultPieceStorage.cc (addPieceStats)
  7080. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7081. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7082. * src/A2STR.cc
  7083. * src/A2STR.h
  7084. * src/OptionParser.cc (parse)
  7085. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. Defined fake filename `[tracker.announce]' as static const std::string.
  7087. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7088. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Defined default filename `index.html' as static const std::string
  7090. * src/SingleFileDownloadContext.cc
  7091. * src/SingleFileDownloadContext.h
  7092. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Defined "[MEMORY]" as static const std::string.
  7094. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7095. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7096. Defined control file's version number as static const std::string.
  7097. * src/DefaultBtProgressInfoFile.cc
  7098. * src/DefaultBtProgressInfoFile.h
  7099. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7100. Use Request::METHOD_GET
  7101. * src/RequestGroup.cc (createNextCommandWithAdj)
  7102. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7103. Defined "OK", "ERR", "INPR" as static const std::string
  7104. * src/RequestGroupMan.cc (showDownloadResults)
  7105. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7106. Defined default client used in extended handshake as static const
  7107. std::string
  7108. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7109. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7110. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7111. * src/HttpConnection.cc (eraseConfidentialInfo)
  7112. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7113. Defined default ftp user and password as static const std::string
  7114. * src/AuthConfigFactory.cc
  7115. * src/AuthConfigFactory.h
  7116. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7117. Defined strings used in netrc as static const std::string
  7118. * src/Netrc.cc
  7119. * src/Netrc.h
  7120. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7121. Defined HTTP status as static const std::string
  7122. * src/AbstractProxyResponseCommand.cc
  7123. * src/HttpHeader.cc
  7124. * src/HttpHeader.h
  7125. * src/HttpResponse.cc
  7126. * src/HttpResponseCommand.cc
  7127. * src/HttpSkipResponseCommand.cc
  7128. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. Defined "\r\n", "A", "I" as static const std::string
  7130. * src/A2STR.cc
  7131. * src/A2STR.h
  7132. * src/FtpConnection.cc
  7133. * src/FtpConnection.h
  7134. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Added COLON_C(".") and used it in Request::parseUrl()
  7136. * src/A2STR.cc
  7137. * src/A2STR.h
  7138. * src/Request.cc (parseUrl)
  7139. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7140. Changed the type of padName from `const std::string&' to `const char*'.
  7141. * src/MSEHandshake.cc (verifyPadLength)
  7142. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. Defined "sha1" as static const std::string.
  7144. * src/MetalinkParserController.cc
  7145. * src/MetalinkParserController.h
  7146. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7147. Defined message digest algorithm name as static const std::string
  7148. * src/DHTTokenTracker.cc
  7149. * src/DHTUtil.cc
  7150. * src/DefaultBtContext.cc
  7151. * src/MSEHandshake.cc
  7152. * src/MessageDigestHelper.cc
  7153. * src/Peer.cc
  7154. * src/messageDigest.cc
  7155. * src/messageDigest.h
  7156. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Made string literals used in SAX parser static const std::string.
  7158. * src/FileMetalinkParserState.cc
  7159. * src/FileMetalinkParserState.h
  7160. * src/FilesMetalinkParserState.cc
  7161. * src/FilesMetalinkParserState.h
  7162. * src/InitialMetalinkParserState.cc
  7163. * src/InitialMetalinkParserState.h
  7164. * src/MetalinkMetalinkParserState.cc
  7165. * src/MetalinkMetalinkParserState.h
  7166. * src/PiecesMetalinkParserState.cc
  7167. * src/PiecesMetalinkParserState.h
  7168. * src/ResourcesMetalinkParserState.cc
  7169. * src/ResourcesMetalinkParserState.h
  7170. * src/VerificationMetalinkParserState.cc
  7171. * src/VerificationMetalinkParserState.h
  7172. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7174. * src/A2STR.cc
  7175. * src/A2STR.h
  7176. * src/File.cc
  7177. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7178. Defined static const std::string IP("ip"), PORT("port") and use them
  7179. instead of string literals.
  7180. * src/DefaultPeerListProcessor.cc
  7181. * src/DefaultPeerListProcessor.h
  7182. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7183. Made string literals for torrent file processing static const
  7184. std::string.
  7185. * src/BtContext.cc
  7186. * src/BtContext.h
  7187. * src/DefaultBtContext.cc
  7188. * src/DefaultBtContext.h
  7189. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. Made string literal for tracker response static const std::string
  7191. * src/BtAnnounce.cc
  7192. * src/BtAnnounce.h
  7193. * src/DefaultBtAnnounce.cc
  7194. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. Use DHTMessage::T instead of "t".
  7196. * src/DHTMessageTracker.cc (messageArrived)
  7197. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Made keyName static const. Made trimmed charset static const
  7199. std::string.
  7200. * src/Util.cc (getContentDispositionFilename)
  7201. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Made USER_AGENT const. Made "/" static const std::string.
  7203. * src/A2STR.cc
  7204. * src/A2STR.h
  7205. * src/HttpRequest.cc
  7206. * src/HttpRequest.h
  7207. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7208. Made string listeral to static const std::string:
  7209. "Content-Range", "Content-Length"
  7210. * src/HttpHeader.cc
  7211. * src/HttpHeader.h
  7212. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Made string listeral to static const std::string.
  7214. * src/HttpConnection.cc
  7215. * src/HttpHeader.cc
  7216. * src/HttpHeader.h
  7217. * src/HttpResponse.cc
  7218. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7219. Made string listeral to static const std::string.
  7220. * src/A2STR.cc
  7221. * src/A2STR.h
  7222. * src/SimpleLogger.cc
  7223. * src/SimpleLogger.h
  7224. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7225. Made string literal to static const std::string.
  7226. Rewritten CookieParser::setField.
  7227. * src/A2STR.cc
  7228. * src/A2STR.h
  7229. * src/CookieBoxFactory.cc
  7230. * src/CookieBoxFactory.h
  7231. * src/CookieParser.cc
  7232. * src/CookieParser.h
  7233. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Made string literal to static const std::string
  7235. * src/DHTAbstractMessage.cc
  7236. * src/DHTAnnouncePeerMessage.cc
  7237. * src/DHTAnnouncePeerMessage.h
  7238. * src/DHTAnnouncePeerReplyMessage.cc
  7239. * src/DHTAnnouncePeerReplyMessage.h
  7240. * src/DHTFindNodeMessage.cc
  7241. * src/DHTFindNodeMessage.h
  7242. * src/DHTFindNodeReplyMessage.cc
  7243. * src/DHTFindNodeReplyMessage.h
  7244. * src/DHTGetPeersMessage.cc
  7245. * src/DHTGetPeersMessage.h
  7246. * src/DHTGetPeersReplyMessage.cc
  7247. * src/DHTGetPeersReplyMessage.h
  7248. * src/DHTMessage.cc
  7249. * src/DHTMessage.h
  7250. * src/DHTMessageFactoryImpl.cc
  7251. * src/DHTMessageReceiver.cc
  7252. * src/DHTPingMessage.cc
  7253. * src/DHTPingMessage.h
  7254. * src/DHTPingReplyMessage.cc
  7255. * src/DHTPingReplyMessage.h
  7256. * src/DHTQueryMessage.cc
  7257. * src/DHTQueryMessage.h
  7258. * src/DHTResponseMessage.cc
  7259. * src/DHTResponseMessage.h
  7260. * src/DHTUnknownMessage.cc
  7261. * src/DHTUnknownMessage.h
  7262. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7263. Made string literal to static const std::string
  7264. * src/BtChokeMessage.cc (toString)
  7265. * src/BtHaveAllMessage.cc (toString)
  7266. * src/BtHaveNoneMessage.cc (toString)
  7267. * src/BtInterestedMessage.cc (toString)
  7268. * src/BtNotInterestedMessage.cc (toString)
  7269. * src/BtUnchokeMessage.cc (toString)
  7270. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. Replaced "" with static const variable A2STR::NIL.
  7272. Replaced string comparison against "" with std::string::empty().
  7273. Added PROTO_* to Request class and use them as a protocol string
  7274. constant.
  7275. Made "started", "stopped", "completed" static const variable in
  7276. AnnounceList class.
  7277. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7278. Updated translations. Great thanks to translators.
  7279. * po/ca.po
  7280. * po/de.po
  7281. * po/fr.po
  7282. * po/it.po
  7283. * po/ja.po
  7284. * po/ru.po
  7285. * po/zh_CN.po
  7286. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7287. Updated man page; categorized options and fixed typo.
  7288. * doc/aria2c.1.txt
  7289. * doc/aria2c.1.html
  7290. * doc/aria2c.1
  7291. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7292. Removed const ref
  7293. * src/MetalinkEntry.cc (AddProtocolPreference)
  7294. * src/RequestGroup.cc (FindServerHostByHostname)
  7295. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7296. Rewritten Accept-Features handling.
  7297. * src/HttpRequestCommand.cc (createHttpRequest)
  7298. * src/a2functional.h
  7299. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Changed method signature:
  7301. DHTAbstractNodeLookupTask::toEntries
  7302. * src/DHTAbstractNodeLookupTask.cc
  7303. * src/DHTAbstractNodeLookupTask.h
  7304. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7305. Changed method signature:
  7306. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7307. * src/BtContext.h
  7308. * src/DefaultBtContext.cc
  7309. * src/DefaultBtContext.h
  7310. * src/DefaultBtInteractive.cc
  7311. * test/DefaultBtContextTest.cc
  7312. * test/MockBtContext.h
  7313. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7314. Changed method signature:
  7315. MultiFileAllocationIterator::makeDiskWriterEntries
  7316. * src/MultiFileAllocationIterator.cc
  7317. * src/MultiFileAllocationIterator.h
  7318. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Changed method sinature:
  7320. MetalinkEntry::toFileEntry,
  7321. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7322. Metalinker::queryEntry
  7323. * src/Metalink2RequestGroup.cc
  7324. * src/MetalinkEntry.cc
  7325. * src/MetalinkEntry.h
  7326. * src/MetalinkHelper.cc
  7327. * src/MetalinkHelper.h
  7328. * src/Metalinker.cc
  7329. * src/Metalinker.h
  7330. * src/main.cc
  7331. * test/MetalinkHelperTest.cc
  7332. * test/MetalinkerTest.cc
  7333. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7334. Changed method sinature:
  7335. RequestGroup::getURIs
  7336. * src/RequestGroup.cc
  7337. * src/RequestGroup.h
  7338. * test/Metalink2RequestGroupTest.cc
  7339. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Changed method signature:
  7341. PeerListProcessor::extractPeer
  7342. * src/CompactPeerListProcessor.cc
  7343. * src/CompactPeerListProcessor.h
  7344. * src/DefaultBtAnnounce.cc
  7345. * src/DefaultPeerListProcessor.cc
  7346. * src/DefaultPeerListProcessor.h
  7347. * src/DelegatingPeerListProcessor.cc
  7348. * src/DelegatingPeerListProcessor.h
  7349. * src/PeerListProcessor.h
  7350. * src/UTPexExtensionMessage.cc
  7351. * test/DefaultPeerListProcessorTest.cc
  7352. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7353. Changed method signature:
  7354. BtRequestFactory::createRequestMessages,
  7355. BtRequestFactory::createRequestMessagesOnEndGame
  7356. * src/BtRequestFactory.h
  7357. * src/DefaultBtInteractive.cc
  7358. * src/DefaultBtRequestFactory.cc
  7359. * src/DefaultBtRequestFactory.h
  7360. * test/DefaultBtRequestFactoryTest.cc
  7361. * test/MockBtRequestFactory.h
  7362. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Changed method signature:
  7364. PieceStorage::getInFlightPieces
  7365. * src/DefaultBtProgressInfoFile.cc
  7366. * src/DefaultPieceStorage.cc
  7367. * src/DefaultPieceStorage.h
  7368. * src/PieceStorage.h
  7369. * src/UnknownLengthPieceStorage.cc
  7370. * src/UnknownLengthPieceStorage.h
  7371. * test/DefaultBtProgressInfoFileTest.cc
  7372. * test/MockPieceStorage.h
  7373. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7374. Changed method signature:
  7375. PostDownloadHandler::getNextRequestGroups
  7376. Metalink2RequestGroup::generate
  7377. RequestGroup::postDownloadProcessing
  7378. * src/BtPostDownloadHandler.cc
  7379. * src/BtPostDownloadHandler.h
  7380. * src/Metalink2RequestGroup.cc
  7381. * src/Metalink2RequestGroup.h
  7382. * src/MetalinkPostDownloadHandler.cc
  7383. * src/MetalinkPostDownloadHandler.h
  7384. * src/PostDownloadHandler.h
  7385. * src/RequestGroup.cc
  7386. * src/RequestGroup.h
  7387. * src/RequestGroupMan.cc
  7388. * src/main.cc
  7389. * test/BtPostDownloadHandlerTest.cc
  7390. * test/Metalink2RequestGroupTest.cc
  7391. * test/MetalinkPostDownloadHandlerTest.cc
  7392. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. Rewritten AccRequestGroup
  7394. * src/main.cc
  7395. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7396. Rewritten.
  7397. * src/TaggedItem.cc (toTagString)
  7398. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Rewritten Accept-Features handling.
  7400. * src/HttpRequestCommand.cc (createHttpRequest)
  7401. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Rewritten accept types handling.
  7403. * HttpRequest.cc (createRequest)
  7404. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. Rewritten
  7406. * src/FeatureConfig.cc (featureSummary)
  7407. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. Changed method signature:
  7409. PeerStorage::getActivePeers
  7410. * src/DHTPeerAnnounceEntry.cc
  7411. * src/DefaultPeerStorage.cc
  7412. * src/DefaultPeerStorage.h
  7413. * src/PeerStorage.h
  7414. * test/DefaultPeerStorageTest.cc
  7415. * test/MockPeerStorage.h
  7416. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Changed method signature:
  7418. DHTPeerAnnounceStorage::getPeers,
  7419. DHTPeerAnnounceEntry::getPeers
  7420. * src/DHTGetPeersMessage.cc
  7421. * src/DHTPeerAnnounceEntry.cc
  7422. * src/DHTPeerAnnounceEntry.h
  7423. * src/DHTPeerAnnounceStorage.cc
  7424. * src/DHTPeerAnnounceStorage.h
  7425. * test/DHTAnnouncePeerMessageTest.cc
  7426. * test/DHTPeerAnnounceEntryTest.cc
  7427. * test/DHTPeerAnnounceStorageTest.cc
  7428. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7429. Changed method signature:
  7430. NameResolver::resolve
  7431. * src/DHTEntryPointNameResolveCommand.cc
  7432. * src/InitiateConnectionCommand.cc
  7433. * src/NameResolver.cc
  7434. * src/NameResolver.h
  7435. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7436. Changed method signature:
  7437. PieceStorage::getAdvertisedPieceIndexes
  7438. * src/DefaultBtInteractive.cc
  7439. * src/DefaultPieceStorage.cc
  7440. * src/DefaultPieceStorage.h
  7441. * src/PieceStorage.h
  7442. * src/UnknownLengthPieceStorage.h
  7443. * test/MockPieceStorage.h
  7444. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. Changed method signature:
  7446. SegmentMan::getInFlightSegment
  7447. * src/AbstractCommand.cc
  7448. * src/SegmentMan.cc
  7449. * src/SegmentMan.h
  7450. * test/SegmentManTest.cc
  7451. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Changed method signature:
  7453. DHTAbstractNodeLookupTask::getNodesFromMessage
  7454. * src/DHTAbstractNodeLookupTask.cc
  7455. * src/DHTAbstractNodeLookupTask.h
  7456. * src/DHTNodeLookupTask.cc
  7457. * src/DHTNodeLookupTask.h
  7458. * src/DHTPeerLookupTask.cc
  7459. * src/DHTPeerLookupTask.h
  7460. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7461. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7462. * src/AbstractCommand.cc
  7463. * src/BtCheckIntegrityEntry.cc
  7464. * src/BtCheckIntegrityEntry.h
  7465. * src/BtFileAllocationEntry.cc
  7466. * src/BtFileAllocationEntry.h
  7467. * src/BtSetup.cc
  7468. * src/BtSetup.h
  7469. * src/CheckIntegrityCommand.cc
  7470. * src/CheckIntegrityEntry.h
  7471. * src/ChecksumCheckIntegrityEntry.cc
  7472. * src/ChecksumCheckIntegrityEntry.h
  7473. * src/DHTSetup.cc
  7474. * src/DHTSetup.h
  7475. * src/DownloadEngine.cc
  7476. * src/FileAllocationCommand.cc
  7477. * src/FileAllocationEntry.h
  7478. * src/RequestGroup.cc
  7479. * src/RequestGroup.h
  7480. * src/RequestGroupMan.cc
  7481. * src/RequestGroupMan.h
  7482. * src/StreamCheckIntegrityEntry.cc
  7483. * src/StreamCheckIntegrityEntry.h
  7484. * src/StreamFileAllocationEntry.cc
  7485. * src/StreamFileAllocationEntry.h
  7486. * src/TrackerWatcherCommand.cc
  7487. * src/a2functional.h
  7488. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7489. Changed method signature:
  7490. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7491. DHTBucket::getGoodNodes,
  7492. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7493. * src/BNode.cc
  7494. * src/BNode.h
  7495. * src/DHTAbstractNodeLookupTask.cc
  7496. * src/DHTAutoSaveCommand.cc
  7497. * src/DHTBucket.cc
  7498. * src/DHTBucket.h
  7499. * src/DHTBucketRefreshTask.cc
  7500. * src/DHTFindNodeMessage.cc
  7501. * src/DHTGetPeersMessage.cc
  7502. * src/DHTRoutingTable.cc
  7503. * src/DHTRoutingTable.h
  7504. * test/BNodeTest.cc
  7505. * test/DHTBucketTest.cc
  7506. * test/DHTRoutingTableTest.cc
  7507. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. In piece selection functions, Pass std::deque<...> by reference rather
  7509. than returning it.
  7510. * src/BitfieldMan.cc
  7511. * src/BitfieldMan.h
  7512. * src/DefaultBtRequestFactory.cc
  7513. * src/DefaultPieceStorage.cc
  7514. * src/Piece.cc
  7515. * src/Piece.h
  7516. * test/BitfieldManTest.cc
  7517. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7518. Implemented rarest piece first piece selection strategy.
  7519. * src/AbstractBtMessage.cc
  7520. * src/AbstractBtMessage.h
  7521. * src/BitfieldMan.cc
  7522. * src/BitfieldMan.h
  7523. * src/BtBitfieldMessage.cc
  7524. * src/BtHaveAllMessage.cc
  7525. * src/BtHaveMessage.cc
  7526. * src/DefaultPieceStorage.cc
  7527. * src/DefaultPieceStorage.h
  7528. * src/PeerInteractionCommand.cc
  7529. * src/PieceStorage.h
  7530. * src/UnknownLengthPieceStorage.h
  7531. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7532. Rewritten readData and writeData.
  7533. * src/MultiDiskAdaptor.cc
  7534. * src/MultiDiskAdaptor.h
  7535. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7536. Move \n out of the message "Usage: ...".
  7537. * src/version_usage.cc
  7538. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7539. Bump up version number to 0.13.2b.
  7540. * configure.ac
  7541. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Added const qualifier to argument Exception& e.
  7543. * src/Logger.h
  7544. * src/SimpleLogger.cc
  7545. * src/SimpleLogger.h
  7546. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. Pool connection when CWD, SIZE command fails.
  7548. * src/FtpNegotiationCommand.cc
  7549. * src/FtpNegotiationCommand.h
  7550. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7552. * src/HttpResponseCommand.cc
  7553. * src/HttpSkipResponseCommand.cc
  7554. * src/HttpSkipResponseCommand.h
  7555. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7556. Pool connection when a server returns 4xx, 5xx responses.
  7557. * src/HttpNullDownloadCommand.cc
  7558. * src/HttpNullDownloadCommand.h
  7559. * src/HttpResponse.cc
  7560. * src/HttpResponse.h
  7561. * src/HttpResponseCommand.cc
  7562. * src/HttpResponseCommand.h
  7563. * test/HttpResponseTest.cc
  7564. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Print usage when no URL is specifed or bad command-line option is
  7566. specified.
  7567. * src/HelpItemFactory.cc
  7568. * src/help_tags.h
  7569. * src/option_processing.cc
  7570. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Removed duplicate log message.
  7572. * src/AbstractCommand.cc (asyncResolveHostname)
  7573. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7574. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7575. Changed -j option's default value from 5 to 1.
  7576. Added new examples using protocol auto detection feature.
  7577. Removed -T, -M usage where it can be omitted.
  7578. * doc/aria2c.1.txt
  7579. * doc/aria2c.1.html
  7580. * doc/aria2c.1.txt
  7581. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7582. Updated command-line usage text, so that it tells users that they
  7583. can specify any number of torrent files and metalink files in
  7584. command-line.
  7585. * src/version_usage.cc
  7586. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Changed the default value of -j option to 1.
  7588. * src/HelpItemFactory.cc
  7589. * src/option_processing.cc
  7590. * src/usage_text.h
  7591. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7592. Added the ability to reuse connection in FTP and it is enabled by
  7593. default. It can be disabled by --ftp-reuse-connection=false option.
  7594. * src/Command.cc
  7595. * src/DownloadCommand.cc
  7596. * src/FtpDownloadCommand.cc
  7597. * src/FtpDownloadCommand.h
  7598. * src/FtpFinishDownloadCommand.cc
  7599. * src/FtpFinishDownloadCommand.h
  7600. * src/FtpInitiateConnectionCommand.cc
  7601. * src/FtpNegotiationCommand.cc
  7602. * src/FtpNegotiationCommand.h
  7603. * src/HelpItemFactory.cc
  7604. * src/Makefile.am
  7605. * src/Makefile.in
  7606. * src/OptionHandlerFactory.cc
  7607. * src/option_processing.cc
  7608. * src/prefs.h
  7609. * src/usage_text.h
  7610. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. Call Command::transitStatus() before calling Command::execute(),
  7612. so that the status change made in execute() is not cleared.
  7613. * src/DownloadEngine.cc
  7614. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Removed forward declaration of SocketCore class.
  7616. * src/HttpDownloadCommand.h
  7617. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7619. in InitiateConnectionCommandFactory. They should be set only when
  7620. the protocol is HTTP or HTTPS.
  7621. * src/InitiateConnectionCommandFactory.cc
  7622. * src/RequestGroup.cc
  7623. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Fixed infinite loop in checksum checking.
  7625. * src/IteratableChecksumValidator.cc
  7626. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7627. Set _supportsPersistentConnection to true by default.
  7628. * src/Request.cc
  7629. * src/RequestGroup.cc
  7630. * test/HttpRequestTest.cc
  7631. * test/RequestTest.cc
  7632. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7633. Added timeout to socket pool. The default timeout is 15 seconds,
  7634. which is the same value Apache uses.
  7635. * src/DownloadEngine.cc
  7636. * src/DownloadEngine.h
  7637. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7638. Fixed misuse of multimap::find()
  7639. * src/HttpHeader.cc
  7640. * test/HttpHeaderTest.cc
  7641. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7642. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7643. option.
  7644. The asynchronous DNS is not capable of IPv6 yet.
  7645. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7646. least for HTTP download.
  7647. * src/AbstractCommand.cc
  7648. * src/AbstractCommand.h
  7649. * src/AsyncNameResolver.cc
  7650. * src/AsyncNameResolver.h
  7651. * src/DHTEntryPointNameResolveCommand.cc
  7652. * src/DHTEntryPointNameResolveCommand.h
  7653. * src/DownloadEngine.cc
  7654. * src/DownloadEngine.h
  7655. * src/FtpInitiateConnectionCommand.cc
  7656. * src/FtpInitiateConnectionCommand.h
  7657. * src/HelpItemFactory.cc
  7658. * src/HttpInitiateConnectionCommand.cc
  7659. * src/HttpInitiateConnectionCommand.h
  7660. * src/InitiateConnectionCommand.cc
  7661. * src/InitiateConnectionCommand.h
  7662. * src/Makefile.am
  7663. * src/Makefile.in
  7664. * src/NameResolver.cc
  7665. * src/NameResolver.h
  7666. * src/OptionHandlerFactory.cc
  7667. * src/SocketCore.cc
  7668. * src/SocketCore.h
  7669. * src/Util.cc
  7670. * src/Util.h
  7671. * src/option_processing.cc
  7672. * src/prefs.h
  7673. * src/usage_text.h
  7674. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7675. Updated man page: --quiet, --header were added.
  7676. --metalink-servers and --enable-http-keep-alive option were updated.
  7677. * doc/aria2c.1
  7678. * doc/aria2c.1.html
  7679. * doc/aria2c.1.txt
  7680. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Enable HTTP keep-alive by default.
  7682. * src/HelpItemFactory.cc
  7683. * src/option_processing.cc
  7684. * src/usage_text.h
  7685. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Disable http keep-alive if the remote server is not HTTP/1.1.
  7687. * src/HttpConnection.cc
  7688. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Receive content body of 302 response so that the connection can be
  7690. reused later when http keep-alive is enabled.
  7691. * src/HttpNullDownloadCommand.cc
  7692. * src/HttpNullDownloadCommand.h
  7693. * src/HttpResponseCommand.cc
  7694. * src/HttpResponseCommand.h
  7695. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. const SharedHandle<Request> -> const SharedHandle<Request>&
  7697. * src/FtpDowndloadCommand.cc
  7698. * src/FtpDowndloadCommand.h
  7699. * src/HttpDownloadCommand.cc
  7700. * src/HttpDownloadCommand.h
  7701. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Fixed the bug that the control file(.aria2 file) is not renamed
  7703. according to tryAutoFileRenaming().
  7704. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7705. its control file exist, use them and continue download.
  7706. The old implementation didn't take into account of control file's
  7707. existence, so basically you couldn't continue download of renamed file.
  7708. * src/BtProgressInfoFile.h
  7709. * src/DefaultBtProgressInfoFile.cc
  7710. * src/DefaultBtProgressInfoFile.h
  7711. * src/NullProgressInfoFile.h
  7712. * src/RequestGroup.cc
  7713. * test/DefaultBtProgressInfoFileTest.cc
  7714. * test/MockBtProgressInfoFile.h
  7715. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Change the default value of --metalink-servers option from `5' to `1'.
  7717. * src/HelpItemFactory.cc
  7718. * src/option_processing.cc
  7719. * src/usage_text.h
  7720. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Reimplemented transparent metalink using Accept request header.
  7722. * src/HttpRequest.cc
  7723. * src/HttpRequest.h
  7724. * src/HttpRequestCommand.cc
  7725. * src/Metalink2RequestGroup.cc
  7726. * src/RequestGroup.cc
  7727. * src/RequestGroup.h
  7728. * test/HttpRequestTest.cc
  7729. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. Bump up version number to 0.13.2a
  7731. * configure.ac
  7732. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Updated configure.ac using the result of autoscan.
  7734. * configure.ac
  7735. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7736. Fixed compilation error without gcrypt/openssl.
  7737. * src/DownloadCommand.cc
  7738. * src/DownloadCommand.h
  7739. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7740. Reorganized version information so that it can be displayed in a
  7741. standard terminal screen without scrolling.
  7742. Removed http, ftp from Configuration section, because they are always
  7743. enabled.
  7744. * src/FeatureConfig.cc
  7745. * src/FeatureConfig.h
  7746. * src/main.cc
  7747. * src/messageDigest.cc
  7748. * src/messageDigest.h
  7749. * src/version_usage.cc
  7750. * test/FeatureConfigTest.cc
  7751. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Masked user ID in log.
  7753. * src/FtpConnection.cc (sendUser)
  7754. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Removed query part from filename in HTTP download. The query part means
  7756. the substring after "?" in URL. Firefox seems do the same thing.
  7757. A query part is sometimes very long and not suitable to filename,
  7758. so I think it is better to remove it from filename.
  7759. * src/HttpRequest.cc
  7760. * src/HttpRequest.h
  7761. * src/Request.cc
  7762. * src/Request.h
  7763. * test/HttpRequestTest.cc
  7764. * test/RequestTest.cc
  7765. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7766. Rewritten Exception class. Throw exception object, not its pointer and
  7767. catch by reference, so that remove problematic delete operator for
  7768. catched exception.
  7769. * src/Exception.cc
  7770. * src/Exception.h
  7771. * test/ExceptionTest.cc
  7772. * src/*: All files throwing/catching exception.
  7773. * test/*: All files throwing/catching exception.
  7774. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Now auto protocol detection is enabled without -Z option.
  7776. But there is a important difference between with/without -Z optoin.
  7777. For example, if you type:
  7778. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7779. then, aria2 interprets there are 3 request groups:
  7780. (1) http://host/file, http://mirror/file <-- multi-source download
  7781. (2) file1.torrent
  7782. (3) file2.metalink
  7783. On the other hand, if you invoke above command with -Z option, it is
  7784. interpreted as 4 request groups:
  7785. (1) http://host/file
  7786. (2) file1.torrent
  7787. (3) file2.metalink
  7788. (4) http://mirror/file
  7789. I think usually user don't mix multi-source URLs and torrent files, so
  7790. there is no big problem here.
  7791. * src/main.cc
  7792. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7793. Fixed the bug that causes segmentaion fault when reading XML containing
  7794. unescapsed character like '&'.
  7795. Also a modification was made which avoids adding unnecessary
  7796. characters stack and appending unused string.
  7797. * src/ExpatMetalinkProcessor.cc
  7798. * src/FileMetalinkParserState.h
  7799. * src/FilesMetalinkParserState.h
  7800. * src/FinMetalinkParserState.h
  7801. * src/HashMetalinkParserState.h
  7802. * src/InitialMetalinkParserState.h
  7803. * src/LanguageMetalinkParserState.h
  7804. * src/MetalinkMetalinkParserState.h
  7805. * src/MetalinkParserState.h
  7806. * src/MetalinkParserStateMachine.cc
  7807. * src/MetalinkParserStateMachine.h
  7808. * src/OSMetalinkParserState.h
  7809. * src/PieceHashMetalinkParserState.h
  7810. * src/PiecesMetalinkParserState.h
  7811. * src/ResourcesMetalinkParserState.h
  7812. * src/SizeMetalinkParserState.h
  7813. * src/SkipTagMetalinkParserState.h
  7814. * src/URLMetalinkParserState.h
  7815. * src/VerificationMetalinkParserState.h
  7816. * src/VersionMetalinkParserState.h
  7817. * src/XML2SAXMetalinkProcessor.cc
  7818. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Added StringFormat class, which internally calls vasprintf.
  7820. operator<< is defined for this class, so it can be used with iostream
  7821. classes nicely. SimpleLogger and following functions are rewritten
  7822. using StringFormat class.
  7823. Besides, now Logger class's methods are non-const, many classes
  7824. that has a const Logger* as a member variable are modified to remove
  7825. const qualifier from the variable declaration.
  7826. * src/HelpItemFactory.cc
  7827. * src/Request.cc
  7828. * src/SimpleLogger.cc
  7829. * src/StringFormat.cc
  7830. * src/StringFormat.h
  7831. * src/Util.cc
  7832. * src/option_processing.cc
  7833. * src/version_usage.cc
  7834. * test/StringFormatTest.cc
  7835. * src/*.h: The classes that has const Logger* as a member variable.
  7836. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7838. failed. Also fixed memory link when exception is thrown there.
  7839. * src/main.cc (AccRequestGroup)
  7840. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. Added build-in "Accept-Features" support. For now only "metalink" is
  7842. used in this header field.
  7843. This "metalink" value is removed from the list when connecting URLs
  7844. fed by metalink file to avoid loop in "transparent" metlaink.
  7845. * src/HttpRequest.cc
  7846. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7847. header is also held in this variable. Also renamed setUserHeaders as
  7848. addHeader and it was rewritten to add header not just to clear the old
  7849. value.
  7850. * src/HttpRequestCommand.cc
  7851. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7852. from "Accept-Features" list.
  7853. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7854. default.
  7855. * src/RequestGroup.h
  7856. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7857. * src/a2functional.h: Included <string> because Concat class depends on
  7858. it.
  7859. * test/HttpRequestTest.cc
  7860. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7861. Added comment
  7862. * src/RequestGroup.cc (createNextCommand)
  7863. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Capitalized METHOD_GET and METHOD_HEAD
  7865. * src/Request.cc
  7866. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Added getDownloadResults() method
  7868. * src/RequestGroupMan.cc
  7869. * src/RequestGroupMan.h
  7870. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7871. Fixed the bug that aria2 exits when commands is empty() but
  7872. _routineCommands are not.
  7873. * src/DownloadEngine.cc
  7874. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7875. Use the default value pulled from Option object in HelpItemFactory.
  7876. except options whose defualt value is embedded in a usage text.
  7877. * src/HelpItemFactory.cc
  7878. * src/HelpItemFactory.h
  7879. * src/option_processing.cc
  7880. * src/version_usage.cc
  7881. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7882. Added --quiet option to make aria2 quiet (no console output).
  7883. --quiet option is tagged with ADVANCED.
  7884. * src/HelpItemFactory.cc
  7885. * src/LogFactory.cc
  7886. * src/LogFactory.h
  7887. * src/MultiUrlRequestInfo.cc
  7888. * src/MultiUrlRequestInfo.h
  7889. * src/NullStatCalc.h: New class. This class prints nothing.
  7890. * src/OptionHandlerFactory.cc
  7891. * src/main.cc
  7892. * src/option_processing.cc
  7893. * src/prefs.h
  7894. * src/usage_text.h
  7895. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7896. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7897. * src/HelpItemFactory.cc (createHelpItems):
  7898. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7899. Fixed compilation error in ExpatMetalinkProcessor.cc
  7900. * src/ExpatMetalinkProcessor.cc
  7901. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. Reuse socket if the origin server supports HTTP keep-alive and
  7903. --enable-http-keep-alive or --enable-http-pipelining is given.
  7904. The current implementation doesn't reuse the connections established
  7905. against proxy server.
  7906. * src/AbstractCommand.cc
  7907. * src/DownloadEngine.cc
  7908. * src/DownloadEngine.h
  7909. * src/HttpDownloadCommand.cc
  7910. * src/HttpInitiateConnectionCommand.cc
  7911. * src/HttpResponseCommand.cc
  7912. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7913. Rewritten HTTP keep-alive and pipelining routine.
  7914. * src/AbstractCommand.cc
  7915. * src/HttpConnection.cc
  7916. * src/HttpDownloadCommand.cc
  7917. * src/HttpRequest.cc
  7918. * src/HttpRequestCommand.cc
  7919. * src/HttpResponseCommand.cc
  7920. * src/Request.cc
  7921. * src/Request.h
  7922. * src/RequestGroup.cc
  7923. * test/HttpRequestTest.cc
  7924. * test/HttpResponseTest.cc
  7925. * test/RequestTest.cc
  7926. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7927. Added missing setUserHeaders call
  7928. * src/HttpRequestCommand.cc
  7929. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7930. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7931. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7932. waste of time because it is more likey false.
  7933. * src/FileAllocationDispatcherCommand.cc (execute)
  7934. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Now HTTP status and version are a member variable of HttpHeader.
  7936. HTTP status is processed as a string, not integer.
  7937. * src/AbstractProxyResponseCommand.cc
  7938. * src/HttpConnection.cc
  7939. * src/HttpHeader.cc
  7940. * src/HttpHeader.h
  7941. * src/HttpHeaderProcessor.cc
  7942. * src/HttpHeaderProcessor.h
  7943. * src/HttpResponse.cc
  7944. * src/HttpResponse.h
  7945. * test/HttpHeaderProcessorTest.cc
  7946. * test/HttpResponseTest.cc
  7947. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Added --header option. You can specify any number of additional HTTP headers
  7949. like:
  7950. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7951. Unlike other commad-line option, you can use --header option multiple times.
  7952. * src/HelpItemFactory.cc
  7953. * src/HttpRequest.{cc, h}
  7954. * src/HttpRequestCommand.cc
  7955. * src/OptionHandlerFactory.cc
  7956. * src/OptionHandlerImpl.h
  7957. * src/option_processing.cc
  7958. * src/prefs.h
  7959. * src/usage_text.h
  7960. * test/HttpRequestTest.cc (testUserHeaders)
  7961. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Eliminates the time lag between sequential downloads and commands in
  7963. the same RequestGroup.
  7964. In old implementation, aria2 occasionally waits 1 seconds before
  7965. executing next command or RequestGroup.
  7966. This is really a waste of time, and new implementation eliminates
  7967. this unnecessary time lag.
  7968. * src/AbstractCommand.cc
  7969. * src/AutoSaveCommand.cc
  7970. * src/CheckIntegrityCommand.cc
  7971. * src/Command.{cc, h}
  7972. * src/DownloadEngine.{cc, h}
  7973. * src/DownloadEngineFactory.cc
  7974. * src/FileAllocationCommand.cc
  7975. * src/FileAllocationDispatcherCommand.cc
  7976. * src/FillRequestGroupCommand.cc
  7977. * src/FtpInitiateConnectionCommand.cc
  7978. * src/HaveEraseCommand.cc
  7979. * src/HttpInitiateConnectionCommand.cc
  7980. * src/HttpResponseCommand.cc
  7981. * src/RealtimeCommand.cc
  7982. * src/RequestGroup.cc
  7983. * src/RequestGroupMan.cc
  7984. * src/StreamFileAllocationEntry.cc
  7985. * src/TimeBasedCommand.{cc, h}
  7986. * src/TimedHaltCommand.cc
  7987. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7988. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7989. keyword explicit and SharedHandle's default constructor initializes
  7990. its internal obj to null, old implementation initializes it using
  7991. obj's default constructor.
  7992. To assign null, write SharedHandle<T> x(...); x.reset();
  7993. TODO: test/SharedHandleTest.cc needs more tests.
  7994. * src/SharedHandle.h
  7995. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Fixed type in man page.
  7997. * doc/aria2c.1.txt
  7998. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7999. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8000. * src/SimpleLogger.{cc, h}
  8001. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8002. Implemented auto protocol detection.
  8003. Now you can do:
  8004. aria2c -Z http://host/file file1.torrent file2.metalink
  8005. (Note: -Z option is required for auto protcol detection.)
  8006. Then aria2c downloads 3 files simultaneously:
  8007. 1. http://host/file
  8008. 2. file1.torrent <-- read local torrent file
  8009. 3. file2.metalink <-- read local Metalink file.
  8010. Same thing goes with -i option. Assume your uris.txt contans:
  8011. http://host/file
  8012. file1.torrent
  8013. file2.metalink
  8014. Then you can do: aria2c -i uris.txt
  8015. (Note: -Z option is not needed if -i option is given.)
  8016. * src/main.cc
  8017. * src/ProtocolDetector.{cc, h}
  8018. * test/ProtocolDetectorTest.cc
  8019. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8021. installed
  8022. * src/ARC4Encryptor.h
  8023. * src/ARC4Decryptor.h
  8024. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8025. Renamed argument from 'errno' to 'err', since errno is confused with
  8026. errno defined in errno.h.
  8027. * src/LibgcryptARC4Decryptor.h
  8028. * src/LibgcryptARC4Context.h
  8029. * src/LibgcryptDHKeyExchange.h
  8030. * src/LibgcryptARC4Encryptor.h
  8031. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8032. Rewritten choking algorithm.
  8033. * src/PeerChokeCommand.{cc, h}
  8034. * src/BtInterestedMessage.cc
  8035. * src/PeerSessionResource.{cc, h}
  8036. * src/DefaultPeerStorage.{cc, h}
  8037. * src/BtNotInterestedMessage.cc
  8038. * src/DefaultBtMessageDispatcher.{cc, h}
  8039. * src/BtMessageDispatcher.h
  8040. * src/Peer.{cc, h}
  8041. * src/BtLeecherStateChoke.{cc, h}
  8042. * src/BtSetup.cc
  8043. * src/BtSeederStateChoke.{cc, h}
  8044. * src/PeerStorage.h
  8045. * test/MockPeerStorage.h
  8046. * test/MockBtMessageDispatcher.h
  8047. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8048. Fixed compilation error on x84-64 platform.
  8049. * src/AuthConfig.cc: Included ostream.
  8050. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. Rewritten getBasename() and getDirname(), without standard library
  8052. basename(), dirname().
  8053. * src/File.cc
  8054. * test/FileTest.cc
  8055. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Added Simplified Chinese translation. Also updated the following
  8057. translations: Polish, Dutch, German. Great thanks to all translators.
  8058. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8059. Suppress content-range error when 'Content-Range' response header
  8060. doesn't contains bytes-unit specifier 'bytes'
  8061. * src/HttpHeader.cc (getRange)
  8062. * test/HttpHeaderTest.cc
  8063. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Fixed compilation error with g++-4.3
  8065. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. Added missing include files for MinGW
  8067. * test/HttpHeaderProcessorTest.cc
  8068. * test/DHTRoutingTableSerializerTest.cc
  8069. * test/DHTRoutingTableDeserializerTest.cc
  8070. * test/UriListParserTest.cc
  8071. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8072. Now download line is printed nicely with no garbage at the end of
  8073. line. I use ioctl to get the columns of terminal.
  8074. If stdout is redirected to another device, instead of carriage return,
  8075. end of line '\n' character is used. This is feature request#1909659
  8076. * src/ConsoleStatCalc.cc (calculateStat)
  8077. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8078. Included a2time.h
  8079. * src/DHTMessageDispatcher.h
  8080. * src/DHTMessageEntry.h
  8081. * src/DHTReplaceNodeTask.h
  8082. * src/DHTMessageTracker.h
  8083. * src/Util.h
  8084. * src/CookieBox.h
  8085. * src/SocketCore.h
  8086. * src/DefaultBtMessageDispatcher.h
  8087. * src/SocketCore.cc
  8088. * src/Util.cc
  8089. * src/DHTPingTask.h
  8090. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. Fixed high memory footprint when DHT is enabled.
  8092. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8093. queued than it is processed and the queue is getting longer. As a
  8094. consequence, momory usage is increased.
  8095. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8096. replacement cache in DHTBucket which is described in Kademlia paper.
  8097. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8098. DHTReplaceNodeTask.
  8099. * src/DHTBucket.{h, cc}
  8100. (cacheNode): New function.
  8101. (getCachedNodes): New function.
  8102. (dropNode): Push back cached node to _nodes.
  8103. * test/DHTBucketTest.cc
  8104. (testCacheNode): New test
  8105. (testDropNode): New test
  8106. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8107. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8108. the unused 4KB memory when ssl is not used.
  8109. * src/SocketCore.cc
  8110. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Added summary log for peer announce storage.
  8112. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8113. Removed cast
  8114. * src/DefaultPeerStorage.cc (addPeer)
  8115. Log exception message
  8116. * src/DHTMessageTracker.cc (handleTimeout)
  8117. Fixed casting
  8118. * test/HttpRequestTest.cc
  8119. * test/MetalinkProcessorTest.cc
  8120. * test/PieceTest.cc
  8121. * test/MetalinkEntryTest.cc
  8122. * test/SequenceTest.cc
  8123. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8124. * src/ParameterizedStringParser.cc (createLoop):
  8125. Removed unused variable sstep.
  8126. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8127. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. * src/Util.{h, cc}
  8129. (parseUInt): New function.
  8130. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8131. The actual range is uint32_t.
  8132. * test/UtilTest.cc
  8133. * src/ParameterizedStringParser.cc:
  8134. Use Util::parseUInt() for loop variables.
  8135. * test/ParameterizedStringParserTest.cc
  8136. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8137. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8138. Rewritten the functions for binding port.
  8139. * src/DHTConnectionImpl.{h, cc}
  8140. * src/PeerListenCommand.{h, cc}
  8141. * src/DHTSetup.cc
  8142. * src/BtSetup.cc
  8143. * test/DHTConnectionImplTest.cc
  8144. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. type cleanup for allmost all remaining files.
  8146. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8147. Type clarification
  8148. * src/PeerSessionResource.{h, cc}
  8149. * src/DefaultPieceStorage.{h, cc}
  8150. * src/Peer.{h, cc}
  8151. * test/PeerSessionResourceTest.cc
  8152. Use div function
  8153. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8154. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8155. Type clarification
  8156. * src/DefaultPeerStorage.{h, cc}
  8157. * test/DefaultPeerStorageTest.cc
  8158. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Type clarification: size_t for length or size, uint64_t for file
  8160. length, off_t for file offset.
  8161. * src/DefaultBtProgressInfoFile.cc
  8162. * src/DefaultBtContext.{h, cc}
  8163. * src/DefaultBtInteractive.cc
  8164. * src/DownloadCommand.{h, cc}
  8165. * src/IteratableChunkChecksumValidator.{h, cc}
  8166. * src/SegmentMan.{h, cc}
  8167. * src/SingleFileDownloadContext.{h, cc}
  8168. * src/IteratableChecksumValidator.{h, cc}
  8169. * src/BtContext.h
  8170. * src/IteratableValidator.h
  8171. * src/DownloadContext.h
  8172. * test/SingleFileDownloadContextTest.cc
  8173. * test/DefaultBtContextTest.cc
  8174. * test/MockBtContext.h
  8175. * test/Metalink2RequestGroupTest.cc
  8176. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8177. Type clarification: size_t for length or size, uint64_t for file
  8178. length, off_t for file offset.
  8179. * src/PiecedSegment.cc
  8180. * src/GrowSegment.h
  8181. * src/DefaultBtRequestFactory.h
  8182. * src/DefaultBtProgressInfoFile.cc
  8183. * src/UnknownLengthPieceStorage.h
  8184. * src/DefaultPieceStorage.cc
  8185. * src/UnknownLengthPieceStorage.cc
  8186. * src/DefaultBtInteractive.cc
  8187. * src/GrowSegment.cc
  8188. * src/BitfieldMan.h
  8189. * src/DownloadCommand.cc
  8190. * src/BtRequestFactory.h
  8191. * src/PiecedSegment.h
  8192. * src/DefaultPieceStorage.h
  8193. * src/Piece.cc
  8194. * src/DefaultBtRequestFactory.cc
  8195. * src/PieceStorage.h
  8196. * src/Segment.h
  8197. * src/Piece.h
  8198. * src/BitfieldMan.cc
  8199. * src/Util.cc
  8200. * test/DefaultBtProgressInfoFileTest.cc
  8201. * test/DefaultPieceStorageTest.cc
  8202. * test/MockPieceStorage.h
  8203. * test/BtRequestMessageTest.cc
  8204. * test/DefaultBtMessageDispatcherTest.cc
  8205. * test/BitfieldManTest.cc
  8206. * test/GrowSegmentTest.cc
  8207. * test/PieceTest.cc
  8208. * test/SegmentTest.cc
  8209. * test/SegmentManTest.cc
  8210. * test/DefaultBtRequestFactoryTest.cc
  8211. * test/MockBtRequestFactory.h
  8212. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8213. Fixed compilation error with --disable-nls
  8214. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8215. in gettext.h causes the problem.
  8216. * src/common.h
  8217. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Removed subPiece related functions.
  8219. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8220. * src/DefaultPieceStorage.{h, cc}
  8221. * test/PieceTest.cc
  8222. * test/DefaultPieceStorageTest.cc
  8223. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. Use unsigned char for data store.
  8225. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Bump up version number to 0.13.0+1
  8227. * configure.ac
  8228. * Release 0.13.0+1
  8229. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. Changed inactive connection timeout to 120.
  8231. To accept more mulually interested peers, disconnect peer when there
  8232. is no interest between us after certain time passed.
  8233. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8234. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8236. when compiled with async DNS support.
  8237. * src/DownloadEngine.cc
  8238. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8239. value '10' will be a little bit short when some DNS servers are
  8240. offline and several DNS servers are tried. It should be configured
  8241. by command-line option.
  8242. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8243. Merged Ross's mingw patch.
  8244. * src/DHTRoutingTableDeserializer.cc
  8245. * src/DHTRoutingTableSerializer.cc
  8246. * src/Platform.{h, cc}
  8247. * src/timegm.h
  8248. * src/gettimeofday.h
  8249. * src/getaddrinfo.h
  8250. * src/SocketCore.h
  8251. * src/common.h
  8252. * src/inet_aton.h
  8253. * src/DownloadEngine.h
  8254. * src/gai_strerror.h
  8255. * src/a2netcompat.h
  8256. * configure.ac
  8257. * configure
  8258. * aclocal.m4
  8259. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8260. Included missing iostream.
  8261. * test/AllTest.cc
  8262. * test/BtDependencyTest.cc
  8263. * test/BtExtendedMessageTest.cc
  8264. * test/DHTConnectionImplTest.cc
  8265. * test/DHTMessageFactoryImplTest.cc
  8266. * test/DHTMessageTrackerEntryTest.cc
  8267. * test/DHTNodeTest.cc
  8268. * test/DHTRoutingTableSerializerTest.cc
  8269. * test/DefaultBtAnnounceTest.cc
  8270. * test/DefaultBtContextTest.cc
  8271. * test/DefaultBtMessageFactoryTest.cc
  8272. * test/DefaultExtensionMessageFactoryTest.cc
  8273. * test/HandshakeExtensionMessageTest.cc
  8274. * test/HttpResponseTest.cc
  8275. * test/MetalinkProcessorTest.cc
  8276. * test/MultiFileAllocationIteratorTest.cc
  8277. * test/SocketCoreTest.cc
  8278. * test/UTPexExtensionMessageTest.cc
  8279. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8280. Reorganized includes.
  8281. * src/NameResolver.cc
  8282. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Fixed compilation error without ares/c-ares
  8284. * src/NameResolver.h:
  8285. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Added a test for large file.
  8287. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8288. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Fixed the bug that file size is ignored if size > INT32_MAX
  8290. * src/SizeMetalinkParserState.cc (endElement):
  8291. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Bump up version number to 0.13.0
  8293. * configure.ac
  8294. * Release 0.13.0
  8295. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8296. Updated Makfefile.am to make 'make dist' work.
  8297. Now packaged filename is aria2c-VERSION.tar.bz2.
  8298. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8299. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8300. Large file support is now configured by configure script.
  8301. * configure.ac
  8302. Removed unsused source files
  8303. * src/
  8304. * test/
  8305. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8306. Peer.h and BtContext.h respectively.
  8307. * src/Peer.h
  8308. * src/BtContext.h
  8309. Updated translations.
  8310. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8311. translations. Great thanks to all translators!;)
  8312. * po/*.{po, gmo}
  8313. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8314. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8315. statically declared sha1 MessageDigestContext.
  8316. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8317. initialization of short-lived MessageDigestContext.
  8318. * src/MessageDigestHelper.{h, cc}
  8319. * src/main.cc
  8320. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8321. the initialization of MessageDigestContext every time in validating
  8322. chunk checksum.
  8323. * src/DownloadCommand.{h, cc}
  8324. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8325. Add a file descriptor which connected to fast peer(latency<1500) to
  8326. select(). This change reduced CPU load.
  8327. * src/PeerInteractionCommand.cc
  8328. * src/DefaultBtInteractive.{h, cc}
  8329. * src/BtInteractive.h
  8330. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8331. Fixed the previous insufficient fix for possible busy loop.
  8332. * src/MSEHandshake.cc (identifyHandshakeType)
  8333. Removed unused functions.
  8334. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8335. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8336. Fixed possible busy loop if first 20 bytes are not received for a few
  8337. minutes.
  8338. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8339. * src/ReceiverMSEHandshakeCommand.cc
  8340. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8341. Fixed compilation error
  8342. * src/ExpatMetalinkProcessor.cc
  8343. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8345. * src/DHTBucket.cc
  8346. Removed unnecessary cast.
  8347. * src/HandshakeExtensionMessage.cc
  8348. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8350. is missing.
  8351. * src/OptionHandlerFactory.cc
  8352. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Fixed the bug that HAVE message is not sent for a piece they are
  8354. downloaded fom http/ftp server before any BitTorrent handshake is done
  8355. with peers.
  8356. * src/DefaultBtInteractive.cc
  8357. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8358. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8359. * src/Makefile.am
  8360. * src/Makefile.in
  8361. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. Updated README. Added html version of README and man page.
  8363. * README
  8364. * README.html
  8365. * readme2html: Shell script to generate README.html from README using
  8366. asciidoc.
  8367. * doc/aria2c.1.html
  8368. * doc/makeman: Added the line to generate aria2c.1.html
  8369. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8370. Fixed offset calculation.
  8371. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8372. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8373. Rewritten itos and uitos using template. llitos and ullitos are
  8374. replaced with itos and uitos respectively.
  8375. * src/Util.{h, cc}
  8376. * test/UtilTest.cc
  8377. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8379. of the number of bytes required for storing public key and shared
  8380. secret.
  8381. * src/LibgcryptDHKeyExchange.h
  8382. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8383. * src/MSEHandshake.cc
  8384. * test/DHKeyExchangeTest.cc
  8385. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. Removed since they are not used.
  8387. * src/Xml2MetalinkProcessor.{h, cc}
  8388. * src/Socket.cc
  8389. * src/SegmentSplitter.{h, cc}
  8390. * test/Xml2MetalinkProcessorTest.cc
  8391. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8392. Fixed the bug that prevents aria2 from stopping other than by pressing
  8393. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8394. option. aria2 doesn't stop even after --seed-time is satisfied and
  8395. continues to output blank lines in the console.
  8396. * src/ReceiverMSEHandshakeCommand.cc
  8397. * src/PeerReceiveHandshakeCommand.cc
  8398. * src/PeerListenCommand.cc
  8399. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8400. Bump up version number to 0.13.0rc
  8401. * configure.ac
  8402. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8403. Updated man page and some usage text.
  8404. * doc/aria2c.1.txt
  8405. * src/usage_text.h
  8406. * po/*.{po, gmo}
  8407. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. Updated translations. Added Finnish and Hebrew translations.
  8409. Great thanks to all translators!
  8410. * po/*.{po, gmo}
  8411. * po/LINGUAS
  8412. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. Log more detailed information about each message.
  8414. * src/DHTQueryMessage.{h, cc}
  8415. * src/DHTGetPeersMessage.{h, cc}
  8416. * src/DHTFindNodeReplyMessage.{h, cc}
  8417. * src/DHTGetPeersReplyMessage.{h, cc}
  8418. * src/DHTAnnouncePeerMessage.{h, cc}
  8419. * src/DHTResponseMessage.{h, cc}
  8420. * src/DHTFindNodeMessage.{h, cc}
  8421. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Use constants defined in prefs.h
  8423. * src/option_processing.cc
  8424. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8425. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8426. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Make room for future enchancements for IPv6 addresses.
  8428. Bump up version number of dht.dat file format to 2.
  8429. Not compatible with previous version.
  8430. * src/DHTRoutingTableSerializer.cc
  8431. * src/DHTRoutingTableDeserializer.cc
  8432. * test/DHTRoutingTableSerializerTest.cc
  8433. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8434. Added handling for the return values from
  8435. PeerMessageUtil::createcompact().
  8436. * src/DefaultBtContext.cc (computeFastSet):
  8437. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8438. Fixed abort when peer's ip address is IPv4-mapped address.
  8439. * src/DefaultBtContext.cc (computeFastSet)
  8440. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8441. cannot handle IPv4-mapped addresses.
  8442. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8443. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8444. Proper return value handling for OpenSSL functions.
  8445. * src/LibsslDHKeyExchange.h
  8446. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. Random bytes generation using libgcrypt and OpenSSL.
  8448. * src/DHTUtil.{h, cc}
  8449. * test/DHTUtilTest.cc
  8450. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8452. received.
  8453. * src/DHTMessageReceiver.cc (receiveMessage)
  8454. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8455. Fixed the bug that a return code is always 0. BUG#1897704
  8456. If error occurred during the download or there exist unfinished
  8457. downloads, aria2 returns with code 1.
  8458. * src/RequestGroupMan.{h, cc}
  8459. * src/MultiUrlRequestInfo.{h, cc}
  8460. * src/main.cc
  8461. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8462. IPv6 support for SocketCore class.
  8463. TODO: In SocketCore::establishConnection(), this is insufficient to
  8464. determin the failure of connect() here because the socket is
  8465. non-blocking state. The next addresses should be tried after select().
  8466. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8467. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8468. instead which address family independent.
  8469. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8470. information in a compact peer format which is for IPv4 only.
  8471. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8472. this is a spec of BitTorrent protocol.
  8473. * src/SocketCore.{h, cc}
  8474. * src/PeerMessageUtil.cc
  8475. * test/SocketCoreTest.cc
  8476. * test/PeerMessageUtilTest.cc
  8477. * test/DHTConnectionImplTest.cc
  8478. Handle IPv4-mapped addresses.
  8479. * src/DHTNode.cc: Now identity is determined by node id.
  8480. * src/DHTMessageTrackerEntry.cc
  8481. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8482. should handle it.
  8483. * src/DHTRoutingTableDeserializer.cc
  8484. * src/DHTMessageFactoryImpl.cc
  8485. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8486. Change the unit of --stop option from a minute to a second.
  8487. * src/usage_text.h
  8488. * src/DownloadEngineFactory.cc
  8489. * src/OptionHandlerFactory.cc
  8490. * src/message.h
  8491. * src/TimedHaltCommand.cc
  8492. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8493. Make listening socket non-block mode.
  8494. * src/FtpConnection.cc
  8495. * src/FtpNegotiationCommand.{h, cc}
  8496. * src/PeerListenCommand.cc
  8497. Fixed the bug that cause slow ftp negotiation.
  8498. * src/FtpNegotiationCommand.{h, cc}
  8499. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8500. Added basic tag to --enable-dht, --dht-listen-port option.
  8501. * src/HelpItemFactory.cc (createHelpItems)
  8502. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8503. Updated text.
  8504. * src/usage_text.h
  8505. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8507. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8508. Determin _threadtholdSpeed in each constructor for
  8509. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8510. * src/ActivePeerConnectionCommand.{h, cc}
  8511. * src/PeerReceiveHandshakeCommand.{h, cc}
  8512. * src/BtSetup.cc
  8513. * src/BtConstants.h
  8514. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Added --bt-min-crypto-level and --bt-require-crypto options.
  8516. * src/OptionHandlerFactory.cc
  8517. * src/MSEHandshake.cc
  8518. * src/HelpItemFactory.cc
  8519. * src/option_processing.cc
  8520. * src/ReceiverMSEHandshakeCommand.cc
  8521. * src/prefs.h
  8522. * src/DefaultBtAnnounce.cc
  8523. * src/InitiatorMSEHandshakeCommand.cc
  8524. * src/usage_text.h
  8525. * test/MSEHandshakeTest.cc
  8526. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8527. Bump version number to 0.13.0b
  8528. * configure.ac
  8529. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Updated doc.
  8531. * src/MessageDigestHelper.h:
  8532. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8533. Use raw message digest as a token instead of its hexadecimal
  8534. representation.
  8535. * src/DHTTokenTracker.cc (generateToken)
  8536. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Added Message Stream Encryption(MSE) support.
  8538. Currently, aria2 accepts incoming connections with Obfuscation Header
  8539. and legacy BitTorrent Header and establishes connections with
  8540. Obfuscation Header first and if failed then retry with legacy
  8541. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8542. choose ARC4. The new option to change the default behavior is planned.
  8543. For tracker extension, "supportcrypto=1" is added statically.
  8544. * src/PeerInitiateConnectionCommand.{h, cc}
  8545. * src/PeerConnection.{h, cc}
  8546. * src/HandleRegistry.h
  8547. * src/SocketCore.h
  8548. * src/PeerReceiveHandshakeCommand.{h, cc}
  8549. * src/BtRegistry.{h, cc}
  8550. * src/PeerListenCommand.cc
  8551. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8552. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8553. * src/MSEHandshake.{h, cc}
  8554. * src/ARC4Encryptor.h
  8555. * src/ARC4Decryptor.h
  8556. * src/LibgcryptARC4Encryptor.h
  8557. * src/LibgcryptARC4Decryptor.h
  8558. * src/LibgcryptARC4Context.h
  8559. * src/LibsslARC4Encryptor.h
  8560. * src/LibsslARC4Decryptor.h
  8561. * src/LibsslARC4Context.h
  8562. * src/DHKeyExchange.h
  8563. * src/LibgcryptDHKeyExchange.h
  8564. * src/LibsslDHKeyExchange.h
  8565. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8566. * test/DefaultBtAnnounceTest.cc
  8567. * test/ARC4Test.cc
  8568. * test/DHKeyExchangeTest.cc
  8569. Removed prepareForRetry() because it is not used.
  8570. * src/PeerAbstractCommand.{h, cc}
  8571. * src/PeerInteractionCommand.{h, cc}
  8572. * src/PeerInitiateConnectionCommand.{h, cc}
  8573. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8574. Added the ability to load nodes from torrent file. These nodes are
  8575. added to the routing table when downloading that torrent.
  8576. * src/BtContext.h
  8577. * src/DefaultBtContext.{h, cc}
  8578. * src/DHTSetup.cc
  8579. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8580. hostname and port pair, and resolves all of them.
  8581. * src/NameResolver.{h, cc}: Added reset().
  8582. * src/RequestGroup.cc
  8583. * test/DefaultBtContextTest.cc
  8584. * test/MockBtContext.h
  8585. Removed assert() from DefaultBtContext and throw exception instead.
  8586. * src/DefaultBtContext.cc
  8587. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8588. Fixed segmentation fault bug when exiting if dht is disabled.
  8589. * src/RequestGroup.cc
  8590. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Fixed typo in log message and define the message in message.h
  8592. * src/TimedHaltCommand.cc
  8593. * src/message.h
  8594. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8595. Included RecoverableException.h to fix compilation error.
  8596. * test/DHTMessageFactoryImplTest.cc
  8597. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8599. * test/DHTPingMessageTest.cc
  8600. * test/DHTGetPeersMessageTest.cc
  8601. * test/DHTFindNodeMessageTest.cc
  8602. * test/DHTAnnouncePeerMessageTest.cc
  8603. * test/MockDHTMessage.h
  8604. * test/MockDHTMessageFactory.h
  8605. * test/MockDHTMessageDispatcher.h: New class.
  8606. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8607. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8608. virtual.
  8609. * src/DHTMessageDispatcher.h
  8610. * src/DHTMessageDispatcherImpl.{h, cc}
  8611. * src/DHTSetup.cc
  8612. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8613. Adding handling of DHT error message. Just log error message and
  8614. throw exception.
  8615. * src/DHTMessageFactoryImpl.cc
  8616. * test/DHTMessageFactoryImplTest.cc
  8617. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8618. Added handling of dynamic cast failure.
  8619. * src/DHTNodeLookupTask.cc
  8620. * src/DHTPeerLookupTask.cc
  8621. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Added the ability to stop aria2 itself when given time has passed
  8623. from start. Use --stop option to specify time in minutes.
  8624. When 0 is given, this feature is disabled.
  8625. * src/OptionHandlerFactory.cc
  8626. * src/TimeBasedCommand.h: Make _interval protected scope.
  8627. * src/HelpItemFactory.cc
  8628. * src/option_processing.cc
  8629. * src/prefs.h
  8630. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8631. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8632. Without this modification, the result list shows "ERR" when aria2 is
  8633. stopped by --stop option. It should be "INPR".
  8634. * src/DownloadEngine.{h, cc}
  8635. * src/DownloadEngineFactory.cc
  8636. * src/usage_text.h
  8637. * src/TimedHaltCommand.{h, cc}: New class.
  8638. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8639. Bootstrap through node added by port message.
  8640. Currently bootstrap is executed if the number of buckets in routing
  8641. table is 1.
  8642. * src/BtPortMessage.{h, cc}
  8643. * src/DefaultBtMessageFactory.{h, cc}
  8644. * src/PeerInteractionCommand.cc
  8645. * test/BtPortMessageTest.cc
  8646. * test/MockDHTTask.h
  8647. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8648. Extract the Peer class's member variables, which are only needed after
  8649. PeerInteractionCommand, into PeerSessionResource class.
  8650. This class is instantiated in PeerInteractionCommand class's ctor and
  8651. released in its dtor.
  8652. This will make Peer class lightweight and uses less memory for peers
  8653. which are not connected and wait in the queue.
  8654. * src/PeerChokeCommand.cc
  8655. * src/PeerSessionResource.{h, cc}
  8656. * src/PeerInteractionCommand.cc
  8657. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8658. * src/DefaultBtInteractive.cc
  8659. * src/BtPieceMessage.cc
  8660. * src/BtInterestedMessage.cc
  8661. * src/BtUnchokeMessage.cc
  8662. * src/DefaultPeerStorage.{h, cc}
  8663. * src/PeerInitiateConnectionCommand.cc
  8664. * src/ActivePeerConnectionCommand.cc
  8665. * src/BtNotInterestedMessage.cc
  8666. * src/DefaultBtMessageDispatcher.cc
  8667. * src/BtChokeMessage.cc
  8668. * src/BtRequestMessage.cc
  8669. * src/Peer.{h, cc}
  8670. * src/BtRegistry.h
  8671. * src/TrackerWatcherCommand.cc
  8672. * src/PeerReceiveHandshakeCommand.cc
  8673. * test/BtExtendedMessageTest.cc
  8674. * test/BtAllowedFastMessageTest.cc
  8675. * test/BtCancelMessageTest.cc
  8676. * test/DefaultPieceStorageTest.cc
  8677. * test/BtBitfieldMessageTest.cc
  8678. * test/BtHaveMessageTest.cc
  8679. * test/BtNotInterestedMessageTest.cc
  8680. * test/BtRequestMessageTest.cc
  8681. * test/PeerSessionResourceTest.cc
  8682. * test/DefaultBtMessageDispatcherTest.cc
  8683. * test/PeerTest.cc
  8684. * test/BtInterestedMessageTest.cc
  8685. * test/BtRejectMessageTest.cc
  8686. * test/BtChokeMessageTest.cc
  8687. * test/DefaultPeerStorageTest.cc
  8688. * test/BtHaveNoneMessageTest.cc
  8689. * test/BtHaveAllMessageTest.cc
  8690. * test/DefaultExtensionMessageFactoryTest.cc
  8691. * test/BtUnchokeMessageTest.cc
  8692. * test/DefaultBtMessageFactoryTest.cc
  8693. * test/HandshakeExtensionMessageTest.cc
  8694. * test/UTPexExtensionMessageTest.cc
  8695. * test/DefaultBtRequestFactoryTest.cc
  8696. * test/BtPieceMessageTest.cc
  8697. Removed typedef PeerStats.
  8698. * src/PeerStat.h
  8699. * src/SegmentMan.cc
  8700. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8701. Added std namespace to copy, remove_copy, back_inserter,
  8702. front_inserter.
  8703. * src/RequestGroupMan.cc
  8704. * src/DefaultPieceStorage.cc
  8705. * src/StreamFileAllocationEntry.cc
  8706. * src/BtFileAllocationEntry.cc
  8707. * src/RequestGroup.cc
  8708. * src/MetalinkEntry.cc
  8709. * src/DelegatingPeerListProcessor.cc
  8710. * src/DefaultBtRequestFactory.cc
  8711. * src/DefaultBtMessageDispatcher.cc
  8712. * src/version_usage.cc: Included <algorithm>
  8713. * src/main.cc
  8714. * src/MetalinkParserController.cc
  8715. * src/DefaultBtContext.cc
  8716. * src/DownloadEngineFactory.cc
  8717. * src/a2algo.h
  8718. Removed.
  8719. * test/StreamUriListParserTest.cc
  8720. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8722. ActivePeerConnectionCommand when it is given and
  8723. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8724. * src/ActivePeerConnectionCommand.{h, cc}
  8725. * src/BtSetup.cc
  8726. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Only add socket to DownloadEngine's select routine when peer or
  8728. localhost is unchoked and interested. This lowers CPU usage a
  8729. little bit.
  8730. * src/PeerInteractionCommand.cc
  8731. * src/PeerAbstractCommand.{h, cc}
  8732. * src/BtInteractive.h
  8733. * src/DefaultBtInteractive.{h, cc}
  8734. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8735. Revert previous change because get_peers message is needed for
  8736. announce_peer anyway.
  8737. * src/DHTGetPeersCommand.cc
  8738. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8739. Request peers thought DHT only when download hasn't finished.
  8740. * src/DHTGetPeersCommand.cc
  8741. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8742. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8743. * src/DHTBucketRefreshTask.{h, cc}
  8744. * src/DHTSetup.cc
  8745. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8746. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8747. standard classes.
  8748. Included string.h where mem* function are used.
  8749. Added namespace aria2.
  8750. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8751. Create directory before saving DHT routing table.
  8752. Now ios::failure is now handled properly.
  8753. * src/DHTAutoSaveCommand.cc
  8754. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8755. Removed unnecessary cerr.
  8756. * src/DownloadEngine.cc
  8757. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8758. Catch exception inside DHTMessageReceiver::receiveMessage().
  8759. Log unknown message.
  8760. * src/DHTMessageReceiver.{h, cc}
  8761. * src/DHTMessageFactory.h
  8762. * src/DHTMessageFactoryImpl.{h, cc}
  8763. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8764. * src/DHTInteractionCommand.cc
  8765. * src/DHTUnknownMessage.{h, cc}
  8766. * test/DHTUnknownMessageTest.cc
  8767. * test/MockDHTMessageFactory.h
  8768. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8769. Commented out ip address comparison because a host can have multiple
  8770. ip addresses and it is hard to predict the hostname is resolved into
  8771. which one.
  8772. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8773. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8774. * po/Makefile.in: Removed since this is generated by configure.
  8775. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Fixed compiler warning about redefinition of SIZE_MAX.
  8777. Use common.h instead of config.h directly here.
  8778. * src/Platform.{h, cc}
  8779. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8780. here.
  8781. * common.h
  8782. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8783. Updated gettext related files.
  8784. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8785. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8786. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Added DHT functionality, compatible with mainline.
  8788. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8789. You may need to specify entry point to DHT network using
  8790. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8791. Use --dht-listen-port to specify port number. Make sure that your
  8792. firewall configuration can pass through UDP traffic to the port.
  8793. The routing table is saved in $HOME/.aria2/dht.dat.
  8794. * src/DHT*
  8795. * src/BNode.{h, cc}
  8796. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8797. particular torrent.
  8798. * src/Data.cc: Rewritten ctor.
  8799. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8800. --dht-entry-point.
  8801. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8802. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8803. ends, remove BtContext from DHTPeerAnnounceStorage.
  8804. * src/BtPortMessage.{h, cc}: Rewritten.
  8805. * src/message.h
  8806. * src/OptionHandlerImpl.cc
  8807. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8808. --dht-entry-point.
  8809. * src/Dictionary.{h, cc} (remove): New function.
  8810. * src/prefs.h
  8811. * src/DefaultBtMessageFactory.h
  8812. * src/BtHandshakeMessage.cc
  8813. * src/ActivePeerConnectionCommand.cc
  8814. * src/SocketCore.{h, cc}: Added datagram socket support.
  8815. * src/DefaultBtMessageFactory.cc
  8816. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8817. Create DHT commands.
  8818. * src/BtMessageFactory.h
  8819. * src/PeerMessageUtil.{h, cc}
  8820. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8821. Fixed the bug that log file is not written when configuration file doesn't exist.
  8822. This is caused by using Logger class before LogFactory is not configured.
  8823. BUG #1875079
  8824. * src/option_processing.cc
  8825. Warning message "configuration doesn't exist" is only printed when --conf is
  8826. given.
  8827. * src/option_processing.cc
  8828. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8829. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8830. ShaVisitor is now deprecated and slated to be removed.
  8831. * src/DefaultBtContext.cc
  8832. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8833. Externalize message to message.h
  8834. * src/Platform.cc
  8835. * src/message.h
  8836. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8837. Set default domain and default path to cookie.
  8838. * src/HttpResponse.cc
  8839. * src/CookieBox.{h, cc}
  8840. * src/CookieParser.{h, cc}
  8841. * test/CookieParserTest.cc
  8842. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Added --no-conf and --conf-path command-line option.
  8844. --no-conf option disables loading aria2.conf file.
  8845. --conf-path option changes the configuration file path. The default
  8846. file path is $HOME/.aria2/aria2.conf
  8847. Added a warning message when the configuration file is not found.
  8848. * src/HelpItemFactory.cc
  8849. * src/option_processing.cc
  8850. * src/prefs.h
  8851. * src/usage_text.h
  8852. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. Added the message to inform users that other help categories are
  8854. available in -h option.
  8855. * src/version_usage.cc
  8856. * src/TagContainer.{h, cc}
  8857. * test/TagContainerTest.cc
  8858. * src/TaggedItem.{h, cc}
  8859. * test/TaggedItemTest.cc
  8860. * src/HelpItem.h
  8861. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8863. from PiecedSegment's ctor.
  8864. Previously Piece::getAllMissingBlockIndexes() is called from
  8865. PiecedSegment() but it is rather expensive since only first element is
  8866. used.
  8867. * src/PiecedSegment.cc
  8868. * src/Piece.{h, cc}
  8869. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8871. each time these functions are called.
  8872. * src/BitfieldMan.{h, cc}
  8873. * test/BitfieldManTest.cc
  8874. * src/array_fun.h
  8875. * test/array_funTest.cc
  8876. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8877. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8878. filtered. Removed unnecessary cast to int32_t.
  8879. * src/BitfieldMan.{h, cc}
  8880. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8881. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8882. payload length(4bytes) are received. This happens because lenbufLength
  8883. is not updated in this particular case and successive call of
  8884. receiveMessage() overwrites payload length with bytes recieved which
  8885. are payload body.
  8886. * src/PeerConnection.{h, cc}
  8887. * src/message.h
  8888. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8890. peer if there are peers that have same ipaddr and port.
  8891. I've experiened segmentation fault and "pure virtual function was
  8892. called" error.
  8893. * src/Peer.h
  8894. * test/PeerTest.cc
  8895. * src/DefaultPeerStorage.cc
  8896. * test/DefaultPeerStorageTest.cc
  8897. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. Removed a call to isPowerOf() because it is no longer necessary here
  8899. and a request block is not always power of 2.
  8900. BUG#1866924
  8901. * src/PeerMessageUtil.cc (checkLength)
  8902. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8903. Fixed the bug that always first found Segment is removed from
  8904. usedSegmentEntries. Removed unused functions.
  8905. * src/SegmentMan.{h, cc}
  8906. * test/SegmentManTest.cc
  8907. Fixed the bug that ServerHost is not removed.
  8908. * src/RequestGroup.cc
  8909. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8910. Fixed the bug that SegmentMan::completeSegment() is not called
  8911. even if Segment is complete when --lowest-speed-limit is enabled.
  8912. BUG#1864525
  8913. * src/DownloadCommand.{h, cc}
  8914. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. Fixed: hash algorithm 'sha1' is always used.
  8916. * src/DownloadCommand.cc (validatePieceHash)
  8917. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8918. Added --enable-peer-exchange command-line option.
  8919. * src/OptionHandlerFactory.cc
  8920. * src/HelpItemFactory.cc
  8921. * src/option_processing.cc
  8922. * src/usage_text.h
  8923. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8924. Move extension from BtRuntime to ExtensionMessageFactory, because
  8925. extension can be specified per peer, not per torrent.
  8926. * src/DefaultBtInteractive.cc
  8927. * src/BtRuntime.h
  8928. * src/ExtendedMessagingAware.h
  8929. * src/ExtensionMessageFactory.h
  8930. * src/DefaultExtensionMessageFactory.cc
  8931. * test/DefaultExtensionMessageFactoryTest.cc
  8932. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Added categorized option help. Specify category using --help option.
  8934. Also added the ability to search options in forward match.
  8935. * src/HelpItem.{h, cc}
  8936. * test/HelpItemTest.cc
  8937. * src/HelpItemFactory.{h, cc}
  8938. * src/TagContainer.{h, cc}
  8939. * test/TagContainerTest.cc
  8940. * src/option_processing.cc
  8941. * src/prefs.h
  8942. * src/TaggedItem.{h, cc}
  8943. * test/TaggedItemTest.cc
  8944. * src/version_usage.cc
  8945. * src/help_tags.h
  8946. * src/usage_text.h
  8947. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Fixed segmentation fault when bad torrent metainfo is parsed.
  8949. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8950. and then throw exception or skip it.
  8951. * src/DefaultBtContext.{h, cc}
  8952. * test/DefaultBtContextTest.cc
  8953. * src/AnnounceList.cc
  8954. * src/CompactPeerListProcessor.cc
  8955. * src/message.h
  8956. * src/DefaultBtAnnounce.{h, cc}
  8957. * test/DefaultBtAnnounceTest.cc
  8958. * src/BencodeVisitor.cc
  8959. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8960. Added missing "B"(=Byte). So now the message looks like this:
  8961. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8962. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8963. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8964. Show the seed ratio after torrent downloads.
  8965. For example, after torrent download completed and --seed-time and
  8966. --seed-ratio conditions are fulfilled, following message is printed
  8967. right after "Download complete: .....":
  8968. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8969. * src/RequestGroupMan.cc
  8970. * src/RequestGroup.{h, cc}
  8971. * src/message.h
  8972. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Remove a defunct control file. A defunct control file means that while
  8974. it exists, but the corresponding download file is missing.
  8975. After its removal, a download restarts from the beginning.
  8976. * src/RequestGroup.cc
  8977. * src/message.h
  8978. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8979. Allocate bitfield in Peer when it is really used. More specifically,
  8980. bitfield in Peer is allocated after the connection is established and
  8981. deallocated when the connection is dropped.
  8982. Since 2 parameters(piece length and total length) was removed from the
  8983. constructor of Peer class, many test classes were modified accordingly.
  8984. See svn log for more detailed information.
  8985. * src/PeerInteractionCommand.cc
  8986. * src/CompactPeerListProcessor.cc
  8987. * src/Peer.cc
  8988. * src/DefaultPeerListProcessor.cc
  8989. * src/PeerListenCommand.cc
  8990. * src/PeerReceiveHandshakeCommand.cc
  8991. Fixed memory leak
  8992. * src/Piece.cc
  8993. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8994. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8995. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8996. command-line options.
  8997. * src/option_processing.cc
  8998. * src/ActivePeerConnectionCommand.cc
  8999. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9000. Send have message to peer if it already has the piece.
  9001. * src/BtHaveMessage.{h, cc}
  9002. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9004. port.
  9005. * src/DefaultPeerStorage.{h, cc}
  9006. * test/DefaultPeerStorageTest.cc
  9007. * src/HandshakeExtensionMessage.cc
  9008. * test/HandshakeExtensionMessageTest.cc
  9009. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9010. * src/PeerStorage.h
  9011. * test/MockPeerStorage.h
  9012. * src/PeerListenCommand.cc
  9013. * src/PeerReceiveHandshakeCommand.cc
  9014. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9015. Added --metalink-enable-unique-protocol option.
  9016. * src/Metalink2RequestGroup.cc
  9017. * src/option_processing.cc
  9018. * src/prefs.h
  9019. * src/version_usage.cc
  9020. * doc/aria2c.1.txt
  9021. * doc/aria2c.1
  9022. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Allow a peer in incomingPeer to be added peers.
  9024. * src/DefaultPeerStorage.cc
  9025. * test/DefaultPeerStorageTest.cc
  9026. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9027. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9028. I could reproduce this bug in following procedure:
  9029. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9030. 2. Restart aria2.
  9031. 3. You see the download stopped around 99%.
  9032. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9033. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9034. If timeout is reached, then _nextCommand is unused and it may contains
  9035. segments and they won't be canceled. Actually, timeout is not needed
  9036. here because if the server dropped connection, then retry is made.
  9037. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Added uTorrent compatible Peer Exchange.
  9039. * src/BencodeVisitor.{h, cc}
  9040. * test/BencodeVisitorTest.cc
  9041. * src/BtConstants.h
  9042. * src/BtContext.h: Added 'private' flag.
  9043. * src/BtExtendedMessage.{h, cc}
  9044. * test/BtExtendedMessageTest.cc
  9045. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9046. reserved field.
  9047. * test/BtHandshakeMessageTest.cc
  9048. * src/BtMessageFactory.h
  9049. * src/BtRegistry.h
  9050. * src/BtRuntime.h: This class holds default extension message IDs for
  9051. aria2. By default, aria2 uses ID 8 for ut_pex.
  9052. * src/DefaultBtContext.cc
  9053. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9054. When it is true, aria2 enables ut_pex. This value is set by
  9055. PeerInteractionCommand.
  9056. * src/DefaultBtMessageFactory.{h, cc}
  9057. * test/DefaultBtMessageFactoryTest.cc
  9058. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9059. handling to DefaultBtInteractive class.
  9060. * src/DefaultExtensionMessageFactory.{h, cc}
  9061. * test/DefaultExtensionMessageFactoryTest.cc
  9062. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9063. the container(peers and incomingPeers. The equality is determined by
  9064. Peer::id).
  9065. * test/DefaultPeerStorageTest.cc
  9066. * src/ExtensionMessage.h
  9067. * test/MockExtensionMessage.h
  9068. * src/ExtensionMessageFactory.h
  9069. * test/MockExtensionMessageFactory.h
  9070. * src/HandshakeExtensionMessage.{h, cc}
  9071. * test/HandshakeExtensionMessageTest.cc
  9072. * src/MetaEntry.h
  9073. * src/Peer.{h, cc}
  9074. * src/PeerInteractionCommand.cc
  9075. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9076. addIncomingPeer.
  9077. * src/PeerMessageUtil.{h, cc}
  9078. * src/PeerObject.h
  9079. * src/UTPexExtensionMessage.{h, cc}
  9080. * test/UTPexExtensionMessageTest.cc
  9081. * src/message.h
  9082. * src/prefs.h
  9083. Fixed the bug that returns incomplete data when it contains null
  9084. character. A convenient constructor was also added.
  9085. * src/Data.{h, cc}
  9086. Rewritten.
  9087. * src/CompactPeerListProcessor.cc
  9088. Fixed typos.
  9089. * src/message.h
  9090. * src/MetaFileUtil.cc
  9091. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Added "Status Legend" label to the explanation text of 'stat' in
  9093. download result and moved it to the last. BUG#1848214
  9094. * src/RequestGroupMan.cc
  9095. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9097. * src/Makefie.am
  9098. * test/Makefile.am
  9099. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Fixed the bug that prevents aria2 from loading cookie file when expire
  9101. value is greater than 2^31-1. BUG#1851066
  9102. * src/CookieBoxFactory.cc
  9103. * test/CookieBoxFactoryTest.cc
  9104. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9105. Fixed possible memory leak when an exception is thrown.
  9106. * src/XML2SAXMetalinkProcessor.cc
  9107. Added Expat support. If both libxml2 and Expat are installed, then
  9108. libxml2 is used by default.
  9109. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9110. ExpatMetalinkProcessor according to the configuration.
  9111. * src/ExpatMetalinkProcessor.{h, cc}
  9112. * src/main.cc: Removed libxml2 specific header and init/free function.
  9113. * src/MetalinkProcessorFactory.{h, cc}
  9114. * src/MetalinkHelper.cc
  9115. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9116. * src/MetalinkProcessor.h
  9117. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9118. MetalinkProcessorTest is used instead.
  9119. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9120. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9121. MetalinkProcessorFactory::newInstance().
  9122. * m4/libexpat.m4
  9123. * configure.ac: Added configuration options for libexpat.
  9124. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9125. Disabled -s option in metalink download.
  9126. * src/Metalink2RequestGroup.cc
  9127. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9128. If several protocols are available for a mirror in metalink file,
  9129. aria2 now use one of them. --metalink-preferred-protocol option was
  9130. added to specify the preference of protocol.
  9131. * src/AbstractCommand.cc
  9132. * src/OptionHandlerFactory.cc
  9133. * src/ServerHost.{h, cc}
  9134. * src/Metalink2RequestGroup.cc
  9135. * src/RequestGroup.{h, cc}
  9136. * test/RequestGroupTest.cc
  9137. * src/option_processing.cc
  9138. * src/prefs.h
  9139. * src/HttpResponseCommand.cc
  9140. * src/MetalinkResource.{h, cc}
  9141. * src/FtpNegotiationCommand.cc
  9142. * src/MetalinkEntry.{h, cc}
  9143. * src/MetalinkEntryTest.cc
  9144. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9145. Code cleanup and added debug log.
  9146. * src/PeerConnection.cc
  9147. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9148. Compiler error fix: applied the patch by Tiziano Mueller
  9149. * src/RequestGroup.cc
  9150. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9152. in stopped and completed event.
  9153. * src/AnnounceList.{h, cc}
  9154. * test/AnnounceListTest.cc
  9155. * src/DefaultBtAnnounce.cc
  9156. * test/DefaultBtAnnounceTest.cc
  9157. Sorted URLs.
  9158. * test/Metalink2RequestGroupTest.cc
  9159. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. Removed unnecessary string copy. Updated doc and corrected indentation.
  9161. * src/Base64.cc
  9162. Fixed compilation warnings
  9163. * test/DataTest.cc
  9164. * test/HttpRequestTest.cc
  9165. * test/MetaFileUtilTest.cc
  9166. * test/RequestTest.cc
  9167. * Release 0.12.0
  9168. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9169. Updated translations
  9170. * po/{de,fr,ja,nl,ru}.po
  9171. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9172. translations. Many thanks to translators.
  9173. * po/{ca,es,it,pt_BR,sv}.po
  9174. * po/LINGUAS
  9175. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. Added a notice about URL
  9177. * src/version_usage.cc
  9178. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9179. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9180. aria2 repeatedly sends stopped request when tracker returns error code.
  9181. * src/AnnounceList.cc
  9182. * test/AnnounceListTest.cc
  9183. * src/AnnounceTier.h
  9184. Added a message when ctrl-c is hit.
  9185. Now second ctrl-c is also handled in signal handler.
  9186. * src/RequestGroupMan.{h, cc}
  9187. * src/RequestGroup.{h, cc}
  9188. * src/MultiUrlRequestInfo.cc
  9189. * src/DownloadEngine.cc
  9190. * src/TrackerWatcherCommand.cc
  9191. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. Code cleanup
  9193. * src/Base64.cc (encode)
  9194. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Changed Direct/IO enable/disable procesure in file allocation routine.
  9196. * src/SingleFileAllocationIterator.cc
  9197. (SingleFileAllocationIterator):
  9198. Disable directIO if offset is not multiple of 512.
  9199. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9200. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9201. Enable created SingleFileAllocationIterator's directIO.
  9202. * src/FileAllocationEntry.cc
  9203. (FileAllocationEntry): Enable directIO here.
  9204. (~FileAllocationEntry): Disable directIO here.
  9205. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9206. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9207. * src/Peer.{h, cc}
  9208. * src/DefaultPieceStorage.cc
  9209. * test/DefaultPieceStorageTest.cc
  9210. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. Rewritten direct I/O support routine
  9212. * src/SingleFileAllocationIterator.cc
  9213. * src/MultiDiskAdaptor.{h, cc}
  9214. * src/ByteArrayDiskWriter.h
  9215. * src/AbstractSingleDiskAdaptor.h
  9216. * src/AbstractDiskWriter.cc
  9217. * src/DefaultPieceStorage.cc
  9218. * src/DiskWriter.h
  9219. * src/BinaryStream.h
  9220. * src/IteratableChunkChecksumValidator.cc
  9221. * src/IteratableChecksumValidator.cc
  9222. * src/CheckIntegrityEntry.cc
  9223. * src/FileAllocationEntry.cc
  9224. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9225. Fixed typo
  9226. * src/version_usage.cc
  9227. Updated doc
  9228. * doc/aria2c.1.txt
  9229. * doc/aria2c.1
  9230. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9231. Fixed compile error without message digest support.
  9232. * src/FileMetalinkParserState.cc
  9233. * src/MetalinkParserController.{h, cc}
  9234. * test/XML2SAXMetalinkProcessorTest.cc
  9235. * test/MetalinkParserControllerTest.cc
  9236. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9237. Enable direct I/O support in checksum checking.
  9238. * src/IteratableChunkChecksumValidator.{h, cc}
  9239. * test/IteratableChunkChecksumValidatorTest.cc
  9240. * src/CheckIntegrityEntry.cc
  9241. * src/PieceHashCheckIntegrityEntry.cc
  9242. * src/IteratableChecksumValidator.{h, cc}
  9243. * src/BtCheckIntegrityEntry.cc: Added doc.
  9244. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. Added --allow-piece-length-change option.
  9246. * src/DefaultBtProgressInfoFile.cc
  9247. * test/DefaultBtProgressInfoFileTest.cc
  9248. * src/OptionHandlerFactory.cc
  9249. * src/option_processing.cc
  9250. * src/prefs.h
  9251. * src/version_usage.cc
  9252. * doc/aria2c.1.txt
  9253. * doc/aria2c.1
  9254. Fixed: duplicated result entry appears when exception is thrown in
  9255. RequestGroup::createInitiateConnectionCommand().
  9256. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9257. Add RequestGroup to _requestGroup after RequetGroup::
  9258. createInitiateConnectionCommand() succeeds.
  9259. Externalized message
  9260. * src/XML2SAXMetalinkProcessor.cc
  9261. * src/message.h
  9262. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9263. Forced download abort when received negative response from http/ftp
  9264. server.
  9265. * src/HttpResponseCommand.cc
  9266. * src/FtpNegotiationCommand.cc
  9267. * src/HttpResponse.cc
  9268. * src/FtpConnection.cc
  9269. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9270. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9271. the predecessor, Xml2MetalinkParser class.
  9272. I tested them against 94KB metalink file with 1234 chunk checksums.
  9273. The new one parsed it in 22msec, while it took 6000msec with old one.
  9274. * src/XML2SAXMetalinkProcessor.{h, cc}
  9275. * test/XML2SAXMetalinkProcessorTest.cc
  9276. * src/MetalinkParserController.{h, cc}
  9277. * test/MetalinkParserControllerTest.cc
  9278. * src/MetalinkParserState.h: Also added 16 subclasses.
  9279. * src/main.cc
  9280. * src/Metalink2RequestGroup.cc
  9281. * src/MetalinkHelper.cc
  9282. * src/MetalinkEntry.cc
  9283. * src/ChunkChecksum.h
  9284. Rewritten Base64 class for better performance.
  9285. * src/Base64.{h, cc}
  9286. * test/Base64Test.cc
  9287. * src/HttpRequest.cc
  9288. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9289. Fixed the bug#1841757: aria2 will connect to server to only get
  9290. file size.
  9291. * src/StreamFileAllocationEntry.cc
  9292. * src/option_processing.cc
  9293. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9294. downloads.
  9295. * src/FtpNegotiationCommand.cc
  9296. Suppressed wrong message when finding PreDownloadHandler
  9297. * src/RequestGroup.cc
  9298. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Updated usage
  9300. * src/version_usage.cc
  9301. Updated man page
  9302. * doc/aria2c.1.txt
  9303. * doc/aria2c.1
  9304. Updated po files
  9305. * po/aria2c.pot
  9306. * po/*.po
  9307. * po/*.gmo
  9308. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Eliminated g++-4.2 warning
  9310. * src/DownloadHandlerConstants.{h, cc}
  9311. * src/Util.cc
  9312. * test/MetaFileUtilTest.cc
  9313. * test/PStringBuildVisitorTest.cc
  9314. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9315. * src/RequestGroup.cc
  9316. * src/BtCheckIntegrityEntry.cc
  9317. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9318. Fixed a2io.h
  9319. * src/a2io.h
  9320. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Added direct I/O support. The current implementation uses O_DIRECT,
  9322. which is not posix standard and is tested on linux 2.6.21.
  9323. Currently only file allocation uses direct I/O.
  9324. * src/SingleFileAllocationIterator.{h, cc}
  9325. * test/SingleFileAllocationIteratorTest.cc
  9326. * src/MultiFileAllocationIterator.{h, cc}
  9327. * test/MultiFileAllocationIteratorTest.cc
  9328. * src/BinaryStream.h
  9329. * src/DiskWriter.h
  9330. * src/AbstractDiskWriter.{h, cc}
  9331. * src/ByteArrayDiskWriter.h
  9332. * src/DiskAdaptor.h
  9333. * src/AbstractSingleDiskAdaptor.{h, cc}
  9334. * src/MultiDiskAdaptor.{h, cc}
  9335. * src/FileAllocationEntry.cc
  9336. * src/Util.{h, cc}
  9337. * src/OptionHandlerFactory.cc
  9338. * src/prefs.h
  9339. * src/version_usage.cc
  9340. * src/option_processing.cc
  9341. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9342. handleException.
  9343. * src/MultiFileAllocationIterator.cc
  9344. Added EINTR handling
  9345. * src/SocketCore.cc
  9346. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. Updated usage
  9348. * src/version_usage.cc
  9349. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9350. Applied Ross's patch for MinGW port.
  9351. * src/DownloadEngine.h
  9352. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9353. Set Content-Type to SingleFileDownloadContext when http response is
  9354. received.
  9355. * src/HttpResponseCommand.cc
  9356. * src/HttpResponse.{h, cc}
  9357. * test/HttpResponseTest.cc
  9358. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9359. Rewritten to add content-type support.
  9360. * src/DownloadHandler.{h, cc}
  9361. * src/BtPostDownloadHandler.{h, cc}
  9362. * test/BtPostDownloadHandlerTest.cc
  9363. * src/MetalinkPostDownloadHandler.{h, cc}
  9364. * test/MetalinkPostDownloadHandlerTest.cc
  9365. * src/PostDownloadHandler.{h, cc}
  9366. * src/DownloadHandlerConstants.{h, cc}
  9367. * src/RequestGroup.cc
  9368. * src/HttpResponseCommand.cc
  9369. * src/FtpNegotiationCommand.cc
  9370. * src/SingleFileDownloadContext.{h, cc}
  9371. * src/RequestGroup.h
  9372. * src/RequestGroupCriteria.h
  9373. * src/ContentTypeRequestGroupCriteria.h
  9374. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9375. If it is give, metalink/torrent file is not written to the disk, but
  9376. just is kept in memory. Parsing is occurred on memory.
  9377. * src/MetalinkHelper.{h, cc}
  9378. * src/MetalinkProcessor.h
  9379. * src/Xml2MetalinkProcessor.{h, cc}
  9380. * test/Xml2MetalinkProcessorTest.cc
  9381. * src/DownloadHandlerFactory.{h, cc}
  9382. * test/DownloadHandlerFactoryTest.cc
  9383. * src/PreDownloadHandler.{h, cc}
  9384. * src/OptionHandlerFactory.cc
  9385. * src/DefaultBtContext.{h, cc}
  9386. * test/DefaultBtContextTest.cc
  9387. * src/version_usage.cc
  9388. * src/Metalink2RequestGroup.{h, cc}
  9389. * src/RequestGroup.{h, cc}
  9390. * src/a2functional.h
  9391. * test/a2functionalTest.cc
  9392. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9393. * src/OptionHandlerImpl.h
  9394. * src/prefs.h
  9395. * src/Util.{h, cc}
  9396. * test/UtilTest.cc
  9397. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9398. memory usage.
  9399. * src/RequestGroupMan.{h, cc}
  9400. * src/DownloadEngine.cc
  9401. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9402. WeakHandle to SharedHandle because WeakHandle could be null.
  9403. * src/RequestGroup.{h, cc}
  9404. * src/DownloadEngineFactory.cc
  9405. * src/DownloadResult.h
  9406. Set totalLength after download finished
  9407. * src/UnknownLengthPieceStorage.{h, cc}
  9408. Keep torrent file specified in metalink in memory.
  9409. * src/Metalink2RequestGroup.cc
  9410. * src/BtDependency.cc
  9411. * src/TrueRequestGroupCriteria.h
  9412. Fixed the bug: seekg is used where seekp should be used.
  9413. * src/ByteArrayDiskWriter.cc
  9414. * test/ByteArraydiskWriterTest.cc
  9415. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9416. Fixed syntax error
  9417. * test/SequenceTest.cc
  9418. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9419. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9420. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9421. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9422. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9423. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9424. Added the check to see whether ares_host_callback accepts timeouts
  9425. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9426. * src/NameResolver.{h, cc}
  9427. * m4/libcares.m4
  9428. * configure.ac: Set C++ for language choice.
  9429. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Fixed: compilation fails without c-ares/ares
  9431. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9432. Generate http/ftp commands only when download is incomplete.
  9433. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9434. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. Corrected typo. Examples are removed since they are available in man
  9436. page.
  9437. * src/version_usage.cc
  9438. Updated man page.
  9439. * doc/aria2c.1
  9440. * doc/aria2c.1.txt
  9441. * doc/makeman: Commented out sed command.
  9442. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9443. Throw DlAbortEx when a remote file is not found.
  9444. * src/HttpResponse.cc
  9445. * src/FtpNegotiationCommand.cc
  9446. * src/message.h
  9447. Overwrite an existing file if --allow-overwrite=true is given.
  9448. * src/RequestGroup.cc
  9449. Removed unused functions
  9450. * src/AbstractCommand.h
  9451. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9452. Removed 'extern' from 'extern typedef ...' in src/*.h
  9453. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Updated usage
  9455. * src/version_usage.cc
  9456. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. Trim announce URL
  9458. * src/DefaultBtContext.cc
  9459. * test/ShaVisitorTest.cc
  9460. Trim argument s. Give trimed s to exception constructor.
  9461. * src/Util.cc (parseInt)(parseLLInt)
  9462. * test/UtilTest.cc
  9463. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. Set precision back to 1.
  9465. * src/ConsoleStatCalc.cc (calculateStat)
  9466. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. Replaced strtol with Util::parseInt
  9468. * src/ChunkedEncoding.cc
  9469. * src/HttpConnection.cc
  9470. * src/CookieBoxFactory.cc
  9471. * src/ParameterizedStringParser.cc
  9472. * src/Util.cc
  9473. * test/UtilTest.cc
  9474. * test/OptionHandlerTest.cc
  9475. * src/Request.cc
  9476. Throw exception when empty string is given. The message for exception
  9477. changed.
  9478. * src/Util.cc (parseInt)(parseLLInt)
  9479. * src/message.h
  9480. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9482. set to 1.
  9483. * src/ConsoleStatCalc.cc (calculateStat)
  9484. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9485. Preallocate non-requested file which is adjacent forward to requested
  9486. file('requested' files means the files given in --select-file option)
  9487. if they share a same piece.
  9488. This fixes long pause in the file system which doesn't support sparse
  9489. files like FAT32 while downloading.
  9490. * src/MultiFileAllocationIterator.{h, cc}
  9491. * test/MultiFileAllocationIteratorTest.cc
  9492. * src/FileEntry.{h, cc}
  9493. Removed unused _option.
  9494. * src/MultiDiskAdaptor.h
  9495. * test/MultiDiskAdaptorTest.cc
  9496. * src/DefaultPieceStorage.cc
  9497. Set the default value of --seed-ratio to 1.0.
  9498. If 0.0 is given, then seeding continues regardless of share ratio.
  9499. * src/version_usage.cc
  9500. * src/option_processing.cc
  9501. * src/BtSetup.cc
  9502. * doc/aria2c.1.txt
  9503. * doc/aria2c.1
  9504. Fixed: Selective download is not working in BitTorrent
  9505. * src/RequestGroup.cc
  9506. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9507. * src/PieceStorage.h
  9508. * test/MockPieceStorage.h
  9509. * src/UnknownLengthPieceStorage.h
  9510. * src/DefaultPieceStorage.{h, cc}
  9511. * src/Metalink2RequestGroup.cc
  9512. * src/RequestGroup.cc
  9513. * src/Sequence.h
  9514. * test/SequenceTest.cc
  9515. * src/IntSequence.h
  9516. * src/message.h
  9517. * src/Util.{h, cc}
  9518. * test/UtilTest.cc
  9519. Added new function 'parse' to catch exception thrown by subclass's
  9520. parseArg
  9521. * src/OptionHandler.h
  9522. * src/OptionParser.cc
  9523. * src/NameMatchOptionHandler.h
  9524. * src/OptionHandlerImpl.h
  9525. * test/OptionHandlerTest.cc
  9526. Added IntegerRangeOptionHandler. Used for --listen-port and
  9527. --select-file. Now --listen-port accepts range of port.
  9528. * src/OptionHandlerFactory.cc
  9529. * src/version_usage.cc
  9530. * src/OptionHandlerImpl.h
  9531. * src/option_processing.cc
  9532. * src/BtSetup.cc
  9533. * src/PeerListenCommand.{h, cc}
  9534. * doc/aria2c.1.txt
  9535. * doc/aria2c.1
  9536. Implemented operator< for Exception class to provide easy way to print
  9537. exception stack trace.
  9538. * src/Exception.{h, cc}
  9539. * src/main.cc
  9540. * src/option_processing.cc
  9541. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9542. * src/version_usage.cc
  9543. (showVersion): Reworked.
  9544. (showUsage): Added examples.
  9545. Removed Hint for total length and file name.
  9546. * src/Metalink2RequestGroup.cc
  9547. * src/RequestGroup.{h, cc}
  9548. * src/HttpResponseCommand.cc
  9549. * src/FtpNegotiationCommand.cc
  9550. Now --follow-torrent and --follow-metalink option work properly.
  9551. * src/RequestGroup.cc
  9552. Updated man page
  9553. * doc/aria2c.1.txt
  9554. * doc/aria2c.1
  9555. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9556. Removed.
  9557. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9558. Use Segment::operator==()
  9559. * src/HttpConnection.cc
  9560. * src/Segment.h
  9561. Updated usage
  9562. * src/version_usage.cc
  9563. Added EINTR treatment.
  9564. * src/SocketCore.cc
  9565. * src/AbstractDiskWriter.cc
  9566. Rewritten.
  9567. * src/Util.cc (rangedFileCopy)
  9568. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9569. Fixed typo.
  9570. * src/version_usage.cc
  9571. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9572. Implemented. Now -c option works fine.
  9573. * src/DefaultPieceStorage.cc (markPiecesDone)
  9574. * test/DefaultPieceStorageTest.cc
  9575. Removed.
  9576. * src/SegmentMan.{h, cc}
  9577. (markAllPiecesDone)
  9578. (markPieceDone)
  9579. Synchronized po files with
  9580. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9581. * src/fr.po
  9582. * src/ru.po
  9583. * src/de.po
  9584. * src/ja.po
  9585. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. Added ifdef and some modifications to compile without BitTorrent,
  9587. Metalink, MessageDigest
  9588. support.
  9589. * src/PieceHashCheckIntegrityEntry.cc
  9590. * src/MetalinkEntry.h
  9591. * src/version_usage.cc
  9592. * src/main.cc
  9593. * src/DownloadEngine.{h, cc}
  9594. * src/Metalink2RequestGroup.cc
  9595. * src/Peer.cc
  9596. * src/RequestGroup.cc
  9597. * src/MetalinkHelper.cc
  9598. * test/DefaultPieceStorageTest.cc
  9599. * test/MetalinkPostDownloadHandlerTest.cc
  9600. * test/Metalink2RequestGroupTest.cc
  9601. Hide TOTAL SPD when all downloads complete.
  9602. * src/ConsoleStatCalc.cc
  9603. Log target system information.
  9604. * src/main.cc
  9605. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9606. Now --metalink-location accepts a comma-deliminated list of locations.
  9607. * src/MetalinkEntry.{h, cc}
  9608. * test/MetalinkEntryTest.cc
  9609. * src/version_usage.cc
  9610. * src/Metalink2RequestGroup.cc
  9611. * src/Xml2MetalinkProcessor.cc
  9612. * test/Xml2MetalinkProcessorTest.cc
  9613. * doc/aria2c.1.txt
  9614. * doc/aria2c.1
  9615. * src/Util.cc (toUpper)(toLower): Rewritten.
  9616. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9617. Added the ability to detect duplicate download entry which is about to
  9618. download the same file other RequestGroup is downloading.
  9619. * src/RequestGroup.cc
  9620. * src/HttpResponseCommand.cc
  9621. * src/FtpNegotiationCommand.cc
  9622. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. Recalculates download progress when loading a control file,
  9624. if the piece length of DownloadContext is different from the one saved
  9625. in the control file. Currently in-flight pieces are ignored.
  9626. * src/DefaultBtProgressInfoFile.cc
  9627. * test/DefaultBtProgressInfoFileTest.cc
  9628. * src/Util.{h, cc}
  9629. * test/UtilTest.cc
  9630. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9631. Do not rotate tiers in announce-list.
  9632. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9633. AnnounceList::allTiersFailed() used instead to detect whether all
  9634. tiers are tried and failed.
  9635. * test/DefaultBtAnnounceTest.cc
  9636. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9637. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9638. * test/AnnounceListTest.cc
  9639. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9640. clause. Catch RecoverableException instead of DlRetryEx instead.
  9641. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9642. Implemented checksum validation feature(1 checksum for each file)
  9643. The validation takes place after the download.
  9644. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9645. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9646. * src/CheckIntegrityCommand.cc: Changed log message.
  9647. * src/Metalink2RequestGroup.cc: Set checksum to
  9648. SingleFileDownloadContext.
  9649. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9650. PieceHashCheckIntegrity class.
  9651. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9652. PieceHashCheckIntegrity class.
  9653. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9654. * src/IteratableValidator.h: New class.
  9655. * src/message.h
  9656. * src/CheckIntegrityEntry.{h, cc}
  9657. * src/IteratableChunkChecksumValidator.{h, cc}
  9658. * src/SingleFileDownloadContext.h
  9659. * src/DownloadCommand.cc
  9660. --allow-overwrite=true is no longer needed to check file integrity
  9661. before download in BitTorrent download.
  9662. * src/RequestGroup.cc (getInitialCommand)
  9663. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9664. throws exception.
  9665. * src/RequestGroupMan.cc (getInitialCommands)
  9666. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9667. urlencode the given url inside Request::parseUrl(...)
  9668. * src/Request.{h, cc}
  9669. * src/Util.{h, cc}
  9670. * test/RequestTest.cc
  9671. Removed #!metalink3! notation support because it is deleted from
  9672. the metalink specification.
  9673. * src/Request.{h, cc}
  9674. * test/RequestTest.cc
  9675. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9676. Don't connect server before checking file integrity at startup, if
  9677. filesize and output file path are known.
  9678. * src/AbstractCommand.cc
  9679. * src/StreamFileAllocationEntry.cc
  9680. * src/Metalink2RequestGroup.cc
  9681. * src/RequestGroup.{h, cc}
  9682. * src/HttpResponseCommand.cc
  9683. * src/FtpNegotiationCommand.cc
  9684. Added DownloadFailureException. If it is thrown, RequestGroup should
  9685. halt.
  9686. * src/AbstractCommand.cc
  9687. * src/DownloadFailureException.h
  9688. * src/RequestGroup.cc
  9689. Catch RecoverableException, instead of DlAbortEx.
  9690. * src/RequestGroupMan.cc
  9691. * src/FillRequestGroupCommand.cc
  9692. * src/MetaFileUtil.cc
  9693. * src/IteratableChunkChecksumValidator.cc
  9694. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9695. getGID())
  9696. * src/CheckIntegrityCommand.cc
  9697. * src/message.h
  9698. Print gid instead of idx.
  9699. * src/RequestGroupMan.cc
  9700. Removed exception throwers declaration.
  9701. * src/DirectDiskAdaptor.{h, cc}
  9702. * src/SocketCore.{h, cc}
  9703. * src/MultiDiskAdaptor.{h, cc}
  9704. * src/HttpConnection.{h, cc}
  9705. * src/HttpResponse.{h, cc}
  9706. * src/DiskAdaptor.{h, cc}
  9707. * src/CopyDiskAdaptor.{h, cc}
  9708. * src/MultiDiskAdaptor.{h, cc}
  9709. * src/HttpHeaderProcessor.{h, cc}
  9710. * src/AbstractSingleDiskAdaptor.{h, cc}
  9711. * src/Util.{h, cc}
  9712. * test/UtilTest.cc
  9713. * src/DefaultDiskWriter.{h, cc}
  9714. * src/FtpConnection.{h, cc}
  9715. * src/AbstractDiskWriter.{h, cc}
  9716. Removed duplicate code.
  9717. * src/StreamCheckIntegrityEntry.cc
  9718. Removed unnecessary include.
  9719. * src/DiskWriter.h
  9720. Included Exception.h
  9721. * src/option_processing.cc
  9722. Included 2 files and added doc
  9723. * src/TrackerWatcherCommand.cc
  9724. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9725. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. Changed CheckIntegrityEntry interface so that it can define
  9727. the action when all the chunk checksums are valid.
  9728. * src/CheckIntegrityEntry.h
  9729. * src/StreamCheckIntegrityEntry.{h, cc}
  9730. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9731. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9732. to exit rather than doing seeding. So, it would be good to toggle this
  9733. behavior.
  9734. * src/CheckIntegrityCommand.cc
  9735. * src/AbstractCommand.cc
  9736. * src/RequestGroup.cc
  9737. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9738. Reflect the download length of in-flight pieces.
  9739. It makes the download length readout more precise.
  9740. * src/DefaultPieceStorage.{h, cc}
  9741. * test/DefaultPieceStorageTest.cc
  9742. * src/a2functional.h
  9743. * test/a2functionalTest.cc
  9744. Lower CPU load when --max-download-limit is used.
  9745. There is up and down in speed indicator when enabling
  9746. http-pipelining but a download goes well. I think the problem is that
  9747. because http-pipelining is enabled, DownloadCommand is created for
  9748. each segment and in its constructor, PeerStat::downloadStart() is
  9749. called. In PeerStat::downloadStart(), speed calculation object is
  9750. reseted, which makes download speed zero.
  9751. * src/DownloadCommand.cc
  9752. Rewritten using accumulate.
  9753. * src/RequestGroupMan.cc (calculateStat)
  9754. Code clearnup.
  9755. * src/FtpNegotiationCommand.cc
  9756. * src/HttpResponseCommand.cc
  9757. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9758. Fixed: Can not resume: aria2 reports download already finished.
  9759. * src/AbstractCommand.{h, cc}
  9760. * src/HttpResponseCommand.cc
  9761. * src/FtpNegotiateCommand.cc
  9762. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9763. Now a file is stored in the directory specified in .metalnk file
  9764. (file[@name]).
  9765. * src/Metalink2RequestGroup.cc
  9766. Create the directory structure when opening the file if it doesn't
  9767. exist.
  9768. * src/AbstractDiskWriter.cc
  9769. * src/Util.{h, cc}
  9770. * src/File.h
  9771. * test/UtilTest.cc
  9772. Removed file name comparison
  9773. * src/Metalink2RequestGroup.cc
  9774. * src/HttpResponseCommand.cc
  9775. Rewritten using Util::mkdirs()
  9776. * src/FileEntry.cc (setupDir)
  9777. * test/FileEntryTest.cc
  9778. Updated doc
  9779. * src/SingleFileDownloadContext.h
  9780. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9781. Now SleepCommand dispatches nextCommand when halt is requested.
  9782. It avoids a possible long wait after hitting CTRL-C.
  9783. * src/SleepCommand.{h, cc}
  9784. * src/RequestGroupAware.{h, cc}
  9785. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9786. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9787. to open listen port, then remove the port number from the tracker
  9788. request.
  9789. * src/DefaultBtAnnounce.cc
  9790. * test/DefaultBtAnnounceTest.cc
  9791. * test/MockPieceStorage.h
  9792. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9793. them more testable.
  9794. * src/DefaultBtAnnounce.{h, cc}
  9795. * src/DefaultBtContext.{h, cc}
  9796. * src/Util.{h, cc}
  9797. * test/DefaultBtAnnounceTest.cc
  9798. * test/DefaultBtContextTest.cc
  9799. * test/UtilTest.cc
  9800. Added 'B' to upload bytes readout.
  9801. * src/ConsoleStatCalc.cc
  9802. Now the listen port for BitTorrent download is opened when it is
  9803. needed.
  9804. * src/DownloadEngineFactory.cc
  9805. * src/BtSetup.{h, cc}
  9806. * src/PeerListenCommand.{h, cc}
  9807. Now an exception thrown while parsing tracker response is now logged.
  9808. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9809. called, which means no retry is made in this case, assuming a tracker
  9810. has a problem.
  9811. * src/TrackerWatcherCommand.cc
  9812. Fixed: downloading a file whose length is unkown fails.
  9813. * src/DownloadCommand.cc
  9814. Simplified prepareForNextSegment()
  9815. * src/DownloadCommand.cc
  9816. Updated
  9817. * po/POTFILES.in
  9818. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9819. Re-implemented a file listing for Metalink, which was dropped while
  9820. http/ftp/torrent integration was being implemented.
  9821. * src/MetalinkHelper.{h, cc}: New class.
  9822. * test/MetalinkHelperTest.cc
  9823. * src/main.cc
  9824. * src/Metalink2RequestGroup.cc
  9825. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9826. Added the ability to display the detailed torrent file information.
  9827. Now -S option gives not only a file listing, but also total download
  9828. length, info hash, announce URI, piece length, the number of pieces,
  9829. and mode(single or multi-torrent).
  9830. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9831. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9832. KiB)
  9833. * test/UtilTest.cc
  9834. * src/main.cc
  9835. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9836. Added ftp://USER:PASSWD@Servername automatic parsing.
  9837. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9838. _password. Recognize username and password in URI.
  9839. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9840. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9841. * src/RequestFactory.{h, cc}: Removed.
  9842. * src/AuthConfigFactory.{h, cc}: New class.
  9843. * src/FtpConnection.cc: Use AuthConfigFactory.
  9844. * src/HttpRequest.cc: Use AuthConfigFactory.
  9845. * test/HttpRequestTest.cc: Updated.
  9846. * test/RequestTest.cc: Updated.
  9847. * test/AuthConfigFactoryTest.cc: New class.
  9848. * test/RequestFactoryTest.cc: Removed.
  9849. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Use RequestGroup::allDownloadFinished() to decide whether the control
  9851. file should be removed or saved.
  9852. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9853. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9854. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9855. Use File::renameTo()
  9856. * src/DefaultBtProgressInfoFile.cc
  9857. Added --no-file-allocation-limit command-line option.
  9858. * src/version_usage.cc
  9859. * src/option_processing.cc
  9860. * src/OptionHandlerFactory.cc
  9861. * src/RequestGroup.{h, cc}
  9862. * src/BtCheckIntegrityEntry.cc
  9863. * src/StreamCheckIntegrityEntry.cc
  9864. * src/prefs.h
  9865. * doc/aria2c.1.txt
  9866. * doc/aria2c.1
  9867. Now prealloc is the default value for --file-allocation option.
  9868. * src/version_usage.cc
  9869. * src/option_processing.cc
  9870. * doc/aria2c.1.txt
  9871. * doc/aria2c.1
  9872. Don't URL-encode user-agent.
  9873. * src/HttpRequest.cc
  9874. Updated translations
  9875. * po/LINGUAS: Added nl for Dutch translation.
  9876. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9877. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9878. * po/POTFILES.in: Updated.
  9879. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Added the ability to recognize url-list in a torrent file.
  9881. The retrieved URLs are attached to the corresponding FileEntry.
  9882. * src/DefaultBtContext.{h, cc}
  9883. * src/FileEntry.{h, cc}
  9884. * test/DefaultBtContextTest.cc
  9885. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9886. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9887. after the download finishes.
  9888. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9890. the data smaller than block length.
  9891. A block length can be specified by constructor's argument.
  9892. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9893. Get a missing piece in the range of given FileEntry. This function is
  9894. not used in the program yet.
  9895. * src/Util.h: Added some macros.
  9896. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9897. Added HTTP/1.1 keep alive and pipelining support.
  9898. See --enable-http-keep-alive and --enable-http-pipelining option.
  9899. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9900. Segment.
  9901. * src/HttpDownloadCommand.{h, cc}
  9902. * src/OptionHandlerFactory.cc
  9903. * src/HttpConnection.{h, cc}
  9904. * src/version_usage.cc
  9905. * src/HttpInitiateConnectionCommand.cc
  9906. * src/FtpInitiateConnectionCommand.cc
  9907. * src/Segment.h
  9908. * src/HttpRequestCommand.{h, cc}
  9909. * src/option_processing.cc
  9910. * src/prefs.h
  9911. * src/HttpResponseCommand.cc
  9912. * src/SegmentMan.{h, cc}
  9913. * src/FtpNegotiateCommand.cc
  9914. * src/HttpProxyResponseCommand.cc
  9915. * src/Request.cc
  9916. * src/HttpRequest.cc
  9917. * src/DownloadCommand.cc
  9918. * test/HttpRequestTest.cc
  9919. * test/RequestTest.cc
  9920. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9921. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9922. finished.
  9923. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9924. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9925. catching it inside the method.
  9926. When no file entry is found in a metalink without querying user
  9927. preferences, throw the exception with the error message that suggests
  9928. metalink file is probably broken.
  9929. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9930. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9932. processed.
  9933. * src/RequestGroupMan.cc (removeStoppedGroup)
  9934. Added debug message.
  9935. * src/BtPostDownloadHandler.cc
  9936. * src/MetalinkPostDownloadHandler.cc
  9937. * src/PostDownloadHandler.{h, cc}
  9938. * src/RequestGroup.cc
  9939. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9940. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9941. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9942. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9943. stops and there are any unfinished or in-progress downloads.
  9944. Added the legend of "stat".
  9945. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9946. Throw exception when chunck checksum verification fails.
  9947. * src/DownloadCommand.cc (validatePieceHash): New function.
  9948. * src/PiecedSegment.{h, cc} (clear): New function.
  9949. * src/GrowSegment.{h, cc} (clear): New function.
  9950. * src/Segment.h (clear): New function.
  9951. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9952. * test/SegmentTest.cc
  9953. * test/GrowSegmentTest.cc
  9954. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9955. Do not send referer when redirected.
  9956. * src/Request.cc (redirectUrl)
  9957. * test/RequestTest.cc
  9958. * test/HttpRequestTest.cc
  9959. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9960. Implemented BitTorrent/http/ftp integrated download.
  9961. I've rewritten lots of files and now some headers have forward
  9962. class declarations to reduce compile time.
  9963. The implementation is extremely alpha stage, I recommend to use this
  9964. for testing purpose only.
  9965. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9966. Fixed the compilation error on 64bit platform.
  9967. * test/HttpHeaderProcessorTest.cc
  9968. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9969. Merged Ross's patch that fixes compilation problem in MinGW
  9970. * test/DefaultBtProgressInfoFileTest.cc
  9971. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9972. Updated fr.po by sebone
  9973. * po/fr.po
  9974. Updated man page.
  9975. * doc/aria2c.1.txt
  9976. * Release 0.11.3
  9977. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9978. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9979. failure in Metalink.
  9980. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9981. Automatically save *.aria2 control file of http/ftp download in every
  9982. 60 seconds.
  9983. * src/AutoSaveCommand.{h, cc}: New class.
  9984. * src/TimeBasedCommand.{h, cc}: New class.
  9985. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9986. Disable parameterized URI support by default. Added -P option to
  9987. enable the feature.
  9988. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9989. * src/OptionHandlerFactory.cc
  9990. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9991. Updated Japanese translation.
  9992. * po/ja.po
  9993. Updated man page.
  9994. * doc/aria2c.1.txt
  9995. * Release 0.11.3-rc
  9996. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9997. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9998. it is successful, then renamed to *.aria2.
  9999. This prevents *.aria2 file from being truncated or corrupted when
  10000. file system becomes out of space.
  10001. * src/DefaultBtProgressInfoFile.cc (save)
  10002. * src/SegmentMan.cc (save)
  10003. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10004. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. Reduced the fragmentation of bitfield in http/ftp download.
  10006. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10007. * test/BitfieldManTest.cc
  10008. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10009. Added the ability to disable segmented download in .metalink.
  10010. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10011. 'url' tag.
  10012. * src/MetalinkEntry.{h, cc}
  10013. * src/RequestResource.{h, cc}
  10014. * src/MetalinkRequestInfo.cc
  10015. * src/Xml2MetalinkProcessor.cc
  10016. * test/Xml2MetalinkProcessorTest.cc
  10017. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10018. Added parameterized URI support.
  10019. * src/main.cc: -Z option added.
  10020. * src/OptionHandlerFactory.cc
  10021. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10022. * src/PStringDatum.h: New class.
  10023. * src/PStringSegment.{h,cc}: New class.
  10024. * src/PStringNumLoop.h: New class.
  10025. * src/PStringSelect.h: New class.
  10026. * src/NumberDecorator.h: New class.
  10027. * src/FixedWidthNumberDecorator.h: New class.
  10028. * src/AlphaNumberDecorator.h: New class.
  10029. * src/PStringVisitor.h: New class.
  10030. * src/PStringBuildVisitor.{h,cc}: New class.
  10031. * src/ParameterizedStringParser.{h,cc}: New class.
  10032. * src/Util.{h,cc}
  10033. (isNumber): New function.
  10034. (isLowercase): New function.
  10035. (isUppercase): New function.
  10036. (alphaToNum): New function.
  10037. * test/ParameterizedStringParserTest.cc: New class.
  10038. * test/AlphaNumberDecoratorTest.cc: New class.
  10039. * test/PStringBuildVisitorTest.cc: New class.
  10040. * test/UtilTest.cc
  10041. (testIsNumber): New function.
  10042. (testIsLowercase): New function.
  10043. (testIsUppercase): New function.
  10044. (testAlphaToNum): New function.
  10045. Added '\n' after the error message
  10046. * src/RequestInfo.h (printDownloadAbortMessage)
  10047. Added auto file renaming feature in http(s)/ftp download.
  10048. * src/main.cc: Added --auto-file-renaming command-line option.
  10049. * src/OptionHandlerFactory.cc
  10050. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10051. * src/RequestGroup.{h, cc}
  10052. (shouldCancelDownloadForSafety): Rewritten
  10053. (tryAutoFileRenaming): New function.
  10054. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10055. * src/HttpResponseCommand.cc
  10056. (executeInternal): Removed the call to RequestGroupMan::
  10057. isSameFileBeingDownloaded()
  10058. * src/FtpNegotiateCommand.cc
  10059. (recvSize): Removed the call to RequestGroupMan::
  10060. isSameFileBeingDownloaded()
  10061. * test/RequestGroupTest.cc: New class.
  10062. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10064. IO.
  10065. * src/DefaultBtProgressInfoFile.cc
  10066. * src/MetaFileUtil.cc
  10067. * src/SimpleLogger.cc
  10068. * src/SegmentMan.cc
  10069. * src/Util.cc
  10070. * src/Platform.cc
  10071. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10072. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10073. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10074. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10075. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10076. Fixed the bug that prevents file allocation is not done when
  10077. dowloading multi-torrent file.
  10078. * src/AbstractDiskWriter.cc (openFile)
  10079. Increase the maximum number of -j option from 15 to 45.
  10080. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10081. Added fr.po, thanks to Charles Landemaine.
  10082. * po/fr.po
  10083. * po/LINGUAS
  10084. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10085. gcc 3.4.4 support:
  10086. * src/DefaultBtContext.cc: int32_t -> int
  10087. * src/main.cc: int -> int32_t, int32_t -> int
  10088. * src/messageDigest.h: uint32_t -> unsigned int
  10089. * src/NameResolver.h: int32_t -> int
  10090. * src/PeerConnection.cc: int -> int32_t
  10091. * src/SpeedCalc.cc: int32_t -> int
  10092. * src/TrackerUpdateCommand.h: int -> int32_t
  10093. * src/Util.cc: int32_t -> int
  10094. * src/Util.h: int32_t -> int
  10095. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10096. * test/AnnounceListTest.cc: int -> int32_t
  10097. * test/ChunkedEncodingTest.cc: int -> int32_t
  10098. * test/DataTest.cc: int -> int32_t
  10099. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10100. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10101. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10102. * test/FeatureConfigTest.cc: int -> int32_t
  10103. * test/MetalinkEntryTest.cc: int -> int32_t
  10104. * test/MockBtRequestFactory.h: int -> int32_t
  10105. * test/MockPieceStorage.h: int -> int32_t
  10106. * test/OptionTest.cc: int -> int32_t
  10107. * test/RequestTest.cc: int -> int32_t
  10108. * test/SegmentManTest.cc: int -> int32_t
  10109. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10110. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10111. Move sleep functions to Util class:
  10112. * src/Util.cc
  10113. (sleep): New function.
  10114. (usleep): New function.
  10115. * src/DownloadCommand.cc: sleep -> Util::sleep
  10116. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10117. MinGW build enhancements. The following files are added:
  10118. * src/timegm.{c,h}
  10119. Changes to support the above new files:
  10120. * configure.ac
  10121. * src/Makefile.am
  10122. * src/a2time.h
  10123. * src/Util.cc:
  10124. * src/strptime.c: Added support for %Z option.
  10125. Fixed MinGW non-blocking bug.
  10126. * src/SocketCore.cc
  10127. * src/HttpRequestCommand.cc
  10128. Miscellenous build fixes/enhancements.
  10129. * configure.ac: Added summary report.
  10130. * src/Platform.h: Tweaked #include's.
  10131. * src/a2netcompat.h: Tweaked #include's.
  10132. * src/strptime.h: Tweaked #include's.
  10133. * src/gai_strerror.c: Tweaked #include's.
  10134. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10135. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10136. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10137. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10138. Increased the initial connection size in BitTorrent download to 40.
  10139. * src/BtRuntime.h
  10140. Added the usage message of --peer-id-prefix option.
  10141. * src/main.cc
  10142. * Release 0.11.2
  10143. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10144. MessageDigestHelper is introduced in order to simplify the use
  10145. of message digest. Removed repeated code.
  10146. The message digest algorithm is now specified by string, like "sha1",
  10147. "md5".
  10148. * src/messageDigest.{h, cc}
  10149. * src/MessageDigestHelper.{h, cc}: New class.
  10150. * src/DefaultPieceStorage.cc
  10151. * src/DefaultBtContext.{h, cc}
  10152. (computeFastSet): New function.
  10153. (setInfoHash): Added for unit testing.
  10154. (setNumPieces): Added for unit testing.
  10155. * src/DefaultBtInteractive.cc
  10156. * src/BtPieceMessage.cc
  10157. * src/Peer.cc
  10158. * src/Checksum.h
  10159. * src/message.h
  10160. * src/IteratableChecksumValidator.h
  10161. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10162. inside it.
  10163. * src/SegmentMan.{h, cc}
  10164. (checkIntegrity): Removed.
  10165. * src/IteratableChunkChecksumValidator.{h, cc}
  10166. * src/Util.h
  10167. (sha1Sum): Removed.
  10168. (simpleMessageDigest): Removed.
  10169. (fileChecksum): Removed.
  10170. (computeFastSet): Removed.
  10171. * src/ShaVisitor.cc
  10172. * src/ChunkChecksum.h
  10173. * src/DownloadCommand.cc
  10174. Removed messageDigest virtual functions.
  10175. * src/MultiDiskAdaptor.{h, cc}
  10176. * src/DiskAdaptor.h
  10177. * src/ByteArrayDiskWriter.h
  10178. * src/DiskWriter.h
  10179. * src/DiskAdaptorWriter.h
  10180. * src/AbstractSingleDiskAdaptor.{h, cc}
  10181. * src/AbstractDiskWriter.{h, cc}
  10182. Fixed comilation error when message digest is disabled.
  10183. * src/MetalinkEntry.{h, cc}
  10184. * src/MetalinkRequestInfo.cc
  10185. Removed srandom and random.
  10186. * src/SimpleRandomizer.h
  10187. Added size() virtual function to DiskAdaptor
  10188. * src/MultiDiskAdaptor.h
  10189. Fixed the bug that causes that files are not opened correctly in
  10190. multi-file torrent.
  10191. * src/TorrentRequestInfo.cc
  10192. * src/MultiDiskAdaptor.cc
  10193. Added SHA256 support
  10194. * src/messageDigest.cc
  10195. * src/Xml2MetalinkProcessor.cc
  10196. Show supported message digest algorithms
  10197. * src/main.cc
  10198. Updated contact info.
  10199. * src/main.cc
  10200. Applied Ross's patch
  10201. * src/a2netcompat.h
  10202. * src/main.cc
  10203. Fixed the bug that prevents a remote metalink from not being processed
  10204. even if '-o foo.metalink' is specified.
  10205. * src/MetalinkRequestInfo.cc
  10206. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10207. Merged Dan's patch:
  10208. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10209. Use va_copy to avoid core dump on amd64:
  10210. * src/SimpleLogger.cc
  10211. Updated contact info.
  10212. * src/main.cc
  10213. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10214. digest is not available.
  10215. * src/MetalinkEntry.h
  10216. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. Make a2netcompat.h include a2io.h to fix compilation error:
  10218. * src/a2netcompat.h
  10219. * src/SocketCore.cc: Removed include of a2io.h
  10220. * src/Util.cc: Removed include of a2io.h
  10221. Gather time related functions to a2time.h:
  10222. * src/a2time.h: New file.
  10223. * src/DefaultPeerStorage.cc
  10224. * src/SimpleLogger.cc
  10225. * src/Util.{h, cc}
  10226. * src/SimpleRandomizer.h
  10227. * src/TimeA2.{h,cc}
  10228. * src/DownloadCommand.cc
  10229. * src/main.cc
  10230. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10231. a2netcompat.h:
  10232. * src/NameResolver.cc
  10233. Fixed compilation error without openssl:
  10234. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10235. Added default block to suppress compiler warnings:
  10236. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10237. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10238. MinGW build enhancements. The following files are added:
  10239. * src/gai_strerror.{c,h}
  10240. * src/gettimeofday.{c,h}
  10241. Changes to support the above new files:
  10242. * configure.ac
  10243. * src/Makefile.am
  10244. * src/a2netcompat.h
  10245. * src/TimeA2.cc
  10246. * src/DefaultPeerStorage.cc
  10247. * src/NameResolver.cc: removed mingw_strerror() function.
  10248. * src/SocketCore.cc: removed mingw_strerror() function.
  10249. Miscellaneous MinGW build fixes.
  10250. * src/a2io.h: Use _lseeki64() instead of lseek()
  10251. * src/common.h
  10252. * src/DefaultFileAllocator.cc
  10253. * src/GlowFileAllocator.cc
  10254. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10255. * src/NameResolver.cc
  10256. (callback): Changed int32_t to int.
  10257. (resolve): Changed int32_t to int.
  10258. * src/Platform.cc
  10259. * src/Platform.h
  10260. * test/MultiDiskWriterTest.cc
  10261. * test/PeerMessageUtilTest.cc
  10262. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10263. Other enhancements and fixes.
  10264. * src/HttpRequestCommand.cc
  10265. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10266. * src/SocketCore.cc:
  10267. (error): New function to abstract errno/WSAGetLastError().
  10268. (errorMsg): New function to abstract errno/WSAGetLastError().
  10269. (initiateSecureConnection): Added more detailed error reporting.
  10270. * src/SocketCore.h: Added private variable blocking, to allow
  10271. proper handling of OpenSSL psuedo-errors.
  10272. * src/message.h
  10273. (EX_SSL_INIT_FAILURE)
  10274. (EX_SSL_IO_ERROR)
  10275. (EX_SSL_PROTOCOL_ERROR)
  10276. (EX_SSL_UNKNOWN_ERROR)
  10277. (EX_SSL_CONNECT_ERROR)
  10278. (EX_SOCKET_BLOCKING)
  10279. (EX_SOCKET_NONBLOCKING)
  10280. (EX_SOCKET_UNKNOWN_ERROR)
  10281. * src/Util.cc
  10282. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10283. reserved name.
  10284. (httpGMT): Fixed typo.
  10285. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Merged Ross's win32 patch(manually)
  10287. In the course of merging, following files are added.
  10288. * src/strptime.{h,c}
  10289. * src/libgen.{h,c}
  10290. * src/inet_aton.{h,c}
  10291. * src/Platform.{h,cc}
  10292. * src/localtime_r.{h,c}
  10293. * src/getaddrinfo.{h,c}
  10294. I've gethered network related things, and put them to following file:
  10295. * src/a2netcompat.h
  10296. Also io related things are put to following file:
  10297. * src/a2io.h
  10298. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10299. * src/message.h
  10300. (MSG_ALLOCATION_COMPLETED)
  10301. (EX_TOO_LARGE_FILE)
  10302. (EX_SIZE_MISMATCH)
  10303. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10304. (EX_INVALID_CHUNK_CHECKSUM)
  10305. (EX_INVALID_RANGE_HEADER)
  10306. * src/FileAllocationCommand.cc
  10307. * src/HttpResponse.cc
  10308. * src/RequestGroup.cc
  10309. * src/MultiDiskAdaptor.cc
  10310. * src/OptionHandlerImpl.h
  10311. * src/HttpResponseCommand.cc
  10312. * src/FtpNegotiateCommand.cc
  10313. * src/IteratableChecksumValidator.cc
  10314. * src/SegmentMan.cc
  10315. * src/ChunkChecksumValidator.cc
  10316. Added Randomizer::getRandomNumber(long int)
  10317. * src/Randomizer.h (getRandomNumber)
  10318. * src/SimpleRandomizer.h (getRandomNumber)
  10319. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10320. * src/Util.cc (randomAlpha): Use this new function.
  10321. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10322. Converted int's to in32_t. long long int's are also converted to
  10323. int64_t
  10324. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10325. Fixed the bug that prevents cookies from being sent to the server
  10326. if the domain of cookie is FQDN and starts with ".".
  10327. * src/Cookie.cc (match)
  10328. To add the ability to change peer id.
  10329. * src/DefaultBtContext.h
  10330. (_peerIdPrefix): New variable
  10331. (setPeerIdPrefix): New function.
  10332. * src/torrentRequestInfo.cc
  10333. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10334. DefaultBtContext.
  10335. * src/main.cc (main): Added peer-id-prefix command-line option.
  10336. The usage message is not added yet.
  10337. * src/DefaultBtContext.cc
  10338. (generatePeerId): Use _peerIdPrefix.
  10339. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10340. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10341. Fixed the bug that prevents filename in content-disposition from
  10342. being retrieved when filename is not quoted.
  10343. * src/Util.cc (getContentDispositionFilename)
  10344. Fixed the bug that causes infinate loop and memory leak when file open
  10345. operation failed.
  10346. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10347. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10348. Fixed the bug that causes segfault when all URIs specified are
  10349. unsupported.
  10350. * src/RequestGroupMan.cc (getInitialCommands)
  10351. Check if RequestGroup::createNextCommand() returns empty list of
  10352. commands.
  10353. * src/RequestGroup.cc (createNextCommand)
  10354. Change log level from info to error so that users can notice that
  10355. an error occurred.
  10356. Fixed the bug that causes segfault when a zero-sized file is
  10357. downloaded.
  10358. * src/BitfieldMan.cc (isAllBitSet)
  10359. Return true if bitfieldLength is 0.
  10360. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. * src/main.cc
  10362. (showUsage): Added 3 usage examples for metalink download.
  10363. Replace MetalinkChunkChecksum with ChunkChecksum.
  10364. * src/MetalinkChunkChecksum.h: Removed.
  10365. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10366. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10367. * src/Xml2MetalinkProcessor.cc
  10368. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10369. * src/MetalinkRequestInfo.cc (execute)
  10370. * Release 0.11.1
  10371. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10372. Reads URIs from stdin when "-i -" is specified.
  10373. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10374. * src/UriListParser.h, src/UriListParser.cc: New class.
  10375. * src/StreamUriListParser.h: New class.
  10376. * src/FileUriListParser.h: New class.
  10377. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10378. instead of UriFileListParser.
  10379. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10380. Made console readout more readable.
  10381. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10382. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10383. Fix the bug that causes -s option not to work.
  10384. * src/main.cc (main)
  10385. * src/a2algo.h: New file.
  10386. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10387. Create directory structure specified in metalink file.
  10388. * src/RequestGroup.h, src/RequestGroup.cc
  10389. (initAndOpenFile): Create a directory to store files if it does not
  10390. exist.
  10391. (getDir): New function.
  10392. Added ETA and download speed for an individual file to readout.
  10393. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10394. * src/RequestGroup.h
  10395. (calculateDownloadSpeed): New function.
  10396. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10397. Made -S option work with metalink file and provided selective download
  10398. to metalink.
  10399. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10400. (filename): Removed.
  10401. (file): New variable.
  10402. (size): Removed.
  10403. (operator=): Updated.
  10404. (getPath): New function.
  10405. (getLength): New function.
  10406. (toFileEntry): New function.
  10407. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10408. (execute): Use toStream.
  10409. (showFileEntry): Removed.
  10410. * src/MetalinkRequestInfo.h
  10411. (targetFiles): New variable.
  10412. (setTargetFiles): New variable.
  10413. * src/MetalinkRequestInfo.cc
  10414. (execute): Added the ability to print file information included in
  10415. a metalink file.
  10416. Added selective download mode to metalink.
  10417. * src/main.cc
  10418. (showUsage): Updated to denote that -S and --select-file options are
  10419. applicable to metalink.
  10420. * src/FileEntry.h
  10421. (operator=): New function.
  10422. (getBasename): New function.
  10423. (getDirname): New function.
  10424. * src/Util.h, src/Util.cc
  10425. (toStream): New function.
  10426. * src/Xml2MetalinkProcessor.cc: Updated.
  10427. Made aria2 work with metalink with directory structure.
  10428. * src/File.h, src/File.cc
  10429. (getBasename): New function.
  10430. (getDirname): New function.
  10431. * src/RequestGroup.h, src/RequestGroup.cc
  10432. (_topDir): New variable.
  10433. (setTopDir): New function.
  10434. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10435. Rewrote HTTP header parsing with stringstream.
  10436. * src/HttpConnection.h, src/HttpConnection.cc
  10437. (HttpRequestEntry): New class.
  10438. (headerBuf): Removed.
  10439. (headerBufLength): Removed.
  10440. (outstandingHttpRequests): Now its element type is
  10441. HttpRequestEntryHandle.
  10442. (findEndOfHeader): Removed.
  10443. (receiveResponse): Rewritten.
  10444. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10445. Updated doc for -j option to notice that it should be used with -i
  10446. option.
  10447. * src/main.cc (showUsage)
  10448. Removed unused classes.
  10449. * src/RequestInfo.h
  10450. (FileInfo): Removed.
  10451. (checksum): Removed.
  10452. (fileInfo): Removed.
  10453. (setChecksum): Removed.
  10454. (getChecksum): Removed.
  10455. (getFileInfo): Removed.
  10456. Use ISO units.
  10457. * src/ConsoleDownloadEngine.cc
  10458. * src/TorrentConsoleDownloadEngine.cc
  10459. * src/Util.cc (abbrevSize)
  10460. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10461. Added the default listening ports to the help message.
  10462. * src/main.cc (showUsage)
  10463. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10464. Reduce the number of calls to gettimeofday to lower CPU load.
  10465. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10466. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10467. * src/Peer.h (calculateUploadSpeed): New function.
  10468. (calculateDownloadSpeed): New function.
  10469. * src/DefaultPeerStorage.cc
  10470. (CalculateStat): Added _now variable.
  10471. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10472. and Peer::calculateUploadSpeed(const struct timeval&)
  10473. Drop connection if no request or piece message is exchanged in
  10474. a certain interval.
  10475. * src/DefaultBtInteractive.h
  10476. (btRuntime): New variable.
  10477. (inactiveCheckPoint): New variable.
  10478. (checkActiveInteraction): New function.
  10479. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10480. request or piece message is received.
  10481. (checkActiveInteraction): New function.
  10482. (doInteractionProcessing): Call checkActiveInteraction.
  10483. Fixed the bug that causes remote Metalink and Torrent files are not
  10484. processed.
  10485. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10486. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10487. Changed format of log file.
  10488. * src/SimpleLogger.cc
  10489. * Release 0.11.0
  10490. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10491. * src/AbstractCommand.cc
  10492. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10493. MSG_MAX_TRY from error to info.
  10494. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10495. * src/message.h
  10496. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10497. (MSG_DOWNLOAD_ABORTED): Added %s.
  10498. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10499. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10500. * src/PeerAbstractCommand.cc
  10501. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10502. * src/Request.h
  10503. (cookieBox): Made ShardHandle.
  10504. * src/RequestGroup.h, src/RequestGroup.cc
  10505. (createNextCommandWithAdj): New function.
  10506. * src/FileAllocationCommand.cc
  10507. (executeInternal): Use createNextCommandWithAdj().
  10508. * src/CheckIntegrityCommand.cc
  10509. (executeInternal): Use createNextCommandWithAdj().
  10510. Added --load-cookies command-option.
  10511. * src/OptionHandlerFactory.cc
  10512. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10513. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10514. Now aria2 can handle cookie's expiration date.
  10515. * src/Cookie.h (expires): Changed its type to time_t.
  10516. * src/main.cc: Added --load-cookies command-line option.
  10517. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10518. * src/Util.h, src/Util.cc (httpGMT): New function.
  10519. * src/Request.cc (Request): Initialize cookieBox using
  10520. CookieBoxFactory.
  10521. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10522. * src/CookieParser.h, src/CookieParser.cc: New class.
  10523. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10524. * src/HttpResponseCommand.cc
  10525. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10526. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10527. download.
  10528. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10529. Added -j command-line option.
  10530. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10531. * src/main.cc
  10532. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10533. Rewritten using stringstream.
  10534. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10535. Rewritten using stringstream.
  10536. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10537. Make download size shown in MB, KB.
  10538. * src/ConsoleDownloadEngine.h (sendStatistics)
  10539. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10540. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Accept incoming connections if download rate is low.
  10542. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10543. (_lowestSpeedLimit): New variable.
  10544. (setLowestSpeedLimit): New function.
  10545. (execute): Accept incoming connections if download rate is low.
  10546. MAX_PEERS is ignored in this case.
  10547. Disable PREF_OUT in multiple concurrent download:
  10548. * src/RequestGroup.h, src/RequestGroup.cc
  10549. (setUserDefinedFilename): New function.
  10550. * src/DownloadEngineFactory.cc
  10551. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10552. concurrent download.
  10553. * src/DefaultSegmentManFactory.cc
  10554. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10555. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10556. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10557. Added its overloaded method.
  10558. * src/RequestGroup.h
  10559. (_numConcurrentCommand): New variable.
  10560. (setNumConcurrentCommand): New function.
  10561. * src/RequestGroup.cc
  10562. Abort download if same file is being downloaded concurrently.
  10563. * src/RequestGroup.h, src/RequestGroupMan.cc
  10564. (isSameFileBeingDownloaded): New function.
  10565. * src/HttpResponseCommand.cc (executeInternal)
  10566. * src/FtpNegotiateCommand.cc (recvSize)
  10567. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10568. * main.cc: Added help message for -i option.
  10569. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10570. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10571. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10572. * src/MetalinkEntry.h
  10573. (checksum): Changed to ChecksumHandle
  10574. * src/MetalinkRequestInfo.cc
  10575. (checksum): Changed to ChecksumHandle
  10576. * src/File.cc
  10577. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10578. * src/common.h
  10579. (DIR_OPEN_MODE): New definition
  10580. * src/RequestGroup.cc
  10581. (prepareForNextAction): Added an argument.
  10582. * src/message.h
  10583. (MSG_GOOD_CHECKSUM): New definition
  10584. (MSG_BAD_CHECKSUM): New definition
  10585. * src/HttpResponseCommand.cc
  10586. (handleDefaultEncoding): Continue download sequence in new
  10587. non-segmented download.
  10588. * src/FileAllocationEntry.h
  10589. (_nextDownloadCommand): New variable.
  10590. * src/DownloadCommand.cc
  10591. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10592. available.
  10593. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10594. * src/IteratableChecksumValidator.h,
  10595. src/IteratableChecksumValidator.cc: New class.
  10596. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10597. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10598. Change file mode to 666:
  10599. * src/common.h (OPEN_MODE): New definition.
  10600. * src/File.cc
  10601. * src/Util.cc
  10602. * src/Directry.cc
  10603. * src/AbstractDiskWriter.cc
  10604. Change the level of log message "download aborted" to debug:
  10605. * src/PeerAbstractCommand.cc (execute)
  10606. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10607. * src/TrackerWatcherCommand.cc
  10608. (createCommand): Sleep some seconds after request failed.
  10609. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10610. then abort tracker request.
  10611. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10612. * Added the simultaneous download feature.
  10613. * src/main.cc: Print "Exception caught: " when exception is caught.
  10614. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10615. * src/ActivePeerConnectionCommand.cc
  10616. * src/PeerInteractionCommand.cc
  10617. * src/BtRuntime.h
  10618. (cuidCounter): Removed.
  10619. (getNewCuid): Removed.
  10620. * src/DownloadEngineFactory.cc
  10621. * src/PeerListenCommand.cc
  10622. * src/TrackerUpdateCommand.cc
  10623. * src/PeerInitiateConnectionCommand.cc
  10624. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10625. * src/PeerAbstractCommand.cc
  10626. (onAbort): Call PeerStorage::returnPeer()
  10627. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10628. (incomingPeers): New variable.
  10629. (addIncomingPeer): New function.
  10630. (returnPeer): New function.
  10631. (onErasingPeer): New function.
  10632. (addPeer): push_back -> push_front
  10633. (getActivePeers): Rewritten.
  10634. (calculateStat): Rewritten.
  10635. * src/PeerStorage.h
  10636. (TransferStat::copy): New function.
  10637. (TransferStat::TransferStat): New function.
  10638. (TransferStat::operator=): New function.
  10639. (addIncomingPeer): New function.
  10640. (returnPeer): New function.
  10641. * src/PeerListenCommand.cc
  10642. (execute): Use PeerStorage::addIncomingPeer() instead of
  10643. Peer::addPeer().
  10644. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10645. Connect to a peer actively when download speed is lower than specified
  10646. speed in torrent download:
  10647. * src/ActivePeerConnectionCommand.h: New class.
  10648. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10649. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10650. * src/main.cc: Fixed the bug that prevents download if .netrc
  10651. doesn't exist.
  10652. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10653. To cache resolved hostname:
  10654. * src/AbstractCommand.h, src/AbstractCommand.cc
  10655. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10656. Added dns cache.
  10657. * src/FtpInitiateConnectionCommand.cc
  10658. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10659. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10660. NameResolver working without ares.
  10661. * src/TorrentRequestInfo.cc
  10662. (execute): Don't cache dns in torrent download.
  10663. * src/HttpInitiateConnectionCommand.cc
  10664. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10665. * src/DNSCache.h: New class.
  10666. * src/UrlRequestInfo.cc
  10667. (execute): Use dns cache.
  10668. In http request, suppress port number in http request header if port
  10669. is 80 or 443:
  10670. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10671. request header if port is 80 or 443.
  10672. (createProxyRequest): Allways send port number.
  10673. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10674. To add the command-line option which disables netrc support:
  10675. * src/OptionHandlerFactory.cc
  10676. (createOptionHandlers): Added PREF_NO_NETRC.
  10677. * src/main.cc: Added -n option.
  10678. * src/prefs.h (PREF_NO_NETRC): New definition.
  10679. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10680. V_TRUE.
  10681. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10682. is V_FALSE. This may get configurable in the future release.
  10683. To clear peer's error status by time basis:
  10684. * src/PeerAbstractCommand.cc
  10685. (onAbort): Call Peer::startBadCondition().
  10686. * src/Peer.h, src/Peer.cc
  10687. (error): Removed.
  10688. (_badConditionStartTime): New variable.
  10689. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10690. (startBadCondition): New function.
  10691. (isGood): New function.
  10692. * src/DefaultPeerStorage.cc
  10693. (addPeer): Use Peer::isGood().
  10694. (FindFinePeer): Use Peer::isGood().
  10695. Always include port number in http request header:
  10696. * src/HttpRequest.cc (getHostText): Always include port number in
  10697. http request header.
  10698. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10699. To the ability to read options from a config file:
  10700. * src/main.cc: Command-line parameter validation is delegated to
  10701. OptionHandler class.
  10702. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10703. * src/Option.h, src/Option.cc (clear): New function.
  10704. * src/OptionParser.h, src/OptionParser.cc: New class.
  10705. * src/OptionHandler.h: New class.
  10706. * src/NameMatchOptionHandler.h: New class.
  10707. * src/OptionHandlerImpl.h: New classes.
  10708. * src/prefs.h: '_' -> '-'
  10709. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10710. (FTP_PASV): New definition.
  10711. * src/Util.h, src/Util.cc (getRealSize): New function.
  10712. To disable netrc support if .netrc file does not have correct
  10713. permissions:
  10714. * src/File.h, src/File.cc (mode): New function.
  10715. To prevent confidential information to be logged:
  10716. * src/HttpConnection.h, src/HttpConnection.cc
  10717. (eraseConfidentialInfo): New function.
  10718. (sendRequest): Call eraseConfidentialInfo().
  10719. (sendProxyRequest): Call eraseConfidentialInfo().
  10720. * src/main.cc: Validate permissions of .netrc file.
  10721. To add --user-agent command-line option:
  10722. * src/main.cc: Added new command line option: --user-agent
  10723. * src/prefs.h (PREF_USER_AGENT): New definition.
  10724. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10725. parameter to HttpRequest object.
  10726. * src/AbstractProxyRequestCommand.cc
  10727. (executeInternal): Set user-agent option parameter to HttpRequest
  10728. object.
  10729. Marged the patches from Dan Fandrich.
  10730. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10731. Use filename and size from Metalink file instead of sending HEAD
  10732. request:
  10733. * src/UrlRequestInfo.h
  10734. (_filename): New variable.
  10735. (_totalLength): New variable.
  10736. (setTotalLength): New variable.
  10737. (setFilename): New variable.
  10738. * src/MetalinkRequestInfo.cc
  10739. (execute): Set filename and size to UrlRequestInfo
  10740. * src/UrlRequestInfo.cc
  10741. (execute): Use filename and size from Metalink instead of seding
  10742. HEAD request to servers.
  10743. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10744. To add the ability to resume downloading a partially downloaded file
  10745. which is downloaded from the beginning:
  10746. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10747. takes this role.
  10748. * src/main.cc: Added -c option.
  10749. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10750. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10751. * src/prefs.h (PREF_CONTINUE): New definition.
  10752. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10753. * src/DefaultDiskWriter.cc
  10754. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10755. * src/AbstractDiskWriter.h
  10756. (glowFileAllocator): New variable.
  10757. * src/AbstractDiskWriter.cc
  10758. (openExistingFile): Now preallocate file space from the end of the
  10759. existing file if totalLength argument is specified and grater than 0.
  10760. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10761. to download exists in local, continue the download of the file.
  10762. --allow-overwrite=true is assumed in this context.
  10763. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10764. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10765. Throw exception if --check-integrity=true is specified but chunk
  10766. checksums are not provided:
  10767. * src/UrlRequestInfo.cc
  10768. Do not print URLs to stdout:
  10769. * src/UrlRequestInfo.cc
  10770. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10771. * src/Request.h: Use AuthResolver to get authentication information.
  10772. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10773. set to RequestFactory object.
  10774. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10775. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10776. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10777. create Request object.
  10778. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10779. To integrate Netrc into exsiting classes:
  10780. * src/Request.h
  10781. (_userDefinedAuthConfig): New variable.
  10782. (findNetrcAuthenticator): New function.
  10783. (segment): Removed.
  10784. (setUserDefinedAuthConfig): New function.
  10785. (resolveHttpAuthConfigItem): New function.
  10786. (resolveFtpAuthConfigItem): New function.
  10787. (resolveHttpProxyAuthConfigItem): New function.
  10788. * src/HttpRequest.h
  10789. (authConfig): Removed.
  10790. (proxyAuthConfig): Removed.
  10791. (setAuthConfig): Removed.
  10792. (setProxyAuthConfig): Removed.
  10793. * src/UrlRequest.h
  10794. (getHeadResult): Added a parameter: authConfigHandle
  10795. * src/common.h
  10796. (SingletonHolder.h): New include.
  10797. * src/main.cc
  10798. (Netrc.h): New include.
  10799. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10800. Added initial value of PREF_NETRC_PATH.
  10801. Added the initialization of netrc.
  10802. * src/AuthConfig.h: New class.
  10803. * src/prefs.h
  10804. (PREF_NETRC_PATH): New definition.
  10805. * src/HttpAuthConfig.h: Removed.
  10806. * src/Netrc.cc
  10807. (getRequiredNextToken): New function.
  10808. (skipMacdef): New function.
  10809. (parse): Rewritten.
  10810. * src/Netrc.h
  10811. (getRequiredNextToken): New function.
  10812. (skipMacdef): New function.
  10813. * src/Util.h, src/Util.cc
  10814. (getHomeDir): New function.
  10815. * src/TrackerWatcherComand.cc
  10816. (createRequestCommand): Use AuthConfig.
  10817. * src/FtpConnection.cc
  10818. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10819. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10820. * src/Request.cc
  10821. (findNetrcAuthenticator): New function.
  10822. (resolveHttpAuthConfigItem): New function.
  10823. (resolveFtpAuthConfigItem): New function.
  10824. (resolveHttpProxyAuthConfigItem): New function.
  10825. * src/UrlRequestInfo.cc: Use AuthConfig.
  10826. * src/HttpRequest.cc
  10827. (createRequest): Use authConfig.
  10828. (getProxyAuthString): Use authConfig.
  10829. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10830. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10831. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10832. To reduce overhead to find commands whose socket is either
  10833. readable or writable in the download engine loop:
  10834. * src/Command.h, src/Command.cc
  10835. (STATUS): New enum.
  10836. (status): New variable.
  10837. (statusMatch): New function.
  10838. (setStatusActive): New function.
  10839. (setStatusInactive): New function.
  10840. * src/DownloadEngine.h, src/DownloadEngine.cc
  10841. (executeCommand): New function.
  10842. (run): Simplified.
  10843. (waitData): Call Command::setStatusActive() when command's socket is
  10844. readable or writable.
  10845. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10846. To handle Segment as SegmentHandle:
  10847. * src/AbstractCommand.cc (execute): Rewritten.
  10848. * src/SegmentMan.h: Segment -> SegmentHandle
  10849. Introducded HttpResponse class, HttpRequest class to improve code
  10850. extensiveness and make it clear:
  10851. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10852. HttpResponse class.
  10853. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10854. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10855. * src/HttpConnection.cc: Contruction of http request were moved to
  10856. HttpRequest class.
  10857. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10858. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10859. * src/HttpAuthConfig.h: New class.
  10860. * src/Range.h: New class.
  10861. To make FtpTunnel{Request, Response}Command and
  10862. HttpProxy{Request, Response}Command derived from
  10863. AbstractProxy{Request, Response}Command:
  10864. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10865. Derived from AbstractProxyRequestCommand class.
  10866. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10867. Derived from AbstractProxyResponseCommand class.
  10868. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10869. Derived from AbstractProxyRequestCommand class.
  10870. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10871. Derived from AbstractProxyResponseCommand class.
  10872. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10873. : New class.
  10874. * src/AbstractProxyResponseCommand.h,
  10875. src/AbstractProxyResponseCommand.cc: New class.
  10876. To add netrc support:
  10877. * src/Netrc.h, src/Netrc.cc: New class.
  10878. * src/Util.h, src/Util.cc (split): New function.
  10879. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10880. "Content-Range" header instead of "Range" header.
  10881. * src/HttpHeader.h
  10882. (getStatus): Removed.
  10883. (setStatus): Removed.
  10884. * src/Segment.h
  10885. (getPositionToWrite): New function.
  10886. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10887. * src/HttpHeader.h
  10888. (Range.h): New include.
  10889. (status): New variable.
  10890. (HttpHeader): Initialized status with 0.
  10891. (getStatus): New function.
  10892. (setStatus): New function.
  10893. (getRange): New function.
  10894. (HttpHeaderHandle): New function.
  10895. * src/HttpHeader.cc
  10896. (getRange): New function.
  10897. * src/Request.h
  10898. (RequestWeakHandle): New definition.
  10899. * src/HttpConnection.h
  10900. (HttpConnectionHandle): New type definition.
  10901. * src/HttpConnection.cc
  10902. (receiveResponse): Set HTTP status to headers.
  10903. * src/main.cc
  10904. (showUsage): Fixed typo.
  10905. * src/Segment.h
  10906. (SegmentHandle): New type definition.
  10907. * src/BitfieldMan.h
  10908. (getMissingUnusedLength): New function.
  10909. * src/BitfieldMan.cc
  10910. (getMissingUnusedLength): New function.
  10911. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10912. To fix static initialization order problem:
  10913. * src/BitfieldManFactory.h
  10914. (defaultRandomizer): Removed.
  10915. (factory): New variable.
  10916. (getNewFactory): Removed.
  10917. (getFactoryInstance): New function.
  10918. (setDefaultRandomizer): Rewritten.
  10919. (getDefaultRandomizer): Rewritten.
  10920. * src/BitfieldManFactory.cc
  10921. (defaultRandomizer): Removed.
  10922. (factory): Initialized to 0.
  10923. (BitfieldManFactory): Initialized randomizer to 0.
  10924. * src/DefaultPieceStorage.cc
  10925. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10926. * src/Peer.cc
  10927. (Peer): getNewFactory() -> getFactoryInstance()
  10928. * src/SegmentMan.cc
  10929. (initBitfield): getNewFactory() -> getFactoryInstance()
  10930. * src/Piece.cc
  10931. (Piece): getNewFactory() -> getFactoryInstance()
  10932. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10933. To fix the bug that causes crash on Max OS X:
  10934. * src/SimpleRandomizer.h
  10935. (getInstance): Create new instance if the static variable is null.
  10936. * src/SimpleRandomizer.cc
  10937. (randomizer): Initialized to 0.
  10938. * src/BitfieldManFactory.h
  10939. (getNewFactory): Removed the call to setRandomizer().
  10940. To fix the miscalculation of the range of checksum:
  10941. * src/BitfieldMan.h
  10942. (isBitSetOffsetRange): New function.
  10943. * src/BitfieldMan.cc
  10944. (isBitSetOffsetRange): New function.
  10945. * src/SegmentMan.cc
  10946. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10947. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10948. * Release 0.10.1
  10949. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10950. To lower CPU usage in BitTorrent download when --max-upload-limit
  10951. command-line option specified:
  10952. * src/DefaultBtMessageDispatcher.cc
  10953. (sendMessages): Calculate uploading speed only when current message
  10954. is uploading data and is not sent yet.
  10955. * src/DefaultPeerStorage.h
  10956. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10957. * src/HttpResponseCommand.cc
  10958. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10959. This fixes compile error in Soralis 10.
  10960. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10961. To fix segfault in Metalink download:
  10962. * src/UrlRequestInfo.h
  10963. (filename): Removed.
  10964. (totalLength): Removed.
  10965. (setTotalLength): Removed.
  10966. (setFilename): Removed.
  10967. * src/MetalinkRequestInfo.cc
  10968. (execute): Do not set filename and totalLength to reqInfo.
  10969. Set chunk checksum to reqInfo if it is not null.
  10970. * src/HttpResponseCommand.cc
  10971. (executeInternal): Fixed filename in log.
  10972. (handleDefaultEncoding): Removed the call to initBitfield() and
  10973. markAllPiecesDone().
  10974. (handleOtherEncoding): Added HEAD method handling.
  10975. * src/FtpNegotiateCommand.cc
  10976. (executeInternal): Added SEQ_HEAD_OK handling.
  10977. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10978. return false.
  10979. * src/FtpNegotiateCommand.h
  10980. (SEQ_HEAD_OK): New definition.
  10981. * src/SegmentMan.cc
  10982. (initBitfield): Delete bitfield.
  10983. (isChunkChecksumValidationReady): Fixed the condition.
  10984. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10985. works fine.
  10986. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10987. * src/Xml2MetalinkProcessor.h
  10988. (xpathExists): New function.
  10989. * src/Xml2MetalinkProcessor.cc
  10990. (xpathExists): New function.
  10991. Not to send HEAD request if filename and size are available in Metalink
  10992. file:
  10993. * src/UrlRequestInfo.h
  10994. (filename): New variable.
  10995. (totalLength): New variable.
  10996. (setTotalLength): New function.
  10997. (setFilename): New function.
  10998. * src/MetalinkRequestInfo.cc
  10999. (execute): Set filename and size to UrlRequestInfo.
  11000. * src/MetalinkEntry.cc
  11001. (MetalinkEntry): Initialize size with 0.
  11002. * src/UrlRequestInfo.cc
  11003. (execute): Set filename and size to SegmentMan.
  11004. Not to download rest of the files after selected files are downloaded
  11005. in BitTorrent:
  11006. * src/PieceStorage.h
  11007. (allDownloadFinished): New function.
  11008. * src/DefaultBtAnnounce.cc
  11009. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11010. downloadFinished.
  11011. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11012. * src/DefaultPieceStorage.cc
  11013. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11014. Commented out the call to finishSelectiveDownloadingMode().
  11015. (downloadFinished): Call isFilteredAllBitSet() instead of
  11016. isAllBitSet().
  11017. (allDownloadFinished): New function.
  11018. * src/DefaultBtInteractive.cc
  11019. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11020. downloadFinished().
  11021. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11022. * src/TorrentDownloadEngine.cc
  11023. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11024. * src/BitfieldMan.h
  11025. (isFilteredAllBitSet): New function.
  11026. * src/ShareRatioSeedCriteria.h
  11027. (PieceStorage.h): New include.
  11028. (pieceStorage): New variable.
  11029. (evaluate):
  11030. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11031. * src/BitfieldMan.cc
  11032. (isFilteredAllBitSet): New function.
  11033. (isAllBitSet): Filter is not took into account.
  11034. Rename --force-truncate as --allow-overwrite:
  11035. * src/TorrentRequestInfo.cc
  11036. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11037. * src/main.cc
  11038. (showUsage): --force-truncate -> --allow-overwrite
  11039. * src/message.h
  11040. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11041. * src/prefs.h
  11042. (PREF_FORCE_TRUNCATE): Removed.
  11043. (PREF_ALLOW_OVERWRITE): New definition.
  11044. * src/SegmentMan.cc
  11045. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11046. * src/MetalinkRequestInfo.cc
  11047. (execute): Queueing message are now logged in info level.
  11048. * src/common.h
  11049. (LONG_LONG_MAX): Removed.
  11050. (LONG_LONG_MIN): Removed.
  11051. * src/HttpResponseCommand.cc
  11052. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11053. * src/FtpNegotiateCommand.cc
  11054. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11055. * src/main.cc
  11056. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11057. command-line option.
  11058. (main): Added --check-integriy and --realtime-chunk-checksum
  11059. command-line option.
  11060. --force-truncate -> --allow-overwrite
  11061. Set initial value of --check-integrity option to false.
  11062. Don't show usage when error occurs while persing command-line options.
  11063. Removed deprecated --upload-limit option.
  11064. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11065. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11066. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11067. * src/BtAllowedFastMessage.cc:
  11068. * src/BtBitfieldMessage.cc
  11069. * src/BtCancelMessage.cc
  11070. * src/BtChokeMessage.cc
  11071. * src/BtHaveAllMessage.cc
  11072. * src/BtHaveMessage.cc
  11073. * src/BtHaveNoneMessage.cc
  11074. * src/BtInterestedMessage.cc
  11075. * src/BtNotInterestedMessage.cc
  11076. * src/BtPieceMessage.cc
  11077. * src/BtPortMessage.cc
  11078. * src/BtRejectMessage.cc
  11079. * src/BtRequestMessage.cc
  11080. * src/BtSuggestPieceMessage.cc
  11081. * src/BtUnchokeMessage.cc
  11082. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11083. files are affected.
  11084. * src/ChunkChecksumValidator.cc
  11085. * src/SegmentMan.cc
  11086. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11087. To add chunk checksum validation:
  11088. * src/MetalinkEntry.h
  11089. (MetalinkChunkChecksum.h): New include.
  11090. (chunkChecksum): New variable.
  11091. * src/Request.h
  11092. (method): New variable.
  11093. (setMethod): New function.
  11094. (getMethod): New function.
  11095. (METHOD_GET): New static constant.
  11096. (METHOD_HEAD): New static constant.
  11097. * src/Xml2MetalinkProcessor.h
  11098. (getPieceHash): New function.
  11099. * src/PieceStorage.h
  11100. (markAllPiecesDone): New function.
  11101. (checkIntegrity): New function.
  11102. * src/FileAllocator.h
  11103. (NullFileAllocationMonitor.h): New include.
  11104. (FileAllocator): Initialize fileAllocationMonitor with new
  11105. NullFileAllocationMonitor().
  11106. * src/MultiDiskAdaptor.h
  11107. (messageDigest.h): Remove include.
  11108. (ctx): Removed.
  11109. (hashUpdate): Added ctx.
  11110. (MultiDiskAdaptor): Removed ctx.
  11111. (sha1Sum): Renamed as messageDigest.
  11112. (messageDigest): New function.
  11113. * src/UrlRequestInfo.h
  11114. (HeadResult): New class.
  11115. (digestAlgo): New variable.
  11116. (chunkChecksumLength): New variable.
  11117. (chunkChecksums): New variable.
  11118. (getHeadResult): New function.
  11119. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11120. (setDigestAlgo): New function.
  11121. (setChunkChecksumLength): New function.
  11122. (setChunkChecksums): New function.
  11123. * src/DefaultPieceStorage.cc
  11124. (DiskAdaptorWriter.h): New include.
  11125. (ChunkChecksumValidator.h): New include.
  11126. (markAllPiecesDone): New function.
  11127. (checkIntegrity): New function.
  11128. * src/DefaultBtContext.h
  11129. (getPieceHashes): New function.
  11130. * src/TorrentRequestInfo.cc
  11131. (execute): Try to validate chunk checksum if file already exists and
  11132. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11133. * src/messageDigest.h
  11134. (~MessageDigestContext): Added digestFree().
  11135. * src/MetalinkRequestInfo.cc
  11136. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11137. * src/DiskAdaptor.h
  11138. (messageDigest.h): New include.
  11139. (sha1Sum): Renamed as messageDigest.
  11140. (messageDigest): New function.
  11141. * src/DownloadCommand.h
  11142. (PeerStat.h): New include.
  11143. (maxDownloadSpeedLimit): New variable.
  11144. (startupIdleTime): New variable.
  11145. (lowestDownloadSpeedLimit): New variable.
  11146. (peerStat): New variable.
  11147. (setMaxDownloadSpeedLimit): New function.
  11148. (setStartupIdleTime): New function.
  11149. (setLowestDownloadSPeedLimit): New function.
  11150. * src/BtContext.h
  11151. (getPieceHashes): New function.
  11152. * src/main.cc
  11153. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11154. option to true for testing purpose.
  11155. * src/BtPieceMessage.cc
  11156. (checkPieceHash): Use messageDigest
  11157. * src/DownloadEngine.cc
  11158. (SetDescriptor): Removed.
  11159. (AccumulateActiveCommand): Removed.
  11160. (waitData): Rewritten.
  11161. (updateFdSet): Rewritten.
  11162. * src/MultiDiskAdaptor.cc
  11163. (hashUpdate): Added ctx.
  11164. (sha1Sum): Renamed as messageDigest.
  11165. (messageDigest): New function.
  11166. * src/BitfieldMan.h
  11167. (isBitRangeSet): New function.
  11168. (unsetBitRange): New function.
  11169. * src/ByteArrayDiskWriter.h
  11170. (sha1Sum): Renamed as messageDigest.
  11171. (messageDigest): New function.
  11172. * src/ConsoleDownloadEngine.cc
  11173. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11174. * src/DiskWriter.h
  11175. (messageDigest.h): New include.
  11176. (sha1Sum): Renamed as messageDigest.
  11177. (messageDigest): New function.
  11178. * src/ChunkChecksumValidator.h: New class.
  11179. * src/DiskAdaptorWriter.h: New class.
  11180. * src/prefs.h
  11181. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11182. (PREF_CHECK_INTEGRITY): New definition.
  11183. * src/HttpResponseCommand.cc
  11184. (handleDefaultEncoding): Added method "HEAD" handling.
  11185. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11186. (handleOtherEncoding):
  11187. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11188. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11189. startupIdleTime, lowestDownloadSpeedLimit to command.
  11190. * src/SegmentMan.h
  11191. (getSegmentEntryByIndex): New function.
  11192. (getSegmentEntryByCuid): New function.
  11193. (getSegmentEntryIteratorByCuid): New function.
  11194. (diskWriter): DiskWriter -> DiskWriterHandle
  11195. (pieceHashes): New variable.
  11196. (chunkHashLength): New variable.
  11197. (digestAlgo): New variable.
  11198. (FindPeerStat): Removed.
  11199. (getPeerStat): Rewritten.
  11200. (markAllPiecesDone): New function.
  11201. (checkIntegrity): New function.
  11202. (tryChunkChecksumValidation): New function.
  11203. (isChunkChecksumValidationReady): New function.
  11204. * src/BitfieldMan.cc
  11205. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11206. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11207. blocks to 0.
  11208. (isBitRangeSet): New function.
  11209. (unsetBitRange): New function.
  11210. * src/FtpNegotiateCommand.cc
  11211. (executeInternal): Set maxDownloadSpeedLimit,
  11212. startupIdleTime, lowestDownloadSpeedLimit to command.
  11213. (recvSize): Added method "HEAD" handling.
  11214. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11215. * src/AbstractSingleDiskAdaptor.cc
  11216. (sha1Sum): Renamed as messageDigest.
  11217. (messageDigest): New function.
  11218. * src/AbstractSingleDiskAdaptor.h
  11219. (sha1Sum): Renamed as messageDigest.
  11220. (messageDigest): New function.
  11221. * src/Util.h
  11222. (indexRange): New function.
  11223. * src/MetalinkEntry.cc
  11224. (MetalinkEntry): Initialized chunkChecksum to 0.
  11225. * src/ShaVisitor.cc
  11226. (~ShaVisitor): Removed the call to ctx.digestFree().
  11227. * src/SegmentMan.cc
  11228. (ChunkChecksumValidator.h): New include.
  11229. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11230. to DIGEST_ALGO_SHA1.
  11231. (~SegmentMan): Removed diskWriter.
  11232. (FindSegmentEntryByIndex): Removed.
  11233. (FindSegmentEntryByCuid): Removed.
  11234. (checkoutSegment): Rewritten.
  11235. (findSlowerSegmentEntry): Rewritten.
  11236. (getSegment): Rewritten.
  11237. (updateSegment): Rewritten.
  11238. (completeSegment): Rewritten.
  11239. (markAllPiecesDone): New function.
  11240. (checkIntegrity): New function.
  11241. (isChunkChecksumValidationReady): New function.
  11242. (tryChunkChecksumValidation): New function.
  11243. * src/Xml2MetalinkProcessor.cc
  11244. (getEntry): Get size and set it to entry.
  11245. Get chunk checksum and set it to entry.
  11246. (getPieceHash): New function.
  11247. * src/Util.cc
  11248. (sha1Sum): Removed ctx.digestFree()
  11249. (fileChecksum): Removed ctx.digestFree()
  11250. (indexRange): New function.
  11251. * src/Request.cc
  11252. (METHOD_GET): New variable.
  11253. (METHOD_HEAD): New variable.
  11254. (Request): Added method.
  11255. * src/UrlRequestInfo.cc
  11256. (FatalException.h): New include.
  11257. (message.h): New include.
  11258. (operator<<): Added operator<< for class HeadResult.
  11259. (getHeadResult): New function.
  11260. (execute): Get filename and size in separate download engine.
  11261. * src/ChunkChecksumValidator.cc: New class.
  11262. * src/DownloadCommand.cc:
  11263. (DownloadCommand): Added peerStat.
  11264. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11265. the value from Option.
  11266. The buffer size is now 16KB.
  11267. Use peerStat member instead of getting it from SegmentMan.
  11268. Use startupIdleTime member instead of gettingit from Option.
  11269. Added chunk checksum validation.
  11270. * src/AbstractDiskWriter.cc
  11271. (AbstractDiskWriter): Removed ctx.
  11272. (~AbstractDiskWriter): Removed ctx.digestFree()
  11273. (writeDataInternal): Returns the return value of write.
  11274. (readDataInternal): Returns the return value of read.
  11275. (sha1Sum): Renamed as messageDigest
  11276. (messageDigest): New function.
  11277. * src/AbstractDiwkWriter.h
  11278. (messageDigest.h): Removed include.
  11279. (ctx): Removed.
  11280. (sha1Sum): Renamed as messageDigest
  11281. (messageDigest): New function.
  11282. * src/DefaultPieceStorage.h
  11283. (markAllPiecesDone): New function.
  11284. (checkIntegrity): New function.
  11285. * src/NullFileAllocationMonitor.h: New class.
  11286. * src/MetalinkChunkChecksum.h: New class.
  11287. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11288. To decrease CPU usage in bittorrent download, calculation results in
  11289. BitfieldMan were cached and realtime fetching PeerObject was removed
  11290. with WeakHandle introduced. Option values are set to the objects
  11291. by setter before download begins.
  11292. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11293. * src/DefaultBtRequestFactory.h
  11294. (dispatcher): BtMessageDispatcherHandle ->
  11295. BtMessageDispatcherWeakHandle.
  11296. (messageFactory): New variable.
  11297. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11298. BtMessageDispatcherWeakHandle.
  11299. (setBtMessageFactory): New function.
  11300. * src/DefaultBtMessageDispatcher.cc:
  11301. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11302. from Option.
  11303. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11304. feating the value from Option.
  11305. Use messageFactory member.
  11306. * src/PeerInteractionCommand.cc
  11307. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11308. Add reverse dependencies to factory object.
  11309. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11310. dispatcher.
  11311. Set messageFactory to receiver.
  11312. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11313. btInteractive.
  11314. Set receiver to peerObject.
  11315. Set maxDownloadSpeedLimit to this.
  11316. (executeInternal): Use maxDownloadSpeedLimit member.
  11317. * src/BtChokeMessage.cc
  11318. (doReceivedAction): Use dispatcher, requestFactory member.
  11319. (onSendComplete): Use dispatcher member.
  11320. * src/PeerInteractionCommand.h
  11321. (maxDownloadSpeedLimit): New variable.
  11322. * src/DefaultBtMessageReceiver.h
  11323. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11324. (dispatcher):
  11325. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11326. (messageFactory): New variable.
  11327. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11328. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11329. (setDispatcher):
  11330. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11331. (setBtMessageFactory): New function.
  11332. * src/DefaultBtInteractive.cc
  11333. (initiateHandshake): Use messageFactory member.
  11334. (addBitfieldMessageToQueue): Use messageFactory member.
  11335. (addAllowedFastMessageToQueue): Use messageFactory member.
  11336. (decideChoking): Use messageFactory member.
  11337. (checkHave): Use messageFactory member.
  11338. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11339. (receiveMessages): Use maxDownloadSpeedLimit member.
  11340. (decideInterest): Use messageFactory member.
  11341. * src/BtRequestMessage.cc
  11342. (doReceivedAction): Use messageFactory, dispatcher member.
  11343. (onQueued): Use dispatcher member.
  11344. * src/BtPieceMessage.cc
  11345. (doReceivedAction): Use dispatcher member.
  11346. (send): Use peerConnection member.
  11347. (onWrongPiece): Use requestFactory member.
  11348. (handleChokingEvent): Use messageFactory, dispatcher member.
  11349. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11350. * src/BtMessageDispatcher.h
  11351. (BtMessageDispatcherWeakHandle): New type definition.
  11352. * src/SimpleBtMessage.cc
  11353. (send): Use peerConnection member.
  11354. * src/BtRejectMessage.cc
  11355. (doReceivedAction): Use dispatcher member.
  11356. * src/DefaultBtMessageDispatcher.h
  11357. (Option.h): Removed include.
  11358. (messageFactory): New variable.
  11359. (option): Removed.
  11360. (maxUploadSpeedLimit): New variable.
  11361. (requestTimeout): New variable.
  11362. (DefaultBtMessageDispatcher): Removed option.
  11363. Added maxUploadSpeedLimit, requestTimeout.
  11364. (setOption): Removed.
  11365. (getOption): Removed.
  11366. (setMaxUploadSpeedLimit): New function.
  11367. (setRequestTimeout): New function.
  11368. (setBtMessageFactory): New function.
  11369. * src/DefaultBtInteractive.h
  11370. (btMessageReceiver):
  11371. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11372. (dispatcher):
  11373. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11374. (btRequestFactory):
  11375. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11376. (peerConnection):
  11377. PeerConnectionHandle -> PeerConnectionWeakHandle
  11378. (messageFactory): New variable.
  11379. (option): Removed.
  11380. (keepAliveInterval): New variable.
  11381. (maxDownloadSpeedLimit): New variable.
  11382. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11383. (setBtMessageReceiver):
  11384. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11385. (setDispatcher):
  11386. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11387. (setBtRequestFactory):
  11388. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11389. (setPeerConnection):
  11390. PeerConnectionHandle -> PeerConnectionWeakHandle
  11391. (setOption): Removed.
  11392. (setKeepAliveInterval): New function.
  11393. (setMaxDownloadSpeedLimit): New function.
  11394. (setBtMessageFactory): New function.
  11395. * src/BitfieldMan.h
  11396. (cachedNumMissingBlock): New variable.
  11397. (cachedNumFilteredBlock): New variable.
  11398. (cachedCompletedLength): New variable.
  11399. (cachedFilteredComletedLength): New variable.
  11400. (cachedFilteredTotalLength): New variable.
  11401. (countMissingBlockNow): New function.
  11402. (countFilteredBlockNow): New function.
  11403. (getFilteredTotalLengthNow): New function.
  11404. (getCompletedLengthNow): New function.
  11405. (getFilteredCompletedLengthNow): New function.
  11406. (updateCache): New function.
  11407. * src/AbstractBtMessage.h
  11408. (BtMessageDispatcher.h): New include.
  11409. (PeerConnection.h): New include.
  11410. (BtRequestFactory.h): New include
  11411. (BtMessageFactory.h): New include.
  11412. (dispatcher): New variable.
  11413. (messageFactory): New variable.
  11414. (peerConnection: New variable.
  11415. (setBtMessageDispatcher): New function.
  11416. (setPeerConnection): New function.
  11417. (setBtMessageFactory): New function.
  11418. (setBtRequestFactory): New function.
  11419. * src/DefaultBtMessageFactory.cc
  11420. (setCommonProperty): Set dispatcher, requestFactory, this,
  11421. peerConnection to msg.
  11422. * src/BtRegistry.h
  11423. (BT_MESSAGE_RECEIVER): New macro.
  11424. * src/PeerConnection.h
  11425. (PeerConnectionWeakHandle): New type definition.
  11426. * src/BtMessageFactory.h
  11427. (BtMessageFactoryWeakHandle): New type definition.
  11428. * src/BitfieldMan.cc
  11429. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11430. cachedCompletedLength, cachedFilteredComletedLength,
  11431. cachedFilteredTotalLength.
  11432. Call updateCache().
  11433. (countMissingBlock): Return cachedNumMissingBlock.
  11434. (countMissingBlockNow): New function.
  11435. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11436. (countFilteredBlockNow): New function.
  11437. (setBit): Call updateCache().
  11438. (unsetBit): Call updateCache().
  11439. (setBitfield): Call updateCache().
  11440. (clearAllBit): Call updateCache().
  11441. (setAllBit): Use setBitInternal instead of setBit.
  11442. Call updateCache().
  11443. (addFilter): Call updateCache().
  11444. (enableFilter): Call updateCache().
  11445. (disableFilter): Call updateCache().
  11446. (clearFilter): Call updateCache().
  11447. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11448. (getFilteredTotalLengthNow): New function.
  11449. (getCompletedLength): Return cachedCompletedLength.
  11450. (getCompletedLengthNow): New function.
  11451. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11452. (getFilteredCompletedLengthNow): New function.
  11453. (updateCache): New function.
  11454. * src/BtMessageReceiver.h
  11455. (BtMessageReceiverWeakHandle): New type definition.
  11456. * src/DefaultBtMessageReceiver.cc
  11457. (receiveHandshake): Use messageFactory member.
  11458. (sendHandshake): Use messageFactory member.
  11459. (receiveMessage): Use messageFactory member.
  11460. * src/DefaultBtMessageFactory.h
  11461. (dispatcher): New variable.
  11462. (requestFactory): New variable.
  11463. (peerConnection): New variablle.
  11464. (setBtMessageDispatcher): New function.
  11465. (setBtRequestFactory): New function.
  11466. (setPeerConnection): New function.
  11467. * src/SharedHandle.h
  11468. (RefCount): New class.
  11469. (WeakHandle): New class.
  11470. * src/PeerObject.h
  11471. (BtMessageReceiver.h): New include.
  11472. (PeerObject): Added btMessageReceiver.
  11473. (btMessageReceiver): New variable.
  11474. * src/Util.cc
  11475. (countBit): Simplified.
  11476. * src/BtCancelMessage.cc
  11477. (doReceivedAction): Use dispatcher member.
  11478. * src/BtRequestFactory.h
  11479. (BtRequestFactoryWeakHandle): New type definition.
  11480. * src/PeerStorage.h
  11481. (downloadSpeed): int -> uint32_t
  11482. (uploadSpeed): int -> uint32_t
  11483. (sessionDownloadLength): long long int -> uint64_t
  11484. (sessionUploadLength): long long int -> uint64_t
  11485. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11486. To add RecoverableException, FatalException:
  11487. * src/AbstractCommand.cc
  11488. (onAbort): Exception -> RecoverableException
  11489. * src/PeerAbstractCommand.h
  11490. (RecoverableException.h): New include.
  11491. (onAbort): Exception -> RecoverableException.
  11492. * src/PeerInteractionCommand.cc
  11493. (onAbort): Exception -> RecoverableException.
  11494. * src/PeerAbstractCommand.cc
  11495. (execute): Exception -> RecoverableException.
  11496. (onAbort): Exception -> RecoverableException.
  11497. * src/TorrentRequestInfo.cc
  11498. (execute): Exception -> RecoverableException.
  11499. * src/MetalinkRequestInfo.cc
  11500. (execute): Exception -> RecoverableException.
  11501. * src/MetaFileUtil.cc: RecoverableException.
  11502. * src/AbstractCommand.h
  11503. (onAbort): Exception -> RecoverableException.
  11504. * src/DlRetryEx.h: Exception -> RecoverableException.
  11505. * src/DlAbortEx.h: Exception -> RecoverableException.
  11506. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11507. * src/Util.cc: Exception -> RecoverableException.
  11508. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11509. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11510. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11511. To make ID static const int
  11512. * src/BtInterestedMessage.h
  11513. (ID_t): Removed.
  11514. (ID): New variable.
  11515. (getId): Made non-const.
  11516. * src/BtPieceMessage.h
  11517. (ID_t): Removed.
  11518. (ID): New variable.
  11519. (getId): Made non-const.
  11520. * src/BtChokeMessage.h
  11521. (ID_t): Removed.
  11522. (ID): New variable.
  11523. (getId): Made non-const.
  11524. * src/BtHaveAllMessage.h
  11525. (ID_t): Removed.
  11526. (ID): New variable.
  11527. (getId): Made non-const.
  11528. * src/BtKeepAliveMessage.h
  11529. (ID_t): Removed.
  11530. (ID): New variable.
  11531. (getId): Made non-const.
  11532. * src/BtHandshakeMessage.h
  11533. (ID): New variable.
  11534. (getId): Made non-const.
  11535. * src/BtSuggestPieceMessage.h
  11536. (ID_t): Removed.
  11537. (ID): New variable.
  11538. (getId): Made non-const.
  11539. * src/BtPortMessage.h
  11540. (ID_t): Removed.
  11541. (ID): New variable.
  11542. (getId): Made non-const.
  11543. * src/AbstractBtMessage.h
  11544. (id): Removed.
  11545. (AbstractBtMessage): Removed id.
  11546. (getId): Removed.
  11547. * src/BtHaveMessage.h
  11548. (ID_t): Removed.
  11549. (ID): New variable.
  11550. (getId): Made non-const.
  11551. * src/BtAllowedFastMessage.h
  11552. (ID_t): Removed.
  11553. (ID): New variable.
  11554. (getId): Made non-const.
  11555. * src/BtCancelMessage.h
  11556. (ID_t): Removed.
  11557. (ID): New variable.
  11558. (getId): Made non-const.
  11559. * src/BtNotInterestedMessage.h
  11560. (ID_t): Removed.
  11561. (ID): New variable.
  11562. (getId): Made non-const.
  11563. * src/BtChokeMessage.h
  11564. (ID_t): Removed.
  11565. (ID): New variable.
  11566. (getId): Made non-const.
  11567. * src/BtRejectMessage.h
  11568. (ID_t): Removed.
  11569. (ID): New variable.
  11570. (getId): Made non-const.
  11571. * src/BtBitfieldMessage.h
  11572. (ID_t): Removed.
  11573. (ID): New variable.
  11574. (getId): Made non-const.
  11575. * src/BtUnchokeMessage.h
  11576. (ID_t): Removed.
  11577. (ID): New variable.
  11578. (getId): Made non-const.
  11579. * src/BtRequestMessage.h
  11580. (ID_t): Removed.
  11581. (ID): New variable.
  11582. (getId): Made non-const.
  11583. * src/BtHaveMessage.h
  11584. (ID_t): Removed.
  11585. (ID): New variable.
  11586. (getId): Made non-const.
  11587. To add --force-truncate command-line option and a check whether
  11588. the file already exists:
  11589. * src/DirectDiskAdaptor.h
  11590. (getFilePath): Made virtual public.
  11591. * src/MultiDiskAdaptor.h
  11592. (File.h): New include.
  11593. (DiskWriterEntry::fileEntry): Made private.
  11594. (DiskWriterEntry::fileExists): New function.
  11595. (DiskWriterEntry::getFileEntry): New function.
  11596. (fileExists): New function.
  11597. (getFilePath): New function.
  11598. * src/TorrentRequestInfo.cc
  11599. (FatalException.h): New include.
  11600. (message.h): New include.
  11601. (RecoverableException.h): New include.
  11602. (execute): Added a check whether file is already exists or not.
  11603. * src/DiskAdaptor.h
  11604. (fileExists): New function.
  11605. (getFilePath): New function.
  11606. * src/main.cc
  11607. (showUsage): Added an explanation of --force-truncate command-line
  11608. option.
  11609. (main): Added --force-truncate command-line option.
  11610. * src/Exception.h
  11611. (setMsg): buf[256] -> buf[1024]
  11612. * src/CopyDiskWriter.h
  11613. (getFilePath): Made public virtual.
  11614. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11615. (fileExists): New function.
  11616. * src/DownloadEngineFactory.cc
  11617. (newTorrentConsoleEngine): Don't open file here.
  11618. * src/message.h
  11619. (EX_FILE_ALREADY_EXISTS): New definition.
  11620. * src/prefs.h
  11621. (PREF_FOECE_TRUNCATE): New definition.
  11622. * src/HttpResponseCommand.cc
  11623. (handleDefaultEncoding): Added a check whether the file already exists.
  11624. * src/SegmentMan.h
  11625. (fileExists): New function.
  11626. (shouldCancelDownloadForSafety): New function.
  11627. * src/FtpNegotiateCommand.cc
  11628. (recvSize): Added a check whether the file already exists.
  11629. * src/AbstractSingleDiskAdaptor.cc
  11630. (File.h): New include.
  11631. (fileExists): New function.
  11632. * src/AbstractSingleDiskAdaptor.h
  11633. (getFilePath): Removed.
  11634. (fileExists): New function.
  11635. * src/SegmentMan.cc
  11636. (fileExists): New function.
  11637. (shouldCancelDownloadForSafety): New function.
  11638. To fix regression bug in torrent downloading:
  11639. * src/DefaultBtRequestFactory.cc
  11640. (doChokedAction): New function.
  11641. * src/DefaultBtRequestFactory.h
  11642. (doChokedAction): New function.
  11643. * src/DefaultBtMessageDispatcher.cc
  11644. (doChokedAction): Do not delete request if its target is in allowed
  11645. fast set.
  11646. * src/DefaultBtInteractive.cc
  11647. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11648. (sendKeepAlive): Send keep alive message even if the outgoing message
  11649. queue is not empty.
  11650. (decideInterest): Simplified the code.
  11651. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11652. it is already called when BtChokeMessage is received from a peer.
  11653. * src/BtRequestFactory.h
  11654. (doChokedAction): New function.
  11655. To clean up code:
  11656. * src/PeerInteractionCommand.h
  11657. (executeInternal): Added virtual keyword explicitly.
  11658. (prepareForRetry): Added virtual keyword explicitly.
  11659. (prepareForNextPeer): Added virtual keyword explicitly.
  11660. (onAbort): Added virtual keyword explicitly.
  11661. * src/RequestSlot.cc
  11662. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11663. * src/BtPieceMessage.cc
  11664. (doReceivedAction): Added a debug log of piece's bitfield.
  11665. * src/Piece.h
  11666. (getBitfieldLength): New function.
  11667. * src/ByteArrayDiskWriter.cc
  11668. (clear): Added buf = 0 to avoid double free corruption.
  11669. * src/FileAllocator.cc
  11670. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11671. Added cp.reset().
  11672. * src/BitfieldMan.h
  11673. (operator=): Rewritten.
  11674. * src/BitfieldMan.cc
  11675. (BitfieldMan): Initialized bitfield, useBitfield.
  11676. * src/PeerConnection.cc
  11677. (receiveMessage): Added a call to socket->readable() after getting
  11678. message length to avoid possible EOF.
  11679. * src/Util.cc
  11680. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11681. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11682. To add an ability to pre-allocate file space:
  11683. * src/DirectDiskAdaptor.h: Rewritten.
  11684. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11685. * src/MultiDiskAdaptor.h: Rewritten.
  11686. * src/DefaultPieceStorage.cc
  11687. (MultiDiskWriter.h): Removed include.
  11688. (PreAllocationDiskWriter.h): Removed include.
  11689. (FileAllocationMonitor.h): New include.
  11690. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11691. (initStorage): Rewritten.
  11692. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11693. * src/FileAllocator.h: New class.
  11694. * src/FileAllocator.cc: New class.
  11695. * src/FileAllocationMonitor.h: New class.
  11696. * src/FileAllocationMonitor.cc: New class.
  11697. * src/ConsoleFileAllocationMonitor.h: New class.
  11698. * src/ConsoleFileAllocationMonitor.cc: New class.
  11699. * src/AbstractSingleDiskAdaptor.h: New class.
  11700. * src/AbstractSingleDiskAdaptor.cc: New class.
  11701. * src/DiskAdaptor.h
  11702. (Directory.h): Removed include.
  11703. (DiskWriter.h): Removed include.
  11704. (FileEntry.h): Removed include.
  11705. (diskWriter): Removed.
  11706. (DiskAdaptor): Removed diskWriter.
  11707. (openFile): Made pure virtual.
  11708. (closeFile): Made pure virtual.
  11709. (openExistingFile): Made pure virtual.
  11710. (initAndOpenFile): Made pure virtual.
  11711. (writeData): Made pure virtual.
  11712. (readData): Made pure virtual.
  11713. (sha1Sum): Made pure virtual.
  11714. (getStoreDir): Returns const reference of storeDir.
  11715. (DiskAdaptorHandle): New type definition.
  11716. * src/main.cc
  11717. (ConsoleFileAllocationMonitor.h): New include.
  11718. (showUsage): Added default value description of -s option.
  11719. Added the description of --file-allocation option.
  11720. (main): Set default value of --file-allocation option to 'none'.
  11721. Added --file-allocation command-line option.
  11722. Setup FileAllocationMonitorFactory.
  11723. * src/FtpInitiateConnectionCommand.cc
  11724. (executeInternal): Removed diskWriter related processing, which was
  11725. moved to FtpNegotiationCommand.cc.
  11726. * src/DirectDiskAdaptor.cc
  11727. (getFilePath): Made non-const.
  11728. * src/CopyDiskAdaptor.h
  11729. (DiskAdaptor.h): Removed include.
  11730. (DiskWriter.h): Removed include.
  11731. (AbstractSingleDiskAdaptor.h): New include.
  11732. (getFilePath): Made non-const. Added virtual keyword.
  11733. (CopyDiskAdaptor): Removed diskWriter.
  11734. (getTempFile): Returns const reference.
  11735. (CopyDiskAdaptorHandle): New type definition.
  11736. * src/ByteArrayDiskWriter.cc
  11737. (clear): Simplified.
  11738. (initAndOpenFile): Rewritten.
  11739. (openFile): Call initAndOpenFile()
  11740. * src/MultiDiskAdaptor.cc: Rewritten.
  11741. * src/DownloadEngineFactory.cc
  11742. (FileAllocator.h): New include.
  11743. (FileAllocationMonitor.h): New include.
  11744. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11745. create DefaultDiskWriter with file allocator.
  11746. * src/DiskWriter.h
  11747. (initAndOpenFile): Added totalLength argument.
  11748. (openFile): Added totalLength argument.
  11749. * src/prefs.h
  11750. (PREF_FILE_ALLOCATION): New definition.
  11751. (V_PREALLOC): New definition.
  11752. (V_NONE): New definition.
  11753. * src/HttpResponseCommand.cc
  11754. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11755. size.
  11756. * src/FtpNegotiateCommand.cc
  11757. (Util.h): New include.
  11758. (recvSize): Open file here.
  11759. * src/Util.h
  11760. (ullitos): New function.
  11761. * src/CopyDiskWriter.h
  11762. (getFilePath): Made non-const.
  11763. * src/DefaultDiskWriter.h
  11764. (Option.h): New include.
  11765. (totalLength): Removed.
  11766. (DefaultDiskWriter): Removed totalLength.
  11767. (initAndOpenFile): Added totalLength argument.
  11768. (DefaultDiskWriterHandle): New type definition.
  11769. (createNewDiskWriter): New function.
  11770. * src/Util.cc
  11771. (ullitos): New function.
  11772. * src/DefaultDiskWriter.cc
  11773. (message.h): New include.
  11774. (FileAllocator.h): New include.
  11775. (prefs.h): New include.
  11776. (Util.h): New include.
  11777. (DefaultDiskWriter): Removed totalLength.
  11778. (initAndOpenFile): Added file allocation.
  11779. (createNewDiskWriter): New function. Just for temporary solution.
  11780. It will be rewritten later.
  11781. * src/DiskAdaptor.cc
  11782. (DiskAdaptor): Removed diskWriter.
  11783. * src/AbstractDiskWriter.cc
  11784. (LogFactory.h): New include.
  11785. (AbstractDiskWriter): Added fileAllocator, logger.
  11786. (openFile): Added totalLength argument.
  11787. * src/AbstractDiskWriter.h
  11788. (FileAllocator.h): New include.
  11789. (Logger.h): New include.
  11790. (fileAllocator): New variable.
  11791. (logger): New variable.
  11792. (openFile): Added totalLength argument. Added virtual keyword
  11793. explicitly.
  11794. (openExistingFile): Added totalLength argument. Added virtual keyword
  11795. explicitly.
  11796. (closeFile): Added virtual keyword explicitly.
  11797. (sha1Sum): Added virtual keyword explicitly.
  11798. (writeData): Added virtual keyword explicitly.
  11799. (readData): Added virtual keyword explicitly.
  11800. (setFileAllocator): New function.
  11801. * src/DefaultPieceStorage.h
  11802. (FileAllocator.h): New include.
  11803. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11804. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11805. * src/FileProgressMonitor.h: New class.
  11806. To compile aria2 on PC-BSD:
  11807. * src/DefaultBtContext.cc
  11808. (libgen.h): New include.
  11809. To fix memory leak:
  11810. * src/Exception.h
  11811. (~Exception): Delete cause. Fixed memory leak.
  11812. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11813. Rewritten a portion of bittorrent implementation:
  11814. * src/BtMessageValidator.h: New class.
  11815. * src/BtBitfieldMessageValidator.h: New class.
  11816. * src/BtHandshakeMessageValidator.h: New class.
  11817. * src/BtRequestMessageValidator.h: New class.
  11818. * src/BtSuggestPieceMessageValidator.h: New class.
  11819. * src/BtAllowedFastMessageValidator.h: New class.
  11820. * src/BtRejectMessageValidator.h: New class.
  11821. * src/BtCancelMessageValidator.h: New class.
  11822. * src/BtPieceMessageValidator.h: New class.
  11823. * src/BtHaveMessageValidator.h: New class.
  11824. * src/BtEventListener.h: New class.
  11825. * src/AbstractBtEventListener.h: New class.
  11826. * src/BtEvent.h: New class.
  11827. * src/BtChokingEvent.h: New class.
  11828. * src/BtChokedEvent.h: New class.
  11829. * src/BtCancelSendingPieceEvent.h: New class.
  11830. * src/BtAbortOutstandingRequestEvent.h: New class.
  11831. * src/Randomizer.h: New class.
  11832. * src/SimpleRandomizer.h: New class.
  11833. * src/BtMessage.h: New class.
  11834. * src/AbstractBtMessage.h: New class.
  11835. * src/SimpleBtMessage.h: New class.
  11836. * src/BtHaveMessage.h: New class.
  11837. * src/BtInterestedMessage.h: New class.
  11838. * src/BtAllowedFastMessage.h: New class.
  11839. * src/BtUnchokeMessage.h: New class.
  11840. * src/BtCancelMessage.h: New class.
  11841. * src/BtNotInterestedMessage.h: New class.
  11842. * src/BtChokeMessage.h: New class.
  11843. * src/BtHaveNoneMessage.h: New class.
  11844. * src/BtHandshakeMessage.h: New class.
  11845. * src/BtSuggestPieceMessage.h: New class.
  11846. * src/BtHaveMessage.h: New class.
  11847. * src/BtPieceMessage.h: New class.
  11848. * src/BtHaveAllMessage.h: New class.
  11849. * src/BtKeepAliveMessage.h: New class.
  11850. * src/BtPortMessage.h: New class.
  11851. * src/BtRejectMessage.h: New class.
  11852. * src/BtBitfieldMessage.h: New class.
  11853. * src/BtRequestMessage.h: New class.
  11854. * src/DefaultBtRequestFactory.h: New class.
  11855. * src/DefaultBtMessageReceiver.h: New class.
  11856. * src/BtInteractive.h: New class.
  11857. * src/BtMessageDispatcher.h: New class.
  11858. * src/DefaultBtMessageDispatcher.h: New class.
  11859. * src/DefaultBtInteractive.h: New class.
  11860. * src/BitfieldManFactory.h: New class.
  11861. * src/HandleRegistry.h: New class.
  11862. * src/BtMessageFactory.h: New class.
  11863. * src/BtMessageReceiver.h: New class.
  11864. * src/DefaultBtMessageFactory.h: New class.
  11865. * src/PeerObject.h: New class.
  11866. * src/BtRequestFactory.h: New class.
  11867. * src/SuggestPieceMessage.h: Removed.
  11868. * src/PortMessage.h: Removed.
  11869. * src/SuggestPieceMessage.h: Removed.
  11870. * src/KeepAliveMessage.h: Removed.
  11871. * src/HandshakeMessage.h: Removed.
  11872. * src/PeerInteraction.h: Removed.
  11873. * src/UnchokeMessage.h: Removed.
  11874. * src/PieceMessage.h: Removed.
  11875. * src/RequestMessage.h: Removed.
  11876. * src/InterestedMessage.h: Removed.
  11877. * src/HaveMessage.h: Removed.
  11878. * src/CancelMessage.h: Removed.
  11879. * src/RejectMessage.h: Removed.
  11880. * src/AllowedFastMessage.h: Removed.
  11881. * src/HaveNoneMessage.h: Removed.
  11882. * src/SimplePeerMessage.h: Removed.
  11883. * src/HaveAllMessage.h: Removed.
  11884. * src/BitfieldMessage.h: Removed.
  11885. * src/PeerMessageFactory.h: Removed.
  11886. * src/NotInterestedMessage.h: Removed.
  11887. * src/ChokeMessage.h: Removed.
  11888. * src/PeerMessage.h: Removed.
  11889. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11890. To know root cause of exception:
  11891. * src/Exception.h
  11892. (cause): New variable.
  11893. (Exception): Added a parameter.
  11894. (getMsg): Return const reference to msg.
  11895. (getCause): New function.
  11896. * src/DlRetryEx.h
  11897. (DlRetryEx): Added a parameter 'cause'.
  11898. Added an overloaded constructor.
  11899. (DlAbortEx): Added a parameter 'cause'.
  11900. Added an overloaded constructor.
  11901. * src/SimpleLogger.cc
  11902. (writeLog): Log nested exception messages recursively.
  11903. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11904. * src/DefaultBtProgressInfoFile.cc
  11905. (load): Fixed memory leak when the infohash doesn't match.
  11906. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11907. * src/DefaultPeerStorage.cc
  11908. (calculateStat): Simplified the code by combining 2 loops into 1.
  11909. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11910. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11911. for BitTorrent download:
  11912. * src/PeerAbstractCommand.cc
  11913. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11914. * src/main.cc:
  11915. (timeoutSpecified): Removed.
  11916. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11917. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11918. * src/TorrentRequestInfo.cc
  11919. (timeoutSpecified): Removed.
  11920. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11921. timeout value.
  11922. * src/prefs.h
  11923. (PREF_BT_TIMEOUT): New definition.
  11924. Delete unused variables:
  11925. * src/TorrentRequestInfo.cc
  11926. (requestInfo): Removed.
  11927. Move setSignalHander to Util::setGlobalSignalHandler:
  11928. * src/TorrentRequestInfo.cc:
  11929. setSignalHander -> Util::setGlobalSignalHandler
  11930. * src/main.cc
  11931. (setSignalHander): Removed.
  11932. (main): setSignalHander -> Util::setGlobalSignalHandler
  11933. * src/Util.h
  11934. (setGlobalSignalHandler): New function.
  11935. * src/Util.cc
  11936. (setGlobalSignalHandler): New function.
  11937. * src/UrlRequestInfo.cc:
  11938. setSignalHander -> Util::setGlobalSignalHandler
  11939. Reset peer status in order to exit gracefully:
  11940. * src/PeerAbstractCommand.cc
  11941. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11942. To fix the bug that causes the number of bytes uploaded is not saved
  11943. to .aria2 file:
  11944. * src/DefaultPeerStorage.h
  11945. (removedPeerSessionDownloadLength): New variable.
  11946. (removedPeerSessionUploadLength): New variable.
  11947. * src/DefaultPeerStorage.cc
  11948. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11949. removedPeerSessionUploadLength(0).
  11950. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11951. through all peers, and then add removedPeerSessionDownloadLength(
  11952. removedPeerSessionUploadLength) to it.
  11953. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11954. (to) the peer to removedPeerSessionDownloadLength
  11955. (removedPeerSessionUploadLength).
  11956. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11957. To add Metalink location option:
  11958. * src/MetalinkRequestInfo.cc
  11959. (execute): Call MetalinkEntry::setLocationPreference()
  11960. * src/main.cc
  11961. (showUsage): Added the help message for --metalink-location option.
  11962. (main): Added --metalink-location option.
  11963. * src/prefs.h
  11964. (PREF_METALINK_LOCATION): New definition.
  11965. * src/MetalinkEntry.cc
  11966. (AddLocationPreference): New function object.
  11967. (setLocationPreference): New function.
  11968. * src/Xml2MetalinkProcessor.cc
  11969. (getResource): Set location attribute to MetalinkResource
  11970. To show URLs to download
  11971. * src/UrlRequestInfo.h
  11972. (printUrls): New function.
  11973. To add multiple <file> Metalink support:
  11974. * src/MetalinkEntry.h
  11975. (MetalinkResources): Removed.
  11976. (setLocationPreference): New function.
  11977. (MetalinkEntryHandle): New type definition.
  11978. (MetalinkEntries): New type definition.
  11979. * src/Xml2MetalinkProcessor.h
  11980. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11981. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11982. (parseFile): Metalinker* -> MetalinkerHandle
  11983. * src/UrlRequestInfo.h
  11984. (execute): RequestInfo* -> RequestInfos
  11985. * src/MetalinkRequestInfo.cc
  11986. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11987. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11988. (execute): RequestInfo* -> RequestInfos
  11989. Added multiple <file> support. Print filename when it is queued.
  11990. * src/MetalinkRequestInfo.h
  11991. (execute): RequestInfo* -> RequestInfos
  11992. (getDownloadEngine): Removed.
  11993. * src/RequestInfo.h
  11994. (RequestInfoHandle): New type definition.
  11995. (RequestInfos): New type definition.
  11996. (execute): RequestInfo* -> RequestInfos
  11997. (getDownloadEngine): Removed.
  11998. * src/MetalinkResource.h
  11999. (MetalinkResourceHandle): New type definition.
  12000. (MetalinkResources): New type definition.
  12001. * src/MetalinkEntry.cc
  12002. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12003. because the element is now of type MetalinkResourceHandle.
  12004. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12005. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12006. (dropUnsupportedResource): Removed the deletion of the elements of
  12007. resources because the element is now of type MetalinkResourceHandle.
  12008. * src/Xml2MetalinkProcessor.cc
  12009. (parseFile): Metalinker* -> MetalinkerHandle
  12010. MetalinkEntry* -> MetalinkEntryHandle
  12011. Removed try-catch block.
  12012. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12013. MetalinkResource* -> MetalinkResourceHandle
  12014. Removed try-catch block.
  12015. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12016. Free result by using xmlXPathFreeObject()
  12017. * src/Metalinker.cc
  12018. (~Metalinker): Removed the deletion of entries.
  12019. MetalinkEntry* -> MetalinkEntryHandle
  12020. (queryEntry): Add multiple <file> Metalink support.
  12021. * src/Metalinker.h
  12022. (MetalinkEntries): Removed.
  12023. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12024. * src/MetalinkProcessor.h
  12025. (parseFile): Metalinker* -> MetalinkerHandle
  12026. Bug fixes:
  12027. * src/PeerChokeCommand.cc
  12028. (execute): cat01->cat02
  12029. * src/DefaultPieceStorage.cc
  12030. (DefaultPieceStorage): Added diskAdaptor(0)
  12031. * src/TrackerWatcherComand.cc:
  12032. (execute): Use btAnnounce->noMoreAnnounce()
  12033. to determin whether the function returns true or not.
  12034. * src/TrackerUpdateCommand.cc:
  12035. (execute): Use btAnnounce->noMoreAnnounce()
  12036. to determin whether the function returns true or not.
  12037. * src/FtpConnection.cc
  12038. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12039. This is the fix of the busy loop bug.
  12040. * src/DownloadCommand.cc
  12041. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12042. cached PeerStat.
  12043. The value of "name" entry in torrent file is now set by
  12044. *DiskAdaptor::setTopDir(...) methods.
  12045. * src/MultiDiskAdaptor.h
  12046. (topDir): New variable.
  12047. (setTopDir): New function.
  12048. (getTopDir): New function.
  12049. * src/MultiDiskAdaptor.cc
  12050. (getFilePath): Concat storDir, "/" and topDir.
  12051. (mkdir): Use getFilePath() to get the directory path for output.
  12052. * src/DefaultPieceStorage.cc
  12053. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12054. CopyDiskAdaptor.
  12055. * src/CopyDiskAdaptor.h
  12056. (topDir): New variable.
  12057. (setTopDir): New function.
  12058. (getTopDir): New function.
  12059. * src/CopyDiskAdaptor.cc
  12060. (fixFilename): Updated.
  12061. Misc
  12062. * src/UrlRequestInfo.h
  12063. (e): Removed.
  12064. (UrlRequestInfo): Removed e.
  12065. (getDownloadEngine): Removed.
  12066. * src/UrlRequestInfo.cc
  12067. (handler): Rewritten.
  12068. (printUrls): New function.
  12069. (execute): Call printUrls().
  12070. * src/HandshakeMessage.cc
  12071. (check): peerinteraction->getBtContext() -> btContext
  12072. * src/PeerInteraction.h
  12073. (getBtContext): Removed.
  12074. * src/TorrentRequestInfo.h
  12075. (execute): RequestInfo* -> RequestInfos
  12076. (getDownloadEngine): Removed.
  12077. * src/TorrentRequestInfo.cc
  12078. (haltRequested): Removed.
  12079. (btHaltRequested): New variable.
  12080. (torrentHandler): haltRequested -> btHaltRequested
  12081. (execute): RequestInfo* -> RequestInfos
  12082. * src/TorrentConsoleDownloadEngine.cc
  12083. (afterEachIteration): haltRequested -> btHaltRequested.
  12084. * src/ConsoleDownloadEngine.h
  12085. (initStatistics): Added virtual.
  12086. (calculateStatistics): Added virtual.
  12087. (onEndOfRun): Added virtual.
  12088. (afterEachIteration): Added virtual.
  12089. * src/ConsoleDownloadEngine.cc
  12090. (haltRequested): New variable.
  12091. (afterEachIteration): New function.
  12092. * src/main.cc
  12093. (requestInfo): Removed.
  12094. * src/SegmentMan.cc
  12095. (findSlowerSegmentEntry): Refactored.
  12096. * Release 0.9.0
  12097. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12098. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12099. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12100. * src/TorrentMan.h: Removed.
  12101. * src/TorrentMan.cc: Removed.
  12102. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12103. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12104. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12105. * src/PeerAbstractCommand.cc: Use btRuntime.
  12106. * src/BtContextAwareCommand.h: New class.
  12107. * src/FileEntry.h: Added accessor methods for following variables.
  12108. (path): Made private.
  12109. (length): Made private.
  12110. (offset): Made private.
  12111. (extracted): Made private.
  12112. (requested): Made private.
  12113. (FileEntries): New definition.
  12114. (FileEntryHandle): New definition.
  12115. * src/FileEntry.cc: New file.
  12116. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12117. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12118. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12119. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12120. * src/PieceStorage.h: New file.
  12121. * src/PeerInteractionCommand.h: Use btContext.
  12122. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12123. btRuntime.
  12124. * src/DefaultBtProgressInfoFile.h: New file.
  12125. * src/DefaultBtProgressInfoFile.cc: New file.
  12126. * src/File.cc
  12127. (Util.h): New include.
  12128. (mkdirs): New function.
  12129. * src/MultiDiskAdaptor.h
  12130. (mkdir): New function.
  12131. * src/PeerListProcessor.h
  12132. (Peers): Removed.
  12133. * src/PeerInteraction.h
  12134. (torrentMan): Removed.
  12135. (btContext): New variable.
  12136. (peerStorage): New variable.
  12137. (pieceStorage): New variable.
  12138. (btAnnounce): New variable.
  12139. (getTorrentMan): Removed.
  12140. (getBtContext): New function.
  12141. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12142. btAnnounce.
  12143. * src/HandshakeMessage.h
  12144. (TorrentMan.h): Removed.
  12145. * src/HandshakeMessage.cc: Use btContext.
  12146. * src/DefaultBtAnnounce.cc: New file.
  12147. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12148. * src/DefaultPieceStorage.cc: New file.
  12149. * src/DefaultBtContext.h: New file.
  12150. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12151. Use the accessor methods of FileEntry.
  12152. * src/CookieBox.cc: Updated to use Util::slice().
  12153. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12154. * src/common.h (SharedHandle.h): New include.
  12155. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12156. pieceStorage.
  12157. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12158. * src/DiskAdaptor.h
  12159. (topDir): Removed.
  12160. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12161. (setTopDir): Removed.
  12162. (getTopDir): Removed.
  12163. * src/BtContext.h: New file.
  12164. * src/DefaultPeerStorage.h: New file.
  12165. * src/PieceMessage.h (TorrentMan.h): Removed.
  12166. * src/RequestMessage.h (TorrentMan.h): Removed.
  12167. * src/TorrentDownloadEngine.h
  12168. (uploadLength): New variable.
  12169. (btContext): New variable.
  12170. (btRuntime): New variable.
  12171. (pieceStorage): New variable.
  12172. (peerStorage): New variable.
  12173. (btAnnounce): New variable.
  12174. (btProgressInfoFile): New variable.
  12175. (torrentMan): Removed.
  12176. (setBtContext): New function.
  12177. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12178. peerStorage, btAnnounce, btProgressInfoFile.
  12179. * src/Piece.h
  12180. (toString): New function.
  12181. (Pieces): New type definition.
  12182. * src/Peer.h
  12183. (active): New variable.
  12184. (Peer): Added active.
  12185. (activate): Set active to true.
  12186. (deactivate): Set active to false.
  12187. (isActive): New function.
  12188. (Peers): New type definition.
  12189. * src/DirectDiskAdaptor.cc
  12190. (getFilePath): Use the accessor methods of FileEntry.
  12191. * src/TorrentConsoleDownloadEngine.h
  12192. (afterEachIteration): New function.
  12193. * src/TorrentConsoleDownloadEngine.cc
  12194. (haltRequested): New variable.
  12195. (sendStatistics): Use pieceStorage, btRuntime.
  12196. (afterEachIteration): New function.
  12197. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12198. * src/Directry.h
  12199. (Directory): New function.
  12200. (DirectoryHandle): New type definition.
  12201. * src/BtProgressInfoFile.h: New file.
  12202. * src/RequestMessage.cc: Use pieceStorage.
  12203. * src/BtRuntime.h: New file.
  12204. * src/DefaultBtContext.cc: New file.
  12205. * src/BitfieldMan.h
  12206. (getCompletedLength): New function(private).
  12207. (getCompletedLength): New function.
  12208. (getFilteredCompletedLength): New function.
  12209. * src/BitfieldMan.h
  12210. (getCompletedLength): New function(private).
  12211. (getCompletedLength): New function.
  12212. (getFilteredCompletedLength): New function.
  12213. * src/MultiDiskAdaptor.cc
  12214. (mkdir): New function.
  12215. (openFile): Call mkdir().
  12216. (initAndOpenFile): Call mkdir().
  12217. * src/CancelMessage.h
  12218. (TorrentMan.h): Removed.
  12219. * src/RejectMessage.h
  12220. (TorrentMan.h): Removed.
  12221. * src/DownloadEngineFactory.cc
  12222. (DefaultPieceStorage.h): New include.
  12223. (DefaultPeerStorage.h): New include.
  12224. (DefaultBtAnnounce.h): New include.
  12225. (DefaultBtProgressInfoFile.h): New include.
  12226. (newTorrentConsoleEngine): Rewritten.
  12227. * src/ShareRatioSeedCriteria.h
  12228. (torrentMan): Removed.
  12229. (btContext): New variable.
  12230. (peerStorage): New variable.
  12231. (btRuntime): New variable.
  12232. (evaluate): Use btContext, btRuntime, peerStorage.
  12233. * src/AnnounceTier.h: New file.
  12234. * src/BtAnnounce.h: New file.
  12235. * src/BtRegistry.h: New file.
  12236. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12237. * src/PeerConnection.h (TorrentMan.h): Removed.
  12238. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12239. * src/Util.h
  12240. (slice): Added an argument.
  12241. * src/Util.cc
  12242. (slice): Added an argument to control whether trim is made or not.
  12243. * src/PeerStorage.h: New file.
  12244. * src/BtRegistry.cc: New file.
  12245. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12246. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12247. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12248. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12249. * src/TorrentRequestInfo.h
  12250. (e): Removed.
  12251. (showFileEntry): Added an argument.
  12252. (getDownloadEngine): Return 0.
  12253. * src/DefaultBtAnnounce.h: New file.
  12254. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12255. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12256. * src/PeerMessageFactory.h
  12257. (btContext): New variable.
  12258. (pieceStorage): New variable.
  12259. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12260. btAnnounce.
  12261. * src/DiskAdaptor.cc
  12262. (DiskAdaptor): Removed topDir.
  12263. (~DiskAdaptor): Removed topDir.
  12264. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12265. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12266. * src/File.h (mkdirs): New function.
  12267. * src/DefaultPeerStorage): New file.
  12268. * src/DownloadEngineFactory.h
  12269. (newTorrentConsoleEngine): Use btContext.
  12270. * src/BtContextAwareCommand.cc: New file.
  12271. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12272. * src/PeerMessage.h
  12273. (btContext): New variable.
  12274. (peerStorage): New variable.
  12275. (pieceStorage): New variable.
  12276. (setBtContext): New function.
  12277. * src/Directry.cc
  12278. (Directory): New function.
  12279. (createDir): Do nothing if name.size() == 0.
  12280. * src/AnnounceList.h
  12281. (AnnounceTier): Removed.
  12282. (AnnounceTiers): Removed.
  12283. * src/DefaultPieceStorage.h: New file.
  12284. * src/Piece.cc (toString): New function.
  12285. To fix typo:
  12286. * src/main.cc (showVersion): Fixed typo.
  12287. To fix compile warning:
  12288. * src/DelegatingPeerListProcessor.cc
  12289. (canHandle): Added "return false".
  12290. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12291. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12292. make the process of announce request testable.
  12293. * src/TrackerWatcherCommand.h
  12294. (TimeA2.h): Removed.
  12295. (interval): Removed.
  12296. (checkPoint): Removed.
  12297. (createRequestCommand): Added an argument 'url'.
  12298. (TrackerWatherCommand): Removed interval.
  12299. (createCommand): New function.
  12300. * src/DownloadEngineFactory.cc
  12301. (newTorrentConsoleEngine): Updated according to the changes in
  12302. TrackerWatherCommand.
  12303. * src/TorrentMan.cc
  12304. (DelegatingPeerListProcessor.h): New includes.
  12305. (TorrentMan): Added the initialization of announceInterval.
  12306. (isStoppedAnnounceReady): New function.
  12307. (isCompletedAnnounceReady): New function.
  12308. (isDefaultAnnounceReady): New function.
  12309. (isAnnounceReady): New function.
  12310. (getAnnounceUrl): New function.
  12311. (announceStart): New function.
  12312. (announceFailure): New function.
  12313. (announceSuccess): New function.
  12314. (isAllAnnounceFailed): New function.
  12315. (resetAnnounce): New function.
  12316. (processAnnounceResponse): New function.
  12317. (needMorePeerConnection): New function.
  12318. (noMoreAnnounce): New function.
  12319. * src/TrackerUpdateCommand.h
  12320. (getTrackerResponse): int->size_t
  12321. * src/TorrentMan.h
  12322. (isStoppedAnnounceReady): New function.
  12323. (isCompletedAnnounceReady): New function.
  12324. (isDefaultAnnounceReady): New function.
  12325. (announceInterval): New variable.
  12326. (isAnnounceReady): New function.
  12327. (getAnnounceUrl): New function.
  12328. (announceStart): New function.
  12329. (announceFailure): New function.
  12330. (announceSuccess): New function.
  12331. (isAllAnnounceFailed): New function.
  12332. (resetAnnounce): New function.
  12333. (processAnnounceResponse): New function.
  12334. (needMorePeerConnection): New function.
  12335. (noMoreAnnounce): New function.
  12336. * src/TrackerWatcherCommand.cc
  12337. (TrackerWatherCommand): Removed interval and checkPoint.
  12338. (execute): Rewritten.
  12339. (createCommand): New function.
  12340. (createRequestCommand): Rewritten.
  12341. * src/TrackerUpdateCommand.cc
  12342. (MetaFileUtil.h): Removed.
  12343. (DelegatingPeerListProcessor.h): Removed.
  12344. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12345. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12346. Request -> RequestHandle:
  12347. * src/HttpResponseCommand.h: Request->RequestHandle
  12348. * src/AbstractCommand.cc: Request->RequestHandle
  12349. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12350. * src/HttpRequestCommand.cc: Request->RequestHandle
  12351. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12352. * src/AbstractCommand.h: Request->RequestHandle
  12353. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12354. * src/HttpResponseCommand.cc: Request->RequestHandle
  12355. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12356. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12357. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12358. * src/HttpConnection.h: Request->RequestHandle
  12359. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12360. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12361. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12362. * src/DownloadCommand.h: Request->RequestHandle
  12363. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12364. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12365. * src/HttpRequestCommand.h: Request->RequestHandle
  12366. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12367. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12368. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12369. * src/HttpDownloadCommand.h: Request->RequestHandle
  12370. * src/FtpConnection.cc: Request->RequestHandle
  12371. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12372. * src/UrlRequestInfo.cc: Request->RequestHandle
  12373. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12374. * src/HttpConnection.h: Request->RequestHandle
  12375. * src/DownloadCommand.cc: Request->RequestHandle
  12376. * src/FtpConnection.h: Request->RequestHandle
  12377. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12378. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12379. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12380. * src/Request.h
  12381. (SharedHandle.h): New include.
  12382. (RequestHandle): New type definition.
  12383. (Requests): Redefined.
  12384. To add MULTITRACKER support:
  12385. * src/TrackerWatcherCommand.h
  12386. (createRequestCommand): New function.
  12387. * src/DownloadEngineFactory.cc
  12388. (newTorrentConsoleEngine): Removed req.
  12389. * src/prefs.h
  12390. (PREF_TRACKER_MAX_TRIES): New definition.
  12391. * src/TorrentMan.cc
  12392. (TorrentMan): Removed req. Added trackerNumTry.
  12393. (~TorrentMan): Removed req.
  12394. (setupInternal1): Added announceList.
  12395. * src/TorrentRequestInfo.cc
  12396. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12397. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12398. * src/main.cc
  12399. (main): Added PREF_TRACKER_MAX_TRIES.
  12400. * src/TorrentMan.h
  12401. (Request.h): Removed.
  12402. (AnnounceList.h): New include.
  12403. (trackerNumTry): New variable.
  12404. (req): Removed.
  12405. (announceList): New variable.
  12406. * src/TrackerWatcherCommand.cc
  12407. (execute): Rewritten.
  12408. (createRequestCommand): New function.
  12409. * src/TrackerUpdateCommand.cc
  12410. (execute): Updated with the use of AnnounceList.
  12411. * src/AnnounceList.cc: New class.
  12412. * src/AnnounceList.h: New class.
  12413. To fix typo:
  12414. * src/prefs.h
  12415. (PREF_MAX_TRIES): max_try->max_tries
  12416. To not to decode "+" as space in URL decode:
  12417. * src/Util.cc
  12418. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12419. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12420. To add timeout to async name resolution:
  12421. * src/AbstractCommand.h
  12422. (nameResolveFinished): New function. This is not elegant way. It needs
  12423. to be more refined.
  12424. (nameResolverCheck): New variable.
  12425. * src/AbstractCommand.cc
  12426. (AbstractCommand): Added nameResolverCheck.
  12427. (execute): Added the check whether the name resolution has finished.
  12428. (setNameResolverCheck): Set nameResolverCheck to true.
  12429. (disableNameResolverCheck): Set nameResolverCheck to false.
  12430. (nameResolverFinished): New function.
  12431. * src/FtpInitiateConnectionCommand.h
  12432. (nameResolverFinished): New function.
  12433. * src/FtpInitiateConnectionCommand.cc
  12434. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12435. * src/HttpInitiateConnectionCommand.h
  12436. (nameResolverFinished): New function.
  12437. * src/HttpInitiateConnectionCommand.cc
  12438. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12439. * src/prefs.h
  12440. (PREF_DNS_TIMEOUT): New definition.
  12441. * src/main.cc
  12442. (main): Added PREF_DNS_TIMEOUT.
  12443. To add the support for a non-compact response from a tracker:
  12444. * src/PeerListProcessor.h: New class.
  12445. * src/DefaultPeerListProcessor.h: New class.
  12446. * src/DefaultPeerListProcessor.cc: New class.
  12447. * src/CompactPeerListProcessor.h: New class.
  12448. * src/CompactPeerListProcessor.cc: New class.
  12449. * src/DelegatingPeerListProcessor.h: New class.
  12450. * src/DelegatingPeerListProcessor.cc: New class.
  12451. * src/TorrentMan.cc
  12452. (addPeer): New function(overload).
  12453. (addPeer): Delete unused peers only when new peer is added.
  12454. * src/TorrentMan.h
  12455. (PeerListProcessor.h): Included.
  12456. (Peers): Removed.
  12457. (addPeer): New function(overload).
  12458. * src/TrackerUpdateCommand.cc
  12459. (netinet/in.h): Removed.
  12460. (DelegatingPeerListProcessor.h): Included.
  12461. (execute): Updated to use DelegatingPeerListProcessor.
  12462. To fix the memory leak in TorrentMan::peers:
  12463. * src/PeerAbstractCommand.cc
  12464. (onAbort): Added peer->resetStatus().
  12465. * src/Peer.h
  12466. (resetStatus): Made public.
  12467. To improve the precision of the speed calculation:
  12468. * src/SpeedCalc.h
  12469. (nextInterval): New variable.
  12470. * src/SpeedCalc.cc
  12471. (reset): Added nextInterval.
  12472. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12473. (changeSw): Set nextInterval to 15 seconds relative to the current
  12474. instant time.
  12475. * src/main.cc
  12476. (showVersion): Updated.
  12477. (showUsage): Updated.
  12478. * Release 0.8.1
  12479. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12480. * src/main.cc
  12481. (showUsage): Commented out --min-segment-size option.
  12482. (main): Commented out --min-segment-size option.
  12483. * Release 0.8.0
  12484. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12485. * src/*.{h,cc}:
  12486. Added an exception to the license which allows linking with OpenSSL.
  12487. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12488. * src/AbstractCommand.cc
  12489. (execute): Check whether the download has finished before checking
  12490. socket status.
  12491. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12492. Do not exit even if no segment is available.
  12493. * src/prefs.h
  12494. (PREF_STARTUP_IDLE_TIME): New definition.
  12495. * src/PeerInteractionCommand.cc
  12496. (executeInternal): Removed max speed limit. Because it performs bad.
  12497. (receiveMessages): Added max speed limit. This was better than above,
  12498. but still a little bit to be desired. Sometimes the download speed
  12499. became much faster than I specified.
  12500. * src/SpeedCalc.h
  12501. (start): New variable.
  12502. (accumulatedLength): New variable.
  12503. (getAvgSpeed): New function.
  12504. * src/SpeedCalc.cc
  12505. (reset): Added start, accumulatedLength.
  12506. (update): Added calculation of an average speed.
  12507. (getAvgSpeed): New function.
  12508. * src/DownloadCommand.h
  12509. (sw): Removed.
  12510. * src/main.cc
  12511. (main): Added PREF_STARTUP_IDLE_TIME.
  12512. * src/PeerStat.h
  12513. (STATUS): Added REQUEST_IDLE.
  12514. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12515. (getAvgDownloadSpeed): New function
  12516. (requestIdle): New function.
  12517. * src/SegmentMan.h
  12518. (SegmentEntryHandle): New type definition.
  12519. (SegmentEntries): Now holds SegmentEntryHandle.
  12520. (findSlowerSegmentEntry): New funtion.
  12521. * src/SegmentMan.cc
  12522. (save): Updated according to the changes in SegmentEntries.
  12523. (read): Updated according to the changes in SegmentEntries.
  12524. (FindSegmentEntryByIndex): Updated according to the changes in
  12525. SegmentEntries.
  12526. (FindSegmentEntryByCuid): Updated according to the changes in
  12527. SegmentEntries.
  12528. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12529. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12530. Renamed uitr as itr.
  12531. (findSlowerSegmentEntry): New function.
  12532. (getSegment): Updated according to the changes in SegmentEntries.
  12533. Added the feature that cancels the segment with slow server and fast
  12534. one takes it over.
  12535. (cancelSegment): Updated according to the changes in SegmentEntries.
  12536. (getDownloadLength): Updated according to the changes in
  12537. SegmentEntries.
  12538. (init): Assigned 0 to bitfield after deleting it.
  12539. * src/DownloadCommand.cc
  12540. (STARTUP_IDLE_TIME): Removed.
  12541. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12542. * src/PeerChokeCommand.cc
  12543. (optUnchokingPeer): Updated according to the changes in Peer.
  12544. (ResetDelta): Removed.
  12545. (UploadFaster): Updated according to the changes in Peer.
  12546. (DownloadFaster): Updated according to the changes in Peer.
  12547. (execute): I clarify the meaning of "upload" and "download" here.
  12548. "upload" means the transfer from localhost to remote host.
  12549. "download" means the transfer from remote host to localhost.
  12550. Based on this rule, I swapped orderByUploadRate and
  12551. orderByDownloadRate.
  12552. * src/PeerInteractionCommand.cc
  12553. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12554. (executeInternal): Removed the argument of
  12555. peerInteraction->sendMessages().
  12556. (receiveMessages): Rewritten download speed limit.
  12557. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12558. * src/HttpResponseCommand.cc
  12559. (handleDefaultEncoding): If file size is unknown in torrent request,
  12560. do not call segmentMan->initBitfield() here.
  12561. Disabled persistent connection feature in torrent request.
  12562. * src/UrlRequestInfo.h
  12563. (UrlRequestInfo): Removed const qualifier from option.
  12564. * src/TorrentMan.h
  12565. (TransferStat): New class.
  12566. (deltaDownloadLength): Removed.
  12567. (deltaUploadLength): Removed.
  12568. (addDeltaDownloadLength): Removed.
  12569. (getDeltaDownloadLength): Removed.
  12570. (resetDeltaDownloadLength): Removed.
  12571. (addDeltaUploadLength): Removed.
  12572. (getDeltaUploadLength): Removed.
  12573. (resetDeltaUploadLength): Removed.
  12574. (addActivePeer): Added peer->activate().
  12575. (deleteActivePeer): Added peer->deactivate().
  12576. (calculateStat): New function.
  12577. * src/TorrentMan.cc
  12578. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12579. (calculateStat): New function.
  12580. * src/PeerInteraction.h
  12581. (uploadLimit): Removed.
  12582. (option): New variable.
  12583. (setUploadLimit): Removed.
  12584. (getUploadSpeed): Removed.
  12585. (sendMessages): Removed the argument "currentUploadSpeed".
  12586. * src/PeerInteraction.cc
  12587. (prefs.h): Included.
  12588. (PeerInteraction): Removed uploadLimit. Added option.
  12589. (sendMessages): Rewritten upload speed limit.
  12590. (sendHandshake): Removed the argument from sendMessages().
  12591. (sendBitfield): Removed the argument from sendMessages().
  12592. * src/PeerAbstractCommand.cc
  12593. (execute): Commented out the portion of upload limit.
  12594. (onAbort): Removed peer->resetStatus().
  12595. * src/TorrentRequestInfo.cc
  12596. (timeoutSpecified): Declared extern.
  12597. (execute): Set timeout to 180 if timeout is not specified by.
  12598. command-line.
  12599. * src/PieceMessage.cc
  12600. (receivedAction): Added peer->updateDownloadLength().
  12601. Removed peer->addPeerUpload().
  12602. Removed torrentMan->addDeltaDownloadLength().
  12603. (send): Added peer->updateUploadLength().
  12604. Removed peer->addPeerDownload().
  12605. Removed torrentMan->addDeltaUploadLength().
  12606. * src/main.cc
  12607. (timeoutSpecified): New variable.
  12608. (main): Set timeoutSpecified to false.
  12609. If the command-line option "--upload-limit" is specified, then
  12610. timeoutSpecified is set to true. This option will remain in the next
  12611. release, but be deprecated in the future release.
  12612. * src/TorrentRequestInfo.h
  12613. (TorrentRequestInfo): Removed const qualifier from op.
  12614. * src/PeerStat.h
  12615. (uploadSpeed): New variable.
  12616. (PeerStat): Added default value to cuid.
  12617. (calculateUploadSpeed): New function.
  12618. (updateUploadLength): New function.
  12619. (getMaxUploadSpeed): New function.
  12620. (getAvgUploadSpeed): New function.
  12621. (reset): Added uploadSpeed. Set status to IDLE.
  12622. * src/TorrentDownloadEngine.h
  12623. (cp): Declared as Time.
  12624. (sessionDownloadLengthArray): Removed.
  12625. (sessionUploadLengthArray): Removed.
  12626. (currentCp): Removed.
  12627. (lastCalcStat): New variable
  12628. (lastElapsed): Removed.
  12629. (sessionDownloadLength): Removed.
  12630. (calculateStat): New function.
  12631. * src/TorrentDownloadEngine.cc
  12632. (initStatistics): Removed lastElapsed, cp[],
  12633. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12634. currentCp, sessionDownloadLength.
  12635. Added cp.reset() and lastCalcStat.reset().
  12636. (calculateSpeed): Changed the name of the argument.
  12637. (calculateStatistics): Rewritten.
  12638. (calculateStat): New function.
  12639. * src/Peer.h
  12640. (PeerStat.h): Included.
  12641. (peerUpload): Removed.
  12642. (peerDownload): Removed.
  12643. (peerStat): New variable.
  12644. (sessionUploadLength): New variable.
  12645. (sessionDownloadLength): New variable.
  12646. (deltaUpload): Removed.
  12647. (deltaDownload): Removed.
  12648. (resetStatus): Made private.
  12649. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12650. Removed peerUpload, peerDownload.
  12651. (updateUploadLength): New function.
  12652. (addDeltaUpload): Removed.
  12653. (updateDownloadLength): New function.
  12654. (resetDeltaUpload): Removed.
  12655. (getDeltaUpload): Removed.
  12656. (addDeltaDownload): Removed.
  12657. (calculateUploadSpeed): New function.
  12658. (resetDeltaDownload): Removed.
  12659. (getDeltaDownload): Removed.
  12660. (calculateDownloadSpeed): New function.
  12661. (getSessionUploadLength): New function.
  12662. (getSessionDownloadLength): New function.
  12663. (activate): New function.
  12664. (deactivate): New function.
  12665. (addPeerUpload): Removed.
  12666. (setPeerUpload): Removed.
  12667. (getPeerUpload): Removed.
  12668. (addPeerDownload): Removed.
  12669. (setPeerDownload): Removed.
  12670. (getPeerDownload): Removed.
  12671. * src/Peer.cc
  12672. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12673. * src/MetalinkRequestInfo.h
  12674. (MetalinkRequestInfo): Removed const qualifier from op.
  12675. * src/RequestInfo.h
  12676. (op): Removed const qualifier.
  12677. (RequestInfo): Removed const qualifier from op.
  12678. * src/prefs.h
  12679. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12680. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12681. * src/PeerInteractionCommand.cc
  12682. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12683. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12684. * src/PeerInteraction.cc
  12685. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12686. * src/main.cc
  12687. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12688. Added the description of "--max-download-limit" option.
  12689. Removed the description of "--upload-limit" option.
  12690. Added the description of "--max-upload-limit" option.
  12691. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12692. Added "--max-download-limit" option and "--max-upload-limit" option.
  12693. Added the warning message if "--upload-limit" option is used.
  12694. * src/DownloadCommand.cc
  12695. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12696. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12697. To rewrite segment download mechanism for HTTP/FTP download.
  12698. Use BitfieldMan to manage segment download.
  12699. * src/HttpResponseCommand.h
  12700. (executeInternal): Pass the reference of segment.
  12701. * src/AbstractCommand.cc
  12702. (prepareForRetry): Call segmentMan->cancelSegment here.
  12703. (onAbort): Call segmentMan->cancelSegment here.
  12704. * src/HttpDownloadCommand.cc
  12705. (prepareForNextSegment): New function.
  12706. * src/DownloadEngineFactory.cc
  12707. (newConsoleEngine): Removed splitter.
  12708. (newTorrentConsoleEngine): Removed splitter.
  12709. * src/Request.h
  12710. (segment): Renamed from seg.
  12711. * src/FtpInitiateConnectionCommand.h
  12712. (executeInternal): Pass the reference of segment.
  12713. * src/AbstractCommand.h
  12714. (executeInternal): Pass the reference of segment.
  12715. * src/pref.h
  12716. (PREF_SEGMENT_SIZE): New definition.
  12717. * src/HttpProxyRequestCommand.h
  12718. (executeInternal): Pass the reference of segment.
  12719. * src/HttpResponseCommand.cc
  12720. (checkResponse): Allowed status 206 when a request range starts 0.
  12721. (handleDefaultEncoding): Rewritten the code related to Segment.
  12722. (handleOtherEncoding): Rewritten the code related to Segment.
  12723. * src/SegmentMan.h
  12724. (SegmentEntry): New class.
  12725. (SegmentEntries): New type definition.
  12726. (bitfield): New variable.
  12727. (usedSegmentEntries): New variable.
  12728. (onNullBitfield): New function.
  12729. (checkoutSegment): New function.
  12730. (segments): Removed.
  12731. (splitter): Removed.
  12732. (unregisterId): Removed.
  12733. (getSegment): New function(overload)
  12734. (getDownloadedSize): Removed.
  12735. (cancelSegment): New function.
  12736. (completeSegment): New function.
  12737. (initBitfield): New function.
  12738. (hasSegment): New function.
  12739. (getDownloadLength): New function.
  12740. * src/BitfieldMan.h
  12741. (getStartIndex): New function.
  12742. (getEndIndex): New function.
  12743. (getMissingUnusedIndex): New function(overload).
  12744. (getSparseMissingUnusedIndex): New function.
  12745. * src/BitfieldMan.cc
  12746. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12747. (getMissingUnusedIndex): New function(overload).
  12748. (Range): New class.
  12749. (getStartIndex): New function.
  12750. (getEndIndex): New function.
  12751. (getSparseMissingUnusedIndex): New function.
  12752. (isBitSetInternal): Return false if the given index is less than 0.
  12753. * src/HttpInitiateConnectionCommand.h
  12754. (executeInternal): Pass the reference of segment.
  12755. * src/FtpNegotiateCommand.h
  12756. (executeInternal): Pass the reference of segment.
  12757. * src/FtpNegotiateCommand.cc
  12758. (recvSize): Initialize bitfield here.
  12759. * src/FtpTunnelResponseCommand.h
  12760. (executeInternal): Pass the reference of segment.
  12761. * src/HttpConnection.cc
  12762. (createRequest): Rewritten range header processing.
  12763. * src/DownloadCommand.h
  12764. (executeInternal): Pass the reference of segment.
  12765. (prepareForRetry): Removed.
  12766. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12767. function.
  12768. * src/main.cc
  12769. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12770. * src/SegmentMan.cc
  12771. (SegmentMan): Added bitfield. Removed splitter.
  12772. (~SegmentMan): Added bitfield. Removed splitter.
  12773. (unregisterId): Removed.
  12774. (getSegment): Rewritten.
  12775. (updateSegment): Rewritten.
  12776. (save): Rewritten.
  12777. (read): Rewritten.
  12778. (finished): Rewritten.
  12779. (getDownloadedSize): Removed.
  12780. (initBitfield): New function.
  12781. (FindSegmentEntryByIndex): New function object.
  12782. (FindSegmentEntryByCuid): New function object.
  12783. (checkoutSegment): New function.
  12784. (onNullBitfield): New function.
  12785. (getSegment): New function(overload).
  12786. (CancelSegment): New function object.
  12787. (cancelSegment): New function.
  12788. (completeSegment): New function.
  12789. (hasSegment): New function.
  12790. (getDownloadLength): New function.
  12791. * src/FtpInitiateConnectionCommand.cc
  12792. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12793. * src/Segment.h: Rewritten.
  12794. * src/Segment.cc (operator<<): New function.
  12795. * src/HttpDownloadCommand.h
  12796. (prepareForNextSegment): New function.
  12797. * src/Request.cc
  12798. (resetUrl): Made segment null.
  12799. * src/DownloadEngine.cc
  12800. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12801. * src/HttpProxyRequestCommand.h
  12802. (executeInternal): Pass the reference of segment.
  12803. * src/DownloadCommand.cc
  12804. (executeInternal): Rewritten the code related to Segment.
  12805. (prepareForRetry): Removed.
  12806. (prepareForNextSegment): Rewritten.
  12807. * src/FtpTunnelResponseCommand.h
  12808. (executeInternal): Pass the reference of segment.
  12809. To add HTTP 1.1 persistent connection support(experimental)
  12810. * src/HttpRequestCommand.cc
  12811. (executeInternal): Disable keep alive if it is disabled by
  12812. configuration.
  12813. * src/Request.h
  12814. (keepAlive): New variable.
  12815. (isKeepAlive): New function.
  12816. (setKeepAlive): New function.
  12817. * src/pref.h
  12818. (PREF_HTTP_KEEP_ALIVE): New definition.
  12819. * src/HttpResponseCommand.cc
  12820. (executeInternal): Check the remote server supports keep alive.
  12821. * src/HttpConnection.cc
  12822. (createRequest): Send "Connection: close" only if keep alive is
  12823. disabled.
  12824. * src/main.cc
  12825. (main):
  12826. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12827. To add max download speed limit:
  12828. * src/pref.h
  12829. (PREF_MAX_SPEED_LIMIT): New definition.
  12830. * src/PeerInteractionCommand.cc
  12831. (executeInternal): Added max download speed limit. Not tested yet.
  12832. * src/SegmentMan.h
  12833. (PeerStats): New type definition.
  12834. (peerStats): New variable.
  12835. (registerPeerStat): New function.
  12836. (FindPeerStat): New function object.
  12837. (getPeerStat): New function.
  12838. (calculateDownloadSpeed): New function.
  12839. * src/SpeedCalc.h: New class.
  12840. * src/SpeedCalc.cc: New class.
  12841. * src/main.cc
  12842. (main):
  12843. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12844. download speed is not restricted).
  12845. * src/PeerStat.h: New class.
  12846. * src/SegmentMan.cc
  12847. (registerPeerStat): New function.
  12848. (calculateDownloadSpeed): New function.
  12849. * src/DownloadCommand.cc
  12850. (STARTUP_IDLE_TIME): New definition.
  12851. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12852. downloadStart.
  12853. (~DownloadCommand): Call peerStat->downloadStop.
  12854. (executeInternal): Added download speed limitter. Rewritten lowest
  12855. speed limitter.
  12856. * src/HttpConnection.cc
  12857. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12858. * src/AbstractCommand.cc
  12859. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12860. Added hostname to the error message.
  12861. * src/ConsoleDownloadEngine.cc
  12862. (calculateStatistics): Initialize psize with dlSize.
  12863. * src/PieceMessage.cc
  12864. (receivedAction): Do not call peerInteraction->abortPiece here.
  12865. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12866. * src/BitfieldMan.h
  12867. (clearAllUseBit): New function.
  12868. (setAllUseBit): New function.
  12869. * src/BitfieldMan.cc
  12870. (clearAllBit): Do not clear useBitfield here.
  12871. (clearAllUseBit): New function.
  12872. (setAllUseBit): New function.
  12873. * src/Piece.cc
  12874. (clearAllBlock): Call bitfield->clearAllUseBit().
  12875. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12876. To make filename URL-decoded:
  12877. * src/HttpResponseCommand.h: Updated doc.
  12878. * src/HttpResponseCommand.cc
  12879. (determinFilename): Made filename URL-decoded.
  12880. * src/FtpInitiateConnectionCommand.cc
  12881. (executeInternal): Made filename URL-decoded.
  12882. * src/Util.h (urldecode): New function.
  12883. * src/Util.cc (urldecode): New function.
  12884. To fix a bug that caused assertion failure in ares_strerror:
  12885. * src/NameResolver.cc (callback): Fixed the bug.
  12886. * Release 0.7.3
  12887. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12888. To add --seed-time and --seed-ratio command-line option:
  12889. * src/Option.h (getAsDouble): New function.
  12890. * src/Option.cc (getAsDouble): New function.
  12891. * src/SeedCheckCommand.h: New class.
  12892. * src/SeedCheckCommand.cc: New class.
  12893. * src/DownloadEngineFactory.cc
  12894. (SeedCheckCommand.h): Included.
  12895. (UnionSeedCriteria.h): Included.
  12896. (TimeSeedCriteria.h): Included.
  12897. (ShareRatioSeedCriteria.h): Included.
  12898. (newTorrentConsoleEngine): Added the processing of seed option.
  12899. * src/SeedCriteria.h: New class.
  12900. * src/ShareRatioSeedCriteria.h: New class.
  12901. * src/TimeSeedCriteria.h: New class.
  12902. * src/UnionSeedCriteria.h: New class.
  12903. * src/prefs.h
  12904. (PREF_SEED_TIME): New definition.
  12905. (PREF_SEED_RATIO): New definition.
  12906. * src/main.cc
  12907. (showUsage): Added --seed-time and --seed-ratio option.
  12908. (main): Added --seed-time and --seed-ratio option.
  12909. Made default log file name "/dev/null".
  12910. * src/SharedHandle.h
  12911. (SharedHandle): Copy constructor. Made it assignable from the
  12912. SharedHandle of the subclasses.
  12913. (operator=): Made it assignable from the SharedHandle of the
  12914. subclasses.
  12915. (getRefCount): New function.
  12916. To add notice log level and the switch to write log to stdout. This
  12917. switch is configurable per log level.
  12918. * src/Logger.h
  12919. (notice): New function.
  12920. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12921. constant.
  12922. * src/LogFactory.cc
  12923. (getInstance): The use of NullLogger was removed. A log message with
  12924. notice log level was made written to stdout along with log file.
  12925. * src/NullLogger.h
  12926. (notice): New function.
  12927. * src/SimpleLogger.h
  12928. (writeHeader): Added the 'file' argument.
  12929. (writeLog): Added the 'file' argument.
  12930. (writeFile): New function.
  12931. (stdoutField): New variable.
  12932. (SimpleLogger): Removed the default constructor.
  12933. (SimpleLogger): Made the default value of logfile 0.
  12934. (debug): Added 'virtual' keyword.
  12935. (info): Added 'virtual' keyword.
  12936. (warn): Added 'virtual' keyword.
  12937. (error): Added 'virtual' keyword.
  12938. (notice): New function.
  12939. (setStdout): New function.
  12940. * src/SimpleLogger.cc
  12941. (WRITE_LOG): Replaced writeLog with writeFile.
  12942. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12943. (SimpleLogger): Removed the default constructor.
  12944. (setStdout): New function.
  12945. (writeLog): Added the handling of NOTICE log level.
  12946. (writeFile): New function.
  12947. (notice): New function.
  12948. * src/TorrentMan.h: Updated doc.
  12949. * src/BitfieldMan.h: Updated doc.
  12950. * src/TrackerWatcherCommand.cc
  12951. (execute): Return true if error occurred in the request to the tracker
  12952. and halt is requested.
  12953. * src/TrackerUpdateCommand.cc
  12954. (execute): Return true if error occurred in the request to the tracker
  12955. and halt is requested.
  12956. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12957. DownloadEngine:
  12958. * src/TorrentConsoleDownloadEngine.h
  12959. (onSelectiveDownloadingCompletes): Removed.
  12960. * src/TorrentConsoleDownloadEngine.cc
  12961. (onSelectiveDownloadingCompletes): Removed.
  12962. * src/TorrentDownloadEngine.h
  12963. (onEndOfRun): Added 'virtual' keyword.
  12964. (afterEachIteration): Removed.
  12965. (onSelectiveDownloadingCompletes): Removed.
  12966. * src/TorrentDownloadEngine.cc
  12967. (onEndOfRun): Removed filenameFixed.
  12968. (afterEachIteration): Removed.
  12969. * src/TorrentMan.cc
  12970. (completePiece): Call onDownloadComplete here.
  12971. (onDownloadComplete): Added 2 log messages.
  12972. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12973. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12974. * src/NameResolver.h: Added the prototype declaration of callback().
  12975. To support c-ares library:
  12976. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12977. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12978. * src/FtpInitiateConnectionCommand.h:
  12979. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12980. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12981. * src/HttpInitiateConnectionCommand.h:
  12982. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12983. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12984. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12985. #1542285 by tizianomueller)
  12986. * src/HttpInitiateConnectionCommand.cc:
  12987. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12988. * src/FtpInitiateConnectionCommand.cc:
  12989. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12990. * src/DownloadEngine.h:
  12991. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12992. * src/DownloadEngine.cc:
  12993. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12994. To fix the bug that causes compilation failure with metalink-support
  12995. disabled(bug#1543587):
  12996. * src/main.cc: Fixed with the patch by tizianomueller.
  12997. * Release 0.7.2
  12998. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12999. * src/main.cc
  13000. (main): Added a message to inform users that aria2 is starting to
  13001. verify checksum.
  13002. * src/RequestInfo.cc
  13003. (printDownloadAbortMessage): Added a message to inform users that
  13004. transfer can be resumed.
  13005. * src/FeatureConfig.cc
  13006. (FEATURE_ASYNC_DNS): New definition.
  13007. (FeatureConfig): Added aysnc DNS entry.
  13008. To replace CommandUuid with Command* in SocketEntry and
  13009. NameResolverEntry:
  13010. * src/DownloadEngine.h
  13011. (CommandUuids): Removed.
  13012. (SocketEntry::commandUuid): Removed.
  13013. (SocketEntry::command): New variable.
  13014. (SocketEntry::SocketEntry): Updated.
  13015. (SocketEntry::operator==): Updated.
  13016. (NameResolverEntry::commandUuid): Removed.
  13017. (NameResolverEntry::command): New variable.
  13018. (NameResolverEntry::NameResolverEntry): Updated.
  13019. (NameResolverEntry::operator==): Updated.
  13020. (waitData): Changed the argument type.
  13021. (addSocketForReadCheck): Changed the argument type.
  13022. (deleteSocketForReadCheck): Changed the argument type.
  13023. (addSocketForWriteCheck): Changed the argument type.
  13024. (deleteSocketForWriteCheck): Changed the argument type.
  13025. (addNameResolverCheck): Changed the argument type.
  13026. (deleteNameResolverCheck): Changed the argument type.
  13027. * src/DownloadEngine.cc
  13028. (FindCommand): Removed.
  13029. (run): Removed activeUuid. Added activeCommands instead.
  13030. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13031. (AccumulateActiveCommand): New function object.
  13032. (waitData): Use AccumulateActiveCommand.
  13033. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13034. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13035. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13036. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13037. (addNameResolverCheck): Use Command instead of CommandUuid.
  13038. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13039. * src/AbstractCommand.cc
  13040. (disableReadCheckSocket): Updated according to the changes in
  13041. DownloadEngine.
  13042. (setReadCheckSocket): Updated according to the changes in
  13043. DownloadEngine.
  13044. (disableWriteCheckSocket): Updated according to the changes in
  13045. DownloadEngine.
  13046. (setWriteCheckSocket): Updated according to the changes in
  13047. DownloadEngine.
  13048. (setNameResolverCheck): Updated according to the changes in
  13049. DownloadEngine.
  13050. (disableNameResolverCheck): Updated according to the changes in
  13051. DownloadEngine.
  13052. * src/AbstractCommand.cc
  13053. (disableReadCheckSocket): Updated according to the changes in
  13054. DownloadEngine.
  13055. (setReadCheckSocket): Updated according to the changes in
  13056. DownloadEngine.
  13057. (disableWriteCheckSocket): Updated according to the changes in
  13058. DownloadEngine.
  13059. (setWriteCheckSocket): Updated according to the changes in
  13060. DownloadEngine.
  13061. * release 0.7.1
  13062. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13063. To handle the case where some BitTorrent tracker requires all letters
  13064. except for [A-Za-z0-9] is URL encoded.
  13065. * src/Util.h
  13066. (torrentUrlencode): New function.
  13067. * src/Util.cc
  13068. (ctype.h): Included.
  13069. (torrentUrlencode): New function.
  13070. * src/TrackerWatcherCommand.cc
  13071. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13072. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13073. To add asynchronous DNS support(libares):
  13074. * src/AbstractCommand.h
  13075. (setNameResolverCheck): New function.
  13076. (disableNameResolverCheck): New function
  13077. (resolveHostname): New function.
  13078. * src/AbstractCommand.cc
  13079. (setNameResolverCheck): New function.
  13080. (disableNameResolverCheck): New function
  13081. (resolveHostname): New function.
  13082. * src/FtpInitiateConnectionCommand.h
  13083. (nameResolver): New function.
  13084. * src/FtpInitiateConnectionCommand.cc
  13085. (Util.h): Included.
  13086. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13087. disableWriteCheckSocket.
  13088. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13089. (executeInternal): Added async DNS support.
  13090. * src/HttpInitiateConnectionCommand.h
  13091. (nameResolver): New function.
  13092. * src/HttpInitiateConnectionCommand.cc
  13093. (DlRetryEx.h): Included.
  13094. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13095. disableWriteCheckSocket.
  13096. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13097. (executeInternal): Added async DNS support.
  13098. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13099. by extern "C" declaration.
  13100. * src/NameResolver.cc: New class.
  13101. * src/Util.h:
  13102. (isNumberAndDotsNotation): New function
  13103. * src/Util.cc
  13104. (isNumberAndDotsNotation): New function.
  13105. * src/DownloadEngine.h
  13106. (NameResolver.h): Included.
  13107. (NameResolverEntry): New class.
  13108. (NameResolverEntries): New type definition.
  13109. (addNameResolverCheck): New function.
  13110. (deleteNameResolverCheck): New function.
  13111. * src/DownloadEngine.cc
  13112. (run): Initialize cp with 0.
  13113. (SetDescriptor::operator()): Added for NameResolverEntry.
  13114. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13115. (waitData): Check nameResolver entries.
  13116. (updateFdSet): Update fds in nameResolver entries.
  13117. (addNameResolverCheck): New function.
  13118. (deleteNameResolverCheck): new function.
  13119. * src/PeerInteractionCommand.cc
  13120. (executeInternal): Fixed wrong socket handling.
  13121. * src/main.cc
  13122. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13123. * src/Util.cc
  13124. (fileChecksum): Removed the call to ctx.digestReset().
  13125. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13126. * po/ru.po: Azamat sent me Russian translation.
  13127. * src/FtpNegotiateCommand.cc
  13128. (recvGreeting): Call disableWriteCheckSocket just after
  13129. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13130. (recvRetr): Recognized status code 125 as a acceptable response code.
  13131. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13132. case-insesitive filesystem(BUG#1531057).
  13133. * src/Time.h: Renamed as TimeA2.h.
  13134. * src/Time.cc: Renamed as TimeA2.cc.
  13135. * src/TimeA2.h: New class.
  13136. * src/TimeA2.cc: New class.
  13137. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13138. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13139. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13140. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13141. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13142. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13143. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13144. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13145. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13146. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13147. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13148. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13149. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13150. * release 0.7.0
  13151. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13152. * src/PeerChokeCommand.h
  13153. (PeerChokeCommand): Rearranged the arguments.
  13154. * src/PeerChokeCommand.cc
  13155. (PeerChokeCommand): Rearranged the arguments.
  13156. * src/MetalinkEntry.h
  13157. (Checksum.h): Included.
  13158. (md5): Removed.
  13159. (sha1): Removed.
  13160. (checksum): New variable.
  13161. (operator=): Updated.
  13162. (check): Removed.
  13163. * src/prefs.h
  13164. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13165. (PREF_FOLLOW_TORRENT): New definition.
  13166. (PREF_SELECT_FILE): New definition.
  13167. (PREF_FOLLOW_METALINK): New definition.
  13168. * src/MetalinkResource.h
  13169. (TYPE_HTTPS): Added to enum TYPE.
  13170. * src/TorrentMan.cc
  13171. (~TorrentMan): Rewritten.
  13172. * src/MultiDiskWriter.cc
  13173. (MultiDiskAdaptor): Updated according to the changes in
  13174. MessageDigestContext.
  13175. (~MultiDiskAdaptor): Updated according to the changes in
  13176. MessageDigestContext.
  13177. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13178. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13179. * src/Util.h
  13180. (fileChecksum): Updated according to the changes in
  13181. MessageDigestContext.
  13182. * src/Util.cc
  13183. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13184. (fileChecksum): Updated according to the changes in
  13185. MessageDigestContext.
  13186. * src/messageDigest.h: Rewritten.
  13187. * src/MetalinkEntry.cc
  13188. (check): Removed.
  13189. (Supported): Updated.
  13190. (dropUnsupportedResource): Fixed a memory leak.
  13191. * src/ShaVisitor.cc
  13192. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13193. (~ShaVisitor): Updated according to the changes in
  13194. MessageDigestContext.
  13195. (visit): Updated according to the changes in MessageDigestContext.
  13196. * src/main.cc
  13197. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13198. command-line option added.
  13199. * src/DownloadEngine.h
  13200. (SocketEntry): New class.
  13201. (SocketEntries): New definition.
  13202. (PairFind): Removed.
  13203. (SockCmdMap): Removed.
  13204. * src/DownloadEngine.cc
  13205. (DownloadEngine): Rewritten.
  13206. (~DownloadEngine): Rewritten.
  13207. (run): Renamed activeCommandUuids as activeUuids.
  13208. (SetDescriptor): Rewritten.
  13209. (AccumulateActiveCommandUuid): Removed.
  13210. (AccumulateActiveUuid): New function object.
  13211. (waitData): Rewritten.
  13212. (updateFdSet): Rewritten.
  13213. (addSocket): Rewritten.
  13214. (deleteSocket): Rewritten.
  13215. (addSocketForReadCheck): Rewritten.
  13216. (deleteSocketForReadCheck): Rewritten.
  13217. (addSocketForWriteCheck): Rewritten.
  13218. (deleteSocketForWriteCheck): Rewritten.
  13219. * src/Xml2MetalinkProcessor.cc
  13220. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13221. * src/DownloadCommand.cc
  13222. (executeInternal): Added the check routine for lowest speed limit.
  13223. * src/AbstractDiskWriter.cc
  13224. (AbstractDiskWriter): Updated according to the changes in
  13225. MessageDigestContext.
  13226. (~AbstractDiskWriter): Updated according to the changes in
  13227. MessageDigestContext.
  13228. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13229. * src/RequestInfo.h: New class.
  13230. * src/UrlRequestInfo.h: New class.
  13231. * src/UrlRequestInfo.cc: New class.
  13232. * src/TorrentRequestInfo.h: New class.
  13233. * src/TorrentRequestInfo.cc: New class.
  13234. * src/MetalinkRequestInfo.h: New class.
  13235. * src/MetalinkRequestInfo.cc: New class.
  13236. * src/Checksum.h: New class.
  13237. * src/DownloadEngineFactory.h: New class.
  13238. * src/DownloadEngineFactory.cc: New class.
  13239. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13240. * src/Option.h
  13241. (getAsBool): New function.
  13242. * src/Option.cc
  13243. (prefs.h): Included.
  13244. (defined): 0-length value is now recognized as undefined.
  13245. (getAsInt): Rewritten.
  13246. (getAsLLInt): Rewritten.
  13247. (getAsBool): New function.
  13248. * src/FeatureConfig.h: Rewritten.
  13249. * src/FeatureConfig.cc: Rewritten.
  13250. * src/prefs.h
  13251. (PREF_STDOUT_LOG): New definition.
  13252. (PREF_LOG): New definition.
  13253. (PREF_DIR): New definition.
  13254. (PREF_OUT): New definition.
  13255. (PREF_SPLIT): New definition.
  13256. (PREF_DAEMON): New definition.
  13257. (PREF_REFERER): New definition.
  13258. (PREF_TORRENT_FILE): New definition.
  13259. (PREF_LISTEN_PORT): New definition.
  13260. (PREF_METALINK_FILE): New definition.
  13261. (PREF_METALINK_VERSION): New definition.
  13262. (PREF_METALINK_LANGUAGE): New definition.
  13263. (PREF_METALINK_OS): New definition.
  13264. (PREF_METALINK_SERVERS): New definition.
  13265. * src/main.cc
  13266. (main): Following command-line parameters are now put into Option
  13267. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13268. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13269. metalinkLanguage, metalinkOs, metalinkServers
  13270. To fix the bug that aria2 can not handle http response header properly.
  13271. * src/HttpHeader.cc
  13272. (put): Made name lowercased.
  13273. (defined): Made name lowercased.
  13274. (getFirst): Made name lowercased.
  13275. (get): Made name lowercased.
  13276. (getFirstAsInt): Rewritten.
  13277. (getFirstAsLLInt): Rewritten.
  13278. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13279. * src/TorrentMan.h:
  13280. (advertisePiece): Updated doc.
  13281. (getAdvertisedPieceIndexes): Updated doc.
  13282. (removeAdvertisedPiece); New function.
  13283. * src/TorrentMan.cc
  13284. (FindElapsedHave): New function object.
  13285. (removeAdvertisedPiece): New function.
  13286. * src/HaveEraseCommand.h: New class.
  13287. * src/HaveEraseCommand.cc: New class.
  13288. * src/FeatureConfig.h: New class.
  13289. * src/FeatureConfig.cc: New class.
  13290. * src/Request.h
  13291. (defaultPorts): Removed.
  13292. * src/Request.cc
  13293. (FeatureConfig.h): Included.
  13294. (Request): Removed the statements related to defaultPorts.
  13295. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13296. A default port number is now retrieved from FeatureConfig.
  13297. * src/main.cc
  13298. (HaveEraseCommand.h): Included.
  13299. (showVersion): Added the output of feature list.
  13300. (main): Added HaveEraseCommand to command queue in BitTorrent
  13301. downloading.
  13302. * src/PeerInteractionCommand.h
  13303. (chokeCheckPoint): Commented out.
  13304. (periodicExecPoint): New variable.
  13305. * src/PeerInteractionCommand.cc
  13306. (executeInternal): Following methods are now called in at least every
  13307. 0.5 seconds to reduce CPU usage:
  13308. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13309. checkHave(), sendKeepAlive().
  13310. (checkLongTimePeerChoking): Commented out.
  13311. * src/BitfieldMan.h
  13312. (getNthBitIndex): Changed the method signature.
  13313. (getMissingIndexRandomly): Changed the method signature.
  13314. * src/BitfieldMan.cc
  13315. (getNthBitIndex): Rewritten
  13316. (getMissingIndexRandomly): Rewritten.
  13317. (hasMissingPiece): Rewritten.
  13318. (getMissingIndex): Refactored.
  13319. (getMissingUnusedIndex); Refactored.
  13320. (getMissingIndex): Refactored.
  13321. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13322. * src/PeerMessage.h
  13323. (Piece.h): Included.
  13324. (SharedHandle.h): Included.
  13325. (invalidate): New variable.
  13326. (uploading): New variable.
  13327. (isInvalidate): New function.
  13328. (isUploading): New function.
  13329. (onPush): New function.
  13330. (onChoked): New function.
  13331. (onCanceled): New function.
  13332. (onAbortPiece): New function.
  13333. (PeerMessageHandle): New type definition.
  13334. * src/PeerMessage.cc
  13335. (PeerMessage): Added the initialization for invalidate and uploading.
  13336. * src/CancelMessage.h
  13337. (CancelMessage): Rewritten.
  13338. * src/RejectMessage.h
  13339. (RejectMessage): Rewritten.
  13340. * src/Metalinker.h
  13341. (operator=): Defined.
  13342. * src/MetaEntry.h
  13343. (operator=): Defined.
  13344. * src/MetalinkResource.h
  13345. (operator=): Defined.
  13346. * src/AllowedFastMessage.h
  13347. (AllowedFastMessage): Rewritten.
  13348. * src/HandshakeMessage.h
  13349. (HandshakeMessage): New function(overload).
  13350. * src/HandshakeMessage.cc
  13351. (HandshakeMessage): Rewritten.
  13352. (init): New function.
  13353. * src/HaveMessage.h
  13354. (HaveMessage): Rewritten.
  13355. * src/Time.h
  13356. (operator=): Defined the function body here.
  13357. * src/Time.cc
  13358. (operator=): Removed.
  13359. * src/SocketCore.h
  13360. (operator==): Defined here.
  13361. (operator!=): Defined here.
  13362. (operator<): Defined here.
  13363. * src/SocketCore.cc
  13364. (operator==): Removed.
  13365. (operator<): Removed.
  13366. * src/BitfieldMan.h
  13367. (operator=): Defined the function body here.
  13368. * src/BitfieldMan.cc
  13369. (operator=): Removed.
  13370. * src/TorrentMan.h
  13371. (deleteErrorPeer): Removed.
  13372. (deleteUnusedPeer); New function.
  13373. * src/TorrentMan.cc
  13374. (addPeer): Call deleteUnusedPeer.
  13375. (deleteErrorPeer): Removed.
  13376. (deleteUnusedPeer): New function.
  13377. * src/PeerAbstractCommand.h
  13378. (setNoCheck): New function.
  13379. (noCheck): New variable.
  13380. * src/PeerAbstractCommand.cc
  13381. (PeerAbstractCommand): Added the initialization of noCheck.
  13382. (execute): Added a check for noCheck.
  13383. (setNoCheck): New function.
  13384. * src/Util.h
  13385. (stdio.h): Included.
  13386. * src/Util.cc
  13387. (unistd.h): Included.
  13388. * src/DefaultDiskWriter.cc
  13389. (unistd.h): Included.
  13390. * src/Peer.h
  13391. (operator==): Defined the function body here.
  13392. (operator!=): Defined the function body here.
  13393. * src/Peer.cc
  13394. (operator==): Removed.
  13395. (operator!=): Removed.
  13396. * src/Piece.h
  13397. (Piece): Defined the function body here(copy constructor).
  13398. (operator=): Defined the function body here.
  13399. (operator==): Defined the function body here.
  13400. * src/Piece.cc
  13401. (Piece): Removed(copy constructor).
  13402. (operator=): Removed.
  13403. (operator==): Removed.
  13404. * src/PeerMessageUtil.h
  13405. (ChokeMessage.h): Removed.
  13406. (UnchokeMessage.h): Removed.
  13407. (InterestedMessage.h): Removed.
  13408. (NotInterestedMessage.h): Removed.
  13409. (HaveMessage.h): Removed.
  13410. (BitfieldMessage.h): Removed.
  13411. (RequestMessage.h): Removed.
  13412. (CancelMessage.h): Removed.
  13413. (PieceMessage.h): Removed.
  13414. (HandshakeMessage.h): Removed.
  13415. (KeepAliveMessage.h): Removed.
  13416. (PortMessage.h): Removed.
  13417. (HaveAllMessage.h): Removed.
  13418. (HaveNoneMessage.h): Removed.
  13419. (PeerConnection.h): Removed.
  13420. (HandshakeMessage.h): Included.
  13421. * src/BitfieldMessage.h
  13422. (init): New function.
  13423. (BitfieldMessage): Rewritten.
  13424. (BitfieldMessage): New function(overload).
  13425. * src/RequestSlot.h
  13426. (operator=): Defined the function body here.
  13427. (operator==): Defined the function body here.
  13428. * src/RequestSlot.cc
  13429. (operator=): Removed.
  13430. (operator==): Removed.
  13431. To remove the dependency on the PeerMessage subclass from
  13432. PeerInteraction:
  13433. * src/PeerMessageFactory.h: New class.
  13434. * src/PeerMessageFactory.cc: New class.
  13435. * src/SimplePeerMessage.cc
  13436. (send): If invalidate is true then do nothing.
  13437. * src/PeerInteractionCommand.cc
  13438. (HandshakeMessage.h): Included.
  13439. (KeepAliveMessage.h): Included.
  13440. (ChokeMessage.h): Included.
  13441. (UnchokeMessage.h): Included.
  13442. (HaveMessage.h): Included.
  13443. (executeInternal): Call setNoCheck().
  13444. Removed setWriteCheckSocket(socket).
  13445. * src/PeerInteraction.h
  13446. (ChokeMessage.h): Removed.
  13447. (UnchokeMessage.h): Removed.
  13448. (InterestedMessage.h): Removed.
  13449. (NotInterestedMessage.h): Removed.
  13450. (HaveMessage.h): Removed.
  13451. (BitfieldMessage.h): Removed.
  13452. (RequestMessage.h): Removed.
  13453. (CancelMessage.h): Removed.
  13454. (PieceMessage.h): Removed.
  13455. (HandshakeMessage.h): Removed.
  13456. (KeepAliveMessage.h): Removed.
  13457. (PortMessage.h): Removed.
  13458. (HaveAllMessage.h): Removed.
  13459. (HaveNoneMessage.h): Removed.
  13460. (RejectMessage.h): Removed.
  13461. (AllowedFastMessage.h): Removed.
  13462. (SuggestPieceMessage.h): Removed.
  13463. (PeerMessageFactory.h): Included.
  13464. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13465. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13466. (PeerMessageFactory): New variable.
  13467. (createPeerMessage): Removed.
  13468. (createHandshakeMessage): Removed.
  13469. (setPeerMessageCommonProperty): Removed.
  13470. (addRequestSlot): New function.
  13471. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13472. (getPeerMessageFactory): New function.
  13473. (createRequestMessage): Removed.
  13474. (createCancelMessage): Removed.
  13475. (createPieceMessage): Removed.
  13476. (createHaveMessage): Removed.
  13477. (createChokeMessage): Removed.
  13478. (createUnchokeMessage): Removed.
  13479. (createInterestedMessage): Removed.
  13480. (createNotInterestedMessage): Removed.
  13481. (createBitfieldMessage): Removed.
  13482. (createKeepAliveMessage): Removed.
  13483. (createHaveAllMessage): Removed.
  13484. (createHaveNoneMessage): Removed.
  13485. (createRejectMessage): Removed.
  13486. (createAllowedFastMessage): Removed.
  13487. * src/PeerInteraction.cc
  13488. (PeerInteraction): Allocate PeerMessageFactory here.
  13489. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13490. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13491. PieceMessage::ID.
  13492. (addMessage): Simplified by using PeerMessage::onPush().
  13493. (addRequestSlot): New function.
  13494. (rejectAllPieceMessageInQueue): Simplified by using
  13495. PeerMessage::onChoked().
  13496. (rejectPieceMessageInQueue): Simplified by using
  13497. PeerMessage::onCanceled().
  13498. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13499. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13500. (createHandshakeMessage): Removed.
  13501. (createPeerMessage): Removed.
  13502. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13503. (setPeerMessageCommonProperty): Removed.
  13504. (createRequestMessage): Removed.
  13505. (createCancelMessage): Removed.
  13506. (createPieceMessage): Removed.
  13507. (createHaveMessage): Removed.
  13508. (createChokeMessage): Removed.
  13509. (createUnchokeMessage): Removed.
  13510. (createInterestedMessage): Removed.
  13511. (createNotInterestedMessage): Removed.
  13512. (createBitfieldMessage): Removed.
  13513. (createKeepAliveMessage): Removed.
  13514. (createHaveAllMessage): Removed.
  13515. (createHaveNoneMessage): Removed.
  13516. (createRejectMessage): Removed.
  13517. (createAllowedFastMessage): Removed.
  13518. * src/PieceMessage.h
  13519. (createRejectMessage): New function.
  13520. (PieceMessage): Rewritten.
  13521. (onChoked): New function.
  13522. (onCanceled): New function.
  13523. * src/PieceMessage.cc
  13524. (send): If invalidate is true then do nothing, just return.
  13525. (createRejectMessage): New function.
  13526. (onChoked): New function.
  13527. (onCanceled): New function.
  13528. * src/RequestMessage.h
  13529. (RequestMessage): Rewritten.
  13530. (onPush): New function.
  13531. (onAbortPiece): New function.
  13532. * src/RequestMessage.cc
  13533. (onPush): New function.
  13534. (onAbortPiece): New function.
  13535. Update fd_set when a socket is added or deleted in order to improve
  13536. performance:
  13537. * src/DownloadEngine.h
  13538. (rfdset): New variable.
  13539. (wfdset): New variable.
  13540. (updateFdSet): New function.
  13541. * src/DownloadEngine.cc
  13542. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13543. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13544. (waitData): Copy rfdset and wfdset.
  13545. (updateFdSet): New function.
  13546. (addSocket): Call updateFdSet.
  13547. (deleteSocket): Call updateFdSet.
  13548. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13549. To add the support for Metalink3.0 backward compatible links:
  13550. * src/Request.h
  13551. (SAFE_CHARS): Added '#'.
  13552. (METALINK_MARK): New definition.
  13553. * src/Request.cc
  13554. (parseUrl): Added the support for Metalink3.0 backward compatible
  13555. links.
  13556. etc
  13557. * src/PeerInteraction.cc
  13558. (MsgPushBack): Removed.
  13559. (sendMessages): Use STL copy and back_inserter.
  13560. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13561. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13562. * src/TorrentMan.h
  13563. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13564. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13565. * src/SharedHandle.h: New class.
  13566. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13567. * src/HttpResponseCommand.h
  13568. (HttpResponseCommand): Wrapped Socket.
  13569. * src/SocketCore.h
  13570. (operator==): New function.
  13571. (operator!=): New function.
  13572. (operator<): New function.
  13573. (getSockfd): New function.
  13574. (isOpen): New function.
  13575. (writeData): New function.
  13576. * src/SocketCore.cc
  13577. (operator==): New function.
  13578. (operator!=): New function.
  13579. (operator<): New function.
  13580. * src/AbstractCommand.h
  13581. (socket): Changed its type to SocketHandle.
  13582. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13583. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13584. (disableReadCheckSocket): New function.
  13585. (disableWriteCheckSocket): New function.
  13586. (readCheckTarget): Changed its type to SocketHandle.
  13587. (writeCheckTarget): Changed its type to SocketHandle.
  13588. (AbstractCommand): Replaced Socket with SocketHandle.
  13589. * src/AbstractCommand.cc
  13590. (AbstractCommand): Replaced Socket with SocketHandle.
  13591. (~AbstractCommand): Removed the deallocation for Socket object.
  13592. (disableReadCheckSocket): New function.
  13593. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13594. (disableWriteCheckSocket): New function.
  13595. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13596. * src/HttpDownloadCommand.cc
  13597. (DownloadCommand): Replaced Socket with SocketHandle.
  13598. * src/PeerAbstractCommand.h
  13599. (socket): Changed its type to SocketHandle.
  13600. (peer): Changed its type to PeerHandle.
  13601. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13602. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13603. (disableReadCheckSocket): New function.
  13604. (disableWriteCheckSocket): New function.
  13605. (readCheckTarget): Changed its type to SocketHandle.
  13606. (writeCheckTarget): Changed its type to SocketHandle.
  13607. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13608. Replaced Peer with PeerHandle.
  13609. * src/HttpRequestCommand.cc
  13610. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13611. Use disableReadCheckSocket.
  13612. * src/PeerInitiateConnectionCommand.h
  13613. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13614. * src/PeerChokeCommand.cc
  13615. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13616. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13617. (execute): Use PeerHandle.
  13618. * src/PeerConnection.h
  13619. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13620. (socket): Changed its type to SocketHandle.
  13621. (PeerConnection): Replaced Socket with SocketHandle.
  13622. * src/PeerConnection.cc
  13623. (PeerConnection): Replaced Socket with SocketHandle.
  13624. * src/PeerInteractionCommand.h
  13625. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13626. Replaced Peer with PeerHandle.
  13627. * src/PeerInteractionCommand.cc
  13628. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13629. Replaced Peer with PeerHandle.
  13630. (executeInternal): Use disableWriteCheckSocket.
  13631. Use HandshakeMessageHandle.
  13632. (receiveMessages): Use PeerMessageHandle.
  13633. (prepareForNextPeer): Use PeerHandle.
  13634. * src/HttpProxyRequestCommand.h
  13635. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13636. * src/HttpResponseCommand.cc
  13637. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13638. * src/TorrentMan.cc
  13639. (nullPeer): Added external reference.
  13640. (~TorrentMan): Removed the deallocation of the elements of peers.
  13641. (addPeer): Rewritten.
  13642. (isPeerAvailable): Use nullPeer.
  13643. (deleteOldpeers): Replaced with deleteErrorPeer.
  13644. (deleteErrorPeer): New function.
  13645. (getPeer): Use PeerHandle and nullPeer.
  13646. (hasMissingPiece): Replaced Peer with PeerHandle.
  13647. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13648. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13649. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13650. (getMissingPiece): Replaced Peer with PeerHandle.
  13651. * src/FtpNegotiateCommand.cc
  13652. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13653. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13654. (recvGreeting): Use disableWriteCheckSocket.
  13655. (recvPasv): Removed the allocation of Socket.
  13656. Use disableReadCheckSocket.
  13657. (sendRestPasv): Use disableWriteCheckSocket.
  13658. (recvRetr): Changed assertion.
  13659. * src/PeerInteraction.h
  13660. (SharedHandle.h): Included SharedHandle.h.
  13661. (PeerMessageHandle): New type definition.
  13662. (HandshakeMessageHandle): New type definition.
  13663. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13664. (peer): Changed its type to PeerHandle.
  13665. (createHandshakeMessage): Replaced HandshakeMessage with
  13666. HandshakeMessageHandle.
  13667. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13668. (PeerInteraction): Replaced Peer with PeerHandle.
  13669. Replaced Socket with SocketHandle.
  13670. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13671. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13672. (receiveHandshake): Replaced HandshakeMessage with
  13673. HandshakeMessageHandle.
  13674. * src/PeerInteraction.cc
  13675. (PeerInteraction): Replaced Peer with PeerHandle.
  13676. Replaced Socket with SocketHandle.
  13677. (~PeerInteraction): Removed the deallocation of the elements of
  13678. messageQueue.
  13679. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13680. (isSendingMessageInProgress): Replaced PeerMessage with
  13681. PeerMessageHandle.
  13682. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13683. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13684. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13685. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13686. (abortPiece): Use PeerMessageHandle.
  13687. (receiveHandshake): Replaced HandshakeMessage with
  13688. HandshakeMessageHandle. Removed try-catch block.
  13689. (createHandshakeMessage): Replaced HandshakeMessage with
  13690. HandshakeMessageHandle.
  13691. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13692. Removed try-catch block.
  13693. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13694. * src/HttpProxyResponseCommand.cc
  13695. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13696. * src/FtpTunnelResponseCommand.h
  13697. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13698. * src/HttpConnection.cc
  13699. (HttpConnection): Replaced Socket with SocketHandle.
  13700. * src/PeerAbstractCommand.cc
  13701. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13702. (~PeerAbstractCommand): Removed the deallocation of socket.
  13703. Use disableReadCheckSocket, disableWriteCheckSocket.
  13704. (disableReadCheckSocket): New function.
  13705. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13706. (disableWriteCheckSocket): New function.
  13707. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13708. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13709. * src/FtpTunnelRequestCommand.cc
  13710. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13711. (~FtpTunnelRequestCommand): Corrected indentation.
  13712. * src/DownloadCommand.h
  13713. (DownloadCommand): Replaced Socket with SocketHandle.
  13714. * src/PeerListenCommand.cc
  13715. (PeerListenCommand): Removed the initialization of socket.
  13716. (~PeerListenCommand): Removed the deallocation of socket.
  13717. (bindPort): Use SocketHandle.
  13718. (execute): Use SocketHandle and PeerHandle.
  13719. * src/FtpDowndloadCommand.cc
  13720. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13721. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13722. * src/main.cc
  13723. (main): Corrected indentation.
  13724. * src/HttpInitiateConnectionCommand.cc
  13725. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13726. (executeInternal): Removed the allocation of socket.
  13727. * src/HttpRequestCommand.h
  13728. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13729. * src/FtpNegotiationCommand.h
  13730. (dataSocket): Changed its type to SocketHandle.
  13731. (serverSocket): Changed its type to SocketHandle.
  13732. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13733. * src/TorrentMan.h
  13734. (MAX_PEER_UPDATE): Removed.
  13735. (MAX_PEERS): New definition.
  13736. (Peers): The element is now of type PeerHandle.
  13737. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13738. (getPeer): Replaced Peer with PeerHandle.
  13739. (deleteOldErrorPeers): Removed.
  13740. (deleteErrorPeer): New function.
  13741. (hasMissingPiece): Replaced Peer with PeerHandle.
  13742. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13743. (getMissingPiece): Replaced Peer with PeerHandle.
  13744. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13745. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13746. (addActivePeer): Replaced Peer with PeerHandle.
  13747. (deleteActivePeer): Replaced Peer with PeerHandle.
  13748. Added a check for the return value of find.
  13749. * src/FtpTunnelResponseCommand.cc
  13750. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13751. * src/FtpInitiateConnectionCommand.cc
  13752. (executeInternal): Removed the allocation of socket.
  13753. * src/DownloadEngine.h
  13754. (Sockets): An element is now of type SocketHandle.
  13755. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13756. (CommandUuids): New type definition.
  13757. (rsockets): Changed its type to SockCmdMap.
  13758. (wsockets): Changed its type to SockCmdMap.
  13759. (addSocket): Rewritten.
  13760. (deleteSocket): Rewritten.
  13761. (addSocketForReadCheck): Rewritten.
  13762. (deleteSocketForReadCheck): Rewritten.
  13763. (addSocketForWriteCheck): Rewritten.
  13764. (deleteSocketForWriteCheck): Rewritten.
  13765. (PairFind): New template class.
  13766. * src/HttpDownloadCommand.h
  13767. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13768. * src/FtpConnection.cc
  13769. (FtpConnection): Replaced Socket with SocketHandle.
  13770. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13771. block.
  13772. * src/InitiateConnectionCommandFactory.cc
  13773. (DlAbortEx.h): Included DlAbortEx.h.
  13774. (createInitiateConnectionCommand): Throw exception if the protocol of
  13775. requested URI is not supported.
  13776. * src/Peer.cc
  13777. (nullPeer): Changed its type to PeerHandle.
  13778. (operator==): New function.
  13779. (operator!=): New function.
  13780. * src/Peer.h
  13781. (SharedHandle.h): Included SharedHandle.h.
  13782. (operator==): New function.
  13783. (operator!=): New function.
  13784. (Peer): Added the default constructor.
  13785. Use resetStatus() to initialize member variables.
  13786. (nullPeer): Removed.
  13787. * src/TrackerUpdateCommand.cc
  13788. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13789. with MIN_PEERS.
  13790. * src/PeerListenCommand.h
  13791. (socket): Changed its type to SocketHandle.
  13792. * src/Command.h
  13793. (CommandUuid): New type definition.
  13794. (uuid): New variable.
  13795. (uuidGen): New variable.
  13796. (Command): Added the initialization of uuid.
  13797. (getUuid): New function.
  13798. * src/Socket.h
  13799. (Socket): Removed.
  13800. (SocketHandle): New type definition.
  13801. * src/DownloadEngine.h
  13802. (FindCommand): New function object.
  13803. (run): The portion of socket check was rewritten.
  13804. (SetDescriptor): New function object.
  13805. (AccumulateActiveCommandUuid): New function object.
  13806. (waitData): Rewritten.
  13807. (addSocket): Rewritten.
  13808. (deleteSocket): Rewritten.
  13809. (addSocketForReadCheck): Rewritten.
  13810. (addSocketForWriteCheck): Rewritten.
  13811. (deleteSocketForReadCheck): Rewritten.
  13812. (deleteSocketForWriteCheck): Rewritten.
  13813. * src/HttpProxyResponseCommand.h
  13814. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13815. * src/HttpConnection.h
  13816. (socket): Changed its type to SocketHandle.
  13817. (HttpConnection): Replaced Socket with SocketHandle.
  13818. * src/PeerInitiateConnectionCommand.cc
  13819. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13820. (executeInternal): Removed the allocation of socket.
  13821. (prepareForNextPeer): Use PeerHandle.
  13822. * src/PeerMessage.h
  13823. (peer): Changed its type to PeerHandle.
  13824. (getPeer): Replaced Peer with PeerHandle.
  13825. (setPeer): Replaced Peer with PeerHandle.
  13826. * src/DownloadCommand.cc
  13827. (DownloadCommand): Replaced Socket with SocketHandle.
  13828. * src/FtpConnection.h
  13829. (socket): Changed its type to SocketHandle.
  13830. (FtpConnection): Replaced Socket with SocketHandle.
  13831. (sendPort); Replaced Socket with SocketHandle.
  13832. * src/FtpDowndloadCommand.h
  13833. (ctrlSocket): Changed its type to SocketHandle.
  13834. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13835. * src/HttpProxyRequestCommand.cc
  13836. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13837. * src/FtpTunnelRequestCommand.h
  13838. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13839. etc
  13840. * src/PeerChokeCommand.h
  13841. (setAllPeerChoked): Removed.
  13842. (setAllPeerResetDelta): Removed.
  13843. * src/PeerChokeCommand.cc
  13844. (setAllPeerChoked): Removed.
  13845. (ChokePeer): New function object.
  13846. (setAllPeerResetDelta): Removed.
  13847. (ResetDelta): New function object.
  13848. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13849. (execute): Show download speed when the local node is a seeder.
  13850. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13851. using STL.
  13852. * src/TrackerWatcherCommand.h
  13853. (MIN_PEERS): Removed.
  13854. * src/TorrentMan.cc
  13855. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13856. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13857. To fix the bug that .aria2 file is not saved if downloading is stopped
  13858. by the errors:it results that aria2 can not resume downloading:
  13859. * src/main.cc
  13860. (normalDownload): Added the call to save().
  13861. (main): Added the deletion of the elements in 'reserved'.
  13862. To fix log:
  13863. * src/PeerInteraction.cc
  13864. (receiveHandshake): Fixed log.
  13865. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13866. To improve download performance in BitTorrent:
  13867. * src/TorrentMan.cc
  13868. (getPeer): Check the number of connections. Return nullPeer if
  13869. it is greater than MAX_PEER_UPDATE.
  13870. This code was originally here, but was removed in 0.5.1.
  13871. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13872. To improve the conditional compilation:
  13873. * src/MultiDiskWriter.h:
  13874. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13875. * src/MultiDiskWriter.cc:
  13876. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13877. * src/Util.h:
  13878. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13879. Added ENABLE_BITTORRENT around computeFastSet().
  13880. * src/Util.cc:
  13881. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13882. Added ENABLE_BITTORRENT around computeFastSet().
  13883. * src/messageDigest.h:
  13884. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13885. * src/ShaVisitor.h:
  13886. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13887. * src/ShaVisitor.cc:
  13888. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13889. * src/main.cc:
  13890. Added ENABLE_BITTORRENT around includes and blocks related to
  13891. BitTorrent.
  13892. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13893. digest support is not available.
  13894. * src/AbstractDiskWriter.h:
  13895. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13896. * src/AbstractDiskWriter.cc:
  13897. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13898. * src/MetalinkEntry.cc
  13899. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13900. support is not available.
  13901. To add command-line options for Metalink:
  13902. * src/main.cc:
  13903. Added metalink-version, metalink-language, metalink-os,
  13904. follow-metalink.
  13905. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13906. * src/main.cc: Use these definition.
  13907. * Release 0.6.0
  13908. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13909. To add Metalink support(http/ftp only):
  13910. * src/AbstractCommand.h
  13911. (tryReserved): New function.
  13912. * src/AbstractCommand.cc
  13913. (execute): Call tryReserved().
  13914. (tryReserved): New function.
  13915. * src/Request.h
  13916. (Requests): New type definition.
  13917. * src/SegmentMan.h
  13918. (reserved): New variable.
  13919. * src/Util.h
  13920. (fileChecksum): New function.
  13921. (toUpper): New function.
  13922. (toLower): New function.
  13923. * src/Util.cc
  13924. (messageDigest.h): Included.
  13925. (trim): Trim \r\n\t.
  13926. (fileChecksum): New function.
  13927. (toUpper): New function.
  13928. (toLower): New function.
  13929. * src/main.cc
  13930. (normalDownload): New function.
  13931. (main): Added 2 command-line options: metalink-file,
  13932. metalink-connection. Their usage has not been written yet.
  13933. * src/MetalinkProcessor.h: New class.
  13934. * src/Xml2MetalinkProcessor.h: New class.
  13935. * src/Xml2MetalinkProcessor.cc: New class.
  13936. * src/MetalinkEntry.h: New class.
  13937. * src/MetalinkEntry.cc: New class.
  13938. * src/MetalinkResource.h: New class.
  13939. * src/MetalinkResource.cc: New class.
  13940. To add md5 message digest checking:
  13941. * src/messageDigest.h: Rewritten.
  13942. * src/MultiDiskWriter.cc: Updated according to the changes in
  13943. messageDigest.h.
  13944. * src/ShaVisitor.cc: Updated according to the changes in
  13945. messageDigest.h.
  13946. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13947. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13948. messageDigest.h.
  13949. To fix a bug that causes segfault when the payload length in peer
  13950. message is less than 0:
  13951. * src/PeerConnection.cc:
  13952. (receiveMessage): Fixed the bug.
  13953. * src/PeerMessageUtil.cc
  13954. (checkLength): Throw an exception if length is less than or equals to
  13955. 0.
  13956. To add new interfaces to Base64 encoding/decoding:
  13957. * src/Base64.h
  13958. (part_encode): Changed the method signature.
  13959. (encode): New function(overload).
  13960. (decode): New function(overload).
  13961. * src/Base64.cc
  13962. (part_encode): Rewritten.
  13963. (encode): Rewritten.
  13964. (encode): New function(overload).
  13965. To prevent a peer to download same piece if there is an error in
  13966. checksum:
  13967. * src/PieceMessage.cc
  13968. (receivedAction): Call peerInteraction->abortPiece().
  13969. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13970. To fix the bug that causes same have message is sent many times to
  13971. a single peer.
  13972. * src/Time.cc
  13973. (isNewer): Use Util::difftv().
  13974. * src/Util.cc
  13975. (difftv): Added a cast to (long long int).
  13976. * src/TorrentMan.cc
  13977. (advertisePiece): Use push_front.
  13978. (getAdvertisedPieceIndexes): A performance improvement was made.
  13979. To fix the bug that sends tracker requests without a sleep interval
  13980. when the number of connections is less than 15.
  13981. * src/TrackerWatcherCommand.cc
  13982. (execute): Now the number of connections is not a factor to decide
  13983. whether or not a tracker request should be sent or not.
  13984. * src/Time.h
  13985. (setTimeInSec): New function.
  13986. * src/Time.cc
  13987. (setTimeInSec): New function.
  13988. etc.
  13989. * src/ChokeMessage.cc
  13990. (receivedAction): Removed peer->snubbing = false
  13991. * src/PeerConnection.h
  13992. (receiveHandshake): Updated doc.
  13993. * src/TorrentMan.h
  13994. (getAdvertisedPieceIndexes): Updated the method signature.
  13995. * src/TorrentMan.cc
  13996. (getAdvertisedPieceIndexes): Updated the method signature.
  13997. * src/Time.h
  13998. (getTimeInMicros): Added a cast to (long long int).
  13999. (getTimeInMillis): Added a cast to (long long int).
  14000. * Release 0.5.2
  14001. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14002. To make a listening socket non-block:
  14003. * src/SocketCore.h
  14004. (setNonBlockingMode): New function.
  14005. * src/SocketCore.cc
  14006. (setNonBlockingMode): New function.
  14007. (beginListen): Added a call to setNonBlockingMode().
  14008. (acceptConnection): Call setNonBlockingMode().
  14009. (setBlockingMode): Updated.
  14010. To handle tracker's NAT-checking:
  14011. * src/PeerConnection.cc
  14012. (receiveHandshake): 'msg' param is filled with received data and
  14013. its length is assigned to 'length' param, even if all handshake
  14014. message is not yet received.
  14015. * src/PeerInteractionCommand.cc
  14016. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14017. a new peer connects to localhost.
  14018. A call to peerInteraction->sendHandshake() was removed because
  14019. it is called from peerInteraction->receiveHandshake(true).
  14020. * src/PeerInteraction.h
  14021. (quickReplied): New variable.
  14022. (receiveHandshake): Added an argument.
  14023. * src/PeerInteraction.cc
  14024. (PeerInteraction): Added the initialization of quickReplied.
  14025. (receiveHandshake): Send handshake message as soon as the info hash
  14026. in a handshake message from a peer is correct.
  14027. To change the random part of peer id and key parameter:
  14028. * src/TorrentMan.h
  14029. (key): New variable.
  14030. * src/TorrentMan.cc
  14031. (setupInternal1): Use Util::randomAlpha() to generate random part
  14032. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14033. key is also generated by Util::randomAlpha() and it is now 8 character
  14034. long.
  14035. * src/Util.h
  14036. (randomAlpha): New function.
  14037. * src/Util.cc
  14038. (randomAlpha): New function.
  14039. * src/TrackerWatcherCommand.cc
  14040. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14041. Added no_peer_id=1.
  14042. Set snubbing flag to false when a choke message is received from a
  14043. snubbed peer.
  14044. * src/ChokeMessage.cc
  14045. (receivedAction): Set snubbing flag to false.
  14046. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14047. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14048. * src/SimpleLogger.h (writeHeader): New function.
  14049. * src/SimpleLogger.cc (writeHeader): New function.
  14050. (writeLog): Fixed the bug that causes segfaults if exception message
  14051. contains an unescaped "%" character.
  14052. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14053. when a tracker request fails.
  14054. * src/Request.cc (parseUrl): Query string is now handled properly.
  14055. * Release 0.5.1
  14056. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14057. To add Time class which represents a specific instant in time and
  14058. its precision is microseconds. Time checking procedures were rewritten
  14059. using this object.
  14060. * src/Time.h: New class.
  14061. * src/Time.cc: New class.
  14062. * src/AbstractCommand.h
  14063. (updateCheckPoint): Removed.
  14064. (isTimeoutDetected): Removed.
  14065. (checkPoint): Changed the type to Time.
  14066. (timeout): New variable.
  14067. (setTimeout): New function.
  14068. * src/AbstractCommand.cc
  14069. (AbstractCommand): Removed the initialization of checkPoint.
  14070. Added the initialization of timeout.
  14071. (updateCheckPoint): Removed.
  14072. (isTimeoutDetected): Removed.
  14073. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14074. * src/PeerChokeCommand.h
  14075. (checkPoint): Changed the type to Time.
  14076. * src/PeerChokeCommand.cc
  14077. (PeerChokeCommand): Removed the initialization of checkPoint.
  14078. (execute): Rewritten using Time object.
  14079. * src/TrackerWatcherCommand.h
  14080. (checkPoint): Changed the type to Time.
  14081. * src/TrackerWatcherCommand.cc
  14082. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14083. (execute): Rewritten.
  14084. * src/ConsoleDownloadEngine.h
  14085. (cp): Changed the type to Time.
  14086. (startup): Changed the type to Time.
  14087. * src/ConsoleDownloadEngine.cc
  14088. (initStatistics): Use cp.reset(), startup.reset().
  14089. (calculateStatistics): Rewritten using Time object.
  14090. * src/PeerAbstractCommand.h
  14091. (updateCheckPoint): Removed.
  14092. (isTimeoutDetected): Removed.
  14093. (checkPoint): Changed the type to Time.
  14094. * src/PeerAbstractCommand.cc
  14095. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14096. (updateCheckPoint): Removed.
  14097. (isTimeoutDetected): Removed.
  14098. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14099. * src/PeerInteractionCommand.cc
  14100. (PeerInteractionCommand): Removed the initializations of struct
  14101. timeval variables.
  14102. * src/PeerInteractionCommand.h
  14103. (keepAliveCheckPoint): Changed the type to Time.
  14104. (chokeCheckPoint): Changed the type to Time.
  14105. (freqCheckPoint): Changed the type to Time.
  14106. (haveCheckTime): Changed the type to Time.
  14107. * src/PeerInteractionCommand.cc
  14108. (executeInternal): Rewritten using Time object.
  14109. (detectMessageFlooding): Rewritten using Time object.
  14110. (checkLongTimePeerChoking): Rewritten using Time object.
  14111. (sendKeepAlive): Rewritten using Time object.
  14112. (checkHave): Rewritten using Time object.
  14113. * src/SleepCommand.h
  14114. (checkPoint): Changed the type to Time.
  14115. * src/SleepCommand.cc
  14116. (SleepCommand): Removed the initialization of checkPoint.
  14117. (execute): Rewritten using Time object.
  14118. * src/TorrentAutoSaveCommand.h
  14119. (checkPoint): Changed the type to Time.
  14120. * src/TorrentAutoSaveCommand.cc
  14121. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14122. (execute): Rewritten.
  14123. * src/DownloadCommand.h
  14124. (sw): Changed the type to Time.
  14125. * src/DownloadCommand.cc
  14126. (DownloadCommand): Removed the initialization of sw.
  14127. (executeInternal): Rewritten.
  14128. * src/RequestSlot.h
  14129. (dispatchedTime): Changed the type to Time.
  14130. * src/RequestSlot.cc
  14131. (RequestSlot): Removed the call to setDispatchedTime().
  14132. (setDispatchedTime): Rewirtten.
  14133. (isTimeout): Rewritten.
  14134. (getLatencyInMillis): Rewritten.
  14135. * src/TorrentDownloadEngine.h
  14136. (cp): Changed the type to Time[2].
  14137. (startup): Changed the type to Time.
  14138. * src/TorrentDownloadEngine.cc
  14139. (initStatistics): Rewritten.
  14140. (calculateStatistics): Rewritten.
  14141. * src/DownloadEngine.cc
  14142. (run): Rewritten.
  14143. To detect all attempts to connect to the tracker are failed:
  14144. * src/AbstractCommand.cc
  14145. (execute): Increment e->segmentMan->errors if a command aborted.
  14146. * src/SegmentMan.h
  14147. (errors): New variable.
  14148. * src/SegmentMan.cc
  14149. (SegmentMan): Added the initialization of errors.
  14150. (init): Added the initialization of errors.
  14151. * src/TrackerWatcherCommand.cc
  14152. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14153. request was failed.
  14154. To handle snubbed peers:
  14155. * src/PeerChokeCommand.cc
  14156. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14157. (execute): Snubbed peers don't get unchoked.
  14158. * src/PeerInteraction.h
  14159. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14160. * src/PeerInteraction.cc
  14161. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14162. back the requested 16k block in 60 seconds.
  14163. * src/PieceMessage.cc
  14164. (receivedAction): A peer's snubbed state is cleard if it sends
  14165. the requested 16k block in 60 seconds.
  14166. * src/Peer.h
  14167. (snubbing): New variable.
  14168. * src/Peer.cc
  14169. (resetStatus): Added snubbed = false.
  14170. To fix the bug that causes have message is not sent:
  14171. * src/PeerInteractionCommand.cc
  14172. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14173. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14174. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14175. * src/TorrentMan.h
  14176. (HaveEntry): New class.
  14177. (advertisePiece): Rewritten.
  14178. (getAdvertisedPieceIndexes): Rewritten.
  14179. (Haves): Changed the type.
  14180. (getAdvertisedPieceIndexes): Added an argument.
  14181. Others:
  14182. * src/TorrentMan.h
  14183. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14184. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14185. * src/TorrentMan.cc
  14186. (getPeer): Don't check the number of connections here.
  14187. (setupInternal1): Changed peerId.
  14188. * src/PeerInteractionCommand.h
  14189. (KEEP_ALIVE_INTERVAL): New definition.
  14190. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14191. * src/main.cc
  14192. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14193. * src/DownloadEngine.h: Removed unnecessary header includes.
  14194. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14195. To fix the bug that causes segfaults if a tracker returns a zero-length
  14196. list as "peers":
  14197. * src/TrackerUpdateCommand.cc
  14198. (execute): Added a check to see wether the type of peers is Data*.
  14199. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14200. * Release 0.5.0
  14201. To fix compile issue with gcc3:
  14202. * src/CancelMessage.h
  14203. (ID): Renamed as ID_t
  14204. (ID_t): New enum.
  14205. * src/RejectMessage.h
  14206. (ID): Renamed as ID_t
  14207. (ID_t): New enum.
  14208. * src/SuggestPieceMessage.h
  14209. (ID): Renamed as ID_t
  14210. (ID_t): New enum.
  14211. * src/AllowedFastMessage.h
  14212. (ID): Renamed as ID_t
  14213. (ID_t): New enum.
  14214. * src/PortMessage.h
  14215. (ID): Renamed as ID_t
  14216. (ID_t): New enum.
  14217. * src/HaveNoneMessage.h
  14218. (ID): Renamed as ID_t
  14219. (ID_t): New enum.
  14220. * src/KeepAliveMessage.h
  14221. (ID): Renamed as ID_t
  14222. (ID_t): New enum.
  14223. * src/HaveAllMessage.h
  14224. (ID): Renamed as ID_t
  14225. (ID_t): New enum.
  14226. * src/UnchokeMessage.h
  14227. (ID): Renamed as ID_t
  14228. (ID_t): New enum.
  14229. * src/BitfieldMessage.h
  14230. (ID): Renamed as ID_t
  14231. (ID_t): New enum.
  14232. * src/PieceMessage.h
  14233. (ID): Renamed as ID_t
  14234. (ID_t): New enum.
  14235. * src/RequestMessage.h
  14236. (ID): Renamed as ID_t
  14237. (ID_t): New enum.
  14238. * src/NotInterestedMessage.h
  14239. (ID): Renamed as ID_t
  14240. (ID_t): New enum.
  14241. * src/ChokeMessage.h
  14242. (ID): Renamed as ID_t
  14243. (ID_t): New enum.
  14244. * src/InterestedMessage.h
  14245. (ID): Renamed as ID_t
  14246. (ID_t): New enum.
  14247. * src/HaveMessage.h
  14248. (ID): Renamed as ID_t
  14249. (ID_t): New enum.
  14250. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14251. * src/PeerAbstractCommand.h
  14252. (beforeSocketCheck): Removed.
  14253. * src/PeerAbstractCommand.cc
  14254. Modified in order to call executeInternal() even if socket check
  14255. and upload limit check fail.
  14256. * src/PeerInteractionCommand.h
  14257. (keepAlive): Removed.
  14258. (sendKeepAlive): New function.
  14259. (checkHave): New function.
  14260. (beforeSocketCheck): Removed.
  14261. * src/PeerInteractionCommand.cc
  14262. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14263. calls to checkHave() and sendKeepAlive().
  14264. (keepAlive): Renamed to sendKeepAlive().
  14265. (sendKeepAlive): New function.
  14266. (beforeSocketCheck): Removed.
  14267. (checkHave): New function.
  14268. * src/BitfieldMan.cc
  14269. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14270. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14271. 0.
  14272. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14273. * src/TorrentMan.h
  14274. (UsedPieces): Removed.
  14275. (Pieces): New type definition.
  14276. * src/Piece.h: Updated doc.
  14277. * src/Peer.h
  14278. (totalLength): Removed.
  14279. * src/Peer.cc
  14280. (updateLatency): Fixed the latency calculation.
  14281. * src/TorrentMan.cc
  14282. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14283. than or equal to MAX_PEER_LIST_SIZE.
  14284. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14285. then return false.
  14286. (deleteOldErrorPeers): Rewritten.
  14287. (deleteUsedPiece): Fixed the miss use of STL remove.
  14288. * src/PeerInteraction.h
  14289. (Pieces): Removed.
  14290. (deleteTimeoutRequestSlot): Removed.
  14291. (deleteCompletedRequestSlot): Removed.
  14292. (checkRequestSlot): New function.
  14293. * src/PeerInteraction.cc
  14294. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14295. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14296. (checkRequestSlot): New function.
  14297. * src/DownloadEngine.cc
  14298. (run): Clear activeSockets before calling waitData().
  14299. (waitData): Removed a call to activeSockets.clear().
  14300. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14301. To attempt to handle EINTR:
  14302. * src/SocketCore.cc
  14303. (isReadable): Added EINTR handling.
  14304. (isWritable): Added EINTR handling.
  14305. To improve the performance:
  14306. * src/AbstractCommand.cc
  14307. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14308. * src/PeerInteractionCommand.h
  14309. (receiveMessage): Renamed as receiveMessages().
  14310. (receiveMessages): New function.
  14311. * src/PeerInteractionCommand.cc
  14312. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14313. () function. detectMessageFlooding() is moved here.
  14314. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14315. (). The flooding detection for have message is comment out.
  14316. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14317. Util::difftv().
  14318. (receiveMessage): Renamed as receiveMessages().
  14319. (receiveMessages): New function.
  14320. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14321. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14322. * src/SleepCommand.cc
  14323. (execute): Use Util::difftvsec() instead of Util::difftv().
  14324. * src/BitfieldMan.h
  14325. (getNthBitIndex): New function.
  14326. (hasMissingPiece): New function.
  14327. (getAllMissingIndexes): New function.
  14328. * src/BitfieldMan.cc
  14329. (countSetBit): Rewritten.
  14330. (getNthBitIndex): New function.
  14331. (getMissingIndexRandomly): Rewritten.
  14332. (hasMissingPiece): New function.
  14333. (getAllMissingIndexes): New function.
  14334. * src/TorrentMan.cc
  14335. (hasMissingPiece): New function.
  14336. (deleteUsedPiece): Rewritten using STL.
  14337. * src/PeerInteraction.cc
  14338. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14339. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14340. (addRequests): Updated the number of pending requests.
  14341. * src/PeerAbstractCommand.cc
  14342. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14343. (execute): Returns true if TorrentMan::isHalt() is true.
  14344. Corrected the condition of upload limit checking.
  14345. * src/Util.h
  14346. (countBit): New function.
  14347. * src/Util.cc
  14348. (nbits): New variable.
  14349. (countBit): New function.
  14350. * src/DownloadEngine.h
  14351. (SockCmdMap): New type definition.
  14352. (waitData): Added an argument.
  14353. (addSocket): Added an argument.
  14354. (addSocketForReadCheck): Added an argument.
  14355. (addSocketForWriteCheck): Added an argument.
  14356. * src/DownloadEngine.cc
  14357. (run): Executes only commands whose sockets are ready to read or write.
  14358. All commands are executed in every 1 second.
  14359. (waitData): Calls select() again if it returned
  14360. EINTR.
  14361. (addSocket): Saves socket and command object pair to the map.
  14362. (deleteSocket): Deletes socket and command object pair from the map.
  14363. (addSocketForReadCheck): Added an argument.
  14364. (addSocketForWriteCheck): Added an argument.
  14365. * src/DownloadCommand.cc
  14366. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14367. To send "event=stopped" to the tracker when the application finishes:
  14368. * src/PeerChokeCommand.h
  14369. (checkPoint): New variable.
  14370. * src/PeerChokeCommand.cc
  14371. (PeerChokeCommand): Added the initialization of checkPoint.
  14372. (execute): The interval check is now done by checkPoint, not
  14373. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14374. * src/TorrentMan.h
  14375. (halt): New function.
  14376. (hasMissingPiece): New function.
  14377. (isHalt): New function.
  14378. (setHalt): New function.
  14379. * src/TorrentMan.cc
  14380. (TorrentMan): Added the initialization of halt.
  14381. * src/TorrentAutoSaveCommand.h
  14382. (checkPoint): New variable.
  14383. * src/PeerListenCommand.cc
  14384. (execute): Returns true if TorrentMan::isHalt() is true.
  14385. * src/main.cc
  14386. (setSignalHander): Added flags argument.
  14387. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14388. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14389. Removed printDownloadAbortMessage() after torrent downloading loop.
  14390. * src/TorrentAutoSaveCommand.cc
  14391. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14392. (execute): Returns true if TorrentMan::isHalt() is true.
  14393. The interval check is now done by checkPoint, not SleepCommand.
  14394. * src/TrackerWatcherCommand.cc
  14395. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14396. event=stopped.
  14397. * src/TrackerUpdateCommand.cc
  14398. (prepareForRetry): Do not use SleepCommand here.
  14399. (execute): Returns true if TorrentMan::isHalt() is true.
  14400. Others:
  14401. * src/TorrentMan.cc
  14402. (getMissingPieceIndex): Updated log message.
  14403. * src/PeerInteraction.cc
  14404. (createPeerMessag): Updated log message.
  14405. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14406. To add the ability to download several pieces in mix in a command and
  14407. increase the number of request slots according to request-cancel
  14408. latency:
  14409. * src/PeerInteractionCommand.cc
  14410. (executeInternal): The number of messages to be received at a time
  14411. is increased from 10 to 50.
  14412. * src/LogFactory
  14413. (getInstance): Added NullLogger.
  14414. * src/NullLogger.h: New class.
  14415. * src/BitfieldMan.h
  14416. (getMissingIndex): New function.
  14417. * src/BitfieldMan.cc
  14418. (getMissingIndex): New function.
  14419. * src/TorrentMan.h
  14420. (checkOutPiece): New function.
  14421. (getMissingPieceIndex): New function.
  14422. (getMissingFastPieceIndex): New function.
  14423. (getMissingFastPiece): New function.
  14424. * src/TorrentMan.cc
  14425. (updatePiece): Rewritten using STL.
  14426. (syncPiece): Rewritten using STL.
  14427. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14428. checkOutPiece().
  14429. (getMissingPieceIndex): New function.
  14430. (getMissingFastPieceIndex): New function.
  14431. (getMissingFastPiece): New function.
  14432. (checkOutPiece): New function.
  14433. * src/PeerInteraction.h
  14434. (Pieces): New type definition.
  14435. (piece): Removed.
  14436. (pieces): New variable.
  14437. (getNewPieceAndSendInterest): Added the "piece" argument.
  14438. (abortPiece): Added the "piece" argument.
  14439. (abortAllPieces): New function.
  14440. (isInRequestSlot): New function.
  14441. (hasDownloadPiece): Added the "index" argument.
  14442. (setDownloadPiece): Removed.
  14443. (getDownloadPiece): Added the "index" argument.
  14444. (updatePiece): New function.
  14445. (createRequestMessage): Added the "index" argument.
  14446. * src/PeerInteraction.cc
  14447. (onChoked): Rewritten.
  14448. (abortPiece): Rewirtten.
  14449. (abortAllPieces): New function.
  14450. (deleteTimeoutRequestSlot): Rewritten.
  14451. Clarified code a little bit.
  14452. (deleteCompletedRequestSlot): Rewritten.
  14453. (isInRequestSlot): New function.
  14454. (syncPiece): Rewritten.
  14455. (updatePiece): New function.
  14456. (getNewPieceAndSendInterest): Rewritten.
  14457. (addRequests): Rewritten.
  14458. (getDownloadPiece): Rewritten.
  14459. (hasDownloadPiece): Rewritten.
  14460. (createRequestMessage): Added the "index" argument.
  14461. * src/common.h
  14462. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14463. (DIV_FLOOR): New definition.
  14464. * src/PieceMessage.cc
  14465. (receivedAction): Update request-piece latency here.
  14466. * src/RequestSlot.h
  14467. (getLatencyInMillis): New function.
  14468. * src/RequestSlot.cc
  14469. (isTimeout): Rewritten using getLatencyInMillis.
  14470. (getLatencyInMillis): New function.
  14471. * src/Piece.h
  14472. (operator==): New function.
  14473. (getMissingBlockIndex): New function.
  14474. * src/Piece.cc
  14475. (operator==): New function.
  14476. (getMissingBlockIndex): New function.
  14477. * src/Peer.h
  14478. (DEFAULT_LATENCY): New definition.
  14479. (latency): New variable.
  14480. (updateLatency): New function.
  14481. (getLatency): New function.
  14482. * src/Peer.cc
  14483. (resetStatus): Reset latecy.
  14484. (updateLatency): New function.
  14485. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14486. * src/SocketCore.cc
  14487. (isReadable): Added secure to the condition.
  14488. * src/HttpConnection.cc
  14489. (receiveResponse): Fixed a bug that causes no response header
  14490. exception.
  14491. * src/Peer.h
  14492. (getFastSet): Fixed the return value type.
  14493. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14494. To remove a wait from download loop:
  14495. * src/DownloadEngine.cc
  14496. (run): Comment out shortSleep.
  14497. To rewrite the message handling:
  14498. * src/SimplePeerMessage.h: New class.
  14499. * src/SimplePeerMessage.cc: New class.
  14500. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14501. (msg): New variable.
  14502. (create): New function.
  14503. (send): Removed.
  14504. (getMessage): New function.
  14505. (getMessageLength): New function.
  14506. * src/CancelMessage.cc
  14507. (create): New function.
  14508. (receivedAction): Replaced deleteRequestMessageInQueue with
  14509. rejectPieceMessageInQueue.
  14510. (send): Removed.
  14511. (getMessage): New function.
  14512. (getMessageLength): New function.
  14513. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14514. (msg): New variable.
  14515. (msgLength): New variable.
  14516. (~BitfieldMessage): Deleted msg.
  14517. (send): Removed.
  14518. (getMessage): New function.
  14519. (getMessageLength): New function.
  14520. * src/BitfieldMessage.cc
  14521. (create): New function.
  14522. (send): Removed.
  14523. (getMessage): New function.
  14524. (getMessageLength): New function.
  14525. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14526. (msg): New variable.
  14527. (sendPredicate): New function.
  14528. (onSendComplete): New function.
  14529. (send): Removed.
  14530. (getMessage): New function.
  14531. (getMessageLength): New function.
  14532. (create): New function.
  14533. * src/ChokeMessage.cc
  14534. (create): New function.
  14535. (send): Removed.
  14536. (sendPredicate): New function.
  14537. (getMessage): New function.
  14538. (getMessageLength): New function.
  14539. (onSendComplete): New function.
  14540. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14541. (msg): New variable.
  14542. (send): Removed.
  14543. (getMessage): New function.
  14544. (getMessageLength): New function.
  14545. * src/KeepAliveMessage.cc
  14546. (send): Removed.
  14547. (getMessage): New function.
  14548. (getMessageLength): New function.
  14549. * src/PortMessage.h
  14550. (create): New function.
  14551. (receivedAction): Updated log message.
  14552. * src/PortMessage.cc: New file.
  14553. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14554. (msg): New variable.
  14555. (sendPredicate): New function.
  14556. (onSendComplete): New function.
  14557. (create): New function.
  14558. (send): Removed.
  14559. (getMessage): New function.
  14560. (getMessageLength): New function.
  14561. * src/UnchokeMessage.cc
  14562. (create): New function.
  14563. (send): Removed.
  14564. (sendPredicate): New function.
  14565. (getMessage): New function.
  14566. (getMessageLength): New function.
  14567. (onSendComplete): New function.
  14568. * src/PieceMessage.h
  14569. (leftPieceDataLength): Removed.
  14570. (leftDataLength): New variable.
  14571. (headerSend): New variable.
  14572. (pendingCount): New variable.
  14573. (msgHeader): New variable.
  14574. (sendPieceData): New function.
  14575. (incrementPendingCount): New function.
  14576. (isPendingCountMax): New function.
  14577. (create): New function.
  14578. (getMessageHeader): New function.
  14579. (getMessageHeaderLength): New function.
  14580. * src/PieceMessage.cc
  14581. (create): New function.
  14582. (getMessageHeader): New function.
  14583. (getMessageHeaderLength): New function.
  14584. (send): Rewritten.
  14585. (sendPieceData): New function.
  14586. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14587. (msg): New variable.
  14588. (create): New function.
  14589. (getMessage): New function.
  14590. (getMessageLength): New function.
  14591. * src/HaveMessage.cc
  14592. (create): New function.
  14593. (send): Removed.
  14594. (sendPieceData): New function.
  14595. (getMessage): New function.
  14596. (getMessageLength): New function.
  14597. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14598. (msg): New variable.
  14599. (create): New function.
  14600. (send): Removed.
  14601. (getMessage): New function.
  14602. (getMessageLength): New function.
  14603. * src/RequestMessage.cc
  14604. (create): New function.
  14605. (receivedAction): Added the handling of fast extension.
  14606. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14607. (send): Removed.
  14608. (getMessage): New function.
  14609. (getMessageLength): New function.
  14610. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14611. (msg): New variable.
  14612. (sendPredicate): New function.
  14613. (onSendComplete): New function.
  14614. (create): New function.
  14615. (getMessage): New function.
  14616. (getMessageLength): New function.
  14617. * src/InterestedMessage.cc
  14618. (create): New function.
  14619. (send): Removed.
  14620. (sendPieceData): New function.
  14621. (getMessage): New function.
  14622. (getMessageLength): New function.
  14623. (onSendComplete): New function.
  14624. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14625. (msg): New variable.
  14626. (sendPieceData): New function.
  14627. (onSendComplete): New function.
  14628. (create): New function.
  14629. (send): Removed.
  14630. (getMessage): New function.
  14631. (getMessageLength): New function.
  14632. * src/NotInterestedMessage.cc
  14633. (create): New function.
  14634. (send): Removed.
  14635. (sendPredicate): New function.
  14636. (getMessage): New function.
  14637. (getMessageLength): New function.
  14638. (onSendComplete): New function.
  14639. * src/AllowedFastMessage.h: New class.
  14640. * src/AllowedFastMessage.cc: New class.
  14641. * src/RejectMessage.h: New class.
  14642. * src/RejectMessage.cc: New class.
  14643. * src/SuggestPieceMessage.h: New class.
  14644. * src/SuggestPieceMessage.cc: New class.
  14645. * src/HaveAllMessage.h: New class.
  14646. * src/HaveAllMessage.cc: New class.
  14647. * src/HaveNoneMessage.h: New class.
  14648. * src/HaveNoneMessage.cc: New class.
  14649. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14650. (msg): New variable.
  14651. (reserved): New variable.
  14652. (create): New function.
  14653. (getId): New function.
  14654. (receivedAction): New function.
  14655. (getMessage): New function.
  14656. (getMessageLength): New function.
  14657. (isFastExtensionSupported): New function.
  14658. * src/HandshakeMessage.cc
  14659. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14660. (create): New function.
  14661. (getMessage): New function.
  14662. (getMessageLength): New function.
  14663. (toString): Added the output of reserved field.
  14664. (check): Added const qualifier.
  14665. (isFastExtensionSupported): New function.
  14666. * src/PeerMessageUtil.h
  14667. (createChokeMessage): Removed.
  14668. (createUnchokeMessage): Removed.
  14669. (createInterestedMessage): Removed.
  14670. (createNotInterestedMessage): Removed.
  14671. (createHaveMessage): Removed.
  14672. (createBitfieldMessage): Removed.
  14673. (createRequestMessage): Removed.
  14674. (createCancelMessage): Removed.
  14675. (createPieceMessage): Removed.
  14676. (createPortMessage): Removed.
  14677. (createChokeMessage): Removed.
  14678. (createUnchokeMessage): Removed.
  14679. (createInterestedMessage): Removed.
  14680. (createNotInterestedMessage): Removed.
  14681. (createHaveMessage): Removed.
  14682. (createBitfieldMessage): Removed.
  14683. (createRequestMessage): Removed.
  14684. (createCancelMessage): Removed.
  14685. (createPieceMessage): Removed.
  14686. (createKeepAliveMessage): Removed.
  14687. (createHandshakeMessage): Removed.
  14688. (setIntParam): New function.
  14689. (createPeerMessageString): New function.
  14690. * src/PeerMessageUtil.cc
  14691. (createChokeMessage): Removed.
  14692. (createUnchokeMessage): Removed.
  14693. (createInterestedMessage): Removed.
  14694. (createNotInterestedMessage): Removed.
  14695. (createHaveMessage): Removed.
  14696. (createBitfieldMessage): Removed.
  14697. (createRequestMessage): Removed.
  14698. (createCancelMessage): Removed.
  14699. (createPieceMessage): Removed.
  14700. (createPortMessage): Removed.
  14701. (createRequestMessage): Removed.
  14702. (createCancelMessage): Removed.
  14703. (createPieceMessage): Removed.
  14704. (createHaveMessage): Removed.
  14705. (createChokeMessage): Removed.
  14706. (createUnchokeMessage): Removed.
  14707. (createInterestedMessage): Removed.
  14708. (createNotInterestedMessage): Removed.
  14709. (createBitfieldMessage): Removed.
  14710. (createKeepAliveMessage): Removed.
  14711. (createHandshakeMessage): Removed.
  14712. (setIntParam): New function.
  14713. (createPeerMessageString): New function.
  14714. * src/PeerConnection.h
  14715. (peer): Removed.
  14716. (torrentMan): Removed.
  14717. (createNLengthMessage): Removed.
  14718. (setIntParam): Removed.
  14719. (writeOutgoingMessageLog): Removed all overloaded functions.
  14720. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14721. (sendMessage): New function.
  14722. (sendHandshake): Removed.
  14723. (sendKeepAlive): Removed.
  14724. (sendChoke): Removed.
  14725. (sendUnchoke): Removed.
  14726. (sendInterested): Removed.
  14727. (sendNotInterested): Removed.
  14728. (sendHave): Removed.
  14729. (sendBitfield): Removed.
  14730. (sendRequest): Removed.
  14731. (sendPiece): Removed.
  14732. (sendPieceHeader): Removed.
  14733. (sendPieceData): Removed.
  14734. (sendCancel): Removed.
  14735. (getPeer): Removed.
  14736. * src/PeerConnection.cc
  14737. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14738. (sendHandshake): Removed.
  14739. (sendKeepAlive): Removed.
  14740. (createNLengthMessage): Removed.
  14741. (setIntParam): Removed.
  14742. (writeOutgoingMessageLog): Removed all overloaded functions.
  14743. (sendChoke): Removed.
  14744. (sendUnchoke): Removed.
  14745. (sendInterested): Removed.
  14746. (sendNotInterested): Removed.
  14747. (sendHave): Removed.
  14748. (sendBitfield): Removed.
  14749. (sendRequest): Removed.
  14750. (sendPiece): Removed.
  14751. (sendPieceHeader): Removed.
  14752. (sendPieceData): Removed.
  14753. (sendMessage): New function.
  14754. (sendCancel): Removed.
  14755. * src/PeerInteractionCommand.cc
  14756. (PeerInteractionCommand): Call setUploadLimit.
  14757. (executeInternal): Call setUploadLimit.
  14758. Added the handling of "inProgress" state of handshake message.
  14759. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14760. sendNow().
  14761. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14762. sendNow().
  14763. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14764. * src/TorrentMan.h
  14765. (PEER_ID_LENGTH): New definition.
  14766. (hasAllPieces): New function.
  14767. * src/TorrentMan.cc
  14768. (getMissingPiece): Added the handling of fast extension.
  14769. (cancelPiece): Call updatePiece().
  14770. (hasAllPieces): New function.
  14771. * src/PeerInteraction.h
  14772. (fastSet): New variable.
  14773. (getNewPieceAndSendInterest): Changed the return type to void.
  14774. (send): Renamed as sendMessages.
  14775. (deleteAllRequestSlot): Removed.
  14776. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14777. (cancelAllRequest): Removed all overloaded functions.
  14778. (deleteAllRequestSlot): Removed.
  14779. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14780. (rejectPieceMessageInQueue): New function.
  14781. (rejectAllPieceMessageInQueue): New function.
  14782. (onChoked): New function.
  14783. (isSendingMessageInProgress): New function.
  14784. (getCorrespondingRequestSlot): Changed its arguments.
  14785. (isInFastSet): New function.
  14786. (addFastSetIndex): New function.
  14787. (addRequests): New function.
  14788. (sendNow): Removed.
  14789. (trySendNow): Removed.
  14790. (sendBitfield): New function.
  14791. (sendAllowdFast): New function.
  14792. (createHaveAllMessage): New function.
  14793. (createHaveNoneMessage): New function.
  14794. (createRejectMessage): New function.
  14795. (createAllowedFastMessage): New function.
  14796. * src/PeerInteraction.cc
  14797. (send): Renamed as sendMessages.
  14798. (sendMessages): New function.
  14799. (MsgPushBack): New class.
  14800. (isSendingMessageInProgress): New function.
  14801. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14802. (rejectAllPieceMessageInQueue): New function.
  14803. Added the handling of fast extension.
  14804. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14805. (rejectPieceMessageInQueue): New function.
  14806. Added the handling of fast extension.
  14807. (deleteRequestSlot): Replaced for loop with std::find.
  14808. (onChoked): New function.
  14809. (deleteAllRequestSlot): Removed.
  14810. (abortPiece): Rewirtten.
  14811. (deleteTimeoutRequestSlot): Updated log messages.
  14812. (getCorrespondingRequestSlot): Changed its arguments.
  14813. (cancelAllRequest): Removed all overloaded functions.
  14814. (receiveHandshake): Added the check to see whether an incoming peer
  14815. supports fast extension.
  14816. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14817. PeerMessageUtil.
  14818. (createPeerMessage): Use create() of each message class instead of
  14819. PeerMessageUtil.
  14820. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14821. AllowedFastMessage were added.
  14822. (getNewPieceAndSendInterest): Changed its return value type to void.
  14823. Added the handling of fast extension.
  14824. (addRequests): New function.
  14825. (sendNow): Removed.
  14826. (sendHandshake): Rewritten.
  14827. (trySendNow): Removed.
  14828. (sendBitfield): New function.
  14829. (sendAllowdFast): New function.
  14830. (isInFastSet): New function.
  14831. (addFastSetIndex): New function.
  14832. (createRequestMessage): Use RequestMessage::create instead of
  14833. PeerMessageUtil.
  14834. (createCancelMessage): Use CancelMessage::create instead of
  14835. PeerMessageUtil.
  14836. (createPieceMessage): Use PieceMessage::create instead of
  14837. PeerMessageUtil.
  14838. (createHaveMessage): Use HaveMessage::create instead of
  14839. PeerMessageUtil.
  14840. (createChokeMessage): Use ChokeMessage::create instead of
  14841. PeerMessageUtil.
  14842. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14843. PeerMessageUtil.
  14844. (createInterestedMessage): Use InterestedMessage::create instead of
  14845. PeerMessageUtil.
  14846. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14847. of PeerMessageUtil.
  14848. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14849. PeerMessageUtil.
  14850. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14851. PeerMessageUtil.
  14852. (createHaveAllMessage): New function.
  14853. (createHaveNoneMessage): New function.
  14854. (createRejectMessage): New function.
  14855. (createAllowedFastMessage: New function.
  14856. * src/Util.h
  14857. (sha1Sum): New function.
  14858. (computeFastSet): New function.
  14859. * src/Util.cc
  14860. (sha1Sum): New function.
  14861. (computeFastSet): New function.
  14862. * src/Peer.h
  14863. (fastExtensionEnabled): New variable.
  14864. (fastSet): New variable.
  14865. (setAllBitfield): New function.
  14866. (setFastExtensionEnabled): New function.
  14867. (isFastExtensionEnabled): New function.
  14868. (addFastSetIndex): New function.
  14869. (getFastSet): New function.
  14870. (isInFastSet): New function.
  14871. (countFastSet): New function.
  14872. * src/Peer.cc
  14873. (isInFastSet): New function.
  14874. (addFastSetIndex): New function.
  14875. (setAllBitfield): New function.
  14876. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14877. sockets.
  14878. * src/PeerAbstractCommand.cc
  14879. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14880. and uploadLimit.
  14881. (execute): Changed the procedure of checking sockets. The upload speed
  14882. checking were added.
  14883. (setUploadLimit): New function.
  14884. (setUploadLimitCheck): New function.
  14885. * src/PeerAbstractCommand.h
  14886. (setUploadLimit): New function.
  14887. (setUploadLimitCheck): New function.
  14888. (uploadLimit): New variable.
  14889. (uploadLimitCheck): New variable.
  14890. To contact a tracker regularly:
  14891. * src/TrackerWatcherCommand.h (interval): New variable.
  14892. (checkPoint): New variable.
  14893. (TrackerWatcherCommand): Added interval argument.
  14894. * src/TrackerWatcherCommand.cc
  14895. (TrackerWatcherCommand): Initialized checkPoint.
  14896. (execute): Now a tracker is contacted in every specified period.
  14897. If peer list is not needed, send request with numwant=0.
  14898. * src/TrackerUpdateCommand.cc
  14899. (execute): Updated log messages.
  14900. * src/DownloadEngine.cc
  14901. (~DownloadEngine): Removed two asserts.
  14902. (waitData): Uncommented wfds. May be a bug fix.
  14903. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14904. * src/PeerInteractionCommand.h
  14905. (checkInactiveConnection): Removed.
  14906. * src/PeerInteractionCommand.cc
  14907. (executeInternal): Removed following function calls:
  14908. detectMessageFlooding(), checkLongTimePeerChoking and
  14909. checkInactiveConnection().
  14910. (checkInactiveConnection): Removed.
  14911. (detectMessageFlooding): Removed function call to
  14912. checkInactiveConnection().
  14913. * src/PeerMessageUtil.h
  14914. (createChokeMessage): New function. Overload.
  14915. (createUnchokeMessage): New function. Overload.
  14916. (createInterestedMessage): New function. Overload.
  14917. (createNotInterestedMessage): New function. Overload.
  14918. (createHaveMessage): New function. Overload.
  14919. (createBitfieldMessage): New function. Overload.
  14920. (createRequestMessage): New function. Overload.
  14921. (createCancelMessage): New function. Overload.
  14922. (createPieceMessage): New function. Overload.
  14923. (createKeepAliveMessage): New function. Overload.
  14924. * src/PeerMessageUtil.cc
  14925. (createChokeMessage): New function. Overload.
  14926. (createUnchokeMessage): New function. Overload.
  14927. (createInterestedMessage): New function. Overload.
  14928. (createNotInterestedMessage): New function. Overload.
  14929. (createHaveMessage): New function. Overload.
  14930. (createBitfieldMessage): New function. Overload.
  14931. (createRequestMessage): New function. Overload.
  14932. (createCancelMessage): New function. Overload.
  14933. (createPieceMessage): New function. Overload.
  14934. (createKeepAliveMessage): New function. Overload.
  14935. * src/SendMessageQueue.cc
  14936. (createRequestMessage): Use PeerMessageUtil.
  14937. (createCancelMessage): Use PeerMessageUtil.
  14938. (createPieceMessage): Use PeerMessageUtil.
  14939. (createHaveMessage): Use PeerMessageUtil.
  14940. (createChokeMessage): Use PeerMessageUtil.
  14941. (createUnchokeMessage): Use PeerMessageUtil.
  14942. (createInterestedMessage): Use PeerMessageUtil.
  14943. (createNotInterestedMessage): Use PeerMessageUtil.
  14944. (createBitfieldMessage): Use PeerMessageUtil.
  14945. (createKeepAliveMessage): Use PeerMessageUtil.
  14946. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14947. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14948. * src/PeerInteraction.h: New class.
  14949. * src/PeerInteraction.cc: New class.
  14950. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14951. Each peer message has its own class.
  14952. * src/PendingMessages.h: Removed.
  14953. * src/PendingMessages.cc: Removed. The sending process was moved to
  14954. each message class.
  14955. * src/RequestSlotMan.h: Removed.
  14956. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14957. SendMessageQueue.
  14958. * src/RequestMessage.h: New class.
  14959. * src/RequestMessage.cc: New class.
  14960. * src/CancelMessage.h: New class.
  14961. * src/CancelMessage.cc: New class.
  14962. * src/BitfieldMessage.h: New class.
  14963. * src/BitfieldMessage.cc: New class.
  14964. * src/ChokeMessage.h: New class.
  14965. * src/ChokeMessage.cc: New class.
  14966. * src/KeepAliveMessage.h: New class.
  14967. * src/KeepAliveMessage.cc: New class.
  14968. * src/PortMessage.h: New class.
  14969. * src/UnchokeMessage.h: New class.
  14970. * src/UnchokeMessage.cc: New class.
  14971. * src/PieceMessage.h: New class.
  14972. * src/PieceMessage.cc: New class.
  14973. * src/HaveMessage.h: New class.
  14974. * src/HaveMessage.cc: New class.
  14975. * src/BitfieldMessage.h: New class.
  14976. * src/BitfieldMessage.cc: New class.
  14977. * src/NotInterestedMessage.h: New class.
  14978. * src/NotInterestedMessage.cc: New class.
  14979. * src/InterestedMessage.h: New class.
  14980. * src/InterestedMessage.cc: New class.
  14981. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14982. (getSendMessageQueue): New function.
  14983. (setSendMessageQueue): New function.
  14984. * src/HandshakeMessage.cc: New class.
  14985. * src/PeerConnection.h (receiveMessage): Changed return value and
  14986. arguments.
  14987. (receiveHandshake): Changed return value and arguments.
  14988. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14989. here.
  14990. (receiveHandshake): Do not create handshake class here.
  14991. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14992. (piece): Removed.
  14993. (syncPiece): Removed.
  14994. (sendInterest): Removed.
  14995. (sendMessages): Removed.
  14996. (createRequestPendingMessage): Removed.
  14997. (checkPieceHash): Removed.
  14998. (erasePieceOnDisk): Removed.
  14999. (getNewPieceAndSendInterest): Removed.
  15000. (onGotNewPice): Removed.
  15001. (onGotWrongPiece): Removed.
  15002. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15003. Removed peerConnection, piece.
  15004. (~PeerInteractionCommand): Removed peerConnection.
  15005. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15006. (syncPiece): Moved to SendMessageQueue.
  15007. (decideChoking): Removed PendingMessage.
  15008. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15009. The action after receiving peer message was moved to each message
  15010. class.
  15011. (onGotNewPice): Moved to SendMessageQueue.
  15012. (onGotWrongPiece): Moved to SendMessageQueue.
  15013. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15014. (sendInterest): Moved to SendMessageQueue.
  15015. (createRequestPendingMessage): Removed.
  15016. (sendMessages): Moved to SendMessageQueue.
  15017. (onAbort): Use SendMessageQueue::abortPiece()
  15018. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15019. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15020. (checkPieceHash): Moved to SendMessageQueue.
  15021. (erasePieceOnDisk): Moved to SendMessageQueue.
  15022. * src/PeerMessageUtil.h
  15023. (createBitfieldMessage): Removed.
  15024. (createHaveMessage): Changed return value and arguments.
  15025. (createBitfieldMessage): Changed return value and arguments.
  15026. (createRequestCancelMessage): Removed.
  15027. (createPieceMessage): Changed return value and arguments.
  15028. (getShortIntParam): New function.
  15029. (checkIndex): Changed arguments.
  15030. (checkBegin): Changed arguments.
  15031. (checkLength): Changed arguments.
  15032. (checkPieceOffset): Removed.
  15033. (checkRange): New function.
  15034. (checkBitfield): Changed arguments.
  15035. (createPeerMessage): Removed.
  15036. (checkIntegrity): Removed.
  15037. (createHandshakeMessage): Changed arguments.
  15038. (createChokeMessage): New function.
  15039. (createUnchokeMessage): New function.
  15040. (createInterestedMessage): New function.
  15041. (createNotInterestedMessage): New function.
  15042. (createRequestMessage): New function.
  15043. (createCancelMessage): New function.
  15044. (createPortMessage): New function.
  15045. * src/PeerMessageUtil.cc
  15046. (createBitfieldMessage): Removed.
  15047. (createHaveMessage): Changed return value and arguments.
  15048. (createBitfieldMessage): Changed return value and arguments.
  15049. (createRequestCancelMessage): Removed.
  15050. (createPieceMessage): Changed return value and arguments.
  15051. (getShortIntParam): New function.
  15052. (checkIndex): Changed arguments.
  15053. (checkBegin): Changed arguments.
  15054. (checkLength): Changed arguments.
  15055. (checkPieceOffset): Removed.
  15056. (checkRange): New function.
  15057. (checkBitfield): Changed arguments.
  15058. (createPeerMessage): Removed.
  15059. (checkIntegrity): Removed.
  15060. (createHandshakeMessage): Changed arguments.
  15061. (createChokeMessage): New function.
  15062. (createUnchokeMessage): New function.
  15063. (createInterestedMessage): New function.
  15064. (createNotInterestedMessage): New function.
  15065. (createRequestMessage): New function.
  15066. (createCancelMessage): New function.
  15067. (createPortMessage): New function.
  15068. * src/PeerMessage.h
  15069. (id): Removed.
  15070. (index): Removed.
  15071. (begin): Removed.
  15072. (length): Removed.
  15073. (bitfield): Removed.
  15074. (bitfieldLength): Removed.
  15075. (block): Removed.
  15076. (blockLength): Removed.
  15077. (inProgress): New variable.
  15078. (cuid): New variable.
  15079. (peer): New variable.
  15080. (sendMessageQueue): New variable.
  15081. (logger): New variable.
  15082. (setBitfield): Removed.
  15083. (getBitfield): Removed.
  15084. (setBlock): Removed.
  15085. (getBlock): Removed.
  15086. (getBitfieldLength): Removed.
  15087. (getBlockLength): Removed.
  15088. (isInProgress): New function.
  15089. (toString): Made pure virtual.
  15090. (check): New function.
  15091. (send): New function.
  15092. (receivedAction): New function.
  15093. (getId): Made pure virtual.
  15094. (setId): Removed.
  15095. (getIndex): Removed.
  15096. (setIndex): Removed.
  15097. (getBegin): Removed.
  15098. (setBegin): Removed.
  15099. (getLength): Removed.
  15100. (setLength): Removed.
  15101. (getCuid): New function.
  15102. (setCuid): New function.
  15103. (getPeer): New function.
  15104. (setPeer): New function.
  15105. (getSendMessageQueue): New function.
  15106. (setSendMessageQueue): New function.
  15107. (ID): Removed.
  15108. * src/PeerMessage.cc
  15109. (setBitfield): Removed.
  15110. (setBlock): Removed.
  15111. (toString): Removed.
  15112. * src/TorrentMan.h
  15113. (getPieceLength): New function.
  15114. (getPieceLength): New function.
  15115. * src/SendMessageQueue.h
  15116. (REQUEST_TIME_OUT): New definition.
  15117. (RequestSlots): New definition.
  15118. (MessageQueue): New definition.
  15119. (requestSlotMan): Removed.
  15120. (pendingMessages): Removed.
  15121. (requestSlots): New variable.
  15122. (messageQueue): New variable.
  15123. (torrentMan): New variable.
  15124. (peerConnection): New variable.
  15125. (peer): New variable.
  15126. (piece): New variable.
  15127. (getNewPieceAndSendInterest): New function.
  15128. (createPeerMessage): New function.
  15129. (createHandshakeMessage): New function.
  15130. (send): Made private.
  15131. (setPeerMessageCommonProperty): New function.
  15132. (deleteAllRequestSlot): New function.
  15133. (deleteRequestMessageInQueue): New function.
  15134. (cancelAllRequest): Made private.
  15135. (cancelAllRequest): Made private.
  15136. (countRequestSlot): Made private.
  15137. (addPendingMessage): Removed.
  15138. (deletePendingPieceMessage): Removed.
  15139. (deletePendingRequestMessage): Removed.
  15140. (addMessage): New function.
  15141. (deletePieceMessageInQueue): New function.
  15142. (deleteTimeoutRequestSlot): Changed argument.
  15143. (deleteCompletedRequestSlot): Changed argument.
  15144. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15145. (getCorrespondingRequestSlot): New function.
  15146. (countPendingMessage): Removed.
  15147. (countMessageInQueue): New function.
  15148. (getTorrentMan): New function.
  15149. (getPeerConnection): New function.
  15150. (hasDownloadPiece): New function.
  15151. (getDownloadPiece): New function.
  15152. (setDownloadPiece): New function.
  15153. (syncPiece): New function.
  15154. (sendMessages): New function.
  15155. (sendNow): New function.
  15156. (trySendNow): New function.
  15157. (abortPiece): New function.
  15158. (sendHandshake): New function.
  15159. (receiveMessage): New function.
  15160. (receiveHandshake): New function.
  15161. (createRequestMessage): New function.
  15162. (createCancelMessage): New function.
  15163. (createPieceMessage): New function.
  15164. (createHaveMessage): New function.
  15165. (createChokeMessage): New function.
  15166. (createUnchokeMessage): New function.
  15167. (createInterestedMessage): New function.
  15168. (createNotInterestedMessage): New function.
  15169. (createBitfieldMessage): New function.
  15170. (createKeepAliveMessage): New function.
  15171. * src/SendMessageQueue.cc
  15172. (SendMessageQueue): Removed requestSlotMan.
  15173. Instantiated peerConnection here.
  15174. (~SendMessageQueue): Removed requestSlotMan.
  15175. Added deletion of peerConnection and the contents of messageQueue.
  15176. (send): Updated according to the change of messageQueue.
  15177. (addPendingMessage): Renamed to addMessage.
  15178. (addMessage): New function.
  15179. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15180. (deletePieceMessageInQueue): New function.
  15181. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15182. (deleteRequestMessageInQueue): New function.
  15183. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15184. here.
  15185. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15186. (...) was moved here.
  15187. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15188. moved here.
  15189. (deleteCompletedRequestSlot):
  15190. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15191. (getCorrespondingRequestSlot):
  15192. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15193. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15194. (countPendingMessage): Renamed to countMessageInQueue.
  15195. (countMessageInQueue): New function.
  15196. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15197. (receiveHandshake): New function.
  15198. (createHandshakeMessage): New function.
  15199. (receiveMessage): New function.
  15200. (createPeerMessage): New function.
  15201. (syncPiece): New function.
  15202. (getNewPieceAndSendInterest): New function.
  15203. (sendMessages): New function.
  15204. (sendNow): New function.
  15205. (trySendNow): New function.
  15206. (sendHandshake): New function.
  15207. (abortPiece): New function.
  15208. (getDownloadPiece): New function.
  15209. (getPeerMessageCommonProperty): New function.
  15210. (createRequestMessage): New function.
  15211. (createCancelMessage): New function.
  15212. (createPieceMessage): New function.
  15213. (createHaveMessage): New function.
  15214. (createChokeMessage): New function.
  15215. (createUnchokeMessage): New function.
  15216. (createInterestedMessage): New function.
  15217. (createNotInterestedMessage): New function.
  15218. (createBitfieldMessage): New function.
  15219. (createKeepAliveMessage): New function.
  15220. To add simple Content-Disposition support:
  15221. * src/HttpResponseCommand.h (determinFilename): New function.
  15222. * src/HttpResponseCommand.cc (executeInternal):
  15223. Use determinFilename(headers) instead of req->getFile() when comparing
  15224. filename.
  15225. (determinFilename): New function.
  15226. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15227. req->getFile().
  15228. (handleOtherEncoding): Use determinFilename(headers) instead of
  15229. req->getFile().
  15230. * src/Util.h (getContentDispositionFilename): New function.
  15231. * src/Util.cc (getContentDispositionFilename): New function.
  15232. * src/LogFactory.h (release): New function.
  15233. * src/LogFactory.cc (release): New function.
  15234. To fix a bug that causes out-of-bound exception when HTTP status
  15235. line is wrong:
  15236. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15237. size.
  15238. * src/common.h (Deleter): New class.
  15239. * src/SegmentMan.cc
  15240. (~SegmentMan): Added deletion of splitter and diskWriter.
  15241. * src/DownloadEngine.h
  15242. (Commands): Use deque.
  15243. (clearQueue): New function.
  15244. * src/DownloadEngine.cc
  15245. (~DownloadEngine): Added deletion of segmentMan.
  15246. (cleanQueue): New function.
  15247. * src/TorrentDownloadEngine.h
  15248. (TorrentDownloadEngine): The implementation was moved to
  15249. TorrentDownloadEngine.cc.
  15250. (~TorrentDownloadEngine): The implementation was moved to
  15251. TorrentDownloadEngine.cc.
  15252. * src/TorrentDownloadEngine.cc
  15253. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15254. * src/main.cc
  15255. (clearRequest): Removed.
  15256. (handler): Added deletion of e.
  15257. (torrentHandler): Added deletion of te.
  15258. (main): Do not share splitter.
  15259. Use Deleter instead of clearRequest.
  15260. Deletion of classes were updated.
  15261. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15262. * src/main.cc (main): Fixed typo.
  15263. * src/message.h: Fixed typo.
  15264. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15265. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15266. To add --select-file command-line option:
  15267. * src/Util.cc
  15268. (unfoldRange): New function.
  15269. (getNum): New function.
  15270. (unfoldSubRange): New function
  15271. * src/main.cc
  15272. (showUsage): Added help message.
  15273. (main): Added --select-file command-line option. Updated the layout of
  15274. file listing.
  15275. * src/common.h
  15276. (Integers): New definition.
  15277. * src/SocketCore.cc
  15278. (writeData): Removed timeout argument.
  15279. (readData): Removed timeout argument.
  15280. (peekData): Removed timeout argument.
  15281. * src/Socket.cc
  15282. (writeData): Removed timeout argument.
  15283. (readData): Removed timeout argument.
  15284. (peekData): Removed timeout argument.
  15285. * Release 0.4.1
  15286. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15287. To deploy upload rate based choking algorithm:
  15288. * src/PeerInteractionCommand.cc
  15289. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15290. peer currently used.
  15291. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15292. download completes. Simplified.
  15293. (receiveMessage): Updated.
  15294. * src/TorrentMan.h
  15295. (activePeers): New variable.
  15296. (addActivePeer): New function.
  15297. (getActivePeers): New function.
  15298. (deleteActivePeer): New function.
  15299. * src/TorrentMan.cc
  15300. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15301. * src/PeerAbstractCommand.cc
  15302. (onAbort): Use peer->resetStatus().
  15303. * src/main.cc
  15304. (PeerChokeCommand.h): Included.
  15305. (main): Added the instance of ChokingCommand to the command queue.
  15306. * src/Peer.h
  15307. (amChoking): Renamed from amChocking
  15308. (chokingRequired): New variable.
  15309. (optUnchoking): New variable.
  15310. (deltaUpload): New variable.
  15311. (deltaDownload): New variable.
  15312. (addDeltaUpload): New function.
  15313. (resetDeltaUpload): New function.
  15314. (addDeltaDownload): New function.
  15315. (resetDeltaDownload): New function.
  15316. (addPeerUpload): Added a call to addDeltaUpload.
  15317. (addPeerDownload): Added a call to addDeltaDownload.
  15318. * src/Peer.cc
  15319. (shouldBeChoking): Renamed from shouldChoke.
  15320. (resetStatus): New function.
  15321. * src/PeerChokeCommand.h: New class.
  15322. * src/PeerChokeCommand.cc: New class.
  15323. To add lazy upload speed limiter:
  15324. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15325. statistics calculation to TorrentDownloadEngine.
  15326. * src/TorrentConsoleDownloadEngine.cc
  15327. (sendStatistics): Renamed from printStatistics.
  15328. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15329. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15330. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15331. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15332. calculation.
  15333. (sendStatistics): New function as pure virtual function.
  15334. (getUploadSpeed): New function.
  15335. * src/TorrentDownloadEngine.cc
  15336. (initStatistics): New function.
  15337. (calculateSpeed): New function.
  15338. (calculateStatistics): New function.
  15339. * src/SendMessageQueue.h
  15340. (uploadLength): New variable.
  15341. (send): Added an argument.
  15342. (setUploadLimit): New function.
  15343. (getUploadLimit): New function.
  15344. * src/SendMessageQueue.cc
  15345. (send): Added upload speed limiter.
  15346. * src/prefs.h
  15347. (PREF_UPLOAD_LIMIT): New definition.
  15348. * src/PeerInteractionCommand.cc
  15349. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15350. * src/main.cc
  15351. (main): Added --upload-limit option
  15352. For bug fixes:
  15353. * src/main.cc
  15354. (showUsage): Corrected --listen-port help
  15355. Other changes:
  15356. * src/TorrentMan.cc
  15357. (getPeer): Return nullPeer if connection is grather than
  15358. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15359. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15360. To add some useful information to the exception message:
  15361. * src/SocketCore.cc : Updated messages.
  15362. * src/SegmentMan.cc :
  15363. * src/TorrentMan.cc : Updated messages.
  15364. * src/MultiDiskWriter.cc : Updated messages.
  15365. * src/Util.cc : Updated messages.
  15366. * src/AbstractDiskWriter.cc : Updated messages.
  15367. * src/PreAllocationDiskWriter.cc : Updated messages.
  15368. * src/message.cc : Added new messages. Updated some messages.
  15369. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15370. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15371. Updated threshold from 30 to 15.
  15372. * src/AbstractDiskWriter.h (filename): New variable.
  15373. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15374. (createFile): Assigned filename.
  15375. * src/main.cc: Updated the help message for http-auth-scheme.
  15376. * Release 0.4.0
  15377. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15378. To add TrackerUpdateCommand with which replaces
  15379. CompactTrackerResponseProcessor:
  15380. * src/TrackerWatcherCommand.h (req): Removed.
  15381. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15382. if the number of peer connections are less than 30.
  15383. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15384. * src/SegmentMan.h (diskWriter): New function.
  15385. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15386. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15387. (main): Use TrackerUpdateCommand.
  15388. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15389. (req): New variable.
  15390. (setTrackerResponseProcessor): Removed.
  15391. (getTrackerResponseProcessor): Removed.
  15392. (processTrackerResponse): Removed.
  15393. * src/DownloadEngine.h (diskWriter): Removed.
  15394. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15395. to torrentMan->processTrackerResponse().
  15396. To add Util::expandBuffer:
  15397. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15398. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15399. * src/Util.h (expandBuffer): New function.
  15400. To fix the bug that causes segmentation fault when "-l ." is specified
  15401. in command-line option:
  15402. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15403. (openFile): New function.
  15404. (closeFile): New function.
  15405. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15406. (~SimpleLogger): Call closeFile();
  15407. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15408. * src/main.cc (main): Added a check to see logger is configured
  15409. properly.
  15410. To enable HTTP authentication without specifying "--http-auth-scheme"
  15411. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15412. * src/HttpConnection.cc (createRequest): Send Authorization header
  15413. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15414. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15415. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15416. * src/Peer.cc (shouldChoke): Updated algorithm.
  15417. * src/message.h (EX_AUTH_FAILED): New definition.
  15418. (EX_FILE_OPEN): New definition.
  15419. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15420. if status == 401.
  15421. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15422. if req->isTorrent == true.
  15423. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15424. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15425. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15426. (createFile): Updated message.
  15427. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15428. To add a readout of estimated remaining time to normal HTTP/FTP
  15429. downloads:
  15430. * src/ConsoleDownloadEngine.h (startup): New variable.
  15431. (startupLength): New variable.
  15432. (isStartupLengthSet): New variable.
  15433. (avgSpeed): New variable.
  15434. (eta): New variable.
  15435. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15436. estimated remaining time.
  15437. (initStatistics): Initialized newly added variables.
  15438. (calculateStatistics): Calculate average speed and estimated remaining
  15439. time.
  15440. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15441. * src/TrackerDownloadCommand.h: Removed.
  15442. * src/TrackerDownloadCommand.cc: Removed.
  15443. * src/TrackerInitCommand.h: Removed.
  15444. * src/TrackerInitCommand.cc: Removed.
  15445. * src/TrackerUpdateCommand.h: Removed.
  15446. * src/TrackerUpdateCommand.cc: Removed.
  15447. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15448. url written in TrackerInitCommand was moved here. Do not create
  15449. tracker request command if torrentMan->trackers != 0.
  15450. * src/CompactTrackerResponseProcessor.h: New class.
  15451. * src/CompactTrackerResponseProcessor.cc: New class.
  15452. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15453. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15454. Decoupled TorrentDownloadEngine from this.
  15455. * src/SegmentMan.h (init): New function.
  15456. * src/SegmentMan.cc (init): New function.
  15457. * src/TorrentMan.h (responseProcessor): New variable.
  15458. (trackers): New variable.
  15459. (setTrackerResponseProcessor): New function.
  15460. (getTrackerResponseProcessor): New function.
  15461. (processTrackerResponse): New function.
  15462. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15463. (processTrackerResponse): New function.
  15464. * src/main.cc (main): Use ByteArrayDiskWriter and
  15465. CompactTrackerResponseProcessor.
  15466. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15467. processTrackerResponse().
  15468. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15469. readout.
  15470. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15471. which indicates download has completed.
  15472. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15473. (closeFile): fd >= 0, not fd > 0
  15474. * src/main.cc (main): Added short cut for show-files.
  15475. Added short cut for torrent-file.
  15476. Added new command-line option listen-port.
  15477. Updated i18n messages.
  15478. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15479. To add LogFactory which creates singleton logger:
  15480. * src/LogFactory.h: New class.
  15481. * src/LogFactory.cc: New class.
  15482. * src/Command.h (logger): New variable.
  15483. (Constructor): Use LogFactory.
  15484. * src/AbstractCommand.cc: Use Command::logger
  15485. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15486. Use LogFactory.
  15487. * src/SegmentSplitter.h : Made logger protected.
  15488. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15489. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15490. * src/DownloadEngine.h : Made logger protected.
  15491. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15492. * src/PeerInteractionCommand.cc : Use Command::logger.
  15493. * src/HttpResponseCommand.cc : Use Command::logger.
  15494. * src/SegmentMan.h : Made logger private.
  15495. * src/TorrentMan.h : Made logger private.
  15496. * src/TorrentMan.cc : Use LogFactory.
  15497. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15498. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15499. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15500. Use LogFactory.
  15501. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15502. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15503. Use LogFactory.
  15504. * src/DownloadCommand.cc : Use Command::logger.
  15505. * src/PeerAbstractCommand.cc : Use Command::logger.
  15506. * src/PeerListenCommand.cc : Use Command::logger.
  15507. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15508. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15509. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15510. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15511. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15512. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15513. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15514. Use LogFactory.
  15515. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15516. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15517. Use LogFactory.
  15518. * src/main.cc (main): Use LogFactory.
  15519. * src/DiskAdaptor.h (logger): New variable.
  15520. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15521. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15522. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15523. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15524. parameter to a tracker request.
  15525. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15526. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15527. * src/main.cc (setSignalHander): New function.
  15528. (main): Added a handler for SIGTERM.
  15529. (handler): Updated message.
  15530. (torrentHandler): Updated message.
  15531. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15532. * src/TorrentConsoleDownloadEngine.cc
  15533. (onPartialDownloadingCompletes): Renamed as
  15534. onSelectiveDownloadingCompletes.
  15535. (onSelectiveDownloadingCompletes): Updated message.
  15536. To add DiskAdaptor which abstract DiskWriter family:
  15537. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15538. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15539. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15540. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15541. MultiDiskAdaptor.h.
  15542. (readFileEntry): Changed its arguments.
  15543. (setup): setupDiskWriter is merged into this function.
  15544. (setupDiskWriter): Removed.
  15545. (setFileFilter): New function.
  15546. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15547. made in readFileEntry.
  15548. (getFilePath): Removed.
  15549. (getTempFilePath): Removed.
  15550. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15551. (fixFilename): Removed.
  15552. (copySingleFile): Removed.
  15553. (splitMultiFile): Removed.
  15554. (deleteTempFile): Removed.
  15555. (setFileEntriesToDownload): Removed.
  15556. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15557. (isSelectiveDownloadingMode): New function.
  15558. (setAllMultiFileRequestedState): Removed.
  15559. (finishPartialDownloadingMode): Renamed as
  15560. finishSelectiveDownloadingMode.
  15561. (finishSelectiveDownloadingMode): New function.
  15562. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15563. (getSelectedTotalLength): New function.
  15564. (onDownloadComplete): Use diskAdaptor.
  15565. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15566. (Range): Removed.
  15567. (setMultiFileEntries): Renamed as setFileEntries.
  15568. (setFileEntries): New function.
  15569. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15570. (pieceLength): New variable.
  15571. * src/main.cc (printDownloadCompeleteMessage): New function.
  15572. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15573. (main): Renamed torrent-show-files to show-files.
  15574. Rewritten file contents listing.
  15575. * src/TorrentMan.h (FileEntry): Removed.
  15576. (multiFileTopDir): Removed.
  15577. (multiFileEntries): Removed.
  15578. (diskWriter): Removed.
  15579. (diskAdaptor): New variable.
  15580. * src/DefaultDiskWriter.h (totalLength): New variable.
  15581. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15582. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15583. diskWriter.
  15584. * src/TorrentConsoleDownloadEngine.h
  15585. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15586. (partialTotalLength): Renamed as selectedTotalLength.
  15587. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15588. openExistingFile, otherwise call initAndOpenFile.
  15589. (closeFile): fd > 0, not fd != 0.
  15590. * src/DirectDiskAdaptor.h: New class.
  15591. * src/DirectDiskAdaptor.cc: New class.
  15592. * src/MultiDiskAdaptor.h: New class.
  15593. * src/MultiDiskAdaptor.cc: New class.
  15594. * src/CopyDiskAdaptor.h: New class.
  15595. * src/CopyDiskAdaptor.cc: New class.
  15596. * src/DiskAdaptor.h: New class.
  15597. * src/DiskAdaptor.cc: New class.
  15598. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15599. (PREF_SHOW_FILES): New definition.
  15600. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15601. To add the ability to download multi torrent into respective files
  15602. directly:
  15603. * src/DiskWriter.h (openFile): New function.
  15604. (seek): Removed.
  15605. * src/MultiDiskWriter.h: New class.
  15606. * src/MultiDiskWriter.cc: New class.
  15607. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15608. protected.
  15609. (openFile): New function.
  15610. * src/AbstractDiskWriter.cc (openFile): New function.
  15611. * src/prefs.h (V_FALSE): New definition.
  15612. (PREF_DIRECT_FILE_MAPPING): New definition.
  15613. * src/TorrentMan.h (setupDiskWriter): New function.
  15614. (setAllMultiFileRequestedState): New function.
  15615. (onDownloadComplete): New function.
  15616. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15617. (setupDiskWriter): New function.
  15618. (getFilePath): Updated.
  15619. (getTempFilePath): Updated.
  15620. (getSegmentFilePath): Updated.
  15621. (fixFilename): Updated.
  15622. (deleteTempFile): Updated.
  15623. (setAllMultiFileRequestedState): New function.
  15624. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15625. (finishPartialDownloadingMode): Reset requested flags.
  15626. (onDownloadComplete): New function.
  15627. * src/main.cc: Added --direct-file-mapping option.
  15628. Use TorrentMan::setupDiskWriter().
  15629. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15630. onDownloadComplete().
  15631. To fix ETA bug:
  15632. * src/Util.h (difftvsec): New function.
  15633. * src/Util.cc (difftvsec): New function.
  15634. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15635. type of "elapsed" instead of long long int.
  15636. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15637. The updates of statistics takes place every 1 seconds.
  15638. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15639. (calculateSpeed): Changed its argument signature.
  15640. * src/PeerMessage.cc (toString): Fixed message.
  15641. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15642. To print ETA:
  15643. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15644. completion handling when dealing with
  15645. TorrentMan::isPartialDownloadingMode() == true.
  15646. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15647. New function.
  15648. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15649. (sessionDownloadLength): New variable.
  15650. (avgSpeed): New variable.
  15651. (eta): New variable.
  15652. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15653. new variables: eta, avgSpeed, startup.
  15654. (calculateSpeed): Calculate average speed and ETA.
  15655. (printStatistics): Added ETA.
  15656. * src/Util.h (secfmt): New function.
  15657. * src/Util.cc (secfmt): New function.
  15658. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15659. To detect "keep alive" flooding:
  15660. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15661. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15662. variable: keepAliveCount.
  15663. (detectMessageFlooding): Added "keep alive" flooding detection.
  15664. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15665. received.
  15666. To add the ability to download only specified files in multi-file
  15667. torrent:
  15668. * src/BitfieldMan.h (filterBitfield): New variable.
  15669. (filterEnabled): New variable.
  15670. (setFilterBit): New function.
  15671. (enableFilter): New function.
  15672. (disableFilter): New function.
  15673. (isFilterEnabled): New function.
  15674. (getFilteredTotalLength): New function.
  15675. (getCompletedLength): New function.
  15676. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15677. filterBitfield, filterEnabled.
  15678. (CopyConstructor): Added filterBitfield and filterEnabled.
  15679. (operator==): Added filterBitfield and filterEnabled.
  15680. (Destructor): Added filterBitfield.
  15681. (getMissingIndex): Use filterBitfield.
  15682. (getMissingUnusedIndex): Use filterBitfield.
  15683. (getFirstMissingUnusedIndex): Use filterBitfield.
  15684. (getFirstMissingUnusedIndex): Use filterBitfield.
  15685. (getAllMissingIndexes): Use filterBitfield.
  15686. (countMissingBlock): Use filterBitfield.
  15687. (countBlock): Use filterBitfield.
  15688. (setBitInternal): Added new argument on.
  15689. (setUseBit): Use setBitInternal.
  15690. (unsetUseBit): Use setBitInternal.
  15691. (setBit): Use setBitInternal.
  15692. (unsetBit): Use setBitInternal.
  15693. (isAllBitSet): Use filterBitfield.
  15694. (setFilterBit): New function.
  15695. (addFilter): New function.
  15696. (enableFilter): New function.
  15697. (disableFilter): New function.
  15698. (clearFilter): New function.
  15699. (isFilterEnabled): New function.
  15700. (getFilteredTotalLength): New function.
  15701. (getCompletedLength): New function.
  15702. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15703. Initalized newly added variables.
  15704. [FileEntry](offset): New variable.
  15705. [FileEntry](extracted): New variable.
  15706. [FileEntry](requested): New variable.
  15707. (readFileEntry): New function.
  15708. (option): New variable.
  15709. (splitMultiFile): Removed const qualifier.
  15710. (fixFilename): Removed const qualifier.
  15711. (readFileEntryFromMetaInfoFile): New function.
  15712. (finishPartialDownloadingMode): New function.
  15713. (isPartialDownloadingMode): New function.
  15714. (setFileEntriesToDownload): New function.
  15715. (getCompletedLength): New function.
  15716. (getPartialTotalLength): New function.
  15717. * src/TorrentMan.cc (readFileEntry): New function.
  15718. (setup): Use readFileEntry. If no-preallocation option is specified,
  15719. use DefaultDiskWriter.
  15720. (readFileEntryFromMetaInfoFile): New function.
  15721. (fixFilename): Removed const qualifier.
  15722. (splitMultiFile): Removed const qualifier.
  15723. (setFileEntriesToDownload): New function.
  15724. (isPartialDownloadingMode): New function.
  15725. (finishPartialDownloadingMode): New function.
  15726. (getCompletedLength): New function.
  15727. (getPartialTotalLength): New function.
  15728. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15729. New variable.
  15730. (partialTotalLength): New variable.
  15731. (downloadLength): New variable.
  15732. (totalLength): New variable.
  15733. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15734. Added log.
  15735. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15736. partialTotalLength, downloadLength, totalLength.
  15737. (calculate): Calculate downloadLength and totalLength.
  15738. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15739. * src/main.cc (addCommand): Changed argument signature.
  15740. (main): Added new variable: args. Added new option "torrent-show-files"
  15741. "no-preallocation". Usage is not updated yet.
  15742. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15743. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15744. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15745. Attempt to add the ability to listing file entries in a .torrent file.
  15746. This feature is not yet complete.
  15747. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15748. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15749. (getName): New function.
  15750. * src/TorrentMan.h (getMultiFileEntries): New function.
  15751. (getName): New function.
  15752. * src/main.cc (main): Use above 2 funtion.
  15753. * Release 0.3.2
  15754. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15755. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15756. (detectMessageFlooding): Updated threshold value.
  15757. (checkLongTimePeerChoking): Updated timeout value.
  15758. (getNewPieceAndSendInterest): Added debug log.
  15759. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15760. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15761. (getPeer): Updated.
  15762. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15763. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15764. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15765. is localhost.
  15766. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15767. * src/PendingMessage.cc (processMessage): Not to send piece message
  15768. if peer is not interested in the pieces localhost has.
  15769. * src/Peer.cc (shouldChoke): Updated.
  15770. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15771. * src/Util.cc (isPowerOf): New function.
  15772. * src/Util.h (isPowerOf): New function.
  15773. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15774. whether or not it is power of 2.
  15775. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15776. Added new class SendMessageQueue that includes PendingMessages and
  15777. RequestSlotMan.
  15778. * src/SendMessageQueue.h: New class.
  15779. * src/SendMessageQueue.cc: New class.
  15780. * src/PendingMessage.h: Added new member variable blockIndex and its
  15781. accessors.
  15782. (createRequestMessage): Updated.
  15783. * src/PendingMessage.cc (createRequestMessage): Updated.
  15784. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15785. SendMessageQueue.
  15786. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15787. (receiveMessage): Updated with SendMessageQueue.
  15788. (deletePendingPieceMessage): Removed.
  15789. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15790. (sendInterest): Updated with SendMessageQueue.
  15791. (createRequestPendingMessage): Updated with SendMessageQueue.
  15792. (sendMessages): Updated with SendMessageQueue.
  15793. (onAbort): Updated with SendMessageQueue.
  15794. (keepAlive): Updated with SendMessageQueue.
  15795. (beforeSocketCheck): Updated SendMessageQueue.
  15796. * src/PeerInteractionCommand (sendMessages): Shuffle
  15797. missingBLockIndexes before using it.
  15798. Added its own timeout for peer connection.
  15799. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15800. setter.
  15801. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15802. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15803. Added setTimeout() call.
  15804. (executeInternal): Added setTimeout() call.
  15805. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15806. Added timeout.
  15807. (isTimeoutDetected): Updated.
  15808. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15809. option.
  15810. Added *simple* message flooding checker.
  15811. * src/PeerInteractionCommand.cc (executeInternal):
  15812. Added detectMessageFlooding() call.
  15813. (detectMessageFlooding): New function.
  15814. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15815. (beforeSocketCheck): Added detectMessageFlooding() call.
  15816. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15817. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15818. Removed deletePendingPieceMessage(), getRequestSlot(),
  15819. deleteRequestSlot(), deleteAllRequestSlot().
  15820. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15821. Added checkLongTimePeerChoking() call.
  15822. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15823. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15824. if duplicate == false.
  15825. The parameter "uploaded" and "downloaded" in the tracker request are
  15826. the size since the client sent the "started" event to the tracker.
  15827. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15828. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15829. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15830. getSessionDownloadedSize(), getSessionUploadedSize().
  15831. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15832. getSessionUploadedSize() instead of getDownloadedSize(),
  15833. getUploadedSize().
  15834. * src/PendingMessage.cc (processMessage): Do not send request message
  15835. if the peer is choking the client.
  15836. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15837. less than interval.
  15838. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15839. * configure.in: Added gnutls support. Added several CPP macros.
  15840. * m4/openssl.m4: Added.
  15841. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15842. readData(), peekData(). Added gnutls support.
  15843. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15844. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15845. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15846. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15847. Instead, added a check for whether setup method has executed
  15848. successfully.
  15849. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15850. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15851. * src/Makefile.am: Updated.
  15852. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15853. using whether OpenSSL or gcrypt, depending on the result of configure
  15854. script.
  15855. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15856. messageDigest.h.
  15857. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15858. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15859. Fixed memory leak.
  15860. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15861. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15862. Removed instantiation of TrackerInitCommand. Instead,
  15863. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15864. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15865. ENABLE_SSL.
  15866. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15867. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15868. If a piece is already acquired by another command, delete the request
  15869. slots for the piece.
  15870. * src/TrackerUpdateCommand.cc (execute):
  15871. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15872. Added a check whether peer list is null.
  15873. Fixed the bug that causes sending completed event to the tracker
  15874. several times.
  15875. * src/TrackerInitCommand.cc (execute):
  15876. Fixed the bug that causes sending completed event to the tracker
  15877. several times.
  15878. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15879. by using messageDigest.h.
  15880. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15881. * PeerConnection.cc: Replaced log message "keep-alive" with
  15882. "keep alive".
  15883. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15884. localhost long time.
  15885. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15886. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15887. at most 100 failure entry from the list. If with duplicate = false,
  15888. MAX_PEER_LIST is not checked.
  15889. * PeerListenCommand.cc: Fixed the argument order of log message.
  15890. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15891. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15892. Added warn().
  15893. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15894. Implemented warn().
  15895. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15896. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15897. * Request.h: Added AFTER_COMPLETED event.
  15898. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15899. instead of downloaded size and progress(%) after download completes.
  15900. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15901. message to the peer if it is interested in what localhost has
  15902. downloaded.
  15903. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15904. destination instead of just renaming it.
  15905. * TorrentMan.cc: Added deleteTempFile().
  15906. * PeerAbstractCommand.cc: do not stop execution after download
  15907. completes. This makes localhost a seeder.
  15908. * Util.{h,cc}: Added fileCopy().
  15909. * PeerListenCommand.cc: do not stop execution after download completes.
  15910. This makes localhost a seeder.
  15911. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15912. Added TorrentMan::deleteTempFile() to torrentHandler.
  15913. Initialized the variable dir as ".".
  15914. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15915. Deleted renameSingleFile().
  15916. Added copySingleFile(), deleteTempFile().
  15917. * DownloadEngine.h: Added virtual function afterEachIteration().
  15918. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15919. in onEndOfRun() to afterEachIteration().
  15920. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15921. true.
  15922. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15923. In rangedFileCopy(), added try-catch block to properly close file
  15924. descriptors.
  15925. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15926. Added afterEachIteration(), isFilenameFixed().
  15927. * Peer.cc: Changed choking strategy.
  15928. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15929. * TrackerInitCommand.cc: Send completed event only once.
  15930. * DownloadEngine.cc: Added a call to afterEachIteration().
  15931. * TrackerUpdateCommand.cc: Do not stop execution after download
  15932. completes.
  15933. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15934. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15935. received from a tracker.
  15936. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15937. Decreased the number of failure peers to delete to 0(just comment out
  15938. the line).
  15939. * Release 0.3.1
  15940. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15941. * PeerInteractionCommand.cc: added a call to
  15942. TorrentMan::unadvertisePiece in Destructor.
  15943. * PeerInteractionCommand.cc: make have message sent immediately
  15944. if the size of pending message queue is zero.
  15945. * TorrentMan.cc: set the maximum size of peer list to 250.
  15946. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15947. to deque.
  15948. * Util.cc: fixed rangedFileCopy.
  15949. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15950. to Constructor. Also, moved digest cleanup to Destructor.
  15951. * MetaFileUtil.cc: fixed memory leak
  15952. * replaced std::vector with std::deque.
  15953. * AbstractCommand.cc: casted timeout value to long long int.
  15954. * ChunkedEncoding.cc: fixed memory leak.
  15955. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15956. * SleepCommand.cc: casted timeout value to long long int.
  15957. * Data.cc: fixed memory leak.
  15958. * Data.cc: fixed toLLInt().
  15959. * BitfieldMan.cc: fixed memory leak.
  15960. * TorrentMan.cc: initialized storeDir to ".".
  15961. * TorrentMan.cc: fixed memory leak.
  15962. * TorrentMan.cc: corrected file paths of splitted files.
  15963. * PeerAbstractCommand.cc: casted timeout to long long int.
  15964. * main.cc: added delete(req) and delete(te->diskWriter).
  15965. * RequestSlot.cc: casted timeout value to long long int.
  15966. * Request.cc: fixed memory leak.
  15967. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15968. have the piece.
  15969. * Peer.{h,cc}: added hasPiece(int index).
  15970. * main.cc: corrected addCommand.
  15971. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15972. * BitTorrent protocol support added.
  15973. * Release 0.3.0
  15974. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15975. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15976. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15977. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15978. decoding did not work properly.
  15979. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15980. * DownloadEngine.h: included sys/time.h
  15981. * DownloadEngine.cc: remove sys/time.h
  15982. * Makefile.am (SUBDIRS): Add intl.
  15983. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15984. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15985. * main.cc: correct help message for --http-auth-scheme.
  15986. * main.cc: changed e-mail address for bug reports.
  15987. * ja.po: added japanese translation.
  15988. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15989. * SimpleLogger.cc: flush log file instead of stdout.
  15990. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15991. * main.cc: Fixed command-line option: max-tries
  15992. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15993. does not equal to seg.sp.
  15994. * DownloadCommand.cc: If EOF is got from the server and the total size
  15995. of file is not zero, then throw DlRetryEx.
  15996. * main.cc: Set the minium value of min-segment-size to 1024.
  15997. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15998. fails because of a regression since 0.2.0 release.
  15999. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16000. * HttpConnection.cc:
  16001. * common.h: defined the user agent name as macro
  16002. * DownloadEngine.{h, cc}:
  16003. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16004. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16005. * main.cc: Download complete/abort message is now generated by main.
  16006. * Makefile.am (SUBDIRS): Add m4.
  16007. (ACLOCAL_AMFLAGS): New variable.
  16008. (EXTRA_DIST): New variable.
  16009. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16010. * gettext: added gettext functionality
  16011. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16012. * AbstractCommand.cc:
  16013. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16014. unregister its cuid from SegmentMan.
  16015. * DownloadEngine.cc: .aria2 file was written when a downloading
  16016. failed with errors.
  16017. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16018. Added "User-Agent" header to CONNECT proxy request.
  16019. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16020. properly.
  16021. * Logger.h:
  16022. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16023. * ChunkedEncoding.cc: Added #include directive for strings.h
  16024. * Release 0.2.1
  16025. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16026. * Util.{h,cc}: added startsWith().
  16027. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16028. Util::endsWith().
  16029. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16030. * common.h: added #include directive of limit.h.
  16031. * DownloadEngine.cc: added #include directive of sys/time.h and
  16032. algorithm.
  16033. * Exception.h: added #include directive of stdio.h.
  16034. * AbstractCommand.h: added #include directive of sys/time.h.
  16035. * DownloadCommand.h: added #include directive of sys/time.h.
  16036. * *.h: added #include directive of common.h to all base classes.
  16037. subclasses' one was removed.
  16038. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16039. does not define these macros.
  16040. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16041. * Release 0.2.0
  16042. * main.cc:
  16043. * HttpInitiateConnectionCommand.{h,cc}:
  16044. * prefs.h:
  16045. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16046. We can now use GET command in http proxy.
  16047. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16048. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16049. that splits slowest segment of SegmentMan::commands vector.
  16050. This is the default split algorithm of aria2.
  16051. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16052. that splits first segment of SegmentMan::commands vector.
  16053. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16054. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16055. * Segment.h:
  16056. * SegmentMan.cc: Added speed field to Segment.h
  16057. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16058. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16059. * message.h: Change file size related %d to %lld.
  16060. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16061. * FtpInitiateConnectionCommand.{h,cc}:
  16062. * FtpNegotiationCommand.{h,cc}:
  16063. * FtpDownloadCommand.{h,cc}:
  16064. * FtpConnection.{h,cc}: Added FTP support
  16065. * SimpleLogger.cc: Log message now includes time information.
  16066. * main.cc: The value of --http-auth-scheme option is chagned from
  16067. 'BASIC' to 'basic'
  16068. * main.cc: Added --timeout command-line option.
  16069. * main.cc: Added --min-segment-size command-line option.
  16070. * main.cc: Added --max-retries command-line option.
  16071. * prefs.h: option string constants are now defined in prefs.h
  16072. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16073. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16074. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16075. with version 0.1.0's one.
  16076. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16077. * configure.in: Added --enable-ssl option to configure script.
  16078. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16079. cannot permit absoluteURI as Request-URI.
  16080. * HttpConnection.cc: Added Referer support.
  16081. * main.cc: Added referer command-line option.
  16082. * main.cc: Added rety-wait command-line option.
  16083. * Exception.h: Fixed formating bug in Exception::setMsg()
  16084. * SocketCore.{h,cc}:
  16085. * Socket.{h, cc}:
  16086. * Request.cc:
  16087. * InitiateConnectionCommandFactory.cc:
  16088. * HttpRequestCommand.cc: Added HTTPS support.
  16089. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16090. for SocketCore.
  16091. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16092. size is wrong
  16093. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16094. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16095. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16096. * Release 0.1.0