ChangeLog 634 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346
  1. 2009-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2. Removed unused macro SAFE_CHARS
  3. * src/Request.cc
  4. 2009-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5. Updated doc
  6. * src/DHTRoutingTableDeserializer.cc
  7. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  8. Release 1.6.3
  9. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  10. Removed unused function.
  11. * test/DHTPeerAnnounceStorageTest.cc
  12. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  13. Only decrement cols if cols > 0
  14. * src/ConsoleStatCalc.cc
  15. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  16. Updated Polish, Catalan, French, Italian, Russian and Japanese
  17. translations. Thanks to all translators.
  18. * po/ca.po
  19. * po/fr.po
  20. * po/it.po
  21. * po/ja.po
  22. * po/pl.po
  23. * po/ru.po
  24. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  25. Updated translation template
  26. * po
  27. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  28. Fixed compile error without ssl library.
  29. * src/util.cc
  30. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  31. Logged received nodes in get_peers reply message.
  32. * src/DHTAbstractNodeLookupTask.cc
  33. * src/DHTAbstractNodeLookupTask.h
  34. 2009-11-01 Tatsuhiro Tsujikawa <[email protected]>
  35. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  36. error occurred in DHTMessageDispatcherImpl::sendMessage().
  37. * src/DHTMessageDispatcherImpl.cc
  38. 2009-11-01 Tatsuhiro Tsujikawa <[email protected]>
  39. Don't reuse URI if Request pool is not empty.
  40. * src/CreateRequestCommand.cc
  41. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  42. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  43. receive get_peers request for torrent which the client is now
  44. downloading.
  45. * src/BtSetup.cc
  46. * src/DHTPeerAnnounceEntry.cc
  47. * src/DHTPeerAnnounceEntry.h
  48. * src/DHTPeerAnnounceStorage.cc
  49. * src/DHTPeerAnnounceStorage.h
  50. * src/RequestGroup.cc
  51. * test/DHTPeerAnnounceEntryTest.cc
  52. * test/DHTPeerAnnounceStorageTest.cc
  53. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  54. Fixed the bug that in Windows environment new blank line is
  55. inserted when console readout is updated.
  56. * src/ConsoleStatCalc.cc
  57. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  58. Throw exception if binding listening port is failed. Removed
  59. RequestGroupMan::getInitialCommand(). Use
  60. fillRequestGroupFromReserver() instead. Delete commands for
  61. RequestGroup which has errors when it is being added.
  62. * src/BtSetup.cc
  63. * src/DownloadEngine.cc
  64. * src/DownloadEngine.h
  65. * src/DownloadEngineFactory.cc
  66. * src/MultiUrlRequestInfo.cc
  67. * src/RequestGroupMan.cc
  68. * src/RequestGroupMan.h
  69. * test/RequestGroupManTest.cc
  70. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  71. Fixed the bug that when downloading more than one torrent,
  72. listening port is not reported properly to tracker for 2nd or
  73. later torrents.
  74. * src/BtSetup.cc
  75. * src/PeerListenCommand.cc
  76. * src/PeerListenCommand.h
  77. * src/RequestGroup.cc
  78. 2009-10-29 Tatsuhiro Tsujikawa <[email protected]>
  79. Bump up version number to 1.6.3
  80. * configure.ac
  81. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  82. Removed Util.cc from POTFILES.in
  83. * po/POTFILES.in
  84. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  85. Updated man page for previous change.
  86. * doc/aria2c.1.txt
  87. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  88. If user name is embedded but password is missing in URI, first
  89. resolve password using .netrc. If password is found in .netrc,
  90. then use it as password. If not, use the password specified in
  91. --ftp-passwd.
  92. * src/AuthConfigFactory.cc
  93. * src/Request.cc
  94. * src/Request.h
  95. * test/AuthConfigFactoryTest.cc
  96. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  97. Fixed typo
  98. * doc/aria2c.1.txt
  99. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  100. Fixed typo
  101. * src/usage_text.h
  102. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  103. Added missing bitfield.cc
  104. * src/bitfield.cc
  105. 2009-10-23 Tatsuhiro Tsujikawa <[email protected]>
  106. Renamed Util.{cc,h} as util.{cc,h}
  107. * src/Util.cc
  108. * src/Util.h
  109. * src/util.cc
  110. * src/util.h
  111. 2009-10-22 Tatsuhiro Tsujikawa <[email protected]>
  112. Moved static functions in Util class to namespace util.
  113. * src
  114. * test
  115. 2009-10-22 Tatsuhiro Tsujikawa <[email protected]>
  116. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  117. Moved generateRandomKey to bittorrent_helper.cc.
  118. * src/DHTBucket.cc
  119. * src/DHTGetPeersMessage.cc
  120. * src/DHTGetPeersReplyMessage.cc
  121. * src/DHTMessage.cc
  122. * src/DHTNode.cc
  123. * src/DHTTokenTracker.cc
  124. * src/DHTUtil.cc: Removed.
  125. * src/DHTUtil.h: Removed.
  126. * src/Makefile.am
  127. * src/Util.cc
  128. * src/Util.h
  129. * src/bitfield.h
  130. * src/bittorrent_helper.cc
  131. * src/bittorrent_helper.h
  132. * test/ARC4Test.cc
  133. * test/BNodeTest.cc
  134. * test/DHTAnnouncePeerMessageTest.cc
  135. * test/DHTAnnouncePeerReplyMessageTest.cc
  136. * test/DHTFindNodeMessageTest.cc
  137. * test/DHTFindNodeReplyMessageTest.cc
  138. * test/DHTGetPeersMessageTest.cc
  139. * test/DHTGetPeersReplyMessageTest.cc
  140. * test/DHTPingMessageTest.cc
  141. * test/DHTPingReplyMessageTest.cc
  142. * test/DHTTokenTrackerTest.cc
  143. * test/DHTUtilTest.cc: Removed.
  144. * test/Makefile.am
  145. * test/UtilTest.cc
  146. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  147. Removed the call to trim() because trim() is called for each
  148. element in split().
  149. * src/CookieParser.cc
  150. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  151. Replaced Util::slice() with split()
  152. * src/AbstractCommand.cc
  153. * src/CookieParser.cc
  154. * src/File.cc
  155. * src/HttpHeaderProcessor.cc
  156. * src/HttpRequest.cc
  157. * src/Metalink2RequestGroup.cc
  158. * src/MetalinkParserController.cc
  159. * src/Netrc.cc
  160. * src/NsCookieParser.cc
  161. * src/ParameterizedStringParser.cc
  162. * src/ServerStatMan.cc
  163. * src/UriListParser.cc
  164. * src/Util.cc
  165. * src/Util.h
  166. * src/bittorrent_helper.cc
  167. * test/UtilTest.cc
  168. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  169. Use request->getDir() instead of "/" for embedded user/pass in
  170. URI.
  171. * src/AuthConfigFactory.cc
  172. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  173. Fixed wrong insertion point for BasicCred.
  174. * src/AuthConfigFactory.cc
  175. 2009-10-17 Tatsuhiro Tsujikawa <[email protected]>
  176. Allowed non-regular file in LocalFilePathOptionHandler
  177. * src/OptionHandlerImpl.h
  178. * src/message.h
  179. 2009-10-17 Tatsuhiro Tsujikawa <[email protected]>
  180. Fixed the bug that Netrc::parse() cannot recognize comment line.
  181. * src/Netrc.cc
  182. * src/Util.h
  183. * test/NetrcTest.cc
  184. * test/sample.netrc
  185. 2009-10-13 Tatsuhiro Tsujikawa <[email protected]>
  186. Fixed typo
  187. * src/BtDependency.cc
  188. * src/BtRejectMessage.cc
  189. * src/FtpConnection.cc
  190. * src/HttpHeaderProcessor.h
  191. 2009-10-13 Tatsuhiro Tsujikawa <[email protected]>
  192. Fixed lintian report in man page
  193. * doc/aria2c.1.txt
  194. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  195. Release 1.6.2
  196. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  197. Updated Ukrainian translation. Thanks to all translators.
  198. * po/uk.po
  199. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  200. Updated translation template
  201. * po
  202. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  203. Bump up version number to 1.6.2
  204. * configure.ac
  205. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  206. Updated licence message in -v output.
  207. * src/version_usage.cc
  208. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  209. Replaced aria2 with aria2c in help message.
  210. * src/version_usage.cc
  211. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  212. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  213. * src/version_usage.cc
  214. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  215. Quoted localedir
  216. * src/Makefile.am
  217. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  218. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  219. utime. Check header for utime.h.
  220. * configure.ac
  221. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  222. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  223. * configure.ac
  224. * src/daemon.cc
  225. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  226. Don't set localedir manually. Leave it to autoconf.
  227. * configure.ac
  228. * src/Makefile.am
  229. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  230. Added --install to ACLOCAL_AMFLAGS.
  231. Removed m4 from SUBDIRS.
  232. Updated automake 1.11 and autoconf 2.64.
  233. Replaced some obsolute macros with new one.
  234. * Makefile.am
  235. * configure.ac
  236. * m4/aria2_arg.m4
  237. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  238. Removed Makefile.am in m4 directory.
  239. * configure.ac
  240. * m4/ChangeLog
  241. * m4/Makefile.am
  242. * m4/Makefile.in
  243. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  244. Removed unused m4 macros.
  245. * m4/intldir.m4
  246. * m4/inttypes.m4
  247. * m4/isc-posix.m4
  248. * m4/libgnutls-extra.m4
  249. * m4/ulonglong.m4
  250. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  251. Fixed the bug that causes segmentation fault if
  252. req->getCurrentUrl() contains printf formatting characters such as
  253. %d. The statement that causes this bug is useless and removed.
  254. * src/AbstractCommand.cc
  255. 2009-10-07 Tatsuhiro Tsujikawa <[email protected]>
  256. * Release 1.6.1
  257. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  258. Updated Simplified Chinese translation. Thanks to translators.
  259. * po/zh_CN.po
  260. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  261. Updated translation template
  262. * po
  263. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  264. Bump up version number to 1.6.1
  265. * configure.ac
  266. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  267. Changed interval from 120 to 60 for dropping inactive peer.
  268. * src/DefaultBtInteractive.cc
  269. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  270. Updated man page for --user-agent and --peer-id-prefix option.
  271. * doc/aria2c.1.txt
  272. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  273. Code clean up
  274. * src/BtPostDownloadHandler.cc
  275. * src/ContentTypeRequestGroupCriteria.cc
  276. * src/ContentTypeRequestGroupCriteria.h
  277. * src/DownloadHandlerConstants.cc
  278. * src/DownloadHandlerConstants.h
  279. * src/DownloadHandlerFactory.cc
  280. * src/MetalinkPostDownloadHandler.cc
  281. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  282. Don't save control file when aria2 exists while checking piece
  283. hash(behavior of -V option). If control file doesn't exist when
  284. aria2 launched, the completed length in saved control file will be
  285. 0 byte and this confuses user. disableSaveControlFile() is called
  286. in RequestGroup::processCheckIntegrityEntry().
  287. enableSaveControlFile() will be called after hash checking is
  288. done. See CheckIntegrityCommand.
  289. * src/CheckIntegrityCommand.cc
  290. * src/RequestGroup.cc
  291. * src/RequestGroup.h
  292. * src/RequestGroupMan.cc
  293. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  294. Included version number in Peer ID and client version. Peer ID
  295. now starts with "aria2/VERSION-", where VERSION is
  296. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  297. * src/DefaultBtInteractive.cc
  298. * src/OptionHandlerFactory.cc
  299. * src/bittorrent_helper.cc
  300. * src/bittorrent_helper.h
  301. * src/main.cc
  302. * src/usage_text.h
  303. * test/BittorrentHelperTest.cc
  304. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  305. Fixed memory leak.
  306. * src/DownloadCommand.cc
  307. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  308. Removed server, port, user and passwd key from options before
  309. XMLRPC::Client.call since they are not options of aria2.
  310. * doc/xmlrpc/aria2mon
  311. * doc/xmlrpc/aria2rpc
  312. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  313. Included version number in user-agent string.
  314. * src/OptionHandlerFactory.cc
  315. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  316. Fixed the bug that the option values changed by XML-RPC
  317. method(changeOption and changeGlobalOption) are overwritten to the
  318. previous value by the next these request which doesn't contain
  319. that option value. Supporse max-download-limit is initially 0. You
  320. changed this value to 100K by changeOption. Then you issue
  321. changeOption request to change max-upload-limit to 50K. This
  322. second request doesn't contain xml-download-limit, so it is back
  323. to initial value, 0. Another improvement is that exception is
  324. thrown when changeOption and changeGlobalOption request contains
  325. option name which doesn't allowed in each request.
  326. * src/DownloadEngine.h
  327. * src/XmlRpcMethod.cc
  328. * src/XmlRpcMethod.h
  329. * src/XmlRpcMethodImpl.cc
  330. * src/download_helper.cc
  331. * src/download_helper.h
  332. * test/XmlRpcMethodTest.cc
  333. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  334. Added missing MetalinkParserStateImpl.{cc,h}
  335. * src/MetalinkParserStateImpl.cc
  336. * src/MetalinkParserStateImpl.h
  337. 2009-10-03 Tatsuhiro Tsujikawa <[email protected]>
  338. Put all MetalinkParserState subclasses into
  339. MetalinkParserStateImpl.cc. Use stack to track element structure.
  340. * src/FileMetalinkParserState.cc: Removed
  341. * src/FileMetalinkParserState.h: Removed
  342. * src/FilesMetalinkParserState.cc: Removed
  343. * src/FilesMetalinkParserState.h: Removed
  344. * src/FinMetalinkParserState.cc: Removed
  345. * src/FinMetalinkParserState.h: Removed
  346. * src/HashMetalinkParserState.cc: Removed
  347. * src/HashMetalinkParserState.h: Removed
  348. * src/InitialMetalinkParserState.cc: Removed
  349. * src/InitialMetalinkParserState.h: Removed
  350. * src/LanguageMetalinkParserState.cc: Removed
  351. * src/LanguageMetalinkParserState.h: Removed
  352. * src/Makefile.am
  353. * src/MetalinkMetalinkParserState.cc: Removed
  354. * src/MetalinkMetalinkParserState.h: Removed
  355. * src/MetalinkParserState.h
  356. * src/MetalinkParserStateMachine.cc
  357. * src/MetalinkParserStateMachine.h
  358. * src/OSMetalinkParserState.cc: Removed
  359. * src/OSMetalinkParserState.h: Removed
  360. * src/PieceHashMetalinkParserState.cc: Removed
  361. * src/PieceHashMetalinkParserState.h: Removed
  362. * src/PiecesMetalinkParserState.cc: Removed
  363. * src/PiecesMetalinkParserState.h: Removed
  364. * src/ResourcesMetalinkParserState.cc: Removed
  365. * src/ResourcesMetalinkParserState.h: Removed
  366. * src/SignatureMetalinkParserState.cc: Removed
  367. * src/SignatureMetalinkParserState.h: Removed
  368. * src/SizeMetalinkParserState.cc: Removed
  369. * src/SizeMetalinkParserState.h: Removed
  370. * src/SkipTagMetalinkParserState.cc: Removed
  371. * src/SkipTagMetalinkParserState.h: Removed
  372. * src/URLMetalinkParserState.cc: Removed
  373. * src/URLMetalinkParserState.h: Removed
  374. * src/VerificationMetalinkParserState.cc: Removed
  375. * src/VerificationMetalinkParserState.h: Removed
  376. * src/VersionMetalinkParserState.cc: Removed
  377. * src/VersionMetalinkParserState.h: Removed
  378. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  379. Move all functions in PeerMessageUtil to bittorrent_helper.
  380. * src/BtBitfieldMessage.cc
  381. * src/BtBitfieldMessageValidator.h
  382. * src/BtExtendedMessage.cc
  383. * src/BtHandshakeMessage.cc
  384. * src/BtHandshakeMessageValidator.h
  385. * src/BtPieceMessage.cc
  386. * src/BtPieceMessageValidator.h
  387. * src/BtPortMessage.cc
  388. * src/DHTFindNodeReplyMessage.cc
  389. * src/DHTGetPeersReplyMessage.cc
  390. * src/DHTMessageFactoryImpl.cc
  391. * src/DHTRoutingTableDeserializer.cc
  392. * src/DHTRoutingTableSerializer.cc
  393. * src/DHTTokenTracker.cc
  394. * src/DefaultBtMessageFactory.cc
  395. * src/IndexBtMessage.cc
  396. * src/IndexBtMessage.h
  397. * src/IndexBtMessageValidator.h
  398. * src/Makefile.am
  399. * src/PeerMessageUtil.cc: Removed.
  400. * src/PeerMessageUtil.h: Removed.
  401. * src/RangeBtMessage.cc
  402. * src/RangeBtMessage.h
  403. * src/RangeBtMessageValidator.h
  404. * src/UTPexExtensionMessage.cc
  405. * src/ZeroBtMessage.cc
  406. * src/ZeroBtMessage.h
  407. * src/bittorrent_helper.cc
  408. * src/bittorrent_helper.h
  409. * test/BittorrentHelperTest.cc
  410. * test/BtAllowedFastMessageTest.cc
  411. * test/BtBitfieldMessageTest.cc
  412. * test/BtCancelMessageTest.cc
  413. * test/BtChokeMessageTest.cc
  414. * test/BtExtendedMessageTest.cc
  415. * test/BtHandshakeMessageTest.cc
  416. * test/BtHaveAllMessageTest.cc
  417. * test/BtHaveMessageTest.cc
  418. * test/BtHaveNoneMessageTest.cc
  419. * test/BtInterestedMessageTest.cc
  420. * test/BtNotInterestedMessageTest.cc
  421. * test/BtPieceMessageTest.cc
  422. * test/BtPortMessageTest.cc
  423. * test/BtRejectMessageTest.cc
  424. * test/BtRequestMessageTest.cc
  425. * test/BtSuggestPieceMessageTest.cc
  426. * test/BtUnchokeMessageTest.cc
  427. * test/DHTFindNodeReplyMessageTest.cc
  428. * test/DHTGetPeersReplyMessageTest.cc
  429. * test/DHTMessageFactoryImplTest.cc
  430. * test/DHTRoutingTableDeserializerTest.cc
  431. * test/DHTRoutingTableSerializerTest.cc
  432. * test/DefaultBtMessageFactoryTest.cc
  433. * test/DefaultExtensionMessageFactoryTest.cc
  434. * test/Makefile.am
  435. * test/PeerListProcessorTest.cc
  436. * test/PeerMessageUtilTest.cc: Removed.
  437. * test/UTPexExtensionMessageTest.cc
  438. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  439. Limit the size of values list when sending get_peers reply.
  440. * src/DHTGetPeersReplyMessage.cc
  441. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  442. Updated banner
  443. * doc/xmlrpc/aria2rpc
  444. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  445. Added missing help message for remove command.
  446. * doc/xmlrpc/aria2rpc
  447. 2009-09-24 Tatsuhiro Tsujikawa <[email protected]>
  448. Generated configure and config.h.in
  449. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  450. Add check for fork(), which is missing on MinGW
  451. * src/daemon.cc
  452. * configure.ac
  453. 2009-09-23 Tatsuhiro Tsujikawa <[email protected]>
  454. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  455. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  456. Util::httpGMT().
  457. * src/Util.cc
  458. * src/Util.h
  459. * test/UtilTest.cc
  460. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  461. * Release 1.6.0
  462. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  463. Fixed a path to xmlrpc/README.txt
  464. * doc/Makefile.am
  465. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  466. Added XML-RPC in -v Configuration output.
  467. * src/FeatureConfig.cc
  468. * src/FeatureConfig.h
  469. * test/FeatureConfigTest.cc
  470. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  471. Updated Bulgarian, Russian, Slovak and Japanese
  472. translations. Thanks to all translators.
  473. * po/bg.po
  474. * po/ja.po
  475. * po/ru.po
  476. * po/sk.po
  477. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  478. Removed --retry-wait option from aria2rpc
  479. * doc/xmlrpc/aria2rpc
  480. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  481. Removed --retry-wait option from man page.
  482. * doc/aria2c.1.txt
  483. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  484. Removed --retry-wait option since the current architecture doesn't
  485. allow sleep for particular URI.
  486. * src/AbstractCommand.cc
  487. * src/OptionHandlerFactory.cc
  488. * src/download_helper.cc
  489. * src/prefs.cc
  490. * src/prefs.h
  491. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  492. Removed Retry-After header support. Since the current architecture
  493. doesn't allow sleep for particular URI.
  494. * src/HttpSkipResponseCommand.cc
  495. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  496. Updated the help message for --daemon option.
  497. * doc/aria2c.1.txt
  498. * src/usage_text.h
  499. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  500. Added our own daemon() function for systems which desn't have
  501. daemon(3).
  502. * configure.ac
  503. * src/Makefile.am
  504. * src/daemon.cc
  505. * src/daemon.h
  506. * src/option_processing.cc
  507. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  508. Simplified File::getCurrentDir()
  509. * src/File.cc
  510. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  511. Use exit() instead of _exit
  512. * src/RequestGroupMan.cc
  513. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  514. Replaced "CATEGORY" with "TAGS".
  515. * src/usage_text.h
  516. * doc/aria2c.1.txt
  517. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  518. Updated the help message for --help option.
  519. * src/usage_text.h
  520. * doc/aria2c.1.txt
  521. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  522. Updated man page for added help tags.
  523. * doc/aria2c.1.txt
  524. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  525. Added help category #file. Added #file tag to the options related
  526. to downloaded file.
  527. * src/OptionHandlerFactory.cc
  528. * src/help_tags.h
  529. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  530. Added help categories: #cookie and #hook. Added #https tag to
  531. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  532. * src/OptionHandlerFactory.cc
  533. * src/help_tags.h
  534. 2009-09-16 Tatsuhiro Tsujikawa <[email protected]>
  535. Made MSG_NOT_FILE translatable.
  536. * src/message.h
  537. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  538. Updated man page for --help option.
  539. * doc/aria2c.1.txt
  540. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  541. Updated doc.
  542. * src/XmlRpcMethod.h
  543. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  544. Help category now starts with "#" to distinguish a category from
  545. keyword search. For example, "http" categroy is now "#http". You
  546. can type "--help=#http" to get explanation of options related to
  547. http. If '#' is omitted, then the argument is treated as a keyword
  548. and aria2 searches options whose name includes the keyword and
  549. print matched ones. For example, "--help=http" will show options
  550. whose name includes "http".
  551. * src/OptionHandlerFactory.cc
  552. * src/help_tags.h
  553. * src/usage_text.h
  554. * src/version_usage.cc
  555. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  556. Documented missing experimental tag and newly added xml-rpc tag in
  557. man page.
  558. * doc/aria2c.1.txt
  559. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  560. Added xml-rpc help tag. Tagged xml-rpc related options with
  561. xml-rpc tag.
  562. * src/OptionHandlerFactory.cc
  563. * src/help_tags.h
  564. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  565. Updated message when a path is not a file. Updated common message
  566. for wrong option.
  567. * src/OptionHandlerException.cc
  568. * src/message.h
  569. 2009-09-10 Tatsuhiro Tsujikawa <[email protected]>
  570. Use File::isFile() instead of File::exists(). Updated message when
  571. a path is not a file.
  572. * src/OptionHandlerImpl.cc
  573. * src/message.h
  574. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  575. Fixed the bug that server performence profile is not updated when
  576. aria2c was terminated by emergency shutdown.
  577. * src/TrackerWatcherCommand.cc
  578. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  579. Use LocalFilePathOptionHandler for -T and -M option.
  580. Updated message of MSG_FILE_NOT_EXIST.
  581. * src/OptionHandlerFactory.cc
  582. * src/message.h
  583. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  584. Added LocalFilePathOptionHandler which check whether the specified
  585. file path does exist or not.
  586. * src/OptionHandlerImpl.cc
  587. * src/message.h
  588. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  589. Updated wiki page URI.
  590. * README
  591. * doc/aria2c.1.txt
  592. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  593. Added README.txt for xmlrpc directory.
  594. * doc/Makefile.am
  595. * doc/xmlrpc/README.txt
  596. 2009-09-06 Tatsuhiro Tsujikawa <[email protected]>
  597. Bump up version number to 1.6.0.
  598. * configure.ac
  599. 2009-09-01 Tatsuhiro Tsujikawa <[email protected]>
  600. Added XML-RPC client scripts written in ruby.
  601. * doc/Makefile.am
  602. * doc/xmlrpc/aria2mon
  603. * doc/xmlrpc/aria2rpc
  604. 2009-08-31 Tatsuhiro Tsujikawa <[email protected]>
  605. Added support for IPv6 literal address in URI. Now aria2 can
  606. handle URI such as http://[::1]/
  607. * src/HttpRequest.cc
  608. * src/HttpRequest.h
  609. * src/Request.cc
  610. * src/Request.h
  611. * test/HttpRequestTest.cc
  612. * test/OptionHandlerTest.cc
  613. * test/RequestTest.cc
  614. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  615. Fixed the bug that HTTP request header for XML-RPC request is not
  616. parsed properly.
  617. * src/HttpHeader.cc
  618. * src/HttpHeaderProcessor.cc
  619. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  620. Fixed the bug that XML-RPC authorization might be done before HTTP
  621. request header is fully received.
  622. * src/HttpServerCommand.cc
  623. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  624. Documented --xml-rpc-listen-all option in man page.
  625. * doc/aria2c.1.txt
  626. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  627. Added --xml-rpc-listen-all option. If true is given to this
  628. option, aria2 listens incoming XML-RPC requests on all network
  629. interfaces. If false is given, listens only on local loopback
  630. interface. The default value is false.
  631. * src/HttpListenCommand.cc
  632. * src/OptionHandlerFactory.cc
  633. * src/SocketCore.cc
  634. * src/SocketCore.h
  635. * src/prefs.cc
  636. * src/prefs.h
  637. * src/usage_text.h
  638. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  639. * Release 1.5.2
  640. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  641. Updated Ukrainian and Russian translations. Thanks to all
  642. translators.
  643. * po/ru.po
  644. * po/uk.po
  645. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  646. Bump up version number to 1.5.2
  647. * configure.ac
  648. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  649. Get comment, comment.utf-8, created by and creation date from
  650. .torrent file and print them in -S output.
  651. * src/bittorrent_helper.cc
  652. * src/bittorrent_helper.h
  653. * test/BittorrentHelperTest.cc
  654. * test/test.torrent
  655. * test/utf8.torrent
  656. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  657. Show exact file size along in -S option output.
  658. * src/Util.h
  659. * src/bittorrent_helper.cc
  660. * test/UtilTest.cc
  661. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  662. Avoided unnecessary memory allocation in
  663. BitfieldMan::getCompletedLength().
  664. * src/BitfieldMan.cc
  665. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  666. Fixed the bug that download fails if
  667. SocketCore::establishConnection() throws exception and aria2
  668. doesn't try another address.
  669. * src/AbstractCommand.cc
  670. * src/InitiateConnectionCommand.cc
  671. * src/message.h
  672. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  673. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  674. detected properly.
  675. * m4/sqlite3.m4
  676. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  677. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  678. because it causes compile error if PARAMS macro is defined.
  679. * src/XmlRpcElements.cc
  680. * src/XmlRpcElements.h
  681. * src/XmlRpcRequestParserStateImpl.cc
  682. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  683. * Release 1.5.1
  684. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  685. Bump up version number to 1.5.1
  686. * configure.ac
  687. 2009-07-25 Tatsuhiro Tsujikawa <[email protected]>
  688. Fixed compile error without BitTorrent support
  689. * src/DefaultBtProgressInfoFile.cc
  690. * src/DownloadEngine.cc
  691. * src/DownloadEngine.h
  692. 2009-07-24 Tatsuhiro Tsujikawa <[email protected]>
  693. Added missing '=' in Download Results
  694. * src/RequestGroupMan.cc
  695. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  696. Fixed compiler warning
  697. * src/DefaultBtProgressInfoFile.cc
  698. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  699. Fixed compiler warning on 32bit systems.
  700. * src/DownloadCommand.cc
  701. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  702. Call flush from ServerStatMan::save()
  703. * src/ServerStatMan.cc
  704. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  705. Check stream status after file is opened.
  706. * src/CookieStorage.cc
  707. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  708. Rewritten Signature::save()
  709. * src/Signature.cc
  710. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  711. Rewritten RequestGroupMan::saveServerStat()
  712. * src/RequestGroupMan.cc
  713. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  714. Rewritten stream error handling
  715. * src/DHTAutoSaveCommand.cc
  716. * src/DHTRoutingTableDeserializer.cc
  717. * src/DHTRoutingTableSerializer.cc
  718. * src/DHTSetup.cc
  719. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  720. Check stream status after file is opened.
  721. * src/DefaultBtProgressInfoFile.cc
  722. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  723. Rewritten stream error handling
  724. * src/DefaultBtProgressInfoFile.cc
  725. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  726. Make sure that stream is closed before renaming file. Unit test
  727. fails on mingw32 in the previous implementation.
  728. * src/CookieStorage.cc
  729. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  730. Fixed the unit test error without sqlite3
  731. * test/CookieStorageTest.cc
  732. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  733. Fixed the undefined reference error
  734. * test/HttpResponseTest.cc
  735. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  736. * Release 1.5.0
  737. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  738. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  739. Ukrainian translations. Thanks to all translators.
  740. * po/ru.po
  741. * po/it.po
  742. * po/da.po
  743. * po/bg.po
  744. * po/ja.po
  745. * po/uk.po
  746. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  747. Added missing src/Logger.cc
  748. * src/Logger.cc
  749. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  750. Rewritten Logger to avoiding constly virtual call.
  751. * src/LogFactory.cc
  752. * src/LogFactory.h
  753. * src/Logger.h
  754. * src/Makefile.am
  755. * src/Makefile.in
  756. * src/NullLogger.h: Removed.
  757. * src/SimpleLogger.cc
  758. * src/SimpleLogger.h
  759. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  760. Updated doc
  761. * src/main.cc
  762. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  763. Updated debug log message
  764. * src/AbstractCommand.cc
  765. * src/message.h
  766. 2009-07-16 Tatsuhiro Tsujikawa <[email protected]>
  767. Avoid to create zombie process when commands specified in
  768. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  769. X and NetBSD.
  770. * src/main.cc
  771. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  772. Fixed typo
  773. * src/usage_text.h
  774. * doc/aria2c.1.txt
  775. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  776. Documented 'errorCode' of tellStatus in man page.
  777. * doc/aria2c.1.txt
  778. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  779. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  780. This key is only available for stopped/completed downloads and its
  781. value is the error code defined in EXIT STATUS in man page.
  782. * src/XmlRpcMethodImpl.cc
  783. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  784. Fixed the bug that session download length is not updated when
  785. PeerStat is not fastest one.
  786. * src/SegmentMan.cc
  787. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  788. Updated doc.
  789. * doc/aria2c.1.txt
  790. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  791. Updated doc.
  792. * src/AbstractCommand.cc
  793. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  794. Handle the case when DownloadContext has no FileEntry.
  795. * src/XmlRpcMethodImpl.cc
  796. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  797. Handle the situation where struct option.name is char *.
  798. * configure.ac
  799. * src/OptionParser.cc
  800. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  801. Code cleanup
  802. * src/AbstractCommand.cc
  803. * src/DownloadCommand.cc
  804. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  805. Use option of each download to create AuthConfig instead of global
  806. option.
  807. * src/AuthConfigFactory.cc
  808. * src/AuthConfigFactory.h
  809. * src/FtpNegotiationCommand.cc
  810. * src/HttpRequest.cc
  811. * src/HttpRequest.h
  812. * src/HttpRequestCommand.cc
  813. * src/HttpSkipResponseCommand.cc
  814. * src/MultiUrlRequestInfo.cc
  815. * test/AuthConfigFactoryTest.cc
  816. * test/FtpConnectionTest.cc
  817. * test/HttpRequestTest.cc
  818. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  819. Don't call prepareForRetry(1) if all segments are ignored in
  820. SegmentMan.
  821. * src/AbstractCommand.cc
  822. * src/BitfieldMan.cc
  823. * src/BitfieldMan.h
  824. * src/SegmentMan.cc
  825. * src/SegmentMan.h
  826. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  827. Removed FileEntry::getAssociatedUris()
  828. * src/FileEntry.h
  829. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  830. Updated doc: TODO1.5 -> TODO
  831. * src/FileEntry.cc
  832. * src/HttpResponseCommand.cc
  833. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  834. Added assertion fileEntries.size() == 1 if BitTorrent is not
  835. involved.
  836. * src/RequestGroup.cc
  837. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  838. Eliminated duplicated filterBitfield initialization code.
  839. * src/BitfieldMan.cc
  840. * src/BitfieldMan.h
  841. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  842. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  843. relatively naive approach, though). For DownloadFailureException,
  844. we handle the case when req is null properly.
  845. * src/AbstractCommand.cc
  846. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  847. Added function returning suffix of control file to
  848. DefaultBtProgressInfoFile.
  849. * src/DefaultBtProgressInfoFile.cc
  850. * src/DefaultBtProgressInfoFile.h
  851. * src/RequestGroup.cc
  852. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  853. Documented getVersion in man page.
  854. * doc/aria2c.1.txt
  855. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  856. Documented type of offset and num for tellWaiting xml-rpc method.
  857. * doc/aria2c.1.txt
  858. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  859. Implemented getVersion xml-rpc method. This method returns struct
  860. which has 2 key-value pairs: "version" key is associated to the
  861. version of aria2, such as "1.5.0". "enabledFeatures" key is
  862. associated to the list of enabled features, such as "Async DNS",
  863. "BitTorrent".
  864. * src/FeatureConfig.h
  865. * src/XmlRpcMethodFactory.cc
  866. * src/XmlRpcMethodImpl.cc
  867. * src/XmlRpcMethodImpl.h
  868. * test/XmlRpcMethodTest.cc
  869. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  870. Removed TLS1.1 protocol support when aria2 is built with gnutls
  871. for compatibility issue.
  872. * src/SocketCore.cc
  873. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  874. Fixed compile error with openSSL
  875. * src/bittorrent_helper.cc
  876. * src/messageDigest.h
  877. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  878. Removed bad code: setting certificate type priority to key
  879. exchange priority.
  880. * src/SocketCore.cc
  881. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  882. Disconnect seeder if client is also in seed state.
  883. * src/BtBitfieldMessage.cc
  884. * src/BtHaveAllMessage.cc
  885. * src/BtHaveMessage.cc
  886. * src/message.h
  887. * test/BtBitfieldMessageTest.cc
  888. * test/BtHaveAllMessageTest.cc
  889. * test/BtHaveMessageTest.cc
  890. * test/MockPieceStorage.h
  891. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  892. Keep CreateRequestCommand in queue when no segment is available so
  893. that they can pick up pieces which slow BitTorrent peers are
  894. downloading.
  895. * src/AbstractCommand.cc
  896. * src/CreateRequestCommand.cc
  897. * src/CreateRequestCommand.h
  898. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  899. --bt-stop-timeout now only checks download speed.
  900. * src/BtStopDownloadCommand.cc
  901. * src/BtStopDownloadCommand.h
  902. * src/BtSetup.cc
  903. * src/usage_text.h
  904. * doc/aria2c.1.txt
  905. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  906. Fixed compile error regarding BUFSIZE.
  907. * src/DownloadCommand.cc
  908. * src/DownloadCommand.h
  909. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  910. Documented tellWaiting xml-rpc method in man page.
  911. * doc/aria2c.1.txt
  912. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  913. Bump up version number to 1.5.0
  914. * configure.ac
  915. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  916. Removed resolved TODO1.5
  917. * src/AbstractCommand.cc
  918. * src/DownloadCommand.cc
  919. * src/RequestGroup.cc
  920. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  921. Release pooled and in-flight Request objectsand URIResult objects
  922. in FileEntry after download completed.
  923. * src/DownloadContext.cc
  924. * src/DownloadContext.h
  925. * src/FileEntry.cc
  926. * src/FileEntry.h
  927. * src/RequestGroup.cc
  928. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  929. Set manual and source attribute in aria2c.1.txt
  930. * doc/aria2c.1.txt
  931. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  932. Documented that the default value of --use-head is 'false' in man
  933. page.
  934. * doc/aria2c.1.txt
  935. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  936. Added bt-stop-timeout option to -i list.
  937. * doc/aria2c.1.txt
  938. * src/download_helper.cc
  939. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  940. Fixed typo
  941. * doc/aria2c.1.txt
  942. * src/usage_text.h
  943. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  944. Removed peer-id-prefix option from -i list.
  945. * doc/aria2c.1.txt
  946. * src/download_helper.cc
  947. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  948. Fixed typo
  949. * doc/aria2c.1.txt
  950. * src/usage_text.h
  951. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  952. Documented --bt-stop-timeout option in man page.
  953. * doc/aria2c.1.txt
  954. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  955. Updated README regarding multi-file torrent web-seeding.
  956. * doc/README.txt
  957. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  958. Updated man page regarding multi-file torrent web-seeding.
  959. * doc/aria2c.1.txt
  960. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  961. Updated doc
  962. * src/version_usage.cc
  963. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  964. Winsock select() doesn't work if no socket is in FD_SET. To
  965. overcome this problem, a dummy socket is added to FD_SET and it is
  966. given to select().
  967. * src/SelectEventPoll.cc
  968. * src/SelectEventPoll.h
  969. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  970. Disabled --use-head option by default because --use-head=true
  971. causes problems on some web sites.
  972. * src/OptionHandlerFactory.cc
  973. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  974. Print URL List in -S option for torrent.
  975. * src/bittorrent_helper.cc
  976. * src/bittorrent_helper.h
  977. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  978. Allocate buffer in ctor of DownloadCommand.
  979. * src/DownloadCommand.cc
  980. * src/DownloadCommand.h
  981. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  982. Removed DiskAdaptor::onDownloadComplete()
  983. * src/DirectDiskAdaptor.cc
  984. * src/DirectDiskAdaptor.h
  985. * src/DiskAdaptor.h
  986. * src/MultiDiskAdaptor.cc
  987. * src/MultiDiskAdaptor.h
  988. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  989. Committed missing BtStopDownloadCommand.{cc,h}
  990. * src/BtStopDownloadCommand.cc
  991. * src/BtStopDownloadCommand.h
  992. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  993. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  994. download if the download speed is 0 and the number of seeder is 0
  995. in consecutive SEC seconds. By default, this function is disabled.
  996. * src/BtSetup.cc
  997. * src/Makefile.am
  998. * src/OptionHandlerFactory.cc
  999. * src/prefs.cc
  1000. * src/prefs.h
  1001. * src/usage_text.h
  1002. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1003. Removed the call to DiskAdaptor::onDownloadComplete() from
  1004. BtCheckIntegrityEntry and DefaultPieceStorage.
  1005. * src/BtCheckIntegrityEntry.cc
  1006. * src/DefaultPieceStorage.cc
  1007. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1008. Commented out throw statements when number of piece is 0 to
  1009. download 0 length torrent.
  1010. * src/bittorrent_helper.cc
  1011. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1012. Call RequestGroup::createNextCommandWithAdj() from
  1013. BtFileAllocationEntry if at least one FileEntry has URI. The
  1014. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1015. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1016. * src/BtFileAllocationEntry.cc
  1017. * src/FileEntry.h
  1018. * src/RequestGroup.cc
  1019. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1020. Generate peer ID after SimpleRandomizer is initialized.
  1021. * src/main.cc
  1022. * src/option_processing.cc
  1023. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1024. Removed unused method argument.
  1025. * src/CreateRequestCommand.cc
  1026. * src/RequestGroup.cc
  1027. * src/RequestGroup.h
  1028. * src/RequestGroupMan.cc
  1029. * src/TrackerWatcherCommand.cc
  1030. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1031. Made URI reusing function work.
  1032. * src/CreateRequestCommand.cc
  1033. * src/FileEntry.cc
  1034. * src/FileEntry.h
  1035. * test/FileEntryTest.cc
  1036. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1037. Add formerly fastest PeerStat's sessionDownloadLength to new
  1038. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1039. bytes in a session.
  1040. * src/PeerStat.cc
  1041. * src/SegmentMan.cc
  1042. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1043. If pipelining is enabled, we can always pool socket.
  1044. * src/HttpDownloadCommand.cc
  1045. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1046. In a single file download, file size becomes known just after
  1047. downloading, set total length to FileEntry object when download
  1048. completed.
  1049. * src/DownloadCommand.cc
  1050. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1051. Use std::vector::reserve() for fileEntries and pieceHashes in
  1052. bittorrent_helper
  1053. * src/bittorrent_helper.cc
  1054. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1055. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1056. Removed hidden option PREF_RESET_URI.
  1057. * src/AbstractCommand.cc
  1058. * src/OptionHandlerFactory.cc
  1059. * src/prefs.cc
  1060. * src/prefs.h
  1061. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1062. Removed unused variable/function.
  1063. * src/PeerStat.h
  1064. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1065. Show first URL in Download Results if file path is not available.
  1066. * src/FileEntry.h
  1067. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1068. Throw exception if file path doesn't exist in FTP URL.
  1069. * src/InitiateConnectionCommandFactory.cc
  1070. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1071. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1072. * src/BitfieldMan.cc
  1073. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1074. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1075. of PeerStat in SegmentMan. peerStats is used for calculating
  1076. download speed. Therefore all active PeerStats should be in
  1077. there. Another one is _fastestPeerStats and it only contains
  1078. fastest PeerStat for each hostname/protocol pair. They are used
  1079. for updating ServerStat.
  1080. * src/DownloadCommand.cc
  1081. * src/Request.h
  1082. * src/RequestGroupMan.cc
  1083. * src/SegmentMan.cc
  1084. * src/SegmentMan.h
  1085. * test/SegmentManTest.cc
  1086. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1087. Try all available addresses returned by DNS until it gets
  1088. connected in HTTP(S)/FTP download
  1089. * src/AbstractCommand.cc
  1090. * src/AbstractCommand.h
  1091. * src/AbstractProxyRequestCommand.cc
  1092. * src/AbstractProxyRequestCommand.h
  1093. * src/DNSCache.h
  1094. * src/DownloadEngine.cc
  1095. * src/DownloadEngine.h
  1096. * src/FtpInitiateConnectionCommand.cc
  1097. * src/FtpInitiateConnectionCommand.h
  1098. * src/FtpNegotiationCommand.cc
  1099. * src/FtpNegotiationCommand.h
  1100. * src/HttpInitiateConnectionCommand.cc
  1101. * src/HttpInitiateConnectionCommand.h
  1102. * src/HttpRequestCommand.cc
  1103. * src/HttpRequestCommand.h
  1104. * src/InitiateConnectionCommand.cc
  1105. * src/InitiateConnectionCommand.h
  1106. * test/DNSCacheTest.cc
  1107. * test/Makefile.am
  1108. * test/SimpleDNSCacheTest.cc
  1109. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1110. Updated doc
  1111. * src/download_helper.cc
  1112. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1113. Refactored fieldMan ctor.
  1114. * src/BitfieldMan.cc
  1115. * src/BitfieldMan.h
  1116. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1117. Don't print "No files to download." message if -S is given.
  1118. * src/main.cc
  1119. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1120. Set referer and method to newly created Request object.
  1121. * src/CreateRequestCommand.cc
  1122. * src/FileEntry.cc
  1123. * src/FileEntry.h
  1124. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1125. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1126. * src/AbstractCommand.cc
  1127. * src/AbstractCommand.h
  1128. * src/CreateRequestCommand.cc
  1129. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1130. Get proxy download working
  1131. * src/AbstractProxyRequestCommand.cc
  1132. * src/AbstractProxyRequestCommand.h
  1133. * src/AbstractProxyResponseCommand.cc
  1134. * src/AbstractProxyResponseCommand.h
  1135. * src/FtpInitiateConnectionCommand.cc
  1136. * src/FtpTunnelRequestCommand.cc
  1137. * src/FtpTunnelRequestCommand.h
  1138. * src/FtpTunnelResponseCommand.cc
  1139. * src/FtpTunnelResponseCommand.h
  1140. * src/HttpInitiateConnectionCommand.cc
  1141. * src/HttpProxyRequestCommand.cc
  1142. * src/HttpProxyRequestCommand.h
  1143. * src/HttpProxyResponseCommand.cc
  1144. * src/HttpProxyResponseCommand.h
  1145. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1146. Use SegmentMan::getSegment(cuid) for single file download.
  1147. * src/AbstractCommand.cc
  1148. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1149. Fixed bufSize calculation
  1150. * src/DownloadCommand.cc
  1151. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1152. Don't append "/" if base URI ends with "/".
  1153. * src/bittorrent_helper.cc
  1154. * test/url-list-multiFile.torrent
  1155. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1156. HTTP pipelining is now working. Fixed Segmention fault in
  1157. BitfieldMan's copy ctor.
  1158. * src/AbstractCommand.cc
  1159. * src/BitfieldMan.cc
  1160. * src/BitfieldMan.h
  1161. * src/DownloadCommand.cc
  1162. * src/HttpDownloadCommand.cc
  1163. * src/HttpRequest.cc
  1164. * src/SegmentMan.cc
  1165. * src/SegmentMan.h
  1166. * test/BitfieldManTest.cc
  1167. * test/SegmentManTest.cc
  1168. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  1169. Removed ServerHost. Same functionality is implemented using
  1170. FileEntry's in-flight Request objects.
  1171. * src/AbstractCommand.cc
  1172. * src/BtDependency.cc
  1173. * src/CreateRequestCommand.cc
  1174. * src/FileEntry.cc
  1175. * src/FileEntry.h
  1176. * src/FtpNegotiationCommand.cc
  1177. * src/HttpResponseCommand.cc
  1178. * src/Makefile.am
  1179. * src/Metalink2RequestGroup.cc
  1180. * src/RequestGroup.cc
  1181. * src/RequestGroup.h
  1182. * src/ServerHost.cc: Removed
  1183. * src/ServerHost.h: Removed
  1184. * test/BtDependencyTest.cc
  1185. * test/FileEntryTest.cc
  1186. * test/RequestGroupTest.cc
  1187. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  1188. Rewritten PeerStat handling. In the previous implementation,
  1189. faster command tries to find slower command. In this new
  1190. implementation, slower command tries to find faster command.
  1191. PeerStat is now created in each HTTP/FTP request to get download
  1192. rate correctly. If the download range is small, the download rate
  1193. tends to small and this will occur at the later stage of download.
  1194. * src/AbstractCommand.cc
  1195. * src/DownloadCommand.cc
  1196. * src/FileEntry.cc
  1197. * src/FileEntry.h
  1198. * src/Request.cc
  1199. * src/Request.h
  1200. * src/RequestGroup.h
  1201. * src/RequestGroupMan.cc
  1202. * src/SegmentMan.cc
  1203. * src/SegmentMan.h
  1204. * test/SegmentManTest.cc
  1205. 2009-06-29 Tatsuhiro Tsujikawa <[email protected]>
  1206. Removed _uris from RequestGroup. All functions that refer to _uris
  1207. were moved to FileEntry. Exit status code are now defined in
  1208. DownloadResultCode.h.
  1209. * src/AbstractCommand.cc
  1210. * src/AdaptiveURISelector.cc
  1211. * src/AdaptiveURISelector.h
  1212. * src/AutoSaveCommand.cc
  1213. * src/BtPostDownloadHandler.cc
  1214. * src/CheckIntegrityDispatcherCommand.cc
  1215. * src/CookieStorage.cc
  1216. * src/DHTAutoSaveCommand.cc
  1217. * src/DHTBucketRefreshCommand.cc
  1218. * src/DHTEntryPointNameResolveCommand.cc
  1219. * src/DHTInteractionCommand.cc
  1220. * src/DHTPeerAnnounceCommand.cc
  1221. * src/DHTTokenUpdateCommand.cc
  1222. * src/DlAbortEx.h
  1223. * src/DlRetryEx.h
  1224. * src/DownloadCommand.cc
  1225. * src/DownloadContext.h
  1226. * src/DownloadFailureException.h
  1227. * src/DownloadResult.h
  1228. * src/DownloadResultCode.h
  1229. * src/FeedbackURISelector.cc
  1230. * src/FeedbackURISelector.h
  1231. * src/FileEntry.cc
  1232. * src/FileEntry.h
  1233. * src/FtpNegotiationCommand.cc
  1234. * src/HttpListenCommand.cc
  1235. * src/HttpResponseCommand.cc
  1236. * src/HttpServerResponseCommand.cc
  1237. * src/HttpSkipResponseCommand.cc
  1238. * src/InOrderURISelector.cc
  1239. * src/InOrderURISelector.h
  1240. * src/Makefile.am
  1241. * src/Makefile.in
  1242. * src/Metalink2RequestGroup.cc
  1243. * src/MultiUrlRequestInfo.cc
  1244. * src/MultiUrlRequestInfo.h
  1245. * src/OptionHandlerFactory.cc
  1246. * src/PeerListenCommand.cc
  1247. * src/RecoverableException.h
  1248. * src/RequestGroup.cc
  1249. * src/RequestGroup.h
  1250. * src/RequestGroupMan.cc
  1251. * src/RequestGroupMan.h
  1252. * src/TimedHaltCommand.cc
  1253. * src/TrackerWatcherCommand.cc
  1254. * src/URIResult.cc
  1255. * src/URIResult.h
  1256. * src/URISelector.h
  1257. * src/XmlRpcMethodImpl.cc
  1258. * src/bittorrent_helper.cc
  1259. * src/bittorrent_helper.h
  1260. * src/download_helper.cc
  1261. * src/main.cc
  1262. * src/option_processing.cc
  1263. * test/BtDependencyTest.cc
  1264. * test/BtPostDownloadHandlerTest.cc
  1265. * test/CookieStorageTest.cc
  1266. * test/DefaultBtMessageDispatcherTest.cc
  1267. * test/DownloadHandlerFactoryTest.cc
  1268. * test/DownloadHelperTest.cc
  1269. * test/FeedbackURISelectorTest.cc
  1270. * test/FileEntryTest.cc
  1271. * test/InOrderURISelectorTest.cc
  1272. * test/Metalink2RequestGroupTest.cc
  1273. * test/MetalinkPostDownloadHandlerTest.cc
  1274. * test/RequestGroupManTest.cc
  1275. * test/RequestGroupTest.cc
  1276. * test/XmlRpcMethodTest.cc
  1277. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  1278. Removed MockBtContext.h
  1279. * test/Makefile.am
  1280. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  1281. Removed _currentRequest from StreamCheckIntegrityEntry and
  1282. StreamFileAllocationEntry.
  1283. * src/AbstractCommand.cc
  1284. * src/HttpResponseCommand.cc
  1285. * src/RequestGroup.cc
  1286. * src/StreamCheckIntegrityEntry.cc
  1287. * src/StreamCheckIntegrityEntry.h
  1288. * src/StreamFileAllocationEntry.cc
  1289. * src/StreamFileAllocationEntry.h
  1290. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  1291. Rewritten DownloadContext and removed SingleFileDownloadContext
  1292. and BtContext and its derived classes. BitTorrent specific
  1293. attributes are now set by DownloadContext::setAttribute() with key
  1294. bittorrent::BITTORRENT.
  1295. * src/AbstractBtMessage.cc
  1296. * src/AbstractBtMessage.h
  1297. * src/AbstractCommand.cc
  1298. * src/AbstractCommand.h
  1299. * src/AbstractProxyRequestCommand.cc
  1300. * src/AbstractProxyResponseCommand.cc
  1301. * src/ActivePeerConnectionCommand.cc
  1302. * src/ActivePeerConnectionCommand.h
  1303. * src/AnnounceList.cc
  1304. * src/BtCheckIntegrityEntry.cc
  1305. * src/BtConstants.h
  1306. * src/BtContext.h: Removed
  1307. * src/BtDependency.cc
  1308. * src/BtExtendedMessage.cc
  1309. * src/BtPieceMessage.cc
  1310. * src/BtPieceMessage.h
  1311. * src/BtPostDownloadHandler.cc
  1312. * src/BtRegistry.cc
  1313. * src/BtRegistry.h
  1314. * src/BtSetup.cc
  1315. * src/CheckIntegrityCommand.cc
  1316. * src/CheckIntegrityEntry.cc
  1317. * src/ChecksumCheckIntegrityEntry.cc
  1318. * src/ConsoleStatCalc.cc
  1319. * src/ContentTypeRequestGroupCriteria.cc
  1320. * src/DHTGetPeersCommand.cc
  1321. * src/DHTGetPeersCommand.h
  1322. * src/DHTPeerLookupTask.cc
  1323. * src/DHTPeerLookupTask.h
  1324. * src/DHTTaskFactory.h
  1325. * src/DHTTaskFactoryImpl.cc
  1326. * src/DHTTaskFactoryImpl.h
  1327. * src/DefaultBtAnnounce.cc
  1328. * src/DefaultBtAnnounce.h
  1329. * src/DefaultBtContext.cc: Removed
  1330. * src/DefaultBtContext.h: Removed
  1331. * src/DefaultBtInteractive.cc
  1332. * src/DefaultBtInteractive.h
  1333. * src/DefaultBtMessageDispatcher.cc
  1334. * src/DefaultBtMessageDispatcher.h
  1335. * src/DefaultBtMessageFactory.cc
  1336. * src/DefaultBtMessageFactory.h
  1337. * src/DefaultBtMessageReceiver.cc
  1338. * src/DefaultBtMessageReceiver.h
  1339. * src/DefaultBtProgressInfoFile.cc
  1340. * src/DefaultBtRequestFactory.cc
  1341. * src/DefaultBtRequestFactory.h
  1342. * src/DefaultExtensionMessageFactory.cc
  1343. * src/DefaultExtensionMessageFactory.h
  1344. * src/DefaultPeerStorage.cc
  1345. * src/DefaultPeerStorage.h
  1346. * src/DefaultPieceStorage.cc
  1347. * src/DefaultSegmentManFactory.cc
  1348. * src/DiskAdaptor.cc
  1349. * src/DiskAdaptor.h
  1350. * src/DownloadContext.cc
  1351. * src/DownloadContext.h
  1352. * src/DownloadEngine.cc
  1353. * src/DownloadEngineFactory.cc
  1354. * src/DownloadHandler.cc
  1355. * src/DownloadResult.h
  1356. * src/FileAllocationCommand.cc
  1357. * src/FileAllocationDispatcherCommand.cc
  1358. * src/FileAllocationEntry.cc
  1359. * src/FileEntry.h
  1360. * src/FillRequestGroupCommand.cc
  1361. * src/FtpDownloadCommand.cc
  1362. * src/FtpFinishDownloadCommand.cc
  1363. * src/FtpInitiateConnectionCommand.cc
  1364. * src/FtpNegotiationCommand.cc
  1365. * src/FtpTunnelRequestCommand.cc
  1366. * src/FtpTunnelResponseCommand.cc
  1367. * src/HandshakeExtensionMessage.cc
  1368. * src/HandshakeExtensionMessage.h
  1369. * src/HaveEraseCommand.cc
  1370. * src/HttpDownloadCommand.cc
  1371. * src/HttpInitiateConnectionCommand.cc
  1372. * src/HttpProxyRequestCommand.cc
  1373. * src/HttpProxyResponseCommand.cc
  1374. * src/HttpRequest.cc
  1375. * src/HttpRequest.h
  1376. * src/HttpRequestCommand.cc
  1377. * src/HttpResponseCommand.cc
  1378. * src/HttpServerBodyCommand.cc
  1379. * src/HttpServerCommand.cc
  1380. * src/HttpSkipResponseCommand.cc
  1381. * src/InitiateConnectionCommandFactory.cc
  1382. * src/InitiatorMSEHandshakeCommand.cc
  1383. * src/InitiatorMSEHandshakeCommand.h
  1384. * src/IteratableChecksumValidator.cc
  1385. * src/IteratableChecksumValidator.h
  1386. * src/IteratableChunkChecksumValidator.cc
  1387. * src/MSEHandshake.cc
  1388. * src/MSEHandshake.h
  1389. * src/Makefile.am
  1390. * src/Makefile.in
  1391. * src/Metalink2RequestGroup.cc
  1392. * src/MetalinkPostDownloadHandler.cc
  1393. * src/MultiDiskAdaptor.cc
  1394. * src/MultiDiskAdaptor.h
  1395. * src/MultiFileAllocationIterator.cc
  1396. * src/MultiUrlRequestInfo.cc
  1397. * src/PeerChokeCommand.cc
  1398. * src/PeerChokeCommand.h
  1399. * src/PeerInitiateConnectionCommand.cc
  1400. * src/PeerInitiateConnectionCommand.h
  1401. * src/PeerInteractionCommand.cc
  1402. * src/PeerInteractionCommand.h
  1403. * src/PeerReceiveHandshakeCommand.cc
  1404. * src/PieceHashCheckIntegrityEntry.cc
  1405. * src/RealtimeCommand.cc
  1406. * src/ReceiverMSEHandshakeCommand.cc
  1407. * src/RequestGroup.cc
  1408. * src/RequestGroup.h
  1409. * src/RequestGroupEntry.cc
  1410. * src/RequestGroupMan.cc
  1411. * src/SeedCheckCommand.cc
  1412. * src/SeedCheckCommand.h
  1413. * src/SegmentMan.cc
  1414. * src/ShareRatioSeedCriteria.h
  1415. * src/SingleFileDownloadContext.cc: Removed
  1416. * src/SingleFileDownloadContext.h: Removed
  1417. * src/SleepCommand.cc
  1418. * src/StreamCheckIntegrityEntry.cc
  1419. * src/TrackerWatcherCommand.cc
  1420. * src/TrackerWatcherCommand.h
  1421. * src/UnknownLengthPieceStorage.cc
  1422. * src/Util.cc
  1423. * src/Util.h
  1424. * src/XmlRpcMethodImpl.cc
  1425. * src/bittorrent_helper.cc
  1426. * src/bittorrent_helper.h
  1427. * src/download_helper.cc
  1428. * src/main.cc
  1429. * src/option_processing.cc
  1430. * test/BitfieldManTest.cc
  1431. * test/BittorrentHelperTest.cc
  1432. * test/BtCancelMessageTest.cc
  1433. * test/BtChokeMessageTest.cc
  1434. * test/BtDependencyTest.cc
  1435. * test/BtPieceMessageTest.cc
  1436. * test/BtPostDownloadHandlerTest.cc
  1437. * test/BtRegistryTest.cc
  1438. * test/BtRejectMessageTest.cc
  1439. * test/BtRequestMessageTest.cc
  1440. * test/DHTPeerAnnounceStorageTest.cc
  1441. * test/DefaultBtAnnounceTest.cc
  1442. * test/DefaultBtContextTest.cc: Removed
  1443. * test/DefaultBtMessageDispatcherTest.cc
  1444. * test/DefaultBtMessageFactoryTest.cc
  1445. * test/DefaultBtProgressInfoFileTest.cc
  1446. * test/DefaultBtRequestFactoryTest.cc
  1447. * test/DefaultExtensionMessageFactoryTest.cc
  1448. * test/DefaultPeerStorageTest.cc
  1449. * test/DefaultPieceStorageTest.cc
  1450. * test/DirectDiskAdaptorTest.cc
  1451. * test/DownloadContextTest.cc
  1452. * test/DownloadHandlerFactoryTest.cc
  1453. * test/DownloadHelperTest.cc
  1454. * test/HandshakeExtensionMessageTest.cc
  1455. * test/HttpRequestTest.cc
  1456. * test/HttpResponseTest.cc
  1457. * test/IteratableChecksumValidatorTest.cc
  1458. * test/IteratableChunkChecksumValidatorTest.cc
  1459. * test/MSEHandshakeTest.cc
  1460. * test/Makefile.am
  1461. * test/Makefile.in
  1462. * test/Metalink2RequestGroupTest.cc
  1463. * test/MetalinkPostDownloadHandlerTest.cc
  1464. * test/MockBtContext.h: Removed
  1465. * test/MockDHTTaskFactory.h
  1466. * test/MockDownloadContext.h: Removed
  1467. * test/MockPieceStorage.h
  1468. * test/MultiDiskAdaptorTest.cc
  1469. * test/MultiFileAllocationIteratorTest.cc
  1470. * test/RequestGroupManTest.cc
  1471. * test/RequestGroupTest.cc
  1472. * test/SegmentManTest.cc
  1473. * test/ShareRatioSeedCriteriaTest.cc
  1474. * test/SingleFileDownloadContextTest.cc: Removed
  1475. * test/UtilTest.cc
  1476. * test/XmlRpcMethodTest.cc
  1477. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  1478. Added experimental support of WEB-Seeding for multi-file torrent.
  1479. Due to fundamental changes in file handling in HTTP/FTP code, many
  1480. functions are not working: PeerStat, ServerHost, proxy..etc
  1481. * src/AbstractCommand.cc
  1482. * src/AbstractCommand.h
  1483. * src/BitfieldMan.cc
  1484. * src/BitfieldMan.h
  1485. * src/CreateRequestCommand.cc
  1486. * src/CreateRequestCommand.h
  1487. * src/DefaultPieceStorage.cc
  1488. * src/DefaultPieceStorage.h
  1489. * src/DownloadCommand.cc
  1490. * src/DownloadCommand.h
  1491. * src/DownloadContext.cc
  1492. * src/DownloadContext.h
  1493. * src/FileEntry.cc
  1494. * src/FileEntry.h
  1495. * src/FtpDownloadCommand.cc
  1496. * src/FtpDownloadCommand.h
  1497. * src/FtpFinishDownloadCommand.cc
  1498. * src/FtpFinishDownloadCommand.h
  1499. * src/FtpInitiateConnectionCommand.cc
  1500. * src/FtpInitiateConnectionCommand.h
  1501. * src/FtpNegotiationCommand.cc
  1502. * src/FtpNegotiationCommand.h
  1503. * src/FtpTunnelResponseCommand.cc
  1504. * src/HttpDownloadCommand.cc
  1505. * src/HttpDownloadCommand.h
  1506. * src/HttpInitiateConnectionCommand.cc
  1507. * src/HttpInitiateConnectionCommand.h
  1508. * src/HttpProxyResponseCommand.cc
  1509. * src/HttpRequest.cc
  1510. * src/HttpRequest.h
  1511. * src/HttpRequestCommand.cc
  1512. * src/HttpRequestCommand.h
  1513. * src/HttpResponseCommand.cc
  1514. * src/HttpResponseCommand.h
  1515. * src/HttpSkipResponseCommand.cc
  1516. * src/HttpSkipResponseCommand.h
  1517. * src/InitiateConnectionCommand.cc
  1518. * src/InitiateConnectionCommand.h
  1519. * src/InitiateConnectionCommandFactory.cc
  1520. * src/InitiateConnectionCommandFactory.h
  1521. * src/Makefile.am
  1522. * src/PieceStorage.h
  1523. * src/RequestGroup.cc
  1524. * src/RequestGroup.h
  1525. * src/RequestGroupMan.cc
  1526. * src/SegmentMan.cc
  1527. * src/SegmentMan.h
  1528. * src/SingleFileDownloadContext.h
  1529. * src/StreamFileAllocationEntry.cc
  1530. * src/TrackerWatcherCommand.cc
  1531. * src/UnknownLengthPieceStorage.cc
  1532. * src/UnknownLengthPieceStorage.h
  1533. * src/array_fun.h
  1534. * src/bitfield.h
  1535. * src/download_helper.cc
  1536. * test/DownloadContextTest.cc
  1537. * test/Makefile.am
  1538. * test/MockDownloadContext.h
  1539. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  1540. Added tellWaiting XML-RPC method.
  1541. * src/SingleFileDownloadContext.cc
  1542. * src/XmlRpcMethodFactory.cc
  1543. * src/XmlRpcMethodImpl.cc
  1544. * src/XmlRpcMethodImpl.h
  1545. * test/XmlRpcMethodTest.cc
  1546. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  1547. Updated CookieStorageTest
  1548. * test/CookieStorageTest.cc
  1549. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1550. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1551. handle excepion inside these functions.
  1552. * src/LibgnutlsTLSContext.cc
  1553. * src/LibgnutlsTLSContext.h
  1554. * src/LibsslTLSContext.cc
  1555. * src/LibsslTLSContext.h
  1556. * src/MultiUrlRequestInfo.cc
  1557. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1558. Added comment
  1559. * src/RequestGroup.cc
  1560. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1561. In CookieStorage::load() and saveNsFormat(), handle exception
  1562. inside the functions. When saving Cookies, first write temporary
  1563. file and after successful writes, then renames it to final
  1564. destination.
  1565. * src/CookieStorage.cc
  1566. * src/CookieStorage.h
  1567. * src/MultiUrlRequestInfo.cc
  1568. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1569. The default value of --dir option is the absolute path to the
  1570. current directory. If getcwd() is failed, then it is ".", which is
  1571. the same value with old implementation. This change is necessary
  1572. because after daemon() call, the current working directory is
  1573. changed to /.
  1574. * src/File.cc
  1575. * src/File.h
  1576. * src/OptionHandlerFactory.cc
  1577. * src/option_processing.cc
  1578. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1579. Call daemon() with arguments(0,0), which means daemon() changes
  1580. current working directory to / and redirects stdin, stdout and
  1581. stderr to /dev/null.
  1582. * src/option_processing.cc
  1583. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1584. Small performance optimizations.
  1585. * src/RequestGroupMan.cc
  1586. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  1587. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1588. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1589. * src/RequestGroupMan.cc
  1590. * src/RequestGroupMan.h
  1591. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  1592. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1593. setNoWiat(true) if newly created command calls
  1594. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1595. * src/HttpListenCommand.cc
  1596. * src/HttpServerBodyCommand.cc
  1597. * src/HttpServerCommand.cc
  1598. * src/HttpServerResponseCommand.cc
  1599. * src/InitiateConnectionCommand.cc
  1600. * src/RequestGroup.cc
  1601. * src/StreamFileAllocationEntry.cc
  1602. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  1603. Removed include vector
  1604. * src/BtRegistry.h
  1605. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  1606. Rewritten BtRegistry
  1607. * src/BtRegistry.cc
  1608. * src/BtRegistry.h
  1609. * src/BtSetup.cc
  1610. * src/ConsoleStatCalc.cc
  1611. * src/PeerInteractionCommand.cc
  1612. * src/PeerReceiveHandshakeCommand.cc
  1613. * src/ReceiverMSEHandshakeCommand.cc
  1614. * src/RequestGroup.cc
  1615. * src/XmlRpcMethodImpl.cc
  1616. * test/BtRegistryTest.cc
  1617. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1618. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1619. * src/DefaultBtProgressInfoFile.cc
  1620. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1621. Throw an exception if position is less than 0.
  1622. * src/XmlRpcMethodImpl.cc
  1623. * test/XmlRpcMethodTest.cc
  1624. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1625. Use writeFilePath() in ConsoleStatCalc.cc
  1626. * src/ConsoleStatCalc.cc
  1627. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1628. Receive the return value as const reference from
  1629. DownloadContext::getFileEntries().
  1630. * src/DefaultPieceStorage.cc
  1631. * src/RequestGroupMan.cc
  1632. * src/XmlRpcMethodImpl.cc
  1633. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1634. DownloadContext now has _fileEntries so that
  1635. DownloadContext::getFileEntries() can returns its const reference.
  1636. * src/DefaultBtContext.cc
  1637. * src/DefaultBtContext.h
  1638. * src/DownloadContext.cc
  1639. * src/DownloadContext.h
  1640. * src/SingleFileDownloadContext.cc
  1641. * src/SingleFileDownloadContext.h
  1642. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1643. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1644. writeFilePath() function template from RequestGroupMan.cc to
  1645. FileEntry.h
  1646. * src/FileEntry.h
  1647. * src/RequestGroupMan.cc
  1648. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1649. Documented 'position' parameter is starting from 0 in man page.
  1650. * doc/aria2c.1.txt
  1651. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  1652. Updated doc.
  1653. * src/MSEHandshake.cc
  1654. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  1655. Removed _acceptFeatures and its accessor functions from
  1656. RequestGroup since they are not used practically.
  1657. * src/HttpRequestCommand.cc
  1658. * src/RequestGroup.cc
  1659. * src/RequestGroup.h
  1660. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  1661. Removed member _maxTries from RequestGroup class to avoid
  1662. duplicate option value. Those classes who refer this variable
  1663. should use option value of PREF_MAX_TRIES directly.
  1664. * src/AbstractCommand.cc
  1665. * src/RequestGroup.cc
  1666. * src/RequestGroup.h
  1667. * src/TrackerWatcherCommand.cc
  1668. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1669. * Release 1.4.1
  1670. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1671. Fixed compiler warnings on netbsd
  1672. * src/DHTConnectionImpl.cc
  1673. * src/PeerListenCommand.cc
  1674. * src/PeerSessionResource.cc
  1675. * src/SegmentMan.cc
  1676. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1677. Updated Ukrainian translation. Thanks to all translators.
  1678. * po/uk.po
  1679. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1680. Bump up version number to 1.4.1.
  1681. * configure.ac
  1682. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1683. Added unit tests for strjoin, strconcat and strappend.
  1684. * test/a2functionalTest.cc
  1685. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1686. Rewritten strconcat and strappend using operator+ instead of
  1687. append().
  1688. * src/a2functional.h
  1689. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1690. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1691. is enabled.
  1692. * src/Makefile.am
  1693. * test/Makefile.am
  1694. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1695. Added countSeeder() function which counts seeder in the given
  1696. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1697. * src/ConsoleStatCalc.cc
  1698. * src/Peer.h
  1699. * src/XmlRpcMethodImpl.cc
  1700. * test/PeerTest.cc
  1701. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1702. Documented missing seeder in getPeers xml-rpc method.
  1703. Documented uploadLength and numSeeders.
  1704. * doc/aria2c.1.txt
  1705. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1706. Added uploadLength and numSeeders to the response of tellStatus
  1707. xml-rpc method. Assert that PeerStorage instance is not null
  1708. instead of checking if statement. It should be non-null in this
  1709. context.
  1710. * src/XmlRpcMethodImpl.cc
  1711. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1712. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1713. * src/XmlRpcResponse.cc
  1714. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1715. Avoid intermediate object during string concatenation.
  1716. * src/HttpRequest.cc
  1717. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1718. Added strjoin function template. Use it in pathJoin()
  1719. * src/Util.h
  1720. * src/a2functional.h
  1721. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1722. Avoid intermediate object during string concatenation. Replaced
  1723. post-increment unary operator with pre-increment one in for loop.
  1724. * src/AdaptiveURISelector.cc
  1725. * src/AnnounceList.cc
  1726. * src/AuthConfig.h
  1727. * src/BtBitfieldMessage.cc
  1728. * src/BtExtendedMessage.cc
  1729. * src/BtHandshakeMessage.cc
  1730. * src/BtPieceMessage.cc
  1731. * src/BtPortMessage.cc
  1732. * src/Cookie.cc
  1733. * src/DHTAnnouncePeerMessage.cc
  1734. * src/DHTAutoSaveCommand.cc
  1735. * src/DHTGetPeersReplyMessage.cc
  1736. * src/DHTNode.cc
  1737. * src/DHTQueryMessage.cc
  1738. * src/DHTResponseMessage.cc
  1739. * src/DHTUnknownMessage.cc
  1740. * src/DefaultBtAnnounce.cc
  1741. * src/DefaultBtContext.cc
  1742. * src/DefaultBtInteractive.cc
  1743. * src/DefaultBtProgressInfoFile.cc
  1744. * src/DefaultPeerStorage.cc
  1745. * src/DownloadEngine.cc
  1746. * src/FeatureConfig.cc
  1747. * src/File.cc
  1748. * src/FtpConnection.cc
  1749. * src/FtpNegotiationCommand.cc
  1750. * src/HandshakeExtensionMessage.cc
  1751. * src/HttpConnection.cc
  1752. * src/HttpRequest.cc
  1753. * src/HttpResponseCommand.cc
  1754. * src/HttpServer.cc
  1755. * src/IndexBtMessage.cc
  1756. * src/Metalink2RequestGroup.cc
  1757. * src/OptionHandlerImpl.h
  1758. * src/PStringBuildVisitor.cc
  1759. * src/Peer.cc
  1760. * src/PeerListenCommand.cc
  1761. * src/Piece.cc
  1762. * src/RangeBtMessage.cc
  1763. * src/Request.cc
  1764. * src/Request.h
  1765. * src/RequestGroup.cc
  1766. * src/RequestGroupMan.cc
  1767. * src/ServerStat.cc
  1768. * src/ServerStatMan.cc
  1769. * src/UTPexExtensionMessage.cc
  1770. * src/Util.cc
  1771. * src/a2functional.h
  1772. * src/download_helper.cc
  1773. * src/messageDigest.cc
  1774. 2009-06-04 Tatsuhiro Tsujikawa <[email protected]>
  1775. Unchoke a peer randomly at first and second choke round in seed
  1776. state.
  1777. * src/BtSeederStateChoke.cc
  1778. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1779. Added (sock_t) to quiet compiler warnings in MinGW
  1780. * src/SocketCore.cc
  1781. * src/SocketCore.h
  1782. 2009-06-02 Tatsuhiro Tsujikawa <[email protected]>
  1783. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1784. * src/EpollEventPoll.h
  1785. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1786. Added fork() emulation using CreateProcess() in MinGW
  1787. * src/RequestGroupMan.cc
  1788. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  1789. * Release 1.4.0
  1790. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  1791. Added utf8.torrent to EXTRA_DIST
  1792. * test/Makefile.am
  1793. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  1794. Fixed docs of aria2.addMetalink xml-rpc method.
  1795. * doc/aria2c.1.txt
  1796. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  1797. Added Slovak translation. Updated Ukrainian and Brazilian
  1798. Portuguese translation. Thanks to all translators.
  1799. * po/sk.po
  1800. * po/uk.po
  1801. * po/pt_BR.po
  1802. * po/LINGUAS
  1803. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  1804. Added test case for XmlRpcProcessor to fail to parse malformed
  1805. document.
  1806. * test/XmlRpcRequestProcessorTest.cc
  1807. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1808. Removed *.gmo files in po because they are generated on 'make
  1809. dist'
  1810. * po/*.gmo
  1811. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1812. Documented max-concurrent-downloads of changeGlobalOption method
  1813. in man page.
  1814. * doc/aria2c.1.txt
  1815. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1816. Added max-concurrent-downloads option to changeGlobalOption
  1817. xml-rpc method. Rewritten loop conditional in
  1818. RequestGroupMan::fillRequestGroupFromReserver().
  1819. * src/RequestGroupMan.cc
  1820. * src/RequestGroupMan.h
  1821. * src/XmlRpcMethod.cc
  1822. * src/XmlRpcMethodImpl.cc
  1823. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1824. Documented position parameter in man page.
  1825. * doc/aria2c.1.txt
  1826. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1827. Added 'position' parameter to addUri, addTorrent and addMetalink
  1828. xml-rpc method.
  1829. * src/RequestGroupMan.cc
  1830. * src/RequestGroupMan.h
  1831. * src/XmlRpcMethodImpl.cc
  1832. * test/XmlRpcMethodTest.cc
  1833. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  1834. Removed Peer.cc from compile source list when --disable-bittorrent
  1835. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1836. takes Peer.
  1837. * src/DefaultPieceStorage.cc
  1838. * src/DefaultPieceStorage.h
  1839. * src/Makefile.am
  1840. * src/PieceStorage.h
  1841. * src/UnknownLengthPieceStorage.cc
  1842. * src/UnknownLengthPieceStorage.h
  1843. * test/MockPieceStorage.h
  1844. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  1845. Implemented getter methods in header files to give them more
  1846. chance of optimization.
  1847. Return const reference for SharadHandle if possible.
  1848. * src/AbstractAuthResolver.cc
  1849. * src/AbstractAuthResolver.h
  1850. * src/AbstractBtMessage.cc
  1851. * src/AbstractBtMessage.h
  1852. * src/AbstractSingleDiskAdaptor.cc
  1853. * src/AbstractSingleDiskAdaptor.h
  1854. * src/AsyncNameResolver.cc
  1855. * src/AsyncNameResolver.h
  1856. * src/BNode.cc
  1857. * src/BNode.h
  1858. * src/BitfieldMan.cc
  1859. * src/BitfieldMan.h
  1860. * src/BtAbortOutstandingRequestEvent.h
  1861. * src/BtExtendedMessage.cc
  1862. * src/BtExtendedMessage.h
  1863. * src/BtSeederStateChoke.cc
  1864. * src/BtSeederStateChoke.h
  1865. * src/Cookie.cc
  1866. * src/Cookie.h
  1867. * src/DHTBucket.cc
  1868. * src/DHTBucket.h
  1869. * src/DHTConnectionImpl.cc
  1870. * src/DHTConnectionImpl.h
  1871. * src/DHTFindNodeReplyMessage.cc
  1872. * src/DHTFindNodeReplyMessage.h
  1873. * src/DHTGetPeersReplyMessage.cc
  1874. * src/DHTGetPeersReplyMessage.h
  1875. * src/DHTInteractionCommand.cc
  1876. * src/DHTMessage.cc
  1877. * src/DHTMessage.h
  1878. * src/DHTMessageDispatcherImpl.cc
  1879. * src/DHTMessageEntry.cc
  1880. * src/DHTMessageReceiver.cc
  1881. * src/DHTMessageReceiver.h
  1882. * src/DHTMessageTrackerEntry.cc
  1883. * src/DHTMessageTrackerEntry.h
  1884. * src/DHTPeerAnnounceEntry.cc
  1885. * src/DHTPeerAnnounceEntry.h
  1886. * src/DHTPeerLookupTask.cc
  1887. * src/DHTPeerLookupTask.h
  1888. * src/DHTRoutingTableDeserializer.cc
  1889. * src/DHTRoutingTableDeserializer.h
  1890. * src/DefaultBtAnnounce.cc
  1891. * src/DefaultBtAnnounce.h
  1892. * src/DefaultBtMessageDispatcher.cc
  1893. * src/DefaultBtMessageDispatcher.h
  1894. * src/DefaultBtRequestFactory.cc
  1895. * src/DefaultBtRequestFactory.h
  1896. * src/DiskAdaptor.cc
  1897. * src/DiskAdaptor.h
  1898. * src/DownloadContext.cc
  1899. * src/DownloadContext.h
  1900. * src/DownloadEngine.cc
  1901. * src/DownloadEngine.h
  1902. * src/EpollEventPoll.cc
  1903. * src/EpollEventPoll.h
  1904. * src/FtpConnection.cc
  1905. * src/FtpConnection.h
  1906. * src/HttpConnection.cc
  1907. * src/HttpConnection.h
  1908. * src/HttpHeader.cc
  1909. * src/HttpHeader.h
  1910. * src/HttpRequest.cc
  1911. * src/HttpRequest.h
  1912. * src/HttpResponse.cc
  1913. * src/HttpResponse.h
  1914. * src/LibsslTLSContext.cc
  1915. * src/LibsslTLSContext.h
  1916. * src/MSEHandshake.cc
  1917. * src/MSEHandshake.h
  1918. * src/MetalinkEntry.cc
  1919. * src/MetalinkEntry.h
  1920. * src/MetalinkParserController.cc
  1921. * src/MetalinkParserController.h
  1922. * src/MetalinkParserStateMachine.cc
  1923. * src/MetalinkParserStateMachine.h
  1924. * src/MultiDiskAdaptor.cc
  1925. * src/MultiDiskAdaptor.h
  1926. * src/NetrcAuthResolver.cc
  1927. * src/NetrcAuthResolver.h
  1928. * src/Peer.cc
  1929. * src/Peer.h
  1930. * src/PeerSessionResource.cc
  1931. * src/PeerSessionResource.h
  1932. * src/Piece.cc
  1933. * src/Piece.h
  1934. * src/PieceStatMan.cc
  1935. * src/PieceStatMan.h
  1936. * src/Request.cc
  1937. * src/Request.h
  1938. * src/RequestGroup.cc
  1939. * src/RequestGroup.h
  1940. * src/RequestGroupMan.cc
  1941. * src/RequestGroupMan.h
  1942. * src/RequestSlot.cc
  1943. * src/RequestSlot.h
  1944. * src/SegmentMan.cc
  1945. * src/SegmentMan.h
  1946. * src/SelectEventPoll.cc
  1947. * src/SelectEventPoll.h
  1948. * src/ServerStat.cc
  1949. * src/ServerStat.h
  1950. * src/Signature.cc
  1951. * src/Signature.h
  1952. * src/URIResult.cc
  1953. * src/URIResult.h
  1954. * src/UTPexExtensionMessage.cc
  1955. * src/UTPexExtensionMessage.h
  1956. 2009-05-28 Tatsuhiro Tsujikawa <[email protected]>
  1957. Fixed compile error without BitTorrent and Metalink support.
  1958. * src/XmlRpcMethod.cc
  1959. * src/XmlRpcMethodFactory.cc
  1960. * src/XmlRpcMethodImpl.cc
  1961. * src/XmlRpcMethodImpl.h
  1962. * test/XmlRpcMethodTest.cc
  1963. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1964. Rewritten the help message for --allow-overwrite option.
  1965. * doc/aria2c.1.txt
  1966. * src/usage_text.h
  1967. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1968. Fixed typo
  1969. * doc/aria2c.1.txt
  1970. * src/usage_text.h
  1971. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1972. Updated README for 1.4.0 release. Use new table syntax of
  1973. asciidoc.
  1974. * README
  1975. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1976. Documented --xml-rpc-max-request-size option in man page.
  1977. * doc/aria2c.1.txt
  1978. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1979. Moved C_* constants from BtContext to DefaultBtContext.
  1980. * src/BtContext.cc: Removed.
  1981. * src/BtContext.h
  1982. * src/DefaultBtContext.cc
  1983. * src/DefaultBtContext.h
  1984. * src/Makefile.am
  1985. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1986. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1987. path key respectively when persing .torrent file.
  1988. * src/BtContext.cc
  1989. * src/BtContext.h
  1990. * src/DefaultBtContext.cc
  1991. * test/DefaultBtContextTest.cc
  1992. * test/utf8.torrent
  1993. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  1994. Added --xml-rpc-max-request-size option to limit the size of
  1995. XML-RPC request.
  1996. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  1997. Documented XML-RPC API in man page.
  1998. * doc/aria2c.1.txt
  1999. 2009-05-24 Tatsuhiro Tsujikawa <[email protected]>
  2000. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2001. will break strict-aliasing rules
  2002. * src/PeerConnection.cc
  2003. * test/DHTRoutingTableSerializerTest.cc
  2004. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2005. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2006. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2007. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2008. PKG_CHECK_MODULES macro uses latter name.
  2009. * m4/sqlite3.m4
  2010. * src/Makefile.am
  2011. * test/Makefile.am
  2012. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2013. Fixed typo
  2014. * configure.ac
  2015. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2016. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2017. presence of libgnutls using pkg-config first. If it fails, fall
  2018. back to old macro libgnutls.m4.
  2019. * configure.ac
  2020. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2021. Use s itself instead of !s.bad()
  2022. * src/CookieStorage.cc
  2023. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2024. Documented --on-download-* option and --save-cookies option in man
  2025. page.
  2026. * doc/aria2c.1.txt
  2027. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2028. Set possible values for --load-cookie option to "/path/to/file".
  2029. * src/OptionHandlerFactory.cc
  2030. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2031. Added --save-cookies option.
  2032. * src/Cookie.cc
  2033. * src/Cookie.h
  2034. * src/CookieStorage.cc
  2035. * src/CookieStorage.h
  2036. * src/MultiUrlRequestInfo.cc
  2037. * src/OptionHandlerFactory.cc
  2038. * src/prefs.cc
  2039. * src/prefs.h
  2040. * src/usage_text.h
  2041. * test/CookieStorageTest.cc
  2042. * test/CookieTest.cc
  2043. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2044. Removed tellAll XML-RPC command because its reponse tends to be
  2045. big if stopped/waiting downloads pile up.
  2046. * src/XmlRpcMethodFactory.cc
  2047. * src/XmlRpcMethodImpl.cc
  2048. * src/XmlRpcMethodImpl.h
  2049. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2050. Added the ability to execute command when download starts and
  2051. stops. You can also specify command for particular cases such as
  2052. complete/error download. Added --on-download-start,
  2053. --on-download-stop, --on-download-complete and --on-download-error
  2054. option.
  2055. * src/OptionHandlerFactory.cc
  2056. * src/RequestGroupMan.cc
  2057. * src/prefs.cc
  2058. * src/prefs.h
  2059. * src/usage_text.h
  2060. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2061. Fixed test error
  2062. * test/BencodeTest.cc
  2063. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2064. Added unit tests.
  2065. * test/XmlRpcMethodTest.cc
  2066. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2067. Made exception message more verbose.
  2068. * src/bencode.cc
  2069. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  2070. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2071. space in console readout. Also they are now shown in MiB/s if
  2072. speed > 1024KiB/s.
  2073. * src/ConsoleStatCalc.cc
  2074. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  2075. Added SEED to console output, which represents the number of
  2076. seeders currently the client is connecting to.
  2077. * src/ConsoleStatCalc.cc
  2078. * src/ConsoleStatCalc.h
  2079. * src/DownloadEngine.cc
  2080. * src/NullStatCalc.h
  2081. * src/StatCalc.h
  2082. 2009-05-18 Tatsuhiro Tsujikawa <[email protected]>
  2083. Added source filename(__FILE__) and line number(__LINE__) to
  2084. exception message.
  2085. * src/AbstractCommand.cc
  2086. * src/AbstractDiskWriter.cc
  2087. * src/AbstractProxyResponseCommand.cc
  2088. * src/BDE.h
  2089. * src/BtAllowedFastMessage.cc
  2090. * src/BtHandshakeMessageValidator.h
  2091. * src/BtHaveAllMessage.cc
  2092. * src/BtHaveNoneMessage.cc
  2093. * src/BtPieceMessage.cc
  2094. * src/BtRejectMessage.cc
  2095. * src/ChunkedDecoder.cc
  2096. * src/CookieStorage.cc
  2097. * src/DHTAnnouncePeerMessage.cc
  2098. * src/DHTEntryPointNameResolveCommand.cc
  2099. * src/DHTMessageFactoryImpl.cc
  2100. * src/DHTMessageTracker.cc
  2101. * src/DHTRoutingTableDeserializer.cc
  2102. * src/DHTRoutingTableSerializer.cc
  2103. * src/DHTSetup.cc
  2104. * src/DHTTokenTracker.cc
  2105. * src/DefaultBtAnnounce.cc
  2106. * src/DefaultBtContext.cc
  2107. * src/DefaultBtInteractive.cc
  2108. * src/DefaultBtMessageFactory.cc
  2109. * src/DefaultBtProgressInfoFile.cc
  2110. * src/DefaultExtensionMessageFactory.cc
  2111. * src/DlAbortEx.h
  2112. * src/DlRetryEx.h
  2113. * src/DownloadCommand.cc
  2114. * src/DownloadEngineFactory.cc
  2115. * src/DownloadFailureException.h
  2116. * src/Exception.cc
  2117. * src/Exception.h
  2118. * src/ExpatMetalinkProcessor.cc
  2119. * src/ExpatXmlRpcRequestProcessor.cc
  2120. * src/FallocFileAllocationIterator.cc
  2121. * src/FatalException.h
  2122. * src/FtpConnection.cc
  2123. * src/FtpFinishDownloadCommand.cc
  2124. * src/FtpInitiateConnectionCommand.cc
  2125. * src/FtpNegotiationCommand.cc
  2126. * src/GZipDecoder.cc
  2127. * src/HandshakeExtensionMessage.cc
  2128. * src/HttpConnection.cc
  2129. * src/HttpHeaderProcessor.cc
  2130. * src/HttpInitiateConnectionCommand.cc
  2131. * src/HttpResponse.cc
  2132. * src/HttpResponseCommand.cc
  2133. * src/HttpServer.cc
  2134. * src/HttpSkipResponseCommand.cc
  2135. * src/InitiateConnectionCommandFactory.cc
  2136. * src/IteratableChunkChecksumValidator.cc
  2137. * src/LibgcryptARC4Context.h
  2138. * src/LibgcryptARC4Decryptor.h
  2139. * src/LibgcryptARC4Encryptor.h
  2140. * src/LibgcryptDHKeyExchange.h
  2141. * src/LibgnutlsTLSContext.cc
  2142. * src/LibsslARC4Context.h
  2143. * src/LibsslARC4Decryptor.h
  2144. * src/LibsslARC4Encryptor.h
  2145. * src/LibsslDHKeyExchange.h
  2146. * src/LibsslTLSContext.cc
  2147. * src/MSEHandshake.cc
  2148. * src/MessageDigestHelper.cc
  2149. * src/MetalinkHelper.cc
  2150. * src/MultiDiskAdaptor.cc
  2151. * src/NameMatchOptionHandler.h
  2152. * src/NameResolver.cc
  2153. * src/Netrc.cc
  2154. * src/NsCookieParser.cc
  2155. * src/OptionHandlerException.cc
  2156. * src/OptionHandlerException.h
  2157. * src/OptionHandlerImpl.h
  2158. * src/OptionParser.cc
  2159. * src/ParameterizedStringParser.cc
  2160. * src/PeerAbstractCommand.cc
  2161. * src/PeerConnection.cc
  2162. * src/PeerMessageUtil.cc
  2163. * src/PeerReceiveHandshakeCommand.cc
  2164. * src/Platform.cc
  2165. * src/ReceiverMSEHandshakeCommand.cc
  2166. * src/RecoverableException.h
  2167. * src/RequestGroup.cc
  2168. * src/SimpleLogger.cc
  2169. * src/SocketCore.cc
  2170. * src/Sqlite3MozCookieParser.cc
  2171. * src/UTPexExtensionMessage.cc
  2172. * src/Util.cc
  2173. * src/XML2SAXMetalinkProcessor.cc
  2174. * src/Xml2XmlRpcRequestProcessor.cc
  2175. * src/XmlRpcMethodImpl.cc
  2176. * src/bencode.cc
  2177. * src/download_helper.cc
  2178. * src/messageDigest.h
  2179. * test/ExceptionTest.cc
  2180. * test/TestUtil.cc
  2181. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  2182. Bump up version number to 1.4.0
  2183. * configure.ac
  2184. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  2185. Added 2files.metalink to EXTRA_DIST
  2186. * test/Makefile.am
  2187. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2188. Added missing 2files.metalink
  2189. * test/2files.metalink
  2190. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2191. Show "[MEMORY]" prefix before filename in download summary if it
  2192. is downloaded into memory.
  2193. * src/DownloadResult.h
  2194. * src/RequestGroup.cc
  2195. * src/RequestGroupMan.cc
  2196. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2197. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2198. * src/ExpatXmlRpcRequestProcessor.cc
  2199. * src/Xml2XmlRpcRequestProcessor.cc
  2200. * src/message.h
  2201. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2202. Defined const BDEs to avoid duplicate instantiation.
  2203. Defined MSG_GID_NOT_PROVIDED.
  2204. * src/XmlRpcMethodImpl.cc
  2205. * src/message.h
  2206. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2207. Code cleanup
  2208. * src/Xml2XmlRpcRequestProcessor.cc
  2209. * src/Xml2XmlRpcRequestProcessor.h
  2210. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2211. Defined ENABLE_XML_RPC
  2212. * configure.ac
  2213. * configure
  2214. * config.h.in
  2215. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2216. Added ExpatXmlRpcRequestProcessor
  2217. * src/ExpatXmlRpcRequestProcessor.cc
  2218. * src/ExpatXmlRpcRequestProcessor.h
  2219. * src/Makefile.am
  2220. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2221. Added tests for addTorrent and addMetalink command.
  2222. * test/TestUtil.cc
  2223. * test/TestUtil.h
  2224. * test/XmlRpcMethodTest.cc
  2225. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2226. Corrected the description of --file-allocation option.
  2227. * doc/aria2c.1.txt
  2228. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2229. Added tellAll command.
  2230. * src/XmlRpcMethodFactory.cc
  2231. * src/XmlRpcMethodImpl.cc
  2232. * src/XmlRpcMethodImpl.h
  2233. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2234. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2235. * src/XmlRpcMethodImpl.cc
  2236. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2237. Added changeGlobalOption command. Currently,
  2238. max-overall-download-limit and max-overall-upload-limit option are
  2239. available.
  2240. * src/RequestGroupMan.h
  2241. * src/XmlRpcMethod.cc
  2242. * src/XmlRpcMethod.h
  2243. * src/XmlRpcMethodFactory.cc
  2244. * src/XmlRpcMethodImpl.cc
  2245. * src/XmlRpcMethodImpl.h
  2246. * test/XmlRpcMethodTest.cc
  2247. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2248. Added changeOption command. Currently, max-download-limit,
  2249. max-upload-limit option are available in this command.
  2250. * src/RequestGroup.h
  2251. * src/XmlRpcMethod.cc
  2252. * src/XmlRpcMethod.h
  2253. * src/XmlRpcMethodFactory.cc
  2254. * src/XmlRpcMethodImpl.cc
  2255. * src/XmlRpcMethodImpl.h
  2256. * test/XmlRpcMethodTest.cc
  2257. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  2258. Added purgeDownloadResult command.
  2259. * src/RequestGroupMan.cc
  2260. * src/RequestGroupMan.h
  2261. * src/XmlRpcMethodFactory.cc
  2262. * src/XmlRpcMethodImpl.cc
  2263. * src/XmlRpcMethodImpl.h
  2264. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  2265. Refactored.
  2266. * src/XmlRpcMethod.cc
  2267. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  2268. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2269. XmlRpcResponse.
  2270. * src/HttpServerBodyCommand.cc
  2271. * src/Makefile.am
  2272. * src/XmlRpcMethod.cc
  2273. * src/XmlRpcMethod.h
  2274. * src/XmlRpcMethodImpl.cc
  2275. * src/XmlRpcResponse.cc
  2276. * src/XmlRpcResponse.h
  2277. * test/XmlRpcMethodTest.cc
  2278. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  2279. In XML-RPC option struct, header and index-out option can take
  2280. array as value.
  2281. * src/XmlRpcMethod.cc
  2282. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2283. Removed unused option member from PeerConnection.
  2284. * src/InitiatorMSEHandshakeCommand.cc
  2285. * src/PeerConnection.cc
  2286. * src/PeerConnection.h
  2287. * src/PeerInteractionCommand.cc
  2288. * src/PeerReceiveHandshakeCommand.cc
  2289. * src/ReceiverMSEHandshakeCommand.cc
  2290. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2291. Added "seeder" key to getPeers response.
  2292. * src/XmlRpcMethodImpl.cc
  2293. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2294. Added addMetalink XML-RPC command.
  2295. * src/XmlRpcMethodFactory.cc
  2296. * src/XmlRpcMethodImpl.cc
  2297. * src/XmlRpcMethodImpl.h
  2298. * src/download_helper.cc
  2299. * src/download_helper.h
  2300. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2301. Fixed the bug that POU peers are never choked in seeding.
  2302. * src/BtSeederStateChoke.cc
  2303. * src/BtSeederStateChoke.h
  2304. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2305. Added web-seeding URI handling in addTorrent command.
  2306. * src/XmlRpcMethodImpl.cc
  2307. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2308. Added "length" key to getFiles response.
  2309. * src/XmlRpcMethodImpl.cc
  2310. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2311. Moved --no-netrc option from ftp option section to http/ftp option
  2312. section.
  2313. * doc/aria2c.1.txt
  2314. * src/OptionHandlerFactory.cc
  2315. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2316. Removed garbage "\" character before '
  2317. * doc/aria2c.1.txt
  2318. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2319. Removed garbage "\" character before http.
  2320. * doc/aria2c.1.txt
  2321. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2322. Documented additional options that can be specified in -i list.
  2323. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2324. and --xml-rpc-passwd. Removed --enable-http-server and
  2325. --http-server-listen-port.
  2326. * doc/aria2c.1.txt
  2327. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2328. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2329. * src/DefaultPeerStorage.cc
  2330. * src/DefaultPeerStorage.h
  2331. * src/PeerStorage.h
  2332. * src/XmlRpcMethodImpl.cc
  2333. * test/MockPeerStorage.h
  2334. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2335. Put a call to Socket::isReadable() in try block.
  2336. * src/HttpServerBodyCommand.cc
  2337. * src/HttpServerCommand.cc
  2338. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2339. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2340. exception , so it is now in try block.
  2341. * src/HttpServerResponseCommand.cc
  2342. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2343. Added "amChoking" and "peerChoking" key in getPeers response.
  2344. * src/XmlRpcMethodImpl.cc
  2345. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2346. Added test case for zero-length filter.
  2347. * test/BitfieldManTest.cc
  2348. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2349. getFiles command now returns file data for finished/stopped
  2350. downloads.
  2351. * src/XmlRpcMethodImpl.cc
  2352. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2353. DownloadResult now has the list of FileEntry. The download
  2354. summary displays the path of first selected file and the number of
  2355. remaining files for multi-file torrent.
  2356. * src/DownloadResult.h
  2357. * src/RequestGroup.cc
  2358. * src/RequestGroupMan.cc
  2359. * test/RequestGroupTest.cc
  2360. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2361. Fixed segmentation fault error when no file is selected in
  2362. multi-file torrent.
  2363. * src/BitfieldMan.cc
  2364. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2365. Escaped <,>,& character in XML-RPC response.
  2366. * src/XmlRpcMethod.cc
  2367. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2368. Throw DlAbortEx instead of FatalException during parsing options
  2369. because we don't want for aria2 to quit when bad option is passed
  2370. via XML-RPC.
  2371. * src/OptionHandlerException.cc
  2372. * src/OptionHandlerException.h
  2373. * src/OptionHandlerImpl.h
  2374. * src/OptionParser.cc
  2375. * src/OptionParser.h
  2376. * src/PStringSegment.cc
  2377. * src/ParameterizedStringParser.cc
  2378. * src/download_helper.cc
  2379. * test/ParameterizedStringParserTest.cc
  2380. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2381. Selecting files are now done in
  2382. DefaultBtContext::setFileFileter().
  2383. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2384. functions are removed because they are no longer used. Creating
  2385. filter in BitfieldMan is done in new funtion
  2386. PieceStorage::setupFileFilter()
  2387. * src/BtContext.cc
  2388. * src/BtContext.h
  2389. * src/DefaultBtContext.cc
  2390. * src/DefaultBtContext.h
  2391. * src/DefaultPieceStorage.cc
  2392. * src/DefaultPieceStorage.h
  2393. * src/DiskAdaptor.cc
  2394. * src/DiskAdaptor.h
  2395. * src/PieceStorage.h
  2396. * src/RequestGroup.cc
  2397. * src/UnknownLengthPieceStorage.h
  2398. * src/XmlRpcMethodImpl.cc
  2399. * test/DefaultBtContextTest.cc
  2400. * test/MockBtContext.h
  2401. * test/MockPieceStorage.h
  2402. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2403. Fixed compile error on Mac OS X
  2404. * src/HttpServer.cc
  2405. * src/XmlRpcMethod.h
  2406. * src/XmlRpcMethodImpl.cc
  2407. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2408. Use std::binary_search instead of std::find
  2409. * src/DefaultPieceStorage.cc
  2410. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2411. Removed unnecessary BDE() call; leave them to implicit conversion.
  2412. * src/XmlRpcMethodImpl.cc
  2413. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2414. Return connections and gid in string
  2415. * src/XmlRpcMethodImpl.cc
  2416. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2417. Renamed addURI as addUri
  2418. * src/XmlRpcMethodFactory.cc
  2419. * src/XmlRpcMethodImpl.cc
  2420. * src/XmlRpcMethodImpl.h
  2421. * test/XmlRpcMethodTest.cc
  2422. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2423. Renamed addTorrentFile as addTorrent
  2424. * src/XmlRpcMethodFactory.cc
  2425. * src/XmlRpcMethodImpl.cc
  2426. * src/XmlRpcMethodImpl.h
  2427. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2428. The information for files, URIs, peers are removed from the
  2429. reponse of TellaActive, TellStatus command because they tend to be
  2430. large. Instead they can be retrieved by the dedicated commands:
  2431. getFiles, getUris and getPeers respectively.
  2432. * src/XmlRpcMethodFactory.cc
  2433. * src/XmlRpcMethodImpl.cc
  2434. * src/XmlRpcMethodImpl.h
  2435. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2436. Removed --max-overall-upload-limit and
  2437. --max-overall-download-limit option from listRequestOptions.
  2438. * src/download_helper.cc
  2439. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2440. Log incoming host in HttpListenCommand.
  2441. * src/HttpListenCommand.cc
  2442. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2443. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2444. --xml-rpc-passwd option.
  2445. * src/HttpServer.cc
  2446. * src/HttpServer.h
  2447. * src/HttpServerCommand.cc
  2448. * src/OptionHandlerFactory.cc
  2449. * src/prefs.cc
  2450. * src/prefs.h
  2451. * src/usage_text.h
  2452. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2453. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2454. processing 0 length request.
  2455. * src/HttpServerBodyCommand.cc
  2456. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2457. Removed --enable-http-server and --http-server-listen-port
  2458. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2459. instead. The original feature for --enable-http-server that
  2460. reports download progress in HTML was officially removed. Persist
  2461. XML-RPC connection if client supports keep-alive.
  2462. * src/DownloadEngineFactory.cc
  2463. * src/HttpServerCommand.cc
  2464. * src/HttpServerResponseCommand.cc
  2465. * src/Makefile.am
  2466. * src/Makefile.in
  2467. * src/OptionHandlerFactory.cc
  2468. * src/RequestGroupMan.cc
  2469. * src/main.cc
  2470. * src/option_processing.cc
  2471. * src/prefs.cc
  2472. * src/prefs.h
  2473. * src/usage_text.h
  2474. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2475. Added "uris" key to the response of tellStatus command. Added
  2476. "connections" key to the response of tellStatus and tellActive
  2477. command.
  2478. * src/XmlRpcMethodImpl.cc
  2479. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2480. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2481. Added TellStatusXmlRpcMethod. Remove command can now remove
  2482. waiting RequestGroup.
  2483. * src/RequestGroupMan.cc
  2484. * src/RequestGroupMan.h
  2485. * src/XmlRpcMethodFactory.cc
  2486. * src/XmlRpcMethodImpl.cc
  2487. * src/XmlRpcMethodImpl.h
  2488. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2489. Initialized _peerId
  2490. * src/Peer.cc
  2491. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2492. Return fault structure for error. FailXmlRpcMethod is renamed as
  2493. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2494. in non-torrent download. Return single param value.
  2495. * src/XmlRpcMethod.cc
  2496. * src/XmlRpcMethodFactory.cc
  2497. * src/XmlRpcMethodImpl.cc
  2498. * src/XmlRpcMethodImpl.h
  2499. * test/XmlRpcMethodTest.cc
  2500. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2501. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2502. command.
  2503. * src/RequestGroup.cc
  2504. * src/RequestGroup.h
  2505. * src/RequestGroupMan.cc
  2506. * src/XmlRpcMethodImpl.cc
  2507. * test/RequestGroupTest.cc
  2508. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2509. Added more options that can be specified in -i list and xml-rpc
  2510. add* command.
  2511. * src/download_helper.h
  2512. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2513. The available options in -i list should be listed in
  2514. listRequestOptions().
  2515. * src/download_helper.cc
  2516. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2517. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2518. command.
  2519. * src/XmlRpcMethodImpl.cc
  2520. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2521. Now RequestGroup has its own copy of Option object. This will help
  2522. to give custom option for each RequestGroup.
  2523. addTorrentFile command now takes options.
  2524. * src/AbstractCommand.cc
  2525. * src/AbstractCommand.h
  2526. * src/AbstractProxyRequestCommand.cc
  2527. * src/ActivePeerConnectionCommand.cc
  2528. * src/ActivePeerConnectionCommand.h
  2529. * src/AdaptiveURISelector.cc
  2530. * src/BtCheckIntegrityEntry.cc
  2531. * src/BtDependency.cc
  2532. * src/BtDependency.h
  2533. * src/BtFileAllocationEntry.cc
  2534. * src/BtPostDownloadHandler.cc
  2535. * src/CheckIntegrityEntry.cc
  2536. * src/DownloadCommand.cc
  2537. * src/FtpDownloadCommand.cc
  2538. * src/FtpFinishDownloadCommand.cc
  2539. * src/FtpInitiateConnectionCommand.cc
  2540. * src/FtpNegotiationCommand.cc
  2541. * src/HttpInitiateConnectionCommand.cc
  2542. * src/HttpRequestCommand.cc
  2543. * src/HttpResponseCommand.cc
  2544. * src/HttpSkipResponseCommand.cc
  2545. * src/InitiateConnectionCommand.cc
  2546. * src/InitiateConnectionCommandFactory.cc
  2547. * src/InitiatorMSEHandshakeCommand.cc
  2548. * src/InitiatorMSEHandshakeCommand.h
  2549. * src/Metalink2RequestGroup.cc
  2550. * src/Metalink2RequestGroup.h
  2551. * src/MetalinkPostDownloadHandler.cc
  2552. * src/MultiUrlRequestInfo.cc
  2553. * src/MultiUrlRequestInfo.h
  2554. * src/PeerAbstractCommand.cc
  2555. * src/PeerInteractionCommand.cc
  2556. * src/PeerInteractionCommand.h
  2557. * src/PeerReceiveHandshakeCommand.cc
  2558. * src/PeerReceiveHandshakeCommand.h
  2559. * src/RequestGroup.cc
  2560. * src/RequestGroup.h
  2561. * src/TrackerWatcherCommand.cc
  2562. * src/TrackerWatcherCommand.h
  2563. * src/XmlRpcMethod.cc
  2564. * src/XmlRpcMethod.h
  2565. * src/XmlRpcMethodImpl.cc
  2566. * src/download_helper.cc
  2567. * src/download_helper.h
  2568. * src/main.cc
  2569. * test/BtDependencyTest.cc
  2570. * test/BtPostDownloadHandlerTest.cc
  2571. * test/DefaultBtMessageDispatcherTest.cc
  2572. * test/DownloadHandlerFactoryTest.cc
  2573. * test/DownloadHelperTest.cc
  2574. * test/Metalink2RequestGroupTest.cc
  2575. * test/MetalinkPostDownloadHandlerTest.cc
  2576. * test/RequestGroupManTest.cc
  2577. * test/RequestGroupTest.cc
  2578. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2579. Added tellActiveStatus xml-rpc command which reports download
  2580. status of active downloads.
  2581. * src/XmlRpcMethodFactory.cc
  2582. * src/XmlRpcMethodImpl.cc
  2583. * src/XmlRpcMethodImpl.h
  2584. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2585. Added addTorrentFile xml-rpc command which receives uploaded
  2586. torrent file and add download for it.
  2587. * src/RequestGroupMan.cc
  2588. * src/XmlRpcMethodFactory.cc
  2589. * src/XmlRpcMethodImpl.cc
  2590. * src/XmlRpcMethodImpl.h
  2591. * src/download_helper.cc
  2592. * src/download_helper.h
  2593. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2594. Added remove xml-rpc command which removes specified download.
  2595. There is a known issue: the removed unfinished downloads are
  2596. reported ERR when aria2 exits. They should be reported as INPR.
  2597. * src/RequestGroupMan.cc
  2598. * src/RequestGroupMan.h
  2599. * src/XmlRpcMethodFactory.cc
  2600. * src/XmlRpcMethodImpl.cc
  2601. * src/XmlRpcMethodImpl.h
  2602. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2603. If --enable-http-server is enabled, don't stop aria2 when all
  2604. download finished and don't quit when no files to download at
  2605. start up.
  2606. * src/RequestGroupMan.cc
  2607. * src/main.cc
  2608. * src/option_processing.cc
  2609. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2610. Added missing AM_CONDITIONAL
  2611. * configure.ac
  2612. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2613. Added xml-rpc functionality. Currently only addURI commad is
  2614. supported. To enable xml-rpc, run aria2 with
  2615. --enable-http-server. This option name is temporal and will be
  2616. changed. The feature that reports download progress in html format
  2617. is temporarily disabled.
  2618. * src/HttpServer.cc
  2619. * src/HttpServer.h
  2620. * src/HttpServerBodyCommand.cc
  2621. * src/HttpServerBodyCommand.h
  2622. * src/HttpServerCommand.cc
  2623. * src/HttpServerResponseCommand.cc
  2624. * src/Makefile.am
  2625. * src/OptionParser.cc
  2626. * src/OptionParser.h
  2627. * src/RequestGroupMan.cc
  2628. * src/RequestGroupMan.h
  2629. * src/XmlRpcMethod.cc
  2630. * src/XmlRpcMethod.h
  2631. * src/XmlRpcMethodFactory.cc
  2632. * src/XmlRpcMethodFactory.h
  2633. * src/XmlRpcMethodImpl.cc
  2634. * src/XmlRpcMethodImpl.h
  2635. * src/download_helper.cc
  2636. * src/download_helper.h
  2637. * test/Makefile.am
  2638. * test/XmlRpcMethodTest.cc
  2639. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2640. Added xml-rpc request parser. The supported value types are:
  2641. i4/int, string, double, struct, array, base64. Currently only
  2642. libxml2 version is provided.
  2643. * src/Xml2XmlRpcRequestProcessor.cc
  2644. * src/Xml2XmlRpcRequestProcessor.h
  2645. * src/XmlRpcElements.cc
  2646. * src/XmlRpcElements.h
  2647. * src/XmlRpcRequest.h
  2648. * src/XmlRpcRequestParserController.cc
  2649. * src/XmlRpcRequestParserController.h
  2650. * src/XmlRpcRequestParserState.h
  2651. * src/XmlRpcRequestParserStateImpl.cc
  2652. * src/XmlRpcRequestParserStateImpl.h
  2653. * src/XmlRpcRequestParserStateMachine.cc
  2654. * src/XmlRpcRequestParserStateMachine.h
  2655. * src/XmlRpcRequestProcessor.h
  2656. * test/XmlRpcRequestParserControllerTest.cc
  2657. * test/XmlRpcRequestProcessorTest.cc
  2658. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2659. * Release 1.3.3
  2660. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2661. Fixed compile error since r1202.
  2662. * src/ExpatMetalinkProcessor.cc
  2663. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2664. Updated Ukrainian, Russian and Simplified Chinese
  2665. translations. Thanks to all translators.
  2666. * po/ru.po
  2667. * po/uk.po
  2668. * po/zh_CN.po
  2669. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  2670. Pass reference of Option object instead of pointer.
  2671. * src/download_helper.cc
  2672. * src/download_helper.h
  2673. * src/main.cc
  2674. * test/DownloadHelperTest.cc
  2675. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  2676. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2677. from option directly. Instead, get them from RequestGroup.
  2678. * src/ActivePeerConnectionCommand.cc
  2679. * src/ActivePeerConnectionCommand.h
  2680. * src/PeerReceiveHandshakeCommand.cc
  2681. * src/RequestGroup.h
  2682. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  2683. Removed unused uploadLimitCheck and uploadLimit from
  2684. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2685. PeerInteractionCommand.
  2686. * src/PeerAbstractCommand.cc
  2687. * src/PeerAbstractCommand.h
  2688. * src/PeerInteractionCommand.cc
  2689. * src/PeerInteractionCommand.h
  2690. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  2691. Fixed broken file renaming feature since r1202.
  2692. * src/FtpNegotiationCommand.cc
  2693. * src/FtpNegotiationCommand.h
  2694. * src/HttpResponseCommand.cc
  2695. * src/RequestGroup.cc
  2696. * src/RequestGroup.h
  2697. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2698. Removed unused debug log
  2699. * src/SocketCore.cc
  2700. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2701. Generated configure and Makefile.in using autoconf 2.63 and
  2702. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2703. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2704. * configure.ac
  2705. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2706. Moved piece statistics stuff to new PieceStatMan class.
  2707. Refactored PieceSelector interface.
  2708. * src/DefaultPieceStorage.cc
  2709. * src/DefaultPieceStorage.h
  2710. * src/LongestSequencePieceSelector.cc
  2711. * src/LongestSequencePieceSelector.h
  2712. * src/Makefile.am
  2713. * src/PieceSelector.h
  2714. * src/PieceStatMan.cc
  2715. * src/PieceStatMan.h
  2716. * src/RarestPieceSelector.cc
  2717. * src/RarestPieceSelector.h
  2718. * src/RequestGroup.cc
  2719. * test/DefaultPieceStorageTest.cc
  2720. * test/InOrderPieceSelector.h
  2721. * test/Makefile.am
  2722. * test/PieceStatManTest.cc
  2723. * test/RarestPieceSelectorTest.cc
  2724. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2725. Added static member _protocolFamily to SocketCore. By default,
  2726. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2727. address. Sometime SocketCore::bind() and
  2728. SocketCore::establishConnection() use difference protocl family
  2729. and latter cannot connect to former. To avoid this situation, we
  2730. limit protocol family to AF_INET for unit tests.
  2731. * src/SocketCore.cc
  2732. * src/SocketCore.h
  2733. * test/AllTest.cc
  2734. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2735. Avoid std::bad_alloc for negative bencode string length.
  2736. * src/bencode.cc
  2737. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2738. Supported segmented downloading with chunked transfer encoding and
  2739. content-length.
  2740. * src/DownloadCommand.cc
  2741. * src/HttpResponseCommand.cc
  2742. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  2743. Bump up version number to 1.3.3
  2744. * configure.ac
  2745. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  2746. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2747. from 4096 to 65536 (for insanely large ftp login banners)
  2748. * src/FtpConnection.h
  2749. * test/FtpConnectionTest.cc
  2750. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  2751. In DefaultBtContext::getActualBasePath(), return first
  2752. FileEntry::getPath() for single file torrent.
  2753. * src/DefaultBtContext.cc
  2754. * test/DefaultBtContextTest.cc
  2755. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2756. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2757. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2758. Removed _directIOAllowed member from DiskWriter.
  2759. * src/AbstractDiskWriter.cc
  2760. * src/AbstractDiskWriter.h
  2761. * src/AbstractSingleDiskAdaptor.cc
  2762. * src/AbstractSingleDiskAdaptor.h
  2763. * src/BinaryStream.h
  2764. * src/ByteArrayDiskWriter.h
  2765. * src/DefaultPieceStorage.cc
  2766. * src/DiskWriter.h
  2767. * src/MultiDiskAdaptor.cc
  2768. * src/MultiDiskAdaptor.h
  2769. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2770. Now the constructor of AbstractDiskWriter takes filename as an
  2771. argument and filename argument is removed from openFile(),
  2772. initAndOpenFile(), openExistingFile() interface. storeDir member
  2773. and its accessor functions are removed from DiskAdaptor because it
  2774. is not used anymore. size() member function of DefaultDiskWriter,
  2775. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2776. opening file.
  2777. * src/AbstractDiskWriter.cc
  2778. * src/AbstractDiskWriter.h
  2779. * src/AbstractSingleDiskAdaptor.cc
  2780. * src/AbstractSingleDiskAdaptor.h
  2781. * src/ByteArrayDiskWriter.cc
  2782. * src/ByteArrayDiskWriter.h
  2783. * src/ByteArrayDiskWriterFactory.cc
  2784. * src/ByteArrayDiskWriterFactory.h
  2785. * src/DefaultDiskWriter.cc
  2786. * src/DefaultDiskWriter.h
  2787. * src/DefaultDiskWriterFactory.cc
  2788. * src/DefaultDiskWriterFactory.h
  2789. * src/DefaultPieceStorage.cc
  2790. * src/DirectDiskAdaptor.cc
  2791. * src/DirectDiskAdaptor.h
  2792. * src/DiskAdaptor.h
  2793. * src/DiskWriter.h
  2794. * src/DiskWriterFactory.h
  2795. * src/MessageDigestHelper.cc
  2796. * src/MultiDiskAdaptor.cc
  2797. * src/RequestGroup.cc
  2798. * src/UnknownLengthPieceStorage.cc
  2799. * src/Util.cc
  2800. * test/DefaultDiskWriterTest.cc
  2801. * test/DirectDiskAdaptorTest.cc
  2802. * test/FallocFileAllocationIteratorTest.cc
  2803. * test/MessageDigestHelperTest.cc
  2804. * test/MetalinkProcessorTest.cc
  2805. * test/MultiDiskAdaptorTest.cc
  2806. * test/MultiFileAllocationIteratorTest.cc
  2807. * test/SingleFileAllocationIteratorTest.cc
  2808. * test/UtilTest.cc
  2809. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2810. Fixed the bug that aria2 aborts when --select-file is used. This
  2811. bug was introduced in r1199.
  2812. * src/MultiDiskAdaptor.cc
  2813. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  2814. Code cleanup
  2815. * test/MockPieceStorage.cc
  2816. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  2817. Fixed the bug that read-only file with wrong file size will cause
  2818. error because it cannot be truncated to the correct size. Now if
  2819. file size is different than the expected one, re-open file in
  2820. writable mode.
  2821. * src/AbstractSingleDiskAdaptor.cc
  2822. * src/AbstractSingleDiskAdaptor.h
  2823. * src/BtCheckIntegrityEntry.cc
  2824. * src/DiskAdaptor.h
  2825. * src/MultiDiskAdaptor.h
  2826. * src/RequestGroup.cc
  2827. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  2828. Fixed the bug that with --check-integrity option aria2 reports
  2829. downloaded file size is 0 even if some parts of file is correctly
  2830. downloaded. This bug is reproducible for the download that a file
  2831. includes last piece is missing. This bug doesn't reveal for
  2832. single-torrent with file allocation on.
  2833. * src/IteratableChecksumValidator.cc
  2834. * test/IteratableChecksumValidatorTest.cc
  2835. 2009-05-01 Tatsuhiro Tsujikawa <[email protected]>
  2836. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2837. * src/RequestGroupMan.cc
  2838. * src/AdaptiveURISelector.cc
  2839. * src/AdaptiveURISelector.h
  2840. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2841. * Release 1.3.2
  2842. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2843. Updated README
  2844. * README
  2845. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2846. Updated Ukrainian translations. Thanks to Alexander10.
  2847. * po/uk.po
  2848. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2849. Code cleanup
  2850. * src/MetalinkParserStateMachine.cc
  2851. * src/MetalinkParserStateMachine.h
  2852. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2853. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2854. and expat simultaneously, MetalinkProcessor is now not base class
  2855. and it is directly implemented in XML2SAXMetalinkProcessor and
  2856. ExpatMetalinkProcessor.
  2857. * src/ExpatMetalinkProcessor.cc
  2858. * src/ExpatMetalinkProcessor.h
  2859. * src/Makefile.am
  2860. * src/MetalinkHelper.cc
  2861. * src/MetalinkProcessor.h
  2862. * src/MetalinkProcessorFactory.cc: Removed.
  2863. * src/MetalinkProcessorFactory.h: Removed
  2864. * src/XML2SAXMetalinkProcessor.cc
  2865. * src/XML2SAXMetalinkProcessor.h
  2866. * test/MetalinkProcessorTest.cc
  2867. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2868. Bump up version number to 1.3.2
  2869. * configure.ac
  2870. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2871. Added missing file.
  2872. * test/Makefile.am
  2873. * test/url-list-singleFileEndsWithSlash.torrent
  2874. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2875. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2876. request.
  2877. * src/AnnounceList.cc
  2878. * src/AnnounceList.h
  2879. * src/BDE.cc: Added
  2880. * src/BDE.h: Added
  2881. * src/DHTAbstractMessage.cc
  2882. * src/DHTAbstractMessage.h
  2883. * src/DHTAnnouncePeerMessage.cc
  2884. * src/DHTAnnouncePeerMessage.h
  2885. * src/DHTAnnouncePeerReplyMessage.cc
  2886. * src/DHTAnnouncePeerReplyMessage.h
  2887. * src/DHTFindNodeMessage.cc
  2888. * src/DHTFindNodeMessage.h
  2889. * src/DHTFindNodeReplyMessage.cc
  2890. * src/DHTFindNodeReplyMessage.h
  2891. * src/DHTGetPeersMessage.cc
  2892. * src/DHTGetPeersMessage.h
  2893. * src/DHTGetPeersReplyMessage.cc
  2894. * src/DHTGetPeersReplyMessage.h
  2895. * src/DHTMessageFactory.h
  2896. * src/DHTMessageFactoryImpl.cc
  2897. * src/DHTMessageFactoryImpl.h
  2898. * src/DHTMessageReceiver.cc
  2899. * src/DHTMessageTracker.cc
  2900. * src/DHTMessageTracker.h
  2901. * src/DHTPingMessage.cc
  2902. * src/DHTPingMessage.h
  2903. * src/DHTPingReplyMessage.cc
  2904. * src/DHTPingReplyMessage.h
  2905. * src/DHTQueryMessage.cc
  2906. * src/DHTQueryMessage.h
  2907. * src/DHTResponseMessage.cc
  2908. * src/DHTResponseMessage.h
  2909. * src/DefaultBtAnnounce.cc
  2910. * src/DefaultBtContext.cc
  2911. * src/DefaultBtContext.h
  2912. * src/HandshakeExtensionMessage.cc
  2913. * src/Makefile.am
  2914. * src/PeerListProcessor.h
  2915. * src/UTPexExtensionMessage.cc
  2916. * src/bencode.cc
  2917. * src/bencode.h
  2918. * test/AnnounceListTest.cc
  2919. * test/BDETest.cc: Added
  2920. * test/BencodeTest.cc
  2921. * test/DHTAnnouncePeerMessageTest.cc
  2922. * test/DHTAnnouncePeerReplyMessageTest.cc
  2923. * test/DHTFindNodeMessageTest.cc
  2924. * test/DHTFindNodeReplyMessageTest.cc
  2925. * test/DHTGetPeersMessageTest.cc
  2926. * test/DHTGetPeersReplyMessageTest.cc
  2927. * test/DHTMessageFactoryImplTest.cc
  2928. * test/DHTMessageTrackerTest.cc
  2929. * test/DHTPingMessageTest.cc
  2930. * test/DHTPingReplyMessageTest.cc
  2931. * test/Makefile.am
  2932. * test/MockDHTMessageFactory.h
  2933. * test/PeerListProcessorTest.cc
  2934. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2935. Use url-list (web-seeding) only for single-file torrent. This is
  2936. basically the same behavior with Metalink file with torrent and
  2937. URIs.
  2938. * src/RequestGroup.cc
  2939. * src/DefaultBtContext.cc
  2940. * test/DefaultBtContextTest.cc
  2941. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  2942. Rewritten expr
  2943. * src/array_fun.h
  2944. * test/array_funTest.cc
  2945. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  2946. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2947. * src/DefaultBtMessageDispatcher.cc
  2948. * src/a2algo.h
  2949. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  2950. Removed ExtendedMessagingAware. Instead of using inheritance,
  2951. added ExtensionMessageRegistry and it is passed to
  2952. DefaultExtensionMessageFactory.
  2953. * src/DefaultBtInteractive.cc
  2954. * src/DefaultBtInteractive.h
  2955. * src/DefaultExtensionMessageFactory.cc
  2956. * src/DefaultExtensionMessageFactory.h
  2957. * src/ExtendedMessagingAware.h: Removed.
  2958. * src/ExtensionMessageFactory.h
  2959. * src/ExtensionMessageRegistry.h: Added.
  2960. * src/Makefile.am
  2961. * src/PeerInteractionCommand.cc
  2962. * test/DefaultExtensionMessageFactoryTest.cc
  2963. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  2964. Fixed typo in log messages
  2965. * src/MSEHandshake.cc
  2966. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  2967. Fixed the bug that prevents torrent download from finishing. The
  2968. bug doesn't reveal for all torrents. The torrents affected this
  2969. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2970. of pieces.
  2971. * src/bitfield.h
  2972. * test/bitfieldTest.cc
  2973. 2009-04-24 Tatsuhiro Tsujikawa <[email protected]>
  2974. Code cleanup
  2975. * src/PeerListProcessor.h
  2976. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2977. Removed RequestGroupAware
  2978. * src/AbstractCommand.cc
  2979. * src/AbstractCommand.h
  2980. * src/ActivePeerConnectionCommand.cc
  2981. * src/ActivePeerConnectionCommand.h
  2982. * src/DHTGetPeersCommand.cc
  2983. * src/DHTGetPeersCommand.h
  2984. * src/InitiatorMSEHandshakeCommand.cc
  2985. * src/InitiatorMSEHandshakeCommand.h
  2986. * src/Makefile.am
  2987. * src/PeerInitiateConnectionCommand.cc
  2988. * src/PeerInitiateConnectionCommand.h
  2989. * src/PeerInteractionCommand.cc
  2990. * src/PeerInteractionCommand.h
  2991. * src/RealtimeCommand.cc
  2992. * src/RealtimeCommand.h
  2993. * src/RequestGroupAware.cc: Removed
  2994. * src/RequestGroupAware.h: Removed
  2995. * src/SeedCheckCommand.cc
  2996. * src/SeedCheckCommand.h
  2997. * src/SleepCommand.cc
  2998. * src/TrackerWatcherCommand.cc
  2999. * src/TrackerWatcherCommand.h
  3000. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  3001. Rewritten PeerListProcessor
  3002. * src/PeerListProcessor.h
  3003. * src/CompactPeerListProcessor.h: Removed
  3004. * src/CompactPeerListProcessor.cc: Removed
  3005. * src/DelegatingPeerListProcessor.cc: Removed.
  3006. * src/DefaultBtAnnounce.cc
  3007. * src/Makefile.am
  3008. * src/UTPexExtensionMessage.cc
  3009. * src/DefaultPeerListProcessor.h: Removed.
  3010. * src/DefaultPeerListProcessor.cc: Removed.
  3011. * src/DelegatingPeerListProcessor.h: Removed.
  3012. * test/Makefile.am
  3013. * test/PeerListProcessorTest.cc
  3014. * test/DefaultPeerListProcessorTest.cc: Removed.
  3015. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  3016. Rewritten RequestGroupMan::calculateStat()
  3017. * src/RequestGroupMan.cc
  3018. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  3019. Removed unnecessary virtual destructor for Request class.
  3020. * src/Request.cc
  3021. * src/Request.h
  3022. 2009-04-22 Tatsuhiro Tsujikawa <[email protected]>
  3023. Avoid dynamic_pointer_cast.
  3024. * src/DHTGetPeersCommand.cc
  3025. * src/DHTGetPeersCommand.h
  3026. 2009-04-21 Tatsuhiro Tsujikawa <[email protected]>
  3027. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3028. BtEvent.
  3029. * src/AbstractBtEventListener.h: Removed.
  3030. * src/AbstractBtMessage.cc
  3031. * src/AbstractBtMessage.h
  3032. * src/BtAbortOutstandingRequestEvent.h
  3033. * src/BtCancelSendingPieceEvent.h
  3034. * src/BtChokedEvent.h: Removed.
  3035. * src/BtChokingEvent.h
  3036. * src/BtEvent.h: Removed
  3037. * src/BtEventListener.h: Removed.
  3038. * src/BtMessage.h
  3039. * src/BtPieceMessage.cc
  3040. * src/BtPieceMessage.h
  3041. * src/BtRequestMessage.cc
  3042. * src/BtRequestMessage.h
  3043. * src/DefaultBtMessageDispatcher.cc
  3044. * src/Makefile.am
  3045. * src/a2functional.h
  3046. * test/BtPieceMessageTest.cc
  3047. * test/BtRequestMessageTest.cc
  3048. * test/DefaultBtMessageDispatcherTest.cc
  3049. * test/MockBtMessage.h
  3050. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  3051. Code cleanup
  3052. * src/RequestGroupMan.cc
  3053. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  3054. Code cleanup
  3055. * src/DownloadCommand.cc
  3056. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  3057. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3058. byte.
  3059. * src/DownloadCommand.cc
  3060. * src/bitfield.h
  3061. * test/bitfieldTest.cc
  3062. Fixed the bug that causes infinite loop if broken web server
  3063. returns chunked response without last "0" chunk-size marker and
  3064. closes connection.
  3065. * src/DownloadCommand.cc
  3066. Instantiate properly configured HttpDownloadCommand for
  3067. non-resumable downlaods.
  3068. * src/HttpResponseCommand.cc
  3069. 2009-04-16 Tatsuhiro Tsujikawa <[email protected]>
  3070. Rewritten array operation functions.
  3071. * src/BitfieldMan.cc
  3072. * src/array_fun.h
  3073. * test/array_funTest.cc
  3074. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  3075. Removed unused variable 'query'
  3076. * src/Request.cc
  3077. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  3078. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3079. accidentally set to false in r1162.
  3080. * configure.ac
  3081. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  3082. Code cleanup
  3083. * src/BNode.cc
  3084. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  3085. Increase prefixLength for the bucket which doesn't own local node
  3086. ID when splitting bucket.
  3087. * src/DHTBucket.cc
  3088. * test/DHTBucketTest.cc
  3089. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  3090. * Release 1.3.1
  3091. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  3092. Bump up version number to 1.3.1
  3093. * configure.ac
  3094. 2009-04-08 Tatsuhiro Tsujikawa <[email protected]>
  3095. Removed unused variable checkPoint. Also removed include directive
  3096. for TimeA2.h.
  3097. * src/SeedCheckCommand.h
  3098. 2009-04-07 Tatsuhiro Tsujikawa <[email protected]>
  3099. Fixed the bug that upload limit exceeds the value specified in
  3100. --seed-ratio option depending on the timing of the execution of
  3101. SeedCheckCommand.
  3102. * src/SeedCheckCommand.cc
  3103. 2009-04-05 Tatsuhiro Tsujikawa <[email protected]>
  3104. Fixed the bug that removed peer's session upload/download length
  3105. are counted twice in _cachedTransferStat before it is
  3106. re-calculated. This affected the calculation of shara ratio,
  3107. resulting aria2 wrongly determines that specified share ratio is
  3108. reached. Also fixed the typo in calculateStatFor function name.
  3109. * src/BtSetup.cc
  3110. * src/DefaultPeerStorage.cc
  3111. * src/ShareRatioSeedCriteria.h
  3112. * test/ShareRatioSeedCriteriaTest.cc
  3113. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  3114. * Release 1.3.0
  3115. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  3116. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3117. Nynorsk translations. Thanks to all translators.
  3118. * po/es.po
  3119. * po/ja.po
  3120. * po/nn.po
  3121. * po/ru.po
  3122. * po/uk.po
  3123. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  3124. Rewritten isInRange()
  3125. * src/DHTBucket.cc
  3126. * test/DHTBucketTest.cc
  3127. 2009-03-30 Tatsuhiro Tsujikawa <[email protected]>
  3128. Fixed typo
  3129. * doc/aria2c.1.txt
  3130. 2009-03-29 Tatsuhiro Tsujikawa <[email protected]>
  3131. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3132. malloc/realloc is not used.
  3133. * src/configure.ac
  3134. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  3135. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3136. char* bitfield instead of stl container for efficiency.
  3137. PieceSelector::select now takes this
  3138. bitfield. RarestPieceSelector::select now also performs
  3139. efficiently for this change. bitfield namespace is introduced and
  3140. it has several helper functions to handle basic bitfield
  3141. operations such as test, count set bits, etc.
  3142. * src/BitfieldMan.cc
  3143. * src/BitfieldMan.h
  3144. * src/DefaultBtRequestFactory.cc
  3145. * src/DefaultPieceStorage.cc
  3146. * src/DefaultPieceStorage.h
  3147. * src/LongestSequencePieceSelector.cc
  3148. * src/LongestSequencePieceSelector.h
  3149. * src/Makefile.am
  3150. * src/Piece.cc
  3151. * src/Piece.h
  3152. * src/PieceSelector.h
  3153. * src/RarestPieceSelector.cc
  3154. * src/RarestPieceSelector.h
  3155. * src/Util.cc
  3156. * src/Util.h
  3157. * src/bitfield.h
  3158. * test/BitfieldManTest.cc
  3159. * test/LongestSequencePieceSelectorTest.cc
  3160. * test/Makefile.am
  3161. * test/RarestPieceSelectorTest.cc
  3162. * test/UtilTest.cc
  3163. * test/bitfieldTest.cc
  3164. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  3165. Made accepted socket non-block.
  3166. * src/FtpNegotiationCommand.cc
  3167. * src/HttpListenCommand.cc
  3168. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  3169. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3170. * src/AbstractSingleDiskAdaptor.cc
  3171. * src/DefaultPieceStorage.cc
  3172. * src/DiskAdaptor.h
  3173. * src/DiskAdaptor.h
  3174. * src/MultiFileAllocationIterator.cc
  3175. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  3176. Run
  3177. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3178. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3179. it doesn't need to be called every time when
  3180. DefaultBtInteractive::doInteractionProcessing() is called.
  3181. * src/DefaultBtInteractive.cc
  3182. * src/DefaultBtInteractive.h
  3183. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3184. Documented 'falloc' in man page.
  3185. * doc/aria2c.1.txt
  3186. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3187. Updated doc
  3188. * src/usage_text.h
  3189. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3190. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3191. allocation mode uses posix_fallocate() system call to allocate
  3192. file on disk. If you are using newer file systems such as ext4
  3193. (with extents support), btrfs or xfs, 'falloc' is your best
  3194. choice. It allocates large(few GiB) files almost instantly. Don't
  3195. use 'falloc' with legacy file systems such as ext3 because it
  3196. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3197. until allocation finishes. 'falloc' may not be available if your
  3198. system doesn't have posix_fallocate() system call.
  3199. * configure.ac
  3200. * src/AbstractDiskWriter.cc
  3201. * src/AbstractDiskWriter.h
  3202. * src/AbstractSingleDiskAdaptor.cc
  3203. * src/BinaryStream.h
  3204. * src/BtCheckIntegrityEntry.cc
  3205. * src/ByteArrayDiskWriter.h
  3206. * src/CheckIntegrityEntry.cc
  3207. * src/CheckIntegrityEntry.h
  3208. * src/DefaultPieceStorage.cc
  3209. * src/DiskAdaptor.cc
  3210. * src/DiskAdaptor.h
  3211. * src/DiskWriter.h
  3212. * src/FallocFileAllocationIterator.cc
  3213. * src/FallocFileAllocationIterator.h
  3214. * src/FileAllocationEntry.cc
  3215. * src/FileAllocationEntry.h
  3216. * src/Makefile.am
  3217. * src/MultiFileAllocationIterator.cc
  3218. * src/MultiFileAllocationIterator.h
  3219. * src/OptionHandlerFactory.cc
  3220. * src/RequestGroup.cc
  3221. * src/StreamCheckIntegrityEntry.cc
  3222. * src/prefs.cc
  3223. * src/prefs.h
  3224. * src/usage_text.h
  3225. * test/FallocFileAllocationIteratorTest.cc
  3226. * test/Makefile.am
  3227. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3228. Removed duplicate enableDirectIO() call.
  3229. * src/MultiFileAllocationIterator.cc
  3230. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3231. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3232. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3233. cost of std::rotate().
  3234. * src/RarestPieceSelector.cc
  3235. * src/RarestPieceSelector.h
  3236. * test/RarestPieceSelectorTest.cc
  3237. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  3238. Updated usage doc for --bt-tracker-interval option.
  3239. * src/usage_text.h
  3240. * doc/aria2c.1.txt
  3241. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  3242. Documented --bt-tracker-interval option in man page.
  3243. * doc/aria2c.1.txt
  3244. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  3245. Added an option to specify the interval between tracker requests.
  3246. If non-zero value is specified, aria2 uses it and ignores the
  3247. interval value in the response of tracker. If zero is specified,
  3248. aria2 determines the inteval value based on the tarcker response
  3249. and download progress.
  3250. * src/DefaultBtAnnounce.cc
  3251. * src/DefaultBtAnnounce.h
  3252. * src/OptionHandlerFactory.cc
  3253. * src/RequestGroup.cc
  3254. * src/prefs.cc
  3255. * src/prefs.h
  3256. * src/usage_text.h
  3257. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  3258. Added operator+=, operator-=, operator-
  3259. * src/TransferStat.cc
  3260. * src/TransferStat.h
  3261. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  3262. Refactored RarestPieceSelector to reduce CPU load, especially for
  3263. addPieceStats.
  3264. * src/RarestPieceSelector.cc
  3265. * src/RarestPieceSelector.h
  3266. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  3267. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3268. getAllMissingBlockIndexes to reduce a call to
  3269. array_function_base::operator[].
  3270. * src/BitfieldMan.cc
  3271. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  3272. Cached TransferStat/download speed to avoid to sum them up in each
  3273. call.
  3274. * src/DefaultPeerStorage.cc
  3275. * src/DefaultPeerStorage.h
  3276. * src/SegmentMan.cc
  3277. * src/SegmentMan.h
  3278. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  3279. Typedefed cuid_t as int32_t in Command.h
  3280. * src/CUIDCounter.h
  3281. * src/Command.cc
  3282. * src/Command.h
  3283. * src/DownloadEngine.cc
  3284. * src/DownloadEngine.h
  3285. * src/PeerStat.h
  3286. * src/SegmentMan.cc
  3287. * src/SegmentMan.h
  3288. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  3289. Reduced the number of calls to PeerStorage::calculateStat() and
  3290. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3291. transfer rate.
  3292. * src/DefaultBtInteractive.cc
  3293. * src/DefaultBtMessageDispatcher.cc
  3294. * src/DefaultPeerStorage.cc
  3295. * src/DefaultPeerStorage.h
  3296. * src/DownloadCommand.cc
  3297. * src/DownloadEngine.cc
  3298. * src/PeerStorage.h
  3299. * src/SegmentMan.cc
  3300. * src/SegmentMan.h
  3301. * test/MockPeerStorage.h
  3302. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3303. Prepended _dir+"/" after joining path elements in torrent file.
  3304. * src/DefaultBtContext.cc
  3305. * test/DefaultBtContextTest.cc
  3306. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3307. Added missing IndexBtMessageValidator.h
  3308. * src/Makefile.am
  3309. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3310. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3311. Chinese translations. Thank you for contributing our project.
  3312. * po/id.po
  3313. * po/it.po
  3314. * po/ru.po
  3315. * po/uk.po
  3316. * po/zh_CN.po
  3317. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3318. Updated README
  3319. * README
  3320. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3321. Bump up version number to 1.3.0
  3322. * configure.ac
  3323. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3324. Updated doc
  3325. * src/DefaultBtContext.h
  3326. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3327. Slice/joinPath for name of single torrent.
  3328. * src/DefaultBtContext.cc
  3329. * test/DefaultBtContextTest.cc
  3330. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3331. Updated man page: Documented --dry-run and --index-out
  3332. options. Changed the default value of --uri-selector and
  3333. --http-auth-challenge options. Removed --direct-file-mapping
  3334. option. Added example for --index-out
  3335. * doc/aria2c.1.txt
  3336. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3337. Updated TEXT_DRY_RUN
  3338. * src/usage_text.h
  3339. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3340. Changed the default value of --uri-selector option from 'inorder'
  3341. to 'feedback'
  3342. * src/OptionHandlerFactory.cc
  3343. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3344. Included current URI in exception message.
  3345. * src/AbstractCommand.cc
  3346. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3347. Renamed ServerStatURISelector as FeedbackURISelector.
  3348. * src/FeedbackURISelector.cc
  3349. * src/FeedbackURISelector.h
  3350. * src/Makefile.am
  3351. * src/RequestGroupMan.cc
  3352. * src/ServerStatURISelector.cc
  3353. * src/ServerStatURISelector.h
  3354. * test/FeedbackURISelectorTest.cc
  3355. * test/Makefile.am
  3356. * test/ServerStatURISelectorTest.cc
  3357. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3358. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3359. all URIs are tested and their timeout is not reached.
  3360. * src/AdaptiveURISelector.cc
  3361. * src/AdaptiveURISelector.h
  3362. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3363. Changed the default value of --http-auth-challenge option to false.
  3364. * src/OptionHandlerFactory.cc
  3365. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3366. Reuse URIs when all unused URIs run out.
  3367. * src/OptionHandlerFactory.cc
  3368. * src/RequestGroup.cc
  3369. * src/prefs.cc
  3370. * src/prefs.h
  3371. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3372. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3373. and BtRejectMessage are derived from RangeBtMessage class.
  3374. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3375. derived from IndexBtMessage class. BtChokeMessage,
  3376. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3377. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3378. ZeroBtMessage class.
  3379. * src/AbstractBtMessage.cc
  3380. * src/AbstractBtMessage.h
  3381. * src/BtAllowedFastMessage.cc
  3382. * src/BtAllowedFastMessage.h
  3383. * src/BtAllowedFastMessageValidator.h: Removed
  3384. * src/BtBitfieldMessage.cc
  3385. * src/BtBitfieldMessage.h
  3386. * src/BtCancelMessage.cc
  3387. * src/BtCancelMessage.h
  3388. * src/BtCancelMessageValidator.h: Removed
  3389. * src/BtChokeMessage.cc
  3390. * src/BtChokeMessage.h
  3391. * src/BtExtendedMessage.cc
  3392. * src/BtExtendedMessage.h
  3393. * src/BtHandshakeMessage.cc
  3394. * src/BtHandshakeMessage.h
  3395. * src/BtHaveAllMessage.cc
  3396. * src/BtHaveAllMessage.h
  3397. * src/BtHaveMessage.cc
  3398. * src/BtHaveMessage.h
  3399. * src/BtHaveMessageValidator.h: Removed
  3400. * src/BtHaveNoneMessage.cc
  3401. * src/BtHaveNoneMessage.h
  3402. * src/BtInterestedMessage.cc
  3403. * src/BtInterestedMessage.h
  3404. * src/BtKeepAliveMessage.cc
  3405. * src/BtKeepAliveMessage.h
  3406. * src/BtNotInterestedMessage.cc
  3407. * src/BtNotInterestedMessage.h
  3408. * src/BtPieceMessage.cc
  3409. * src/BtPieceMessage.h
  3410. * src/BtPortMessage.cc
  3411. * src/BtPortMessage.h
  3412. * src/BtRejectMessage.cc
  3413. * src/BtRejectMessage.h
  3414. * src/BtRejectMessageValidator.h: Removed
  3415. * src/BtRequestMessage.cc
  3416. * src/BtRequestMessage.h
  3417. * src/BtRequestMessageValidator.h: Removed
  3418. * src/BtSuggestPieceMessage.cc
  3419. * src/BtSuggestPieceMessage.h
  3420. * src/BtSuggestPieceMessageValidator.h: Removed
  3421. * src/BtUnchokeMessage.cc
  3422. * src/BtUnchokeMessage.h
  3423. * src/DefaultBtMessageFactory.cc
  3424. * src/IndexBtMessage.cc
  3425. * src/IndexBtMessage.h
  3426. * src/IndexBtMessageValidator.h
  3427. * src/Makefile.am
  3428. * src/PeerMessageUtil.cc
  3429. * src/PeerMessageUtil.h
  3430. * src/RangeBtMessage.cc
  3431. * src/RangeBtMessage.h
  3432. * src/RangeBtMessageValidator.h
  3433. * src/SimpleBtMessage.cc
  3434. * src/SimpleBtMessage.h
  3435. * src/ZeroBtMessage.cc
  3436. * src/ZeroBtMessage.h
  3437. * test/BtRequestMessageTest.cc
  3438. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  3439. Reverted usage_text.h to r1093 to avoid to lose translated
  3440. messages.
  3441. * src/usage_text.h
  3442. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  3443. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3444. declared as non-const previously is now const and defined in class
  3445. definition.
  3446. * src/AbstractBtMessage.cc
  3447. * src/AbstractBtMessage.h
  3448. * src/BtAllowedFastMessage.cc
  3449. * src/BtAllowedFastMessage.h
  3450. * src/BtBitfieldMessage.h
  3451. * src/BtCancelMessage.cc
  3452. * src/BtCancelMessage.h
  3453. * src/BtChokeMessage.cc
  3454. * src/BtChokeMessage.h
  3455. * src/BtExtendedMessage.cc
  3456. * src/BtExtendedMessage.h
  3457. * src/BtHandshakeMessage.cc
  3458. * src/BtHandshakeMessage.h
  3459. * src/BtHaveAllMessage.cc
  3460. * src/BtHaveAllMessage.h
  3461. * src/BtHaveMessage.cc
  3462. * src/BtHaveMessage.h
  3463. * src/BtHaveNoneMessage.cc
  3464. * src/BtHaveNoneMessage.h
  3465. * src/BtInterestedMessage.cc
  3466. * src/BtInterestedMessage.h
  3467. * src/BtKeepAliveMessage.cc
  3468. * src/BtKeepAliveMessage.h
  3469. * src/BtMessage.h
  3470. * src/BtNotInterestedMessage.cc
  3471. * src/BtNotInterestedMessage.h
  3472. * src/BtPieceMessage.h
  3473. * src/BtPortMessage.cc
  3474. * src/BtPortMessage.h
  3475. * src/BtRejectMessage.cc
  3476. * src/BtRejectMessage.h
  3477. * src/BtRequestMessage.cc
  3478. * src/BtRequestMessage.h
  3479. * src/BtSuggestPieceMessage.cc
  3480. * src/BtSuggestPieceMessage.h
  3481. * src/BtUnchokeMessage.cc
  3482. * src/BtUnchokeMessage.h
  3483. * src/SimpleBtMessage.cc
  3484. * src/SimpleBtMessage.h
  3485. * test/MockBtMessage.h
  3486. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  3487. Use FileEntry::exists()
  3488. * src/MultiDiskAdaptor.cc
  3489. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  3490. Added exists()
  3491. * src/FileEntry.cc
  3492. * src/FileEntry.h
  3493. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3494. Added missing prefix dir.
  3495. * src/download_helper.cc
  3496. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3497. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3498. * src/CopyDiskAdaptor.cc: Removed
  3499. * src/CopyDiskAdaptor.h: Removed
  3500. * src/DefaultPieceStorage.cc
  3501. * src/Makefile.am
  3502. * src/OptionHandlerFactory.cc
  3503. * src/prefs.cc
  3504. * src/prefs.h
  3505. * src/usage_text.h
  3506. * test/CopyDiskAdaptorTest.cc: Removed
  3507. * test/Makefile.am
  3508. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3509. Rewritten isSameFileBeingDownloaded()
  3510. * src/RequestGroupMan.cc
  3511. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3512. Removed getName() from DownloadContext. getName() is declared in
  3513. BtContext.
  3514. * src/BtContext.h
  3515. * src/DownloadContext.h
  3516. * src/SingleFileDownloadContext.cc
  3517. * src/SingleFileDownloadContext.h
  3518. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3519. in AbstractSingleDiskAdaptor.
  3520. * src/AbstractSingleDiskAdaptor.h
  3521. * src/DiskAdaptor.h
  3522. * src/MultiDiskAdaptor.h
  3523. * src/RequestGroup.cc
  3524. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3525. MultiDiskAdaptor.
  3526. * src/DefaultPieceStorage.cc
  3527. * src/MultiDiskAdaptor.cc
  3528. * src/MultiDiskAdaptor.h
  3529. * test/MultiDiskAdaptorTest.cc
  3530. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3531. FileEntry::getPath() contains store(top level) directory to
  3532. simplify path handling operation. In the previous implementation,
  3533. store directory is concatenated to FileEntry::getPath() in
  3534. DownloadContext.
  3535. * src/BtDependency.cc
  3536. * src/BtPostDownloadHandler.cc
  3537. * src/CopyDiskAdaptor.cc
  3538. * src/DefaultBtContext.cc
  3539. * src/DirectDiskAdaptor.cc
  3540. * src/FileEntry.cc
  3541. * src/FileEntry.h
  3542. * src/FtpNegotiationCommand.cc
  3543. * src/HttpResponse.cc
  3544. * src/HttpResponseCommand.cc
  3545. * src/Metalink2RequestGroup.cc
  3546. * src/MultiDiskAdaptor.cc
  3547. * src/MultiDiskAdaptor.h
  3548. * src/MultiFileAllocationIterator.cc
  3549. * src/RequestGroup.cc
  3550. * src/SingleFileDownloadContext.cc
  3551. * src/SingleFileDownloadContext.h
  3552. * src/download_helper.cc
  3553. * test/BtDependencyTest.cc
  3554. * test/CopyDiskAdaptorTest.cc
  3555. * test/DefaultBtContextTest.cc
  3556. * test/DefaultBtProgressInfoFileTest.cc
  3557. * test/DirectDiskAdaptorTest.cc
  3558. * test/DownloadHelperTest.cc
  3559. * test/FileEntryTest.cc
  3560. * test/MultiDiskAdaptorTest.cc
  3561. * test/MultiFileAllocationIteratorTest.cc
  3562. * test/RequestGroupTest.cc
  3563. * test/SingleFileDownloadContextTest.cc
  3564. 2009-03-09 Tatsuhiro Tsujikawa <[email protected]>
  3565. Fixed compiler warning
  3566. * src/download_helper.cc
  3567. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3568. Throw exception if same infohash torrent is now downloading.
  3569. * src/RequestGroup.cc
  3570. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3571. Added --dry-run option. In this mode, aria2 just checks whether
  3572. the remote file is available and doesn't download data. This
  3573. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3574. are canceled in this mode.
  3575. * src/FtpNegotiationCommand.cc
  3576. * src/HttpResponseCommand.cc
  3577. * src/HttpResponseCommand.h
  3578. * src/OptionHandlerFactory.cc
  3579. * src/RequestGroup.cc
  3580. * src/RequestGroupMan.cc
  3581. * src/prefs.cc
  3582. * src/prefs.h
  3583. * src/usage_text.h
  3584. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3585. Fixed compiler waring
  3586. * test/UriListParserTest.cc
  3587. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3588. Parse options in -i list using OptionParser.
  3589. * src/UriListParser.cc
  3590. * src/UriListParser.h
  3591. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3592. Don't reset URI in retry to avoid additional round trips because
  3593. of redirects.
  3594. * src/AbstractCommand.cc
  3595. * src/OptionHandlerFactory.cc
  3596. * src/prefs.cc
  3597. * src/prefs.h
  3598. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3599. Declared hide() in OptionHandler.
  3600. * src/NameMatchOptionHandler.h
  3601. * src/OptionHandler.h
  3602. * src/OptionHandlerImpl.h
  3603. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3604. Updated doc
  3605. * src/Peer.h
  3606. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  3607. Added log message in setStatusInternal()
  3608. * src/ServerStat.cc
  3609. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  3610. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3611. effectively exclude failed server.
  3612. * src/AbstractCommand.cc
  3613. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  3614. Added --index-out option to specify each file path for torrent.
  3615. Here index shown in --show-files option is used to specify which
  3616. file path should be altered. For example, to change the file path
  3617. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3618. option multiple times: --index-out=1=aria2.tar.bz2
  3619. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3620. available. This option can be specified in -i list.
  3621. * src/DefaultBtContext.cc
  3622. * src/DefaultBtContext.h
  3623. * src/MultiDiskAdaptor.cc
  3624. * src/MultiDiskAdaptor.h
  3625. * src/MultiFileAllocationIterator.cc
  3626. * src/OptionHandlerFactory.cc
  3627. * src/OptionHandlerImpl.h
  3628. * src/Util.cc
  3629. * src/Util.h
  3630. * src/download_helper.cc
  3631. * src/prefs.cc
  3632. * src/prefs.h
  3633. * src/usage_text.h
  3634. * test/DefaultBtContextTest.cc
  3635. * test/MultiDiskAdaptorTest.cc
  3636. * test/MultiFileAllocationIteratorTest.cc
  3637. * test/UtilTest.cc
  3638. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  3639. Use Util::pathJoin()
  3640. * src/MetalinkParserController.cc
  3641. * test/test.xml
  3642. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  3643. Use Util::pathJoin()
  3644. * src/DefaultBtContext.cc
  3645. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  3646. Added Util::pathJoin()
  3647. * src/Util.h
  3648. * test/UtilTest.cc
  3649. 2009-03-04 Tatsuhiro Tsujikawa <[email protected]>
  3650. Applied basename function to remove directory element in
  3651. content-disposition value.
  3652. Return empty string if content-disposition value is ".." or ".".
  3653. * src/Util.cc
  3654. * test/UtilTest.cc
  3655. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3656. Added --max-overall-download-limit in man page.
  3657. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3658. * doc/aria2c.1.txt
  3659. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3660. Added --max-overall-download-limit option. Now --max-upload-limit
  3661. option is not ignored when --max-overall-upload-limit option has
  3662. non-zero value. aria2 checks download(upload) speed in the order:
  3663. first checks overall speed limit and if it is not exceeded, then
  3664. checks speed limit per download. Thus you can specify both
  3665. value. For example, set --max-overall-download-limit=1M and
  3666. --max-download-limit=500K to prevent from one download from eating
  3667. all overall speed limit.
  3668. * src/DefaultBtInteractive.cc
  3669. * src/DefaultBtInteractive.h
  3670. * src/DefaultBtMessageDispatcher.cc
  3671. * src/DefaultBtMessageDispatcher.h
  3672. * src/DownloadCommand.cc
  3673. * src/DownloadCommand.h
  3674. * src/FtpNegotiationCommand.cc
  3675. * src/HttpResponseCommand.cc
  3676. * src/OptionHandlerFactory.cc
  3677. * src/PeerInteractionCommand.cc
  3678. * src/RequestGroup.cc
  3679. * src/RequestGroup.h
  3680. * src/RequestGroupMan.cc
  3681. * src/RequestGroupMan.h
  3682. * src/prefs.cc
  3683. * src/prefs.h
  3684. * src/usage_text.h
  3685. * test/DefaultBtMessageDispatcherTest.cc
  3686. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3687. Documented select-file option in Input File section.
  3688. Documented --http-auth-challenge option.
  3689. * doc/aria2c.1.txt
  3690. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3691. Now select-file can be specified in the uri list(-i list).
  3692. * src/BtContext.cc
  3693. * src/BtContext.h
  3694. * src/RequestGroup.cc
  3695. * src/Sequence.h
  3696. * src/download_helper.cc
  3697. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3698. Made the upper value of --max-concurrent-downloads options unlimited.
  3699. * src/OptionHandlerFactory.cc
  3700. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3701. Fixed the bug that disk writer is not created even if it shares
  3702. same piece with the preceding file if the length of previous file
  3703. is 0.
  3704. * src/MultiDiskAdaptor.cc
  3705. * test/MultiDiskAdaptorTest.cc
  3706. 2009-02-23 Tatsuhiro Tsujikawa <[email protected]>
  3707. In BitTorrent, Open files in read-only mode for hash check. After
  3708. that, re-open file in read/write mode only when the download is
  3709. not finished.
  3710. * src/AbstractDiskWriter.cc
  3711. * src/AbstractDiskWriter.h
  3712. * src/AbstractSingleDiskAdaptor.cc
  3713. * src/AbstractSingleDiskAdaptor.h
  3714. * src/BtCheckIntegrityEntry.cc
  3715. * src/DiskAdaptor.h
  3716. * src/DiskWriter.h
  3717. * src/MultiDiskAdaptor.cc
  3718. * src/MultiDiskAdaptor.h
  3719. * src/RequestGroup.cc
  3720. 2009-02-19 Tatsuhiro Tsujikawa <[email protected]>
  3721. Added --http-auth-challenge option. If it is set to true(by
  3722. default), aria2 sends HTTP authorization header only when it is
  3723. requested by the server. If false is set, then authorization
  3724. header is always sent to the server. This is useful for servers
  3725. that don't respond 401 code when authentication is required.
  3726. There is an exception: if username and password are embedded in
  3727. URI, authorization header is always sent to the server regardless
  3728. of this option.
  3729. * src/AuthConfigFactory.cc
  3730. * src/HttpSkipResponseCommand.cc
  3731. * src/OptionHandlerFactory.cc
  3732. * src/prefs.cc
  3733. * src/prefs.h
  3734. * src/usage_text.h
  3735. * test/AuthConfigFactoryTest.cc
  3736. * test/HttpRequestTest.cc
  3737. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3738. * Release 1.2.0
  3739. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3740. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3741. Thanks to all translators.
  3742. * po/es.po
  3743. * po/ja.po
  3744. * po/ru.po
  3745. * po/uk.po
  3746. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3747. Call deleteSocketForReadCheck() before socket is closed.
  3748. * src/HttpListenCommand.cc
  3749. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3750. Defined virtual destructor for BObject.
  3751. * src/bencode.h
  3752. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3753. Rewritten BDE to make it efficient.
  3754. * src/bencode.cc
  3755. * src/bencode.h
  3756. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3757. Removed function throw list.
  3758. * src/bencode.cc
  3759. * src/bencode.h
  3760. * test/BencodeTest.cc
  3761. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3762. Enclosed all URLs in double quotes in command-line examples.
  3763. * doc/aria2c.1.txt
  3764. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3765. Updated reference/see also section.
  3766. * README
  3767. * doc/aria2c.1.txt
  3768. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3769. Reorganized man page based on man man-pages.
  3770. * doc/aria2c.1.txt
  3771. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3772. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3773. because same documents are available in man page. Added
  3774. References section.
  3775. * README
  3776. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3777. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3778. PERFORMANCE PROFILE section.
  3779. * doc/aria2c.1.txt
  3780. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3781. Rewritten the section for configuration file.
  3782. * README
  3783. * doc/aria2c.1.txt
  3784. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3785. Fixed the segmentation fault during execution of choking algorithm
  3786. in leecher state because of broken compare operator
  3787. implementation.
  3788. * src/BtLeecherStateChoke.cc
  3789. * src/BtLeecherStateChoke.h
  3790. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3791. Open file in binary mode.
  3792. * src/CookieStorage.cc
  3793. * src/DHTSetup.cc
  3794. * src/DHTUtil.cc
  3795. * src/Netrc.cc
  3796. * src/NsCookieParser.cc
  3797. * src/ProtocolDetector.cc
  3798. * src/RequestGroupMan.cc
  3799. * src/Signature.cc
  3800. * src/bencode.cc
  3801. * src/download_helper.cc
  3802. * src/option_processing.cc
  3803. * test/CookieParserTest.cc
  3804. * test/DefaultBtProgressInfoFileTest.cc
  3805. * test/FileTest.cc
  3806. * test/GZipDecoderTest.cc
  3807. * test/RequestGroupManTest.cc
  3808. * test/SignatureTest.cc
  3809. * test/SingleFileAllocationIteratorTest.cc
  3810. * test/UriListParserTest.cc
  3811. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3812. Removed operator[] because it is ambiguous with built-in []
  3813. operator.
  3814. * src/array_fun.h
  3815. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3816. Fixed compile error
  3817. * src/OptionParser.cc
  3818. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3819. Added missing call to arrayWrapperConst
  3820. * test/array_funTest.cc
  3821. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3822. Use array_wrapper instead of array_ptr.
  3823. * src/DHTRoutingTableDeserializer.cc
  3824. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3825. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3826. * src/array_fun.h
  3827. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3828. Added array_wrapper template.
  3829. * src/array_fun.h
  3830. * test/array_funTest.cc
  3831. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3832. Use operator T* of array_ptr.
  3833. * src/OptionParser.cc
  3834. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3835. Use localhost instead of 127.0.0.1
  3836. * test/FtpConnectionTest.cc
  3837. * test/MSEHandshakeTest.cc
  3838. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3839. Added operator T*
  3840. * src/array_fun.h
  3841. * test/array_funTest.cc
  3842. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3843. Use dynamically allocated char array to detect memory access
  3844. violation.
  3845. * src/DHTRoutingTableDeserializer.cc
  3846. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3847. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3848. defined.
  3849. * src/PeerMessageUtil.cc
  3850. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3851. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3852. * configure.ac
  3853. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3854. Added a check to see struct sockaddr_in has sin_len member.
  3855. * configure.ac
  3856. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3857. Fixed buffer overrun.
  3858. * src/DHTRoutingTableDeserializer.cc
  3859. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3860. Added LL for long long int constant.
  3861. * test/FtpConnectionTest.cc
  3862. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3863. Casted to unsigned int to suppress compiler warning on netbsd.
  3864. * src/BtRuntime.h
  3865. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3866. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3867. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3868. type time_t.
  3869. * src/SimpleLogger.cc
  3870. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3871. Added test for FtpConnection::receiveSizeResponse().
  3872. * test/FtpConnectionTest.cc
  3873. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3874. Fix epoll error on the old kernel 2.6.8 or ealier.
  3875. * src/EpollEventPoll.cc
  3876. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3877. Use Util::parseLLInt instead of sscanf for portability. The
  3878. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3879. * src/FtpConnection.cc
  3880. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3881. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3882. block. It should not filter anything.
  3883. * src/BitfieldMan.cc
  3884. * src/ConsoleStatCalc.cc
  3885. * test/BitfieldManTest.cc
  3886. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3887. Fixed the bug that the boolean options that don't take arguments
  3888. don't work.
  3889. * src/OptionHandlerImpl.h
  3890. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3891. Fixed broken selected file BitTorrent download.
  3892. * src/MultiDiskAdaptor.cc
  3893. * test/MultiDiskAdaptorTest.cc
  3894. * test/MultiFileAllocationIteratorTest.cc
  3895. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3896. Fixed #define guard for EpollEventPoll
  3897. * src/EpollEventPoll.h
  3898. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3899. Wait 2 seconds. 1 second is sometimes not enough.
  3900. * test/TimeSeedCriteriaTest.cc
  3901. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3902. Use localhost instead of 127.0.0.1.
  3903. * test/DHTConnectionImplTest.cc
  3904. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3905. Suppressed compiler warning.
  3906. * src/AdaptiveURISelector.cc
  3907. * src/DefaultPieceStorage.cc
  3908. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3909. Defined virtual destructor.
  3910. * src/MetalinkParserState.h
  3911. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3912. Give NULL for second argument of getaddrinfo instead of "0".
  3913. * src/NameResolver.cc
  3914. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3915. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3916. included strptime doesn't parse data for this format.
  3917. * src/FtpConnection.cc
  3918. * test/FtpConnectionTest.cc
  3919. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3920. Removed tests giving -1 for unsigned argument.
  3921. * test/SingleFileDownloadContextTest.cc
  3922. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3923. Don't use sha256 in tests because it might not be supported by the
  3924. SSL library.
  3925. * test/MetalinkProcessorTest.cc
  3926. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3927. Removed tests giving -1 for unsigned argument.
  3928. * test/AlphaNumberDecoratorTest
  3929. * test/BitfieldManTest.cc
  3930. * test/DefaultBtContextTest.cc
  3931. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3932. Fixed compile error without libcares when epoll is available.
  3933. * src/EpollEventPoll.cc
  3934. 2009-02-09 Tatsuhiro Tsujikawa <[email protected]>
  3935. Included fstream instead of iostream.
  3936. * test/SignatureTest.cc
  3937. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3938. Removed #include <algorithm>
  3939. * test/RequestGroupTest.cc
  3940. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3941. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3942. using RequestGroup::extractURIResult().
  3943. * src/AdaptiveURISelector.cc
  3944. * src/RequestGroup.cc
  3945. * src/RequestGroup.h
  3946. * test/RequestGroupTest.cc
  3947. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3948. Added tests for array_ptr.
  3949. * test/array_funTest.cc
  3950. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3951. Don't send ip parameter to a tracker if ip parameter is empty
  3952. string.
  3953. * src/DefaultBtAnnounce.cc
  3954. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3955. Adjusted line feed.
  3956. * src/version_usage.cc
  3957. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3958. Print tags, possible values when OptionHandlerException is caught.
  3959. * src/option_processing.cc
  3960. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3961. Changed the message for FatalException.
  3962. * src/OptionParser.cc
  3963. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3964. Documented --bt-external-ip option in man page. Updated man pages
  3965. for --proxy-method option.
  3966. * doc/aria2c.1.txt
  3967. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3968. Use GET method for FTP via HTTP proxy.
  3969. * src/FtpInitiateConnectionCommand.cc
  3970. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3971. Changed the default value of --proxy-method option from 'tunnel'
  3972. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3973. option.
  3974. * src/AbstractCommand.cc
  3975. * src/AbstractCommand.h
  3976. * src/FtpInitiateConnectionCommand.cc
  3977. * src/HttpDownloadCommand.cc
  3978. * src/HttpInitiateConnectionCommand.cc
  3979. * src/HttpInitiateConnectionCommand.h
  3980. * src/OptionHandlerFactory.cc
  3981. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3982. Initialized _logger
  3983. * src/SelectEventPoll.cc
  3984. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3985. Defined a copy constructor for the same type.
  3986. * src/SharedHandle.h
  3987. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3988. Added OptionParser::parseArg() which internally uses getopt_long
  3989. to parse command-line options. All command-line options are now
  3990. configured by OptionHandler. No manual editing of struct option*
  3991. is required any more.
  3992. * src/NameMatchOptionHandler.h
  3993. * src/OptionHandler.h
  3994. * src/OptionHandlerFactory.cc
  3995. * src/OptionHandlerImpl.h
  3996. * src/OptionParser.cc
  3997. * src/OptionParser.h
  3998. * src/array_fun.h
  3999. * src/main.cc
  4000. * src/option_processing.cc
  4001. * test/OptionHandlerTest.cc
  4002. * test/OptionParserTest.cc
  4003. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4004. Fixed configure error with --disable-epoll
  4005. * configure.ac
  4006. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4007. Fixed compile error when HAVE_EPOLL is not defined.
  4008. Fixed linker error on bigendian systems.
  4009. * src/SocketCore.cc
  4010. * src/SocketCore.h
  4011. * test/DefaultBtProgressInfoFileTest.cc
  4012. 2009-02-04 Tatsuhiro Tsujikawa <[email protected]>
  4013. Added --bt-external-ip option. You can specify the external IP
  4014. address to report to a BitTorrent tracker. Although this function
  4015. is named 'external', it can accept any kind of IP addresses.
  4016. * src/DefaultBtAnnounce.cc
  4017. * src/OptionHandlerFactory.cc
  4018. * src/option_processing.cc
  4019. * src/prefs.cc
  4020. * src/prefs.h
  4021. * src/usage_text.h
  4022. * test/DefaultBtAnnounceTest.cc
  4023. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  4024. Extracted the algorithm to find the longest incremental sequence
  4025. as max_sequence template.
  4026. * src/LongestSequencePieceSelector.cc
  4027. * src/a2algo.h
  4028. * test/Makefile.am
  4029. * test/a2algoTest.cc
  4030. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  4031. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4032. * src/usage_text.h
  4033. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  4034. Updated doc for --uri-selector, --http-server-listen-port and
  4035. --enable-http-server option. Documented --event-poll option.
  4036. * doc/aria2c.1.txt
  4037. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  4038. Updated doc for --enable-http-server.
  4039. * src/usage_text.h
  4040. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  4041. Documented --http-server-listen-port and --enable-http-server in
  4042. man page.
  4043. * doc/aria2c.1.txt
  4044. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4045. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4046. translations. Thanks to all translators.
  4047. * po/es.po
  4048. * po/id.po
  4049. * po/it.po
  4050. * po/ru.po
  4051. * po/uk.po
  4052. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4053. Bump up version number to 1.2.0
  4054. * configure.ac
  4055. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4056. BtContext::getAnnounceTiers() now returns const reference.
  4057. * src/BtContext.h
  4058. * src/DefaultBtContext.cc
  4059. * src/DefaultBtContext.h
  4060. * test/MockBtContext.h
  4061. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4062. Change the number of retries for tracker request based on the
  4063. number of available tracker in a torrent file.
  4064. * src/TrackerWatcherCommand.cc
  4065. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4066. Added _maxTries property to RequestGroup and assign the option
  4067. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4068. RequestGroup::getMaxTries() instead of
  4069. Option::getAsInt(PREF_MAX_TRIES).
  4070. * src/AbstractCommand.cc
  4071. * src/RequestGroup.cc
  4072. * src/RequestGroup.h
  4073. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4074. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4075. Mandriva. I modified the patch: make RequestGroup have the
  4076. timeout value and AdaptiveURISelector directly modifies that
  4077. value.
  4078. * src/AbstractCommand.cc
  4079. * src/AdaptiveURISelector.cc
  4080. * src/AdaptiveURISelector.h
  4081. * src/FtpNegotiationCommand.cc
  4082. * src/RequestGroup.cc
  4083. * src/RequestGroup.h
  4084. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4085. Fixed compiler warning
  4086. * test/IteratableChecksumValidatorTest.cc
  4087. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  4088. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4089. integrated downloads. This PieceSelector subclass finds the
  4090. longest continuous sequence in the available missing pieces and
  4091. selects the last index of such sequence. This makes HTTP/FTP
  4092. connections less interrupted by the pieces obtained by BitTorrent
  4093. peers.
  4094. * src/DefaultPieceStorage.cc
  4095. * src/DefaultPieceStorage.h
  4096. * src/LongestSequencePieceSelector.cc
  4097. * src/LongestSequencePieceSelector.h
  4098. * src/Makefile.am
  4099. * src/PieceSelector.h
  4100. * src/RarestPieceSelector.h
  4101. * src/RequestGroup.cc
  4102. * test/BtDependencyTest.cc
  4103. * test/DefaultPieceStorageTest.cc
  4104. * test/IteratableChecksumValidatorTest.cc
  4105. * test/LongestSequencePieceSelectorTest.cc
  4106. * test/Makefile.am
  4107. * test/SegmentManTest.cc
  4108. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  4109. Fixed the bug that the average speed is wrong in
  4110. http/ftp/BitTorrent integrated download. Only the download bytes
  4111. in BitTorrent were considered.
  4112. * src/RequestGroup.cc
  4113. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  4114. Choose port for BitTorrent/DHT randomly from the specified range.
  4115. * src/DHTConnectionImpl.cc
  4116. * src/PeerListenCommand.cc
  4117. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  4118. Send HTTP Authorization header only if it is requested by the
  4119. server(response 401). There are some exceptions. The authorization
  4120. header for proxy is always sent if it is available without request
  4121. by the server. If username/password is specified in the URI, it
  4122. is immediately sent to the server without request by the server.
  4123. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4124. SharedHandle<AuthConfig>().
  4125. NetrcAuthResolver::resolveAuthConfig() returns
  4126. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4127. * src/AbstractAuthResolver.cc
  4128. * src/AbstractProxyRequestCommand.cc
  4129. * src/AuthConfigFactory.cc
  4130. * src/AuthConfigFactory.h
  4131. * src/HttpConnection.cc
  4132. * src/HttpRequest.cc
  4133. * src/HttpRequest.h
  4134. * src/HttpResponse.cc
  4135. * src/HttpResponseCommand.cc
  4136. * src/HttpSkipResponseCommand.cc
  4137. * test/AuthConfigFactoryTest.cc
  4138. * test/HttpRequestTest.cc
  4139. * test/HttpResponseTest.cc
  4140. 2009-01-27 Tatsuhiro Tsujikawa <[email protected]>
  4141. Remove leading "--" from help keyword and a substring after "="
  4142. from help keyword, so that one can query options by '-h--max-' or
  4143. '-hmax-peers=10'.
  4144. * src/option_processing.cc
  4145. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  4146. Rewritten PStringVisitor and its implementation.
  4147. * src/PStringBuildVisitor.cc
  4148. * src/PStringBuildVisitor.h
  4149. * src/PStringDatum.h
  4150. * src/PStringNumLoop.h
  4151. * src/PStringSegment.cc
  4152. * src/PStringSegment.h
  4153. * src/PStringSelect.h
  4154. * src/PStringVisitor.h
  4155. * src/download_helper.cc
  4156. * test/PStringBuildVisitorTest.cc
  4157. * test/ParameterizedStringParserTest.cc
  4158. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  4159. Persist connection between the built-in HTTP server and a client
  4160. if a client supports keep-alive. Fixed the bug that aria2 exits
  4161. when the HTTP server receives EOF from a client.
  4162. * src/HttpServer.cc
  4163. * src/HttpServer.h
  4164. * src/HttpServerCommand.cc
  4165. * src/HttpServerCommand.h
  4166. * src/HttpServerResponseCommand.cc
  4167. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  4168. Added experimental built-in HTTP server. Currently, when a client
  4169. accesses to the server, it responds with the current download
  4170. progress. By default, it is disabled. To enable the server, give
  4171. --enable-http-server option. To change the default port number
  4172. for the server to listen to, use --http-server-listen-port option.
  4173. The response HTML is very simple and refreshes it self each 1
  4174. second. Because of this refresh, you see flicker in normal web
  4175. browser such as Firefox. I recommend to use console-based browser
  4176. such as elinks, w3m. To connect to the server, run 'elinks
  4177. http://localhost:6800/' while running aria2. Please replace port
  4178. number '6800'(which is default) with your preference.
  4179. * src/DownloadEngineFactory.cc
  4180. * src/HttpHeader.cc
  4181. * src/HttpHeader.h
  4182. * src/HttpHeaderProcessor.cc
  4183. * src/HttpHeaderProcessor.h
  4184. * src/HttpListenCommand.cc
  4185. * src/HttpListenCommand.h
  4186. * src/HttpServer.cc
  4187. * src/HttpServer.h
  4188. * src/HttpServerCommand.cc
  4189. * src/HttpServerCommand.h
  4190. * src/HttpServerResponseCommand.cc
  4191. * src/HttpServerResponseCommand.h
  4192. * src/Makefile.am
  4193. * src/OptionHandlerFactory.cc
  4194. * src/Util.cc
  4195. * src/Util.h
  4196. * src/help_tags.h
  4197. * src/option_processing.cc
  4198. * src/prefs.cc
  4199. * src/prefs.h
  4200. * src/usage_text.h
  4201. * test/HttpHeaderProcessorTest.cc
  4202. * test/UtilTest.cc
  4203. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4204. Removed.
  4205. * src/CheckIntegrityMan.cc
  4206. * src/FileAllocationMan.cc
  4207. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4208. Made (piece) hash check sequential for each RequestGroup because
  4209. simultaneous hash check is slower than sequential execution.
  4210. * src/CheckIntegrityCommand.cc
  4211. * src/CheckIntegrityDispatcherCommand.cc
  4212. * src/CheckIntegrityDispatcherCommand.h
  4213. * src/CheckIntegrityMan.h
  4214. * src/ConsoleStatCalc.cc
  4215. * src/DownloadCommand.cc
  4216. * src/DownloadEngine.cc
  4217. * src/DownloadEngine.h
  4218. * src/DownloadEngineFactory.cc
  4219. * src/Makefile.am
  4220. * src/Makefile.in
  4221. * src/RequestGroup.cc
  4222. * src/StatCalc.h
  4223. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4224. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4225. SequentialDispatcherCommand.
  4226. * src/FileAllocationDispatcherCommand.cc
  4227. * src/SequentialDispatcherCommand.h
  4228. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4229. Rewritten FileAllocationDispatcherCommand using brand new
  4230. SequentialDispatcherCommand.
  4231. * src/DownloadEngineFactory.cc
  4232. * src/FileAllocationCommand.cc
  4233. * src/FileAllocationDispatcherCommand.cc
  4234. * src/FileAllocationDispatcherCommand.h
  4235. * src/Makefile.am
  4236. * src/SequentialDispatcherCommand.h
  4237. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4238. Replaced FileAllocationMan with
  4239. SequentialPicker<FileAllocationEntry>.
  4240. * src/BtCheckIntegrityEntry.cc
  4241. * src/ConsoleStatCalc.cc
  4242. * src/DownloadEngine.cc
  4243. * src/DownloadEngine.h
  4244. * src/DownloadEngineFactory.cc
  4245. * src/FileAllocationCommand.cc
  4246. * src/FileAllocationDispatcherCommand.cc
  4247. * src/FileAllocationMan.h
  4248. * src/Makefile.am
  4249. * src/SequentialPicker.h
  4250. * src/StatCalc.h
  4251. * src/StreamCheckIntegrityEntry.cc
  4252. * test/Makefile.am
  4253. * test/SequentialPickerTest.cc
  4254. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  4255. Added doc for adaptive URI selector.
  4256. * doc/aria2c.1.txt
  4257. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  4258. Added doc for adaptive URI selector.
  4259. * src/usage_text.h
  4260. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  4261. Added doc for --bt-max-peers option.
  4262. * doc/aria2c.1.txt
  4263. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  4264. Added doc for --bt-hash-check-seed option.
  4265. * doc/aria2c.1.txt
  4266. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  4267. Documented exit codes.
  4268. * doc/aria2c.1.txt
  4269. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  4270. Added --bt-max-peers option to specify the maximum number of peers
  4271. per torrent. 0 means unlimited number of peers.
  4272. * src/ActivePeerConnectionCommand.cc
  4273. * src/BtRuntime.h
  4274. * src/DefaultPeerStorage.cc
  4275. * src/DefaultPeerStorage.h
  4276. * src/OptionHandlerFactory.cc
  4277. * src/RequestGroup.cc
  4278. * src/option_processing.cc
  4279. * src/prefs.cc
  4280. * src/prefs.h
  4281. * src/usage_text.h
  4282. * test/DefaultPeerStorageTest.cc
  4283. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  4284. Added --bt-hash-check-seed option. If true is given to this
  4285. option, after hash check using --check-integrity option and file
  4286. is complete, continue to seed file. If you want to check file and
  4287. download it only when it is damaged or incomplete, set this option
  4288. to false. This option has effect only on BitTorrent download.
  4289. The default value is true(This is the same behavior with the
  4290. previous release).
  4291. * src/BtCheckIntegrityEntry.cc
  4292. * src/OptionHandlerFactory.cc
  4293. * src/option_processing.cc
  4294. * src/prefs.cc
  4295. * src/prefs.h
  4296. * src/usage_text.h
  4297. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  4298. Updated copyright year.
  4299. * src/version_usage.cc
  4300. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  4301. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4302. * doc/aria2c.1.txt
  4303. * src/usage_text.h
  4304. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  4305. Made the max value of split option unlimited.
  4306. * doc/aria2c.1.txt
  4307. * src/OptionHandlerFactory.cc
  4308. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  4309. Fixed compile warning/error.
  4310. * src/DownloadResult.h
  4311. * src/HttpDownloadCommand.cc
  4312. * src/ServerStat.cc
  4313. * test/RequestGroupTest.cc
  4314. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  4315. Added --event-poll option to select the method for polling events.
  4316. The available methods are "select" and "epoll". "epoll" is
  4317. available on Linux only. The earlier release has the compile
  4318. option to choose from these methods.
  4319. * configure.ac
  4320. * src/RequestGroupMan.cc
  4321. * src/OptionHandlerFactory.cc
  4322. * src/EpollEventPoll.h
  4323. * src/StreamFileAllocationEntry.cc
  4324. * src/a2io.h
  4325. * src/SelectEventPoll.h
  4326. * src/option_processing.cc
  4327. * src/prefs.h
  4328. * src/EpollEventPoll.cc
  4329. * src/EventPoll.h
  4330. * src/SocketCore.h
  4331. * src/Makefile.am
  4332. * src/main.cc
  4333. * src/DownloadEngine.h
  4334. * src/SelectEventPoll.cc
  4335. * src/DownloadEngine.cc
  4336. * src/SocketCore.cc
  4337. * src/DownloadEngineFactory.cc
  4338. * src/Makefile.in
  4339. * src/prefs.cc
  4340. * src/usage_text.h
  4341. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  4342. Included RecoverableException.h from main.cc
  4343. * src/main.cc
  4344. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  4345. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4346. now returns last error encountered in the HTTP/FTP downloads as a
  4347. exit status value. If all downloads finished successfully, aria2
  4348. returns 0. The error code is defined in src/DownloadResult.h.
  4349. The error occurred in the download currently in progress is not
  4350. reported as a last error. If no error has encountered but there
  4351. are in progress or waiting downloads, aria2 returns 7.
  4352. * src/AbstractCommand.cc
  4353. * src/DlAbortEx.h
  4354. * src/DlRetryEx.h
  4355. * src/DownloadCommand.cc
  4356. * src/DownloadFailureException.h
  4357. * src/DownloadResult.h
  4358. * src/FtpNegotiationCommand.cc
  4359. * src/HttpSkipResponseCommand.cc
  4360. * src/Makefile.am
  4361. * src/MultiUrlRequestInfo.cc
  4362. * src/MultiUrlRequestInfo.h
  4363. * src/RecoverableException.h
  4364. * src/RequestGroup.cc
  4365. * src/RequestGroup.h
  4366. * src/RequestGroupMan.cc
  4367. * src/RequestGroupMan.h
  4368. * src/URIResult.cc
  4369. * src/URIResult.h
  4370. * src/main.cc
  4371. * src/option_processing.cc
  4372. * test/RequestGroupTest.cc
  4373. 2009-01-06 Tatsuhiro Tsujikawa <[email protected]>
  4374. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4375. patch adds AdaptiveURISelector, which selects one of the bests
  4376. mirrors for first and reserved connections. For supplementary
  4377. ones, it returns mirrors which has not been tested yet, and if
  4378. each of them already tested, returns mirrors which has to be
  4379. tested again. Otherwise, it doesn't return anymore mirrors.
  4380. * src/AdaptiveURISelector.cc
  4381. * src/AdaptiveURISelector.h
  4382. * src/FtpNegotiationCommand.cc
  4383. * src/HttpResponseCommand.cc
  4384. * src/Makefile.am
  4385. * src/Makefile.in
  4386. * src/OptionHandlerFactory.cc
  4387. * src/RequestGroup.cc
  4388. * src/RequestGroup.h
  4389. * src/RequestGroupMan.cc
  4390. * src/ServerStat.cc
  4391. * src/ServerStat.h
  4392. * src/ServerStatMan.cc
  4393. * src/SpeedCalc.cc
  4394. * src/URISelector.h
  4395. * src/prefs.cc
  4396. * src/prefs.h
  4397. * test/RequestGroupManTest.cc
  4398. * test/ServerStatManTest.cc
  4399. * test/ServerStatTest.cc
  4400. 2009-01-04 Tatsuhiro Tsujikawa <[email protected]>
  4401. Fixed unit test error.
  4402. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4403. 2008-12-30 Tatsuhiro Tsujikawa <[email protected]>
  4404. * Release 1.1.2
  4405. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  4406. Updated Russian translation. Thanks to the translators.
  4407. * po/ru.po
  4408. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  4409. Added the description of --use-head option to man page.
  4410. * doc/aria2c.1.txt
  4411. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  4412. Bump up version number to 1.1.2
  4413. * configure.ac
  4414. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  4415. Added --use-head option to toggle whether HEAD method should be
  4416. used in the first HTTP request. By default aria2 uses HEAD method
  4417. as the first request. When the server doesn't recognize HEAD, then
  4418. give aria2 --use-head=false to force aria2 to use GET method
  4419. instead.
  4420. * src/OptionHandlerFactory.cc
  4421. * src/RequestGroupMan.cc
  4422. * src/option_processing.cc
  4423. * src/prefs.cc
  4424. * src/prefs.h
  4425. * src/usage_text.h
  4426. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  4427. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4428. message is received before CHOKE message. The old implementation
  4429. doen't clear the use-bit of the piece when recieved REJECT
  4430. message.
  4431. * src/DefaultBtMessageDispatcher.cc
  4432. * test/DefaultBtMessageDispatcherTest.cc
  4433. 2008-12-25 Tatsuhiro Tsujikawa <[email protected]>
  4434. * Release 1.1.1
  4435. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  4436. Bump up version number to 1.1.1.
  4437. * configure.ac
  4438. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  4439. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4440. is printed repeatedly.
  4441. * src/ConsoleStatCalc.cc
  4442. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  4443. * Release 1.1.0
  4444. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  4445. Added ifdef clause for conditional compilation.
  4446. * src/main.cc
  4447. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  4448. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4449. translations. Thanks to all translators.
  4450. * po/ja.po
  4451. * po/ru.po
  4452. * po/uk.po
  4453. * po/zh_CN.po
  4454. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  4455. Added the preceding ">>> " before the message "Printing the
  4456. contents of file..." to make the output more readable.
  4457. * src/main.cc
  4458. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  4459. Added try-catch block in the loop in showFiles() to continue the
  4460. operation even if the exception occurred in one file.
  4461. * src/main.cc (showFiles)
  4462. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  4463. Made messages in showFiles() translatable.
  4464. * po/aria2.pot
  4465. * src/main.cc
  4466. * src/message.h
  4467. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  4468. Print the contents of Torrent/Metalink files are printed without
  4469. -T/-M options.
  4470. * src/main.cc
  4471. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4472. Escaped '--' with '\--'
  4473. * README
  4474. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4475. Updated "How to build" section in README. Mentioned about
  4476. --with-ca-bundle compile option.
  4477. * README
  4478. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4479. Bump up version number to 1.1.0.
  4480. * configure.ac
  4481. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4482. Added a note for --dht-listen-port option.
  4483. * doc/aria2c.1.txt
  4484. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4485. Update doc for --realtime-chunk-checksum option.
  4486. * doc/aria2c.1.txt
  4487. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4488. Update doc for --realtime-chunk-checksum option.
  4489. * src/usage_text.h
  4490. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4491. Updated French, Japanese, Russian and Ukrainian translations.
  4492. Thanks to all translators.
  4493. * po/fr.po
  4494. * po/ja.po
  4495. * po/ru.po
  4496. * po/uk.po
  4497. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4498. Renamed aria2c.pot to aria2.pot
  4499. * po/aria2.pot
  4500. * po/aria2c.pot: Removed.
  4501. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4502. Removed MetaEntry.h
  4503. * src/Makefile.am
  4504. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4505. Rename file by appending digits if a local file exists and its
  4506. file size is larger than that of remote file with --continue
  4507. option. The old implementation just throws exception in such case.
  4508. * src/RequestGroup.cc
  4509. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  4510. Fixed the bug that download progress summary is not printed in the
  4511. interval specified by the option.
  4512. * src/ConsoleStatCalc.cc
  4513. * src/ConsoleStatCalc.h
  4514. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  4515. Fixed compiler warning
  4516. * src/Cookie.cc
  4517. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  4518. Fixed the cookie implementation based on RFC2965.
  4519. Now if a value in domain field is not started with dot, then
  4520. prepend dot. That means a cookie with domain=sf.net is sent to
  4521. wiki.sf.net.
  4522. * src/Cookie.cc
  4523. * test/CookieParserTest.cc
  4524. * test/CookieStorageTest.cc
  4525. * test/CookieTest.cc
  4526. * test/NsCookieParserTest.cc
  4527. * test/Sqlite3MozCookieParserTest.cc
  4528. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  4529. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4530. is enabled and the server doesn't support keep-alive.
  4531. * src/AbstractCommand.cc
  4532. * src/DownloadCommand.cc
  4533. * src/HttpDownloadCommand.cc
  4534. * src/HttpDownloadCommand.h
  4535. * src/HttpResponseCommand.cc
  4536. * src/Request.cc
  4537. * src/Request.h
  4538. * test/RequestTest.cc
  4539. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4540. Removed Dictionary/List/Data and its related classes.
  4541. * src/BencodeVisitor.cc: Removed.
  4542. * src/BencodeVisitor.h: Removed.
  4543. * src/Data.cc: Removed.
  4544. * src/Data.h: Removed.
  4545. * src/Dictionary.cc: Removed.
  4546. * src/Dictionary.h: Removed.
  4547. * src/List.cc: Removed.
  4548. * src/List.h: Removed.
  4549. * src/Makefile.am
  4550. * src/MetaEntry.h: Removed.
  4551. * src/MetaEntryVisitor.h: Removed.
  4552. * src/MetaFileUtil.cc: Removed.
  4553. * src/MetaFileUtil.h: Removed.
  4554. * test/BencodeVisitorTest.cc: Removed.
  4555. * test/DataTest.cc: Removed.
  4556. * test/DictionaryTest.cc: Removed.
  4557. * test/ListTest.cc: Removed.
  4558. * test/Makefile.am
  4559. * test/MetaFileUtilTest.cc: Removed.
  4560. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4561. Removed include of MetaEntry.h
  4562. * test/DHTMessageTrackerEntryTest.cc
  4563. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4564. Use BDE instead of Dictionary/List/Data.
  4565. * src/AnnounceList.cc
  4566. * src/AnnounceList.h
  4567. * test/AnnounceListTest.cc
  4568. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4569. Use BDE instead of Dictionary/List/Data.
  4570. * src/DHTAbstractMessage.cc
  4571. * src/DHTAbstractMessage.h
  4572. * src/DHTAnnouncePeerMessage.cc
  4573. * src/DHTAnnouncePeerMessage.h
  4574. * src/DHTAnnouncePeerReplyMessage.cc
  4575. * src/DHTAnnouncePeerReplyMessage.h
  4576. * src/DHTFindNodeMessage.cc
  4577. * src/DHTFindNodeMessage.h
  4578. * src/DHTFindNodeReplyMessage.cc
  4579. * src/DHTFindNodeReplyMessage.h
  4580. * src/DHTGetPeersMessage.cc
  4581. * src/DHTGetPeersMessage.h
  4582. * src/DHTGetPeersReplyMessage.cc
  4583. * src/DHTGetPeersReplyMessage.h
  4584. * src/DHTMessageFactory.h
  4585. * src/DHTMessageFactoryImpl.cc
  4586. * src/DHTMessageFactoryImpl.h
  4587. * src/DHTMessageReceiver.cc
  4588. * src/DHTMessageTracker.cc
  4589. * src/DHTMessageTracker.h
  4590. * src/DHTPingMessage.cc
  4591. * src/DHTPingMessage.h
  4592. * src/DHTPingReplyMessage.cc
  4593. * src/DHTPingReplyMessage.h
  4594. * src/DHTQueryMessage.cc
  4595. * src/DHTQueryMessage.h
  4596. * src/DHTResponseMessage.cc
  4597. * src/DHTResponseMessage.h
  4598. * test/DHTAnnouncePeerMessageTest.cc
  4599. * test/DHTAnnouncePeerReplyMessageTest.cc
  4600. * test/DHTFindNodeMessageTest.cc
  4601. * test/DHTFindNodeReplyMessageTest.cc
  4602. * test/DHTGetPeersMessageTest.cc
  4603. * test/DHTGetPeersReplyMessageTest.cc
  4604. * test/DHTMessageFactoryImplTest.cc
  4605. * test/DHTMessageTrackerTest.cc
  4606. * test/DHTPingMessageTest.cc
  4607. * test/DHTPingReplyMessageTest.cc
  4608. * test/MockDHTMessageFactory.h
  4609. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4610. Added tests the case where length < 0 is specified.
  4611. * test/BencodeTest.cc
  4612. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4613. Fixed memory leak in decoderawstring()
  4614. * src/bencode.cc
  4615. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4616. Added missing #ifdef guard. Added uc() function for String and
  4617. removeKey() for Dict.
  4618. * src/bencode.cc
  4619. * src/bencode.h
  4620. * test/BencodeTest.cc
  4621. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  4622. Use BDE instead of Dictionary/List/Data.
  4623. * src/HandshakeExtensionMessage.cc
  4624. * src/HandshakeExtensionMessage.h
  4625. * test/HandshakeExtensionMessageTest.cc
  4626. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  4627. Added --max-overall-upload-limit option. This option limits the
  4628. overall upload speed. Stated in help message that the existing
  4629. --max-upload-limit option limits the upload speed per each
  4630. torrent. Man page is also updated.
  4631. * doc/aria2c.1.txt
  4632. * src/DefaultBtMessageDispatcher.cc
  4633. * src/DefaultBtMessageDispatcher.h
  4634. * src/OptionHandlerFactory.cc
  4635. * src/PeerInteractionCommand.cc
  4636. * src/option_processing.cc
  4637. * src/prefs.cc
  4638. * src/prefs.h
  4639. * src/usage_text.h
  4640. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  4641. Use BDE instead of Dictionary/List/Data classes.
  4642. * src/CompactPeerListProcessor.cc
  4643. * src/CompactPeerListProcessor.h
  4644. * src/DefaultBtAnnounce.cc
  4645. * src/DefaultBtContext.cc
  4646. * src/DefaultBtContext.h
  4647. * src/DefaultPeerListProcessor.cc
  4648. * src/DefaultPeerListProcessor.h
  4649. * src/DelegatingPeerListProcessor.cc
  4650. * src/DelegatingPeerListProcessor.h
  4651. * src/PeerListProcessor.h
  4652. * src/UTPexExtensionMessage.cc
  4653. * src/Util.h
  4654. * src/message.h
  4655. * test/DefaultBtContextTest.cc
  4656. * test/DefaultPeerListProcessorTest.cc
  4657. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  4658. Added bencode helper functions and BDE class.
  4659. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4660. * src/Makefile.am
  4661. * src/bencode.cc
  4662. * src/bencode.h
  4663. * test/BencodeTest.cc
  4664. * test/Makefile.am
  4665. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  4666. Fixed the bug that bad URI is sent to the tracker when the announe
  4667. URI in torrent file includes query.
  4668. * src/DefaultBtAnnounce.cc
  4669. * test/DefaultBtAnnounceTest.cc
  4670. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  4671. Added Option::blank().
  4672. Use !Option::blank(name) instead of Option::defined(name) for
  4673. the options that take filename.
  4674. * src/MultiUrlRequestInfo.cc
  4675. * src/Option.cc
  4676. * src/Option.h
  4677. * src/main.cc
  4678. * src/option_processing.cc
  4679. * test/OptionTest.cc
  4680. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  4681. Documented the default value of --check-certificate option in man
  4682. page.
  4683. * doc/aria2c.1.txt
  4684. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  4685. Enabled --check-certificate by default. Added compile
  4686. time(configure) option --with-ca-bundle to specify CA bundle.
  4687. Warn if --check-certificate=true and --ca-certificate is not
  4688. specified or loading CA certificate is failed.
  4689. * configure.ac
  4690. * src/MultiUrlRequestInfo.cc
  4691. * src/OptionHandlerFactory.cc
  4692. * src/message.h
  4693. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  4694. Mentioned https tag in help option.
  4695. * doc/aria2c.1.txt
  4696. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  4697. Added `https' tag to help option category. Added https tag to
  4698. --ca-certificate, --certificate, --check-certificate and
  4699. --private-key option.
  4700. * src/OptionHandlerFactory.cc
  4701. * src/help_tags.h
  4702. * src/option_processing.cc
  4703. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4704. Changed the package name from `aria2c' to `aria2' in order to fix
  4705. the packaging issue in Debian and Fedora. The name of the
  4706. executable is not changed.
  4707. * configure.ac
  4708. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4709. Fixed typos
  4710. * src/usage_text.h
  4711. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4712. Fixed typos and updated doc.
  4713. * README
  4714. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4715. Fixed typos
  4716. * doc/aria2c.1.txt
  4717. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4718. Fixed typos
  4719. * src/usage_text.h
  4720. 2008-11-30 Tatsuhiro Tsujikawa <[email protected]>
  4721. Print a message when no files to download.
  4722. * src/download_helper.cc
  4723. * src/main.cc
  4724. * src/message.h
  4725. 2008-11-28 Tatsuhiro Tsujikawa <[email protected]>
  4726. RFC3986 complied Percent-Encoding(urlencode).
  4727. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4728. ones.
  4729. * src/Request.cc
  4730. * src/Util.cc
  4731. * src/Util.h
  4732. * test/BtHandshakeMessageTest.cc
  4733. * test/DefaultBtAnnounceTest.cc
  4734. * test/DefaultBtContextTest.cc
  4735. * test/RequestTest.cc
  4736. * test/UtilTest.cc
  4737. 2008-11-27 Tatsuhiro Tsujikawa <[email protected]>
  4738. Fixed the bug that prevents aria2 from downloading 0-length files
  4739. via HTTP/FTP.
  4740. * src/DefaultBtContext.cc
  4741. * src/DefaultBtContext.h
  4742. * src/DownloadContext.h
  4743. * src/FtpNegotiationCommand.cc
  4744. * src/HttpResponseCommand.cc
  4745. * src/HttpResponseCommand.h
  4746. * src/RequestGroup.cc
  4747. * src/SingleFileDownloadContext.cc
  4748. * src/SingleFileDownloadContext.h
  4749. * test/BtPostDownloadHandlerTest.cc
  4750. * test/MetalinkPostDownloadHandlerTest.cc
  4751. * test/MockBtContext.h
  4752. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  4753. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4754. * src/option_processing.cc
  4755. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  4756. Applied aria2-1.0.1-mingw.patch.
  4757. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4758. mingw.
  4759. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4760. * src/SocketCore.cc
  4761. * src/a2netcompat.h
  4762. * test/SocketCoreTest.cc
  4763. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4764. * Release 1.0.1
  4765. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4766. Updated Ukrainian and Norwegian Nynorsk translations.
  4767. Thanks to all translators.
  4768. * po/nn.po
  4769. * po/uk.po
  4770. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4771. Don't show download result when -S option is used.
  4772. * src/main.cc
  4773. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4774. Bump up version number to 1.0.1
  4775. * configure.ac
  4776. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4777. Closed files after the test cases in MultiDiskWriterTest::
  4778. testResetDiskWriterEntries(). This will fix the unit test error
  4779. in mingw32 build.
  4780. * test/MultiDiskWriterTest.cc
  4781. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  4782. Use HEAD method to get file size from HTTP server for segmented
  4783. downloading.
  4784. The request to the BitTorrent Tracker always uses GET method because
  4785. the response of the tracker is small and it doesn't need segmented
  4786. download.
  4787. * src/FtpNegotiationCommand.cc
  4788. * src/HttpRequest.cc
  4789. * src/HttpResponseCommand.cc
  4790. * src/HttpSkipResponseCommand.cc
  4791. * src/RequestGroup.cc
  4792. * src/RequestGroup.h
  4793. * src/TrackerWatcherCommand.cc
  4794. * test/HttpRequestTest.cc
  4795. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  4796. Fixed the bug that causes floating exception when -T option is used and
  4797. no URIs are given.
  4798. * src/download_helper.cc
  4799. * test/DownloadHelperTest.cc
  4800. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4801. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4802. errors in MinGW:
  4803. Closed file after saving server stats (RequestGroupMan.cc)
  4804. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4805. Ignored case & handled 2-digit years (strptime.c)
  4806. Added missing suseconds_t definition (a2time.h)
  4807. Fixed socket CLOSE() define (SocketCore.cc)
  4808. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4809. Changed utime() test values from x000 to x00000 as MinGW failed on
  4810. values less than timezone offset from Unix epoch
  4811. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4812. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4813. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4814. handle negative dates (CookieParserTest.cc)
  4815. * src/a2time.h
  4816. * src/FtpConnection.cc
  4817. * src/RequestGroupMan.cc
  4818. * src/SocketCore.cc
  4819. * src/strptime.c
  4820. * test/CookieParserTest.cc
  4821. * test/CopyDiskAdaptorTest.cc
  4822. * test/FileTest.cc
  4823. * test/FtpConnectionTest.cc
  4824. * test/MultiDiskAdaptorTest.cc
  4825. 2008-11-20 Tatsuhiro Tsujikawa <[email protected]>
  4826. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4827. * doc/aria2c.1.txt
  4828. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  4829. * Release 1.0.0
  4830. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  4831. Added '~' to reserved characters.
  4832. * src/Util.cc
  4833. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  4834. Do not urlencode Request::url in setUrl() because we want unmodified
  4835. URL using Request::getUrl()
  4836. * src/Request.cc
  4837. * src/Request.h
  4838. * test/RequestTest.cc
  4839. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4840. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4841. Thanks to all translators.
  4842. * po/bg.po
  4843. * po/fr.po
  4844. * po/ja.po
  4845. * po/ru.po
  4846. * po/uk.po
  4847. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4848. Bump up version number to 1.0.0
  4849. * configure.ac
  4850. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4851. Added nosqlite3 build to build_test.sh.
  4852. Renamed noxml as expat.
  4853. * build_test.sh
  4854. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4855. Updated INPUT FILE section.
  4856. * doc/aria2c.1.txt
  4857. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4858. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4859. on big endian systems because test .aria2 files are made for little
  4860. endian systems.
  4861. * test/DefaultBtProgressInfoFileTest.cc
  4862. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4863. Dropped ares support.
  4864. * README
  4865. * configure.ac
  4866. * m4/libares.m4: Removed.
  4867. * src/AsyncNameResolver.cc
  4868. * src/Makefile.am
  4869. * test/Makefile.am
  4870. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  4871. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4872. Removed const qualifier from DiskWriter::size().
  4873. * src/AbstractDiskWriter.cc
  4874. * src/AbstractDiskWriter.h
  4875. * src/ByteArrayDiskWriter.cc
  4876. * src/ByteArrayDiskWriter.h
  4877. * src/DiskWriter.h
  4878. * test/ByteArrayDiskWriterTest.cc
  4879. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  4880. Fixed the bug that causes segmentation fault/bus error during executing
  4881. choking algorithm while seeding. This is caused by improper
  4882. implementation of compare function which returns inconsistent results
  4883. depending on the timing of last unchoke.
  4884. * src/BtSeederStateChoke.cc
  4885. * src/BtSeederStateChoke.h
  4886. * src/DefaultPeerStorage.cc
  4887. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4888. Removed TODO
  4889. * TODO
  4890. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4891. Added a section that explains how to pass argument to options that
  4892. takes optional arguments with its short form.
  4893. * doc/aria2c.1.txt
  4894. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4895. Added -u for the short form of --max-upload-limit option.
  4896. * doc/aria2c.1.txt
  4897. * src/option_processing.cc
  4898. * src/usage_text.h
  4899. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4900. Added -V for the short form of --check-integrity option.
  4901. Now the argument of --check-integrity option is optional:
  4902. if it is omitted, it is evaluated as true.
  4903. * doc/aria2c.1.txt
  4904. * src/option_processing.cc
  4905. * src/usage_text.h
  4906. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4907. Made the default value of --ftp-pasv option set to true and it can take
  4908. true/false values.
  4909. * src/OptionHandlerFactory.cc
  4910. * src/option_processing.cc
  4911. * src/usage_text.h
  4912. * doc/aria2c.1.txt
  4913. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  4914. Given custom random number generator to std::random_shuffle.
  4915. * src/AnnounceList.cc
  4916. * src/BtLeecherStateChoke.cc
  4917. * src/BtSeederStateChoke.cc
  4918. * src/DefaultBtRequestFactory.cc
  4919. * src/MetalinkEntry.cc
  4920. * src/RarestPieceSelector.cc
  4921. * src/SimpleRandomizer.cc
  4922. * src/SimpleRandomizer.h
  4923. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  4924. Now the default value of --enable-direct-io is true.
  4925. * src/OptionHandlerFactory.cc
  4926. * doc/aria2c.1.txt
  4927. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  4928. Erase peer before executing onReturningPeer and onErasingPeer
  4929. because choking algorithm called from onReturningPeer doesn't
  4930. like erasing peer in the active peer list.
  4931. * src/DefaultPeerStorage.cc
  4932. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4933. Instead of creating special filename in createDownloadResult() if
  4934. inMemoryDownload() is true, now it is done in getFilePath().
  4935. * src/RequestGroup.cc
  4936. * test/RequestGroupTest.cc
  4937. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4938. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4939. processed in memory. This is the fix for previous comment out.
  4940. * src/MemoryBufferPreDownloadHandler.cc
  4941. * src/RequestGroup.cc
  4942. * src/RequestGroup.h
  4943. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4944. Commented out the code which sets virtual directory path "[MEMORY]"
  4945. propagate directory to store to following RequestGroup.
  4946. * src/MemoryBufferPreDownloadHandler.cc
  4947. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4948. Bump up version number to 1.0.0b
  4949. * configure.ac
  4950. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4951. Added input_uris.txt to EXTRA_DIST
  4952. * test/Makefile.am
  4953. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4954. Removed PeerObject.h from Makefile.am
  4955. * src/Makefile.am
  4956. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4957. Avoid slow seeding
  4958. * src/PeerInteractionCommand.cc
  4959. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4960. Updated usage for -i option.
  4961. * src/usage_text.h (TEXT_INPUT_FILE)
  4962. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4963. Added INPUT FILE section to man page.
  4964. Escaped fake URLs.
  4965. * doc/aria2c.1.txt
  4966. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4967. Fixed wrong note position for -o option.
  4968. * doc/aria2c.1.txt
  4969. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4970. Fixed compile error without SSL/XML library.
  4971. * src/DefaultBtProgressInfoFile.cc
  4972. * src/DefaultBtProgressInfoFile.h
  4973. * src/FileMetalinkParserState.cc
  4974. * src/RequestGroup.h
  4975. * src/SocketCore.cc
  4976. * src/SocketCore.h
  4977. * src/VerificationMetalinkParserState.cc
  4978. * src/download_helper.h
  4979. * src/main.cc
  4980. * test/DefaultBtProgressInfoFileTest.cc
  4981. * test/DownloadHelperTest.cc
  4982. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  4983. Rewritten URI handling functions. They are now provided as a testable
  4984. functions.
  4985. * src/Makefile.am
  4986. * src/RequestGroup.cc
  4987. * src/RequestGroup.h
  4988. * src/download_helper.cc
  4989. * src/download_helper.h
  4990. * src/main.cc
  4991. * test/DownloadHelperTest.cc
  4992. * test/Makefile.am
  4993. * test/input_uris.txt
  4994. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  4995. Quickly terminate commands when ctrl-c is pressed.
  4996. * src/DownloadEngine.cc
  4997. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  4998. Quickly terminate idle commands when download finished.
  4999. * src/AbstractCommand.cc
  5000. * src/DownloadCommand.cc
  5001. * src/DownloadEngine.cc
  5002. * src/DownloadEngine.h
  5003. * src/SleepCommand.cc
  5004. * src/SleepCommand.h
  5005. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5006. Added the ability to specify output filename and directory in input
  5007. file.
  5008. Additional parameters are added in the following line of URIs
  5009. with proceeding white space(s), 1 parameter in 1 line.
  5010. The parameter names are the same with the command-line option name
  5011. without proceeding "--". Not all the options are available here:
  5012. at the moment, 'dir' and 'out' options are avialable.
  5013. Please note that out option has no effect against Metalink or BitTorrent
  5014. downloads.
  5015. Example input file:
  5016. http://host/foo-1.1.tar.bz2
  5017. out=foo.tar.bz2
  5018. dir=/tmp/downloads
  5019. http://host/thundermonkey-2.0.tar.bz2
  5020. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5021. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5022. thundermonkey-2.0.tar.bz2 is saved as
  5023. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5024. * src/BtPostDownloadHandler.cc
  5025. * src/Metalink2RequestGroup.cc
  5026. * src/Metalink2RequestGroup.h
  5027. * src/MetalinkPostDownloadHandler.cc
  5028. * src/UriListParser.cc
  5029. * src/UriListParser.h
  5030. * src/main.cc
  5031. * test/Metalink2RequestGroupTest.cc
  5032. * test/UriListParserTest.cc
  5033. * test/filelist1.txt
  5034. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5035. Fixed error when SSL library is not found.
  5036. * configure.ac
  5037. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5038. Cross referenced among -s, -C and -j options.
  5039. Updated usage of -C and -s options.
  5040. * src/usage_text.h
  5041. * doc/aria2c.1.txt
  5042. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5043. Fixed bad cast in 32bit platforms.
  5044. * test/DefaultPieceStorageTest.cc
  5045. (DefaultPieceStorageTest::testGetCompletedLength)
  5046. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5047. Fixed unit test fails on 32bit platforms.
  5048. * test/CookieParserTest.cc
  5049. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5050. Show an average download speed in Download results.
  5051. * src/BtFileAllocationEntry.cc
  5052. * src/DefaultPieceStorage.cc
  5053. * src/DownloadContext.cc
  5054. * src/DownloadContext.h
  5055. * src/DownloadResult.h
  5056. * src/RequestGroup.cc
  5057. * src/RequestGroupMan.cc
  5058. * src/StreamFileAllocationEntry.cc
  5059. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5060. Fixed the bug that metalink file is not processed if Content-Type
  5061. field has a paramter.
  5062. * src/HttpResponse.cc
  5063. * src/HttpResponse.h
  5064. * test/HttpResponseTest.cc
  5065. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  5066. Removed unused code.
  5067. * src/DefaultBtAnnounce.cc
  5068. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  5069. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5070. the value larger than DefaultPieceStorage::getTotalLength() when
  5071. in flight pieces are involved.
  5072. * src/DefaultPieceStorage.cc
  5073. * test/DefaultPieceStorageTest.cc
  5074. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5075. Bump up version number to 1.0.0a.
  5076. * configure.ac
  5077. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5078. Updated configure.ac
  5079. * configure.ac
  5080. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5081. Added usege for proxy.
  5082. * doc/aria2c.1.txt
  5083. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5084. Added usage for --ca-certificate, --certificate, --private-key and
  5085. --check-certificate options.
  5086. * doc/aria2c.1.txt
  5087. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5088. Updated man page
  5089. * doc/aria2c.1.txt
  5090. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5091. Added --no-proxy option. It receives comman separated hostname or
  5092. domains to which proxy should not be used.
  5093. aria2 honors the environment variable no_proxy to override no-proxy
  5094. value in configuration file. The user can override the environment
  5095. variable no_proxy with --no-proxy command-line option.
  5096. * src/AbstractCommand.cc
  5097. * src/OptionHandlerFactory.cc
  5098. * src/option_processing.cc
  5099. * src/prefs.cc
  5100. * src/prefs.h
  5101. * src/usage_text.h
  5102. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5103. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5104. The CA certificates are specified in --ca-certificate option.
  5105. By default, the verification is disabled. Use --check-certificate
  5106. option to enable it.
  5107. * src/HttpRequestCommand.cc
  5108. * src/LibgnutlsTLSContext.cc
  5109. * src/LibgnutlsTLSContext.h
  5110. * src/LibsslTLSContext.cc
  5111. * src/LibsslTLSContext.h
  5112. * src/MultiUrlRequestInfo.cc
  5113. * src/OptionHandlerFactory.cc
  5114. * src/SocketCore.cc
  5115. * src/SocketCore.h
  5116. * src/a2functional.h
  5117. * src/message.h
  5118. * src/option_processing.cc
  5119. * src/prefs.cc
  5120. * src/prefs.h
  5121. * src/usage_text.h
  5122. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  5123. Added client certificate authentication for SSL/TLS.
  5124. Currently a private key must be decrypted for use with aria2.
  5125. If a user accidentally gives encrypted file to aria2 then following
  5126. thing happens:
  5127. If encrypted private key is given to aria2, it behaves differently
  5128. depending on the ssl library it uses. If aria2 built with openssl then
  5129. openssl prompts the user for password. If aria2 build with gnutls then
  5130. aria2 exists with error at start up.
  5131. * src/DownloadEngineFactory.cc
  5132. * src/MultiUrlRequestInfo.cc
  5133. * src/OptionHandlerFactory.cc
  5134. * src/option_processing.cc
  5135. * src/prefs.cc
  5136. * src/prefs.h
  5137. * src/usage_text.h
  5138. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  5139. Introduced TLSContext that holds TLS related data that can be shared
  5140. with multiple SSL connections.
  5141. * src/DownloadEngineFactory.cc
  5142. * src/LibgnutlsTLSContext.cc
  5143. * src/LibgnutlsTLSContext.h
  5144. * src/LibsslTLSContext.cc
  5145. * src/LibsslTLSContext.h
  5146. * src/Makefile.am
  5147. * src/SocketCore.cc
  5148. * src/SocketCore.h
  5149. * src/TLSContext.h
  5150. * src/message.h
  5151. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  5152. Fixed the bug that the DiskWriter of the first FileEntry whose
  5153. `needsFileAllocation' property is false is not created
  5154. even if it shares a piece with next FileEntry which `requested' property
  5155. is true.
  5156. Fixed the bug that zero-length file is not created if pre file
  5157. allocation is not done.
  5158. * src/MultiDiskAdaptor.cc
  5159. * src/MultiDiskAdaptor.h
  5160. * test/MultiDiskAdaptorTest.cc
  5161. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5162. Added the ability to pool proxy connection.
  5163. The conneciton in FTP with proxy-method=GET is not pooled.
  5164. Proxy-Connection header will not be sent when sending CONNECT method.
  5165. * src/DownloadEngine.cc
  5166. * src/DownloadEngine.h
  5167. * src/FtpFinishDownloadCommand.cc
  5168. * src/FtpInitiateConnectionCommand.cc
  5169. * src/FtpNegotiationCommand.cc
  5170. * src/HttpDownloadCommand.cc
  5171. * src/HttpInitiateConnectionCommand.cc
  5172. * src/HttpRequest.cc
  5173. * src/HttpRequest.h
  5174. * src/HttpResponse.cc
  5175. * src/HttpSkipResponseCommand.cc
  5176. * test/HttpRequestTest.cc
  5177. * test/HttpResponseTest.cc
  5178. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5179. Handle date before epoch.
  5180. To create *bad* Time object, call Time::null().
  5181. * src/CookieParser.cc
  5182. * src/FtpConnection.cc
  5183. * src/FtpConnection.h
  5184. * src/FtpNegotiationCommand.cc
  5185. * src/RequestGroup.cc
  5186. * src/TimeA2.cc
  5187. * src/TimeA2.h
  5188. * test/CookieParserTest.cc
  5189. * test/FtpConnectionTest.cc
  5190. * test/TimeTest.cc
  5191. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5192. Added support for following envrionment variables: http_proxy,
  5193. https_proxy, ftp_proxy and all_proxy.
  5194. Each variable is equivalent to the aria2 option whose name is the
  5195. variable name with '_' replaced with '-'.
  5196. They overrides options specified in aria2.conf file.
  5197. The envrionment variables can be overrode using command-line option.
  5198. * src/option_processing.cc
  5199. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5200. Renamed --http-proxy-method as --proxy-method.
  5201. * src/AbstractCommand.cc
  5202. * src/FtpInitiateConnectionCommand.cc
  5203. * src/HttpInitiateConnectionCommand.cc
  5204. * src/OptionHandlerFactory.cc
  5205. * src/option_processing.cc
  5206. * src/prefs.cc
  5207. * src/prefs.h
  5208. * src/usage_text.h
  5209. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5210. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5211. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5212. Above 3 options and --http-proxy option can handle proxy in URL format
  5213. like: http://user:passwd@host:port.
  5214. If a proxy requires user/password, they must be specified in a URL.
  5215. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5216. instead.
  5217. * src/AbstractCommand.cc
  5218. * src/AbstractCommand.h
  5219. * src/AbstractProxyRequestCommand.cc
  5220. * src/AbstractProxyRequestCommand.h
  5221. * src/AuthConfigFactory.cc
  5222. * src/AuthConfigFactory.h
  5223. * src/FtpFinishDownloadCommand.cc
  5224. * src/FtpInitiateConnectionCommand.cc
  5225. * src/FtpInitiateConnectionCommand.h
  5226. * src/FtpNegotiationCommand.cc
  5227. * src/FtpTunnelRequestCommand.cc
  5228. * src/FtpTunnelRequestCommand.h
  5229. * src/HttpDownloadCommand.cc
  5230. * src/HttpInitiateConnectionCommand.cc
  5231. * src/HttpInitiateConnectionCommand.h
  5232. * src/HttpProxyRequestCommand.cc
  5233. * src/HttpProxyRequestCommand.h
  5234. * src/HttpRequest.cc
  5235. * src/HttpRequest.h
  5236. * src/HttpRequestCommand.cc
  5237. * src/HttpRequestCommand.h
  5238. * src/HttpSkipResponseCommand.cc
  5239. * src/InitiateConnectionCommand.cc
  5240. * src/InitiateConnectionCommand.h
  5241. * src/OptionHandlerFactory.cc
  5242. * src/OptionHandlerImpl.h
  5243. * src/Request.cc
  5244. * src/option_processing.cc
  5245. * src/prefs.cc
  5246. * src/prefs.h
  5247. * src/usage_text.h
  5248. * test/AuthConfigFactoryTest.cc
  5249. * test/HttpRequestTest.cc
  5250. * test/OptionHandlerTest.cc
  5251. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5252. Execute choking algorithm when unchoked and interested peer is
  5253. disconected.
  5254. * src/DefaultPeerStorage.cc
  5255. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5256. Added testcase for BtNotInterestedMessage from unchoked peer.
  5257. * test/BtNotInterestedMessageTest.cc
  5258. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5259. Execute choking algorithm when BtInterestedMessage arrives from
  5260. unchoked peer.
  5261. * src/BtInterestedMessage.cc
  5262. * src/BtInterestedMessage.h
  5263. * src/DefaultBtMessageFactory.cc
  5264. * test/BtInterestedMessageTest.cc
  5265. * test/MockPeerStorage.h
  5266. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. AuthConfigFactory is now part of DownloadEngine.
  5268. * src/AbstractProxyRequestCommand.cc
  5269. * src/AuthConfigFactory.h
  5270. * src/DownloadEngine.cc
  5271. * src/DownloadEngine.h
  5272. * src/FtpConnection.cc
  5273. * src/FtpConnection.h
  5274. * src/FtpNegotiationCommand.cc
  5275. * src/HttpConnection.cc
  5276. * src/HttpRequest.cc
  5277. * src/HttpRequest.h
  5278. * src/HttpRequestCommand.cc
  5279. * src/HttpResponse.cc
  5280. * src/HttpResponseCommand.cc
  5281. * src/HttpSkipResponseCommand.cc
  5282. * src/MultiUrlRequestInfo.cc
  5283. * src/main.cc
  5284. * test/FtpConnectionTest.cc
  5285. * test/HttpRequestTest.cc
  5286. * test/HttpResponseTest.cc
  5287. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5288. Corrected catched exception type.
  5289. * src/ServerStatMan.cc
  5290. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5291. DNSCache is now part of DownloadEngine.
  5292. * src/DNSCache.h
  5293. * src/DownloadEngine.cc
  5294. * src/DownloadEngine.h
  5295. * src/InitiateConnectionCommand.cc
  5296. * src/MultiUrlRequestInfo.cc
  5297. * test/Makefile.am
  5298. * test/Makefile.in
  5299. * test/SimpleDNSCacheTest.cc
  5300. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5301. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5302. DownloadEngine.
  5303. * src/ActivePeerConnectionCommand.cc
  5304. * src/BtSetup.cc
  5305. * src/CUIDCounter.h
  5306. * src/DHTSetup.cc
  5307. * src/DownloadCommand.cc
  5308. * src/DownloadEngine.cc
  5309. * src/DownloadEngine.h
  5310. * src/DownloadEngineFactory.cc
  5311. * src/FileAllocationDispatcherCommand.cc
  5312. * src/InitiatorMSEHandshakeCommand.cc
  5313. * src/PeerInitiateConnectionCommand.cc
  5314. * src/PeerInteractionCommand.cc
  5315. * src/PeerListenCommand.cc
  5316. * src/RequestGroup.cc
  5317. * src/StreamFileAllocationEntry.cc
  5318. * src/TrackerWatcherCommand.cc
  5319. * src/main.cc
  5320. * test/RequestGroupManTest.cc
  5321. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5322. Implemented commented code in BtSeederStateChoke
  5323. * src/BtSeederStateChoke.cc
  5324. * src/Peer.cc
  5325. * src/Peer.h
  5326. * src/PeerInteractionCommand.cc
  5327. * src/PeerSessionResource.cc
  5328. * src/PeerSessionResource.h
  5329. * test/MockBtMessageDispatcher.h
  5330. * test/PeerSessionResourceTest.cc
  5331. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5332. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5333. its object.
  5334. * src/AbstractBtMessage.cc
  5335. * src/ActivePeerConnectionCommand.cc
  5336. * src/ActivePeerConnectionCommand.h
  5337. * src/BtContextAwareCommand.cc
  5338. * src/BtContextAwareCommand.h
  5339. * src/BtExtendedMessage.cc
  5340. * src/BtExtendedMessage.h
  5341. * src/BtInterestedMessage.cc
  5342. * src/BtInterestedMessage.h
  5343. * src/BtNotInterestedMessage.cc
  5344. * src/BtNotInterestedMessage.h
  5345. * src/BtRegistry.cc
  5346. * src/BtRegistry.h
  5347. * src/BtSeederStateChoke.cc
  5348. * src/BtSetup.cc
  5349. * src/DHTGetPeersCommand.cc
  5350. * src/DHTGetPeersCommand.h
  5351. * src/DHTPeerAnnounceEntry.cc
  5352. * src/DHTPeerAnnounceEntry.h
  5353. * src/DHTPeerAnnounceStorage.cc
  5354. * src/DHTPeerAnnounceStorage.h
  5355. * src/DHTPeerLookupTask.cc
  5356. * src/DHTPeerLookupTask.h
  5357. * src/DHTSetup.cc
  5358. * src/DHTSetup.h
  5359. * src/DHTTaskFactory.h
  5360. * src/DHTTaskFactoryImpl.cc
  5361. * src/DHTTaskFactoryImpl.h
  5362. * src/DefaultBtAnnounce.cc
  5363. * src/DefaultBtInteractive.cc
  5364. * src/DefaultBtInteractive.h
  5365. * src/DefaultBtMessageDispatcher.cc
  5366. * src/DefaultBtMessageDispatcher.h
  5367. * src/DefaultBtMessageFactory.cc
  5368. * src/DefaultBtMessageFactory.h
  5369. * src/DefaultBtMessageReceiver.cc
  5370. * src/DefaultBtProgressInfoFile.cc
  5371. * src/DefaultBtProgressInfoFile.h
  5372. * src/DefaultBtRequestFactory.cc
  5373. * src/DefaultBtRequestFactory.h
  5374. * src/DefaultExtensionMessageFactory.cc
  5375. * src/DefaultExtensionMessageFactory.h
  5376. * src/DefaultPeerStorage.cc
  5377. * src/DefaultPeerStorage.h
  5378. * src/DownloadEngine.cc
  5379. * src/DownloadEngine.h
  5380. * src/InitiatorMSEHandshakeCommand.cc
  5381. * src/InitiatorMSEHandshakeCommand.h
  5382. * src/MSEHandshake.cc
  5383. * src/MSEHandshake.h
  5384. * src/Makefile.am
  5385. * src/Makefile.in
  5386. * src/PeerChokeCommand.cc
  5387. * src/PeerChokeCommand.h
  5388. * src/PeerInitiateConnectionCommand.cc
  5389. * src/PeerInitiateConnectionCommand.h
  5390. * src/PeerInteractionCommand.cc
  5391. * src/PeerInteractionCommand.h
  5392. * src/PeerObject.h
  5393. * src/PeerReceiveHandshakeCommand.cc
  5394. * src/PeerReceiveHandshakeCommand.h
  5395. * src/ReceiverMSEHandshakeCommand.cc
  5396. * src/RequestGroup.cc
  5397. * src/RequestGroup.h
  5398. * src/RequestGroupMan.cc
  5399. * src/RequestGroupMan.h
  5400. * src/SeedCheckCommand.cc
  5401. * src/SeedCheckCommand.h
  5402. * src/ShareRatioSeedCriteria.h
  5403. * src/SimpleBtMessage.cc
  5404. * src/TrackerWatcherCommand.cc
  5405. * src/TrackerWatcherCommand.h
  5406. * src/UTPexExtensionMessage.cc
  5407. * src/UTPexExtensionMessage.h
  5408. * test/BtCancelMessageTest.cc
  5409. * test/BtChokeMessageTest.cc
  5410. * test/BtExtendedMessageTest.cc
  5411. * test/BtInterestedMessageTest.cc
  5412. * test/BtNotInterestedMessageTest.cc
  5413. * test/BtPieceMessageTest.cc
  5414. * test/BtPortMessageTest.cc
  5415. * test/BtRegistryTest.cc
  5416. * test/BtRejectMessageTest.cc
  5417. * test/BtRequestMessageTest.cc
  5418. * test/DHTPeerAnnounceEntryTest.cc
  5419. * test/DHTPeerAnnounceStorageTest.cc
  5420. * test/DefaultBtMessageDispatcherTest.cc
  5421. * test/DefaultBtMessageFactoryTest.cc
  5422. * test/DefaultBtProgressInfoFileTest.cc
  5423. * test/DefaultBtRequestFactoryTest.cc
  5424. * test/DefaultExtensionMessageFactoryTest.cc
  5425. * test/MSEHandshakeTest.cc
  5426. * test/MockDHTTaskFactory.h
  5427. * test/ShareRatioSeedCriteriaTest.cc
  5428. * test/UTPexExtensionMessageTest.cc
  5429. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5430. Fixed compiler warning.
  5431. * test/UtilTest.cc
  5432. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5433. Treat Cookie object as session cookie if expiry = 0 is given.
  5434. With this change, you can specify session scoped cookies in an external
  5435. file setting expiry value to 0.
  5436. * src/Cookie.cc
  5437. * src/Cookie.h
  5438. * test/CookieParserTest.cc
  5439. * test/CookieStorageTest.cc
  5440. * test/CookieTest.cc
  5441. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5442. Changed signature of DHTMessageFactory::createResponseMessage().
  5443. Removed unused validateIDMatch.
  5444. * src/DHTMessageFactory.h
  5445. * src/DHTMessageFactoryImpl.cc
  5446. * src/DHTMessageFactoryImpl.h
  5447. * src/DHTMessageTracker.cc
  5448. * test/DHTMessageFactoryImplTest.cc
  5449. * test/MockDHTMessageFactory.h
  5450. Dropped DHT message coming from same ID of localhost.
  5451. * src/DHTMessageReceiver.cc
  5452. Rejected adding node whose ID is the same as localhost's.
  5453. * src/DHTRoutingTable.cc
  5454. * test/BtPortMessageTest.cc
  5455. * test/DHTRoutingTableTest.cc
  5456. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5457. Pool connection when redirection occurs with Content-Length = 0.
  5458. * src/HttpSkipResponseCommand.cc
  5459. * src/HttpSkipResponseCommand.h
  5460. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5461. Fixed the bug that causes time out when redirection occurs with
  5462. content-length 0.
  5463. * src/HttpResponseCommand.cc
  5464. * src/HttpSkipResponseCommand.cc
  5465. * src/HttpSkipResponseCommand.h
  5466. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. Now each status legends is shown only when it appears in Download
  5468. Result. If Download Result has no item, then status legend will not
  5469. be printed.
  5470. * src/RequestGroupMan.cc
  5471. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5472. Removed duplicate creation of OptionHandlers.
  5473. * src/option_processing.cc
  5474. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5475. Fixed the bug that causes segmentation fault when accessing files which
  5476. don't exist or are not included in --select-file option while
  5477. validating chunk checksum.
  5478. * src/MultiDiskAdaptor.cc
  5479. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5480. Fixed compiler warning.
  5481. * test/UtilTest.cc
  5482. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5483. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5484. * src/IteratableChecksumValidator.cc
  5485. * src/IteratableChunkChecksumValidator.cc
  5486. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5487. * Release 0.16.2
  5488. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Added Serbian translation. Updated Ukrainian translation.
  5490. Thanks to all translators.
  5491. * po/sr.po
  5492. * po/uk.po
  5493. * po/LINGUAS
  5494. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5495. Bump up version number to 0.16.2
  5496. * configure.ac
  5497. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5498. Added length equality test to operator== to drop a piece message
  5499. whose length does not match to the requested one.
  5500. * src/RequestSlot.cc
  5501. * test/DefaultBtMessageDispatcherTest.cc
  5502. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5504. recieved.
  5505. In this fix, if a request larger than 16KiB length is received, aria2
  5506. disconnects the peer.
  5507. * src/BtConstants.h
  5508. * src/PeerMessageUtil.cc
  5509. * src/PeerMessageUtil.h
  5510. * test/BtRequestMessageTest.cc
  5511. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5512. * Release 0.16.1
  5513. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5514. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5515. * doc/aria2c.1.txt
  5516. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5518. Updated French, Simplified Chinese and Japanese translations.
  5519. Thanks to all translators.
  5520. en@quot and en@boldquot are also added.
  5521. * po/LINGUAS
  5522. * po/fr.po
  5523. * po/ja.po
  5524. * po/uk.po
  5525. * po/vi.po
  5526. * po/zh_CN.po
  5527. * po/zh_TW.po
  5528. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5529. Bump up version number to 0.16.1.
  5530. * configure.ac
  5531. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5532. Updated README.
  5533. * README
  5534. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5535. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5536. not to replace '--' with em dash character.
  5537. * doc/aria2c.1.txt
  5538. * doc/makeman
  5539. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5540. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5541. every SEC seconds.
  5542. * src/DownloadEngineFactory.cc
  5543. * src/OptionHandlerFactory.cc
  5544. * src/option_processing.cc
  5545. * src/usage_text.h
  5546. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5547. Fixed compile warning on linux-amd64
  5548. * src/FtpConnection.cc
  5549. * src/IteratableChunkChecksumValidator.cc
  5550. * src/MultiDiskAdaptor.cc
  5551. Fixed the bug that unit test fails on linux-amd64
  5552. * test/UtilTest.cc
  5553. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5554. Added --dht-file-path option to change the path to dht.dat, which is a
  5555. serialized DHT routing table.
  5556. * src/OptionHandlerFactory.cc
  5557. * src/option_processing.cc
  5558. * src/usage_text.h
  5559. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5560. Fixed possible underflow.
  5561. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5562. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5563. Fixed the bug that last character in URI is not encoded.
  5564. * src/Request.cc
  5565. * test/RequestTest.cc
  5566. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5567. Fixed the bug that referer header field contains fragment.
  5568. Now Request class removes fragment part of URI and encodes it
  5569. in Request::setUri() and setReferer().
  5570. * src/Request.h
  5571. * src/Request.cc
  5572. * test/RequestTest.cc
  5573. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5574. Added missing m4 macros.
  5575. * m4/cppunit.m4
  5576. * m4/libgcrypt.m4
  5577. * m4/libgnutls-extra.m4
  5578. * m4/libgnutls.m4
  5579. * m4/libxml2.m4
  5580. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5581. Fixed compile error with gcc-4.4(snapshot)
  5582. * src/File.cc
  5583. * src/FtpConnection.cc
  5584. * src/OptionHandlerImpl.h
  5585. * src/Util.cc
  5586. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5587. Removed assert()
  5588. * src/SocketBuffer.cc (SocketBuffer::send)
  5589. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5590. Changed the type of _numNewConnection to unsigned int.
  5591. * src/ActivePeerConnectionCommand.cc
  5592. * src/ActivePeerConnectionCommand.h
  5593. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5594. * Release 0.16.0
  5595. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5596. Updated doc
  5597. * README
  5598. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5599. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5600. translations. Thanks to all translators.
  5601. * po/bg.po
  5602. * po/de.po
  5603. * po/fr.po
  5604. * po/ja.po
  5605. * po/zh_CN.po
  5606. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5607. Bump up version number to 0.16.0.
  5608. * configure.ac
  5609. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5610. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5611. int32_t.
  5612. Changed the type of count to int32_t.
  5613. * src/Metalink2RequestGroup.cc
  5614. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5615. Added test for Time::elapsed(time_t).
  5616. * test/TimeTest.cc
  5617. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5619. Util::difftv() should be used instead.
  5620. * src/TimeA2.cc
  5621. * src/TimeA2.h
  5622. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5623. Made socket for dht connections non-blocking
  5624. * src/DHTAbstractMessage.cc
  5625. * src/DHTAbstractMessage.h
  5626. * src/DHTConnection.h
  5627. * src/DHTConnectionImpl.cc
  5628. * src/DHTConnectionImpl.h
  5629. * src/DHTMessage.h
  5630. * src/DHTMessageDispatcherImpl.cc
  5631. * src/DHTMessageDispatcherImpl.h
  5632. * src/DHTUnknownMessage.cc
  5633. * src/DHTUnknownMessage.h
  5634. * src/SocketCore.cc
  5635. * src/SocketCore.h
  5636. * test/MockDHTMessage.h
  5637. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5638. Changed the type of offset to int.
  5639. * src/ParameterizedStringParser.cc
  5640. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5641. Made getAsInt() return int32_t
  5642. * src/Option.h
  5643. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5644. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5645. build.
  5646. * configure.ac
  5647. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Use sqlite3_open if sqlite3_open_v2 is not available.
  5649. * src/Sqlite3MozCookieParser.cc
  5650. * src/Sqlite3MozCookieParser.h
  5651. * m4/sqlite3.m4
  5652. * test/Sqlite3MozCookieParserTest.cc
  5653. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5655. * src/BtPieceMessage.cc
  5656. * src/DHTPeerAnnounceStorage.cc
  5657. * src/DefaultPieceStorage.cc
  5658. * src/DownloadCommand.cc
  5659. * src/DownloadEngine.cc
  5660. * src/FtpConnection.cc
  5661. * src/PeerConnection.cc
  5662. * src/PeerMessageUtil.cc
  5663. * src/RequestGroup.cc
  5664. * src/RequestGroupMan.cc
  5665. * src/SimpleBtMessage.cc
  5666. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5667. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5668. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5669. * src/AbstractDiskWriter.cc
  5670. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5671. Don't set Request::supportsPersistentConnection() in HttpConnection
  5672. since this code is also used in AbstractProxyResponseCommand.
  5673. Moved those code to HttpResponse.
  5674. * src/HttpResponse.cc
  5675. * src/HttpResponse.h
  5676. * src/HttpConnection.cc
  5677. * src/HttpConnection.h
  5678. * src/HttpResponseCommand.cc
  5679. * test/HttpResponseTest.cc
  5680. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5681. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5682. The configuration is minimum: no torrent, no metalink, so there may be
  5683. other compile error on their code.
  5684. * src/a2netcompat.h
  5685. * src/File.cc
  5686. * src/File.h
  5687. * src/SocketCore.cc
  5688. * src/SocketCore.h
  5689. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Made a socket of incoming peer non-blocking.
  5691. * src/PeerListenCommand.cc
  5692. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5693. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5694. whole message data is not sent in one send() call.
  5695. * src/BtPieceMessage.cc
  5696. * src/BtPieceMessage.h
  5697. * src/PeerConnection.cc
  5698. * src/PeerConnection.h
  5699. * src/SimpleBtMessage.cc
  5700. * src/SimpleBtMessage.h
  5701. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5702. Fixed the bug that aria2 downloads faster than max-download-limit when
  5703. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5704. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5705. , instead of sum of them.
  5706. * src/ActivePeerConnectionCommand.cc
  5707. * src/DefaultBtInteractive.cc
  5708. * src/DownloadCommand.cc
  5709. * src/PeerInteractionCommand.cc
  5710. * src/PeerReceiveHandshakeCommand.cc
  5711. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5712. Fixed the bug that HTTPS download fails.
  5713. * src/AbstractCommand.cc
  5714. * src/AbstractCommand.h
  5715. * src/DownloadCommand.cc
  5716. * src/FtpConnection.cc
  5717. * src/HttpConnection.cc
  5718. * src/HttpRequestCommand.cc
  5719. * src/HttpResponseCommand.cc
  5720. * src/HttpSkipResponseCommand.cc
  5721. * src/MSEHandshake.cc
  5722. * src/PeerConnection.cc
  5723. * src/SocketCore.cc
  5724. * src/SocketCore.h
  5725. Fixed the bug that aria2 doesn't download whole content body and cannot
  5726. reuse connection if chunked transfer encoding and gzip content encoding
  5727. are set.
  5728. * src/DownloadCommand.cc
  5729. * src/HttpSkipResponseCommand.cc
  5730. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Updated man page.
  5732. * doc/aria2c.1.txt
  5733. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5734. When error occurred while aria2 was parsing an .aria2.conf file, print
  5735. the usage of the option that caused error.
  5736. * src/option_processing.cc
  5737. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5738. Fixed compile error on OptionHandlerException
  5739. * src/Makefile.am
  5740. * src/OptionHandlerException.cc
  5741. * src/OptionHandlerException.h
  5742. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5743. Moved message of the error to OptionHandlerException.h
  5744. * src/NameMatchOptionHandler.h
  5745. * src/OptionHandlerException.h
  5746. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. When error occurs while aria2 is parsing an command-line option, print
  5748. the usage of the option.
  5749. * src/Makefile.am
  5750. * src/NameMatchOptionHandler.h
  5751. * src/OptionHandlerException.h
  5752. * src/option_processing.cc
  5753. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Reverted previous change.
  5755. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5756. username is not in URI.
  5757. * src/HttpRequest.cc
  5758. * src/Request.cc
  5759. * test/HttpRequestTest.cc
  5760. * test/RequestTest.cc
  5761. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5762. Now colon is required for username and password in FTP URL, like:
  5763. ftp://username:password@host.
  5764. If colon is not there, aria2 don't parse it as a username. For example,
  5765. aria2 don't retrieve username from ftp://username@host.
  5766. This fix was made in order to login FTP server via non-transparent ftp
  5767. proxy.
  5768. * src/Request.cc
  5769. * test/RequestTest.cc
  5770. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5771. Use netrc for HTTP.
  5772. Now FTP user/password is sent in Authorization header when
  5773. --ftp-via-http-proxy=get is given.
  5774. * src/AuthConfigFactory.cc
  5775. * src/HttpRequest.cc
  5776. * src/HttpRequest.h
  5777. * src/NetrcAuthResolver.cc
  5778. * src/NetrcAuthResolver.h
  5779. * src/OptionHandlerFactory.cc
  5780. * src/option_processing.cc
  5781. * src/prefs.cc
  5782. * src/prefs.h
  5783. * test/AuthConfigFactoryTest.cc
  5784. * test/HttpRequestTest.cc
  5785. * test/NetrcAuthResolverTest.cc
  5786. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5787. Issue PWD command first and get working directory and use it as a prefix
  5788. for CWD command.
  5789. * src/DownloadEngine.cc
  5790. * src/DownloadEngine.h
  5791. * src/FtpConnection.cc
  5792. * src/FtpConnection.h
  5793. * src/FtpFinishDownloadCommand.cc
  5794. * src/FtpInitiateConnectionCommand.cc
  5795. * src/FtpNegotiationCommand.cc
  5796. * src/FtpNegotiationCommand.h
  5797. * test/FtpConnectionTest.cc
  5798. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. Removed default user/pass for FTP user/pass, since it should not have
  5800. precedence over netrc configuration by default.
  5801. * src/OptionHandlerFactory.cc
  5802. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5803. Added debug log for socket event.
  5804. * src/AbstractCommand.cc
  5805. * src/PeerAbstractCommand.cc
  5806. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. Log microseconds.
  5808. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5809. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5810. Replaced HelpItem.cc with OptionHandler.cc.
  5811. * po/POTFILES.in
  5812. Updated po files with 'make update-po'
  5813. * po/aria2c.pot
  5814. * po/*.po
  5815. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Removed possible values from the text.
  5817. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5818. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5819. Removed unused preferences:
  5820. PREF_NO_PREALLOCATION
  5821. PREF_STDOUT_LOG
  5822. PREF_TRACKER_MAX_TRIES
  5823. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5824. PREF_MIN_SEGMENT_SIZE
  5825. * src/option_processing.cc
  5826. * src/prefs.cc
  5827. * src/prefs.h
  5828. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5829. Integrated HelpItem into OptionParser to ease the workload for adding
  5830. new options. Removed default value from usage text.
  5831. * src/HelpItem.cc: Removed.
  5832. * src/HelpItem.h: Removed.
  5833. * src/HelpItemFactory.cc: Removed.
  5834. * src/HelpItemFactory.h: Removed.
  5835. * src/Makefile.am
  5836. * src/Makefile.in
  5837. * src/NameMatchOptionHandler.h
  5838. * src/OptionHandler.cc
  5839. * src/OptionHandler.h
  5840. * src/OptionHandlerFactory.cc
  5841. * src/OptionHandlerImpl.h
  5842. * src/OptionParser.cc
  5843. * src/OptionParser.h
  5844. * src/TagContainer.cc: Removed.
  5845. * src/TagContainer.h: Removed.
  5846. * src/TaggedItem.cc: Removed.
  5847. * src/TaggedItem.h: Removed.
  5848. * src/main.cc
  5849. * src/option_processing.cc
  5850. * src/usage_text.h
  5851. * src/version_usage.cc
  5852. * test/HelpItemTest.cc: Removed.
  5853. * test/Makefile.am
  5854. * test/Makefile.in
  5855. * test/OptionHandlerTest.cc
  5856. * test/OptionParserTest.cc
  5857. * test/TagContainerTest.cc: Removed.
  5858. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5859. Moved `TransferStat stat = ...' to inside the `if' clause.
  5860. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5861. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5862. Fixed the bug that a block in a piece is requested when same block is
  5863. already requested to the same peer in end game mode.
  5864. * src/BtRequestFactory.h
  5865. * src/DefaultBtInteractive.cc
  5866. * src/DefaultBtRequestFactory.cc
  5867. * src/DefaultBtRequestFactory.h
  5868. * src/DefaultPieceStorage.cc
  5869. * src/DefaultPieceStorage.h
  5870. * src/PieceStorage.h
  5871. * src/UnknownLengthPieceStorage.cc
  5872. * src/UnknownLengthPieceStorage.h
  5873. * test/DefaultBtRequestFactoryTest.cc
  5874. * test/DefaultPieceStorageTest.cc
  5875. * test/MockBtRequestFactory.h
  5876. * test/MockPieceStorage.h
  5877. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Removed _uploadLength and _downloadLength from PeerSessionResource
  5879. and use PeerStat::_sessionUploadLength and
  5880. PeerStat::_sessionDownloadLength.
  5881. * src/PeerSessionResource.cc
  5882. * src/PeerSessionResource.h
  5883. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5884. Fixed the bug that prefixLength of split bucket which doesn't include
  5885. local node ID is incremented.
  5886. * src/DHTBucket.cc
  5887. * src/DHTBucket.h
  5888. * test/DHTBucketTest.cc
  5889. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Added cookies.sqlite to EXTRA_DIST
  5891. * test/Makefile.am
  5892. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5893. Added Turkish translation. Updated French, German, Russian and
  5894. Simplified Chinese translations. Thanks to all translators.
  5895. * po/LINGUAS
  5896. * po/de.po
  5897. * po/fr.po
  5898. * po/ru.po
  5899. * po/tr.po
  5900. * po/zh_CN.po
  5901. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5902. Added deliminating text to the beginning of the log so that one can find
  5903. where the log starts easily.
  5904. * src/main.cc
  5905. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5906. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5907. to fix compile error when async DNS is not enabled by configuration.
  5908. * src/AbstractCommand.cc
  5909. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5910. If establishing conneciton to a server is failed, then mark error on
  5911. its ServerStat.
  5912. Added the cause of error to log when error event occurred.
  5913. Moved message string to message.h for translation.
  5914. * src/AbstractCommand.cc
  5915. * src/AbstractCommand.h
  5916. * src/FtpNegotiationCommand.cc
  5917. * src/HttpRequestCommand.cc
  5918. * src/PeerAbstractCommand.cc
  5919. * src/message.h
  5920. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. Added the function to get error message from socket.
  5922. * src/SocketCore.cc
  5923. * src/SocketCore.h
  5924. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5925. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5926. * src/RequestGroupMan.cc
  5927. * src/RequestGroupMan.h
  5928. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5929. If error event is received in epoll, then abort download immediately.
  5930. * src/AbstractCommand.cc
  5931. * src/Command.cc
  5932. * src/Command.h
  5933. * src/DownloadEngine.cc
  5934. * src/PeerAbstractCommand.cc
  5935. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. Added usage message for --uri-selector, --server-stat-of,
  5937. --server-stat-in, --server-stat-timeout options.
  5938. * src/HelpItemFactory.cc
  5939. * src/usage_text.h
  5940. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5941. Added upper limit of FTP response buffer. The current implementation
  5942. uses 4096bytes as a limit.
  5943. * src/FtpConnection.cc
  5944. * src/FtpConnection.h
  5945. * test/FtpConnectionTest.cc
  5946. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5947. Use non-blocking socket for TCP communication to avoid possible
  5948. blocking due to buffer full.
  5949. * src/AbstractProxyRequestCommand.cc
  5950. * src/FtpConnection.cc
  5951. * src/FtpConnection.h
  5952. * src/FtpNegotiationCommand.cc
  5953. * src/FtpNegotiationCommand.h
  5954. * src/HttpConnection.cc
  5955. * src/HttpConnection.h
  5956. * src/HttpRequestCommand.cc
  5957. * src/InitiatorMSEHandshakeCommand.cc
  5958. * src/InitiatorMSEHandshakeCommand.h
  5959. * src/MSEHandshake.cc
  5960. * src/MSEHandshake.h
  5961. * src/Makefile.am
  5962. * src/PeerConnection.cc
  5963. * src/PeerConnection.h
  5964. * src/PeerInteractionCommand.cc
  5965. * src/PeerListenCommand.cc
  5966. * src/ReceiverMSEHandshakeCommand.cc
  5967. * src/ReceiverMSEHandshakeCommand.h
  5968. * src/SocketBuffer.cc
  5969. * src/SocketBuffer.h
  5970. * src/SocketCore.cc
  5971. * src/SocketCore.h
  5972. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Call setStatusRealtime() in constructor.
  5974. * src/RealtimeCommand.cc
  5975. * src/RealtimeCommand.h
  5976. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5977. Call Download::setNoWait(true) to execute newly created command without
  5978. a pause.
  5979. * src/AbstractCommand.cc
  5980. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5981. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5982. found' error from HTTP/FTP server NUM times without getting single
  5983. bytes of data, then force the download to fail.
  5984. Basically aria2 tris all URIs available. So if long list of URIs are
  5985. specified in Metalink, then aria2 will take a long time to fail
  5986. eventually if all URIs are outdated. This option eases this situation
  5987. to limit the number of servers to try.
  5988. * src/FtpNegotiationCommand.cc
  5989. * src/HelpItemFactory.cc
  5990. * src/HttpResponseCommand.cc
  5991. * src/OptionHandlerFactory.cc
  5992. * src/PeerStat.h
  5993. * src/RequestGroup.cc
  5994. * src/RequestGroup.h
  5995. * src/SegmentMan.cc
  5996. * src/SegmentMan.h
  5997. * src/option_processing.cc
  5998. * src/prefs.cc
  5999. * src/prefs.h
  6000. * src/usage_text.h
  6001. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6002. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6003. response even if more than one response is in it.
  6004. * src/FtpConnection.cc
  6005. * src/FtpConnection.h
  6006. * test/FtpConnectionTest.cc
  6007. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6008. Merged from stable-0.15
  6009. * m4/libcares.m4
  6010. Use pkg-config
  6011. * m4/sqlite3.m4
  6012. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6013. Removed unnecessary if statement.
  6014. * src/DefaultPieceStorage.cc (initPieceStorage)
  6015. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6016. Added --connect-timeout option to specify connect timeout in seconds.
  6017. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6018. connecting to BitTorrent peer is not controlled by this option.
  6019. * src/AbstractProxyRequestCommand.cc
  6020. * src/FtpNegotiationCommand.cc
  6021. * src/HelpItemFactory.cc
  6022. * src/HttpRequestCommand.cc
  6023. * src/OptionHandlerFactory.cc
  6024. * src/option_processing.cc
  6025. * src/prefs.cc
  6026. * src/prefs.h
  6027. * src/usage_text.h
  6028. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Added help message for -R option.
  6030. * src/HelpItemFactory.cc
  6031. * src/usage_text.h
  6032. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6033. Added the message that the time is in local time zone.
  6034. * src/RequestGroup.cc
  6035. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6036. Implemented the ability to get timestamp from remote FTP server using
  6037. MDTM command described in RFC3659.
  6038. * src/FtpConnection.cc
  6039. * src/FtpConnection.h
  6040. * src/FtpNegotiationCommand.cc
  6041. * src/FtpNegotiationCommand.h
  6042. * test/FtpConnectionTest.cc
  6043. * test/Makefile.am
  6044. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6045. Implemented the ability to get timestamp from remote HTTP server and
  6046. apply it to local file. To enable this feature, --remote-time option
  6047. is added. No usage text has been written yet.
  6048. If several servers returns difference timestamp, then aria2 uses latest
  6049. one.
  6050. * src/CopyDiskAdaptor.cc
  6051. * src/CopyDiskAdaptor.h
  6052. * src/DirectDiskAdaptor.cc
  6053. * src/DirectDiskAdaptor.h
  6054. * src/DiskAdaptor.h
  6055. * src/File.cc
  6056. * src/File.h
  6057. * src/HttpHeader.cc
  6058. * src/HttpHeader.h
  6059. * src/HttpResponse.cc
  6060. * src/HttpResponse.h
  6061. * src/HttpResponseCommand.cc
  6062. * src/HttpResponseCommand.h
  6063. * src/MultiDiskAdaptor.cc
  6064. * src/MultiDiskAdaptor.h
  6065. * src/OptionHandlerFactory.cc
  6066. * src/RequestGroup.cc
  6067. * src/RequestGroup.h
  6068. * src/RequestGroupMan.cc
  6069. * src/option_processing.cc
  6070. * src/prefs.cc
  6071. * src/prefs.h
  6072. * test/CopyDiskAdaptorTest.cc
  6073. * test/FileTest.cc
  6074. * test/Makefile.am
  6075. * test/Makefile.in
  6076. * test/MultiDiskAdaptorTest.cc
  6077. * test/TestUtil.cc
  6078. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. Fixed the bug that DiskWriterEntry is not created when its
  6080. FileEntry.isRequested() is false and it doesn't share a piece with
  6081. other FileEntries that are requested. This bug causes segmentation fault
  6082. in the end.
  6083. * src/MultiDiskAdaptor.cc
  6084. * src/MultiDiskAdaptor.h
  6085. * src/MultiFileAllocationIterator.cc
  6086. * test/MultiDiskAdaptorTest.cc
  6087. * test/MultiFileAllocationIteratorTest.cc
  6088. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6090. called if the number of file entries are greater than max open files.
  6091. * src/AbstractSingleDiskAdaptor.cc
  6092. * src/AbstractSingleDiskAdaptor.h
  6093. * src/DiskAdaptor.h
  6094. * src/MultiDiskAdaptor.cc
  6095. * src/MultiDiskAdaptor.h
  6096. * test/MultiDiskAdaptorTest.cc
  6097. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6098. Added a constuctor that receives struct timeval.
  6099. Added operator<.
  6100. * src/TimeA2.cc
  6101. * src/TimeA2.h
  6102. * test/TimeTest.cc
  6103. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6104. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6105. * src/CookieParser.cc
  6106. * test/CookieParserTest.cc
  6107. * test/HttpResponseTest.cc
  6108. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6109. Implmented the functions to parse date.
  6110. * src/TimeA2.cc
  6111. * src/TimeA2.h
  6112. * test/TimeTest.cc
  6113. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6114. Added "Firefox3 Cookie" feature to FeatureConfig
  6115. * src/FeatureConfig.cc
  6116. * src/FeatureConfig.h
  6117. * test/FeatureConfigTest.cc
  6118. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6119. Bump up version number to 0.16.0b
  6120. * configure.ac
  6121. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6122. Use pkg-config if is is available.
  6123. * m4/openssl.m4
  6124. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6125. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6126. * src/BtAnnounce.h
  6127. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. If an error occurred with a URI, remove identical URI from remaining
  6129. URI list because it is likely that same error occurred in the end and it
  6130. is waste of time.
  6131. * src/AbstractCommand.cc
  6132. * src/RequestGroup.cc
  6133. * src/RequestGroup.h
  6134. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Removed wrong comment.
  6136. * src/DefaultPeerStorage.cc
  6137. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6139. Added return value of getpid() to argument of srand() to achieve more
  6140. randomized value.
  6141. * src/SimpleRandomizer.cc
  6142. * src/SimpleRandomizer.h
  6143. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6144. Contact tracker frequently when the number of connections are 0 and
  6145. download is not finished yet.
  6146. * src/ActivePeerConnectionCommand.cc
  6147. * src/BtAnnounce.h
  6148. * src/DefaultBtAnnounce.cc
  6149. * src/DefaultBtAnnounce.h
  6150. * test/MockBtAnnounce.h
  6151. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6152. Moved threshold values to UTPexExtensionMessage.
  6153. * src/DefaultBtInteractive.cc
  6154. * src/Peer.cc
  6155. * src/Peer.h
  6156. * src/UTPexExtensionMessage.cc
  6157. * src/UTPexExtensionMessage.h
  6158. * test/UTPexExtensionMessageTest.cc
  6159. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Added _incoming member to Peer class and made it true if the peer
  6161. initiated connection. Don't add those peer to UTPex message.
  6162. If extended handshake is received, assign _incoming to false.
  6163. * src/DefaultBtInteractive.cc
  6164. * src/HandshakeExtensionMessage.cc
  6165. * src/Peer.cc
  6166. * src/Peer.h
  6167. * src/PeerListenCommand.cc
  6168. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6170. Encoding Decoder. Removed size threshold for turning off on the fly
  6171. inflation because resulting file may or may not be inflated depending
  6172. on the file size and I think it is not expected by users.
  6173. This change fixes segmentation fault when Metalink file contains gzipped
  6174. file and its filesize is provided.
  6175. * src/HttpResponseCommand.cc
  6176. * src/HttpResponseCommand.h
  6177. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Made Cookie immutable.
  6179. * src/Cookie.cc
  6180. * src/Cookie.h
  6181. * src/CookieParser.cc
  6182. * src/CookieParser.h
  6183. * src/CookieStorage.cc
  6184. * test/CookieParserTest.cc
  6185. * test/CookieStorageTest.cc
  6186. * test/NsCookieParserTest.cc
  6187. * test/Sqlite3MozCookieParserTest.cc
  6188. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Removed CookieBox, CookieBoxFactory.
  6190. * src/CookieBox.cc
  6191. * src/CookieBox.h
  6192. * src/CookieBoxFactory.cc
  6193. * src/CookieBoxFactory.h
  6194. * src/Makefile.am
  6195. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Use CookieStorage class instead of CookieBox class.
  6197. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6198. * src/AbstractProxyRequestCommand.cc
  6199. * src/CookieStorage.cc
  6200. * src/DownloadEngine.cc
  6201. * src/DownloadEngine.h
  6202. * src/HttpConnection.cc
  6203. * src/HttpConnection.h
  6204. * src/HttpRequest.cc
  6205. * src/HttpRequest.h
  6206. * src/HttpRequestCommand.cc
  6207. * src/HttpResponse.cc
  6208. * src/HttpResponseCommand.cc
  6209. * src/HttpSkipResponseCommand.cc
  6210. * src/Makefile.am
  6211. * src/MultiUrlRequestInfo.cc
  6212. * src/Request.cc
  6213. * src/Request.h
  6214. * src/main.cc
  6215. * test/AllTest.cc
  6216. * test/CookieStorageTest.cc
  6217. * test/CookieTest.cc
  6218. * test/HttpRequestTest.cc
  6219. * test/HttpResponseTest.cc
  6220. * test/Makefile.am
  6221. * test/NsCookieParserTest.cc
  6222. * test/Sqlite3MozCookieParserTest.cc
  6223. * test/nscookietest.txt
  6224. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6225. Updated
  6226. * test/Cookies.sqlite
  6227. * test/nscookietest.txt
  6228. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6229. Added tests for CookieStorage::load()
  6230. * test/CookieStorageTest.cc
  6231. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Added CookieStorage class which is based on RFC2109 and manages cookies
  6233. more strictly than CookieBox and CookieBoxFactory class.
  6234. * src/CookieStorage.cc
  6235. * src/CookieStorage.h
  6236. * src/Cookie.cc
  6237. * src/Cookie.h
  6238. * test/CookieStorageTest.cc
  6239. * test/CookieTest.cc
  6240. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6241. Fixed the bug that commands are created more than the number of pieces.
  6242. * src/RequestGroup.cc
  6243. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6244. Fixed infinite loop bug in FTP when SIZE command failed.
  6245. * src/FtpNegotiationCommand.cc
  6246. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Removed DirectDiskAdaptorTest.h
  6248. * test/Makefile.am
  6249. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6250. Fixed chunk checksum validation cannot detect trailing garbage data.
  6251. BUG#2074141
  6252. * src/AbstractSingleDiskAdaptor.cc
  6253. * src/AbstractSingleDiskAdaptor.h
  6254. * src/CheckIntegrityEntry.cc
  6255. * src/CheckIntegrityEntry.h
  6256. * src/DiskAdaptor.h
  6257. * src/MultiDiskAdaptor.cc
  6258. * src/MultiDiskAdaptor.h
  6259. * src/RequestGroup.cc
  6260. * test/DirectDiskAdaptorTest.cc
  6261. * test/MultiDiskAdaptorTest.cc
  6262. * test/TestUtil.cc
  6263. * test/TestUtil.h
  6264. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. Bump up version number of dht.dat file to 3. In version 3 format, time
  6266. is stored in 64bit, network byte order.
  6267. New build can load old format(version 2) but it saves the file in new
  6268. format. It means once you used new build, your dht.dat becomes
  6269. incompatible with older build.
  6270. * src/DHTRoutingTableDeserializer.cc
  6271. * src/DHTRoutingTableSerializer.cc
  6272. * test/DHTRoutingTableSerializerTest.cc
  6273. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6274. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6275. * test/Makefile.am
  6276. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6277. Bump up version number of .aria2 control file to 0001.
  6278. New aria2 can still load version 0000 file but it saves the file in
  6279. version 0001 format. It means that new aria2 can resume download
  6280. started by old aria2 but the opposite is not true.
  6281. * src/DefaultBtProgressInfoFile.cc
  6282. * src/DefaultBtProgressInfoFile.h
  6283. * test/DefaultBtProgressInfoFileTest.cc
  6284. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6285. Added ntoh64 and hton64 as inline functions.
  6286. * src/Util.cc
  6287. * test/UtilTest.cc
  6288. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6289. Added sqlite3 depenency and Firefox3 cookie support.
  6290. * README
  6291. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6292. State that firefox3 cookie is supported explicitly in the usage.
  6293. * src/usage_text.h
  6294. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Externalized message.
  6296. * src/RequestGroupMan.cc
  6297. * src/message.h
  6298. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. Save temporary file first and rename to the destination on success.
  6300. Added test cases.
  6301. * src/RequestGroupMan.cc
  6302. * test/RequestGroupManTest.cc
  6303. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6304. Fixed the bug that the number of connected peer is exceeding the limit
  6305. (55 by default) in seeding mode.
  6306. Multiplied 0.8 to _maxUploadSpeedLimit.
  6307. * src/ActivePeerConnectionCommand.cc
  6308. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Clear table item.
  6310. * src/Dictionary.cc
  6311. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. Fixed error handling of lseek.
  6313. * src/AbstractDiskWriter.cc
  6314. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6316. style cookie file.
  6317. * src/usage_text.h
  6318. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6319. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6320. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6321. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6322. * src/Util.cc
  6323. * src/Util.h
  6324. * src/CookieParser.cc
  6325. * test/UtilTest.cc
  6326. * test/CookieParserTest.cc
  6327. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Separate the implementation to load old mozilla format of cookie to
  6329. NsCookieParser class.
  6330. * src/CookieBoxFactory.cc
  6331. * src/CookieBoxFactory.h
  6332. * src/NsCookieParser.cc
  6333. * src/NsCookieParser.h
  6334. * test/NsCookieParserTest.cc
  6335. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6336. Made parse() const
  6337. * src/Sqlite3MozCookieParser.cc
  6338. * src/Sqlite3MozCookieParser.h
  6339. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6340. Added firefox3 cookie support based on the patch submitted by
  6341. tizianomueller.
  6342. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6343. this functionality.
  6344. * configure.ac
  6345. * m4/sqlite3.m4
  6346. * src/CookieBoxFactory.cc
  6347. * src/CookieBoxFactory.h
  6348. * src/Makefile.am
  6349. * src/Makefile.in
  6350. * src/Sqlite3MozCookieParser.cc
  6351. * src/Sqlite3MozCookieParser.h
  6352. * src/main.cc
  6353. * test/CookieBoxFactoryTest.cc
  6354. * test/Makefile.am
  6355. * test/Makefile.in
  6356. * test/Sqlite3MozCookieParserTest.cc
  6357. * test/badcookies.sqlite
  6358. * test/cookies.sqlite
  6359. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Added Danish and Greek translations.
  6361. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6362. Great thanks to all translators.
  6363. * po/LINGUAS
  6364. * po/el.po
  6365. * po/da.po
  6366. * po/es.po
  6367. * po/ca.po
  6368. * po/nn.po
  6369. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6370. Fixed man page: --follow-bittorrent should be --follow-torrent
  6371. * doc/aria2c.1.txt
  6372. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6373. Fixed: numCommand is less than the value specified in -C option.
  6374. * src/RequestGroup.cc
  6375. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Fixed occasional assertion failure in PieceSegment.
  6377. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6378. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6379. creation of duplicate segments and one of the segment was finished then
  6380. assertion failure was caused.
  6381. * src/SegmentMan.cc
  6382. * test/SegmentManTest.cc
  6383. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6384. Added options to load/save the server's performance/status to a file
  6385. and the timeout to drop their data.
  6386. --server-stat-of=FILE specifies the file to which performance data
  6387. is saved.
  6388. --server-stat-if=FILE specifies the file to read previously saved
  6389. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6390. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6391. TIMEOUT is specified in seconds and the default value is 24hours.
  6392. * src/MultiUrlRequestInfo.cc
  6393. * src/OptionHandlerFactory.cc
  6394. * src/RequestGroupMan.cc
  6395. * src/RequestGroupMan.h
  6396. * src/ServerStatMan.cc
  6397. * src/ServerStatMan.h
  6398. * src/option_processing.cc
  6399. * src/prefs.cc
  6400. * src/prefs.h
  6401. * test/ServerStatManTest.cc
  6402. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6403. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6404. * src/ServerStatMan.cc
  6405. * src/ServerStatMan.h
  6406. * test/ServerStatManTest.cc
  6407. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6408. Implemented ServerStatMan::load(...) function and its test case.
  6409. * src/ServerStat.cc
  6410. * src/ServerStat.h
  6411. * src/ServerStatMan.cc
  6412. * test/ServerStatManTest.cc
  6413. * test/ServerStatTest.cc
  6414. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6415. Use time_t instead of int32_t. Use int64_t where milli second is
  6416. expected.
  6417. * src/TimeA2.cc
  6418. * src/TimeA2.h
  6419. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6420. Implemented ServerStatMan::save(...) function and its test case.
  6421. * src/ServerStat.cc
  6422. * src/ServerStat.h
  6423. * src/ServerStatMan.cc
  6424. * src/ServerStatMan.h
  6425. * test/ServerStatManTest.cc
  6426. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6427. Now aria2 uses name attribute in Metalink as local filename in
  6428. BitTorrent downloads. BUG#2033999
  6429. * src/BtContext.h
  6430. * src/BtDependency.cc
  6431. * src/DefaultBtContext.cc
  6432. * src/DefaultBtContext.h
  6433. * src/SingleFileDownloadContext.cc
  6434. * src/SingleFileDownloadContext.h
  6435. * test/BtDependencyTest.cc
  6436. * test/DefaultBtContextTest.cc
  6437. * test/MockBtContext.h
  6438. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6439. Added AC_C_BIGENDIAN
  6440. * src/configure.ac
  6441. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6442. Limited numCommand less than or equal to the number of piece.
  6443. * src/RequestGroup.cc
  6444. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6445. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6446. directive.
  6447. * test/DefaultPieceStorageTest.cc
  6448. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6449. Fixed memory leak in test code
  6450. * test/AnnounceListTest.cc
  6451. * test/DefaultPeerListProcessorTest.cc
  6452. * test/DefaultPeerStorageTest.cc
  6453. * test/MetaFileUtilTest.cc
  6454. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6455. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6456. * src/DefaultPieceStorage.cc
  6457. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. Initialized _directIOAllowed
  6459. * src/MultiDiskAdaptor.cc
  6460. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6461. Fixed memory leak
  6462. * src/GZipDecoder.cc
  6463. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6464. Fixed memory leak
  6465. * src/MetalinkParserStateMachine.cc
  6466. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6467. Fixed memory leak
  6468. * src/Dictionary.cc
  6469. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6470. Fixed memory leak
  6471. * src/IteratableChunkChecksumValidator.h
  6472. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6473. Fixed unmatched malloc/free.
  6474. * src/IteratableChunkChecksumValidator.cc
  6475. * src/IteratableChecksumValidator.cc
  6476. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6477. Removed max chunk size check. This change fixes BUG#2040169
  6478. * src/ChunkedDecoder.cc
  6479. * src/ChunkedDecoder.h
  6480. * test/ChunkedDecoderTest.cc
  6481. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6482. Implemented download speed based URI selection algorithm.
  6483. Introduced new option --uri-selector.
  6484. If --uri-selector=feedback is given, aria2 uses download speed observed
  6485. in the previous downloads and chooses fastest server in the URI list.
  6486. Currently at most 10 URIs are considered to introduce randomeness for
  6487. finding better servers. The speed is average download speed in the
  6488. downloads.
  6489. On the other hand, if --uri-selector=inorder is given, which is default,
  6490. URI is tried in order in URI list.
  6491. The usage text for the new option has not been written yet.
  6492. * src/AbstractCommand.cc
  6493. * src/DownloadCommand.cc
  6494. * src/DownloadEngine.cc
  6495. * src/DownloadEngineFactory.cc
  6496. * src/InOrderURISelector.cc
  6497. * src/InOrderURISelector.h
  6498. * src/OptionHandlerFactory.cc
  6499. * src/PeerStat.h
  6500. * src/RequestGroup.cc
  6501. * src/RequestGroup.h
  6502. * src/RequestGroupMan.cc
  6503. * src/RequestGroupMan.h
  6504. * src/SegmentMan.cc
  6505. * src/SegmentMan.h
  6506. * src/ServerStat.cc
  6507. * src/ServerStat.h
  6508. * src/ServerStatMan.cc
  6509. * src/ServerStatMan.h
  6510. * src/ServerStatURISelector.cc
  6511. * src/ServerStatURISelector.h
  6512. * src/URISelector.h
  6513. * src/option_processing.cc
  6514. * src/prefs.cc
  6515. * src/prefs.h
  6516. * test/InOrderURISelectorTest.cc
  6517. * test/RequestGroupManTest.cc
  6518. * test/ServerStatManTest.cc
  6519. * test/ServerStatURISelectorTest.cc
  6520. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6521. * Release 0.15.1+2
  6522. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6523. Bump up version number to 0.15.1+2
  6524. * configure.ac
  6525. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6526. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6527. * m4/aria2_arg.m4
  6528. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6529. * Release 0.15.1+1
  6530. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6531. Bump up version number to 0.15.1+1
  6532. * configure.ac
  6533. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6534. Fixed the bug that causes segmentaion fault when resuming download
  6535. using metalink without size tag. Reproducible only using HTTP URI.
  6536. * src/HttpResponseCommand.cc
  6537. * src/FtpNegotiationCommand.cc
  6538. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6539. * Release 0.15.1
  6540. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Updated Bulgarian and French translations, thanks to all translators.
  6542. * po/bg.po
  6543. * po/fr.po
  6544. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. Bump up version number to 0.15.1
  6546. * configure.ac
  6547. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6548. Avoid repeated call of gettimeofday() when calculating speed.
  6549. * src/SpeedCalc.cc
  6550. * src/SpeedCalc.h
  6551. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6552. Removed writable check when socket's send buffer is full in BitTorrent
  6553. downloads to lower CPU usage.
  6554. * src/PeerInteractionCommand.cc
  6555. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Fixed broken gzip inflation.
  6557. Turn off segmented downloading if gzip content is smaller than or equal
  6558. to 1MiB and inflate the data on the fly, because HTTP response header
  6559. doesn't contain the length of inflated file we can't determin where
  6560. the chunk of data should be written.
  6561. On the other hand, if gzip content is larger than 1MB, then turn off
  6562. on the fly inflation, because some servers returns "content-type: gzip"
  6563. for *.tgz, *.gz files.
  6564. * src/DownloadCommand.cc
  6565. * src/HttpResponseCommand.cc
  6566. * src/HttpResponseCommand.h
  6567. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6568. Applied tizianomueller's patch to fix compile error.
  6569. * test/BitfieldManTest.cc
  6570. * test/BtRequestMessageTest.cc
  6571. * test/DefaultBtContextTest.cc
  6572. * test/DefaultDiskWriterTest.cc
  6573. * test/DefaultPieceStorageTest.cc
  6574. * test/HttpHeaderProcessorTest.cc
  6575. * test/HttpResponseTest.cc
  6576. * test/Metalink2RequestGroupTest.cc
  6577. * test/MetalinkParserControllerTest.cc
  6578. * test/MetalinkProcessorTest.cc
  6579. * test/PeerSessionResourceTest.cc
  6580. * test/UtilTest.cc
  6581. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6582. * Release 0.15.0
  6583. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6584. Reordered src files in POTFILES.in so that usage text appears first.
  6585. * po/POTFILES.in
  6586. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6587. Bump up version number to 0.15.0
  6588. * configure.ac
  6589. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Added Bulgarian translation.
  6591. Updated Catalan, Spanish, French and Japanese translations.
  6592. Thanks to all translators.
  6593. * po/LINGUAS
  6594. * po/bg.po
  6595. * po/ca.po
  6596. * po/es.po
  6597. * po/fr.po
  6598. * po/ja.po
  6599. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. Updated feature list. Added libz for dependency section.
  6601. Added a description about unit testing using CppUnit.
  6602. * README
  6603. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Added a test for libz. Quoted where it is necessary.
  6605. * build_test.sh
  6606. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6607. Added GZip to `Enabled Features' list.
  6608. * src/FeatureConfig.cc
  6609. * src/FeatureConfig.h
  6610. * test/FeatureConfigTest.cc
  6611. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6613. the transfer has not yet started.
  6614. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6615. * src/SegmentMan.cc
  6616. * src/SegmentMan.h
  6617. * test/SegmentManTest.cc
  6618. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Cache last calculated average download/upload speed.
  6620. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6621. cached value.
  6622. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6623. * src/PeerStat.h
  6624. * src/SpeedCalc.cc
  6625. * src/SpeedCalc.h
  6626. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6627. Call parseUrl directly.
  6628. * src/Request.cc (resetUrl)
  6629. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6630. Supported absolute/relative path in Location header field.
  6631. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6632. * src/HttpHeader.cc
  6633. * src/HttpHeader.h
  6634. * src/HttpResponse.cc
  6635. * src/HttpSkipResponseCommand.cc
  6636. * src/Request.cc
  6637. * test/HttpHeaderTest.cc
  6638. * test/HttpResponseTest.cc
  6639. * test/RequestTest.cc
  6640. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6641. Changed help text for --load-cookie option.
  6642. * doc/aria2c.1.txt
  6643. * src/usage_text.h
  6644. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6645. Regenerated test/Makefile.in to remove stale ChangeLog.
  6646. * test/Makefile.in
  6647. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6648. Updated po files.
  6649. * po/aria2c.pot
  6650. * po/*.po
  6651. * po/*.gmo
  6652. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6653. Bump up version number to 0.15.0b
  6654. * configure.ac
  6655. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6656. Externalize messages.
  6657. * src/RequestGroupMan.cc
  6658. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6659. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. Use File::exists() instead of File::isFile() to allow non-regular file
  6661. such as block special files.
  6662. * src/AbstractDiskWriter.cc
  6663. * src/MultiDiskWriter.cc
  6664. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6665. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6666. * src/gai_strerror.h
  6667. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6668. Fixed compile error. Thanks gknauf for the patch.
  6669. * src/asctime_r.c
  6670. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Included asctime_r.h from a2time.h.
  6672. * src/a2time.h
  6673. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Added a message "aria2 doesn't verify signature" to log message when
  6675. signature file is saved.
  6676. * src/RequestGroupMan.cc
  6677. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6678. Added the ability to save signature when download is completed if
  6679. signature is available. The filename of signature file is the path to
  6680. download file followed by ".sig". If it already exists, then signature
  6681. will not be saved.
  6682. * src/RequestGroupMan.cc
  6683. * src/Signature.cc
  6684. * test/SignatureTest.cc
  6685. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6686. Updated the descriptions for --bt-seed-unverified.
  6687. * doc/aria2c.1
  6688. * doc/aria2c.1.html
  6689. * doc/aria2c.1.txt
  6690. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6691. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6692. that this is not going to verify files using piece hashes.
  6693. * src/HelpItemFactory.cc
  6694. * src/OptionHandlerFactory.cc
  6695. * src/RequestGroup.cc
  6696. * src/option_processing.cc
  6697. * src/prefs.cc
  6698. * src/prefs.h
  6699. * src/usage_text.h
  6700. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Added the ability to retrieve signature from Metalink file.
  6702. A retrieved signature is stored in Signature class and it is held by
  6703. DownloadContext class. Note that aria2 doesn't verify signature.
  6704. * src/DownloadContext.cc
  6705. * src/DownloadContext.h
  6706. * src/Makefile.am
  6707. * src/Makefile.in
  6708. * src/Metalink2RequestGroup.cc
  6709. * src/MetalinkEntry.cc
  6710. * src/MetalinkEntry.h
  6711. * src/MetalinkParserController.cc
  6712. * src/MetalinkParserController.h
  6713. * src/MetalinkParserStateMachine.cc
  6714. * src/MetalinkParserStateMachine.h
  6715. * src/Signature.cc
  6716. * src/Signature.h
  6717. * src/SignatureMetalinkParserState.cc
  6718. * src/SignatureMetalinkParserState.h
  6719. * src/VerificationMetalinkParserState.cc
  6720. * src/VerificationMetalinkParserState.h
  6721. * test/Metalink2RequestGroupTest.cc
  6722. * test/MetalinkParserControllerTest.cc
  6723. * test/MetalinkProcessorTest.cc
  6724. * test/test.xml
  6725. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6726. Close DiskAdaptor after renaming file.
  6727. * src/RequestGroup.cc
  6728. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6729. Corrected indentation
  6730. * src/DefaultBtProgressInfoFile.cc
  6731. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Moved the calls of std::ios::exceptions() inside of try-catch block
  6733. because if an error occurred in constructor of std::fstream, then
  6734. exception is thrown immediately when std::ios::exceptions() is called
  6735. which results unhandled exception and aria2c aborts.
  6736. * src/DefaultBtProgressInfoFile.cc
  6737. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. Added the test for the previous change in DefaultBtContext.cc
  6739. * test/DefaultBtContextTest.cc
  6740. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6741. Fixed the bug that causes infinite loop when the number of pieces are
  6742. fewer than allowed fast set size which is 10 by default.
  6743. * src/DefaultBtContext.cc
  6744. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6745. Updated the descriptions for -j, -s. Added --bt-seed.
  6746. * doc/aria2c.1
  6747. * doc/aria2c.1.html
  6748. * doc/aria2c.1.txt
  6749. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6750. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6751. aria2 seeds previously downloaded files without validating piece hashs.
  6752. * src/HelpItemFactory.cc
  6753. * src/OptionHandlerFactory.cc
  6754. * src/RequestGroup.cc
  6755. * src/option_processing.cc
  6756. * src/prefs.cc
  6757. * src/prefs.h
  6758. * src/usage_text.h
  6759. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Updated DESCRIPTION of man page.
  6761. * doc/aria2c.1
  6762. * doc/aria2c.1.html
  6763. * doc/aria2c.1.txt
  6764. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6765. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6766. Don't define `struct addrinfo' when __sun is defined.
  6767. * src/getaddrinfo.h
  6768. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6769. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6770. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6771. second argument is of type `struct _stati64'. Otherwise it is defined as
  6772. `struct stat'.
  6773. * src/AbstractDiskWriter.cc
  6774. * src/File.cc
  6775. * src/File.h
  6776. * src/a2io.h
  6777. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6778. Fixed the compile error in hurd-i386
  6779. See the original bug report:
  6780. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6781. * src/a2io.h
  6782. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6783. Code cleanup.
  6784. * src/PeerAbstractCommand.cc
  6785. * src/PeerAbstractCommand.h
  6786. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6787. Removed TransferEncoding.
  6788. * src/DownloadCommand.cc
  6789. * src/DownloadCommand.h
  6790. * src/HttpResponseCommand.cc
  6791. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6792. Updated po files.
  6793. * po/aria2c.pot
  6794. * po/*.po
  6795. * po/*.gmo
  6796. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6798. * src/A2STR.cc
  6799. * src/A2STR.h
  6800. * src/ChunkedDecoder.cc
  6801. * src/ChunkedDecoder.h
  6802. * src/ChunkedEncoding.cc: Removed
  6803. * src/ChunkedEncoding.h: Removed
  6804. * src/DownloadCommand.cc
  6805. * src/DownloadCommand.h
  6806. * src/HttpDownloadCommand.cc
  6807. * src/HttpResponse.cc
  6808. * src/HttpResponse.h
  6809. * src/HttpResponseCommand.cc
  6810. * src/HttpSkipResponseCommand.cc
  6811. * src/HttpSkipResponseCommand.h
  6812. * src/Makefile.am
  6813. * src/TransferEncoding.h: Removed
  6814. * test/ChunkedDecoderTest.cc
  6815. * test/ChunkedEncodingTest.cc: Removed
  6816. * test/HttpResponseTest.cc
  6817. * test/Makefile.am
  6818. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6819. Use append instead of insert.
  6820. * src/GZipDecoder.cc
  6821. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6822. Updated doc
  6823. * src/Decoder.h
  6824. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6825. Updated usage text for -s option.
  6826. * src/usage_text.h
  6827. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6828. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6829. * src/Request.cc
  6830. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6831. Cleaned up configure.ac.
  6832. * configure.ac
  6833. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6834. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6835. AC_ARG_ENABLE.
  6836. * configure.ac
  6837. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6838. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6839. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6840. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6841. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6842. fly and writes decoded data to a local disk.
  6843. * README
  6844. * README.html
  6845. * configure.ac
  6846. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6847. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6848. * m4/libz.m4
  6849. * src/Decoder.h
  6850. * src/DownloadCommand.cc
  6851. * src/DownloadCommand.h
  6852. * src/Exception.h
  6853. * src/GZipDecoder.cc
  6854. * src/GZipDecoder.h
  6855. * src/HttpHeader.cc
  6856. * src/HttpHeader.h
  6857. * src/HttpRequest.cc
  6858. * src/HttpRequest.h
  6859. * src/HttpResponse.cc
  6860. * src/HttpResponse.h
  6861. * src/HttpResponseCommand.cc
  6862. * src/Makefile.am
  6863. * test/GZipDecoderTest.cc
  6864. * test/HttpRequestTest.cc
  6865. * test/HttpResponseTest.cc
  6866. * test/Makefile.am
  6867. * test/Makefile.in
  6868. * test/gzip_decode_test.gz
  6869. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6870. Clarified usage of -j option.
  6871. * src/usage_text.h
  6872. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Disabled getting size from the response of RETR.
  6874. If SIZE command failed, then disable resuming and segmented downloading.
  6875. * src/FtpConnection.cc
  6876. * src/FtpConnection.h
  6877. * src/FtpNegotiationCommand.cc
  6878. * src/FtpNegotiationCommand.h
  6879. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Use digits to find first byte of file size, which makes the intention
  6881. of the code clearer.
  6882. * src/FtpConnection.cc
  6883. Don't call validateTotalLength() when size is 0.
  6884. * src/FtpNegotiationCommand.cc
  6885. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6886. Updated po files.
  6887. * po/aria2c.pot
  6888. * po/*.gmo
  6889. * po/*.po
  6890. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6891. Clarified usage text for --split option.
  6892. * src/usage_text.h
  6893. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Bump up version number to 0.15.0dev. "dev" means "development"
  6895. version, which means I started the development of the next release!
  6896. * src/configure.ac
  6897. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6898. If FTP server returns negative response with REST raw command and
  6899. requested range is not 0, throw exception. If requested range is 0,
  6900. continue download a file from 0 byte.
  6901. * src/FtpNegotiationCommand.cc
  6902. * src/FtpNegotiationCommand.h
  6903. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6904. Supported FTP server which don't recognize SIZE raw command.
  6905. If SIZE raw command is failed, aria2 will try to get file size
  6906. from the response of RETR raw command. If both attempts are failed,
  6907. then resuming and segmented downloading are disabled.
  6908. * src/FtpConnection.cc
  6909. * src/FtpConnection.h
  6910. * src/FtpNegotiationCommand.cc
  6911. * src/FtpNegotiationCommand.h
  6912. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. * Release 0.14.0+1
  6914. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6915. Bump up version number to 0.14.0+1
  6916. * src/configure.ac
  6917. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6918. Fixed the code that refers static member variable from non-static
  6919. context.
  6920. * src/DefaultPeerStorage.cc
  6921. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6922. * Release 0.14.0
  6923. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Added build test script
  6925. * build_test.sh
  6926. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6927. Updated ja.po
  6928. * src/ja.po
  6929. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6930. Bump up version number to 0.14.0
  6931. * src/configure.ac
  6932. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6933. Updated ja.po and fr.po. Great thanks for french translators and
  6934. Sebastien WILLEMIJNS.
  6935. * po/fr.po
  6936. * po/ja.po
  6937. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6938. Added configure option to enable/disable epoll support.
  6939. * configure.ac
  6940. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6941. Updated man page.
  6942. * doc/aria2c.1.txt
  6943. * doc/aria2c.1
  6944. * doc/aria2c.1.html
  6945. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6946. Added missing default value '5' to the usage of --split option.
  6947. * src/HelpItemFactory.cc
  6948. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6949. Filled up pieces based on the number of missing blocks, rather than
  6950. simplay the number of piece * block length.
  6951. * src/BtRequestFactory.h
  6952. * src/DefaultBtInteractive.cc
  6953. * src/DefaultBtInteractive.h
  6954. * src/DefaultBtRequestFactory.cc
  6955. * src/DefaultBtRequestFactory.h
  6956. * src/Piece.cc
  6957. * src/Piece.h
  6958. * test/BitfieldManTest.cc
  6959. * test/DefaultBtRequestFactoryTest.cc
  6960. * test/MockBtRequestFactory.h
  6961. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6962. Made _epEvents a member variable.
  6963. * src/DownloadEngine.cc
  6964. * src/DownloadEngine.h
  6965. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6966. Cancel download if http redirect is bounded more than 20 times.
  6967. * src/AbstractCommand.cc
  6968. * src/HttpSkipResponseCommand.cc
  6969. * src/Request.cc
  6970. * src/Request.h
  6971. * test/RequestTest.cc
  6972. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. Fixed unhandled exception(removed keyword `new').
  6974. * src/SocketCore.cc (initEPOLL)
  6975. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Removed visit(const MetaEntry*)
  6977. * src/MetaEntryVisitor.h:
  6978. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6979. and made them virtual.
  6980. * src/BencodeVisitor.h
  6981. * src/BencodeVisitor.cc
  6982. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Updated po files.
  6984. * po/aria2c.pot
  6985. * po/*.po
  6986. * po/*.gmo
  6987. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6989. the number of socket to watch out.
  6990. * src/PeerInteractionCommand.cc
  6991. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. When there is not enough space in disk when writing a chunk of data,
  6993. aria2 now prints the message to the console to warn user and aborts
  6994. its download. Not all downloads are canceled because some downloads
  6995. may use another disk or partition. BUG#1640332
  6996. * src/AbstractDiskWriter.cc
  6997. * src/PeerAbstractCommand.cc
  6998. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6999. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7000. setHaltRequested(true) to cancel download.
  7001. * src/PeerInteractionCommand.h
  7002. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7003. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7004. socket from int to sock_t as sockets are unsigned in Windows.
  7005. For AsyncNameResolver, DownloadEngine, I did additional modification
  7006. for the portion of the code changed according to epoll support.
  7007. I defined sock_t in a2netcompat.h to use sock_t without including
  7008. SocketCore.h.
  7009. * src/AsyncNameResolver.cc
  7010. * src/AsyncNameResolver.h
  7011. * src/DownloadEngine.cc
  7012. * src/DownloadEngine.h
  7013. * src/SocketCore.cc
  7014. * src/SocketCore.h
  7015. * src/a2netcompat.h
  7016. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7017. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7018. changes in the patch were applied.
  7019. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7020. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7021. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7022. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7023. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7024. a2io.h and common.h were modified.
  7025. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7026. MinGW.
  7027. * src/common.h: Changed off_t to 64 bit in MinGW.
  7028. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7029. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7030. only a2netcompat.h is modified.
  7031. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7032. directives.
  7033. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7034. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7035. only gai_strerror.h is modified.
  7036. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7037. winsock errors in MinGW.
  7038. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7039. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7040. follow sources are applied.
  7041. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7042. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7043. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7044. I included locale.h from Platform.cc.
  7045. * src/main.cc: Moved common setup/teardown code to Platform class.
  7046. * test/AllTest.cc: Use Platform class.
  7047. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7048. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7049. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7050. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7051. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7052. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7054. aria2-0.13.2+1-mingw-2.patch.
  7055. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7056. systems which don't have termious.h. I moved the directive inside of
  7057. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7058. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7059. anyway.
  7060. * src/asctime_r.h
  7061. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7062. I added 2nd argument to the prototype declaration.
  7063. * src/StringFormat.cc: Get rid of vasprintf.
  7064. * src/getaddrinfo.h: Fixed constants.
  7065. * configure.ac: Added the check for asctime_r function.
  7066. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7067. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7068. Added writable test for Socket when the sending message is in progress.
  7069. Usually the sending message is piece message. Without wriable check,
  7070. upload latency is dropped to more than 1sec.
  7071. * src/PeerInteractionCommand.cc
  7072. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7073. Create only requested files and files which shares a piece with
  7074. requested file in multi-torrent downloads. Directory structures are
  7075. also created in the same rule.
  7076. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7077. DiskWriterEntry as in the previous implementation.
  7078. * src/MultiDiskWriter.cc
  7079. * src/MultiFileAllocationIterator.cc
  7080. * src/MultiFileAllocationIterator.h
  7081. * test/MultiFileAllocationIteratorTest.cc
  7082. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7083. Commented out -lprofiler
  7084. * src/Makefile.am
  7085. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. Bump up version number to 0.14.0b.
  7087. * src/configure.ac
  7088. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Actively establish connection to peers in seeding, when peer cache
  7090. is not full and max upload speed limit is not reached.
  7091. * src/ActivePeerConnectionCommand.cc
  7092. * src/ActivePeerConnectionCommand.h
  7093. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7094. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7095. to make room more fleshy, recently found peers.
  7096. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7097. it.
  7098. * src/DefaultPeerStorage.cc
  7099. * test/DefaultPeerStorageTest.cc
  7100. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. Returns cached data only when the previous receiveHandshake() is called
  7102. with peek = true.
  7103. * src/PeerConnection.cc (receiveHandshake)
  7104. * src/PeerConnection.h (receiveHandshake)
  7105. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7106. Changed default value of -s option from 1 to 5.
  7107. Also max value of -s option is changed from 5 to 16.
  7108. * src/HelpItemFactory.cc
  7109. * src/OptionHandlerFactory.cc
  7110. * src/option_processing.cc
  7111. * src/usage_text.h
  7112. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7113. Changed -s options behavior. Now it means the number of connections
  7114. made simultaneously in each http/ftp download.
  7115. If 1 URL is specified, the behavior is the same with old implementation.
  7116. If -s N is given and more than N URLs are specified, first N URLs are
  7117. used and remaining URLs are used for backup. If less than N URLs are
  7118. specified, some of URLs are used more than once so that totally N
  7119. connections are made simultaneously.
  7120. * src/main.cc
  7121. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Included missing iosfwd or ostream header.
  7123. * src/RequestGroupMan.cc
  7124. * src/TaggedItem.cc
  7125. * src/TaggedItem.h
  7126. * src/Util.cc
  7127. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7129. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7130. * src/HttpConnection.cc: Included missing sstream.
  7131. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. Added --bt-max-open-files option.
  7133. * src/DefaultPieceStorage.cc
  7134. * src/HelpItemFactory.cc
  7135. * src/MultiDiskAdaptor.cc
  7136. * src/MultiDiskAdaptor.h
  7137. * src/OptionHandlerFactory.cc
  7138. * src/option_processing.cc
  7139. * src/prefs.cc
  7140. * src/prefs.h
  7141. * src/usage_text.h
  7142. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. Fixed the bug that aria2 aborts when a path to a directory is given
  7144. in command-line.
  7145. * src/ProtocolDetector.cc
  7146. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7147. Limited the number files opened in each BitTorrent download. The default
  7148. value is 100. The option to change this value will be added.
  7149. * src/MultiDiskAdaptor.cc
  7150. * src/MultiDiskAdaptor.h
  7151. * src/MultiFileAllocationIterator.cc
  7152. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Fixed the bug that HTTP downloads don't start with old libraries.
  7154. * src/HttpHeaderProcessor.cc
  7155. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Use empty() instead of size() > 0.
  7157. * src/HttpConnection.cc
  7158. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Drop connection if the incoming peer ID is the same with localhost's
  7160. one. The previous implementation drops connection when incoming peer's
  7161. IP address is the same with localhost's one.
  7162. * src/PeerListenCommand.cc
  7163. * src/DefaultBtInteractive.cc
  7164. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7165. Returns cached data without checking whether socket is readable
  7166. if the cache is available.
  7167. * src/PeerConnection.cc (receiveHandshake)
  7168. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7169. Included stdint.h
  7170. * src/common.h
  7171. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7172. Removed duplicate HAVE_GETTIMEOFDAY
  7173. * src/Makefile.am
  7174. * src/Makefile.in
  7175. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Use interval as a minInterval when minInterval is not supplied.
  7177. * src/DefaultBtAnnounce.cc
  7178. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7180. attempt is failed, then 2nd attempt get kicked out more quickly.
  7181. And it is now static const member of DefaultBtAnnounce.
  7182. * src/DefaultBtAnnounce.h
  7183. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7184. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7185. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7186. * src/ActivePeerConnectionCommand.cc
  7187. * src/BtConstants.h
  7188. * src/BtRuntime.h
  7189. * src/DHTGetPeersCommand.cc
  7190. * src/DefaultBtAnnounce.cc
  7191. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7192. BtRuntime::MAX_PEERS.
  7193. * src/DefaultPeerStorage.h
  7194. * src/InitiatorMSEHandshakeCommand.cc
  7195. * src/PeerInitiateConnectionCommand.cc
  7196. * src/PeerInteractionCommand.cc
  7197. * src/PeerReceiveHandshakeCommand.cc
  7198. * src/TrackerWatcherCommand.cc
  7199. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7200. Always Connect to _numNewConnection
  7201. * src/ActivePeerConnectionCommand.cc
  7202. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7203. Made `begin' unsigned int.
  7204. * src/GrowSegment.h
  7205. * src/Piece.cc
  7206. * src/Piece.h
  7207. * src/PiecedSegment.cc
  7208. * src/PiecedSegment.h
  7209. * src/Segment.h
  7210. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7211. Calculate piece hash when data is arrived if the data is arrived in
  7212. order. This removes additional read operation for hash calculation.
  7213. If the data is arrived in out of order, the hash is calucated when the
  7214. piece is completed. This is the same behavior as the old implementation.
  7215. * src/BtPieceMessage.cc
  7216. * src/DefaultBtProgressInfoFile.cc
  7217. * src/DefaultPieceStorage.cc
  7218. * src/DownloadCommand.cc
  7219. * src/DownloadCommand.h
  7220. * src/DownloadEngine.cc
  7221. * src/GrowSegment.cc
  7222. * src/GrowSegment.h
  7223. * src/Piece.cc
  7224. * src/Piece.h
  7225. * src/PiecedSegment.cc
  7226. * src/PiecedSegment.h
  7227. * src/Segment.h
  7228. * test/PieceTest.cc
  7229. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7230. Try to keep the ordering of outgoing piece message.
  7231. * src/DefaultBtMessageDispatcher.cc
  7232. (DefaultBtMessageDispatcher::sendMessages)
  7233. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Fixed busy loop when error/hup epoll events occur.
  7235. * src/AbstractCommand.cc
  7236. * src/PeerAbstractCommand.cc
  7237. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7238. Added --bt-request-peer-speed-limit option, which was a constant
  7239. SLOW_SPEED_THRESHOLD.
  7240. * src/ActivePeerConnectionCommand.cc
  7241. * src/ActivePeerConnectionCommand.h
  7242. * src/BtConstants.h
  7243. * src/HelpItemFactory.cc
  7244. * src/OptionHandlerFactory.cc
  7245. * src/PeerReceiveHandshakeCommand.cc
  7246. * src/option_processing.cc
  7247. * src/prefs.cc
  7248. * src/prefs.h
  7249. * src/usage_text.h
  7250. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7251. Removed repeated call of getTopDirPath(). Instead, call it once and
  7252. cache the result.
  7253. * src/MultiDiskAdaptor.cc
  7254. * src/MultiDiskAdaptor.h
  7255. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7256. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Fixed compile error on debian etch.
  7258. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7259. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7260. it is undefined.
  7261. * src/Util.cc (ULLONG_MAX)
  7262. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7263. Added epoll support. Use epoll if it is available. If not, use select.
  7264. When async dns is enabled in compile time, epoll support is enabled
  7265. only when aria2 is built with c-ares. This condition statement is
  7266. defined in a2io.h.
  7267. Currently aria2 supports both c-ares and ares, but ares is maintained
  7268. for quite a while and debian already has c-ares package, ares support
  7269. will be dropped in the future version.
  7270. * configure.ac
  7271. * src/AbstractCommand.cc
  7272. * src/AsyncNameResolver.cc
  7273. * src/AsyncNameResolver.h
  7274. * src/Command.cc
  7275. * src/Command.h
  7276. * src/DownloadEngine.cc
  7277. * src/DownloadEngine.h
  7278. * src/PeerAbstractCommand.cc
  7279. * src/SocketCore.cc
  7280. * src/SocketCore.h
  7281. * src/a2io.h
  7282. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7283. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7284. directive.
  7285. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Do not do write operation to /dev/null file.
  7287. * src/LogFactory.cc
  7288. * src/SimpleLogger.cc
  7289. Replaced vasprintf with vsnprintf
  7290. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7291. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7292. * src/BtRequestMessage.cc
  7293. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7294. for segmentation fault caused by previous commit.
  7295. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7296. Reduced the usage of gettimeofday().
  7297. * src/DefaultBtMessageDispatcher.cc
  7298. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7299. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7300. * src/RequestSlot.cc
  7301. * src/RequestSlot.h
  7302. (RequestSlot::isTimeout)
  7303. Made RequestSlot have a reference to Piece object to avoid find
  7304. Piece repeatedly.
  7305. * src/DefaultBtMessageDispatcher.cc
  7306. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7307. * src/RequestSlot.cc
  7308. * src/RequestSlot.h
  7309. (RequestSlot::getPiece)
  7310. * test/DefaultBtMessageDispatcherTest.cc
  7311. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. * src/TimeA2.cc
  7313. * src/TimeA2.h
  7314. (Time::difference): New function.
  7315. (Time::elapsed): Done optimization.
  7316. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7317. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7318. directive.
  7319. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. * src/option_processing.cc: Added missing `defined' keyword to #if
  7321. directive.
  7322. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. Bump up version number to 0.13.2+1
  7324. * src/configure.ac
  7325. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. Refactored broken outstanding piece handling.
  7327. * src/DefaultPieceStorage.cc
  7328. * src/DefaultPieceStorage.h
  7329. * src/Piece.cc
  7330. * src/Piece.h
  7331. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7332. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7333. name collision of static variable and predefined macro.
  7334. * src/BtContext.cc
  7335. * src/BtContext.h
  7336. * src/CookieBoxFactory.cc
  7337. * src/CookieBoxFactory.h
  7338. * src/CookieParser.cc
  7339. * src/CookieParser.h
  7340. * src/DefaultBtContext.cc
  7341. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. * src/RequestGroup.cc
  7343. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7344. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. * Release 0.13.2
  7346. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7347. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7348. * po/fr.po
  7349. * po/ja.po
  7350. * po/aria2c.pot
  7351. * po/*.po
  7352. * po/*.gmo
  7353. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Bump up version number to 0.13.2
  7355. * src/configure.ac
  7356. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Refactord.
  7358. * src/RequestGroupMan.cc
  7359. (removeStoppedGroup)
  7360. (fillRequestGroupFromReserver)
  7361. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Fixed compile error on Ubuntu.
  7363. * src/BtPieceMessage.cc
  7364. * src/MessageDigestHelper.cc
  7365. * src/Util.cc
  7366. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Fixed compile error when configured with --disable-bittorrent
  7368. * test/DownloadHandlerFactoryTest.cc
  7369. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7370. Done make update-po
  7371. * po/aria2c.pot
  7372. * po/*.po
  7373. * po/*.gmo
  7374. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7375. Bump up version number to 0.13.2rc.
  7376. * src/configure.ac
  7377. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7378. Made option name bold. Updated SYNOPSIS to make it more readable.
  7379. * doc/aria2c.1.txt
  7380. * doc/aria2c.1
  7381. * doc/aria2c.1.html
  7382. * src/version_usage.cc
  7383. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7384. Refactored. Use std::string instead of size and char*.
  7385. * Data.cc
  7386. * Data.h
  7387. * test/Data.cc
  7388. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7389. Added trimSelf(). Rewritten trim() to use trimSelf().
  7390. * Util.cc
  7391. * Util.h
  7392. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7394. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7395. Fixed compile error when configured with --disable-metalink.
  7396. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7397. * test/FeatureConfigTest.cc
  7398. * test/DownloadHandlerFactoryTest.cc
  7399. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7400. Fixed compile error when configured with --without-gnutls
  7401. --without-openssl
  7402. * src/main.cc
  7403. * test/DefaultBtProgressInfoFileTest.cc
  7404. * test/SegmentManTest.cc
  7405. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Fixed compile error with OpenSSL.
  7407. * src/IteratableChunkChecksumValidator.cc
  7408. * src/LibsslDHKeyExchange.h
  7409. * src/MessageDigestHelper.cc
  7410. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Revert the default value of --max-concurrent-downloads to 5.
  7412. Revert the default value of --metalink-servers to 5.
  7413. Man pages was also updated.
  7414. * src/option_processing.cc
  7415. * doc/aria2c.1.txt
  7416. * doc/aria2c.1.html
  7417. * doc/aria2c.1
  7418. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7419. Returns const reference:
  7420. DownloadContext::getPieceHash, DownloadContext::getName,
  7421. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7422. BtContext::getInfoHashAsString,
  7423. * src/BtContext.h
  7424. * src/DefaultBtContext.cc
  7425. * src/DefaultBtContext.h
  7426. * src/DownloadContext.h
  7427. * src/SingleFileDownloadContext.h
  7428. * test/MockBtContext.h
  7429. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7430. * src/RequestGroup.h (getDir): Removed.
  7431. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7432. Returns const reference. The internal urlencode function was optimized
  7433. a little bit.
  7434. * src/Request.cc
  7435. * src/Request.h
  7436. * src/HttpRequest.cc
  7437. * src/HttpRequest.h
  7438. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7439. Defined option name and possible values as std::string to reduce
  7440. temporary string object creation in runtime.
  7441. * src/HelpItemFactory.cc
  7442. * src/LogFactory.cc
  7443. * src/Option.cc
  7444. * src/OptionHandlerFactory.cc
  7445. * src/option_processing.cc
  7446. * src/prefs.cc
  7447. * src/prefs.h
  7448. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7449. Return const reference.
  7450. * src/DownloadHandlerConstants.cc
  7451. * src/DownloadHandlerConstants.h
  7452. (getMetalinkExtensions)
  7453. (getMetalinkContentTypes)
  7454. (getBtExtensions)
  7455. (getBtContentTypes)
  7456. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7457. * src/HttpHeader.cc (get): Rewritten.
  7458. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. Make HttpHeader::getFirst(...) return const reference.
  7460. * src/HttpHeader.cc
  7461. * src/HttpHeader.h
  7462. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7464. it with V_TRUE.
  7465. * src/DefaultPieceStorage.cc
  7466. * src/DownloadCommand.cc
  7467. * src/FtpNegotiationCommand.cc
  7468. * src/HttpRequest.cc
  7469. * src/InitiateConnectionCommand.cc
  7470. * src/RequestGroup.cc
  7471. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. Made Option::get(...) return const reference of std::string.
  7473. * src/Option.cc
  7474. * src/Option.h
  7475. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. Replaced std:copy with insert.
  7477. * src/DefaultBtMessageDispatcher.cc
  7478. * src/DefaultPieceStorage.cc
  7479. * src/DownloadEngineFactory.cc
  7480. * src/RequestGroup.cc
  7481. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7482. Included SocketCore.h to fix compiler warning.
  7483. * src/InitiateConnectionCommand.cc
  7484. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7485. Put piece selection strategy algorithm to RarestPieceSelector class,
  7486. Added a switch to choose whether randomized selection so that unit
  7487. tests emit same results in, possibly, win32.
  7488. * src/DefaultPieceStorage.cc
  7489. * src/DefaultPieceStorage.h
  7490. * src/RarestPieceSelector.cc
  7491. * src/RarestPieceSelector.h
  7492. * test/DefaultPieceStorageTest.cc
  7493. * test/RarestPieceSelectorTest.cc
  7494. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. Don't pool connection if HTTP proxy is enabled.
  7496. * src/FtpFinishDownloadCommand.cc
  7497. * src/FtpNegotiationCommand.cc
  7498. * src/HttpSkipResponseCommand.cc
  7499. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7500. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7501. * src/AbstractCommand.cc
  7502. * src/AbstractCommand.h
  7503. * src/ActivePeerConnectionCommand.cc
  7504. * src/FtpInitiateConnectionCommand.cc
  7505. * src/HttpInitiateConnectionCommand.cc
  7506. * src/InitiateConnectionCommandFactory.cc
  7507. * src/PeerAbstractCommand.cc
  7508. * src/PeerAbstractCommand.h
  7509. * src/PeerInitiateConnectionCommand.cc
  7510. * src/TrackerWatcherCommand.cc
  7511. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7512. Sort RequestSlot in ascending order and manipulate them using
  7513. lower_bound.
  7514. * src/DefaultBtMessageDispatcher.cc
  7515. * src/DefaultBtMessageDispatcher.h
  7516. (getMessageQueue): Added const qualifier.
  7517. (getRequestSlots): Added const qualifier.
  7518. (sendMessages): Use empty() instead of size().
  7519. (doCancelSendingPieceAction): Use HandleEvent object.
  7520. (doAbortOutstandingRequestAction): Rewritten.
  7521. (doChokedAction): Rewritten.
  7522. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7523. (isOutstandingRequest): Rewritten.
  7524. (getOutstandingRequest): Rewritten.
  7525. (removeOutstandingRequest): Rewritten.
  7526. (addOutstandingRequest): Rewritten.
  7527. * src/RequestSlot.cc
  7528. * src/RequestSlot.h
  7529. (operator=): Rewritten.
  7530. (operator!=): New function.
  7531. (operator<): New function.
  7532. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. * src/DefaultBtRequestFactory.cc
  7534. (doChokedAction): Rewritten.
  7535. (removeCompletedPiece): Rewritten.
  7536. (removeTargetPiece): Rewritten.
  7537. (createRequestMessages): Added the debug log.
  7538. (createRequestMessagesOnEndGame: Added the debug log.
  7539. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Added the debug log message.
  7541. * src/BtPieceMessage.cc (doReceivedAction)
  7542. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7544. used lower_bound to process them rather than linear search.
  7545. * src/DHTPeerAnnounceStorage.cc
  7546. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7548. peer has at least one completed piece.
  7549. * src/Peer.cc
  7550. * src/Peer.h
  7551. * src/PeerInteractionCommand.cc
  7552. * src/PeerSessionResource.cc
  7553. * src/PeerSessionResource.h
  7554. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7555. Removed unnecessary sorting
  7556. * src/DefaultPieceStorage (DefaultPieceStorage)
  7557. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7558. Rewritten the portion of the code that mangaes allowed fast indexes.
  7559. * src/PeerSessionResource.cc
  7560. * src/PeerSessionResource.h
  7561. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7562. Removed the invalid string including '\r' from ru.po and
  7563. did make update-po.
  7564. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Added --log-level and --summary-interval to man page.
  7566. * doc/aria2c.1.txt
  7567. * doc/aria2c.1.html
  7568. * doc/aria2c.1
  7569. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7570. Added --log-level option to specify log level. Log messages under
  7571. the specified level are not output. Default value is `debug'.
  7572. * src/HelpItemFactory.cc
  7573. * src/LogFactory.cc
  7574. * src/LogFactory.h
  7575. * src/Logger.h
  7576. * src/OptionHandlerFactory.cc
  7577. * src/SimpleLogger.cc
  7578. * src/SimpleLogger.h
  7579. * src/main.cc
  7580. * src/option_processing.cc
  7581. * src/prefs.h
  7582. * src/usage_text.h
  7583. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7584. Print download progress summary of all parallel downloads in specified
  7585. interval, default 60 secs. While aria2 could download several files
  7586. in parallel (see -j option), it displayed just first download progress,
  7587. and the other downloads are hidden from the users. This new feature
  7588. prints all downloads currently in-progress to the console so that you
  7589. can check the status of all downloads. The interval can be adjusted
  7590. by --summary-interval option.
  7591. The progress readout is now cut so that all fits in the one line of
  7592. console.
  7593. * src/ConsoleStatCalc.cc
  7594. * src/ConsoleStatCalc.h
  7595. * src/HelpItemFactory.cc
  7596. * src/OptionHandlerFactory.cc
  7597. * src/RequestGroupMan.cc
  7598. * src/RequestGroupMan.h
  7599. * src/main.cc
  7600. * src/option_processing.cc
  7601. * src/prefs.h
  7602. * src/usage_text.h
  7603. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7604. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7605. * src/DownloadEngine.cc (DownloadEngine)
  7606. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7608. defined.
  7609. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7610. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. Use erase+lower_bound+insert instead of sort.
  7612. * src/DefaultPieceStorage.cc (addPieceStats)
  7613. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7615. * src/A2STR.cc
  7616. * src/A2STR.h
  7617. * src/OptionParser.cc (parse)
  7618. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. Defined fake filename `[tracker.announce]' as static const std::string.
  7620. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7621. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7622. Defined default filename `index.html' as static const std::string
  7623. * src/SingleFileDownloadContext.cc
  7624. * src/SingleFileDownloadContext.h
  7625. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. Defined "[MEMORY]" as static const std::string.
  7627. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7628. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Defined control file's version number as static const std::string.
  7630. * src/DefaultBtProgressInfoFile.cc
  7631. * src/DefaultBtProgressInfoFile.h
  7632. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7633. Use Request::METHOD_GET
  7634. * src/RequestGroup.cc (createNextCommandWithAdj)
  7635. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. Defined "OK", "ERR", "INPR" as static const std::string
  7637. * src/RequestGroupMan.cc (showDownloadResults)
  7638. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7639. Defined default client used in extended handshake as static const
  7640. std::string
  7641. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7642. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7644. * src/HttpConnection.cc (eraseConfidentialInfo)
  7645. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Defined default ftp user and password as static const std::string
  7647. * src/AuthConfigFactory.cc
  7648. * src/AuthConfigFactory.h
  7649. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Defined strings used in netrc as static const std::string
  7651. * src/Netrc.cc
  7652. * src/Netrc.h
  7653. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7654. Defined HTTP status as static const std::string
  7655. * src/AbstractProxyResponseCommand.cc
  7656. * src/HttpHeader.cc
  7657. * src/HttpHeader.h
  7658. * src/HttpResponse.cc
  7659. * src/HttpResponseCommand.cc
  7660. * src/HttpSkipResponseCommand.cc
  7661. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7662. Defined "\r\n", "A", "I" as static const std::string
  7663. * src/A2STR.cc
  7664. * src/A2STR.h
  7665. * src/FtpConnection.cc
  7666. * src/FtpConnection.h
  7667. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7668. Added COLON_C(".") and used it in Request::parseUrl()
  7669. * src/A2STR.cc
  7670. * src/A2STR.h
  7671. * src/Request.cc (parseUrl)
  7672. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7673. Changed the type of padName from `const std::string&' to `const char*'.
  7674. * src/MSEHandshake.cc (verifyPadLength)
  7675. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Defined "sha1" as static const std::string.
  7677. * src/MetalinkParserController.cc
  7678. * src/MetalinkParserController.h
  7679. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7680. Defined message digest algorithm name as static const std::string
  7681. * src/DHTTokenTracker.cc
  7682. * src/DHTUtil.cc
  7683. * src/DefaultBtContext.cc
  7684. * src/MSEHandshake.cc
  7685. * src/MessageDigestHelper.cc
  7686. * src/Peer.cc
  7687. * src/messageDigest.cc
  7688. * src/messageDigest.h
  7689. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7690. Made string literals used in SAX parser static const std::string.
  7691. * src/FileMetalinkParserState.cc
  7692. * src/FileMetalinkParserState.h
  7693. * src/FilesMetalinkParserState.cc
  7694. * src/FilesMetalinkParserState.h
  7695. * src/InitialMetalinkParserState.cc
  7696. * src/InitialMetalinkParserState.h
  7697. * src/MetalinkMetalinkParserState.cc
  7698. * src/MetalinkMetalinkParserState.h
  7699. * src/PiecesMetalinkParserState.cc
  7700. * src/PiecesMetalinkParserState.h
  7701. * src/ResourcesMetalinkParserState.cc
  7702. * src/ResourcesMetalinkParserState.h
  7703. * src/VerificationMetalinkParserState.cc
  7704. * src/VerificationMetalinkParserState.h
  7705. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7706. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7707. * src/A2STR.cc
  7708. * src/A2STR.h
  7709. * src/File.cc
  7710. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Defined static const std::string IP("ip"), PORT("port") and use them
  7712. instead of string literals.
  7713. * src/DefaultPeerListProcessor.cc
  7714. * src/DefaultPeerListProcessor.h
  7715. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Made string literals for torrent file processing static const
  7717. std::string.
  7718. * src/BtContext.cc
  7719. * src/BtContext.h
  7720. * src/DefaultBtContext.cc
  7721. * src/DefaultBtContext.h
  7722. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. Made string literal for tracker response static const std::string
  7724. * src/BtAnnounce.cc
  7725. * src/BtAnnounce.h
  7726. * src/DefaultBtAnnounce.cc
  7727. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Use DHTMessage::T instead of "t".
  7729. * src/DHTMessageTracker.cc (messageArrived)
  7730. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7731. Made keyName static const. Made trimmed charset static const
  7732. std::string.
  7733. * src/Util.cc (getContentDispositionFilename)
  7734. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Made USER_AGENT const. Made "/" static const std::string.
  7736. * src/A2STR.cc
  7737. * src/A2STR.h
  7738. * src/HttpRequest.cc
  7739. * src/HttpRequest.h
  7740. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Made string listeral to static const std::string:
  7742. "Content-Range", "Content-Length"
  7743. * src/HttpHeader.cc
  7744. * src/HttpHeader.h
  7745. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7746. Made string listeral to static const std::string.
  7747. * src/HttpConnection.cc
  7748. * src/HttpHeader.cc
  7749. * src/HttpHeader.h
  7750. * src/HttpResponse.cc
  7751. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Made string listeral to static const std::string.
  7753. * src/A2STR.cc
  7754. * src/A2STR.h
  7755. * src/SimpleLogger.cc
  7756. * src/SimpleLogger.h
  7757. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Made string literal to static const std::string.
  7759. Rewritten CookieParser::setField.
  7760. * src/A2STR.cc
  7761. * src/A2STR.h
  7762. * src/CookieBoxFactory.cc
  7763. * src/CookieBoxFactory.h
  7764. * src/CookieParser.cc
  7765. * src/CookieParser.h
  7766. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. Made string literal to static const std::string
  7768. * src/DHTAbstractMessage.cc
  7769. * src/DHTAnnouncePeerMessage.cc
  7770. * src/DHTAnnouncePeerMessage.h
  7771. * src/DHTAnnouncePeerReplyMessage.cc
  7772. * src/DHTAnnouncePeerReplyMessage.h
  7773. * src/DHTFindNodeMessage.cc
  7774. * src/DHTFindNodeMessage.h
  7775. * src/DHTFindNodeReplyMessage.cc
  7776. * src/DHTFindNodeReplyMessage.h
  7777. * src/DHTGetPeersMessage.cc
  7778. * src/DHTGetPeersMessage.h
  7779. * src/DHTGetPeersReplyMessage.cc
  7780. * src/DHTGetPeersReplyMessage.h
  7781. * src/DHTMessage.cc
  7782. * src/DHTMessage.h
  7783. * src/DHTMessageFactoryImpl.cc
  7784. * src/DHTMessageReceiver.cc
  7785. * src/DHTPingMessage.cc
  7786. * src/DHTPingMessage.h
  7787. * src/DHTPingReplyMessage.cc
  7788. * src/DHTPingReplyMessage.h
  7789. * src/DHTQueryMessage.cc
  7790. * src/DHTQueryMessage.h
  7791. * src/DHTResponseMessage.cc
  7792. * src/DHTResponseMessage.h
  7793. * src/DHTUnknownMessage.cc
  7794. * src/DHTUnknownMessage.h
  7795. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7796. Made string literal to static const std::string
  7797. * src/BtChokeMessage.cc (toString)
  7798. * src/BtHaveAllMessage.cc (toString)
  7799. * src/BtHaveNoneMessage.cc (toString)
  7800. * src/BtInterestedMessage.cc (toString)
  7801. * src/BtNotInterestedMessage.cc (toString)
  7802. * src/BtUnchokeMessage.cc (toString)
  7803. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. Replaced "" with static const variable A2STR::NIL.
  7805. Replaced string comparison against "" with std::string::empty().
  7806. Added PROTO_* to Request class and use them as a protocol string
  7807. constant.
  7808. Made "started", "stopped", "completed" static const variable in
  7809. AnnounceList class.
  7810. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7811. Updated translations. Great thanks to translators.
  7812. * po/ca.po
  7813. * po/de.po
  7814. * po/fr.po
  7815. * po/it.po
  7816. * po/ja.po
  7817. * po/ru.po
  7818. * po/zh_CN.po
  7819. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7820. Updated man page; categorized options and fixed typo.
  7821. * doc/aria2c.1.txt
  7822. * doc/aria2c.1.html
  7823. * doc/aria2c.1
  7824. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7825. Removed const ref
  7826. * src/MetalinkEntry.cc (AddProtocolPreference)
  7827. * src/RequestGroup.cc (FindServerHostByHostname)
  7828. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. Rewritten Accept-Features handling.
  7830. * src/HttpRequestCommand.cc (createHttpRequest)
  7831. * src/a2functional.h
  7832. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Changed method signature:
  7834. DHTAbstractNodeLookupTask::toEntries
  7835. * src/DHTAbstractNodeLookupTask.cc
  7836. * src/DHTAbstractNodeLookupTask.h
  7837. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7838. Changed method signature:
  7839. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7840. * src/BtContext.h
  7841. * src/DefaultBtContext.cc
  7842. * src/DefaultBtContext.h
  7843. * src/DefaultBtInteractive.cc
  7844. * test/DefaultBtContextTest.cc
  7845. * test/MockBtContext.h
  7846. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Changed method signature:
  7848. MultiFileAllocationIterator::makeDiskWriterEntries
  7849. * src/MultiFileAllocationIterator.cc
  7850. * src/MultiFileAllocationIterator.h
  7851. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Changed method sinature:
  7853. MetalinkEntry::toFileEntry,
  7854. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7855. Metalinker::queryEntry
  7856. * src/Metalink2RequestGroup.cc
  7857. * src/MetalinkEntry.cc
  7858. * src/MetalinkEntry.h
  7859. * src/MetalinkHelper.cc
  7860. * src/MetalinkHelper.h
  7861. * src/Metalinker.cc
  7862. * src/Metalinker.h
  7863. * src/main.cc
  7864. * test/MetalinkHelperTest.cc
  7865. * test/MetalinkerTest.cc
  7866. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Changed method sinature:
  7868. RequestGroup::getURIs
  7869. * src/RequestGroup.cc
  7870. * src/RequestGroup.h
  7871. * test/Metalink2RequestGroupTest.cc
  7872. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7873. Changed method signature:
  7874. PeerListProcessor::extractPeer
  7875. * src/CompactPeerListProcessor.cc
  7876. * src/CompactPeerListProcessor.h
  7877. * src/DefaultBtAnnounce.cc
  7878. * src/DefaultPeerListProcessor.cc
  7879. * src/DefaultPeerListProcessor.h
  7880. * src/DelegatingPeerListProcessor.cc
  7881. * src/DelegatingPeerListProcessor.h
  7882. * src/PeerListProcessor.h
  7883. * src/UTPexExtensionMessage.cc
  7884. * test/DefaultPeerListProcessorTest.cc
  7885. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7886. Changed method signature:
  7887. BtRequestFactory::createRequestMessages,
  7888. BtRequestFactory::createRequestMessagesOnEndGame
  7889. * src/BtRequestFactory.h
  7890. * src/DefaultBtInteractive.cc
  7891. * src/DefaultBtRequestFactory.cc
  7892. * src/DefaultBtRequestFactory.h
  7893. * test/DefaultBtRequestFactoryTest.cc
  7894. * test/MockBtRequestFactory.h
  7895. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7896. Changed method signature:
  7897. PieceStorage::getInFlightPieces
  7898. * src/DefaultBtProgressInfoFile.cc
  7899. * src/DefaultPieceStorage.cc
  7900. * src/DefaultPieceStorage.h
  7901. * src/PieceStorage.h
  7902. * src/UnknownLengthPieceStorage.cc
  7903. * src/UnknownLengthPieceStorage.h
  7904. * test/DefaultBtProgressInfoFileTest.cc
  7905. * test/MockPieceStorage.h
  7906. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7907. Changed method signature:
  7908. PostDownloadHandler::getNextRequestGroups
  7909. Metalink2RequestGroup::generate
  7910. RequestGroup::postDownloadProcessing
  7911. * src/BtPostDownloadHandler.cc
  7912. * src/BtPostDownloadHandler.h
  7913. * src/Metalink2RequestGroup.cc
  7914. * src/Metalink2RequestGroup.h
  7915. * src/MetalinkPostDownloadHandler.cc
  7916. * src/MetalinkPostDownloadHandler.h
  7917. * src/PostDownloadHandler.h
  7918. * src/RequestGroup.cc
  7919. * src/RequestGroup.h
  7920. * src/RequestGroupMan.cc
  7921. * src/main.cc
  7922. * test/BtPostDownloadHandlerTest.cc
  7923. * test/Metalink2RequestGroupTest.cc
  7924. * test/MetalinkPostDownloadHandlerTest.cc
  7925. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7926. Rewritten AccRequestGroup
  7927. * src/main.cc
  7928. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. Rewritten.
  7930. * src/TaggedItem.cc (toTagString)
  7931. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7932. Rewritten Accept-Features handling.
  7933. * src/HttpRequestCommand.cc (createHttpRequest)
  7934. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Rewritten accept types handling.
  7936. * HttpRequest.cc (createRequest)
  7937. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Rewritten
  7939. * src/FeatureConfig.cc (featureSummary)
  7940. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Changed method signature:
  7942. PeerStorage::getActivePeers
  7943. * src/DHTPeerAnnounceEntry.cc
  7944. * src/DefaultPeerStorage.cc
  7945. * src/DefaultPeerStorage.h
  7946. * src/PeerStorage.h
  7947. * test/DefaultPeerStorageTest.cc
  7948. * test/MockPeerStorage.h
  7949. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Changed method signature:
  7951. DHTPeerAnnounceStorage::getPeers,
  7952. DHTPeerAnnounceEntry::getPeers
  7953. * src/DHTGetPeersMessage.cc
  7954. * src/DHTPeerAnnounceEntry.cc
  7955. * src/DHTPeerAnnounceEntry.h
  7956. * src/DHTPeerAnnounceStorage.cc
  7957. * src/DHTPeerAnnounceStorage.h
  7958. * test/DHTAnnouncePeerMessageTest.cc
  7959. * test/DHTPeerAnnounceEntryTest.cc
  7960. * test/DHTPeerAnnounceStorageTest.cc
  7961. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Changed method signature:
  7963. NameResolver::resolve
  7964. * src/DHTEntryPointNameResolveCommand.cc
  7965. * src/InitiateConnectionCommand.cc
  7966. * src/NameResolver.cc
  7967. * src/NameResolver.h
  7968. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7969. Changed method signature:
  7970. PieceStorage::getAdvertisedPieceIndexes
  7971. * src/DefaultBtInteractive.cc
  7972. * src/DefaultPieceStorage.cc
  7973. * src/DefaultPieceStorage.h
  7974. * src/PieceStorage.h
  7975. * src/UnknownLengthPieceStorage.h
  7976. * test/MockPieceStorage.h
  7977. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7978. Changed method signature:
  7979. SegmentMan::getInFlightSegment
  7980. * src/AbstractCommand.cc
  7981. * src/SegmentMan.cc
  7982. * src/SegmentMan.h
  7983. * test/SegmentManTest.cc
  7984. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7985. Changed method signature:
  7986. DHTAbstractNodeLookupTask::getNodesFromMessage
  7987. * src/DHTAbstractNodeLookupTask.cc
  7988. * src/DHTAbstractNodeLookupTask.h
  7989. * src/DHTNodeLookupTask.cc
  7990. * src/DHTNodeLookupTask.h
  7991. * src/DHTPeerLookupTask.cc
  7992. * src/DHTPeerLookupTask.h
  7993. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7995. * src/AbstractCommand.cc
  7996. * src/BtCheckIntegrityEntry.cc
  7997. * src/BtCheckIntegrityEntry.h
  7998. * src/BtFileAllocationEntry.cc
  7999. * src/BtFileAllocationEntry.h
  8000. * src/BtSetup.cc
  8001. * src/BtSetup.h
  8002. * src/CheckIntegrityCommand.cc
  8003. * src/CheckIntegrityEntry.h
  8004. * src/ChecksumCheckIntegrityEntry.cc
  8005. * src/ChecksumCheckIntegrityEntry.h
  8006. * src/DHTSetup.cc
  8007. * src/DHTSetup.h
  8008. * src/DownloadEngine.cc
  8009. * src/FileAllocationCommand.cc
  8010. * src/FileAllocationEntry.h
  8011. * src/RequestGroup.cc
  8012. * src/RequestGroup.h
  8013. * src/RequestGroupMan.cc
  8014. * src/RequestGroupMan.h
  8015. * src/StreamCheckIntegrityEntry.cc
  8016. * src/StreamCheckIntegrityEntry.h
  8017. * src/StreamFileAllocationEntry.cc
  8018. * src/StreamFileAllocationEntry.h
  8019. * src/TrackerWatcherCommand.cc
  8020. * src/a2functional.h
  8021. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8022. Changed method signature:
  8023. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8024. DHTBucket::getGoodNodes,
  8025. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8026. * src/BNode.cc
  8027. * src/BNode.h
  8028. * src/DHTAbstractNodeLookupTask.cc
  8029. * src/DHTAutoSaveCommand.cc
  8030. * src/DHTBucket.cc
  8031. * src/DHTBucket.h
  8032. * src/DHTBucketRefreshTask.cc
  8033. * src/DHTFindNodeMessage.cc
  8034. * src/DHTGetPeersMessage.cc
  8035. * src/DHTRoutingTable.cc
  8036. * src/DHTRoutingTable.h
  8037. * test/BNodeTest.cc
  8038. * test/DHTBucketTest.cc
  8039. * test/DHTRoutingTableTest.cc
  8040. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. In piece selection functions, Pass std::deque<...> by reference rather
  8042. than returning it.
  8043. * src/BitfieldMan.cc
  8044. * src/BitfieldMan.h
  8045. * src/DefaultBtRequestFactory.cc
  8046. * src/DefaultPieceStorage.cc
  8047. * src/Piece.cc
  8048. * src/Piece.h
  8049. * test/BitfieldManTest.cc
  8050. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. Implemented rarest piece first piece selection strategy.
  8052. * src/AbstractBtMessage.cc
  8053. * src/AbstractBtMessage.h
  8054. * src/BitfieldMan.cc
  8055. * src/BitfieldMan.h
  8056. * src/BtBitfieldMessage.cc
  8057. * src/BtHaveAllMessage.cc
  8058. * src/BtHaveMessage.cc
  8059. * src/DefaultPieceStorage.cc
  8060. * src/DefaultPieceStorage.h
  8061. * src/PeerInteractionCommand.cc
  8062. * src/PieceStorage.h
  8063. * src/UnknownLengthPieceStorage.h
  8064. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8065. Rewritten readData and writeData.
  8066. * src/MultiDiskAdaptor.cc
  8067. * src/MultiDiskAdaptor.h
  8068. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8069. Move \n out of the message "Usage: ...".
  8070. * src/version_usage.cc
  8071. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8072. Bump up version number to 0.13.2b.
  8073. * configure.ac
  8074. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. Added const qualifier to argument Exception& e.
  8076. * src/Logger.h
  8077. * src/SimpleLogger.cc
  8078. * src/SimpleLogger.h
  8079. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Pool connection when CWD, SIZE command fails.
  8081. * src/FtpNegotiationCommand.cc
  8082. * src/FtpNegotiationCommand.h
  8083. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8084. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8085. * src/HttpResponseCommand.cc
  8086. * src/HttpSkipResponseCommand.cc
  8087. * src/HttpSkipResponseCommand.h
  8088. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Pool connection when a server returns 4xx, 5xx responses.
  8090. * src/HttpNullDownloadCommand.cc
  8091. * src/HttpNullDownloadCommand.h
  8092. * src/HttpResponse.cc
  8093. * src/HttpResponse.h
  8094. * src/HttpResponseCommand.cc
  8095. * src/HttpResponseCommand.h
  8096. * test/HttpResponseTest.cc
  8097. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. Print usage when no URL is specifed or bad command-line option is
  8099. specified.
  8100. * src/HelpItemFactory.cc
  8101. * src/help_tags.h
  8102. * src/option_processing.cc
  8103. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Removed duplicate log message.
  8105. * src/AbstractCommand.cc (asyncResolveHostname)
  8106. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8107. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8108. Changed -j option's default value from 5 to 1.
  8109. Added new examples using protocol auto detection feature.
  8110. Removed -T, -M usage where it can be omitted.
  8111. * doc/aria2c.1.txt
  8112. * doc/aria2c.1.html
  8113. * doc/aria2c.1.txt
  8114. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Updated command-line usage text, so that it tells users that they
  8116. can specify any number of torrent files and metalink files in
  8117. command-line.
  8118. * src/version_usage.cc
  8119. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. Changed the default value of -j option to 1.
  8121. * src/HelpItemFactory.cc
  8122. * src/option_processing.cc
  8123. * src/usage_text.h
  8124. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. Added the ability to reuse connection in FTP and it is enabled by
  8126. default. It can be disabled by --ftp-reuse-connection=false option.
  8127. * src/Command.cc
  8128. * src/DownloadCommand.cc
  8129. * src/FtpDownloadCommand.cc
  8130. * src/FtpDownloadCommand.h
  8131. * src/FtpFinishDownloadCommand.cc
  8132. * src/FtpFinishDownloadCommand.h
  8133. * src/FtpInitiateConnectionCommand.cc
  8134. * src/FtpNegotiationCommand.cc
  8135. * src/FtpNegotiationCommand.h
  8136. * src/HelpItemFactory.cc
  8137. * src/Makefile.am
  8138. * src/Makefile.in
  8139. * src/OptionHandlerFactory.cc
  8140. * src/option_processing.cc
  8141. * src/prefs.h
  8142. * src/usage_text.h
  8143. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Call Command::transitStatus() before calling Command::execute(),
  8145. so that the status change made in execute() is not cleared.
  8146. * src/DownloadEngine.cc
  8147. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8148. Removed forward declaration of SocketCore class.
  8149. * src/HttpDownloadCommand.h
  8150. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8151. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8152. in InitiateConnectionCommandFactory. They should be set only when
  8153. the protocol is HTTP or HTTPS.
  8154. * src/InitiateConnectionCommandFactory.cc
  8155. * src/RequestGroup.cc
  8156. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8157. Fixed infinite loop in checksum checking.
  8158. * src/IteratableChecksumValidator.cc
  8159. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8160. Set _supportsPersistentConnection to true by default.
  8161. * src/Request.cc
  8162. * src/RequestGroup.cc
  8163. * test/HttpRequestTest.cc
  8164. * test/RequestTest.cc
  8165. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8166. Added timeout to socket pool. The default timeout is 15 seconds,
  8167. which is the same value Apache uses.
  8168. * src/DownloadEngine.cc
  8169. * src/DownloadEngine.h
  8170. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. Fixed misuse of multimap::find()
  8172. * src/HttpHeader.cc
  8173. * test/HttpHeaderTest.cc
  8174. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8175. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8176. option.
  8177. The asynchronous DNS is not capable of IPv6 yet.
  8178. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8179. least for HTTP download.
  8180. * src/AbstractCommand.cc
  8181. * src/AbstractCommand.h
  8182. * src/AsyncNameResolver.cc
  8183. * src/AsyncNameResolver.h
  8184. * src/DHTEntryPointNameResolveCommand.cc
  8185. * src/DHTEntryPointNameResolveCommand.h
  8186. * src/DownloadEngine.cc
  8187. * src/DownloadEngine.h
  8188. * src/FtpInitiateConnectionCommand.cc
  8189. * src/FtpInitiateConnectionCommand.h
  8190. * src/HelpItemFactory.cc
  8191. * src/HttpInitiateConnectionCommand.cc
  8192. * src/HttpInitiateConnectionCommand.h
  8193. * src/InitiateConnectionCommand.cc
  8194. * src/InitiateConnectionCommand.h
  8195. * src/Makefile.am
  8196. * src/Makefile.in
  8197. * src/NameResolver.cc
  8198. * src/NameResolver.h
  8199. * src/OptionHandlerFactory.cc
  8200. * src/SocketCore.cc
  8201. * src/SocketCore.h
  8202. * src/Util.cc
  8203. * src/Util.h
  8204. * src/option_processing.cc
  8205. * src/prefs.h
  8206. * src/usage_text.h
  8207. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. Updated man page: --quiet, --header were added.
  8209. --metalink-servers and --enable-http-keep-alive option were updated.
  8210. * doc/aria2c.1
  8211. * doc/aria2c.1.html
  8212. * doc/aria2c.1.txt
  8213. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8214. Enable HTTP keep-alive by default.
  8215. * src/HelpItemFactory.cc
  8216. * src/option_processing.cc
  8217. * src/usage_text.h
  8218. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8219. Disable http keep-alive if the remote server is not HTTP/1.1.
  8220. * src/HttpConnection.cc
  8221. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. Receive content body of 302 response so that the connection can be
  8223. reused later when http keep-alive is enabled.
  8224. * src/HttpNullDownloadCommand.cc
  8225. * src/HttpNullDownloadCommand.h
  8226. * src/HttpResponseCommand.cc
  8227. * src/HttpResponseCommand.h
  8228. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. const SharedHandle<Request> -> const SharedHandle<Request>&
  8230. * src/FtpDowndloadCommand.cc
  8231. * src/FtpDowndloadCommand.h
  8232. * src/HttpDownloadCommand.cc
  8233. * src/HttpDownloadCommand.h
  8234. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Fixed the bug that the control file(.aria2 file) is not renamed
  8236. according to tryAutoFileRenaming().
  8237. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8238. its control file exist, use them and continue download.
  8239. The old implementation didn't take into account of control file's
  8240. existence, so basically you couldn't continue download of renamed file.
  8241. * src/BtProgressInfoFile.h
  8242. * src/DefaultBtProgressInfoFile.cc
  8243. * src/DefaultBtProgressInfoFile.h
  8244. * src/NullProgressInfoFile.h
  8245. * src/RequestGroup.cc
  8246. * test/DefaultBtProgressInfoFileTest.cc
  8247. * test/MockBtProgressInfoFile.h
  8248. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8249. Change the default value of --metalink-servers option from `5' to `1'.
  8250. * src/HelpItemFactory.cc
  8251. * src/option_processing.cc
  8252. * src/usage_text.h
  8253. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8254. Reimplemented transparent metalink using Accept request header.
  8255. * src/HttpRequest.cc
  8256. * src/HttpRequest.h
  8257. * src/HttpRequestCommand.cc
  8258. * src/Metalink2RequestGroup.cc
  8259. * src/RequestGroup.cc
  8260. * src/RequestGroup.h
  8261. * test/HttpRequestTest.cc
  8262. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8263. Bump up version number to 0.13.2a
  8264. * configure.ac
  8265. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Updated configure.ac using the result of autoscan.
  8267. * configure.ac
  8268. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Fixed compilation error without gcrypt/openssl.
  8270. * src/DownloadCommand.cc
  8271. * src/DownloadCommand.h
  8272. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. Reorganized version information so that it can be displayed in a
  8274. standard terminal screen without scrolling.
  8275. Removed http, ftp from Configuration section, because they are always
  8276. enabled.
  8277. * src/FeatureConfig.cc
  8278. * src/FeatureConfig.h
  8279. * src/main.cc
  8280. * src/messageDigest.cc
  8281. * src/messageDigest.h
  8282. * src/version_usage.cc
  8283. * test/FeatureConfigTest.cc
  8284. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8285. Masked user ID in log.
  8286. * src/FtpConnection.cc (sendUser)
  8287. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8288. Removed query part from filename in HTTP download. The query part means
  8289. the substring after "?" in URL. Firefox seems do the same thing.
  8290. A query part is sometimes very long and not suitable to filename,
  8291. so I think it is better to remove it from filename.
  8292. * src/HttpRequest.cc
  8293. * src/HttpRequest.h
  8294. * src/Request.cc
  8295. * src/Request.h
  8296. * test/HttpRequestTest.cc
  8297. * test/RequestTest.cc
  8298. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. Rewritten Exception class. Throw exception object, not its pointer and
  8300. catch by reference, so that remove problematic delete operator for
  8301. catched exception.
  8302. * src/Exception.cc
  8303. * src/Exception.h
  8304. * test/ExceptionTest.cc
  8305. * src/*: All files throwing/catching exception.
  8306. * test/*: All files throwing/catching exception.
  8307. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. Now auto protocol detection is enabled without -Z option.
  8309. But there is a important difference between with/without -Z optoin.
  8310. For example, if you type:
  8311. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8312. then, aria2 interprets there are 3 request groups:
  8313. (1) http://host/file, http://mirror/file <-- multi-source download
  8314. (2) file1.torrent
  8315. (3) file2.metalink
  8316. On the other hand, if you invoke above command with -Z option, it is
  8317. interpreted as 4 request groups:
  8318. (1) http://host/file
  8319. (2) file1.torrent
  8320. (3) file2.metalink
  8321. (4) http://mirror/file
  8322. I think usually user don't mix multi-source URLs and torrent files, so
  8323. there is no big problem here.
  8324. * src/main.cc
  8325. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Fixed the bug that causes segmentaion fault when reading XML containing
  8327. unescapsed character like '&'.
  8328. Also a modification was made which avoids adding unnecessary
  8329. characters stack and appending unused string.
  8330. * src/ExpatMetalinkProcessor.cc
  8331. * src/FileMetalinkParserState.h
  8332. * src/FilesMetalinkParserState.h
  8333. * src/FinMetalinkParserState.h
  8334. * src/HashMetalinkParserState.h
  8335. * src/InitialMetalinkParserState.h
  8336. * src/LanguageMetalinkParserState.h
  8337. * src/MetalinkMetalinkParserState.h
  8338. * src/MetalinkParserState.h
  8339. * src/MetalinkParserStateMachine.cc
  8340. * src/MetalinkParserStateMachine.h
  8341. * src/OSMetalinkParserState.h
  8342. * src/PieceHashMetalinkParserState.h
  8343. * src/PiecesMetalinkParserState.h
  8344. * src/ResourcesMetalinkParserState.h
  8345. * src/SizeMetalinkParserState.h
  8346. * src/SkipTagMetalinkParserState.h
  8347. * src/URLMetalinkParserState.h
  8348. * src/VerificationMetalinkParserState.h
  8349. * src/VersionMetalinkParserState.h
  8350. * src/XML2SAXMetalinkProcessor.cc
  8351. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Added StringFormat class, which internally calls vasprintf.
  8353. operator<< is defined for this class, so it can be used with iostream
  8354. classes nicely. SimpleLogger and following functions are rewritten
  8355. using StringFormat class.
  8356. Besides, now Logger class's methods are non-const, many classes
  8357. that has a const Logger* as a member variable are modified to remove
  8358. const qualifier from the variable declaration.
  8359. * src/HelpItemFactory.cc
  8360. * src/Request.cc
  8361. * src/SimpleLogger.cc
  8362. * src/StringFormat.cc
  8363. * src/StringFormat.h
  8364. * src/Util.cc
  8365. * src/option_processing.cc
  8366. * src/version_usage.cc
  8367. * test/StringFormatTest.cc
  8368. * src/*.h: The classes that has const Logger* as a member variable.
  8369. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8370. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8371. failed. Also fixed memory link when exception is thrown there.
  8372. * src/main.cc (AccRequestGroup)
  8373. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. Added build-in "Accept-Features" support. For now only "metalink" is
  8375. used in this header field.
  8376. This "metalink" value is removed from the list when connecting URLs
  8377. fed by metalink file to avoid loop in "transparent" metlaink.
  8378. * src/HttpRequest.cc
  8379. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8380. header is also held in this variable. Also renamed setUserHeaders as
  8381. addHeader and it was rewritten to add header not just to clear the old
  8382. value.
  8383. * src/HttpRequestCommand.cc
  8384. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8385. from "Accept-Features" list.
  8386. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8387. default.
  8388. * src/RequestGroup.h
  8389. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8390. * src/a2functional.h: Included <string> because Concat class depends on
  8391. it.
  8392. * test/HttpRequestTest.cc
  8393. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8394. Added comment
  8395. * src/RequestGroup.cc (createNextCommand)
  8396. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8397. Capitalized METHOD_GET and METHOD_HEAD
  8398. * src/Request.cc
  8399. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8400. Added getDownloadResults() method
  8401. * src/RequestGroupMan.cc
  8402. * src/RequestGroupMan.h
  8403. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Fixed the bug that aria2 exits when commands is empty() but
  8405. _routineCommands are not.
  8406. * src/DownloadEngine.cc
  8407. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. Use the default value pulled from Option object in HelpItemFactory.
  8409. except options whose defualt value is embedded in a usage text.
  8410. * src/HelpItemFactory.cc
  8411. * src/HelpItemFactory.h
  8412. * src/option_processing.cc
  8413. * src/version_usage.cc
  8414. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Added --quiet option to make aria2 quiet (no console output).
  8416. --quiet option is tagged with ADVANCED.
  8417. * src/HelpItemFactory.cc
  8418. * src/LogFactory.cc
  8419. * src/LogFactory.h
  8420. * src/MultiUrlRequestInfo.cc
  8421. * src/MultiUrlRequestInfo.h
  8422. * src/NullStatCalc.h: New class. This class prints nothing.
  8423. * src/OptionHandlerFactory.cc
  8424. * src/main.cc
  8425. * src/option_processing.cc
  8426. * src/prefs.h
  8427. * src/usage_text.h
  8428. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8429. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8430. * src/HelpItemFactory.cc (createHelpItems):
  8431. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. Fixed compilation error in ExpatMetalinkProcessor.cc
  8433. * src/ExpatMetalinkProcessor.cc
  8434. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8435. Reuse socket if the origin server supports HTTP keep-alive and
  8436. --enable-http-keep-alive or --enable-http-pipelining is given.
  8437. The current implementation doesn't reuse the connections established
  8438. against proxy server.
  8439. * src/AbstractCommand.cc
  8440. * src/DownloadEngine.cc
  8441. * src/DownloadEngine.h
  8442. * src/HttpDownloadCommand.cc
  8443. * src/HttpInitiateConnectionCommand.cc
  8444. * src/HttpResponseCommand.cc
  8445. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8446. Rewritten HTTP keep-alive and pipelining routine.
  8447. * src/AbstractCommand.cc
  8448. * src/HttpConnection.cc
  8449. * src/HttpDownloadCommand.cc
  8450. * src/HttpRequest.cc
  8451. * src/HttpRequestCommand.cc
  8452. * src/HttpResponseCommand.cc
  8453. * src/Request.cc
  8454. * src/Request.h
  8455. * src/RequestGroup.cc
  8456. * test/HttpRequestTest.cc
  8457. * test/HttpResponseTest.cc
  8458. * test/RequestTest.cc
  8459. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. Added missing setUserHeaders call
  8461. * src/HttpRequestCommand.cc
  8462. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8464. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8465. waste of time because it is more likey false.
  8466. * src/FileAllocationDispatcherCommand.cc (execute)
  8467. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Now HTTP status and version are a member variable of HttpHeader.
  8469. HTTP status is processed as a string, not integer.
  8470. * src/AbstractProxyResponseCommand.cc
  8471. * src/HttpConnection.cc
  8472. * src/HttpHeader.cc
  8473. * src/HttpHeader.h
  8474. * src/HttpHeaderProcessor.cc
  8475. * src/HttpHeaderProcessor.h
  8476. * src/HttpResponse.cc
  8477. * src/HttpResponse.h
  8478. * test/HttpHeaderProcessorTest.cc
  8479. * test/HttpResponseTest.cc
  8480. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8481. Added --header option. You can specify any number of additional HTTP headers
  8482. like:
  8483. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8484. Unlike other commad-line option, you can use --header option multiple times.
  8485. * src/HelpItemFactory.cc
  8486. * src/HttpRequest.{cc, h}
  8487. * src/HttpRequestCommand.cc
  8488. * src/OptionHandlerFactory.cc
  8489. * src/OptionHandlerImpl.h
  8490. * src/option_processing.cc
  8491. * src/prefs.h
  8492. * src/usage_text.h
  8493. * test/HttpRequestTest.cc (testUserHeaders)
  8494. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Eliminates the time lag between sequential downloads and commands in
  8496. the same RequestGroup.
  8497. In old implementation, aria2 occasionally waits 1 seconds before
  8498. executing next command or RequestGroup.
  8499. This is really a waste of time, and new implementation eliminates
  8500. this unnecessary time lag.
  8501. * src/AbstractCommand.cc
  8502. * src/AutoSaveCommand.cc
  8503. * src/CheckIntegrityCommand.cc
  8504. * src/Command.{cc, h}
  8505. * src/DownloadEngine.{cc, h}
  8506. * src/DownloadEngineFactory.cc
  8507. * src/FileAllocationCommand.cc
  8508. * src/FileAllocationDispatcherCommand.cc
  8509. * src/FillRequestGroupCommand.cc
  8510. * src/FtpInitiateConnectionCommand.cc
  8511. * src/HaveEraseCommand.cc
  8512. * src/HttpInitiateConnectionCommand.cc
  8513. * src/HttpResponseCommand.cc
  8514. * src/RealtimeCommand.cc
  8515. * src/RequestGroup.cc
  8516. * src/RequestGroupMan.cc
  8517. * src/StreamFileAllocationEntry.cc
  8518. * src/TimeBasedCommand.{cc, h}
  8519. * src/TimedHaltCommand.cc
  8520. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8521. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8522. keyword explicit and SharedHandle's default constructor initializes
  8523. its internal obj to null, old implementation initializes it using
  8524. obj's default constructor.
  8525. To assign null, write SharedHandle<T> x(...); x.reset();
  8526. TODO: test/SharedHandleTest.cc needs more tests.
  8527. * src/SharedHandle.h
  8528. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8529. Fixed type in man page.
  8530. * doc/aria2c.1.txt
  8531. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8532. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8533. * src/SimpleLogger.{cc, h}
  8534. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8535. Implemented auto protocol detection.
  8536. Now you can do:
  8537. aria2c -Z http://host/file file1.torrent file2.metalink
  8538. (Note: -Z option is required for auto protcol detection.)
  8539. Then aria2c downloads 3 files simultaneously:
  8540. 1. http://host/file
  8541. 2. file1.torrent <-- read local torrent file
  8542. 3. file2.metalink <-- read local Metalink file.
  8543. Same thing goes with -i option. Assume your uris.txt contans:
  8544. http://host/file
  8545. file1.torrent
  8546. file2.metalink
  8547. Then you can do: aria2c -i uris.txt
  8548. (Note: -Z option is not needed if -i option is given.)
  8549. * src/main.cc
  8550. * src/ProtocolDetector.{cc, h}
  8551. * test/ProtocolDetectorTest.cc
  8552. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8554. installed
  8555. * src/ARC4Encryptor.h
  8556. * src/ARC4Decryptor.h
  8557. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. Renamed argument from 'errno' to 'err', since errno is confused with
  8559. errno defined in errno.h.
  8560. * src/LibgcryptARC4Decryptor.h
  8561. * src/LibgcryptARC4Context.h
  8562. * src/LibgcryptDHKeyExchange.h
  8563. * src/LibgcryptARC4Encryptor.h
  8564. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8565. Rewritten choking algorithm.
  8566. * src/PeerChokeCommand.{cc, h}
  8567. * src/BtInterestedMessage.cc
  8568. * src/PeerSessionResource.{cc, h}
  8569. * src/DefaultPeerStorage.{cc, h}
  8570. * src/BtNotInterestedMessage.cc
  8571. * src/DefaultBtMessageDispatcher.{cc, h}
  8572. * src/BtMessageDispatcher.h
  8573. * src/Peer.{cc, h}
  8574. * src/BtLeecherStateChoke.{cc, h}
  8575. * src/BtSetup.cc
  8576. * src/BtSeederStateChoke.{cc, h}
  8577. * src/PeerStorage.h
  8578. * test/MockPeerStorage.h
  8579. * test/MockBtMessageDispatcher.h
  8580. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. Fixed compilation error on x84-64 platform.
  8582. * src/AuthConfig.cc: Included ostream.
  8583. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Rewritten getBasename() and getDirname(), without standard library
  8585. basename(), dirname().
  8586. * src/File.cc
  8587. * test/FileTest.cc
  8588. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8589. Added Simplified Chinese translation. Also updated the following
  8590. translations: Polish, Dutch, German. Great thanks to all translators.
  8591. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8592. Suppress content-range error when 'Content-Range' response header
  8593. doesn't contains bytes-unit specifier 'bytes'
  8594. * src/HttpHeader.cc (getRange)
  8595. * test/HttpHeaderTest.cc
  8596. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8597. Fixed compilation error with g++-4.3
  8598. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. Added missing include files for MinGW
  8600. * test/HttpHeaderProcessorTest.cc
  8601. * test/DHTRoutingTableSerializerTest.cc
  8602. * test/DHTRoutingTableDeserializerTest.cc
  8603. * test/UriListParserTest.cc
  8604. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Now download line is printed nicely with no garbage at the end of
  8606. line. I use ioctl to get the columns of terminal.
  8607. If stdout is redirected to another device, instead of carriage return,
  8608. end of line '\n' character is used. This is feature request#1909659
  8609. * src/ConsoleStatCalc.cc (calculateStat)
  8610. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Included a2time.h
  8612. * src/DHTMessageDispatcher.h
  8613. * src/DHTMessageEntry.h
  8614. * src/DHTReplaceNodeTask.h
  8615. * src/DHTMessageTracker.h
  8616. * src/Util.h
  8617. * src/CookieBox.h
  8618. * src/SocketCore.h
  8619. * src/DefaultBtMessageDispatcher.h
  8620. * src/SocketCore.cc
  8621. * src/Util.cc
  8622. * src/DHTPingTask.h
  8623. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8624. Fixed high memory footprint when DHT is enabled.
  8625. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8626. queued than it is processed and the queue is getting longer. As a
  8627. consequence, momory usage is increased.
  8628. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8629. replacement cache in DHTBucket which is described in Kademlia paper.
  8630. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8631. DHTReplaceNodeTask.
  8632. * src/DHTBucket.{h, cc}
  8633. (cacheNode): New function.
  8634. (getCachedNodes): New function.
  8635. (dropNode): Push back cached node to _nodes.
  8636. * test/DHTBucketTest.cc
  8637. (testCacheNode): New test
  8638. (testDropNode): New test
  8639. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8641. the unused 4KB memory when ssl is not used.
  8642. * src/SocketCore.cc
  8643. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8644. Added summary log for peer announce storage.
  8645. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8646. Removed cast
  8647. * src/DefaultPeerStorage.cc (addPeer)
  8648. Log exception message
  8649. * src/DHTMessageTracker.cc (handleTimeout)
  8650. Fixed casting
  8651. * test/HttpRequestTest.cc
  8652. * test/MetalinkProcessorTest.cc
  8653. * test/PieceTest.cc
  8654. * test/MetalinkEntryTest.cc
  8655. * test/SequenceTest.cc
  8656. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. * src/ParameterizedStringParser.cc (createLoop):
  8658. Removed unused variable sstep.
  8659. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8660. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. * src/Util.{h, cc}
  8662. (parseUInt): New function.
  8663. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8664. The actual range is uint32_t.
  8665. * test/UtilTest.cc
  8666. * src/ParameterizedStringParser.cc:
  8667. Use Util::parseUInt() for loop variables.
  8668. * test/ParameterizedStringParserTest.cc
  8669. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8670. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8671. Rewritten the functions for binding port.
  8672. * src/DHTConnectionImpl.{h, cc}
  8673. * src/PeerListenCommand.{h, cc}
  8674. * src/DHTSetup.cc
  8675. * src/BtSetup.cc
  8676. * test/DHTConnectionImplTest.cc
  8677. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. type cleanup for allmost all remaining files.
  8679. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. Type clarification
  8681. * src/PeerSessionResource.{h, cc}
  8682. * src/DefaultPieceStorage.{h, cc}
  8683. * src/Peer.{h, cc}
  8684. * test/PeerSessionResourceTest.cc
  8685. Use div function
  8686. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8687. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Type clarification
  8689. * src/DefaultPeerStorage.{h, cc}
  8690. * test/DefaultPeerStorageTest.cc
  8691. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8692. Type clarification: size_t for length or size, uint64_t for file
  8693. length, off_t for file offset.
  8694. * src/DefaultBtProgressInfoFile.cc
  8695. * src/DefaultBtContext.{h, cc}
  8696. * src/DefaultBtInteractive.cc
  8697. * src/DownloadCommand.{h, cc}
  8698. * src/IteratableChunkChecksumValidator.{h, cc}
  8699. * src/SegmentMan.{h, cc}
  8700. * src/SingleFileDownloadContext.{h, cc}
  8701. * src/IteratableChecksumValidator.{h, cc}
  8702. * src/BtContext.h
  8703. * src/IteratableValidator.h
  8704. * src/DownloadContext.h
  8705. * test/SingleFileDownloadContextTest.cc
  8706. * test/DefaultBtContextTest.cc
  8707. * test/MockBtContext.h
  8708. * test/Metalink2RequestGroupTest.cc
  8709. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8710. Type clarification: size_t for length or size, uint64_t for file
  8711. length, off_t for file offset.
  8712. * src/PiecedSegment.cc
  8713. * src/GrowSegment.h
  8714. * src/DefaultBtRequestFactory.h
  8715. * src/DefaultBtProgressInfoFile.cc
  8716. * src/UnknownLengthPieceStorage.h
  8717. * src/DefaultPieceStorage.cc
  8718. * src/UnknownLengthPieceStorage.cc
  8719. * src/DefaultBtInteractive.cc
  8720. * src/GrowSegment.cc
  8721. * src/BitfieldMan.h
  8722. * src/DownloadCommand.cc
  8723. * src/BtRequestFactory.h
  8724. * src/PiecedSegment.h
  8725. * src/DefaultPieceStorage.h
  8726. * src/Piece.cc
  8727. * src/DefaultBtRequestFactory.cc
  8728. * src/PieceStorage.h
  8729. * src/Segment.h
  8730. * src/Piece.h
  8731. * src/BitfieldMan.cc
  8732. * src/Util.cc
  8733. * test/DefaultBtProgressInfoFileTest.cc
  8734. * test/DefaultPieceStorageTest.cc
  8735. * test/MockPieceStorage.h
  8736. * test/BtRequestMessageTest.cc
  8737. * test/DefaultBtMessageDispatcherTest.cc
  8738. * test/BitfieldManTest.cc
  8739. * test/GrowSegmentTest.cc
  8740. * test/PieceTest.cc
  8741. * test/SegmentTest.cc
  8742. * test/SegmentManTest.cc
  8743. * test/DefaultBtRequestFactoryTest.cc
  8744. * test/MockBtRequestFactory.h
  8745. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8746. Fixed compilation error with --disable-nls
  8747. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8748. in gettext.h causes the problem.
  8749. * src/common.h
  8750. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8751. Removed subPiece related functions.
  8752. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8753. * src/DefaultPieceStorage.{h, cc}
  8754. * test/PieceTest.cc
  8755. * test/DefaultPieceStorageTest.cc
  8756. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Use unsigned char for data store.
  8758. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8759. Bump up version number to 0.13.0+1
  8760. * configure.ac
  8761. * Release 0.13.0+1
  8762. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8763. Changed inactive connection timeout to 120.
  8764. To accept more mulually interested peers, disconnect peer when there
  8765. is no interest between us after certain time passed.
  8766. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8767. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8769. when compiled with async DNS support.
  8770. * src/DownloadEngine.cc
  8771. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8772. value '10' will be a little bit short when some DNS servers are
  8773. offline and several DNS servers are tried. It should be configured
  8774. by command-line option.
  8775. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Merged Ross's mingw patch.
  8777. * src/DHTRoutingTableDeserializer.cc
  8778. * src/DHTRoutingTableSerializer.cc
  8779. * src/Platform.{h, cc}
  8780. * src/timegm.h
  8781. * src/gettimeofday.h
  8782. * src/getaddrinfo.h
  8783. * src/SocketCore.h
  8784. * src/common.h
  8785. * src/inet_aton.h
  8786. * src/DownloadEngine.h
  8787. * src/gai_strerror.h
  8788. * src/a2netcompat.h
  8789. * configure.ac
  8790. * configure
  8791. * aclocal.m4
  8792. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Included missing iostream.
  8794. * test/AllTest.cc
  8795. * test/BtDependencyTest.cc
  8796. * test/BtExtendedMessageTest.cc
  8797. * test/DHTConnectionImplTest.cc
  8798. * test/DHTMessageFactoryImplTest.cc
  8799. * test/DHTMessageTrackerEntryTest.cc
  8800. * test/DHTNodeTest.cc
  8801. * test/DHTRoutingTableSerializerTest.cc
  8802. * test/DefaultBtAnnounceTest.cc
  8803. * test/DefaultBtContextTest.cc
  8804. * test/DefaultBtMessageFactoryTest.cc
  8805. * test/DefaultExtensionMessageFactoryTest.cc
  8806. * test/HandshakeExtensionMessageTest.cc
  8807. * test/HttpResponseTest.cc
  8808. * test/MetalinkProcessorTest.cc
  8809. * test/MultiFileAllocationIteratorTest.cc
  8810. * test/SocketCoreTest.cc
  8811. * test/UTPexExtensionMessageTest.cc
  8812. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Reorganized includes.
  8814. * src/NameResolver.cc
  8815. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8816. Fixed compilation error without ares/c-ares
  8817. * src/NameResolver.h:
  8818. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8819. Added a test for large file.
  8820. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8821. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8822. Fixed the bug that file size is ignored if size > INT32_MAX
  8823. * src/SizeMetalinkParserState.cc (endElement):
  8824. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8825. Bump up version number to 0.13.0
  8826. * configure.ac
  8827. * Release 0.13.0
  8828. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8829. Updated Makfefile.am to make 'make dist' work.
  8830. Now packaged filename is aria2c-VERSION.tar.bz2.
  8831. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8832. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8833. Large file support is now configured by configure script.
  8834. * configure.ac
  8835. Removed unsused source files
  8836. * src/
  8837. * test/
  8838. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8839. Peer.h and BtContext.h respectively.
  8840. * src/Peer.h
  8841. * src/BtContext.h
  8842. Updated translations.
  8843. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8844. translations. Great thanks to all translators!;)
  8845. * po/*.{po, gmo}
  8846. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8847. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8848. statically declared sha1 MessageDigestContext.
  8849. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8850. initialization of short-lived MessageDigestContext.
  8851. * src/MessageDigestHelper.{h, cc}
  8852. * src/main.cc
  8853. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8854. the initialization of MessageDigestContext every time in validating
  8855. chunk checksum.
  8856. * src/DownloadCommand.{h, cc}
  8857. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Add a file descriptor which connected to fast peer(latency<1500) to
  8859. select(). This change reduced CPU load.
  8860. * src/PeerInteractionCommand.cc
  8861. * src/DefaultBtInteractive.{h, cc}
  8862. * src/BtInteractive.h
  8863. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. Fixed the previous insufficient fix for possible busy loop.
  8865. * src/MSEHandshake.cc (identifyHandshakeType)
  8866. Removed unused functions.
  8867. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8868. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8869. Fixed possible busy loop if first 20 bytes are not received for a few
  8870. minutes.
  8871. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8872. * src/ReceiverMSEHandshakeCommand.cc
  8873. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Fixed compilation error
  8875. * src/ExpatMetalinkProcessor.cc
  8876. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8877. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8878. * src/DHTBucket.cc
  8879. Removed unnecessary cast.
  8880. * src/HandshakeExtensionMessage.cc
  8881. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8883. is missing.
  8884. * src/OptionHandlerFactory.cc
  8885. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8886. Fixed the bug that HAVE message is not sent for a piece they are
  8887. downloaded fom http/ftp server before any BitTorrent handshake is done
  8888. with peers.
  8889. * src/DefaultBtInteractive.cc
  8890. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8891. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8892. * src/Makefile.am
  8893. * src/Makefile.in
  8894. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8895. Updated README. Added html version of README and man page.
  8896. * README
  8897. * README.html
  8898. * readme2html: Shell script to generate README.html from README using
  8899. asciidoc.
  8900. * doc/aria2c.1.html
  8901. * doc/makeman: Added the line to generate aria2c.1.html
  8902. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8903. Fixed offset calculation.
  8904. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8905. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8906. Rewritten itos and uitos using template. llitos and ullitos are
  8907. replaced with itos and uitos respectively.
  8908. * src/Util.{h, cc}
  8909. * test/UtilTest.cc
  8910. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8911. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8912. of the number of bytes required for storing public key and shared
  8913. secret.
  8914. * src/LibgcryptDHKeyExchange.h
  8915. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8916. * src/MSEHandshake.cc
  8917. * test/DHKeyExchangeTest.cc
  8918. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. Removed since they are not used.
  8920. * src/Xml2MetalinkProcessor.{h, cc}
  8921. * src/Socket.cc
  8922. * src/SegmentSplitter.{h, cc}
  8923. * test/Xml2MetalinkProcessorTest.cc
  8924. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. Fixed the bug that prevents aria2 from stopping other than by pressing
  8926. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8927. option. aria2 doesn't stop even after --seed-time is satisfied and
  8928. continues to output blank lines in the console.
  8929. * src/ReceiverMSEHandshakeCommand.cc
  8930. * src/PeerReceiveHandshakeCommand.cc
  8931. * src/PeerListenCommand.cc
  8932. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Bump up version number to 0.13.0rc
  8934. * configure.ac
  8935. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. Updated man page and some usage text.
  8937. * doc/aria2c.1.txt
  8938. * src/usage_text.h
  8939. * po/*.{po, gmo}
  8940. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8941. Updated translations. Added Finnish and Hebrew translations.
  8942. Great thanks to all translators!
  8943. * po/*.{po, gmo}
  8944. * po/LINGUAS
  8945. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Log more detailed information about each message.
  8947. * src/DHTQueryMessage.{h, cc}
  8948. * src/DHTGetPeersMessage.{h, cc}
  8949. * src/DHTFindNodeReplyMessage.{h, cc}
  8950. * src/DHTGetPeersReplyMessage.{h, cc}
  8951. * src/DHTAnnouncePeerMessage.{h, cc}
  8952. * src/DHTResponseMessage.{h, cc}
  8953. * src/DHTFindNodeMessage.{h, cc}
  8954. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8955. Use constants defined in prefs.h
  8956. * src/option_processing.cc
  8957. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8959. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8960. Make room for future enchancements for IPv6 addresses.
  8961. Bump up version number of dht.dat file format to 2.
  8962. Not compatible with previous version.
  8963. * src/DHTRoutingTableSerializer.cc
  8964. * src/DHTRoutingTableDeserializer.cc
  8965. * test/DHTRoutingTableSerializerTest.cc
  8966. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8967. Added handling for the return values from
  8968. PeerMessageUtil::createcompact().
  8969. * src/DefaultBtContext.cc (computeFastSet):
  8970. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8971. Fixed abort when peer's ip address is IPv4-mapped address.
  8972. * src/DefaultBtContext.cc (computeFastSet)
  8973. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8974. cannot handle IPv4-mapped addresses.
  8975. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8976. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. Proper return value handling for OpenSSL functions.
  8978. * src/LibsslDHKeyExchange.h
  8979. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Random bytes generation using libgcrypt and OpenSSL.
  8981. * src/DHTUtil.{h, cc}
  8982. * test/DHTUtilTest.cc
  8983. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8984. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8985. received.
  8986. * src/DHTMessageReceiver.cc (receiveMessage)
  8987. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8988. Fixed the bug that a return code is always 0. BUG#1897704
  8989. If error occurred during the download or there exist unfinished
  8990. downloads, aria2 returns with code 1.
  8991. * src/RequestGroupMan.{h, cc}
  8992. * src/MultiUrlRequestInfo.{h, cc}
  8993. * src/main.cc
  8994. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8995. IPv6 support for SocketCore class.
  8996. TODO: In SocketCore::establishConnection(), this is insufficient to
  8997. determin the failure of connect() here because the socket is
  8998. non-blocking state. The next addresses should be tried after select().
  8999. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9000. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9001. instead which address family independent.
  9002. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9003. information in a compact peer format which is for IPv4 only.
  9004. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9005. this is a spec of BitTorrent protocol.
  9006. * src/SocketCore.{h, cc}
  9007. * src/PeerMessageUtil.cc
  9008. * test/SocketCoreTest.cc
  9009. * test/PeerMessageUtilTest.cc
  9010. * test/DHTConnectionImplTest.cc
  9011. Handle IPv4-mapped addresses.
  9012. * src/DHTNode.cc: Now identity is determined by node id.
  9013. * src/DHTMessageTrackerEntry.cc
  9014. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9015. should handle it.
  9016. * src/DHTRoutingTableDeserializer.cc
  9017. * src/DHTMessageFactoryImpl.cc
  9018. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9019. Change the unit of --stop option from a minute to a second.
  9020. * src/usage_text.h
  9021. * src/DownloadEngineFactory.cc
  9022. * src/OptionHandlerFactory.cc
  9023. * src/message.h
  9024. * src/TimedHaltCommand.cc
  9025. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9026. Make listening socket non-block mode.
  9027. * src/FtpConnection.cc
  9028. * src/FtpNegotiationCommand.{h, cc}
  9029. * src/PeerListenCommand.cc
  9030. Fixed the bug that cause slow ftp negotiation.
  9031. * src/FtpNegotiationCommand.{h, cc}
  9032. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. Added basic tag to --enable-dht, --dht-listen-port option.
  9034. * src/HelpItemFactory.cc (createHelpItems)
  9035. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9036. Updated text.
  9037. * src/usage_text.h
  9038. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9039. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9040. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. Determin _threadtholdSpeed in each constructor for
  9042. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9043. * src/ActivePeerConnectionCommand.{h, cc}
  9044. * src/PeerReceiveHandshakeCommand.{h, cc}
  9045. * src/BtSetup.cc
  9046. * src/BtConstants.h
  9047. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9048. Added --bt-min-crypto-level and --bt-require-crypto options.
  9049. * src/OptionHandlerFactory.cc
  9050. * src/MSEHandshake.cc
  9051. * src/HelpItemFactory.cc
  9052. * src/option_processing.cc
  9053. * src/ReceiverMSEHandshakeCommand.cc
  9054. * src/prefs.h
  9055. * src/DefaultBtAnnounce.cc
  9056. * src/InitiatorMSEHandshakeCommand.cc
  9057. * src/usage_text.h
  9058. * test/MSEHandshakeTest.cc
  9059. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9060. Bump version number to 0.13.0b
  9061. * configure.ac
  9062. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. Updated doc.
  9064. * src/MessageDigestHelper.h:
  9065. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9066. Use raw message digest as a token instead of its hexadecimal
  9067. representation.
  9068. * src/DHTTokenTracker.cc (generateToken)
  9069. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. Added Message Stream Encryption(MSE) support.
  9071. Currently, aria2 accepts incoming connections with Obfuscation Header
  9072. and legacy BitTorrent Header and establishes connections with
  9073. Obfuscation Header first and if failed then retry with legacy
  9074. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9075. choose ARC4. The new option to change the default behavior is planned.
  9076. For tracker extension, "supportcrypto=1" is added statically.
  9077. * src/PeerInitiateConnectionCommand.{h, cc}
  9078. * src/PeerConnection.{h, cc}
  9079. * src/HandleRegistry.h
  9080. * src/SocketCore.h
  9081. * src/PeerReceiveHandshakeCommand.{h, cc}
  9082. * src/BtRegistry.{h, cc}
  9083. * src/PeerListenCommand.cc
  9084. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9085. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9086. * src/MSEHandshake.{h, cc}
  9087. * src/ARC4Encryptor.h
  9088. * src/ARC4Decryptor.h
  9089. * src/LibgcryptARC4Encryptor.h
  9090. * src/LibgcryptARC4Decryptor.h
  9091. * src/LibgcryptARC4Context.h
  9092. * src/LibsslARC4Encryptor.h
  9093. * src/LibsslARC4Decryptor.h
  9094. * src/LibsslARC4Context.h
  9095. * src/DHKeyExchange.h
  9096. * src/LibgcryptDHKeyExchange.h
  9097. * src/LibsslDHKeyExchange.h
  9098. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9099. * test/DefaultBtAnnounceTest.cc
  9100. * test/ARC4Test.cc
  9101. * test/DHKeyExchangeTest.cc
  9102. Removed prepareForRetry() because it is not used.
  9103. * src/PeerAbstractCommand.{h, cc}
  9104. * src/PeerInteractionCommand.{h, cc}
  9105. * src/PeerInitiateConnectionCommand.{h, cc}
  9106. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9107. Added the ability to load nodes from torrent file. These nodes are
  9108. added to the routing table when downloading that torrent.
  9109. * src/BtContext.h
  9110. * src/DefaultBtContext.{h, cc}
  9111. * src/DHTSetup.cc
  9112. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9113. hostname and port pair, and resolves all of them.
  9114. * src/NameResolver.{h, cc}: Added reset().
  9115. * src/RequestGroup.cc
  9116. * test/DefaultBtContextTest.cc
  9117. * test/MockBtContext.h
  9118. Removed assert() from DefaultBtContext and throw exception instead.
  9119. * src/DefaultBtContext.cc
  9120. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. Fixed segmentation fault bug when exiting if dht is disabled.
  9122. * src/RequestGroup.cc
  9123. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9124. Fixed typo in log message and define the message in message.h
  9125. * src/TimedHaltCommand.cc
  9126. * src/message.h
  9127. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9128. Included RecoverableException.h to fix compilation error.
  9129. * test/DHTMessageFactoryImplTest.cc
  9130. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9132. * test/DHTPingMessageTest.cc
  9133. * test/DHTGetPeersMessageTest.cc
  9134. * test/DHTFindNodeMessageTest.cc
  9135. * test/DHTAnnouncePeerMessageTest.cc
  9136. * test/MockDHTMessage.h
  9137. * test/MockDHTMessageFactory.h
  9138. * test/MockDHTMessageDispatcher.h: New class.
  9139. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9141. virtual.
  9142. * src/DHTMessageDispatcher.h
  9143. * src/DHTMessageDispatcherImpl.{h, cc}
  9144. * src/DHTSetup.cc
  9145. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Adding handling of DHT error message. Just log error message and
  9147. throw exception.
  9148. * src/DHTMessageFactoryImpl.cc
  9149. * test/DHTMessageFactoryImplTest.cc
  9150. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Added handling of dynamic cast failure.
  9152. * src/DHTNodeLookupTask.cc
  9153. * src/DHTPeerLookupTask.cc
  9154. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9155. Added the ability to stop aria2 itself when given time has passed
  9156. from start. Use --stop option to specify time in minutes.
  9157. When 0 is given, this feature is disabled.
  9158. * src/OptionHandlerFactory.cc
  9159. * src/TimeBasedCommand.h: Make _interval protected scope.
  9160. * src/HelpItemFactory.cc
  9161. * src/option_processing.cc
  9162. * src/prefs.h
  9163. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9164. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9165. Without this modification, the result list shows "ERR" when aria2 is
  9166. stopped by --stop option. It should be "INPR".
  9167. * src/DownloadEngine.{h, cc}
  9168. * src/DownloadEngineFactory.cc
  9169. * src/usage_text.h
  9170. * src/TimedHaltCommand.{h, cc}: New class.
  9171. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9172. Bootstrap through node added by port message.
  9173. Currently bootstrap is executed if the number of buckets in routing
  9174. table is 1.
  9175. * src/BtPortMessage.{h, cc}
  9176. * src/DefaultBtMessageFactory.{h, cc}
  9177. * src/PeerInteractionCommand.cc
  9178. * test/BtPortMessageTest.cc
  9179. * test/MockDHTTask.h
  9180. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9181. Extract the Peer class's member variables, which are only needed after
  9182. PeerInteractionCommand, into PeerSessionResource class.
  9183. This class is instantiated in PeerInteractionCommand class's ctor and
  9184. released in its dtor.
  9185. This will make Peer class lightweight and uses less memory for peers
  9186. which are not connected and wait in the queue.
  9187. * src/PeerChokeCommand.cc
  9188. * src/PeerSessionResource.{h, cc}
  9189. * src/PeerInteractionCommand.cc
  9190. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9191. * src/DefaultBtInteractive.cc
  9192. * src/BtPieceMessage.cc
  9193. * src/BtInterestedMessage.cc
  9194. * src/BtUnchokeMessage.cc
  9195. * src/DefaultPeerStorage.{h, cc}
  9196. * src/PeerInitiateConnectionCommand.cc
  9197. * src/ActivePeerConnectionCommand.cc
  9198. * src/BtNotInterestedMessage.cc
  9199. * src/DefaultBtMessageDispatcher.cc
  9200. * src/BtChokeMessage.cc
  9201. * src/BtRequestMessage.cc
  9202. * src/Peer.{h, cc}
  9203. * src/BtRegistry.h
  9204. * src/TrackerWatcherCommand.cc
  9205. * src/PeerReceiveHandshakeCommand.cc
  9206. * test/BtExtendedMessageTest.cc
  9207. * test/BtAllowedFastMessageTest.cc
  9208. * test/BtCancelMessageTest.cc
  9209. * test/DefaultPieceStorageTest.cc
  9210. * test/BtBitfieldMessageTest.cc
  9211. * test/BtHaveMessageTest.cc
  9212. * test/BtNotInterestedMessageTest.cc
  9213. * test/BtRequestMessageTest.cc
  9214. * test/PeerSessionResourceTest.cc
  9215. * test/DefaultBtMessageDispatcherTest.cc
  9216. * test/PeerTest.cc
  9217. * test/BtInterestedMessageTest.cc
  9218. * test/BtRejectMessageTest.cc
  9219. * test/BtChokeMessageTest.cc
  9220. * test/DefaultPeerStorageTest.cc
  9221. * test/BtHaveNoneMessageTest.cc
  9222. * test/BtHaveAllMessageTest.cc
  9223. * test/DefaultExtensionMessageFactoryTest.cc
  9224. * test/BtUnchokeMessageTest.cc
  9225. * test/DefaultBtMessageFactoryTest.cc
  9226. * test/HandshakeExtensionMessageTest.cc
  9227. * test/UTPexExtensionMessageTest.cc
  9228. * test/DefaultBtRequestFactoryTest.cc
  9229. * test/BtPieceMessageTest.cc
  9230. Removed typedef PeerStats.
  9231. * src/PeerStat.h
  9232. * src/SegmentMan.cc
  9233. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9234. Added std namespace to copy, remove_copy, back_inserter,
  9235. front_inserter.
  9236. * src/RequestGroupMan.cc
  9237. * src/DefaultPieceStorage.cc
  9238. * src/StreamFileAllocationEntry.cc
  9239. * src/BtFileAllocationEntry.cc
  9240. * src/RequestGroup.cc
  9241. * src/MetalinkEntry.cc
  9242. * src/DelegatingPeerListProcessor.cc
  9243. * src/DefaultBtRequestFactory.cc
  9244. * src/DefaultBtMessageDispatcher.cc
  9245. * src/version_usage.cc: Included <algorithm>
  9246. * src/main.cc
  9247. * src/MetalinkParserController.cc
  9248. * src/DefaultBtContext.cc
  9249. * src/DownloadEngineFactory.cc
  9250. * src/a2algo.h
  9251. Removed.
  9252. * test/StreamUriListParserTest.cc
  9253. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9255. ActivePeerConnectionCommand when it is given and
  9256. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9257. * src/ActivePeerConnectionCommand.{h, cc}
  9258. * src/BtSetup.cc
  9259. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9260. Only add socket to DownloadEngine's select routine when peer or
  9261. localhost is unchoked and interested. This lowers CPU usage a
  9262. little bit.
  9263. * src/PeerInteractionCommand.cc
  9264. * src/PeerAbstractCommand.{h, cc}
  9265. * src/BtInteractive.h
  9266. * src/DefaultBtInteractive.{h, cc}
  9267. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. Revert previous change because get_peers message is needed for
  9269. announce_peer anyway.
  9270. * src/DHTGetPeersCommand.cc
  9271. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Request peers thought DHT only when download hasn't finished.
  9273. * src/DHTGetPeersCommand.cc
  9274. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9275. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9276. * src/DHTBucketRefreshTask.{h, cc}
  9277. * src/DHTSetup.cc
  9278. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9279. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9280. standard classes.
  9281. Included string.h where mem* function are used.
  9282. Added namespace aria2.
  9283. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Create directory before saving DHT routing table.
  9285. Now ios::failure is now handled properly.
  9286. * src/DHTAutoSaveCommand.cc
  9287. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. Removed unnecessary cerr.
  9289. * src/DownloadEngine.cc
  9290. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9291. Catch exception inside DHTMessageReceiver::receiveMessage().
  9292. Log unknown message.
  9293. * src/DHTMessageReceiver.{h, cc}
  9294. * src/DHTMessageFactory.h
  9295. * src/DHTMessageFactoryImpl.{h, cc}
  9296. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9297. * src/DHTInteractionCommand.cc
  9298. * src/DHTUnknownMessage.{h, cc}
  9299. * test/DHTUnknownMessageTest.cc
  9300. * test/MockDHTMessageFactory.h
  9301. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9302. Commented out ip address comparison because a host can have multiple
  9303. ip addresses and it is hard to predict the hostname is resolved into
  9304. which one.
  9305. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9306. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9307. * po/Makefile.in: Removed since this is generated by configure.
  9308. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Fixed compiler warning about redefinition of SIZE_MAX.
  9310. Use common.h instead of config.h directly here.
  9311. * src/Platform.{h, cc}
  9312. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9313. here.
  9314. * common.h
  9315. 2008-02-02 gettextize <[email protected]>
  9316. Updated gettext related files.
  9317. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9318. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9319. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9320. Added DHT functionality, compatible with mainline.
  9321. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9322. You may need to specify entry point to DHT network using
  9323. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9324. Use --dht-listen-port to specify port number. Make sure that your
  9325. firewall configuration can pass through UDP traffic to the port.
  9326. The routing table is saved in $HOME/.aria2/dht.dat.
  9327. * src/DHT*
  9328. * src/BNode.{h, cc}
  9329. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9330. particular torrent.
  9331. * src/Data.cc: Rewritten ctor.
  9332. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9333. --dht-entry-point.
  9334. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9335. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9336. ends, remove BtContext from DHTPeerAnnounceStorage.
  9337. * src/BtPortMessage.{h, cc}: Rewritten.
  9338. * src/message.h
  9339. * src/OptionHandlerImpl.cc
  9340. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9341. --dht-entry-point.
  9342. * src/Dictionary.{h, cc} (remove): New function.
  9343. * src/prefs.h
  9344. * src/DefaultBtMessageFactory.h
  9345. * src/BtHandshakeMessage.cc
  9346. * src/ActivePeerConnectionCommand.cc
  9347. * src/SocketCore.{h, cc}: Added datagram socket support.
  9348. * src/DefaultBtMessageFactory.cc
  9349. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9350. Create DHT commands.
  9351. * src/BtMessageFactory.h
  9352. * src/PeerMessageUtil.{h, cc}
  9353. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9354. Fixed the bug that log file is not written when configuration file doesn't exist.
  9355. This is caused by using Logger class before LogFactory is not configured.
  9356. BUG #1875079
  9357. * src/option_processing.cc
  9358. Warning message "configuration doesn't exist" is only printed when --conf is
  9359. given.
  9360. * src/option_processing.cc
  9361. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9362. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9363. ShaVisitor is now deprecated and slated to be removed.
  9364. * src/DefaultBtContext.cc
  9365. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9366. Externalize message to message.h
  9367. * src/Platform.cc
  9368. * src/message.h
  9369. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9370. Set default domain and default path to cookie.
  9371. * src/HttpResponse.cc
  9372. * src/CookieBox.{h, cc}
  9373. * src/CookieParser.{h, cc}
  9374. * test/CookieParserTest.cc
  9375. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Added --no-conf and --conf-path command-line option.
  9377. --no-conf option disables loading aria2.conf file.
  9378. --conf-path option changes the configuration file path. The default
  9379. file path is $HOME/.aria2/aria2.conf
  9380. Added a warning message when the configuration file is not found.
  9381. * src/HelpItemFactory.cc
  9382. * src/option_processing.cc
  9383. * src/prefs.h
  9384. * src/usage_text.h
  9385. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. Added the message to inform users that other help categories are
  9387. available in -h option.
  9388. * src/version_usage.cc
  9389. * src/TagContainer.{h, cc}
  9390. * test/TagContainerTest.cc
  9391. * src/TaggedItem.{h, cc}
  9392. * test/TaggedItemTest.cc
  9393. * src/HelpItem.h
  9394. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9395. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9396. from PiecedSegment's ctor.
  9397. Previously Piece::getAllMissingBlockIndexes() is called from
  9398. PiecedSegment() but it is rather expensive since only first element is
  9399. used.
  9400. * src/PiecedSegment.cc
  9401. * src/Piece.{h, cc}
  9402. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9403. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9404. each time these functions are called.
  9405. * src/BitfieldMan.{h, cc}
  9406. * test/BitfieldManTest.cc
  9407. * src/array_fun.h
  9408. * test/array_funTest.cc
  9409. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9410. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9411. filtered. Removed unnecessary cast to int32_t.
  9412. * src/BitfieldMan.{h, cc}
  9413. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9414. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9415. payload length(4bytes) are received. This happens because lenbufLength
  9416. is not updated in this particular case and successive call of
  9417. receiveMessage() overwrites payload length with bytes recieved which
  9418. are payload body.
  9419. * src/PeerConnection.{h, cc}
  9420. * src/message.h
  9421. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9423. peer if there are peers that have same ipaddr and port.
  9424. I've experiened segmentation fault and "pure virtual function was
  9425. called" error.
  9426. * src/Peer.h
  9427. * test/PeerTest.cc
  9428. * src/DefaultPeerStorage.cc
  9429. * test/DefaultPeerStorageTest.cc
  9430. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9431. Removed a call to isPowerOf() because it is no longer necessary here
  9432. and a request block is not always power of 2.
  9433. BUG#1866924
  9434. * src/PeerMessageUtil.cc (checkLength)
  9435. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9436. Fixed the bug that always first found Segment is removed from
  9437. usedSegmentEntries. Removed unused functions.
  9438. * src/SegmentMan.{h, cc}
  9439. * test/SegmentManTest.cc
  9440. Fixed the bug that ServerHost is not removed.
  9441. * src/RequestGroup.cc
  9442. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9443. Fixed the bug that SegmentMan::completeSegment() is not called
  9444. even if Segment is complete when --lowest-speed-limit is enabled.
  9445. BUG#1864525
  9446. * src/DownloadCommand.{h, cc}
  9447. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. Fixed: hash algorithm 'sha1' is always used.
  9449. * src/DownloadCommand.cc (validatePieceHash)
  9450. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9451. Added --enable-peer-exchange command-line option.
  9452. * src/OptionHandlerFactory.cc
  9453. * src/HelpItemFactory.cc
  9454. * src/option_processing.cc
  9455. * src/usage_text.h
  9456. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. Move extension from BtRuntime to ExtensionMessageFactory, because
  9458. extension can be specified per peer, not per torrent.
  9459. * src/DefaultBtInteractive.cc
  9460. * src/BtRuntime.h
  9461. * src/ExtendedMessagingAware.h
  9462. * src/ExtensionMessageFactory.h
  9463. * src/DefaultExtensionMessageFactory.cc
  9464. * test/DefaultExtensionMessageFactoryTest.cc
  9465. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9466. Added categorized option help. Specify category using --help option.
  9467. Also added the ability to search options in forward match.
  9468. * src/HelpItem.{h, cc}
  9469. * test/HelpItemTest.cc
  9470. * src/HelpItemFactory.{h, cc}
  9471. * src/TagContainer.{h, cc}
  9472. * test/TagContainerTest.cc
  9473. * src/option_processing.cc
  9474. * src/prefs.h
  9475. * src/TaggedItem.{h, cc}
  9476. * test/TaggedItemTest.cc
  9477. * src/version_usage.cc
  9478. * src/help_tags.h
  9479. * src/usage_text.h
  9480. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Fixed segmentation fault when bad torrent metainfo is parsed.
  9482. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9483. and then throw exception or skip it.
  9484. * src/DefaultBtContext.{h, cc}
  9485. * test/DefaultBtContextTest.cc
  9486. * src/AnnounceList.cc
  9487. * src/CompactPeerListProcessor.cc
  9488. * src/message.h
  9489. * src/DefaultBtAnnounce.{h, cc}
  9490. * test/DefaultBtAnnounceTest.cc
  9491. * src/BencodeVisitor.cc
  9492. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9493. Added missing "B"(=Byte). So now the message looks like this:
  9494. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9495. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9496. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9497. Show the seed ratio after torrent downloads.
  9498. For example, after torrent download completed and --seed-time and
  9499. --seed-ratio conditions are fulfilled, following message is printed
  9500. right after "Download complete: .....":
  9501. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9502. * src/RequestGroupMan.cc
  9503. * src/RequestGroup.{h, cc}
  9504. * src/message.h
  9505. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9506. Remove a defunct control file. A defunct control file means that while
  9507. it exists, but the corresponding download file is missing.
  9508. After its removal, a download restarts from the beginning.
  9509. * src/RequestGroup.cc
  9510. * src/message.h
  9511. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Allocate bitfield in Peer when it is really used. More specifically,
  9513. bitfield in Peer is allocated after the connection is established and
  9514. deallocated when the connection is dropped.
  9515. Since 2 parameters(piece length and total length) was removed from the
  9516. constructor of Peer class, many test classes were modified accordingly.
  9517. See svn log for more detailed information.
  9518. * src/PeerInteractionCommand.cc
  9519. * src/CompactPeerListProcessor.cc
  9520. * src/Peer.cc
  9521. * src/DefaultPeerListProcessor.cc
  9522. * src/PeerListenCommand.cc
  9523. * src/PeerReceiveHandshakeCommand.cc
  9524. Fixed memory leak
  9525. * src/Piece.cc
  9526. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9527. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9528. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9529. command-line options.
  9530. * src/option_processing.cc
  9531. * src/ActivePeerConnectionCommand.cc
  9532. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. Send have message to peer if it already has the piece.
  9534. * src/BtHaveMessage.{h, cc}
  9535. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9536. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9537. port.
  9538. * src/DefaultPeerStorage.{h, cc}
  9539. * test/DefaultPeerStorageTest.cc
  9540. * src/HandshakeExtensionMessage.cc
  9541. * test/HandshakeExtensionMessageTest.cc
  9542. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9543. * src/PeerStorage.h
  9544. * test/MockPeerStorage.h
  9545. * src/PeerListenCommand.cc
  9546. * src/PeerReceiveHandshakeCommand.cc
  9547. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. Added --metalink-enable-unique-protocol option.
  9549. * src/Metalink2RequestGroup.cc
  9550. * src/option_processing.cc
  9551. * src/prefs.h
  9552. * src/version_usage.cc
  9553. * doc/aria2c.1.txt
  9554. * doc/aria2c.1
  9555. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9556. Allow a peer in incomingPeer to be added peers.
  9557. * src/DefaultPeerStorage.cc
  9558. * test/DefaultPeerStorageTest.cc
  9559. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9560. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9561. I could reproduce this bug in following procedure:
  9562. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9563. 2. Restart aria2.
  9564. 3. You see the download stopped around 99%.
  9565. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9566. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9567. If timeout is reached, then _nextCommand is unused and it may contains
  9568. segments and they won't be canceled. Actually, timeout is not needed
  9569. here because if the server dropped connection, then retry is made.
  9570. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9571. Added uTorrent compatible Peer Exchange.
  9572. * src/BencodeVisitor.{h, cc}
  9573. * test/BencodeVisitorTest.cc
  9574. * src/BtConstants.h
  9575. * src/BtContext.h: Added 'private' flag.
  9576. * src/BtExtendedMessage.{h, cc}
  9577. * test/BtExtendedMessageTest.cc
  9578. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9579. reserved field.
  9580. * test/BtHandshakeMessageTest.cc
  9581. * src/BtMessageFactory.h
  9582. * src/BtRegistry.h
  9583. * src/BtRuntime.h: This class holds default extension message IDs for
  9584. aria2. By default, aria2 uses ID 8 for ut_pex.
  9585. * src/DefaultBtContext.cc
  9586. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9587. When it is true, aria2 enables ut_pex. This value is set by
  9588. PeerInteractionCommand.
  9589. * src/DefaultBtMessageFactory.{h, cc}
  9590. * test/DefaultBtMessageFactoryTest.cc
  9591. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9592. handling to DefaultBtInteractive class.
  9593. * src/DefaultExtensionMessageFactory.{h, cc}
  9594. * test/DefaultExtensionMessageFactoryTest.cc
  9595. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9596. the container(peers and incomingPeers. The equality is determined by
  9597. Peer::id).
  9598. * test/DefaultPeerStorageTest.cc
  9599. * src/ExtensionMessage.h
  9600. * test/MockExtensionMessage.h
  9601. * src/ExtensionMessageFactory.h
  9602. * test/MockExtensionMessageFactory.h
  9603. * src/HandshakeExtensionMessage.{h, cc}
  9604. * test/HandshakeExtensionMessageTest.cc
  9605. * src/MetaEntry.h
  9606. * src/Peer.{h, cc}
  9607. * src/PeerInteractionCommand.cc
  9608. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9609. addIncomingPeer.
  9610. * src/PeerMessageUtil.{h, cc}
  9611. * src/PeerObject.h
  9612. * src/UTPexExtensionMessage.{h, cc}
  9613. * test/UTPexExtensionMessageTest.cc
  9614. * src/message.h
  9615. * src/prefs.h
  9616. Fixed the bug that returns incomplete data when it contains null
  9617. character. A convenient constructor was also added.
  9618. * src/Data.{h, cc}
  9619. Rewritten.
  9620. * src/CompactPeerListProcessor.cc
  9621. Fixed typos.
  9622. * src/message.h
  9623. * src/MetaFileUtil.cc
  9624. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9625. Added "Status Legend" label to the explanation text of 'stat' in
  9626. download result and moved it to the last. BUG#1848214
  9627. * src/RequestGroupMan.cc
  9628. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9629. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9630. * src/Makefie.am
  9631. * test/Makefile.am
  9632. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9633. Fixed the bug that prevents aria2 from loading cookie file when expire
  9634. value is greater than 2^31-1. BUG#1851066
  9635. * src/CookieBoxFactory.cc
  9636. * test/CookieBoxFactoryTest.cc
  9637. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. Fixed possible memory leak when an exception is thrown.
  9639. * src/XML2SAXMetalinkProcessor.cc
  9640. Added Expat support. If both libxml2 and Expat are installed, then
  9641. libxml2 is used by default.
  9642. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9643. ExpatMetalinkProcessor according to the configuration.
  9644. * src/ExpatMetalinkProcessor.{h, cc}
  9645. * src/main.cc: Removed libxml2 specific header and init/free function.
  9646. * src/MetalinkProcessorFactory.{h, cc}
  9647. * src/MetalinkHelper.cc
  9648. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9649. * src/MetalinkProcessor.h
  9650. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9651. MetalinkProcessorTest is used instead.
  9652. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9653. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9654. MetalinkProcessorFactory::newInstance().
  9655. * m4/libexpat.m4
  9656. * configure.ac: Added configuration options for libexpat.
  9657. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9658. Disabled -s option in metalink download.
  9659. * src/Metalink2RequestGroup.cc
  9660. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9661. If several protocols are available for a mirror in metalink file,
  9662. aria2 now use one of them. --metalink-preferred-protocol option was
  9663. added to specify the preference of protocol.
  9664. * src/AbstractCommand.cc
  9665. * src/OptionHandlerFactory.cc
  9666. * src/ServerHost.{h, cc}
  9667. * src/Metalink2RequestGroup.cc
  9668. * src/RequestGroup.{h, cc}
  9669. * test/RequestGroupTest.cc
  9670. * src/option_processing.cc
  9671. * src/prefs.h
  9672. * src/HttpResponseCommand.cc
  9673. * src/MetalinkResource.{h, cc}
  9674. * src/FtpNegotiationCommand.cc
  9675. * src/MetalinkEntry.{h, cc}
  9676. * src/MetalinkEntryTest.cc
  9677. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9678. Code cleanup and added debug log.
  9679. * src/PeerConnection.cc
  9680. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9681. Compiler error fix: applied the patch by Tiziano Mueller
  9682. * src/RequestGroup.cc
  9683. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9685. in stopped and completed event.
  9686. * src/AnnounceList.{h, cc}
  9687. * test/AnnounceListTest.cc
  9688. * src/DefaultBtAnnounce.cc
  9689. * test/DefaultBtAnnounceTest.cc
  9690. Sorted URLs.
  9691. * test/Metalink2RequestGroupTest.cc
  9692. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. Removed unnecessary string copy. Updated doc and corrected indentation.
  9694. * src/Base64.cc
  9695. Fixed compilation warnings
  9696. * test/DataTest.cc
  9697. * test/HttpRequestTest.cc
  9698. * test/MetaFileUtilTest.cc
  9699. * test/RequestTest.cc
  9700. * Release 0.12.0
  9701. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9702. Updated translations
  9703. * po/{de,fr,ja,nl,ru}.po
  9704. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9705. translations. Many thanks to translators.
  9706. * po/{ca,es,it,pt_BR,sv}.po
  9707. * po/LINGUAS
  9708. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9709. Added a notice about URL
  9710. * src/version_usage.cc
  9711. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9712. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9713. aria2 repeatedly sends stopped request when tracker returns error code.
  9714. * src/AnnounceList.cc
  9715. * test/AnnounceListTest.cc
  9716. * src/AnnounceTier.h
  9717. Added a message when ctrl-c is hit.
  9718. Now second ctrl-c is also handled in signal handler.
  9719. * src/RequestGroupMan.{h, cc}
  9720. * src/RequestGroup.{h, cc}
  9721. * src/MultiUrlRequestInfo.cc
  9722. * src/DownloadEngine.cc
  9723. * src/TrackerWatcherCommand.cc
  9724. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9725. Code cleanup
  9726. * src/Base64.cc (encode)
  9727. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9728. Changed Direct/IO enable/disable procesure in file allocation routine.
  9729. * src/SingleFileAllocationIterator.cc
  9730. (SingleFileAllocationIterator):
  9731. Disable directIO if offset is not multiple of 512.
  9732. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9733. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9734. Enable created SingleFileAllocationIterator's directIO.
  9735. * src/FileAllocationEntry.cc
  9736. (FileAllocationEntry): Enable directIO here.
  9737. (~FileAllocationEntry): Disable directIO here.
  9738. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9739. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9740. * src/Peer.{h, cc}
  9741. * src/DefaultPieceStorage.cc
  9742. * test/DefaultPieceStorageTest.cc
  9743. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9744. Rewritten direct I/O support routine
  9745. * src/SingleFileAllocationIterator.cc
  9746. * src/MultiDiskAdaptor.{h, cc}
  9747. * src/ByteArrayDiskWriter.h
  9748. * src/AbstractSingleDiskAdaptor.h
  9749. * src/AbstractDiskWriter.cc
  9750. * src/DefaultPieceStorage.cc
  9751. * src/DiskWriter.h
  9752. * src/BinaryStream.h
  9753. * src/IteratableChunkChecksumValidator.cc
  9754. * src/IteratableChecksumValidator.cc
  9755. * src/CheckIntegrityEntry.cc
  9756. * src/FileAllocationEntry.cc
  9757. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9758. Fixed typo
  9759. * src/version_usage.cc
  9760. Updated doc
  9761. * doc/aria2c.1.txt
  9762. * doc/aria2c.1
  9763. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9764. Fixed compile error without message digest support.
  9765. * src/FileMetalinkParserState.cc
  9766. * src/MetalinkParserController.{h, cc}
  9767. * test/XML2SAXMetalinkProcessorTest.cc
  9768. * test/MetalinkParserControllerTest.cc
  9769. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9770. Enable direct I/O support in checksum checking.
  9771. * src/IteratableChunkChecksumValidator.{h, cc}
  9772. * test/IteratableChunkChecksumValidatorTest.cc
  9773. * src/CheckIntegrityEntry.cc
  9774. * src/PieceHashCheckIntegrityEntry.cc
  9775. * src/IteratableChecksumValidator.{h, cc}
  9776. * src/BtCheckIntegrityEntry.cc: Added doc.
  9777. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9778. Added --allow-piece-length-change option.
  9779. * src/DefaultBtProgressInfoFile.cc
  9780. * test/DefaultBtProgressInfoFileTest.cc
  9781. * src/OptionHandlerFactory.cc
  9782. * src/option_processing.cc
  9783. * src/prefs.h
  9784. * src/version_usage.cc
  9785. * doc/aria2c.1.txt
  9786. * doc/aria2c.1
  9787. Fixed: duplicated result entry appears when exception is thrown in
  9788. RequestGroup::createInitiateConnectionCommand().
  9789. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9790. Add RequestGroup to _requestGroup after RequetGroup::
  9791. createInitiateConnectionCommand() succeeds.
  9792. Externalized message
  9793. * src/XML2SAXMetalinkProcessor.cc
  9794. * src/message.h
  9795. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9796. Forced download abort when received negative response from http/ftp
  9797. server.
  9798. * src/HttpResponseCommand.cc
  9799. * src/FtpNegotiationCommand.cc
  9800. * src/HttpResponse.cc
  9801. * src/FtpConnection.cc
  9802. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9803. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9804. the predecessor, Xml2MetalinkParser class.
  9805. I tested them against 94KB metalink file with 1234 chunk checksums.
  9806. The new one parsed it in 22msec, while it took 6000msec with old one.
  9807. * src/XML2SAXMetalinkProcessor.{h, cc}
  9808. * test/XML2SAXMetalinkProcessorTest.cc
  9809. * src/MetalinkParserController.{h, cc}
  9810. * test/MetalinkParserControllerTest.cc
  9811. * src/MetalinkParserState.h: Also added 16 subclasses.
  9812. * src/main.cc
  9813. * src/Metalink2RequestGroup.cc
  9814. * src/MetalinkHelper.cc
  9815. * src/MetalinkEntry.cc
  9816. * src/ChunkChecksum.h
  9817. Rewritten Base64 class for better performance.
  9818. * src/Base64.{h, cc}
  9819. * test/Base64Test.cc
  9820. * src/HttpRequest.cc
  9821. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9822. Fixed the bug#1841757: aria2 will connect to server to only get
  9823. file size.
  9824. * src/StreamFileAllocationEntry.cc
  9825. * src/option_processing.cc
  9826. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9827. downloads.
  9828. * src/FtpNegotiationCommand.cc
  9829. Suppressed wrong message when finding PreDownloadHandler
  9830. * src/RequestGroup.cc
  9831. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Updated usage
  9833. * src/version_usage.cc
  9834. Updated man page
  9835. * doc/aria2c.1.txt
  9836. * doc/aria2c.1
  9837. Updated po files
  9838. * po/aria2c.pot
  9839. * po/*.po
  9840. * po/*.gmo
  9841. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9842. Eliminated g++-4.2 warning
  9843. * src/DownloadHandlerConstants.{h, cc}
  9844. * src/Util.cc
  9845. * test/MetaFileUtilTest.cc
  9846. * test/PStringBuildVisitorTest.cc
  9847. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9848. * src/RequestGroup.cc
  9849. * src/BtCheckIntegrityEntry.cc
  9850. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9851. Fixed a2io.h
  9852. * src/a2io.h
  9853. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9854. Added direct I/O support. The current implementation uses O_DIRECT,
  9855. which is not posix standard and is tested on linux 2.6.21.
  9856. Currently only file allocation uses direct I/O.
  9857. * src/SingleFileAllocationIterator.{h, cc}
  9858. * test/SingleFileAllocationIteratorTest.cc
  9859. * src/MultiFileAllocationIterator.{h, cc}
  9860. * test/MultiFileAllocationIteratorTest.cc
  9861. * src/BinaryStream.h
  9862. * src/DiskWriter.h
  9863. * src/AbstractDiskWriter.{h, cc}
  9864. * src/ByteArrayDiskWriter.h
  9865. * src/DiskAdaptor.h
  9866. * src/AbstractSingleDiskAdaptor.{h, cc}
  9867. * src/MultiDiskAdaptor.{h, cc}
  9868. * src/FileAllocationEntry.cc
  9869. * src/Util.{h, cc}
  9870. * src/OptionHandlerFactory.cc
  9871. * src/prefs.h
  9872. * src/version_usage.cc
  9873. * src/option_processing.cc
  9874. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9875. handleException.
  9876. * src/MultiFileAllocationIterator.cc
  9877. Added EINTR handling
  9878. * src/SocketCore.cc
  9879. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Updated usage
  9881. * src/version_usage.cc
  9882. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Applied Ross's patch for MinGW port.
  9884. * src/DownloadEngine.h
  9885. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9886. Set Content-Type to SingleFileDownloadContext when http response is
  9887. received.
  9888. * src/HttpResponseCommand.cc
  9889. * src/HttpResponse.{h, cc}
  9890. * test/HttpResponseTest.cc
  9891. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. Rewritten to add content-type support.
  9893. * src/DownloadHandler.{h, cc}
  9894. * src/BtPostDownloadHandler.{h, cc}
  9895. * test/BtPostDownloadHandlerTest.cc
  9896. * src/MetalinkPostDownloadHandler.{h, cc}
  9897. * test/MetalinkPostDownloadHandlerTest.cc
  9898. * src/PostDownloadHandler.{h, cc}
  9899. * src/DownloadHandlerConstants.{h, cc}
  9900. * src/RequestGroup.cc
  9901. * src/HttpResponseCommand.cc
  9902. * src/FtpNegotiationCommand.cc
  9903. * src/SingleFileDownloadContext.{h, cc}
  9904. * src/RequestGroup.h
  9905. * src/RequestGroupCriteria.h
  9906. * src/ContentTypeRequestGroupCriteria.h
  9907. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9908. If it is give, metalink/torrent file is not written to the disk, but
  9909. just is kept in memory. Parsing is occurred on memory.
  9910. * src/MetalinkHelper.{h, cc}
  9911. * src/MetalinkProcessor.h
  9912. * src/Xml2MetalinkProcessor.{h, cc}
  9913. * test/Xml2MetalinkProcessorTest.cc
  9914. * src/DownloadHandlerFactory.{h, cc}
  9915. * test/DownloadHandlerFactoryTest.cc
  9916. * src/PreDownloadHandler.{h, cc}
  9917. * src/OptionHandlerFactory.cc
  9918. * src/DefaultBtContext.{h, cc}
  9919. * test/DefaultBtContextTest.cc
  9920. * src/version_usage.cc
  9921. * src/Metalink2RequestGroup.{h, cc}
  9922. * src/RequestGroup.{h, cc}
  9923. * src/a2functional.h
  9924. * test/a2functionalTest.cc
  9925. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9926. * src/OptionHandlerImpl.h
  9927. * src/prefs.h
  9928. * src/Util.{h, cc}
  9929. * test/UtilTest.cc
  9930. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9931. memory usage.
  9932. * src/RequestGroupMan.{h, cc}
  9933. * src/DownloadEngine.cc
  9934. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9935. WeakHandle to SharedHandle because WeakHandle could be null.
  9936. * src/RequestGroup.{h, cc}
  9937. * src/DownloadEngineFactory.cc
  9938. * src/DownloadResult.h
  9939. Set totalLength after download finished
  9940. * src/UnknownLengthPieceStorage.{h, cc}
  9941. Keep torrent file specified in metalink in memory.
  9942. * src/Metalink2RequestGroup.cc
  9943. * src/BtDependency.cc
  9944. * src/TrueRequestGroupCriteria.h
  9945. Fixed the bug: seekg is used where seekp should be used.
  9946. * src/ByteArrayDiskWriter.cc
  9947. * test/ByteArraydiskWriterTest.cc
  9948. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9949. Fixed syntax error
  9950. * test/SequenceTest.cc
  9951. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9952. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9953. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9954. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9955. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9956. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9957. Added the check to see whether ares_host_callback accepts timeouts
  9958. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9959. * src/NameResolver.{h, cc}
  9960. * m4/libcares.m4
  9961. * configure.ac: Set C++ for language choice.
  9962. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9963. Fixed: compilation fails without c-ares/ares
  9964. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9965. Generate http/ftp commands only when download is incomplete.
  9966. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9967. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9968. Corrected typo. Examples are removed since they are available in man
  9969. page.
  9970. * src/version_usage.cc
  9971. Updated man page.
  9972. * doc/aria2c.1
  9973. * doc/aria2c.1.txt
  9974. * doc/makeman: Commented out sed command.
  9975. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9976. Throw DlAbortEx when a remote file is not found.
  9977. * src/HttpResponse.cc
  9978. * src/FtpNegotiationCommand.cc
  9979. * src/message.h
  9980. Overwrite an existing file if --allow-overwrite=true is given.
  9981. * src/RequestGroup.cc
  9982. Removed unused functions
  9983. * src/AbstractCommand.h
  9984. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9985. Removed 'extern' from 'extern typedef ...' in src/*.h
  9986. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9987. Updated usage
  9988. * src/version_usage.cc
  9989. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9990. Trim announce URL
  9991. * src/DefaultBtContext.cc
  9992. * test/ShaVisitorTest.cc
  9993. Trim argument s. Give trimed s to exception constructor.
  9994. * src/Util.cc (parseInt)(parseLLInt)
  9995. * test/UtilTest.cc
  9996. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9997. Set precision back to 1.
  9998. * src/ConsoleStatCalc.cc (calculateStat)
  9999. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10000. Replaced strtol with Util::parseInt
  10001. * src/ChunkedEncoding.cc
  10002. * src/HttpConnection.cc
  10003. * src/CookieBoxFactory.cc
  10004. * src/ParameterizedStringParser.cc
  10005. * src/Util.cc
  10006. * test/UtilTest.cc
  10007. * test/OptionHandlerTest.cc
  10008. * src/Request.cc
  10009. Throw exception when empty string is given. The message for exception
  10010. changed.
  10011. * src/Util.cc (parseInt)(parseLLInt)
  10012. * src/message.h
  10013. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10015. set to 1.
  10016. * src/ConsoleStatCalc.cc (calculateStat)
  10017. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10018. Preallocate non-requested file which is adjacent forward to requested
  10019. file('requested' files means the files given in --select-file option)
  10020. if they share a same piece.
  10021. This fixes long pause in the file system which doesn't support sparse
  10022. files like FAT32 while downloading.
  10023. * src/MultiFileAllocationIterator.{h, cc}
  10024. * test/MultiFileAllocationIteratorTest.cc
  10025. * src/FileEntry.{h, cc}
  10026. Removed unused _option.
  10027. * src/MultiDiskAdaptor.h
  10028. * test/MultiDiskAdaptorTest.cc
  10029. * src/DefaultPieceStorage.cc
  10030. Set the default value of --seed-ratio to 1.0.
  10031. If 0.0 is given, then seeding continues regardless of share ratio.
  10032. * src/version_usage.cc
  10033. * src/option_processing.cc
  10034. * src/BtSetup.cc
  10035. * doc/aria2c.1.txt
  10036. * doc/aria2c.1
  10037. Fixed: Selective download is not working in BitTorrent
  10038. * src/RequestGroup.cc
  10039. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10040. * src/PieceStorage.h
  10041. * test/MockPieceStorage.h
  10042. * src/UnknownLengthPieceStorage.h
  10043. * src/DefaultPieceStorage.{h, cc}
  10044. * src/Metalink2RequestGroup.cc
  10045. * src/RequestGroup.cc
  10046. * src/Sequence.h
  10047. * test/SequenceTest.cc
  10048. * src/IntSequence.h
  10049. * src/message.h
  10050. * src/Util.{h, cc}
  10051. * test/UtilTest.cc
  10052. Added new function 'parse' to catch exception thrown by subclass's
  10053. parseArg
  10054. * src/OptionHandler.h
  10055. * src/OptionParser.cc
  10056. * src/NameMatchOptionHandler.h
  10057. * src/OptionHandlerImpl.h
  10058. * test/OptionHandlerTest.cc
  10059. Added IntegerRangeOptionHandler. Used for --listen-port and
  10060. --select-file. Now --listen-port accepts range of port.
  10061. * src/OptionHandlerFactory.cc
  10062. * src/version_usage.cc
  10063. * src/OptionHandlerImpl.h
  10064. * src/option_processing.cc
  10065. * src/BtSetup.cc
  10066. * src/PeerListenCommand.{h, cc}
  10067. * doc/aria2c.1.txt
  10068. * doc/aria2c.1
  10069. Implemented operator< for Exception class to provide easy way to print
  10070. exception stack trace.
  10071. * src/Exception.{h, cc}
  10072. * src/main.cc
  10073. * src/option_processing.cc
  10074. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10075. * src/version_usage.cc
  10076. (showVersion): Reworked.
  10077. (showUsage): Added examples.
  10078. Removed Hint for total length and file name.
  10079. * src/Metalink2RequestGroup.cc
  10080. * src/RequestGroup.{h, cc}
  10081. * src/HttpResponseCommand.cc
  10082. * src/FtpNegotiationCommand.cc
  10083. Now --follow-torrent and --follow-metalink option work properly.
  10084. * src/RequestGroup.cc
  10085. Updated man page
  10086. * doc/aria2c.1.txt
  10087. * doc/aria2c.1
  10088. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10089. Removed.
  10090. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10091. Use Segment::operator==()
  10092. * src/HttpConnection.cc
  10093. * src/Segment.h
  10094. Updated usage
  10095. * src/version_usage.cc
  10096. Added EINTR treatment.
  10097. * src/SocketCore.cc
  10098. * src/AbstractDiskWriter.cc
  10099. Rewritten.
  10100. * src/Util.cc (rangedFileCopy)
  10101. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10102. Fixed typo.
  10103. * src/version_usage.cc
  10104. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10105. Implemented. Now -c option works fine.
  10106. * src/DefaultPieceStorage.cc (markPiecesDone)
  10107. * test/DefaultPieceStorageTest.cc
  10108. Removed.
  10109. * src/SegmentMan.{h, cc}
  10110. (markAllPiecesDone)
  10111. (markPieceDone)
  10112. Synchronized po files with
  10113. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10114. * src/fr.po
  10115. * src/ru.po
  10116. * src/de.po
  10117. * src/ja.po
  10118. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. Added ifdef and some modifications to compile without BitTorrent,
  10120. Metalink, MessageDigest
  10121. support.
  10122. * src/PieceHashCheckIntegrityEntry.cc
  10123. * src/MetalinkEntry.h
  10124. * src/version_usage.cc
  10125. * src/main.cc
  10126. * src/DownloadEngine.{h, cc}
  10127. * src/Metalink2RequestGroup.cc
  10128. * src/Peer.cc
  10129. * src/RequestGroup.cc
  10130. * src/MetalinkHelper.cc
  10131. * test/DefaultPieceStorageTest.cc
  10132. * test/MetalinkPostDownloadHandlerTest.cc
  10133. * test/Metalink2RequestGroupTest.cc
  10134. Hide TOTAL SPD when all downloads complete.
  10135. * src/ConsoleStatCalc.cc
  10136. Log target system information.
  10137. * src/main.cc
  10138. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Now --metalink-location accepts a comma-deliminated list of locations.
  10140. * src/MetalinkEntry.{h, cc}
  10141. * test/MetalinkEntryTest.cc
  10142. * src/version_usage.cc
  10143. * src/Metalink2RequestGroup.cc
  10144. * src/Xml2MetalinkProcessor.cc
  10145. * test/Xml2MetalinkProcessorTest.cc
  10146. * doc/aria2c.1.txt
  10147. * doc/aria2c.1
  10148. * src/Util.cc (toUpper)(toLower): Rewritten.
  10149. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. Added the ability to detect duplicate download entry which is about to
  10151. download the same file other RequestGroup is downloading.
  10152. * src/RequestGroup.cc
  10153. * src/HttpResponseCommand.cc
  10154. * src/FtpNegotiationCommand.cc
  10155. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10156. Recalculates download progress when loading a control file,
  10157. if the piece length of DownloadContext is different from the one saved
  10158. in the control file. Currently in-flight pieces are ignored.
  10159. * src/DefaultBtProgressInfoFile.cc
  10160. * test/DefaultBtProgressInfoFileTest.cc
  10161. * src/Util.{h, cc}
  10162. * test/UtilTest.cc
  10163. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10164. Do not rotate tiers in announce-list.
  10165. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10166. AnnounceList::allTiersFailed() used instead to detect whether all
  10167. tiers are tried and failed.
  10168. * test/DefaultBtAnnounceTest.cc
  10169. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10170. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10171. * test/AnnounceListTest.cc
  10172. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10173. clause. Catch RecoverableException instead of DlRetryEx instead.
  10174. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10175. Implemented checksum validation feature(1 checksum for each file)
  10176. The validation takes place after the download.
  10177. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10178. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10179. * src/CheckIntegrityCommand.cc: Changed log message.
  10180. * src/Metalink2RequestGroup.cc: Set checksum to
  10181. SingleFileDownloadContext.
  10182. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10183. PieceHashCheckIntegrity class.
  10184. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10185. PieceHashCheckIntegrity class.
  10186. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10187. * src/IteratableValidator.h: New class.
  10188. * src/message.h
  10189. * src/CheckIntegrityEntry.{h, cc}
  10190. * src/IteratableChunkChecksumValidator.{h, cc}
  10191. * src/SingleFileDownloadContext.h
  10192. * src/DownloadCommand.cc
  10193. --allow-overwrite=true is no longer needed to check file integrity
  10194. before download in BitTorrent download.
  10195. * src/RequestGroup.cc (getInitialCommand)
  10196. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10197. throws exception.
  10198. * src/RequestGroupMan.cc (getInitialCommands)
  10199. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10200. urlencode the given url inside Request::parseUrl(...)
  10201. * src/Request.{h, cc}
  10202. * src/Util.{h, cc}
  10203. * test/RequestTest.cc
  10204. Removed #!metalink3! notation support because it is deleted from
  10205. the metalink specification.
  10206. * src/Request.{h, cc}
  10207. * test/RequestTest.cc
  10208. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. Don't connect server before checking file integrity at startup, if
  10210. filesize and output file path are known.
  10211. * src/AbstractCommand.cc
  10212. * src/StreamFileAllocationEntry.cc
  10213. * src/Metalink2RequestGroup.cc
  10214. * src/RequestGroup.{h, cc}
  10215. * src/HttpResponseCommand.cc
  10216. * src/FtpNegotiationCommand.cc
  10217. Added DownloadFailureException. If it is thrown, RequestGroup should
  10218. halt.
  10219. * src/AbstractCommand.cc
  10220. * src/DownloadFailureException.h
  10221. * src/RequestGroup.cc
  10222. Catch RecoverableException, instead of DlAbortEx.
  10223. * src/RequestGroupMan.cc
  10224. * src/FillRequestGroupCommand.cc
  10225. * src/MetaFileUtil.cc
  10226. * src/IteratableChunkChecksumValidator.cc
  10227. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10228. getGID())
  10229. * src/CheckIntegrityCommand.cc
  10230. * src/message.h
  10231. Print gid instead of idx.
  10232. * src/RequestGroupMan.cc
  10233. Removed exception throwers declaration.
  10234. * src/DirectDiskAdaptor.{h, cc}
  10235. * src/SocketCore.{h, cc}
  10236. * src/MultiDiskAdaptor.{h, cc}
  10237. * src/HttpConnection.{h, cc}
  10238. * src/HttpResponse.{h, cc}
  10239. * src/DiskAdaptor.{h, cc}
  10240. * src/CopyDiskAdaptor.{h, cc}
  10241. * src/MultiDiskAdaptor.{h, cc}
  10242. * src/HttpHeaderProcessor.{h, cc}
  10243. * src/AbstractSingleDiskAdaptor.{h, cc}
  10244. * src/Util.{h, cc}
  10245. * test/UtilTest.cc
  10246. * src/DefaultDiskWriter.{h, cc}
  10247. * src/FtpConnection.{h, cc}
  10248. * src/AbstractDiskWriter.{h, cc}
  10249. Removed duplicate code.
  10250. * src/StreamCheckIntegrityEntry.cc
  10251. Removed unnecessary include.
  10252. * src/DiskWriter.h
  10253. Included Exception.h
  10254. * src/option_processing.cc
  10255. Included 2 files and added doc
  10256. * src/TrackerWatcherCommand.cc
  10257. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10258. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. Changed CheckIntegrityEntry interface so that it can define
  10260. the action when all the chunk checksums are valid.
  10261. * src/CheckIntegrityEntry.h
  10262. * src/StreamCheckIntegrityEntry.{h, cc}
  10263. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10264. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10265. to exit rather than doing seeding. So, it would be good to toggle this
  10266. behavior.
  10267. * src/CheckIntegrityCommand.cc
  10268. * src/AbstractCommand.cc
  10269. * src/RequestGroup.cc
  10270. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10271. Reflect the download length of in-flight pieces.
  10272. It makes the download length readout more precise.
  10273. * src/DefaultPieceStorage.{h, cc}
  10274. * test/DefaultPieceStorageTest.cc
  10275. * src/a2functional.h
  10276. * test/a2functionalTest.cc
  10277. Lower CPU load when --max-download-limit is used.
  10278. There is up and down in speed indicator when enabling
  10279. http-pipelining but a download goes well. I think the problem is that
  10280. because http-pipelining is enabled, DownloadCommand is created for
  10281. each segment and in its constructor, PeerStat::downloadStart() is
  10282. called. In PeerStat::downloadStart(), speed calculation object is
  10283. reseted, which makes download speed zero.
  10284. * src/DownloadCommand.cc
  10285. Rewritten using accumulate.
  10286. * src/RequestGroupMan.cc (calculateStat)
  10287. Code clearnup.
  10288. * src/FtpNegotiationCommand.cc
  10289. * src/HttpResponseCommand.cc
  10290. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10291. Fixed: Can not resume: aria2 reports download already finished.
  10292. * src/AbstractCommand.{h, cc}
  10293. * src/HttpResponseCommand.cc
  10294. * src/FtpNegotiateCommand.cc
  10295. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10296. Now a file is stored in the directory specified in .metalnk file
  10297. (file[@name]).
  10298. * src/Metalink2RequestGroup.cc
  10299. Create the directory structure when opening the file if it doesn't
  10300. exist.
  10301. * src/AbstractDiskWriter.cc
  10302. * src/Util.{h, cc}
  10303. * src/File.h
  10304. * test/UtilTest.cc
  10305. Removed file name comparison
  10306. * src/Metalink2RequestGroup.cc
  10307. * src/HttpResponseCommand.cc
  10308. Rewritten using Util::mkdirs()
  10309. * src/FileEntry.cc (setupDir)
  10310. * test/FileEntryTest.cc
  10311. Updated doc
  10312. * src/SingleFileDownloadContext.h
  10313. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10314. Now SleepCommand dispatches nextCommand when halt is requested.
  10315. It avoids a possible long wait after hitting CTRL-C.
  10316. * src/SleepCommand.{h, cc}
  10317. * src/RequestGroupAware.{h, cc}
  10318. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10320. to open listen port, then remove the port number from the tracker
  10321. request.
  10322. * src/DefaultBtAnnounce.cc
  10323. * test/DefaultBtAnnounceTest.cc
  10324. * test/MockPieceStorage.h
  10325. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10326. them more testable.
  10327. * src/DefaultBtAnnounce.{h, cc}
  10328. * src/DefaultBtContext.{h, cc}
  10329. * src/Util.{h, cc}
  10330. * test/DefaultBtAnnounceTest.cc
  10331. * test/DefaultBtContextTest.cc
  10332. * test/UtilTest.cc
  10333. Added 'B' to upload bytes readout.
  10334. * src/ConsoleStatCalc.cc
  10335. Now the listen port for BitTorrent download is opened when it is
  10336. needed.
  10337. * src/DownloadEngineFactory.cc
  10338. * src/BtSetup.{h, cc}
  10339. * src/PeerListenCommand.{h, cc}
  10340. Now an exception thrown while parsing tracker response is now logged.
  10341. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10342. called, which means no retry is made in this case, assuming a tracker
  10343. has a problem.
  10344. * src/TrackerWatcherCommand.cc
  10345. Fixed: downloading a file whose length is unkown fails.
  10346. * src/DownloadCommand.cc
  10347. Simplified prepareForNextSegment()
  10348. * src/DownloadCommand.cc
  10349. Updated
  10350. * po/POTFILES.in
  10351. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10352. Re-implemented a file listing for Metalink, which was dropped while
  10353. http/ftp/torrent integration was being implemented.
  10354. * src/MetalinkHelper.{h, cc}: New class.
  10355. * test/MetalinkHelperTest.cc
  10356. * src/main.cc
  10357. * src/Metalink2RequestGroup.cc
  10358. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10359. Added the ability to display the detailed torrent file information.
  10360. Now -S option gives not only a file listing, but also total download
  10361. length, info hash, announce URI, piece length, the number of pieces,
  10362. and mode(single or multi-torrent).
  10363. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10364. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10365. KiB)
  10366. * test/UtilTest.cc
  10367. * src/main.cc
  10368. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10369. Added ftp://USER:PASSWD@Servername automatic parsing.
  10370. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10371. _password. Recognize username and password in URI.
  10372. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10373. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10374. * src/RequestFactory.{h, cc}: Removed.
  10375. * src/AuthConfigFactory.{h, cc}: New class.
  10376. * src/FtpConnection.cc: Use AuthConfigFactory.
  10377. * src/HttpRequest.cc: Use AuthConfigFactory.
  10378. * test/HttpRequestTest.cc: Updated.
  10379. * test/RequestTest.cc: Updated.
  10380. * test/AuthConfigFactoryTest.cc: New class.
  10381. * test/RequestFactoryTest.cc: Removed.
  10382. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10383. Use RequestGroup::allDownloadFinished() to decide whether the control
  10384. file should be removed or saved.
  10385. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10386. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10387. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10388. Use File::renameTo()
  10389. * src/DefaultBtProgressInfoFile.cc
  10390. Added --no-file-allocation-limit command-line option.
  10391. * src/version_usage.cc
  10392. * src/option_processing.cc
  10393. * src/OptionHandlerFactory.cc
  10394. * src/RequestGroup.{h, cc}
  10395. * src/BtCheckIntegrityEntry.cc
  10396. * src/StreamCheckIntegrityEntry.cc
  10397. * src/prefs.h
  10398. * doc/aria2c.1.txt
  10399. * doc/aria2c.1
  10400. Now prealloc is the default value for --file-allocation option.
  10401. * src/version_usage.cc
  10402. * src/option_processing.cc
  10403. * doc/aria2c.1.txt
  10404. * doc/aria2c.1
  10405. Don't URL-encode user-agent.
  10406. * src/HttpRequest.cc
  10407. Updated translations
  10408. * po/LINGUAS: Added nl for Dutch translation.
  10409. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10410. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10411. * po/POTFILES.in: Updated.
  10412. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10413. Added the ability to recognize url-list in a torrent file.
  10414. The retrieved URLs are attached to the corresponding FileEntry.
  10415. * src/DefaultBtContext.{h, cc}
  10416. * src/FileEntry.{h, cc}
  10417. * test/DefaultBtContextTest.cc
  10418. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10419. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10420. after the download finishes.
  10421. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10423. the data smaller than block length.
  10424. A block length can be specified by constructor's argument.
  10425. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10426. Get a missing piece in the range of given FileEntry. This function is
  10427. not used in the program yet.
  10428. * src/Util.h: Added some macros.
  10429. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10430. Added HTTP/1.1 keep alive and pipelining support.
  10431. See --enable-http-keep-alive and --enable-http-pipelining option.
  10432. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10433. Segment.
  10434. * src/HttpDownloadCommand.{h, cc}
  10435. * src/OptionHandlerFactory.cc
  10436. * src/HttpConnection.{h, cc}
  10437. * src/version_usage.cc
  10438. * src/HttpInitiateConnectionCommand.cc
  10439. * src/FtpInitiateConnectionCommand.cc
  10440. * src/Segment.h
  10441. * src/HttpRequestCommand.{h, cc}
  10442. * src/option_processing.cc
  10443. * src/prefs.h
  10444. * src/HttpResponseCommand.cc
  10445. * src/SegmentMan.{h, cc}
  10446. * src/FtpNegotiateCommand.cc
  10447. * src/HttpProxyResponseCommand.cc
  10448. * src/Request.cc
  10449. * src/HttpRequest.cc
  10450. * src/DownloadCommand.cc
  10451. * test/HttpRequestTest.cc
  10452. * test/RequestTest.cc
  10453. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10454. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10455. finished.
  10456. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10457. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10458. catching it inside the method.
  10459. When no file entry is found in a metalink without querying user
  10460. preferences, throw the exception with the error message that suggests
  10461. metalink file is probably broken.
  10462. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10463. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10464. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10465. processed.
  10466. * src/RequestGroupMan.cc (removeStoppedGroup)
  10467. Added debug message.
  10468. * src/BtPostDownloadHandler.cc
  10469. * src/MetalinkPostDownloadHandler.cc
  10470. * src/PostDownloadHandler.{h, cc}
  10471. * src/RequestGroup.cc
  10472. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10473. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10474. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10476. stops and there are any unfinished or in-progress downloads.
  10477. Added the legend of "stat".
  10478. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10479. Throw exception when chunck checksum verification fails.
  10480. * src/DownloadCommand.cc (validatePieceHash): New function.
  10481. * src/PiecedSegment.{h, cc} (clear): New function.
  10482. * src/GrowSegment.{h, cc} (clear): New function.
  10483. * src/Segment.h (clear): New function.
  10484. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10485. * test/SegmentTest.cc
  10486. * test/GrowSegmentTest.cc
  10487. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10488. Do not send referer when redirected.
  10489. * src/Request.cc (redirectUrl)
  10490. * test/RequestTest.cc
  10491. * test/HttpRequestTest.cc
  10492. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10493. Implemented BitTorrent/http/ftp integrated download.
  10494. I've rewritten lots of files and now some headers have forward
  10495. class declarations to reduce compile time.
  10496. The implementation is extremely alpha stage, I recommend to use this
  10497. for testing purpose only.
  10498. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10499. Fixed the compilation error on 64bit platform.
  10500. * test/HttpHeaderProcessorTest.cc
  10501. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10502. Merged Ross's patch that fixes compilation problem in MinGW
  10503. * test/DefaultBtProgressInfoFileTest.cc
  10504. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10505. Updated fr.po by sebone
  10506. * po/fr.po
  10507. Updated man page.
  10508. * doc/aria2c.1.txt
  10509. * Release 0.11.3
  10510. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10511. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10512. failure in Metalink.
  10513. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10514. Automatically save *.aria2 control file of http/ftp download in every
  10515. 60 seconds.
  10516. * src/AutoSaveCommand.{h, cc}: New class.
  10517. * src/TimeBasedCommand.{h, cc}: New class.
  10518. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10519. Disable parameterized URI support by default. Added -P option to
  10520. enable the feature.
  10521. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10522. * src/OptionHandlerFactory.cc
  10523. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10524. Updated Japanese translation.
  10525. * po/ja.po
  10526. Updated man page.
  10527. * doc/aria2c.1.txt
  10528. * Release 0.11.3-rc
  10529. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10530. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10531. it is successful, then renamed to *.aria2.
  10532. This prevents *.aria2 file from being truncated or corrupted when
  10533. file system becomes out of space.
  10534. * src/DefaultBtProgressInfoFile.cc (save)
  10535. * src/SegmentMan.cc (save)
  10536. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10537. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. Reduced the fragmentation of bitfield in http/ftp download.
  10539. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10540. * test/BitfieldManTest.cc
  10541. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10542. Added the ability to disable segmented download in .metalink.
  10543. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10544. 'url' tag.
  10545. * src/MetalinkEntry.{h, cc}
  10546. * src/RequestResource.{h, cc}
  10547. * src/MetalinkRequestInfo.cc
  10548. * src/Xml2MetalinkProcessor.cc
  10549. * test/Xml2MetalinkProcessorTest.cc
  10550. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10551. Added parameterized URI support.
  10552. * src/main.cc: -Z option added.
  10553. * src/OptionHandlerFactory.cc
  10554. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10555. * src/PStringDatum.h: New class.
  10556. * src/PStringSegment.{h,cc}: New class.
  10557. * src/PStringNumLoop.h: New class.
  10558. * src/PStringSelect.h: New class.
  10559. * src/NumberDecorator.h: New class.
  10560. * src/FixedWidthNumberDecorator.h: New class.
  10561. * src/AlphaNumberDecorator.h: New class.
  10562. * src/PStringVisitor.h: New class.
  10563. * src/PStringBuildVisitor.{h,cc}: New class.
  10564. * src/ParameterizedStringParser.{h,cc}: New class.
  10565. * src/Util.{h,cc}
  10566. (isNumber): New function.
  10567. (isLowercase): New function.
  10568. (isUppercase): New function.
  10569. (alphaToNum): New function.
  10570. * test/ParameterizedStringParserTest.cc: New class.
  10571. * test/AlphaNumberDecoratorTest.cc: New class.
  10572. * test/PStringBuildVisitorTest.cc: New class.
  10573. * test/UtilTest.cc
  10574. (testIsNumber): New function.
  10575. (testIsLowercase): New function.
  10576. (testIsUppercase): New function.
  10577. (testAlphaToNum): New function.
  10578. Added '\n' after the error message
  10579. * src/RequestInfo.h (printDownloadAbortMessage)
  10580. Added auto file renaming feature in http(s)/ftp download.
  10581. * src/main.cc: Added --auto-file-renaming command-line option.
  10582. * src/OptionHandlerFactory.cc
  10583. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10584. * src/RequestGroup.{h, cc}
  10585. (shouldCancelDownloadForSafety): Rewritten
  10586. (tryAutoFileRenaming): New function.
  10587. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10588. * src/HttpResponseCommand.cc
  10589. (executeInternal): Removed the call to RequestGroupMan::
  10590. isSameFileBeingDownloaded()
  10591. * src/FtpNegotiateCommand.cc
  10592. (recvSize): Removed the call to RequestGroupMan::
  10593. isSameFileBeingDownloaded()
  10594. * test/RequestGroupTest.cc: New class.
  10595. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10596. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10597. IO.
  10598. * src/DefaultBtProgressInfoFile.cc
  10599. * src/MetaFileUtil.cc
  10600. * src/SimpleLogger.cc
  10601. * src/SegmentMan.cc
  10602. * src/Util.cc
  10603. * src/Platform.cc
  10604. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10605. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10606. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10607. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10608. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10609. Fixed the bug that prevents file allocation is not done when
  10610. dowloading multi-torrent file.
  10611. * src/AbstractDiskWriter.cc (openFile)
  10612. Increase the maximum number of -j option from 15 to 45.
  10613. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10614. Added fr.po, thanks to Charles Landemaine.
  10615. * po/fr.po
  10616. * po/LINGUAS
  10617. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10618. gcc 3.4.4 support:
  10619. * src/DefaultBtContext.cc: int32_t -> int
  10620. * src/main.cc: int -> int32_t, int32_t -> int
  10621. * src/messageDigest.h: uint32_t -> unsigned int
  10622. * src/NameResolver.h: int32_t -> int
  10623. * src/PeerConnection.cc: int -> int32_t
  10624. * src/SpeedCalc.cc: int32_t -> int
  10625. * src/TrackerUpdateCommand.h: int -> int32_t
  10626. * src/Util.cc: int32_t -> int
  10627. * src/Util.h: int32_t -> int
  10628. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10629. * test/AnnounceListTest.cc: int -> int32_t
  10630. * test/ChunkedEncodingTest.cc: int -> int32_t
  10631. * test/DataTest.cc: int -> int32_t
  10632. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10633. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10634. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10635. * test/FeatureConfigTest.cc: int -> int32_t
  10636. * test/MetalinkEntryTest.cc: int -> int32_t
  10637. * test/MockBtRequestFactory.h: int -> int32_t
  10638. * test/MockPieceStorage.h: int -> int32_t
  10639. * test/OptionTest.cc: int -> int32_t
  10640. * test/RequestTest.cc: int -> int32_t
  10641. * test/SegmentManTest.cc: int -> int32_t
  10642. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10643. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10644. Move sleep functions to Util class:
  10645. * src/Util.cc
  10646. (sleep): New function.
  10647. (usleep): New function.
  10648. * src/DownloadCommand.cc: sleep -> Util::sleep
  10649. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10650. MinGW build enhancements. The following files are added:
  10651. * src/timegm.{c,h}
  10652. Changes to support the above new files:
  10653. * configure.ac
  10654. * src/Makefile.am
  10655. * src/a2time.h
  10656. * src/Util.cc:
  10657. * src/strptime.c: Added support for %Z option.
  10658. Fixed MinGW non-blocking bug.
  10659. * src/SocketCore.cc
  10660. * src/HttpRequestCommand.cc
  10661. Miscellenous build fixes/enhancements.
  10662. * configure.ac: Added summary report.
  10663. * src/Platform.h: Tweaked #include's.
  10664. * src/a2netcompat.h: Tweaked #include's.
  10665. * src/strptime.h: Tweaked #include's.
  10666. * src/gai_strerror.c: Tweaked #include's.
  10667. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10668. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10669. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10670. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10671. Increased the initial connection size in BitTorrent download to 40.
  10672. * src/BtRuntime.h
  10673. Added the usage message of --peer-id-prefix option.
  10674. * src/main.cc
  10675. * Release 0.11.2
  10676. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10677. MessageDigestHelper is introduced in order to simplify the use
  10678. of message digest. Removed repeated code.
  10679. The message digest algorithm is now specified by string, like "sha1",
  10680. "md5".
  10681. * src/messageDigest.{h, cc}
  10682. * src/MessageDigestHelper.{h, cc}: New class.
  10683. * src/DefaultPieceStorage.cc
  10684. * src/DefaultBtContext.{h, cc}
  10685. (computeFastSet): New function.
  10686. (setInfoHash): Added for unit testing.
  10687. (setNumPieces): Added for unit testing.
  10688. * src/DefaultBtInteractive.cc
  10689. * src/BtPieceMessage.cc
  10690. * src/Peer.cc
  10691. * src/Checksum.h
  10692. * src/message.h
  10693. * src/IteratableChecksumValidator.h
  10694. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10695. inside it.
  10696. * src/SegmentMan.{h, cc}
  10697. (checkIntegrity): Removed.
  10698. * src/IteratableChunkChecksumValidator.{h, cc}
  10699. * src/Util.h
  10700. (sha1Sum): Removed.
  10701. (simpleMessageDigest): Removed.
  10702. (fileChecksum): Removed.
  10703. (computeFastSet): Removed.
  10704. * src/ShaVisitor.cc
  10705. * src/ChunkChecksum.h
  10706. * src/DownloadCommand.cc
  10707. Removed messageDigest virtual functions.
  10708. * src/MultiDiskAdaptor.{h, cc}
  10709. * src/DiskAdaptor.h
  10710. * src/ByteArrayDiskWriter.h
  10711. * src/DiskWriter.h
  10712. * src/DiskAdaptorWriter.h
  10713. * src/AbstractSingleDiskAdaptor.{h, cc}
  10714. * src/AbstractDiskWriter.{h, cc}
  10715. Fixed comilation error when message digest is disabled.
  10716. * src/MetalinkEntry.{h, cc}
  10717. * src/MetalinkRequestInfo.cc
  10718. Removed srandom and random.
  10719. * src/SimpleRandomizer.h
  10720. Added size() virtual function to DiskAdaptor
  10721. * src/MultiDiskAdaptor.h
  10722. Fixed the bug that causes that files are not opened correctly in
  10723. multi-file torrent.
  10724. * src/TorrentRequestInfo.cc
  10725. * src/MultiDiskAdaptor.cc
  10726. Added SHA256 support
  10727. * src/messageDigest.cc
  10728. * src/Xml2MetalinkProcessor.cc
  10729. Show supported message digest algorithms
  10730. * src/main.cc
  10731. Updated contact info.
  10732. * src/main.cc
  10733. Applied Ross's patch
  10734. * src/a2netcompat.h
  10735. * src/main.cc
  10736. Fixed the bug that prevents a remote metalink from not being processed
  10737. even if '-o foo.metalink' is specified.
  10738. * src/MetalinkRequestInfo.cc
  10739. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10740. Merged Dan's patch:
  10741. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10742. Use va_copy to avoid core dump on amd64:
  10743. * src/SimpleLogger.cc
  10744. Updated contact info.
  10745. * src/main.cc
  10746. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10747. digest is not available.
  10748. * src/MetalinkEntry.h
  10749. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10750. Make a2netcompat.h include a2io.h to fix compilation error:
  10751. * src/a2netcompat.h
  10752. * src/SocketCore.cc: Removed include of a2io.h
  10753. * src/Util.cc: Removed include of a2io.h
  10754. Gather time related functions to a2time.h:
  10755. * src/a2time.h: New file.
  10756. * src/DefaultPeerStorage.cc
  10757. * src/SimpleLogger.cc
  10758. * src/Util.{h, cc}
  10759. * src/SimpleRandomizer.h
  10760. * src/TimeA2.{h,cc}
  10761. * src/DownloadCommand.cc
  10762. * src/main.cc
  10763. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10764. a2netcompat.h:
  10765. * src/NameResolver.cc
  10766. Fixed compilation error without openssl:
  10767. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10768. Added default block to suppress compiler warnings:
  10769. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10770. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10771. MinGW build enhancements. The following files are added:
  10772. * src/gai_strerror.{c,h}
  10773. * src/gettimeofday.{c,h}
  10774. Changes to support the above new files:
  10775. * configure.ac
  10776. * src/Makefile.am
  10777. * src/a2netcompat.h
  10778. * src/TimeA2.cc
  10779. * src/DefaultPeerStorage.cc
  10780. * src/NameResolver.cc: removed mingw_strerror() function.
  10781. * src/SocketCore.cc: removed mingw_strerror() function.
  10782. Miscellaneous MinGW build fixes.
  10783. * src/a2io.h: Use _lseeki64() instead of lseek()
  10784. * src/common.h
  10785. * src/DefaultFileAllocator.cc
  10786. * src/GlowFileAllocator.cc
  10787. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10788. * src/NameResolver.cc
  10789. (callback): Changed int32_t to int.
  10790. (resolve): Changed int32_t to int.
  10791. * src/Platform.cc
  10792. * src/Platform.h
  10793. * test/MultiDiskWriterTest.cc
  10794. * test/PeerMessageUtilTest.cc
  10795. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10796. Other enhancements and fixes.
  10797. * src/HttpRequestCommand.cc
  10798. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10799. * src/SocketCore.cc:
  10800. (error): New function to abstract errno/WSAGetLastError().
  10801. (errorMsg): New function to abstract errno/WSAGetLastError().
  10802. (initiateSecureConnection): Added more detailed error reporting.
  10803. * src/SocketCore.h: Added private variable blocking, to allow
  10804. proper handling of OpenSSL psuedo-errors.
  10805. * src/message.h
  10806. (EX_SSL_INIT_FAILURE)
  10807. (EX_SSL_IO_ERROR)
  10808. (EX_SSL_PROTOCOL_ERROR)
  10809. (EX_SSL_UNKNOWN_ERROR)
  10810. (EX_SSL_CONNECT_ERROR)
  10811. (EX_SOCKET_BLOCKING)
  10812. (EX_SOCKET_NONBLOCKING)
  10813. (EX_SOCKET_UNKNOWN_ERROR)
  10814. * src/Util.cc
  10815. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10816. reserved name.
  10817. (httpGMT): Fixed typo.
  10818. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10819. Merged Ross's win32 patch(manually)
  10820. In the course of merging, following files are added.
  10821. * src/strptime.{h,c}
  10822. * src/libgen.{h,c}
  10823. * src/inet_aton.{h,c}
  10824. * src/Platform.{h,cc}
  10825. * src/localtime_r.{h,c}
  10826. * src/getaddrinfo.{h,c}
  10827. I've gethered network related things, and put them to following file:
  10828. * src/a2netcompat.h
  10829. Also io related things are put to following file:
  10830. * src/a2io.h
  10831. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10832. * src/message.h
  10833. (MSG_ALLOCATION_COMPLETED)
  10834. (EX_TOO_LARGE_FILE)
  10835. (EX_SIZE_MISMATCH)
  10836. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10837. (EX_INVALID_CHUNK_CHECKSUM)
  10838. (EX_INVALID_RANGE_HEADER)
  10839. * src/FileAllocationCommand.cc
  10840. * src/HttpResponse.cc
  10841. * src/RequestGroup.cc
  10842. * src/MultiDiskAdaptor.cc
  10843. * src/OptionHandlerImpl.h
  10844. * src/HttpResponseCommand.cc
  10845. * src/FtpNegotiateCommand.cc
  10846. * src/IteratableChecksumValidator.cc
  10847. * src/SegmentMan.cc
  10848. * src/ChunkChecksumValidator.cc
  10849. Added Randomizer::getRandomNumber(long int)
  10850. * src/Randomizer.h (getRandomNumber)
  10851. * src/SimpleRandomizer.h (getRandomNumber)
  10852. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10853. * src/Util.cc (randomAlpha): Use this new function.
  10854. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10855. Converted int's to in32_t. long long int's are also converted to
  10856. int64_t
  10857. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10858. Fixed the bug that prevents cookies from being sent to the server
  10859. if the domain of cookie is FQDN and starts with ".".
  10860. * src/Cookie.cc (match)
  10861. To add the ability to change peer id.
  10862. * src/DefaultBtContext.h
  10863. (_peerIdPrefix): New variable
  10864. (setPeerIdPrefix): New function.
  10865. * src/torrentRequestInfo.cc
  10866. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10867. DefaultBtContext.
  10868. * src/main.cc (main): Added peer-id-prefix command-line option.
  10869. The usage message is not added yet.
  10870. * src/DefaultBtContext.cc
  10871. (generatePeerId): Use _peerIdPrefix.
  10872. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10873. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10874. Fixed the bug that prevents filename in content-disposition from
  10875. being retrieved when filename is not quoted.
  10876. * src/Util.cc (getContentDispositionFilename)
  10877. Fixed the bug that causes infinate loop and memory leak when file open
  10878. operation failed.
  10879. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10880. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10881. Fixed the bug that causes segfault when all URIs specified are
  10882. unsupported.
  10883. * src/RequestGroupMan.cc (getInitialCommands)
  10884. Check if RequestGroup::createNextCommand() returns empty list of
  10885. commands.
  10886. * src/RequestGroup.cc (createNextCommand)
  10887. Change log level from info to error so that users can notice that
  10888. an error occurred.
  10889. Fixed the bug that causes segfault when a zero-sized file is
  10890. downloaded.
  10891. * src/BitfieldMan.cc (isAllBitSet)
  10892. Return true if bitfieldLength is 0.
  10893. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. * src/main.cc
  10895. (showUsage): Added 3 usage examples for metalink download.
  10896. Replace MetalinkChunkChecksum with ChunkChecksum.
  10897. * src/MetalinkChunkChecksum.h: Removed.
  10898. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10899. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10900. * src/Xml2MetalinkProcessor.cc
  10901. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10902. * src/MetalinkRequestInfo.cc (execute)
  10903. * Release 0.11.1
  10904. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. Reads URIs from stdin when "-i -" is specified.
  10906. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10907. * src/UriListParser.h, src/UriListParser.cc: New class.
  10908. * src/StreamUriListParser.h: New class.
  10909. * src/FileUriListParser.h: New class.
  10910. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10911. instead of UriFileListParser.
  10912. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10913. Made console readout more readable.
  10914. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10915. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10916. Fix the bug that causes -s option not to work.
  10917. * src/main.cc (main)
  10918. * src/a2algo.h: New file.
  10919. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10920. Create directory structure specified in metalink file.
  10921. * src/RequestGroup.h, src/RequestGroup.cc
  10922. (initAndOpenFile): Create a directory to store files if it does not
  10923. exist.
  10924. (getDir): New function.
  10925. Added ETA and download speed for an individual file to readout.
  10926. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10927. * src/RequestGroup.h
  10928. (calculateDownloadSpeed): New function.
  10929. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10930. Made -S option work with metalink file and provided selective download
  10931. to metalink.
  10932. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10933. (filename): Removed.
  10934. (file): New variable.
  10935. (size): Removed.
  10936. (operator=): Updated.
  10937. (getPath): New function.
  10938. (getLength): New function.
  10939. (toFileEntry): New function.
  10940. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10941. (execute): Use toStream.
  10942. (showFileEntry): Removed.
  10943. * src/MetalinkRequestInfo.h
  10944. (targetFiles): New variable.
  10945. (setTargetFiles): New variable.
  10946. * src/MetalinkRequestInfo.cc
  10947. (execute): Added the ability to print file information included in
  10948. a metalink file.
  10949. Added selective download mode to metalink.
  10950. * src/main.cc
  10951. (showUsage): Updated to denote that -S and --select-file options are
  10952. applicable to metalink.
  10953. * src/FileEntry.h
  10954. (operator=): New function.
  10955. (getBasename): New function.
  10956. (getDirname): New function.
  10957. * src/Util.h, src/Util.cc
  10958. (toStream): New function.
  10959. * src/Xml2MetalinkProcessor.cc: Updated.
  10960. Made aria2 work with metalink with directory structure.
  10961. * src/File.h, src/File.cc
  10962. (getBasename): New function.
  10963. (getDirname): New function.
  10964. * src/RequestGroup.h, src/RequestGroup.cc
  10965. (_topDir): New variable.
  10966. (setTopDir): New function.
  10967. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10968. Rewrote HTTP header parsing with stringstream.
  10969. * src/HttpConnection.h, src/HttpConnection.cc
  10970. (HttpRequestEntry): New class.
  10971. (headerBuf): Removed.
  10972. (headerBufLength): Removed.
  10973. (outstandingHttpRequests): Now its element type is
  10974. HttpRequestEntryHandle.
  10975. (findEndOfHeader): Removed.
  10976. (receiveResponse): Rewritten.
  10977. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10978. Updated doc for -j option to notice that it should be used with -i
  10979. option.
  10980. * src/main.cc (showUsage)
  10981. Removed unused classes.
  10982. * src/RequestInfo.h
  10983. (FileInfo): Removed.
  10984. (checksum): Removed.
  10985. (fileInfo): Removed.
  10986. (setChecksum): Removed.
  10987. (getChecksum): Removed.
  10988. (getFileInfo): Removed.
  10989. Use ISO units.
  10990. * src/ConsoleDownloadEngine.cc
  10991. * src/TorrentConsoleDownloadEngine.cc
  10992. * src/Util.cc (abbrevSize)
  10993. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10994. Added the default listening ports to the help message.
  10995. * src/main.cc (showUsage)
  10996. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10997. Reduce the number of calls to gettimeofday to lower CPU load.
  10998. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10999. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11000. * src/Peer.h (calculateUploadSpeed): New function.
  11001. (calculateDownloadSpeed): New function.
  11002. * src/DefaultPeerStorage.cc
  11003. (CalculateStat): Added _now variable.
  11004. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11005. and Peer::calculateUploadSpeed(const struct timeval&)
  11006. Drop connection if no request or piece message is exchanged in
  11007. a certain interval.
  11008. * src/DefaultBtInteractive.h
  11009. (btRuntime): New variable.
  11010. (inactiveCheckPoint): New variable.
  11011. (checkActiveInteraction): New function.
  11012. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11013. request or piece message is received.
  11014. (checkActiveInteraction): New function.
  11015. (doInteractionProcessing): Call checkActiveInteraction.
  11016. Fixed the bug that causes remote Metalink and Torrent files are not
  11017. processed.
  11018. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11019. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11020. Changed format of log file.
  11021. * src/SimpleLogger.cc
  11022. * Release 0.11.0
  11023. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11024. * src/AbstractCommand.cc
  11025. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11026. MSG_MAX_TRY from error to info.
  11027. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11028. * src/message.h
  11029. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11030. (MSG_DOWNLOAD_ABORTED): Added %s.
  11031. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11032. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11033. * src/PeerAbstractCommand.cc
  11034. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11035. * src/Request.h
  11036. (cookieBox): Made ShardHandle.
  11037. * src/RequestGroup.h, src/RequestGroup.cc
  11038. (createNextCommandWithAdj): New function.
  11039. * src/FileAllocationCommand.cc
  11040. (executeInternal): Use createNextCommandWithAdj().
  11041. * src/CheckIntegrityCommand.cc
  11042. (executeInternal): Use createNextCommandWithAdj().
  11043. Added --load-cookies command-option.
  11044. * src/OptionHandlerFactory.cc
  11045. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11046. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11047. Now aria2 can handle cookie's expiration date.
  11048. * src/Cookie.h (expires): Changed its type to time_t.
  11049. * src/main.cc: Added --load-cookies command-line option.
  11050. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11051. * src/Util.h, src/Util.cc (httpGMT): New function.
  11052. * src/Request.cc (Request): Initialize cookieBox using
  11053. CookieBoxFactory.
  11054. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11055. * src/CookieParser.h, src/CookieParser.cc: New class.
  11056. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11057. * src/HttpResponseCommand.cc
  11058. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11059. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11060. download.
  11061. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11062. Added -j command-line option.
  11063. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11064. * src/main.cc
  11065. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11066. Rewritten using stringstream.
  11067. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11068. Rewritten using stringstream.
  11069. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11070. Make download size shown in MB, KB.
  11071. * src/ConsoleDownloadEngine.h (sendStatistics)
  11072. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11073. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11074. Accept incoming connections if download rate is low.
  11075. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11076. (_lowestSpeedLimit): New variable.
  11077. (setLowestSpeedLimit): New function.
  11078. (execute): Accept incoming connections if download rate is low.
  11079. MAX_PEERS is ignored in this case.
  11080. Disable PREF_OUT in multiple concurrent download:
  11081. * src/RequestGroup.h, src/RequestGroup.cc
  11082. (setUserDefinedFilename): New function.
  11083. * src/DownloadEngineFactory.cc
  11084. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11085. concurrent download.
  11086. * src/DefaultSegmentManFactory.cc
  11087. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11088. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11089. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11090. Added its overloaded method.
  11091. * src/RequestGroup.h
  11092. (_numConcurrentCommand): New variable.
  11093. (setNumConcurrentCommand): New function.
  11094. * src/RequestGroup.cc
  11095. Abort download if same file is being downloaded concurrently.
  11096. * src/RequestGroup.h, src/RequestGroupMan.cc
  11097. (isSameFileBeingDownloaded): New function.
  11098. * src/HttpResponseCommand.cc (executeInternal)
  11099. * src/FtpNegotiateCommand.cc (recvSize)
  11100. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11101. * main.cc: Added help message for -i option.
  11102. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11103. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11104. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11105. * src/MetalinkEntry.h
  11106. (checksum): Changed to ChecksumHandle
  11107. * src/MetalinkRequestInfo.cc
  11108. (checksum): Changed to ChecksumHandle
  11109. * src/File.cc
  11110. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11111. * src/common.h
  11112. (DIR_OPEN_MODE): New definition
  11113. * src/RequestGroup.cc
  11114. (prepareForNextAction): Added an argument.
  11115. * src/message.h
  11116. (MSG_GOOD_CHECKSUM): New definition
  11117. (MSG_BAD_CHECKSUM): New definition
  11118. * src/HttpResponseCommand.cc
  11119. (handleDefaultEncoding): Continue download sequence in new
  11120. non-segmented download.
  11121. * src/FileAllocationEntry.h
  11122. (_nextDownloadCommand): New variable.
  11123. * src/DownloadCommand.cc
  11124. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11125. available.
  11126. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11127. * src/IteratableChecksumValidator.h,
  11128. src/IteratableChecksumValidator.cc: New class.
  11129. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11130. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11131. Change file mode to 666:
  11132. * src/common.h (OPEN_MODE): New definition.
  11133. * src/File.cc
  11134. * src/Util.cc
  11135. * src/Directry.cc
  11136. * src/AbstractDiskWriter.cc
  11137. Change the level of log message "download aborted" to debug:
  11138. * src/PeerAbstractCommand.cc (execute)
  11139. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11140. * src/TrackerWatcherCommand.cc
  11141. (createCommand): Sleep some seconds after request failed.
  11142. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11143. then abort tracker request.
  11144. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11145. * Added the simultaneous download feature.
  11146. * src/main.cc: Print "Exception caught: " when exception is caught.
  11147. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11148. * src/ActivePeerConnectionCommand.cc
  11149. * src/PeerInteractionCommand.cc
  11150. * src/BtRuntime.h
  11151. (cuidCounter): Removed.
  11152. (getNewCuid): Removed.
  11153. * src/DownloadEngineFactory.cc
  11154. * src/PeerListenCommand.cc
  11155. * src/TrackerUpdateCommand.cc
  11156. * src/PeerInitiateConnectionCommand.cc
  11157. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11158. * src/PeerAbstractCommand.cc
  11159. (onAbort): Call PeerStorage::returnPeer()
  11160. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11161. (incomingPeers): New variable.
  11162. (addIncomingPeer): New function.
  11163. (returnPeer): New function.
  11164. (onErasingPeer): New function.
  11165. (addPeer): push_back -> push_front
  11166. (getActivePeers): Rewritten.
  11167. (calculateStat): Rewritten.
  11168. * src/PeerStorage.h
  11169. (TransferStat::copy): New function.
  11170. (TransferStat::TransferStat): New function.
  11171. (TransferStat::operator=): New function.
  11172. (addIncomingPeer): New function.
  11173. (returnPeer): New function.
  11174. * src/PeerListenCommand.cc
  11175. (execute): Use PeerStorage::addIncomingPeer() instead of
  11176. Peer::addPeer().
  11177. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11178. Connect to a peer actively when download speed is lower than specified
  11179. speed in torrent download:
  11180. * src/ActivePeerConnectionCommand.h: New class.
  11181. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11182. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11183. * src/main.cc: Fixed the bug that prevents download if .netrc
  11184. doesn't exist.
  11185. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11186. To cache resolved hostname:
  11187. * src/AbstractCommand.h, src/AbstractCommand.cc
  11188. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11189. Added dns cache.
  11190. * src/FtpInitiateConnectionCommand.cc
  11191. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11192. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11193. NameResolver working without ares.
  11194. * src/TorrentRequestInfo.cc
  11195. (execute): Don't cache dns in torrent download.
  11196. * src/HttpInitiateConnectionCommand.cc
  11197. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11198. * src/DNSCache.h: New class.
  11199. * src/UrlRequestInfo.cc
  11200. (execute): Use dns cache.
  11201. In http request, suppress port number in http request header if port
  11202. is 80 or 443:
  11203. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11204. request header if port is 80 or 443.
  11205. (createProxyRequest): Allways send port number.
  11206. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11207. To add the command-line option which disables netrc support:
  11208. * src/OptionHandlerFactory.cc
  11209. (createOptionHandlers): Added PREF_NO_NETRC.
  11210. * src/main.cc: Added -n option.
  11211. * src/prefs.h (PREF_NO_NETRC): New definition.
  11212. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11213. V_TRUE.
  11214. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11215. is V_FALSE. This may get configurable in the future release.
  11216. To clear peer's error status by time basis:
  11217. * src/PeerAbstractCommand.cc
  11218. (onAbort): Call Peer::startBadCondition().
  11219. * src/Peer.h, src/Peer.cc
  11220. (error): Removed.
  11221. (_badConditionStartTime): New variable.
  11222. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11223. (startBadCondition): New function.
  11224. (isGood): New function.
  11225. * src/DefaultPeerStorage.cc
  11226. (addPeer): Use Peer::isGood().
  11227. (FindFinePeer): Use Peer::isGood().
  11228. Always include port number in http request header:
  11229. * src/HttpRequest.cc (getHostText): Always include port number in
  11230. http request header.
  11231. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11232. To the ability to read options from a config file:
  11233. * src/main.cc: Command-line parameter validation is delegated to
  11234. OptionHandler class.
  11235. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11236. * src/Option.h, src/Option.cc (clear): New function.
  11237. * src/OptionParser.h, src/OptionParser.cc: New class.
  11238. * src/OptionHandler.h: New class.
  11239. * src/NameMatchOptionHandler.h: New class.
  11240. * src/OptionHandlerImpl.h: New classes.
  11241. * src/prefs.h: '_' -> '-'
  11242. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11243. (FTP_PASV): New definition.
  11244. * src/Util.h, src/Util.cc (getRealSize): New function.
  11245. To disable netrc support if .netrc file does not have correct
  11246. permissions:
  11247. * src/File.h, src/File.cc (mode): New function.
  11248. To prevent confidential information to be logged:
  11249. * src/HttpConnection.h, src/HttpConnection.cc
  11250. (eraseConfidentialInfo): New function.
  11251. (sendRequest): Call eraseConfidentialInfo().
  11252. (sendProxyRequest): Call eraseConfidentialInfo().
  11253. * src/main.cc: Validate permissions of .netrc file.
  11254. To add --user-agent command-line option:
  11255. * src/main.cc: Added new command line option: --user-agent
  11256. * src/prefs.h (PREF_USER_AGENT): New definition.
  11257. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11258. parameter to HttpRequest object.
  11259. * src/AbstractProxyRequestCommand.cc
  11260. (executeInternal): Set user-agent option parameter to HttpRequest
  11261. object.
  11262. Marged the patches from Dan Fandrich.
  11263. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11264. Use filename and size from Metalink file instead of sending HEAD
  11265. request:
  11266. * src/UrlRequestInfo.h
  11267. (_filename): New variable.
  11268. (_totalLength): New variable.
  11269. (setTotalLength): New variable.
  11270. (setFilename): New variable.
  11271. * src/MetalinkRequestInfo.cc
  11272. (execute): Set filename and size to UrlRequestInfo
  11273. * src/UrlRequestInfo.cc
  11274. (execute): Use filename and size from Metalink instead of seding
  11275. HEAD request to servers.
  11276. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11277. To add the ability to resume downloading a partially downloaded file
  11278. which is downloaded from the beginning:
  11279. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11280. takes this role.
  11281. * src/main.cc: Added -c option.
  11282. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11283. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11284. * src/prefs.h (PREF_CONTINUE): New definition.
  11285. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11286. * src/DefaultDiskWriter.cc
  11287. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11288. * src/AbstractDiskWriter.h
  11289. (glowFileAllocator): New variable.
  11290. * src/AbstractDiskWriter.cc
  11291. (openExistingFile): Now preallocate file space from the end of the
  11292. existing file if totalLength argument is specified and grater than 0.
  11293. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11294. to download exists in local, continue the download of the file.
  11295. --allow-overwrite=true is assumed in this context.
  11296. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11297. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11298. Throw exception if --check-integrity=true is specified but chunk
  11299. checksums are not provided:
  11300. * src/UrlRequestInfo.cc
  11301. Do not print URLs to stdout:
  11302. * src/UrlRequestInfo.cc
  11303. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11304. * src/Request.h: Use AuthResolver to get authentication information.
  11305. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11306. set to RequestFactory object.
  11307. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11308. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11309. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11310. create Request object.
  11311. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11312. To integrate Netrc into exsiting classes:
  11313. * src/Request.h
  11314. (_userDefinedAuthConfig): New variable.
  11315. (findNetrcAuthenticator): New function.
  11316. (segment): Removed.
  11317. (setUserDefinedAuthConfig): New function.
  11318. (resolveHttpAuthConfigItem): New function.
  11319. (resolveFtpAuthConfigItem): New function.
  11320. (resolveHttpProxyAuthConfigItem): New function.
  11321. * src/HttpRequest.h
  11322. (authConfig): Removed.
  11323. (proxyAuthConfig): Removed.
  11324. (setAuthConfig): Removed.
  11325. (setProxyAuthConfig): Removed.
  11326. * src/UrlRequest.h
  11327. (getHeadResult): Added a parameter: authConfigHandle
  11328. * src/common.h
  11329. (SingletonHolder.h): New include.
  11330. * src/main.cc
  11331. (Netrc.h): New include.
  11332. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11333. Added initial value of PREF_NETRC_PATH.
  11334. Added the initialization of netrc.
  11335. * src/AuthConfig.h: New class.
  11336. * src/prefs.h
  11337. (PREF_NETRC_PATH): New definition.
  11338. * src/HttpAuthConfig.h: Removed.
  11339. * src/Netrc.cc
  11340. (getRequiredNextToken): New function.
  11341. (skipMacdef): New function.
  11342. (parse): Rewritten.
  11343. * src/Netrc.h
  11344. (getRequiredNextToken): New function.
  11345. (skipMacdef): New function.
  11346. * src/Util.h, src/Util.cc
  11347. (getHomeDir): New function.
  11348. * src/TrackerWatcherComand.cc
  11349. (createRequestCommand): Use AuthConfig.
  11350. * src/FtpConnection.cc
  11351. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11352. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11353. * src/Request.cc
  11354. (findNetrcAuthenticator): New function.
  11355. (resolveHttpAuthConfigItem): New function.
  11356. (resolveFtpAuthConfigItem): New function.
  11357. (resolveHttpProxyAuthConfigItem): New function.
  11358. * src/UrlRequestInfo.cc: Use AuthConfig.
  11359. * src/HttpRequest.cc
  11360. (createRequest): Use authConfig.
  11361. (getProxyAuthString): Use authConfig.
  11362. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11363. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11364. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11365. To reduce overhead to find commands whose socket is either
  11366. readable or writable in the download engine loop:
  11367. * src/Command.h, src/Command.cc
  11368. (STATUS): New enum.
  11369. (status): New variable.
  11370. (statusMatch): New function.
  11371. (setStatusActive): New function.
  11372. (setStatusInactive): New function.
  11373. * src/DownloadEngine.h, src/DownloadEngine.cc
  11374. (executeCommand): New function.
  11375. (run): Simplified.
  11376. (waitData): Call Command::setStatusActive() when command's socket is
  11377. readable or writable.
  11378. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11379. To handle Segment as SegmentHandle:
  11380. * src/AbstractCommand.cc (execute): Rewritten.
  11381. * src/SegmentMan.h: Segment -> SegmentHandle
  11382. Introducded HttpResponse class, HttpRequest class to improve code
  11383. extensiveness and make it clear:
  11384. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11385. HttpResponse class.
  11386. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11387. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11388. * src/HttpConnection.cc: Contruction of http request were moved to
  11389. HttpRequest class.
  11390. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11391. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11392. * src/HttpAuthConfig.h: New class.
  11393. * src/Range.h: New class.
  11394. To make FtpTunnel{Request, Response}Command and
  11395. HttpProxy{Request, Response}Command derived from
  11396. AbstractProxy{Request, Response}Command:
  11397. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11398. Derived from AbstractProxyRequestCommand class.
  11399. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11400. Derived from AbstractProxyResponseCommand class.
  11401. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11402. Derived from AbstractProxyRequestCommand class.
  11403. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11404. Derived from AbstractProxyResponseCommand class.
  11405. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11406. : New class.
  11407. * src/AbstractProxyResponseCommand.h,
  11408. src/AbstractProxyResponseCommand.cc: New class.
  11409. To add netrc support:
  11410. * src/Netrc.h, src/Netrc.cc: New class.
  11411. * src/Util.h, src/Util.cc (split): New function.
  11412. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11413. "Content-Range" header instead of "Range" header.
  11414. * src/HttpHeader.h
  11415. (getStatus): Removed.
  11416. (setStatus): Removed.
  11417. * src/Segment.h
  11418. (getPositionToWrite): New function.
  11419. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11420. * src/HttpHeader.h
  11421. (Range.h): New include.
  11422. (status): New variable.
  11423. (HttpHeader): Initialized status with 0.
  11424. (getStatus): New function.
  11425. (setStatus): New function.
  11426. (getRange): New function.
  11427. (HttpHeaderHandle): New function.
  11428. * src/HttpHeader.cc
  11429. (getRange): New function.
  11430. * src/Request.h
  11431. (RequestWeakHandle): New definition.
  11432. * src/HttpConnection.h
  11433. (HttpConnectionHandle): New type definition.
  11434. * src/HttpConnection.cc
  11435. (receiveResponse): Set HTTP status to headers.
  11436. * src/main.cc
  11437. (showUsage): Fixed typo.
  11438. * src/Segment.h
  11439. (SegmentHandle): New type definition.
  11440. * src/BitfieldMan.h
  11441. (getMissingUnusedLength): New function.
  11442. * src/BitfieldMan.cc
  11443. (getMissingUnusedLength): New function.
  11444. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11445. To fix static initialization order problem:
  11446. * src/BitfieldManFactory.h
  11447. (defaultRandomizer): Removed.
  11448. (factory): New variable.
  11449. (getNewFactory): Removed.
  11450. (getFactoryInstance): New function.
  11451. (setDefaultRandomizer): Rewritten.
  11452. (getDefaultRandomizer): Rewritten.
  11453. * src/BitfieldManFactory.cc
  11454. (defaultRandomizer): Removed.
  11455. (factory): Initialized to 0.
  11456. (BitfieldManFactory): Initialized randomizer to 0.
  11457. * src/DefaultPieceStorage.cc
  11458. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11459. * src/Peer.cc
  11460. (Peer): getNewFactory() -> getFactoryInstance()
  11461. * src/SegmentMan.cc
  11462. (initBitfield): getNewFactory() -> getFactoryInstance()
  11463. * src/Piece.cc
  11464. (Piece): getNewFactory() -> getFactoryInstance()
  11465. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11466. To fix the bug that causes crash on Max OS X:
  11467. * src/SimpleRandomizer.h
  11468. (getInstance): Create new instance if the static variable is null.
  11469. * src/SimpleRandomizer.cc
  11470. (randomizer): Initialized to 0.
  11471. * src/BitfieldManFactory.h
  11472. (getNewFactory): Removed the call to setRandomizer().
  11473. To fix the miscalculation of the range of checksum:
  11474. * src/BitfieldMan.h
  11475. (isBitSetOffsetRange): New function.
  11476. * src/BitfieldMan.cc
  11477. (isBitSetOffsetRange): New function.
  11478. * src/SegmentMan.cc
  11479. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11480. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11481. * Release 0.10.1
  11482. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11483. To lower CPU usage in BitTorrent download when --max-upload-limit
  11484. command-line option specified:
  11485. * src/DefaultBtMessageDispatcher.cc
  11486. (sendMessages): Calculate uploading speed only when current message
  11487. is uploading data and is not sent yet.
  11488. * src/DefaultPeerStorage.h
  11489. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11490. * src/HttpResponseCommand.cc
  11491. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11492. This fixes compile error in Soralis 10.
  11493. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11494. To fix segfault in Metalink download:
  11495. * src/UrlRequestInfo.h
  11496. (filename): Removed.
  11497. (totalLength): Removed.
  11498. (setTotalLength): Removed.
  11499. (setFilename): Removed.
  11500. * src/MetalinkRequestInfo.cc
  11501. (execute): Do not set filename and totalLength to reqInfo.
  11502. Set chunk checksum to reqInfo if it is not null.
  11503. * src/HttpResponseCommand.cc
  11504. (executeInternal): Fixed filename in log.
  11505. (handleDefaultEncoding): Removed the call to initBitfield() and
  11506. markAllPiecesDone().
  11507. (handleOtherEncoding): Added HEAD method handling.
  11508. * src/FtpNegotiateCommand.cc
  11509. (executeInternal): Added SEQ_HEAD_OK handling.
  11510. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11511. return false.
  11512. * src/FtpNegotiateCommand.h
  11513. (SEQ_HEAD_OK): New definition.
  11514. * src/SegmentMan.cc
  11515. (initBitfield): Delete bitfield.
  11516. (isChunkChecksumValidationReady): Fixed the condition.
  11517. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11518. works fine.
  11519. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11520. * src/Xml2MetalinkProcessor.h
  11521. (xpathExists): New function.
  11522. * src/Xml2MetalinkProcessor.cc
  11523. (xpathExists): New function.
  11524. Not to send HEAD request if filename and size are available in Metalink
  11525. file:
  11526. * src/UrlRequestInfo.h
  11527. (filename): New variable.
  11528. (totalLength): New variable.
  11529. (setTotalLength): New function.
  11530. (setFilename): New function.
  11531. * src/MetalinkRequestInfo.cc
  11532. (execute): Set filename and size to UrlRequestInfo.
  11533. * src/MetalinkEntry.cc
  11534. (MetalinkEntry): Initialize size with 0.
  11535. * src/UrlRequestInfo.cc
  11536. (execute): Set filename and size to SegmentMan.
  11537. Not to download rest of the files after selected files are downloaded
  11538. in BitTorrent:
  11539. * src/PieceStorage.h
  11540. (allDownloadFinished): New function.
  11541. * src/DefaultBtAnnounce.cc
  11542. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11543. downloadFinished.
  11544. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11545. * src/DefaultPieceStorage.cc
  11546. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11547. Commented out the call to finishSelectiveDownloadingMode().
  11548. (downloadFinished): Call isFilteredAllBitSet() instead of
  11549. isAllBitSet().
  11550. (allDownloadFinished): New function.
  11551. * src/DefaultBtInteractive.cc
  11552. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11553. downloadFinished().
  11554. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11555. * src/TorrentDownloadEngine.cc
  11556. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11557. * src/BitfieldMan.h
  11558. (isFilteredAllBitSet): New function.
  11559. * src/ShareRatioSeedCriteria.h
  11560. (PieceStorage.h): New include.
  11561. (pieceStorage): New variable.
  11562. (evaluate):
  11563. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11564. * src/BitfieldMan.cc
  11565. (isFilteredAllBitSet): New function.
  11566. (isAllBitSet): Filter is not took into account.
  11567. Rename --force-truncate as --allow-overwrite:
  11568. * src/TorrentRequestInfo.cc
  11569. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11570. * src/main.cc
  11571. (showUsage): --force-truncate -> --allow-overwrite
  11572. * src/message.h
  11573. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11574. * src/prefs.h
  11575. (PREF_FORCE_TRUNCATE): Removed.
  11576. (PREF_ALLOW_OVERWRITE): New definition.
  11577. * src/SegmentMan.cc
  11578. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11579. * src/MetalinkRequestInfo.cc
  11580. (execute): Queueing message are now logged in info level.
  11581. * src/common.h
  11582. (LONG_LONG_MAX): Removed.
  11583. (LONG_LONG_MIN): Removed.
  11584. * src/HttpResponseCommand.cc
  11585. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11586. * src/FtpNegotiateCommand.cc
  11587. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11588. * src/main.cc
  11589. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11590. command-line option.
  11591. (main): Added --check-integriy and --realtime-chunk-checksum
  11592. command-line option.
  11593. --force-truncate -> --allow-overwrite
  11594. Set initial value of --check-integrity option to false.
  11595. Don't show usage when error occurs while persing command-line options.
  11596. Removed deprecated --upload-limit option.
  11597. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11598. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11599. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11600. * src/BtAllowedFastMessage.cc:
  11601. * src/BtBitfieldMessage.cc
  11602. * src/BtCancelMessage.cc
  11603. * src/BtChokeMessage.cc
  11604. * src/BtHaveAllMessage.cc
  11605. * src/BtHaveMessage.cc
  11606. * src/BtHaveNoneMessage.cc
  11607. * src/BtInterestedMessage.cc
  11608. * src/BtNotInterestedMessage.cc
  11609. * src/BtPieceMessage.cc
  11610. * src/BtPortMessage.cc
  11611. * src/BtRejectMessage.cc
  11612. * src/BtRequestMessage.cc
  11613. * src/BtSuggestPieceMessage.cc
  11614. * src/BtUnchokeMessage.cc
  11615. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11616. files are affected.
  11617. * src/ChunkChecksumValidator.cc
  11618. * src/SegmentMan.cc
  11619. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11620. To add chunk checksum validation:
  11621. * src/MetalinkEntry.h
  11622. (MetalinkChunkChecksum.h): New include.
  11623. (chunkChecksum): New variable.
  11624. * src/Request.h
  11625. (method): New variable.
  11626. (setMethod): New function.
  11627. (getMethod): New function.
  11628. (METHOD_GET): New static constant.
  11629. (METHOD_HEAD): New static constant.
  11630. * src/Xml2MetalinkProcessor.h
  11631. (getPieceHash): New function.
  11632. * src/PieceStorage.h
  11633. (markAllPiecesDone): New function.
  11634. (checkIntegrity): New function.
  11635. * src/FileAllocator.h
  11636. (NullFileAllocationMonitor.h): New include.
  11637. (FileAllocator): Initialize fileAllocationMonitor with new
  11638. NullFileAllocationMonitor().
  11639. * src/MultiDiskAdaptor.h
  11640. (messageDigest.h): Remove include.
  11641. (ctx): Removed.
  11642. (hashUpdate): Added ctx.
  11643. (MultiDiskAdaptor): Removed ctx.
  11644. (sha1Sum): Renamed as messageDigest.
  11645. (messageDigest): New function.
  11646. * src/UrlRequestInfo.h
  11647. (HeadResult): New class.
  11648. (digestAlgo): New variable.
  11649. (chunkChecksumLength): New variable.
  11650. (chunkChecksums): New variable.
  11651. (getHeadResult): New function.
  11652. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11653. (setDigestAlgo): New function.
  11654. (setChunkChecksumLength): New function.
  11655. (setChunkChecksums): New function.
  11656. * src/DefaultPieceStorage.cc
  11657. (DiskAdaptorWriter.h): New include.
  11658. (ChunkChecksumValidator.h): New include.
  11659. (markAllPiecesDone): New function.
  11660. (checkIntegrity): New function.
  11661. * src/DefaultBtContext.h
  11662. (getPieceHashes): New function.
  11663. * src/TorrentRequestInfo.cc
  11664. (execute): Try to validate chunk checksum if file already exists and
  11665. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11666. * src/messageDigest.h
  11667. (~MessageDigestContext): Added digestFree().
  11668. * src/MetalinkRequestInfo.cc
  11669. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11670. * src/DiskAdaptor.h
  11671. (messageDigest.h): New include.
  11672. (sha1Sum): Renamed as messageDigest.
  11673. (messageDigest): New function.
  11674. * src/DownloadCommand.h
  11675. (PeerStat.h): New include.
  11676. (maxDownloadSpeedLimit): New variable.
  11677. (startupIdleTime): New variable.
  11678. (lowestDownloadSpeedLimit): New variable.
  11679. (peerStat): New variable.
  11680. (setMaxDownloadSpeedLimit): New function.
  11681. (setStartupIdleTime): New function.
  11682. (setLowestDownloadSPeedLimit): New function.
  11683. * src/BtContext.h
  11684. (getPieceHashes): New function.
  11685. * src/main.cc
  11686. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11687. option to true for testing purpose.
  11688. * src/BtPieceMessage.cc
  11689. (checkPieceHash): Use messageDigest
  11690. * src/DownloadEngine.cc
  11691. (SetDescriptor): Removed.
  11692. (AccumulateActiveCommand): Removed.
  11693. (waitData): Rewritten.
  11694. (updateFdSet): Rewritten.
  11695. * src/MultiDiskAdaptor.cc
  11696. (hashUpdate): Added ctx.
  11697. (sha1Sum): Renamed as messageDigest.
  11698. (messageDigest): New function.
  11699. * src/BitfieldMan.h
  11700. (isBitRangeSet): New function.
  11701. (unsetBitRange): New function.
  11702. * src/ByteArrayDiskWriter.h
  11703. (sha1Sum): Renamed as messageDigest.
  11704. (messageDigest): New function.
  11705. * src/ConsoleDownloadEngine.cc
  11706. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11707. * src/DiskWriter.h
  11708. (messageDigest.h): New include.
  11709. (sha1Sum): Renamed as messageDigest.
  11710. (messageDigest): New function.
  11711. * src/ChunkChecksumValidator.h: New class.
  11712. * src/DiskAdaptorWriter.h: New class.
  11713. * src/prefs.h
  11714. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11715. (PREF_CHECK_INTEGRITY): New definition.
  11716. * src/HttpResponseCommand.cc
  11717. (handleDefaultEncoding): Added method "HEAD" handling.
  11718. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11719. (handleOtherEncoding):
  11720. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11721. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11722. startupIdleTime, lowestDownloadSpeedLimit to command.
  11723. * src/SegmentMan.h
  11724. (getSegmentEntryByIndex): New function.
  11725. (getSegmentEntryByCuid): New function.
  11726. (getSegmentEntryIteratorByCuid): New function.
  11727. (diskWriter): DiskWriter -> DiskWriterHandle
  11728. (pieceHashes): New variable.
  11729. (chunkHashLength): New variable.
  11730. (digestAlgo): New variable.
  11731. (FindPeerStat): Removed.
  11732. (getPeerStat): Rewritten.
  11733. (markAllPiecesDone): New function.
  11734. (checkIntegrity): New function.
  11735. (tryChunkChecksumValidation): New function.
  11736. (isChunkChecksumValidationReady): New function.
  11737. * src/BitfieldMan.cc
  11738. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11739. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11740. blocks to 0.
  11741. (isBitRangeSet): New function.
  11742. (unsetBitRange): New function.
  11743. * src/FtpNegotiateCommand.cc
  11744. (executeInternal): Set maxDownloadSpeedLimit,
  11745. startupIdleTime, lowestDownloadSpeedLimit to command.
  11746. (recvSize): Added method "HEAD" handling.
  11747. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11748. * src/AbstractSingleDiskAdaptor.cc
  11749. (sha1Sum): Renamed as messageDigest.
  11750. (messageDigest): New function.
  11751. * src/AbstractSingleDiskAdaptor.h
  11752. (sha1Sum): Renamed as messageDigest.
  11753. (messageDigest): New function.
  11754. * src/Util.h
  11755. (indexRange): New function.
  11756. * src/MetalinkEntry.cc
  11757. (MetalinkEntry): Initialized chunkChecksum to 0.
  11758. * src/ShaVisitor.cc
  11759. (~ShaVisitor): Removed the call to ctx.digestFree().
  11760. * src/SegmentMan.cc
  11761. (ChunkChecksumValidator.h): New include.
  11762. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11763. to DIGEST_ALGO_SHA1.
  11764. (~SegmentMan): Removed diskWriter.
  11765. (FindSegmentEntryByIndex): Removed.
  11766. (FindSegmentEntryByCuid): Removed.
  11767. (checkoutSegment): Rewritten.
  11768. (findSlowerSegmentEntry): Rewritten.
  11769. (getSegment): Rewritten.
  11770. (updateSegment): Rewritten.
  11771. (completeSegment): Rewritten.
  11772. (markAllPiecesDone): New function.
  11773. (checkIntegrity): New function.
  11774. (isChunkChecksumValidationReady): New function.
  11775. (tryChunkChecksumValidation): New function.
  11776. * src/Xml2MetalinkProcessor.cc
  11777. (getEntry): Get size and set it to entry.
  11778. Get chunk checksum and set it to entry.
  11779. (getPieceHash): New function.
  11780. * src/Util.cc
  11781. (sha1Sum): Removed ctx.digestFree()
  11782. (fileChecksum): Removed ctx.digestFree()
  11783. (indexRange): New function.
  11784. * src/Request.cc
  11785. (METHOD_GET): New variable.
  11786. (METHOD_HEAD): New variable.
  11787. (Request): Added method.
  11788. * src/UrlRequestInfo.cc
  11789. (FatalException.h): New include.
  11790. (message.h): New include.
  11791. (operator<<): Added operator<< for class HeadResult.
  11792. (getHeadResult): New function.
  11793. (execute): Get filename and size in separate download engine.
  11794. * src/ChunkChecksumValidator.cc: New class.
  11795. * src/DownloadCommand.cc:
  11796. (DownloadCommand): Added peerStat.
  11797. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11798. the value from Option.
  11799. The buffer size is now 16KB.
  11800. Use peerStat member instead of getting it from SegmentMan.
  11801. Use startupIdleTime member instead of gettingit from Option.
  11802. Added chunk checksum validation.
  11803. * src/AbstractDiskWriter.cc
  11804. (AbstractDiskWriter): Removed ctx.
  11805. (~AbstractDiskWriter): Removed ctx.digestFree()
  11806. (writeDataInternal): Returns the return value of write.
  11807. (readDataInternal): Returns the return value of read.
  11808. (sha1Sum): Renamed as messageDigest
  11809. (messageDigest): New function.
  11810. * src/AbstractDiwkWriter.h
  11811. (messageDigest.h): Removed include.
  11812. (ctx): Removed.
  11813. (sha1Sum): Renamed as messageDigest
  11814. (messageDigest): New function.
  11815. * src/DefaultPieceStorage.h
  11816. (markAllPiecesDone): New function.
  11817. (checkIntegrity): New function.
  11818. * src/NullFileAllocationMonitor.h: New class.
  11819. * src/MetalinkChunkChecksum.h: New class.
  11820. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11821. To decrease CPU usage in bittorrent download, calculation results in
  11822. BitfieldMan were cached and realtime fetching PeerObject was removed
  11823. with WeakHandle introduced. Option values are set to the objects
  11824. by setter before download begins.
  11825. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11826. * src/DefaultBtRequestFactory.h
  11827. (dispatcher): BtMessageDispatcherHandle ->
  11828. BtMessageDispatcherWeakHandle.
  11829. (messageFactory): New variable.
  11830. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11831. BtMessageDispatcherWeakHandle.
  11832. (setBtMessageFactory): New function.
  11833. * src/DefaultBtMessageDispatcher.cc:
  11834. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11835. from Option.
  11836. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11837. feating the value from Option.
  11838. Use messageFactory member.
  11839. * src/PeerInteractionCommand.cc
  11840. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11841. Add reverse dependencies to factory object.
  11842. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11843. dispatcher.
  11844. Set messageFactory to receiver.
  11845. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11846. btInteractive.
  11847. Set receiver to peerObject.
  11848. Set maxDownloadSpeedLimit to this.
  11849. (executeInternal): Use maxDownloadSpeedLimit member.
  11850. * src/BtChokeMessage.cc
  11851. (doReceivedAction): Use dispatcher, requestFactory member.
  11852. (onSendComplete): Use dispatcher member.
  11853. * src/PeerInteractionCommand.h
  11854. (maxDownloadSpeedLimit): New variable.
  11855. * src/DefaultBtMessageReceiver.h
  11856. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11857. (dispatcher):
  11858. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11859. (messageFactory): New variable.
  11860. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11861. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11862. (setDispatcher):
  11863. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11864. (setBtMessageFactory): New function.
  11865. * src/DefaultBtInteractive.cc
  11866. (initiateHandshake): Use messageFactory member.
  11867. (addBitfieldMessageToQueue): Use messageFactory member.
  11868. (addAllowedFastMessageToQueue): Use messageFactory member.
  11869. (decideChoking): Use messageFactory member.
  11870. (checkHave): Use messageFactory member.
  11871. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11872. (receiveMessages): Use maxDownloadSpeedLimit member.
  11873. (decideInterest): Use messageFactory member.
  11874. * src/BtRequestMessage.cc
  11875. (doReceivedAction): Use messageFactory, dispatcher member.
  11876. (onQueued): Use dispatcher member.
  11877. * src/BtPieceMessage.cc
  11878. (doReceivedAction): Use dispatcher member.
  11879. (send): Use peerConnection member.
  11880. (onWrongPiece): Use requestFactory member.
  11881. (handleChokingEvent): Use messageFactory, dispatcher member.
  11882. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11883. * src/BtMessageDispatcher.h
  11884. (BtMessageDispatcherWeakHandle): New type definition.
  11885. * src/SimpleBtMessage.cc
  11886. (send): Use peerConnection member.
  11887. * src/BtRejectMessage.cc
  11888. (doReceivedAction): Use dispatcher member.
  11889. * src/DefaultBtMessageDispatcher.h
  11890. (Option.h): Removed include.
  11891. (messageFactory): New variable.
  11892. (option): Removed.
  11893. (maxUploadSpeedLimit): New variable.
  11894. (requestTimeout): New variable.
  11895. (DefaultBtMessageDispatcher): Removed option.
  11896. Added maxUploadSpeedLimit, requestTimeout.
  11897. (setOption): Removed.
  11898. (getOption): Removed.
  11899. (setMaxUploadSpeedLimit): New function.
  11900. (setRequestTimeout): New function.
  11901. (setBtMessageFactory): New function.
  11902. * src/DefaultBtInteractive.h
  11903. (btMessageReceiver):
  11904. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11905. (dispatcher):
  11906. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11907. (btRequestFactory):
  11908. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11909. (peerConnection):
  11910. PeerConnectionHandle -> PeerConnectionWeakHandle
  11911. (messageFactory): New variable.
  11912. (option): Removed.
  11913. (keepAliveInterval): New variable.
  11914. (maxDownloadSpeedLimit): New variable.
  11915. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11916. (setBtMessageReceiver):
  11917. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11918. (setDispatcher):
  11919. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11920. (setBtRequestFactory):
  11921. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11922. (setPeerConnection):
  11923. PeerConnectionHandle -> PeerConnectionWeakHandle
  11924. (setOption): Removed.
  11925. (setKeepAliveInterval): New function.
  11926. (setMaxDownloadSpeedLimit): New function.
  11927. (setBtMessageFactory): New function.
  11928. * src/BitfieldMan.h
  11929. (cachedNumMissingBlock): New variable.
  11930. (cachedNumFilteredBlock): New variable.
  11931. (cachedCompletedLength): New variable.
  11932. (cachedFilteredComletedLength): New variable.
  11933. (cachedFilteredTotalLength): New variable.
  11934. (countMissingBlockNow): New function.
  11935. (countFilteredBlockNow): New function.
  11936. (getFilteredTotalLengthNow): New function.
  11937. (getCompletedLengthNow): New function.
  11938. (getFilteredCompletedLengthNow): New function.
  11939. (updateCache): New function.
  11940. * src/AbstractBtMessage.h
  11941. (BtMessageDispatcher.h): New include.
  11942. (PeerConnection.h): New include.
  11943. (BtRequestFactory.h): New include
  11944. (BtMessageFactory.h): New include.
  11945. (dispatcher): New variable.
  11946. (messageFactory): New variable.
  11947. (peerConnection: New variable.
  11948. (setBtMessageDispatcher): New function.
  11949. (setPeerConnection): New function.
  11950. (setBtMessageFactory): New function.
  11951. (setBtRequestFactory): New function.
  11952. * src/DefaultBtMessageFactory.cc
  11953. (setCommonProperty): Set dispatcher, requestFactory, this,
  11954. peerConnection to msg.
  11955. * src/BtRegistry.h
  11956. (BT_MESSAGE_RECEIVER): New macro.
  11957. * src/PeerConnection.h
  11958. (PeerConnectionWeakHandle): New type definition.
  11959. * src/BtMessageFactory.h
  11960. (BtMessageFactoryWeakHandle): New type definition.
  11961. * src/BitfieldMan.cc
  11962. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11963. cachedCompletedLength, cachedFilteredComletedLength,
  11964. cachedFilteredTotalLength.
  11965. Call updateCache().
  11966. (countMissingBlock): Return cachedNumMissingBlock.
  11967. (countMissingBlockNow): New function.
  11968. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11969. (countFilteredBlockNow): New function.
  11970. (setBit): Call updateCache().
  11971. (unsetBit): Call updateCache().
  11972. (setBitfield): Call updateCache().
  11973. (clearAllBit): Call updateCache().
  11974. (setAllBit): Use setBitInternal instead of setBit.
  11975. Call updateCache().
  11976. (addFilter): Call updateCache().
  11977. (enableFilter): Call updateCache().
  11978. (disableFilter): Call updateCache().
  11979. (clearFilter): Call updateCache().
  11980. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11981. (getFilteredTotalLengthNow): New function.
  11982. (getCompletedLength): Return cachedCompletedLength.
  11983. (getCompletedLengthNow): New function.
  11984. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11985. (getFilteredCompletedLengthNow): New function.
  11986. (updateCache): New function.
  11987. * src/BtMessageReceiver.h
  11988. (BtMessageReceiverWeakHandle): New type definition.
  11989. * src/DefaultBtMessageReceiver.cc
  11990. (receiveHandshake): Use messageFactory member.
  11991. (sendHandshake): Use messageFactory member.
  11992. (receiveMessage): Use messageFactory member.
  11993. * src/DefaultBtMessageFactory.h
  11994. (dispatcher): New variable.
  11995. (requestFactory): New variable.
  11996. (peerConnection): New variablle.
  11997. (setBtMessageDispatcher): New function.
  11998. (setBtRequestFactory): New function.
  11999. (setPeerConnection): New function.
  12000. * src/SharedHandle.h
  12001. (RefCount): New class.
  12002. (WeakHandle): New class.
  12003. * src/PeerObject.h
  12004. (BtMessageReceiver.h): New include.
  12005. (PeerObject): Added btMessageReceiver.
  12006. (btMessageReceiver): New variable.
  12007. * src/Util.cc
  12008. (countBit): Simplified.
  12009. * src/BtCancelMessage.cc
  12010. (doReceivedAction): Use dispatcher member.
  12011. * src/BtRequestFactory.h
  12012. (BtRequestFactoryWeakHandle): New type definition.
  12013. * src/PeerStorage.h
  12014. (downloadSpeed): int -> uint32_t
  12015. (uploadSpeed): int -> uint32_t
  12016. (sessionDownloadLength): long long int -> uint64_t
  12017. (sessionUploadLength): long long int -> uint64_t
  12018. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12019. To add RecoverableException, FatalException:
  12020. * src/AbstractCommand.cc
  12021. (onAbort): Exception -> RecoverableException
  12022. * src/PeerAbstractCommand.h
  12023. (RecoverableException.h): New include.
  12024. (onAbort): Exception -> RecoverableException.
  12025. * src/PeerInteractionCommand.cc
  12026. (onAbort): Exception -> RecoverableException.
  12027. * src/PeerAbstractCommand.cc
  12028. (execute): Exception -> RecoverableException.
  12029. (onAbort): Exception -> RecoverableException.
  12030. * src/TorrentRequestInfo.cc
  12031. (execute): Exception -> RecoverableException.
  12032. * src/MetalinkRequestInfo.cc
  12033. (execute): Exception -> RecoverableException.
  12034. * src/MetaFileUtil.cc: RecoverableException.
  12035. * src/AbstractCommand.h
  12036. (onAbort): Exception -> RecoverableException.
  12037. * src/DlRetryEx.h: Exception -> RecoverableException.
  12038. * src/DlAbortEx.h: Exception -> RecoverableException.
  12039. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12040. * src/Util.cc: Exception -> RecoverableException.
  12041. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12042. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12043. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12044. To make ID static const int
  12045. * src/BtInterestedMessage.h
  12046. (ID_t): Removed.
  12047. (ID): New variable.
  12048. (getId): Made non-const.
  12049. * src/BtPieceMessage.h
  12050. (ID_t): Removed.
  12051. (ID): New variable.
  12052. (getId): Made non-const.
  12053. * src/BtChokeMessage.h
  12054. (ID_t): Removed.
  12055. (ID): New variable.
  12056. (getId): Made non-const.
  12057. * src/BtHaveAllMessage.h
  12058. (ID_t): Removed.
  12059. (ID): New variable.
  12060. (getId): Made non-const.
  12061. * src/BtKeepAliveMessage.h
  12062. (ID_t): Removed.
  12063. (ID): New variable.
  12064. (getId): Made non-const.
  12065. * src/BtHandshakeMessage.h
  12066. (ID): New variable.
  12067. (getId): Made non-const.
  12068. * src/BtSuggestPieceMessage.h
  12069. (ID_t): Removed.
  12070. (ID): New variable.
  12071. (getId): Made non-const.
  12072. * src/BtPortMessage.h
  12073. (ID_t): Removed.
  12074. (ID): New variable.
  12075. (getId): Made non-const.
  12076. * src/AbstractBtMessage.h
  12077. (id): Removed.
  12078. (AbstractBtMessage): Removed id.
  12079. (getId): Removed.
  12080. * src/BtHaveMessage.h
  12081. (ID_t): Removed.
  12082. (ID): New variable.
  12083. (getId): Made non-const.
  12084. * src/BtAllowedFastMessage.h
  12085. (ID_t): Removed.
  12086. (ID): New variable.
  12087. (getId): Made non-const.
  12088. * src/BtCancelMessage.h
  12089. (ID_t): Removed.
  12090. (ID): New variable.
  12091. (getId): Made non-const.
  12092. * src/BtNotInterestedMessage.h
  12093. (ID_t): Removed.
  12094. (ID): New variable.
  12095. (getId): Made non-const.
  12096. * src/BtChokeMessage.h
  12097. (ID_t): Removed.
  12098. (ID): New variable.
  12099. (getId): Made non-const.
  12100. * src/BtRejectMessage.h
  12101. (ID_t): Removed.
  12102. (ID): New variable.
  12103. (getId): Made non-const.
  12104. * src/BtBitfieldMessage.h
  12105. (ID_t): Removed.
  12106. (ID): New variable.
  12107. (getId): Made non-const.
  12108. * src/BtUnchokeMessage.h
  12109. (ID_t): Removed.
  12110. (ID): New variable.
  12111. (getId): Made non-const.
  12112. * src/BtRequestMessage.h
  12113. (ID_t): Removed.
  12114. (ID): New variable.
  12115. (getId): Made non-const.
  12116. * src/BtHaveMessage.h
  12117. (ID_t): Removed.
  12118. (ID): New variable.
  12119. (getId): Made non-const.
  12120. To add --force-truncate command-line option and a check whether
  12121. the file already exists:
  12122. * src/DirectDiskAdaptor.h
  12123. (getFilePath): Made virtual public.
  12124. * src/MultiDiskAdaptor.h
  12125. (File.h): New include.
  12126. (DiskWriterEntry::fileEntry): Made private.
  12127. (DiskWriterEntry::fileExists): New function.
  12128. (DiskWriterEntry::getFileEntry): New function.
  12129. (fileExists): New function.
  12130. (getFilePath): New function.
  12131. * src/TorrentRequestInfo.cc
  12132. (FatalException.h): New include.
  12133. (message.h): New include.
  12134. (RecoverableException.h): New include.
  12135. (execute): Added a check whether file is already exists or not.
  12136. * src/DiskAdaptor.h
  12137. (fileExists): New function.
  12138. (getFilePath): New function.
  12139. * src/main.cc
  12140. (showUsage): Added an explanation of --force-truncate command-line
  12141. option.
  12142. (main): Added --force-truncate command-line option.
  12143. * src/Exception.h
  12144. (setMsg): buf[256] -> buf[1024]
  12145. * src/CopyDiskWriter.h
  12146. (getFilePath): Made public virtual.
  12147. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12148. (fileExists): New function.
  12149. * src/DownloadEngineFactory.cc
  12150. (newTorrentConsoleEngine): Don't open file here.
  12151. * src/message.h
  12152. (EX_FILE_ALREADY_EXISTS): New definition.
  12153. * src/prefs.h
  12154. (PREF_FOECE_TRUNCATE): New definition.
  12155. * src/HttpResponseCommand.cc
  12156. (handleDefaultEncoding): Added a check whether the file already exists.
  12157. * src/SegmentMan.h
  12158. (fileExists): New function.
  12159. (shouldCancelDownloadForSafety): New function.
  12160. * src/FtpNegotiateCommand.cc
  12161. (recvSize): Added a check whether the file already exists.
  12162. * src/AbstractSingleDiskAdaptor.cc
  12163. (File.h): New include.
  12164. (fileExists): New function.
  12165. * src/AbstractSingleDiskAdaptor.h
  12166. (getFilePath): Removed.
  12167. (fileExists): New function.
  12168. * src/SegmentMan.cc
  12169. (fileExists): New function.
  12170. (shouldCancelDownloadForSafety): New function.
  12171. To fix regression bug in torrent downloading:
  12172. * src/DefaultBtRequestFactory.cc
  12173. (doChokedAction): New function.
  12174. * src/DefaultBtRequestFactory.h
  12175. (doChokedAction): New function.
  12176. * src/DefaultBtMessageDispatcher.cc
  12177. (doChokedAction): Do not delete request if its target is in allowed
  12178. fast set.
  12179. * src/DefaultBtInteractive.cc
  12180. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12181. (sendKeepAlive): Send keep alive message even if the outgoing message
  12182. queue is not empty.
  12183. (decideInterest): Simplified the code.
  12184. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12185. it is already called when BtChokeMessage is received from a peer.
  12186. * src/BtRequestFactory.h
  12187. (doChokedAction): New function.
  12188. To clean up code:
  12189. * src/PeerInteractionCommand.h
  12190. (executeInternal): Added virtual keyword explicitly.
  12191. (prepareForRetry): Added virtual keyword explicitly.
  12192. (prepareForNextPeer): Added virtual keyword explicitly.
  12193. (onAbort): Added virtual keyword explicitly.
  12194. * src/RequestSlot.cc
  12195. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12196. * src/BtPieceMessage.cc
  12197. (doReceivedAction): Added a debug log of piece's bitfield.
  12198. * src/Piece.h
  12199. (getBitfieldLength): New function.
  12200. * src/ByteArrayDiskWriter.cc
  12201. (clear): Added buf = 0 to avoid double free corruption.
  12202. * src/FileAllocator.cc
  12203. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12204. Added cp.reset().
  12205. * src/BitfieldMan.h
  12206. (operator=): Rewritten.
  12207. * src/BitfieldMan.cc
  12208. (BitfieldMan): Initialized bitfield, useBitfield.
  12209. * src/PeerConnection.cc
  12210. (receiveMessage): Added a call to socket->readable() after getting
  12211. message length to avoid possible EOF.
  12212. * src/Util.cc
  12213. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12214. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12215. To add an ability to pre-allocate file space:
  12216. * src/DirectDiskAdaptor.h: Rewritten.
  12217. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12218. * src/MultiDiskAdaptor.h: Rewritten.
  12219. * src/DefaultPieceStorage.cc
  12220. (MultiDiskWriter.h): Removed include.
  12221. (PreAllocationDiskWriter.h): Removed include.
  12222. (FileAllocationMonitor.h): New include.
  12223. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12224. (initStorage): Rewritten.
  12225. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12226. * src/FileAllocator.h: New class.
  12227. * src/FileAllocator.cc: New class.
  12228. * src/FileAllocationMonitor.h: New class.
  12229. * src/FileAllocationMonitor.cc: New class.
  12230. * src/ConsoleFileAllocationMonitor.h: New class.
  12231. * src/ConsoleFileAllocationMonitor.cc: New class.
  12232. * src/AbstractSingleDiskAdaptor.h: New class.
  12233. * src/AbstractSingleDiskAdaptor.cc: New class.
  12234. * src/DiskAdaptor.h
  12235. (Directory.h): Removed include.
  12236. (DiskWriter.h): Removed include.
  12237. (FileEntry.h): Removed include.
  12238. (diskWriter): Removed.
  12239. (DiskAdaptor): Removed diskWriter.
  12240. (openFile): Made pure virtual.
  12241. (closeFile): Made pure virtual.
  12242. (openExistingFile): Made pure virtual.
  12243. (initAndOpenFile): Made pure virtual.
  12244. (writeData): Made pure virtual.
  12245. (readData): Made pure virtual.
  12246. (sha1Sum): Made pure virtual.
  12247. (getStoreDir): Returns const reference of storeDir.
  12248. (DiskAdaptorHandle): New type definition.
  12249. * src/main.cc
  12250. (ConsoleFileAllocationMonitor.h): New include.
  12251. (showUsage): Added default value description of -s option.
  12252. Added the description of --file-allocation option.
  12253. (main): Set default value of --file-allocation option to 'none'.
  12254. Added --file-allocation command-line option.
  12255. Setup FileAllocationMonitorFactory.
  12256. * src/FtpInitiateConnectionCommand.cc
  12257. (executeInternal): Removed diskWriter related processing, which was
  12258. moved to FtpNegotiationCommand.cc.
  12259. * src/DirectDiskAdaptor.cc
  12260. (getFilePath): Made non-const.
  12261. * src/CopyDiskAdaptor.h
  12262. (DiskAdaptor.h): Removed include.
  12263. (DiskWriter.h): Removed include.
  12264. (AbstractSingleDiskAdaptor.h): New include.
  12265. (getFilePath): Made non-const. Added virtual keyword.
  12266. (CopyDiskAdaptor): Removed diskWriter.
  12267. (getTempFile): Returns const reference.
  12268. (CopyDiskAdaptorHandle): New type definition.
  12269. * src/ByteArrayDiskWriter.cc
  12270. (clear): Simplified.
  12271. (initAndOpenFile): Rewritten.
  12272. (openFile): Call initAndOpenFile()
  12273. * src/MultiDiskAdaptor.cc: Rewritten.
  12274. * src/DownloadEngineFactory.cc
  12275. (FileAllocator.h): New include.
  12276. (FileAllocationMonitor.h): New include.
  12277. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12278. create DefaultDiskWriter with file allocator.
  12279. * src/DiskWriter.h
  12280. (initAndOpenFile): Added totalLength argument.
  12281. (openFile): Added totalLength argument.
  12282. * src/prefs.h
  12283. (PREF_FILE_ALLOCATION): New definition.
  12284. (V_PREALLOC): New definition.
  12285. (V_NONE): New definition.
  12286. * src/HttpResponseCommand.cc
  12287. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12288. size.
  12289. * src/FtpNegotiateCommand.cc
  12290. (Util.h): New include.
  12291. (recvSize): Open file here.
  12292. * src/Util.h
  12293. (ullitos): New function.
  12294. * src/CopyDiskWriter.h
  12295. (getFilePath): Made non-const.
  12296. * src/DefaultDiskWriter.h
  12297. (Option.h): New include.
  12298. (totalLength): Removed.
  12299. (DefaultDiskWriter): Removed totalLength.
  12300. (initAndOpenFile): Added totalLength argument.
  12301. (DefaultDiskWriterHandle): New type definition.
  12302. (createNewDiskWriter): New function.
  12303. * src/Util.cc
  12304. (ullitos): New function.
  12305. * src/DefaultDiskWriter.cc
  12306. (message.h): New include.
  12307. (FileAllocator.h): New include.
  12308. (prefs.h): New include.
  12309. (Util.h): New include.
  12310. (DefaultDiskWriter): Removed totalLength.
  12311. (initAndOpenFile): Added file allocation.
  12312. (createNewDiskWriter): New function. Just for temporary solution.
  12313. It will be rewritten later.
  12314. * src/DiskAdaptor.cc
  12315. (DiskAdaptor): Removed diskWriter.
  12316. * src/AbstractDiskWriter.cc
  12317. (LogFactory.h): New include.
  12318. (AbstractDiskWriter): Added fileAllocator, logger.
  12319. (openFile): Added totalLength argument.
  12320. * src/AbstractDiskWriter.h
  12321. (FileAllocator.h): New include.
  12322. (Logger.h): New include.
  12323. (fileAllocator): New variable.
  12324. (logger): New variable.
  12325. (openFile): Added totalLength argument. Added virtual keyword
  12326. explicitly.
  12327. (openExistingFile): Added totalLength argument. Added virtual keyword
  12328. explicitly.
  12329. (closeFile): Added virtual keyword explicitly.
  12330. (sha1Sum): Added virtual keyword explicitly.
  12331. (writeData): Added virtual keyword explicitly.
  12332. (readData): Added virtual keyword explicitly.
  12333. (setFileAllocator): New function.
  12334. * src/DefaultPieceStorage.h
  12335. (FileAllocator.h): New include.
  12336. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12337. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12338. * src/FileProgressMonitor.h: New class.
  12339. To compile aria2 on PC-BSD:
  12340. * src/DefaultBtContext.cc
  12341. (libgen.h): New include.
  12342. To fix memory leak:
  12343. * src/Exception.h
  12344. (~Exception): Delete cause. Fixed memory leak.
  12345. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12346. Rewritten a portion of bittorrent implementation:
  12347. * src/BtMessageValidator.h: New class.
  12348. * src/BtBitfieldMessageValidator.h: New class.
  12349. * src/BtHandshakeMessageValidator.h: New class.
  12350. * src/BtRequestMessageValidator.h: New class.
  12351. * src/BtSuggestPieceMessageValidator.h: New class.
  12352. * src/BtAllowedFastMessageValidator.h: New class.
  12353. * src/BtRejectMessageValidator.h: New class.
  12354. * src/BtCancelMessageValidator.h: New class.
  12355. * src/BtPieceMessageValidator.h: New class.
  12356. * src/BtHaveMessageValidator.h: New class.
  12357. * src/BtEventListener.h: New class.
  12358. * src/AbstractBtEventListener.h: New class.
  12359. * src/BtEvent.h: New class.
  12360. * src/BtChokingEvent.h: New class.
  12361. * src/BtChokedEvent.h: New class.
  12362. * src/BtCancelSendingPieceEvent.h: New class.
  12363. * src/BtAbortOutstandingRequestEvent.h: New class.
  12364. * src/Randomizer.h: New class.
  12365. * src/SimpleRandomizer.h: New class.
  12366. * src/BtMessage.h: New class.
  12367. * src/AbstractBtMessage.h: New class.
  12368. * src/SimpleBtMessage.h: New class.
  12369. * src/BtHaveMessage.h: New class.
  12370. * src/BtInterestedMessage.h: New class.
  12371. * src/BtAllowedFastMessage.h: New class.
  12372. * src/BtUnchokeMessage.h: New class.
  12373. * src/BtCancelMessage.h: New class.
  12374. * src/BtNotInterestedMessage.h: New class.
  12375. * src/BtChokeMessage.h: New class.
  12376. * src/BtHaveNoneMessage.h: New class.
  12377. * src/BtHandshakeMessage.h: New class.
  12378. * src/BtSuggestPieceMessage.h: New class.
  12379. * src/BtHaveMessage.h: New class.
  12380. * src/BtPieceMessage.h: New class.
  12381. * src/BtHaveAllMessage.h: New class.
  12382. * src/BtKeepAliveMessage.h: New class.
  12383. * src/BtPortMessage.h: New class.
  12384. * src/BtRejectMessage.h: New class.
  12385. * src/BtBitfieldMessage.h: New class.
  12386. * src/BtRequestMessage.h: New class.
  12387. * src/DefaultBtRequestFactory.h: New class.
  12388. * src/DefaultBtMessageReceiver.h: New class.
  12389. * src/BtInteractive.h: New class.
  12390. * src/BtMessageDispatcher.h: New class.
  12391. * src/DefaultBtMessageDispatcher.h: New class.
  12392. * src/DefaultBtInteractive.h: New class.
  12393. * src/BitfieldManFactory.h: New class.
  12394. * src/HandleRegistry.h: New class.
  12395. * src/BtMessageFactory.h: New class.
  12396. * src/BtMessageReceiver.h: New class.
  12397. * src/DefaultBtMessageFactory.h: New class.
  12398. * src/PeerObject.h: New class.
  12399. * src/BtRequestFactory.h: New class.
  12400. * src/SuggestPieceMessage.h: Removed.
  12401. * src/PortMessage.h: Removed.
  12402. * src/SuggestPieceMessage.h: Removed.
  12403. * src/KeepAliveMessage.h: Removed.
  12404. * src/HandshakeMessage.h: Removed.
  12405. * src/PeerInteraction.h: Removed.
  12406. * src/UnchokeMessage.h: Removed.
  12407. * src/PieceMessage.h: Removed.
  12408. * src/RequestMessage.h: Removed.
  12409. * src/InterestedMessage.h: Removed.
  12410. * src/HaveMessage.h: Removed.
  12411. * src/CancelMessage.h: Removed.
  12412. * src/RejectMessage.h: Removed.
  12413. * src/AllowedFastMessage.h: Removed.
  12414. * src/HaveNoneMessage.h: Removed.
  12415. * src/SimplePeerMessage.h: Removed.
  12416. * src/HaveAllMessage.h: Removed.
  12417. * src/BitfieldMessage.h: Removed.
  12418. * src/PeerMessageFactory.h: Removed.
  12419. * src/NotInterestedMessage.h: Removed.
  12420. * src/ChokeMessage.h: Removed.
  12421. * src/PeerMessage.h: Removed.
  12422. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12423. To know root cause of exception:
  12424. * src/Exception.h
  12425. (cause): New variable.
  12426. (Exception): Added a parameter.
  12427. (getMsg): Return const reference to msg.
  12428. (getCause): New function.
  12429. * src/DlRetryEx.h
  12430. (DlRetryEx): Added a parameter 'cause'.
  12431. Added an overloaded constructor.
  12432. (DlAbortEx): Added a parameter 'cause'.
  12433. Added an overloaded constructor.
  12434. * src/SimpleLogger.cc
  12435. (writeLog): Log nested exception messages recursively.
  12436. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12437. * src/DefaultBtProgressInfoFile.cc
  12438. (load): Fixed memory leak when the infohash doesn't match.
  12439. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12440. * src/DefaultPeerStorage.cc
  12441. (calculateStat): Simplified the code by combining 2 loops into 1.
  12442. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12443. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12444. for BitTorrent download:
  12445. * src/PeerAbstractCommand.cc
  12446. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12447. * src/main.cc:
  12448. (timeoutSpecified): Removed.
  12449. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12450. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12451. * src/TorrentRequestInfo.cc
  12452. (timeoutSpecified): Removed.
  12453. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12454. timeout value.
  12455. * src/prefs.h
  12456. (PREF_BT_TIMEOUT): New definition.
  12457. Delete unused variables:
  12458. * src/TorrentRequestInfo.cc
  12459. (requestInfo): Removed.
  12460. Move setSignalHander to Util::setGlobalSignalHandler:
  12461. * src/TorrentRequestInfo.cc:
  12462. setSignalHander -> Util::setGlobalSignalHandler
  12463. * src/main.cc
  12464. (setSignalHander): Removed.
  12465. (main): setSignalHander -> Util::setGlobalSignalHandler
  12466. * src/Util.h
  12467. (setGlobalSignalHandler): New function.
  12468. * src/Util.cc
  12469. (setGlobalSignalHandler): New function.
  12470. * src/UrlRequestInfo.cc:
  12471. setSignalHander -> Util::setGlobalSignalHandler
  12472. Reset peer status in order to exit gracefully:
  12473. * src/PeerAbstractCommand.cc
  12474. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12475. To fix the bug that causes the number of bytes uploaded is not saved
  12476. to .aria2 file:
  12477. * src/DefaultPeerStorage.h
  12478. (removedPeerSessionDownloadLength): New variable.
  12479. (removedPeerSessionUploadLength): New variable.
  12480. * src/DefaultPeerStorage.cc
  12481. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12482. removedPeerSessionUploadLength(0).
  12483. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12484. through all peers, and then add removedPeerSessionDownloadLength(
  12485. removedPeerSessionUploadLength) to it.
  12486. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12487. (to) the peer to removedPeerSessionDownloadLength
  12488. (removedPeerSessionUploadLength).
  12489. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12490. To add Metalink location option:
  12491. * src/MetalinkRequestInfo.cc
  12492. (execute): Call MetalinkEntry::setLocationPreference()
  12493. * src/main.cc
  12494. (showUsage): Added the help message for --metalink-location option.
  12495. (main): Added --metalink-location option.
  12496. * src/prefs.h
  12497. (PREF_METALINK_LOCATION): New definition.
  12498. * src/MetalinkEntry.cc
  12499. (AddLocationPreference): New function object.
  12500. (setLocationPreference): New function.
  12501. * src/Xml2MetalinkProcessor.cc
  12502. (getResource): Set location attribute to MetalinkResource
  12503. To show URLs to download
  12504. * src/UrlRequestInfo.h
  12505. (printUrls): New function.
  12506. To add multiple <file> Metalink support:
  12507. * src/MetalinkEntry.h
  12508. (MetalinkResources): Removed.
  12509. (setLocationPreference): New function.
  12510. (MetalinkEntryHandle): New type definition.
  12511. (MetalinkEntries): New type definition.
  12512. * src/Xml2MetalinkProcessor.h
  12513. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12514. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12515. (parseFile): Metalinker* -> MetalinkerHandle
  12516. * src/UrlRequestInfo.h
  12517. (execute): RequestInfo* -> RequestInfos
  12518. * src/MetalinkRequestInfo.cc
  12519. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12520. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12521. (execute): RequestInfo* -> RequestInfos
  12522. Added multiple <file> support. Print filename when it is queued.
  12523. * src/MetalinkRequestInfo.h
  12524. (execute): RequestInfo* -> RequestInfos
  12525. (getDownloadEngine): Removed.
  12526. * src/RequestInfo.h
  12527. (RequestInfoHandle): New type definition.
  12528. (RequestInfos): New type definition.
  12529. (execute): RequestInfo* -> RequestInfos
  12530. (getDownloadEngine): Removed.
  12531. * src/MetalinkResource.h
  12532. (MetalinkResourceHandle): New type definition.
  12533. (MetalinkResources): New type definition.
  12534. * src/MetalinkEntry.cc
  12535. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12536. because the element is now of type MetalinkResourceHandle.
  12537. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12538. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12539. (dropUnsupportedResource): Removed the deletion of the elements of
  12540. resources because the element is now of type MetalinkResourceHandle.
  12541. * src/Xml2MetalinkProcessor.cc
  12542. (parseFile): Metalinker* -> MetalinkerHandle
  12543. MetalinkEntry* -> MetalinkEntryHandle
  12544. Removed try-catch block.
  12545. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12546. MetalinkResource* -> MetalinkResourceHandle
  12547. Removed try-catch block.
  12548. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12549. Free result by using xmlXPathFreeObject()
  12550. * src/Metalinker.cc
  12551. (~Metalinker): Removed the deletion of entries.
  12552. MetalinkEntry* -> MetalinkEntryHandle
  12553. (queryEntry): Add multiple <file> Metalink support.
  12554. * src/Metalinker.h
  12555. (MetalinkEntries): Removed.
  12556. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12557. * src/MetalinkProcessor.h
  12558. (parseFile): Metalinker* -> MetalinkerHandle
  12559. Bug fixes:
  12560. * src/PeerChokeCommand.cc
  12561. (execute): cat01->cat02
  12562. * src/DefaultPieceStorage.cc
  12563. (DefaultPieceStorage): Added diskAdaptor(0)
  12564. * src/TrackerWatcherComand.cc:
  12565. (execute): Use btAnnounce->noMoreAnnounce()
  12566. to determin whether the function returns true or not.
  12567. * src/TrackerUpdateCommand.cc:
  12568. (execute): Use btAnnounce->noMoreAnnounce()
  12569. to determin whether the function returns true or not.
  12570. * src/FtpConnection.cc
  12571. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12572. This is the fix of the busy loop bug.
  12573. * src/DownloadCommand.cc
  12574. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12575. cached PeerStat.
  12576. The value of "name" entry in torrent file is now set by
  12577. *DiskAdaptor::setTopDir(...) methods.
  12578. * src/MultiDiskAdaptor.h
  12579. (topDir): New variable.
  12580. (setTopDir): New function.
  12581. (getTopDir): New function.
  12582. * src/MultiDiskAdaptor.cc
  12583. (getFilePath): Concat storDir, "/" and topDir.
  12584. (mkdir): Use getFilePath() to get the directory path for output.
  12585. * src/DefaultPieceStorage.cc
  12586. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12587. CopyDiskAdaptor.
  12588. * src/CopyDiskAdaptor.h
  12589. (topDir): New variable.
  12590. (setTopDir): New function.
  12591. (getTopDir): New function.
  12592. * src/CopyDiskAdaptor.cc
  12593. (fixFilename): Updated.
  12594. Misc
  12595. * src/UrlRequestInfo.h
  12596. (e): Removed.
  12597. (UrlRequestInfo): Removed e.
  12598. (getDownloadEngine): Removed.
  12599. * src/UrlRequestInfo.cc
  12600. (handler): Rewritten.
  12601. (printUrls): New function.
  12602. (execute): Call printUrls().
  12603. * src/HandshakeMessage.cc
  12604. (check): peerinteraction->getBtContext() -> btContext
  12605. * src/PeerInteraction.h
  12606. (getBtContext): Removed.
  12607. * src/TorrentRequestInfo.h
  12608. (execute): RequestInfo* -> RequestInfos
  12609. (getDownloadEngine): Removed.
  12610. * src/TorrentRequestInfo.cc
  12611. (haltRequested): Removed.
  12612. (btHaltRequested): New variable.
  12613. (torrentHandler): haltRequested -> btHaltRequested
  12614. (execute): RequestInfo* -> RequestInfos
  12615. * src/TorrentConsoleDownloadEngine.cc
  12616. (afterEachIteration): haltRequested -> btHaltRequested.
  12617. * src/ConsoleDownloadEngine.h
  12618. (initStatistics): Added virtual.
  12619. (calculateStatistics): Added virtual.
  12620. (onEndOfRun): Added virtual.
  12621. (afterEachIteration): Added virtual.
  12622. * src/ConsoleDownloadEngine.cc
  12623. (haltRequested): New variable.
  12624. (afterEachIteration): New function.
  12625. * src/main.cc
  12626. (requestInfo): Removed.
  12627. * src/SegmentMan.cc
  12628. (findSlowerSegmentEntry): Refactored.
  12629. * Release 0.9.0
  12630. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12631. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12632. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12633. * src/TorrentMan.h: Removed.
  12634. * src/TorrentMan.cc: Removed.
  12635. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12636. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12637. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12638. * src/PeerAbstractCommand.cc: Use btRuntime.
  12639. * src/BtContextAwareCommand.h: New class.
  12640. * src/FileEntry.h: Added accessor methods for following variables.
  12641. (path): Made private.
  12642. (length): Made private.
  12643. (offset): Made private.
  12644. (extracted): Made private.
  12645. (requested): Made private.
  12646. (FileEntries): New definition.
  12647. (FileEntryHandle): New definition.
  12648. * src/FileEntry.cc: New file.
  12649. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12650. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12651. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12652. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12653. * src/PieceStorage.h: New file.
  12654. * src/PeerInteractionCommand.h: Use btContext.
  12655. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12656. btRuntime.
  12657. * src/DefaultBtProgressInfoFile.h: New file.
  12658. * src/DefaultBtProgressInfoFile.cc: New file.
  12659. * src/File.cc
  12660. (Util.h): New include.
  12661. (mkdirs): New function.
  12662. * src/MultiDiskAdaptor.h
  12663. (mkdir): New function.
  12664. * src/PeerListProcessor.h
  12665. (Peers): Removed.
  12666. * src/PeerInteraction.h
  12667. (torrentMan): Removed.
  12668. (btContext): New variable.
  12669. (peerStorage): New variable.
  12670. (pieceStorage): New variable.
  12671. (btAnnounce): New variable.
  12672. (getTorrentMan): Removed.
  12673. (getBtContext): New function.
  12674. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12675. btAnnounce.
  12676. * src/HandshakeMessage.h
  12677. (TorrentMan.h): Removed.
  12678. * src/HandshakeMessage.cc: Use btContext.
  12679. * src/DefaultBtAnnounce.cc: New file.
  12680. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12681. * src/DefaultPieceStorage.cc: New file.
  12682. * src/DefaultBtContext.h: New file.
  12683. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12684. Use the accessor methods of FileEntry.
  12685. * src/CookieBox.cc: Updated to use Util::slice().
  12686. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12687. * src/common.h (SharedHandle.h): New include.
  12688. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12689. pieceStorage.
  12690. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12691. * src/DiskAdaptor.h
  12692. (topDir): Removed.
  12693. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12694. (setTopDir): Removed.
  12695. (getTopDir): Removed.
  12696. * src/BtContext.h: New file.
  12697. * src/DefaultPeerStorage.h: New file.
  12698. * src/PieceMessage.h (TorrentMan.h): Removed.
  12699. * src/RequestMessage.h (TorrentMan.h): Removed.
  12700. * src/TorrentDownloadEngine.h
  12701. (uploadLength): New variable.
  12702. (btContext): New variable.
  12703. (btRuntime): New variable.
  12704. (pieceStorage): New variable.
  12705. (peerStorage): New variable.
  12706. (btAnnounce): New variable.
  12707. (btProgressInfoFile): New variable.
  12708. (torrentMan): Removed.
  12709. (setBtContext): New function.
  12710. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12711. peerStorage, btAnnounce, btProgressInfoFile.
  12712. * src/Piece.h
  12713. (toString): New function.
  12714. (Pieces): New type definition.
  12715. * src/Peer.h
  12716. (active): New variable.
  12717. (Peer): Added active.
  12718. (activate): Set active to true.
  12719. (deactivate): Set active to false.
  12720. (isActive): New function.
  12721. (Peers): New type definition.
  12722. * src/DirectDiskAdaptor.cc
  12723. (getFilePath): Use the accessor methods of FileEntry.
  12724. * src/TorrentConsoleDownloadEngine.h
  12725. (afterEachIteration): New function.
  12726. * src/TorrentConsoleDownloadEngine.cc
  12727. (haltRequested): New variable.
  12728. (sendStatistics): Use pieceStorage, btRuntime.
  12729. (afterEachIteration): New function.
  12730. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12731. * src/Directry.h
  12732. (Directory): New function.
  12733. (DirectoryHandle): New type definition.
  12734. * src/BtProgressInfoFile.h: New file.
  12735. * src/RequestMessage.cc: Use pieceStorage.
  12736. * src/BtRuntime.h: New file.
  12737. * src/DefaultBtContext.cc: New file.
  12738. * src/BitfieldMan.h
  12739. (getCompletedLength): New function(private).
  12740. (getCompletedLength): New function.
  12741. (getFilteredCompletedLength): New function.
  12742. * src/BitfieldMan.h
  12743. (getCompletedLength): New function(private).
  12744. (getCompletedLength): New function.
  12745. (getFilteredCompletedLength): New function.
  12746. * src/MultiDiskAdaptor.cc
  12747. (mkdir): New function.
  12748. (openFile): Call mkdir().
  12749. (initAndOpenFile): Call mkdir().
  12750. * src/CancelMessage.h
  12751. (TorrentMan.h): Removed.
  12752. * src/RejectMessage.h
  12753. (TorrentMan.h): Removed.
  12754. * src/DownloadEngineFactory.cc
  12755. (DefaultPieceStorage.h): New include.
  12756. (DefaultPeerStorage.h): New include.
  12757. (DefaultBtAnnounce.h): New include.
  12758. (DefaultBtProgressInfoFile.h): New include.
  12759. (newTorrentConsoleEngine): Rewritten.
  12760. * src/ShareRatioSeedCriteria.h
  12761. (torrentMan): Removed.
  12762. (btContext): New variable.
  12763. (peerStorage): New variable.
  12764. (btRuntime): New variable.
  12765. (evaluate): Use btContext, btRuntime, peerStorage.
  12766. * src/AnnounceTier.h: New file.
  12767. * src/BtAnnounce.h: New file.
  12768. * src/BtRegistry.h: New file.
  12769. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12770. * src/PeerConnection.h (TorrentMan.h): Removed.
  12771. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12772. * src/Util.h
  12773. (slice): Added an argument.
  12774. * src/Util.cc
  12775. (slice): Added an argument to control whether trim is made or not.
  12776. * src/PeerStorage.h: New file.
  12777. * src/BtRegistry.cc: New file.
  12778. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12779. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12780. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12781. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12782. * src/TorrentRequestInfo.h
  12783. (e): Removed.
  12784. (showFileEntry): Added an argument.
  12785. (getDownloadEngine): Return 0.
  12786. * src/DefaultBtAnnounce.h: New file.
  12787. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12788. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12789. * src/PeerMessageFactory.h
  12790. (btContext): New variable.
  12791. (pieceStorage): New variable.
  12792. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12793. btAnnounce.
  12794. * src/DiskAdaptor.cc
  12795. (DiskAdaptor): Removed topDir.
  12796. (~DiskAdaptor): Removed topDir.
  12797. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12798. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12799. * src/File.h (mkdirs): New function.
  12800. * src/DefaultPeerStorage): New file.
  12801. * src/DownloadEngineFactory.h
  12802. (newTorrentConsoleEngine): Use btContext.
  12803. * src/BtContextAwareCommand.cc: New file.
  12804. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12805. * src/PeerMessage.h
  12806. (btContext): New variable.
  12807. (peerStorage): New variable.
  12808. (pieceStorage): New variable.
  12809. (setBtContext): New function.
  12810. * src/Directry.cc
  12811. (Directory): New function.
  12812. (createDir): Do nothing if name.size() == 0.
  12813. * src/AnnounceList.h
  12814. (AnnounceTier): Removed.
  12815. (AnnounceTiers): Removed.
  12816. * src/DefaultPieceStorage.h: New file.
  12817. * src/Piece.cc (toString): New function.
  12818. To fix typo:
  12819. * src/main.cc (showVersion): Fixed typo.
  12820. To fix compile warning:
  12821. * src/DelegatingPeerListProcessor.cc
  12822. (canHandle): Added "return false".
  12823. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12824. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12825. make the process of announce request testable.
  12826. * src/TrackerWatcherCommand.h
  12827. (TimeA2.h): Removed.
  12828. (interval): Removed.
  12829. (checkPoint): Removed.
  12830. (createRequestCommand): Added an argument 'url'.
  12831. (TrackerWatherCommand): Removed interval.
  12832. (createCommand): New function.
  12833. * src/DownloadEngineFactory.cc
  12834. (newTorrentConsoleEngine): Updated according to the changes in
  12835. TrackerWatherCommand.
  12836. * src/TorrentMan.cc
  12837. (DelegatingPeerListProcessor.h): New includes.
  12838. (TorrentMan): Added the initialization of announceInterval.
  12839. (isStoppedAnnounceReady): New function.
  12840. (isCompletedAnnounceReady): New function.
  12841. (isDefaultAnnounceReady): New function.
  12842. (isAnnounceReady): New function.
  12843. (getAnnounceUrl): New function.
  12844. (announceStart): New function.
  12845. (announceFailure): New function.
  12846. (announceSuccess): New function.
  12847. (isAllAnnounceFailed): New function.
  12848. (resetAnnounce): New function.
  12849. (processAnnounceResponse): New function.
  12850. (needMorePeerConnection): New function.
  12851. (noMoreAnnounce): New function.
  12852. * src/TrackerUpdateCommand.h
  12853. (getTrackerResponse): int->size_t
  12854. * src/TorrentMan.h
  12855. (isStoppedAnnounceReady): New function.
  12856. (isCompletedAnnounceReady): New function.
  12857. (isDefaultAnnounceReady): New function.
  12858. (announceInterval): New variable.
  12859. (isAnnounceReady): New function.
  12860. (getAnnounceUrl): New function.
  12861. (announceStart): New function.
  12862. (announceFailure): New function.
  12863. (announceSuccess): New function.
  12864. (isAllAnnounceFailed): New function.
  12865. (resetAnnounce): New function.
  12866. (processAnnounceResponse): New function.
  12867. (needMorePeerConnection): New function.
  12868. (noMoreAnnounce): New function.
  12869. * src/TrackerWatcherCommand.cc
  12870. (TrackerWatherCommand): Removed interval and checkPoint.
  12871. (execute): Rewritten.
  12872. (createCommand): New function.
  12873. (createRequestCommand): Rewritten.
  12874. * src/TrackerUpdateCommand.cc
  12875. (MetaFileUtil.h): Removed.
  12876. (DelegatingPeerListProcessor.h): Removed.
  12877. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12878. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12879. Request -> RequestHandle:
  12880. * src/HttpResponseCommand.h: Request->RequestHandle
  12881. * src/AbstractCommand.cc: Request->RequestHandle
  12882. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12883. * src/HttpRequestCommand.cc: Request->RequestHandle
  12884. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12885. * src/AbstractCommand.h: Request->RequestHandle
  12886. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12887. * src/HttpResponseCommand.cc: Request->RequestHandle
  12888. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12889. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12890. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12891. * src/HttpConnection.h: Request->RequestHandle
  12892. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12893. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12894. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12895. * src/DownloadCommand.h: Request->RequestHandle
  12896. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12897. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12898. * src/HttpRequestCommand.h: Request->RequestHandle
  12899. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12900. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12901. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12902. * src/HttpDownloadCommand.h: Request->RequestHandle
  12903. * src/FtpConnection.cc: Request->RequestHandle
  12904. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12905. * src/UrlRequestInfo.cc: Request->RequestHandle
  12906. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12907. * src/HttpConnection.h: Request->RequestHandle
  12908. * src/DownloadCommand.cc: Request->RequestHandle
  12909. * src/FtpConnection.h: Request->RequestHandle
  12910. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12911. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12912. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12913. * src/Request.h
  12914. (SharedHandle.h): New include.
  12915. (RequestHandle): New type definition.
  12916. (Requests): Redefined.
  12917. To add MULTITRACKER support:
  12918. * src/TrackerWatcherCommand.h
  12919. (createRequestCommand): New function.
  12920. * src/DownloadEngineFactory.cc
  12921. (newTorrentConsoleEngine): Removed req.
  12922. * src/prefs.h
  12923. (PREF_TRACKER_MAX_TRIES): New definition.
  12924. * src/TorrentMan.cc
  12925. (TorrentMan): Removed req. Added trackerNumTry.
  12926. (~TorrentMan): Removed req.
  12927. (setupInternal1): Added announceList.
  12928. * src/TorrentRequestInfo.cc
  12929. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12930. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12931. * src/main.cc
  12932. (main): Added PREF_TRACKER_MAX_TRIES.
  12933. * src/TorrentMan.h
  12934. (Request.h): Removed.
  12935. (AnnounceList.h): New include.
  12936. (trackerNumTry): New variable.
  12937. (req): Removed.
  12938. (announceList): New variable.
  12939. * src/TrackerWatcherCommand.cc
  12940. (execute): Rewritten.
  12941. (createRequestCommand): New function.
  12942. * src/TrackerUpdateCommand.cc
  12943. (execute): Updated with the use of AnnounceList.
  12944. * src/AnnounceList.cc: New class.
  12945. * src/AnnounceList.h: New class.
  12946. To fix typo:
  12947. * src/prefs.h
  12948. (PREF_MAX_TRIES): max_try->max_tries
  12949. To not to decode "+" as space in URL decode:
  12950. * src/Util.cc
  12951. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12952. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12953. To add timeout to async name resolution:
  12954. * src/AbstractCommand.h
  12955. (nameResolveFinished): New function. This is not elegant way. It needs
  12956. to be more refined.
  12957. (nameResolverCheck): New variable.
  12958. * src/AbstractCommand.cc
  12959. (AbstractCommand): Added nameResolverCheck.
  12960. (execute): Added the check whether the name resolution has finished.
  12961. (setNameResolverCheck): Set nameResolverCheck to true.
  12962. (disableNameResolverCheck): Set nameResolverCheck to false.
  12963. (nameResolverFinished): New function.
  12964. * src/FtpInitiateConnectionCommand.h
  12965. (nameResolverFinished): New function.
  12966. * src/FtpInitiateConnectionCommand.cc
  12967. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12968. * src/HttpInitiateConnectionCommand.h
  12969. (nameResolverFinished): New function.
  12970. * src/HttpInitiateConnectionCommand.cc
  12971. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12972. * src/prefs.h
  12973. (PREF_DNS_TIMEOUT): New definition.
  12974. * src/main.cc
  12975. (main): Added PREF_DNS_TIMEOUT.
  12976. To add the support for a non-compact response from a tracker:
  12977. * src/PeerListProcessor.h: New class.
  12978. * src/DefaultPeerListProcessor.h: New class.
  12979. * src/DefaultPeerListProcessor.cc: New class.
  12980. * src/CompactPeerListProcessor.h: New class.
  12981. * src/CompactPeerListProcessor.cc: New class.
  12982. * src/DelegatingPeerListProcessor.h: New class.
  12983. * src/DelegatingPeerListProcessor.cc: New class.
  12984. * src/TorrentMan.cc
  12985. (addPeer): New function(overload).
  12986. (addPeer): Delete unused peers only when new peer is added.
  12987. * src/TorrentMan.h
  12988. (PeerListProcessor.h): Included.
  12989. (Peers): Removed.
  12990. (addPeer): New function(overload).
  12991. * src/TrackerUpdateCommand.cc
  12992. (netinet/in.h): Removed.
  12993. (DelegatingPeerListProcessor.h): Included.
  12994. (execute): Updated to use DelegatingPeerListProcessor.
  12995. To fix the memory leak in TorrentMan::peers:
  12996. * src/PeerAbstractCommand.cc
  12997. (onAbort): Added peer->resetStatus().
  12998. * src/Peer.h
  12999. (resetStatus): Made public.
  13000. To improve the precision of the speed calculation:
  13001. * src/SpeedCalc.h
  13002. (nextInterval): New variable.
  13003. * src/SpeedCalc.cc
  13004. (reset): Added nextInterval.
  13005. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13006. (changeSw): Set nextInterval to 15 seconds relative to the current
  13007. instant time.
  13008. * src/main.cc
  13009. (showVersion): Updated.
  13010. (showUsage): Updated.
  13011. * Release 0.8.1
  13012. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13013. * src/main.cc
  13014. (showUsage): Commented out --min-segment-size option.
  13015. (main): Commented out --min-segment-size option.
  13016. * Release 0.8.0
  13017. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13018. * src/*.{h,cc}:
  13019. Added an exception to the license which allows linking with OpenSSL.
  13020. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13021. * src/AbstractCommand.cc
  13022. (execute): Check whether the download has finished before checking
  13023. socket status.
  13024. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13025. Do not exit even if no segment is available.
  13026. * src/prefs.h
  13027. (PREF_STARTUP_IDLE_TIME): New definition.
  13028. * src/PeerInteractionCommand.cc
  13029. (executeInternal): Removed max speed limit. Because it performs bad.
  13030. (receiveMessages): Added max speed limit. This was better than above,
  13031. but still a little bit to be desired. Sometimes the download speed
  13032. became much faster than I specified.
  13033. * src/SpeedCalc.h
  13034. (start): New variable.
  13035. (accumulatedLength): New variable.
  13036. (getAvgSpeed): New function.
  13037. * src/SpeedCalc.cc
  13038. (reset): Added start, accumulatedLength.
  13039. (update): Added calculation of an average speed.
  13040. (getAvgSpeed): New function.
  13041. * src/DownloadCommand.h
  13042. (sw): Removed.
  13043. * src/main.cc
  13044. (main): Added PREF_STARTUP_IDLE_TIME.
  13045. * src/PeerStat.h
  13046. (STATUS): Added REQUEST_IDLE.
  13047. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13048. (getAvgDownloadSpeed): New function
  13049. (requestIdle): New function.
  13050. * src/SegmentMan.h
  13051. (SegmentEntryHandle): New type definition.
  13052. (SegmentEntries): Now holds SegmentEntryHandle.
  13053. (findSlowerSegmentEntry): New funtion.
  13054. * src/SegmentMan.cc
  13055. (save): Updated according to the changes in SegmentEntries.
  13056. (read): Updated according to the changes in SegmentEntries.
  13057. (FindSegmentEntryByIndex): Updated according to the changes in
  13058. SegmentEntries.
  13059. (FindSegmentEntryByCuid): Updated according to the changes in
  13060. SegmentEntries.
  13061. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13062. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13063. Renamed uitr as itr.
  13064. (findSlowerSegmentEntry): New function.
  13065. (getSegment): Updated according to the changes in SegmentEntries.
  13066. Added the feature that cancels the segment with slow server and fast
  13067. one takes it over.
  13068. (cancelSegment): Updated according to the changes in SegmentEntries.
  13069. (getDownloadLength): Updated according to the changes in
  13070. SegmentEntries.
  13071. (init): Assigned 0 to bitfield after deleting it.
  13072. * src/DownloadCommand.cc
  13073. (STARTUP_IDLE_TIME): Removed.
  13074. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13075. * src/PeerChokeCommand.cc
  13076. (optUnchokingPeer): Updated according to the changes in Peer.
  13077. (ResetDelta): Removed.
  13078. (UploadFaster): Updated according to the changes in Peer.
  13079. (DownloadFaster): Updated according to the changes in Peer.
  13080. (execute): I clarify the meaning of "upload" and "download" here.
  13081. "upload" means the transfer from localhost to remote host.
  13082. "download" means the transfer from remote host to localhost.
  13083. Based on this rule, I swapped orderByUploadRate and
  13084. orderByDownloadRate.
  13085. * src/PeerInteractionCommand.cc
  13086. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13087. (executeInternal): Removed the argument of
  13088. peerInteraction->sendMessages().
  13089. (receiveMessages): Rewritten download speed limit.
  13090. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13091. * src/HttpResponseCommand.cc
  13092. (handleDefaultEncoding): If file size is unknown in torrent request,
  13093. do not call segmentMan->initBitfield() here.
  13094. Disabled persistent connection feature in torrent request.
  13095. * src/UrlRequestInfo.h
  13096. (UrlRequestInfo): Removed const qualifier from option.
  13097. * src/TorrentMan.h
  13098. (TransferStat): New class.
  13099. (deltaDownloadLength): Removed.
  13100. (deltaUploadLength): Removed.
  13101. (addDeltaDownloadLength): Removed.
  13102. (getDeltaDownloadLength): Removed.
  13103. (resetDeltaDownloadLength): Removed.
  13104. (addDeltaUploadLength): Removed.
  13105. (getDeltaUploadLength): Removed.
  13106. (resetDeltaUploadLength): Removed.
  13107. (addActivePeer): Added peer->activate().
  13108. (deleteActivePeer): Added peer->deactivate().
  13109. (calculateStat): New function.
  13110. * src/TorrentMan.cc
  13111. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13112. (calculateStat): New function.
  13113. * src/PeerInteraction.h
  13114. (uploadLimit): Removed.
  13115. (option): New variable.
  13116. (setUploadLimit): Removed.
  13117. (getUploadSpeed): Removed.
  13118. (sendMessages): Removed the argument "currentUploadSpeed".
  13119. * src/PeerInteraction.cc
  13120. (prefs.h): Included.
  13121. (PeerInteraction): Removed uploadLimit. Added option.
  13122. (sendMessages): Rewritten upload speed limit.
  13123. (sendHandshake): Removed the argument from sendMessages().
  13124. (sendBitfield): Removed the argument from sendMessages().
  13125. * src/PeerAbstractCommand.cc
  13126. (execute): Commented out the portion of upload limit.
  13127. (onAbort): Removed peer->resetStatus().
  13128. * src/TorrentRequestInfo.cc
  13129. (timeoutSpecified): Declared extern.
  13130. (execute): Set timeout to 180 if timeout is not specified by.
  13131. command-line.
  13132. * src/PieceMessage.cc
  13133. (receivedAction): Added peer->updateDownloadLength().
  13134. Removed peer->addPeerUpload().
  13135. Removed torrentMan->addDeltaDownloadLength().
  13136. (send): Added peer->updateUploadLength().
  13137. Removed peer->addPeerDownload().
  13138. Removed torrentMan->addDeltaUploadLength().
  13139. * src/main.cc
  13140. (timeoutSpecified): New variable.
  13141. (main): Set timeoutSpecified to false.
  13142. If the command-line option "--upload-limit" is specified, then
  13143. timeoutSpecified is set to true. This option will remain in the next
  13144. release, but be deprecated in the future release.
  13145. * src/TorrentRequestInfo.h
  13146. (TorrentRequestInfo): Removed const qualifier from op.
  13147. * src/PeerStat.h
  13148. (uploadSpeed): New variable.
  13149. (PeerStat): Added default value to cuid.
  13150. (calculateUploadSpeed): New function.
  13151. (updateUploadLength): New function.
  13152. (getMaxUploadSpeed): New function.
  13153. (getAvgUploadSpeed): New function.
  13154. (reset): Added uploadSpeed. Set status to IDLE.
  13155. * src/TorrentDownloadEngine.h
  13156. (cp): Declared as Time.
  13157. (sessionDownloadLengthArray): Removed.
  13158. (sessionUploadLengthArray): Removed.
  13159. (currentCp): Removed.
  13160. (lastCalcStat): New variable
  13161. (lastElapsed): Removed.
  13162. (sessionDownloadLength): Removed.
  13163. (calculateStat): New function.
  13164. * src/TorrentDownloadEngine.cc
  13165. (initStatistics): Removed lastElapsed, cp[],
  13166. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13167. currentCp, sessionDownloadLength.
  13168. Added cp.reset() and lastCalcStat.reset().
  13169. (calculateSpeed): Changed the name of the argument.
  13170. (calculateStatistics): Rewritten.
  13171. (calculateStat): New function.
  13172. * src/Peer.h
  13173. (PeerStat.h): Included.
  13174. (peerUpload): Removed.
  13175. (peerDownload): Removed.
  13176. (peerStat): New variable.
  13177. (sessionUploadLength): New variable.
  13178. (sessionDownloadLength): New variable.
  13179. (deltaUpload): Removed.
  13180. (deltaDownload): Removed.
  13181. (resetStatus): Made private.
  13182. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13183. Removed peerUpload, peerDownload.
  13184. (updateUploadLength): New function.
  13185. (addDeltaUpload): Removed.
  13186. (updateDownloadLength): New function.
  13187. (resetDeltaUpload): Removed.
  13188. (getDeltaUpload): Removed.
  13189. (addDeltaDownload): Removed.
  13190. (calculateUploadSpeed): New function.
  13191. (resetDeltaDownload): Removed.
  13192. (getDeltaDownload): Removed.
  13193. (calculateDownloadSpeed): New function.
  13194. (getSessionUploadLength): New function.
  13195. (getSessionDownloadLength): New function.
  13196. (activate): New function.
  13197. (deactivate): New function.
  13198. (addPeerUpload): Removed.
  13199. (setPeerUpload): Removed.
  13200. (getPeerUpload): Removed.
  13201. (addPeerDownload): Removed.
  13202. (setPeerDownload): Removed.
  13203. (getPeerDownload): Removed.
  13204. * src/Peer.cc
  13205. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13206. * src/MetalinkRequestInfo.h
  13207. (MetalinkRequestInfo): Removed const qualifier from op.
  13208. * src/RequestInfo.h
  13209. (op): Removed const qualifier.
  13210. (RequestInfo): Removed const qualifier from op.
  13211. * src/prefs.h
  13212. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13213. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13214. * src/PeerInteractionCommand.cc
  13215. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13216. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13217. * src/PeerInteraction.cc
  13218. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13219. * src/main.cc
  13220. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13221. Added the description of "--max-download-limit" option.
  13222. Removed the description of "--upload-limit" option.
  13223. Added the description of "--max-upload-limit" option.
  13224. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13225. Added "--max-download-limit" option and "--max-upload-limit" option.
  13226. Added the warning message if "--upload-limit" option is used.
  13227. * src/DownloadCommand.cc
  13228. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13229. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13230. To rewrite segment download mechanism for HTTP/FTP download.
  13231. Use BitfieldMan to manage segment download.
  13232. * src/HttpResponseCommand.h
  13233. (executeInternal): Pass the reference of segment.
  13234. * src/AbstractCommand.cc
  13235. (prepareForRetry): Call segmentMan->cancelSegment here.
  13236. (onAbort): Call segmentMan->cancelSegment here.
  13237. * src/HttpDownloadCommand.cc
  13238. (prepareForNextSegment): New function.
  13239. * src/DownloadEngineFactory.cc
  13240. (newConsoleEngine): Removed splitter.
  13241. (newTorrentConsoleEngine): Removed splitter.
  13242. * src/Request.h
  13243. (segment): Renamed from seg.
  13244. * src/FtpInitiateConnectionCommand.h
  13245. (executeInternal): Pass the reference of segment.
  13246. * src/AbstractCommand.h
  13247. (executeInternal): Pass the reference of segment.
  13248. * src/pref.h
  13249. (PREF_SEGMENT_SIZE): New definition.
  13250. * src/HttpProxyRequestCommand.h
  13251. (executeInternal): Pass the reference of segment.
  13252. * src/HttpResponseCommand.cc
  13253. (checkResponse): Allowed status 206 when a request range starts 0.
  13254. (handleDefaultEncoding): Rewritten the code related to Segment.
  13255. (handleOtherEncoding): Rewritten the code related to Segment.
  13256. * src/SegmentMan.h
  13257. (SegmentEntry): New class.
  13258. (SegmentEntries): New type definition.
  13259. (bitfield): New variable.
  13260. (usedSegmentEntries): New variable.
  13261. (onNullBitfield): New function.
  13262. (checkoutSegment): New function.
  13263. (segments): Removed.
  13264. (splitter): Removed.
  13265. (unregisterId): Removed.
  13266. (getSegment): New function(overload)
  13267. (getDownloadedSize): Removed.
  13268. (cancelSegment): New function.
  13269. (completeSegment): New function.
  13270. (initBitfield): New function.
  13271. (hasSegment): New function.
  13272. (getDownloadLength): New function.
  13273. * src/BitfieldMan.h
  13274. (getStartIndex): New function.
  13275. (getEndIndex): New function.
  13276. (getMissingUnusedIndex): New function(overload).
  13277. (getSparseMissingUnusedIndex): New function.
  13278. * src/BitfieldMan.cc
  13279. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13280. (getMissingUnusedIndex): New function(overload).
  13281. (Range): New class.
  13282. (getStartIndex): New function.
  13283. (getEndIndex): New function.
  13284. (getSparseMissingUnusedIndex): New function.
  13285. (isBitSetInternal): Return false if the given index is less than 0.
  13286. * src/HttpInitiateConnectionCommand.h
  13287. (executeInternal): Pass the reference of segment.
  13288. * src/FtpNegotiateCommand.h
  13289. (executeInternal): Pass the reference of segment.
  13290. * src/FtpNegotiateCommand.cc
  13291. (recvSize): Initialize bitfield here.
  13292. * src/FtpTunnelResponseCommand.h
  13293. (executeInternal): Pass the reference of segment.
  13294. * src/HttpConnection.cc
  13295. (createRequest): Rewritten range header processing.
  13296. * src/DownloadCommand.h
  13297. (executeInternal): Pass the reference of segment.
  13298. (prepareForRetry): Removed.
  13299. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13300. function.
  13301. * src/main.cc
  13302. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13303. * src/SegmentMan.cc
  13304. (SegmentMan): Added bitfield. Removed splitter.
  13305. (~SegmentMan): Added bitfield. Removed splitter.
  13306. (unregisterId): Removed.
  13307. (getSegment): Rewritten.
  13308. (updateSegment): Rewritten.
  13309. (save): Rewritten.
  13310. (read): Rewritten.
  13311. (finished): Rewritten.
  13312. (getDownloadedSize): Removed.
  13313. (initBitfield): New function.
  13314. (FindSegmentEntryByIndex): New function object.
  13315. (FindSegmentEntryByCuid): New function object.
  13316. (checkoutSegment): New function.
  13317. (onNullBitfield): New function.
  13318. (getSegment): New function(overload).
  13319. (CancelSegment): New function object.
  13320. (cancelSegment): New function.
  13321. (completeSegment): New function.
  13322. (hasSegment): New function.
  13323. (getDownloadLength): New function.
  13324. * src/FtpInitiateConnectionCommand.cc
  13325. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13326. * src/Segment.h: Rewritten.
  13327. * src/Segment.cc (operator<<): New function.
  13328. * src/HttpDownloadCommand.h
  13329. (prepareForNextSegment): New function.
  13330. * src/Request.cc
  13331. (resetUrl): Made segment null.
  13332. * src/DownloadEngine.cc
  13333. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13334. * src/HttpProxyRequestCommand.h
  13335. (executeInternal): Pass the reference of segment.
  13336. * src/DownloadCommand.cc
  13337. (executeInternal): Rewritten the code related to Segment.
  13338. (prepareForRetry): Removed.
  13339. (prepareForNextSegment): Rewritten.
  13340. * src/FtpTunnelResponseCommand.h
  13341. (executeInternal): Pass the reference of segment.
  13342. To add HTTP 1.1 persistent connection support(experimental)
  13343. * src/HttpRequestCommand.cc
  13344. (executeInternal): Disable keep alive if it is disabled by
  13345. configuration.
  13346. * src/Request.h
  13347. (keepAlive): New variable.
  13348. (isKeepAlive): New function.
  13349. (setKeepAlive): New function.
  13350. * src/pref.h
  13351. (PREF_HTTP_KEEP_ALIVE): New definition.
  13352. * src/HttpResponseCommand.cc
  13353. (executeInternal): Check the remote server supports keep alive.
  13354. * src/HttpConnection.cc
  13355. (createRequest): Send "Connection: close" only if keep alive is
  13356. disabled.
  13357. * src/main.cc
  13358. (main):
  13359. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13360. To add max download speed limit:
  13361. * src/pref.h
  13362. (PREF_MAX_SPEED_LIMIT): New definition.
  13363. * src/PeerInteractionCommand.cc
  13364. (executeInternal): Added max download speed limit. Not tested yet.
  13365. * src/SegmentMan.h
  13366. (PeerStats): New type definition.
  13367. (peerStats): New variable.
  13368. (registerPeerStat): New function.
  13369. (FindPeerStat): New function object.
  13370. (getPeerStat): New function.
  13371. (calculateDownloadSpeed): New function.
  13372. * src/SpeedCalc.h: New class.
  13373. * src/SpeedCalc.cc: New class.
  13374. * src/main.cc
  13375. (main):
  13376. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13377. download speed is not restricted).
  13378. * src/PeerStat.h: New class.
  13379. * src/SegmentMan.cc
  13380. (registerPeerStat): New function.
  13381. (calculateDownloadSpeed): New function.
  13382. * src/DownloadCommand.cc
  13383. (STARTUP_IDLE_TIME): New definition.
  13384. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13385. downloadStart.
  13386. (~DownloadCommand): Call peerStat->downloadStop.
  13387. (executeInternal): Added download speed limitter. Rewritten lowest
  13388. speed limitter.
  13389. * src/HttpConnection.cc
  13390. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13391. * src/AbstractCommand.cc
  13392. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13393. Added hostname to the error message.
  13394. * src/ConsoleDownloadEngine.cc
  13395. (calculateStatistics): Initialize psize with dlSize.
  13396. * src/PieceMessage.cc
  13397. (receivedAction): Do not call peerInteraction->abortPiece here.
  13398. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13399. * src/BitfieldMan.h
  13400. (clearAllUseBit): New function.
  13401. (setAllUseBit): New function.
  13402. * src/BitfieldMan.cc
  13403. (clearAllBit): Do not clear useBitfield here.
  13404. (clearAllUseBit): New function.
  13405. (setAllUseBit): New function.
  13406. * src/Piece.cc
  13407. (clearAllBlock): Call bitfield->clearAllUseBit().
  13408. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13409. To make filename URL-decoded:
  13410. * src/HttpResponseCommand.h: Updated doc.
  13411. * src/HttpResponseCommand.cc
  13412. (determinFilename): Made filename URL-decoded.
  13413. * src/FtpInitiateConnectionCommand.cc
  13414. (executeInternal): Made filename URL-decoded.
  13415. * src/Util.h (urldecode): New function.
  13416. * src/Util.cc (urldecode): New function.
  13417. To fix a bug that caused assertion failure in ares_strerror:
  13418. * src/NameResolver.cc (callback): Fixed the bug.
  13419. * Release 0.7.3
  13420. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13421. To add --seed-time and --seed-ratio command-line option:
  13422. * src/Option.h (getAsDouble): New function.
  13423. * src/Option.cc (getAsDouble): New function.
  13424. * src/SeedCheckCommand.h: New class.
  13425. * src/SeedCheckCommand.cc: New class.
  13426. * src/DownloadEngineFactory.cc
  13427. (SeedCheckCommand.h): Included.
  13428. (UnionSeedCriteria.h): Included.
  13429. (TimeSeedCriteria.h): Included.
  13430. (ShareRatioSeedCriteria.h): Included.
  13431. (newTorrentConsoleEngine): Added the processing of seed option.
  13432. * src/SeedCriteria.h: New class.
  13433. * src/ShareRatioSeedCriteria.h: New class.
  13434. * src/TimeSeedCriteria.h: New class.
  13435. * src/UnionSeedCriteria.h: New class.
  13436. * src/prefs.h
  13437. (PREF_SEED_TIME): New definition.
  13438. (PREF_SEED_RATIO): New definition.
  13439. * src/main.cc
  13440. (showUsage): Added --seed-time and --seed-ratio option.
  13441. (main): Added --seed-time and --seed-ratio option.
  13442. Made default log file name "/dev/null".
  13443. * src/SharedHandle.h
  13444. (SharedHandle): Copy constructor. Made it assignable from the
  13445. SharedHandle of the subclasses.
  13446. (operator=): Made it assignable from the SharedHandle of the
  13447. subclasses.
  13448. (getRefCount): New function.
  13449. To add notice log level and the switch to write log to stdout. This
  13450. switch is configurable per log level.
  13451. * src/Logger.h
  13452. (notice): New function.
  13453. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13454. constant.
  13455. * src/LogFactory.cc
  13456. (getInstance): The use of NullLogger was removed. A log message with
  13457. notice log level was made written to stdout along with log file.
  13458. * src/NullLogger.h
  13459. (notice): New function.
  13460. * src/SimpleLogger.h
  13461. (writeHeader): Added the 'file' argument.
  13462. (writeLog): Added the 'file' argument.
  13463. (writeFile): New function.
  13464. (stdoutField): New variable.
  13465. (SimpleLogger): Removed the default constructor.
  13466. (SimpleLogger): Made the default value of logfile 0.
  13467. (debug): Added 'virtual' keyword.
  13468. (info): Added 'virtual' keyword.
  13469. (warn): Added 'virtual' keyword.
  13470. (error): Added 'virtual' keyword.
  13471. (notice): New function.
  13472. (setStdout): New function.
  13473. * src/SimpleLogger.cc
  13474. (WRITE_LOG): Replaced writeLog with writeFile.
  13475. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13476. (SimpleLogger): Removed the default constructor.
  13477. (setStdout): New function.
  13478. (writeLog): Added the handling of NOTICE log level.
  13479. (writeFile): New function.
  13480. (notice): New function.
  13481. * src/TorrentMan.h: Updated doc.
  13482. * src/BitfieldMan.h: Updated doc.
  13483. * src/TrackerWatcherCommand.cc
  13484. (execute): Return true if error occurred in the request to the tracker
  13485. and halt is requested.
  13486. * src/TrackerUpdateCommand.cc
  13487. (execute): Return true if error occurred in the request to the tracker
  13488. and halt is requested.
  13489. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13490. DownloadEngine:
  13491. * src/TorrentConsoleDownloadEngine.h
  13492. (onSelectiveDownloadingCompletes): Removed.
  13493. * src/TorrentConsoleDownloadEngine.cc
  13494. (onSelectiveDownloadingCompletes): Removed.
  13495. * src/TorrentDownloadEngine.h
  13496. (onEndOfRun): Added 'virtual' keyword.
  13497. (afterEachIteration): Removed.
  13498. (onSelectiveDownloadingCompletes): Removed.
  13499. * src/TorrentDownloadEngine.cc
  13500. (onEndOfRun): Removed filenameFixed.
  13501. (afterEachIteration): Removed.
  13502. * src/TorrentMan.cc
  13503. (completePiece): Call onDownloadComplete here.
  13504. (onDownloadComplete): Added 2 log messages.
  13505. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13506. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13507. * src/NameResolver.h: Added the prototype declaration of callback().
  13508. To support c-ares library:
  13509. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13510. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13511. * src/FtpInitiateConnectionCommand.h:
  13512. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13513. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13514. * src/HttpInitiateConnectionCommand.h:
  13515. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13516. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13517. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13518. #1542285 by tizianomueller)
  13519. * src/HttpInitiateConnectionCommand.cc:
  13520. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13521. * src/FtpInitiateConnectionCommand.cc:
  13522. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13523. * src/DownloadEngine.h:
  13524. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13525. * src/DownloadEngine.cc:
  13526. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13527. To fix the bug that causes compilation failure with metalink-support
  13528. disabled(bug#1543587):
  13529. * src/main.cc: Fixed with the patch by tizianomueller.
  13530. * Release 0.7.2
  13531. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13532. * src/main.cc
  13533. (main): Added a message to inform users that aria2 is starting to
  13534. verify checksum.
  13535. * src/RequestInfo.cc
  13536. (printDownloadAbortMessage): Added a message to inform users that
  13537. transfer can be resumed.
  13538. * src/FeatureConfig.cc
  13539. (FEATURE_ASYNC_DNS): New definition.
  13540. (FeatureConfig): Added aysnc DNS entry.
  13541. To replace CommandUuid with Command* in SocketEntry and
  13542. NameResolverEntry:
  13543. * src/DownloadEngine.h
  13544. (CommandUuids): Removed.
  13545. (SocketEntry::commandUuid): Removed.
  13546. (SocketEntry::command): New variable.
  13547. (SocketEntry::SocketEntry): Updated.
  13548. (SocketEntry::operator==): Updated.
  13549. (NameResolverEntry::commandUuid): Removed.
  13550. (NameResolverEntry::command): New variable.
  13551. (NameResolverEntry::NameResolverEntry): Updated.
  13552. (NameResolverEntry::operator==): Updated.
  13553. (waitData): Changed the argument type.
  13554. (addSocketForReadCheck): Changed the argument type.
  13555. (deleteSocketForReadCheck): Changed the argument type.
  13556. (addSocketForWriteCheck): Changed the argument type.
  13557. (deleteSocketForWriteCheck): Changed the argument type.
  13558. (addNameResolverCheck): Changed the argument type.
  13559. (deleteNameResolverCheck): Changed the argument type.
  13560. * src/DownloadEngine.cc
  13561. (FindCommand): Removed.
  13562. (run): Removed activeUuid. Added activeCommands instead.
  13563. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13564. (AccumulateActiveCommand): New function object.
  13565. (waitData): Use AccumulateActiveCommand.
  13566. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13567. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13568. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13569. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13570. (addNameResolverCheck): Use Command instead of CommandUuid.
  13571. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13572. * src/AbstractCommand.cc
  13573. (disableReadCheckSocket): Updated according to the changes in
  13574. DownloadEngine.
  13575. (setReadCheckSocket): Updated according to the changes in
  13576. DownloadEngine.
  13577. (disableWriteCheckSocket): Updated according to the changes in
  13578. DownloadEngine.
  13579. (setWriteCheckSocket): Updated according to the changes in
  13580. DownloadEngine.
  13581. (setNameResolverCheck): Updated according to the changes in
  13582. DownloadEngine.
  13583. (disableNameResolverCheck): Updated according to the changes in
  13584. DownloadEngine.
  13585. * src/AbstractCommand.cc
  13586. (disableReadCheckSocket): Updated according to the changes in
  13587. DownloadEngine.
  13588. (setReadCheckSocket): Updated according to the changes in
  13589. DownloadEngine.
  13590. (disableWriteCheckSocket): Updated according to the changes in
  13591. DownloadEngine.
  13592. (setWriteCheckSocket): Updated according to the changes in
  13593. DownloadEngine.
  13594. * release 0.7.1
  13595. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13596. To handle the case where some BitTorrent tracker requires all letters
  13597. except for [A-Za-z0-9] is URL encoded.
  13598. * src/Util.h
  13599. (torrentUrlencode): New function.
  13600. * src/Util.cc
  13601. (ctype.h): Included.
  13602. (torrentUrlencode): New function.
  13603. * src/TrackerWatcherCommand.cc
  13604. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13605. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13606. To add asynchronous DNS support(libares):
  13607. * src/AbstractCommand.h
  13608. (setNameResolverCheck): New function.
  13609. (disableNameResolverCheck): New function
  13610. (resolveHostname): New function.
  13611. * src/AbstractCommand.cc
  13612. (setNameResolverCheck): New function.
  13613. (disableNameResolverCheck): New function
  13614. (resolveHostname): New function.
  13615. * src/FtpInitiateConnectionCommand.h
  13616. (nameResolver): New function.
  13617. * src/FtpInitiateConnectionCommand.cc
  13618. (Util.h): Included.
  13619. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13620. disableWriteCheckSocket.
  13621. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13622. (executeInternal): Added async DNS support.
  13623. * src/HttpInitiateConnectionCommand.h
  13624. (nameResolver): New function.
  13625. * src/HttpInitiateConnectionCommand.cc
  13626. (DlRetryEx.h): Included.
  13627. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13628. disableWriteCheckSocket.
  13629. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13630. (executeInternal): Added async DNS support.
  13631. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13632. by extern "C" declaration.
  13633. * src/NameResolver.cc: New class.
  13634. * src/Util.h:
  13635. (isNumberAndDotsNotation): New function
  13636. * src/Util.cc
  13637. (isNumberAndDotsNotation): New function.
  13638. * src/DownloadEngine.h
  13639. (NameResolver.h): Included.
  13640. (NameResolverEntry): New class.
  13641. (NameResolverEntries): New type definition.
  13642. (addNameResolverCheck): New function.
  13643. (deleteNameResolverCheck): New function.
  13644. * src/DownloadEngine.cc
  13645. (run): Initialize cp with 0.
  13646. (SetDescriptor::operator()): Added for NameResolverEntry.
  13647. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13648. (waitData): Check nameResolver entries.
  13649. (updateFdSet): Update fds in nameResolver entries.
  13650. (addNameResolverCheck): New function.
  13651. (deleteNameResolverCheck): new function.
  13652. * src/PeerInteractionCommand.cc
  13653. (executeInternal): Fixed wrong socket handling.
  13654. * src/main.cc
  13655. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13656. * src/Util.cc
  13657. (fileChecksum): Removed the call to ctx.digestReset().
  13658. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13659. * po/ru.po: Azamat sent me Russian translation.
  13660. * src/FtpNegotiateCommand.cc
  13661. (recvGreeting): Call disableWriteCheckSocket just after
  13662. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13663. (recvRetr): Recognized status code 125 as a acceptable response code.
  13664. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13665. case-insesitive filesystem(BUG#1531057).
  13666. * src/Time.h: Renamed as TimeA2.h.
  13667. * src/Time.cc: Renamed as TimeA2.cc.
  13668. * src/TimeA2.h: New class.
  13669. * src/TimeA2.cc: New class.
  13670. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13671. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13672. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13673. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13674. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13675. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13676. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13677. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13678. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13679. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13680. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13681. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13682. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13683. * release 0.7.0
  13684. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13685. * src/PeerChokeCommand.h
  13686. (PeerChokeCommand): Rearranged the arguments.
  13687. * src/PeerChokeCommand.cc
  13688. (PeerChokeCommand): Rearranged the arguments.
  13689. * src/MetalinkEntry.h
  13690. (Checksum.h): Included.
  13691. (md5): Removed.
  13692. (sha1): Removed.
  13693. (checksum): New variable.
  13694. (operator=): Updated.
  13695. (check): Removed.
  13696. * src/prefs.h
  13697. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13698. (PREF_FOLLOW_TORRENT): New definition.
  13699. (PREF_SELECT_FILE): New definition.
  13700. (PREF_FOLLOW_METALINK): New definition.
  13701. * src/MetalinkResource.h
  13702. (TYPE_HTTPS): Added to enum TYPE.
  13703. * src/TorrentMan.cc
  13704. (~TorrentMan): Rewritten.
  13705. * src/MultiDiskWriter.cc
  13706. (MultiDiskAdaptor): Updated according to the changes in
  13707. MessageDigestContext.
  13708. (~MultiDiskAdaptor): Updated according to the changes in
  13709. MessageDigestContext.
  13710. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13711. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13712. * src/Util.h
  13713. (fileChecksum): Updated according to the changes in
  13714. MessageDigestContext.
  13715. * src/Util.cc
  13716. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13717. (fileChecksum): Updated according to the changes in
  13718. MessageDigestContext.
  13719. * src/messageDigest.h: Rewritten.
  13720. * src/MetalinkEntry.cc
  13721. (check): Removed.
  13722. (Supported): Updated.
  13723. (dropUnsupportedResource): Fixed a memory leak.
  13724. * src/ShaVisitor.cc
  13725. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13726. (~ShaVisitor): Updated according to the changes in
  13727. MessageDigestContext.
  13728. (visit): Updated according to the changes in MessageDigestContext.
  13729. * src/main.cc
  13730. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13731. command-line option added.
  13732. * src/DownloadEngine.h
  13733. (SocketEntry): New class.
  13734. (SocketEntries): New definition.
  13735. (PairFind): Removed.
  13736. (SockCmdMap): Removed.
  13737. * src/DownloadEngine.cc
  13738. (DownloadEngine): Rewritten.
  13739. (~DownloadEngine): Rewritten.
  13740. (run): Renamed activeCommandUuids as activeUuids.
  13741. (SetDescriptor): Rewritten.
  13742. (AccumulateActiveCommandUuid): Removed.
  13743. (AccumulateActiveUuid): New function object.
  13744. (waitData): Rewritten.
  13745. (updateFdSet): Rewritten.
  13746. (addSocket): Rewritten.
  13747. (deleteSocket): Rewritten.
  13748. (addSocketForReadCheck): Rewritten.
  13749. (deleteSocketForReadCheck): Rewritten.
  13750. (addSocketForWriteCheck): Rewritten.
  13751. (deleteSocketForWriteCheck): Rewritten.
  13752. * src/Xml2MetalinkProcessor.cc
  13753. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13754. * src/DownloadCommand.cc
  13755. (executeInternal): Added the check routine for lowest speed limit.
  13756. * src/AbstractDiskWriter.cc
  13757. (AbstractDiskWriter): Updated according to the changes in
  13758. MessageDigestContext.
  13759. (~AbstractDiskWriter): Updated according to the changes in
  13760. MessageDigestContext.
  13761. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13762. * src/RequestInfo.h: New class.
  13763. * src/UrlRequestInfo.h: New class.
  13764. * src/UrlRequestInfo.cc: New class.
  13765. * src/TorrentRequestInfo.h: New class.
  13766. * src/TorrentRequestInfo.cc: New class.
  13767. * src/MetalinkRequestInfo.h: New class.
  13768. * src/MetalinkRequestInfo.cc: New class.
  13769. * src/Checksum.h: New class.
  13770. * src/DownloadEngineFactory.h: New class.
  13771. * src/DownloadEngineFactory.cc: New class.
  13772. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13773. * src/Option.h
  13774. (getAsBool): New function.
  13775. * src/Option.cc
  13776. (prefs.h): Included.
  13777. (defined): 0-length value is now recognized as undefined.
  13778. (getAsInt): Rewritten.
  13779. (getAsLLInt): Rewritten.
  13780. (getAsBool): New function.
  13781. * src/FeatureConfig.h: Rewritten.
  13782. * src/FeatureConfig.cc: Rewritten.
  13783. * src/prefs.h
  13784. (PREF_STDOUT_LOG): New definition.
  13785. (PREF_LOG): New definition.
  13786. (PREF_DIR): New definition.
  13787. (PREF_OUT): New definition.
  13788. (PREF_SPLIT): New definition.
  13789. (PREF_DAEMON): New definition.
  13790. (PREF_REFERER): New definition.
  13791. (PREF_TORRENT_FILE): New definition.
  13792. (PREF_LISTEN_PORT): New definition.
  13793. (PREF_METALINK_FILE): New definition.
  13794. (PREF_METALINK_VERSION): New definition.
  13795. (PREF_METALINK_LANGUAGE): New definition.
  13796. (PREF_METALINK_OS): New definition.
  13797. (PREF_METALINK_SERVERS): New definition.
  13798. * src/main.cc
  13799. (main): Following command-line parameters are now put into Option
  13800. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13801. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13802. metalinkLanguage, metalinkOs, metalinkServers
  13803. To fix the bug that aria2 can not handle http response header properly.
  13804. * src/HttpHeader.cc
  13805. (put): Made name lowercased.
  13806. (defined): Made name lowercased.
  13807. (getFirst): Made name lowercased.
  13808. (get): Made name lowercased.
  13809. (getFirstAsInt): Rewritten.
  13810. (getFirstAsLLInt): Rewritten.
  13811. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13812. * src/TorrentMan.h:
  13813. (advertisePiece): Updated doc.
  13814. (getAdvertisedPieceIndexes): Updated doc.
  13815. (removeAdvertisedPiece); New function.
  13816. * src/TorrentMan.cc
  13817. (FindElapsedHave): New function object.
  13818. (removeAdvertisedPiece): New function.
  13819. * src/HaveEraseCommand.h: New class.
  13820. * src/HaveEraseCommand.cc: New class.
  13821. * src/FeatureConfig.h: New class.
  13822. * src/FeatureConfig.cc: New class.
  13823. * src/Request.h
  13824. (defaultPorts): Removed.
  13825. * src/Request.cc
  13826. (FeatureConfig.h): Included.
  13827. (Request): Removed the statements related to defaultPorts.
  13828. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13829. A default port number is now retrieved from FeatureConfig.
  13830. * src/main.cc
  13831. (HaveEraseCommand.h): Included.
  13832. (showVersion): Added the output of feature list.
  13833. (main): Added HaveEraseCommand to command queue in BitTorrent
  13834. downloading.
  13835. * src/PeerInteractionCommand.h
  13836. (chokeCheckPoint): Commented out.
  13837. (periodicExecPoint): New variable.
  13838. * src/PeerInteractionCommand.cc
  13839. (executeInternal): Following methods are now called in at least every
  13840. 0.5 seconds to reduce CPU usage:
  13841. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13842. checkHave(), sendKeepAlive().
  13843. (checkLongTimePeerChoking): Commented out.
  13844. * src/BitfieldMan.h
  13845. (getNthBitIndex): Changed the method signature.
  13846. (getMissingIndexRandomly): Changed the method signature.
  13847. * src/BitfieldMan.cc
  13848. (getNthBitIndex): Rewritten
  13849. (getMissingIndexRandomly): Rewritten.
  13850. (hasMissingPiece): Rewritten.
  13851. (getMissingIndex): Refactored.
  13852. (getMissingUnusedIndex); Refactored.
  13853. (getMissingIndex): Refactored.
  13854. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13855. * src/PeerMessage.h
  13856. (Piece.h): Included.
  13857. (SharedHandle.h): Included.
  13858. (invalidate): New variable.
  13859. (uploading): New variable.
  13860. (isInvalidate): New function.
  13861. (isUploading): New function.
  13862. (onPush): New function.
  13863. (onChoked): New function.
  13864. (onCanceled): New function.
  13865. (onAbortPiece): New function.
  13866. (PeerMessageHandle): New type definition.
  13867. * src/PeerMessage.cc
  13868. (PeerMessage): Added the initialization for invalidate and uploading.
  13869. * src/CancelMessage.h
  13870. (CancelMessage): Rewritten.
  13871. * src/RejectMessage.h
  13872. (RejectMessage): Rewritten.
  13873. * src/Metalinker.h
  13874. (operator=): Defined.
  13875. * src/MetaEntry.h
  13876. (operator=): Defined.
  13877. * src/MetalinkResource.h
  13878. (operator=): Defined.
  13879. * src/AllowedFastMessage.h
  13880. (AllowedFastMessage): Rewritten.
  13881. * src/HandshakeMessage.h
  13882. (HandshakeMessage): New function(overload).
  13883. * src/HandshakeMessage.cc
  13884. (HandshakeMessage): Rewritten.
  13885. (init): New function.
  13886. * src/HaveMessage.h
  13887. (HaveMessage): Rewritten.
  13888. * src/Time.h
  13889. (operator=): Defined the function body here.
  13890. * src/Time.cc
  13891. (operator=): Removed.
  13892. * src/SocketCore.h
  13893. (operator==): Defined here.
  13894. (operator!=): Defined here.
  13895. (operator<): Defined here.
  13896. * src/SocketCore.cc
  13897. (operator==): Removed.
  13898. (operator<): Removed.
  13899. * src/BitfieldMan.h
  13900. (operator=): Defined the function body here.
  13901. * src/BitfieldMan.cc
  13902. (operator=): Removed.
  13903. * src/TorrentMan.h
  13904. (deleteErrorPeer): Removed.
  13905. (deleteUnusedPeer); New function.
  13906. * src/TorrentMan.cc
  13907. (addPeer): Call deleteUnusedPeer.
  13908. (deleteErrorPeer): Removed.
  13909. (deleteUnusedPeer): New function.
  13910. * src/PeerAbstractCommand.h
  13911. (setNoCheck): New function.
  13912. (noCheck): New variable.
  13913. * src/PeerAbstractCommand.cc
  13914. (PeerAbstractCommand): Added the initialization of noCheck.
  13915. (execute): Added a check for noCheck.
  13916. (setNoCheck): New function.
  13917. * src/Util.h
  13918. (stdio.h): Included.
  13919. * src/Util.cc
  13920. (unistd.h): Included.
  13921. * src/DefaultDiskWriter.cc
  13922. (unistd.h): Included.
  13923. * src/Peer.h
  13924. (operator==): Defined the function body here.
  13925. (operator!=): Defined the function body here.
  13926. * src/Peer.cc
  13927. (operator==): Removed.
  13928. (operator!=): Removed.
  13929. * src/Piece.h
  13930. (Piece): Defined the function body here(copy constructor).
  13931. (operator=): Defined the function body here.
  13932. (operator==): Defined the function body here.
  13933. * src/Piece.cc
  13934. (Piece): Removed(copy constructor).
  13935. (operator=): Removed.
  13936. (operator==): Removed.
  13937. * src/PeerMessageUtil.h
  13938. (ChokeMessage.h): Removed.
  13939. (UnchokeMessage.h): Removed.
  13940. (InterestedMessage.h): Removed.
  13941. (NotInterestedMessage.h): Removed.
  13942. (HaveMessage.h): Removed.
  13943. (BitfieldMessage.h): Removed.
  13944. (RequestMessage.h): Removed.
  13945. (CancelMessage.h): Removed.
  13946. (PieceMessage.h): Removed.
  13947. (HandshakeMessage.h): Removed.
  13948. (KeepAliveMessage.h): Removed.
  13949. (PortMessage.h): Removed.
  13950. (HaveAllMessage.h): Removed.
  13951. (HaveNoneMessage.h): Removed.
  13952. (PeerConnection.h): Removed.
  13953. (HandshakeMessage.h): Included.
  13954. * src/BitfieldMessage.h
  13955. (init): New function.
  13956. (BitfieldMessage): Rewritten.
  13957. (BitfieldMessage): New function(overload).
  13958. * src/RequestSlot.h
  13959. (operator=): Defined the function body here.
  13960. (operator==): Defined the function body here.
  13961. * src/RequestSlot.cc
  13962. (operator=): Removed.
  13963. (operator==): Removed.
  13964. To remove the dependency on the PeerMessage subclass from
  13965. PeerInteraction:
  13966. * src/PeerMessageFactory.h: New class.
  13967. * src/PeerMessageFactory.cc: New class.
  13968. * src/SimplePeerMessage.cc
  13969. (send): If invalidate is true then do nothing.
  13970. * src/PeerInteractionCommand.cc
  13971. (HandshakeMessage.h): Included.
  13972. (KeepAliveMessage.h): Included.
  13973. (ChokeMessage.h): Included.
  13974. (UnchokeMessage.h): Included.
  13975. (HaveMessage.h): Included.
  13976. (executeInternal): Call setNoCheck().
  13977. Removed setWriteCheckSocket(socket).
  13978. * src/PeerInteraction.h
  13979. (ChokeMessage.h): Removed.
  13980. (UnchokeMessage.h): Removed.
  13981. (InterestedMessage.h): Removed.
  13982. (NotInterestedMessage.h): Removed.
  13983. (HaveMessage.h): Removed.
  13984. (BitfieldMessage.h): Removed.
  13985. (RequestMessage.h): Removed.
  13986. (CancelMessage.h): Removed.
  13987. (PieceMessage.h): Removed.
  13988. (HandshakeMessage.h): Removed.
  13989. (KeepAliveMessage.h): Removed.
  13990. (PortMessage.h): Removed.
  13991. (HaveAllMessage.h): Removed.
  13992. (HaveNoneMessage.h): Removed.
  13993. (RejectMessage.h): Removed.
  13994. (AllowedFastMessage.h): Removed.
  13995. (SuggestPieceMessage.h): Removed.
  13996. (PeerMessageFactory.h): Included.
  13997. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13998. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13999. (PeerMessageFactory): New variable.
  14000. (createPeerMessage): Removed.
  14001. (createHandshakeMessage): Removed.
  14002. (setPeerMessageCommonProperty): Removed.
  14003. (addRequestSlot): New function.
  14004. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14005. (getPeerMessageFactory): New function.
  14006. (createRequestMessage): Removed.
  14007. (createCancelMessage): Removed.
  14008. (createPieceMessage): Removed.
  14009. (createHaveMessage): Removed.
  14010. (createChokeMessage): Removed.
  14011. (createUnchokeMessage): Removed.
  14012. (createInterestedMessage): Removed.
  14013. (createNotInterestedMessage): Removed.
  14014. (createBitfieldMessage): Removed.
  14015. (createKeepAliveMessage): Removed.
  14016. (createHaveAllMessage): Removed.
  14017. (createHaveNoneMessage): Removed.
  14018. (createRejectMessage): Removed.
  14019. (createAllowedFastMessage): Removed.
  14020. * src/PeerInteraction.cc
  14021. (PeerInteraction): Allocate PeerMessageFactory here.
  14022. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14023. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14024. PieceMessage::ID.
  14025. (addMessage): Simplified by using PeerMessage::onPush().
  14026. (addRequestSlot): New function.
  14027. (rejectAllPieceMessageInQueue): Simplified by using
  14028. PeerMessage::onChoked().
  14029. (rejectPieceMessageInQueue): Simplified by using
  14030. PeerMessage::onCanceled().
  14031. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14032. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14033. (createHandshakeMessage): Removed.
  14034. (createPeerMessage): Removed.
  14035. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14036. (setPeerMessageCommonProperty): Removed.
  14037. (createRequestMessage): Removed.
  14038. (createCancelMessage): Removed.
  14039. (createPieceMessage): Removed.
  14040. (createHaveMessage): Removed.
  14041. (createChokeMessage): Removed.
  14042. (createUnchokeMessage): Removed.
  14043. (createInterestedMessage): Removed.
  14044. (createNotInterestedMessage): Removed.
  14045. (createBitfieldMessage): Removed.
  14046. (createKeepAliveMessage): Removed.
  14047. (createHaveAllMessage): Removed.
  14048. (createHaveNoneMessage): Removed.
  14049. (createRejectMessage): Removed.
  14050. (createAllowedFastMessage): Removed.
  14051. * src/PieceMessage.h
  14052. (createRejectMessage): New function.
  14053. (PieceMessage): Rewritten.
  14054. (onChoked): New function.
  14055. (onCanceled): New function.
  14056. * src/PieceMessage.cc
  14057. (send): If invalidate is true then do nothing, just return.
  14058. (createRejectMessage): New function.
  14059. (onChoked): New function.
  14060. (onCanceled): New function.
  14061. * src/RequestMessage.h
  14062. (RequestMessage): Rewritten.
  14063. (onPush): New function.
  14064. (onAbortPiece): New function.
  14065. * src/RequestMessage.cc
  14066. (onPush): New function.
  14067. (onAbortPiece): New function.
  14068. Update fd_set when a socket is added or deleted in order to improve
  14069. performance:
  14070. * src/DownloadEngine.h
  14071. (rfdset): New variable.
  14072. (wfdset): New variable.
  14073. (updateFdSet): New function.
  14074. * src/DownloadEngine.cc
  14075. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14076. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14077. (waitData): Copy rfdset and wfdset.
  14078. (updateFdSet): New function.
  14079. (addSocket): Call updateFdSet.
  14080. (deleteSocket): Call updateFdSet.
  14081. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14082. To add the support for Metalink3.0 backward compatible links:
  14083. * src/Request.h
  14084. (SAFE_CHARS): Added '#'.
  14085. (METALINK_MARK): New definition.
  14086. * src/Request.cc
  14087. (parseUrl): Added the support for Metalink3.0 backward compatible
  14088. links.
  14089. etc
  14090. * src/PeerInteraction.cc
  14091. (MsgPushBack): Removed.
  14092. (sendMessages): Use STL copy and back_inserter.
  14093. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14094. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14095. * src/TorrentMan.h
  14096. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14097. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14098. * src/SharedHandle.h: New class.
  14099. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14100. * src/HttpResponseCommand.h
  14101. (HttpResponseCommand): Wrapped Socket.
  14102. * src/SocketCore.h
  14103. (operator==): New function.
  14104. (operator!=): New function.
  14105. (operator<): New function.
  14106. (getSockfd): New function.
  14107. (isOpen): New function.
  14108. (writeData): New function.
  14109. * src/SocketCore.cc
  14110. (operator==): New function.
  14111. (operator!=): New function.
  14112. (operator<): New function.
  14113. * src/AbstractCommand.h
  14114. (socket): Changed its type to SocketHandle.
  14115. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14116. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14117. (disableReadCheckSocket): New function.
  14118. (disableWriteCheckSocket): New function.
  14119. (readCheckTarget): Changed its type to SocketHandle.
  14120. (writeCheckTarget): Changed its type to SocketHandle.
  14121. (AbstractCommand): Replaced Socket with SocketHandle.
  14122. * src/AbstractCommand.cc
  14123. (AbstractCommand): Replaced Socket with SocketHandle.
  14124. (~AbstractCommand): Removed the deallocation for Socket object.
  14125. (disableReadCheckSocket): New function.
  14126. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14127. (disableWriteCheckSocket): New function.
  14128. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14129. * src/HttpDownloadCommand.cc
  14130. (DownloadCommand): Replaced Socket with SocketHandle.
  14131. * src/PeerAbstractCommand.h
  14132. (socket): Changed its type to SocketHandle.
  14133. (peer): Changed its type to PeerHandle.
  14134. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14135. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14136. (disableReadCheckSocket): New function.
  14137. (disableWriteCheckSocket): New function.
  14138. (readCheckTarget): Changed its type to SocketHandle.
  14139. (writeCheckTarget): Changed its type to SocketHandle.
  14140. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14141. Replaced Peer with PeerHandle.
  14142. * src/HttpRequestCommand.cc
  14143. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14144. Use disableReadCheckSocket.
  14145. * src/PeerInitiateConnectionCommand.h
  14146. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14147. * src/PeerChokeCommand.cc
  14148. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14149. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14150. (execute): Use PeerHandle.
  14151. * src/PeerConnection.h
  14152. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14153. (socket): Changed its type to SocketHandle.
  14154. (PeerConnection): Replaced Socket with SocketHandle.
  14155. * src/PeerConnection.cc
  14156. (PeerConnection): Replaced Socket with SocketHandle.
  14157. * src/PeerInteractionCommand.h
  14158. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14159. Replaced Peer with PeerHandle.
  14160. * src/PeerInteractionCommand.cc
  14161. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14162. Replaced Peer with PeerHandle.
  14163. (executeInternal): Use disableWriteCheckSocket.
  14164. Use HandshakeMessageHandle.
  14165. (receiveMessages): Use PeerMessageHandle.
  14166. (prepareForNextPeer): Use PeerHandle.
  14167. * src/HttpProxyRequestCommand.h
  14168. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14169. * src/HttpResponseCommand.cc
  14170. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14171. * src/TorrentMan.cc
  14172. (nullPeer): Added external reference.
  14173. (~TorrentMan): Removed the deallocation of the elements of peers.
  14174. (addPeer): Rewritten.
  14175. (isPeerAvailable): Use nullPeer.
  14176. (deleteOldpeers): Replaced with deleteErrorPeer.
  14177. (deleteErrorPeer): New function.
  14178. (getPeer): Use PeerHandle and nullPeer.
  14179. (hasMissingPiece): Replaced Peer with PeerHandle.
  14180. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14181. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14182. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14183. (getMissingPiece): Replaced Peer with PeerHandle.
  14184. * src/FtpNegotiateCommand.cc
  14185. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14186. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14187. (recvGreeting): Use disableWriteCheckSocket.
  14188. (recvPasv): Removed the allocation of Socket.
  14189. Use disableReadCheckSocket.
  14190. (sendRestPasv): Use disableWriteCheckSocket.
  14191. (recvRetr): Changed assertion.
  14192. * src/PeerInteraction.h
  14193. (SharedHandle.h): Included SharedHandle.h.
  14194. (PeerMessageHandle): New type definition.
  14195. (HandshakeMessageHandle): New type definition.
  14196. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14197. (peer): Changed its type to PeerHandle.
  14198. (createHandshakeMessage): Replaced HandshakeMessage with
  14199. HandshakeMessageHandle.
  14200. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14201. (PeerInteraction): Replaced Peer with PeerHandle.
  14202. Replaced Socket with SocketHandle.
  14203. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14204. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14205. (receiveHandshake): Replaced HandshakeMessage with
  14206. HandshakeMessageHandle.
  14207. * src/PeerInteraction.cc
  14208. (PeerInteraction): Replaced Peer with PeerHandle.
  14209. Replaced Socket with SocketHandle.
  14210. (~PeerInteraction): Removed the deallocation of the elements of
  14211. messageQueue.
  14212. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14213. (isSendingMessageInProgress): Replaced PeerMessage with
  14214. PeerMessageHandle.
  14215. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14216. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14217. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14218. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14219. (abortPiece): Use PeerMessageHandle.
  14220. (receiveHandshake): Replaced HandshakeMessage with
  14221. HandshakeMessageHandle. Removed try-catch block.
  14222. (createHandshakeMessage): Replaced HandshakeMessage with
  14223. HandshakeMessageHandle.
  14224. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14225. Removed try-catch block.
  14226. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14227. * src/HttpProxyResponseCommand.cc
  14228. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14229. * src/FtpTunnelResponseCommand.h
  14230. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14231. * src/HttpConnection.cc
  14232. (HttpConnection): Replaced Socket with SocketHandle.
  14233. * src/PeerAbstractCommand.cc
  14234. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14235. (~PeerAbstractCommand): Removed the deallocation of socket.
  14236. Use disableReadCheckSocket, disableWriteCheckSocket.
  14237. (disableReadCheckSocket): New function.
  14238. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14239. (disableWriteCheckSocket): New function.
  14240. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14241. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14242. * src/FtpTunnelRequestCommand.cc
  14243. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14244. (~FtpTunnelRequestCommand): Corrected indentation.
  14245. * src/DownloadCommand.h
  14246. (DownloadCommand): Replaced Socket with SocketHandle.
  14247. * src/PeerListenCommand.cc
  14248. (PeerListenCommand): Removed the initialization of socket.
  14249. (~PeerListenCommand): Removed the deallocation of socket.
  14250. (bindPort): Use SocketHandle.
  14251. (execute): Use SocketHandle and PeerHandle.
  14252. * src/FtpDowndloadCommand.cc
  14253. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14254. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14255. * src/main.cc
  14256. (main): Corrected indentation.
  14257. * src/HttpInitiateConnectionCommand.cc
  14258. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14259. (executeInternal): Removed the allocation of socket.
  14260. * src/HttpRequestCommand.h
  14261. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14262. * src/FtpNegotiationCommand.h
  14263. (dataSocket): Changed its type to SocketHandle.
  14264. (serverSocket): Changed its type to SocketHandle.
  14265. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14266. * src/TorrentMan.h
  14267. (MAX_PEER_UPDATE): Removed.
  14268. (MAX_PEERS): New definition.
  14269. (Peers): The element is now of type PeerHandle.
  14270. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14271. (getPeer): Replaced Peer with PeerHandle.
  14272. (deleteOldErrorPeers): Removed.
  14273. (deleteErrorPeer): New function.
  14274. (hasMissingPiece): Replaced Peer with PeerHandle.
  14275. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14276. (getMissingPiece): Replaced Peer with PeerHandle.
  14277. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14278. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14279. (addActivePeer): Replaced Peer with PeerHandle.
  14280. (deleteActivePeer): Replaced Peer with PeerHandle.
  14281. Added a check for the return value of find.
  14282. * src/FtpTunnelResponseCommand.cc
  14283. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14284. * src/FtpInitiateConnectionCommand.cc
  14285. (executeInternal): Removed the allocation of socket.
  14286. * src/DownloadEngine.h
  14287. (Sockets): An element is now of type SocketHandle.
  14288. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14289. (CommandUuids): New type definition.
  14290. (rsockets): Changed its type to SockCmdMap.
  14291. (wsockets): Changed its type to SockCmdMap.
  14292. (addSocket): Rewritten.
  14293. (deleteSocket): Rewritten.
  14294. (addSocketForReadCheck): Rewritten.
  14295. (deleteSocketForReadCheck): Rewritten.
  14296. (addSocketForWriteCheck): Rewritten.
  14297. (deleteSocketForWriteCheck): Rewritten.
  14298. (PairFind): New template class.
  14299. * src/HttpDownloadCommand.h
  14300. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14301. * src/FtpConnection.cc
  14302. (FtpConnection): Replaced Socket with SocketHandle.
  14303. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14304. block.
  14305. * src/InitiateConnectionCommandFactory.cc
  14306. (DlAbortEx.h): Included DlAbortEx.h.
  14307. (createInitiateConnectionCommand): Throw exception if the protocol of
  14308. requested URI is not supported.
  14309. * src/Peer.cc
  14310. (nullPeer): Changed its type to PeerHandle.
  14311. (operator==): New function.
  14312. (operator!=): New function.
  14313. * src/Peer.h
  14314. (SharedHandle.h): Included SharedHandle.h.
  14315. (operator==): New function.
  14316. (operator!=): New function.
  14317. (Peer): Added the default constructor.
  14318. Use resetStatus() to initialize member variables.
  14319. (nullPeer): Removed.
  14320. * src/TrackerUpdateCommand.cc
  14321. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14322. with MIN_PEERS.
  14323. * src/PeerListenCommand.h
  14324. (socket): Changed its type to SocketHandle.
  14325. * src/Command.h
  14326. (CommandUuid): New type definition.
  14327. (uuid): New variable.
  14328. (uuidGen): New variable.
  14329. (Command): Added the initialization of uuid.
  14330. (getUuid): New function.
  14331. * src/Socket.h
  14332. (Socket): Removed.
  14333. (SocketHandle): New type definition.
  14334. * src/DownloadEngine.h
  14335. (FindCommand): New function object.
  14336. (run): The portion of socket check was rewritten.
  14337. (SetDescriptor): New function object.
  14338. (AccumulateActiveCommandUuid): New function object.
  14339. (waitData): Rewritten.
  14340. (addSocket): Rewritten.
  14341. (deleteSocket): Rewritten.
  14342. (addSocketForReadCheck): Rewritten.
  14343. (addSocketForWriteCheck): Rewritten.
  14344. (deleteSocketForReadCheck): Rewritten.
  14345. (deleteSocketForWriteCheck): Rewritten.
  14346. * src/HttpProxyResponseCommand.h
  14347. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14348. * src/HttpConnection.h
  14349. (socket): Changed its type to SocketHandle.
  14350. (HttpConnection): Replaced Socket with SocketHandle.
  14351. * src/PeerInitiateConnectionCommand.cc
  14352. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14353. (executeInternal): Removed the allocation of socket.
  14354. (prepareForNextPeer): Use PeerHandle.
  14355. * src/PeerMessage.h
  14356. (peer): Changed its type to PeerHandle.
  14357. (getPeer): Replaced Peer with PeerHandle.
  14358. (setPeer): Replaced Peer with PeerHandle.
  14359. * src/DownloadCommand.cc
  14360. (DownloadCommand): Replaced Socket with SocketHandle.
  14361. * src/FtpConnection.h
  14362. (socket): Changed its type to SocketHandle.
  14363. (FtpConnection): Replaced Socket with SocketHandle.
  14364. (sendPort); Replaced Socket with SocketHandle.
  14365. * src/FtpDowndloadCommand.h
  14366. (ctrlSocket): Changed its type to SocketHandle.
  14367. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14368. * src/HttpProxyRequestCommand.cc
  14369. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14370. * src/FtpTunnelRequestCommand.h
  14371. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14372. etc
  14373. * src/PeerChokeCommand.h
  14374. (setAllPeerChoked): Removed.
  14375. (setAllPeerResetDelta): Removed.
  14376. * src/PeerChokeCommand.cc
  14377. (setAllPeerChoked): Removed.
  14378. (ChokePeer): New function object.
  14379. (setAllPeerResetDelta): Removed.
  14380. (ResetDelta): New function object.
  14381. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14382. (execute): Show download speed when the local node is a seeder.
  14383. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14384. using STL.
  14385. * src/TrackerWatcherCommand.h
  14386. (MIN_PEERS): Removed.
  14387. * src/TorrentMan.cc
  14388. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14389. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14390. To fix the bug that .aria2 file is not saved if downloading is stopped
  14391. by the errors:it results that aria2 can not resume downloading:
  14392. * src/main.cc
  14393. (normalDownload): Added the call to save().
  14394. (main): Added the deletion of the elements in 'reserved'.
  14395. To fix log:
  14396. * src/PeerInteraction.cc
  14397. (receiveHandshake): Fixed log.
  14398. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14399. To improve download performance in BitTorrent:
  14400. * src/TorrentMan.cc
  14401. (getPeer): Check the number of connections. Return nullPeer if
  14402. it is greater than MAX_PEER_UPDATE.
  14403. This code was originally here, but was removed in 0.5.1.
  14404. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14405. To improve the conditional compilation:
  14406. * src/MultiDiskWriter.h:
  14407. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14408. * src/MultiDiskWriter.cc:
  14409. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14410. * src/Util.h:
  14411. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14412. Added ENABLE_BITTORRENT around computeFastSet().
  14413. * src/Util.cc:
  14414. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14415. Added ENABLE_BITTORRENT around computeFastSet().
  14416. * src/messageDigest.h:
  14417. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14418. * src/ShaVisitor.h:
  14419. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14420. * src/ShaVisitor.cc:
  14421. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14422. * src/main.cc:
  14423. Added ENABLE_BITTORRENT around includes and blocks related to
  14424. BitTorrent.
  14425. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14426. digest support is not available.
  14427. * src/AbstractDiskWriter.h:
  14428. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14429. * src/AbstractDiskWriter.cc:
  14430. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14431. * src/MetalinkEntry.cc
  14432. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14433. support is not available.
  14434. To add command-line options for Metalink:
  14435. * src/main.cc:
  14436. Added metalink-version, metalink-language, metalink-os,
  14437. follow-metalink.
  14438. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14439. * src/main.cc: Use these definition.
  14440. * Release 0.6.0
  14441. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14442. To add Metalink support(http/ftp only):
  14443. * src/AbstractCommand.h
  14444. (tryReserved): New function.
  14445. * src/AbstractCommand.cc
  14446. (execute): Call tryReserved().
  14447. (tryReserved): New function.
  14448. * src/Request.h
  14449. (Requests): New type definition.
  14450. * src/SegmentMan.h
  14451. (reserved): New variable.
  14452. * src/Util.h
  14453. (fileChecksum): New function.
  14454. (toUpper): New function.
  14455. (toLower): New function.
  14456. * src/Util.cc
  14457. (messageDigest.h): Included.
  14458. (trim): Trim \r\n\t.
  14459. (fileChecksum): New function.
  14460. (toUpper): New function.
  14461. (toLower): New function.
  14462. * src/main.cc
  14463. (normalDownload): New function.
  14464. (main): Added 2 command-line options: metalink-file,
  14465. metalink-connection. Their usage has not been written yet.
  14466. * src/MetalinkProcessor.h: New class.
  14467. * src/Xml2MetalinkProcessor.h: New class.
  14468. * src/Xml2MetalinkProcessor.cc: New class.
  14469. * src/MetalinkEntry.h: New class.
  14470. * src/MetalinkEntry.cc: New class.
  14471. * src/MetalinkResource.h: New class.
  14472. * src/MetalinkResource.cc: New class.
  14473. To add md5 message digest checking:
  14474. * src/messageDigest.h: Rewritten.
  14475. * src/MultiDiskWriter.cc: Updated according to the changes in
  14476. messageDigest.h.
  14477. * src/ShaVisitor.cc: Updated according to the changes in
  14478. messageDigest.h.
  14479. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14480. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14481. messageDigest.h.
  14482. To fix a bug that causes segfault when the payload length in peer
  14483. message is less than 0:
  14484. * src/PeerConnection.cc:
  14485. (receiveMessage): Fixed the bug.
  14486. * src/PeerMessageUtil.cc
  14487. (checkLength): Throw an exception if length is less than or equals to
  14488. 0.
  14489. To add new interfaces to Base64 encoding/decoding:
  14490. * src/Base64.h
  14491. (part_encode): Changed the method signature.
  14492. (encode): New function(overload).
  14493. (decode): New function(overload).
  14494. * src/Base64.cc
  14495. (part_encode): Rewritten.
  14496. (encode): Rewritten.
  14497. (encode): New function(overload).
  14498. To prevent a peer to download same piece if there is an error in
  14499. checksum:
  14500. * src/PieceMessage.cc
  14501. (receivedAction): Call peerInteraction->abortPiece().
  14502. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14503. To fix the bug that causes same have message is sent many times to
  14504. a single peer.
  14505. * src/Time.cc
  14506. (isNewer): Use Util::difftv().
  14507. * src/Util.cc
  14508. (difftv): Added a cast to (long long int).
  14509. * src/TorrentMan.cc
  14510. (advertisePiece): Use push_front.
  14511. (getAdvertisedPieceIndexes): A performance improvement was made.
  14512. To fix the bug that sends tracker requests without a sleep interval
  14513. when the number of connections is less than 15.
  14514. * src/TrackerWatcherCommand.cc
  14515. (execute): Now the number of connections is not a factor to decide
  14516. whether or not a tracker request should be sent or not.
  14517. * src/Time.h
  14518. (setTimeInSec): New function.
  14519. * src/Time.cc
  14520. (setTimeInSec): New function.
  14521. etc.
  14522. * src/ChokeMessage.cc
  14523. (receivedAction): Removed peer->snubbing = false
  14524. * src/PeerConnection.h
  14525. (receiveHandshake): Updated doc.
  14526. * src/TorrentMan.h
  14527. (getAdvertisedPieceIndexes): Updated the method signature.
  14528. * src/TorrentMan.cc
  14529. (getAdvertisedPieceIndexes): Updated the method signature.
  14530. * src/Time.h
  14531. (getTimeInMicros): Added a cast to (long long int).
  14532. (getTimeInMillis): Added a cast to (long long int).
  14533. * Release 0.5.2
  14534. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14535. To make a listening socket non-block:
  14536. * src/SocketCore.h
  14537. (setNonBlockingMode): New function.
  14538. * src/SocketCore.cc
  14539. (setNonBlockingMode): New function.
  14540. (beginListen): Added a call to setNonBlockingMode().
  14541. (acceptConnection): Call setNonBlockingMode().
  14542. (setBlockingMode): Updated.
  14543. To handle tracker's NAT-checking:
  14544. * src/PeerConnection.cc
  14545. (receiveHandshake): 'msg' param is filled with received data and
  14546. its length is assigned to 'length' param, even if all handshake
  14547. message is not yet received.
  14548. * src/PeerInteractionCommand.cc
  14549. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14550. a new peer connects to localhost.
  14551. A call to peerInteraction->sendHandshake() was removed because
  14552. it is called from peerInteraction->receiveHandshake(true).
  14553. * src/PeerInteraction.h
  14554. (quickReplied): New variable.
  14555. (receiveHandshake): Added an argument.
  14556. * src/PeerInteraction.cc
  14557. (PeerInteraction): Added the initialization of quickReplied.
  14558. (receiveHandshake): Send handshake message as soon as the info hash
  14559. in a handshake message from a peer is correct.
  14560. To change the random part of peer id and key parameter:
  14561. * src/TorrentMan.h
  14562. (key): New variable.
  14563. * src/TorrentMan.cc
  14564. (setupInternal1): Use Util::randomAlpha() to generate random part
  14565. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14566. key is also generated by Util::randomAlpha() and it is now 8 character
  14567. long.
  14568. * src/Util.h
  14569. (randomAlpha): New function.
  14570. * src/Util.cc
  14571. (randomAlpha): New function.
  14572. * src/TrackerWatcherCommand.cc
  14573. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14574. Added no_peer_id=1.
  14575. Set snubbing flag to false when a choke message is received from a
  14576. snubbed peer.
  14577. * src/ChokeMessage.cc
  14578. (receivedAction): Set snubbing flag to false.
  14579. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14580. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14581. * src/SimpleLogger.h (writeHeader): New function.
  14582. * src/SimpleLogger.cc (writeHeader): New function.
  14583. (writeLog): Fixed the bug that causes segfaults if exception message
  14584. contains an unescaped "%" character.
  14585. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14586. when a tracker request fails.
  14587. * src/Request.cc (parseUrl): Query string is now handled properly.
  14588. * Release 0.5.1
  14589. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14590. To add Time class which represents a specific instant in time and
  14591. its precision is microseconds. Time checking procedures were rewritten
  14592. using this object.
  14593. * src/Time.h: New class.
  14594. * src/Time.cc: New class.
  14595. * src/AbstractCommand.h
  14596. (updateCheckPoint): Removed.
  14597. (isTimeoutDetected): Removed.
  14598. (checkPoint): Changed the type to Time.
  14599. (timeout): New variable.
  14600. (setTimeout): New function.
  14601. * src/AbstractCommand.cc
  14602. (AbstractCommand): Removed the initialization of checkPoint.
  14603. Added the initialization of timeout.
  14604. (updateCheckPoint): Removed.
  14605. (isTimeoutDetected): Removed.
  14606. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14607. * src/PeerChokeCommand.h
  14608. (checkPoint): Changed the type to Time.
  14609. * src/PeerChokeCommand.cc
  14610. (PeerChokeCommand): Removed the initialization of checkPoint.
  14611. (execute): Rewritten using Time object.
  14612. * src/TrackerWatcherCommand.h
  14613. (checkPoint): Changed the type to Time.
  14614. * src/TrackerWatcherCommand.cc
  14615. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14616. (execute): Rewritten.
  14617. * src/ConsoleDownloadEngine.h
  14618. (cp): Changed the type to Time.
  14619. (startup): Changed the type to Time.
  14620. * src/ConsoleDownloadEngine.cc
  14621. (initStatistics): Use cp.reset(), startup.reset().
  14622. (calculateStatistics): Rewritten using Time object.
  14623. * src/PeerAbstractCommand.h
  14624. (updateCheckPoint): Removed.
  14625. (isTimeoutDetected): Removed.
  14626. (checkPoint): Changed the type to Time.
  14627. * src/PeerAbstractCommand.cc
  14628. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14629. (updateCheckPoint): Removed.
  14630. (isTimeoutDetected): Removed.
  14631. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14632. * src/PeerInteractionCommand.cc
  14633. (PeerInteractionCommand): Removed the initializations of struct
  14634. timeval variables.
  14635. * src/PeerInteractionCommand.h
  14636. (keepAliveCheckPoint): Changed the type to Time.
  14637. (chokeCheckPoint): Changed the type to Time.
  14638. (freqCheckPoint): Changed the type to Time.
  14639. (haveCheckTime): Changed the type to Time.
  14640. * src/PeerInteractionCommand.cc
  14641. (executeInternal): Rewritten using Time object.
  14642. (detectMessageFlooding): Rewritten using Time object.
  14643. (checkLongTimePeerChoking): Rewritten using Time object.
  14644. (sendKeepAlive): Rewritten using Time object.
  14645. (checkHave): Rewritten using Time object.
  14646. * src/SleepCommand.h
  14647. (checkPoint): Changed the type to Time.
  14648. * src/SleepCommand.cc
  14649. (SleepCommand): Removed the initialization of checkPoint.
  14650. (execute): Rewritten using Time object.
  14651. * src/TorrentAutoSaveCommand.h
  14652. (checkPoint): Changed the type to Time.
  14653. * src/TorrentAutoSaveCommand.cc
  14654. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14655. (execute): Rewritten.
  14656. * src/DownloadCommand.h
  14657. (sw): Changed the type to Time.
  14658. * src/DownloadCommand.cc
  14659. (DownloadCommand): Removed the initialization of sw.
  14660. (executeInternal): Rewritten.
  14661. * src/RequestSlot.h
  14662. (dispatchedTime): Changed the type to Time.
  14663. * src/RequestSlot.cc
  14664. (RequestSlot): Removed the call to setDispatchedTime().
  14665. (setDispatchedTime): Rewirtten.
  14666. (isTimeout): Rewritten.
  14667. (getLatencyInMillis): Rewritten.
  14668. * src/TorrentDownloadEngine.h
  14669. (cp): Changed the type to Time[2].
  14670. (startup): Changed the type to Time.
  14671. * src/TorrentDownloadEngine.cc
  14672. (initStatistics): Rewritten.
  14673. (calculateStatistics): Rewritten.
  14674. * src/DownloadEngine.cc
  14675. (run): Rewritten.
  14676. To detect all attempts to connect to the tracker are failed:
  14677. * src/AbstractCommand.cc
  14678. (execute): Increment e->segmentMan->errors if a command aborted.
  14679. * src/SegmentMan.h
  14680. (errors): New variable.
  14681. * src/SegmentMan.cc
  14682. (SegmentMan): Added the initialization of errors.
  14683. (init): Added the initialization of errors.
  14684. * src/TrackerWatcherCommand.cc
  14685. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14686. request was failed.
  14687. To handle snubbed peers:
  14688. * src/PeerChokeCommand.cc
  14689. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14690. (execute): Snubbed peers don't get unchoked.
  14691. * src/PeerInteraction.h
  14692. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14693. * src/PeerInteraction.cc
  14694. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14695. back the requested 16k block in 60 seconds.
  14696. * src/PieceMessage.cc
  14697. (receivedAction): A peer's snubbed state is cleard if it sends
  14698. the requested 16k block in 60 seconds.
  14699. * src/Peer.h
  14700. (snubbing): New variable.
  14701. * src/Peer.cc
  14702. (resetStatus): Added snubbed = false.
  14703. To fix the bug that causes have message is not sent:
  14704. * src/PeerInteractionCommand.cc
  14705. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14706. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14707. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14708. * src/TorrentMan.h
  14709. (HaveEntry): New class.
  14710. (advertisePiece): Rewritten.
  14711. (getAdvertisedPieceIndexes): Rewritten.
  14712. (Haves): Changed the type.
  14713. (getAdvertisedPieceIndexes): Added an argument.
  14714. Others:
  14715. * src/TorrentMan.h
  14716. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14717. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14718. * src/TorrentMan.cc
  14719. (getPeer): Don't check the number of connections here.
  14720. (setupInternal1): Changed peerId.
  14721. * src/PeerInteractionCommand.h
  14722. (KEEP_ALIVE_INTERVAL): New definition.
  14723. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14724. * src/main.cc
  14725. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14726. * src/DownloadEngine.h: Removed unnecessary header includes.
  14727. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14728. To fix the bug that causes segfaults if a tracker returns a zero-length
  14729. list as "peers":
  14730. * src/TrackerUpdateCommand.cc
  14731. (execute): Added a check to see wether the type of peers is Data*.
  14732. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14733. * Release 0.5.0
  14734. To fix compile issue with gcc3:
  14735. * src/CancelMessage.h
  14736. (ID): Renamed as ID_t
  14737. (ID_t): New enum.
  14738. * src/RejectMessage.h
  14739. (ID): Renamed as ID_t
  14740. (ID_t): New enum.
  14741. * src/SuggestPieceMessage.h
  14742. (ID): Renamed as ID_t
  14743. (ID_t): New enum.
  14744. * src/AllowedFastMessage.h
  14745. (ID): Renamed as ID_t
  14746. (ID_t): New enum.
  14747. * src/PortMessage.h
  14748. (ID): Renamed as ID_t
  14749. (ID_t): New enum.
  14750. * src/HaveNoneMessage.h
  14751. (ID): Renamed as ID_t
  14752. (ID_t): New enum.
  14753. * src/KeepAliveMessage.h
  14754. (ID): Renamed as ID_t
  14755. (ID_t): New enum.
  14756. * src/HaveAllMessage.h
  14757. (ID): Renamed as ID_t
  14758. (ID_t): New enum.
  14759. * src/UnchokeMessage.h
  14760. (ID): Renamed as ID_t
  14761. (ID_t): New enum.
  14762. * src/BitfieldMessage.h
  14763. (ID): Renamed as ID_t
  14764. (ID_t): New enum.
  14765. * src/PieceMessage.h
  14766. (ID): Renamed as ID_t
  14767. (ID_t): New enum.
  14768. * src/RequestMessage.h
  14769. (ID): Renamed as ID_t
  14770. (ID_t): New enum.
  14771. * src/NotInterestedMessage.h
  14772. (ID): Renamed as ID_t
  14773. (ID_t): New enum.
  14774. * src/ChokeMessage.h
  14775. (ID): Renamed as ID_t
  14776. (ID_t): New enum.
  14777. * src/InterestedMessage.h
  14778. (ID): Renamed as ID_t
  14779. (ID_t): New enum.
  14780. * src/HaveMessage.h
  14781. (ID): Renamed as ID_t
  14782. (ID_t): New enum.
  14783. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14784. * src/PeerAbstractCommand.h
  14785. (beforeSocketCheck): Removed.
  14786. * src/PeerAbstractCommand.cc
  14787. Modified in order to call executeInternal() even if socket check
  14788. and upload limit check fail.
  14789. * src/PeerInteractionCommand.h
  14790. (keepAlive): Removed.
  14791. (sendKeepAlive): New function.
  14792. (checkHave): New function.
  14793. (beforeSocketCheck): Removed.
  14794. * src/PeerInteractionCommand.cc
  14795. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14796. calls to checkHave() and sendKeepAlive().
  14797. (keepAlive): Renamed to sendKeepAlive().
  14798. (sendKeepAlive): New function.
  14799. (beforeSocketCheck): Removed.
  14800. (checkHave): New function.
  14801. * src/BitfieldMan.cc
  14802. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14803. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14804. 0.
  14805. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14806. * src/TorrentMan.h
  14807. (UsedPieces): Removed.
  14808. (Pieces): New type definition.
  14809. * src/Piece.h: Updated doc.
  14810. * src/Peer.h
  14811. (totalLength): Removed.
  14812. * src/Peer.cc
  14813. (updateLatency): Fixed the latency calculation.
  14814. * src/TorrentMan.cc
  14815. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14816. than or equal to MAX_PEER_LIST_SIZE.
  14817. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14818. then return false.
  14819. (deleteOldErrorPeers): Rewritten.
  14820. (deleteUsedPiece): Fixed the miss use of STL remove.
  14821. * src/PeerInteraction.h
  14822. (Pieces): Removed.
  14823. (deleteTimeoutRequestSlot): Removed.
  14824. (deleteCompletedRequestSlot): Removed.
  14825. (checkRequestSlot): New function.
  14826. * src/PeerInteraction.cc
  14827. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14828. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14829. (checkRequestSlot): New function.
  14830. * src/DownloadEngine.cc
  14831. (run): Clear activeSockets before calling waitData().
  14832. (waitData): Removed a call to activeSockets.clear().
  14833. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14834. To attempt to handle EINTR:
  14835. * src/SocketCore.cc
  14836. (isReadable): Added EINTR handling.
  14837. (isWritable): Added EINTR handling.
  14838. To improve the performance:
  14839. * src/AbstractCommand.cc
  14840. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14841. * src/PeerInteractionCommand.h
  14842. (receiveMessage): Renamed as receiveMessages().
  14843. (receiveMessages): New function.
  14844. * src/PeerInteractionCommand.cc
  14845. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14846. () function. detectMessageFlooding() is moved here.
  14847. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14848. (). The flooding detection for have message is comment out.
  14849. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14850. Util::difftv().
  14851. (receiveMessage): Renamed as receiveMessages().
  14852. (receiveMessages): New function.
  14853. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14854. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14855. * src/SleepCommand.cc
  14856. (execute): Use Util::difftvsec() instead of Util::difftv().
  14857. * src/BitfieldMan.h
  14858. (getNthBitIndex): New function.
  14859. (hasMissingPiece): New function.
  14860. (getAllMissingIndexes): New function.
  14861. * src/BitfieldMan.cc
  14862. (countSetBit): Rewritten.
  14863. (getNthBitIndex): New function.
  14864. (getMissingIndexRandomly): Rewritten.
  14865. (hasMissingPiece): New function.
  14866. (getAllMissingIndexes): New function.
  14867. * src/TorrentMan.cc
  14868. (hasMissingPiece): New function.
  14869. (deleteUsedPiece): Rewritten using STL.
  14870. * src/PeerInteraction.cc
  14871. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14872. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14873. (addRequests): Updated the number of pending requests.
  14874. * src/PeerAbstractCommand.cc
  14875. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14876. (execute): Returns true if TorrentMan::isHalt() is true.
  14877. Corrected the condition of upload limit checking.
  14878. * src/Util.h
  14879. (countBit): New function.
  14880. * src/Util.cc
  14881. (nbits): New variable.
  14882. (countBit): New function.
  14883. * src/DownloadEngine.h
  14884. (SockCmdMap): New type definition.
  14885. (waitData): Added an argument.
  14886. (addSocket): Added an argument.
  14887. (addSocketForReadCheck): Added an argument.
  14888. (addSocketForWriteCheck): Added an argument.
  14889. * src/DownloadEngine.cc
  14890. (run): Executes only commands whose sockets are ready to read or write.
  14891. All commands are executed in every 1 second.
  14892. (waitData): Calls select() again if it returned
  14893. EINTR.
  14894. (addSocket): Saves socket and command object pair to the map.
  14895. (deleteSocket): Deletes socket and command object pair from the map.
  14896. (addSocketForReadCheck): Added an argument.
  14897. (addSocketForWriteCheck): Added an argument.
  14898. * src/DownloadCommand.cc
  14899. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14900. To send "event=stopped" to the tracker when the application finishes:
  14901. * src/PeerChokeCommand.h
  14902. (checkPoint): New variable.
  14903. * src/PeerChokeCommand.cc
  14904. (PeerChokeCommand): Added the initialization of checkPoint.
  14905. (execute): The interval check is now done by checkPoint, not
  14906. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14907. * src/TorrentMan.h
  14908. (halt): New function.
  14909. (hasMissingPiece): New function.
  14910. (isHalt): New function.
  14911. (setHalt): New function.
  14912. * src/TorrentMan.cc
  14913. (TorrentMan): Added the initialization of halt.
  14914. * src/TorrentAutoSaveCommand.h
  14915. (checkPoint): New variable.
  14916. * src/PeerListenCommand.cc
  14917. (execute): Returns true if TorrentMan::isHalt() is true.
  14918. * src/main.cc
  14919. (setSignalHander): Added flags argument.
  14920. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14921. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14922. Removed printDownloadAbortMessage() after torrent downloading loop.
  14923. * src/TorrentAutoSaveCommand.cc
  14924. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14925. (execute): Returns true if TorrentMan::isHalt() is true.
  14926. The interval check is now done by checkPoint, not SleepCommand.
  14927. * src/TrackerWatcherCommand.cc
  14928. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14929. event=stopped.
  14930. * src/TrackerUpdateCommand.cc
  14931. (prepareForRetry): Do not use SleepCommand here.
  14932. (execute): Returns true if TorrentMan::isHalt() is true.
  14933. Others:
  14934. * src/TorrentMan.cc
  14935. (getMissingPieceIndex): Updated log message.
  14936. * src/PeerInteraction.cc
  14937. (createPeerMessag): Updated log message.
  14938. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14939. To add the ability to download several pieces in mix in a command and
  14940. increase the number of request slots according to request-cancel
  14941. latency:
  14942. * src/PeerInteractionCommand.cc
  14943. (executeInternal): The number of messages to be received at a time
  14944. is increased from 10 to 50.
  14945. * src/LogFactory
  14946. (getInstance): Added NullLogger.
  14947. * src/NullLogger.h: New class.
  14948. * src/BitfieldMan.h
  14949. (getMissingIndex): New function.
  14950. * src/BitfieldMan.cc
  14951. (getMissingIndex): New function.
  14952. * src/TorrentMan.h
  14953. (checkOutPiece): New function.
  14954. (getMissingPieceIndex): New function.
  14955. (getMissingFastPieceIndex): New function.
  14956. (getMissingFastPiece): New function.
  14957. * src/TorrentMan.cc
  14958. (updatePiece): Rewritten using STL.
  14959. (syncPiece): Rewritten using STL.
  14960. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14961. checkOutPiece().
  14962. (getMissingPieceIndex): New function.
  14963. (getMissingFastPieceIndex): New function.
  14964. (getMissingFastPiece): New function.
  14965. (checkOutPiece): New function.
  14966. * src/PeerInteraction.h
  14967. (Pieces): New type definition.
  14968. (piece): Removed.
  14969. (pieces): New variable.
  14970. (getNewPieceAndSendInterest): Added the "piece" argument.
  14971. (abortPiece): Added the "piece" argument.
  14972. (abortAllPieces): New function.
  14973. (isInRequestSlot): New function.
  14974. (hasDownloadPiece): Added the "index" argument.
  14975. (setDownloadPiece): Removed.
  14976. (getDownloadPiece): Added the "index" argument.
  14977. (updatePiece): New function.
  14978. (createRequestMessage): Added the "index" argument.
  14979. * src/PeerInteraction.cc
  14980. (onChoked): Rewritten.
  14981. (abortPiece): Rewirtten.
  14982. (abortAllPieces): New function.
  14983. (deleteTimeoutRequestSlot): Rewritten.
  14984. Clarified code a little bit.
  14985. (deleteCompletedRequestSlot): Rewritten.
  14986. (isInRequestSlot): New function.
  14987. (syncPiece): Rewritten.
  14988. (updatePiece): New function.
  14989. (getNewPieceAndSendInterest): Rewritten.
  14990. (addRequests): Rewritten.
  14991. (getDownloadPiece): Rewritten.
  14992. (hasDownloadPiece): Rewritten.
  14993. (createRequestMessage): Added the "index" argument.
  14994. * src/common.h
  14995. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14996. (DIV_FLOOR): New definition.
  14997. * src/PieceMessage.cc
  14998. (receivedAction): Update request-piece latency here.
  14999. * src/RequestSlot.h
  15000. (getLatencyInMillis): New function.
  15001. * src/RequestSlot.cc
  15002. (isTimeout): Rewritten using getLatencyInMillis.
  15003. (getLatencyInMillis): New function.
  15004. * src/Piece.h
  15005. (operator==): New function.
  15006. (getMissingBlockIndex): New function.
  15007. * src/Piece.cc
  15008. (operator==): New function.
  15009. (getMissingBlockIndex): New function.
  15010. * src/Peer.h
  15011. (DEFAULT_LATENCY): New definition.
  15012. (latency): New variable.
  15013. (updateLatency): New function.
  15014. (getLatency): New function.
  15015. * src/Peer.cc
  15016. (resetStatus): Reset latecy.
  15017. (updateLatency): New function.
  15018. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15019. * src/SocketCore.cc
  15020. (isReadable): Added secure to the condition.
  15021. * src/HttpConnection.cc
  15022. (receiveResponse): Fixed a bug that causes no response header
  15023. exception.
  15024. * src/Peer.h
  15025. (getFastSet): Fixed the return value type.
  15026. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15027. To remove a wait from download loop:
  15028. * src/DownloadEngine.cc
  15029. (run): Comment out shortSleep.
  15030. To rewrite the message handling:
  15031. * src/SimplePeerMessage.h: New class.
  15032. * src/SimplePeerMessage.cc: New class.
  15033. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15034. (msg): New variable.
  15035. (create): New function.
  15036. (send): Removed.
  15037. (getMessage): New function.
  15038. (getMessageLength): New function.
  15039. * src/CancelMessage.cc
  15040. (create): New function.
  15041. (receivedAction): Replaced deleteRequestMessageInQueue with
  15042. rejectPieceMessageInQueue.
  15043. (send): Removed.
  15044. (getMessage): New function.
  15045. (getMessageLength): New function.
  15046. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15047. (msg): New variable.
  15048. (msgLength): New variable.
  15049. (~BitfieldMessage): Deleted msg.
  15050. (send): Removed.
  15051. (getMessage): New function.
  15052. (getMessageLength): New function.
  15053. * src/BitfieldMessage.cc
  15054. (create): New function.
  15055. (send): Removed.
  15056. (getMessage): New function.
  15057. (getMessageLength): New function.
  15058. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15059. (msg): New variable.
  15060. (sendPredicate): New function.
  15061. (onSendComplete): New function.
  15062. (send): Removed.
  15063. (getMessage): New function.
  15064. (getMessageLength): New function.
  15065. (create): New function.
  15066. * src/ChokeMessage.cc
  15067. (create): New function.
  15068. (send): Removed.
  15069. (sendPredicate): New function.
  15070. (getMessage): New function.
  15071. (getMessageLength): New function.
  15072. (onSendComplete): New function.
  15073. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15074. (msg): New variable.
  15075. (send): Removed.
  15076. (getMessage): New function.
  15077. (getMessageLength): New function.
  15078. * src/KeepAliveMessage.cc
  15079. (send): Removed.
  15080. (getMessage): New function.
  15081. (getMessageLength): New function.
  15082. * src/PortMessage.h
  15083. (create): New function.
  15084. (receivedAction): Updated log message.
  15085. * src/PortMessage.cc: New file.
  15086. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15087. (msg): New variable.
  15088. (sendPredicate): New function.
  15089. (onSendComplete): New function.
  15090. (create): New function.
  15091. (send): Removed.
  15092. (getMessage): New function.
  15093. (getMessageLength): New function.
  15094. * src/UnchokeMessage.cc
  15095. (create): New function.
  15096. (send): Removed.
  15097. (sendPredicate): New function.
  15098. (getMessage): New function.
  15099. (getMessageLength): New function.
  15100. (onSendComplete): New function.
  15101. * src/PieceMessage.h
  15102. (leftPieceDataLength): Removed.
  15103. (leftDataLength): New variable.
  15104. (headerSend): New variable.
  15105. (pendingCount): New variable.
  15106. (msgHeader): New variable.
  15107. (sendPieceData): New function.
  15108. (incrementPendingCount): New function.
  15109. (isPendingCountMax): New function.
  15110. (create): New function.
  15111. (getMessageHeader): New function.
  15112. (getMessageHeaderLength): New function.
  15113. * src/PieceMessage.cc
  15114. (create): New function.
  15115. (getMessageHeader): New function.
  15116. (getMessageHeaderLength): New function.
  15117. (send): Rewritten.
  15118. (sendPieceData): New function.
  15119. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15120. (msg): New variable.
  15121. (create): New function.
  15122. (getMessage): New function.
  15123. (getMessageLength): New function.
  15124. * src/HaveMessage.cc
  15125. (create): New function.
  15126. (send): Removed.
  15127. (sendPieceData): New function.
  15128. (getMessage): New function.
  15129. (getMessageLength): New function.
  15130. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15131. (msg): New variable.
  15132. (create): New function.
  15133. (send): Removed.
  15134. (getMessage): New function.
  15135. (getMessageLength): New function.
  15136. * src/RequestMessage.cc
  15137. (create): New function.
  15138. (receivedAction): Added the handling of fast extension.
  15139. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15140. (send): Removed.
  15141. (getMessage): New function.
  15142. (getMessageLength): New function.
  15143. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15144. (msg): New variable.
  15145. (sendPredicate): New function.
  15146. (onSendComplete): New function.
  15147. (create): New function.
  15148. (getMessage): New function.
  15149. (getMessageLength): New function.
  15150. * src/InterestedMessage.cc
  15151. (create): New function.
  15152. (send): Removed.
  15153. (sendPieceData): New function.
  15154. (getMessage): New function.
  15155. (getMessageLength): New function.
  15156. (onSendComplete): New function.
  15157. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15158. (msg): New variable.
  15159. (sendPieceData): New function.
  15160. (onSendComplete): New function.
  15161. (create): New function.
  15162. (send): Removed.
  15163. (getMessage): New function.
  15164. (getMessageLength): New function.
  15165. * src/NotInterestedMessage.cc
  15166. (create): New function.
  15167. (send): Removed.
  15168. (sendPredicate): New function.
  15169. (getMessage): New function.
  15170. (getMessageLength): New function.
  15171. (onSendComplete): New function.
  15172. * src/AllowedFastMessage.h: New class.
  15173. * src/AllowedFastMessage.cc: New class.
  15174. * src/RejectMessage.h: New class.
  15175. * src/RejectMessage.cc: New class.
  15176. * src/SuggestPieceMessage.h: New class.
  15177. * src/SuggestPieceMessage.cc: New class.
  15178. * src/HaveAllMessage.h: New class.
  15179. * src/HaveAllMessage.cc: New class.
  15180. * src/HaveNoneMessage.h: New class.
  15181. * src/HaveNoneMessage.cc: New class.
  15182. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15183. (msg): New variable.
  15184. (reserved): New variable.
  15185. (create): New function.
  15186. (getId): New function.
  15187. (receivedAction): New function.
  15188. (getMessage): New function.
  15189. (getMessageLength): New function.
  15190. (isFastExtensionSupported): New function.
  15191. * src/HandshakeMessage.cc
  15192. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15193. (create): New function.
  15194. (getMessage): New function.
  15195. (getMessageLength): New function.
  15196. (toString): Added the output of reserved field.
  15197. (check): Added const qualifier.
  15198. (isFastExtensionSupported): New function.
  15199. * src/PeerMessageUtil.h
  15200. (createChokeMessage): Removed.
  15201. (createUnchokeMessage): Removed.
  15202. (createInterestedMessage): Removed.
  15203. (createNotInterestedMessage): Removed.
  15204. (createHaveMessage): Removed.
  15205. (createBitfieldMessage): Removed.
  15206. (createRequestMessage): Removed.
  15207. (createCancelMessage): Removed.
  15208. (createPieceMessage): Removed.
  15209. (createPortMessage): Removed.
  15210. (createChokeMessage): Removed.
  15211. (createUnchokeMessage): Removed.
  15212. (createInterestedMessage): Removed.
  15213. (createNotInterestedMessage): Removed.
  15214. (createHaveMessage): Removed.
  15215. (createBitfieldMessage): Removed.
  15216. (createRequestMessage): Removed.
  15217. (createCancelMessage): Removed.
  15218. (createPieceMessage): Removed.
  15219. (createKeepAliveMessage): Removed.
  15220. (createHandshakeMessage): Removed.
  15221. (setIntParam): New function.
  15222. (createPeerMessageString): New function.
  15223. * src/PeerMessageUtil.cc
  15224. (createChokeMessage): Removed.
  15225. (createUnchokeMessage): Removed.
  15226. (createInterestedMessage): Removed.
  15227. (createNotInterestedMessage): Removed.
  15228. (createHaveMessage): Removed.
  15229. (createBitfieldMessage): Removed.
  15230. (createRequestMessage): Removed.
  15231. (createCancelMessage): Removed.
  15232. (createPieceMessage): Removed.
  15233. (createPortMessage): Removed.
  15234. (createRequestMessage): Removed.
  15235. (createCancelMessage): Removed.
  15236. (createPieceMessage): Removed.
  15237. (createHaveMessage): Removed.
  15238. (createChokeMessage): Removed.
  15239. (createUnchokeMessage): Removed.
  15240. (createInterestedMessage): Removed.
  15241. (createNotInterestedMessage): Removed.
  15242. (createBitfieldMessage): Removed.
  15243. (createKeepAliveMessage): Removed.
  15244. (createHandshakeMessage): Removed.
  15245. (setIntParam): New function.
  15246. (createPeerMessageString): New function.
  15247. * src/PeerConnection.h
  15248. (peer): Removed.
  15249. (torrentMan): Removed.
  15250. (createNLengthMessage): Removed.
  15251. (setIntParam): Removed.
  15252. (writeOutgoingMessageLog): Removed all overloaded functions.
  15253. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15254. (sendMessage): New function.
  15255. (sendHandshake): Removed.
  15256. (sendKeepAlive): Removed.
  15257. (sendChoke): Removed.
  15258. (sendUnchoke): Removed.
  15259. (sendInterested): Removed.
  15260. (sendNotInterested): Removed.
  15261. (sendHave): Removed.
  15262. (sendBitfield): Removed.
  15263. (sendRequest): Removed.
  15264. (sendPiece): Removed.
  15265. (sendPieceHeader): Removed.
  15266. (sendPieceData): Removed.
  15267. (sendCancel): Removed.
  15268. (getPeer): Removed.
  15269. * src/PeerConnection.cc
  15270. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15271. (sendHandshake): Removed.
  15272. (sendKeepAlive): Removed.
  15273. (createNLengthMessage): Removed.
  15274. (setIntParam): Removed.
  15275. (writeOutgoingMessageLog): Removed all overloaded functions.
  15276. (sendChoke): Removed.
  15277. (sendUnchoke): Removed.
  15278. (sendInterested): Removed.
  15279. (sendNotInterested): Removed.
  15280. (sendHave): Removed.
  15281. (sendBitfield): Removed.
  15282. (sendRequest): Removed.
  15283. (sendPiece): Removed.
  15284. (sendPieceHeader): Removed.
  15285. (sendPieceData): Removed.
  15286. (sendMessage): New function.
  15287. (sendCancel): Removed.
  15288. * src/PeerInteractionCommand.cc
  15289. (PeerInteractionCommand): Call setUploadLimit.
  15290. (executeInternal): Call setUploadLimit.
  15291. Added the handling of "inProgress" state of handshake message.
  15292. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15293. sendNow().
  15294. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15295. sendNow().
  15296. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15297. * src/TorrentMan.h
  15298. (PEER_ID_LENGTH): New definition.
  15299. (hasAllPieces): New function.
  15300. * src/TorrentMan.cc
  15301. (getMissingPiece): Added the handling of fast extension.
  15302. (cancelPiece): Call updatePiece().
  15303. (hasAllPieces): New function.
  15304. * src/PeerInteraction.h
  15305. (fastSet): New variable.
  15306. (getNewPieceAndSendInterest): Changed the return type to void.
  15307. (send): Renamed as sendMessages.
  15308. (deleteAllRequestSlot): Removed.
  15309. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15310. (cancelAllRequest): Removed all overloaded functions.
  15311. (deleteAllRequestSlot): Removed.
  15312. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15313. (rejectPieceMessageInQueue): New function.
  15314. (rejectAllPieceMessageInQueue): New function.
  15315. (onChoked): New function.
  15316. (isSendingMessageInProgress): New function.
  15317. (getCorrespondingRequestSlot): Changed its arguments.
  15318. (isInFastSet): New function.
  15319. (addFastSetIndex): New function.
  15320. (addRequests): New function.
  15321. (sendNow): Removed.
  15322. (trySendNow): Removed.
  15323. (sendBitfield): New function.
  15324. (sendAllowdFast): New function.
  15325. (createHaveAllMessage): New function.
  15326. (createHaveNoneMessage): New function.
  15327. (createRejectMessage): New function.
  15328. (createAllowedFastMessage): New function.
  15329. * src/PeerInteraction.cc
  15330. (send): Renamed as sendMessages.
  15331. (sendMessages): New function.
  15332. (MsgPushBack): New class.
  15333. (isSendingMessageInProgress): New function.
  15334. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15335. (rejectAllPieceMessageInQueue): New function.
  15336. Added the handling of fast extension.
  15337. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15338. (rejectPieceMessageInQueue): New function.
  15339. Added the handling of fast extension.
  15340. (deleteRequestSlot): Replaced for loop with std::find.
  15341. (onChoked): New function.
  15342. (deleteAllRequestSlot): Removed.
  15343. (abortPiece): Rewirtten.
  15344. (deleteTimeoutRequestSlot): Updated log messages.
  15345. (getCorrespondingRequestSlot): Changed its arguments.
  15346. (cancelAllRequest): Removed all overloaded functions.
  15347. (receiveHandshake): Added the check to see whether an incoming peer
  15348. supports fast extension.
  15349. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15350. PeerMessageUtil.
  15351. (createPeerMessage): Use create() of each message class instead of
  15352. PeerMessageUtil.
  15353. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15354. AllowedFastMessage were added.
  15355. (getNewPieceAndSendInterest): Changed its return value type to void.
  15356. Added the handling of fast extension.
  15357. (addRequests): New function.
  15358. (sendNow): Removed.
  15359. (sendHandshake): Rewritten.
  15360. (trySendNow): Removed.
  15361. (sendBitfield): New function.
  15362. (sendAllowdFast): New function.
  15363. (isInFastSet): New function.
  15364. (addFastSetIndex): New function.
  15365. (createRequestMessage): Use RequestMessage::create instead of
  15366. PeerMessageUtil.
  15367. (createCancelMessage): Use CancelMessage::create instead of
  15368. PeerMessageUtil.
  15369. (createPieceMessage): Use PieceMessage::create instead of
  15370. PeerMessageUtil.
  15371. (createHaveMessage): Use HaveMessage::create instead of
  15372. PeerMessageUtil.
  15373. (createChokeMessage): Use ChokeMessage::create instead of
  15374. PeerMessageUtil.
  15375. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15376. PeerMessageUtil.
  15377. (createInterestedMessage): Use InterestedMessage::create instead of
  15378. PeerMessageUtil.
  15379. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15380. of PeerMessageUtil.
  15381. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15382. PeerMessageUtil.
  15383. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15384. PeerMessageUtil.
  15385. (createHaveAllMessage): New function.
  15386. (createHaveNoneMessage): New function.
  15387. (createRejectMessage): New function.
  15388. (createAllowedFastMessage: New function.
  15389. * src/Util.h
  15390. (sha1Sum): New function.
  15391. (computeFastSet): New function.
  15392. * src/Util.cc
  15393. (sha1Sum): New function.
  15394. (computeFastSet): New function.
  15395. * src/Peer.h
  15396. (fastExtensionEnabled): New variable.
  15397. (fastSet): New variable.
  15398. (setAllBitfield): New function.
  15399. (setFastExtensionEnabled): New function.
  15400. (isFastExtensionEnabled): New function.
  15401. (addFastSetIndex): New function.
  15402. (getFastSet): New function.
  15403. (isInFastSet): New function.
  15404. (countFastSet): New function.
  15405. * src/Peer.cc
  15406. (isInFastSet): New function.
  15407. (addFastSetIndex): New function.
  15408. (setAllBitfield): New function.
  15409. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15410. sockets.
  15411. * src/PeerAbstractCommand.cc
  15412. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15413. and uploadLimit.
  15414. (execute): Changed the procedure of checking sockets. The upload speed
  15415. checking were added.
  15416. (setUploadLimit): New function.
  15417. (setUploadLimitCheck): New function.
  15418. * src/PeerAbstractCommand.h
  15419. (setUploadLimit): New function.
  15420. (setUploadLimitCheck): New function.
  15421. (uploadLimit): New variable.
  15422. (uploadLimitCheck): New variable.
  15423. To contact a tracker regularly:
  15424. * src/TrackerWatcherCommand.h (interval): New variable.
  15425. (checkPoint): New variable.
  15426. (TrackerWatcherCommand): Added interval argument.
  15427. * src/TrackerWatcherCommand.cc
  15428. (TrackerWatcherCommand): Initialized checkPoint.
  15429. (execute): Now a tracker is contacted in every specified period.
  15430. If peer list is not needed, send request with numwant=0.
  15431. * src/TrackerUpdateCommand.cc
  15432. (execute): Updated log messages.
  15433. * src/DownloadEngine.cc
  15434. (~DownloadEngine): Removed two asserts.
  15435. (waitData): Uncommented wfds. May be a bug fix.
  15436. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15437. * src/PeerInteractionCommand.h
  15438. (checkInactiveConnection): Removed.
  15439. * src/PeerInteractionCommand.cc
  15440. (executeInternal): Removed following function calls:
  15441. detectMessageFlooding(), checkLongTimePeerChoking and
  15442. checkInactiveConnection().
  15443. (checkInactiveConnection): Removed.
  15444. (detectMessageFlooding): Removed function call to
  15445. checkInactiveConnection().
  15446. * src/PeerMessageUtil.h
  15447. (createChokeMessage): New function. Overload.
  15448. (createUnchokeMessage): New function. Overload.
  15449. (createInterestedMessage): New function. Overload.
  15450. (createNotInterestedMessage): New function. Overload.
  15451. (createHaveMessage): New function. Overload.
  15452. (createBitfieldMessage): New function. Overload.
  15453. (createRequestMessage): New function. Overload.
  15454. (createCancelMessage): New function. Overload.
  15455. (createPieceMessage): New function. Overload.
  15456. (createKeepAliveMessage): New function. Overload.
  15457. * src/PeerMessageUtil.cc
  15458. (createChokeMessage): New function. Overload.
  15459. (createUnchokeMessage): New function. Overload.
  15460. (createInterestedMessage): New function. Overload.
  15461. (createNotInterestedMessage): New function. Overload.
  15462. (createHaveMessage): New function. Overload.
  15463. (createBitfieldMessage): New function. Overload.
  15464. (createRequestMessage): New function. Overload.
  15465. (createCancelMessage): New function. Overload.
  15466. (createPieceMessage): New function. Overload.
  15467. (createKeepAliveMessage): New function. Overload.
  15468. * src/SendMessageQueue.cc
  15469. (createRequestMessage): Use PeerMessageUtil.
  15470. (createCancelMessage): Use PeerMessageUtil.
  15471. (createPieceMessage): Use PeerMessageUtil.
  15472. (createHaveMessage): Use PeerMessageUtil.
  15473. (createChokeMessage): Use PeerMessageUtil.
  15474. (createUnchokeMessage): Use PeerMessageUtil.
  15475. (createInterestedMessage): Use PeerMessageUtil.
  15476. (createNotInterestedMessage): Use PeerMessageUtil.
  15477. (createBitfieldMessage): Use PeerMessageUtil.
  15478. (createKeepAliveMessage): Use PeerMessageUtil.
  15479. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15480. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15481. * src/PeerInteraction.h: New class.
  15482. * src/PeerInteraction.cc: New class.
  15483. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15484. Each peer message has its own class.
  15485. * src/PendingMessages.h: Removed.
  15486. * src/PendingMessages.cc: Removed. The sending process was moved to
  15487. each message class.
  15488. * src/RequestSlotMan.h: Removed.
  15489. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15490. SendMessageQueue.
  15491. * src/RequestMessage.h: New class.
  15492. * src/RequestMessage.cc: New class.
  15493. * src/CancelMessage.h: New class.
  15494. * src/CancelMessage.cc: New class.
  15495. * src/BitfieldMessage.h: New class.
  15496. * src/BitfieldMessage.cc: New class.
  15497. * src/ChokeMessage.h: New class.
  15498. * src/ChokeMessage.cc: New class.
  15499. * src/KeepAliveMessage.h: New class.
  15500. * src/KeepAliveMessage.cc: New class.
  15501. * src/PortMessage.h: New class.
  15502. * src/UnchokeMessage.h: New class.
  15503. * src/UnchokeMessage.cc: New class.
  15504. * src/PieceMessage.h: New class.
  15505. * src/PieceMessage.cc: New class.
  15506. * src/HaveMessage.h: New class.
  15507. * src/HaveMessage.cc: New class.
  15508. * src/BitfieldMessage.h: New class.
  15509. * src/BitfieldMessage.cc: New class.
  15510. * src/NotInterestedMessage.h: New class.
  15511. * src/NotInterestedMessage.cc: New class.
  15512. * src/InterestedMessage.h: New class.
  15513. * src/InterestedMessage.cc: New class.
  15514. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15515. (getSendMessageQueue): New function.
  15516. (setSendMessageQueue): New function.
  15517. * src/HandshakeMessage.cc: New class.
  15518. * src/PeerConnection.h (receiveMessage): Changed return value and
  15519. arguments.
  15520. (receiveHandshake): Changed return value and arguments.
  15521. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15522. here.
  15523. (receiveHandshake): Do not create handshake class here.
  15524. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15525. (piece): Removed.
  15526. (syncPiece): Removed.
  15527. (sendInterest): Removed.
  15528. (sendMessages): Removed.
  15529. (createRequestPendingMessage): Removed.
  15530. (checkPieceHash): Removed.
  15531. (erasePieceOnDisk): Removed.
  15532. (getNewPieceAndSendInterest): Removed.
  15533. (onGotNewPice): Removed.
  15534. (onGotWrongPiece): Removed.
  15535. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15536. Removed peerConnection, piece.
  15537. (~PeerInteractionCommand): Removed peerConnection.
  15538. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15539. (syncPiece): Moved to SendMessageQueue.
  15540. (decideChoking): Removed PendingMessage.
  15541. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15542. The action after receiving peer message was moved to each message
  15543. class.
  15544. (onGotNewPice): Moved to SendMessageQueue.
  15545. (onGotWrongPiece): Moved to SendMessageQueue.
  15546. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15547. (sendInterest): Moved to SendMessageQueue.
  15548. (createRequestPendingMessage): Removed.
  15549. (sendMessages): Moved to SendMessageQueue.
  15550. (onAbort): Use SendMessageQueue::abortPiece()
  15551. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15552. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15553. (checkPieceHash): Moved to SendMessageQueue.
  15554. (erasePieceOnDisk): Moved to SendMessageQueue.
  15555. * src/PeerMessageUtil.h
  15556. (createBitfieldMessage): Removed.
  15557. (createHaveMessage): Changed return value and arguments.
  15558. (createBitfieldMessage): Changed return value and arguments.
  15559. (createRequestCancelMessage): Removed.
  15560. (createPieceMessage): Changed return value and arguments.
  15561. (getShortIntParam): New function.
  15562. (checkIndex): Changed arguments.
  15563. (checkBegin): Changed arguments.
  15564. (checkLength): Changed arguments.
  15565. (checkPieceOffset): Removed.
  15566. (checkRange): New function.
  15567. (checkBitfield): Changed arguments.
  15568. (createPeerMessage): Removed.
  15569. (checkIntegrity): Removed.
  15570. (createHandshakeMessage): Changed arguments.
  15571. (createChokeMessage): New function.
  15572. (createUnchokeMessage): New function.
  15573. (createInterestedMessage): New function.
  15574. (createNotInterestedMessage): New function.
  15575. (createRequestMessage): New function.
  15576. (createCancelMessage): New function.
  15577. (createPortMessage): New function.
  15578. * src/PeerMessageUtil.cc
  15579. (createBitfieldMessage): Removed.
  15580. (createHaveMessage): Changed return value and arguments.
  15581. (createBitfieldMessage): Changed return value and arguments.
  15582. (createRequestCancelMessage): Removed.
  15583. (createPieceMessage): Changed return value and arguments.
  15584. (getShortIntParam): New function.
  15585. (checkIndex): Changed arguments.
  15586. (checkBegin): Changed arguments.
  15587. (checkLength): Changed arguments.
  15588. (checkPieceOffset): Removed.
  15589. (checkRange): New function.
  15590. (checkBitfield): Changed arguments.
  15591. (createPeerMessage): Removed.
  15592. (checkIntegrity): Removed.
  15593. (createHandshakeMessage): Changed arguments.
  15594. (createChokeMessage): New function.
  15595. (createUnchokeMessage): New function.
  15596. (createInterestedMessage): New function.
  15597. (createNotInterestedMessage): New function.
  15598. (createRequestMessage): New function.
  15599. (createCancelMessage): New function.
  15600. (createPortMessage): New function.
  15601. * src/PeerMessage.h
  15602. (id): Removed.
  15603. (index): Removed.
  15604. (begin): Removed.
  15605. (length): Removed.
  15606. (bitfield): Removed.
  15607. (bitfieldLength): Removed.
  15608. (block): Removed.
  15609. (blockLength): Removed.
  15610. (inProgress): New variable.
  15611. (cuid): New variable.
  15612. (peer): New variable.
  15613. (sendMessageQueue): New variable.
  15614. (logger): New variable.
  15615. (setBitfield): Removed.
  15616. (getBitfield): Removed.
  15617. (setBlock): Removed.
  15618. (getBlock): Removed.
  15619. (getBitfieldLength): Removed.
  15620. (getBlockLength): Removed.
  15621. (isInProgress): New function.
  15622. (toString): Made pure virtual.
  15623. (check): New function.
  15624. (send): New function.
  15625. (receivedAction): New function.
  15626. (getId): Made pure virtual.
  15627. (setId): Removed.
  15628. (getIndex): Removed.
  15629. (setIndex): Removed.
  15630. (getBegin): Removed.
  15631. (setBegin): Removed.
  15632. (getLength): Removed.
  15633. (setLength): Removed.
  15634. (getCuid): New function.
  15635. (setCuid): New function.
  15636. (getPeer): New function.
  15637. (setPeer): New function.
  15638. (getSendMessageQueue): New function.
  15639. (setSendMessageQueue): New function.
  15640. (ID): Removed.
  15641. * src/PeerMessage.cc
  15642. (setBitfield): Removed.
  15643. (setBlock): Removed.
  15644. (toString): Removed.
  15645. * src/TorrentMan.h
  15646. (getPieceLength): New function.
  15647. (getPieceLength): New function.
  15648. * src/SendMessageQueue.h
  15649. (REQUEST_TIME_OUT): New definition.
  15650. (RequestSlots): New definition.
  15651. (MessageQueue): New definition.
  15652. (requestSlotMan): Removed.
  15653. (pendingMessages): Removed.
  15654. (requestSlots): New variable.
  15655. (messageQueue): New variable.
  15656. (torrentMan): New variable.
  15657. (peerConnection): New variable.
  15658. (peer): New variable.
  15659. (piece): New variable.
  15660. (getNewPieceAndSendInterest): New function.
  15661. (createPeerMessage): New function.
  15662. (createHandshakeMessage): New function.
  15663. (send): Made private.
  15664. (setPeerMessageCommonProperty): New function.
  15665. (deleteAllRequestSlot): New function.
  15666. (deleteRequestMessageInQueue): New function.
  15667. (cancelAllRequest): Made private.
  15668. (cancelAllRequest): Made private.
  15669. (countRequestSlot): Made private.
  15670. (addPendingMessage): Removed.
  15671. (deletePendingPieceMessage): Removed.
  15672. (deletePendingRequestMessage): Removed.
  15673. (addMessage): New function.
  15674. (deletePieceMessageInQueue): New function.
  15675. (deleteTimeoutRequestSlot): Changed argument.
  15676. (deleteCompletedRequestSlot): Changed argument.
  15677. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15678. (getCorrespondingRequestSlot): New function.
  15679. (countPendingMessage): Removed.
  15680. (countMessageInQueue): New function.
  15681. (getTorrentMan): New function.
  15682. (getPeerConnection): New function.
  15683. (hasDownloadPiece): New function.
  15684. (getDownloadPiece): New function.
  15685. (setDownloadPiece): New function.
  15686. (syncPiece): New function.
  15687. (sendMessages): New function.
  15688. (sendNow): New function.
  15689. (trySendNow): New function.
  15690. (abortPiece): New function.
  15691. (sendHandshake): New function.
  15692. (receiveMessage): New function.
  15693. (receiveHandshake): New function.
  15694. (createRequestMessage): New function.
  15695. (createCancelMessage): New function.
  15696. (createPieceMessage): New function.
  15697. (createHaveMessage): New function.
  15698. (createChokeMessage): New function.
  15699. (createUnchokeMessage): New function.
  15700. (createInterestedMessage): New function.
  15701. (createNotInterestedMessage): New function.
  15702. (createBitfieldMessage): New function.
  15703. (createKeepAliveMessage): New function.
  15704. * src/SendMessageQueue.cc
  15705. (SendMessageQueue): Removed requestSlotMan.
  15706. Instantiated peerConnection here.
  15707. (~SendMessageQueue): Removed requestSlotMan.
  15708. Added deletion of peerConnection and the contents of messageQueue.
  15709. (send): Updated according to the change of messageQueue.
  15710. (addPendingMessage): Renamed to addMessage.
  15711. (addMessage): New function.
  15712. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15713. (deletePieceMessageInQueue): New function.
  15714. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15715. (deleteRequestMessageInQueue): New function.
  15716. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15717. here.
  15718. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15719. (...) was moved here.
  15720. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15721. moved here.
  15722. (deleteCompletedRequestSlot):
  15723. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15724. (getCorrespondingRequestSlot):
  15725. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15726. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15727. (countPendingMessage): Renamed to countMessageInQueue.
  15728. (countMessageInQueue): New function.
  15729. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15730. (receiveHandshake): New function.
  15731. (createHandshakeMessage): New function.
  15732. (receiveMessage): New function.
  15733. (createPeerMessage): New function.
  15734. (syncPiece): New function.
  15735. (getNewPieceAndSendInterest): New function.
  15736. (sendMessages): New function.
  15737. (sendNow): New function.
  15738. (trySendNow): New function.
  15739. (sendHandshake): New function.
  15740. (abortPiece): New function.
  15741. (getDownloadPiece): New function.
  15742. (getPeerMessageCommonProperty): New function.
  15743. (createRequestMessage): New function.
  15744. (createCancelMessage): New function.
  15745. (createPieceMessage): New function.
  15746. (createHaveMessage): New function.
  15747. (createChokeMessage): New function.
  15748. (createUnchokeMessage): New function.
  15749. (createInterestedMessage): New function.
  15750. (createNotInterestedMessage): New function.
  15751. (createBitfieldMessage): New function.
  15752. (createKeepAliveMessage): New function.
  15753. To add simple Content-Disposition support:
  15754. * src/HttpResponseCommand.h (determinFilename): New function.
  15755. * src/HttpResponseCommand.cc (executeInternal):
  15756. Use determinFilename(headers) instead of req->getFile() when comparing
  15757. filename.
  15758. (determinFilename): New function.
  15759. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15760. req->getFile().
  15761. (handleOtherEncoding): Use determinFilename(headers) instead of
  15762. req->getFile().
  15763. * src/Util.h (getContentDispositionFilename): New function.
  15764. * src/Util.cc (getContentDispositionFilename): New function.
  15765. * src/LogFactory.h (release): New function.
  15766. * src/LogFactory.cc (release): New function.
  15767. To fix a bug that causes out-of-bound exception when HTTP status
  15768. line is wrong:
  15769. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15770. size.
  15771. * src/common.h (Deleter): New class.
  15772. * src/SegmentMan.cc
  15773. (~SegmentMan): Added deletion of splitter and diskWriter.
  15774. * src/DownloadEngine.h
  15775. (Commands): Use deque.
  15776. (clearQueue): New function.
  15777. * src/DownloadEngine.cc
  15778. (~DownloadEngine): Added deletion of segmentMan.
  15779. (cleanQueue): New function.
  15780. * src/TorrentDownloadEngine.h
  15781. (TorrentDownloadEngine): The implementation was moved to
  15782. TorrentDownloadEngine.cc.
  15783. (~TorrentDownloadEngine): The implementation was moved to
  15784. TorrentDownloadEngine.cc.
  15785. * src/TorrentDownloadEngine.cc
  15786. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15787. * src/main.cc
  15788. (clearRequest): Removed.
  15789. (handler): Added deletion of e.
  15790. (torrentHandler): Added deletion of te.
  15791. (main): Do not share splitter.
  15792. Use Deleter instead of clearRequest.
  15793. Deletion of classes were updated.
  15794. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15795. * src/main.cc (main): Fixed typo.
  15796. * src/message.h: Fixed typo.
  15797. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15798. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15799. To add --select-file command-line option:
  15800. * src/Util.cc
  15801. (unfoldRange): New function.
  15802. (getNum): New function.
  15803. (unfoldSubRange): New function
  15804. * src/main.cc
  15805. (showUsage): Added help message.
  15806. (main): Added --select-file command-line option. Updated the layout of
  15807. file listing.
  15808. * src/common.h
  15809. (Integers): New definition.
  15810. * src/SocketCore.cc
  15811. (writeData): Removed timeout argument.
  15812. (readData): Removed timeout argument.
  15813. (peekData): Removed timeout argument.
  15814. * src/Socket.cc
  15815. (writeData): Removed timeout argument.
  15816. (readData): Removed timeout argument.
  15817. (peekData): Removed timeout argument.
  15818. * Release 0.4.1
  15819. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15820. To deploy upload rate based choking algorithm:
  15821. * src/PeerInteractionCommand.cc
  15822. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15823. peer currently used.
  15824. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15825. download completes. Simplified.
  15826. (receiveMessage): Updated.
  15827. * src/TorrentMan.h
  15828. (activePeers): New variable.
  15829. (addActivePeer): New function.
  15830. (getActivePeers): New function.
  15831. (deleteActivePeer): New function.
  15832. * src/TorrentMan.cc
  15833. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15834. * src/PeerAbstractCommand.cc
  15835. (onAbort): Use peer->resetStatus().
  15836. * src/main.cc
  15837. (PeerChokeCommand.h): Included.
  15838. (main): Added the instance of ChokingCommand to the command queue.
  15839. * src/Peer.h
  15840. (amChoking): Renamed from amChocking
  15841. (chokingRequired): New variable.
  15842. (optUnchoking): New variable.
  15843. (deltaUpload): New variable.
  15844. (deltaDownload): New variable.
  15845. (addDeltaUpload): New function.
  15846. (resetDeltaUpload): New function.
  15847. (addDeltaDownload): New function.
  15848. (resetDeltaDownload): New function.
  15849. (addPeerUpload): Added a call to addDeltaUpload.
  15850. (addPeerDownload): Added a call to addDeltaDownload.
  15851. * src/Peer.cc
  15852. (shouldBeChoking): Renamed from shouldChoke.
  15853. (resetStatus): New function.
  15854. * src/PeerChokeCommand.h: New class.
  15855. * src/PeerChokeCommand.cc: New class.
  15856. To add lazy upload speed limiter:
  15857. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15858. statistics calculation to TorrentDownloadEngine.
  15859. * src/TorrentConsoleDownloadEngine.cc
  15860. (sendStatistics): Renamed from printStatistics.
  15861. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15862. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15863. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15864. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15865. calculation.
  15866. (sendStatistics): New function as pure virtual function.
  15867. (getUploadSpeed): New function.
  15868. * src/TorrentDownloadEngine.cc
  15869. (initStatistics): New function.
  15870. (calculateSpeed): New function.
  15871. (calculateStatistics): New function.
  15872. * src/SendMessageQueue.h
  15873. (uploadLength): New variable.
  15874. (send): Added an argument.
  15875. (setUploadLimit): New function.
  15876. (getUploadLimit): New function.
  15877. * src/SendMessageQueue.cc
  15878. (send): Added upload speed limiter.
  15879. * src/prefs.h
  15880. (PREF_UPLOAD_LIMIT): New definition.
  15881. * src/PeerInteractionCommand.cc
  15882. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15883. * src/main.cc
  15884. (main): Added --upload-limit option
  15885. For bug fixes:
  15886. * src/main.cc
  15887. (showUsage): Corrected --listen-port help
  15888. Other changes:
  15889. * src/TorrentMan.cc
  15890. (getPeer): Return nullPeer if connection is grather than
  15891. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15892. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15893. To add some useful information to the exception message:
  15894. * src/SocketCore.cc : Updated messages.
  15895. * src/SegmentMan.cc :
  15896. * src/TorrentMan.cc : Updated messages.
  15897. * src/MultiDiskWriter.cc : Updated messages.
  15898. * src/Util.cc : Updated messages.
  15899. * src/AbstractDiskWriter.cc : Updated messages.
  15900. * src/PreAllocationDiskWriter.cc : Updated messages.
  15901. * src/message.cc : Added new messages. Updated some messages.
  15902. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15903. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15904. Updated threshold from 30 to 15.
  15905. * src/AbstractDiskWriter.h (filename): New variable.
  15906. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15907. (createFile): Assigned filename.
  15908. * src/main.cc: Updated the help message for http-auth-scheme.
  15909. * Release 0.4.0
  15910. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15911. To add TrackerUpdateCommand with which replaces
  15912. CompactTrackerResponseProcessor:
  15913. * src/TrackerWatcherCommand.h (req): Removed.
  15914. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15915. if the number of peer connections are less than 30.
  15916. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15917. * src/SegmentMan.h (diskWriter): New function.
  15918. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15919. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15920. (main): Use TrackerUpdateCommand.
  15921. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15922. (req): New variable.
  15923. (setTrackerResponseProcessor): Removed.
  15924. (getTrackerResponseProcessor): Removed.
  15925. (processTrackerResponse): Removed.
  15926. * src/DownloadEngine.h (diskWriter): Removed.
  15927. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15928. to torrentMan->processTrackerResponse().
  15929. To add Util::expandBuffer:
  15930. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15931. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15932. * src/Util.h (expandBuffer): New function.
  15933. To fix the bug that causes segmentation fault when "-l ." is specified
  15934. in command-line option:
  15935. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15936. (openFile): New function.
  15937. (closeFile): New function.
  15938. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15939. (~SimpleLogger): Call closeFile();
  15940. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15941. * src/main.cc (main): Added a check to see logger is configured
  15942. properly.
  15943. To enable HTTP authentication without specifying "--http-auth-scheme"
  15944. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15945. * src/HttpConnection.cc (createRequest): Send Authorization header
  15946. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15947. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15948. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15949. * src/Peer.cc (shouldChoke): Updated algorithm.
  15950. * src/message.h (EX_AUTH_FAILED): New definition.
  15951. (EX_FILE_OPEN): New definition.
  15952. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15953. if status == 401.
  15954. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15955. if req->isTorrent == true.
  15956. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15957. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15958. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15959. (createFile): Updated message.
  15960. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15961. To add a readout of estimated remaining time to normal HTTP/FTP
  15962. downloads:
  15963. * src/ConsoleDownloadEngine.h (startup): New variable.
  15964. (startupLength): New variable.
  15965. (isStartupLengthSet): New variable.
  15966. (avgSpeed): New variable.
  15967. (eta): New variable.
  15968. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15969. estimated remaining time.
  15970. (initStatistics): Initialized newly added variables.
  15971. (calculateStatistics): Calculate average speed and estimated remaining
  15972. time.
  15973. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15974. * src/TrackerDownloadCommand.h: Removed.
  15975. * src/TrackerDownloadCommand.cc: Removed.
  15976. * src/TrackerInitCommand.h: Removed.
  15977. * src/TrackerInitCommand.cc: Removed.
  15978. * src/TrackerUpdateCommand.h: Removed.
  15979. * src/TrackerUpdateCommand.cc: Removed.
  15980. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15981. url written in TrackerInitCommand was moved here. Do not create
  15982. tracker request command if torrentMan->trackers != 0.
  15983. * src/CompactTrackerResponseProcessor.h: New class.
  15984. * src/CompactTrackerResponseProcessor.cc: New class.
  15985. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15986. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15987. Decoupled TorrentDownloadEngine from this.
  15988. * src/SegmentMan.h (init): New function.
  15989. * src/SegmentMan.cc (init): New function.
  15990. * src/TorrentMan.h (responseProcessor): New variable.
  15991. (trackers): New variable.
  15992. (setTrackerResponseProcessor): New function.
  15993. (getTrackerResponseProcessor): New function.
  15994. (processTrackerResponse): New function.
  15995. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15996. (processTrackerResponse): New function.
  15997. * src/main.cc (main): Use ByteArrayDiskWriter and
  15998. CompactTrackerResponseProcessor.
  15999. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16000. processTrackerResponse().
  16001. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16002. readout.
  16003. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16004. which indicates download has completed.
  16005. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16006. (closeFile): fd >= 0, not fd > 0
  16007. * src/main.cc (main): Added short cut for show-files.
  16008. Added short cut for torrent-file.
  16009. Added new command-line option listen-port.
  16010. Updated i18n messages.
  16011. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16012. To add LogFactory which creates singleton logger:
  16013. * src/LogFactory.h: New class.
  16014. * src/LogFactory.cc: New class.
  16015. * src/Command.h (logger): New variable.
  16016. (Constructor): Use LogFactory.
  16017. * src/AbstractCommand.cc: Use Command::logger
  16018. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16019. Use LogFactory.
  16020. * src/SegmentSplitter.h : Made logger protected.
  16021. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16022. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16023. * src/DownloadEngine.h : Made logger protected.
  16024. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16025. * src/PeerInteractionCommand.cc : Use Command::logger.
  16026. * src/HttpResponseCommand.cc : Use Command::logger.
  16027. * src/SegmentMan.h : Made logger private.
  16028. * src/TorrentMan.h : Made logger private.
  16029. * src/TorrentMan.cc : Use LogFactory.
  16030. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16031. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16032. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16033. Use LogFactory.
  16034. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16035. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16036. Use LogFactory.
  16037. * src/DownloadCommand.cc : Use Command::logger.
  16038. * src/PeerAbstractCommand.cc : Use Command::logger.
  16039. * src/PeerListenCommand.cc : Use Command::logger.
  16040. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16041. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16042. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16043. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16044. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16045. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16046. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16047. Use LogFactory.
  16048. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16049. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16050. Use LogFactory.
  16051. * src/main.cc (main): Use LogFactory.
  16052. * src/DiskAdaptor.h (logger): New variable.
  16053. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16054. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16055. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16056. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16057. parameter to a tracker request.
  16058. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16059. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16060. * src/main.cc (setSignalHander): New function.
  16061. (main): Added a handler for SIGTERM.
  16062. (handler): Updated message.
  16063. (torrentHandler): Updated message.
  16064. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16065. * src/TorrentConsoleDownloadEngine.cc
  16066. (onPartialDownloadingCompletes): Renamed as
  16067. onSelectiveDownloadingCompletes.
  16068. (onSelectiveDownloadingCompletes): Updated message.
  16069. To add DiskAdaptor which abstract DiskWriter family:
  16070. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16071. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16072. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16073. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16074. MultiDiskAdaptor.h.
  16075. (readFileEntry): Changed its arguments.
  16076. (setup): setupDiskWriter is merged into this function.
  16077. (setupDiskWriter): Removed.
  16078. (setFileFilter): New function.
  16079. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16080. made in readFileEntry.
  16081. (getFilePath): Removed.
  16082. (getTempFilePath): Removed.
  16083. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16084. (fixFilename): Removed.
  16085. (copySingleFile): Removed.
  16086. (splitMultiFile): Removed.
  16087. (deleteTempFile): Removed.
  16088. (setFileEntriesToDownload): Removed.
  16089. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16090. (isSelectiveDownloadingMode): New function.
  16091. (setAllMultiFileRequestedState): Removed.
  16092. (finishPartialDownloadingMode): Renamed as
  16093. finishSelectiveDownloadingMode.
  16094. (finishSelectiveDownloadingMode): New function.
  16095. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16096. (getSelectedTotalLength): New function.
  16097. (onDownloadComplete): Use diskAdaptor.
  16098. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16099. (Range): Removed.
  16100. (setMultiFileEntries): Renamed as setFileEntries.
  16101. (setFileEntries): New function.
  16102. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16103. (pieceLength): New variable.
  16104. * src/main.cc (printDownloadCompeleteMessage): New function.
  16105. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16106. (main): Renamed torrent-show-files to show-files.
  16107. Rewritten file contents listing.
  16108. * src/TorrentMan.h (FileEntry): Removed.
  16109. (multiFileTopDir): Removed.
  16110. (multiFileEntries): Removed.
  16111. (diskWriter): Removed.
  16112. (diskAdaptor): New variable.
  16113. * src/DefaultDiskWriter.h (totalLength): New variable.
  16114. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16115. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16116. diskWriter.
  16117. * src/TorrentConsoleDownloadEngine.h
  16118. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16119. (partialTotalLength): Renamed as selectedTotalLength.
  16120. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16121. openExistingFile, otherwise call initAndOpenFile.
  16122. (closeFile): fd > 0, not fd != 0.
  16123. * src/DirectDiskAdaptor.h: New class.
  16124. * src/DirectDiskAdaptor.cc: New class.
  16125. * src/MultiDiskAdaptor.h: New class.
  16126. * src/MultiDiskAdaptor.cc: New class.
  16127. * src/CopyDiskAdaptor.h: New class.
  16128. * src/CopyDiskAdaptor.cc: New class.
  16129. * src/DiskAdaptor.h: New class.
  16130. * src/DiskAdaptor.cc: New class.
  16131. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16132. (PREF_SHOW_FILES): New definition.
  16133. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16134. To add the ability to download multi torrent into respective files
  16135. directly:
  16136. * src/DiskWriter.h (openFile): New function.
  16137. (seek): Removed.
  16138. * src/MultiDiskWriter.h: New class.
  16139. * src/MultiDiskWriter.cc: New class.
  16140. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16141. protected.
  16142. (openFile): New function.
  16143. * src/AbstractDiskWriter.cc (openFile): New function.
  16144. * src/prefs.h (V_FALSE): New definition.
  16145. (PREF_DIRECT_FILE_MAPPING): New definition.
  16146. * src/TorrentMan.h (setupDiskWriter): New function.
  16147. (setAllMultiFileRequestedState): New function.
  16148. (onDownloadComplete): New function.
  16149. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16150. (setupDiskWriter): New function.
  16151. (getFilePath): Updated.
  16152. (getTempFilePath): Updated.
  16153. (getSegmentFilePath): Updated.
  16154. (fixFilename): Updated.
  16155. (deleteTempFile): Updated.
  16156. (setAllMultiFileRequestedState): New function.
  16157. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16158. (finishPartialDownloadingMode): Reset requested flags.
  16159. (onDownloadComplete): New function.
  16160. * src/main.cc: Added --direct-file-mapping option.
  16161. Use TorrentMan::setupDiskWriter().
  16162. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16163. onDownloadComplete().
  16164. To fix ETA bug:
  16165. * src/Util.h (difftvsec): New function.
  16166. * src/Util.cc (difftvsec): New function.
  16167. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16168. type of "elapsed" instead of long long int.
  16169. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16170. The updates of statistics takes place every 1 seconds.
  16171. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16172. (calculateSpeed): Changed its argument signature.
  16173. * src/PeerMessage.cc (toString): Fixed message.
  16174. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16175. To print ETA:
  16176. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16177. completion handling when dealing with
  16178. TorrentMan::isPartialDownloadingMode() == true.
  16179. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16180. New function.
  16181. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16182. (sessionDownloadLength): New variable.
  16183. (avgSpeed): New variable.
  16184. (eta): New variable.
  16185. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16186. new variables: eta, avgSpeed, startup.
  16187. (calculateSpeed): Calculate average speed and ETA.
  16188. (printStatistics): Added ETA.
  16189. * src/Util.h (secfmt): New function.
  16190. * src/Util.cc (secfmt): New function.
  16191. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16192. To detect "keep alive" flooding:
  16193. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16194. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16195. variable: keepAliveCount.
  16196. (detectMessageFlooding): Added "keep alive" flooding detection.
  16197. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16198. received.
  16199. To add the ability to download only specified files in multi-file
  16200. torrent:
  16201. * src/BitfieldMan.h (filterBitfield): New variable.
  16202. (filterEnabled): New variable.
  16203. (setFilterBit): New function.
  16204. (enableFilter): New function.
  16205. (disableFilter): New function.
  16206. (isFilterEnabled): New function.
  16207. (getFilteredTotalLength): New function.
  16208. (getCompletedLength): New function.
  16209. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16210. filterBitfield, filterEnabled.
  16211. (CopyConstructor): Added filterBitfield and filterEnabled.
  16212. (operator==): Added filterBitfield and filterEnabled.
  16213. (Destructor): Added filterBitfield.
  16214. (getMissingIndex): Use filterBitfield.
  16215. (getMissingUnusedIndex): Use filterBitfield.
  16216. (getFirstMissingUnusedIndex): Use filterBitfield.
  16217. (getFirstMissingUnusedIndex): Use filterBitfield.
  16218. (getAllMissingIndexes): Use filterBitfield.
  16219. (countMissingBlock): Use filterBitfield.
  16220. (countBlock): Use filterBitfield.
  16221. (setBitInternal): Added new argument on.
  16222. (setUseBit): Use setBitInternal.
  16223. (unsetUseBit): Use setBitInternal.
  16224. (setBit): Use setBitInternal.
  16225. (unsetBit): Use setBitInternal.
  16226. (isAllBitSet): Use filterBitfield.
  16227. (setFilterBit): New function.
  16228. (addFilter): New function.
  16229. (enableFilter): New function.
  16230. (disableFilter): New function.
  16231. (clearFilter): New function.
  16232. (isFilterEnabled): New function.
  16233. (getFilteredTotalLength): New function.
  16234. (getCompletedLength): New function.
  16235. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16236. Initalized newly added variables.
  16237. [FileEntry](offset): New variable.
  16238. [FileEntry](extracted): New variable.
  16239. [FileEntry](requested): New variable.
  16240. (readFileEntry): New function.
  16241. (option): New variable.
  16242. (splitMultiFile): Removed const qualifier.
  16243. (fixFilename): Removed const qualifier.
  16244. (readFileEntryFromMetaInfoFile): New function.
  16245. (finishPartialDownloadingMode): New function.
  16246. (isPartialDownloadingMode): New function.
  16247. (setFileEntriesToDownload): New function.
  16248. (getCompletedLength): New function.
  16249. (getPartialTotalLength): New function.
  16250. * src/TorrentMan.cc (readFileEntry): New function.
  16251. (setup): Use readFileEntry. If no-preallocation option is specified,
  16252. use DefaultDiskWriter.
  16253. (readFileEntryFromMetaInfoFile): New function.
  16254. (fixFilename): Removed const qualifier.
  16255. (splitMultiFile): Removed const qualifier.
  16256. (setFileEntriesToDownload): New function.
  16257. (isPartialDownloadingMode): New function.
  16258. (finishPartialDownloadingMode): New function.
  16259. (getCompletedLength): New function.
  16260. (getPartialTotalLength): New function.
  16261. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16262. New variable.
  16263. (partialTotalLength): New variable.
  16264. (downloadLength): New variable.
  16265. (totalLength): New variable.
  16266. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16267. Added log.
  16268. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16269. partialTotalLength, downloadLength, totalLength.
  16270. (calculate): Calculate downloadLength and totalLength.
  16271. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16272. * src/main.cc (addCommand): Changed argument signature.
  16273. (main): Added new variable: args. Added new option "torrent-show-files"
  16274. "no-preallocation". Usage is not updated yet.
  16275. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16276. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16277. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16278. Attempt to add the ability to listing file entries in a .torrent file.
  16279. This feature is not yet complete.
  16280. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16281. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16282. (getName): New function.
  16283. * src/TorrentMan.h (getMultiFileEntries): New function.
  16284. (getName): New function.
  16285. * src/main.cc (main): Use above 2 funtion.
  16286. * Release 0.3.2
  16287. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16288. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16289. (detectMessageFlooding): Updated threshold value.
  16290. (checkLongTimePeerChoking): Updated timeout value.
  16291. (getNewPieceAndSendInterest): Added debug log.
  16292. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16293. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16294. (getPeer): Updated.
  16295. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16296. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16297. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16298. is localhost.
  16299. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16300. * src/PendingMessage.cc (processMessage): Not to send piece message
  16301. if peer is not interested in the pieces localhost has.
  16302. * src/Peer.cc (shouldChoke): Updated.
  16303. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16304. * src/Util.cc (isPowerOf): New function.
  16305. * src/Util.h (isPowerOf): New function.
  16306. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16307. whether or not it is power of 2.
  16308. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16309. Added new class SendMessageQueue that includes PendingMessages and
  16310. RequestSlotMan.
  16311. * src/SendMessageQueue.h: New class.
  16312. * src/SendMessageQueue.cc: New class.
  16313. * src/PendingMessage.h: Added new member variable blockIndex and its
  16314. accessors.
  16315. (createRequestMessage): Updated.
  16316. * src/PendingMessage.cc (createRequestMessage): Updated.
  16317. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16318. SendMessageQueue.
  16319. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16320. (receiveMessage): Updated with SendMessageQueue.
  16321. (deletePendingPieceMessage): Removed.
  16322. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16323. (sendInterest): Updated with SendMessageQueue.
  16324. (createRequestPendingMessage): Updated with SendMessageQueue.
  16325. (sendMessages): Updated with SendMessageQueue.
  16326. (onAbort): Updated with SendMessageQueue.
  16327. (keepAlive): Updated with SendMessageQueue.
  16328. (beforeSocketCheck): Updated SendMessageQueue.
  16329. * src/PeerInteractionCommand (sendMessages): Shuffle
  16330. missingBLockIndexes before using it.
  16331. Added its own timeout for peer connection.
  16332. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16333. setter.
  16334. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16335. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16336. Added setTimeout() call.
  16337. (executeInternal): Added setTimeout() call.
  16338. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16339. Added timeout.
  16340. (isTimeoutDetected): Updated.
  16341. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16342. option.
  16343. Added *simple* message flooding checker.
  16344. * src/PeerInteractionCommand.cc (executeInternal):
  16345. Added detectMessageFlooding() call.
  16346. (detectMessageFlooding): New function.
  16347. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16348. (beforeSocketCheck): Added detectMessageFlooding() call.
  16349. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16350. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16351. Removed deletePendingPieceMessage(), getRequestSlot(),
  16352. deleteRequestSlot(), deleteAllRequestSlot().
  16353. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16354. Added checkLongTimePeerChoking() call.
  16355. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16356. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16357. if duplicate == false.
  16358. The parameter "uploaded" and "downloaded" in the tracker request are
  16359. the size since the client sent the "started" event to the tracker.
  16360. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16361. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16362. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16363. getSessionDownloadedSize(), getSessionUploadedSize().
  16364. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16365. getSessionUploadedSize() instead of getDownloadedSize(),
  16366. getUploadedSize().
  16367. * src/PendingMessage.cc (processMessage): Do not send request message
  16368. if the peer is choking the client.
  16369. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16370. less than interval.
  16371. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16372. * configure.in: Added gnutls support. Added several CPP macros.
  16373. * m4/openssl.m4: Added.
  16374. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16375. readData(), peekData(). Added gnutls support.
  16376. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16377. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16378. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16379. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16380. Instead, added a check for whether setup method has executed
  16381. successfully.
  16382. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16383. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16384. * src/Makefile.am: Updated.
  16385. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16386. using whether OpenSSL or gcrypt, depending on the result of configure
  16387. script.
  16388. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16389. messageDigest.h.
  16390. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16391. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16392. Fixed memory leak.
  16393. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16394. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16395. Removed instantiation of TrackerInitCommand. Instead,
  16396. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16397. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16398. ENABLE_SSL.
  16399. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16400. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16401. If a piece is already acquired by another command, delete the request
  16402. slots for the piece.
  16403. * src/TrackerUpdateCommand.cc (execute):
  16404. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16405. Added a check whether peer list is null.
  16406. Fixed the bug that causes sending completed event to the tracker
  16407. several times.
  16408. * src/TrackerInitCommand.cc (execute):
  16409. Fixed the bug that causes sending completed event to the tracker
  16410. several times.
  16411. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16412. by using messageDigest.h.
  16413. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16414. * PeerConnection.cc: Replaced log message "keep-alive" with
  16415. "keep alive".
  16416. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16417. localhost long time.
  16418. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16419. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16420. at most 100 failure entry from the list. If with duplicate = false,
  16421. MAX_PEER_LIST is not checked.
  16422. * PeerListenCommand.cc: Fixed the argument order of log message.
  16423. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16424. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16425. Added warn().
  16426. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16427. Implemented warn().
  16428. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16429. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16430. * Request.h: Added AFTER_COMPLETED event.
  16431. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16432. instead of downloaded size and progress(%) after download completes.
  16433. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16434. message to the peer if it is interested in what localhost has
  16435. downloaded.
  16436. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16437. destination instead of just renaming it.
  16438. * TorrentMan.cc: Added deleteTempFile().
  16439. * PeerAbstractCommand.cc: do not stop execution after download
  16440. completes. This makes localhost a seeder.
  16441. * Util.{h,cc}: Added fileCopy().
  16442. * PeerListenCommand.cc: do not stop execution after download completes.
  16443. This makes localhost a seeder.
  16444. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16445. Added TorrentMan::deleteTempFile() to torrentHandler.
  16446. Initialized the variable dir as ".".
  16447. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16448. Deleted renameSingleFile().
  16449. Added copySingleFile(), deleteTempFile().
  16450. * DownloadEngine.h: Added virtual function afterEachIteration().
  16451. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16452. in onEndOfRun() to afterEachIteration().
  16453. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16454. true.
  16455. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16456. In rangedFileCopy(), added try-catch block to properly close file
  16457. descriptors.
  16458. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16459. Added afterEachIteration(), isFilenameFixed().
  16460. * Peer.cc: Changed choking strategy.
  16461. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16462. * TrackerInitCommand.cc: Send completed event only once.
  16463. * DownloadEngine.cc: Added a call to afterEachIteration().
  16464. * TrackerUpdateCommand.cc: Do not stop execution after download
  16465. completes.
  16466. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16467. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16468. received from a tracker.
  16469. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16470. Decreased the number of failure peers to delete to 0(just comment out
  16471. the line).
  16472. * Release 0.3.1
  16473. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16474. * PeerInteractionCommand.cc: added a call to
  16475. TorrentMan::unadvertisePiece in Destructor.
  16476. * PeerInteractionCommand.cc: make have message sent immediately
  16477. if the size of pending message queue is zero.
  16478. * TorrentMan.cc: set the maximum size of peer list to 250.
  16479. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16480. to deque.
  16481. * Util.cc: fixed rangedFileCopy.
  16482. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16483. to Constructor. Also, moved digest cleanup to Destructor.
  16484. * MetaFileUtil.cc: fixed memory leak
  16485. * replaced std::vector with std::deque.
  16486. * AbstractCommand.cc: casted timeout value to long long int.
  16487. * ChunkedEncoding.cc: fixed memory leak.
  16488. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16489. * SleepCommand.cc: casted timeout value to long long int.
  16490. * Data.cc: fixed memory leak.
  16491. * Data.cc: fixed toLLInt().
  16492. * BitfieldMan.cc: fixed memory leak.
  16493. * TorrentMan.cc: initialized storeDir to ".".
  16494. * TorrentMan.cc: fixed memory leak.
  16495. * TorrentMan.cc: corrected file paths of splitted files.
  16496. * PeerAbstractCommand.cc: casted timeout to long long int.
  16497. * main.cc: added delete(req) and delete(te->diskWriter).
  16498. * RequestSlot.cc: casted timeout value to long long int.
  16499. * Request.cc: fixed memory leak.
  16500. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16501. have the piece.
  16502. * Peer.{h,cc}: added hasPiece(int index).
  16503. * main.cc: corrected addCommand.
  16504. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16505. * BitTorrent protocol support added.
  16506. * Release 0.3.0
  16507. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16508. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16509. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16510. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16511. decoding did not work properly.
  16512. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16513. * DownloadEngine.h: included sys/time.h
  16514. * DownloadEngine.cc: remove sys/time.h
  16515. * Makefile.am (SUBDIRS): Add intl.
  16516. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16517. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16518. * main.cc: correct help message for --http-auth-scheme.
  16519. * main.cc: changed e-mail address for bug reports.
  16520. * ja.po: added japanese translation.
  16521. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16522. * SimpleLogger.cc: flush log file instead of stdout.
  16523. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16524. * main.cc: Fixed command-line option: max-tries
  16525. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16526. does not equal to seg.sp.
  16527. * DownloadCommand.cc: If EOF is got from the server and the total size
  16528. of file is not zero, then throw DlRetryEx.
  16529. * main.cc: Set the minium value of min-segment-size to 1024.
  16530. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16531. fails because of a regression since 0.2.0 release.
  16532. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16533. * HttpConnection.cc:
  16534. * common.h: defined the user agent name as macro
  16535. * DownloadEngine.{h, cc}:
  16536. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16537. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16538. * main.cc: Download complete/abort message is now generated by main.
  16539. * Makefile.am (SUBDIRS): Add m4.
  16540. (ACLOCAL_AMFLAGS): New variable.
  16541. (EXTRA_DIST): New variable.
  16542. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16543. * gettext: added gettext functionality
  16544. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16545. * AbstractCommand.cc:
  16546. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16547. unregister its cuid from SegmentMan.
  16548. * DownloadEngine.cc: .aria2 file was written when a downloading
  16549. failed with errors.
  16550. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16551. Added "User-Agent" header to CONNECT proxy request.
  16552. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16553. properly.
  16554. * Logger.h:
  16555. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16556. * ChunkedEncoding.cc: Added #include directive for strings.h
  16557. * Release 0.2.1
  16558. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16559. * Util.{h,cc}: added startsWith().
  16560. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16561. Util::endsWith().
  16562. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16563. * common.h: added #include directive of limit.h.
  16564. * DownloadEngine.cc: added #include directive of sys/time.h and
  16565. algorithm.
  16566. * Exception.h: added #include directive of stdio.h.
  16567. * AbstractCommand.h: added #include directive of sys/time.h.
  16568. * DownloadCommand.h: added #include directive of sys/time.h.
  16569. * *.h: added #include directive of common.h to all base classes.
  16570. subclasses' one was removed.
  16571. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16572. does not define these macros.
  16573. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16574. * Release 0.2.0
  16575. * main.cc:
  16576. * HttpInitiateConnectionCommand.{h,cc}:
  16577. * prefs.h:
  16578. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16579. We can now use GET command in http proxy.
  16580. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16581. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16582. that splits slowest segment of SegmentMan::commands vector.
  16583. This is the default split algorithm of aria2.
  16584. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16585. that splits first segment of SegmentMan::commands vector.
  16586. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16587. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16588. * Segment.h:
  16589. * SegmentMan.cc: Added speed field to Segment.h
  16590. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16591. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16592. * message.h: Change file size related %d to %lld.
  16593. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16594. * FtpInitiateConnectionCommand.{h,cc}:
  16595. * FtpNegotiationCommand.{h,cc}:
  16596. * FtpDownloadCommand.{h,cc}:
  16597. * FtpConnection.{h,cc}: Added FTP support
  16598. * SimpleLogger.cc: Log message now includes time information.
  16599. * main.cc: The value of --http-auth-scheme option is chagned from
  16600. 'BASIC' to 'basic'
  16601. * main.cc: Added --timeout command-line option.
  16602. * main.cc: Added --min-segment-size command-line option.
  16603. * main.cc: Added --max-retries command-line option.
  16604. * prefs.h: option string constants are now defined in prefs.h
  16605. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16606. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16607. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16608. with version 0.1.0's one.
  16609. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16610. * configure.in: Added --enable-ssl option to configure script.
  16611. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16612. cannot permit absoluteURI as Request-URI.
  16613. * HttpConnection.cc: Added Referer support.
  16614. * main.cc: Added referer command-line option.
  16615. * main.cc: Added rety-wait command-line option.
  16616. * Exception.h: Fixed formating bug in Exception::setMsg()
  16617. * SocketCore.{h,cc}:
  16618. * Socket.{h, cc}:
  16619. * Request.cc:
  16620. * InitiateConnectionCommandFactory.cc:
  16621. * HttpRequestCommand.cc: Added HTTPS support.
  16622. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16623. for SocketCore.
  16624. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16625. size is wrong
  16626. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16627. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16628. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16629. * Release 0.1.0