ChangeLog 623 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942
  1. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  2. Included version number in Peer ID and client version. Peer ID
  3. now starts with "aria2/VERSION-", where VERSION is
  4. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  5. * src/DefaultBtInteractive.cc
  6. * src/OptionHandlerFactory.cc
  7. * src/bittorrent_helper.cc
  8. * src/bittorrent_helper.h
  9. * src/main.cc
  10. * src/usage_text.h
  11. * test/BittorrentHelperTest.cc
  12. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  13. Fixed memory leak.
  14. * src/DownloadCommand.cc
  15. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  16. Removed server, port, user and passwd key from options before
  17. XMLRPC::Client.call since they are not options of aria2.
  18. * doc/xmlrpc/aria2mon
  19. * doc/xmlrpc/aria2rpc
  20. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  21. Included version number in user-agent string.
  22. * src/OptionHandlerFactory.cc
  23. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  24. Fixed the bug that the option values changed by XML-RPC
  25. method(changeOption and changeGlobalOption) are overwritten to the
  26. previous value by the next these request which doesn't contain
  27. that option value. Supporse max-download-limit is initially 0. You
  28. changed this value to 100K by changeOption. Then you issue
  29. changeOption request to change max-upload-limit to 50K. This
  30. second request doesn't contain xml-download-limit, so it is back
  31. to initial value, 0. Another improvement is that exception is
  32. thrown when changeOption and changeGlobalOption request contains
  33. option name which doesn't allowed in each request.
  34. * src/DownloadEngine.h
  35. * src/XmlRpcMethod.cc
  36. * src/XmlRpcMethod.h
  37. * src/XmlRpcMethodImpl.cc
  38. * src/download_helper.cc
  39. * src/download_helper.h
  40. * test/XmlRpcMethodTest.cc
  41. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  42. Added missing MetalinkParserStateImpl.{cc,h}
  43. * src/MetalinkParserStateImpl.cc
  44. * src/MetalinkParserStateImpl.h
  45. 2009-10-03 Tatsuhiro Tsujikawa <[email protected]>
  46. Put all MetalinkParserState subclasses into
  47. MetalinkParserStateImpl.cc. Use stack to track element structure.
  48. * src/FileMetalinkParserState.cc: Removed
  49. * src/FileMetalinkParserState.h: Removed
  50. * src/FilesMetalinkParserState.cc: Removed
  51. * src/FilesMetalinkParserState.h: Removed
  52. * src/FinMetalinkParserState.cc: Removed
  53. * src/FinMetalinkParserState.h: Removed
  54. * src/HashMetalinkParserState.cc: Removed
  55. * src/HashMetalinkParserState.h: Removed
  56. * src/InitialMetalinkParserState.cc: Removed
  57. * src/InitialMetalinkParserState.h: Removed
  58. * src/LanguageMetalinkParserState.cc: Removed
  59. * src/LanguageMetalinkParserState.h: Removed
  60. * src/Makefile.am
  61. * src/MetalinkMetalinkParserState.cc: Removed
  62. * src/MetalinkMetalinkParserState.h: Removed
  63. * src/MetalinkParserState.h
  64. * src/MetalinkParserStateMachine.cc
  65. * src/MetalinkParserStateMachine.h
  66. * src/OSMetalinkParserState.cc: Removed
  67. * src/OSMetalinkParserState.h: Removed
  68. * src/PieceHashMetalinkParserState.cc: Removed
  69. * src/PieceHashMetalinkParserState.h: Removed
  70. * src/PiecesMetalinkParserState.cc: Removed
  71. * src/PiecesMetalinkParserState.h: Removed
  72. * src/ResourcesMetalinkParserState.cc: Removed
  73. * src/ResourcesMetalinkParserState.h: Removed
  74. * src/SignatureMetalinkParserState.cc: Removed
  75. * src/SignatureMetalinkParserState.h: Removed
  76. * src/SizeMetalinkParserState.cc: Removed
  77. * src/SizeMetalinkParserState.h: Removed
  78. * src/SkipTagMetalinkParserState.cc: Removed
  79. * src/SkipTagMetalinkParserState.h: Removed
  80. * src/URLMetalinkParserState.cc: Removed
  81. * src/URLMetalinkParserState.h: Removed
  82. * src/VerificationMetalinkParserState.cc: Removed
  83. * src/VerificationMetalinkParserState.h: Removed
  84. * src/VersionMetalinkParserState.cc: Removed
  85. * src/VersionMetalinkParserState.h: Removed
  86. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  87. Move all functions in PeerMessageUtil to bittorrent_helper.
  88. * src/BtBitfieldMessage.cc
  89. * src/BtBitfieldMessageValidator.h
  90. * src/BtExtendedMessage.cc
  91. * src/BtHandshakeMessage.cc
  92. * src/BtHandshakeMessageValidator.h
  93. * src/BtPieceMessage.cc
  94. * src/BtPieceMessageValidator.h
  95. * src/BtPortMessage.cc
  96. * src/DHTFindNodeReplyMessage.cc
  97. * src/DHTGetPeersReplyMessage.cc
  98. * src/DHTMessageFactoryImpl.cc
  99. * src/DHTRoutingTableDeserializer.cc
  100. * src/DHTRoutingTableSerializer.cc
  101. * src/DHTTokenTracker.cc
  102. * src/DefaultBtMessageFactory.cc
  103. * src/IndexBtMessage.cc
  104. * src/IndexBtMessage.h
  105. * src/IndexBtMessageValidator.h
  106. * src/Makefile.am
  107. * src/PeerMessageUtil.cc: Removed.
  108. * src/PeerMessageUtil.h: Removed.
  109. * src/RangeBtMessage.cc
  110. * src/RangeBtMessage.h
  111. * src/RangeBtMessageValidator.h
  112. * src/UTPexExtensionMessage.cc
  113. * src/ZeroBtMessage.cc
  114. * src/ZeroBtMessage.h
  115. * src/bittorrent_helper.cc
  116. * src/bittorrent_helper.h
  117. * test/BittorrentHelperTest.cc
  118. * test/BtAllowedFastMessageTest.cc
  119. * test/BtBitfieldMessageTest.cc
  120. * test/BtCancelMessageTest.cc
  121. * test/BtChokeMessageTest.cc
  122. * test/BtExtendedMessageTest.cc
  123. * test/BtHandshakeMessageTest.cc
  124. * test/BtHaveAllMessageTest.cc
  125. * test/BtHaveMessageTest.cc
  126. * test/BtHaveNoneMessageTest.cc
  127. * test/BtInterestedMessageTest.cc
  128. * test/BtNotInterestedMessageTest.cc
  129. * test/BtPieceMessageTest.cc
  130. * test/BtPortMessageTest.cc
  131. * test/BtRejectMessageTest.cc
  132. * test/BtRequestMessageTest.cc
  133. * test/BtSuggestPieceMessageTest.cc
  134. * test/BtUnchokeMessageTest.cc
  135. * test/DHTFindNodeReplyMessageTest.cc
  136. * test/DHTGetPeersReplyMessageTest.cc
  137. * test/DHTMessageFactoryImplTest.cc
  138. * test/DHTRoutingTableDeserializerTest.cc
  139. * test/DHTRoutingTableSerializerTest.cc
  140. * test/DefaultBtMessageFactoryTest.cc
  141. * test/DefaultExtensionMessageFactoryTest.cc
  142. * test/Makefile.am
  143. * test/PeerListProcessorTest.cc
  144. * test/PeerMessageUtilTest.cc: Removed.
  145. * test/UTPexExtensionMessageTest.cc
  146. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  147. Limit the size of values list when sending get_peers reply.
  148. * src/DHTGetPeersReplyMessage.cc
  149. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  150. Updated banner
  151. * doc/xmlrpc/aria2rpc
  152. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  153. Added missing help message for remove command.
  154. * doc/xmlrpc/aria2rpc
  155. 2009-09-24 Tatsuhiro Tsujikawa <[email protected]>
  156. Generated configure and config.h.in
  157. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  158. Add check for fork(), which is missing on MinGW
  159. * src/daemon.cc
  160. * configure.ac
  161. 2009-09-23 Tatsuhiro Tsujikawa <[email protected]>
  162. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  163. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  164. Util::httpGMT().
  165. * src/Util.cc
  166. * src/Util.h
  167. * test/UtilTest.cc
  168. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  169. * Release 1.6.0
  170. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  171. Fixed a path to xmlrpc/README.txt
  172. * doc/Makefile.am
  173. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  174. Added XML-RPC in -v Configuration output.
  175. * src/FeatureConfig.cc
  176. * src/FeatureConfig.h
  177. * test/FeatureConfigTest.cc
  178. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  179. Updated Bulgarian, Russian, Slovak and Japanese
  180. translations. Thanks to all translators.
  181. * po/bg.po
  182. * po/ja.po
  183. * po/ru.po
  184. * po/sk.po
  185. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  186. Removed --retry-wait option from aria2rpc
  187. * doc/xmlrpc/aria2rpc
  188. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  189. Removed --retry-wait option from man page.
  190. * doc/aria2c.1.txt
  191. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  192. Removed --retry-wait option since the current architecture doesn't
  193. allow sleep for particular URI.
  194. * src/AbstractCommand.cc
  195. * src/OptionHandlerFactory.cc
  196. * src/download_helper.cc
  197. * src/prefs.cc
  198. * src/prefs.h
  199. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  200. Removed Retry-After header support. Since the current architecture
  201. doesn't allow sleep for particular URI.
  202. * src/HttpSkipResponseCommand.cc
  203. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  204. Updated the help message for --daemon option.
  205. * doc/aria2c.1.txt
  206. * src/usage_text.h
  207. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  208. Added our own daemon() function for systems which desn't have
  209. daemon(3).
  210. * configure.ac
  211. * src/Makefile.am
  212. * src/daemon.cc
  213. * src/daemon.h
  214. * src/option_processing.cc
  215. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  216. Simplified File::getCurrentDir()
  217. * src/File.cc
  218. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  219. Use exit() instead of _exit
  220. * src/RequestGroupMan.cc
  221. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  222. Replaced "CATEGORY" with "TAGS".
  223. * src/usage_text.h
  224. * doc/aria2c.1.txt
  225. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  226. Updated the help message for --help option.
  227. * src/usage_text.h
  228. * doc/aria2c.1.txt
  229. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  230. Updated man page for added help tags.
  231. * doc/aria2c.1.txt
  232. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  233. Added help category #file. Added #file tag to the options related
  234. to downloaded file.
  235. * src/OptionHandlerFactory.cc
  236. * src/help_tags.h
  237. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  238. Added help categories: #cookie and #hook. Added #https tag to
  239. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  240. * src/OptionHandlerFactory.cc
  241. * src/help_tags.h
  242. 2009-09-16 Tatsuhiro Tsujikawa <[email protected]>
  243. Made MSG_NOT_FILE translatable.
  244. * src/message.h
  245. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  246. Updated man page for --help option.
  247. * doc/aria2c.1.txt
  248. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  249. Updated doc.
  250. * src/XmlRpcMethod.h
  251. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  252. Help category now starts with "#" to distinguish a category from
  253. keyword search. For example, "http" categroy is now "#http". You
  254. can type "--help=#http" to get explanation of options related to
  255. http. If '#' is omitted, then the argument is treated as a keyword
  256. and aria2 searches options whose name includes the keyword and
  257. print matched ones. For example, "--help=http" will show options
  258. whose name includes "http".
  259. * src/OptionHandlerFactory.cc
  260. * src/help_tags.h
  261. * src/usage_text.h
  262. * src/version_usage.cc
  263. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  264. Documented missing experimental tag and newly added xml-rpc tag in
  265. man page.
  266. * doc/aria2c.1.txt
  267. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  268. Added xml-rpc help tag. Tagged xml-rpc related options with
  269. xml-rpc tag.
  270. * src/OptionHandlerFactory.cc
  271. * src/help_tags.h
  272. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  273. Updated message when a path is not a file. Updated common message
  274. for wrong option.
  275. * src/OptionHandlerException.cc
  276. * src/message.h
  277. 2009-09-10 Tatsuhiro Tsujikawa <[email protected]>
  278. Use File::isFile() instead of File::exists(). Updated message when
  279. a path is not a file.
  280. * src/OptionHandlerImpl.cc
  281. * src/message.h
  282. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  283. Fixed the bug that server performence profile is not updated when
  284. aria2c was terminated by emergency shutdown.
  285. * src/TrackerWatcherCommand.cc
  286. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  287. Use LocalFilePathOptionHandler for -T and -M option.
  288. Updated message of MSG_FILE_NOT_EXIST.
  289. * src/OptionHandlerFactory.cc
  290. * src/message.h
  291. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  292. Added LocalFilePathOptionHandler which check whether the specified
  293. file path does exist or not.
  294. * src/OptionHandlerImpl.cc
  295. * src/message.h
  296. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  297. Updated wiki page URI.
  298. * README
  299. * doc/aria2c.1.txt
  300. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  301. Added README.txt for xmlrpc directory.
  302. * doc/Makefile.am
  303. * doc/xmlrpc/README.txt
  304. 2009-09-06 Tatsuhiro Tsujikawa <[email protected]>
  305. Bump up version number to 1.6.0.
  306. * configure.ac
  307. 2009-09-01 Tatsuhiro Tsujikawa <[email protected]>
  308. Added XML-RPC client scripts written in ruby.
  309. * doc/Makefile.am
  310. * doc/xmlrpc/aria2mon
  311. * doc/xmlrpc/aria2rpc
  312. 2009-08-31 Tatsuhiro Tsujikawa <[email protected]>
  313. Added support for IPv6 literal address in URI. Now aria2 can
  314. handle URI such as http://[::1]/
  315. * src/HttpRequest.cc
  316. * src/HttpRequest.h
  317. * src/Request.cc
  318. * src/Request.h
  319. * test/HttpRequestTest.cc
  320. * test/OptionHandlerTest.cc
  321. * test/RequestTest.cc
  322. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  323. Fixed the bug that HTTP request header for XML-RPC request is not
  324. parsed properly.
  325. * src/HttpHeader.cc
  326. * src/HttpHeaderProcessor.cc
  327. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  328. Fixed the bug that XML-RPC authorization might be done before HTTP
  329. request header is fully received.
  330. * src/HttpServerCommand.cc
  331. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  332. Documented --xml-rpc-listen-all option in man page.
  333. * doc/aria2c.1.txt
  334. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  335. Added --xml-rpc-listen-all option. If true is given to this
  336. option, aria2 listens incoming XML-RPC requests on all network
  337. interfaces. If false is given, listens only on local loopback
  338. interface. The default value is false.
  339. * src/HttpListenCommand.cc
  340. * src/OptionHandlerFactory.cc
  341. * src/SocketCore.cc
  342. * src/SocketCore.h
  343. * src/prefs.cc
  344. * src/prefs.h
  345. * src/usage_text.h
  346. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  347. * Release 1.5.2
  348. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  349. Updated Ukrainian and Russian translations. Thanks to all
  350. translators.
  351. * po/ru.po
  352. * po/uk.po
  353. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  354. Bump up version number to 1.5.2
  355. * configure.ac
  356. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  357. Get comment, comment.utf-8, created by and creation date from
  358. .torrent file and print them in -S output.
  359. * src/bittorrent_helper.cc
  360. * src/bittorrent_helper.h
  361. * test/BittorrentHelperTest.cc
  362. * test/test.torrent
  363. * test/utf8.torrent
  364. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  365. Show exact file size along in -S option output.
  366. * src/Util.h
  367. * src/bittorrent_helper.cc
  368. * test/UtilTest.cc
  369. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  370. Avoided unnecessary memory allocation in
  371. BitfieldMan::getCompletedLength().
  372. * src/BitfieldMan.cc
  373. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  374. Fixed the bug that download fails if
  375. SocketCore::establishConnection() throws exception and aria2
  376. doesn't try another address.
  377. * src/AbstractCommand.cc
  378. * src/InitiateConnectionCommand.cc
  379. * src/message.h
  380. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  381. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  382. detected properly.
  383. * m4/sqlite3.m4
  384. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  385. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  386. because it causes compile error if PARAMS macro is defined.
  387. * src/XmlRpcElements.cc
  388. * src/XmlRpcElements.h
  389. * src/XmlRpcRequestParserStateImpl.cc
  390. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  391. * Release 1.5.1
  392. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  393. Bump up version number to 1.5.1
  394. * configure.ac
  395. 2009-07-25 Tatsuhiro Tsujikawa <[email protected]>
  396. Fixed compile error without BitTorrent support
  397. * src/DefaultBtProgressInfoFile.cc
  398. * src/DownloadEngine.cc
  399. * src/DownloadEngine.h
  400. 2009-07-24 Tatsuhiro Tsujikawa <[email protected]>
  401. Added missing '=' in Download Results
  402. * src/RequestGroupMan.cc
  403. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  404. Fixed compiler warning
  405. * src/DefaultBtProgressInfoFile.cc
  406. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  407. Fixed compiler warning on 32bit systems.
  408. * src/DownloadCommand.cc
  409. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  410. Call flush from ServerStatMan::save()
  411. * src/ServerStatMan.cc
  412. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  413. Check stream status after file is opened.
  414. * src/CookieStorage.cc
  415. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  416. Rewritten Signature::save()
  417. * src/Signature.cc
  418. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  419. Rewritten RequestGroupMan::saveServerStat()
  420. * src/RequestGroupMan.cc
  421. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  422. Rewritten stream error handling
  423. * src/DHTAutoSaveCommand.cc
  424. * src/DHTRoutingTableDeserializer.cc
  425. * src/DHTRoutingTableSerializer.cc
  426. * src/DHTSetup.cc
  427. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  428. Check stream status after file is opened.
  429. * src/DefaultBtProgressInfoFile.cc
  430. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  431. Rewritten stream error handling
  432. * src/DefaultBtProgressInfoFile.cc
  433. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  434. Make sure that stream is closed before renaming file. Unit test
  435. fails on mingw32 in the previous implementation.
  436. * src/CookieStorage.cc
  437. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  438. Fixed the unit test error without sqlite3
  439. * test/CookieStorageTest.cc
  440. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  441. Fixed the undefined reference error
  442. * test/HttpResponseTest.cc
  443. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  444. * Release 1.5.0
  445. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  446. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  447. Ukrainian translations. Thanks to all translators.
  448. * po/ru.po
  449. * po/it.po
  450. * po/da.po
  451. * po/bg.po
  452. * po/ja.po
  453. * po/uk.po
  454. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  455. Added missing src/Logger.cc
  456. * src/Logger.cc
  457. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  458. Rewritten Logger to avoiding constly virtual call.
  459. * src/LogFactory.cc
  460. * src/LogFactory.h
  461. * src/Logger.h
  462. * src/Makefile.am
  463. * src/Makefile.in
  464. * src/NullLogger.h: Removed.
  465. * src/SimpleLogger.cc
  466. * src/SimpleLogger.h
  467. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  468. Updated doc
  469. * src/main.cc
  470. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  471. Updated debug log message
  472. * src/AbstractCommand.cc
  473. * src/message.h
  474. 2009-07-16 Tatsuhiro Tsujikawa <[email protected]>
  475. Avoid to create zombie process when commands specified in
  476. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  477. X and NetBSD.
  478. * src/main.cc
  479. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  480. Fixed typo
  481. * src/usage_text.h
  482. * doc/aria2c.1.txt
  483. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  484. Documented 'errorCode' of tellStatus in man page.
  485. * doc/aria2c.1.txt
  486. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  487. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  488. This key is only available for stopped/completed downloads and its
  489. value is the error code defined in EXIT STATUS in man page.
  490. * src/XmlRpcMethodImpl.cc
  491. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  492. Fixed the bug that session download length is not updated when
  493. PeerStat is not fastest one.
  494. * src/SegmentMan.cc
  495. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  496. Updated doc.
  497. * doc/aria2c.1.txt
  498. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  499. Updated doc.
  500. * src/AbstractCommand.cc
  501. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  502. Handle the case when DownloadContext has no FileEntry.
  503. * src/XmlRpcMethodImpl.cc
  504. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  505. Handle the situation where struct option.name is char *.
  506. * configure.ac
  507. * src/OptionParser.cc
  508. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  509. Code cleanup
  510. * src/AbstractCommand.cc
  511. * src/DownloadCommand.cc
  512. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  513. Use option of each download to create AuthConfig instead of global
  514. option.
  515. * src/AuthConfigFactory.cc
  516. * src/AuthConfigFactory.h
  517. * src/FtpNegotiationCommand.cc
  518. * src/HttpRequest.cc
  519. * src/HttpRequest.h
  520. * src/HttpRequestCommand.cc
  521. * src/HttpSkipResponseCommand.cc
  522. * src/MultiUrlRequestInfo.cc
  523. * test/AuthConfigFactoryTest.cc
  524. * test/FtpConnectionTest.cc
  525. * test/HttpRequestTest.cc
  526. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  527. Don't call prepareForRetry(1) if all segments are ignored in
  528. SegmentMan.
  529. * src/AbstractCommand.cc
  530. * src/BitfieldMan.cc
  531. * src/BitfieldMan.h
  532. * src/SegmentMan.cc
  533. * src/SegmentMan.h
  534. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  535. Removed FileEntry::getAssociatedUris()
  536. * src/FileEntry.h
  537. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  538. Updated doc: TODO1.5 -> TODO
  539. * src/FileEntry.cc
  540. * src/HttpResponseCommand.cc
  541. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  542. Added assertion fileEntries.size() == 1 if BitTorrent is not
  543. involved.
  544. * src/RequestGroup.cc
  545. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  546. Eliminated duplicated filterBitfield initialization code.
  547. * src/BitfieldMan.cc
  548. * src/BitfieldMan.h
  549. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  550. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  551. relatively naive approach, though). For DownloadFailureException,
  552. we handle the case when req is null properly.
  553. * src/AbstractCommand.cc
  554. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  555. Added function returning suffix of control file to
  556. DefaultBtProgressInfoFile.
  557. * src/DefaultBtProgressInfoFile.cc
  558. * src/DefaultBtProgressInfoFile.h
  559. * src/RequestGroup.cc
  560. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  561. Documented getVersion in man page.
  562. * doc/aria2c.1.txt
  563. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  564. Documented type of offset and num for tellWaiting xml-rpc method.
  565. * doc/aria2c.1.txt
  566. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  567. Implemented getVersion xml-rpc method. This method returns struct
  568. which has 2 key-value pairs: "version" key is associated to the
  569. version of aria2, such as "1.5.0". "enabledFeatures" key is
  570. associated to the list of enabled features, such as "Async DNS",
  571. "BitTorrent".
  572. * src/FeatureConfig.h
  573. * src/XmlRpcMethodFactory.cc
  574. * src/XmlRpcMethodImpl.cc
  575. * src/XmlRpcMethodImpl.h
  576. * test/XmlRpcMethodTest.cc
  577. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  578. Removed TLS1.1 protocol support when aria2 is built with gnutls
  579. for compatibility issue.
  580. * src/SocketCore.cc
  581. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  582. Fixed compile error with openSSL
  583. * src/bittorrent_helper.cc
  584. * src/messageDigest.h
  585. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  586. Removed bad code: setting certificate type priority to key
  587. exchange priority.
  588. * src/SocketCore.cc
  589. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  590. Disconnect seeder if client is also in seed state.
  591. * src/BtBitfieldMessage.cc
  592. * src/BtHaveAllMessage.cc
  593. * src/BtHaveMessage.cc
  594. * src/message.h
  595. * test/BtBitfieldMessageTest.cc
  596. * test/BtHaveAllMessageTest.cc
  597. * test/BtHaveMessageTest.cc
  598. * test/MockPieceStorage.h
  599. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  600. Keep CreateRequestCommand in queue when no segment is available so
  601. that they can pick up pieces which slow BitTorrent peers are
  602. downloading.
  603. * src/AbstractCommand.cc
  604. * src/CreateRequestCommand.cc
  605. * src/CreateRequestCommand.h
  606. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  607. --bt-stop-timeout now only checks download speed.
  608. * src/BtStopDownloadCommand.cc
  609. * src/BtStopDownloadCommand.h
  610. * src/BtSetup.cc
  611. * src/usage_text.h
  612. * doc/aria2c.1.txt
  613. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  614. Fixed compile error regarding BUFSIZE.
  615. * src/DownloadCommand.cc
  616. * src/DownloadCommand.h
  617. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  618. Documented tellWaiting xml-rpc method in man page.
  619. * doc/aria2c.1.txt
  620. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  621. Bump up version number to 1.5.0
  622. * configure.ac
  623. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  624. Removed resolved TODO1.5
  625. * src/AbstractCommand.cc
  626. * src/DownloadCommand.cc
  627. * src/RequestGroup.cc
  628. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  629. Release pooled and in-flight Request objectsand URIResult objects
  630. in FileEntry after download completed.
  631. * src/DownloadContext.cc
  632. * src/DownloadContext.h
  633. * src/FileEntry.cc
  634. * src/FileEntry.h
  635. * src/RequestGroup.cc
  636. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  637. Set manual and source attribute in aria2c.1.txt
  638. * doc/aria2c.1.txt
  639. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  640. Documented that the default value of --use-head is 'false' in man
  641. page.
  642. * doc/aria2c.1.txt
  643. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  644. Added bt-stop-timeout option to -i list.
  645. * doc/aria2c.1.txt
  646. * src/download_helper.cc
  647. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  648. Fixed typo
  649. * doc/aria2c.1.txt
  650. * src/usage_text.h
  651. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  652. Removed peer-id-prefix option from -i list.
  653. * doc/aria2c.1.txt
  654. * src/download_helper.cc
  655. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  656. Fixed typo
  657. * doc/aria2c.1.txt
  658. * src/usage_text.h
  659. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  660. Documented --bt-stop-timeout option in man page.
  661. * doc/aria2c.1.txt
  662. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  663. Updated README regarding multi-file torrent web-seeding.
  664. * doc/README.txt
  665. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  666. Updated man page regarding multi-file torrent web-seeding.
  667. * doc/aria2c.1.txt
  668. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  669. Updated doc
  670. * src/version_usage.cc
  671. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  672. Winsock select() doesn't work if no socket is in FD_SET. To
  673. overcome this problem, a dummy socket is added to FD_SET and it is
  674. given to select().
  675. * src/SelectEventPoll.cc
  676. * src/SelectEventPoll.h
  677. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  678. Disabled --use-head option by default because --use-head=true
  679. causes problems on some web sites.
  680. * src/OptionHandlerFactory.cc
  681. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  682. Print URL List in -S option for torrent.
  683. * src/bittorrent_helper.cc
  684. * src/bittorrent_helper.h
  685. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  686. Allocate buffer in ctor of DownloadCommand.
  687. * src/DownloadCommand.cc
  688. * src/DownloadCommand.h
  689. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  690. Removed DiskAdaptor::onDownloadComplete()
  691. * src/DirectDiskAdaptor.cc
  692. * src/DirectDiskAdaptor.h
  693. * src/DiskAdaptor.h
  694. * src/MultiDiskAdaptor.cc
  695. * src/MultiDiskAdaptor.h
  696. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  697. Committed missing BtStopDownloadCommand.{cc,h}
  698. * src/BtStopDownloadCommand.cc
  699. * src/BtStopDownloadCommand.h
  700. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  701. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  702. download if the download speed is 0 and the number of seeder is 0
  703. in consecutive SEC seconds. By default, this function is disabled.
  704. * src/BtSetup.cc
  705. * src/Makefile.am
  706. * src/OptionHandlerFactory.cc
  707. * src/prefs.cc
  708. * src/prefs.h
  709. * src/usage_text.h
  710. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  711. Removed the call to DiskAdaptor::onDownloadComplete() from
  712. BtCheckIntegrityEntry and DefaultPieceStorage.
  713. * src/BtCheckIntegrityEntry.cc
  714. * src/DefaultPieceStorage.cc
  715. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  716. Commented out throw statements when number of piece is 0 to
  717. download 0 length torrent.
  718. * src/bittorrent_helper.cc
  719. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  720. Call RequestGroup::createNextCommandWithAdj() from
  721. BtFileAllocationEntry if at least one FileEntry has URI. The
  722. static function hasAssociatedUri in RequestGroup.cc is renamed as
  723. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  724. * src/BtFileAllocationEntry.cc
  725. * src/FileEntry.h
  726. * src/RequestGroup.cc
  727. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  728. Generate peer ID after SimpleRandomizer is initialized.
  729. * src/main.cc
  730. * src/option_processing.cc
  731. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  732. Removed unused method argument.
  733. * src/CreateRequestCommand.cc
  734. * src/RequestGroup.cc
  735. * src/RequestGroup.h
  736. * src/RequestGroupMan.cc
  737. * src/TrackerWatcherCommand.cc
  738. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  739. Made URI reusing function work.
  740. * src/CreateRequestCommand.cc
  741. * src/FileEntry.cc
  742. * src/FileEntry.h
  743. * test/FileEntryTest.cc
  744. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  745. Add formerly fastest PeerStat's sessionDownloadLength to new
  746. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  747. bytes in a session.
  748. * src/PeerStat.cc
  749. * src/SegmentMan.cc
  750. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  751. If pipelining is enabled, we can always pool socket.
  752. * src/HttpDownloadCommand.cc
  753. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  754. In a single file download, file size becomes known just after
  755. downloading, set total length to FileEntry object when download
  756. completed.
  757. * src/DownloadCommand.cc
  758. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  759. Use std::vector::reserve() for fileEntries and pieceHashes in
  760. bittorrent_helper
  761. * src/bittorrent_helper.cc
  762. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  763. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  764. Removed hidden option PREF_RESET_URI.
  765. * src/AbstractCommand.cc
  766. * src/OptionHandlerFactory.cc
  767. * src/prefs.cc
  768. * src/prefs.h
  769. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  770. Removed unused variable/function.
  771. * src/PeerStat.h
  772. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  773. Show first URL in Download Results if file path is not available.
  774. * src/FileEntry.h
  775. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  776. Throw exception if file path doesn't exist in FTP URL.
  777. * src/InitiateConnectionCommandFactory.cc
  778. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  779. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  780. * src/BitfieldMan.cc
  781. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  782. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  783. of PeerStat in SegmentMan. peerStats is used for calculating
  784. download speed. Therefore all active PeerStats should be in
  785. there. Another one is _fastestPeerStats and it only contains
  786. fastest PeerStat for each hostname/protocol pair. They are used
  787. for updating ServerStat.
  788. * src/DownloadCommand.cc
  789. * src/Request.h
  790. * src/RequestGroupMan.cc
  791. * src/SegmentMan.cc
  792. * src/SegmentMan.h
  793. * test/SegmentManTest.cc
  794. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  795. Try all available addresses returned by DNS until it gets
  796. connected in HTTP(S)/FTP download
  797. * src/AbstractCommand.cc
  798. * src/AbstractCommand.h
  799. * src/AbstractProxyRequestCommand.cc
  800. * src/AbstractProxyRequestCommand.h
  801. * src/DNSCache.h
  802. * src/DownloadEngine.cc
  803. * src/DownloadEngine.h
  804. * src/FtpInitiateConnectionCommand.cc
  805. * src/FtpInitiateConnectionCommand.h
  806. * src/FtpNegotiationCommand.cc
  807. * src/FtpNegotiationCommand.h
  808. * src/HttpInitiateConnectionCommand.cc
  809. * src/HttpInitiateConnectionCommand.h
  810. * src/HttpRequestCommand.cc
  811. * src/HttpRequestCommand.h
  812. * src/InitiateConnectionCommand.cc
  813. * src/InitiateConnectionCommand.h
  814. * test/DNSCacheTest.cc
  815. * test/Makefile.am
  816. * test/SimpleDNSCacheTest.cc
  817. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  818. Updated doc
  819. * src/download_helper.cc
  820. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  821. Refactored fieldMan ctor.
  822. * src/BitfieldMan.cc
  823. * src/BitfieldMan.h
  824. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  825. Don't print "No files to download." message if -S is given.
  826. * src/main.cc
  827. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  828. Set referer and method to newly created Request object.
  829. * src/CreateRequestCommand.cc
  830. * src/FileEntry.cc
  831. * src/FileEntry.h
  832. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  833. Removed ctor of AbstractCommand which doesn't take FileEntry.
  834. * src/AbstractCommand.cc
  835. * src/AbstractCommand.h
  836. * src/CreateRequestCommand.cc
  837. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  838. Get proxy download working
  839. * src/AbstractProxyRequestCommand.cc
  840. * src/AbstractProxyRequestCommand.h
  841. * src/AbstractProxyResponseCommand.cc
  842. * src/AbstractProxyResponseCommand.h
  843. * src/FtpInitiateConnectionCommand.cc
  844. * src/FtpTunnelRequestCommand.cc
  845. * src/FtpTunnelRequestCommand.h
  846. * src/FtpTunnelResponseCommand.cc
  847. * src/FtpTunnelResponseCommand.h
  848. * src/HttpInitiateConnectionCommand.cc
  849. * src/HttpProxyRequestCommand.cc
  850. * src/HttpProxyRequestCommand.h
  851. * src/HttpProxyResponseCommand.cc
  852. * src/HttpProxyResponseCommand.h
  853. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  854. Use SegmentMan::getSegment(cuid) for single file download.
  855. * src/AbstractCommand.cc
  856. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  857. Fixed bufSize calculation
  858. * src/DownloadCommand.cc
  859. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  860. Don't append "/" if base URI ends with "/".
  861. * src/bittorrent_helper.cc
  862. * test/url-list-multiFile.torrent
  863. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  864. HTTP pipelining is now working. Fixed Segmention fault in
  865. BitfieldMan's copy ctor.
  866. * src/AbstractCommand.cc
  867. * src/BitfieldMan.cc
  868. * src/BitfieldMan.h
  869. * src/DownloadCommand.cc
  870. * src/HttpDownloadCommand.cc
  871. * src/HttpRequest.cc
  872. * src/SegmentMan.cc
  873. * src/SegmentMan.h
  874. * test/BitfieldManTest.cc
  875. * test/SegmentManTest.cc
  876. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  877. Removed ServerHost. Same functionality is implemented using
  878. FileEntry's in-flight Request objects.
  879. * src/AbstractCommand.cc
  880. * src/BtDependency.cc
  881. * src/CreateRequestCommand.cc
  882. * src/FileEntry.cc
  883. * src/FileEntry.h
  884. * src/FtpNegotiationCommand.cc
  885. * src/HttpResponseCommand.cc
  886. * src/Makefile.am
  887. * src/Metalink2RequestGroup.cc
  888. * src/RequestGroup.cc
  889. * src/RequestGroup.h
  890. * src/ServerHost.cc: Removed
  891. * src/ServerHost.h: Removed
  892. * test/BtDependencyTest.cc
  893. * test/FileEntryTest.cc
  894. * test/RequestGroupTest.cc
  895. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  896. Rewritten PeerStat handling. In the previous implementation,
  897. faster command tries to find slower command. In this new
  898. implementation, slower command tries to find faster command.
  899. PeerStat is now created in each HTTP/FTP request to get download
  900. rate correctly. If the download range is small, the download rate
  901. tends to small and this will occur at the later stage of download.
  902. * src/AbstractCommand.cc
  903. * src/DownloadCommand.cc
  904. * src/FileEntry.cc
  905. * src/FileEntry.h
  906. * src/Request.cc
  907. * src/Request.h
  908. * src/RequestGroup.h
  909. * src/RequestGroupMan.cc
  910. * src/SegmentMan.cc
  911. * src/SegmentMan.h
  912. * test/SegmentManTest.cc
  913. 2009-06-29 Tatsuhiro Tsujikawa <[email protected]>
  914. Removed _uris from RequestGroup. All functions that refer to _uris
  915. were moved to FileEntry. Exit status code are now defined in
  916. DownloadResultCode.h.
  917. * src/AbstractCommand.cc
  918. * src/AdaptiveURISelector.cc
  919. * src/AdaptiveURISelector.h
  920. * src/AutoSaveCommand.cc
  921. * src/BtPostDownloadHandler.cc
  922. * src/CheckIntegrityDispatcherCommand.cc
  923. * src/CookieStorage.cc
  924. * src/DHTAutoSaveCommand.cc
  925. * src/DHTBucketRefreshCommand.cc
  926. * src/DHTEntryPointNameResolveCommand.cc
  927. * src/DHTInteractionCommand.cc
  928. * src/DHTPeerAnnounceCommand.cc
  929. * src/DHTTokenUpdateCommand.cc
  930. * src/DlAbortEx.h
  931. * src/DlRetryEx.h
  932. * src/DownloadCommand.cc
  933. * src/DownloadContext.h
  934. * src/DownloadFailureException.h
  935. * src/DownloadResult.h
  936. * src/DownloadResultCode.h
  937. * src/FeedbackURISelector.cc
  938. * src/FeedbackURISelector.h
  939. * src/FileEntry.cc
  940. * src/FileEntry.h
  941. * src/FtpNegotiationCommand.cc
  942. * src/HttpListenCommand.cc
  943. * src/HttpResponseCommand.cc
  944. * src/HttpServerResponseCommand.cc
  945. * src/HttpSkipResponseCommand.cc
  946. * src/InOrderURISelector.cc
  947. * src/InOrderURISelector.h
  948. * src/Makefile.am
  949. * src/Makefile.in
  950. * src/Metalink2RequestGroup.cc
  951. * src/MultiUrlRequestInfo.cc
  952. * src/MultiUrlRequestInfo.h
  953. * src/OptionHandlerFactory.cc
  954. * src/PeerListenCommand.cc
  955. * src/RecoverableException.h
  956. * src/RequestGroup.cc
  957. * src/RequestGroup.h
  958. * src/RequestGroupMan.cc
  959. * src/RequestGroupMan.h
  960. * src/TimedHaltCommand.cc
  961. * src/TrackerWatcherCommand.cc
  962. * src/URIResult.cc
  963. * src/URIResult.h
  964. * src/URISelector.h
  965. * src/XmlRpcMethodImpl.cc
  966. * src/bittorrent_helper.cc
  967. * src/bittorrent_helper.h
  968. * src/download_helper.cc
  969. * src/main.cc
  970. * src/option_processing.cc
  971. * test/BtDependencyTest.cc
  972. * test/BtPostDownloadHandlerTest.cc
  973. * test/CookieStorageTest.cc
  974. * test/DefaultBtMessageDispatcherTest.cc
  975. * test/DownloadHandlerFactoryTest.cc
  976. * test/DownloadHelperTest.cc
  977. * test/FeedbackURISelectorTest.cc
  978. * test/FileEntryTest.cc
  979. * test/InOrderURISelectorTest.cc
  980. * test/Metalink2RequestGroupTest.cc
  981. * test/MetalinkPostDownloadHandlerTest.cc
  982. * test/RequestGroupManTest.cc
  983. * test/RequestGroupTest.cc
  984. * test/XmlRpcMethodTest.cc
  985. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  986. Removed MockBtContext.h
  987. * test/Makefile.am
  988. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  989. Removed _currentRequest from StreamCheckIntegrityEntry and
  990. StreamFileAllocationEntry.
  991. * src/AbstractCommand.cc
  992. * src/HttpResponseCommand.cc
  993. * src/RequestGroup.cc
  994. * src/StreamCheckIntegrityEntry.cc
  995. * src/StreamCheckIntegrityEntry.h
  996. * src/StreamFileAllocationEntry.cc
  997. * src/StreamFileAllocationEntry.h
  998. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  999. Rewritten DownloadContext and removed SingleFileDownloadContext
  1000. and BtContext and its derived classes. BitTorrent specific
  1001. attributes are now set by DownloadContext::setAttribute() with key
  1002. bittorrent::BITTORRENT.
  1003. * src/AbstractBtMessage.cc
  1004. * src/AbstractBtMessage.h
  1005. * src/AbstractCommand.cc
  1006. * src/AbstractCommand.h
  1007. * src/AbstractProxyRequestCommand.cc
  1008. * src/AbstractProxyResponseCommand.cc
  1009. * src/ActivePeerConnectionCommand.cc
  1010. * src/ActivePeerConnectionCommand.h
  1011. * src/AnnounceList.cc
  1012. * src/BtCheckIntegrityEntry.cc
  1013. * src/BtConstants.h
  1014. * src/BtContext.h: Removed
  1015. * src/BtDependency.cc
  1016. * src/BtExtendedMessage.cc
  1017. * src/BtPieceMessage.cc
  1018. * src/BtPieceMessage.h
  1019. * src/BtPostDownloadHandler.cc
  1020. * src/BtRegistry.cc
  1021. * src/BtRegistry.h
  1022. * src/BtSetup.cc
  1023. * src/CheckIntegrityCommand.cc
  1024. * src/CheckIntegrityEntry.cc
  1025. * src/ChecksumCheckIntegrityEntry.cc
  1026. * src/ConsoleStatCalc.cc
  1027. * src/ContentTypeRequestGroupCriteria.cc
  1028. * src/DHTGetPeersCommand.cc
  1029. * src/DHTGetPeersCommand.h
  1030. * src/DHTPeerLookupTask.cc
  1031. * src/DHTPeerLookupTask.h
  1032. * src/DHTTaskFactory.h
  1033. * src/DHTTaskFactoryImpl.cc
  1034. * src/DHTTaskFactoryImpl.h
  1035. * src/DefaultBtAnnounce.cc
  1036. * src/DefaultBtAnnounce.h
  1037. * src/DefaultBtContext.cc: Removed
  1038. * src/DefaultBtContext.h: Removed
  1039. * src/DefaultBtInteractive.cc
  1040. * src/DefaultBtInteractive.h
  1041. * src/DefaultBtMessageDispatcher.cc
  1042. * src/DefaultBtMessageDispatcher.h
  1043. * src/DefaultBtMessageFactory.cc
  1044. * src/DefaultBtMessageFactory.h
  1045. * src/DefaultBtMessageReceiver.cc
  1046. * src/DefaultBtMessageReceiver.h
  1047. * src/DefaultBtProgressInfoFile.cc
  1048. * src/DefaultBtRequestFactory.cc
  1049. * src/DefaultBtRequestFactory.h
  1050. * src/DefaultExtensionMessageFactory.cc
  1051. * src/DefaultExtensionMessageFactory.h
  1052. * src/DefaultPeerStorage.cc
  1053. * src/DefaultPeerStorage.h
  1054. * src/DefaultPieceStorage.cc
  1055. * src/DefaultSegmentManFactory.cc
  1056. * src/DiskAdaptor.cc
  1057. * src/DiskAdaptor.h
  1058. * src/DownloadContext.cc
  1059. * src/DownloadContext.h
  1060. * src/DownloadEngine.cc
  1061. * src/DownloadEngineFactory.cc
  1062. * src/DownloadHandler.cc
  1063. * src/DownloadResult.h
  1064. * src/FileAllocationCommand.cc
  1065. * src/FileAllocationDispatcherCommand.cc
  1066. * src/FileAllocationEntry.cc
  1067. * src/FileEntry.h
  1068. * src/FillRequestGroupCommand.cc
  1069. * src/FtpDownloadCommand.cc
  1070. * src/FtpFinishDownloadCommand.cc
  1071. * src/FtpInitiateConnectionCommand.cc
  1072. * src/FtpNegotiationCommand.cc
  1073. * src/FtpTunnelRequestCommand.cc
  1074. * src/FtpTunnelResponseCommand.cc
  1075. * src/HandshakeExtensionMessage.cc
  1076. * src/HandshakeExtensionMessage.h
  1077. * src/HaveEraseCommand.cc
  1078. * src/HttpDownloadCommand.cc
  1079. * src/HttpInitiateConnectionCommand.cc
  1080. * src/HttpProxyRequestCommand.cc
  1081. * src/HttpProxyResponseCommand.cc
  1082. * src/HttpRequest.cc
  1083. * src/HttpRequest.h
  1084. * src/HttpRequestCommand.cc
  1085. * src/HttpResponseCommand.cc
  1086. * src/HttpServerBodyCommand.cc
  1087. * src/HttpServerCommand.cc
  1088. * src/HttpSkipResponseCommand.cc
  1089. * src/InitiateConnectionCommandFactory.cc
  1090. * src/InitiatorMSEHandshakeCommand.cc
  1091. * src/InitiatorMSEHandshakeCommand.h
  1092. * src/IteratableChecksumValidator.cc
  1093. * src/IteratableChecksumValidator.h
  1094. * src/IteratableChunkChecksumValidator.cc
  1095. * src/MSEHandshake.cc
  1096. * src/MSEHandshake.h
  1097. * src/Makefile.am
  1098. * src/Makefile.in
  1099. * src/Metalink2RequestGroup.cc
  1100. * src/MetalinkPostDownloadHandler.cc
  1101. * src/MultiDiskAdaptor.cc
  1102. * src/MultiDiskAdaptor.h
  1103. * src/MultiFileAllocationIterator.cc
  1104. * src/MultiUrlRequestInfo.cc
  1105. * src/PeerChokeCommand.cc
  1106. * src/PeerChokeCommand.h
  1107. * src/PeerInitiateConnectionCommand.cc
  1108. * src/PeerInitiateConnectionCommand.h
  1109. * src/PeerInteractionCommand.cc
  1110. * src/PeerInteractionCommand.h
  1111. * src/PeerReceiveHandshakeCommand.cc
  1112. * src/PieceHashCheckIntegrityEntry.cc
  1113. * src/RealtimeCommand.cc
  1114. * src/ReceiverMSEHandshakeCommand.cc
  1115. * src/RequestGroup.cc
  1116. * src/RequestGroup.h
  1117. * src/RequestGroupEntry.cc
  1118. * src/RequestGroupMan.cc
  1119. * src/SeedCheckCommand.cc
  1120. * src/SeedCheckCommand.h
  1121. * src/SegmentMan.cc
  1122. * src/ShareRatioSeedCriteria.h
  1123. * src/SingleFileDownloadContext.cc: Removed
  1124. * src/SingleFileDownloadContext.h: Removed
  1125. * src/SleepCommand.cc
  1126. * src/StreamCheckIntegrityEntry.cc
  1127. * src/TrackerWatcherCommand.cc
  1128. * src/TrackerWatcherCommand.h
  1129. * src/UnknownLengthPieceStorage.cc
  1130. * src/Util.cc
  1131. * src/Util.h
  1132. * src/XmlRpcMethodImpl.cc
  1133. * src/bittorrent_helper.cc
  1134. * src/bittorrent_helper.h
  1135. * src/download_helper.cc
  1136. * src/main.cc
  1137. * src/option_processing.cc
  1138. * test/BitfieldManTest.cc
  1139. * test/BittorrentHelperTest.cc
  1140. * test/BtCancelMessageTest.cc
  1141. * test/BtChokeMessageTest.cc
  1142. * test/BtDependencyTest.cc
  1143. * test/BtPieceMessageTest.cc
  1144. * test/BtPostDownloadHandlerTest.cc
  1145. * test/BtRegistryTest.cc
  1146. * test/BtRejectMessageTest.cc
  1147. * test/BtRequestMessageTest.cc
  1148. * test/DHTPeerAnnounceStorageTest.cc
  1149. * test/DefaultBtAnnounceTest.cc
  1150. * test/DefaultBtContextTest.cc: Removed
  1151. * test/DefaultBtMessageDispatcherTest.cc
  1152. * test/DefaultBtMessageFactoryTest.cc
  1153. * test/DefaultBtProgressInfoFileTest.cc
  1154. * test/DefaultBtRequestFactoryTest.cc
  1155. * test/DefaultExtensionMessageFactoryTest.cc
  1156. * test/DefaultPeerStorageTest.cc
  1157. * test/DefaultPieceStorageTest.cc
  1158. * test/DirectDiskAdaptorTest.cc
  1159. * test/DownloadContextTest.cc
  1160. * test/DownloadHandlerFactoryTest.cc
  1161. * test/DownloadHelperTest.cc
  1162. * test/HandshakeExtensionMessageTest.cc
  1163. * test/HttpRequestTest.cc
  1164. * test/HttpResponseTest.cc
  1165. * test/IteratableChecksumValidatorTest.cc
  1166. * test/IteratableChunkChecksumValidatorTest.cc
  1167. * test/MSEHandshakeTest.cc
  1168. * test/Makefile.am
  1169. * test/Makefile.in
  1170. * test/Metalink2RequestGroupTest.cc
  1171. * test/MetalinkPostDownloadHandlerTest.cc
  1172. * test/MockBtContext.h: Removed
  1173. * test/MockDHTTaskFactory.h
  1174. * test/MockDownloadContext.h: Removed
  1175. * test/MockPieceStorage.h
  1176. * test/MultiDiskAdaptorTest.cc
  1177. * test/MultiFileAllocationIteratorTest.cc
  1178. * test/RequestGroupManTest.cc
  1179. * test/RequestGroupTest.cc
  1180. * test/SegmentManTest.cc
  1181. * test/ShareRatioSeedCriteriaTest.cc
  1182. * test/SingleFileDownloadContextTest.cc: Removed
  1183. * test/UtilTest.cc
  1184. * test/XmlRpcMethodTest.cc
  1185. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  1186. Added experimental support of WEB-Seeding for multi-file torrent.
  1187. Due to fundamental changes in file handling in HTTP/FTP code, many
  1188. functions are not working: PeerStat, ServerHost, proxy..etc
  1189. * src/AbstractCommand.cc
  1190. * src/AbstractCommand.h
  1191. * src/BitfieldMan.cc
  1192. * src/BitfieldMan.h
  1193. * src/CreateRequestCommand.cc
  1194. * src/CreateRequestCommand.h
  1195. * src/DefaultPieceStorage.cc
  1196. * src/DefaultPieceStorage.h
  1197. * src/DownloadCommand.cc
  1198. * src/DownloadCommand.h
  1199. * src/DownloadContext.cc
  1200. * src/DownloadContext.h
  1201. * src/FileEntry.cc
  1202. * src/FileEntry.h
  1203. * src/FtpDownloadCommand.cc
  1204. * src/FtpDownloadCommand.h
  1205. * src/FtpFinishDownloadCommand.cc
  1206. * src/FtpFinishDownloadCommand.h
  1207. * src/FtpInitiateConnectionCommand.cc
  1208. * src/FtpInitiateConnectionCommand.h
  1209. * src/FtpNegotiationCommand.cc
  1210. * src/FtpNegotiationCommand.h
  1211. * src/FtpTunnelResponseCommand.cc
  1212. * src/HttpDownloadCommand.cc
  1213. * src/HttpDownloadCommand.h
  1214. * src/HttpInitiateConnectionCommand.cc
  1215. * src/HttpInitiateConnectionCommand.h
  1216. * src/HttpProxyResponseCommand.cc
  1217. * src/HttpRequest.cc
  1218. * src/HttpRequest.h
  1219. * src/HttpRequestCommand.cc
  1220. * src/HttpRequestCommand.h
  1221. * src/HttpResponseCommand.cc
  1222. * src/HttpResponseCommand.h
  1223. * src/HttpSkipResponseCommand.cc
  1224. * src/HttpSkipResponseCommand.h
  1225. * src/InitiateConnectionCommand.cc
  1226. * src/InitiateConnectionCommand.h
  1227. * src/InitiateConnectionCommandFactory.cc
  1228. * src/InitiateConnectionCommandFactory.h
  1229. * src/Makefile.am
  1230. * src/PieceStorage.h
  1231. * src/RequestGroup.cc
  1232. * src/RequestGroup.h
  1233. * src/RequestGroupMan.cc
  1234. * src/SegmentMan.cc
  1235. * src/SegmentMan.h
  1236. * src/SingleFileDownloadContext.h
  1237. * src/StreamFileAllocationEntry.cc
  1238. * src/TrackerWatcherCommand.cc
  1239. * src/UnknownLengthPieceStorage.cc
  1240. * src/UnknownLengthPieceStorage.h
  1241. * src/array_fun.h
  1242. * src/bitfield.h
  1243. * src/download_helper.cc
  1244. * test/DownloadContextTest.cc
  1245. * test/Makefile.am
  1246. * test/MockDownloadContext.h
  1247. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  1248. Added tellWaiting XML-RPC method.
  1249. * src/SingleFileDownloadContext.cc
  1250. * src/XmlRpcMethodFactory.cc
  1251. * src/XmlRpcMethodImpl.cc
  1252. * src/XmlRpcMethodImpl.h
  1253. * test/XmlRpcMethodTest.cc
  1254. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  1255. Updated CookieStorageTest
  1256. * test/CookieStorageTest.cc
  1257. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1258. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1259. handle excepion inside these functions.
  1260. * src/LibgnutlsTLSContext.cc
  1261. * src/LibgnutlsTLSContext.h
  1262. * src/LibsslTLSContext.cc
  1263. * src/LibsslTLSContext.h
  1264. * src/MultiUrlRequestInfo.cc
  1265. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1266. Added comment
  1267. * src/RequestGroup.cc
  1268. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1269. In CookieStorage::load() and saveNsFormat(), handle exception
  1270. inside the functions. When saving Cookies, first write temporary
  1271. file and after successful writes, then renames it to final
  1272. destination.
  1273. * src/CookieStorage.cc
  1274. * src/CookieStorage.h
  1275. * src/MultiUrlRequestInfo.cc
  1276. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1277. The default value of --dir option is the absolute path to the
  1278. current directory. If getcwd() is failed, then it is ".", which is
  1279. the same value with old implementation. This change is necessary
  1280. because after daemon() call, the current working directory is
  1281. changed to /.
  1282. * src/File.cc
  1283. * src/File.h
  1284. * src/OptionHandlerFactory.cc
  1285. * src/option_processing.cc
  1286. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1287. Call daemon() with arguments(0,0), which means daemon() changes
  1288. current working directory to / and redirects stdin, stdout and
  1289. stderr to /dev/null.
  1290. * src/option_processing.cc
  1291. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  1292. Small performance optimizations.
  1293. * src/RequestGroupMan.cc
  1294. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  1295. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1296. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1297. * src/RequestGroupMan.cc
  1298. * src/RequestGroupMan.h
  1299. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  1300. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1301. setNoWiat(true) if newly created command calls
  1302. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1303. * src/HttpListenCommand.cc
  1304. * src/HttpServerBodyCommand.cc
  1305. * src/HttpServerCommand.cc
  1306. * src/HttpServerResponseCommand.cc
  1307. * src/InitiateConnectionCommand.cc
  1308. * src/RequestGroup.cc
  1309. * src/StreamFileAllocationEntry.cc
  1310. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  1311. Removed include vector
  1312. * src/BtRegistry.h
  1313. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  1314. Rewritten BtRegistry
  1315. * src/BtRegistry.cc
  1316. * src/BtRegistry.h
  1317. * src/BtSetup.cc
  1318. * src/ConsoleStatCalc.cc
  1319. * src/PeerInteractionCommand.cc
  1320. * src/PeerReceiveHandshakeCommand.cc
  1321. * src/ReceiverMSEHandshakeCommand.cc
  1322. * src/RequestGroup.cc
  1323. * src/XmlRpcMethodImpl.cc
  1324. * test/BtRegistryTest.cc
  1325. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1326. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1327. * src/DefaultBtProgressInfoFile.cc
  1328. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1329. Throw an exception if position is less than 0.
  1330. * src/XmlRpcMethodImpl.cc
  1331. * test/XmlRpcMethodTest.cc
  1332. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1333. Use writeFilePath() in ConsoleStatCalc.cc
  1334. * src/ConsoleStatCalc.cc
  1335. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1336. Receive the return value as const reference from
  1337. DownloadContext::getFileEntries().
  1338. * src/DefaultPieceStorage.cc
  1339. * src/RequestGroupMan.cc
  1340. * src/XmlRpcMethodImpl.cc
  1341. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1342. DownloadContext now has _fileEntries so that
  1343. DownloadContext::getFileEntries() can returns its const reference.
  1344. * src/DefaultBtContext.cc
  1345. * src/DefaultBtContext.h
  1346. * src/DownloadContext.cc
  1347. * src/DownloadContext.h
  1348. * src/SingleFileDownloadContext.cc
  1349. * src/SingleFileDownloadContext.h
  1350. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1351. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1352. writeFilePath() function template from RequestGroupMan.cc to
  1353. FileEntry.h
  1354. * src/FileEntry.h
  1355. * src/RequestGroupMan.cc
  1356. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  1357. Documented 'position' parameter is starting from 0 in man page.
  1358. * doc/aria2c.1.txt
  1359. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  1360. Updated doc.
  1361. * src/MSEHandshake.cc
  1362. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  1363. Removed _acceptFeatures and its accessor functions from
  1364. RequestGroup since they are not used practically.
  1365. * src/HttpRequestCommand.cc
  1366. * src/RequestGroup.cc
  1367. * src/RequestGroup.h
  1368. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  1369. Removed member _maxTries from RequestGroup class to avoid
  1370. duplicate option value. Those classes who refer this variable
  1371. should use option value of PREF_MAX_TRIES directly.
  1372. * src/AbstractCommand.cc
  1373. * src/RequestGroup.cc
  1374. * src/RequestGroup.h
  1375. * src/TrackerWatcherCommand.cc
  1376. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1377. * Release 1.4.1
  1378. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1379. Fixed compiler warnings on netbsd
  1380. * src/DHTConnectionImpl.cc
  1381. * src/PeerListenCommand.cc
  1382. * src/PeerSessionResource.cc
  1383. * src/SegmentMan.cc
  1384. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1385. Updated Ukrainian translation. Thanks to all translators.
  1386. * po/uk.po
  1387. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1388. Bump up version number to 1.4.1.
  1389. * configure.ac
  1390. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1391. Added unit tests for strjoin, strconcat and strappend.
  1392. * test/a2functionalTest.cc
  1393. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1394. Rewritten strconcat and strappend using operator+ instead of
  1395. append().
  1396. * src/a2functional.h
  1397. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1398. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1399. is enabled.
  1400. * src/Makefile.am
  1401. * test/Makefile.am
  1402. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  1403. Added countSeeder() function which counts seeder in the given
  1404. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1405. * src/ConsoleStatCalc.cc
  1406. * src/Peer.h
  1407. * src/XmlRpcMethodImpl.cc
  1408. * test/PeerTest.cc
  1409. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1410. Documented missing seeder in getPeers xml-rpc method.
  1411. Documented uploadLength and numSeeders.
  1412. * doc/aria2c.1.txt
  1413. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1414. Added uploadLength and numSeeders to the response of tellStatus
  1415. xml-rpc method. Assert that PeerStorage instance is not null
  1416. instead of checking if statement. It should be non-null in this
  1417. context.
  1418. * src/XmlRpcMethodImpl.cc
  1419. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1420. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1421. * src/XmlRpcResponse.cc
  1422. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1423. Avoid intermediate object during string concatenation.
  1424. * src/HttpRequest.cc
  1425. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1426. Added strjoin function template. Use it in pathJoin()
  1427. * src/Util.h
  1428. * src/a2functional.h
  1429. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  1430. Avoid intermediate object during string concatenation. Replaced
  1431. post-increment unary operator with pre-increment one in for loop.
  1432. * src/AdaptiveURISelector.cc
  1433. * src/AnnounceList.cc
  1434. * src/AuthConfig.h
  1435. * src/BtBitfieldMessage.cc
  1436. * src/BtExtendedMessage.cc
  1437. * src/BtHandshakeMessage.cc
  1438. * src/BtPieceMessage.cc
  1439. * src/BtPortMessage.cc
  1440. * src/Cookie.cc
  1441. * src/DHTAnnouncePeerMessage.cc
  1442. * src/DHTAutoSaveCommand.cc
  1443. * src/DHTGetPeersReplyMessage.cc
  1444. * src/DHTNode.cc
  1445. * src/DHTQueryMessage.cc
  1446. * src/DHTResponseMessage.cc
  1447. * src/DHTUnknownMessage.cc
  1448. * src/DefaultBtAnnounce.cc
  1449. * src/DefaultBtContext.cc
  1450. * src/DefaultBtInteractive.cc
  1451. * src/DefaultBtProgressInfoFile.cc
  1452. * src/DefaultPeerStorage.cc
  1453. * src/DownloadEngine.cc
  1454. * src/FeatureConfig.cc
  1455. * src/File.cc
  1456. * src/FtpConnection.cc
  1457. * src/FtpNegotiationCommand.cc
  1458. * src/HandshakeExtensionMessage.cc
  1459. * src/HttpConnection.cc
  1460. * src/HttpRequest.cc
  1461. * src/HttpResponseCommand.cc
  1462. * src/HttpServer.cc
  1463. * src/IndexBtMessage.cc
  1464. * src/Metalink2RequestGroup.cc
  1465. * src/OptionHandlerImpl.h
  1466. * src/PStringBuildVisitor.cc
  1467. * src/Peer.cc
  1468. * src/PeerListenCommand.cc
  1469. * src/Piece.cc
  1470. * src/RangeBtMessage.cc
  1471. * src/Request.cc
  1472. * src/Request.h
  1473. * src/RequestGroup.cc
  1474. * src/RequestGroupMan.cc
  1475. * src/ServerStat.cc
  1476. * src/ServerStatMan.cc
  1477. * src/UTPexExtensionMessage.cc
  1478. * src/Util.cc
  1479. * src/a2functional.h
  1480. * src/download_helper.cc
  1481. * src/messageDigest.cc
  1482. 2009-06-04 Tatsuhiro Tsujikawa <[email protected]>
  1483. Unchoke a peer randomly at first and second choke round in seed
  1484. state.
  1485. * src/BtSeederStateChoke.cc
  1486. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1487. Added (sock_t) to quiet compiler warnings in MinGW
  1488. * src/SocketCore.cc
  1489. * src/SocketCore.h
  1490. 2009-06-02 Tatsuhiro Tsujikawa <[email protected]>
  1491. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1492. * src/EpollEventPoll.h
  1493. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1494. Added fork() emulation using CreateProcess() in MinGW
  1495. * src/RequestGroupMan.cc
  1496. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  1497. * Release 1.4.0
  1498. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  1499. Added utf8.torrent to EXTRA_DIST
  1500. * test/Makefile.am
  1501. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  1502. Fixed docs of aria2.addMetalink xml-rpc method.
  1503. * doc/aria2c.1.txt
  1504. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  1505. Added Slovak translation. Updated Ukrainian and Brazilian
  1506. Portuguese translation. Thanks to all translators.
  1507. * po/sk.po
  1508. * po/uk.po
  1509. * po/pt_BR.po
  1510. * po/LINGUAS
  1511. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  1512. Added test case for XmlRpcProcessor to fail to parse malformed
  1513. document.
  1514. * test/XmlRpcRequestProcessorTest.cc
  1515. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1516. Removed *.gmo files in po because they are generated on 'make
  1517. dist'
  1518. * po/*.gmo
  1519. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1520. Documented max-concurrent-downloads of changeGlobalOption method
  1521. in man page.
  1522. * doc/aria2c.1.txt
  1523. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1524. Added max-concurrent-downloads option to changeGlobalOption
  1525. xml-rpc method. Rewritten loop conditional in
  1526. RequestGroupMan::fillRequestGroupFromReserver().
  1527. * src/RequestGroupMan.cc
  1528. * src/RequestGroupMan.h
  1529. * src/XmlRpcMethod.cc
  1530. * src/XmlRpcMethodImpl.cc
  1531. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1532. Documented position parameter in man page.
  1533. * doc/aria2c.1.txt
  1534. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1535. Added 'position' parameter to addUri, addTorrent and addMetalink
  1536. xml-rpc method.
  1537. * src/RequestGroupMan.cc
  1538. * src/RequestGroupMan.h
  1539. * src/XmlRpcMethodImpl.cc
  1540. * test/XmlRpcMethodTest.cc
  1541. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  1542. Removed Peer.cc from compile source list when --disable-bittorrent
  1543. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1544. takes Peer.
  1545. * src/DefaultPieceStorage.cc
  1546. * src/DefaultPieceStorage.h
  1547. * src/Makefile.am
  1548. * src/PieceStorage.h
  1549. * src/UnknownLengthPieceStorage.cc
  1550. * src/UnknownLengthPieceStorage.h
  1551. * test/MockPieceStorage.h
  1552. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  1553. Implemented getter methods in header files to give them more
  1554. chance of optimization.
  1555. Return const reference for SharadHandle if possible.
  1556. * src/AbstractAuthResolver.cc
  1557. * src/AbstractAuthResolver.h
  1558. * src/AbstractBtMessage.cc
  1559. * src/AbstractBtMessage.h
  1560. * src/AbstractSingleDiskAdaptor.cc
  1561. * src/AbstractSingleDiskAdaptor.h
  1562. * src/AsyncNameResolver.cc
  1563. * src/AsyncNameResolver.h
  1564. * src/BNode.cc
  1565. * src/BNode.h
  1566. * src/BitfieldMan.cc
  1567. * src/BitfieldMan.h
  1568. * src/BtAbortOutstandingRequestEvent.h
  1569. * src/BtExtendedMessage.cc
  1570. * src/BtExtendedMessage.h
  1571. * src/BtSeederStateChoke.cc
  1572. * src/BtSeederStateChoke.h
  1573. * src/Cookie.cc
  1574. * src/Cookie.h
  1575. * src/DHTBucket.cc
  1576. * src/DHTBucket.h
  1577. * src/DHTConnectionImpl.cc
  1578. * src/DHTConnectionImpl.h
  1579. * src/DHTFindNodeReplyMessage.cc
  1580. * src/DHTFindNodeReplyMessage.h
  1581. * src/DHTGetPeersReplyMessage.cc
  1582. * src/DHTGetPeersReplyMessage.h
  1583. * src/DHTInteractionCommand.cc
  1584. * src/DHTMessage.cc
  1585. * src/DHTMessage.h
  1586. * src/DHTMessageDispatcherImpl.cc
  1587. * src/DHTMessageEntry.cc
  1588. * src/DHTMessageReceiver.cc
  1589. * src/DHTMessageReceiver.h
  1590. * src/DHTMessageTrackerEntry.cc
  1591. * src/DHTMessageTrackerEntry.h
  1592. * src/DHTPeerAnnounceEntry.cc
  1593. * src/DHTPeerAnnounceEntry.h
  1594. * src/DHTPeerLookupTask.cc
  1595. * src/DHTPeerLookupTask.h
  1596. * src/DHTRoutingTableDeserializer.cc
  1597. * src/DHTRoutingTableDeserializer.h
  1598. * src/DefaultBtAnnounce.cc
  1599. * src/DefaultBtAnnounce.h
  1600. * src/DefaultBtMessageDispatcher.cc
  1601. * src/DefaultBtMessageDispatcher.h
  1602. * src/DefaultBtRequestFactory.cc
  1603. * src/DefaultBtRequestFactory.h
  1604. * src/DiskAdaptor.cc
  1605. * src/DiskAdaptor.h
  1606. * src/DownloadContext.cc
  1607. * src/DownloadContext.h
  1608. * src/DownloadEngine.cc
  1609. * src/DownloadEngine.h
  1610. * src/EpollEventPoll.cc
  1611. * src/EpollEventPoll.h
  1612. * src/FtpConnection.cc
  1613. * src/FtpConnection.h
  1614. * src/HttpConnection.cc
  1615. * src/HttpConnection.h
  1616. * src/HttpHeader.cc
  1617. * src/HttpHeader.h
  1618. * src/HttpRequest.cc
  1619. * src/HttpRequest.h
  1620. * src/HttpResponse.cc
  1621. * src/HttpResponse.h
  1622. * src/LibsslTLSContext.cc
  1623. * src/LibsslTLSContext.h
  1624. * src/MSEHandshake.cc
  1625. * src/MSEHandshake.h
  1626. * src/MetalinkEntry.cc
  1627. * src/MetalinkEntry.h
  1628. * src/MetalinkParserController.cc
  1629. * src/MetalinkParserController.h
  1630. * src/MetalinkParserStateMachine.cc
  1631. * src/MetalinkParserStateMachine.h
  1632. * src/MultiDiskAdaptor.cc
  1633. * src/MultiDiskAdaptor.h
  1634. * src/NetrcAuthResolver.cc
  1635. * src/NetrcAuthResolver.h
  1636. * src/Peer.cc
  1637. * src/Peer.h
  1638. * src/PeerSessionResource.cc
  1639. * src/PeerSessionResource.h
  1640. * src/Piece.cc
  1641. * src/Piece.h
  1642. * src/PieceStatMan.cc
  1643. * src/PieceStatMan.h
  1644. * src/Request.cc
  1645. * src/Request.h
  1646. * src/RequestGroup.cc
  1647. * src/RequestGroup.h
  1648. * src/RequestGroupMan.cc
  1649. * src/RequestGroupMan.h
  1650. * src/RequestSlot.cc
  1651. * src/RequestSlot.h
  1652. * src/SegmentMan.cc
  1653. * src/SegmentMan.h
  1654. * src/SelectEventPoll.cc
  1655. * src/SelectEventPoll.h
  1656. * src/ServerStat.cc
  1657. * src/ServerStat.h
  1658. * src/Signature.cc
  1659. * src/Signature.h
  1660. * src/URIResult.cc
  1661. * src/URIResult.h
  1662. * src/UTPexExtensionMessage.cc
  1663. * src/UTPexExtensionMessage.h
  1664. 2009-05-28 Tatsuhiro Tsujikawa <[email protected]>
  1665. Fixed compile error without BitTorrent and Metalink support.
  1666. * src/XmlRpcMethod.cc
  1667. * src/XmlRpcMethodFactory.cc
  1668. * src/XmlRpcMethodImpl.cc
  1669. * src/XmlRpcMethodImpl.h
  1670. * test/XmlRpcMethodTest.cc
  1671. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1672. Rewritten the help message for --allow-overwrite option.
  1673. * doc/aria2c.1.txt
  1674. * src/usage_text.h
  1675. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1676. Fixed typo
  1677. * doc/aria2c.1.txt
  1678. * src/usage_text.h
  1679. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1680. Updated README for 1.4.0 release. Use new table syntax of
  1681. asciidoc.
  1682. * README
  1683. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1684. Documented --xml-rpc-max-request-size option in man page.
  1685. * doc/aria2c.1.txt
  1686. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1687. Moved C_* constants from BtContext to DefaultBtContext.
  1688. * src/BtContext.cc: Removed.
  1689. * src/BtContext.h
  1690. * src/DefaultBtContext.cc
  1691. * src/DefaultBtContext.h
  1692. * src/Makefile.am
  1693. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1694. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1695. path key respectively when persing .torrent file.
  1696. * src/BtContext.cc
  1697. * src/BtContext.h
  1698. * src/DefaultBtContext.cc
  1699. * test/DefaultBtContextTest.cc
  1700. * test/utf8.torrent
  1701. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  1702. Added --xml-rpc-max-request-size option to limit the size of
  1703. XML-RPC request.
  1704. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  1705. Documented XML-RPC API in man page.
  1706. * doc/aria2c.1.txt
  1707. 2009-05-24 Tatsuhiro Tsujikawa <[email protected]>
  1708. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1709. will break strict-aliasing rules
  1710. * src/PeerConnection.cc
  1711. * test/DHTRoutingTableSerializerTest.cc
  1712. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1713. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1714. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1715. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1716. PKG_CHECK_MODULES macro uses latter name.
  1717. * m4/sqlite3.m4
  1718. * src/Makefile.am
  1719. * test/Makefile.am
  1720. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1721. Fixed typo
  1722. * configure.ac
  1723. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1724. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1725. presence of libgnutls using pkg-config first. If it fails, fall
  1726. back to old macro libgnutls.m4.
  1727. * configure.ac
  1728. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1729. Use s itself instead of !s.bad()
  1730. * src/CookieStorage.cc
  1731. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1732. Documented --on-download-* option and --save-cookies option in man
  1733. page.
  1734. * doc/aria2c.1.txt
  1735. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1736. Set possible values for --load-cookie option to "/path/to/file".
  1737. * src/OptionHandlerFactory.cc
  1738. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1739. Added --save-cookies option.
  1740. * src/Cookie.cc
  1741. * src/Cookie.h
  1742. * src/CookieStorage.cc
  1743. * src/CookieStorage.h
  1744. * src/MultiUrlRequestInfo.cc
  1745. * src/OptionHandlerFactory.cc
  1746. * src/prefs.cc
  1747. * src/prefs.h
  1748. * src/usage_text.h
  1749. * test/CookieStorageTest.cc
  1750. * test/CookieTest.cc
  1751. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1752. Removed tellAll XML-RPC command because its reponse tends to be
  1753. big if stopped/waiting downloads pile up.
  1754. * src/XmlRpcMethodFactory.cc
  1755. * src/XmlRpcMethodImpl.cc
  1756. * src/XmlRpcMethodImpl.h
  1757. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1758. Added the ability to execute command when download starts and
  1759. stops. You can also specify command for particular cases such as
  1760. complete/error download. Added --on-download-start,
  1761. --on-download-stop, --on-download-complete and --on-download-error
  1762. option.
  1763. * src/OptionHandlerFactory.cc
  1764. * src/RequestGroupMan.cc
  1765. * src/prefs.cc
  1766. * src/prefs.h
  1767. * src/usage_text.h
  1768. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1769. Fixed test error
  1770. * test/BencodeTest.cc
  1771. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1772. Added unit tests.
  1773. * test/XmlRpcMethodTest.cc
  1774. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1775. Made exception message more verbose.
  1776. * src/bencode.cc
  1777. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  1778. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1779. space in console readout. Also they are now shown in MiB/s if
  1780. speed > 1024KiB/s.
  1781. * src/ConsoleStatCalc.cc
  1782. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  1783. Added SEED to console output, which represents the number of
  1784. seeders currently the client is connecting to.
  1785. * src/ConsoleStatCalc.cc
  1786. * src/ConsoleStatCalc.h
  1787. * src/DownloadEngine.cc
  1788. * src/NullStatCalc.h
  1789. * src/StatCalc.h
  1790. 2009-05-18 Tatsuhiro Tsujikawa <[email protected]>
  1791. Added source filename(__FILE__) and line number(__LINE__) to
  1792. exception message.
  1793. * src/AbstractCommand.cc
  1794. * src/AbstractDiskWriter.cc
  1795. * src/AbstractProxyResponseCommand.cc
  1796. * src/BDE.h
  1797. * src/BtAllowedFastMessage.cc
  1798. * src/BtHandshakeMessageValidator.h
  1799. * src/BtHaveAllMessage.cc
  1800. * src/BtHaveNoneMessage.cc
  1801. * src/BtPieceMessage.cc
  1802. * src/BtRejectMessage.cc
  1803. * src/ChunkedDecoder.cc
  1804. * src/CookieStorage.cc
  1805. * src/DHTAnnouncePeerMessage.cc
  1806. * src/DHTEntryPointNameResolveCommand.cc
  1807. * src/DHTMessageFactoryImpl.cc
  1808. * src/DHTMessageTracker.cc
  1809. * src/DHTRoutingTableDeserializer.cc
  1810. * src/DHTRoutingTableSerializer.cc
  1811. * src/DHTSetup.cc
  1812. * src/DHTTokenTracker.cc
  1813. * src/DefaultBtAnnounce.cc
  1814. * src/DefaultBtContext.cc
  1815. * src/DefaultBtInteractive.cc
  1816. * src/DefaultBtMessageFactory.cc
  1817. * src/DefaultBtProgressInfoFile.cc
  1818. * src/DefaultExtensionMessageFactory.cc
  1819. * src/DlAbortEx.h
  1820. * src/DlRetryEx.h
  1821. * src/DownloadCommand.cc
  1822. * src/DownloadEngineFactory.cc
  1823. * src/DownloadFailureException.h
  1824. * src/Exception.cc
  1825. * src/Exception.h
  1826. * src/ExpatMetalinkProcessor.cc
  1827. * src/ExpatXmlRpcRequestProcessor.cc
  1828. * src/FallocFileAllocationIterator.cc
  1829. * src/FatalException.h
  1830. * src/FtpConnection.cc
  1831. * src/FtpFinishDownloadCommand.cc
  1832. * src/FtpInitiateConnectionCommand.cc
  1833. * src/FtpNegotiationCommand.cc
  1834. * src/GZipDecoder.cc
  1835. * src/HandshakeExtensionMessage.cc
  1836. * src/HttpConnection.cc
  1837. * src/HttpHeaderProcessor.cc
  1838. * src/HttpInitiateConnectionCommand.cc
  1839. * src/HttpResponse.cc
  1840. * src/HttpResponseCommand.cc
  1841. * src/HttpServer.cc
  1842. * src/HttpSkipResponseCommand.cc
  1843. * src/InitiateConnectionCommandFactory.cc
  1844. * src/IteratableChunkChecksumValidator.cc
  1845. * src/LibgcryptARC4Context.h
  1846. * src/LibgcryptARC4Decryptor.h
  1847. * src/LibgcryptARC4Encryptor.h
  1848. * src/LibgcryptDHKeyExchange.h
  1849. * src/LibgnutlsTLSContext.cc
  1850. * src/LibsslARC4Context.h
  1851. * src/LibsslARC4Decryptor.h
  1852. * src/LibsslARC4Encryptor.h
  1853. * src/LibsslDHKeyExchange.h
  1854. * src/LibsslTLSContext.cc
  1855. * src/MSEHandshake.cc
  1856. * src/MessageDigestHelper.cc
  1857. * src/MetalinkHelper.cc
  1858. * src/MultiDiskAdaptor.cc
  1859. * src/NameMatchOptionHandler.h
  1860. * src/NameResolver.cc
  1861. * src/Netrc.cc
  1862. * src/NsCookieParser.cc
  1863. * src/OptionHandlerException.cc
  1864. * src/OptionHandlerException.h
  1865. * src/OptionHandlerImpl.h
  1866. * src/OptionParser.cc
  1867. * src/ParameterizedStringParser.cc
  1868. * src/PeerAbstractCommand.cc
  1869. * src/PeerConnection.cc
  1870. * src/PeerMessageUtil.cc
  1871. * src/PeerReceiveHandshakeCommand.cc
  1872. * src/Platform.cc
  1873. * src/ReceiverMSEHandshakeCommand.cc
  1874. * src/RecoverableException.h
  1875. * src/RequestGroup.cc
  1876. * src/SimpleLogger.cc
  1877. * src/SocketCore.cc
  1878. * src/Sqlite3MozCookieParser.cc
  1879. * src/UTPexExtensionMessage.cc
  1880. * src/Util.cc
  1881. * src/XML2SAXMetalinkProcessor.cc
  1882. * src/Xml2XmlRpcRequestProcessor.cc
  1883. * src/XmlRpcMethodImpl.cc
  1884. * src/bencode.cc
  1885. * src/download_helper.cc
  1886. * src/messageDigest.h
  1887. * test/ExceptionTest.cc
  1888. * test/TestUtil.cc
  1889. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  1890. Bump up version number to 1.4.0
  1891. * configure.ac
  1892. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  1893. Added 2files.metalink to EXTRA_DIST
  1894. * test/Makefile.am
  1895. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1896. Added missing 2files.metalink
  1897. * test/2files.metalink
  1898. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1899. Show "[MEMORY]" prefix before filename in download summary if it
  1900. is downloaded into memory.
  1901. * src/DownloadResult.h
  1902. * src/RequestGroup.cc
  1903. * src/RequestGroupMan.cc
  1904. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1905. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1906. * src/ExpatXmlRpcRequestProcessor.cc
  1907. * src/Xml2XmlRpcRequestProcessor.cc
  1908. * src/message.h
  1909. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1910. Defined const BDEs to avoid duplicate instantiation.
  1911. Defined MSG_GID_NOT_PROVIDED.
  1912. * src/XmlRpcMethodImpl.cc
  1913. * src/message.h
  1914. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1915. Code cleanup
  1916. * src/Xml2XmlRpcRequestProcessor.cc
  1917. * src/Xml2XmlRpcRequestProcessor.h
  1918. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1919. Defined ENABLE_XML_RPC
  1920. * configure.ac
  1921. * configure
  1922. * config.h.in
  1923. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1924. Added ExpatXmlRpcRequestProcessor
  1925. * src/ExpatXmlRpcRequestProcessor.cc
  1926. * src/ExpatXmlRpcRequestProcessor.h
  1927. * src/Makefile.am
  1928. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1929. Added tests for addTorrent and addMetalink command.
  1930. * test/TestUtil.cc
  1931. * test/TestUtil.h
  1932. * test/XmlRpcMethodTest.cc
  1933. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1934. Corrected the description of --file-allocation option.
  1935. * doc/aria2c.1.txt
  1936. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1937. Added tellAll command.
  1938. * src/XmlRpcMethodFactory.cc
  1939. * src/XmlRpcMethodImpl.cc
  1940. * src/XmlRpcMethodImpl.h
  1941. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1942. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1943. * src/XmlRpcMethodImpl.cc
  1944. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1945. Added changeGlobalOption command. Currently,
  1946. max-overall-download-limit and max-overall-upload-limit option are
  1947. available.
  1948. * src/RequestGroupMan.h
  1949. * src/XmlRpcMethod.cc
  1950. * src/XmlRpcMethod.h
  1951. * src/XmlRpcMethodFactory.cc
  1952. * src/XmlRpcMethodImpl.cc
  1953. * src/XmlRpcMethodImpl.h
  1954. * test/XmlRpcMethodTest.cc
  1955. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1956. Added changeOption command. Currently, max-download-limit,
  1957. max-upload-limit option are available in this command.
  1958. * src/RequestGroup.h
  1959. * src/XmlRpcMethod.cc
  1960. * src/XmlRpcMethod.h
  1961. * src/XmlRpcMethodFactory.cc
  1962. * src/XmlRpcMethodImpl.cc
  1963. * src/XmlRpcMethodImpl.h
  1964. * test/XmlRpcMethodTest.cc
  1965. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  1966. Added purgeDownloadResult command.
  1967. * src/RequestGroupMan.cc
  1968. * src/RequestGroupMan.h
  1969. * src/XmlRpcMethodFactory.cc
  1970. * src/XmlRpcMethodImpl.cc
  1971. * src/XmlRpcMethodImpl.h
  1972. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  1973. Refactored.
  1974. * src/XmlRpcMethod.cc
  1975. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  1976. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1977. XmlRpcResponse.
  1978. * src/HttpServerBodyCommand.cc
  1979. * src/Makefile.am
  1980. * src/XmlRpcMethod.cc
  1981. * src/XmlRpcMethod.h
  1982. * src/XmlRpcMethodImpl.cc
  1983. * src/XmlRpcResponse.cc
  1984. * src/XmlRpcResponse.h
  1985. * test/XmlRpcMethodTest.cc
  1986. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  1987. In XML-RPC option struct, header and index-out option can take
  1988. array as value.
  1989. * src/XmlRpcMethod.cc
  1990. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1991. Removed unused option member from PeerConnection.
  1992. * src/InitiatorMSEHandshakeCommand.cc
  1993. * src/PeerConnection.cc
  1994. * src/PeerConnection.h
  1995. * src/PeerInteractionCommand.cc
  1996. * src/PeerReceiveHandshakeCommand.cc
  1997. * src/ReceiverMSEHandshakeCommand.cc
  1998. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1999. Added "seeder" key to getPeers response.
  2000. * src/XmlRpcMethodImpl.cc
  2001. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2002. Added addMetalink XML-RPC command.
  2003. * src/XmlRpcMethodFactory.cc
  2004. * src/XmlRpcMethodImpl.cc
  2005. * src/XmlRpcMethodImpl.h
  2006. * src/download_helper.cc
  2007. * src/download_helper.h
  2008. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2009. Fixed the bug that POU peers are never choked in seeding.
  2010. * src/BtSeederStateChoke.cc
  2011. * src/BtSeederStateChoke.h
  2012. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2013. Added web-seeding URI handling in addTorrent command.
  2014. * src/XmlRpcMethodImpl.cc
  2015. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2016. Added "length" key to getFiles response.
  2017. * src/XmlRpcMethodImpl.cc
  2018. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2019. Moved --no-netrc option from ftp option section to http/ftp option
  2020. section.
  2021. * doc/aria2c.1.txt
  2022. * src/OptionHandlerFactory.cc
  2023. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2024. Removed garbage "\" character before '
  2025. * doc/aria2c.1.txt
  2026. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2027. Removed garbage "\" character before http.
  2028. * doc/aria2c.1.txt
  2029. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2030. Documented additional options that can be specified in -i list.
  2031. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2032. and --xml-rpc-passwd. Removed --enable-http-server and
  2033. --http-server-listen-port.
  2034. * doc/aria2c.1.txt
  2035. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2036. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2037. * src/DefaultPeerStorage.cc
  2038. * src/DefaultPeerStorage.h
  2039. * src/PeerStorage.h
  2040. * src/XmlRpcMethodImpl.cc
  2041. * test/MockPeerStorage.h
  2042. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2043. Put a call to Socket::isReadable() in try block.
  2044. * src/HttpServerBodyCommand.cc
  2045. * src/HttpServerCommand.cc
  2046. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2047. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2048. exception , so it is now in try block.
  2049. * src/HttpServerResponseCommand.cc
  2050. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2051. Added "amChoking" and "peerChoking" key in getPeers response.
  2052. * src/XmlRpcMethodImpl.cc
  2053. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2054. Added test case for zero-length filter.
  2055. * test/BitfieldManTest.cc
  2056. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2057. getFiles command now returns file data for finished/stopped
  2058. downloads.
  2059. * src/XmlRpcMethodImpl.cc
  2060. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2061. DownloadResult now has the list of FileEntry. The download
  2062. summary displays the path of first selected file and the number of
  2063. remaining files for multi-file torrent.
  2064. * src/DownloadResult.h
  2065. * src/RequestGroup.cc
  2066. * src/RequestGroupMan.cc
  2067. * test/RequestGroupTest.cc
  2068. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2069. Fixed segmentation fault error when no file is selected in
  2070. multi-file torrent.
  2071. * src/BitfieldMan.cc
  2072. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2073. Escaped <,>,& character in XML-RPC response.
  2074. * src/XmlRpcMethod.cc
  2075. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2076. Throw DlAbortEx instead of FatalException during parsing options
  2077. because we don't want for aria2 to quit when bad option is passed
  2078. via XML-RPC.
  2079. * src/OptionHandlerException.cc
  2080. * src/OptionHandlerException.h
  2081. * src/OptionHandlerImpl.h
  2082. * src/OptionParser.cc
  2083. * src/OptionParser.h
  2084. * src/PStringSegment.cc
  2085. * src/ParameterizedStringParser.cc
  2086. * src/download_helper.cc
  2087. * test/ParameterizedStringParserTest.cc
  2088. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2089. Selecting files are now done in
  2090. DefaultBtContext::setFileFileter().
  2091. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2092. functions are removed because they are no longer used. Creating
  2093. filter in BitfieldMan is done in new funtion
  2094. PieceStorage::setupFileFilter()
  2095. * src/BtContext.cc
  2096. * src/BtContext.h
  2097. * src/DefaultBtContext.cc
  2098. * src/DefaultBtContext.h
  2099. * src/DefaultPieceStorage.cc
  2100. * src/DefaultPieceStorage.h
  2101. * src/DiskAdaptor.cc
  2102. * src/DiskAdaptor.h
  2103. * src/PieceStorage.h
  2104. * src/RequestGroup.cc
  2105. * src/UnknownLengthPieceStorage.h
  2106. * src/XmlRpcMethodImpl.cc
  2107. * test/DefaultBtContextTest.cc
  2108. * test/MockBtContext.h
  2109. * test/MockPieceStorage.h
  2110. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2111. Fixed compile error on Mac OS X
  2112. * src/HttpServer.cc
  2113. * src/XmlRpcMethod.h
  2114. * src/XmlRpcMethodImpl.cc
  2115. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2116. Use std::binary_search instead of std::find
  2117. * src/DefaultPieceStorage.cc
  2118. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2119. Removed unnecessary BDE() call; leave them to implicit conversion.
  2120. * src/XmlRpcMethodImpl.cc
  2121. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2122. Return connections and gid in string
  2123. * src/XmlRpcMethodImpl.cc
  2124. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2125. Renamed addURI as addUri
  2126. * src/XmlRpcMethodFactory.cc
  2127. * src/XmlRpcMethodImpl.cc
  2128. * src/XmlRpcMethodImpl.h
  2129. * test/XmlRpcMethodTest.cc
  2130. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2131. Renamed addTorrentFile as addTorrent
  2132. * src/XmlRpcMethodFactory.cc
  2133. * src/XmlRpcMethodImpl.cc
  2134. * src/XmlRpcMethodImpl.h
  2135. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2136. The information for files, URIs, peers are removed from the
  2137. reponse of TellaActive, TellStatus command because they tend to be
  2138. large. Instead they can be retrieved by the dedicated commands:
  2139. getFiles, getUris and getPeers respectively.
  2140. * src/XmlRpcMethodFactory.cc
  2141. * src/XmlRpcMethodImpl.cc
  2142. * src/XmlRpcMethodImpl.h
  2143. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2144. Removed --max-overall-upload-limit and
  2145. --max-overall-download-limit option from listRequestOptions.
  2146. * src/download_helper.cc
  2147. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2148. Log incoming host in HttpListenCommand.
  2149. * src/HttpListenCommand.cc
  2150. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2151. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2152. --xml-rpc-passwd option.
  2153. * src/HttpServer.cc
  2154. * src/HttpServer.h
  2155. * src/HttpServerCommand.cc
  2156. * src/OptionHandlerFactory.cc
  2157. * src/prefs.cc
  2158. * src/prefs.h
  2159. * src/usage_text.h
  2160. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  2161. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2162. processing 0 length request.
  2163. * src/HttpServerBodyCommand.cc
  2164. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2165. Removed --enable-http-server and --http-server-listen-port
  2166. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2167. instead. The original feature for --enable-http-server that
  2168. reports download progress in HTML was officially removed. Persist
  2169. XML-RPC connection if client supports keep-alive.
  2170. * src/DownloadEngineFactory.cc
  2171. * src/HttpServerCommand.cc
  2172. * src/HttpServerResponseCommand.cc
  2173. * src/Makefile.am
  2174. * src/Makefile.in
  2175. * src/OptionHandlerFactory.cc
  2176. * src/RequestGroupMan.cc
  2177. * src/main.cc
  2178. * src/option_processing.cc
  2179. * src/prefs.cc
  2180. * src/prefs.h
  2181. * src/usage_text.h
  2182. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2183. Added "uris" key to the response of tellStatus command. Added
  2184. "connections" key to the response of tellStatus and tellActive
  2185. command.
  2186. * src/XmlRpcMethodImpl.cc
  2187. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2188. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2189. Added TellStatusXmlRpcMethod. Remove command can now remove
  2190. waiting RequestGroup.
  2191. * src/RequestGroupMan.cc
  2192. * src/RequestGroupMan.h
  2193. * src/XmlRpcMethodFactory.cc
  2194. * src/XmlRpcMethodImpl.cc
  2195. * src/XmlRpcMethodImpl.h
  2196. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2197. Initialized _peerId
  2198. * src/Peer.cc
  2199. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2200. Return fault structure for error. FailXmlRpcMethod is renamed as
  2201. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2202. in non-torrent download. Return single param value.
  2203. * src/XmlRpcMethod.cc
  2204. * src/XmlRpcMethodFactory.cc
  2205. * src/XmlRpcMethodImpl.cc
  2206. * src/XmlRpcMethodImpl.h
  2207. * test/XmlRpcMethodTest.cc
  2208. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2209. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2210. command.
  2211. * src/RequestGroup.cc
  2212. * src/RequestGroup.h
  2213. * src/RequestGroupMan.cc
  2214. * src/XmlRpcMethodImpl.cc
  2215. * test/RequestGroupTest.cc
  2216. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2217. Added more options that can be specified in -i list and xml-rpc
  2218. add* command.
  2219. * src/download_helper.h
  2220. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2221. The available options in -i list should be listed in
  2222. listRequestOptions().
  2223. * src/download_helper.cc
  2224. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2225. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2226. command.
  2227. * src/XmlRpcMethodImpl.cc
  2228. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  2229. Now RequestGroup has its own copy of Option object. This will help
  2230. to give custom option for each RequestGroup.
  2231. addTorrentFile command now takes options.
  2232. * src/AbstractCommand.cc
  2233. * src/AbstractCommand.h
  2234. * src/AbstractProxyRequestCommand.cc
  2235. * src/ActivePeerConnectionCommand.cc
  2236. * src/ActivePeerConnectionCommand.h
  2237. * src/AdaptiveURISelector.cc
  2238. * src/BtCheckIntegrityEntry.cc
  2239. * src/BtDependency.cc
  2240. * src/BtDependency.h
  2241. * src/BtFileAllocationEntry.cc
  2242. * src/BtPostDownloadHandler.cc
  2243. * src/CheckIntegrityEntry.cc
  2244. * src/DownloadCommand.cc
  2245. * src/FtpDownloadCommand.cc
  2246. * src/FtpFinishDownloadCommand.cc
  2247. * src/FtpInitiateConnectionCommand.cc
  2248. * src/FtpNegotiationCommand.cc
  2249. * src/HttpInitiateConnectionCommand.cc
  2250. * src/HttpRequestCommand.cc
  2251. * src/HttpResponseCommand.cc
  2252. * src/HttpSkipResponseCommand.cc
  2253. * src/InitiateConnectionCommand.cc
  2254. * src/InitiateConnectionCommandFactory.cc
  2255. * src/InitiatorMSEHandshakeCommand.cc
  2256. * src/InitiatorMSEHandshakeCommand.h
  2257. * src/Metalink2RequestGroup.cc
  2258. * src/Metalink2RequestGroup.h
  2259. * src/MetalinkPostDownloadHandler.cc
  2260. * src/MultiUrlRequestInfo.cc
  2261. * src/MultiUrlRequestInfo.h
  2262. * src/PeerAbstractCommand.cc
  2263. * src/PeerInteractionCommand.cc
  2264. * src/PeerInteractionCommand.h
  2265. * src/PeerReceiveHandshakeCommand.cc
  2266. * src/PeerReceiveHandshakeCommand.h
  2267. * src/RequestGroup.cc
  2268. * src/RequestGroup.h
  2269. * src/TrackerWatcherCommand.cc
  2270. * src/TrackerWatcherCommand.h
  2271. * src/XmlRpcMethod.cc
  2272. * src/XmlRpcMethod.h
  2273. * src/XmlRpcMethodImpl.cc
  2274. * src/download_helper.cc
  2275. * src/download_helper.h
  2276. * src/main.cc
  2277. * test/BtDependencyTest.cc
  2278. * test/BtPostDownloadHandlerTest.cc
  2279. * test/DefaultBtMessageDispatcherTest.cc
  2280. * test/DownloadHandlerFactoryTest.cc
  2281. * test/DownloadHelperTest.cc
  2282. * test/Metalink2RequestGroupTest.cc
  2283. * test/MetalinkPostDownloadHandlerTest.cc
  2284. * test/RequestGroupManTest.cc
  2285. * test/RequestGroupTest.cc
  2286. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2287. Added tellActiveStatus xml-rpc command which reports download
  2288. status of active downloads.
  2289. * src/XmlRpcMethodFactory.cc
  2290. * src/XmlRpcMethodImpl.cc
  2291. * src/XmlRpcMethodImpl.h
  2292. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2293. Added addTorrentFile xml-rpc command which receives uploaded
  2294. torrent file and add download for it.
  2295. * src/RequestGroupMan.cc
  2296. * src/XmlRpcMethodFactory.cc
  2297. * src/XmlRpcMethodImpl.cc
  2298. * src/XmlRpcMethodImpl.h
  2299. * src/download_helper.cc
  2300. * src/download_helper.h
  2301. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2302. Added remove xml-rpc command which removes specified download.
  2303. There is a known issue: the removed unfinished downloads are
  2304. reported ERR when aria2 exits. They should be reported as INPR.
  2305. * src/RequestGroupMan.cc
  2306. * src/RequestGroupMan.h
  2307. * src/XmlRpcMethodFactory.cc
  2308. * src/XmlRpcMethodImpl.cc
  2309. * src/XmlRpcMethodImpl.h
  2310. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2311. If --enable-http-server is enabled, don't stop aria2 when all
  2312. download finished and don't quit when no files to download at
  2313. start up.
  2314. * src/RequestGroupMan.cc
  2315. * src/main.cc
  2316. * src/option_processing.cc
  2317. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2318. Added missing AM_CONDITIONAL
  2319. * configure.ac
  2320. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2321. Added xml-rpc functionality. Currently only addURI commad is
  2322. supported. To enable xml-rpc, run aria2 with
  2323. --enable-http-server. This option name is temporal and will be
  2324. changed. The feature that reports download progress in html format
  2325. is temporarily disabled.
  2326. * src/HttpServer.cc
  2327. * src/HttpServer.h
  2328. * src/HttpServerBodyCommand.cc
  2329. * src/HttpServerBodyCommand.h
  2330. * src/HttpServerCommand.cc
  2331. * src/HttpServerResponseCommand.cc
  2332. * src/Makefile.am
  2333. * src/OptionParser.cc
  2334. * src/OptionParser.h
  2335. * src/RequestGroupMan.cc
  2336. * src/RequestGroupMan.h
  2337. * src/XmlRpcMethod.cc
  2338. * src/XmlRpcMethod.h
  2339. * src/XmlRpcMethodFactory.cc
  2340. * src/XmlRpcMethodFactory.h
  2341. * src/XmlRpcMethodImpl.cc
  2342. * src/XmlRpcMethodImpl.h
  2343. * src/download_helper.cc
  2344. * src/download_helper.h
  2345. * test/Makefile.am
  2346. * test/XmlRpcMethodTest.cc
  2347. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2348. Added xml-rpc request parser. The supported value types are:
  2349. i4/int, string, double, struct, array, base64. Currently only
  2350. libxml2 version is provided.
  2351. * src/Xml2XmlRpcRequestProcessor.cc
  2352. * src/Xml2XmlRpcRequestProcessor.h
  2353. * src/XmlRpcElements.cc
  2354. * src/XmlRpcElements.h
  2355. * src/XmlRpcRequest.h
  2356. * src/XmlRpcRequestParserController.cc
  2357. * src/XmlRpcRequestParserController.h
  2358. * src/XmlRpcRequestParserState.h
  2359. * src/XmlRpcRequestParserStateImpl.cc
  2360. * src/XmlRpcRequestParserStateImpl.h
  2361. * src/XmlRpcRequestParserStateMachine.cc
  2362. * src/XmlRpcRequestParserStateMachine.h
  2363. * src/XmlRpcRequestProcessor.h
  2364. * test/XmlRpcRequestParserControllerTest.cc
  2365. * test/XmlRpcRequestProcessorTest.cc
  2366. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2367. * Release 1.3.3
  2368. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2369. Fixed compile error since r1202.
  2370. * src/ExpatMetalinkProcessor.cc
  2371. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2372. Updated Ukrainian, Russian and Simplified Chinese
  2373. translations. Thanks to all translators.
  2374. * po/ru.po
  2375. * po/uk.po
  2376. * po/zh_CN.po
  2377. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  2378. Pass reference of Option object instead of pointer.
  2379. * src/download_helper.cc
  2380. * src/download_helper.h
  2381. * src/main.cc
  2382. * test/DownloadHelperTest.cc
  2383. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  2384. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2385. from option directly. Instead, get them from RequestGroup.
  2386. * src/ActivePeerConnectionCommand.cc
  2387. * src/ActivePeerConnectionCommand.h
  2388. * src/PeerReceiveHandshakeCommand.cc
  2389. * src/RequestGroup.h
  2390. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  2391. Removed unused uploadLimitCheck and uploadLimit from
  2392. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2393. PeerInteractionCommand.
  2394. * src/PeerAbstractCommand.cc
  2395. * src/PeerAbstractCommand.h
  2396. * src/PeerInteractionCommand.cc
  2397. * src/PeerInteractionCommand.h
  2398. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  2399. Fixed broken file renaming feature since r1202.
  2400. * src/FtpNegotiationCommand.cc
  2401. * src/FtpNegotiationCommand.h
  2402. * src/HttpResponseCommand.cc
  2403. * src/RequestGroup.cc
  2404. * src/RequestGroup.h
  2405. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2406. Removed unused debug log
  2407. * src/SocketCore.cc
  2408. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2409. Generated configure and Makefile.in using autoconf 2.63 and
  2410. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2411. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2412. * configure.ac
  2413. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2414. Moved piece statistics stuff to new PieceStatMan class.
  2415. Refactored PieceSelector interface.
  2416. * src/DefaultPieceStorage.cc
  2417. * src/DefaultPieceStorage.h
  2418. * src/LongestSequencePieceSelector.cc
  2419. * src/LongestSequencePieceSelector.h
  2420. * src/Makefile.am
  2421. * src/PieceSelector.h
  2422. * src/PieceStatMan.cc
  2423. * src/PieceStatMan.h
  2424. * src/RarestPieceSelector.cc
  2425. * src/RarestPieceSelector.h
  2426. * src/RequestGroup.cc
  2427. * test/DefaultPieceStorageTest.cc
  2428. * test/InOrderPieceSelector.h
  2429. * test/Makefile.am
  2430. * test/PieceStatManTest.cc
  2431. * test/RarestPieceSelectorTest.cc
  2432. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2433. Added static member _protocolFamily to SocketCore. By default,
  2434. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2435. address. Sometime SocketCore::bind() and
  2436. SocketCore::establishConnection() use difference protocl family
  2437. and latter cannot connect to former. To avoid this situation, we
  2438. limit protocol family to AF_INET for unit tests.
  2439. * src/SocketCore.cc
  2440. * src/SocketCore.h
  2441. * test/AllTest.cc
  2442. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2443. Avoid std::bad_alloc for negative bencode string length.
  2444. * src/bencode.cc
  2445. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2446. Supported segmented downloading with chunked transfer encoding and
  2447. content-length.
  2448. * src/DownloadCommand.cc
  2449. * src/HttpResponseCommand.cc
  2450. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  2451. Bump up version number to 1.3.3
  2452. * configure.ac
  2453. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  2454. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2455. from 4096 to 65536 (for insanely large ftp login banners)
  2456. * src/FtpConnection.h
  2457. * test/FtpConnectionTest.cc
  2458. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  2459. In DefaultBtContext::getActualBasePath(), return first
  2460. FileEntry::getPath() for single file torrent.
  2461. * src/DefaultBtContext.cc
  2462. * test/DefaultBtContextTest.cc
  2463. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2464. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2465. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2466. Removed _directIOAllowed member from DiskWriter.
  2467. * src/AbstractDiskWriter.cc
  2468. * src/AbstractDiskWriter.h
  2469. * src/AbstractSingleDiskAdaptor.cc
  2470. * src/AbstractSingleDiskAdaptor.h
  2471. * src/BinaryStream.h
  2472. * src/ByteArrayDiskWriter.h
  2473. * src/DefaultPieceStorage.cc
  2474. * src/DiskWriter.h
  2475. * src/MultiDiskAdaptor.cc
  2476. * src/MultiDiskAdaptor.h
  2477. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2478. Now the constructor of AbstractDiskWriter takes filename as an
  2479. argument and filename argument is removed from openFile(),
  2480. initAndOpenFile(), openExistingFile() interface. storeDir member
  2481. and its accessor functions are removed from DiskAdaptor because it
  2482. is not used anymore. size() member function of DefaultDiskWriter,
  2483. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2484. opening file.
  2485. * src/AbstractDiskWriter.cc
  2486. * src/AbstractDiskWriter.h
  2487. * src/AbstractSingleDiskAdaptor.cc
  2488. * src/AbstractSingleDiskAdaptor.h
  2489. * src/ByteArrayDiskWriter.cc
  2490. * src/ByteArrayDiskWriter.h
  2491. * src/ByteArrayDiskWriterFactory.cc
  2492. * src/ByteArrayDiskWriterFactory.h
  2493. * src/DefaultDiskWriter.cc
  2494. * src/DefaultDiskWriter.h
  2495. * src/DefaultDiskWriterFactory.cc
  2496. * src/DefaultDiskWriterFactory.h
  2497. * src/DefaultPieceStorage.cc
  2498. * src/DirectDiskAdaptor.cc
  2499. * src/DirectDiskAdaptor.h
  2500. * src/DiskAdaptor.h
  2501. * src/DiskWriter.h
  2502. * src/DiskWriterFactory.h
  2503. * src/MessageDigestHelper.cc
  2504. * src/MultiDiskAdaptor.cc
  2505. * src/RequestGroup.cc
  2506. * src/UnknownLengthPieceStorage.cc
  2507. * src/Util.cc
  2508. * test/DefaultDiskWriterTest.cc
  2509. * test/DirectDiskAdaptorTest.cc
  2510. * test/FallocFileAllocationIteratorTest.cc
  2511. * test/MessageDigestHelperTest.cc
  2512. * test/MetalinkProcessorTest.cc
  2513. * test/MultiDiskAdaptorTest.cc
  2514. * test/MultiFileAllocationIteratorTest.cc
  2515. * test/SingleFileAllocationIteratorTest.cc
  2516. * test/UtilTest.cc
  2517. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2518. Fixed the bug that aria2 aborts when --select-file is used. This
  2519. bug was introduced in r1199.
  2520. * src/MultiDiskAdaptor.cc
  2521. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  2522. Code cleanup
  2523. * test/MockPieceStorage.cc
  2524. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  2525. Fixed the bug that read-only file with wrong file size will cause
  2526. error because it cannot be truncated to the correct size. Now if
  2527. file size is different than the expected one, re-open file in
  2528. writable mode.
  2529. * src/AbstractSingleDiskAdaptor.cc
  2530. * src/AbstractSingleDiskAdaptor.h
  2531. * src/BtCheckIntegrityEntry.cc
  2532. * src/DiskAdaptor.h
  2533. * src/MultiDiskAdaptor.h
  2534. * src/RequestGroup.cc
  2535. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  2536. Fixed the bug that with --check-integrity option aria2 reports
  2537. downloaded file size is 0 even if some parts of file is correctly
  2538. downloaded. This bug is reproducible for the download that a file
  2539. includes last piece is missing. This bug doesn't reveal for
  2540. single-torrent with file allocation on.
  2541. * src/IteratableChecksumValidator.cc
  2542. * test/IteratableChecksumValidatorTest.cc
  2543. 2009-05-01 Tatsuhiro Tsujikawa <[email protected]>
  2544. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2545. * src/RequestGroupMan.cc
  2546. * src/AdaptiveURISelector.cc
  2547. * src/AdaptiveURISelector.h
  2548. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2549. * Release 1.3.2
  2550. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2551. Updated README
  2552. * README
  2553. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2554. Updated Ukrainian translations. Thanks to Alexander10.
  2555. * po/uk.po
  2556. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2557. Code cleanup
  2558. * src/MetalinkParserStateMachine.cc
  2559. * src/MetalinkParserStateMachine.h
  2560. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2561. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2562. and expat simultaneously, MetalinkProcessor is now not base class
  2563. and it is directly implemented in XML2SAXMetalinkProcessor and
  2564. ExpatMetalinkProcessor.
  2565. * src/ExpatMetalinkProcessor.cc
  2566. * src/ExpatMetalinkProcessor.h
  2567. * src/Makefile.am
  2568. * src/MetalinkHelper.cc
  2569. * src/MetalinkProcessor.h
  2570. * src/MetalinkProcessorFactory.cc: Removed.
  2571. * src/MetalinkProcessorFactory.h: Removed
  2572. * src/XML2SAXMetalinkProcessor.cc
  2573. * src/XML2SAXMetalinkProcessor.h
  2574. * test/MetalinkProcessorTest.cc
  2575. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2576. Bump up version number to 1.3.2
  2577. * configure.ac
  2578. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2579. Added missing file.
  2580. * test/Makefile.am
  2581. * test/url-list-singleFileEndsWithSlash.torrent
  2582. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2583. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2584. request.
  2585. * src/AnnounceList.cc
  2586. * src/AnnounceList.h
  2587. * src/BDE.cc: Added
  2588. * src/BDE.h: Added
  2589. * src/DHTAbstractMessage.cc
  2590. * src/DHTAbstractMessage.h
  2591. * src/DHTAnnouncePeerMessage.cc
  2592. * src/DHTAnnouncePeerMessage.h
  2593. * src/DHTAnnouncePeerReplyMessage.cc
  2594. * src/DHTAnnouncePeerReplyMessage.h
  2595. * src/DHTFindNodeMessage.cc
  2596. * src/DHTFindNodeMessage.h
  2597. * src/DHTFindNodeReplyMessage.cc
  2598. * src/DHTFindNodeReplyMessage.h
  2599. * src/DHTGetPeersMessage.cc
  2600. * src/DHTGetPeersMessage.h
  2601. * src/DHTGetPeersReplyMessage.cc
  2602. * src/DHTGetPeersReplyMessage.h
  2603. * src/DHTMessageFactory.h
  2604. * src/DHTMessageFactoryImpl.cc
  2605. * src/DHTMessageFactoryImpl.h
  2606. * src/DHTMessageReceiver.cc
  2607. * src/DHTMessageTracker.cc
  2608. * src/DHTMessageTracker.h
  2609. * src/DHTPingMessage.cc
  2610. * src/DHTPingMessage.h
  2611. * src/DHTPingReplyMessage.cc
  2612. * src/DHTPingReplyMessage.h
  2613. * src/DHTQueryMessage.cc
  2614. * src/DHTQueryMessage.h
  2615. * src/DHTResponseMessage.cc
  2616. * src/DHTResponseMessage.h
  2617. * src/DefaultBtAnnounce.cc
  2618. * src/DefaultBtContext.cc
  2619. * src/DefaultBtContext.h
  2620. * src/HandshakeExtensionMessage.cc
  2621. * src/Makefile.am
  2622. * src/PeerListProcessor.h
  2623. * src/UTPexExtensionMessage.cc
  2624. * src/bencode.cc
  2625. * src/bencode.h
  2626. * test/AnnounceListTest.cc
  2627. * test/BDETest.cc: Added
  2628. * test/BencodeTest.cc
  2629. * test/DHTAnnouncePeerMessageTest.cc
  2630. * test/DHTAnnouncePeerReplyMessageTest.cc
  2631. * test/DHTFindNodeMessageTest.cc
  2632. * test/DHTFindNodeReplyMessageTest.cc
  2633. * test/DHTGetPeersMessageTest.cc
  2634. * test/DHTGetPeersReplyMessageTest.cc
  2635. * test/DHTMessageFactoryImplTest.cc
  2636. * test/DHTMessageTrackerTest.cc
  2637. * test/DHTPingMessageTest.cc
  2638. * test/DHTPingReplyMessageTest.cc
  2639. * test/Makefile.am
  2640. * test/MockDHTMessageFactory.h
  2641. * test/PeerListProcessorTest.cc
  2642. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2643. Use url-list (web-seeding) only for single-file torrent. This is
  2644. basically the same behavior with Metalink file with torrent and
  2645. URIs.
  2646. * src/RequestGroup.cc
  2647. * src/DefaultBtContext.cc
  2648. * test/DefaultBtContextTest.cc
  2649. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  2650. Rewritten expr
  2651. * src/array_fun.h
  2652. * test/array_funTest.cc
  2653. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  2654. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2655. * src/DefaultBtMessageDispatcher.cc
  2656. * src/a2algo.h
  2657. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  2658. Removed ExtendedMessagingAware. Instead of using inheritance,
  2659. added ExtensionMessageRegistry and it is passed to
  2660. DefaultExtensionMessageFactory.
  2661. * src/DefaultBtInteractive.cc
  2662. * src/DefaultBtInteractive.h
  2663. * src/DefaultExtensionMessageFactory.cc
  2664. * src/DefaultExtensionMessageFactory.h
  2665. * src/ExtendedMessagingAware.h: Removed.
  2666. * src/ExtensionMessageFactory.h
  2667. * src/ExtensionMessageRegistry.h: Added.
  2668. * src/Makefile.am
  2669. * src/PeerInteractionCommand.cc
  2670. * test/DefaultExtensionMessageFactoryTest.cc
  2671. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  2672. Fixed typo in log messages
  2673. * src/MSEHandshake.cc
  2674. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  2675. Fixed the bug that prevents torrent download from finishing. The
  2676. bug doesn't reveal for all torrents. The torrents affected this
  2677. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2678. of pieces.
  2679. * src/bitfield.h
  2680. * test/bitfieldTest.cc
  2681. 2009-04-24 Tatsuhiro Tsujikawa <[email protected]>
  2682. Code cleanup
  2683. * src/PeerListProcessor.h
  2684. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2685. Removed RequestGroupAware
  2686. * src/AbstractCommand.cc
  2687. * src/AbstractCommand.h
  2688. * src/ActivePeerConnectionCommand.cc
  2689. * src/ActivePeerConnectionCommand.h
  2690. * src/DHTGetPeersCommand.cc
  2691. * src/DHTGetPeersCommand.h
  2692. * src/InitiatorMSEHandshakeCommand.cc
  2693. * src/InitiatorMSEHandshakeCommand.h
  2694. * src/Makefile.am
  2695. * src/PeerInitiateConnectionCommand.cc
  2696. * src/PeerInitiateConnectionCommand.h
  2697. * src/PeerInteractionCommand.cc
  2698. * src/PeerInteractionCommand.h
  2699. * src/RealtimeCommand.cc
  2700. * src/RealtimeCommand.h
  2701. * src/RequestGroupAware.cc: Removed
  2702. * src/RequestGroupAware.h: Removed
  2703. * src/SeedCheckCommand.cc
  2704. * src/SeedCheckCommand.h
  2705. * src/SleepCommand.cc
  2706. * src/TrackerWatcherCommand.cc
  2707. * src/TrackerWatcherCommand.h
  2708. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2709. Rewritten PeerListProcessor
  2710. * src/PeerListProcessor.h
  2711. * src/CompactPeerListProcessor.h: Removed
  2712. * src/CompactPeerListProcessor.cc: Removed
  2713. * src/DelegatingPeerListProcessor.cc: Removed.
  2714. * src/DefaultBtAnnounce.cc
  2715. * src/Makefile.am
  2716. * src/UTPexExtensionMessage.cc
  2717. * src/DefaultPeerListProcessor.h: Removed.
  2718. * src/DefaultPeerListProcessor.cc: Removed.
  2719. * src/DelegatingPeerListProcessor.h: Removed.
  2720. * test/Makefile.am
  2721. * test/PeerListProcessorTest.cc
  2722. * test/DefaultPeerListProcessorTest.cc: Removed.
  2723. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2724. Rewritten RequestGroupMan::calculateStat()
  2725. * src/RequestGroupMan.cc
  2726. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2727. Removed unnecessary virtual destructor for Request class.
  2728. * src/Request.cc
  2729. * src/Request.h
  2730. 2009-04-22 Tatsuhiro Tsujikawa <[email protected]>
  2731. Avoid dynamic_pointer_cast.
  2732. * src/DHTGetPeersCommand.cc
  2733. * src/DHTGetPeersCommand.h
  2734. 2009-04-21 Tatsuhiro Tsujikawa <[email protected]>
  2735. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2736. BtEvent.
  2737. * src/AbstractBtEventListener.h: Removed.
  2738. * src/AbstractBtMessage.cc
  2739. * src/AbstractBtMessage.h
  2740. * src/BtAbortOutstandingRequestEvent.h
  2741. * src/BtCancelSendingPieceEvent.h
  2742. * src/BtChokedEvent.h: Removed.
  2743. * src/BtChokingEvent.h
  2744. * src/BtEvent.h: Removed
  2745. * src/BtEventListener.h: Removed.
  2746. * src/BtMessage.h
  2747. * src/BtPieceMessage.cc
  2748. * src/BtPieceMessage.h
  2749. * src/BtRequestMessage.cc
  2750. * src/BtRequestMessage.h
  2751. * src/DefaultBtMessageDispatcher.cc
  2752. * src/Makefile.am
  2753. * src/a2functional.h
  2754. * test/BtPieceMessageTest.cc
  2755. * test/BtRequestMessageTest.cc
  2756. * test/DefaultBtMessageDispatcherTest.cc
  2757. * test/MockBtMessage.h
  2758. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  2759. Code cleanup
  2760. * src/RequestGroupMan.cc
  2761. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  2762. Code cleanup
  2763. * src/DownloadCommand.cc
  2764. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  2765. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2766. byte.
  2767. * src/DownloadCommand.cc
  2768. * src/bitfield.h
  2769. * test/bitfieldTest.cc
  2770. Fixed the bug that causes infinite loop if broken web server
  2771. returns chunked response without last "0" chunk-size marker and
  2772. closes connection.
  2773. * src/DownloadCommand.cc
  2774. Instantiate properly configured HttpDownloadCommand for
  2775. non-resumable downlaods.
  2776. * src/HttpResponseCommand.cc
  2777. 2009-04-16 Tatsuhiro Tsujikawa <[email protected]>
  2778. Rewritten array operation functions.
  2779. * src/BitfieldMan.cc
  2780. * src/array_fun.h
  2781. * test/array_funTest.cc
  2782. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  2783. Removed unused variable 'query'
  2784. * src/Request.cc
  2785. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  2786. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2787. accidentally set to false in r1162.
  2788. * configure.ac
  2789. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  2790. Code cleanup
  2791. * src/BNode.cc
  2792. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  2793. Increase prefixLength for the bucket which doesn't own local node
  2794. ID when splitting bucket.
  2795. * src/DHTBucket.cc
  2796. * test/DHTBucketTest.cc
  2797. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  2798. * Release 1.3.1
  2799. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  2800. Bump up version number to 1.3.1
  2801. * configure.ac
  2802. 2009-04-08 Tatsuhiro Tsujikawa <[email protected]>
  2803. Removed unused variable checkPoint. Also removed include directive
  2804. for TimeA2.h.
  2805. * src/SeedCheckCommand.h
  2806. 2009-04-07 Tatsuhiro Tsujikawa <[email protected]>
  2807. Fixed the bug that upload limit exceeds the value specified in
  2808. --seed-ratio option depending on the timing of the execution of
  2809. SeedCheckCommand.
  2810. * src/SeedCheckCommand.cc
  2811. 2009-04-05 Tatsuhiro Tsujikawa <[email protected]>
  2812. Fixed the bug that removed peer's session upload/download length
  2813. are counted twice in _cachedTransferStat before it is
  2814. re-calculated. This affected the calculation of shara ratio,
  2815. resulting aria2 wrongly determines that specified share ratio is
  2816. reached. Also fixed the typo in calculateStatFor function name.
  2817. * src/BtSetup.cc
  2818. * src/DefaultPeerStorage.cc
  2819. * src/ShareRatioSeedCriteria.h
  2820. * test/ShareRatioSeedCriteriaTest.cc
  2821. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  2822. * Release 1.3.0
  2823. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  2824. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2825. Nynorsk translations. Thanks to all translators.
  2826. * po/es.po
  2827. * po/ja.po
  2828. * po/nn.po
  2829. * po/ru.po
  2830. * po/uk.po
  2831. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  2832. Rewritten isInRange()
  2833. * src/DHTBucket.cc
  2834. * test/DHTBucketTest.cc
  2835. 2009-03-30 Tatsuhiro Tsujikawa <[email protected]>
  2836. Fixed typo
  2837. * doc/aria2c.1.txt
  2838. 2009-03-29 Tatsuhiro Tsujikawa <[email protected]>
  2839. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2840. malloc/realloc is not used.
  2841. * src/configure.ac
  2842. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  2843. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2844. char* bitfield instead of stl container for efficiency.
  2845. PieceSelector::select now takes this
  2846. bitfield. RarestPieceSelector::select now also performs
  2847. efficiently for this change. bitfield namespace is introduced and
  2848. it has several helper functions to handle basic bitfield
  2849. operations such as test, count set bits, etc.
  2850. * src/BitfieldMan.cc
  2851. * src/BitfieldMan.h
  2852. * src/DefaultBtRequestFactory.cc
  2853. * src/DefaultPieceStorage.cc
  2854. * src/DefaultPieceStorage.h
  2855. * src/LongestSequencePieceSelector.cc
  2856. * src/LongestSequencePieceSelector.h
  2857. * src/Makefile.am
  2858. * src/Piece.cc
  2859. * src/Piece.h
  2860. * src/PieceSelector.h
  2861. * src/RarestPieceSelector.cc
  2862. * src/RarestPieceSelector.h
  2863. * src/Util.cc
  2864. * src/Util.h
  2865. * src/bitfield.h
  2866. * test/BitfieldManTest.cc
  2867. * test/LongestSequencePieceSelectorTest.cc
  2868. * test/Makefile.am
  2869. * test/RarestPieceSelectorTest.cc
  2870. * test/UtilTest.cc
  2871. * test/bitfieldTest.cc
  2872. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  2873. Made accepted socket non-block.
  2874. * src/FtpNegotiationCommand.cc
  2875. * src/HttpListenCommand.cc
  2876. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  2877. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2878. * src/AbstractSingleDiskAdaptor.cc
  2879. * src/DefaultPieceStorage.cc
  2880. * src/DiskAdaptor.h
  2881. * src/DiskAdaptor.h
  2882. * src/MultiFileAllocationIterator.cc
  2883. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  2884. Run
  2885. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2886. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2887. it doesn't need to be called every time when
  2888. DefaultBtInteractive::doInteractionProcessing() is called.
  2889. * src/DefaultBtInteractive.cc
  2890. * src/DefaultBtInteractive.h
  2891. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2892. Documented 'falloc' in man page.
  2893. * doc/aria2c.1.txt
  2894. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2895. Updated doc
  2896. * src/usage_text.h
  2897. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2898. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2899. allocation mode uses posix_fallocate() system call to allocate
  2900. file on disk. If you are using newer file systems such as ext4
  2901. (with extents support), btrfs or xfs, 'falloc' is your best
  2902. choice. It allocates large(few GiB) files almost instantly. Don't
  2903. use 'falloc' with legacy file systems such as ext3 because it
  2904. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2905. until allocation finishes. 'falloc' may not be available if your
  2906. system doesn't have posix_fallocate() system call.
  2907. * configure.ac
  2908. * src/AbstractDiskWriter.cc
  2909. * src/AbstractDiskWriter.h
  2910. * src/AbstractSingleDiskAdaptor.cc
  2911. * src/BinaryStream.h
  2912. * src/BtCheckIntegrityEntry.cc
  2913. * src/ByteArrayDiskWriter.h
  2914. * src/CheckIntegrityEntry.cc
  2915. * src/CheckIntegrityEntry.h
  2916. * src/DefaultPieceStorage.cc
  2917. * src/DiskAdaptor.cc
  2918. * src/DiskAdaptor.h
  2919. * src/DiskWriter.h
  2920. * src/FallocFileAllocationIterator.cc
  2921. * src/FallocFileAllocationIterator.h
  2922. * src/FileAllocationEntry.cc
  2923. * src/FileAllocationEntry.h
  2924. * src/Makefile.am
  2925. * src/MultiFileAllocationIterator.cc
  2926. * src/MultiFileAllocationIterator.h
  2927. * src/OptionHandlerFactory.cc
  2928. * src/RequestGroup.cc
  2929. * src/StreamCheckIntegrityEntry.cc
  2930. * src/prefs.cc
  2931. * src/prefs.h
  2932. * src/usage_text.h
  2933. * test/FallocFileAllocationIteratorTest.cc
  2934. * test/Makefile.am
  2935. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2936. Removed duplicate enableDirectIO() call.
  2937. * src/MultiFileAllocationIterator.cc
  2938. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2939. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2940. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2941. cost of std::rotate().
  2942. * src/RarestPieceSelector.cc
  2943. * src/RarestPieceSelector.h
  2944. * test/RarestPieceSelectorTest.cc
  2945. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  2946. Updated usage doc for --bt-tracker-interval option.
  2947. * src/usage_text.h
  2948. * doc/aria2c.1.txt
  2949. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  2950. Documented --bt-tracker-interval option in man page.
  2951. * doc/aria2c.1.txt
  2952. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2953. Added an option to specify the interval between tracker requests.
  2954. If non-zero value is specified, aria2 uses it and ignores the
  2955. interval value in the response of tracker. If zero is specified,
  2956. aria2 determines the inteval value based on the tarcker response
  2957. and download progress.
  2958. * src/DefaultBtAnnounce.cc
  2959. * src/DefaultBtAnnounce.h
  2960. * src/OptionHandlerFactory.cc
  2961. * src/RequestGroup.cc
  2962. * src/prefs.cc
  2963. * src/prefs.h
  2964. * src/usage_text.h
  2965. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2966. Added operator+=, operator-=, operator-
  2967. * src/TransferStat.cc
  2968. * src/TransferStat.h
  2969. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2970. Refactored RarestPieceSelector to reduce CPU load, especially for
  2971. addPieceStats.
  2972. * src/RarestPieceSelector.cc
  2973. * src/RarestPieceSelector.h
  2974. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2975. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2976. getAllMissingBlockIndexes to reduce a call to
  2977. array_function_base::operator[].
  2978. * src/BitfieldMan.cc
  2979. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2980. Cached TransferStat/download speed to avoid to sum them up in each
  2981. call.
  2982. * src/DefaultPeerStorage.cc
  2983. * src/DefaultPeerStorage.h
  2984. * src/SegmentMan.cc
  2985. * src/SegmentMan.h
  2986. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  2987. Typedefed cuid_t as int32_t in Command.h
  2988. * src/CUIDCounter.h
  2989. * src/Command.cc
  2990. * src/Command.h
  2991. * src/DownloadEngine.cc
  2992. * src/DownloadEngine.h
  2993. * src/PeerStat.h
  2994. * src/SegmentMan.cc
  2995. * src/SegmentMan.h
  2996. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  2997. Reduced the number of calls to PeerStorage::calculateStat() and
  2998. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2999. transfer rate.
  3000. * src/DefaultBtInteractive.cc
  3001. * src/DefaultBtMessageDispatcher.cc
  3002. * src/DefaultPeerStorage.cc
  3003. * src/DefaultPeerStorage.h
  3004. * src/DownloadCommand.cc
  3005. * src/DownloadEngine.cc
  3006. * src/PeerStorage.h
  3007. * src/SegmentMan.cc
  3008. * src/SegmentMan.h
  3009. * test/MockPeerStorage.h
  3010. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3011. Prepended _dir+"/" after joining path elements in torrent file.
  3012. * src/DefaultBtContext.cc
  3013. * test/DefaultBtContextTest.cc
  3014. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3015. Added missing IndexBtMessageValidator.h
  3016. * src/Makefile.am
  3017. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3018. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3019. Chinese translations. Thank you for contributing our project.
  3020. * po/id.po
  3021. * po/it.po
  3022. * po/ru.po
  3023. * po/uk.po
  3024. * po/zh_CN.po
  3025. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3026. Updated README
  3027. * README
  3028. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3029. Bump up version number to 1.3.0
  3030. * configure.ac
  3031. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3032. Updated doc
  3033. * src/DefaultBtContext.h
  3034. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3035. Slice/joinPath for name of single torrent.
  3036. * src/DefaultBtContext.cc
  3037. * test/DefaultBtContextTest.cc
  3038. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3039. Updated man page: Documented --dry-run and --index-out
  3040. options. Changed the default value of --uri-selector and
  3041. --http-auth-challenge options. Removed --direct-file-mapping
  3042. option. Added example for --index-out
  3043. * doc/aria2c.1.txt
  3044. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3045. Updated TEXT_DRY_RUN
  3046. * src/usage_text.h
  3047. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3048. Changed the default value of --uri-selector option from 'inorder'
  3049. to 'feedback'
  3050. * src/OptionHandlerFactory.cc
  3051. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3052. Included current URI in exception message.
  3053. * src/AbstractCommand.cc
  3054. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3055. Renamed ServerStatURISelector as FeedbackURISelector.
  3056. * src/FeedbackURISelector.cc
  3057. * src/FeedbackURISelector.h
  3058. * src/Makefile.am
  3059. * src/RequestGroupMan.cc
  3060. * src/ServerStatURISelector.cc
  3061. * src/ServerStatURISelector.h
  3062. * test/FeedbackURISelectorTest.cc
  3063. * test/Makefile.am
  3064. * test/ServerStatURISelectorTest.cc
  3065. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3066. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3067. all URIs are tested and their timeout is not reached.
  3068. * src/AdaptiveURISelector.cc
  3069. * src/AdaptiveURISelector.h
  3070. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3071. Changed the default value of --http-auth-challenge option to false.
  3072. * src/OptionHandlerFactory.cc
  3073. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3074. Reuse URIs when all unused URIs run out.
  3075. * src/OptionHandlerFactory.cc
  3076. * src/RequestGroup.cc
  3077. * src/prefs.cc
  3078. * src/prefs.h
  3079. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3080. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3081. and BtRejectMessage are derived from RangeBtMessage class.
  3082. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3083. derived from IndexBtMessage class. BtChokeMessage,
  3084. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3085. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3086. ZeroBtMessage class.
  3087. * src/AbstractBtMessage.cc
  3088. * src/AbstractBtMessage.h
  3089. * src/BtAllowedFastMessage.cc
  3090. * src/BtAllowedFastMessage.h
  3091. * src/BtAllowedFastMessageValidator.h: Removed
  3092. * src/BtBitfieldMessage.cc
  3093. * src/BtBitfieldMessage.h
  3094. * src/BtCancelMessage.cc
  3095. * src/BtCancelMessage.h
  3096. * src/BtCancelMessageValidator.h: Removed
  3097. * src/BtChokeMessage.cc
  3098. * src/BtChokeMessage.h
  3099. * src/BtExtendedMessage.cc
  3100. * src/BtExtendedMessage.h
  3101. * src/BtHandshakeMessage.cc
  3102. * src/BtHandshakeMessage.h
  3103. * src/BtHaveAllMessage.cc
  3104. * src/BtHaveAllMessage.h
  3105. * src/BtHaveMessage.cc
  3106. * src/BtHaveMessage.h
  3107. * src/BtHaveMessageValidator.h: Removed
  3108. * src/BtHaveNoneMessage.cc
  3109. * src/BtHaveNoneMessage.h
  3110. * src/BtInterestedMessage.cc
  3111. * src/BtInterestedMessage.h
  3112. * src/BtKeepAliveMessage.cc
  3113. * src/BtKeepAliveMessage.h
  3114. * src/BtNotInterestedMessage.cc
  3115. * src/BtNotInterestedMessage.h
  3116. * src/BtPieceMessage.cc
  3117. * src/BtPieceMessage.h
  3118. * src/BtPortMessage.cc
  3119. * src/BtPortMessage.h
  3120. * src/BtRejectMessage.cc
  3121. * src/BtRejectMessage.h
  3122. * src/BtRejectMessageValidator.h: Removed
  3123. * src/BtRequestMessage.cc
  3124. * src/BtRequestMessage.h
  3125. * src/BtRequestMessageValidator.h: Removed
  3126. * src/BtSuggestPieceMessage.cc
  3127. * src/BtSuggestPieceMessage.h
  3128. * src/BtSuggestPieceMessageValidator.h: Removed
  3129. * src/BtUnchokeMessage.cc
  3130. * src/BtUnchokeMessage.h
  3131. * src/DefaultBtMessageFactory.cc
  3132. * src/IndexBtMessage.cc
  3133. * src/IndexBtMessage.h
  3134. * src/IndexBtMessageValidator.h
  3135. * src/Makefile.am
  3136. * src/PeerMessageUtil.cc
  3137. * src/PeerMessageUtil.h
  3138. * src/RangeBtMessage.cc
  3139. * src/RangeBtMessage.h
  3140. * src/RangeBtMessageValidator.h
  3141. * src/SimpleBtMessage.cc
  3142. * src/SimpleBtMessage.h
  3143. * src/ZeroBtMessage.cc
  3144. * src/ZeroBtMessage.h
  3145. * test/BtRequestMessageTest.cc
  3146. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  3147. Reverted usage_text.h to r1093 to avoid to lose translated
  3148. messages.
  3149. * src/usage_text.h
  3150. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  3151. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3152. declared as non-const previously is now const and defined in class
  3153. definition.
  3154. * src/AbstractBtMessage.cc
  3155. * src/AbstractBtMessage.h
  3156. * src/BtAllowedFastMessage.cc
  3157. * src/BtAllowedFastMessage.h
  3158. * src/BtBitfieldMessage.h
  3159. * src/BtCancelMessage.cc
  3160. * src/BtCancelMessage.h
  3161. * src/BtChokeMessage.cc
  3162. * src/BtChokeMessage.h
  3163. * src/BtExtendedMessage.cc
  3164. * src/BtExtendedMessage.h
  3165. * src/BtHandshakeMessage.cc
  3166. * src/BtHandshakeMessage.h
  3167. * src/BtHaveAllMessage.cc
  3168. * src/BtHaveAllMessage.h
  3169. * src/BtHaveMessage.cc
  3170. * src/BtHaveMessage.h
  3171. * src/BtHaveNoneMessage.cc
  3172. * src/BtHaveNoneMessage.h
  3173. * src/BtInterestedMessage.cc
  3174. * src/BtInterestedMessage.h
  3175. * src/BtKeepAliveMessage.cc
  3176. * src/BtKeepAliveMessage.h
  3177. * src/BtMessage.h
  3178. * src/BtNotInterestedMessage.cc
  3179. * src/BtNotInterestedMessage.h
  3180. * src/BtPieceMessage.h
  3181. * src/BtPortMessage.cc
  3182. * src/BtPortMessage.h
  3183. * src/BtRejectMessage.cc
  3184. * src/BtRejectMessage.h
  3185. * src/BtRequestMessage.cc
  3186. * src/BtRequestMessage.h
  3187. * src/BtSuggestPieceMessage.cc
  3188. * src/BtSuggestPieceMessage.h
  3189. * src/BtUnchokeMessage.cc
  3190. * src/BtUnchokeMessage.h
  3191. * src/SimpleBtMessage.cc
  3192. * src/SimpleBtMessage.h
  3193. * test/MockBtMessage.h
  3194. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  3195. Use FileEntry::exists()
  3196. * src/MultiDiskAdaptor.cc
  3197. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  3198. Added exists()
  3199. * src/FileEntry.cc
  3200. * src/FileEntry.h
  3201. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3202. Added missing prefix dir.
  3203. * src/download_helper.cc
  3204. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3205. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3206. * src/CopyDiskAdaptor.cc: Removed
  3207. * src/CopyDiskAdaptor.h: Removed
  3208. * src/DefaultPieceStorage.cc
  3209. * src/Makefile.am
  3210. * src/OptionHandlerFactory.cc
  3211. * src/prefs.cc
  3212. * src/prefs.h
  3213. * src/usage_text.h
  3214. * test/CopyDiskAdaptorTest.cc: Removed
  3215. * test/Makefile.am
  3216. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3217. Rewritten isSameFileBeingDownloaded()
  3218. * src/RequestGroupMan.cc
  3219. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3220. Removed getName() from DownloadContext. getName() is declared in
  3221. BtContext.
  3222. * src/BtContext.h
  3223. * src/DownloadContext.h
  3224. * src/SingleFileDownloadContext.cc
  3225. * src/SingleFileDownloadContext.h
  3226. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3227. in AbstractSingleDiskAdaptor.
  3228. * src/AbstractSingleDiskAdaptor.h
  3229. * src/DiskAdaptor.h
  3230. * src/MultiDiskAdaptor.h
  3231. * src/RequestGroup.cc
  3232. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3233. MultiDiskAdaptor.
  3234. * src/DefaultPieceStorage.cc
  3235. * src/MultiDiskAdaptor.cc
  3236. * src/MultiDiskAdaptor.h
  3237. * test/MultiDiskAdaptorTest.cc
  3238. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  3239. FileEntry::getPath() contains store(top level) directory to
  3240. simplify path handling operation. In the previous implementation,
  3241. store directory is concatenated to FileEntry::getPath() in
  3242. DownloadContext.
  3243. * src/BtDependency.cc
  3244. * src/BtPostDownloadHandler.cc
  3245. * src/CopyDiskAdaptor.cc
  3246. * src/DefaultBtContext.cc
  3247. * src/DirectDiskAdaptor.cc
  3248. * src/FileEntry.cc
  3249. * src/FileEntry.h
  3250. * src/FtpNegotiationCommand.cc
  3251. * src/HttpResponse.cc
  3252. * src/HttpResponseCommand.cc
  3253. * src/Metalink2RequestGroup.cc
  3254. * src/MultiDiskAdaptor.cc
  3255. * src/MultiDiskAdaptor.h
  3256. * src/MultiFileAllocationIterator.cc
  3257. * src/RequestGroup.cc
  3258. * src/SingleFileDownloadContext.cc
  3259. * src/SingleFileDownloadContext.h
  3260. * src/download_helper.cc
  3261. * test/BtDependencyTest.cc
  3262. * test/CopyDiskAdaptorTest.cc
  3263. * test/DefaultBtContextTest.cc
  3264. * test/DefaultBtProgressInfoFileTest.cc
  3265. * test/DirectDiskAdaptorTest.cc
  3266. * test/DownloadHelperTest.cc
  3267. * test/FileEntryTest.cc
  3268. * test/MultiDiskAdaptorTest.cc
  3269. * test/MultiFileAllocationIteratorTest.cc
  3270. * test/RequestGroupTest.cc
  3271. * test/SingleFileDownloadContextTest.cc
  3272. 2009-03-09 Tatsuhiro Tsujikawa <[email protected]>
  3273. Fixed compiler warning
  3274. * src/download_helper.cc
  3275. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3276. Throw exception if same infohash torrent is now downloading.
  3277. * src/RequestGroup.cc
  3278. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3279. Added --dry-run option. In this mode, aria2 just checks whether
  3280. the remote file is available and doesn't download data. This
  3281. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3282. are canceled in this mode.
  3283. * src/FtpNegotiationCommand.cc
  3284. * src/HttpResponseCommand.cc
  3285. * src/HttpResponseCommand.h
  3286. * src/OptionHandlerFactory.cc
  3287. * src/RequestGroup.cc
  3288. * src/RequestGroupMan.cc
  3289. * src/prefs.cc
  3290. * src/prefs.h
  3291. * src/usage_text.h
  3292. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3293. Fixed compiler waring
  3294. * test/UriListParserTest.cc
  3295. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3296. Parse options in -i list using OptionParser.
  3297. * src/UriListParser.cc
  3298. * src/UriListParser.h
  3299. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3300. Don't reset URI in retry to avoid additional round trips because
  3301. of redirects.
  3302. * src/AbstractCommand.cc
  3303. * src/OptionHandlerFactory.cc
  3304. * src/prefs.cc
  3305. * src/prefs.h
  3306. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3307. Declared hide() in OptionHandler.
  3308. * src/NameMatchOptionHandler.h
  3309. * src/OptionHandler.h
  3310. * src/OptionHandlerImpl.h
  3311. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  3312. Updated doc
  3313. * src/Peer.h
  3314. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  3315. Added log message in setStatusInternal()
  3316. * src/ServerStat.cc
  3317. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  3318. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3319. effectively exclude failed server.
  3320. * src/AbstractCommand.cc
  3321. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  3322. Added --index-out option to specify each file path for torrent.
  3323. Here index shown in --show-files option is used to specify which
  3324. file path should be altered. For example, to change the file path
  3325. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3326. option multiple times: --index-out=1=aria2.tar.bz2
  3327. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3328. available. This option can be specified in -i list.
  3329. * src/DefaultBtContext.cc
  3330. * src/DefaultBtContext.h
  3331. * src/MultiDiskAdaptor.cc
  3332. * src/MultiDiskAdaptor.h
  3333. * src/MultiFileAllocationIterator.cc
  3334. * src/OptionHandlerFactory.cc
  3335. * src/OptionHandlerImpl.h
  3336. * src/Util.cc
  3337. * src/Util.h
  3338. * src/download_helper.cc
  3339. * src/prefs.cc
  3340. * src/prefs.h
  3341. * src/usage_text.h
  3342. * test/DefaultBtContextTest.cc
  3343. * test/MultiDiskAdaptorTest.cc
  3344. * test/MultiFileAllocationIteratorTest.cc
  3345. * test/UtilTest.cc
  3346. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  3347. Use Util::pathJoin()
  3348. * src/MetalinkParserController.cc
  3349. * test/test.xml
  3350. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  3351. Use Util::pathJoin()
  3352. * src/DefaultBtContext.cc
  3353. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  3354. Added Util::pathJoin()
  3355. * src/Util.h
  3356. * test/UtilTest.cc
  3357. 2009-03-04 Tatsuhiro Tsujikawa <[email protected]>
  3358. Applied basename function to remove directory element in
  3359. content-disposition value.
  3360. Return empty string if content-disposition value is ".." or ".".
  3361. * src/Util.cc
  3362. * test/UtilTest.cc
  3363. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3364. Added --max-overall-download-limit in man page.
  3365. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3366. * doc/aria2c.1.txt
  3367. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3368. Added --max-overall-download-limit option. Now --max-upload-limit
  3369. option is not ignored when --max-overall-upload-limit option has
  3370. non-zero value. aria2 checks download(upload) speed in the order:
  3371. first checks overall speed limit and if it is not exceeded, then
  3372. checks speed limit per download. Thus you can specify both
  3373. value. For example, set --max-overall-download-limit=1M and
  3374. --max-download-limit=500K to prevent from one download from eating
  3375. all overall speed limit.
  3376. * src/DefaultBtInteractive.cc
  3377. * src/DefaultBtInteractive.h
  3378. * src/DefaultBtMessageDispatcher.cc
  3379. * src/DefaultBtMessageDispatcher.h
  3380. * src/DownloadCommand.cc
  3381. * src/DownloadCommand.h
  3382. * src/FtpNegotiationCommand.cc
  3383. * src/HttpResponseCommand.cc
  3384. * src/OptionHandlerFactory.cc
  3385. * src/PeerInteractionCommand.cc
  3386. * src/RequestGroup.cc
  3387. * src/RequestGroup.h
  3388. * src/RequestGroupMan.cc
  3389. * src/RequestGroupMan.h
  3390. * src/prefs.cc
  3391. * src/prefs.h
  3392. * src/usage_text.h
  3393. * test/DefaultBtMessageDispatcherTest.cc
  3394. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3395. Documented select-file option in Input File section.
  3396. Documented --http-auth-challenge option.
  3397. * doc/aria2c.1.txt
  3398. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3399. Now select-file can be specified in the uri list(-i list).
  3400. * src/BtContext.cc
  3401. * src/BtContext.h
  3402. * src/RequestGroup.cc
  3403. * src/Sequence.h
  3404. * src/download_helper.cc
  3405. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3406. Made the upper value of --max-concurrent-downloads options unlimited.
  3407. * src/OptionHandlerFactory.cc
  3408. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  3409. Fixed the bug that disk writer is not created even if it shares
  3410. same piece with the preceding file if the length of previous file
  3411. is 0.
  3412. * src/MultiDiskAdaptor.cc
  3413. * test/MultiDiskAdaptorTest.cc
  3414. 2009-02-23 Tatsuhiro Tsujikawa <[email protected]>
  3415. In BitTorrent, Open files in read-only mode for hash check. After
  3416. that, re-open file in read/write mode only when the download is
  3417. not finished.
  3418. * src/AbstractDiskWriter.cc
  3419. * src/AbstractDiskWriter.h
  3420. * src/AbstractSingleDiskAdaptor.cc
  3421. * src/AbstractSingleDiskAdaptor.h
  3422. * src/BtCheckIntegrityEntry.cc
  3423. * src/DiskAdaptor.h
  3424. * src/DiskWriter.h
  3425. * src/MultiDiskAdaptor.cc
  3426. * src/MultiDiskAdaptor.h
  3427. * src/RequestGroup.cc
  3428. 2009-02-19 Tatsuhiro Tsujikawa <[email protected]>
  3429. Added --http-auth-challenge option. If it is set to true(by
  3430. default), aria2 sends HTTP authorization header only when it is
  3431. requested by the server. If false is set, then authorization
  3432. header is always sent to the server. This is useful for servers
  3433. that don't respond 401 code when authentication is required.
  3434. There is an exception: if username and password are embedded in
  3435. URI, authorization header is always sent to the server regardless
  3436. of this option.
  3437. * src/AuthConfigFactory.cc
  3438. * src/HttpSkipResponseCommand.cc
  3439. * src/OptionHandlerFactory.cc
  3440. * src/prefs.cc
  3441. * src/prefs.h
  3442. * src/usage_text.h
  3443. * test/AuthConfigFactoryTest.cc
  3444. * test/HttpRequestTest.cc
  3445. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3446. * Release 1.2.0
  3447. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3448. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3449. Thanks to all translators.
  3450. * po/es.po
  3451. * po/ja.po
  3452. * po/ru.po
  3453. * po/uk.po
  3454. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3455. Call deleteSocketForReadCheck() before socket is closed.
  3456. * src/HttpListenCommand.cc
  3457. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3458. Defined virtual destructor for BObject.
  3459. * src/bencode.h
  3460. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3461. Rewritten BDE to make it efficient.
  3462. * src/bencode.cc
  3463. * src/bencode.h
  3464. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3465. Removed function throw list.
  3466. * src/bencode.cc
  3467. * src/bencode.h
  3468. * test/BencodeTest.cc
  3469. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3470. Enclosed all URLs in double quotes in command-line examples.
  3471. * doc/aria2c.1.txt
  3472. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3473. Updated reference/see also section.
  3474. * README
  3475. * doc/aria2c.1.txt
  3476. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3477. Reorganized man page based on man man-pages.
  3478. * doc/aria2c.1.txt
  3479. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3480. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3481. because same documents are available in man page. Added
  3482. References section.
  3483. * README
  3484. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3485. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3486. PERFORMANCE PROFILE section.
  3487. * doc/aria2c.1.txt
  3488. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3489. Rewritten the section for configuration file.
  3490. * README
  3491. * doc/aria2c.1.txt
  3492. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3493. Fixed the segmentation fault during execution of choking algorithm
  3494. in leecher state because of broken compare operator
  3495. implementation.
  3496. * src/BtLeecherStateChoke.cc
  3497. * src/BtLeecherStateChoke.h
  3498. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3499. Open file in binary mode.
  3500. * src/CookieStorage.cc
  3501. * src/DHTSetup.cc
  3502. * src/DHTUtil.cc
  3503. * src/Netrc.cc
  3504. * src/NsCookieParser.cc
  3505. * src/ProtocolDetector.cc
  3506. * src/RequestGroupMan.cc
  3507. * src/Signature.cc
  3508. * src/bencode.cc
  3509. * src/download_helper.cc
  3510. * src/option_processing.cc
  3511. * test/CookieParserTest.cc
  3512. * test/DefaultBtProgressInfoFileTest.cc
  3513. * test/FileTest.cc
  3514. * test/GZipDecoderTest.cc
  3515. * test/RequestGroupManTest.cc
  3516. * test/SignatureTest.cc
  3517. * test/SingleFileAllocationIteratorTest.cc
  3518. * test/UriListParserTest.cc
  3519. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3520. Removed operator[] because it is ambiguous with built-in []
  3521. operator.
  3522. * src/array_fun.h
  3523. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3524. Fixed compile error
  3525. * src/OptionParser.cc
  3526. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3527. Added missing call to arrayWrapperConst
  3528. * test/array_funTest.cc
  3529. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3530. Use array_wrapper instead of array_ptr.
  3531. * src/DHTRoutingTableDeserializer.cc
  3532. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3533. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3534. * src/array_fun.h
  3535. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3536. Added array_wrapper template.
  3537. * src/array_fun.h
  3538. * test/array_funTest.cc
  3539. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3540. Use operator T* of array_ptr.
  3541. * src/OptionParser.cc
  3542. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3543. Use localhost instead of 127.0.0.1
  3544. * test/FtpConnectionTest.cc
  3545. * test/MSEHandshakeTest.cc
  3546. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3547. Added operator T*
  3548. * src/array_fun.h
  3549. * test/array_funTest.cc
  3550. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3551. Use dynamically allocated char array to detect memory access
  3552. violation.
  3553. * src/DHTRoutingTableDeserializer.cc
  3554. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3555. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3556. defined.
  3557. * src/PeerMessageUtil.cc
  3558. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3559. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3560. * configure.ac
  3561. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3562. Added a check to see struct sockaddr_in has sin_len member.
  3563. * configure.ac
  3564. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3565. Fixed buffer overrun.
  3566. * src/DHTRoutingTableDeserializer.cc
  3567. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3568. Added LL for long long int constant.
  3569. * test/FtpConnectionTest.cc
  3570. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3571. Casted to unsigned int to suppress compiler warning on netbsd.
  3572. * src/BtRuntime.h
  3573. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3574. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3575. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3576. type time_t.
  3577. * src/SimpleLogger.cc
  3578. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3579. Added test for FtpConnection::receiveSizeResponse().
  3580. * test/FtpConnectionTest.cc
  3581. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3582. Fix epoll error on the old kernel 2.6.8 or ealier.
  3583. * src/EpollEventPoll.cc
  3584. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3585. Use Util::parseLLInt instead of sscanf for portability. The
  3586. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3587. * src/FtpConnection.cc
  3588. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3589. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3590. block. It should not filter anything.
  3591. * src/BitfieldMan.cc
  3592. * src/ConsoleStatCalc.cc
  3593. * test/BitfieldManTest.cc
  3594. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3595. Fixed the bug that the boolean options that don't take arguments
  3596. don't work.
  3597. * src/OptionHandlerImpl.h
  3598. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3599. Fixed broken selected file BitTorrent download.
  3600. * src/MultiDiskAdaptor.cc
  3601. * test/MultiDiskAdaptorTest.cc
  3602. * test/MultiFileAllocationIteratorTest.cc
  3603. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3604. Fixed #define guard for EpollEventPoll
  3605. * src/EpollEventPoll.h
  3606. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3607. Wait 2 seconds. 1 second is sometimes not enough.
  3608. * test/TimeSeedCriteriaTest.cc
  3609. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3610. Use localhost instead of 127.0.0.1.
  3611. * test/DHTConnectionImplTest.cc
  3612. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3613. Suppressed compiler warning.
  3614. * src/AdaptiveURISelector.cc
  3615. * src/DefaultPieceStorage.cc
  3616. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3617. Defined virtual destructor.
  3618. * src/MetalinkParserState.h
  3619. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3620. Give NULL for second argument of getaddrinfo instead of "0".
  3621. * src/NameResolver.cc
  3622. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3623. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3624. included strptime doesn't parse data for this format.
  3625. * src/FtpConnection.cc
  3626. * test/FtpConnectionTest.cc
  3627. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3628. Removed tests giving -1 for unsigned argument.
  3629. * test/SingleFileDownloadContextTest.cc
  3630. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3631. Don't use sha256 in tests because it might not be supported by the
  3632. SSL library.
  3633. * test/MetalinkProcessorTest.cc
  3634. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3635. Removed tests giving -1 for unsigned argument.
  3636. * test/AlphaNumberDecoratorTest
  3637. * test/BitfieldManTest.cc
  3638. * test/DefaultBtContextTest.cc
  3639. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3640. Fixed compile error without libcares when epoll is available.
  3641. * src/EpollEventPoll.cc
  3642. 2009-02-09 Tatsuhiro Tsujikawa <[email protected]>
  3643. Included fstream instead of iostream.
  3644. * test/SignatureTest.cc
  3645. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3646. Removed #include <algorithm>
  3647. * test/RequestGroupTest.cc
  3648. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3649. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3650. using RequestGroup::extractURIResult().
  3651. * src/AdaptiveURISelector.cc
  3652. * src/RequestGroup.cc
  3653. * src/RequestGroup.h
  3654. * test/RequestGroupTest.cc
  3655. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3656. Added tests for array_ptr.
  3657. * test/array_funTest.cc
  3658. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3659. Don't send ip parameter to a tracker if ip parameter is empty
  3660. string.
  3661. * src/DefaultBtAnnounce.cc
  3662. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3663. Adjusted line feed.
  3664. * src/version_usage.cc
  3665. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3666. Print tags, possible values when OptionHandlerException is caught.
  3667. * src/option_processing.cc
  3668. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3669. Changed the message for FatalException.
  3670. * src/OptionParser.cc
  3671. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3672. Documented --bt-external-ip option in man page. Updated man pages
  3673. for --proxy-method option.
  3674. * doc/aria2c.1.txt
  3675. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3676. Use GET method for FTP via HTTP proxy.
  3677. * src/FtpInitiateConnectionCommand.cc
  3678. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3679. Changed the default value of --proxy-method option from 'tunnel'
  3680. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3681. option.
  3682. * src/AbstractCommand.cc
  3683. * src/AbstractCommand.h
  3684. * src/FtpInitiateConnectionCommand.cc
  3685. * src/HttpDownloadCommand.cc
  3686. * src/HttpInitiateConnectionCommand.cc
  3687. * src/HttpInitiateConnectionCommand.h
  3688. * src/OptionHandlerFactory.cc
  3689. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3690. Initialized _logger
  3691. * src/SelectEventPoll.cc
  3692. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3693. Defined a copy constructor for the same type.
  3694. * src/SharedHandle.h
  3695. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3696. Added OptionParser::parseArg() which internally uses getopt_long
  3697. to parse command-line options. All command-line options are now
  3698. configured by OptionHandler. No manual editing of struct option*
  3699. is required any more.
  3700. * src/NameMatchOptionHandler.h
  3701. * src/OptionHandler.h
  3702. * src/OptionHandlerFactory.cc
  3703. * src/OptionHandlerImpl.h
  3704. * src/OptionParser.cc
  3705. * src/OptionParser.h
  3706. * src/array_fun.h
  3707. * src/main.cc
  3708. * src/option_processing.cc
  3709. * test/OptionHandlerTest.cc
  3710. * test/OptionParserTest.cc
  3711. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3712. Fixed configure error with --disable-epoll
  3713. * configure.ac
  3714. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3715. Fixed compile error when HAVE_EPOLL is not defined.
  3716. Fixed linker error on bigendian systems.
  3717. * src/SocketCore.cc
  3718. * src/SocketCore.h
  3719. * test/DefaultBtProgressInfoFileTest.cc
  3720. 2009-02-04 Tatsuhiro Tsujikawa <[email protected]>
  3721. Added --bt-external-ip option. You can specify the external IP
  3722. address to report to a BitTorrent tracker. Although this function
  3723. is named 'external', it can accept any kind of IP addresses.
  3724. * src/DefaultBtAnnounce.cc
  3725. * src/OptionHandlerFactory.cc
  3726. * src/option_processing.cc
  3727. * src/prefs.cc
  3728. * src/prefs.h
  3729. * src/usage_text.h
  3730. * test/DefaultBtAnnounceTest.cc
  3731. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  3732. Extracted the algorithm to find the longest incremental sequence
  3733. as max_sequence template.
  3734. * src/LongestSequencePieceSelector.cc
  3735. * src/a2algo.h
  3736. * test/Makefile.am
  3737. * test/a2algoTest.cc
  3738. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  3739. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3740. * src/usage_text.h
  3741. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  3742. Updated doc for --uri-selector, --http-server-listen-port and
  3743. --enable-http-server option. Documented --event-poll option.
  3744. * doc/aria2c.1.txt
  3745. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  3746. Updated doc for --enable-http-server.
  3747. * src/usage_text.h
  3748. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  3749. Documented --http-server-listen-port and --enable-http-server in
  3750. man page.
  3751. * doc/aria2c.1.txt
  3752. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3753. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3754. translations. Thanks to all translators.
  3755. * po/es.po
  3756. * po/id.po
  3757. * po/it.po
  3758. * po/ru.po
  3759. * po/uk.po
  3760. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3761. Bump up version number to 1.2.0
  3762. * configure.ac
  3763. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3764. BtContext::getAnnounceTiers() now returns const reference.
  3765. * src/BtContext.h
  3766. * src/DefaultBtContext.cc
  3767. * src/DefaultBtContext.h
  3768. * test/MockBtContext.h
  3769. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3770. Change the number of retries for tracker request based on the
  3771. number of available tracker in a torrent file.
  3772. * src/TrackerWatcherCommand.cc
  3773. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3774. Added _maxTries property to RequestGroup and assign the option
  3775. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3776. RequestGroup::getMaxTries() instead of
  3777. Option::getAsInt(PREF_MAX_TRIES).
  3778. * src/AbstractCommand.cc
  3779. * src/RequestGroup.cc
  3780. * src/RequestGroup.h
  3781. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3782. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3783. Mandriva. I modified the patch: make RequestGroup have the
  3784. timeout value and AdaptiveURISelector directly modifies that
  3785. value.
  3786. * src/AbstractCommand.cc
  3787. * src/AdaptiveURISelector.cc
  3788. * src/AdaptiveURISelector.h
  3789. * src/FtpNegotiationCommand.cc
  3790. * src/RequestGroup.cc
  3791. * src/RequestGroup.h
  3792. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3793. Fixed compiler warning
  3794. * test/IteratableChecksumValidatorTest.cc
  3795. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  3796. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3797. integrated downloads. This PieceSelector subclass finds the
  3798. longest continuous sequence in the available missing pieces and
  3799. selects the last index of such sequence. This makes HTTP/FTP
  3800. connections less interrupted by the pieces obtained by BitTorrent
  3801. peers.
  3802. * src/DefaultPieceStorage.cc
  3803. * src/DefaultPieceStorage.h
  3804. * src/LongestSequencePieceSelector.cc
  3805. * src/LongestSequencePieceSelector.h
  3806. * src/Makefile.am
  3807. * src/PieceSelector.h
  3808. * src/RarestPieceSelector.h
  3809. * src/RequestGroup.cc
  3810. * test/BtDependencyTest.cc
  3811. * test/DefaultPieceStorageTest.cc
  3812. * test/IteratableChecksumValidatorTest.cc
  3813. * test/LongestSequencePieceSelectorTest.cc
  3814. * test/Makefile.am
  3815. * test/SegmentManTest.cc
  3816. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  3817. Fixed the bug that the average speed is wrong in
  3818. http/ftp/BitTorrent integrated download. Only the download bytes
  3819. in BitTorrent were considered.
  3820. * src/RequestGroup.cc
  3821. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  3822. Choose port for BitTorrent/DHT randomly from the specified range.
  3823. * src/DHTConnectionImpl.cc
  3824. * src/PeerListenCommand.cc
  3825. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  3826. Send HTTP Authorization header only if it is requested by the
  3827. server(response 401). There are some exceptions. The authorization
  3828. header for proxy is always sent if it is available without request
  3829. by the server. If username/password is specified in the URI, it
  3830. is immediately sent to the server without request by the server.
  3831. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3832. SharedHandle<AuthConfig>().
  3833. NetrcAuthResolver::resolveAuthConfig() returns
  3834. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3835. * src/AbstractAuthResolver.cc
  3836. * src/AbstractProxyRequestCommand.cc
  3837. * src/AuthConfigFactory.cc
  3838. * src/AuthConfigFactory.h
  3839. * src/HttpConnection.cc
  3840. * src/HttpRequest.cc
  3841. * src/HttpRequest.h
  3842. * src/HttpResponse.cc
  3843. * src/HttpResponseCommand.cc
  3844. * src/HttpSkipResponseCommand.cc
  3845. * test/AuthConfigFactoryTest.cc
  3846. * test/HttpRequestTest.cc
  3847. * test/HttpResponseTest.cc
  3848. 2009-01-27 Tatsuhiro Tsujikawa <[email protected]>
  3849. Remove leading "--" from help keyword and a substring after "="
  3850. from help keyword, so that one can query options by '-h--max-' or
  3851. '-hmax-peers=10'.
  3852. * src/option_processing.cc
  3853. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  3854. Rewritten PStringVisitor and its implementation.
  3855. * src/PStringBuildVisitor.cc
  3856. * src/PStringBuildVisitor.h
  3857. * src/PStringDatum.h
  3858. * src/PStringNumLoop.h
  3859. * src/PStringSegment.cc
  3860. * src/PStringSegment.h
  3861. * src/PStringSelect.h
  3862. * src/PStringVisitor.h
  3863. * src/download_helper.cc
  3864. * test/PStringBuildVisitorTest.cc
  3865. * test/ParameterizedStringParserTest.cc
  3866. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  3867. Persist connection between the built-in HTTP server and a client
  3868. if a client supports keep-alive. Fixed the bug that aria2 exits
  3869. when the HTTP server receives EOF from a client.
  3870. * src/HttpServer.cc
  3871. * src/HttpServer.h
  3872. * src/HttpServerCommand.cc
  3873. * src/HttpServerCommand.h
  3874. * src/HttpServerResponseCommand.cc
  3875. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  3876. Added experimental built-in HTTP server. Currently, when a client
  3877. accesses to the server, it responds with the current download
  3878. progress. By default, it is disabled. To enable the server, give
  3879. --enable-http-server option. To change the default port number
  3880. for the server to listen to, use --http-server-listen-port option.
  3881. The response HTML is very simple and refreshes it self each 1
  3882. second. Because of this refresh, you see flicker in normal web
  3883. browser such as Firefox. I recommend to use console-based browser
  3884. such as elinks, w3m. To connect to the server, run 'elinks
  3885. http://localhost:6800/' while running aria2. Please replace port
  3886. number '6800'(which is default) with your preference.
  3887. * src/DownloadEngineFactory.cc
  3888. * src/HttpHeader.cc
  3889. * src/HttpHeader.h
  3890. * src/HttpHeaderProcessor.cc
  3891. * src/HttpHeaderProcessor.h
  3892. * src/HttpListenCommand.cc
  3893. * src/HttpListenCommand.h
  3894. * src/HttpServer.cc
  3895. * src/HttpServer.h
  3896. * src/HttpServerCommand.cc
  3897. * src/HttpServerCommand.h
  3898. * src/HttpServerResponseCommand.cc
  3899. * src/HttpServerResponseCommand.h
  3900. * src/Makefile.am
  3901. * src/OptionHandlerFactory.cc
  3902. * src/Util.cc
  3903. * src/Util.h
  3904. * src/help_tags.h
  3905. * src/option_processing.cc
  3906. * src/prefs.cc
  3907. * src/prefs.h
  3908. * src/usage_text.h
  3909. * test/HttpHeaderProcessorTest.cc
  3910. * test/UtilTest.cc
  3911. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3912. Removed.
  3913. * src/CheckIntegrityMan.cc
  3914. * src/FileAllocationMan.cc
  3915. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3916. Made (piece) hash check sequential for each RequestGroup because
  3917. simultaneous hash check is slower than sequential execution.
  3918. * src/CheckIntegrityCommand.cc
  3919. * src/CheckIntegrityDispatcherCommand.cc
  3920. * src/CheckIntegrityDispatcherCommand.h
  3921. * src/CheckIntegrityMan.h
  3922. * src/ConsoleStatCalc.cc
  3923. * src/DownloadCommand.cc
  3924. * src/DownloadEngine.cc
  3925. * src/DownloadEngine.h
  3926. * src/DownloadEngineFactory.cc
  3927. * src/Makefile.am
  3928. * src/Makefile.in
  3929. * src/RequestGroup.cc
  3930. * src/StatCalc.h
  3931. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3932. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3933. SequentialDispatcherCommand.
  3934. * src/FileAllocationDispatcherCommand.cc
  3935. * src/SequentialDispatcherCommand.h
  3936. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3937. Rewritten FileAllocationDispatcherCommand using brand new
  3938. SequentialDispatcherCommand.
  3939. * src/DownloadEngineFactory.cc
  3940. * src/FileAllocationCommand.cc
  3941. * src/FileAllocationDispatcherCommand.cc
  3942. * src/FileAllocationDispatcherCommand.h
  3943. * src/Makefile.am
  3944. * src/SequentialDispatcherCommand.h
  3945. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3946. Replaced FileAllocationMan with
  3947. SequentialPicker<FileAllocationEntry>.
  3948. * src/BtCheckIntegrityEntry.cc
  3949. * src/ConsoleStatCalc.cc
  3950. * src/DownloadEngine.cc
  3951. * src/DownloadEngine.h
  3952. * src/DownloadEngineFactory.cc
  3953. * src/FileAllocationCommand.cc
  3954. * src/FileAllocationDispatcherCommand.cc
  3955. * src/FileAllocationMan.h
  3956. * src/Makefile.am
  3957. * src/SequentialPicker.h
  3958. * src/StatCalc.h
  3959. * src/StreamCheckIntegrityEntry.cc
  3960. * test/Makefile.am
  3961. * test/SequentialPickerTest.cc
  3962. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3963. Added doc for adaptive URI selector.
  3964. * doc/aria2c.1.txt
  3965. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3966. Added doc for adaptive URI selector.
  3967. * src/usage_text.h
  3968. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3969. Added doc for --bt-max-peers option.
  3970. * doc/aria2c.1.txt
  3971. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3972. Added doc for --bt-hash-check-seed option.
  3973. * doc/aria2c.1.txt
  3974. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3975. Documented exit codes.
  3976. * doc/aria2c.1.txt
  3977. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  3978. Added --bt-max-peers option to specify the maximum number of peers
  3979. per torrent. 0 means unlimited number of peers.
  3980. * src/ActivePeerConnectionCommand.cc
  3981. * src/BtRuntime.h
  3982. * src/DefaultPeerStorage.cc
  3983. * src/DefaultPeerStorage.h
  3984. * src/OptionHandlerFactory.cc
  3985. * src/RequestGroup.cc
  3986. * src/option_processing.cc
  3987. * src/prefs.cc
  3988. * src/prefs.h
  3989. * src/usage_text.h
  3990. * test/DefaultPeerStorageTest.cc
  3991. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  3992. Added --bt-hash-check-seed option. If true is given to this
  3993. option, after hash check using --check-integrity option and file
  3994. is complete, continue to seed file. If you want to check file and
  3995. download it only when it is damaged or incomplete, set this option
  3996. to false. This option has effect only on BitTorrent download.
  3997. The default value is true(This is the same behavior with the
  3998. previous release).
  3999. * src/BtCheckIntegrityEntry.cc
  4000. * src/OptionHandlerFactory.cc
  4001. * src/option_processing.cc
  4002. * src/prefs.cc
  4003. * src/prefs.h
  4004. * src/usage_text.h
  4005. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  4006. Updated copyright year.
  4007. * src/version_usage.cc
  4008. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  4009. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4010. * doc/aria2c.1.txt
  4011. * src/usage_text.h
  4012. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  4013. Made the max value of split option unlimited.
  4014. * doc/aria2c.1.txt
  4015. * src/OptionHandlerFactory.cc
  4016. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  4017. Fixed compile warning/error.
  4018. * src/DownloadResult.h
  4019. * src/HttpDownloadCommand.cc
  4020. * src/ServerStat.cc
  4021. * test/RequestGroupTest.cc
  4022. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  4023. Added --event-poll option to select the method for polling events.
  4024. The available methods are "select" and "epoll". "epoll" is
  4025. available on Linux only. The earlier release has the compile
  4026. option to choose from these methods.
  4027. * configure.ac
  4028. * src/RequestGroupMan.cc
  4029. * src/OptionHandlerFactory.cc
  4030. * src/EpollEventPoll.h
  4031. * src/StreamFileAllocationEntry.cc
  4032. * src/a2io.h
  4033. * src/SelectEventPoll.h
  4034. * src/option_processing.cc
  4035. * src/prefs.h
  4036. * src/EpollEventPoll.cc
  4037. * src/EventPoll.h
  4038. * src/SocketCore.h
  4039. * src/Makefile.am
  4040. * src/main.cc
  4041. * src/DownloadEngine.h
  4042. * src/SelectEventPoll.cc
  4043. * src/DownloadEngine.cc
  4044. * src/SocketCore.cc
  4045. * src/DownloadEngineFactory.cc
  4046. * src/Makefile.in
  4047. * src/prefs.cc
  4048. * src/usage_text.h
  4049. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  4050. Included RecoverableException.h from main.cc
  4051. * src/main.cc
  4052. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  4053. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4054. now returns last error encountered in the HTTP/FTP downloads as a
  4055. exit status value. If all downloads finished successfully, aria2
  4056. returns 0. The error code is defined in src/DownloadResult.h.
  4057. The error occurred in the download currently in progress is not
  4058. reported as a last error. If no error has encountered but there
  4059. are in progress or waiting downloads, aria2 returns 7.
  4060. * src/AbstractCommand.cc
  4061. * src/DlAbortEx.h
  4062. * src/DlRetryEx.h
  4063. * src/DownloadCommand.cc
  4064. * src/DownloadFailureException.h
  4065. * src/DownloadResult.h
  4066. * src/FtpNegotiationCommand.cc
  4067. * src/HttpSkipResponseCommand.cc
  4068. * src/Makefile.am
  4069. * src/MultiUrlRequestInfo.cc
  4070. * src/MultiUrlRequestInfo.h
  4071. * src/RecoverableException.h
  4072. * src/RequestGroup.cc
  4073. * src/RequestGroup.h
  4074. * src/RequestGroupMan.cc
  4075. * src/RequestGroupMan.h
  4076. * src/URIResult.cc
  4077. * src/URIResult.h
  4078. * src/main.cc
  4079. * src/option_processing.cc
  4080. * test/RequestGroupTest.cc
  4081. 2009-01-06 Tatsuhiro Tsujikawa <[email protected]>
  4082. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4083. patch adds AdaptiveURISelector, which selects one of the bests
  4084. mirrors for first and reserved connections. For supplementary
  4085. ones, it returns mirrors which has not been tested yet, and if
  4086. each of them already tested, returns mirrors which has to be
  4087. tested again. Otherwise, it doesn't return anymore mirrors.
  4088. * src/AdaptiveURISelector.cc
  4089. * src/AdaptiveURISelector.h
  4090. * src/FtpNegotiationCommand.cc
  4091. * src/HttpResponseCommand.cc
  4092. * src/Makefile.am
  4093. * src/Makefile.in
  4094. * src/OptionHandlerFactory.cc
  4095. * src/RequestGroup.cc
  4096. * src/RequestGroup.h
  4097. * src/RequestGroupMan.cc
  4098. * src/ServerStat.cc
  4099. * src/ServerStat.h
  4100. * src/ServerStatMan.cc
  4101. * src/SpeedCalc.cc
  4102. * src/URISelector.h
  4103. * src/prefs.cc
  4104. * src/prefs.h
  4105. * test/RequestGroupManTest.cc
  4106. * test/ServerStatManTest.cc
  4107. * test/ServerStatTest.cc
  4108. 2009-01-04 Tatsuhiro Tsujikawa <[email protected]>
  4109. Fixed unit test error.
  4110. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4111. 2008-12-30 Tatsuhiro Tsujikawa <[email protected]>
  4112. * Release 1.1.2
  4113. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  4114. Updated Russian translation. Thanks to the translators.
  4115. * po/ru.po
  4116. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  4117. Added the description of --use-head option to man page.
  4118. * doc/aria2c.1.txt
  4119. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  4120. Bump up version number to 1.1.2
  4121. * configure.ac
  4122. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  4123. Added --use-head option to toggle whether HEAD method should be
  4124. used in the first HTTP request. By default aria2 uses HEAD method
  4125. as the first request. When the server doesn't recognize HEAD, then
  4126. give aria2 --use-head=false to force aria2 to use GET method
  4127. instead.
  4128. * src/OptionHandlerFactory.cc
  4129. * src/RequestGroupMan.cc
  4130. * src/option_processing.cc
  4131. * src/prefs.cc
  4132. * src/prefs.h
  4133. * src/usage_text.h
  4134. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  4135. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4136. message is received before CHOKE message. The old implementation
  4137. doen't clear the use-bit of the piece when recieved REJECT
  4138. message.
  4139. * src/DefaultBtMessageDispatcher.cc
  4140. * test/DefaultBtMessageDispatcherTest.cc
  4141. 2008-12-25 Tatsuhiro Tsujikawa <[email protected]>
  4142. * Release 1.1.1
  4143. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  4144. Bump up version number to 1.1.1.
  4145. * configure.ac
  4146. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  4147. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4148. is printed repeatedly.
  4149. * src/ConsoleStatCalc.cc
  4150. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  4151. * Release 1.1.0
  4152. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  4153. Added ifdef clause for conditional compilation.
  4154. * src/main.cc
  4155. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  4156. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4157. translations. Thanks to all translators.
  4158. * po/ja.po
  4159. * po/ru.po
  4160. * po/uk.po
  4161. * po/zh_CN.po
  4162. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  4163. Added the preceding ">>> " before the message "Printing the
  4164. contents of file..." to make the output more readable.
  4165. * src/main.cc
  4166. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  4167. Added try-catch block in the loop in showFiles() to continue the
  4168. operation even if the exception occurred in one file.
  4169. * src/main.cc (showFiles)
  4170. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  4171. Made messages in showFiles() translatable.
  4172. * po/aria2.pot
  4173. * src/main.cc
  4174. * src/message.h
  4175. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  4176. Print the contents of Torrent/Metalink files are printed without
  4177. -T/-M options.
  4178. * src/main.cc
  4179. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4180. Escaped '--' with '\--'
  4181. * README
  4182. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4183. Updated "How to build" section in README. Mentioned about
  4184. --with-ca-bundle compile option.
  4185. * README
  4186. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4187. Bump up version number to 1.1.0.
  4188. * configure.ac
  4189. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4190. Added a note for --dht-listen-port option.
  4191. * doc/aria2c.1.txt
  4192. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4193. Update doc for --realtime-chunk-checksum option.
  4194. * doc/aria2c.1.txt
  4195. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4196. Update doc for --realtime-chunk-checksum option.
  4197. * src/usage_text.h
  4198. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4199. Updated French, Japanese, Russian and Ukrainian translations.
  4200. Thanks to all translators.
  4201. * po/fr.po
  4202. * po/ja.po
  4203. * po/ru.po
  4204. * po/uk.po
  4205. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4206. Renamed aria2c.pot to aria2.pot
  4207. * po/aria2.pot
  4208. * po/aria2c.pot: Removed.
  4209. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4210. Removed MetaEntry.h
  4211. * src/Makefile.am
  4212. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  4213. Rename file by appending digits if a local file exists and its
  4214. file size is larger than that of remote file with --continue
  4215. option. The old implementation just throws exception in such case.
  4216. * src/RequestGroup.cc
  4217. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  4218. Fixed the bug that download progress summary is not printed in the
  4219. interval specified by the option.
  4220. * src/ConsoleStatCalc.cc
  4221. * src/ConsoleStatCalc.h
  4222. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  4223. Fixed compiler warning
  4224. * src/Cookie.cc
  4225. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  4226. Fixed the cookie implementation based on RFC2965.
  4227. Now if a value in domain field is not started with dot, then
  4228. prepend dot. That means a cookie with domain=sf.net is sent to
  4229. wiki.sf.net.
  4230. * src/Cookie.cc
  4231. * test/CookieParserTest.cc
  4232. * test/CookieStorageTest.cc
  4233. * test/CookieTest.cc
  4234. * test/NsCookieParserTest.cc
  4235. * test/Sqlite3MozCookieParserTest.cc
  4236. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  4237. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4238. is enabled and the server doesn't support keep-alive.
  4239. * src/AbstractCommand.cc
  4240. * src/DownloadCommand.cc
  4241. * src/HttpDownloadCommand.cc
  4242. * src/HttpDownloadCommand.h
  4243. * src/HttpResponseCommand.cc
  4244. * src/Request.cc
  4245. * src/Request.h
  4246. * test/RequestTest.cc
  4247. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4248. Removed Dictionary/List/Data and its related classes.
  4249. * src/BencodeVisitor.cc: Removed.
  4250. * src/BencodeVisitor.h: Removed.
  4251. * src/Data.cc: Removed.
  4252. * src/Data.h: Removed.
  4253. * src/Dictionary.cc: Removed.
  4254. * src/Dictionary.h: Removed.
  4255. * src/List.cc: Removed.
  4256. * src/List.h: Removed.
  4257. * src/Makefile.am
  4258. * src/MetaEntry.h: Removed.
  4259. * src/MetaEntryVisitor.h: Removed.
  4260. * src/MetaFileUtil.cc: Removed.
  4261. * src/MetaFileUtil.h: Removed.
  4262. * test/BencodeVisitorTest.cc: Removed.
  4263. * test/DataTest.cc: Removed.
  4264. * test/DictionaryTest.cc: Removed.
  4265. * test/ListTest.cc: Removed.
  4266. * test/Makefile.am
  4267. * test/MetaFileUtilTest.cc: Removed.
  4268. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4269. Removed include of MetaEntry.h
  4270. * test/DHTMessageTrackerEntryTest.cc
  4271. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4272. Use BDE instead of Dictionary/List/Data.
  4273. * src/AnnounceList.cc
  4274. * src/AnnounceList.h
  4275. * test/AnnounceListTest.cc
  4276. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4277. Use BDE instead of Dictionary/List/Data.
  4278. * src/DHTAbstractMessage.cc
  4279. * src/DHTAbstractMessage.h
  4280. * src/DHTAnnouncePeerMessage.cc
  4281. * src/DHTAnnouncePeerMessage.h
  4282. * src/DHTAnnouncePeerReplyMessage.cc
  4283. * src/DHTAnnouncePeerReplyMessage.h
  4284. * src/DHTFindNodeMessage.cc
  4285. * src/DHTFindNodeMessage.h
  4286. * src/DHTFindNodeReplyMessage.cc
  4287. * src/DHTFindNodeReplyMessage.h
  4288. * src/DHTGetPeersMessage.cc
  4289. * src/DHTGetPeersMessage.h
  4290. * src/DHTGetPeersReplyMessage.cc
  4291. * src/DHTGetPeersReplyMessage.h
  4292. * src/DHTMessageFactory.h
  4293. * src/DHTMessageFactoryImpl.cc
  4294. * src/DHTMessageFactoryImpl.h
  4295. * src/DHTMessageReceiver.cc
  4296. * src/DHTMessageTracker.cc
  4297. * src/DHTMessageTracker.h
  4298. * src/DHTPingMessage.cc
  4299. * src/DHTPingMessage.h
  4300. * src/DHTPingReplyMessage.cc
  4301. * src/DHTPingReplyMessage.h
  4302. * src/DHTQueryMessage.cc
  4303. * src/DHTQueryMessage.h
  4304. * src/DHTResponseMessage.cc
  4305. * src/DHTResponseMessage.h
  4306. * test/DHTAnnouncePeerMessageTest.cc
  4307. * test/DHTAnnouncePeerReplyMessageTest.cc
  4308. * test/DHTFindNodeMessageTest.cc
  4309. * test/DHTFindNodeReplyMessageTest.cc
  4310. * test/DHTGetPeersMessageTest.cc
  4311. * test/DHTGetPeersReplyMessageTest.cc
  4312. * test/DHTMessageFactoryImplTest.cc
  4313. * test/DHTMessageTrackerTest.cc
  4314. * test/DHTPingMessageTest.cc
  4315. * test/DHTPingReplyMessageTest.cc
  4316. * test/MockDHTMessageFactory.h
  4317. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4318. Added tests the case where length < 0 is specified.
  4319. * test/BencodeTest.cc
  4320. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4321. Fixed memory leak in decoderawstring()
  4322. * src/bencode.cc
  4323. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  4324. Added missing #ifdef guard. Added uc() function for String and
  4325. removeKey() for Dict.
  4326. * src/bencode.cc
  4327. * src/bencode.h
  4328. * test/BencodeTest.cc
  4329. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  4330. Use BDE instead of Dictionary/List/Data.
  4331. * src/HandshakeExtensionMessage.cc
  4332. * src/HandshakeExtensionMessage.h
  4333. * test/HandshakeExtensionMessageTest.cc
  4334. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  4335. Added --max-overall-upload-limit option. This option limits the
  4336. overall upload speed. Stated in help message that the existing
  4337. --max-upload-limit option limits the upload speed per each
  4338. torrent. Man page is also updated.
  4339. * doc/aria2c.1.txt
  4340. * src/DefaultBtMessageDispatcher.cc
  4341. * src/DefaultBtMessageDispatcher.h
  4342. * src/OptionHandlerFactory.cc
  4343. * src/PeerInteractionCommand.cc
  4344. * src/option_processing.cc
  4345. * src/prefs.cc
  4346. * src/prefs.h
  4347. * src/usage_text.h
  4348. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  4349. Use BDE instead of Dictionary/List/Data classes.
  4350. * src/CompactPeerListProcessor.cc
  4351. * src/CompactPeerListProcessor.h
  4352. * src/DefaultBtAnnounce.cc
  4353. * src/DefaultBtContext.cc
  4354. * src/DefaultBtContext.h
  4355. * src/DefaultPeerListProcessor.cc
  4356. * src/DefaultPeerListProcessor.h
  4357. * src/DelegatingPeerListProcessor.cc
  4358. * src/DelegatingPeerListProcessor.h
  4359. * src/PeerListProcessor.h
  4360. * src/UTPexExtensionMessage.cc
  4361. * src/Util.h
  4362. * src/message.h
  4363. * test/DefaultBtContextTest.cc
  4364. * test/DefaultPeerListProcessorTest.cc
  4365. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  4366. Added bencode helper functions and BDE class.
  4367. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4368. * src/Makefile.am
  4369. * src/bencode.cc
  4370. * src/bencode.h
  4371. * test/BencodeTest.cc
  4372. * test/Makefile.am
  4373. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  4374. Fixed the bug that bad URI is sent to the tracker when the announe
  4375. URI in torrent file includes query.
  4376. * src/DefaultBtAnnounce.cc
  4377. * test/DefaultBtAnnounceTest.cc
  4378. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  4379. Added Option::blank().
  4380. Use !Option::blank(name) instead of Option::defined(name) for
  4381. the options that take filename.
  4382. * src/MultiUrlRequestInfo.cc
  4383. * src/Option.cc
  4384. * src/Option.h
  4385. * src/main.cc
  4386. * src/option_processing.cc
  4387. * test/OptionTest.cc
  4388. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  4389. Documented the default value of --check-certificate option in man
  4390. page.
  4391. * doc/aria2c.1.txt
  4392. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  4393. Enabled --check-certificate by default. Added compile
  4394. time(configure) option --with-ca-bundle to specify CA bundle.
  4395. Warn if --check-certificate=true and --ca-certificate is not
  4396. specified or loading CA certificate is failed.
  4397. * configure.ac
  4398. * src/MultiUrlRequestInfo.cc
  4399. * src/OptionHandlerFactory.cc
  4400. * src/message.h
  4401. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  4402. Mentioned https tag in help option.
  4403. * doc/aria2c.1.txt
  4404. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  4405. Added `https' tag to help option category. Added https tag to
  4406. --ca-certificate, --certificate, --check-certificate and
  4407. --private-key option.
  4408. * src/OptionHandlerFactory.cc
  4409. * src/help_tags.h
  4410. * src/option_processing.cc
  4411. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4412. Changed the package name from `aria2c' to `aria2' in order to fix
  4413. the packaging issue in Debian and Fedora. The name of the
  4414. executable is not changed.
  4415. * configure.ac
  4416. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4417. Fixed typos
  4418. * src/usage_text.h
  4419. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4420. Fixed typos and updated doc.
  4421. * README
  4422. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4423. Fixed typos
  4424. * doc/aria2c.1.txt
  4425. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  4426. Fixed typos
  4427. * src/usage_text.h
  4428. 2008-11-30 Tatsuhiro Tsujikawa <[email protected]>
  4429. Print a message when no files to download.
  4430. * src/download_helper.cc
  4431. * src/main.cc
  4432. * src/message.h
  4433. 2008-11-28 Tatsuhiro Tsujikawa <[email protected]>
  4434. RFC3986 complied Percent-Encoding(urlencode).
  4435. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4436. ones.
  4437. * src/Request.cc
  4438. * src/Util.cc
  4439. * src/Util.h
  4440. * test/BtHandshakeMessageTest.cc
  4441. * test/DefaultBtAnnounceTest.cc
  4442. * test/DefaultBtContextTest.cc
  4443. * test/RequestTest.cc
  4444. * test/UtilTest.cc
  4445. 2008-11-27 Tatsuhiro Tsujikawa <[email protected]>
  4446. Fixed the bug that prevents aria2 from downloading 0-length files
  4447. via HTTP/FTP.
  4448. * src/DefaultBtContext.cc
  4449. * src/DefaultBtContext.h
  4450. * src/DownloadContext.h
  4451. * src/FtpNegotiationCommand.cc
  4452. * src/HttpResponseCommand.cc
  4453. * src/HttpResponseCommand.h
  4454. * src/RequestGroup.cc
  4455. * src/SingleFileDownloadContext.cc
  4456. * src/SingleFileDownloadContext.h
  4457. * test/BtPostDownloadHandlerTest.cc
  4458. * test/MetalinkPostDownloadHandlerTest.cc
  4459. * test/MockBtContext.h
  4460. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  4461. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4462. * src/option_processing.cc
  4463. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  4464. Applied aria2-1.0.1-mingw.patch.
  4465. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4466. mingw.
  4467. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4468. * src/SocketCore.cc
  4469. * src/a2netcompat.h
  4470. * test/SocketCoreTest.cc
  4471. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4472. * Release 1.0.1
  4473. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4474. Updated Ukrainian and Norwegian Nynorsk translations.
  4475. Thanks to all translators.
  4476. * po/nn.po
  4477. * po/uk.po
  4478. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4479. Don't show download result when -S option is used.
  4480. * src/main.cc
  4481. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4482. Bump up version number to 1.0.1
  4483. * configure.ac
  4484. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4485. Closed files after the test cases in MultiDiskWriterTest::
  4486. testResetDiskWriterEntries(). This will fix the unit test error
  4487. in mingw32 build.
  4488. * test/MultiDiskWriterTest.cc
  4489. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  4490. Use HEAD method to get file size from HTTP server for segmented
  4491. downloading.
  4492. The request to the BitTorrent Tracker always uses GET method because
  4493. the response of the tracker is small and it doesn't need segmented
  4494. download.
  4495. * src/FtpNegotiationCommand.cc
  4496. * src/HttpRequest.cc
  4497. * src/HttpResponseCommand.cc
  4498. * src/HttpSkipResponseCommand.cc
  4499. * src/RequestGroup.cc
  4500. * src/RequestGroup.h
  4501. * src/TrackerWatcherCommand.cc
  4502. * test/HttpRequestTest.cc
  4503. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  4504. Fixed the bug that causes floating exception when -T option is used and
  4505. no URIs are given.
  4506. * src/download_helper.cc
  4507. * test/DownloadHelperTest.cc
  4508. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4509. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4510. errors in MinGW:
  4511. Closed file after saving server stats (RequestGroupMan.cc)
  4512. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4513. Ignored case & handled 2-digit years (strptime.c)
  4514. Added missing suseconds_t definition (a2time.h)
  4515. Fixed socket CLOSE() define (SocketCore.cc)
  4516. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4517. Changed utime() test values from x000 to x00000 as MinGW failed on
  4518. values less than timezone offset from Unix epoch
  4519. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4520. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4521. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4522. handle negative dates (CookieParserTest.cc)
  4523. * src/a2time.h
  4524. * src/FtpConnection.cc
  4525. * src/RequestGroupMan.cc
  4526. * src/SocketCore.cc
  4527. * src/strptime.c
  4528. * test/CookieParserTest.cc
  4529. * test/CopyDiskAdaptorTest.cc
  4530. * test/FileTest.cc
  4531. * test/FtpConnectionTest.cc
  4532. * test/MultiDiskAdaptorTest.cc
  4533. 2008-11-20 Tatsuhiro Tsujikawa <[email protected]>
  4534. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4535. * doc/aria2c.1.txt
  4536. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  4537. * Release 1.0.0
  4538. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  4539. Added '~' to reserved characters.
  4540. * src/Util.cc
  4541. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  4542. Do not urlencode Request::url in setUrl() because we want unmodified
  4543. URL using Request::getUrl()
  4544. * src/Request.cc
  4545. * src/Request.h
  4546. * test/RequestTest.cc
  4547. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4548. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4549. Thanks to all translators.
  4550. * po/bg.po
  4551. * po/fr.po
  4552. * po/ja.po
  4553. * po/ru.po
  4554. * po/uk.po
  4555. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4556. Bump up version number to 1.0.0
  4557. * configure.ac
  4558. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4559. Added nosqlite3 build to build_test.sh.
  4560. Renamed noxml as expat.
  4561. * build_test.sh
  4562. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4563. Updated INPUT FILE section.
  4564. * doc/aria2c.1.txt
  4565. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4566. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4567. on big endian systems because test .aria2 files are made for little
  4568. endian systems.
  4569. * test/DefaultBtProgressInfoFileTest.cc
  4570. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4571. Dropped ares support.
  4572. * README
  4573. * configure.ac
  4574. * m4/libares.m4: Removed.
  4575. * src/AsyncNameResolver.cc
  4576. * src/Makefile.am
  4577. * test/Makefile.am
  4578. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  4579. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4580. Removed const qualifier from DiskWriter::size().
  4581. * src/AbstractDiskWriter.cc
  4582. * src/AbstractDiskWriter.h
  4583. * src/ByteArrayDiskWriter.cc
  4584. * src/ByteArrayDiskWriter.h
  4585. * src/DiskWriter.h
  4586. * test/ByteArrayDiskWriterTest.cc
  4587. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  4588. Fixed the bug that causes segmentation fault/bus error during executing
  4589. choking algorithm while seeding. This is caused by improper
  4590. implementation of compare function which returns inconsistent results
  4591. depending on the timing of last unchoke.
  4592. * src/BtSeederStateChoke.cc
  4593. * src/BtSeederStateChoke.h
  4594. * src/DefaultPeerStorage.cc
  4595. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4596. Removed TODO
  4597. * TODO
  4598. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4599. Added a section that explains how to pass argument to options that
  4600. takes optional arguments with its short form.
  4601. * doc/aria2c.1.txt
  4602. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4603. Added -u for the short form of --max-upload-limit option.
  4604. * doc/aria2c.1.txt
  4605. * src/option_processing.cc
  4606. * src/usage_text.h
  4607. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4608. Added -V for the short form of --check-integrity option.
  4609. Now the argument of --check-integrity option is optional:
  4610. if it is omitted, it is evaluated as true.
  4611. * doc/aria2c.1.txt
  4612. * src/option_processing.cc
  4613. * src/usage_text.h
  4614. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4615. Made the default value of --ftp-pasv option set to true and it can take
  4616. true/false values.
  4617. * src/OptionHandlerFactory.cc
  4618. * src/option_processing.cc
  4619. * src/usage_text.h
  4620. * doc/aria2c.1.txt
  4621. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  4622. Given custom random number generator to std::random_shuffle.
  4623. * src/AnnounceList.cc
  4624. * src/BtLeecherStateChoke.cc
  4625. * src/BtSeederStateChoke.cc
  4626. * src/DefaultBtRequestFactory.cc
  4627. * src/MetalinkEntry.cc
  4628. * src/RarestPieceSelector.cc
  4629. * src/SimpleRandomizer.cc
  4630. * src/SimpleRandomizer.h
  4631. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  4632. Now the default value of --enable-direct-io is true.
  4633. * src/OptionHandlerFactory.cc
  4634. * doc/aria2c.1.txt
  4635. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  4636. Erase peer before executing onReturningPeer and onErasingPeer
  4637. because choking algorithm called from onReturningPeer doesn't
  4638. like erasing peer in the active peer list.
  4639. * src/DefaultPeerStorage.cc
  4640. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4641. Instead of creating special filename in createDownloadResult() if
  4642. inMemoryDownload() is true, now it is done in getFilePath().
  4643. * src/RequestGroup.cc
  4644. * test/RequestGroupTest.cc
  4645. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4646. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4647. processed in memory. This is the fix for previous comment out.
  4648. * src/MemoryBufferPreDownloadHandler.cc
  4649. * src/RequestGroup.cc
  4650. * src/RequestGroup.h
  4651. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4652. Commented out the code which sets virtual directory path "[MEMORY]"
  4653. propagate directory to store to following RequestGroup.
  4654. * src/MemoryBufferPreDownloadHandler.cc
  4655. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4656. Bump up version number to 1.0.0b
  4657. * configure.ac
  4658. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4659. Added input_uris.txt to EXTRA_DIST
  4660. * test/Makefile.am
  4661. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4662. Removed PeerObject.h from Makefile.am
  4663. * src/Makefile.am
  4664. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4665. Avoid slow seeding
  4666. * src/PeerInteractionCommand.cc
  4667. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4668. Updated usage for -i option.
  4669. * src/usage_text.h (TEXT_INPUT_FILE)
  4670. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4671. Added INPUT FILE section to man page.
  4672. Escaped fake URLs.
  4673. * doc/aria2c.1.txt
  4674. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4675. Fixed wrong note position for -o option.
  4676. * doc/aria2c.1.txt
  4677. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4678. Fixed compile error without SSL/XML library.
  4679. * src/DefaultBtProgressInfoFile.cc
  4680. * src/DefaultBtProgressInfoFile.h
  4681. * src/FileMetalinkParserState.cc
  4682. * src/RequestGroup.h
  4683. * src/SocketCore.cc
  4684. * src/SocketCore.h
  4685. * src/VerificationMetalinkParserState.cc
  4686. * src/download_helper.h
  4687. * src/main.cc
  4688. * test/DefaultBtProgressInfoFileTest.cc
  4689. * test/DownloadHelperTest.cc
  4690. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  4691. Rewritten URI handling functions. They are now provided as a testable
  4692. functions.
  4693. * src/Makefile.am
  4694. * src/RequestGroup.cc
  4695. * src/RequestGroup.h
  4696. * src/download_helper.cc
  4697. * src/download_helper.h
  4698. * src/main.cc
  4699. * test/DownloadHelperTest.cc
  4700. * test/Makefile.am
  4701. * test/input_uris.txt
  4702. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  4703. Quickly terminate commands when ctrl-c is pressed.
  4704. * src/DownloadEngine.cc
  4705. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  4706. Quickly terminate idle commands when download finished.
  4707. * src/AbstractCommand.cc
  4708. * src/DownloadCommand.cc
  4709. * src/DownloadEngine.cc
  4710. * src/DownloadEngine.h
  4711. * src/SleepCommand.cc
  4712. * src/SleepCommand.h
  4713. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4714. Added the ability to specify output filename and directory in input
  4715. file.
  4716. Additional parameters are added in the following line of URIs
  4717. with proceeding white space(s), 1 parameter in 1 line.
  4718. The parameter names are the same with the command-line option name
  4719. without proceeding "--". Not all the options are available here:
  4720. at the moment, 'dir' and 'out' options are avialable.
  4721. Please note that out option has no effect against Metalink or BitTorrent
  4722. downloads.
  4723. Example input file:
  4724. http://host/foo-1.1.tar.bz2
  4725. out=foo.tar.bz2
  4726. dir=/tmp/downloads
  4727. http://host/thundermonkey-2.0.tar.bz2
  4728. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4729. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4730. thundermonkey-2.0.tar.bz2 is saved as
  4731. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4732. * src/BtPostDownloadHandler.cc
  4733. * src/Metalink2RequestGroup.cc
  4734. * src/Metalink2RequestGroup.h
  4735. * src/MetalinkPostDownloadHandler.cc
  4736. * src/UriListParser.cc
  4737. * src/UriListParser.h
  4738. * src/main.cc
  4739. * test/Metalink2RequestGroupTest.cc
  4740. * test/UriListParserTest.cc
  4741. * test/filelist1.txt
  4742. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4743. Fixed error when SSL library is not found.
  4744. * configure.ac
  4745. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4746. Cross referenced among -s, -C and -j options.
  4747. Updated usage of -C and -s options.
  4748. * src/usage_text.h
  4749. * doc/aria2c.1.txt
  4750. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4751. Fixed bad cast in 32bit platforms.
  4752. * test/DefaultPieceStorageTest.cc
  4753. (DefaultPieceStorageTest::testGetCompletedLength)
  4754. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4755. Fixed unit test fails on 32bit platforms.
  4756. * test/CookieParserTest.cc
  4757. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4758. Show an average download speed in Download results.
  4759. * src/BtFileAllocationEntry.cc
  4760. * src/DefaultPieceStorage.cc
  4761. * src/DownloadContext.cc
  4762. * src/DownloadContext.h
  4763. * src/DownloadResult.h
  4764. * src/RequestGroup.cc
  4765. * src/RequestGroupMan.cc
  4766. * src/StreamFileAllocationEntry.cc
  4767. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4768. Fixed the bug that metalink file is not processed if Content-Type
  4769. field has a paramter.
  4770. * src/HttpResponse.cc
  4771. * src/HttpResponse.h
  4772. * test/HttpResponseTest.cc
  4773. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  4774. Removed unused code.
  4775. * src/DefaultBtAnnounce.cc
  4776. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  4777. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4778. the value larger than DefaultPieceStorage::getTotalLength() when
  4779. in flight pieces are involved.
  4780. * src/DefaultPieceStorage.cc
  4781. * test/DefaultPieceStorageTest.cc
  4782. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4783. Bump up version number to 1.0.0a.
  4784. * configure.ac
  4785. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4786. Updated configure.ac
  4787. * configure.ac
  4788. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4789. Added usege for proxy.
  4790. * doc/aria2c.1.txt
  4791. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4792. Added usage for --ca-certificate, --certificate, --private-key and
  4793. --check-certificate options.
  4794. * doc/aria2c.1.txt
  4795. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4796. Updated man page
  4797. * doc/aria2c.1.txt
  4798. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4799. Added --no-proxy option. It receives comman separated hostname or
  4800. domains to which proxy should not be used.
  4801. aria2 honors the environment variable no_proxy to override no-proxy
  4802. value in configuration file. The user can override the environment
  4803. variable no_proxy with --no-proxy command-line option.
  4804. * src/AbstractCommand.cc
  4805. * src/OptionHandlerFactory.cc
  4806. * src/option_processing.cc
  4807. * src/prefs.cc
  4808. * src/prefs.h
  4809. * src/usage_text.h
  4810. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4811. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4812. The CA certificates are specified in --ca-certificate option.
  4813. By default, the verification is disabled. Use --check-certificate
  4814. option to enable it.
  4815. * src/HttpRequestCommand.cc
  4816. * src/LibgnutlsTLSContext.cc
  4817. * src/LibgnutlsTLSContext.h
  4818. * src/LibsslTLSContext.cc
  4819. * src/LibsslTLSContext.h
  4820. * src/MultiUrlRequestInfo.cc
  4821. * src/OptionHandlerFactory.cc
  4822. * src/SocketCore.cc
  4823. * src/SocketCore.h
  4824. * src/a2functional.h
  4825. * src/message.h
  4826. * src/option_processing.cc
  4827. * src/prefs.cc
  4828. * src/prefs.h
  4829. * src/usage_text.h
  4830. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  4831. Added client certificate authentication for SSL/TLS.
  4832. Currently a private key must be decrypted for use with aria2.
  4833. If a user accidentally gives encrypted file to aria2 then following
  4834. thing happens:
  4835. If encrypted private key is given to aria2, it behaves differently
  4836. depending on the ssl library it uses. If aria2 built with openssl then
  4837. openssl prompts the user for password. If aria2 build with gnutls then
  4838. aria2 exists with error at start up.
  4839. * src/DownloadEngineFactory.cc
  4840. * src/MultiUrlRequestInfo.cc
  4841. * src/OptionHandlerFactory.cc
  4842. * src/option_processing.cc
  4843. * src/prefs.cc
  4844. * src/prefs.h
  4845. * src/usage_text.h
  4846. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  4847. Introduced TLSContext that holds TLS related data that can be shared
  4848. with multiple SSL connections.
  4849. * src/DownloadEngineFactory.cc
  4850. * src/LibgnutlsTLSContext.cc
  4851. * src/LibgnutlsTLSContext.h
  4852. * src/LibsslTLSContext.cc
  4853. * src/LibsslTLSContext.h
  4854. * src/Makefile.am
  4855. * src/SocketCore.cc
  4856. * src/SocketCore.h
  4857. * src/TLSContext.h
  4858. * src/message.h
  4859. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  4860. Fixed the bug that the DiskWriter of the first FileEntry whose
  4861. `needsFileAllocation' property is false is not created
  4862. even if it shares a piece with next FileEntry which `requested' property
  4863. is true.
  4864. Fixed the bug that zero-length file is not created if pre file
  4865. allocation is not done.
  4866. * src/MultiDiskAdaptor.cc
  4867. * src/MultiDiskAdaptor.h
  4868. * test/MultiDiskAdaptorTest.cc
  4869. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4870. Added the ability to pool proxy connection.
  4871. The conneciton in FTP with proxy-method=GET is not pooled.
  4872. Proxy-Connection header will not be sent when sending CONNECT method.
  4873. * src/DownloadEngine.cc
  4874. * src/DownloadEngine.h
  4875. * src/FtpFinishDownloadCommand.cc
  4876. * src/FtpInitiateConnectionCommand.cc
  4877. * src/FtpNegotiationCommand.cc
  4878. * src/HttpDownloadCommand.cc
  4879. * src/HttpInitiateConnectionCommand.cc
  4880. * src/HttpRequest.cc
  4881. * src/HttpRequest.h
  4882. * src/HttpResponse.cc
  4883. * src/HttpSkipResponseCommand.cc
  4884. * test/HttpRequestTest.cc
  4885. * test/HttpResponseTest.cc
  4886. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4887. Handle date before epoch.
  4888. To create *bad* Time object, call Time::null().
  4889. * src/CookieParser.cc
  4890. * src/FtpConnection.cc
  4891. * src/FtpConnection.h
  4892. * src/FtpNegotiationCommand.cc
  4893. * src/RequestGroup.cc
  4894. * src/TimeA2.cc
  4895. * src/TimeA2.h
  4896. * test/CookieParserTest.cc
  4897. * test/FtpConnectionTest.cc
  4898. * test/TimeTest.cc
  4899. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Added support for following envrionment variables: http_proxy,
  4901. https_proxy, ftp_proxy and all_proxy.
  4902. Each variable is equivalent to the aria2 option whose name is the
  4903. variable name with '_' replaced with '-'.
  4904. They overrides options specified in aria2.conf file.
  4905. The envrionment variables can be overrode using command-line option.
  4906. * src/option_processing.cc
  4907. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Renamed --http-proxy-method as --proxy-method.
  4909. * src/AbstractCommand.cc
  4910. * src/FtpInitiateConnectionCommand.cc
  4911. * src/HttpInitiateConnectionCommand.cc
  4912. * src/OptionHandlerFactory.cc
  4913. * src/option_processing.cc
  4914. * src/prefs.cc
  4915. * src/prefs.h
  4916. * src/usage_text.h
  4917. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4918. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4919. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4920. Above 3 options and --http-proxy option can handle proxy in URL format
  4921. like: http://user:passwd@host:port.
  4922. If a proxy requires user/password, they must be specified in a URL.
  4923. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4924. instead.
  4925. * src/AbstractCommand.cc
  4926. * src/AbstractCommand.h
  4927. * src/AbstractProxyRequestCommand.cc
  4928. * src/AbstractProxyRequestCommand.h
  4929. * src/AuthConfigFactory.cc
  4930. * src/AuthConfigFactory.h
  4931. * src/FtpFinishDownloadCommand.cc
  4932. * src/FtpInitiateConnectionCommand.cc
  4933. * src/FtpInitiateConnectionCommand.h
  4934. * src/FtpNegotiationCommand.cc
  4935. * src/FtpTunnelRequestCommand.cc
  4936. * src/FtpTunnelRequestCommand.h
  4937. * src/HttpDownloadCommand.cc
  4938. * src/HttpInitiateConnectionCommand.cc
  4939. * src/HttpInitiateConnectionCommand.h
  4940. * src/HttpProxyRequestCommand.cc
  4941. * src/HttpProxyRequestCommand.h
  4942. * src/HttpRequest.cc
  4943. * src/HttpRequest.h
  4944. * src/HttpRequestCommand.cc
  4945. * src/HttpRequestCommand.h
  4946. * src/HttpSkipResponseCommand.cc
  4947. * src/InitiateConnectionCommand.cc
  4948. * src/InitiateConnectionCommand.h
  4949. * src/OptionHandlerFactory.cc
  4950. * src/OptionHandlerImpl.h
  4951. * src/Request.cc
  4952. * src/option_processing.cc
  4953. * src/prefs.cc
  4954. * src/prefs.h
  4955. * src/usage_text.h
  4956. * test/AuthConfigFactoryTest.cc
  4957. * test/HttpRequestTest.cc
  4958. * test/OptionHandlerTest.cc
  4959. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. Execute choking algorithm when unchoked and interested peer is
  4961. disconected.
  4962. * src/DefaultPeerStorage.cc
  4963. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4964. Added testcase for BtNotInterestedMessage from unchoked peer.
  4965. * test/BtNotInterestedMessageTest.cc
  4966. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4967. Execute choking algorithm when BtInterestedMessage arrives from
  4968. unchoked peer.
  4969. * src/BtInterestedMessage.cc
  4970. * src/BtInterestedMessage.h
  4971. * src/DefaultBtMessageFactory.cc
  4972. * test/BtInterestedMessageTest.cc
  4973. * test/MockPeerStorage.h
  4974. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4975. AuthConfigFactory is now part of DownloadEngine.
  4976. * src/AbstractProxyRequestCommand.cc
  4977. * src/AuthConfigFactory.h
  4978. * src/DownloadEngine.cc
  4979. * src/DownloadEngine.h
  4980. * src/FtpConnection.cc
  4981. * src/FtpConnection.h
  4982. * src/FtpNegotiationCommand.cc
  4983. * src/HttpConnection.cc
  4984. * src/HttpRequest.cc
  4985. * src/HttpRequest.h
  4986. * src/HttpRequestCommand.cc
  4987. * src/HttpResponse.cc
  4988. * src/HttpResponseCommand.cc
  4989. * src/HttpSkipResponseCommand.cc
  4990. * src/MultiUrlRequestInfo.cc
  4991. * src/main.cc
  4992. * test/FtpConnectionTest.cc
  4993. * test/HttpRequestTest.cc
  4994. * test/HttpResponseTest.cc
  4995. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4996. Corrected catched exception type.
  4997. * src/ServerStatMan.cc
  4998. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4999. DNSCache is now part of DownloadEngine.
  5000. * src/DNSCache.h
  5001. * src/DownloadEngine.cc
  5002. * src/DownloadEngine.h
  5003. * src/InitiateConnectionCommand.cc
  5004. * src/MultiUrlRequestInfo.cc
  5005. * test/Makefile.am
  5006. * test/Makefile.in
  5007. * test/SimpleDNSCacheTest.cc
  5008. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5009. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5010. DownloadEngine.
  5011. * src/ActivePeerConnectionCommand.cc
  5012. * src/BtSetup.cc
  5013. * src/CUIDCounter.h
  5014. * src/DHTSetup.cc
  5015. * src/DownloadCommand.cc
  5016. * src/DownloadEngine.cc
  5017. * src/DownloadEngine.h
  5018. * src/DownloadEngineFactory.cc
  5019. * src/FileAllocationDispatcherCommand.cc
  5020. * src/InitiatorMSEHandshakeCommand.cc
  5021. * src/PeerInitiateConnectionCommand.cc
  5022. * src/PeerInteractionCommand.cc
  5023. * src/PeerListenCommand.cc
  5024. * src/RequestGroup.cc
  5025. * src/StreamFileAllocationEntry.cc
  5026. * src/TrackerWatcherCommand.cc
  5027. * src/main.cc
  5028. * test/RequestGroupManTest.cc
  5029. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Implemented commented code in BtSeederStateChoke
  5031. * src/BtSeederStateChoke.cc
  5032. * src/Peer.cc
  5033. * src/Peer.h
  5034. * src/PeerInteractionCommand.cc
  5035. * src/PeerSessionResource.cc
  5036. * src/PeerSessionResource.h
  5037. * test/MockBtMessageDispatcher.h
  5038. * test/PeerSessionResourceTest.cc
  5039. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5040. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5041. its object.
  5042. * src/AbstractBtMessage.cc
  5043. * src/ActivePeerConnectionCommand.cc
  5044. * src/ActivePeerConnectionCommand.h
  5045. * src/BtContextAwareCommand.cc
  5046. * src/BtContextAwareCommand.h
  5047. * src/BtExtendedMessage.cc
  5048. * src/BtExtendedMessage.h
  5049. * src/BtInterestedMessage.cc
  5050. * src/BtInterestedMessage.h
  5051. * src/BtNotInterestedMessage.cc
  5052. * src/BtNotInterestedMessage.h
  5053. * src/BtRegistry.cc
  5054. * src/BtRegistry.h
  5055. * src/BtSeederStateChoke.cc
  5056. * src/BtSetup.cc
  5057. * src/DHTGetPeersCommand.cc
  5058. * src/DHTGetPeersCommand.h
  5059. * src/DHTPeerAnnounceEntry.cc
  5060. * src/DHTPeerAnnounceEntry.h
  5061. * src/DHTPeerAnnounceStorage.cc
  5062. * src/DHTPeerAnnounceStorage.h
  5063. * src/DHTPeerLookupTask.cc
  5064. * src/DHTPeerLookupTask.h
  5065. * src/DHTSetup.cc
  5066. * src/DHTSetup.h
  5067. * src/DHTTaskFactory.h
  5068. * src/DHTTaskFactoryImpl.cc
  5069. * src/DHTTaskFactoryImpl.h
  5070. * src/DefaultBtAnnounce.cc
  5071. * src/DefaultBtInteractive.cc
  5072. * src/DefaultBtInteractive.h
  5073. * src/DefaultBtMessageDispatcher.cc
  5074. * src/DefaultBtMessageDispatcher.h
  5075. * src/DefaultBtMessageFactory.cc
  5076. * src/DefaultBtMessageFactory.h
  5077. * src/DefaultBtMessageReceiver.cc
  5078. * src/DefaultBtProgressInfoFile.cc
  5079. * src/DefaultBtProgressInfoFile.h
  5080. * src/DefaultBtRequestFactory.cc
  5081. * src/DefaultBtRequestFactory.h
  5082. * src/DefaultExtensionMessageFactory.cc
  5083. * src/DefaultExtensionMessageFactory.h
  5084. * src/DefaultPeerStorage.cc
  5085. * src/DefaultPeerStorage.h
  5086. * src/DownloadEngine.cc
  5087. * src/DownloadEngine.h
  5088. * src/InitiatorMSEHandshakeCommand.cc
  5089. * src/InitiatorMSEHandshakeCommand.h
  5090. * src/MSEHandshake.cc
  5091. * src/MSEHandshake.h
  5092. * src/Makefile.am
  5093. * src/Makefile.in
  5094. * src/PeerChokeCommand.cc
  5095. * src/PeerChokeCommand.h
  5096. * src/PeerInitiateConnectionCommand.cc
  5097. * src/PeerInitiateConnectionCommand.h
  5098. * src/PeerInteractionCommand.cc
  5099. * src/PeerInteractionCommand.h
  5100. * src/PeerObject.h
  5101. * src/PeerReceiveHandshakeCommand.cc
  5102. * src/PeerReceiveHandshakeCommand.h
  5103. * src/ReceiverMSEHandshakeCommand.cc
  5104. * src/RequestGroup.cc
  5105. * src/RequestGroup.h
  5106. * src/RequestGroupMan.cc
  5107. * src/RequestGroupMan.h
  5108. * src/SeedCheckCommand.cc
  5109. * src/SeedCheckCommand.h
  5110. * src/ShareRatioSeedCriteria.h
  5111. * src/SimpleBtMessage.cc
  5112. * src/TrackerWatcherCommand.cc
  5113. * src/TrackerWatcherCommand.h
  5114. * src/UTPexExtensionMessage.cc
  5115. * src/UTPexExtensionMessage.h
  5116. * test/BtCancelMessageTest.cc
  5117. * test/BtChokeMessageTest.cc
  5118. * test/BtExtendedMessageTest.cc
  5119. * test/BtInterestedMessageTest.cc
  5120. * test/BtNotInterestedMessageTest.cc
  5121. * test/BtPieceMessageTest.cc
  5122. * test/BtPortMessageTest.cc
  5123. * test/BtRegistryTest.cc
  5124. * test/BtRejectMessageTest.cc
  5125. * test/BtRequestMessageTest.cc
  5126. * test/DHTPeerAnnounceEntryTest.cc
  5127. * test/DHTPeerAnnounceStorageTest.cc
  5128. * test/DefaultBtMessageDispatcherTest.cc
  5129. * test/DefaultBtMessageFactoryTest.cc
  5130. * test/DefaultBtProgressInfoFileTest.cc
  5131. * test/DefaultBtRequestFactoryTest.cc
  5132. * test/DefaultExtensionMessageFactoryTest.cc
  5133. * test/MSEHandshakeTest.cc
  5134. * test/MockDHTTaskFactory.h
  5135. * test/ShareRatioSeedCriteriaTest.cc
  5136. * test/UTPexExtensionMessageTest.cc
  5137. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5138. Fixed compiler warning.
  5139. * test/UtilTest.cc
  5140. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5141. Treat Cookie object as session cookie if expiry = 0 is given.
  5142. With this change, you can specify session scoped cookies in an external
  5143. file setting expiry value to 0.
  5144. * src/Cookie.cc
  5145. * src/Cookie.h
  5146. * test/CookieParserTest.cc
  5147. * test/CookieStorageTest.cc
  5148. * test/CookieTest.cc
  5149. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5150. Changed signature of DHTMessageFactory::createResponseMessage().
  5151. Removed unused validateIDMatch.
  5152. * src/DHTMessageFactory.h
  5153. * src/DHTMessageFactoryImpl.cc
  5154. * src/DHTMessageFactoryImpl.h
  5155. * src/DHTMessageTracker.cc
  5156. * test/DHTMessageFactoryImplTest.cc
  5157. * test/MockDHTMessageFactory.h
  5158. Dropped DHT message coming from same ID of localhost.
  5159. * src/DHTMessageReceiver.cc
  5160. Rejected adding node whose ID is the same as localhost's.
  5161. * src/DHTRoutingTable.cc
  5162. * test/BtPortMessageTest.cc
  5163. * test/DHTRoutingTableTest.cc
  5164. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5165. Pool connection when redirection occurs with Content-Length = 0.
  5166. * src/HttpSkipResponseCommand.cc
  5167. * src/HttpSkipResponseCommand.h
  5168. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Fixed the bug that causes time out when redirection occurs with
  5170. content-length 0.
  5171. * src/HttpResponseCommand.cc
  5172. * src/HttpSkipResponseCommand.cc
  5173. * src/HttpSkipResponseCommand.h
  5174. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. Now each status legends is shown only when it appears in Download
  5176. Result. If Download Result has no item, then status legend will not
  5177. be printed.
  5178. * src/RequestGroupMan.cc
  5179. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5180. Removed duplicate creation of OptionHandlers.
  5181. * src/option_processing.cc
  5182. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5183. Fixed the bug that causes segmentation fault when accessing files which
  5184. don't exist or are not included in --select-file option while
  5185. validating chunk checksum.
  5186. * src/MultiDiskAdaptor.cc
  5187. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5188. Fixed compiler warning.
  5189. * test/UtilTest.cc
  5190. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5191. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5192. * src/IteratableChecksumValidator.cc
  5193. * src/IteratableChunkChecksumValidator.cc
  5194. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5195. * Release 0.16.2
  5196. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5197. Added Serbian translation. Updated Ukrainian translation.
  5198. Thanks to all translators.
  5199. * po/sr.po
  5200. * po/uk.po
  5201. * po/LINGUAS
  5202. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5203. Bump up version number to 0.16.2
  5204. * configure.ac
  5205. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5206. Added length equality test to operator== to drop a piece message
  5207. whose length does not match to the requested one.
  5208. * src/RequestSlot.cc
  5209. * test/DefaultBtMessageDispatcherTest.cc
  5210. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5212. recieved.
  5213. In this fix, if a request larger than 16KiB length is received, aria2
  5214. disconnects the peer.
  5215. * src/BtConstants.h
  5216. * src/PeerMessageUtil.cc
  5217. * src/PeerMessageUtil.h
  5218. * test/BtRequestMessageTest.cc
  5219. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5220. * Release 0.16.1
  5221. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5223. * doc/aria2c.1.txt
  5224. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5225. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5226. Updated French, Simplified Chinese and Japanese translations.
  5227. Thanks to all translators.
  5228. en@quot and en@boldquot are also added.
  5229. * po/LINGUAS
  5230. * po/fr.po
  5231. * po/ja.po
  5232. * po/uk.po
  5233. * po/vi.po
  5234. * po/zh_CN.po
  5235. * po/zh_TW.po
  5236. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. Bump up version number to 0.16.1.
  5238. * configure.ac
  5239. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. Updated README.
  5241. * README
  5242. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5243. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5244. not to replace '--' with em dash character.
  5245. * doc/aria2c.1.txt
  5246. * doc/makeman
  5247. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5248. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5249. every SEC seconds.
  5250. * src/DownloadEngineFactory.cc
  5251. * src/OptionHandlerFactory.cc
  5252. * src/option_processing.cc
  5253. * src/usage_text.h
  5254. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Fixed compile warning on linux-amd64
  5256. * src/FtpConnection.cc
  5257. * src/IteratableChunkChecksumValidator.cc
  5258. * src/MultiDiskAdaptor.cc
  5259. Fixed the bug that unit test fails on linux-amd64
  5260. * test/UtilTest.cc
  5261. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5262. Added --dht-file-path option to change the path to dht.dat, which is a
  5263. serialized DHT routing table.
  5264. * src/OptionHandlerFactory.cc
  5265. * src/option_processing.cc
  5266. * src/usage_text.h
  5267. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5268. Fixed possible underflow.
  5269. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5270. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5271. Fixed the bug that last character in URI is not encoded.
  5272. * src/Request.cc
  5273. * test/RequestTest.cc
  5274. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Fixed the bug that referer header field contains fragment.
  5276. Now Request class removes fragment part of URI and encodes it
  5277. in Request::setUri() and setReferer().
  5278. * src/Request.h
  5279. * src/Request.cc
  5280. * test/RequestTest.cc
  5281. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. Added missing m4 macros.
  5283. * m4/cppunit.m4
  5284. * m4/libgcrypt.m4
  5285. * m4/libgnutls-extra.m4
  5286. * m4/libgnutls.m4
  5287. * m4/libxml2.m4
  5288. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Fixed compile error with gcc-4.4(snapshot)
  5290. * src/File.cc
  5291. * src/FtpConnection.cc
  5292. * src/OptionHandlerImpl.h
  5293. * src/Util.cc
  5294. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5295. Removed assert()
  5296. * src/SocketBuffer.cc (SocketBuffer::send)
  5297. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5298. Changed the type of _numNewConnection to unsigned int.
  5299. * src/ActivePeerConnectionCommand.cc
  5300. * src/ActivePeerConnectionCommand.h
  5301. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5302. * Release 0.16.0
  5303. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5304. Updated doc
  5305. * README
  5306. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5308. translations. Thanks to all translators.
  5309. * po/bg.po
  5310. * po/de.po
  5311. * po/fr.po
  5312. * po/ja.po
  5313. * po/zh_CN.po
  5314. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5315. Bump up version number to 0.16.0.
  5316. * configure.ac
  5317. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5319. int32_t.
  5320. Changed the type of count to int32_t.
  5321. * src/Metalink2RequestGroup.cc
  5322. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5323. Added test for Time::elapsed(time_t).
  5324. * test/TimeTest.cc
  5325. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5327. Util::difftv() should be used instead.
  5328. * src/TimeA2.cc
  5329. * src/TimeA2.h
  5330. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5331. Made socket for dht connections non-blocking
  5332. * src/DHTAbstractMessage.cc
  5333. * src/DHTAbstractMessage.h
  5334. * src/DHTConnection.h
  5335. * src/DHTConnectionImpl.cc
  5336. * src/DHTConnectionImpl.h
  5337. * src/DHTMessage.h
  5338. * src/DHTMessageDispatcherImpl.cc
  5339. * src/DHTMessageDispatcherImpl.h
  5340. * src/DHTUnknownMessage.cc
  5341. * src/DHTUnknownMessage.h
  5342. * src/SocketCore.cc
  5343. * src/SocketCore.h
  5344. * test/MockDHTMessage.h
  5345. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5346. Changed the type of offset to int.
  5347. * src/ParameterizedStringParser.cc
  5348. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Made getAsInt() return int32_t
  5350. * src/Option.h
  5351. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5352. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5353. build.
  5354. * configure.ac
  5355. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5356. Use sqlite3_open if sqlite3_open_v2 is not available.
  5357. * src/Sqlite3MozCookieParser.cc
  5358. * src/Sqlite3MozCookieParser.h
  5359. * m4/sqlite3.m4
  5360. * test/Sqlite3MozCookieParserTest.cc
  5361. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5363. * src/BtPieceMessage.cc
  5364. * src/DHTPeerAnnounceStorage.cc
  5365. * src/DefaultPieceStorage.cc
  5366. * src/DownloadCommand.cc
  5367. * src/DownloadEngine.cc
  5368. * src/FtpConnection.cc
  5369. * src/PeerConnection.cc
  5370. * src/PeerMessageUtil.cc
  5371. * src/RequestGroup.cc
  5372. * src/RequestGroupMan.cc
  5373. * src/SimpleBtMessage.cc
  5374. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5375. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5376. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5377. * src/AbstractDiskWriter.cc
  5378. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Don't set Request::supportsPersistentConnection() in HttpConnection
  5380. since this code is also used in AbstractProxyResponseCommand.
  5381. Moved those code to HttpResponse.
  5382. * src/HttpResponse.cc
  5383. * src/HttpResponse.h
  5384. * src/HttpConnection.cc
  5385. * src/HttpConnection.h
  5386. * src/HttpResponseCommand.cc
  5387. * test/HttpResponseTest.cc
  5388. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5389. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5390. The configuration is minimum: no torrent, no metalink, so there may be
  5391. other compile error on their code.
  5392. * src/a2netcompat.h
  5393. * src/File.cc
  5394. * src/File.h
  5395. * src/SocketCore.cc
  5396. * src/SocketCore.h
  5397. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5398. Made a socket of incoming peer non-blocking.
  5399. * src/PeerListenCommand.cc
  5400. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5401. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5402. whole message data is not sent in one send() call.
  5403. * src/BtPieceMessage.cc
  5404. * src/BtPieceMessage.h
  5405. * src/PeerConnection.cc
  5406. * src/PeerConnection.h
  5407. * src/SimpleBtMessage.cc
  5408. * src/SimpleBtMessage.h
  5409. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Fixed the bug that aria2 downloads faster than max-download-limit when
  5411. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5412. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5413. , instead of sum of them.
  5414. * src/ActivePeerConnectionCommand.cc
  5415. * src/DefaultBtInteractive.cc
  5416. * src/DownloadCommand.cc
  5417. * src/PeerInteractionCommand.cc
  5418. * src/PeerReceiveHandshakeCommand.cc
  5419. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Fixed the bug that HTTPS download fails.
  5421. * src/AbstractCommand.cc
  5422. * src/AbstractCommand.h
  5423. * src/DownloadCommand.cc
  5424. * src/FtpConnection.cc
  5425. * src/HttpConnection.cc
  5426. * src/HttpRequestCommand.cc
  5427. * src/HttpResponseCommand.cc
  5428. * src/HttpSkipResponseCommand.cc
  5429. * src/MSEHandshake.cc
  5430. * src/PeerConnection.cc
  5431. * src/SocketCore.cc
  5432. * src/SocketCore.h
  5433. Fixed the bug that aria2 doesn't download whole content body and cannot
  5434. reuse connection if chunked transfer encoding and gzip content encoding
  5435. are set.
  5436. * src/DownloadCommand.cc
  5437. * src/HttpSkipResponseCommand.cc
  5438. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5439. Updated man page.
  5440. * doc/aria2c.1.txt
  5441. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5442. When error occurred while aria2 was parsing an .aria2.conf file, print
  5443. the usage of the option that caused error.
  5444. * src/option_processing.cc
  5445. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5446. Fixed compile error on OptionHandlerException
  5447. * src/Makefile.am
  5448. * src/OptionHandlerException.cc
  5449. * src/OptionHandlerException.h
  5450. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5451. Moved message of the error to OptionHandlerException.h
  5452. * src/NameMatchOptionHandler.h
  5453. * src/OptionHandlerException.h
  5454. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5455. When error occurs while aria2 is parsing an command-line option, print
  5456. the usage of the option.
  5457. * src/Makefile.am
  5458. * src/NameMatchOptionHandler.h
  5459. * src/OptionHandlerException.h
  5460. * src/option_processing.cc
  5461. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5462. Reverted previous change.
  5463. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5464. username is not in URI.
  5465. * src/HttpRequest.cc
  5466. * src/Request.cc
  5467. * test/HttpRequestTest.cc
  5468. * test/RequestTest.cc
  5469. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5470. Now colon is required for username and password in FTP URL, like:
  5471. ftp://username:password@host.
  5472. If colon is not there, aria2 don't parse it as a username. For example,
  5473. aria2 don't retrieve username from ftp://username@host.
  5474. This fix was made in order to login FTP server via non-transparent ftp
  5475. proxy.
  5476. * src/Request.cc
  5477. * test/RequestTest.cc
  5478. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5479. Use netrc for HTTP.
  5480. Now FTP user/password is sent in Authorization header when
  5481. --ftp-via-http-proxy=get is given.
  5482. * src/AuthConfigFactory.cc
  5483. * src/HttpRequest.cc
  5484. * src/HttpRequest.h
  5485. * src/NetrcAuthResolver.cc
  5486. * src/NetrcAuthResolver.h
  5487. * src/OptionHandlerFactory.cc
  5488. * src/option_processing.cc
  5489. * src/prefs.cc
  5490. * src/prefs.h
  5491. * test/AuthConfigFactoryTest.cc
  5492. * test/HttpRequestTest.cc
  5493. * test/NetrcAuthResolverTest.cc
  5494. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5495. Issue PWD command first and get working directory and use it as a prefix
  5496. for CWD command.
  5497. * src/DownloadEngine.cc
  5498. * src/DownloadEngine.h
  5499. * src/FtpConnection.cc
  5500. * src/FtpConnection.h
  5501. * src/FtpFinishDownloadCommand.cc
  5502. * src/FtpInitiateConnectionCommand.cc
  5503. * src/FtpNegotiationCommand.cc
  5504. * src/FtpNegotiationCommand.h
  5505. * test/FtpConnectionTest.cc
  5506. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5507. Removed default user/pass for FTP user/pass, since it should not have
  5508. precedence over netrc configuration by default.
  5509. * src/OptionHandlerFactory.cc
  5510. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. Added debug log for socket event.
  5512. * src/AbstractCommand.cc
  5513. * src/PeerAbstractCommand.cc
  5514. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5515. Log microseconds.
  5516. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5517. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5518. Replaced HelpItem.cc with OptionHandler.cc.
  5519. * po/POTFILES.in
  5520. Updated po files with 'make update-po'
  5521. * po/aria2c.pot
  5522. * po/*.po
  5523. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5524. Removed possible values from the text.
  5525. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5526. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Removed unused preferences:
  5528. PREF_NO_PREALLOCATION
  5529. PREF_STDOUT_LOG
  5530. PREF_TRACKER_MAX_TRIES
  5531. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5532. PREF_MIN_SEGMENT_SIZE
  5533. * src/option_processing.cc
  5534. * src/prefs.cc
  5535. * src/prefs.h
  5536. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5537. Integrated HelpItem into OptionParser to ease the workload for adding
  5538. new options. Removed default value from usage text.
  5539. * src/HelpItem.cc: Removed.
  5540. * src/HelpItem.h: Removed.
  5541. * src/HelpItemFactory.cc: Removed.
  5542. * src/HelpItemFactory.h: Removed.
  5543. * src/Makefile.am
  5544. * src/Makefile.in
  5545. * src/NameMatchOptionHandler.h
  5546. * src/OptionHandler.cc
  5547. * src/OptionHandler.h
  5548. * src/OptionHandlerFactory.cc
  5549. * src/OptionHandlerImpl.h
  5550. * src/OptionParser.cc
  5551. * src/OptionParser.h
  5552. * src/TagContainer.cc: Removed.
  5553. * src/TagContainer.h: Removed.
  5554. * src/TaggedItem.cc: Removed.
  5555. * src/TaggedItem.h: Removed.
  5556. * src/main.cc
  5557. * src/option_processing.cc
  5558. * src/usage_text.h
  5559. * src/version_usage.cc
  5560. * test/HelpItemTest.cc: Removed.
  5561. * test/Makefile.am
  5562. * test/Makefile.in
  5563. * test/OptionHandlerTest.cc
  5564. * test/OptionParserTest.cc
  5565. * test/TagContainerTest.cc: Removed.
  5566. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5567. Moved `TransferStat stat = ...' to inside the `if' clause.
  5568. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5569. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5570. Fixed the bug that a block in a piece is requested when same block is
  5571. already requested to the same peer in end game mode.
  5572. * src/BtRequestFactory.h
  5573. * src/DefaultBtInteractive.cc
  5574. * src/DefaultBtRequestFactory.cc
  5575. * src/DefaultBtRequestFactory.h
  5576. * src/DefaultPieceStorage.cc
  5577. * src/DefaultPieceStorage.h
  5578. * src/PieceStorage.h
  5579. * src/UnknownLengthPieceStorage.cc
  5580. * src/UnknownLengthPieceStorage.h
  5581. * test/DefaultBtRequestFactoryTest.cc
  5582. * test/DefaultPieceStorageTest.cc
  5583. * test/MockBtRequestFactory.h
  5584. * test/MockPieceStorage.h
  5585. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5586. Removed _uploadLength and _downloadLength from PeerSessionResource
  5587. and use PeerStat::_sessionUploadLength and
  5588. PeerStat::_sessionDownloadLength.
  5589. * src/PeerSessionResource.cc
  5590. * src/PeerSessionResource.h
  5591. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5592. Fixed the bug that prefixLength of split bucket which doesn't include
  5593. local node ID is incremented.
  5594. * src/DHTBucket.cc
  5595. * src/DHTBucket.h
  5596. * test/DHTBucketTest.cc
  5597. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5598. Added cookies.sqlite to EXTRA_DIST
  5599. * test/Makefile.am
  5600. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5601. Added Turkish translation. Updated French, German, Russian and
  5602. Simplified Chinese translations. Thanks to all translators.
  5603. * po/LINGUAS
  5604. * po/de.po
  5605. * po/fr.po
  5606. * po/ru.po
  5607. * po/tr.po
  5608. * po/zh_CN.po
  5609. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5610. Added deliminating text to the beginning of the log so that one can find
  5611. where the log starts easily.
  5612. * src/main.cc
  5613. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5614. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5615. to fix compile error when async DNS is not enabled by configuration.
  5616. * src/AbstractCommand.cc
  5617. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. If establishing conneciton to a server is failed, then mark error on
  5619. its ServerStat.
  5620. Added the cause of error to log when error event occurred.
  5621. Moved message string to message.h for translation.
  5622. * src/AbstractCommand.cc
  5623. * src/AbstractCommand.h
  5624. * src/FtpNegotiationCommand.cc
  5625. * src/HttpRequestCommand.cc
  5626. * src/PeerAbstractCommand.cc
  5627. * src/message.h
  5628. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5629. Added the function to get error message from socket.
  5630. * src/SocketCore.cc
  5631. * src/SocketCore.h
  5632. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5633. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5634. * src/RequestGroupMan.cc
  5635. * src/RequestGroupMan.h
  5636. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. If error event is received in epoll, then abort download immediately.
  5638. * src/AbstractCommand.cc
  5639. * src/Command.cc
  5640. * src/Command.h
  5641. * src/DownloadEngine.cc
  5642. * src/PeerAbstractCommand.cc
  5643. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5644. Added usage message for --uri-selector, --server-stat-of,
  5645. --server-stat-in, --server-stat-timeout options.
  5646. * src/HelpItemFactory.cc
  5647. * src/usage_text.h
  5648. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5649. Added upper limit of FTP response buffer. The current implementation
  5650. uses 4096bytes as a limit.
  5651. * src/FtpConnection.cc
  5652. * src/FtpConnection.h
  5653. * test/FtpConnectionTest.cc
  5654. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5655. Use non-blocking socket for TCP communication to avoid possible
  5656. blocking due to buffer full.
  5657. * src/AbstractProxyRequestCommand.cc
  5658. * src/FtpConnection.cc
  5659. * src/FtpConnection.h
  5660. * src/FtpNegotiationCommand.cc
  5661. * src/FtpNegotiationCommand.h
  5662. * src/HttpConnection.cc
  5663. * src/HttpConnection.h
  5664. * src/HttpRequestCommand.cc
  5665. * src/InitiatorMSEHandshakeCommand.cc
  5666. * src/InitiatorMSEHandshakeCommand.h
  5667. * src/MSEHandshake.cc
  5668. * src/MSEHandshake.h
  5669. * src/Makefile.am
  5670. * src/PeerConnection.cc
  5671. * src/PeerConnection.h
  5672. * src/PeerInteractionCommand.cc
  5673. * src/PeerListenCommand.cc
  5674. * src/ReceiverMSEHandshakeCommand.cc
  5675. * src/ReceiverMSEHandshakeCommand.h
  5676. * src/SocketBuffer.cc
  5677. * src/SocketBuffer.h
  5678. * src/SocketCore.cc
  5679. * src/SocketCore.h
  5680. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5681. Call setStatusRealtime() in constructor.
  5682. * src/RealtimeCommand.cc
  5683. * src/RealtimeCommand.h
  5684. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5685. Call Download::setNoWait(true) to execute newly created command without
  5686. a pause.
  5687. * src/AbstractCommand.cc
  5688. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5689. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5690. found' error from HTTP/FTP server NUM times without getting single
  5691. bytes of data, then force the download to fail.
  5692. Basically aria2 tris all URIs available. So if long list of URIs are
  5693. specified in Metalink, then aria2 will take a long time to fail
  5694. eventually if all URIs are outdated. This option eases this situation
  5695. to limit the number of servers to try.
  5696. * src/FtpNegotiationCommand.cc
  5697. * src/HelpItemFactory.cc
  5698. * src/HttpResponseCommand.cc
  5699. * src/OptionHandlerFactory.cc
  5700. * src/PeerStat.h
  5701. * src/RequestGroup.cc
  5702. * src/RequestGroup.h
  5703. * src/SegmentMan.cc
  5704. * src/SegmentMan.h
  5705. * src/option_processing.cc
  5706. * src/prefs.cc
  5707. * src/prefs.h
  5708. * src/usage_text.h
  5709. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5710. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5711. response even if more than one response is in it.
  5712. * src/FtpConnection.cc
  5713. * src/FtpConnection.h
  5714. * test/FtpConnectionTest.cc
  5715. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5716. Merged from stable-0.15
  5717. * m4/libcares.m4
  5718. Use pkg-config
  5719. * m4/sqlite3.m4
  5720. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5721. Removed unnecessary if statement.
  5722. * src/DefaultPieceStorage.cc (initPieceStorage)
  5723. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5724. Added --connect-timeout option to specify connect timeout in seconds.
  5725. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5726. connecting to BitTorrent peer is not controlled by this option.
  5727. * src/AbstractProxyRequestCommand.cc
  5728. * src/FtpNegotiationCommand.cc
  5729. * src/HelpItemFactory.cc
  5730. * src/HttpRequestCommand.cc
  5731. * src/OptionHandlerFactory.cc
  5732. * src/option_processing.cc
  5733. * src/prefs.cc
  5734. * src/prefs.h
  5735. * src/usage_text.h
  5736. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5737. Added help message for -R option.
  5738. * src/HelpItemFactory.cc
  5739. * src/usage_text.h
  5740. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5741. Added the message that the time is in local time zone.
  5742. * src/RequestGroup.cc
  5743. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. Implemented the ability to get timestamp from remote FTP server using
  5745. MDTM command described in RFC3659.
  5746. * src/FtpConnection.cc
  5747. * src/FtpConnection.h
  5748. * src/FtpNegotiationCommand.cc
  5749. * src/FtpNegotiationCommand.h
  5750. * test/FtpConnectionTest.cc
  5751. * test/Makefile.am
  5752. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5753. Implemented the ability to get timestamp from remote HTTP server and
  5754. apply it to local file. To enable this feature, --remote-time option
  5755. is added. No usage text has been written yet.
  5756. If several servers returns difference timestamp, then aria2 uses latest
  5757. one.
  5758. * src/CopyDiskAdaptor.cc
  5759. * src/CopyDiskAdaptor.h
  5760. * src/DirectDiskAdaptor.cc
  5761. * src/DirectDiskAdaptor.h
  5762. * src/DiskAdaptor.h
  5763. * src/File.cc
  5764. * src/File.h
  5765. * src/HttpHeader.cc
  5766. * src/HttpHeader.h
  5767. * src/HttpResponse.cc
  5768. * src/HttpResponse.h
  5769. * src/HttpResponseCommand.cc
  5770. * src/HttpResponseCommand.h
  5771. * src/MultiDiskAdaptor.cc
  5772. * src/MultiDiskAdaptor.h
  5773. * src/OptionHandlerFactory.cc
  5774. * src/RequestGroup.cc
  5775. * src/RequestGroup.h
  5776. * src/RequestGroupMan.cc
  5777. * src/option_processing.cc
  5778. * src/prefs.cc
  5779. * src/prefs.h
  5780. * test/CopyDiskAdaptorTest.cc
  5781. * test/FileTest.cc
  5782. * test/Makefile.am
  5783. * test/Makefile.in
  5784. * test/MultiDiskAdaptorTest.cc
  5785. * test/TestUtil.cc
  5786. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5787. Fixed the bug that DiskWriterEntry is not created when its
  5788. FileEntry.isRequested() is false and it doesn't share a piece with
  5789. other FileEntries that are requested. This bug causes segmentation fault
  5790. in the end.
  5791. * src/MultiDiskAdaptor.cc
  5792. * src/MultiDiskAdaptor.h
  5793. * src/MultiFileAllocationIterator.cc
  5794. * test/MultiDiskAdaptorTest.cc
  5795. * test/MultiFileAllocationIteratorTest.cc
  5796. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5798. called if the number of file entries are greater than max open files.
  5799. * src/AbstractSingleDiskAdaptor.cc
  5800. * src/AbstractSingleDiskAdaptor.h
  5801. * src/DiskAdaptor.h
  5802. * src/MultiDiskAdaptor.cc
  5803. * src/MultiDiskAdaptor.h
  5804. * test/MultiDiskAdaptorTest.cc
  5805. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5806. Added a constuctor that receives struct timeval.
  5807. Added operator<.
  5808. * src/TimeA2.cc
  5809. * src/TimeA2.h
  5810. * test/TimeTest.cc
  5811. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5813. * src/CookieParser.cc
  5814. * test/CookieParserTest.cc
  5815. * test/HttpResponseTest.cc
  5816. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5817. Implmented the functions to parse date.
  5818. * src/TimeA2.cc
  5819. * src/TimeA2.h
  5820. * test/TimeTest.cc
  5821. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5822. Added "Firefox3 Cookie" feature to FeatureConfig
  5823. * src/FeatureConfig.cc
  5824. * src/FeatureConfig.h
  5825. * test/FeatureConfigTest.cc
  5826. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Bump up version number to 0.16.0b
  5828. * configure.ac
  5829. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Use pkg-config if is is available.
  5831. * m4/openssl.m4
  5832. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5833. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5834. * src/BtAnnounce.h
  5835. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5836. If an error occurred with a URI, remove identical URI from remaining
  5837. URI list because it is likely that same error occurred in the end and it
  5838. is waste of time.
  5839. * src/AbstractCommand.cc
  5840. * src/RequestGroup.cc
  5841. * src/RequestGroup.h
  5842. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5843. Removed wrong comment.
  5844. * src/DefaultPeerStorage.cc
  5845. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5846. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5847. Added return value of getpid() to argument of srand() to achieve more
  5848. randomized value.
  5849. * src/SimpleRandomizer.cc
  5850. * src/SimpleRandomizer.h
  5851. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. Contact tracker frequently when the number of connections are 0 and
  5853. download is not finished yet.
  5854. * src/ActivePeerConnectionCommand.cc
  5855. * src/BtAnnounce.h
  5856. * src/DefaultBtAnnounce.cc
  5857. * src/DefaultBtAnnounce.h
  5858. * test/MockBtAnnounce.h
  5859. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5860. Moved threshold values to UTPexExtensionMessage.
  5861. * src/DefaultBtInteractive.cc
  5862. * src/Peer.cc
  5863. * src/Peer.h
  5864. * src/UTPexExtensionMessage.cc
  5865. * src/UTPexExtensionMessage.h
  5866. * test/UTPexExtensionMessageTest.cc
  5867. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5868. Added _incoming member to Peer class and made it true if the peer
  5869. initiated connection. Don't add those peer to UTPex message.
  5870. If extended handshake is received, assign _incoming to false.
  5871. * src/DefaultBtInteractive.cc
  5872. * src/HandshakeExtensionMessage.cc
  5873. * src/Peer.cc
  5874. * src/Peer.h
  5875. * src/PeerListenCommand.cc
  5876. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5877. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5878. Encoding Decoder. Removed size threshold for turning off on the fly
  5879. inflation because resulting file may or may not be inflated depending
  5880. on the file size and I think it is not expected by users.
  5881. This change fixes segmentation fault when Metalink file contains gzipped
  5882. file and its filesize is provided.
  5883. * src/HttpResponseCommand.cc
  5884. * src/HttpResponseCommand.h
  5885. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Made Cookie immutable.
  5887. * src/Cookie.cc
  5888. * src/Cookie.h
  5889. * src/CookieParser.cc
  5890. * src/CookieParser.h
  5891. * src/CookieStorage.cc
  5892. * test/CookieParserTest.cc
  5893. * test/CookieStorageTest.cc
  5894. * test/NsCookieParserTest.cc
  5895. * test/Sqlite3MozCookieParserTest.cc
  5896. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5897. Removed CookieBox, CookieBoxFactory.
  5898. * src/CookieBox.cc
  5899. * src/CookieBox.h
  5900. * src/CookieBoxFactory.cc
  5901. * src/CookieBoxFactory.h
  5902. * src/Makefile.am
  5903. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5904. Use CookieStorage class instead of CookieBox class.
  5905. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5906. * src/AbstractProxyRequestCommand.cc
  5907. * src/CookieStorage.cc
  5908. * src/DownloadEngine.cc
  5909. * src/DownloadEngine.h
  5910. * src/HttpConnection.cc
  5911. * src/HttpConnection.h
  5912. * src/HttpRequest.cc
  5913. * src/HttpRequest.h
  5914. * src/HttpRequestCommand.cc
  5915. * src/HttpResponse.cc
  5916. * src/HttpResponseCommand.cc
  5917. * src/HttpSkipResponseCommand.cc
  5918. * src/Makefile.am
  5919. * src/MultiUrlRequestInfo.cc
  5920. * src/Request.cc
  5921. * src/Request.h
  5922. * src/main.cc
  5923. * test/AllTest.cc
  5924. * test/CookieStorageTest.cc
  5925. * test/CookieTest.cc
  5926. * test/HttpRequestTest.cc
  5927. * test/HttpResponseTest.cc
  5928. * test/Makefile.am
  5929. * test/NsCookieParserTest.cc
  5930. * test/Sqlite3MozCookieParserTest.cc
  5931. * test/nscookietest.txt
  5932. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5933. Updated
  5934. * test/Cookies.sqlite
  5935. * test/nscookietest.txt
  5936. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5937. Added tests for CookieStorage::load()
  5938. * test/CookieStorageTest.cc
  5939. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5940. Added CookieStorage class which is based on RFC2109 and manages cookies
  5941. more strictly than CookieBox and CookieBoxFactory class.
  5942. * src/CookieStorage.cc
  5943. * src/CookieStorage.h
  5944. * src/Cookie.cc
  5945. * src/Cookie.h
  5946. * test/CookieStorageTest.cc
  5947. * test/CookieTest.cc
  5948. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5949. Fixed the bug that commands are created more than the number of pieces.
  5950. * src/RequestGroup.cc
  5951. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5952. Fixed infinite loop bug in FTP when SIZE command failed.
  5953. * src/FtpNegotiationCommand.cc
  5954. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Removed DirectDiskAdaptorTest.h
  5956. * test/Makefile.am
  5957. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5958. Fixed chunk checksum validation cannot detect trailing garbage data.
  5959. BUG#2074141
  5960. * src/AbstractSingleDiskAdaptor.cc
  5961. * src/AbstractSingleDiskAdaptor.h
  5962. * src/CheckIntegrityEntry.cc
  5963. * src/CheckIntegrityEntry.h
  5964. * src/DiskAdaptor.h
  5965. * src/MultiDiskAdaptor.cc
  5966. * src/MultiDiskAdaptor.h
  5967. * src/RequestGroup.cc
  5968. * test/DirectDiskAdaptorTest.cc
  5969. * test/MultiDiskAdaptorTest.cc
  5970. * test/TestUtil.cc
  5971. * test/TestUtil.h
  5972. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Bump up version number of dht.dat file to 3. In version 3 format, time
  5974. is stored in 64bit, network byte order.
  5975. New build can load old format(version 2) but it saves the file in new
  5976. format. It means once you used new build, your dht.dat becomes
  5977. incompatible with older build.
  5978. * src/DHTRoutingTableDeserializer.cc
  5979. * src/DHTRoutingTableSerializer.cc
  5980. * test/DHTRoutingTableSerializerTest.cc
  5981. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5982. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5983. * test/Makefile.am
  5984. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Bump up version number of .aria2 control file to 0001.
  5986. New aria2 can still load version 0000 file but it saves the file in
  5987. version 0001 format. It means that new aria2 can resume download
  5988. started by old aria2 but the opposite is not true.
  5989. * src/DefaultBtProgressInfoFile.cc
  5990. * src/DefaultBtProgressInfoFile.h
  5991. * test/DefaultBtProgressInfoFileTest.cc
  5992. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5993. Added ntoh64 and hton64 as inline functions.
  5994. * src/Util.cc
  5995. * test/UtilTest.cc
  5996. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5997. Added sqlite3 depenency and Firefox3 cookie support.
  5998. * README
  5999. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. State that firefox3 cookie is supported explicitly in the usage.
  6001. * src/usage_text.h
  6002. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6003. Externalized message.
  6004. * src/RequestGroupMan.cc
  6005. * src/message.h
  6006. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6007. Save temporary file first and rename to the destination on success.
  6008. Added test cases.
  6009. * src/RequestGroupMan.cc
  6010. * test/RequestGroupManTest.cc
  6011. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6012. Fixed the bug that the number of connected peer is exceeding the limit
  6013. (55 by default) in seeding mode.
  6014. Multiplied 0.8 to _maxUploadSpeedLimit.
  6015. * src/ActivePeerConnectionCommand.cc
  6016. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6017. Clear table item.
  6018. * src/Dictionary.cc
  6019. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6020. Fixed error handling of lseek.
  6021. * src/AbstractDiskWriter.cc
  6022. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6023. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6024. style cookie file.
  6025. * src/usage_text.h
  6026. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6027. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6028. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6029. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6030. * src/Util.cc
  6031. * src/Util.h
  6032. * src/CookieParser.cc
  6033. * test/UtilTest.cc
  6034. * test/CookieParserTest.cc
  6035. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6036. Separate the implementation to load old mozilla format of cookie to
  6037. NsCookieParser class.
  6038. * src/CookieBoxFactory.cc
  6039. * src/CookieBoxFactory.h
  6040. * src/NsCookieParser.cc
  6041. * src/NsCookieParser.h
  6042. * test/NsCookieParserTest.cc
  6043. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6044. Made parse() const
  6045. * src/Sqlite3MozCookieParser.cc
  6046. * src/Sqlite3MozCookieParser.h
  6047. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6048. Added firefox3 cookie support based on the patch submitted by
  6049. tizianomueller.
  6050. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6051. this functionality.
  6052. * configure.ac
  6053. * m4/sqlite3.m4
  6054. * src/CookieBoxFactory.cc
  6055. * src/CookieBoxFactory.h
  6056. * src/Makefile.am
  6057. * src/Makefile.in
  6058. * src/Sqlite3MozCookieParser.cc
  6059. * src/Sqlite3MozCookieParser.h
  6060. * src/main.cc
  6061. * test/CookieBoxFactoryTest.cc
  6062. * test/Makefile.am
  6063. * test/Makefile.in
  6064. * test/Sqlite3MozCookieParserTest.cc
  6065. * test/badcookies.sqlite
  6066. * test/cookies.sqlite
  6067. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6068. Added Danish and Greek translations.
  6069. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6070. Great thanks to all translators.
  6071. * po/LINGUAS
  6072. * po/el.po
  6073. * po/da.po
  6074. * po/es.po
  6075. * po/ca.po
  6076. * po/nn.po
  6077. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6078. Fixed man page: --follow-bittorrent should be --follow-torrent
  6079. * doc/aria2c.1.txt
  6080. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6081. Fixed: numCommand is less than the value specified in -C option.
  6082. * src/RequestGroup.cc
  6083. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6084. Fixed occasional assertion failure in PieceSegment.
  6085. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6086. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6087. creation of duplicate segments and one of the segment was finished then
  6088. assertion failure was caused.
  6089. * src/SegmentMan.cc
  6090. * test/SegmentManTest.cc
  6091. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6092. Added options to load/save the server's performance/status to a file
  6093. and the timeout to drop their data.
  6094. --server-stat-of=FILE specifies the file to which performance data
  6095. is saved.
  6096. --server-stat-if=FILE specifies the file to read previously saved
  6097. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6098. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6099. TIMEOUT is specified in seconds and the default value is 24hours.
  6100. * src/MultiUrlRequestInfo.cc
  6101. * src/OptionHandlerFactory.cc
  6102. * src/RequestGroupMan.cc
  6103. * src/RequestGroupMan.h
  6104. * src/ServerStatMan.cc
  6105. * src/ServerStatMan.h
  6106. * src/option_processing.cc
  6107. * src/prefs.cc
  6108. * src/prefs.h
  6109. * test/ServerStatManTest.cc
  6110. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6111. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6112. * src/ServerStatMan.cc
  6113. * src/ServerStatMan.h
  6114. * test/ServerStatManTest.cc
  6115. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6116. Implemented ServerStatMan::load(...) function and its test case.
  6117. * src/ServerStat.cc
  6118. * src/ServerStat.h
  6119. * src/ServerStatMan.cc
  6120. * test/ServerStatManTest.cc
  6121. * test/ServerStatTest.cc
  6122. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Use time_t instead of int32_t. Use int64_t where milli second is
  6124. expected.
  6125. * src/TimeA2.cc
  6126. * src/TimeA2.h
  6127. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. Implemented ServerStatMan::save(...) function and its test case.
  6129. * src/ServerStat.cc
  6130. * src/ServerStat.h
  6131. * src/ServerStatMan.cc
  6132. * src/ServerStatMan.h
  6133. * test/ServerStatManTest.cc
  6134. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Now aria2 uses name attribute in Metalink as local filename in
  6136. BitTorrent downloads. BUG#2033999
  6137. * src/BtContext.h
  6138. * src/BtDependency.cc
  6139. * src/DefaultBtContext.cc
  6140. * src/DefaultBtContext.h
  6141. * src/SingleFileDownloadContext.cc
  6142. * src/SingleFileDownloadContext.h
  6143. * test/BtDependencyTest.cc
  6144. * test/DefaultBtContextTest.cc
  6145. * test/MockBtContext.h
  6146. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Added AC_C_BIGENDIAN
  6148. * src/configure.ac
  6149. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Limited numCommand less than or equal to the number of piece.
  6151. * src/RequestGroup.cc
  6152. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6154. directive.
  6155. * test/DefaultPieceStorageTest.cc
  6156. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. Fixed memory leak in test code
  6158. * test/AnnounceListTest.cc
  6159. * test/DefaultPeerListProcessorTest.cc
  6160. * test/DefaultPeerStorageTest.cc
  6161. * test/MetaFileUtilTest.cc
  6162. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6164. * src/DefaultPieceStorage.cc
  6165. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Initialized _directIOAllowed
  6167. * src/MultiDiskAdaptor.cc
  6168. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Fixed memory leak
  6170. * src/GZipDecoder.cc
  6171. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6172. Fixed memory leak
  6173. * src/MetalinkParserStateMachine.cc
  6174. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6175. Fixed memory leak
  6176. * src/Dictionary.cc
  6177. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Fixed memory leak
  6179. * src/IteratableChunkChecksumValidator.h
  6180. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6181. Fixed unmatched malloc/free.
  6182. * src/IteratableChunkChecksumValidator.cc
  6183. * src/IteratableChecksumValidator.cc
  6184. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Removed max chunk size check. This change fixes BUG#2040169
  6186. * src/ChunkedDecoder.cc
  6187. * src/ChunkedDecoder.h
  6188. * test/ChunkedDecoderTest.cc
  6189. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6190. Implemented download speed based URI selection algorithm.
  6191. Introduced new option --uri-selector.
  6192. If --uri-selector=feedback is given, aria2 uses download speed observed
  6193. in the previous downloads and chooses fastest server in the URI list.
  6194. Currently at most 10 URIs are considered to introduce randomeness for
  6195. finding better servers. The speed is average download speed in the
  6196. downloads.
  6197. On the other hand, if --uri-selector=inorder is given, which is default,
  6198. URI is tried in order in URI list.
  6199. The usage text for the new option has not been written yet.
  6200. * src/AbstractCommand.cc
  6201. * src/DownloadCommand.cc
  6202. * src/DownloadEngine.cc
  6203. * src/DownloadEngineFactory.cc
  6204. * src/InOrderURISelector.cc
  6205. * src/InOrderURISelector.h
  6206. * src/OptionHandlerFactory.cc
  6207. * src/PeerStat.h
  6208. * src/RequestGroup.cc
  6209. * src/RequestGroup.h
  6210. * src/RequestGroupMan.cc
  6211. * src/RequestGroupMan.h
  6212. * src/SegmentMan.cc
  6213. * src/SegmentMan.h
  6214. * src/ServerStat.cc
  6215. * src/ServerStat.h
  6216. * src/ServerStatMan.cc
  6217. * src/ServerStatMan.h
  6218. * src/ServerStatURISelector.cc
  6219. * src/ServerStatURISelector.h
  6220. * src/URISelector.h
  6221. * src/option_processing.cc
  6222. * src/prefs.cc
  6223. * src/prefs.h
  6224. * test/InOrderURISelectorTest.cc
  6225. * test/RequestGroupManTest.cc
  6226. * test/ServerStatManTest.cc
  6227. * test/ServerStatURISelectorTest.cc
  6228. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6229. * Release 0.15.1+2
  6230. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6231. Bump up version number to 0.15.1+2
  6232. * configure.ac
  6233. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6235. * m4/aria2_arg.m4
  6236. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6237. * Release 0.15.1+1
  6238. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6239. Bump up version number to 0.15.1+1
  6240. * configure.ac
  6241. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6242. Fixed the bug that causes segmentaion fault when resuming download
  6243. using metalink without size tag. Reproducible only using HTTP URI.
  6244. * src/HttpResponseCommand.cc
  6245. * src/FtpNegotiationCommand.cc
  6246. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. * Release 0.15.1
  6248. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6249. Updated Bulgarian and French translations, thanks to all translators.
  6250. * po/bg.po
  6251. * po/fr.po
  6252. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6253. Bump up version number to 0.15.1
  6254. * configure.ac
  6255. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6256. Avoid repeated call of gettimeofday() when calculating speed.
  6257. * src/SpeedCalc.cc
  6258. * src/SpeedCalc.h
  6259. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6260. Removed writable check when socket's send buffer is full in BitTorrent
  6261. downloads to lower CPU usage.
  6262. * src/PeerInteractionCommand.cc
  6263. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6264. Fixed broken gzip inflation.
  6265. Turn off segmented downloading if gzip content is smaller than or equal
  6266. to 1MiB and inflate the data on the fly, because HTTP response header
  6267. doesn't contain the length of inflated file we can't determin where
  6268. the chunk of data should be written.
  6269. On the other hand, if gzip content is larger than 1MB, then turn off
  6270. on the fly inflation, because some servers returns "content-type: gzip"
  6271. for *.tgz, *.gz files.
  6272. * src/DownloadCommand.cc
  6273. * src/HttpResponseCommand.cc
  6274. * src/HttpResponseCommand.h
  6275. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. Applied tizianomueller's patch to fix compile error.
  6277. * test/BitfieldManTest.cc
  6278. * test/BtRequestMessageTest.cc
  6279. * test/DefaultBtContextTest.cc
  6280. * test/DefaultDiskWriterTest.cc
  6281. * test/DefaultPieceStorageTest.cc
  6282. * test/HttpHeaderProcessorTest.cc
  6283. * test/HttpResponseTest.cc
  6284. * test/Metalink2RequestGroupTest.cc
  6285. * test/MetalinkParserControllerTest.cc
  6286. * test/MetalinkProcessorTest.cc
  6287. * test/PeerSessionResourceTest.cc
  6288. * test/UtilTest.cc
  6289. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6290. * Release 0.15.0
  6291. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6292. Reordered src files in POTFILES.in so that usage text appears first.
  6293. * po/POTFILES.in
  6294. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Bump up version number to 0.15.0
  6296. * configure.ac
  6297. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Added Bulgarian translation.
  6299. Updated Catalan, Spanish, French and Japanese translations.
  6300. Thanks to all translators.
  6301. * po/LINGUAS
  6302. * po/bg.po
  6303. * po/ca.po
  6304. * po/es.po
  6305. * po/fr.po
  6306. * po/ja.po
  6307. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. Updated feature list. Added libz for dependency section.
  6309. Added a description about unit testing using CppUnit.
  6310. * README
  6311. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. Added a test for libz. Quoted where it is necessary.
  6313. * build_test.sh
  6314. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. Added GZip to `Enabled Features' list.
  6316. * src/FeatureConfig.cc
  6317. * src/FeatureConfig.h
  6318. * test/FeatureConfigTest.cc
  6319. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6320. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6321. the transfer has not yet started.
  6322. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6323. * src/SegmentMan.cc
  6324. * src/SegmentMan.h
  6325. * test/SegmentManTest.cc
  6326. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6327. Cache last calculated average download/upload speed.
  6328. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6329. cached value.
  6330. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6331. * src/PeerStat.h
  6332. * src/SpeedCalc.cc
  6333. * src/SpeedCalc.h
  6334. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6335. Call parseUrl directly.
  6336. * src/Request.cc (resetUrl)
  6337. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6338. Supported absolute/relative path in Location header field.
  6339. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6340. * src/HttpHeader.cc
  6341. * src/HttpHeader.h
  6342. * src/HttpResponse.cc
  6343. * src/HttpSkipResponseCommand.cc
  6344. * src/Request.cc
  6345. * test/HttpHeaderTest.cc
  6346. * test/HttpResponseTest.cc
  6347. * test/RequestTest.cc
  6348. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6349. Changed help text for --load-cookie option.
  6350. * doc/aria2c.1.txt
  6351. * src/usage_text.h
  6352. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Regenerated test/Makefile.in to remove stale ChangeLog.
  6354. * test/Makefile.in
  6355. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Updated po files.
  6357. * po/aria2c.pot
  6358. * po/*.po
  6359. * po/*.gmo
  6360. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6361. Bump up version number to 0.15.0b
  6362. * configure.ac
  6363. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. Externalize messages.
  6365. * src/RequestGroupMan.cc
  6366. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6367. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6368. Use File::exists() instead of File::isFile() to allow non-regular file
  6369. such as block special files.
  6370. * src/AbstractDiskWriter.cc
  6371. * src/MultiDiskWriter.cc
  6372. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6373. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6374. * src/gai_strerror.h
  6375. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Fixed compile error. Thanks gknauf for the patch.
  6377. * src/asctime_r.c
  6378. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6379. Included asctime_r.h from a2time.h.
  6380. * src/a2time.h
  6381. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Added a message "aria2 doesn't verify signature" to log message when
  6383. signature file is saved.
  6384. * src/RequestGroupMan.cc
  6385. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6386. Added the ability to save signature when download is completed if
  6387. signature is available. The filename of signature file is the path to
  6388. download file followed by ".sig". If it already exists, then signature
  6389. will not be saved.
  6390. * src/RequestGroupMan.cc
  6391. * src/Signature.cc
  6392. * test/SignatureTest.cc
  6393. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. Updated the descriptions for --bt-seed-unverified.
  6395. * doc/aria2c.1
  6396. * doc/aria2c.1.html
  6397. * doc/aria2c.1.txt
  6398. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6399. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6400. that this is not going to verify files using piece hashes.
  6401. * src/HelpItemFactory.cc
  6402. * src/OptionHandlerFactory.cc
  6403. * src/RequestGroup.cc
  6404. * src/option_processing.cc
  6405. * src/prefs.cc
  6406. * src/prefs.h
  6407. * src/usage_text.h
  6408. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6409. Added the ability to retrieve signature from Metalink file.
  6410. A retrieved signature is stored in Signature class and it is held by
  6411. DownloadContext class. Note that aria2 doesn't verify signature.
  6412. * src/DownloadContext.cc
  6413. * src/DownloadContext.h
  6414. * src/Makefile.am
  6415. * src/Makefile.in
  6416. * src/Metalink2RequestGroup.cc
  6417. * src/MetalinkEntry.cc
  6418. * src/MetalinkEntry.h
  6419. * src/MetalinkParserController.cc
  6420. * src/MetalinkParserController.h
  6421. * src/MetalinkParserStateMachine.cc
  6422. * src/MetalinkParserStateMachine.h
  6423. * src/Signature.cc
  6424. * src/Signature.h
  6425. * src/SignatureMetalinkParserState.cc
  6426. * src/SignatureMetalinkParserState.h
  6427. * src/VerificationMetalinkParserState.cc
  6428. * src/VerificationMetalinkParserState.h
  6429. * test/Metalink2RequestGroupTest.cc
  6430. * test/MetalinkParserControllerTest.cc
  6431. * test/MetalinkProcessorTest.cc
  6432. * test/test.xml
  6433. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6434. Close DiskAdaptor after renaming file.
  6435. * src/RequestGroup.cc
  6436. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. Corrected indentation
  6438. * src/DefaultBtProgressInfoFile.cc
  6439. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. Moved the calls of std::ios::exceptions() inside of try-catch block
  6441. because if an error occurred in constructor of std::fstream, then
  6442. exception is thrown immediately when std::ios::exceptions() is called
  6443. which results unhandled exception and aria2c aborts.
  6444. * src/DefaultBtProgressInfoFile.cc
  6445. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Added the test for the previous change in DefaultBtContext.cc
  6447. * test/DefaultBtContextTest.cc
  6448. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6449. Fixed the bug that causes infinite loop when the number of pieces are
  6450. fewer than allowed fast set size which is 10 by default.
  6451. * src/DefaultBtContext.cc
  6452. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Updated the descriptions for -j, -s. Added --bt-seed.
  6454. * doc/aria2c.1
  6455. * doc/aria2c.1.html
  6456. * doc/aria2c.1.txt
  6457. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6459. aria2 seeds previously downloaded files without validating piece hashs.
  6460. * src/HelpItemFactory.cc
  6461. * src/OptionHandlerFactory.cc
  6462. * src/RequestGroup.cc
  6463. * src/option_processing.cc
  6464. * src/prefs.cc
  6465. * src/prefs.h
  6466. * src/usage_text.h
  6467. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. Updated DESCRIPTION of man page.
  6469. * doc/aria2c.1
  6470. * doc/aria2c.1.html
  6471. * doc/aria2c.1.txt
  6472. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6473. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6474. Don't define `struct addrinfo' when __sun is defined.
  6475. * src/getaddrinfo.h
  6476. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6477. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6478. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6479. second argument is of type `struct _stati64'. Otherwise it is defined as
  6480. `struct stat'.
  6481. * src/AbstractDiskWriter.cc
  6482. * src/File.cc
  6483. * src/File.h
  6484. * src/a2io.h
  6485. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6486. Fixed the compile error in hurd-i386
  6487. See the original bug report:
  6488. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6489. * src/a2io.h
  6490. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6491. Code cleanup.
  6492. * src/PeerAbstractCommand.cc
  6493. * src/PeerAbstractCommand.h
  6494. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. Removed TransferEncoding.
  6496. * src/DownloadCommand.cc
  6497. * src/DownloadCommand.h
  6498. * src/HttpResponseCommand.cc
  6499. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6500. Updated po files.
  6501. * po/aria2c.pot
  6502. * po/*.po
  6503. * po/*.gmo
  6504. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6505. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6506. * src/A2STR.cc
  6507. * src/A2STR.h
  6508. * src/ChunkedDecoder.cc
  6509. * src/ChunkedDecoder.h
  6510. * src/ChunkedEncoding.cc: Removed
  6511. * src/ChunkedEncoding.h: Removed
  6512. * src/DownloadCommand.cc
  6513. * src/DownloadCommand.h
  6514. * src/HttpDownloadCommand.cc
  6515. * src/HttpResponse.cc
  6516. * src/HttpResponse.h
  6517. * src/HttpResponseCommand.cc
  6518. * src/HttpSkipResponseCommand.cc
  6519. * src/HttpSkipResponseCommand.h
  6520. * src/Makefile.am
  6521. * src/TransferEncoding.h: Removed
  6522. * test/ChunkedDecoderTest.cc
  6523. * test/ChunkedEncodingTest.cc: Removed
  6524. * test/HttpResponseTest.cc
  6525. * test/Makefile.am
  6526. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6527. Use append instead of insert.
  6528. * src/GZipDecoder.cc
  6529. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Updated doc
  6531. * src/Decoder.h
  6532. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Updated usage text for -s option.
  6534. * src/usage_text.h
  6535. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6536. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6537. * src/Request.cc
  6538. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6539. Cleaned up configure.ac.
  6540. * configure.ac
  6541. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6542. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6543. AC_ARG_ENABLE.
  6544. * configure.ac
  6545. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6546. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6547. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6548. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6549. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6550. fly and writes decoded data to a local disk.
  6551. * README
  6552. * README.html
  6553. * configure.ac
  6554. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6555. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6556. * m4/libz.m4
  6557. * src/Decoder.h
  6558. * src/DownloadCommand.cc
  6559. * src/DownloadCommand.h
  6560. * src/Exception.h
  6561. * src/GZipDecoder.cc
  6562. * src/GZipDecoder.h
  6563. * src/HttpHeader.cc
  6564. * src/HttpHeader.h
  6565. * src/HttpRequest.cc
  6566. * src/HttpRequest.h
  6567. * src/HttpResponse.cc
  6568. * src/HttpResponse.h
  6569. * src/HttpResponseCommand.cc
  6570. * src/Makefile.am
  6571. * test/GZipDecoderTest.cc
  6572. * test/HttpRequestTest.cc
  6573. * test/HttpResponseTest.cc
  6574. * test/Makefile.am
  6575. * test/Makefile.in
  6576. * test/gzip_decode_test.gz
  6577. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Clarified usage of -j option.
  6579. * src/usage_text.h
  6580. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. Disabled getting size from the response of RETR.
  6582. If SIZE command failed, then disable resuming and segmented downloading.
  6583. * src/FtpConnection.cc
  6584. * src/FtpConnection.h
  6585. * src/FtpNegotiationCommand.cc
  6586. * src/FtpNegotiationCommand.h
  6587. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6588. Use digits to find first byte of file size, which makes the intention
  6589. of the code clearer.
  6590. * src/FtpConnection.cc
  6591. Don't call validateTotalLength() when size is 0.
  6592. * src/FtpNegotiationCommand.cc
  6593. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6594. Updated po files.
  6595. * po/aria2c.pot
  6596. * po/*.gmo
  6597. * po/*.po
  6598. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6599. Clarified usage text for --split option.
  6600. * src/usage_text.h
  6601. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Bump up version number to 0.15.0dev. "dev" means "development"
  6603. version, which means I started the development of the next release!
  6604. * src/configure.ac
  6605. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. If FTP server returns negative response with REST raw command and
  6607. requested range is not 0, throw exception. If requested range is 0,
  6608. continue download a file from 0 byte.
  6609. * src/FtpNegotiationCommand.cc
  6610. * src/FtpNegotiationCommand.h
  6611. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Supported FTP server which don't recognize SIZE raw command.
  6613. If SIZE raw command is failed, aria2 will try to get file size
  6614. from the response of RETR raw command. If both attempts are failed,
  6615. then resuming and segmented downloading are disabled.
  6616. * src/FtpConnection.cc
  6617. * src/FtpConnection.h
  6618. * src/FtpNegotiationCommand.cc
  6619. * src/FtpNegotiationCommand.h
  6620. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6621. * Release 0.14.0+1
  6622. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Bump up version number to 0.14.0+1
  6624. * src/configure.ac
  6625. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6626. Fixed the code that refers static member variable from non-static
  6627. context.
  6628. * src/DefaultPeerStorage.cc
  6629. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6630. * Release 0.14.0
  6631. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6632. Added build test script
  6633. * build_test.sh
  6634. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6635. Updated ja.po
  6636. * src/ja.po
  6637. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6638. Bump up version number to 0.14.0
  6639. * src/configure.ac
  6640. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6641. Updated ja.po and fr.po. Great thanks for french translators and
  6642. Sebastien WILLEMIJNS.
  6643. * po/fr.po
  6644. * po/ja.po
  6645. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6646. Added configure option to enable/disable epoll support.
  6647. * configure.ac
  6648. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Updated man page.
  6650. * doc/aria2c.1.txt
  6651. * doc/aria2c.1
  6652. * doc/aria2c.1.html
  6653. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6654. Added missing default value '5' to the usage of --split option.
  6655. * src/HelpItemFactory.cc
  6656. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Filled up pieces based on the number of missing blocks, rather than
  6658. simplay the number of piece * block length.
  6659. * src/BtRequestFactory.h
  6660. * src/DefaultBtInteractive.cc
  6661. * src/DefaultBtInteractive.h
  6662. * src/DefaultBtRequestFactory.cc
  6663. * src/DefaultBtRequestFactory.h
  6664. * src/Piece.cc
  6665. * src/Piece.h
  6666. * test/BitfieldManTest.cc
  6667. * test/DefaultBtRequestFactoryTest.cc
  6668. * test/MockBtRequestFactory.h
  6669. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6670. Made _epEvents a member variable.
  6671. * src/DownloadEngine.cc
  6672. * src/DownloadEngine.h
  6673. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Cancel download if http redirect is bounded more than 20 times.
  6675. * src/AbstractCommand.cc
  6676. * src/HttpSkipResponseCommand.cc
  6677. * src/Request.cc
  6678. * src/Request.h
  6679. * test/RequestTest.cc
  6680. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6681. Fixed unhandled exception(removed keyword `new').
  6682. * src/SocketCore.cc (initEPOLL)
  6683. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6684. Removed visit(const MetaEntry*)
  6685. * src/MetaEntryVisitor.h:
  6686. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6687. and made them virtual.
  6688. * src/BencodeVisitor.h
  6689. * src/BencodeVisitor.cc
  6690. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6691. Updated po files.
  6692. * po/aria2c.pot
  6693. * po/*.po
  6694. * po/*.gmo
  6695. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6696. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6697. the number of socket to watch out.
  6698. * src/PeerInteractionCommand.cc
  6699. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. When there is not enough space in disk when writing a chunk of data,
  6701. aria2 now prints the message to the console to warn user and aborts
  6702. its download. Not all downloads are canceled because some downloads
  6703. may use another disk or partition. BUG#1640332
  6704. * src/AbstractDiskWriter.cc
  6705. * src/PeerAbstractCommand.cc
  6706. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6707. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6708. setHaltRequested(true) to cancel download.
  6709. * src/PeerInteractionCommand.h
  6710. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6711. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6712. socket from int to sock_t as sockets are unsigned in Windows.
  6713. For AsyncNameResolver, DownloadEngine, I did additional modification
  6714. for the portion of the code changed according to epoll support.
  6715. I defined sock_t in a2netcompat.h to use sock_t without including
  6716. SocketCore.h.
  6717. * src/AsyncNameResolver.cc
  6718. * src/AsyncNameResolver.h
  6719. * src/DownloadEngine.cc
  6720. * src/DownloadEngine.h
  6721. * src/SocketCore.cc
  6722. * src/SocketCore.h
  6723. * src/a2netcompat.h
  6724. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6726. changes in the patch were applied.
  6727. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6728. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6729. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6730. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6731. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6732. a2io.h and common.h were modified.
  6733. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6734. MinGW.
  6735. * src/common.h: Changed off_t to 64 bit in MinGW.
  6736. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6737. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6738. only a2netcompat.h is modified.
  6739. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6740. directives.
  6741. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6742. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6743. only gai_strerror.h is modified.
  6744. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6745. winsock errors in MinGW.
  6746. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6747. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6748. follow sources are applied.
  6749. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6750. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6751. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6752. I included locale.h from Platform.cc.
  6753. * src/main.cc: Moved common setup/teardown code to Platform class.
  6754. * test/AllTest.cc: Use Platform class.
  6755. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6756. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6758. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6759. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6760. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6761. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6762. aria2-0.13.2+1-mingw-2.patch.
  6763. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6764. systems which don't have termious.h. I moved the directive inside of
  6765. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6766. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6767. anyway.
  6768. * src/asctime_r.h
  6769. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6770. I added 2nd argument to the prototype declaration.
  6771. * src/StringFormat.cc: Get rid of vasprintf.
  6772. * src/getaddrinfo.h: Fixed constants.
  6773. * configure.ac: Added the check for asctime_r function.
  6774. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6775. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6776. Added writable test for Socket when the sending message is in progress.
  6777. Usually the sending message is piece message. Without wriable check,
  6778. upload latency is dropped to more than 1sec.
  6779. * src/PeerInteractionCommand.cc
  6780. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6781. Create only requested files and files which shares a piece with
  6782. requested file in multi-torrent downloads. Directory structures are
  6783. also created in the same rule.
  6784. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6785. DiskWriterEntry as in the previous implementation.
  6786. * src/MultiDiskWriter.cc
  6787. * src/MultiFileAllocationIterator.cc
  6788. * src/MultiFileAllocationIterator.h
  6789. * test/MultiFileAllocationIteratorTest.cc
  6790. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Commented out -lprofiler
  6792. * src/Makefile.am
  6793. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6794. Bump up version number to 0.14.0b.
  6795. * src/configure.ac
  6796. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Actively establish connection to peers in seeding, when peer cache
  6798. is not full and max upload speed limit is not reached.
  6799. * src/ActivePeerConnectionCommand.cc
  6800. * src/ActivePeerConnectionCommand.h
  6801. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6802. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6803. to make room more fleshy, recently found peers.
  6804. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6805. it.
  6806. * src/DefaultPeerStorage.cc
  6807. * test/DefaultPeerStorageTest.cc
  6808. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6809. Returns cached data only when the previous receiveHandshake() is called
  6810. with peek = true.
  6811. * src/PeerConnection.cc (receiveHandshake)
  6812. * src/PeerConnection.h (receiveHandshake)
  6813. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Changed default value of -s option from 1 to 5.
  6815. Also max value of -s option is changed from 5 to 16.
  6816. * src/HelpItemFactory.cc
  6817. * src/OptionHandlerFactory.cc
  6818. * src/option_processing.cc
  6819. * src/usage_text.h
  6820. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6821. Changed -s options behavior. Now it means the number of connections
  6822. made simultaneously in each http/ftp download.
  6823. If 1 URL is specified, the behavior is the same with old implementation.
  6824. If -s N is given and more than N URLs are specified, first N URLs are
  6825. used and remaining URLs are used for backup. If less than N URLs are
  6826. specified, some of URLs are used more than once so that totally N
  6827. connections are made simultaneously.
  6828. * src/main.cc
  6829. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6830. Included missing iosfwd or ostream header.
  6831. * src/RequestGroupMan.cc
  6832. * src/TaggedItem.cc
  6833. * src/TaggedItem.h
  6834. * src/Util.cc
  6835. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6836. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6837. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6838. * src/HttpConnection.cc: Included missing sstream.
  6839. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6840. Added --bt-max-open-files option.
  6841. * src/DefaultPieceStorage.cc
  6842. * src/HelpItemFactory.cc
  6843. * src/MultiDiskAdaptor.cc
  6844. * src/MultiDiskAdaptor.h
  6845. * src/OptionHandlerFactory.cc
  6846. * src/option_processing.cc
  6847. * src/prefs.cc
  6848. * src/prefs.h
  6849. * src/usage_text.h
  6850. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6851. Fixed the bug that aria2 aborts when a path to a directory is given
  6852. in command-line.
  6853. * src/ProtocolDetector.cc
  6854. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6855. Limited the number files opened in each BitTorrent download. The default
  6856. value is 100. The option to change this value will be added.
  6857. * src/MultiDiskAdaptor.cc
  6858. * src/MultiDiskAdaptor.h
  6859. * src/MultiFileAllocationIterator.cc
  6860. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6861. Fixed the bug that HTTP downloads don't start with old libraries.
  6862. * src/HttpHeaderProcessor.cc
  6863. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6864. Use empty() instead of size() > 0.
  6865. * src/HttpConnection.cc
  6866. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. Drop connection if the incoming peer ID is the same with localhost's
  6868. one. The previous implementation drops connection when incoming peer's
  6869. IP address is the same with localhost's one.
  6870. * src/PeerListenCommand.cc
  6871. * src/DefaultBtInteractive.cc
  6872. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Returns cached data without checking whether socket is readable
  6874. if the cache is available.
  6875. * src/PeerConnection.cc (receiveHandshake)
  6876. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6877. Included stdint.h
  6878. * src/common.h
  6879. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Removed duplicate HAVE_GETTIMEOFDAY
  6881. * src/Makefile.am
  6882. * src/Makefile.in
  6883. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6884. Use interval as a minInterval when minInterval is not supplied.
  6885. * src/DefaultBtAnnounce.cc
  6886. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6887. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6888. attempt is failed, then 2nd attempt get kicked out more quickly.
  6889. And it is now static const member of DefaultBtAnnounce.
  6890. * src/DefaultBtAnnounce.h
  6891. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6892. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6893. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6894. * src/ActivePeerConnectionCommand.cc
  6895. * src/BtConstants.h
  6896. * src/BtRuntime.h
  6897. * src/DHTGetPeersCommand.cc
  6898. * src/DefaultBtAnnounce.cc
  6899. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6900. BtRuntime::MAX_PEERS.
  6901. * src/DefaultPeerStorage.h
  6902. * src/InitiatorMSEHandshakeCommand.cc
  6903. * src/PeerInitiateConnectionCommand.cc
  6904. * src/PeerInteractionCommand.cc
  6905. * src/PeerReceiveHandshakeCommand.cc
  6906. * src/TrackerWatcherCommand.cc
  6907. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6908. Always Connect to _numNewConnection
  6909. * src/ActivePeerConnectionCommand.cc
  6910. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Made `begin' unsigned int.
  6912. * src/GrowSegment.h
  6913. * src/Piece.cc
  6914. * src/Piece.h
  6915. * src/PiecedSegment.cc
  6916. * src/PiecedSegment.h
  6917. * src/Segment.h
  6918. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Calculate piece hash when data is arrived if the data is arrived in
  6920. order. This removes additional read operation for hash calculation.
  6921. If the data is arrived in out of order, the hash is calucated when the
  6922. piece is completed. This is the same behavior as the old implementation.
  6923. * src/BtPieceMessage.cc
  6924. * src/DefaultBtProgressInfoFile.cc
  6925. * src/DefaultPieceStorage.cc
  6926. * src/DownloadCommand.cc
  6927. * src/DownloadCommand.h
  6928. * src/DownloadEngine.cc
  6929. * src/GrowSegment.cc
  6930. * src/GrowSegment.h
  6931. * src/Piece.cc
  6932. * src/Piece.h
  6933. * src/PiecedSegment.cc
  6934. * src/PiecedSegment.h
  6935. * src/Segment.h
  6936. * test/PieceTest.cc
  6937. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6938. Try to keep the ordering of outgoing piece message.
  6939. * src/DefaultBtMessageDispatcher.cc
  6940. (DefaultBtMessageDispatcher::sendMessages)
  6941. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6942. Fixed busy loop when error/hup epoll events occur.
  6943. * src/AbstractCommand.cc
  6944. * src/PeerAbstractCommand.cc
  6945. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6946. Added --bt-request-peer-speed-limit option, which was a constant
  6947. SLOW_SPEED_THRESHOLD.
  6948. * src/ActivePeerConnectionCommand.cc
  6949. * src/ActivePeerConnectionCommand.h
  6950. * src/BtConstants.h
  6951. * src/HelpItemFactory.cc
  6952. * src/OptionHandlerFactory.cc
  6953. * src/PeerReceiveHandshakeCommand.cc
  6954. * src/option_processing.cc
  6955. * src/prefs.cc
  6956. * src/prefs.h
  6957. * src/usage_text.h
  6958. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Removed repeated call of getTopDirPath(). Instead, call it once and
  6960. cache the result.
  6961. * src/MultiDiskAdaptor.cc
  6962. * src/MultiDiskAdaptor.h
  6963. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6964. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Fixed compile error on debian etch.
  6966. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6967. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6968. it is undefined.
  6969. * src/Util.cc (ULLONG_MAX)
  6970. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Added epoll support. Use epoll if it is available. If not, use select.
  6972. When async dns is enabled in compile time, epoll support is enabled
  6973. only when aria2 is built with c-ares. This condition statement is
  6974. defined in a2io.h.
  6975. Currently aria2 supports both c-ares and ares, but ares is maintained
  6976. for quite a while and debian already has c-ares package, ares support
  6977. will be dropped in the future version.
  6978. * configure.ac
  6979. * src/AbstractCommand.cc
  6980. * src/AsyncNameResolver.cc
  6981. * src/AsyncNameResolver.h
  6982. * src/Command.cc
  6983. * src/Command.h
  6984. * src/DownloadEngine.cc
  6985. * src/DownloadEngine.h
  6986. * src/PeerAbstractCommand.cc
  6987. * src/SocketCore.cc
  6988. * src/SocketCore.h
  6989. * src/a2io.h
  6990. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6991. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6992. directive.
  6993. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6994. Do not do write operation to /dev/null file.
  6995. * src/LogFactory.cc
  6996. * src/SimpleLogger.cc
  6997. Replaced vasprintf with vsnprintf
  6998. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6999. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7000. * src/BtRequestMessage.cc
  7001. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7002. for segmentation fault caused by previous commit.
  7003. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. Reduced the usage of gettimeofday().
  7005. * src/DefaultBtMessageDispatcher.cc
  7006. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7007. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7008. * src/RequestSlot.cc
  7009. * src/RequestSlot.h
  7010. (RequestSlot::isTimeout)
  7011. Made RequestSlot have a reference to Piece object to avoid find
  7012. Piece repeatedly.
  7013. * src/DefaultBtMessageDispatcher.cc
  7014. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7015. * src/RequestSlot.cc
  7016. * src/RequestSlot.h
  7017. (RequestSlot::getPiece)
  7018. * test/DefaultBtMessageDispatcherTest.cc
  7019. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7020. * src/TimeA2.cc
  7021. * src/TimeA2.h
  7022. (Time::difference): New function.
  7023. (Time::elapsed): Done optimization.
  7024. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7026. directive.
  7027. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7028. * src/option_processing.cc: Added missing `defined' keyword to #if
  7029. directive.
  7030. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Bump up version number to 0.13.2+1
  7032. * src/configure.ac
  7033. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7034. Refactored broken outstanding piece handling.
  7035. * src/DefaultPieceStorage.cc
  7036. * src/DefaultPieceStorage.h
  7037. * src/Piece.cc
  7038. * src/Piece.h
  7039. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7040. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7041. name collision of static variable and predefined macro.
  7042. * src/BtContext.cc
  7043. * src/BtContext.h
  7044. * src/CookieBoxFactory.cc
  7045. * src/CookieBoxFactory.h
  7046. * src/CookieParser.cc
  7047. * src/CookieParser.h
  7048. * src/DefaultBtContext.cc
  7049. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. * src/RequestGroup.cc
  7051. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7052. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. * Release 0.13.2
  7054. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7056. * po/fr.po
  7057. * po/ja.po
  7058. * po/aria2c.pot
  7059. * po/*.po
  7060. * po/*.gmo
  7061. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7062. Bump up version number to 0.13.2
  7063. * src/configure.ac
  7064. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7065. Refactord.
  7066. * src/RequestGroupMan.cc
  7067. (removeStoppedGroup)
  7068. (fillRequestGroupFromReserver)
  7069. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Fixed compile error on Ubuntu.
  7071. * src/BtPieceMessage.cc
  7072. * src/MessageDigestHelper.cc
  7073. * src/Util.cc
  7074. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Fixed compile error when configured with --disable-bittorrent
  7076. * test/DownloadHandlerFactoryTest.cc
  7077. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Done make update-po
  7079. * po/aria2c.pot
  7080. * po/*.po
  7081. * po/*.gmo
  7082. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7083. Bump up version number to 0.13.2rc.
  7084. * src/configure.ac
  7085. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. Made option name bold. Updated SYNOPSIS to make it more readable.
  7087. * doc/aria2c.1.txt
  7088. * doc/aria2c.1
  7089. * doc/aria2c.1.html
  7090. * src/version_usage.cc
  7091. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7092. Refactored. Use std::string instead of size and char*.
  7093. * Data.cc
  7094. * Data.h
  7095. * test/Data.cc
  7096. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7097. Added trimSelf(). Rewritten trim() to use trimSelf().
  7098. * Util.cc
  7099. * Util.h
  7100. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7102. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7103. Fixed compile error when configured with --disable-metalink.
  7104. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7105. * test/FeatureConfigTest.cc
  7106. * test/DownloadHandlerFactoryTest.cc
  7107. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7108. Fixed compile error when configured with --without-gnutls
  7109. --without-openssl
  7110. * src/main.cc
  7111. * test/DefaultBtProgressInfoFileTest.cc
  7112. * test/SegmentManTest.cc
  7113. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. Fixed compile error with OpenSSL.
  7115. * src/IteratableChunkChecksumValidator.cc
  7116. * src/LibsslDHKeyExchange.h
  7117. * src/MessageDigestHelper.cc
  7118. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Revert the default value of --max-concurrent-downloads to 5.
  7120. Revert the default value of --metalink-servers to 5.
  7121. Man pages was also updated.
  7122. * src/option_processing.cc
  7123. * doc/aria2c.1.txt
  7124. * doc/aria2c.1.html
  7125. * doc/aria2c.1
  7126. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7127. Returns const reference:
  7128. DownloadContext::getPieceHash, DownloadContext::getName,
  7129. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7130. BtContext::getInfoHashAsString,
  7131. * src/BtContext.h
  7132. * src/DefaultBtContext.cc
  7133. * src/DefaultBtContext.h
  7134. * src/DownloadContext.h
  7135. * src/SingleFileDownloadContext.h
  7136. * test/MockBtContext.h
  7137. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7138. * src/RequestGroup.h (getDir): Removed.
  7139. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7140. Returns const reference. The internal urlencode function was optimized
  7141. a little bit.
  7142. * src/Request.cc
  7143. * src/Request.h
  7144. * src/HttpRequest.cc
  7145. * src/HttpRequest.h
  7146. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7147. Defined option name and possible values as std::string to reduce
  7148. temporary string object creation in runtime.
  7149. * src/HelpItemFactory.cc
  7150. * src/LogFactory.cc
  7151. * src/Option.cc
  7152. * src/OptionHandlerFactory.cc
  7153. * src/option_processing.cc
  7154. * src/prefs.cc
  7155. * src/prefs.h
  7156. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Return const reference.
  7158. * src/DownloadHandlerConstants.cc
  7159. * src/DownloadHandlerConstants.h
  7160. (getMetalinkExtensions)
  7161. (getMetalinkContentTypes)
  7162. (getBtExtensions)
  7163. (getBtContentTypes)
  7164. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7165. * src/HttpHeader.cc (get): Rewritten.
  7166. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Make HttpHeader::getFirst(...) return const reference.
  7168. * src/HttpHeader.cc
  7169. * src/HttpHeader.h
  7170. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7171. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7172. it with V_TRUE.
  7173. * src/DefaultPieceStorage.cc
  7174. * src/DownloadCommand.cc
  7175. * src/FtpNegotiationCommand.cc
  7176. * src/HttpRequest.cc
  7177. * src/InitiateConnectionCommand.cc
  7178. * src/RequestGroup.cc
  7179. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Made Option::get(...) return const reference of std::string.
  7181. * src/Option.cc
  7182. * src/Option.h
  7183. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7184. Replaced std:copy with insert.
  7185. * src/DefaultBtMessageDispatcher.cc
  7186. * src/DefaultPieceStorage.cc
  7187. * src/DownloadEngineFactory.cc
  7188. * src/RequestGroup.cc
  7189. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. Included SocketCore.h to fix compiler warning.
  7191. * src/InitiateConnectionCommand.cc
  7192. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7193. Put piece selection strategy algorithm to RarestPieceSelector class,
  7194. Added a switch to choose whether randomized selection so that unit
  7195. tests emit same results in, possibly, win32.
  7196. * src/DefaultPieceStorage.cc
  7197. * src/DefaultPieceStorage.h
  7198. * src/RarestPieceSelector.cc
  7199. * src/RarestPieceSelector.h
  7200. * test/DefaultPieceStorageTest.cc
  7201. * test/RarestPieceSelectorTest.cc
  7202. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7203. Don't pool connection if HTTP proxy is enabled.
  7204. * src/FtpFinishDownloadCommand.cc
  7205. * src/FtpNegotiationCommand.cc
  7206. * src/HttpSkipResponseCommand.cc
  7207. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7208. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7209. * src/AbstractCommand.cc
  7210. * src/AbstractCommand.h
  7211. * src/ActivePeerConnectionCommand.cc
  7212. * src/FtpInitiateConnectionCommand.cc
  7213. * src/HttpInitiateConnectionCommand.cc
  7214. * src/InitiateConnectionCommandFactory.cc
  7215. * src/PeerAbstractCommand.cc
  7216. * src/PeerAbstractCommand.h
  7217. * src/PeerInitiateConnectionCommand.cc
  7218. * src/TrackerWatcherCommand.cc
  7219. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Sort RequestSlot in ascending order and manipulate them using
  7221. lower_bound.
  7222. * src/DefaultBtMessageDispatcher.cc
  7223. * src/DefaultBtMessageDispatcher.h
  7224. (getMessageQueue): Added const qualifier.
  7225. (getRequestSlots): Added const qualifier.
  7226. (sendMessages): Use empty() instead of size().
  7227. (doCancelSendingPieceAction): Use HandleEvent object.
  7228. (doAbortOutstandingRequestAction): Rewritten.
  7229. (doChokedAction): Rewritten.
  7230. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7231. (isOutstandingRequest): Rewritten.
  7232. (getOutstandingRequest): Rewritten.
  7233. (removeOutstandingRequest): Rewritten.
  7234. (addOutstandingRequest): Rewritten.
  7235. * src/RequestSlot.cc
  7236. * src/RequestSlot.h
  7237. (operator=): Rewritten.
  7238. (operator!=): New function.
  7239. (operator<): New function.
  7240. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7241. * src/DefaultBtRequestFactory.cc
  7242. (doChokedAction): Rewritten.
  7243. (removeCompletedPiece): Rewritten.
  7244. (removeTargetPiece): Rewritten.
  7245. (createRequestMessages): Added the debug log.
  7246. (createRequestMessagesOnEndGame: Added the debug log.
  7247. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Added the debug log message.
  7249. * src/BtPieceMessage.cc (doReceivedAction)
  7250. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7251. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7252. used lower_bound to process them rather than linear search.
  7253. * src/DHTPeerAnnounceStorage.cc
  7254. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7255. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7256. peer has at least one completed piece.
  7257. * src/Peer.cc
  7258. * src/Peer.h
  7259. * src/PeerInteractionCommand.cc
  7260. * src/PeerSessionResource.cc
  7261. * src/PeerSessionResource.h
  7262. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7263. Removed unnecessary sorting
  7264. * src/DefaultPieceStorage (DefaultPieceStorage)
  7265. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7266. Rewritten the portion of the code that mangaes allowed fast indexes.
  7267. * src/PeerSessionResource.cc
  7268. * src/PeerSessionResource.h
  7269. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Removed the invalid string including '\r' from ru.po and
  7271. did make update-po.
  7272. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7273. Added --log-level and --summary-interval to man page.
  7274. * doc/aria2c.1.txt
  7275. * doc/aria2c.1.html
  7276. * doc/aria2c.1
  7277. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7278. Added --log-level option to specify log level. Log messages under
  7279. the specified level are not output. Default value is `debug'.
  7280. * src/HelpItemFactory.cc
  7281. * src/LogFactory.cc
  7282. * src/LogFactory.h
  7283. * src/Logger.h
  7284. * src/OptionHandlerFactory.cc
  7285. * src/SimpleLogger.cc
  7286. * src/SimpleLogger.h
  7287. * src/main.cc
  7288. * src/option_processing.cc
  7289. * src/prefs.h
  7290. * src/usage_text.h
  7291. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7292. Print download progress summary of all parallel downloads in specified
  7293. interval, default 60 secs. While aria2 could download several files
  7294. in parallel (see -j option), it displayed just first download progress,
  7295. and the other downloads are hidden from the users. This new feature
  7296. prints all downloads currently in-progress to the console so that you
  7297. can check the status of all downloads. The interval can be adjusted
  7298. by --summary-interval option.
  7299. The progress readout is now cut so that all fits in the one line of
  7300. console.
  7301. * src/ConsoleStatCalc.cc
  7302. * src/ConsoleStatCalc.h
  7303. * src/HelpItemFactory.cc
  7304. * src/OptionHandlerFactory.cc
  7305. * src/RequestGroupMan.cc
  7306. * src/RequestGroupMan.h
  7307. * src/main.cc
  7308. * src/option_processing.cc
  7309. * src/prefs.h
  7310. * src/usage_text.h
  7311. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7313. * src/DownloadEngine.cc (DownloadEngine)
  7314. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7316. defined.
  7317. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7318. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Use erase+lower_bound+insert instead of sort.
  7320. * src/DefaultPieceStorage.cc (addPieceStats)
  7321. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7322. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7323. * src/A2STR.cc
  7324. * src/A2STR.h
  7325. * src/OptionParser.cc (parse)
  7326. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7327. Defined fake filename `[tracker.announce]' as static const std::string.
  7328. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7329. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7330. Defined default filename `index.html' as static const std::string
  7331. * src/SingleFileDownloadContext.cc
  7332. * src/SingleFileDownloadContext.h
  7333. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7334. Defined "[MEMORY]" as static const std::string.
  7335. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7336. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7337. Defined control file's version number as static const std::string.
  7338. * src/DefaultBtProgressInfoFile.cc
  7339. * src/DefaultBtProgressInfoFile.h
  7340. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7341. Use Request::METHOD_GET
  7342. * src/RequestGroup.cc (createNextCommandWithAdj)
  7343. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7344. Defined "OK", "ERR", "INPR" as static const std::string
  7345. * src/RequestGroupMan.cc (showDownloadResults)
  7346. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7347. Defined default client used in extended handshake as static const
  7348. std::string
  7349. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7350. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7352. * src/HttpConnection.cc (eraseConfidentialInfo)
  7353. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Defined default ftp user and password as static const std::string
  7355. * src/AuthConfigFactory.cc
  7356. * src/AuthConfigFactory.h
  7357. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7358. Defined strings used in netrc as static const std::string
  7359. * src/Netrc.cc
  7360. * src/Netrc.h
  7361. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Defined HTTP status as static const std::string
  7363. * src/AbstractProxyResponseCommand.cc
  7364. * src/HttpHeader.cc
  7365. * src/HttpHeader.h
  7366. * src/HttpResponse.cc
  7367. * src/HttpResponseCommand.cc
  7368. * src/HttpSkipResponseCommand.cc
  7369. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7370. Defined "\r\n", "A", "I" as static const std::string
  7371. * src/A2STR.cc
  7372. * src/A2STR.h
  7373. * src/FtpConnection.cc
  7374. * src/FtpConnection.h
  7375. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. Added COLON_C(".") and used it in Request::parseUrl()
  7377. * src/A2STR.cc
  7378. * src/A2STR.h
  7379. * src/Request.cc (parseUrl)
  7380. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7381. Changed the type of padName from `const std::string&' to `const char*'.
  7382. * src/MSEHandshake.cc (verifyPadLength)
  7383. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7384. Defined "sha1" as static const std::string.
  7385. * src/MetalinkParserController.cc
  7386. * src/MetalinkParserController.h
  7387. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7388. Defined message digest algorithm name as static const std::string
  7389. * src/DHTTokenTracker.cc
  7390. * src/DHTUtil.cc
  7391. * src/DefaultBtContext.cc
  7392. * src/MSEHandshake.cc
  7393. * src/MessageDigestHelper.cc
  7394. * src/Peer.cc
  7395. * src/messageDigest.cc
  7396. * src/messageDigest.h
  7397. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Made string literals used in SAX parser static const std::string.
  7399. * src/FileMetalinkParserState.cc
  7400. * src/FileMetalinkParserState.h
  7401. * src/FilesMetalinkParserState.cc
  7402. * src/FilesMetalinkParserState.h
  7403. * src/InitialMetalinkParserState.cc
  7404. * src/InitialMetalinkParserState.h
  7405. * src/MetalinkMetalinkParserState.cc
  7406. * src/MetalinkMetalinkParserState.h
  7407. * src/PiecesMetalinkParserState.cc
  7408. * src/PiecesMetalinkParserState.h
  7409. * src/ResourcesMetalinkParserState.cc
  7410. * src/ResourcesMetalinkParserState.h
  7411. * src/VerificationMetalinkParserState.cc
  7412. * src/VerificationMetalinkParserState.h
  7413. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7415. * src/A2STR.cc
  7416. * src/A2STR.h
  7417. * src/File.cc
  7418. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7419. Defined static const std::string IP("ip"), PORT("port") and use them
  7420. instead of string literals.
  7421. * src/DefaultPeerListProcessor.cc
  7422. * src/DefaultPeerListProcessor.h
  7423. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Made string literals for torrent file processing static const
  7425. std::string.
  7426. * src/BtContext.cc
  7427. * src/BtContext.h
  7428. * src/DefaultBtContext.cc
  7429. * src/DefaultBtContext.h
  7430. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7431. Made string literal for tracker response static const std::string
  7432. * src/BtAnnounce.cc
  7433. * src/BtAnnounce.h
  7434. * src/DefaultBtAnnounce.cc
  7435. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7436. Use DHTMessage::T instead of "t".
  7437. * src/DHTMessageTracker.cc (messageArrived)
  7438. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7439. Made keyName static const. Made trimmed charset static const
  7440. std::string.
  7441. * src/Util.cc (getContentDispositionFilename)
  7442. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7443. Made USER_AGENT const. Made "/" static const std::string.
  7444. * src/A2STR.cc
  7445. * src/A2STR.h
  7446. * src/HttpRequest.cc
  7447. * src/HttpRequest.h
  7448. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7449. Made string listeral to static const std::string:
  7450. "Content-Range", "Content-Length"
  7451. * src/HttpHeader.cc
  7452. * src/HttpHeader.h
  7453. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7454. Made string listeral to static const std::string.
  7455. * src/HttpConnection.cc
  7456. * src/HttpHeader.cc
  7457. * src/HttpHeader.h
  7458. * src/HttpResponse.cc
  7459. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. Made string listeral to static const std::string.
  7461. * src/A2STR.cc
  7462. * src/A2STR.h
  7463. * src/SimpleLogger.cc
  7464. * src/SimpleLogger.h
  7465. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7466. Made string literal to static const std::string.
  7467. Rewritten CookieParser::setField.
  7468. * src/A2STR.cc
  7469. * src/A2STR.h
  7470. * src/CookieBoxFactory.cc
  7471. * src/CookieBoxFactory.h
  7472. * src/CookieParser.cc
  7473. * src/CookieParser.h
  7474. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7475. Made string literal to static const std::string
  7476. * src/DHTAbstractMessage.cc
  7477. * src/DHTAnnouncePeerMessage.cc
  7478. * src/DHTAnnouncePeerMessage.h
  7479. * src/DHTAnnouncePeerReplyMessage.cc
  7480. * src/DHTAnnouncePeerReplyMessage.h
  7481. * src/DHTFindNodeMessage.cc
  7482. * src/DHTFindNodeMessage.h
  7483. * src/DHTFindNodeReplyMessage.cc
  7484. * src/DHTFindNodeReplyMessage.h
  7485. * src/DHTGetPeersMessage.cc
  7486. * src/DHTGetPeersMessage.h
  7487. * src/DHTGetPeersReplyMessage.cc
  7488. * src/DHTGetPeersReplyMessage.h
  7489. * src/DHTMessage.cc
  7490. * src/DHTMessage.h
  7491. * src/DHTMessageFactoryImpl.cc
  7492. * src/DHTMessageReceiver.cc
  7493. * src/DHTPingMessage.cc
  7494. * src/DHTPingMessage.h
  7495. * src/DHTPingReplyMessage.cc
  7496. * src/DHTPingReplyMessage.h
  7497. * src/DHTQueryMessage.cc
  7498. * src/DHTQueryMessage.h
  7499. * src/DHTResponseMessage.cc
  7500. * src/DHTResponseMessage.h
  7501. * src/DHTUnknownMessage.cc
  7502. * src/DHTUnknownMessage.h
  7503. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Made string literal to static const std::string
  7505. * src/BtChokeMessage.cc (toString)
  7506. * src/BtHaveAllMessage.cc (toString)
  7507. * src/BtHaveNoneMessage.cc (toString)
  7508. * src/BtInterestedMessage.cc (toString)
  7509. * src/BtNotInterestedMessage.cc (toString)
  7510. * src/BtUnchokeMessage.cc (toString)
  7511. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7512. Replaced "" with static const variable A2STR::NIL.
  7513. Replaced string comparison against "" with std::string::empty().
  7514. Added PROTO_* to Request class and use them as a protocol string
  7515. constant.
  7516. Made "started", "stopped", "completed" static const variable in
  7517. AnnounceList class.
  7518. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Updated translations. Great thanks to translators.
  7520. * po/ca.po
  7521. * po/de.po
  7522. * po/fr.po
  7523. * po/it.po
  7524. * po/ja.po
  7525. * po/ru.po
  7526. * po/zh_CN.po
  7527. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Updated man page; categorized options and fixed typo.
  7529. * doc/aria2c.1.txt
  7530. * doc/aria2c.1.html
  7531. * doc/aria2c.1
  7532. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Removed const ref
  7534. * src/MetalinkEntry.cc (AddProtocolPreference)
  7535. * src/RequestGroup.cc (FindServerHostByHostname)
  7536. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. Rewritten Accept-Features handling.
  7538. * src/HttpRequestCommand.cc (createHttpRequest)
  7539. * src/a2functional.h
  7540. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7541. Changed method signature:
  7542. DHTAbstractNodeLookupTask::toEntries
  7543. * src/DHTAbstractNodeLookupTask.cc
  7544. * src/DHTAbstractNodeLookupTask.h
  7545. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7546. Changed method signature:
  7547. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7548. * src/BtContext.h
  7549. * src/DefaultBtContext.cc
  7550. * src/DefaultBtContext.h
  7551. * src/DefaultBtInteractive.cc
  7552. * test/DefaultBtContextTest.cc
  7553. * test/MockBtContext.h
  7554. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7555. Changed method signature:
  7556. MultiFileAllocationIterator::makeDiskWriterEntries
  7557. * src/MultiFileAllocationIterator.cc
  7558. * src/MultiFileAllocationIterator.h
  7559. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. Changed method sinature:
  7561. MetalinkEntry::toFileEntry,
  7562. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7563. Metalinker::queryEntry
  7564. * src/Metalink2RequestGroup.cc
  7565. * src/MetalinkEntry.cc
  7566. * src/MetalinkEntry.h
  7567. * src/MetalinkHelper.cc
  7568. * src/MetalinkHelper.h
  7569. * src/Metalinker.cc
  7570. * src/Metalinker.h
  7571. * src/main.cc
  7572. * test/MetalinkHelperTest.cc
  7573. * test/MetalinkerTest.cc
  7574. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Changed method sinature:
  7576. RequestGroup::getURIs
  7577. * src/RequestGroup.cc
  7578. * src/RequestGroup.h
  7579. * test/Metalink2RequestGroupTest.cc
  7580. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Changed method signature:
  7582. PeerListProcessor::extractPeer
  7583. * src/CompactPeerListProcessor.cc
  7584. * src/CompactPeerListProcessor.h
  7585. * src/DefaultBtAnnounce.cc
  7586. * src/DefaultPeerListProcessor.cc
  7587. * src/DefaultPeerListProcessor.h
  7588. * src/DelegatingPeerListProcessor.cc
  7589. * src/DelegatingPeerListProcessor.h
  7590. * src/PeerListProcessor.h
  7591. * src/UTPexExtensionMessage.cc
  7592. * test/DefaultPeerListProcessorTest.cc
  7593. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7594. Changed method signature:
  7595. BtRequestFactory::createRequestMessages,
  7596. BtRequestFactory::createRequestMessagesOnEndGame
  7597. * src/BtRequestFactory.h
  7598. * src/DefaultBtInteractive.cc
  7599. * src/DefaultBtRequestFactory.cc
  7600. * src/DefaultBtRequestFactory.h
  7601. * test/DefaultBtRequestFactoryTest.cc
  7602. * test/MockBtRequestFactory.h
  7603. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7604. Changed method signature:
  7605. PieceStorage::getInFlightPieces
  7606. * src/DefaultBtProgressInfoFile.cc
  7607. * src/DefaultPieceStorage.cc
  7608. * src/DefaultPieceStorage.h
  7609. * src/PieceStorage.h
  7610. * src/UnknownLengthPieceStorage.cc
  7611. * src/UnknownLengthPieceStorage.h
  7612. * test/DefaultBtProgressInfoFileTest.cc
  7613. * test/MockPieceStorage.h
  7614. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Changed method signature:
  7616. PostDownloadHandler::getNextRequestGroups
  7617. Metalink2RequestGroup::generate
  7618. RequestGroup::postDownloadProcessing
  7619. * src/BtPostDownloadHandler.cc
  7620. * src/BtPostDownloadHandler.h
  7621. * src/Metalink2RequestGroup.cc
  7622. * src/Metalink2RequestGroup.h
  7623. * src/MetalinkPostDownloadHandler.cc
  7624. * src/MetalinkPostDownloadHandler.h
  7625. * src/PostDownloadHandler.h
  7626. * src/RequestGroup.cc
  7627. * src/RequestGroup.h
  7628. * src/RequestGroupMan.cc
  7629. * src/main.cc
  7630. * test/BtPostDownloadHandlerTest.cc
  7631. * test/Metalink2RequestGroupTest.cc
  7632. * test/MetalinkPostDownloadHandlerTest.cc
  7633. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7634. Rewritten AccRequestGroup
  7635. * src/main.cc
  7636. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7637. Rewritten.
  7638. * src/TaggedItem.cc (toTagString)
  7639. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7640. Rewritten Accept-Features handling.
  7641. * src/HttpRequestCommand.cc (createHttpRequest)
  7642. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Rewritten accept types handling.
  7644. * HttpRequest.cc (createRequest)
  7645. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Rewritten
  7647. * src/FeatureConfig.cc (featureSummary)
  7648. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7649. Changed method signature:
  7650. PeerStorage::getActivePeers
  7651. * src/DHTPeerAnnounceEntry.cc
  7652. * src/DefaultPeerStorage.cc
  7653. * src/DefaultPeerStorage.h
  7654. * src/PeerStorage.h
  7655. * test/DefaultPeerStorageTest.cc
  7656. * test/MockPeerStorage.h
  7657. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7658. Changed method signature:
  7659. DHTPeerAnnounceStorage::getPeers,
  7660. DHTPeerAnnounceEntry::getPeers
  7661. * src/DHTGetPeersMessage.cc
  7662. * src/DHTPeerAnnounceEntry.cc
  7663. * src/DHTPeerAnnounceEntry.h
  7664. * src/DHTPeerAnnounceStorage.cc
  7665. * src/DHTPeerAnnounceStorage.h
  7666. * test/DHTAnnouncePeerMessageTest.cc
  7667. * test/DHTPeerAnnounceEntryTest.cc
  7668. * test/DHTPeerAnnounceStorageTest.cc
  7669. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Changed method signature:
  7671. NameResolver::resolve
  7672. * src/DHTEntryPointNameResolveCommand.cc
  7673. * src/InitiateConnectionCommand.cc
  7674. * src/NameResolver.cc
  7675. * src/NameResolver.h
  7676. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7677. Changed method signature:
  7678. PieceStorage::getAdvertisedPieceIndexes
  7679. * src/DefaultBtInteractive.cc
  7680. * src/DefaultPieceStorage.cc
  7681. * src/DefaultPieceStorage.h
  7682. * src/PieceStorage.h
  7683. * src/UnknownLengthPieceStorage.h
  7684. * test/MockPieceStorage.h
  7685. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Changed method signature:
  7687. SegmentMan::getInFlightSegment
  7688. * src/AbstractCommand.cc
  7689. * src/SegmentMan.cc
  7690. * src/SegmentMan.h
  7691. * test/SegmentManTest.cc
  7692. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7693. Changed method signature:
  7694. DHTAbstractNodeLookupTask::getNodesFromMessage
  7695. * src/DHTAbstractNodeLookupTask.cc
  7696. * src/DHTAbstractNodeLookupTask.h
  7697. * src/DHTNodeLookupTask.cc
  7698. * src/DHTNodeLookupTask.h
  7699. * src/DHTPeerLookupTask.cc
  7700. * src/DHTPeerLookupTask.h
  7701. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7703. * src/AbstractCommand.cc
  7704. * src/BtCheckIntegrityEntry.cc
  7705. * src/BtCheckIntegrityEntry.h
  7706. * src/BtFileAllocationEntry.cc
  7707. * src/BtFileAllocationEntry.h
  7708. * src/BtSetup.cc
  7709. * src/BtSetup.h
  7710. * src/CheckIntegrityCommand.cc
  7711. * src/CheckIntegrityEntry.h
  7712. * src/ChecksumCheckIntegrityEntry.cc
  7713. * src/ChecksumCheckIntegrityEntry.h
  7714. * src/DHTSetup.cc
  7715. * src/DHTSetup.h
  7716. * src/DownloadEngine.cc
  7717. * src/FileAllocationCommand.cc
  7718. * src/FileAllocationEntry.h
  7719. * src/RequestGroup.cc
  7720. * src/RequestGroup.h
  7721. * src/RequestGroupMan.cc
  7722. * src/RequestGroupMan.h
  7723. * src/StreamCheckIntegrityEntry.cc
  7724. * src/StreamCheckIntegrityEntry.h
  7725. * src/StreamFileAllocationEntry.cc
  7726. * src/StreamFileAllocationEntry.h
  7727. * src/TrackerWatcherCommand.cc
  7728. * src/a2functional.h
  7729. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. Changed method signature:
  7731. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7732. DHTBucket::getGoodNodes,
  7733. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7734. * src/BNode.cc
  7735. * src/BNode.h
  7736. * src/DHTAbstractNodeLookupTask.cc
  7737. * src/DHTAutoSaveCommand.cc
  7738. * src/DHTBucket.cc
  7739. * src/DHTBucket.h
  7740. * src/DHTBucketRefreshTask.cc
  7741. * src/DHTFindNodeMessage.cc
  7742. * src/DHTGetPeersMessage.cc
  7743. * src/DHTRoutingTable.cc
  7744. * src/DHTRoutingTable.h
  7745. * test/BNodeTest.cc
  7746. * test/DHTBucketTest.cc
  7747. * test/DHTRoutingTableTest.cc
  7748. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7749. In piece selection functions, Pass std::deque<...> by reference rather
  7750. than returning it.
  7751. * src/BitfieldMan.cc
  7752. * src/BitfieldMan.h
  7753. * src/DefaultBtRequestFactory.cc
  7754. * src/DefaultPieceStorage.cc
  7755. * src/Piece.cc
  7756. * src/Piece.h
  7757. * test/BitfieldManTest.cc
  7758. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7759. Implemented rarest piece first piece selection strategy.
  7760. * src/AbstractBtMessage.cc
  7761. * src/AbstractBtMessage.h
  7762. * src/BitfieldMan.cc
  7763. * src/BitfieldMan.h
  7764. * src/BtBitfieldMessage.cc
  7765. * src/BtHaveAllMessage.cc
  7766. * src/BtHaveMessage.cc
  7767. * src/DefaultPieceStorage.cc
  7768. * src/DefaultPieceStorage.h
  7769. * src/PeerInteractionCommand.cc
  7770. * src/PieceStorage.h
  7771. * src/UnknownLengthPieceStorage.h
  7772. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Rewritten readData and writeData.
  7774. * src/MultiDiskAdaptor.cc
  7775. * src/MultiDiskAdaptor.h
  7776. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7777. Move \n out of the message "Usage: ...".
  7778. * src/version_usage.cc
  7779. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7780. Bump up version number to 0.13.2b.
  7781. * configure.ac
  7782. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Added const qualifier to argument Exception& e.
  7784. * src/Logger.h
  7785. * src/SimpleLogger.cc
  7786. * src/SimpleLogger.h
  7787. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7788. Pool connection when CWD, SIZE command fails.
  7789. * src/FtpNegotiationCommand.cc
  7790. * src/FtpNegotiationCommand.h
  7791. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7792. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7793. * src/HttpResponseCommand.cc
  7794. * src/HttpSkipResponseCommand.cc
  7795. * src/HttpSkipResponseCommand.h
  7796. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7797. Pool connection when a server returns 4xx, 5xx responses.
  7798. * src/HttpNullDownloadCommand.cc
  7799. * src/HttpNullDownloadCommand.h
  7800. * src/HttpResponse.cc
  7801. * src/HttpResponse.h
  7802. * src/HttpResponseCommand.cc
  7803. * src/HttpResponseCommand.h
  7804. * test/HttpResponseTest.cc
  7805. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Print usage when no URL is specifed or bad command-line option is
  7807. specified.
  7808. * src/HelpItemFactory.cc
  7809. * src/help_tags.h
  7810. * src/option_processing.cc
  7811. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7812. Removed duplicate log message.
  7813. * src/AbstractCommand.cc (asyncResolveHostname)
  7814. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7816. Changed -j option's default value from 5 to 1.
  7817. Added new examples using protocol auto detection feature.
  7818. Removed -T, -M usage where it can be omitted.
  7819. * doc/aria2c.1.txt
  7820. * doc/aria2c.1.html
  7821. * doc/aria2c.1.txt
  7822. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Updated command-line usage text, so that it tells users that they
  7824. can specify any number of torrent files and metalink files in
  7825. command-line.
  7826. * src/version_usage.cc
  7827. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Changed the default value of -j option to 1.
  7829. * src/HelpItemFactory.cc
  7830. * src/option_processing.cc
  7831. * src/usage_text.h
  7832. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Added the ability to reuse connection in FTP and it is enabled by
  7834. default. It can be disabled by --ftp-reuse-connection=false option.
  7835. * src/Command.cc
  7836. * src/DownloadCommand.cc
  7837. * src/FtpDownloadCommand.cc
  7838. * src/FtpDownloadCommand.h
  7839. * src/FtpFinishDownloadCommand.cc
  7840. * src/FtpFinishDownloadCommand.h
  7841. * src/FtpInitiateConnectionCommand.cc
  7842. * src/FtpNegotiationCommand.cc
  7843. * src/FtpNegotiationCommand.h
  7844. * src/HelpItemFactory.cc
  7845. * src/Makefile.am
  7846. * src/Makefile.in
  7847. * src/OptionHandlerFactory.cc
  7848. * src/option_processing.cc
  7849. * src/prefs.h
  7850. * src/usage_text.h
  7851. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Call Command::transitStatus() before calling Command::execute(),
  7853. so that the status change made in execute() is not cleared.
  7854. * src/DownloadEngine.cc
  7855. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Removed forward declaration of SocketCore class.
  7857. * src/HttpDownloadCommand.h
  7858. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7860. in InitiateConnectionCommandFactory. They should be set only when
  7861. the protocol is HTTP or HTTPS.
  7862. * src/InitiateConnectionCommandFactory.cc
  7863. * src/RequestGroup.cc
  7864. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7865. Fixed infinite loop in checksum checking.
  7866. * src/IteratableChecksumValidator.cc
  7867. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7868. Set _supportsPersistentConnection to true by default.
  7869. * src/Request.cc
  7870. * src/RequestGroup.cc
  7871. * test/HttpRequestTest.cc
  7872. * test/RequestTest.cc
  7873. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7874. Added timeout to socket pool. The default timeout is 15 seconds,
  7875. which is the same value Apache uses.
  7876. * src/DownloadEngine.cc
  7877. * src/DownloadEngine.h
  7878. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7879. Fixed misuse of multimap::find()
  7880. * src/HttpHeader.cc
  7881. * test/HttpHeaderTest.cc
  7882. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7883. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7884. option.
  7885. The asynchronous DNS is not capable of IPv6 yet.
  7886. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7887. least for HTTP download.
  7888. * src/AbstractCommand.cc
  7889. * src/AbstractCommand.h
  7890. * src/AsyncNameResolver.cc
  7891. * src/AsyncNameResolver.h
  7892. * src/DHTEntryPointNameResolveCommand.cc
  7893. * src/DHTEntryPointNameResolveCommand.h
  7894. * src/DownloadEngine.cc
  7895. * src/DownloadEngine.h
  7896. * src/FtpInitiateConnectionCommand.cc
  7897. * src/FtpInitiateConnectionCommand.h
  7898. * src/HelpItemFactory.cc
  7899. * src/HttpInitiateConnectionCommand.cc
  7900. * src/HttpInitiateConnectionCommand.h
  7901. * src/InitiateConnectionCommand.cc
  7902. * src/InitiateConnectionCommand.h
  7903. * src/Makefile.am
  7904. * src/Makefile.in
  7905. * src/NameResolver.cc
  7906. * src/NameResolver.h
  7907. * src/OptionHandlerFactory.cc
  7908. * src/SocketCore.cc
  7909. * src/SocketCore.h
  7910. * src/Util.cc
  7911. * src/Util.h
  7912. * src/option_processing.cc
  7913. * src/prefs.h
  7914. * src/usage_text.h
  7915. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. Updated man page: --quiet, --header were added.
  7917. --metalink-servers and --enable-http-keep-alive option were updated.
  7918. * doc/aria2c.1
  7919. * doc/aria2c.1.html
  7920. * doc/aria2c.1.txt
  7921. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Enable HTTP keep-alive by default.
  7923. * src/HelpItemFactory.cc
  7924. * src/option_processing.cc
  7925. * src/usage_text.h
  7926. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7927. Disable http keep-alive if the remote server is not HTTP/1.1.
  7928. * src/HttpConnection.cc
  7929. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7930. Receive content body of 302 response so that the connection can be
  7931. reused later when http keep-alive is enabled.
  7932. * src/HttpNullDownloadCommand.cc
  7933. * src/HttpNullDownloadCommand.h
  7934. * src/HttpResponseCommand.cc
  7935. * src/HttpResponseCommand.h
  7936. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. const SharedHandle<Request> -> const SharedHandle<Request>&
  7938. * src/FtpDowndloadCommand.cc
  7939. * src/FtpDowndloadCommand.h
  7940. * src/HttpDownloadCommand.cc
  7941. * src/HttpDownloadCommand.h
  7942. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7943. Fixed the bug that the control file(.aria2 file) is not renamed
  7944. according to tryAutoFileRenaming().
  7945. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7946. its control file exist, use them and continue download.
  7947. The old implementation didn't take into account of control file's
  7948. existence, so basically you couldn't continue download of renamed file.
  7949. * src/BtProgressInfoFile.h
  7950. * src/DefaultBtProgressInfoFile.cc
  7951. * src/DefaultBtProgressInfoFile.h
  7952. * src/NullProgressInfoFile.h
  7953. * src/RequestGroup.cc
  7954. * test/DefaultBtProgressInfoFileTest.cc
  7955. * test/MockBtProgressInfoFile.h
  7956. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7957. Change the default value of --metalink-servers option from `5' to `1'.
  7958. * src/HelpItemFactory.cc
  7959. * src/option_processing.cc
  7960. * src/usage_text.h
  7961. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Reimplemented transparent metalink using Accept request header.
  7963. * src/HttpRequest.cc
  7964. * src/HttpRequest.h
  7965. * src/HttpRequestCommand.cc
  7966. * src/Metalink2RequestGroup.cc
  7967. * src/RequestGroup.cc
  7968. * src/RequestGroup.h
  7969. * test/HttpRequestTest.cc
  7970. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7971. Bump up version number to 0.13.2a
  7972. * configure.ac
  7973. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Updated configure.ac using the result of autoscan.
  7975. * configure.ac
  7976. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7977. Fixed compilation error without gcrypt/openssl.
  7978. * src/DownloadCommand.cc
  7979. * src/DownloadCommand.h
  7980. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7981. Reorganized version information so that it can be displayed in a
  7982. standard terminal screen without scrolling.
  7983. Removed http, ftp from Configuration section, because they are always
  7984. enabled.
  7985. * src/FeatureConfig.cc
  7986. * src/FeatureConfig.h
  7987. * src/main.cc
  7988. * src/messageDigest.cc
  7989. * src/messageDigest.h
  7990. * src/version_usage.cc
  7991. * test/FeatureConfigTest.cc
  7992. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Masked user ID in log.
  7994. * src/FtpConnection.cc (sendUser)
  7995. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Removed query part from filename in HTTP download. The query part means
  7997. the substring after "?" in URL. Firefox seems do the same thing.
  7998. A query part is sometimes very long and not suitable to filename,
  7999. so I think it is better to remove it from filename.
  8000. * src/HttpRequest.cc
  8001. * src/HttpRequest.h
  8002. * src/Request.cc
  8003. * src/Request.h
  8004. * test/HttpRequestTest.cc
  8005. * test/RequestTest.cc
  8006. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Rewritten Exception class. Throw exception object, not its pointer and
  8008. catch by reference, so that remove problematic delete operator for
  8009. catched exception.
  8010. * src/Exception.cc
  8011. * src/Exception.h
  8012. * test/ExceptionTest.cc
  8013. * src/*: All files throwing/catching exception.
  8014. * test/*: All files throwing/catching exception.
  8015. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Now auto protocol detection is enabled without -Z option.
  8017. But there is a important difference between with/without -Z optoin.
  8018. For example, if you type:
  8019. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8020. then, aria2 interprets there are 3 request groups:
  8021. (1) http://host/file, http://mirror/file <-- multi-source download
  8022. (2) file1.torrent
  8023. (3) file2.metalink
  8024. On the other hand, if you invoke above command with -Z option, it is
  8025. interpreted as 4 request groups:
  8026. (1) http://host/file
  8027. (2) file1.torrent
  8028. (3) file2.metalink
  8029. (4) http://mirror/file
  8030. I think usually user don't mix multi-source URLs and torrent files, so
  8031. there is no big problem here.
  8032. * src/main.cc
  8033. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8034. Fixed the bug that causes segmentaion fault when reading XML containing
  8035. unescapsed character like '&'.
  8036. Also a modification was made which avoids adding unnecessary
  8037. characters stack and appending unused string.
  8038. * src/ExpatMetalinkProcessor.cc
  8039. * src/FileMetalinkParserState.h
  8040. * src/FilesMetalinkParserState.h
  8041. * src/FinMetalinkParserState.h
  8042. * src/HashMetalinkParserState.h
  8043. * src/InitialMetalinkParserState.h
  8044. * src/LanguageMetalinkParserState.h
  8045. * src/MetalinkMetalinkParserState.h
  8046. * src/MetalinkParserState.h
  8047. * src/MetalinkParserStateMachine.cc
  8048. * src/MetalinkParserStateMachine.h
  8049. * src/OSMetalinkParserState.h
  8050. * src/PieceHashMetalinkParserState.h
  8051. * src/PiecesMetalinkParserState.h
  8052. * src/ResourcesMetalinkParserState.h
  8053. * src/SizeMetalinkParserState.h
  8054. * src/SkipTagMetalinkParserState.h
  8055. * src/URLMetalinkParserState.h
  8056. * src/VerificationMetalinkParserState.h
  8057. * src/VersionMetalinkParserState.h
  8058. * src/XML2SAXMetalinkProcessor.cc
  8059. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Added StringFormat class, which internally calls vasprintf.
  8061. operator<< is defined for this class, so it can be used with iostream
  8062. classes nicely. SimpleLogger and following functions are rewritten
  8063. using StringFormat class.
  8064. Besides, now Logger class's methods are non-const, many classes
  8065. that has a const Logger* as a member variable are modified to remove
  8066. const qualifier from the variable declaration.
  8067. * src/HelpItemFactory.cc
  8068. * src/Request.cc
  8069. * src/SimpleLogger.cc
  8070. * src/StringFormat.cc
  8071. * src/StringFormat.h
  8072. * src/Util.cc
  8073. * src/option_processing.cc
  8074. * src/version_usage.cc
  8075. * test/StringFormatTest.cc
  8076. * src/*.h: The classes that has const Logger* as a member variable.
  8077. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8078. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8079. failed. Also fixed memory link when exception is thrown there.
  8080. * src/main.cc (AccRequestGroup)
  8081. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8082. Added build-in "Accept-Features" support. For now only "metalink" is
  8083. used in this header field.
  8084. This "metalink" value is removed from the list when connecting URLs
  8085. fed by metalink file to avoid loop in "transparent" metlaink.
  8086. * src/HttpRequest.cc
  8087. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8088. header is also held in this variable. Also renamed setUserHeaders as
  8089. addHeader and it was rewritten to add header not just to clear the old
  8090. value.
  8091. * src/HttpRequestCommand.cc
  8092. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8093. from "Accept-Features" list.
  8094. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8095. default.
  8096. * src/RequestGroup.h
  8097. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8098. * src/a2functional.h: Included <string> because Concat class depends on
  8099. it.
  8100. * test/HttpRequestTest.cc
  8101. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8102. Added comment
  8103. * src/RequestGroup.cc (createNextCommand)
  8104. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. Capitalized METHOD_GET and METHOD_HEAD
  8106. * src/Request.cc
  8107. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. Added getDownloadResults() method
  8109. * src/RequestGroupMan.cc
  8110. * src/RequestGroupMan.h
  8111. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. Fixed the bug that aria2 exits when commands is empty() but
  8113. _routineCommands are not.
  8114. * src/DownloadEngine.cc
  8115. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Use the default value pulled from Option object in HelpItemFactory.
  8117. except options whose defualt value is embedded in a usage text.
  8118. * src/HelpItemFactory.cc
  8119. * src/HelpItemFactory.h
  8120. * src/option_processing.cc
  8121. * src/version_usage.cc
  8122. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Added --quiet option to make aria2 quiet (no console output).
  8124. --quiet option is tagged with ADVANCED.
  8125. * src/HelpItemFactory.cc
  8126. * src/LogFactory.cc
  8127. * src/LogFactory.h
  8128. * src/MultiUrlRequestInfo.cc
  8129. * src/MultiUrlRequestInfo.h
  8130. * src/NullStatCalc.h: New class. This class prints nothing.
  8131. * src/OptionHandlerFactory.cc
  8132. * src/main.cc
  8133. * src/option_processing.cc
  8134. * src/prefs.h
  8135. * src/usage_text.h
  8136. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8138. * src/HelpItemFactory.cc (createHelpItems):
  8139. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8140. Fixed compilation error in ExpatMetalinkProcessor.cc
  8141. * src/ExpatMetalinkProcessor.cc
  8142. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8143. Reuse socket if the origin server supports HTTP keep-alive and
  8144. --enable-http-keep-alive or --enable-http-pipelining is given.
  8145. The current implementation doesn't reuse the connections established
  8146. against proxy server.
  8147. * src/AbstractCommand.cc
  8148. * src/DownloadEngine.cc
  8149. * src/DownloadEngine.h
  8150. * src/HttpDownloadCommand.cc
  8151. * src/HttpInitiateConnectionCommand.cc
  8152. * src/HttpResponseCommand.cc
  8153. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8154. Rewritten HTTP keep-alive and pipelining routine.
  8155. * src/AbstractCommand.cc
  8156. * src/HttpConnection.cc
  8157. * src/HttpDownloadCommand.cc
  8158. * src/HttpRequest.cc
  8159. * src/HttpRequestCommand.cc
  8160. * src/HttpResponseCommand.cc
  8161. * src/Request.cc
  8162. * src/Request.h
  8163. * src/RequestGroup.cc
  8164. * test/HttpRequestTest.cc
  8165. * test/HttpResponseTest.cc
  8166. * test/RequestTest.cc
  8167. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Added missing setUserHeaders call
  8169. * src/HttpRequestCommand.cc
  8170. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8172. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8173. waste of time because it is more likey false.
  8174. * src/FileAllocationDispatcherCommand.cc (execute)
  8175. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Now HTTP status and version are a member variable of HttpHeader.
  8177. HTTP status is processed as a string, not integer.
  8178. * src/AbstractProxyResponseCommand.cc
  8179. * src/HttpConnection.cc
  8180. * src/HttpHeader.cc
  8181. * src/HttpHeader.h
  8182. * src/HttpHeaderProcessor.cc
  8183. * src/HttpHeaderProcessor.h
  8184. * src/HttpResponse.cc
  8185. * src/HttpResponse.h
  8186. * test/HttpHeaderProcessorTest.cc
  8187. * test/HttpResponseTest.cc
  8188. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. Added --header option. You can specify any number of additional HTTP headers
  8190. like:
  8191. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8192. Unlike other commad-line option, you can use --header option multiple times.
  8193. * src/HelpItemFactory.cc
  8194. * src/HttpRequest.{cc, h}
  8195. * src/HttpRequestCommand.cc
  8196. * src/OptionHandlerFactory.cc
  8197. * src/OptionHandlerImpl.h
  8198. * src/option_processing.cc
  8199. * src/prefs.h
  8200. * src/usage_text.h
  8201. * test/HttpRequestTest.cc (testUserHeaders)
  8202. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8203. Eliminates the time lag between sequential downloads and commands in
  8204. the same RequestGroup.
  8205. In old implementation, aria2 occasionally waits 1 seconds before
  8206. executing next command or RequestGroup.
  8207. This is really a waste of time, and new implementation eliminates
  8208. this unnecessary time lag.
  8209. * src/AbstractCommand.cc
  8210. * src/AutoSaveCommand.cc
  8211. * src/CheckIntegrityCommand.cc
  8212. * src/Command.{cc, h}
  8213. * src/DownloadEngine.{cc, h}
  8214. * src/DownloadEngineFactory.cc
  8215. * src/FileAllocationCommand.cc
  8216. * src/FileAllocationDispatcherCommand.cc
  8217. * src/FillRequestGroupCommand.cc
  8218. * src/FtpInitiateConnectionCommand.cc
  8219. * src/HaveEraseCommand.cc
  8220. * src/HttpInitiateConnectionCommand.cc
  8221. * src/HttpResponseCommand.cc
  8222. * src/RealtimeCommand.cc
  8223. * src/RequestGroup.cc
  8224. * src/RequestGroupMan.cc
  8225. * src/StreamFileAllocationEntry.cc
  8226. * src/TimeBasedCommand.{cc, h}
  8227. * src/TimedHaltCommand.cc
  8228. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8230. keyword explicit and SharedHandle's default constructor initializes
  8231. its internal obj to null, old implementation initializes it using
  8232. obj's default constructor.
  8233. To assign null, write SharedHandle<T> x(...); x.reset();
  8234. TODO: test/SharedHandleTest.cc needs more tests.
  8235. * src/SharedHandle.h
  8236. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8237. Fixed type in man page.
  8238. * doc/aria2c.1.txt
  8239. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8240. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8241. * src/SimpleLogger.{cc, h}
  8242. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8243. Implemented auto protocol detection.
  8244. Now you can do:
  8245. aria2c -Z http://host/file file1.torrent file2.metalink
  8246. (Note: -Z option is required for auto protcol detection.)
  8247. Then aria2c downloads 3 files simultaneously:
  8248. 1. http://host/file
  8249. 2. file1.torrent <-- read local torrent file
  8250. 3. file2.metalink <-- read local Metalink file.
  8251. Same thing goes with -i option. Assume your uris.txt contans:
  8252. http://host/file
  8253. file1.torrent
  8254. file2.metalink
  8255. Then you can do: aria2c -i uris.txt
  8256. (Note: -Z option is not needed if -i option is given.)
  8257. * src/main.cc
  8258. * src/ProtocolDetector.{cc, h}
  8259. * test/ProtocolDetectorTest.cc
  8260. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8261. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8262. installed
  8263. * src/ARC4Encryptor.h
  8264. * src/ARC4Decryptor.h
  8265. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Renamed argument from 'errno' to 'err', since errno is confused with
  8267. errno defined in errno.h.
  8268. * src/LibgcryptARC4Decryptor.h
  8269. * src/LibgcryptARC4Context.h
  8270. * src/LibgcryptDHKeyExchange.h
  8271. * src/LibgcryptARC4Encryptor.h
  8272. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. Rewritten choking algorithm.
  8274. * src/PeerChokeCommand.{cc, h}
  8275. * src/BtInterestedMessage.cc
  8276. * src/PeerSessionResource.{cc, h}
  8277. * src/DefaultPeerStorage.{cc, h}
  8278. * src/BtNotInterestedMessage.cc
  8279. * src/DefaultBtMessageDispatcher.{cc, h}
  8280. * src/BtMessageDispatcher.h
  8281. * src/Peer.{cc, h}
  8282. * src/BtLeecherStateChoke.{cc, h}
  8283. * src/BtSetup.cc
  8284. * src/BtSeederStateChoke.{cc, h}
  8285. * src/PeerStorage.h
  8286. * test/MockPeerStorage.h
  8287. * test/MockBtMessageDispatcher.h
  8288. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Fixed compilation error on x84-64 platform.
  8290. * src/AuthConfig.cc: Included ostream.
  8291. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Rewritten getBasename() and getDirname(), without standard library
  8293. basename(), dirname().
  8294. * src/File.cc
  8295. * test/FileTest.cc
  8296. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Added Simplified Chinese translation. Also updated the following
  8298. translations: Polish, Dutch, German. Great thanks to all translators.
  8299. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8300. Suppress content-range error when 'Content-Range' response header
  8301. doesn't contains bytes-unit specifier 'bytes'
  8302. * src/HttpHeader.cc (getRange)
  8303. * test/HttpHeaderTest.cc
  8304. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8305. Fixed compilation error with g++-4.3
  8306. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Added missing include files for MinGW
  8308. * test/HttpHeaderProcessorTest.cc
  8309. * test/DHTRoutingTableSerializerTest.cc
  8310. * test/DHTRoutingTableDeserializerTest.cc
  8311. * test/UriListParserTest.cc
  8312. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8313. Now download line is printed nicely with no garbage at the end of
  8314. line. I use ioctl to get the columns of terminal.
  8315. If stdout is redirected to another device, instead of carriage return,
  8316. end of line '\n' character is used. This is feature request#1909659
  8317. * src/ConsoleStatCalc.cc (calculateStat)
  8318. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8319. Included a2time.h
  8320. * src/DHTMessageDispatcher.h
  8321. * src/DHTMessageEntry.h
  8322. * src/DHTReplaceNodeTask.h
  8323. * src/DHTMessageTracker.h
  8324. * src/Util.h
  8325. * src/CookieBox.h
  8326. * src/SocketCore.h
  8327. * src/DefaultBtMessageDispatcher.h
  8328. * src/SocketCore.cc
  8329. * src/Util.cc
  8330. * src/DHTPingTask.h
  8331. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8332. Fixed high memory footprint when DHT is enabled.
  8333. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8334. queued than it is processed and the queue is getting longer. As a
  8335. consequence, momory usage is increased.
  8336. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8337. replacement cache in DHTBucket which is described in Kademlia paper.
  8338. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8339. DHTReplaceNodeTask.
  8340. * src/DHTBucket.{h, cc}
  8341. (cacheNode): New function.
  8342. (getCachedNodes): New function.
  8343. (dropNode): Push back cached node to _nodes.
  8344. * test/DHTBucketTest.cc
  8345. (testCacheNode): New test
  8346. (testDropNode): New test
  8347. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8348. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8349. the unused 4KB memory when ssl is not used.
  8350. * src/SocketCore.cc
  8351. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Added summary log for peer announce storage.
  8353. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8354. Removed cast
  8355. * src/DefaultPeerStorage.cc (addPeer)
  8356. Log exception message
  8357. * src/DHTMessageTracker.cc (handleTimeout)
  8358. Fixed casting
  8359. * test/HttpRequestTest.cc
  8360. * test/MetalinkProcessorTest.cc
  8361. * test/PieceTest.cc
  8362. * test/MetalinkEntryTest.cc
  8363. * test/SequenceTest.cc
  8364. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. * src/ParameterizedStringParser.cc (createLoop):
  8366. Removed unused variable sstep.
  8367. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8368. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8369. * src/Util.{h, cc}
  8370. (parseUInt): New function.
  8371. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8372. The actual range is uint32_t.
  8373. * test/UtilTest.cc
  8374. * src/ParameterizedStringParser.cc:
  8375. Use Util::parseUInt() for loop variables.
  8376. * test/ParameterizedStringParserTest.cc
  8377. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8378. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Rewritten the functions for binding port.
  8380. * src/DHTConnectionImpl.{h, cc}
  8381. * src/PeerListenCommand.{h, cc}
  8382. * src/DHTSetup.cc
  8383. * src/BtSetup.cc
  8384. * test/DHTConnectionImplTest.cc
  8385. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. type cleanup for allmost all remaining files.
  8387. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Type clarification
  8389. * src/PeerSessionResource.{h, cc}
  8390. * src/DefaultPieceStorage.{h, cc}
  8391. * src/Peer.{h, cc}
  8392. * test/PeerSessionResourceTest.cc
  8393. Use div function
  8394. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8395. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Type clarification
  8397. * src/DefaultPeerStorage.{h, cc}
  8398. * test/DefaultPeerStorageTest.cc
  8399. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8400. Type clarification: size_t for length or size, uint64_t for file
  8401. length, off_t for file offset.
  8402. * src/DefaultBtProgressInfoFile.cc
  8403. * src/DefaultBtContext.{h, cc}
  8404. * src/DefaultBtInteractive.cc
  8405. * src/DownloadCommand.{h, cc}
  8406. * src/IteratableChunkChecksumValidator.{h, cc}
  8407. * src/SegmentMan.{h, cc}
  8408. * src/SingleFileDownloadContext.{h, cc}
  8409. * src/IteratableChecksumValidator.{h, cc}
  8410. * src/BtContext.h
  8411. * src/IteratableValidator.h
  8412. * src/DownloadContext.h
  8413. * test/SingleFileDownloadContextTest.cc
  8414. * test/DefaultBtContextTest.cc
  8415. * test/MockBtContext.h
  8416. * test/Metalink2RequestGroupTest.cc
  8417. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Type clarification: size_t for length or size, uint64_t for file
  8419. length, off_t for file offset.
  8420. * src/PiecedSegment.cc
  8421. * src/GrowSegment.h
  8422. * src/DefaultBtRequestFactory.h
  8423. * src/DefaultBtProgressInfoFile.cc
  8424. * src/UnknownLengthPieceStorage.h
  8425. * src/DefaultPieceStorage.cc
  8426. * src/UnknownLengthPieceStorage.cc
  8427. * src/DefaultBtInteractive.cc
  8428. * src/GrowSegment.cc
  8429. * src/BitfieldMan.h
  8430. * src/DownloadCommand.cc
  8431. * src/BtRequestFactory.h
  8432. * src/PiecedSegment.h
  8433. * src/DefaultPieceStorage.h
  8434. * src/Piece.cc
  8435. * src/DefaultBtRequestFactory.cc
  8436. * src/PieceStorage.h
  8437. * src/Segment.h
  8438. * src/Piece.h
  8439. * src/BitfieldMan.cc
  8440. * src/Util.cc
  8441. * test/DefaultBtProgressInfoFileTest.cc
  8442. * test/DefaultPieceStorageTest.cc
  8443. * test/MockPieceStorage.h
  8444. * test/BtRequestMessageTest.cc
  8445. * test/DefaultBtMessageDispatcherTest.cc
  8446. * test/BitfieldManTest.cc
  8447. * test/GrowSegmentTest.cc
  8448. * test/PieceTest.cc
  8449. * test/SegmentTest.cc
  8450. * test/SegmentManTest.cc
  8451. * test/DefaultBtRequestFactoryTest.cc
  8452. * test/MockBtRequestFactory.h
  8453. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Fixed compilation error with --disable-nls
  8455. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8456. in gettext.h causes the problem.
  8457. * src/common.h
  8458. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8459. Removed subPiece related functions.
  8460. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8461. * src/DefaultPieceStorage.{h, cc}
  8462. * test/PieceTest.cc
  8463. * test/DefaultPieceStorageTest.cc
  8464. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8465. Use unsigned char for data store.
  8466. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8467. Bump up version number to 0.13.0+1
  8468. * configure.ac
  8469. * Release 0.13.0+1
  8470. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8471. Changed inactive connection timeout to 120.
  8472. To accept more mulually interested peers, disconnect peer when there
  8473. is no interest between us after certain time passed.
  8474. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8475. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8476. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8477. when compiled with async DNS support.
  8478. * src/DownloadEngine.cc
  8479. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8480. value '10' will be a little bit short when some DNS servers are
  8481. offline and several DNS servers are tried. It should be configured
  8482. by command-line option.
  8483. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8484. Merged Ross's mingw patch.
  8485. * src/DHTRoutingTableDeserializer.cc
  8486. * src/DHTRoutingTableSerializer.cc
  8487. * src/Platform.{h, cc}
  8488. * src/timegm.h
  8489. * src/gettimeofday.h
  8490. * src/getaddrinfo.h
  8491. * src/SocketCore.h
  8492. * src/common.h
  8493. * src/inet_aton.h
  8494. * src/DownloadEngine.h
  8495. * src/gai_strerror.h
  8496. * src/a2netcompat.h
  8497. * configure.ac
  8498. * configure
  8499. * aclocal.m4
  8500. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8501. Included missing iostream.
  8502. * test/AllTest.cc
  8503. * test/BtDependencyTest.cc
  8504. * test/BtExtendedMessageTest.cc
  8505. * test/DHTConnectionImplTest.cc
  8506. * test/DHTMessageFactoryImplTest.cc
  8507. * test/DHTMessageTrackerEntryTest.cc
  8508. * test/DHTNodeTest.cc
  8509. * test/DHTRoutingTableSerializerTest.cc
  8510. * test/DefaultBtAnnounceTest.cc
  8511. * test/DefaultBtContextTest.cc
  8512. * test/DefaultBtMessageFactoryTest.cc
  8513. * test/DefaultExtensionMessageFactoryTest.cc
  8514. * test/HandshakeExtensionMessageTest.cc
  8515. * test/HttpResponseTest.cc
  8516. * test/MetalinkProcessorTest.cc
  8517. * test/MultiFileAllocationIteratorTest.cc
  8518. * test/SocketCoreTest.cc
  8519. * test/UTPexExtensionMessageTest.cc
  8520. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8521. Reorganized includes.
  8522. * src/NameResolver.cc
  8523. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8524. Fixed compilation error without ares/c-ares
  8525. * src/NameResolver.h:
  8526. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8527. Added a test for large file.
  8528. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8529. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Fixed the bug that file size is ignored if size > INT32_MAX
  8531. * src/SizeMetalinkParserState.cc (endElement):
  8532. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8533. Bump up version number to 0.13.0
  8534. * configure.ac
  8535. * Release 0.13.0
  8536. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Updated Makfefile.am to make 'make dist' work.
  8538. Now packaged filename is aria2c-VERSION.tar.bz2.
  8539. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8540. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8541. Large file support is now configured by configure script.
  8542. * configure.ac
  8543. Removed unsused source files
  8544. * src/
  8545. * test/
  8546. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8547. Peer.h and BtContext.h respectively.
  8548. * src/Peer.h
  8549. * src/BtContext.h
  8550. Updated translations.
  8551. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8552. translations. Great thanks to all translators!;)
  8553. * po/*.{po, gmo}
  8554. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8556. statically declared sha1 MessageDigestContext.
  8557. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8558. initialization of short-lived MessageDigestContext.
  8559. * src/MessageDigestHelper.{h, cc}
  8560. * src/main.cc
  8561. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8562. the initialization of MessageDigestContext every time in validating
  8563. chunk checksum.
  8564. * src/DownloadCommand.{h, cc}
  8565. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. Add a file descriptor which connected to fast peer(latency<1500) to
  8567. select(). This change reduced CPU load.
  8568. * src/PeerInteractionCommand.cc
  8569. * src/DefaultBtInteractive.{h, cc}
  8570. * src/BtInteractive.h
  8571. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8572. Fixed the previous insufficient fix for possible busy loop.
  8573. * src/MSEHandshake.cc (identifyHandshakeType)
  8574. Removed unused functions.
  8575. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8576. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8577. Fixed possible busy loop if first 20 bytes are not received for a few
  8578. minutes.
  8579. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8580. * src/ReceiverMSEHandshakeCommand.cc
  8581. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8582. Fixed compilation error
  8583. * src/ExpatMetalinkProcessor.cc
  8584. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8585. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8586. * src/DHTBucket.cc
  8587. Removed unnecessary cast.
  8588. * src/HandshakeExtensionMessage.cc
  8589. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8591. is missing.
  8592. * src/OptionHandlerFactory.cc
  8593. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8594. Fixed the bug that HAVE message is not sent for a piece they are
  8595. downloaded fom http/ftp server before any BitTorrent handshake is done
  8596. with peers.
  8597. * src/DefaultBtInteractive.cc
  8598. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8600. * src/Makefile.am
  8601. * src/Makefile.in
  8602. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. Updated README. Added html version of README and man page.
  8604. * README
  8605. * README.html
  8606. * readme2html: Shell script to generate README.html from README using
  8607. asciidoc.
  8608. * doc/aria2c.1.html
  8609. * doc/makeman: Added the line to generate aria2c.1.html
  8610. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Fixed offset calculation.
  8612. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8613. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. Rewritten itos and uitos using template. llitos and ullitos are
  8615. replaced with itos and uitos respectively.
  8616. * src/Util.{h, cc}
  8617. * test/UtilTest.cc
  8618. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8620. of the number of bytes required for storing public key and shared
  8621. secret.
  8622. * src/LibgcryptDHKeyExchange.h
  8623. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8624. * src/MSEHandshake.cc
  8625. * test/DHKeyExchangeTest.cc
  8626. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Removed since they are not used.
  8628. * src/Xml2MetalinkProcessor.{h, cc}
  8629. * src/Socket.cc
  8630. * src/SegmentSplitter.{h, cc}
  8631. * test/Xml2MetalinkProcessorTest.cc
  8632. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8633. Fixed the bug that prevents aria2 from stopping other than by pressing
  8634. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8635. option. aria2 doesn't stop even after --seed-time is satisfied and
  8636. continues to output blank lines in the console.
  8637. * src/ReceiverMSEHandshakeCommand.cc
  8638. * src/PeerReceiveHandshakeCommand.cc
  8639. * src/PeerListenCommand.cc
  8640. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8641. Bump up version number to 0.13.0rc
  8642. * configure.ac
  8643. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8644. Updated man page and some usage text.
  8645. * doc/aria2c.1.txt
  8646. * src/usage_text.h
  8647. * po/*.{po, gmo}
  8648. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Updated translations. Added Finnish and Hebrew translations.
  8650. Great thanks to all translators!
  8651. * po/*.{po, gmo}
  8652. * po/LINGUAS
  8653. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8654. Log more detailed information about each message.
  8655. * src/DHTQueryMessage.{h, cc}
  8656. * src/DHTGetPeersMessage.{h, cc}
  8657. * src/DHTFindNodeReplyMessage.{h, cc}
  8658. * src/DHTGetPeersReplyMessage.{h, cc}
  8659. * src/DHTAnnouncePeerMessage.{h, cc}
  8660. * src/DHTResponseMessage.{h, cc}
  8661. * src/DHTFindNodeMessage.{h, cc}
  8662. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Use constants defined in prefs.h
  8664. * src/option_processing.cc
  8665. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8667. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Make room for future enchancements for IPv6 addresses.
  8669. Bump up version number of dht.dat file format to 2.
  8670. Not compatible with previous version.
  8671. * src/DHTRoutingTableSerializer.cc
  8672. * src/DHTRoutingTableDeserializer.cc
  8673. * test/DHTRoutingTableSerializerTest.cc
  8674. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8675. Added handling for the return values from
  8676. PeerMessageUtil::createcompact().
  8677. * src/DefaultBtContext.cc (computeFastSet):
  8678. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8679. Fixed abort when peer's ip address is IPv4-mapped address.
  8680. * src/DefaultBtContext.cc (computeFastSet)
  8681. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8682. cannot handle IPv4-mapped addresses.
  8683. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8684. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Proper return value handling for OpenSSL functions.
  8686. * src/LibsslDHKeyExchange.h
  8687. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Random bytes generation using libgcrypt and OpenSSL.
  8689. * src/DHTUtil.{h, cc}
  8690. * test/DHTUtilTest.cc
  8691. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8692. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8693. received.
  8694. * src/DHTMessageReceiver.cc (receiveMessage)
  8695. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8696. Fixed the bug that a return code is always 0. BUG#1897704
  8697. If error occurred during the download or there exist unfinished
  8698. downloads, aria2 returns with code 1.
  8699. * src/RequestGroupMan.{h, cc}
  8700. * src/MultiUrlRequestInfo.{h, cc}
  8701. * src/main.cc
  8702. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8703. IPv6 support for SocketCore class.
  8704. TODO: In SocketCore::establishConnection(), this is insufficient to
  8705. determin the failure of connect() here because the socket is
  8706. non-blocking state. The next addresses should be tried after select().
  8707. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8708. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8709. instead which address family independent.
  8710. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8711. information in a compact peer format which is for IPv4 only.
  8712. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8713. this is a spec of BitTorrent protocol.
  8714. * src/SocketCore.{h, cc}
  8715. * src/PeerMessageUtil.cc
  8716. * test/SocketCoreTest.cc
  8717. * test/PeerMessageUtilTest.cc
  8718. * test/DHTConnectionImplTest.cc
  8719. Handle IPv4-mapped addresses.
  8720. * src/DHTNode.cc: Now identity is determined by node id.
  8721. * src/DHTMessageTrackerEntry.cc
  8722. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8723. should handle it.
  8724. * src/DHTRoutingTableDeserializer.cc
  8725. * src/DHTMessageFactoryImpl.cc
  8726. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Change the unit of --stop option from a minute to a second.
  8728. * src/usage_text.h
  8729. * src/DownloadEngineFactory.cc
  8730. * src/OptionHandlerFactory.cc
  8731. * src/message.h
  8732. * src/TimedHaltCommand.cc
  8733. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. Make listening socket non-block mode.
  8735. * src/FtpConnection.cc
  8736. * src/FtpNegotiationCommand.{h, cc}
  8737. * src/PeerListenCommand.cc
  8738. Fixed the bug that cause slow ftp negotiation.
  8739. * src/FtpNegotiationCommand.{h, cc}
  8740. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Added basic tag to --enable-dht, --dht-listen-port option.
  8742. * src/HelpItemFactory.cc (createHelpItems)
  8743. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. Updated text.
  8745. * src/usage_text.h
  8746. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8747. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8748. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Determin _threadtholdSpeed in each constructor for
  8750. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8751. * src/ActivePeerConnectionCommand.{h, cc}
  8752. * src/PeerReceiveHandshakeCommand.{h, cc}
  8753. * src/BtSetup.cc
  8754. * src/BtConstants.h
  8755. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8756. Added --bt-min-crypto-level and --bt-require-crypto options.
  8757. * src/OptionHandlerFactory.cc
  8758. * src/MSEHandshake.cc
  8759. * src/HelpItemFactory.cc
  8760. * src/option_processing.cc
  8761. * src/ReceiverMSEHandshakeCommand.cc
  8762. * src/prefs.h
  8763. * src/DefaultBtAnnounce.cc
  8764. * src/InitiatorMSEHandshakeCommand.cc
  8765. * src/usage_text.h
  8766. * test/MSEHandshakeTest.cc
  8767. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. Bump version number to 0.13.0b
  8769. * configure.ac
  8770. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8771. Updated doc.
  8772. * src/MessageDigestHelper.h:
  8773. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8774. Use raw message digest as a token instead of its hexadecimal
  8775. representation.
  8776. * src/DHTTokenTracker.cc (generateToken)
  8777. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. Added Message Stream Encryption(MSE) support.
  8779. Currently, aria2 accepts incoming connections with Obfuscation Header
  8780. and legacy BitTorrent Header and establishes connections with
  8781. Obfuscation Header first and if failed then retry with legacy
  8782. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8783. choose ARC4. The new option to change the default behavior is planned.
  8784. For tracker extension, "supportcrypto=1" is added statically.
  8785. * src/PeerInitiateConnectionCommand.{h, cc}
  8786. * src/PeerConnection.{h, cc}
  8787. * src/HandleRegistry.h
  8788. * src/SocketCore.h
  8789. * src/PeerReceiveHandshakeCommand.{h, cc}
  8790. * src/BtRegistry.{h, cc}
  8791. * src/PeerListenCommand.cc
  8792. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8793. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8794. * src/MSEHandshake.{h, cc}
  8795. * src/ARC4Encryptor.h
  8796. * src/ARC4Decryptor.h
  8797. * src/LibgcryptARC4Encryptor.h
  8798. * src/LibgcryptARC4Decryptor.h
  8799. * src/LibgcryptARC4Context.h
  8800. * src/LibsslARC4Encryptor.h
  8801. * src/LibsslARC4Decryptor.h
  8802. * src/LibsslARC4Context.h
  8803. * src/DHKeyExchange.h
  8804. * src/LibgcryptDHKeyExchange.h
  8805. * src/LibsslDHKeyExchange.h
  8806. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8807. * test/DefaultBtAnnounceTest.cc
  8808. * test/ARC4Test.cc
  8809. * test/DHKeyExchangeTest.cc
  8810. Removed prepareForRetry() because it is not used.
  8811. * src/PeerAbstractCommand.{h, cc}
  8812. * src/PeerInteractionCommand.{h, cc}
  8813. * src/PeerInitiateConnectionCommand.{h, cc}
  8814. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Added the ability to load nodes from torrent file. These nodes are
  8816. added to the routing table when downloading that torrent.
  8817. * src/BtContext.h
  8818. * src/DefaultBtContext.{h, cc}
  8819. * src/DHTSetup.cc
  8820. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8821. hostname and port pair, and resolves all of them.
  8822. * src/NameResolver.{h, cc}: Added reset().
  8823. * src/RequestGroup.cc
  8824. * test/DefaultBtContextTest.cc
  8825. * test/MockBtContext.h
  8826. Removed assert() from DefaultBtContext and throw exception instead.
  8827. * src/DefaultBtContext.cc
  8828. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8829. Fixed segmentation fault bug when exiting if dht is disabled.
  8830. * src/RequestGroup.cc
  8831. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. Fixed typo in log message and define the message in message.h
  8833. * src/TimedHaltCommand.cc
  8834. * src/message.h
  8835. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. Included RecoverableException.h to fix compilation error.
  8837. * test/DHTMessageFactoryImplTest.cc
  8838. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8839. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8840. * test/DHTPingMessageTest.cc
  8841. * test/DHTGetPeersMessageTest.cc
  8842. * test/DHTFindNodeMessageTest.cc
  8843. * test/DHTAnnouncePeerMessageTest.cc
  8844. * test/MockDHTMessage.h
  8845. * test/MockDHTMessageFactory.h
  8846. * test/MockDHTMessageDispatcher.h: New class.
  8847. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8849. virtual.
  8850. * src/DHTMessageDispatcher.h
  8851. * src/DHTMessageDispatcherImpl.{h, cc}
  8852. * src/DHTSetup.cc
  8853. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. Adding handling of DHT error message. Just log error message and
  8855. throw exception.
  8856. * src/DHTMessageFactoryImpl.cc
  8857. * test/DHTMessageFactoryImplTest.cc
  8858. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8859. Added handling of dynamic cast failure.
  8860. * src/DHTNodeLookupTask.cc
  8861. * src/DHTPeerLookupTask.cc
  8862. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Added the ability to stop aria2 itself when given time has passed
  8864. from start. Use --stop option to specify time in minutes.
  8865. When 0 is given, this feature is disabled.
  8866. * src/OptionHandlerFactory.cc
  8867. * src/TimeBasedCommand.h: Make _interval protected scope.
  8868. * src/HelpItemFactory.cc
  8869. * src/option_processing.cc
  8870. * src/prefs.h
  8871. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8872. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8873. Without this modification, the result list shows "ERR" when aria2 is
  8874. stopped by --stop option. It should be "INPR".
  8875. * src/DownloadEngine.{h, cc}
  8876. * src/DownloadEngineFactory.cc
  8877. * src/usage_text.h
  8878. * src/TimedHaltCommand.{h, cc}: New class.
  8879. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8880. Bootstrap through node added by port message.
  8881. Currently bootstrap is executed if the number of buckets in routing
  8882. table is 1.
  8883. * src/BtPortMessage.{h, cc}
  8884. * src/DefaultBtMessageFactory.{h, cc}
  8885. * src/PeerInteractionCommand.cc
  8886. * test/BtPortMessageTest.cc
  8887. * test/MockDHTTask.h
  8888. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Extract the Peer class's member variables, which are only needed after
  8890. PeerInteractionCommand, into PeerSessionResource class.
  8891. This class is instantiated in PeerInteractionCommand class's ctor and
  8892. released in its dtor.
  8893. This will make Peer class lightweight and uses less memory for peers
  8894. which are not connected and wait in the queue.
  8895. * src/PeerChokeCommand.cc
  8896. * src/PeerSessionResource.{h, cc}
  8897. * src/PeerInteractionCommand.cc
  8898. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8899. * src/DefaultBtInteractive.cc
  8900. * src/BtPieceMessage.cc
  8901. * src/BtInterestedMessage.cc
  8902. * src/BtUnchokeMessage.cc
  8903. * src/DefaultPeerStorage.{h, cc}
  8904. * src/PeerInitiateConnectionCommand.cc
  8905. * src/ActivePeerConnectionCommand.cc
  8906. * src/BtNotInterestedMessage.cc
  8907. * src/DefaultBtMessageDispatcher.cc
  8908. * src/BtChokeMessage.cc
  8909. * src/BtRequestMessage.cc
  8910. * src/Peer.{h, cc}
  8911. * src/BtRegistry.h
  8912. * src/TrackerWatcherCommand.cc
  8913. * src/PeerReceiveHandshakeCommand.cc
  8914. * test/BtExtendedMessageTest.cc
  8915. * test/BtAllowedFastMessageTest.cc
  8916. * test/BtCancelMessageTest.cc
  8917. * test/DefaultPieceStorageTest.cc
  8918. * test/BtBitfieldMessageTest.cc
  8919. * test/BtHaveMessageTest.cc
  8920. * test/BtNotInterestedMessageTest.cc
  8921. * test/BtRequestMessageTest.cc
  8922. * test/PeerSessionResourceTest.cc
  8923. * test/DefaultBtMessageDispatcherTest.cc
  8924. * test/PeerTest.cc
  8925. * test/BtInterestedMessageTest.cc
  8926. * test/BtRejectMessageTest.cc
  8927. * test/BtChokeMessageTest.cc
  8928. * test/DefaultPeerStorageTest.cc
  8929. * test/BtHaveNoneMessageTest.cc
  8930. * test/BtHaveAllMessageTest.cc
  8931. * test/DefaultExtensionMessageFactoryTest.cc
  8932. * test/BtUnchokeMessageTest.cc
  8933. * test/DefaultBtMessageFactoryTest.cc
  8934. * test/HandshakeExtensionMessageTest.cc
  8935. * test/UTPexExtensionMessageTest.cc
  8936. * test/DefaultBtRequestFactoryTest.cc
  8937. * test/BtPieceMessageTest.cc
  8938. Removed typedef PeerStats.
  8939. * src/PeerStat.h
  8940. * src/SegmentMan.cc
  8941. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Added std namespace to copy, remove_copy, back_inserter,
  8943. front_inserter.
  8944. * src/RequestGroupMan.cc
  8945. * src/DefaultPieceStorage.cc
  8946. * src/StreamFileAllocationEntry.cc
  8947. * src/BtFileAllocationEntry.cc
  8948. * src/RequestGroup.cc
  8949. * src/MetalinkEntry.cc
  8950. * src/DelegatingPeerListProcessor.cc
  8951. * src/DefaultBtRequestFactory.cc
  8952. * src/DefaultBtMessageDispatcher.cc
  8953. * src/version_usage.cc: Included <algorithm>
  8954. * src/main.cc
  8955. * src/MetalinkParserController.cc
  8956. * src/DefaultBtContext.cc
  8957. * src/DownloadEngineFactory.cc
  8958. * src/a2algo.h
  8959. Removed.
  8960. * test/StreamUriListParserTest.cc
  8961. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8962. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8963. ActivePeerConnectionCommand when it is given and
  8964. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8965. * src/ActivePeerConnectionCommand.{h, cc}
  8966. * src/BtSetup.cc
  8967. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. Only add socket to DownloadEngine's select routine when peer or
  8969. localhost is unchoked and interested. This lowers CPU usage a
  8970. little bit.
  8971. * src/PeerInteractionCommand.cc
  8972. * src/PeerAbstractCommand.{h, cc}
  8973. * src/BtInteractive.h
  8974. * src/DefaultBtInteractive.{h, cc}
  8975. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8976. Revert previous change because get_peers message is needed for
  8977. announce_peer anyway.
  8978. * src/DHTGetPeersCommand.cc
  8979. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Request peers thought DHT only when download hasn't finished.
  8981. * src/DHTGetPeersCommand.cc
  8982. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8983. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8984. * src/DHTBucketRefreshTask.{h, cc}
  8985. * src/DHTSetup.cc
  8986. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8987. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8988. standard classes.
  8989. Included string.h where mem* function are used.
  8990. Added namespace aria2.
  8991. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Create directory before saving DHT routing table.
  8993. Now ios::failure is now handled properly.
  8994. * src/DHTAutoSaveCommand.cc
  8995. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8996. Removed unnecessary cerr.
  8997. * src/DownloadEngine.cc
  8998. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8999. Catch exception inside DHTMessageReceiver::receiveMessage().
  9000. Log unknown message.
  9001. * src/DHTMessageReceiver.{h, cc}
  9002. * src/DHTMessageFactory.h
  9003. * src/DHTMessageFactoryImpl.{h, cc}
  9004. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9005. * src/DHTInteractionCommand.cc
  9006. * src/DHTUnknownMessage.{h, cc}
  9007. * test/DHTUnknownMessageTest.cc
  9008. * test/MockDHTMessageFactory.h
  9009. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Commented out ip address comparison because a host can have multiple
  9011. ip addresses and it is hard to predict the hostname is resolved into
  9012. which one.
  9013. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9014. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9015. * po/Makefile.in: Removed since this is generated by configure.
  9016. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9017. Fixed compiler warning about redefinition of SIZE_MAX.
  9018. Use common.h instead of config.h directly here.
  9019. * src/Platform.{h, cc}
  9020. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9021. here.
  9022. * common.h
  9023. 2008-02-02 gettextize <[email protected]>
  9024. Updated gettext related files.
  9025. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9026. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9027. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. Added DHT functionality, compatible with mainline.
  9029. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9030. You may need to specify entry point to DHT network using
  9031. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9032. Use --dht-listen-port to specify port number. Make sure that your
  9033. firewall configuration can pass through UDP traffic to the port.
  9034. The routing table is saved in $HOME/.aria2/dht.dat.
  9035. * src/DHT*
  9036. * src/BNode.{h, cc}
  9037. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9038. particular torrent.
  9039. * src/Data.cc: Rewritten ctor.
  9040. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9041. --dht-entry-point.
  9042. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9043. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9044. ends, remove BtContext from DHTPeerAnnounceStorage.
  9045. * src/BtPortMessage.{h, cc}: Rewritten.
  9046. * src/message.h
  9047. * src/OptionHandlerImpl.cc
  9048. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9049. --dht-entry-point.
  9050. * src/Dictionary.{h, cc} (remove): New function.
  9051. * src/prefs.h
  9052. * src/DefaultBtMessageFactory.h
  9053. * src/BtHandshakeMessage.cc
  9054. * src/ActivePeerConnectionCommand.cc
  9055. * src/SocketCore.{h, cc}: Added datagram socket support.
  9056. * src/DefaultBtMessageFactory.cc
  9057. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9058. Create DHT commands.
  9059. * src/BtMessageFactory.h
  9060. * src/PeerMessageUtil.{h, cc}
  9061. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Fixed the bug that log file is not written when configuration file doesn't exist.
  9063. This is caused by using Logger class before LogFactory is not configured.
  9064. BUG #1875079
  9065. * src/option_processing.cc
  9066. Warning message "configuration doesn't exist" is only printed when --conf is
  9067. given.
  9068. * src/option_processing.cc
  9069. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9071. ShaVisitor is now deprecated and slated to be removed.
  9072. * src/DefaultBtContext.cc
  9073. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. Externalize message to message.h
  9075. * src/Platform.cc
  9076. * src/message.h
  9077. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. Set default domain and default path to cookie.
  9079. * src/HttpResponse.cc
  9080. * src/CookieBox.{h, cc}
  9081. * src/CookieParser.{h, cc}
  9082. * test/CookieParserTest.cc
  9083. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9084. Added --no-conf and --conf-path command-line option.
  9085. --no-conf option disables loading aria2.conf file.
  9086. --conf-path option changes the configuration file path. The default
  9087. file path is $HOME/.aria2/aria2.conf
  9088. Added a warning message when the configuration file is not found.
  9089. * src/HelpItemFactory.cc
  9090. * src/option_processing.cc
  9091. * src/prefs.h
  9092. * src/usage_text.h
  9093. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9094. Added the message to inform users that other help categories are
  9095. available in -h option.
  9096. * src/version_usage.cc
  9097. * src/TagContainer.{h, cc}
  9098. * test/TagContainerTest.cc
  9099. * src/TaggedItem.{h, cc}
  9100. * test/TaggedItemTest.cc
  9101. * src/HelpItem.h
  9102. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9104. from PiecedSegment's ctor.
  9105. Previously Piece::getAllMissingBlockIndexes() is called from
  9106. PiecedSegment() but it is rather expensive since only first element is
  9107. used.
  9108. * src/PiecedSegment.cc
  9109. * src/Piece.{h, cc}
  9110. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9111. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9112. each time these functions are called.
  9113. * src/BitfieldMan.{h, cc}
  9114. * test/BitfieldManTest.cc
  9115. * src/array_fun.h
  9116. * test/array_funTest.cc
  9117. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9118. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9119. filtered. Removed unnecessary cast to int32_t.
  9120. * src/BitfieldMan.{h, cc}
  9121. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9122. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9123. payload length(4bytes) are received. This happens because lenbufLength
  9124. is not updated in this particular case and successive call of
  9125. receiveMessage() overwrites payload length with bytes recieved which
  9126. are payload body.
  9127. * src/PeerConnection.{h, cc}
  9128. * src/message.h
  9129. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9130. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9131. peer if there are peers that have same ipaddr and port.
  9132. I've experiened segmentation fault and "pure virtual function was
  9133. called" error.
  9134. * src/Peer.h
  9135. * test/PeerTest.cc
  9136. * src/DefaultPeerStorage.cc
  9137. * test/DefaultPeerStorageTest.cc
  9138. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9139. Removed a call to isPowerOf() because it is no longer necessary here
  9140. and a request block is not always power of 2.
  9141. BUG#1866924
  9142. * src/PeerMessageUtil.cc (checkLength)
  9143. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9144. Fixed the bug that always first found Segment is removed from
  9145. usedSegmentEntries. Removed unused functions.
  9146. * src/SegmentMan.{h, cc}
  9147. * test/SegmentManTest.cc
  9148. Fixed the bug that ServerHost is not removed.
  9149. * src/RequestGroup.cc
  9150. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Fixed the bug that SegmentMan::completeSegment() is not called
  9152. even if Segment is complete when --lowest-speed-limit is enabled.
  9153. BUG#1864525
  9154. * src/DownloadCommand.{h, cc}
  9155. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. Fixed: hash algorithm 'sha1' is always used.
  9157. * src/DownloadCommand.cc (validatePieceHash)
  9158. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9159. Added --enable-peer-exchange command-line option.
  9160. * src/OptionHandlerFactory.cc
  9161. * src/HelpItemFactory.cc
  9162. * src/option_processing.cc
  9163. * src/usage_text.h
  9164. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Move extension from BtRuntime to ExtensionMessageFactory, because
  9166. extension can be specified per peer, not per torrent.
  9167. * src/DefaultBtInteractive.cc
  9168. * src/BtRuntime.h
  9169. * src/ExtendedMessagingAware.h
  9170. * src/ExtensionMessageFactory.h
  9171. * src/DefaultExtensionMessageFactory.cc
  9172. * test/DefaultExtensionMessageFactoryTest.cc
  9173. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9174. Added categorized option help. Specify category using --help option.
  9175. Also added the ability to search options in forward match.
  9176. * src/HelpItem.{h, cc}
  9177. * test/HelpItemTest.cc
  9178. * src/HelpItemFactory.{h, cc}
  9179. * src/TagContainer.{h, cc}
  9180. * test/TagContainerTest.cc
  9181. * src/option_processing.cc
  9182. * src/prefs.h
  9183. * src/TaggedItem.{h, cc}
  9184. * test/TaggedItemTest.cc
  9185. * src/version_usage.cc
  9186. * src/help_tags.h
  9187. * src/usage_text.h
  9188. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9189. Fixed segmentation fault when bad torrent metainfo is parsed.
  9190. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9191. and then throw exception or skip it.
  9192. * src/DefaultBtContext.{h, cc}
  9193. * test/DefaultBtContextTest.cc
  9194. * src/AnnounceList.cc
  9195. * src/CompactPeerListProcessor.cc
  9196. * src/message.h
  9197. * src/DefaultBtAnnounce.{h, cc}
  9198. * test/DefaultBtAnnounceTest.cc
  9199. * src/BencodeVisitor.cc
  9200. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. Added missing "B"(=Byte). So now the message looks like this:
  9202. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9203. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9204. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Show the seed ratio after torrent downloads.
  9206. For example, after torrent download completed and --seed-time and
  9207. --seed-ratio conditions are fulfilled, following message is printed
  9208. right after "Download complete: .....":
  9209. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9210. * src/RequestGroupMan.cc
  9211. * src/RequestGroup.{h, cc}
  9212. * src/message.h
  9213. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9214. Remove a defunct control file. A defunct control file means that while
  9215. it exists, but the corresponding download file is missing.
  9216. After its removal, a download restarts from the beginning.
  9217. * src/RequestGroup.cc
  9218. * src/message.h
  9219. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Allocate bitfield in Peer when it is really used. More specifically,
  9221. bitfield in Peer is allocated after the connection is established and
  9222. deallocated when the connection is dropped.
  9223. Since 2 parameters(piece length and total length) was removed from the
  9224. constructor of Peer class, many test classes were modified accordingly.
  9225. See svn log for more detailed information.
  9226. * src/PeerInteractionCommand.cc
  9227. * src/CompactPeerListProcessor.cc
  9228. * src/Peer.cc
  9229. * src/DefaultPeerListProcessor.cc
  9230. * src/PeerListenCommand.cc
  9231. * src/PeerReceiveHandshakeCommand.cc
  9232. Fixed memory leak
  9233. * src/Piece.cc
  9234. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9235. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9236. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9237. command-line options.
  9238. * src/option_processing.cc
  9239. * src/ActivePeerConnectionCommand.cc
  9240. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9241. Send have message to peer if it already has the piece.
  9242. * src/BtHaveMessage.{h, cc}
  9243. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9245. port.
  9246. * src/DefaultPeerStorage.{h, cc}
  9247. * test/DefaultPeerStorageTest.cc
  9248. * src/HandshakeExtensionMessage.cc
  9249. * test/HandshakeExtensionMessageTest.cc
  9250. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9251. * src/PeerStorage.h
  9252. * test/MockPeerStorage.h
  9253. * src/PeerListenCommand.cc
  9254. * src/PeerReceiveHandshakeCommand.cc
  9255. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9256. Added --metalink-enable-unique-protocol option.
  9257. * src/Metalink2RequestGroup.cc
  9258. * src/option_processing.cc
  9259. * src/prefs.h
  9260. * src/version_usage.cc
  9261. * doc/aria2c.1.txt
  9262. * doc/aria2c.1
  9263. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9264. Allow a peer in incomingPeer to be added peers.
  9265. * src/DefaultPeerStorage.cc
  9266. * test/DefaultPeerStorageTest.cc
  9267. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9269. I could reproduce this bug in following procedure:
  9270. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9271. 2. Restart aria2.
  9272. 3. You see the download stopped around 99%.
  9273. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9274. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9275. If timeout is reached, then _nextCommand is unused and it may contains
  9276. segments and they won't be canceled. Actually, timeout is not needed
  9277. here because if the server dropped connection, then retry is made.
  9278. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9279. Added uTorrent compatible Peer Exchange.
  9280. * src/BencodeVisitor.{h, cc}
  9281. * test/BencodeVisitorTest.cc
  9282. * src/BtConstants.h
  9283. * src/BtContext.h: Added 'private' flag.
  9284. * src/BtExtendedMessage.{h, cc}
  9285. * test/BtExtendedMessageTest.cc
  9286. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9287. reserved field.
  9288. * test/BtHandshakeMessageTest.cc
  9289. * src/BtMessageFactory.h
  9290. * src/BtRegistry.h
  9291. * src/BtRuntime.h: This class holds default extension message IDs for
  9292. aria2. By default, aria2 uses ID 8 for ut_pex.
  9293. * src/DefaultBtContext.cc
  9294. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9295. When it is true, aria2 enables ut_pex. This value is set by
  9296. PeerInteractionCommand.
  9297. * src/DefaultBtMessageFactory.{h, cc}
  9298. * test/DefaultBtMessageFactoryTest.cc
  9299. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9300. handling to DefaultBtInteractive class.
  9301. * src/DefaultExtensionMessageFactory.{h, cc}
  9302. * test/DefaultExtensionMessageFactoryTest.cc
  9303. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9304. the container(peers and incomingPeers. The equality is determined by
  9305. Peer::id).
  9306. * test/DefaultPeerStorageTest.cc
  9307. * src/ExtensionMessage.h
  9308. * test/MockExtensionMessage.h
  9309. * src/ExtensionMessageFactory.h
  9310. * test/MockExtensionMessageFactory.h
  9311. * src/HandshakeExtensionMessage.{h, cc}
  9312. * test/HandshakeExtensionMessageTest.cc
  9313. * src/MetaEntry.h
  9314. * src/Peer.{h, cc}
  9315. * src/PeerInteractionCommand.cc
  9316. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9317. addIncomingPeer.
  9318. * src/PeerMessageUtil.{h, cc}
  9319. * src/PeerObject.h
  9320. * src/UTPexExtensionMessage.{h, cc}
  9321. * test/UTPexExtensionMessageTest.cc
  9322. * src/message.h
  9323. * src/prefs.h
  9324. Fixed the bug that returns incomplete data when it contains null
  9325. character. A convenient constructor was also added.
  9326. * src/Data.{h, cc}
  9327. Rewritten.
  9328. * src/CompactPeerListProcessor.cc
  9329. Fixed typos.
  9330. * src/message.h
  9331. * src/MetaFileUtil.cc
  9332. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9333. Added "Status Legend" label to the explanation text of 'stat' in
  9334. download result and moved it to the last. BUG#1848214
  9335. * src/RequestGroupMan.cc
  9336. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9337. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9338. * src/Makefie.am
  9339. * test/Makefile.am
  9340. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Fixed the bug that prevents aria2 from loading cookie file when expire
  9342. value is greater than 2^31-1. BUG#1851066
  9343. * src/CookieBoxFactory.cc
  9344. * test/CookieBoxFactoryTest.cc
  9345. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9346. Fixed possible memory leak when an exception is thrown.
  9347. * src/XML2SAXMetalinkProcessor.cc
  9348. Added Expat support. If both libxml2 and Expat are installed, then
  9349. libxml2 is used by default.
  9350. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9351. ExpatMetalinkProcessor according to the configuration.
  9352. * src/ExpatMetalinkProcessor.{h, cc}
  9353. * src/main.cc: Removed libxml2 specific header and init/free function.
  9354. * src/MetalinkProcessorFactory.{h, cc}
  9355. * src/MetalinkHelper.cc
  9356. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9357. * src/MetalinkProcessor.h
  9358. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9359. MetalinkProcessorTest is used instead.
  9360. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9361. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9362. MetalinkProcessorFactory::newInstance().
  9363. * m4/libexpat.m4
  9364. * configure.ac: Added configuration options for libexpat.
  9365. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9366. Disabled -s option in metalink download.
  9367. * src/Metalink2RequestGroup.cc
  9368. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. If several protocols are available for a mirror in metalink file,
  9370. aria2 now use one of them. --metalink-preferred-protocol option was
  9371. added to specify the preference of protocol.
  9372. * src/AbstractCommand.cc
  9373. * src/OptionHandlerFactory.cc
  9374. * src/ServerHost.{h, cc}
  9375. * src/Metalink2RequestGroup.cc
  9376. * src/RequestGroup.{h, cc}
  9377. * test/RequestGroupTest.cc
  9378. * src/option_processing.cc
  9379. * src/prefs.h
  9380. * src/HttpResponseCommand.cc
  9381. * src/MetalinkResource.{h, cc}
  9382. * src/FtpNegotiationCommand.cc
  9383. * src/MetalinkEntry.{h, cc}
  9384. * src/MetalinkEntryTest.cc
  9385. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. Code cleanup and added debug log.
  9387. * src/PeerConnection.cc
  9388. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9389. Compiler error fix: applied the patch by Tiziano Mueller
  9390. * src/RequestGroup.cc
  9391. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9392. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9393. in stopped and completed event.
  9394. * src/AnnounceList.{h, cc}
  9395. * test/AnnounceListTest.cc
  9396. * src/DefaultBtAnnounce.cc
  9397. * test/DefaultBtAnnounceTest.cc
  9398. Sorted URLs.
  9399. * test/Metalink2RequestGroupTest.cc
  9400. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. Removed unnecessary string copy. Updated doc and corrected indentation.
  9402. * src/Base64.cc
  9403. Fixed compilation warnings
  9404. * test/DataTest.cc
  9405. * test/HttpRequestTest.cc
  9406. * test/MetaFileUtilTest.cc
  9407. * test/RequestTest.cc
  9408. * Release 0.12.0
  9409. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Updated translations
  9411. * po/{de,fr,ja,nl,ru}.po
  9412. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9413. translations. Many thanks to translators.
  9414. * po/{ca,es,it,pt_BR,sv}.po
  9415. * po/LINGUAS
  9416. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9417. Added a notice about URL
  9418. * src/version_usage.cc
  9419. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9420. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9421. aria2 repeatedly sends stopped request when tracker returns error code.
  9422. * src/AnnounceList.cc
  9423. * test/AnnounceListTest.cc
  9424. * src/AnnounceTier.h
  9425. Added a message when ctrl-c is hit.
  9426. Now second ctrl-c is also handled in signal handler.
  9427. * src/RequestGroupMan.{h, cc}
  9428. * src/RequestGroup.{h, cc}
  9429. * src/MultiUrlRequestInfo.cc
  9430. * src/DownloadEngine.cc
  9431. * src/TrackerWatcherCommand.cc
  9432. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. Code cleanup
  9434. * src/Base64.cc (encode)
  9435. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9436. Changed Direct/IO enable/disable procesure in file allocation routine.
  9437. * src/SingleFileAllocationIterator.cc
  9438. (SingleFileAllocationIterator):
  9439. Disable directIO if offset is not multiple of 512.
  9440. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9441. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9442. Enable created SingleFileAllocationIterator's directIO.
  9443. * src/FileAllocationEntry.cc
  9444. (FileAllocationEntry): Enable directIO here.
  9445. (~FileAllocationEntry): Disable directIO here.
  9446. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9448. * src/Peer.{h, cc}
  9449. * src/DefaultPieceStorage.cc
  9450. * test/DefaultPieceStorageTest.cc
  9451. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9452. Rewritten direct I/O support routine
  9453. * src/SingleFileAllocationIterator.cc
  9454. * src/MultiDiskAdaptor.{h, cc}
  9455. * src/ByteArrayDiskWriter.h
  9456. * src/AbstractSingleDiskAdaptor.h
  9457. * src/AbstractDiskWriter.cc
  9458. * src/DefaultPieceStorage.cc
  9459. * src/DiskWriter.h
  9460. * src/BinaryStream.h
  9461. * src/IteratableChunkChecksumValidator.cc
  9462. * src/IteratableChecksumValidator.cc
  9463. * src/CheckIntegrityEntry.cc
  9464. * src/FileAllocationEntry.cc
  9465. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9466. Fixed typo
  9467. * src/version_usage.cc
  9468. Updated doc
  9469. * doc/aria2c.1.txt
  9470. * doc/aria2c.1
  9471. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9472. Fixed compile error without message digest support.
  9473. * src/FileMetalinkParserState.cc
  9474. * src/MetalinkParserController.{h, cc}
  9475. * test/XML2SAXMetalinkProcessorTest.cc
  9476. * test/MetalinkParserControllerTest.cc
  9477. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9478. Enable direct I/O support in checksum checking.
  9479. * src/IteratableChunkChecksumValidator.{h, cc}
  9480. * test/IteratableChunkChecksumValidatorTest.cc
  9481. * src/CheckIntegrityEntry.cc
  9482. * src/PieceHashCheckIntegrityEntry.cc
  9483. * src/IteratableChecksumValidator.{h, cc}
  9484. * src/BtCheckIntegrityEntry.cc: Added doc.
  9485. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Added --allow-piece-length-change option.
  9487. * src/DefaultBtProgressInfoFile.cc
  9488. * test/DefaultBtProgressInfoFileTest.cc
  9489. * src/OptionHandlerFactory.cc
  9490. * src/option_processing.cc
  9491. * src/prefs.h
  9492. * src/version_usage.cc
  9493. * doc/aria2c.1.txt
  9494. * doc/aria2c.1
  9495. Fixed: duplicated result entry appears when exception is thrown in
  9496. RequestGroup::createInitiateConnectionCommand().
  9497. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9498. Add RequestGroup to _requestGroup after RequetGroup::
  9499. createInitiateConnectionCommand() succeeds.
  9500. Externalized message
  9501. * src/XML2SAXMetalinkProcessor.cc
  9502. * src/message.h
  9503. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. Forced download abort when received negative response from http/ftp
  9505. server.
  9506. * src/HttpResponseCommand.cc
  9507. * src/FtpNegotiationCommand.cc
  9508. * src/HttpResponse.cc
  9509. * src/FtpConnection.cc
  9510. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9512. the predecessor, Xml2MetalinkParser class.
  9513. I tested them against 94KB metalink file with 1234 chunk checksums.
  9514. The new one parsed it in 22msec, while it took 6000msec with old one.
  9515. * src/XML2SAXMetalinkProcessor.{h, cc}
  9516. * test/XML2SAXMetalinkProcessorTest.cc
  9517. * src/MetalinkParserController.{h, cc}
  9518. * test/MetalinkParserControllerTest.cc
  9519. * src/MetalinkParserState.h: Also added 16 subclasses.
  9520. * src/main.cc
  9521. * src/Metalink2RequestGroup.cc
  9522. * src/MetalinkHelper.cc
  9523. * src/MetalinkEntry.cc
  9524. * src/ChunkChecksum.h
  9525. Rewritten Base64 class for better performance.
  9526. * src/Base64.{h, cc}
  9527. * test/Base64Test.cc
  9528. * src/HttpRequest.cc
  9529. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9530. Fixed the bug#1841757: aria2 will connect to server to only get
  9531. file size.
  9532. * src/StreamFileAllocationEntry.cc
  9533. * src/option_processing.cc
  9534. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9535. downloads.
  9536. * src/FtpNegotiationCommand.cc
  9537. Suppressed wrong message when finding PreDownloadHandler
  9538. * src/RequestGroup.cc
  9539. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9540. Updated usage
  9541. * src/version_usage.cc
  9542. Updated man page
  9543. * doc/aria2c.1.txt
  9544. * doc/aria2c.1
  9545. Updated po files
  9546. * po/aria2c.pot
  9547. * po/*.po
  9548. * po/*.gmo
  9549. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. Eliminated g++-4.2 warning
  9551. * src/DownloadHandlerConstants.{h, cc}
  9552. * src/Util.cc
  9553. * test/MetaFileUtilTest.cc
  9554. * test/PStringBuildVisitorTest.cc
  9555. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9556. * src/RequestGroup.cc
  9557. * src/BtCheckIntegrityEntry.cc
  9558. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9559. Fixed a2io.h
  9560. * src/a2io.h
  9561. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9562. Added direct I/O support. The current implementation uses O_DIRECT,
  9563. which is not posix standard and is tested on linux 2.6.21.
  9564. Currently only file allocation uses direct I/O.
  9565. * src/SingleFileAllocationIterator.{h, cc}
  9566. * test/SingleFileAllocationIteratorTest.cc
  9567. * src/MultiFileAllocationIterator.{h, cc}
  9568. * test/MultiFileAllocationIteratorTest.cc
  9569. * src/BinaryStream.h
  9570. * src/DiskWriter.h
  9571. * src/AbstractDiskWriter.{h, cc}
  9572. * src/ByteArrayDiskWriter.h
  9573. * src/DiskAdaptor.h
  9574. * src/AbstractSingleDiskAdaptor.{h, cc}
  9575. * src/MultiDiskAdaptor.{h, cc}
  9576. * src/FileAllocationEntry.cc
  9577. * src/Util.{h, cc}
  9578. * src/OptionHandlerFactory.cc
  9579. * src/prefs.h
  9580. * src/version_usage.cc
  9581. * src/option_processing.cc
  9582. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9583. handleException.
  9584. * src/MultiFileAllocationIterator.cc
  9585. Added EINTR handling
  9586. * src/SocketCore.cc
  9587. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Updated usage
  9589. * src/version_usage.cc
  9590. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9591. Applied Ross's patch for MinGW port.
  9592. * src/DownloadEngine.h
  9593. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9594. Set Content-Type to SingleFileDownloadContext when http response is
  9595. received.
  9596. * src/HttpResponseCommand.cc
  9597. * src/HttpResponse.{h, cc}
  9598. * test/HttpResponseTest.cc
  9599. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9600. Rewritten to add content-type support.
  9601. * src/DownloadHandler.{h, cc}
  9602. * src/BtPostDownloadHandler.{h, cc}
  9603. * test/BtPostDownloadHandlerTest.cc
  9604. * src/MetalinkPostDownloadHandler.{h, cc}
  9605. * test/MetalinkPostDownloadHandlerTest.cc
  9606. * src/PostDownloadHandler.{h, cc}
  9607. * src/DownloadHandlerConstants.{h, cc}
  9608. * src/RequestGroup.cc
  9609. * src/HttpResponseCommand.cc
  9610. * src/FtpNegotiationCommand.cc
  9611. * src/SingleFileDownloadContext.{h, cc}
  9612. * src/RequestGroup.h
  9613. * src/RequestGroupCriteria.h
  9614. * src/ContentTypeRequestGroupCriteria.h
  9615. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9616. If it is give, metalink/torrent file is not written to the disk, but
  9617. just is kept in memory. Parsing is occurred on memory.
  9618. * src/MetalinkHelper.{h, cc}
  9619. * src/MetalinkProcessor.h
  9620. * src/Xml2MetalinkProcessor.{h, cc}
  9621. * test/Xml2MetalinkProcessorTest.cc
  9622. * src/DownloadHandlerFactory.{h, cc}
  9623. * test/DownloadHandlerFactoryTest.cc
  9624. * src/PreDownloadHandler.{h, cc}
  9625. * src/OptionHandlerFactory.cc
  9626. * src/DefaultBtContext.{h, cc}
  9627. * test/DefaultBtContextTest.cc
  9628. * src/version_usage.cc
  9629. * src/Metalink2RequestGroup.{h, cc}
  9630. * src/RequestGroup.{h, cc}
  9631. * src/a2functional.h
  9632. * test/a2functionalTest.cc
  9633. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9634. * src/OptionHandlerImpl.h
  9635. * src/prefs.h
  9636. * src/Util.{h, cc}
  9637. * test/UtilTest.cc
  9638. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9639. memory usage.
  9640. * src/RequestGroupMan.{h, cc}
  9641. * src/DownloadEngine.cc
  9642. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9643. WeakHandle to SharedHandle because WeakHandle could be null.
  9644. * src/RequestGroup.{h, cc}
  9645. * src/DownloadEngineFactory.cc
  9646. * src/DownloadResult.h
  9647. Set totalLength after download finished
  9648. * src/UnknownLengthPieceStorage.{h, cc}
  9649. Keep torrent file specified in metalink in memory.
  9650. * src/Metalink2RequestGroup.cc
  9651. * src/BtDependency.cc
  9652. * src/TrueRequestGroupCriteria.h
  9653. Fixed the bug: seekg is used where seekp should be used.
  9654. * src/ByteArrayDiskWriter.cc
  9655. * test/ByteArraydiskWriterTest.cc
  9656. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9657. Fixed syntax error
  9658. * test/SequenceTest.cc
  9659. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9660. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9661. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9662. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9663. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9664. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9665. Added the check to see whether ares_host_callback accepts timeouts
  9666. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9667. * src/NameResolver.{h, cc}
  9668. * m4/libcares.m4
  9669. * configure.ac: Set C++ for language choice.
  9670. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9671. Fixed: compilation fails without c-ares/ares
  9672. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9673. Generate http/ftp commands only when download is incomplete.
  9674. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9675. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9676. Corrected typo. Examples are removed since they are available in man
  9677. page.
  9678. * src/version_usage.cc
  9679. Updated man page.
  9680. * doc/aria2c.1
  9681. * doc/aria2c.1.txt
  9682. * doc/makeman: Commented out sed command.
  9683. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Throw DlAbortEx when a remote file is not found.
  9685. * src/HttpResponse.cc
  9686. * src/FtpNegotiationCommand.cc
  9687. * src/message.h
  9688. Overwrite an existing file if --allow-overwrite=true is given.
  9689. * src/RequestGroup.cc
  9690. Removed unused functions
  9691. * src/AbstractCommand.h
  9692. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. Removed 'extern' from 'extern typedef ...' in src/*.h
  9694. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9695. Updated usage
  9696. * src/version_usage.cc
  9697. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. Trim announce URL
  9699. * src/DefaultBtContext.cc
  9700. * test/ShaVisitorTest.cc
  9701. Trim argument s. Give trimed s to exception constructor.
  9702. * src/Util.cc (parseInt)(parseLLInt)
  9703. * test/UtilTest.cc
  9704. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. Set precision back to 1.
  9706. * src/ConsoleStatCalc.cc (calculateStat)
  9707. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9708. Replaced strtol with Util::parseInt
  9709. * src/ChunkedEncoding.cc
  9710. * src/HttpConnection.cc
  9711. * src/CookieBoxFactory.cc
  9712. * src/ParameterizedStringParser.cc
  9713. * src/Util.cc
  9714. * test/UtilTest.cc
  9715. * test/OptionHandlerTest.cc
  9716. * src/Request.cc
  9717. Throw exception when empty string is given. The message for exception
  9718. changed.
  9719. * src/Util.cc (parseInt)(parseLLInt)
  9720. * src/message.h
  9721. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9722. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9723. set to 1.
  9724. * src/ConsoleStatCalc.cc (calculateStat)
  9725. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. Preallocate non-requested file which is adjacent forward to requested
  9727. file('requested' files means the files given in --select-file option)
  9728. if they share a same piece.
  9729. This fixes long pause in the file system which doesn't support sparse
  9730. files like FAT32 while downloading.
  9731. * src/MultiFileAllocationIterator.{h, cc}
  9732. * test/MultiFileAllocationIteratorTest.cc
  9733. * src/FileEntry.{h, cc}
  9734. Removed unused _option.
  9735. * src/MultiDiskAdaptor.h
  9736. * test/MultiDiskAdaptorTest.cc
  9737. * src/DefaultPieceStorage.cc
  9738. Set the default value of --seed-ratio to 1.0.
  9739. If 0.0 is given, then seeding continues regardless of share ratio.
  9740. * src/version_usage.cc
  9741. * src/option_processing.cc
  9742. * src/BtSetup.cc
  9743. * doc/aria2c.1.txt
  9744. * doc/aria2c.1
  9745. Fixed: Selective download is not working in BitTorrent
  9746. * src/RequestGroup.cc
  9747. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9748. * src/PieceStorage.h
  9749. * test/MockPieceStorage.h
  9750. * src/UnknownLengthPieceStorage.h
  9751. * src/DefaultPieceStorage.{h, cc}
  9752. * src/Metalink2RequestGroup.cc
  9753. * src/RequestGroup.cc
  9754. * src/Sequence.h
  9755. * test/SequenceTest.cc
  9756. * src/IntSequence.h
  9757. * src/message.h
  9758. * src/Util.{h, cc}
  9759. * test/UtilTest.cc
  9760. Added new function 'parse' to catch exception thrown by subclass's
  9761. parseArg
  9762. * src/OptionHandler.h
  9763. * src/OptionParser.cc
  9764. * src/NameMatchOptionHandler.h
  9765. * src/OptionHandlerImpl.h
  9766. * test/OptionHandlerTest.cc
  9767. Added IntegerRangeOptionHandler. Used for --listen-port and
  9768. --select-file. Now --listen-port accepts range of port.
  9769. * src/OptionHandlerFactory.cc
  9770. * src/version_usage.cc
  9771. * src/OptionHandlerImpl.h
  9772. * src/option_processing.cc
  9773. * src/BtSetup.cc
  9774. * src/PeerListenCommand.{h, cc}
  9775. * doc/aria2c.1.txt
  9776. * doc/aria2c.1
  9777. Implemented operator< for Exception class to provide easy way to print
  9778. exception stack trace.
  9779. * src/Exception.{h, cc}
  9780. * src/main.cc
  9781. * src/option_processing.cc
  9782. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9783. * src/version_usage.cc
  9784. (showVersion): Reworked.
  9785. (showUsage): Added examples.
  9786. Removed Hint for total length and file name.
  9787. * src/Metalink2RequestGroup.cc
  9788. * src/RequestGroup.{h, cc}
  9789. * src/HttpResponseCommand.cc
  9790. * src/FtpNegotiationCommand.cc
  9791. Now --follow-torrent and --follow-metalink option work properly.
  9792. * src/RequestGroup.cc
  9793. Updated man page
  9794. * doc/aria2c.1.txt
  9795. * doc/aria2c.1
  9796. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Removed.
  9798. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9799. Use Segment::operator==()
  9800. * src/HttpConnection.cc
  9801. * src/Segment.h
  9802. Updated usage
  9803. * src/version_usage.cc
  9804. Added EINTR treatment.
  9805. * src/SocketCore.cc
  9806. * src/AbstractDiskWriter.cc
  9807. Rewritten.
  9808. * src/Util.cc (rangedFileCopy)
  9809. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9810. Fixed typo.
  9811. * src/version_usage.cc
  9812. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9813. Implemented. Now -c option works fine.
  9814. * src/DefaultPieceStorage.cc (markPiecesDone)
  9815. * test/DefaultPieceStorageTest.cc
  9816. Removed.
  9817. * src/SegmentMan.{h, cc}
  9818. (markAllPiecesDone)
  9819. (markPieceDone)
  9820. Synchronized po files with
  9821. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9822. * src/fr.po
  9823. * src/ru.po
  9824. * src/de.po
  9825. * src/ja.po
  9826. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9827. Added ifdef and some modifications to compile without BitTorrent,
  9828. Metalink, MessageDigest
  9829. support.
  9830. * src/PieceHashCheckIntegrityEntry.cc
  9831. * src/MetalinkEntry.h
  9832. * src/version_usage.cc
  9833. * src/main.cc
  9834. * src/DownloadEngine.{h, cc}
  9835. * src/Metalink2RequestGroup.cc
  9836. * src/Peer.cc
  9837. * src/RequestGroup.cc
  9838. * src/MetalinkHelper.cc
  9839. * test/DefaultPieceStorageTest.cc
  9840. * test/MetalinkPostDownloadHandlerTest.cc
  9841. * test/Metalink2RequestGroupTest.cc
  9842. Hide TOTAL SPD when all downloads complete.
  9843. * src/ConsoleStatCalc.cc
  9844. Log target system information.
  9845. * src/main.cc
  9846. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9847. Now --metalink-location accepts a comma-deliminated list of locations.
  9848. * src/MetalinkEntry.{h, cc}
  9849. * test/MetalinkEntryTest.cc
  9850. * src/version_usage.cc
  9851. * src/Metalink2RequestGroup.cc
  9852. * src/Xml2MetalinkProcessor.cc
  9853. * test/Xml2MetalinkProcessorTest.cc
  9854. * doc/aria2c.1.txt
  9855. * doc/aria2c.1
  9856. * src/Util.cc (toUpper)(toLower): Rewritten.
  9857. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9858. Added the ability to detect duplicate download entry which is about to
  9859. download the same file other RequestGroup is downloading.
  9860. * src/RequestGroup.cc
  9861. * src/HttpResponseCommand.cc
  9862. * src/FtpNegotiationCommand.cc
  9863. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. Recalculates download progress when loading a control file,
  9865. if the piece length of DownloadContext is different from the one saved
  9866. in the control file. Currently in-flight pieces are ignored.
  9867. * src/DefaultBtProgressInfoFile.cc
  9868. * test/DefaultBtProgressInfoFileTest.cc
  9869. * src/Util.{h, cc}
  9870. * test/UtilTest.cc
  9871. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9872. Do not rotate tiers in announce-list.
  9873. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9874. AnnounceList::allTiersFailed() used instead to detect whether all
  9875. tiers are tried and failed.
  9876. * test/DefaultBtAnnounceTest.cc
  9877. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9878. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9879. * test/AnnounceListTest.cc
  9880. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9881. clause. Catch RecoverableException instead of DlRetryEx instead.
  9882. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Implemented checksum validation feature(1 checksum for each file)
  9884. The validation takes place after the download.
  9885. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9886. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9887. * src/CheckIntegrityCommand.cc: Changed log message.
  9888. * src/Metalink2RequestGroup.cc: Set checksum to
  9889. SingleFileDownloadContext.
  9890. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9891. PieceHashCheckIntegrity class.
  9892. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9893. PieceHashCheckIntegrity class.
  9894. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9895. * src/IteratableValidator.h: New class.
  9896. * src/message.h
  9897. * src/CheckIntegrityEntry.{h, cc}
  9898. * src/IteratableChunkChecksumValidator.{h, cc}
  9899. * src/SingleFileDownloadContext.h
  9900. * src/DownloadCommand.cc
  9901. --allow-overwrite=true is no longer needed to check file integrity
  9902. before download in BitTorrent download.
  9903. * src/RequestGroup.cc (getInitialCommand)
  9904. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9905. throws exception.
  9906. * src/RequestGroupMan.cc (getInitialCommands)
  9907. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9908. urlencode the given url inside Request::parseUrl(...)
  9909. * src/Request.{h, cc}
  9910. * src/Util.{h, cc}
  9911. * test/RequestTest.cc
  9912. Removed #!metalink3! notation support because it is deleted from
  9913. the metalink specification.
  9914. * src/Request.{h, cc}
  9915. * test/RequestTest.cc
  9916. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9917. Don't connect server before checking file integrity at startup, if
  9918. filesize and output file path are known.
  9919. * src/AbstractCommand.cc
  9920. * src/StreamFileAllocationEntry.cc
  9921. * src/Metalink2RequestGroup.cc
  9922. * src/RequestGroup.{h, cc}
  9923. * src/HttpResponseCommand.cc
  9924. * src/FtpNegotiationCommand.cc
  9925. Added DownloadFailureException. If it is thrown, RequestGroup should
  9926. halt.
  9927. * src/AbstractCommand.cc
  9928. * src/DownloadFailureException.h
  9929. * src/RequestGroup.cc
  9930. Catch RecoverableException, instead of DlAbortEx.
  9931. * src/RequestGroupMan.cc
  9932. * src/FillRequestGroupCommand.cc
  9933. * src/MetaFileUtil.cc
  9934. * src/IteratableChunkChecksumValidator.cc
  9935. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9936. getGID())
  9937. * src/CheckIntegrityCommand.cc
  9938. * src/message.h
  9939. Print gid instead of idx.
  9940. * src/RequestGroupMan.cc
  9941. Removed exception throwers declaration.
  9942. * src/DirectDiskAdaptor.{h, cc}
  9943. * src/SocketCore.{h, cc}
  9944. * src/MultiDiskAdaptor.{h, cc}
  9945. * src/HttpConnection.{h, cc}
  9946. * src/HttpResponse.{h, cc}
  9947. * src/DiskAdaptor.{h, cc}
  9948. * src/CopyDiskAdaptor.{h, cc}
  9949. * src/MultiDiskAdaptor.{h, cc}
  9950. * src/HttpHeaderProcessor.{h, cc}
  9951. * src/AbstractSingleDiskAdaptor.{h, cc}
  9952. * src/Util.{h, cc}
  9953. * test/UtilTest.cc
  9954. * src/DefaultDiskWriter.{h, cc}
  9955. * src/FtpConnection.{h, cc}
  9956. * src/AbstractDiskWriter.{h, cc}
  9957. Removed duplicate code.
  9958. * src/StreamCheckIntegrityEntry.cc
  9959. Removed unnecessary include.
  9960. * src/DiskWriter.h
  9961. Included Exception.h
  9962. * src/option_processing.cc
  9963. Included 2 files and added doc
  9964. * src/TrackerWatcherCommand.cc
  9965. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9966. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9967. Changed CheckIntegrityEntry interface so that it can define
  9968. the action when all the chunk checksums are valid.
  9969. * src/CheckIntegrityEntry.h
  9970. * src/StreamCheckIntegrityEntry.{h, cc}
  9971. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9972. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9973. to exit rather than doing seeding. So, it would be good to toggle this
  9974. behavior.
  9975. * src/CheckIntegrityCommand.cc
  9976. * src/AbstractCommand.cc
  9977. * src/RequestGroup.cc
  9978. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9979. Reflect the download length of in-flight pieces.
  9980. It makes the download length readout more precise.
  9981. * src/DefaultPieceStorage.{h, cc}
  9982. * test/DefaultPieceStorageTest.cc
  9983. * src/a2functional.h
  9984. * test/a2functionalTest.cc
  9985. Lower CPU load when --max-download-limit is used.
  9986. There is up and down in speed indicator when enabling
  9987. http-pipelining but a download goes well. I think the problem is that
  9988. because http-pipelining is enabled, DownloadCommand is created for
  9989. each segment and in its constructor, PeerStat::downloadStart() is
  9990. called. In PeerStat::downloadStart(), speed calculation object is
  9991. reseted, which makes download speed zero.
  9992. * src/DownloadCommand.cc
  9993. Rewritten using accumulate.
  9994. * src/RequestGroupMan.cc (calculateStat)
  9995. Code clearnup.
  9996. * src/FtpNegotiationCommand.cc
  9997. * src/HttpResponseCommand.cc
  9998. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9999. Fixed: Can not resume: aria2 reports download already finished.
  10000. * src/AbstractCommand.{h, cc}
  10001. * src/HttpResponseCommand.cc
  10002. * src/FtpNegotiateCommand.cc
  10003. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10004. Now a file is stored in the directory specified in .metalnk file
  10005. (file[@name]).
  10006. * src/Metalink2RequestGroup.cc
  10007. Create the directory structure when opening the file if it doesn't
  10008. exist.
  10009. * src/AbstractDiskWriter.cc
  10010. * src/Util.{h, cc}
  10011. * src/File.h
  10012. * test/UtilTest.cc
  10013. Removed file name comparison
  10014. * src/Metalink2RequestGroup.cc
  10015. * src/HttpResponseCommand.cc
  10016. Rewritten using Util::mkdirs()
  10017. * src/FileEntry.cc (setupDir)
  10018. * test/FileEntryTest.cc
  10019. Updated doc
  10020. * src/SingleFileDownloadContext.h
  10021. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10022. Now SleepCommand dispatches nextCommand when halt is requested.
  10023. It avoids a possible long wait after hitting CTRL-C.
  10024. * src/SleepCommand.{h, cc}
  10025. * src/RequestGroupAware.{h, cc}
  10026. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10027. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10028. to open listen port, then remove the port number from the tracker
  10029. request.
  10030. * src/DefaultBtAnnounce.cc
  10031. * test/DefaultBtAnnounceTest.cc
  10032. * test/MockPieceStorage.h
  10033. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10034. them more testable.
  10035. * src/DefaultBtAnnounce.{h, cc}
  10036. * src/DefaultBtContext.{h, cc}
  10037. * src/Util.{h, cc}
  10038. * test/DefaultBtAnnounceTest.cc
  10039. * test/DefaultBtContextTest.cc
  10040. * test/UtilTest.cc
  10041. Added 'B' to upload bytes readout.
  10042. * src/ConsoleStatCalc.cc
  10043. Now the listen port for BitTorrent download is opened when it is
  10044. needed.
  10045. * src/DownloadEngineFactory.cc
  10046. * src/BtSetup.{h, cc}
  10047. * src/PeerListenCommand.{h, cc}
  10048. Now an exception thrown while parsing tracker response is now logged.
  10049. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10050. called, which means no retry is made in this case, assuming a tracker
  10051. has a problem.
  10052. * src/TrackerWatcherCommand.cc
  10053. Fixed: downloading a file whose length is unkown fails.
  10054. * src/DownloadCommand.cc
  10055. Simplified prepareForNextSegment()
  10056. * src/DownloadCommand.cc
  10057. Updated
  10058. * po/POTFILES.in
  10059. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10060. Re-implemented a file listing for Metalink, which was dropped while
  10061. http/ftp/torrent integration was being implemented.
  10062. * src/MetalinkHelper.{h, cc}: New class.
  10063. * test/MetalinkHelperTest.cc
  10064. * src/main.cc
  10065. * src/Metalink2RequestGroup.cc
  10066. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10067. Added the ability to display the detailed torrent file information.
  10068. Now -S option gives not only a file listing, but also total download
  10069. length, info hash, announce URI, piece length, the number of pieces,
  10070. and mode(single or multi-torrent).
  10071. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10072. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10073. KiB)
  10074. * test/UtilTest.cc
  10075. * src/main.cc
  10076. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10077. Added ftp://USER:PASSWD@Servername automatic parsing.
  10078. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10079. _password. Recognize username and password in URI.
  10080. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10081. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10082. * src/RequestFactory.{h, cc}: Removed.
  10083. * src/AuthConfigFactory.{h, cc}: New class.
  10084. * src/FtpConnection.cc: Use AuthConfigFactory.
  10085. * src/HttpRequest.cc: Use AuthConfigFactory.
  10086. * test/HttpRequestTest.cc: Updated.
  10087. * test/RequestTest.cc: Updated.
  10088. * test/AuthConfigFactoryTest.cc: New class.
  10089. * test/RequestFactoryTest.cc: Removed.
  10090. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10091. Use RequestGroup::allDownloadFinished() to decide whether the control
  10092. file should be removed or saved.
  10093. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10094. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10095. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10096. Use File::renameTo()
  10097. * src/DefaultBtProgressInfoFile.cc
  10098. Added --no-file-allocation-limit command-line option.
  10099. * src/version_usage.cc
  10100. * src/option_processing.cc
  10101. * src/OptionHandlerFactory.cc
  10102. * src/RequestGroup.{h, cc}
  10103. * src/BtCheckIntegrityEntry.cc
  10104. * src/StreamCheckIntegrityEntry.cc
  10105. * src/prefs.h
  10106. * doc/aria2c.1.txt
  10107. * doc/aria2c.1
  10108. Now prealloc is the default value for --file-allocation option.
  10109. * src/version_usage.cc
  10110. * src/option_processing.cc
  10111. * doc/aria2c.1.txt
  10112. * doc/aria2c.1
  10113. Don't URL-encode user-agent.
  10114. * src/HttpRequest.cc
  10115. Updated translations
  10116. * po/LINGUAS: Added nl for Dutch translation.
  10117. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10118. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10119. * po/POTFILES.in: Updated.
  10120. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10121. Added the ability to recognize url-list in a torrent file.
  10122. The retrieved URLs are attached to the corresponding FileEntry.
  10123. * src/DefaultBtContext.{h, cc}
  10124. * src/FileEntry.{h, cc}
  10125. * test/DefaultBtContextTest.cc
  10126. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10127. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10128. after the download finishes.
  10129. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10130. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10131. the data smaller than block length.
  10132. A block length can be specified by constructor's argument.
  10133. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10134. Get a missing piece in the range of given FileEntry. This function is
  10135. not used in the program yet.
  10136. * src/Util.h: Added some macros.
  10137. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10138. Added HTTP/1.1 keep alive and pipelining support.
  10139. See --enable-http-keep-alive and --enable-http-pipelining option.
  10140. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10141. Segment.
  10142. * src/HttpDownloadCommand.{h, cc}
  10143. * src/OptionHandlerFactory.cc
  10144. * src/HttpConnection.{h, cc}
  10145. * src/version_usage.cc
  10146. * src/HttpInitiateConnectionCommand.cc
  10147. * src/FtpInitiateConnectionCommand.cc
  10148. * src/Segment.h
  10149. * src/HttpRequestCommand.{h, cc}
  10150. * src/option_processing.cc
  10151. * src/prefs.h
  10152. * src/HttpResponseCommand.cc
  10153. * src/SegmentMan.{h, cc}
  10154. * src/FtpNegotiateCommand.cc
  10155. * src/HttpProxyResponseCommand.cc
  10156. * src/Request.cc
  10157. * src/HttpRequest.cc
  10158. * src/DownloadCommand.cc
  10159. * test/HttpRequestTest.cc
  10160. * test/RequestTest.cc
  10161. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10162. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10163. finished.
  10164. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10165. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10166. catching it inside the method.
  10167. When no file entry is found in a metalink without querying user
  10168. preferences, throw the exception with the error message that suggests
  10169. metalink file is probably broken.
  10170. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10171. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10172. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10173. processed.
  10174. * src/RequestGroupMan.cc (removeStoppedGroup)
  10175. Added debug message.
  10176. * src/BtPostDownloadHandler.cc
  10177. * src/MetalinkPostDownloadHandler.cc
  10178. * src/PostDownloadHandler.{h, cc}
  10179. * src/RequestGroup.cc
  10180. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10181. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10182. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10183. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10184. stops and there are any unfinished or in-progress downloads.
  10185. Added the legend of "stat".
  10186. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10187. Throw exception when chunck checksum verification fails.
  10188. * src/DownloadCommand.cc (validatePieceHash): New function.
  10189. * src/PiecedSegment.{h, cc} (clear): New function.
  10190. * src/GrowSegment.{h, cc} (clear): New function.
  10191. * src/Segment.h (clear): New function.
  10192. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10193. * test/SegmentTest.cc
  10194. * test/GrowSegmentTest.cc
  10195. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10196. Do not send referer when redirected.
  10197. * src/Request.cc (redirectUrl)
  10198. * test/RequestTest.cc
  10199. * test/HttpRequestTest.cc
  10200. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10201. Implemented BitTorrent/http/ftp integrated download.
  10202. I've rewritten lots of files and now some headers have forward
  10203. class declarations to reduce compile time.
  10204. The implementation is extremely alpha stage, I recommend to use this
  10205. for testing purpose only.
  10206. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10207. Fixed the compilation error on 64bit platform.
  10208. * test/HttpHeaderProcessorTest.cc
  10209. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10210. Merged Ross's patch that fixes compilation problem in MinGW
  10211. * test/DefaultBtProgressInfoFileTest.cc
  10212. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10213. Updated fr.po by sebone
  10214. * po/fr.po
  10215. Updated man page.
  10216. * doc/aria2c.1.txt
  10217. * Release 0.11.3
  10218. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10219. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10220. failure in Metalink.
  10221. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10222. Automatically save *.aria2 control file of http/ftp download in every
  10223. 60 seconds.
  10224. * src/AutoSaveCommand.{h, cc}: New class.
  10225. * src/TimeBasedCommand.{h, cc}: New class.
  10226. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10227. Disable parameterized URI support by default. Added -P option to
  10228. enable the feature.
  10229. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10230. * src/OptionHandlerFactory.cc
  10231. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10232. Updated Japanese translation.
  10233. * po/ja.po
  10234. Updated man page.
  10235. * doc/aria2c.1.txt
  10236. * Release 0.11.3-rc
  10237. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10238. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10239. it is successful, then renamed to *.aria2.
  10240. This prevents *.aria2 file from being truncated or corrupted when
  10241. file system becomes out of space.
  10242. * src/DefaultBtProgressInfoFile.cc (save)
  10243. * src/SegmentMan.cc (save)
  10244. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10245. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. Reduced the fragmentation of bitfield in http/ftp download.
  10247. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10248. * test/BitfieldManTest.cc
  10249. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10250. Added the ability to disable segmented download in .metalink.
  10251. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10252. 'url' tag.
  10253. * src/MetalinkEntry.{h, cc}
  10254. * src/RequestResource.{h, cc}
  10255. * src/MetalinkRequestInfo.cc
  10256. * src/Xml2MetalinkProcessor.cc
  10257. * test/Xml2MetalinkProcessorTest.cc
  10258. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. Added parameterized URI support.
  10260. * src/main.cc: -Z option added.
  10261. * src/OptionHandlerFactory.cc
  10262. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10263. * src/PStringDatum.h: New class.
  10264. * src/PStringSegment.{h,cc}: New class.
  10265. * src/PStringNumLoop.h: New class.
  10266. * src/PStringSelect.h: New class.
  10267. * src/NumberDecorator.h: New class.
  10268. * src/FixedWidthNumberDecorator.h: New class.
  10269. * src/AlphaNumberDecorator.h: New class.
  10270. * src/PStringVisitor.h: New class.
  10271. * src/PStringBuildVisitor.{h,cc}: New class.
  10272. * src/ParameterizedStringParser.{h,cc}: New class.
  10273. * src/Util.{h,cc}
  10274. (isNumber): New function.
  10275. (isLowercase): New function.
  10276. (isUppercase): New function.
  10277. (alphaToNum): New function.
  10278. * test/ParameterizedStringParserTest.cc: New class.
  10279. * test/AlphaNumberDecoratorTest.cc: New class.
  10280. * test/PStringBuildVisitorTest.cc: New class.
  10281. * test/UtilTest.cc
  10282. (testIsNumber): New function.
  10283. (testIsLowercase): New function.
  10284. (testIsUppercase): New function.
  10285. (testAlphaToNum): New function.
  10286. Added '\n' after the error message
  10287. * src/RequestInfo.h (printDownloadAbortMessage)
  10288. Added auto file renaming feature in http(s)/ftp download.
  10289. * src/main.cc: Added --auto-file-renaming command-line option.
  10290. * src/OptionHandlerFactory.cc
  10291. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10292. * src/RequestGroup.{h, cc}
  10293. (shouldCancelDownloadForSafety): Rewritten
  10294. (tryAutoFileRenaming): New function.
  10295. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10296. * src/HttpResponseCommand.cc
  10297. (executeInternal): Removed the call to RequestGroupMan::
  10298. isSameFileBeingDownloaded()
  10299. * src/FtpNegotiateCommand.cc
  10300. (recvSize): Removed the call to RequestGroupMan::
  10301. isSameFileBeingDownloaded()
  10302. * test/RequestGroupTest.cc: New class.
  10303. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10304. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10305. IO.
  10306. * src/DefaultBtProgressInfoFile.cc
  10307. * src/MetaFileUtil.cc
  10308. * src/SimpleLogger.cc
  10309. * src/SegmentMan.cc
  10310. * src/Util.cc
  10311. * src/Platform.cc
  10312. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10313. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10314. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10315. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10316. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10317. Fixed the bug that prevents file allocation is not done when
  10318. dowloading multi-torrent file.
  10319. * src/AbstractDiskWriter.cc (openFile)
  10320. Increase the maximum number of -j option from 15 to 45.
  10321. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10322. Added fr.po, thanks to Charles Landemaine.
  10323. * po/fr.po
  10324. * po/LINGUAS
  10325. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10326. gcc 3.4.4 support:
  10327. * src/DefaultBtContext.cc: int32_t -> int
  10328. * src/main.cc: int -> int32_t, int32_t -> int
  10329. * src/messageDigest.h: uint32_t -> unsigned int
  10330. * src/NameResolver.h: int32_t -> int
  10331. * src/PeerConnection.cc: int -> int32_t
  10332. * src/SpeedCalc.cc: int32_t -> int
  10333. * src/TrackerUpdateCommand.h: int -> int32_t
  10334. * src/Util.cc: int32_t -> int
  10335. * src/Util.h: int32_t -> int
  10336. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10337. * test/AnnounceListTest.cc: int -> int32_t
  10338. * test/ChunkedEncodingTest.cc: int -> int32_t
  10339. * test/DataTest.cc: int -> int32_t
  10340. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10341. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10342. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10343. * test/FeatureConfigTest.cc: int -> int32_t
  10344. * test/MetalinkEntryTest.cc: int -> int32_t
  10345. * test/MockBtRequestFactory.h: int -> int32_t
  10346. * test/MockPieceStorage.h: int -> int32_t
  10347. * test/OptionTest.cc: int -> int32_t
  10348. * test/RequestTest.cc: int -> int32_t
  10349. * test/SegmentManTest.cc: int -> int32_t
  10350. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10351. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10352. Move sleep functions to Util class:
  10353. * src/Util.cc
  10354. (sleep): New function.
  10355. (usleep): New function.
  10356. * src/DownloadCommand.cc: sleep -> Util::sleep
  10357. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10358. MinGW build enhancements. The following files are added:
  10359. * src/timegm.{c,h}
  10360. Changes to support the above new files:
  10361. * configure.ac
  10362. * src/Makefile.am
  10363. * src/a2time.h
  10364. * src/Util.cc:
  10365. * src/strptime.c: Added support for %Z option.
  10366. Fixed MinGW non-blocking bug.
  10367. * src/SocketCore.cc
  10368. * src/HttpRequestCommand.cc
  10369. Miscellenous build fixes/enhancements.
  10370. * configure.ac: Added summary report.
  10371. * src/Platform.h: Tweaked #include's.
  10372. * src/a2netcompat.h: Tweaked #include's.
  10373. * src/strptime.h: Tweaked #include's.
  10374. * src/gai_strerror.c: Tweaked #include's.
  10375. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10376. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10377. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10378. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10379. Increased the initial connection size in BitTorrent download to 40.
  10380. * src/BtRuntime.h
  10381. Added the usage message of --peer-id-prefix option.
  10382. * src/main.cc
  10383. * Release 0.11.2
  10384. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10385. MessageDigestHelper is introduced in order to simplify the use
  10386. of message digest. Removed repeated code.
  10387. The message digest algorithm is now specified by string, like "sha1",
  10388. "md5".
  10389. * src/messageDigest.{h, cc}
  10390. * src/MessageDigestHelper.{h, cc}: New class.
  10391. * src/DefaultPieceStorage.cc
  10392. * src/DefaultBtContext.{h, cc}
  10393. (computeFastSet): New function.
  10394. (setInfoHash): Added for unit testing.
  10395. (setNumPieces): Added for unit testing.
  10396. * src/DefaultBtInteractive.cc
  10397. * src/BtPieceMessage.cc
  10398. * src/Peer.cc
  10399. * src/Checksum.h
  10400. * src/message.h
  10401. * src/IteratableChecksumValidator.h
  10402. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10403. inside it.
  10404. * src/SegmentMan.{h, cc}
  10405. (checkIntegrity): Removed.
  10406. * src/IteratableChunkChecksumValidator.{h, cc}
  10407. * src/Util.h
  10408. (sha1Sum): Removed.
  10409. (simpleMessageDigest): Removed.
  10410. (fileChecksum): Removed.
  10411. (computeFastSet): Removed.
  10412. * src/ShaVisitor.cc
  10413. * src/ChunkChecksum.h
  10414. * src/DownloadCommand.cc
  10415. Removed messageDigest virtual functions.
  10416. * src/MultiDiskAdaptor.{h, cc}
  10417. * src/DiskAdaptor.h
  10418. * src/ByteArrayDiskWriter.h
  10419. * src/DiskWriter.h
  10420. * src/DiskAdaptorWriter.h
  10421. * src/AbstractSingleDiskAdaptor.{h, cc}
  10422. * src/AbstractDiskWriter.{h, cc}
  10423. Fixed comilation error when message digest is disabled.
  10424. * src/MetalinkEntry.{h, cc}
  10425. * src/MetalinkRequestInfo.cc
  10426. Removed srandom and random.
  10427. * src/SimpleRandomizer.h
  10428. Added size() virtual function to DiskAdaptor
  10429. * src/MultiDiskAdaptor.h
  10430. Fixed the bug that causes that files are not opened correctly in
  10431. multi-file torrent.
  10432. * src/TorrentRequestInfo.cc
  10433. * src/MultiDiskAdaptor.cc
  10434. Added SHA256 support
  10435. * src/messageDigest.cc
  10436. * src/Xml2MetalinkProcessor.cc
  10437. Show supported message digest algorithms
  10438. * src/main.cc
  10439. Updated contact info.
  10440. * src/main.cc
  10441. Applied Ross's patch
  10442. * src/a2netcompat.h
  10443. * src/main.cc
  10444. Fixed the bug that prevents a remote metalink from not being processed
  10445. even if '-o foo.metalink' is specified.
  10446. * src/MetalinkRequestInfo.cc
  10447. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10448. Merged Dan's patch:
  10449. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10450. Use va_copy to avoid core dump on amd64:
  10451. * src/SimpleLogger.cc
  10452. Updated contact info.
  10453. * src/main.cc
  10454. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10455. digest is not available.
  10456. * src/MetalinkEntry.h
  10457. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10458. Make a2netcompat.h include a2io.h to fix compilation error:
  10459. * src/a2netcompat.h
  10460. * src/SocketCore.cc: Removed include of a2io.h
  10461. * src/Util.cc: Removed include of a2io.h
  10462. Gather time related functions to a2time.h:
  10463. * src/a2time.h: New file.
  10464. * src/DefaultPeerStorage.cc
  10465. * src/SimpleLogger.cc
  10466. * src/Util.{h, cc}
  10467. * src/SimpleRandomizer.h
  10468. * src/TimeA2.{h,cc}
  10469. * src/DownloadCommand.cc
  10470. * src/main.cc
  10471. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10472. a2netcompat.h:
  10473. * src/NameResolver.cc
  10474. Fixed compilation error without openssl:
  10475. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10476. Added default block to suppress compiler warnings:
  10477. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10478. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10479. MinGW build enhancements. The following files are added:
  10480. * src/gai_strerror.{c,h}
  10481. * src/gettimeofday.{c,h}
  10482. Changes to support the above new files:
  10483. * configure.ac
  10484. * src/Makefile.am
  10485. * src/a2netcompat.h
  10486. * src/TimeA2.cc
  10487. * src/DefaultPeerStorage.cc
  10488. * src/NameResolver.cc: removed mingw_strerror() function.
  10489. * src/SocketCore.cc: removed mingw_strerror() function.
  10490. Miscellaneous MinGW build fixes.
  10491. * src/a2io.h: Use _lseeki64() instead of lseek()
  10492. * src/common.h
  10493. * src/DefaultFileAllocator.cc
  10494. * src/GlowFileAllocator.cc
  10495. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10496. * src/NameResolver.cc
  10497. (callback): Changed int32_t to int.
  10498. (resolve): Changed int32_t to int.
  10499. * src/Platform.cc
  10500. * src/Platform.h
  10501. * test/MultiDiskWriterTest.cc
  10502. * test/PeerMessageUtilTest.cc
  10503. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10504. Other enhancements and fixes.
  10505. * src/HttpRequestCommand.cc
  10506. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10507. * src/SocketCore.cc:
  10508. (error): New function to abstract errno/WSAGetLastError().
  10509. (errorMsg): New function to abstract errno/WSAGetLastError().
  10510. (initiateSecureConnection): Added more detailed error reporting.
  10511. * src/SocketCore.h: Added private variable blocking, to allow
  10512. proper handling of OpenSSL psuedo-errors.
  10513. * src/message.h
  10514. (EX_SSL_INIT_FAILURE)
  10515. (EX_SSL_IO_ERROR)
  10516. (EX_SSL_PROTOCOL_ERROR)
  10517. (EX_SSL_UNKNOWN_ERROR)
  10518. (EX_SSL_CONNECT_ERROR)
  10519. (EX_SOCKET_BLOCKING)
  10520. (EX_SOCKET_NONBLOCKING)
  10521. (EX_SOCKET_UNKNOWN_ERROR)
  10522. * src/Util.cc
  10523. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10524. reserved name.
  10525. (httpGMT): Fixed typo.
  10526. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Merged Ross's win32 patch(manually)
  10528. In the course of merging, following files are added.
  10529. * src/strptime.{h,c}
  10530. * src/libgen.{h,c}
  10531. * src/inet_aton.{h,c}
  10532. * src/Platform.{h,cc}
  10533. * src/localtime_r.{h,c}
  10534. * src/getaddrinfo.{h,c}
  10535. I've gethered network related things, and put them to following file:
  10536. * src/a2netcompat.h
  10537. Also io related things are put to following file:
  10538. * src/a2io.h
  10539. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10540. * src/message.h
  10541. (MSG_ALLOCATION_COMPLETED)
  10542. (EX_TOO_LARGE_FILE)
  10543. (EX_SIZE_MISMATCH)
  10544. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10545. (EX_INVALID_CHUNK_CHECKSUM)
  10546. (EX_INVALID_RANGE_HEADER)
  10547. * src/FileAllocationCommand.cc
  10548. * src/HttpResponse.cc
  10549. * src/RequestGroup.cc
  10550. * src/MultiDiskAdaptor.cc
  10551. * src/OptionHandlerImpl.h
  10552. * src/HttpResponseCommand.cc
  10553. * src/FtpNegotiateCommand.cc
  10554. * src/IteratableChecksumValidator.cc
  10555. * src/SegmentMan.cc
  10556. * src/ChunkChecksumValidator.cc
  10557. Added Randomizer::getRandomNumber(long int)
  10558. * src/Randomizer.h (getRandomNumber)
  10559. * src/SimpleRandomizer.h (getRandomNumber)
  10560. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10561. * src/Util.cc (randomAlpha): Use this new function.
  10562. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10563. Converted int's to in32_t. long long int's are also converted to
  10564. int64_t
  10565. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10566. Fixed the bug that prevents cookies from being sent to the server
  10567. if the domain of cookie is FQDN and starts with ".".
  10568. * src/Cookie.cc (match)
  10569. To add the ability to change peer id.
  10570. * src/DefaultBtContext.h
  10571. (_peerIdPrefix): New variable
  10572. (setPeerIdPrefix): New function.
  10573. * src/torrentRequestInfo.cc
  10574. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10575. DefaultBtContext.
  10576. * src/main.cc (main): Added peer-id-prefix command-line option.
  10577. The usage message is not added yet.
  10578. * src/DefaultBtContext.cc
  10579. (generatePeerId): Use _peerIdPrefix.
  10580. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10581. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10582. Fixed the bug that prevents filename in content-disposition from
  10583. being retrieved when filename is not quoted.
  10584. * src/Util.cc (getContentDispositionFilename)
  10585. Fixed the bug that causes infinate loop and memory leak when file open
  10586. operation failed.
  10587. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10588. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. Fixed the bug that causes segfault when all URIs specified are
  10590. unsupported.
  10591. * src/RequestGroupMan.cc (getInitialCommands)
  10592. Check if RequestGroup::createNextCommand() returns empty list of
  10593. commands.
  10594. * src/RequestGroup.cc (createNextCommand)
  10595. Change log level from info to error so that users can notice that
  10596. an error occurred.
  10597. Fixed the bug that causes segfault when a zero-sized file is
  10598. downloaded.
  10599. * src/BitfieldMan.cc (isAllBitSet)
  10600. Return true if bitfieldLength is 0.
  10601. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10602. * src/main.cc
  10603. (showUsage): Added 3 usage examples for metalink download.
  10604. Replace MetalinkChunkChecksum with ChunkChecksum.
  10605. * src/MetalinkChunkChecksum.h: Removed.
  10606. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10607. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10608. * src/Xml2MetalinkProcessor.cc
  10609. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10610. * src/MetalinkRequestInfo.cc (execute)
  10611. * Release 0.11.1
  10612. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10613. Reads URIs from stdin when "-i -" is specified.
  10614. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10615. * src/UriListParser.h, src/UriListParser.cc: New class.
  10616. * src/StreamUriListParser.h: New class.
  10617. * src/FileUriListParser.h: New class.
  10618. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10619. instead of UriFileListParser.
  10620. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10621. Made console readout more readable.
  10622. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10623. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10624. Fix the bug that causes -s option not to work.
  10625. * src/main.cc (main)
  10626. * src/a2algo.h: New file.
  10627. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10628. Create directory structure specified in metalink file.
  10629. * src/RequestGroup.h, src/RequestGroup.cc
  10630. (initAndOpenFile): Create a directory to store files if it does not
  10631. exist.
  10632. (getDir): New function.
  10633. Added ETA and download speed for an individual file to readout.
  10634. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10635. * src/RequestGroup.h
  10636. (calculateDownloadSpeed): New function.
  10637. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10638. Made -S option work with metalink file and provided selective download
  10639. to metalink.
  10640. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10641. (filename): Removed.
  10642. (file): New variable.
  10643. (size): Removed.
  10644. (operator=): Updated.
  10645. (getPath): New function.
  10646. (getLength): New function.
  10647. (toFileEntry): New function.
  10648. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10649. (execute): Use toStream.
  10650. (showFileEntry): Removed.
  10651. * src/MetalinkRequestInfo.h
  10652. (targetFiles): New variable.
  10653. (setTargetFiles): New variable.
  10654. * src/MetalinkRequestInfo.cc
  10655. (execute): Added the ability to print file information included in
  10656. a metalink file.
  10657. Added selective download mode to metalink.
  10658. * src/main.cc
  10659. (showUsage): Updated to denote that -S and --select-file options are
  10660. applicable to metalink.
  10661. * src/FileEntry.h
  10662. (operator=): New function.
  10663. (getBasename): New function.
  10664. (getDirname): New function.
  10665. * src/Util.h, src/Util.cc
  10666. (toStream): New function.
  10667. * src/Xml2MetalinkProcessor.cc: Updated.
  10668. Made aria2 work with metalink with directory structure.
  10669. * src/File.h, src/File.cc
  10670. (getBasename): New function.
  10671. (getDirname): New function.
  10672. * src/RequestGroup.h, src/RequestGroup.cc
  10673. (_topDir): New variable.
  10674. (setTopDir): New function.
  10675. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10676. Rewrote HTTP header parsing with stringstream.
  10677. * src/HttpConnection.h, src/HttpConnection.cc
  10678. (HttpRequestEntry): New class.
  10679. (headerBuf): Removed.
  10680. (headerBufLength): Removed.
  10681. (outstandingHttpRequests): Now its element type is
  10682. HttpRequestEntryHandle.
  10683. (findEndOfHeader): Removed.
  10684. (receiveResponse): Rewritten.
  10685. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10686. Updated doc for -j option to notice that it should be used with -i
  10687. option.
  10688. * src/main.cc (showUsage)
  10689. Removed unused classes.
  10690. * src/RequestInfo.h
  10691. (FileInfo): Removed.
  10692. (checksum): Removed.
  10693. (fileInfo): Removed.
  10694. (setChecksum): Removed.
  10695. (getChecksum): Removed.
  10696. (getFileInfo): Removed.
  10697. Use ISO units.
  10698. * src/ConsoleDownloadEngine.cc
  10699. * src/TorrentConsoleDownloadEngine.cc
  10700. * src/Util.cc (abbrevSize)
  10701. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10702. Added the default listening ports to the help message.
  10703. * src/main.cc (showUsage)
  10704. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10705. Reduce the number of calls to gettimeofday to lower CPU load.
  10706. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10707. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10708. * src/Peer.h (calculateUploadSpeed): New function.
  10709. (calculateDownloadSpeed): New function.
  10710. * src/DefaultPeerStorage.cc
  10711. (CalculateStat): Added _now variable.
  10712. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10713. and Peer::calculateUploadSpeed(const struct timeval&)
  10714. Drop connection if no request or piece message is exchanged in
  10715. a certain interval.
  10716. * src/DefaultBtInteractive.h
  10717. (btRuntime): New variable.
  10718. (inactiveCheckPoint): New variable.
  10719. (checkActiveInteraction): New function.
  10720. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10721. request or piece message is received.
  10722. (checkActiveInteraction): New function.
  10723. (doInteractionProcessing): Call checkActiveInteraction.
  10724. Fixed the bug that causes remote Metalink and Torrent files are not
  10725. processed.
  10726. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10727. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10728. Changed format of log file.
  10729. * src/SimpleLogger.cc
  10730. * Release 0.11.0
  10731. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10732. * src/AbstractCommand.cc
  10733. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10734. MSG_MAX_TRY from error to info.
  10735. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10736. * src/message.h
  10737. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10738. (MSG_DOWNLOAD_ABORTED): Added %s.
  10739. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10740. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10741. * src/PeerAbstractCommand.cc
  10742. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10743. * src/Request.h
  10744. (cookieBox): Made ShardHandle.
  10745. * src/RequestGroup.h, src/RequestGroup.cc
  10746. (createNextCommandWithAdj): New function.
  10747. * src/FileAllocationCommand.cc
  10748. (executeInternal): Use createNextCommandWithAdj().
  10749. * src/CheckIntegrityCommand.cc
  10750. (executeInternal): Use createNextCommandWithAdj().
  10751. Added --load-cookies command-option.
  10752. * src/OptionHandlerFactory.cc
  10753. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10754. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10755. Now aria2 can handle cookie's expiration date.
  10756. * src/Cookie.h (expires): Changed its type to time_t.
  10757. * src/main.cc: Added --load-cookies command-line option.
  10758. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10759. * src/Util.h, src/Util.cc (httpGMT): New function.
  10760. * src/Request.cc (Request): Initialize cookieBox using
  10761. CookieBoxFactory.
  10762. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10763. * src/CookieParser.h, src/CookieParser.cc: New class.
  10764. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10765. * src/HttpResponseCommand.cc
  10766. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10767. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10768. download.
  10769. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10770. Added -j command-line option.
  10771. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10772. * src/main.cc
  10773. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10774. Rewritten using stringstream.
  10775. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10776. Rewritten using stringstream.
  10777. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10778. Make download size shown in MB, KB.
  10779. * src/ConsoleDownloadEngine.h (sendStatistics)
  10780. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10781. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10782. Accept incoming connections if download rate is low.
  10783. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10784. (_lowestSpeedLimit): New variable.
  10785. (setLowestSpeedLimit): New function.
  10786. (execute): Accept incoming connections if download rate is low.
  10787. MAX_PEERS is ignored in this case.
  10788. Disable PREF_OUT in multiple concurrent download:
  10789. * src/RequestGroup.h, src/RequestGroup.cc
  10790. (setUserDefinedFilename): New function.
  10791. * src/DownloadEngineFactory.cc
  10792. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10793. concurrent download.
  10794. * src/DefaultSegmentManFactory.cc
  10795. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10796. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10797. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10798. Added its overloaded method.
  10799. * src/RequestGroup.h
  10800. (_numConcurrentCommand): New variable.
  10801. (setNumConcurrentCommand): New function.
  10802. * src/RequestGroup.cc
  10803. Abort download if same file is being downloaded concurrently.
  10804. * src/RequestGroup.h, src/RequestGroupMan.cc
  10805. (isSameFileBeingDownloaded): New function.
  10806. * src/HttpResponseCommand.cc (executeInternal)
  10807. * src/FtpNegotiateCommand.cc (recvSize)
  10808. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10809. * main.cc: Added help message for -i option.
  10810. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10811. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10812. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10813. * src/MetalinkEntry.h
  10814. (checksum): Changed to ChecksumHandle
  10815. * src/MetalinkRequestInfo.cc
  10816. (checksum): Changed to ChecksumHandle
  10817. * src/File.cc
  10818. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10819. * src/common.h
  10820. (DIR_OPEN_MODE): New definition
  10821. * src/RequestGroup.cc
  10822. (prepareForNextAction): Added an argument.
  10823. * src/message.h
  10824. (MSG_GOOD_CHECKSUM): New definition
  10825. (MSG_BAD_CHECKSUM): New definition
  10826. * src/HttpResponseCommand.cc
  10827. (handleDefaultEncoding): Continue download sequence in new
  10828. non-segmented download.
  10829. * src/FileAllocationEntry.h
  10830. (_nextDownloadCommand): New variable.
  10831. * src/DownloadCommand.cc
  10832. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10833. available.
  10834. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10835. * src/IteratableChecksumValidator.h,
  10836. src/IteratableChecksumValidator.cc: New class.
  10837. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10838. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10839. Change file mode to 666:
  10840. * src/common.h (OPEN_MODE): New definition.
  10841. * src/File.cc
  10842. * src/Util.cc
  10843. * src/Directry.cc
  10844. * src/AbstractDiskWriter.cc
  10845. Change the level of log message "download aborted" to debug:
  10846. * src/PeerAbstractCommand.cc (execute)
  10847. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10848. * src/TrackerWatcherCommand.cc
  10849. (createCommand): Sleep some seconds after request failed.
  10850. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10851. then abort tracker request.
  10852. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10853. * Added the simultaneous download feature.
  10854. * src/main.cc: Print "Exception caught: " when exception is caught.
  10855. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10856. * src/ActivePeerConnectionCommand.cc
  10857. * src/PeerInteractionCommand.cc
  10858. * src/BtRuntime.h
  10859. (cuidCounter): Removed.
  10860. (getNewCuid): Removed.
  10861. * src/DownloadEngineFactory.cc
  10862. * src/PeerListenCommand.cc
  10863. * src/TrackerUpdateCommand.cc
  10864. * src/PeerInitiateConnectionCommand.cc
  10865. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10866. * src/PeerAbstractCommand.cc
  10867. (onAbort): Call PeerStorage::returnPeer()
  10868. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10869. (incomingPeers): New variable.
  10870. (addIncomingPeer): New function.
  10871. (returnPeer): New function.
  10872. (onErasingPeer): New function.
  10873. (addPeer): push_back -> push_front
  10874. (getActivePeers): Rewritten.
  10875. (calculateStat): Rewritten.
  10876. * src/PeerStorage.h
  10877. (TransferStat::copy): New function.
  10878. (TransferStat::TransferStat): New function.
  10879. (TransferStat::operator=): New function.
  10880. (addIncomingPeer): New function.
  10881. (returnPeer): New function.
  10882. * src/PeerListenCommand.cc
  10883. (execute): Use PeerStorage::addIncomingPeer() instead of
  10884. Peer::addPeer().
  10885. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10886. Connect to a peer actively when download speed is lower than specified
  10887. speed in torrent download:
  10888. * src/ActivePeerConnectionCommand.h: New class.
  10889. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10890. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10891. * src/main.cc: Fixed the bug that prevents download if .netrc
  10892. doesn't exist.
  10893. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. To cache resolved hostname:
  10895. * src/AbstractCommand.h, src/AbstractCommand.cc
  10896. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10897. Added dns cache.
  10898. * src/FtpInitiateConnectionCommand.cc
  10899. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10900. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10901. NameResolver working without ares.
  10902. * src/TorrentRequestInfo.cc
  10903. (execute): Don't cache dns in torrent download.
  10904. * src/HttpInitiateConnectionCommand.cc
  10905. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10906. * src/DNSCache.h: New class.
  10907. * src/UrlRequestInfo.cc
  10908. (execute): Use dns cache.
  10909. In http request, suppress port number in http request header if port
  10910. is 80 or 443:
  10911. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10912. request header if port is 80 or 443.
  10913. (createProxyRequest): Allways send port number.
  10914. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10915. To add the command-line option which disables netrc support:
  10916. * src/OptionHandlerFactory.cc
  10917. (createOptionHandlers): Added PREF_NO_NETRC.
  10918. * src/main.cc: Added -n option.
  10919. * src/prefs.h (PREF_NO_NETRC): New definition.
  10920. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10921. V_TRUE.
  10922. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10923. is V_FALSE. This may get configurable in the future release.
  10924. To clear peer's error status by time basis:
  10925. * src/PeerAbstractCommand.cc
  10926. (onAbort): Call Peer::startBadCondition().
  10927. * src/Peer.h, src/Peer.cc
  10928. (error): Removed.
  10929. (_badConditionStartTime): New variable.
  10930. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10931. (startBadCondition): New function.
  10932. (isGood): New function.
  10933. * src/DefaultPeerStorage.cc
  10934. (addPeer): Use Peer::isGood().
  10935. (FindFinePeer): Use Peer::isGood().
  10936. Always include port number in http request header:
  10937. * src/HttpRequest.cc (getHostText): Always include port number in
  10938. http request header.
  10939. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10940. To the ability to read options from a config file:
  10941. * src/main.cc: Command-line parameter validation is delegated to
  10942. OptionHandler class.
  10943. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10944. * src/Option.h, src/Option.cc (clear): New function.
  10945. * src/OptionParser.h, src/OptionParser.cc: New class.
  10946. * src/OptionHandler.h: New class.
  10947. * src/NameMatchOptionHandler.h: New class.
  10948. * src/OptionHandlerImpl.h: New classes.
  10949. * src/prefs.h: '_' -> '-'
  10950. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10951. (FTP_PASV): New definition.
  10952. * src/Util.h, src/Util.cc (getRealSize): New function.
  10953. To disable netrc support if .netrc file does not have correct
  10954. permissions:
  10955. * src/File.h, src/File.cc (mode): New function.
  10956. To prevent confidential information to be logged:
  10957. * src/HttpConnection.h, src/HttpConnection.cc
  10958. (eraseConfidentialInfo): New function.
  10959. (sendRequest): Call eraseConfidentialInfo().
  10960. (sendProxyRequest): Call eraseConfidentialInfo().
  10961. * src/main.cc: Validate permissions of .netrc file.
  10962. To add --user-agent command-line option:
  10963. * src/main.cc: Added new command line option: --user-agent
  10964. * src/prefs.h (PREF_USER_AGENT): New definition.
  10965. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10966. parameter to HttpRequest object.
  10967. * src/AbstractProxyRequestCommand.cc
  10968. (executeInternal): Set user-agent option parameter to HttpRequest
  10969. object.
  10970. Marged the patches from Dan Fandrich.
  10971. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10972. Use filename and size from Metalink file instead of sending HEAD
  10973. request:
  10974. * src/UrlRequestInfo.h
  10975. (_filename): New variable.
  10976. (_totalLength): New variable.
  10977. (setTotalLength): New variable.
  10978. (setFilename): New variable.
  10979. * src/MetalinkRequestInfo.cc
  10980. (execute): Set filename and size to UrlRequestInfo
  10981. * src/UrlRequestInfo.cc
  10982. (execute): Use filename and size from Metalink instead of seding
  10983. HEAD request to servers.
  10984. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. To add the ability to resume downloading a partially downloaded file
  10986. which is downloaded from the beginning:
  10987. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10988. takes this role.
  10989. * src/main.cc: Added -c option.
  10990. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10991. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10992. * src/prefs.h (PREF_CONTINUE): New definition.
  10993. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10994. * src/DefaultDiskWriter.cc
  10995. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10996. * src/AbstractDiskWriter.h
  10997. (glowFileAllocator): New variable.
  10998. * src/AbstractDiskWriter.cc
  10999. (openExistingFile): Now preallocate file space from the end of the
  11000. existing file if totalLength argument is specified and grater than 0.
  11001. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11002. to download exists in local, continue the download of the file.
  11003. --allow-overwrite=true is assumed in this context.
  11004. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11005. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11006. Throw exception if --check-integrity=true is specified but chunk
  11007. checksums are not provided:
  11008. * src/UrlRequestInfo.cc
  11009. Do not print URLs to stdout:
  11010. * src/UrlRequestInfo.cc
  11011. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11012. * src/Request.h: Use AuthResolver to get authentication information.
  11013. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11014. set to RequestFactory object.
  11015. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11016. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11017. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11018. create Request object.
  11019. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11020. To integrate Netrc into exsiting classes:
  11021. * src/Request.h
  11022. (_userDefinedAuthConfig): New variable.
  11023. (findNetrcAuthenticator): New function.
  11024. (segment): Removed.
  11025. (setUserDefinedAuthConfig): New function.
  11026. (resolveHttpAuthConfigItem): New function.
  11027. (resolveFtpAuthConfigItem): New function.
  11028. (resolveHttpProxyAuthConfigItem): New function.
  11029. * src/HttpRequest.h
  11030. (authConfig): Removed.
  11031. (proxyAuthConfig): Removed.
  11032. (setAuthConfig): Removed.
  11033. (setProxyAuthConfig): Removed.
  11034. * src/UrlRequest.h
  11035. (getHeadResult): Added a parameter: authConfigHandle
  11036. * src/common.h
  11037. (SingletonHolder.h): New include.
  11038. * src/main.cc
  11039. (Netrc.h): New include.
  11040. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11041. Added initial value of PREF_NETRC_PATH.
  11042. Added the initialization of netrc.
  11043. * src/AuthConfig.h: New class.
  11044. * src/prefs.h
  11045. (PREF_NETRC_PATH): New definition.
  11046. * src/HttpAuthConfig.h: Removed.
  11047. * src/Netrc.cc
  11048. (getRequiredNextToken): New function.
  11049. (skipMacdef): New function.
  11050. (parse): Rewritten.
  11051. * src/Netrc.h
  11052. (getRequiredNextToken): New function.
  11053. (skipMacdef): New function.
  11054. * src/Util.h, src/Util.cc
  11055. (getHomeDir): New function.
  11056. * src/TrackerWatcherComand.cc
  11057. (createRequestCommand): Use AuthConfig.
  11058. * src/FtpConnection.cc
  11059. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11060. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11061. * src/Request.cc
  11062. (findNetrcAuthenticator): New function.
  11063. (resolveHttpAuthConfigItem): New function.
  11064. (resolveFtpAuthConfigItem): New function.
  11065. (resolveHttpProxyAuthConfigItem): New function.
  11066. * src/UrlRequestInfo.cc: Use AuthConfig.
  11067. * src/HttpRequest.cc
  11068. (createRequest): Use authConfig.
  11069. (getProxyAuthString): Use authConfig.
  11070. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11071. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11072. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11073. To reduce overhead to find commands whose socket is either
  11074. readable or writable in the download engine loop:
  11075. * src/Command.h, src/Command.cc
  11076. (STATUS): New enum.
  11077. (status): New variable.
  11078. (statusMatch): New function.
  11079. (setStatusActive): New function.
  11080. (setStatusInactive): New function.
  11081. * src/DownloadEngine.h, src/DownloadEngine.cc
  11082. (executeCommand): New function.
  11083. (run): Simplified.
  11084. (waitData): Call Command::setStatusActive() when command's socket is
  11085. readable or writable.
  11086. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11087. To handle Segment as SegmentHandle:
  11088. * src/AbstractCommand.cc (execute): Rewritten.
  11089. * src/SegmentMan.h: Segment -> SegmentHandle
  11090. Introducded HttpResponse class, HttpRequest class to improve code
  11091. extensiveness and make it clear:
  11092. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11093. HttpResponse class.
  11094. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11095. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11096. * src/HttpConnection.cc: Contruction of http request were moved to
  11097. HttpRequest class.
  11098. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11099. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11100. * src/HttpAuthConfig.h: New class.
  11101. * src/Range.h: New class.
  11102. To make FtpTunnel{Request, Response}Command and
  11103. HttpProxy{Request, Response}Command derived from
  11104. AbstractProxy{Request, Response}Command:
  11105. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11106. Derived from AbstractProxyRequestCommand class.
  11107. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11108. Derived from AbstractProxyResponseCommand class.
  11109. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11110. Derived from AbstractProxyRequestCommand class.
  11111. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11112. Derived from AbstractProxyResponseCommand class.
  11113. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11114. : New class.
  11115. * src/AbstractProxyResponseCommand.h,
  11116. src/AbstractProxyResponseCommand.cc: New class.
  11117. To add netrc support:
  11118. * src/Netrc.h, src/Netrc.cc: New class.
  11119. * src/Util.h, src/Util.cc (split): New function.
  11120. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11121. "Content-Range" header instead of "Range" header.
  11122. * src/HttpHeader.h
  11123. (getStatus): Removed.
  11124. (setStatus): Removed.
  11125. * src/Segment.h
  11126. (getPositionToWrite): New function.
  11127. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11128. * src/HttpHeader.h
  11129. (Range.h): New include.
  11130. (status): New variable.
  11131. (HttpHeader): Initialized status with 0.
  11132. (getStatus): New function.
  11133. (setStatus): New function.
  11134. (getRange): New function.
  11135. (HttpHeaderHandle): New function.
  11136. * src/HttpHeader.cc
  11137. (getRange): New function.
  11138. * src/Request.h
  11139. (RequestWeakHandle): New definition.
  11140. * src/HttpConnection.h
  11141. (HttpConnectionHandle): New type definition.
  11142. * src/HttpConnection.cc
  11143. (receiveResponse): Set HTTP status to headers.
  11144. * src/main.cc
  11145. (showUsage): Fixed typo.
  11146. * src/Segment.h
  11147. (SegmentHandle): New type definition.
  11148. * src/BitfieldMan.h
  11149. (getMissingUnusedLength): New function.
  11150. * src/BitfieldMan.cc
  11151. (getMissingUnusedLength): New function.
  11152. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11153. To fix static initialization order problem:
  11154. * src/BitfieldManFactory.h
  11155. (defaultRandomizer): Removed.
  11156. (factory): New variable.
  11157. (getNewFactory): Removed.
  11158. (getFactoryInstance): New function.
  11159. (setDefaultRandomizer): Rewritten.
  11160. (getDefaultRandomizer): Rewritten.
  11161. * src/BitfieldManFactory.cc
  11162. (defaultRandomizer): Removed.
  11163. (factory): Initialized to 0.
  11164. (BitfieldManFactory): Initialized randomizer to 0.
  11165. * src/DefaultPieceStorage.cc
  11166. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11167. * src/Peer.cc
  11168. (Peer): getNewFactory() -> getFactoryInstance()
  11169. * src/SegmentMan.cc
  11170. (initBitfield): getNewFactory() -> getFactoryInstance()
  11171. * src/Piece.cc
  11172. (Piece): getNewFactory() -> getFactoryInstance()
  11173. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11174. To fix the bug that causes crash on Max OS X:
  11175. * src/SimpleRandomizer.h
  11176. (getInstance): Create new instance if the static variable is null.
  11177. * src/SimpleRandomizer.cc
  11178. (randomizer): Initialized to 0.
  11179. * src/BitfieldManFactory.h
  11180. (getNewFactory): Removed the call to setRandomizer().
  11181. To fix the miscalculation of the range of checksum:
  11182. * src/BitfieldMan.h
  11183. (isBitSetOffsetRange): New function.
  11184. * src/BitfieldMan.cc
  11185. (isBitSetOffsetRange): New function.
  11186. * src/SegmentMan.cc
  11187. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11188. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11189. * Release 0.10.1
  11190. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11191. To lower CPU usage in BitTorrent download when --max-upload-limit
  11192. command-line option specified:
  11193. * src/DefaultBtMessageDispatcher.cc
  11194. (sendMessages): Calculate uploading speed only when current message
  11195. is uploading data and is not sent yet.
  11196. * src/DefaultPeerStorage.h
  11197. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11198. * src/HttpResponseCommand.cc
  11199. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11200. This fixes compile error in Soralis 10.
  11201. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11202. To fix segfault in Metalink download:
  11203. * src/UrlRequestInfo.h
  11204. (filename): Removed.
  11205. (totalLength): Removed.
  11206. (setTotalLength): Removed.
  11207. (setFilename): Removed.
  11208. * src/MetalinkRequestInfo.cc
  11209. (execute): Do not set filename and totalLength to reqInfo.
  11210. Set chunk checksum to reqInfo if it is not null.
  11211. * src/HttpResponseCommand.cc
  11212. (executeInternal): Fixed filename in log.
  11213. (handleDefaultEncoding): Removed the call to initBitfield() and
  11214. markAllPiecesDone().
  11215. (handleOtherEncoding): Added HEAD method handling.
  11216. * src/FtpNegotiateCommand.cc
  11217. (executeInternal): Added SEQ_HEAD_OK handling.
  11218. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11219. return false.
  11220. * src/FtpNegotiateCommand.h
  11221. (SEQ_HEAD_OK): New definition.
  11222. * src/SegmentMan.cc
  11223. (initBitfield): Delete bitfield.
  11224. (isChunkChecksumValidationReady): Fixed the condition.
  11225. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11226. works fine.
  11227. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11228. * src/Xml2MetalinkProcessor.h
  11229. (xpathExists): New function.
  11230. * src/Xml2MetalinkProcessor.cc
  11231. (xpathExists): New function.
  11232. Not to send HEAD request if filename and size are available in Metalink
  11233. file:
  11234. * src/UrlRequestInfo.h
  11235. (filename): New variable.
  11236. (totalLength): New variable.
  11237. (setTotalLength): New function.
  11238. (setFilename): New function.
  11239. * src/MetalinkRequestInfo.cc
  11240. (execute): Set filename and size to UrlRequestInfo.
  11241. * src/MetalinkEntry.cc
  11242. (MetalinkEntry): Initialize size with 0.
  11243. * src/UrlRequestInfo.cc
  11244. (execute): Set filename and size to SegmentMan.
  11245. Not to download rest of the files after selected files are downloaded
  11246. in BitTorrent:
  11247. * src/PieceStorage.h
  11248. (allDownloadFinished): New function.
  11249. * src/DefaultBtAnnounce.cc
  11250. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11251. downloadFinished.
  11252. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11253. * src/DefaultPieceStorage.cc
  11254. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11255. Commented out the call to finishSelectiveDownloadingMode().
  11256. (downloadFinished): Call isFilteredAllBitSet() instead of
  11257. isAllBitSet().
  11258. (allDownloadFinished): New function.
  11259. * src/DefaultBtInteractive.cc
  11260. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11261. downloadFinished().
  11262. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11263. * src/TorrentDownloadEngine.cc
  11264. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11265. * src/BitfieldMan.h
  11266. (isFilteredAllBitSet): New function.
  11267. * src/ShareRatioSeedCriteria.h
  11268. (PieceStorage.h): New include.
  11269. (pieceStorage): New variable.
  11270. (evaluate):
  11271. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11272. * src/BitfieldMan.cc
  11273. (isFilteredAllBitSet): New function.
  11274. (isAllBitSet): Filter is not took into account.
  11275. Rename --force-truncate as --allow-overwrite:
  11276. * src/TorrentRequestInfo.cc
  11277. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11278. * src/main.cc
  11279. (showUsage): --force-truncate -> --allow-overwrite
  11280. * src/message.h
  11281. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11282. * src/prefs.h
  11283. (PREF_FORCE_TRUNCATE): Removed.
  11284. (PREF_ALLOW_OVERWRITE): New definition.
  11285. * src/SegmentMan.cc
  11286. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11287. * src/MetalinkRequestInfo.cc
  11288. (execute): Queueing message are now logged in info level.
  11289. * src/common.h
  11290. (LONG_LONG_MAX): Removed.
  11291. (LONG_LONG_MIN): Removed.
  11292. * src/HttpResponseCommand.cc
  11293. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11294. * src/FtpNegotiateCommand.cc
  11295. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11296. * src/main.cc
  11297. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11298. command-line option.
  11299. (main): Added --check-integriy and --realtime-chunk-checksum
  11300. command-line option.
  11301. --force-truncate -> --allow-overwrite
  11302. Set initial value of --check-integrity option to false.
  11303. Don't show usage when error occurs while persing command-line options.
  11304. Removed deprecated --upload-limit option.
  11305. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11306. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11307. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11308. * src/BtAllowedFastMessage.cc:
  11309. * src/BtBitfieldMessage.cc
  11310. * src/BtCancelMessage.cc
  11311. * src/BtChokeMessage.cc
  11312. * src/BtHaveAllMessage.cc
  11313. * src/BtHaveMessage.cc
  11314. * src/BtHaveNoneMessage.cc
  11315. * src/BtInterestedMessage.cc
  11316. * src/BtNotInterestedMessage.cc
  11317. * src/BtPieceMessage.cc
  11318. * src/BtPortMessage.cc
  11319. * src/BtRejectMessage.cc
  11320. * src/BtRequestMessage.cc
  11321. * src/BtSuggestPieceMessage.cc
  11322. * src/BtUnchokeMessage.cc
  11323. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11324. files are affected.
  11325. * src/ChunkChecksumValidator.cc
  11326. * src/SegmentMan.cc
  11327. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11328. To add chunk checksum validation:
  11329. * src/MetalinkEntry.h
  11330. (MetalinkChunkChecksum.h): New include.
  11331. (chunkChecksum): New variable.
  11332. * src/Request.h
  11333. (method): New variable.
  11334. (setMethod): New function.
  11335. (getMethod): New function.
  11336. (METHOD_GET): New static constant.
  11337. (METHOD_HEAD): New static constant.
  11338. * src/Xml2MetalinkProcessor.h
  11339. (getPieceHash): New function.
  11340. * src/PieceStorage.h
  11341. (markAllPiecesDone): New function.
  11342. (checkIntegrity): New function.
  11343. * src/FileAllocator.h
  11344. (NullFileAllocationMonitor.h): New include.
  11345. (FileAllocator): Initialize fileAllocationMonitor with new
  11346. NullFileAllocationMonitor().
  11347. * src/MultiDiskAdaptor.h
  11348. (messageDigest.h): Remove include.
  11349. (ctx): Removed.
  11350. (hashUpdate): Added ctx.
  11351. (MultiDiskAdaptor): Removed ctx.
  11352. (sha1Sum): Renamed as messageDigest.
  11353. (messageDigest): New function.
  11354. * src/UrlRequestInfo.h
  11355. (HeadResult): New class.
  11356. (digestAlgo): New variable.
  11357. (chunkChecksumLength): New variable.
  11358. (chunkChecksums): New variable.
  11359. (getHeadResult): New function.
  11360. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11361. (setDigestAlgo): New function.
  11362. (setChunkChecksumLength): New function.
  11363. (setChunkChecksums): New function.
  11364. * src/DefaultPieceStorage.cc
  11365. (DiskAdaptorWriter.h): New include.
  11366. (ChunkChecksumValidator.h): New include.
  11367. (markAllPiecesDone): New function.
  11368. (checkIntegrity): New function.
  11369. * src/DefaultBtContext.h
  11370. (getPieceHashes): New function.
  11371. * src/TorrentRequestInfo.cc
  11372. (execute): Try to validate chunk checksum if file already exists and
  11373. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11374. * src/messageDigest.h
  11375. (~MessageDigestContext): Added digestFree().
  11376. * src/MetalinkRequestInfo.cc
  11377. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11378. * src/DiskAdaptor.h
  11379. (messageDigest.h): New include.
  11380. (sha1Sum): Renamed as messageDigest.
  11381. (messageDigest): New function.
  11382. * src/DownloadCommand.h
  11383. (PeerStat.h): New include.
  11384. (maxDownloadSpeedLimit): New variable.
  11385. (startupIdleTime): New variable.
  11386. (lowestDownloadSpeedLimit): New variable.
  11387. (peerStat): New variable.
  11388. (setMaxDownloadSpeedLimit): New function.
  11389. (setStartupIdleTime): New function.
  11390. (setLowestDownloadSPeedLimit): New function.
  11391. * src/BtContext.h
  11392. (getPieceHashes): New function.
  11393. * src/main.cc
  11394. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11395. option to true for testing purpose.
  11396. * src/BtPieceMessage.cc
  11397. (checkPieceHash): Use messageDigest
  11398. * src/DownloadEngine.cc
  11399. (SetDescriptor): Removed.
  11400. (AccumulateActiveCommand): Removed.
  11401. (waitData): Rewritten.
  11402. (updateFdSet): Rewritten.
  11403. * src/MultiDiskAdaptor.cc
  11404. (hashUpdate): Added ctx.
  11405. (sha1Sum): Renamed as messageDigest.
  11406. (messageDigest): New function.
  11407. * src/BitfieldMan.h
  11408. (isBitRangeSet): New function.
  11409. (unsetBitRange): New function.
  11410. * src/ByteArrayDiskWriter.h
  11411. (sha1Sum): Renamed as messageDigest.
  11412. (messageDigest): New function.
  11413. * src/ConsoleDownloadEngine.cc
  11414. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11415. * src/DiskWriter.h
  11416. (messageDigest.h): New include.
  11417. (sha1Sum): Renamed as messageDigest.
  11418. (messageDigest): New function.
  11419. * src/ChunkChecksumValidator.h: New class.
  11420. * src/DiskAdaptorWriter.h: New class.
  11421. * src/prefs.h
  11422. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11423. (PREF_CHECK_INTEGRITY): New definition.
  11424. * src/HttpResponseCommand.cc
  11425. (handleDefaultEncoding): Added method "HEAD" handling.
  11426. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11427. (handleOtherEncoding):
  11428. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11429. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11430. startupIdleTime, lowestDownloadSpeedLimit to command.
  11431. * src/SegmentMan.h
  11432. (getSegmentEntryByIndex): New function.
  11433. (getSegmentEntryByCuid): New function.
  11434. (getSegmentEntryIteratorByCuid): New function.
  11435. (diskWriter): DiskWriter -> DiskWriterHandle
  11436. (pieceHashes): New variable.
  11437. (chunkHashLength): New variable.
  11438. (digestAlgo): New variable.
  11439. (FindPeerStat): Removed.
  11440. (getPeerStat): Rewritten.
  11441. (markAllPiecesDone): New function.
  11442. (checkIntegrity): New function.
  11443. (tryChunkChecksumValidation): New function.
  11444. (isChunkChecksumValidationReady): New function.
  11445. * src/BitfieldMan.cc
  11446. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11447. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11448. blocks to 0.
  11449. (isBitRangeSet): New function.
  11450. (unsetBitRange): New function.
  11451. * src/FtpNegotiateCommand.cc
  11452. (executeInternal): Set maxDownloadSpeedLimit,
  11453. startupIdleTime, lowestDownloadSpeedLimit to command.
  11454. (recvSize): Added method "HEAD" handling.
  11455. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11456. * src/AbstractSingleDiskAdaptor.cc
  11457. (sha1Sum): Renamed as messageDigest.
  11458. (messageDigest): New function.
  11459. * src/AbstractSingleDiskAdaptor.h
  11460. (sha1Sum): Renamed as messageDigest.
  11461. (messageDigest): New function.
  11462. * src/Util.h
  11463. (indexRange): New function.
  11464. * src/MetalinkEntry.cc
  11465. (MetalinkEntry): Initialized chunkChecksum to 0.
  11466. * src/ShaVisitor.cc
  11467. (~ShaVisitor): Removed the call to ctx.digestFree().
  11468. * src/SegmentMan.cc
  11469. (ChunkChecksumValidator.h): New include.
  11470. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11471. to DIGEST_ALGO_SHA1.
  11472. (~SegmentMan): Removed diskWriter.
  11473. (FindSegmentEntryByIndex): Removed.
  11474. (FindSegmentEntryByCuid): Removed.
  11475. (checkoutSegment): Rewritten.
  11476. (findSlowerSegmentEntry): Rewritten.
  11477. (getSegment): Rewritten.
  11478. (updateSegment): Rewritten.
  11479. (completeSegment): Rewritten.
  11480. (markAllPiecesDone): New function.
  11481. (checkIntegrity): New function.
  11482. (isChunkChecksumValidationReady): New function.
  11483. (tryChunkChecksumValidation): New function.
  11484. * src/Xml2MetalinkProcessor.cc
  11485. (getEntry): Get size and set it to entry.
  11486. Get chunk checksum and set it to entry.
  11487. (getPieceHash): New function.
  11488. * src/Util.cc
  11489. (sha1Sum): Removed ctx.digestFree()
  11490. (fileChecksum): Removed ctx.digestFree()
  11491. (indexRange): New function.
  11492. * src/Request.cc
  11493. (METHOD_GET): New variable.
  11494. (METHOD_HEAD): New variable.
  11495. (Request): Added method.
  11496. * src/UrlRequestInfo.cc
  11497. (FatalException.h): New include.
  11498. (message.h): New include.
  11499. (operator<<): Added operator<< for class HeadResult.
  11500. (getHeadResult): New function.
  11501. (execute): Get filename and size in separate download engine.
  11502. * src/ChunkChecksumValidator.cc: New class.
  11503. * src/DownloadCommand.cc:
  11504. (DownloadCommand): Added peerStat.
  11505. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11506. the value from Option.
  11507. The buffer size is now 16KB.
  11508. Use peerStat member instead of getting it from SegmentMan.
  11509. Use startupIdleTime member instead of gettingit from Option.
  11510. Added chunk checksum validation.
  11511. * src/AbstractDiskWriter.cc
  11512. (AbstractDiskWriter): Removed ctx.
  11513. (~AbstractDiskWriter): Removed ctx.digestFree()
  11514. (writeDataInternal): Returns the return value of write.
  11515. (readDataInternal): Returns the return value of read.
  11516. (sha1Sum): Renamed as messageDigest
  11517. (messageDigest): New function.
  11518. * src/AbstractDiwkWriter.h
  11519. (messageDigest.h): Removed include.
  11520. (ctx): Removed.
  11521. (sha1Sum): Renamed as messageDigest
  11522. (messageDigest): New function.
  11523. * src/DefaultPieceStorage.h
  11524. (markAllPiecesDone): New function.
  11525. (checkIntegrity): New function.
  11526. * src/NullFileAllocationMonitor.h: New class.
  11527. * src/MetalinkChunkChecksum.h: New class.
  11528. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11529. To decrease CPU usage in bittorrent download, calculation results in
  11530. BitfieldMan were cached and realtime fetching PeerObject was removed
  11531. with WeakHandle introduced. Option values are set to the objects
  11532. by setter before download begins.
  11533. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11534. * src/DefaultBtRequestFactory.h
  11535. (dispatcher): BtMessageDispatcherHandle ->
  11536. BtMessageDispatcherWeakHandle.
  11537. (messageFactory): New variable.
  11538. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11539. BtMessageDispatcherWeakHandle.
  11540. (setBtMessageFactory): New function.
  11541. * src/DefaultBtMessageDispatcher.cc:
  11542. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11543. from Option.
  11544. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11545. feating the value from Option.
  11546. Use messageFactory member.
  11547. * src/PeerInteractionCommand.cc
  11548. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11549. Add reverse dependencies to factory object.
  11550. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11551. dispatcher.
  11552. Set messageFactory to receiver.
  11553. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11554. btInteractive.
  11555. Set receiver to peerObject.
  11556. Set maxDownloadSpeedLimit to this.
  11557. (executeInternal): Use maxDownloadSpeedLimit member.
  11558. * src/BtChokeMessage.cc
  11559. (doReceivedAction): Use dispatcher, requestFactory member.
  11560. (onSendComplete): Use dispatcher member.
  11561. * src/PeerInteractionCommand.h
  11562. (maxDownloadSpeedLimit): New variable.
  11563. * src/DefaultBtMessageReceiver.h
  11564. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11565. (dispatcher):
  11566. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11567. (messageFactory): New variable.
  11568. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11569. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11570. (setDispatcher):
  11571. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11572. (setBtMessageFactory): New function.
  11573. * src/DefaultBtInteractive.cc
  11574. (initiateHandshake): Use messageFactory member.
  11575. (addBitfieldMessageToQueue): Use messageFactory member.
  11576. (addAllowedFastMessageToQueue): Use messageFactory member.
  11577. (decideChoking): Use messageFactory member.
  11578. (checkHave): Use messageFactory member.
  11579. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11580. (receiveMessages): Use maxDownloadSpeedLimit member.
  11581. (decideInterest): Use messageFactory member.
  11582. * src/BtRequestMessage.cc
  11583. (doReceivedAction): Use messageFactory, dispatcher member.
  11584. (onQueued): Use dispatcher member.
  11585. * src/BtPieceMessage.cc
  11586. (doReceivedAction): Use dispatcher member.
  11587. (send): Use peerConnection member.
  11588. (onWrongPiece): Use requestFactory member.
  11589. (handleChokingEvent): Use messageFactory, dispatcher member.
  11590. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11591. * src/BtMessageDispatcher.h
  11592. (BtMessageDispatcherWeakHandle): New type definition.
  11593. * src/SimpleBtMessage.cc
  11594. (send): Use peerConnection member.
  11595. * src/BtRejectMessage.cc
  11596. (doReceivedAction): Use dispatcher member.
  11597. * src/DefaultBtMessageDispatcher.h
  11598. (Option.h): Removed include.
  11599. (messageFactory): New variable.
  11600. (option): Removed.
  11601. (maxUploadSpeedLimit): New variable.
  11602. (requestTimeout): New variable.
  11603. (DefaultBtMessageDispatcher): Removed option.
  11604. Added maxUploadSpeedLimit, requestTimeout.
  11605. (setOption): Removed.
  11606. (getOption): Removed.
  11607. (setMaxUploadSpeedLimit): New function.
  11608. (setRequestTimeout): New function.
  11609. (setBtMessageFactory): New function.
  11610. * src/DefaultBtInteractive.h
  11611. (btMessageReceiver):
  11612. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11613. (dispatcher):
  11614. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11615. (btRequestFactory):
  11616. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11617. (peerConnection):
  11618. PeerConnectionHandle -> PeerConnectionWeakHandle
  11619. (messageFactory): New variable.
  11620. (option): Removed.
  11621. (keepAliveInterval): New variable.
  11622. (maxDownloadSpeedLimit): New variable.
  11623. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11624. (setBtMessageReceiver):
  11625. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11626. (setDispatcher):
  11627. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11628. (setBtRequestFactory):
  11629. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11630. (setPeerConnection):
  11631. PeerConnectionHandle -> PeerConnectionWeakHandle
  11632. (setOption): Removed.
  11633. (setKeepAliveInterval): New function.
  11634. (setMaxDownloadSpeedLimit): New function.
  11635. (setBtMessageFactory): New function.
  11636. * src/BitfieldMan.h
  11637. (cachedNumMissingBlock): New variable.
  11638. (cachedNumFilteredBlock): New variable.
  11639. (cachedCompletedLength): New variable.
  11640. (cachedFilteredComletedLength): New variable.
  11641. (cachedFilteredTotalLength): New variable.
  11642. (countMissingBlockNow): New function.
  11643. (countFilteredBlockNow): New function.
  11644. (getFilteredTotalLengthNow): New function.
  11645. (getCompletedLengthNow): New function.
  11646. (getFilteredCompletedLengthNow): New function.
  11647. (updateCache): New function.
  11648. * src/AbstractBtMessage.h
  11649. (BtMessageDispatcher.h): New include.
  11650. (PeerConnection.h): New include.
  11651. (BtRequestFactory.h): New include
  11652. (BtMessageFactory.h): New include.
  11653. (dispatcher): New variable.
  11654. (messageFactory): New variable.
  11655. (peerConnection: New variable.
  11656. (setBtMessageDispatcher): New function.
  11657. (setPeerConnection): New function.
  11658. (setBtMessageFactory): New function.
  11659. (setBtRequestFactory): New function.
  11660. * src/DefaultBtMessageFactory.cc
  11661. (setCommonProperty): Set dispatcher, requestFactory, this,
  11662. peerConnection to msg.
  11663. * src/BtRegistry.h
  11664. (BT_MESSAGE_RECEIVER): New macro.
  11665. * src/PeerConnection.h
  11666. (PeerConnectionWeakHandle): New type definition.
  11667. * src/BtMessageFactory.h
  11668. (BtMessageFactoryWeakHandle): New type definition.
  11669. * src/BitfieldMan.cc
  11670. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11671. cachedCompletedLength, cachedFilteredComletedLength,
  11672. cachedFilteredTotalLength.
  11673. Call updateCache().
  11674. (countMissingBlock): Return cachedNumMissingBlock.
  11675. (countMissingBlockNow): New function.
  11676. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11677. (countFilteredBlockNow): New function.
  11678. (setBit): Call updateCache().
  11679. (unsetBit): Call updateCache().
  11680. (setBitfield): Call updateCache().
  11681. (clearAllBit): Call updateCache().
  11682. (setAllBit): Use setBitInternal instead of setBit.
  11683. Call updateCache().
  11684. (addFilter): Call updateCache().
  11685. (enableFilter): Call updateCache().
  11686. (disableFilter): Call updateCache().
  11687. (clearFilter): Call updateCache().
  11688. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11689. (getFilteredTotalLengthNow): New function.
  11690. (getCompletedLength): Return cachedCompletedLength.
  11691. (getCompletedLengthNow): New function.
  11692. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11693. (getFilteredCompletedLengthNow): New function.
  11694. (updateCache): New function.
  11695. * src/BtMessageReceiver.h
  11696. (BtMessageReceiverWeakHandle): New type definition.
  11697. * src/DefaultBtMessageReceiver.cc
  11698. (receiveHandshake): Use messageFactory member.
  11699. (sendHandshake): Use messageFactory member.
  11700. (receiveMessage): Use messageFactory member.
  11701. * src/DefaultBtMessageFactory.h
  11702. (dispatcher): New variable.
  11703. (requestFactory): New variable.
  11704. (peerConnection): New variablle.
  11705. (setBtMessageDispatcher): New function.
  11706. (setBtRequestFactory): New function.
  11707. (setPeerConnection): New function.
  11708. * src/SharedHandle.h
  11709. (RefCount): New class.
  11710. (WeakHandle): New class.
  11711. * src/PeerObject.h
  11712. (BtMessageReceiver.h): New include.
  11713. (PeerObject): Added btMessageReceiver.
  11714. (btMessageReceiver): New variable.
  11715. * src/Util.cc
  11716. (countBit): Simplified.
  11717. * src/BtCancelMessage.cc
  11718. (doReceivedAction): Use dispatcher member.
  11719. * src/BtRequestFactory.h
  11720. (BtRequestFactoryWeakHandle): New type definition.
  11721. * src/PeerStorage.h
  11722. (downloadSpeed): int -> uint32_t
  11723. (uploadSpeed): int -> uint32_t
  11724. (sessionDownloadLength): long long int -> uint64_t
  11725. (sessionUploadLength): long long int -> uint64_t
  11726. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11727. To add RecoverableException, FatalException:
  11728. * src/AbstractCommand.cc
  11729. (onAbort): Exception -> RecoverableException
  11730. * src/PeerAbstractCommand.h
  11731. (RecoverableException.h): New include.
  11732. (onAbort): Exception -> RecoverableException.
  11733. * src/PeerInteractionCommand.cc
  11734. (onAbort): Exception -> RecoverableException.
  11735. * src/PeerAbstractCommand.cc
  11736. (execute): Exception -> RecoverableException.
  11737. (onAbort): Exception -> RecoverableException.
  11738. * src/TorrentRequestInfo.cc
  11739. (execute): Exception -> RecoverableException.
  11740. * src/MetalinkRequestInfo.cc
  11741. (execute): Exception -> RecoverableException.
  11742. * src/MetaFileUtil.cc: RecoverableException.
  11743. * src/AbstractCommand.h
  11744. (onAbort): Exception -> RecoverableException.
  11745. * src/DlRetryEx.h: Exception -> RecoverableException.
  11746. * src/DlAbortEx.h: Exception -> RecoverableException.
  11747. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11748. * src/Util.cc: Exception -> RecoverableException.
  11749. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11750. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11751. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11752. To make ID static const int
  11753. * src/BtInterestedMessage.h
  11754. (ID_t): Removed.
  11755. (ID): New variable.
  11756. (getId): Made non-const.
  11757. * src/BtPieceMessage.h
  11758. (ID_t): Removed.
  11759. (ID): New variable.
  11760. (getId): Made non-const.
  11761. * src/BtChokeMessage.h
  11762. (ID_t): Removed.
  11763. (ID): New variable.
  11764. (getId): Made non-const.
  11765. * src/BtHaveAllMessage.h
  11766. (ID_t): Removed.
  11767. (ID): New variable.
  11768. (getId): Made non-const.
  11769. * src/BtKeepAliveMessage.h
  11770. (ID_t): Removed.
  11771. (ID): New variable.
  11772. (getId): Made non-const.
  11773. * src/BtHandshakeMessage.h
  11774. (ID): New variable.
  11775. (getId): Made non-const.
  11776. * src/BtSuggestPieceMessage.h
  11777. (ID_t): Removed.
  11778. (ID): New variable.
  11779. (getId): Made non-const.
  11780. * src/BtPortMessage.h
  11781. (ID_t): Removed.
  11782. (ID): New variable.
  11783. (getId): Made non-const.
  11784. * src/AbstractBtMessage.h
  11785. (id): Removed.
  11786. (AbstractBtMessage): Removed id.
  11787. (getId): Removed.
  11788. * src/BtHaveMessage.h
  11789. (ID_t): Removed.
  11790. (ID): New variable.
  11791. (getId): Made non-const.
  11792. * src/BtAllowedFastMessage.h
  11793. (ID_t): Removed.
  11794. (ID): New variable.
  11795. (getId): Made non-const.
  11796. * src/BtCancelMessage.h
  11797. (ID_t): Removed.
  11798. (ID): New variable.
  11799. (getId): Made non-const.
  11800. * src/BtNotInterestedMessage.h
  11801. (ID_t): Removed.
  11802. (ID): New variable.
  11803. (getId): Made non-const.
  11804. * src/BtChokeMessage.h
  11805. (ID_t): Removed.
  11806. (ID): New variable.
  11807. (getId): Made non-const.
  11808. * src/BtRejectMessage.h
  11809. (ID_t): Removed.
  11810. (ID): New variable.
  11811. (getId): Made non-const.
  11812. * src/BtBitfieldMessage.h
  11813. (ID_t): Removed.
  11814. (ID): New variable.
  11815. (getId): Made non-const.
  11816. * src/BtUnchokeMessage.h
  11817. (ID_t): Removed.
  11818. (ID): New variable.
  11819. (getId): Made non-const.
  11820. * src/BtRequestMessage.h
  11821. (ID_t): Removed.
  11822. (ID): New variable.
  11823. (getId): Made non-const.
  11824. * src/BtHaveMessage.h
  11825. (ID_t): Removed.
  11826. (ID): New variable.
  11827. (getId): Made non-const.
  11828. To add --force-truncate command-line option and a check whether
  11829. the file already exists:
  11830. * src/DirectDiskAdaptor.h
  11831. (getFilePath): Made virtual public.
  11832. * src/MultiDiskAdaptor.h
  11833. (File.h): New include.
  11834. (DiskWriterEntry::fileEntry): Made private.
  11835. (DiskWriterEntry::fileExists): New function.
  11836. (DiskWriterEntry::getFileEntry): New function.
  11837. (fileExists): New function.
  11838. (getFilePath): New function.
  11839. * src/TorrentRequestInfo.cc
  11840. (FatalException.h): New include.
  11841. (message.h): New include.
  11842. (RecoverableException.h): New include.
  11843. (execute): Added a check whether file is already exists or not.
  11844. * src/DiskAdaptor.h
  11845. (fileExists): New function.
  11846. (getFilePath): New function.
  11847. * src/main.cc
  11848. (showUsage): Added an explanation of --force-truncate command-line
  11849. option.
  11850. (main): Added --force-truncate command-line option.
  11851. * src/Exception.h
  11852. (setMsg): buf[256] -> buf[1024]
  11853. * src/CopyDiskWriter.h
  11854. (getFilePath): Made public virtual.
  11855. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11856. (fileExists): New function.
  11857. * src/DownloadEngineFactory.cc
  11858. (newTorrentConsoleEngine): Don't open file here.
  11859. * src/message.h
  11860. (EX_FILE_ALREADY_EXISTS): New definition.
  11861. * src/prefs.h
  11862. (PREF_FOECE_TRUNCATE): New definition.
  11863. * src/HttpResponseCommand.cc
  11864. (handleDefaultEncoding): Added a check whether the file already exists.
  11865. * src/SegmentMan.h
  11866. (fileExists): New function.
  11867. (shouldCancelDownloadForSafety): New function.
  11868. * src/FtpNegotiateCommand.cc
  11869. (recvSize): Added a check whether the file already exists.
  11870. * src/AbstractSingleDiskAdaptor.cc
  11871. (File.h): New include.
  11872. (fileExists): New function.
  11873. * src/AbstractSingleDiskAdaptor.h
  11874. (getFilePath): Removed.
  11875. (fileExists): New function.
  11876. * src/SegmentMan.cc
  11877. (fileExists): New function.
  11878. (shouldCancelDownloadForSafety): New function.
  11879. To fix regression bug in torrent downloading:
  11880. * src/DefaultBtRequestFactory.cc
  11881. (doChokedAction): New function.
  11882. * src/DefaultBtRequestFactory.h
  11883. (doChokedAction): New function.
  11884. * src/DefaultBtMessageDispatcher.cc
  11885. (doChokedAction): Do not delete request if its target is in allowed
  11886. fast set.
  11887. * src/DefaultBtInteractive.cc
  11888. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11889. (sendKeepAlive): Send keep alive message even if the outgoing message
  11890. queue is not empty.
  11891. (decideInterest): Simplified the code.
  11892. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11893. it is already called when BtChokeMessage is received from a peer.
  11894. * src/BtRequestFactory.h
  11895. (doChokedAction): New function.
  11896. To clean up code:
  11897. * src/PeerInteractionCommand.h
  11898. (executeInternal): Added virtual keyword explicitly.
  11899. (prepareForRetry): Added virtual keyword explicitly.
  11900. (prepareForNextPeer): Added virtual keyword explicitly.
  11901. (onAbort): Added virtual keyword explicitly.
  11902. * src/RequestSlot.cc
  11903. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11904. * src/BtPieceMessage.cc
  11905. (doReceivedAction): Added a debug log of piece's bitfield.
  11906. * src/Piece.h
  11907. (getBitfieldLength): New function.
  11908. * src/ByteArrayDiskWriter.cc
  11909. (clear): Added buf = 0 to avoid double free corruption.
  11910. * src/FileAllocator.cc
  11911. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11912. Added cp.reset().
  11913. * src/BitfieldMan.h
  11914. (operator=): Rewritten.
  11915. * src/BitfieldMan.cc
  11916. (BitfieldMan): Initialized bitfield, useBitfield.
  11917. * src/PeerConnection.cc
  11918. (receiveMessage): Added a call to socket->readable() after getting
  11919. message length to avoid possible EOF.
  11920. * src/Util.cc
  11921. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11922. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11923. To add an ability to pre-allocate file space:
  11924. * src/DirectDiskAdaptor.h: Rewritten.
  11925. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11926. * src/MultiDiskAdaptor.h: Rewritten.
  11927. * src/DefaultPieceStorage.cc
  11928. (MultiDiskWriter.h): Removed include.
  11929. (PreAllocationDiskWriter.h): Removed include.
  11930. (FileAllocationMonitor.h): New include.
  11931. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11932. (initStorage): Rewritten.
  11933. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11934. * src/FileAllocator.h: New class.
  11935. * src/FileAllocator.cc: New class.
  11936. * src/FileAllocationMonitor.h: New class.
  11937. * src/FileAllocationMonitor.cc: New class.
  11938. * src/ConsoleFileAllocationMonitor.h: New class.
  11939. * src/ConsoleFileAllocationMonitor.cc: New class.
  11940. * src/AbstractSingleDiskAdaptor.h: New class.
  11941. * src/AbstractSingleDiskAdaptor.cc: New class.
  11942. * src/DiskAdaptor.h
  11943. (Directory.h): Removed include.
  11944. (DiskWriter.h): Removed include.
  11945. (FileEntry.h): Removed include.
  11946. (diskWriter): Removed.
  11947. (DiskAdaptor): Removed diskWriter.
  11948. (openFile): Made pure virtual.
  11949. (closeFile): Made pure virtual.
  11950. (openExistingFile): Made pure virtual.
  11951. (initAndOpenFile): Made pure virtual.
  11952. (writeData): Made pure virtual.
  11953. (readData): Made pure virtual.
  11954. (sha1Sum): Made pure virtual.
  11955. (getStoreDir): Returns const reference of storeDir.
  11956. (DiskAdaptorHandle): New type definition.
  11957. * src/main.cc
  11958. (ConsoleFileAllocationMonitor.h): New include.
  11959. (showUsage): Added default value description of -s option.
  11960. Added the description of --file-allocation option.
  11961. (main): Set default value of --file-allocation option to 'none'.
  11962. Added --file-allocation command-line option.
  11963. Setup FileAllocationMonitorFactory.
  11964. * src/FtpInitiateConnectionCommand.cc
  11965. (executeInternal): Removed diskWriter related processing, which was
  11966. moved to FtpNegotiationCommand.cc.
  11967. * src/DirectDiskAdaptor.cc
  11968. (getFilePath): Made non-const.
  11969. * src/CopyDiskAdaptor.h
  11970. (DiskAdaptor.h): Removed include.
  11971. (DiskWriter.h): Removed include.
  11972. (AbstractSingleDiskAdaptor.h): New include.
  11973. (getFilePath): Made non-const. Added virtual keyword.
  11974. (CopyDiskAdaptor): Removed diskWriter.
  11975. (getTempFile): Returns const reference.
  11976. (CopyDiskAdaptorHandle): New type definition.
  11977. * src/ByteArrayDiskWriter.cc
  11978. (clear): Simplified.
  11979. (initAndOpenFile): Rewritten.
  11980. (openFile): Call initAndOpenFile()
  11981. * src/MultiDiskAdaptor.cc: Rewritten.
  11982. * src/DownloadEngineFactory.cc
  11983. (FileAllocator.h): New include.
  11984. (FileAllocationMonitor.h): New include.
  11985. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11986. create DefaultDiskWriter with file allocator.
  11987. * src/DiskWriter.h
  11988. (initAndOpenFile): Added totalLength argument.
  11989. (openFile): Added totalLength argument.
  11990. * src/prefs.h
  11991. (PREF_FILE_ALLOCATION): New definition.
  11992. (V_PREALLOC): New definition.
  11993. (V_NONE): New definition.
  11994. * src/HttpResponseCommand.cc
  11995. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11996. size.
  11997. * src/FtpNegotiateCommand.cc
  11998. (Util.h): New include.
  11999. (recvSize): Open file here.
  12000. * src/Util.h
  12001. (ullitos): New function.
  12002. * src/CopyDiskWriter.h
  12003. (getFilePath): Made non-const.
  12004. * src/DefaultDiskWriter.h
  12005. (Option.h): New include.
  12006. (totalLength): Removed.
  12007. (DefaultDiskWriter): Removed totalLength.
  12008. (initAndOpenFile): Added totalLength argument.
  12009. (DefaultDiskWriterHandle): New type definition.
  12010. (createNewDiskWriter): New function.
  12011. * src/Util.cc
  12012. (ullitos): New function.
  12013. * src/DefaultDiskWriter.cc
  12014. (message.h): New include.
  12015. (FileAllocator.h): New include.
  12016. (prefs.h): New include.
  12017. (Util.h): New include.
  12018. (DefaultDiskWriter): Removed totalLength.
  12019. (initAndOpenFile): Added file allocation.
  12020. (createNewDiskWriter): New function. Just for temporary solution.
  12021. It will be rewritten later.
  12022. * src/DiskAdaptor.cc
  12023. (DiskAdaptor): Removed diskWriter.
  12024. * src/AbstractDiskWriter.cc
  12025. (LogFactory.h): New include.
  12026. (AbstractDiskWriter): Added fileAllocator, logger.
  12027. (openFile): Added totalLength argument.
  12028. * src/AbstractDiskWriter.h
  12029. (FileAllocator.h): New include.
  12030. (Logger.h): New include.
  12031. (fileAllocator): New variable.
  12032. (logger): New variable.
  12033. (openFile): Added totalLength argument. Added virtual keyword
  12034. explicitly.
  12035. (openExistingFile): Added totalLength argument. Added virtual keyword
  12036. explicitly.
  12037. (closeFile): Added virtual keyword explicitly.
  12038. (sha1Sum): Added virtual keyword explicitly.
  12039. (writeData): Added virtual keyword explicitly.
  12040. (readData): Added virtual keyword explicitly.
  12041. (setFileAllocator): New function.
  12042. * src/DefaultPieceStorage.h
  12043. (FileAllocator.h): New include.
  12044. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12045. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12046. * src/FileProgressMonitor.h: New class.
  12047. To compile aria2 on PC-BSD:
  12048. * src/DefaultBtContext.cc
  12049. (libgen.h): New include.
  12050. To fix memory leak:
  12051. * src/Exception.h
  12052. (~Exception): Delete cause. Fixed memory leak.
  12053. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12054. Rewritten a portion of bittorrent implementation:
  12055. * src/BtMessageValidator.h: New class.
  12056. * src/BtBitfieldMessageValidator.h: New class.
  12057. * src/BtHandshakeMessageValidator.h: New class.
  12058. * src/BtRequestMessageValidator.h: New class.
  12059. * src/BtSuggestPieceMessageValidator.h: New class.
  12060. * src/BtAllowedFastMessageValidator.h: New class.
  12061. * src/BtRejectMessageValidator.h: New class.
  12062. * src/BtCancelMessageValidator.h: New class.
  12063. * src/BtPieceMessageValidator.h: New class.
  12064. * src/BtHaveMessageValidator.h: New class.
  12065. * src/BtEventListener.h: New class.
  12066. * src/AbstractBtEventListener.h: New class.
  12067. * src/BtEvent.h: New class.
  12068. * src/BtChokingEvent.h: New class.
  12069. * src/BtChokedEvent.h: New class.
  12070. * src/BtCancelSendingPieceEvent.h: New class.
  12071. * src/BtAbortOutstandingRequestEvent.h: New class.
  12072. * src/Randomizer.h: New class.
  12073. * src/SimpleRandomizer.h: New class.
  12074. * src/BtMessage.h: New class.
  12075. * src/AbstractBtMessage.h: New class.
  12076. * src/SimpleBtMessage.h: New class.
  12077. * src/BtHaveMessage.h: New class.
  12078. * src/BtInterestedMessage.h: New class.
  12079. * src/BtAllowedFastMessage.h: New class.
  12080. * src/BtUnchokeMessage.h: New class.
  12081. * src/BtCancelMessage.h: New class.
  12082. * src/BtNotInterestedMessage.h: New class.
  12083. * src/BtChokeMessage.h: New class.
  12084. * src/BtHaveNoneMessage.h: New class.
  12085. * src/BtHandshakeMessage.h: New class.
  12086. * src/BtSuggestPieceMessage.h: New class.
  12087. * src/BtHaveMessage.h: New class.
  12088. * src/BtPieceMessage.h: New class.
  12089. * src/BtHaveAllMessage.h: New class.
  12090. * src/BtKeepAliveMessage.h: New class.
  12091. * src/BtPortMessage.h: New class.
  12092. * src/BtRejectMessage.h: New class.
  12093. * src/BtBitfieldMessage.h: New class.
  12094. * src/BtRequestMessage.h: New class.
  12095. * src/DefaultBtRequestFactory.h: New class.
  12096. * src/DefaultBtMessageReceiver.h: New class.
  12097. * src/BtInteractive.h: New class.
  12098. * src/BtMessageDispatcher.h: New class.
  12099. * src/DefaultBtMessageDispatcher.h: New class.
  12100. * src/DefaultBtInteractive.h: New class.
  12101. * src/BitfieldManFactory.h: New class.
  12102. * src/HandleRegistry.h: New class.
  12103. * src/BtMessageFactory.h: New class.
  12104. * src/BtMessageReceiver.h: New class.
  12105. * src/DefaultBtMessageFactory.h: New class.
  12106. * src/PeerObject.h: New class.
  12107. * src/BtRequestFactory.h: New class.
  12108. * src/SuggestPieceMessage.h: Removed.
  12109. * src/PortMessage.h: Removed.
  12110. * src/SuggestPieceMessage.h: Removed.
  12111. * src/KeepAliveMessage.h: Removed.
  12112. * src/HandshakeMessage.h: Removed.
  12113. * src/PeerInteraction.h: Removed.
  12114. * src/UnchokeMessage.h: Removed.
  12115. * src/PieceMessage.h: Removed.
  12116. * src/RequestMessage.h: Removed.
  12117. * src/InterestedMessage.h: Removed.
  12118. * src/HaveMessage.h: Removed.
  12119. * src/CancelMessage.h: Removed.
  12120. * src/RejectMessage.h: Removed.
  12121. * src/AllowedFastMessage.h: Removed.
  12122. * src/HaveNoneMessage.h: Removed.
  12123. * src/SimplePeerMessage.h: Removed.
  12124. * src/HaveAllMessage.h: Removed.
  12125. * src/BitfieldMessage.h: Removed.
  12126. * src/PeerMessageFactory.h: Removed.
  12127. * src/NotInterestedMessage.h: Removed.
  12128. * src/ChokeMessage.h: Removed.
  12129. * src/PeerMessage.h: Removed.
  12130. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12131. To know root cause of exception:
  12132. * src/Exception.h
  12133. (cause): New variable.
  12134. (Exception): Added a parameter.
  12135. (getMsg): Return const reference to msg.
  12136. (getCause): New function.
  12137. * src/DlRetryEx.h
  12138. (DlRetryEx): Added a parameter 'cause'.
  12139. Added an overloaded constructor.
  12140. (DlAbortEx): Added a parameter 'cause'.
  12141. Added an overloaded constructor.
  12142. * src/SimpleLogger.cc
  12143. (writeLog): Log nested exception messages recursively.
  12144. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12145. * src/DefaultBtProgressInfoFile.cc
  12146. (load): Fixed memory leak when the infohash doesn't match.
  12147. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12148. * src/DefaultPeerStorage.cc
  12149. (calculateStat): Simplified the code by combining 2 loops into 1.
  12150. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12151. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12152. for BitTorrent download:
  12153. * src/PeerAbstractCommand.cc
  12154. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12155. * src/main.cc:
  12156. (timeoutSpecified): Removed.
  12157. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12158. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12159. * src/TorrentRequestInfo.cc
  12160. (timeoutSpecified): Removed.
  12161. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12162. timeout value.
  12163. * src/prefs.h
  12164. (PREF_BT_TIMEOUT): New definition.
  12165. Delete unused variables:
  12166. * src/TorrentRequestInfo.cc
  12167. (requestInfo): Removed.
  12168. Move setSignalHander to Util::setGlobalSignalHandler:
  12169. * src/TorrentRequestInfo.cc:
  12170. setSignalHander -> Util::setGlobalSignalHandler
  12171. * src/main.cc
  12172. (setSignalHander): Removed.
  12173. (main): setSignalHander -> Util::setGlobalSignalHandler
  12174. * src/Util.h
  12175. (setGlobalSignalHandler): New function.
  12176. * src/Util.cc
  12177. (setGlobalSignalHandler): New function.
  12178. * src/UrlRequestInfo.cc:
  12179. setSignalHander -> Util::setGlobalSignalHandler
  12180. Reset peer status in order to exit gracefully:
  12181. * src/PeerAbstractCommand.cc
  12182. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12183. To fix the bug that causes the number of bytes uploaded is not saved
  12184. to .aria2 file:
  12185. * src/DefaultPeerStorage.h
  12186. (removedPeerSessionDownloadLength): New variable.
  12187. (removedPeerSessionUploadLength): New variable.
  12188. * src/DefaultPeerStorage.cc
  12189. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12190. removedPeerSessionUploadLength(0).
  12191. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12192. through all peers, and then add removedPeerSessionDownloadLength(
  12193. removedPeerSessionUploadLength) to it.
  12194. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12195. (to) the peer to removedPeerSessionDownloadLength
  12196. (removedPeerSessionUploadLength).
  12197. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12198. To add Metalink location option:
  12199. * src/MetalinkRequestInfo.cc
  12200. (execute): Call MetalinkEntry::setLocationPreference()
  12201. * src/main.cc
  12202. (showUsage): Added the help message for --metalink-location option.
  12203. (main): Added --metalink-location option.
  12204. * src/prefs.h
  12205. (PREF_METALINK_LOCATION): New definition.
  12206. * src/MetalinkEntry.cc
  12207. (AddLocationPreference): New function object.
  12208. (setLocationPreference): New function.
  12209. * src/Xml2MetalinkProcessor.cc
  12210. (getResource): Set location attribute to MetalinkResource
  12211. To show URLs to download
  12212. * src/UrlRequestInfo.h
  12213. (printUrls): New function.
  12214. To add multiple <file> Metalink support:
  12215. * src/MetalinkEntry.h
  12216. (MetalinkResources): Removed.
  12217. (setLocationPreference): New function.
  12218. (MetalinkEntryHandle): New type definition.
  12219. (MetalinkEntries): New type definition.
  12220. * src/Xml2MetalinkProcessor.h
  12221. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12222. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12223. (parseFile): Metalinker* -> MetalinkerHandle
  12224. * src/UrlRequestInfo.h
  12225. (execute): RequestInfo* -> RequestInfos
  12226. * src/MetalinkRequestInfo.cc
  12227. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12228. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12229. (execute): RequestInfo* -> RequestInfos
  12230. Added multiple <file> support. Print filename when it is queued.
  12231. * src/MetalinkRequestInfo.h
  12232. (execute): RequestInfo* -> RequestInfos
  12233. (getDownloadEngine): Removed.
  12234. * src/RequestInfo.h
  12235. (RequestInfoHandle): New type definition.
  12236. (RequestInfos): New type definition.
  12237. (execute): RequestInfo* -> RequestInfos
  12238. (getDownloadEngine): Removed.
  12239. * src/MetalinkResource.h
  12240. (MetalinkResourceHandle): New type definition.
  12241. (MetalinkResources): New type definition.
  12242. * src/MetalinkEntry.cc
  12243. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12244. because the element is now of type MetalinkResourceHandle.
  12245. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12246. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12247. (dropUnsupportedResource): Removed the deletion of the elements of
  12248. resources because the element is now of type MetalinkResourceHandle.
  12249. * src/Xml2MetalinkProcessor.cc
  12250. (parseFile): Metalinker* -> MetalinkerHandle
  12251. MetalinkEntry* -> MetalinkEntryHandle
  12252. Removed try-catch block.
  12253. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12254. MetalinkResource* -> MetalinkResourceHandle
  12255. Removed try-catch block.
  12256. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12257. Free result by using xmlXPathFreeObject()
  12258. * src/Metalinker.cc
  12259. (~Metalinker): Removed the deletion of entries.
  12260. MetalinkEntry* -> MetalinkEntryHandle
  12261. (queryEntry): Add multiple <file> Metalink support.
  12262. * src/Metalinker.h
  12263. (MetalinkEntries): Removed.
  12264. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12265. * src/MetalinkProcessor.h
  12266. (parseFile): Metalinker* -> MetalinkerHandle
  12267. Bug fixes:
  12268. * src/PeerChokeCommand.cc
  12269. (execute): cat01->cat02
  12270. * src/DefaultPieceStorage.cc
  12271. (DefaultPieceStorage): Added diskAdaptor(0)
  12272. * src/TrackerWatcherComand.cc:
  12273. (execute): Use btAnnounce->noMoreAnnounce()
  12274. to determin whether the function returns true or not.
  12275. * src/TrackerUpdateCommand.cc:
  12276. (execute): Use btAnnounce->noMoreAnnounce()
  12277. to determin whether the function returns true or not.
  12278. * src/FtpConnection.cc
  12279. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12280. This is the fix of the busy loop bug.
  12281. * src/DownloadCommand.cc
  12282. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12283. cached PeerStat.
  12284. The value of "name" entry in torrent file is now set by
  12285. *DiskAdaptor::setTopDir(...) methods.
  12286. * src/MultiDiskAdaptor.h
  12287. (topDir): New variable.
  12288. (setTopDir): New function.
  12289. (getTopDir): New function.
  12290. * src/MultiDiskAdaptor.cc
  12291. (getFilePath): Concat storDir, "/" and topDir.
  12292. (mkdir): Use getFilePath() to get the directory path for output.
  12293. * src/DefaultPieceStorage.cc
  12294. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12295. CopyDiskAdaptor.
  12296. * src/CopyDiskAdaptor.h
  12297. (topDir): New variable.
  12298. (setTopDir): New function.
  12299. (getTopDir): New function.
  12300. * src/CopyDiskAdaptor.cc
  12301. (fixFilename): Updated.
  12302. Misc
  12303. * src/UrlRequestInfo.h
  12304. (e): Removed.
  12305. (UrlRequestInfo): Removed e.
  12306. (getDownloadEngine): Removed.
  12307. * src/UrlRequestInfo.cc
  12308. (handler): Rewritten.
  12309. (printUrls): New function.
  12310. (execute): Call printUrls().
  12311. * src/HandshakeMessage.cc
  12312. (check): peerinteraction->getBtContext() -> btContext
  12313. * src/PeerInteraction.h
  12314. (getBtContext): Removed.
  12315. * src/TorrentRequestInfo.h
  12316. (execute): RequestInfo* -> RequestInfos
  12317. (getDownloadEngine): Removed.
  12318. * src/TorrentRequestInfo.cc
  12319. (haltRequested): Removed.
  12320. (btHaltRequested): New variable.
  12321. (torrentHandler): haltRequested -> btHaltRequested
  12322. (execute): RequestInfo* -> RequestInfos
  12323. * src/TorrentConsoleDownloadEngine.cc
  12324. (afterEachIteration): haltRequested -> btHaltRequested.
  12325. * src/ConsoleDownloadEngine.h
  12326. (initStatistics): Added virtual.
  12327. (calculateStatistics): Added virtual.
  12328. (onEndOfRun): Added virtual.
  12329. (afterEachIteration): Added virtual.
  12330. * src/ConsoleDownloadEngine.cc
  12331. (haltRequested): New variable.
  12332. (afterEachIteration): New function.
  12333. * src/main.cc
  12334. (requestInfo): Removed.
  12335. * src/SegmentMan.cc
  12336. (findSlowerSegmentEntry): Refactored.
  12337. * Release 0.9.0
  12338. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12339. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12340. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12341. * src/TorrentMan.h: Removed.
  12342. * src/TorrentMan.cc: Removed.
  12343. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12344. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12345. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12346. * src/PeerAbstractCommand.cc: Use btRuntime.
  12347. * src/BtContextAwareCommand.h: New class.
  12348. * src/FileEntry.h: Added accessor methods for following variables.
  12349. (path): Made private.
  12350. (length): Made private.
  12351. (offset): Made private.
  12352. (extracted): Made private.
  12353. (requested): Made private.
  12354. (FileEntries): New definition.
  12355. (FileEntryHandle): New definition.
  12356. * src/FileEntry.cc: New file.
  12357. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12358. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12359. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12360. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12361. * src/PieceStorage.h: New file.
  12362. * src/PeerInteractionCommand.h: Use btContext.
  12363. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12364. btRuntime.
  12365. * src/DefaultBtProgressInfoFile.h: New file.
  12366. * src/DefaultBtProgressInfoFile.cc: New file.
  12367. * src/File.cc
  12368. (Util.h): New include.
  12369. (mkdirs): New function.
  12370. * src/MultiDiskAdaptor.h
  12371. (mkdir): New function.
  12372. * src/PeerListProcessor.h
  12373. (Peers): Removed.
  12374. * src/PeerInteraction.h
  12375. (torrentMan): Removed.
  12376. (btContext): New variable.
  12377. (peerStorage): New variable.
  12378. (pieceStorage): New variable.
  12379. (btAnnounce): New variable.
  12380. (getTorrentMan): Removed.
  12381. (getBtContext): New function.
  12382. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12383. btAnnounce.
  12384. * src/HandshakeMessage.h
  12385. (TorrentMan.h): Removed.
  12386. * src/HandshakeMessage.cc: Use btContext.
  12387. * src/DefaultBtAnnounce.cc: New file.
  12388. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12389. * src/DefaultPieceStorage.cc: New file.
  12390. * src/DefaultBtContext.h: New file.
  12391. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12392. Use the accessor methods of FileEntry.
  12393. * src/CookieBox.cc: Updated to use Util::slice().
  12394. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12395. * src/common.h (SharedHandle.h): New include.
  12396. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12397. pieceStorage.
  12398. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12399. * src/DiskAdaptor.h
  12400. (topDir): Removed.
  12401. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12402. (setTopDir): Removed.
  12403. (getTopDir): Removed.
  12404. * src/BtContext.h: New file.
  12405. * src/DefaultPeerStorage.h: New file.
  12406. * src/PieceMessage.h (TorrentMan.h): Removed.
  12407. * src/RequestMessage.h (TorrentMan.h): Removed.
  12408. * src/TorrentDownloadEngine.h
  12409. (uploadLength): New variable.
  12410. (btContext): New variable.
  12411. (btRuntime): New variable.
  12412. (pieceStorage): New variable.
  12413. (peerStorage): New variable.
  12414. (btAnnounce): New variable.
  12415. (btProgressInfoFile): New variable.
  12416. (torrentMan): Removed.
  12417. (setBtContext): New function.
  12418. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12419. peerStorage, btAnnounce, btProgressInfoFile.
  12420. * src/Piece.h
  12421. (toString): New function.
  12422. (Pieces): New type definition.
  12423. * src/Peer.h
  12424. (active): New variable.
  12425. (Peer): Added active.
  12426. (activate): Set active to true.
  12427. (deactivate): Set active to false.
  12428. (isActive): New function.
  12429. (Peers): New type definition.
  12430. * src/DirectDiskAdaptor.cc
  12431. (getFilePath): Use the accessor methods of FileEntry.
  12432. * src/TorrentConsoleDownloadEngine.h
  12433. (afterEachIteration): New function.
  12434. * src/TorrentConsoleDownloadEngine.cc
  12435. (haltRequested): New variable.
  12436. (sendStatistics): Use pieceStorage, btRuntime.
  12437. (afterEachIteration): New function.
  12438. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12439. * src/Directry.h
  12440. (Directory): New function.
  12441. (DirectoryHandle): New type definition.
  12442. * src/BtProgressInfoFile.h: New file.
  12443. * src/RequestMessage.cc: Use pieceStorage.
  12444. * src/BtRuntime.h: New file.
  12445. * src/DefaultBtContext.cc: New file.
  12446. * src/BitfieldMan.h
  12447. (getCompletedLength): New function(private).
  12448. (getCompletedLength): New function.
  12449. (getFilteredCompletedLength): New function.
  12450. * src/BitfieldMan.h
  12451. (getCompletedLength): New function(private).
  12452. (getCompletedLength): New function.
  12453. (getFilteredCompletedLength): New function.
  12454. * src/MultiDiskAdaptor.cc
  12455. (mkdir): New function.
  12456. (openFile): Call mkdir().
  12457. (initAndOpenFile): Call mkdir().
  12458. * src/CancelMessage.h
  12459. (TorrentMan.h): Removed.
  12460. * src/RejectMessage.h
  12461. (TorrentMan.h): Removed.
  12462. * src/DownloadEngineFactory.cc
  12463. (DefaultPieceStorage.h): New include.
  12464. (DefaultPeerStorage.h): New include.
  12465. (DefaultBtAnnounce.h): New include.
  12466. (DefaultBtProgressInfoFile.h): New include.
  12467. (newTorrentConsoleEngine): Rewritten.
  12468. * src/ShareRatioSeedCriteria.h
  12469. (torrentMan): Removed.
  12470. (btContext): New variable.
  12471. (peerStorage): New variable.
  12472. (btRuntime): New variable.
  12473. (evaluate): Use btContext, btRuntime, peerStorage.
  12474. * src/AnnounceTier.h: New file.
  12475. * src/BtAnnounce.h: New file.
  12476. * src/BtRegistry.h: New file.
  12477. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12478. * src/PeerConnection.h (TorrentMan.h): Removed.
  12479. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12480. * src/Util.h
  12481. (slice): Added an argument.
  12482. * src/Util.cc
  12483. (slice): Added an argument to control whether trim is made or not.
  12484. * src/PeerStorage.h: New file.
  12485. * src/BtRegistry.cc: New file.
  12486. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12487. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12488. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12489. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12490. * src/TorrentRequestInfo.h
  12491. (e): Removed.
  12492. (showFileEntry): Added an argument.
  12493. (getDownloadEngine): Return 0.
  12494. * src/DefaultBtAnnounce.h: New file.
  12495. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12496. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12497. * src/PeerMessageFactory.h
  12498. (btContext): New variable.
  12499. (pieceStorage): New variable.
  12500. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12501. btAnnounce.
  12502. * src/DiskAdaptor.cc
  12503. (DiskAdaptor): Removed topDir.
  12504. (~DiskAdaptor): Removed topDir.
  12505. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12506. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12507. * src/File.h (mkdirs): New function.
  12508. * src/DefaultPeerStorage): New file.
  12509. * src/DownloadEngineFactory.h
  12510. (newTorrentConsoleEngine): Use btContext.
  12511. * src/BtContextAwareCommand.cc: New file.
  12512. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12513. * src/PeerMessage.h
  12514. (btContext): New variable.
  12515. (peerStorage): New variable.
  12516. (pieceStorage): New variable.
  12517. (setBtContext): New function.
  12518. * src/Directry.cc
  12519. (Directory): New function.
  12520. (createDir): Do nothing if name.size() == 0.
  12521. * src/AnnounceList.h
  12522. (AnnounceTier): Removed.
  12523. (AnnounceTiers): Removed.
  12524. * src/DefaultPieceStorage.h: New file.
  12525. * src/Piece.cc (toString): New function.
  12526. To fix typo:
  12527. * src/main.cc (showVersion): Fixed typo.
  12528. To fix compile warning:
  12529. * src/DelegatingPeerListProcessor.cc
  12530. (canHandle): Added "return false".
  12531. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12532. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12533. make the process of announce request testable.
  12534. * src/TrackerWatcherCommand.h
  12535. (TimeA2.h): Removed.
  12536. (interval): Removed.
  12537. (checkPoint): Removed.
  12538. (createRequestCommand): Added an argument 'url'.
  12539. (TrackerWatherCommand): Removed interval.
  12540. (createCommand): New function.
  12541. * src/DownloadEngineFactory.cc
  12542. (newTorrentConsoleEngine): Updated according to the changes in
  12543. TrackerWatherCommand.
  12544. * src/TorrentMan.cc
  12545. (DelegatingPeerListProcessor.h): New includes.
  12546. (TorrentMan): Added the initialization of announceInterval.
  12547. (isStoppedAnnounceReady): New function.
  12548. (isCompletedAnnounceReady): New function.
  12549. (isDefaultAnnounceReady): New function.
  12550. (isAnnounceReady): New function.
  12551. (getAnnounceUrl): New function.
  12552. (announceStart): New function.
  12553. (announceFailure): New function.
  12554. (announceSuccess): New function.
  12555. (isAllAnnounceFailed): New function.
  12556. (resetAnnounce): New function.
  12557. (processAnnounceResponse): New function.
  12558. (needMorePeerConnection): New function.
  12559. (noMoreAnnounce): New function.
  12560. * src/TrackerUpdateCommand.h
  12561. (getTrackerResponse): int->size_t
  12562. * src/TorrentMan.h
  12563. (isStoppedAnnounceReady): New function.
  12564. (isCompletedAnnounceReady): New function.
  12565. (isDefaultAnnounceReady): New function.
  12566. (announceInterval): New variable.
  12567. (isAnnounceReady): New function.
  12568. (getAnnounceUrl): New function.
  12569. (announceStart): New function.
  12570. (announceFailure): New function.
  12571. (announceSuccess): New function.
  12572. (isAllAnnounceFailed): New function.
  12573. (resetAnnounce): New function.
  12574. (processAnnounceResponse): New function.
  12575. (needMorePeerConnection): New function.
  12576. (noMoreAnnounce): New function.
  12577. * src/TrackerWatcherCommand.cc
  12578. (TrackerWatherCommand): Removed interval and checkPoint.
  12579. (execute): Rewritten.
  12580. (createCommand): New function.
  12581. (createRequestCommand): Rewritten.
  12582. * src/TrackerUpdateCommand.cc
  12583. (MetaFileUtil.h): Removed.
  12584. (DelegatingPeerListProcessor.h): Removed.
  12585. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12586. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12587. Request -> RequestHandle:
  12588. * src/HttpResponseCommand.h: Request->RequestHandle
  12589. * src/AbstractCommand.cc: Request->RequestHandle
  12590. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12591. * src/HttpRequestCommand.cc: Request->RequestHandle
  12592. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12593. * src/AbstractCommand.h: Request->RequestHandle
  12594. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12595. * src/HttpResponseCommand.cc: Request->RequestHandle
  12596. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12597. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12598. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12599. * src/HttpConnection.h: Request->RequestHandle
  12600. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12601. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12602. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12603. * src/DownloadCommand.h: Request->RequestHandle
  12604. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12605. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12606. * src/HttpRequestCommand.h: Request->RequestHandle
  12607. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12608. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12609. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12610. * src/HttpDownloadCommand.h: Request->RequestHandle
  12611. * src/FtpConnection.cc: Request->RequestHandle
  12612. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12613. * src/UrlRequestInfo.cc: Request->RequestHandle
  12614. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12615. * src/HttpConnection.h: Request->RequestHandle
  12616. * src/DownloadCommand.cc: Request->RequestHandle
  12617. * src/FtpConnection.h: Request->RequestHandle
  12618. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12619. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12620. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12621. * src/Request.h
  12622. (SharedHandle.h): New include.
  12623. (RequestHandle): New type definition.
  12624. (Requests): Redefined.
  12625. To add MULTITRACKER support:
  12626. * src/TrackerWatcherCommand.h
  12627. (createRequestCommand): New function.
  12628. * src/DownloadEngineFactory.cc
  12629. (newTorrentConsoleEngine): Removed req.
  12630. * src/prefs.h
  12631. (PREF_TRACKER_MAX_TRIES): New definition.
  12632. * src/TorrentMan.cc
  12633. (TorrentMan): Removed req. Added trackerNumTry.
  12634. (~TorrentMan): Removed req.
  12635. (setupInternal1): Added announceList.
  12636. * src/TorrentRequestInfo.cc
  12637. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12638. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12639. * src/main.cc
  12640. (main): Added PREF_TRACKER_MAX_TRIES.
  12641. * src/TorrentMan.h
  12642. (Request.h): Removed.
  12643. (AnnounceList.h): New include.
  12644. (trackerNumTry): New variable.
  12645. (req): Removed.
  12646. (announceList): New variable.
  12647. * src/TrackerWatcherCommand.cc
  12648. (execute): Rewritten.
  12649. (createRequestCommand): New function.
  12650. * src/TrackerUpdateCommand.cc
  12651. (execute): Updated with the use of AnnounceList.
  12652. * src/AnnounceList.cc: New class.
  12653. * src/AnnounceList.h: New class.
  12654. To fix typo:
  12655. * src/prefs.h
  12656. (PREF_MAX_TRIES): max_try->max_tries
  12657. To not to decode "+" as space in URL decode:
  12658. * src/Util.cc
  12659. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12660. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12661. To add timeout to async name resolution:
  12662. * src/AbstractCommand.h
  12663. (nameResolveFinished): New function. This is not elegant way. It needs
  12664. to be more refined.
  12665. (nameResolverCheck): New variable.
  12666. * src/AbstractCommand.cc
  12667. (AbstractCommand): Added nameResolverCheck.
  12668. (execute): Added the check whether the name resolution has finished.
  12669. (setNameResolverCheck): Set nameResolverCheck to true.
  12670. (disableNameResolverCheck): Set nameResolverCheck to false.
  12671. (nameResolverFinished): New function.
  12672. * src/FtpInitiateConnectionCommand.h
  12673. (nameResolverFinished): New function.
  12674. * src/FtpInitiateConnectionCommand.cc
  12675. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12676. * src/HttpInitiateConnectionCommand.h
  12677. (nameResolverFinished): New function.
  12678. * src/HttpInitiateConnectionCommand.cc
  12679. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12680. * src/prefs.h
  12681. (PREF_DNS_TIMEOUT): New definition.
  12682. * src/main.cc
  12683. (main): Added PREF_DNS_TIMEOUT.
  12684. To add the support for a non-compact response from a tracker:
  12685. * src/PeerListProcessor.h: New class.
  12686. * src/DefaultPeerListProcessor.h: New class.
  12687. * src/DefaultPeerListProcessor.cc: New class.
  12688. * src/CompactPeerListProcessor.h: New class.
  12689. * src/CompactPeerListProcessor.cc: New class.
  12690. * src/DelegatingPeerListProcessor.h: New class.
  12691. * src/DelegatingPeerListProcessor.cc: New class.
  12692. * src/TorrentMan.cc
  12693. (addPeer): New function(overload).
  12694. (addPeer): Delete unused peers only when new peer is added.
  12695. * src/TorrentMan.h
  12696. (PeerListProcessor.h): Included.
  12697. (Peers): Removed.
  12698. (addPeer): New function(overload).
  12699. * src/TrackerUpdateCommand.cc
  12700. (netinet/in.h): Removed.
  12701. (DelegatingPeerListProcessor.h): Included.
  12702. (execute): Updated to use DelegatingPeerListProcessor.
  12703. To fix the memory leak in TorrentMan::peers:
  12704. * src/PeerAbstractCommand.cc
  12705. (onAbort): Added peer->resetStatus().
  12706. * src/Peer.h
  12707. (resetStatus): Made public.
  12708. To improve the precision of the speed calculation:
  12709. * src/SpeedCalc.h
  12710. (nextInterval): New variable.
  12711. * src/SpeedCalc.cc
  12712. (reset): Added nextInterval.
  12713. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12714. (changeSw): Set nextInterval to 15 seconds relative to the current
  12715. instant time.
  12716. * src/main.cc
  12717. (showVersion): Updated.
  12718. (showUsage): Updated.
  12719. * Release 0.8.1
  12720. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12721. * src/main.cc
  12722. (showUsage): Commented out --min-segment-size option.
  12723. (main): Commented out --min-segment-size option.
  12724. * Release 0.8.0
  12725. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12726. * src/*.{h,cc}:
  12727. Added an exception to the license which allows linking with OpenSSL.
  12728. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12729. * src/AbstractCommand.cc
  12730. (execute): Check whether the download has finished before checking
  12731. socket status.
  12732. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12733. Do not exit even if no segment is available.
  12734. * src/prefs.h
  12735. (PREF_STARTUP_IDLE_TIME): New definition.
  12736. * src/PeerInteractionCommand.cc
  12737. (executeInternal): Removed max speed limit. Because it performs bad.
  12738. (receiveMessages): Added max speed limit. This was better than above,
  12739. but still a little bit to be desired. Sometimes the download speed
  12740. became much faster than I specified.
  12741. * src/SpeedCalc.h
  12742. (start): New variable.
  12743. (accumulatedLength): New variable.
  12744. (getAvgSpeed): New function.
  12745. * src/SpeedCalc.cc
  12746. (reset): Added start, accumulatedLength.
  12747. (update): Added calculation of an average speed.
  12748. (getAvgSpeed): New function.
  12749. * src/DownloadCommand.h
  12750. (sw): Removed.
  12751. * src/main.cc
  12752. (main): Added PREF_STARTUP_IDLE_TIME.
  12753. * src/PeerStat.h
  12754. (STATUS): Added REQUEST_IDLE.
  12755. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12756. (getAvgDownloadSpeed): New function
  12757. (requestIdle): New function.
  12758. * src/SegmentMan.h
  12759. (SegmentEntryHandle): New type definition.
  12760. (SegmentEntries): Now holds SegmentEntryHandle.
  12761. (findSlowerSegmentEntry): New funtion.
  12762. * src/SegmentMan.cc
  12763. (save): Updated according to the changes in SegmentEntries.
  12764. (read): Updated according to the changes in SegmentEntries.
  12765. (FindSegmentEntryByIndex): Updated according to the changes in
  12766. SegmentEntries.
  12767. (FindSegmentEntryByCuid): Updated according to the changes in
  12768. SegmentEntries.
  12769. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12770. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12771. Renamed uitr as itr.
  12772. (findSlowerSegmentEntry): New function.
  12773. (getSegment): Updated according to the changes in SegmentEntries.
  12774. Added the feature that cancels the segment with slow server and fast
  12775. one takes it over.
  12776. (cancelSegment): Updated according to the changes in SegmentEntries.
  12777. (getDownloadLength): Updated according to the changes in
  12778. SegmentEntries.
  12779. (init): Assigned 0 to bitfield after deleting it.
  12780. * src/DownloadCommand.cc
  12781. (STARTUP_IDLE_TIME): Removed.
  12782. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12783. * src/PeerChokeCommand.cc
  12784. (optUnchokingPeer): Updated according to the changes in Peer.
  12785. (ResetDelta): Removed.
  12786. (UploadFaster): Updated according to the changes in Peer.
  12787. (DownloadFaster): Updated according to the changes in Peer.
  12788. (execute): I clarify the meaning of "upload" and "download" here.
  12789. "upload" means the transfer from localhost to remote host.
  12790. "download" means the transfer from remote host to localhost.
  12791. Based on this rule, I swapped orderByUploadRate and
  12792. orderByDownloadRate.
  12793. * src/PeerInteractionCommand.cc
  12794. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12795. (executeInternal): Removed the argument of
  12796. peerInteraction->sendMessages().
  12797. (receiveMessages): Rewritten download speed limit.
  12798. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12799. * src/HttpResponseCommand.cc
  12800. (handleDefaultEncoding): If file size is unknown in torrent request,
  12801. do not call segmentMan->initBitfield() here.
  12802. Disabled persistent connection feature in torrent request.
  12803. * src/UrlRequestInfo.h
  12804. (UrlRequestInfo): Removed const qualifier from option.
  12805. * src/TorrentMan.h
  12806. (TransferStat): New class.
  12807. (deltaDownloadLength): Removed.
  12808. (deltaUploadLength): Removed.
  12809. (addDeltaDownloadLength): Removed.
  12810. (getDeltaDownloadLength): Removed.
  12811. (resetDeltaDownloadLength): Removed.
  12812. (addDeltaUploadLength): Removed.
  12813. (getDeltaUploadLength): Removed.
  12814. (resetDeltaUploadLength): Removed.
  12815. (addActivePeer): Added peer->activate().
  12816. (deleteActivePeer): Added peer->deactivate().
  12817. (calculateStat): New function.
  12818. * src/TorrentMan.cc
  12819. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12820. (calculateStat): New function.
  12821. * src/PeerInteraction.h
  12822. (uploadLimit): Removed.
  12823. (option): New variable.
  12824. (setUploadLimit): Removed.
  12825. (getUploadSpeed): Removed.
  12826. (sendMessages): Removed the argument "currentUploadSpeed".
  12827. * src/PeerInteraction.cc
  12828. (prefs.h): Included.
  12829. (PeerInteraction): Removed uploadLimit. Added option.
  12830. (sendMessages): Rewritten upload speed limit.
  12831. (sendHandshake): Removed the argument from sendMessages().
  12832. (sendBitfield): Removed the argument from sendMessages().
  12833. * src/PeerAbstractCommand.cc
  12834. (execute): Commented out the portion of upload limit.
  12835. (onAbort): Removed peer->resetStatus().
  12836. * src/TorrentRequestInfo.cc
  12837. (timeoutSpecified): Declared extern.
  12838. (execute): Set timeout to 180 if timeout is not specified by.
  12839. command-line.
  12840. * src/PieceMessage.cc
  12841. (receivedAction): Added peer->updateDownloadLength().
  12842. Removed peer->addPeerUpload().
  12843. Removed torrentMan->addDeltaDownloadLength().
  12844. (send): Added peer->updateUploadLength().
  12845. Removed peer->addPeerDownload().
  12846. Removed torrentMan->addDeltaUploadLength().
  12847. * src/main.cc
  12848. (timeoutSpecified): New variable.
  12849. (main): Set timeoutSpecified to false.
  12850. If the command-line option "--upload-limit" is specified, then
  12851. timeoutSpecified is set to true. This option will remain in the next
  12852. release, but be deprecated in the future release.
  12853. * src/TorrentRequestInfo.h
  12854. (TorrentRequestInfo): Removed const qualifier from op.
  12855. * src/PeerStat.h
  12856. (uploadSpeed): New variable.
  12857. (PeerStat): Added default value to cuid.
  12858. (calculateUploadSpeed): New function.
  12859. (updateUploadLength): New function.
  12860. (getMaxUploadSpeed): New function.
  12861. (getAvgUploadSpeed): New function.
  12862. (reset): Added uploadSpeed. Set status to IDLE.
  12863. * src/TorrentDownloadEngine.h
  12864. (cp): Declared as Time.
  12865. (sessionDownloadLengthArray): Removed.
  12866. (sessionUploadLengthArray): Removed.
  12867. (currentCp): Removed.
  12868. (lastCalcStat): New variable
  12869. (lastElapsed): Removed.
  12870. (sessionDownloadLength): Removed.
  12871. (calculateStat): New function.
  12872. * src/TorrentDownloadEngine.cc
  12873. (initStatistics): Removed lastElapsed, cp[],
  12874. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12875. currentCp, sessionDownloadLength.
  12876. Added cp.reset() and lastCalcStat.reset().
  12877. (calculateSpeed): Changed the name of the argument.
  12878. (calculateStatistics): Rewritten.
  12879. (calculateStat): New function.
  12880. * src/Peer.h
  12881. (PeerStat.h): Included.
  12882. (peerUpload): Removed.
  12883. (peerDownload): Removed.
  12884. (peerStat): New variable.
  12885. (sessionUploadLength): New variable.
  12886. (sessionDownloadLength): New variable.
  12887. (deltaUpload): Removed.
  12888. (deltaDownload): Removed.
  12889. (resetStatus): Made private.
  12890. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12891. Removed peerUpload, peerDownload.
  12892. (updateUploadLength): New function.
  12893. (addDeltaUpload): Removed.
  12894. (updateDownloadLength): New function.
  12895. (resetDeltaUpload): Removed.
  12896. (getDeltaUpload): Removed.
  12897. (addDeltaDownload): Removed.
  12898. (calculateUploadSpeed): New function.
  12899. (resetDeltaDownload): Removed.
  12900. (getDeltaDownload): Removed.
  12901. (calculateDownloadSpeed): New function.
  12902. (getSessionUploadLength): New function.
  12903. (getSessionDownloadLength): New function.
  12904. (activate): New function.
  12905. (deactivate): New function.
  12906. (addPeerUpload): Removed.
  12907. (setPeerUpload): Removed.
  12908. (getPeerUpload): Removed.
  12909. (addPeerDownload): Removed.
  12910. (setPeerDownload): Removed.
  12911. (getPeerDownload): Removed.
  12912. * src/Peer.cc
  12913. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12914. * src/MetalinkRequestInfo.h
  12915. (MetalinkRequestInfo): Removed const qualifier from op.
  12916. * src/RequestInfo.h
  12917. (op): Removed const qualifier.
  12918. (RequestInfo): Removed const qualifier from op.
  12919. * src/prefs.h
  12920. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12921. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12922. * src/PeerInteractionCommand.cc
  12923. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12924. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12925. * src/PeerInteraction.cc
  12926. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12927. * src/main.cc
  12928. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12929. Added the description of "--max-download-limit" option.
  12930. Removed the description of "--upload-limit" option.
  12931. Added the description of "--max-upload-limit" option.
  12932. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12933. Added "--max-download-limit" option and "--max-upload-limit" option.
  12934. Added the warning message if "--upload-limit" option is used.
  12935. * src/DownloadCommand.cc
  12936. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12937. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12938. To rewrite segment download mechanism for HTTP/FTP download.
  12939. Use BitfieldMan to manage segment download.
  12940. * src/HttpResponseCommand.h
  12941. (executeInternal): Pass the reference of segment.
  12942. * src/AbstractCommand.cc
  12943. (prepareForRetry): Call segmentMan->cancelSegment here.
  12944. (onAbort): Call segmentMan->cancelSegment here.
  12945. * src/HttpDownloadCommand.cc
  12946. (prepareForNextSegment): New function.
  12947. * src/DownloadEngineFactory.cc
  12948. (newConsoleEngine): Removed splitter.
  12949. (newTorrentConsoleEngine): Removed splitter.
  12950. * src/Request.h
  12951. (segment): Renamed from seg.
  12952. * src/FtpInitiateConnectionCommand.h
  12953. (executeInternal): Pass the reference of segment.
  12954. * src/AbstractCommand.h
  12955. (executeInternal): Pass the reference of segment.
  12956. * src/pref.h
  12957. (PREF_SEGMENT_SIZE): New definition.
  12958. * src/HttpProxyRequestCommand.h
  12959. (executeInternal): Pass the reference of segment.
  12960. * src/HttpResponseCommand.cc
  12961. (checkResponse): Allowed status 206 when a request range starts 0.
  12962. (handleDefaultEncoding): Rewritten the code related to Segment.
  12963. (handleOtherEncoding): Rewritten the code related to Segment.
  12964. * src/SegmentMan.h
  12965. (SegmentEntry): New class.
  12966. (SegmentEntries): New type definition.
  12967. (bitfield): New variable.
  12968. (usedSegmentEntries): New variable.
  12969. (onNullBitfield): New function.
  12970. (checkoutSegment): New function.
  12971. (segments): Removed.
  12972. (splitter): Removed.
  12973. (unregisterId): Removed.
  12974. (getSegment): New function(overload)
  12975. (getDownloadedSize): Removed.
  12976. (cancelSegment): New function.
  12977. (completeSegment): New function.
  12978. (initBitfield): New function.
  12979. (hasSegment): New function.
  12980. (getDownloadLength): New function.
  12981. * src/BitfieldMan.h
  12982. (getStartIndex): New function.
  12983. (getEndIndex): New function.
  12984. (getMissingUnusedIndex): New function(overload).
  12985. (getSparseMissingUnusedIndex): New function.
  12986. * src/BitfieldMan.cc
  12987. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12988. (getMissingUnusedIndex): New function(overload).
  12989. (Range): New class.
  12990. (getStartIndex): New function.
  12991. (getEndIndex): New function.
  12992. (getSparseMissingUnusedIndex): New function.
  12993. (isBitSetInternal): Return false if the given index is less than 0.
  12994. * src/HttpInitiateConnectionCommand.h
  12995. (executeInternal): Pass the reference of segment.
  12996. * src/FtpNegotiateCommand.h
  12997. (executeInternal): Pass the reference of segment.
  12998. * src/FtpNegotiateCommand.cc
  12999. (recvSize): Initialize bitfield here.
  13000. * src/FtpTunnelResponseCommand.h
  13001. (executeInternal): Pass the reference of segment.
  13002. * src/HttpConnection.cc
  13003. (createRequest): Rewritten range header processing.
  13004. * src/DownloadCommand.h
  13005. (executeInternal): Pass the reference of segment.
  13006. (prepareForRetry): Removed.
  13007. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13008. function.
  13009. * src/main.cc
  13010. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13011. * src/SegmentMan.cc
  13012. (SegmentMan): Added bitfield. Removed splitter.
  13013. (~SegmentMan): Added bitfield. Removed splitter.
  13014. (unregisterId): Removed.
  13015. (getSegment): Rewritten.
  13016. (updateSegment): Rewritten.
  13017. (save): Rewritten.
  13018. (read): Rewritten.
  13019. (finished): Rewritten.
  13020. (getDownloadedSize): Removed.
  13021. (initBitfield): New function.
  13022. (FindSegmentEntryByIndex): New function object.
  13023. (FindSegmentEntryByCuid): New function object.
  13024. (checkoutSegment): New function.
  13025. (onNullBitfield): New function.
  13026. (getSegment): New function(overload).
  13027. (CancelSegment): New function object.
  13028. (cancelSegment): New function.
  13029. (completeSegment): New function.
  13030. (hasSegment): New function.
  13031. (getDownloadLength): New function.
  13032. * src/FtpInitiateConnectionCommand.cc
  13033. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13034. * src/Segment.h: Rewritten.
  13035. * src/Segment.cc (operator<<): New function.
  13036. * src/HttpDownloadCommand.h
  13037. (prepareForNextSegment): New function.
  13038. * src/Request.cc
  13039. (resetUrl): Made segment null.
  13040. * src/DownloadEngine.cc
  13041. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13042. * src/HttpProxyRequestCommand.h
  13043. (executeInternal): Pass the reference of segment.
  13044. * src/DownloadCommand.cc
  13045. (executeInternal): Rewritten the code related to Segment.
  13046. (prepareForRetry): Removed.
  13047. (prepareForNextSegment): Rewritten.
  13048. * src/FtpTunnelResponseCommand.h
  13049. (executeInternal): Pass the reference of segment.
  13050. To add HTTP 1.1 persistent connection support(experimental)
  13051. * src/HttpRequestCommand.cc
  13052. (executeInternal): Disable keep alive if it is disabled by
  13053. configuration.
  13054. * src/Request.h
  13055. (keepAlive): New variable.
  13056. (isKeepAlive): New function.
  13057. (setKeepAlive): New function.
  13058. * src/pref.h
  13059. (PREF_HTTP_KEEP_ALIVE): New definition.
  13060. * src/HttpResponseCommand.cc
  13061. (executeInternal): Check the remote server supports keep alive.
  13062. * src/HttpConnection.cc
  13063. (createRequest): Send "Connection: close" only if keep alive is
  13064. disabled.
  13065. * src/main.cc
  13066. (main):
  13067. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13068. To add max download speed limit:
  13069. * src/pref.h
  13070. (PREF_MAX_SPEED_LIMIT): New definition.
  13071. * src/PeerInteractionCommand.cc
  13072. (executeInternal): Added max download speed limit. Not tested yet.
  13073. * src/SegmentMan.h
  13074. (PeerStats): New type definition.
  13075. (peerStats): New variable.
  13076. (registerPeerStat): New function.
  13077. (FindPeerStat): New function object.
  13078. (getPeerStat): New function.
  13079. (calculateDownloadSpeed): New function.
  13080. * src/SpeedCalc.h: New class.
  13081. * src/SpeedCalc.cc: New class.
  13082. * src/main.cc
  13083. (main):
  13084. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13085. download speed is not restricted).
  13086. * src/PeerStat.h: New class.
  13087. * src/SegmentMan.cc
  13088. (registerPeerStat): New function.
  13089. (calculateDownloadSpeed): New function.
  13090. * src/DownloadCommand.cc
  13091. (STARTUP_IDLE_TIME): New definition.
  13092. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13093. downloadStart.
  13094. (~DownloadCommand): Call peerStat->downloadStop.
  13095. (executeInternal): Added download speed limitter. Rewritten lowest
  13096. speed limitter.
  13097. * src/HttpConnection.cc
  13098. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13099. * src/AbstractCommand.cc
  13100. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13101. Added hostname to the error message.
  13102. * src/ConsoleDownloadEngine.cc
  13103. (calculateStatistics): Initialize psize with dlSize.
  13104. * src/PieceMessage.cc
  13105. (receivedAction): Do not call peerInteraction->abortPiece here.
  13106. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13107. * src/BitfieldMan.h
  13108. (clearAllUseBit): New function.
  13109. (setAllUseBit): New function.
  13110. * src/BitfieldMan.cc
  13111. (clearAllBit): Do not clear useBitfield here.
  13112. (clearAllUseBit): New function.
  13113. (setAllUseBit): New function.
  13114. * src/Piece.cc
  13115. (clearAllBlock): Call bitfield->clearAllUseBit().
  13116. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13117. To make filename URL-decoded:
  13118. * src/HttpResponseCommand.h: Updated doc.
  13119. * src/HttpResponseCommand.cc
  13120. (determinFilename): Made filename URL-decoded.
  13121. * src/FtpInitiateConnectionCommand.cc
  13122. (executeInternal): Made filename URL-decoded.
  13123. * src/Util.h (urldecode): New function.
  13124. * src/Util.cc (urldecode): New function.
  13125. To fix a bug that caused assertion failure in ares_strerror:
  13126. * src/NameResolver.cc (callback): Fixed the bug.
  13127. * Release 0.7.3
  13128. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13129. To add --seed-time and --seed-ratio command-line option:
  13130. * src/Option.h (getAsDouble): New function.
  13131. * src/Option.cc (getAsDouble): New function.
  13132. * src/SeedCheckCommand.h: New class.
  13133. * src/SeedCheckCommand.cc: New class.
  13134. * src/DownloadEngineFactory.cc
  13135. (SeedCheckCommand.h): Included.
  13136. (UnionSeedCriteria.h): Included.
  13137. (TimeSeedCriteria.h): Included.
  13138. (ShareRatioSeedCriteria.h): Included.
  13139. (newTorrentConsoleEngine): Added the processing of seed option.
  13140. * src/SeedCriteria.h: New class.
  13141. * src/ShareRatioSeedCriteria.h: New class.
  13142. * src/TimeSeedCriteria.h: New class.
  13143. * src/UnionSeedCriteria.h: New class.
  13144. * src/prefs.h
  13145. (PREF_SEED_TIME): New definition.
  13146. (PREF_SEED_RATIO): New definition.
  13147. * src/main.cc
  13148. (showUsage): Added --seed-time and --seed-ratio option.
  13149. (main): Added --seed-time and --seed-ratio option.
  13150. Made default log file name "/dev/null".
  13151. * src/SharedHandle.h
  13152. (SharedHandle): Copy constructor. Made it assignable from the
  13153. SharedHandle of the subclasses.
  13154. (operator=): Made it assignable from the SharedHandle of the
  13155. subclasses.
  13156. (getRefCount): New function.
  13157. To add notice log level and the switch to write log to stdout. This
  13158. switch is configurable per log level.
  13159. * src/Logger.h
  13160. (notice): New function.
  13161. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13162. constant.
  13163. * src/LogFactory.cc
  13164. (getInstance): The use of NullLogger was removed. A log message with
  13165. notice log level was made written to stdout along with log file.
  13166. * src/NullLogger.h
  13167. (notice): New function.
  13168. * src/SimpleLogger.h
  13169. (writeHeader): Added the 'file' argument.
  13170. (writeLog): Added the 'file' argument.
  13171. (writeFile): New function.
  13172. (stdoutField): New variable.
  13173. (SimpleLogger): Removed the default constructor.
  13174. (SimpleLogger): Made the default value of logfile 0.
  13175. (debug): Added 'virtual' keyword.
  13176. (info): Added 'virtual' keyword.
  13177. (warn): Added 'virtual' keyword.
  13178. (error): Added 'virtual' keyword.
  13179. (notice): New function.
  13180. (setStdout): New function.
  13181. * src/SimpleLogger.cc
  13182. (WRITE_LOG): Replaced writeLog with writeFile.
  13183. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13184. (SimpleLogger): Removed the default constructor.
  13185. (setStdout): New function.
  13186. (writeLog): Added the handling of NOTICE log level.
  13187. (writeFile): New function.
  13188. (notice): New function.
  13189. * src/TorrentMan.h: Updated doc.
  13190. * src/BitfieldMan.h: Updated doc.
  13191. * src/TrackerWatcherCommand.cc
  13192. (execute): Return true if error occurred in the request to the tracker
  13193. and halt is requested.
  13194. * src/TrackerUpdateCommand.cc
  13195. (execute): Return true if error occurred in the request to the tracker
  13196. and halt is requested.
  13197. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13198. DownloadEngine:
  13199. * src/TorrentConsoleDownloadEngine.h
  13200. (onSelectiveDownloadingCompletes): Removed.
  13201. * src/TorrentConsoleDownloadEngine.cc
  13202. (onSelectiveDownloadingCompletes): Removed.
  13203. * src/TorrentDownloadEngine.h
  13204. (onEndOfRun): Added 'virtual' keyword.
  13205. (afterEachIteration): Removed.
  13206. (onSelectiveDownloadingCompletes): Removed.
  13207. * src/TorrentDownloadEngine.cc
  13208. (onEndOfRun): Removed filenameFixed.
  13209. (afterEachIteration): Removed.
  13210. * src/TorrentMan.cc
  13211. (completePiece): Call onDownloadComplete here.
  13212. (onDownloadComplete): Added 2 log messages.
  13213. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13214. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13215. * src/NameResolver.h: Added the prototype declaration of callback().
  13216. To support c-ares library:
  13217. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13218. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13219. * src/FtpInitiateConnectionCommand.h:
  13220. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13221. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13222. * src/HttpInitiateConnectionCommand.h:
  13223. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13224. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13225. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13226. #1542285 by tizianomueller)
  13227. * src/HttpInitiateConnectionCommand.cc:
  13228. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13229. * src/FtpInitiateConnectionCommand.cc:
  13230. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13231. * src/DownloadEngine.h:
  13232. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13233. * src/DownloadEngine.cc:
  13234. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13235. To fix the bug that causes compilation failure with metalink-support
  13236. disabled(bug#1543587):
  13237. * src/main.cc: Fixed with the patch by tizianomueller.
  13238. * Release 0.7.2
  13239. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13240. * src/main.cc
  13241. (main): Added a message to inform users that aria2 is starting to
  13242. verify checksum.
  13243. * src/RequestInfo.cc
  13244. (printDownloadAbortMessage): Added a message to inform users that
  13245. transfer can be resumed.
  13246. * src/FeatureConfig.cc
  13247. (FEATURE_ASYNC_DNS): New definition.
  13248. (FeatureConfig): Added aysnc DNS entry.
  13249. To replace CommandUuid with Command* in SocketEntry and
  13250. NameResolverEntry:
  13251. * src/DownloadEngine.h
  13252. (CommandUuids): Removed.
  13253. (SocketEntry::commandUuid): Removed.
  13254. (SocketEntry::command): New variable.
  13255. (SocketEntry::SocketEntry): Updated.
  13256. (SocketEntry::operator==): Updated.
  13257. (NameResolverEntry::commandUuid): Removed.
  13258. (NameResolverEntry::command): New variable.
  13259. (NameResolverEntry::NameResolverEntry): Updated.
  13260. (NameResolverEntry::operator==): Updated.
  13261. (waitData): Changed the argument type.
  13262. (addSocketForReadCheck): Changed the argument type.
  13263. (deleteSocketForReadCheck): Changed the argument type.
  13264. (addSocketForWriteCheck): Changed the argument type.
  13265. (deleteSocketForWriteCheck): Changed the argument type.
  13266. (addNameResolverCheck): Changed the argument type.
  13267. (deleteNameResolverCheck): Changed the argument type.
  13268. * src/DownloadEngine.cc
  13269. (FindCommand): Removed.
  13270. (run): Removed activeUuid. Added activeCommands instead.
  13271. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13272. (AccumulateActiveCommand): New function object.
  13273. (waitData): Use AccumulateActiveCommand.
  13274. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13275. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13276. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13277. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13278. (addNameResolverCheck): Use Command instead of CommandUuid.
  13279. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13280. * src/AbstractCommand.cc
  13281. (disableReadCheckSocket): Updated according to the changes in
  13282. DownloadEngine.
  13283. (setReadCheckSocket): Updated according to the changes in
  13284. DownloadEngine.
  13285. (disableWriteCheckSocket): Updated according to the changes in
  13286. DownloadEngine.
  13287. (setWriteCheckSocket): Updated according to the changes in
  13288. DownloadEngine.
  13289. (setNameResolverCheck): Updated according to the changes in
  13290. DownloadEngine.
  13291. (disableNameResolverCheck): Updated according to the changes in
  13292. DownloadEngine.
  13293. * src/AbstractCommand.cc
  13294. (disableReadCheckSocket): Updated according to the changes in
  13295. DownloadEngine.
  13296. (setReadCheckSocket): Updated according to the changes in
  13297. DownloadEngine.
  13298. (disableWriteCheckSocket): Updated according to the changes in
  13299. DownloadEngine.
  13300. (setWriteCheckSocket): Updated according to the changes in
  13301. DownloadEngine.
  13302. * release 0.7.1
  13303. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13304. To handle the case where some BitTorrent tracker requires all letters
  13305. except for [A-Za-z0-9] is URL encoded.
  13306. * src/Util.h
  13307. (torrentUrlencode): New function.
  13308. * src/Util.cc
  13309. (ctype.h): Included.
  13310. (torrentUrlencode): New function.
  13311. * src/TrackerWatcherCommand.cc
  13312. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13313. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13314. To add asynchronous DNS support(libares):
  13315. * src/AbstractCommand.h
  13316. (setNameResolverCheck): New function.
  13317. (disableNameResolverCheck): New function
  13318. (resolveHostname): New function.
  13319. * src/AbstractCommand.cc
  13320. (setNameResolverCheck): New function.
  13321. (disableNameResolverCheck): New function
  13322. (resolveHostname): New function.
  13323. * src/FtpInitiateConnectionCommand.h
  13324. (nameResolver): New function.
  13325. * src/FtpInitiateConnectionCommand.cc
  13326. (Util.h): Included.
  13327. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13328. disableWriteCheckSocket.
  13329. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13330. (executeInternal): Added async DNS support.
  13331. * src/HttpInitiateConnectionCommand.h
  13332. (nameResolver): New function.
  13333. * src/HttpInitiateConnectionCommand.cc
  13334. (DlRetryEx.h): Included.
  13335. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13336. disableWriteCheckSocket.
  13337. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13338. (executeInternal): Added async DNS support.
  13339. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13340. by extern "C" declaration.
  13341. * src/NameResolver.cc: New class.
  13342. * src/Util.h:
  13343. (isNumberAndDotsNotation): New function
  13344. * src/Util.cc
  13345. (isNumberAndDotsNotation): New function.
  13346. * src/DownloadEngine.h
  13347. (NameResolver.h): Included.
  13348. (NameResolverEntry): New class.
  13349. (NameResolverEntries): New type definition.
  13350. (addNameResolverCheck): New function.
  13351. (deleteNameResolverCheck): New function.
  13352. * src/DownloadEngine.cc
  13353. (run): Initialize cp with 0.
  13354. (SetDescriptor::operator()): Added for NameResolverEntry.
  13355. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13356. (waitData): Check nameResolver entries.
  13357. (updateFdSet): Update fds in nameResolver entries.
  13358. (addNameResolverCheck): New function.
  13359. (deleteNameResolverCheck): new function.
  13360. * src/PeerInteractionCommand.cc
  13361. (executeInternal): Fixed wrong socket handling.
  13362. * src/main.cc
  13363. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13364. * src/Util.cc
  13365. (fileChecksum): Removed the call to ctx.digestReset().
  13366. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13367. * po/ru.po: Azamat sent me Russian translation.
  13368. * src/FtpNegotiateCommand.cc
  13369. (recvGreeting): Call disableWriteCheckSocket just after
  13370. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13371. (recvRetr): Recognized status code 125 as a acceptable response code.
  13372. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13373. case-insesitive filesystem(BUG#1531057).
  13374. * src/Time.h: Renamed as TimeA2.h.
  13375. * src/Time.cc: Renamed as TimeA2.cc.
  13376. * src/TimeA2.h: New class.
  13377. * src/TimeA2.cc: New class.
  13378. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13379. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13380. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13381. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13382. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13383. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13384. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13385. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13386. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13387. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13388. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13389. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13390. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13391. * release 0.7.0
  13392. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13393. * src/PeerChokeCommand.h
  13394. (PeerChokeCommand): Rearranged the arguments.
  13395. * src/PeerChokeCommand.cc
  13396. (PeerChokeCommand): Rearranged the arguments.
  13397. * src/MetalinkEntry.h
  13398. (Checksum.h): Included.
  13399. (md5): Removed.
  13400. (sha1): Removed.
  13401. (checksum): New variable.
  13402. (operator=): Updated.
  13403. (check): Removed.
  13404. * src/prefs.h
  13405. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13406. (PREF_FOLLOW_TORRENT): New definition.
  13407. (PREF_SELECT_FILE): New definition.
  13408. (PREF_FOLLOW_METALINK): New definition.
  13409. * src/MetalinkResource.h
  13410. (TYPE_HTTPS): Added to enum TYPE.
  13411. * src/TorrentMan.cc
  13412. (~TorrentMan): Rewritten.
  13413. * src/MultiDiskWriter.cc
  13414. (MultiDiskAdaptor): Updated according to the changes in
  13415. MessageDigestContext.
  13416. (~MultiDiskAdaptor): Updated according to the changes in
  13417. MessageDigestContext.
  13418. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13419. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13420. * src/Util.h
  13421. (fileChecksum): Updated according to the changes in
  13422. MessageDigestContext.
  13423. * src/Util.cc
  13424. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13425. (fileChecksum): Updated according to the changes in
  13426. MessageDigestContext.
  13427. * src/messageDigest.h: Rewritten.
  13428. * src/MetalinkEntry.cc
  13429. (check): Removed.
  13430. (Supported): Updated.
  13431. (dropUnsupportedResource): Fixed a memory leak.
  13432. * src/ShaVisitor.cc
  13433. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13434. (~ShaVisitor): Updated according to the changes in
  13435. MessageDigestContext.
  13436. (visit): Updated according to the changes in MessageDigestContext.
  13437. * src/main.cc
  13438. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13439. command-line option added.
  13440. * src/DownloadEngine.h
  13441. (SocketEntry): New class.
  13442. (SocketEntries): New definition.
  13443. (PairFind): Removed.
  13444. (SockCmdMap): Removed.
  13445. * src/DownloadEngine.cc
  13446. (DownloadEngine): Rewritten.
  13447. (~DownloadEngine): Rewritten.
  13448. (run): Renamed activeCommandUuids as activeUuids.
  13449. (SetDescriptor): Rewritten.
  13450. (AccumulateActiveCommandUuid): Removed.
  13451. (AccumulateActiveUuid): New function object.
  13452. (waitData): Rewritten.
  13453. (updateFdSet): Rewritten.
  13454. (addSocket): Rewritten.
  13455. (deleteSocket): Rewritten.
  13456. (addSocketForReadCheck): Rewritten.
  13457. (deleteSocketForReadCheck): Rewritten.
  13458. (addSocketForWriteCheck): Rewritten.
  13459. (deleteSocketForWriteCheck): Rewritten.
  13460. * src/Xml2MetalinkProcessor.cc
  13461. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13462. * src/DownloadCommand.cc
  13463. (executeInternal): Added the check routine for lowest speed limit.
  13464. * src/AbstractDiskWriter.cc
  13465. (AbstractDiskWriter): Updated according to the changes in
  13466. MessageDigestContext.
  13467. (~AbstractDiskWriter): Updated according to the changes in
  13468. MessageDigestContext.
  13469. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13470. * src/RequestInfo.h: New class.
  13471. * src/UrlRequestInfo.h: New class.
  13472. * src/UrlRequestInfo.cc: New class.
  13473. * src/TorrentRequestInfo.h: New class.
  13474. * src/TorrentRequestInfo.cc: New class.
  13475. * src/MetalinkRequestInfo.h: New class.
  13476. * src/MetalinkRequestInfo.cc: New class.
  13477. * src/Checksum.h: New class.
  13478. * src/DownloadEngineFactory.h: New class.
  13479. * src/DownloadEngineFactory.cc: New class.
  13480. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13481. * src/Option.h
  13482. (getAsBool): New function.
  13483. * src/Option.cc
  13484. (prefs.h): Included.
  13485. (defined): 0-length value is now recognized as undefined.
  13486. (getAsInt): Rewritten.
  13487. (getAsLLInt): Rewritten.
  13488. (getAsBool): New function.
  13489. * src/FeatureConfig.h: Rewritten.
  13490. * src/FeatureConfig.cc: Rewritten.
  13491. * src/prefs.h
  13492. (PREF_STDOUT_LOG): New definition.
  13493. (PREF_LOG): New definition.
  13494. (PREF_DIR): New definition.
  13495. (PREF_OUT): New definition.
  13496. (PREF_SPLIT): New definition.
  13497. (PREF_DAEMON): New definition.
  13498. (PREF_REFERER): New definition.
  13499. (PREF_TORRENT_FILE): New definition.
  13500. (PREF_LISTEN_PORT): New definition.
  13501. (PREF_METALINK_FILE): New definition.
  13502. (PREF_METALINK_VERSION): New definition.
  13503. (PREF_METALINK_LANGUAGE): New definition.
  13504. (PREF_METALINK_OS): New definition.
  13505. (PREF_METALINK_SERVERS): New definition.
  13506. * src/main.cc
  13507. (main): Following command-line parameters are now put into Option
  13508. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13509. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13510. metalinkLanguage, metalinkOs, metalinkServers
  13511. To fix the bug that aria2 can not handle http response header properly.
  13512. * src/HttpHeader.cc
  13513. (put): Made name lowercased.
  13514. (defined): Made name lowercased.
  13515. (getFirst): Made name lowercased.
  13516. (get): Made name lowercased.
  13517. (getFirstAsInt): Rewritten.
  13518. (getFirstAsLLInt): Rewritten.
  13519. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13520. * src/TorrentMan.h:
  13521. (advertisePiece): Updated doc.
  13522. (getAdvertisedPieceIndexes): Updated doc.
  13523. (removeAdvertisedPiece); New function.
  13524. * src/TorrentMan.cc
  13525. (FindElapsedHave): New function object.
  13526. (removeAdvertisedPiece): New function.
  13527. * src/HaveEraseCommand.h: New class.
  13528. * src/HaveEraseCommand.cc: New class.
  13529. * src/FeatureConfig.h: New class.
  13530. * src/FeatureConfig.cc: New class.
  13531. * src/Request.h
  13532. (defaultPorts): Removed.
  13533. * src/Request.cc
  13534. (FeatureConfig.h): Included.
  13535. (Request): Removed the statements related to defaultPorts.
  13536. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13537. A default port number is now retrieved from FeatureConfig.
  13538. * src/main.cc
  13539. (HaveEraseCommand.h): Included.
  13540. (showVersion): Added the output of feature list.
  13541. (main): Added HaveEraseCommand to command queue in BitTorrent
  13542. downloading.
  13543. * src/PeerInteractionCommand.h
  13544. (chokeCheckPoint): Commented out.
  13545. (periodicExecPoint): New variable.
  13546. * src/PeerInteractionCommand.cc
  13547. (executeInternal): Following methods are now called in at least every
  13548. 0.5 seconds to reduce CPU usage:
  13549. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13550. checkHave(), sendKeepAlive().
  13551. (checkLongTimePeerChoking): Commented out.
  13552. * src/BitfieldMan.h
  13553. (getNthBitIndex): Changed the method signature.
  13554. (getMissingIndexRandomly): Changed the method signature.
  13555. * src/BitfieldMan.cc
  13556. (getNthBitIndex): Rewritten
  13557. (getMissingIndexRandomly): Rewritten.
  13558. (hasMissingPiece): Rewritten.
  13559. (getMissingIndex): Refactored.
  13560. (getMissingUnusedIndex); Refactored.
  13561. (getMissingIndex): Refactored.
  13562. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13563. * src/PeerMessage.h
  13564. (Piece.h): Included.
  13565. (SharedHandle.h): Included.
  13566. (invalidate): New variable.
  13567. (uploading): New variable.
  13568. (isInvalidate): New function.
  13569. (isUploading): New function.
  13570. (onPush): New function.
  13571. (onChoked): New function.
  13572. (onCanceled): New function.
  13573. (onAbortPiece): New function.
  13574. (PeerMessageHandle): New type definition.
  13575. * src/PeerMessage.cc
  13576. (PeerMessage): Added the initialization for invalidate and uploading.
  13577. * src/CancelMessage.h
  13578. (CancelMessage): Rewritten.
  13579. * src/RejectMessage.h
  13580. (RejectMessage): Rewritten.
  13581. * src/Metalinker.h
  13582. (operator=): Defined.
  13583. * src/MetaEntry.h
  13584. (operator=): Defined.
  13585. * src/MetalinkResource.h
  13586. (operator=): Defined.
  13587. * src/AllowedFastMessage.h
  13588. (AllowedFastMessage): Rewritten.
  13589. * src/HandshakeMessage.h
  13590. (HandshakeMessage): New function(overload).
  13591. * src/HandshakeMessage.cc
  13592. (HandshakeMessage): Rewritten.
  13593. (init): New function.
  13594. * src/HaveMessage.h
  13595. (HaveMessage): Rewritten.
  13596. * src/Time.h
  13597. (operator=): Defined the function body here.
  13598. * src/Time.cc
  13599. (operator=): Removed.
  13600. * src/SocketCore.h
  13601. (operator==): Defined here.
  13602. (operator!=): Defined here.
  13603. (operator<): Defined here.
  13604. * src/SocketCore.cc
  13605. (operator==): Removed.
  13606. (operator<): Removed.
  13607. * src/BitfieldMan.h
  13608. (operator=): Defined the function body here.
  13609. * src/BitfieldMan.cc
  13610. (operator=): Removed.
  13611. * src/TorrentMan.h
  13612. (deleteErrorPeer): Removed.
  13613. (deleteUnusedPeer); New function.
  13614. * src/TorrentMan.cc
  13615. (addPeer): Call deleteUnusedPeer.
  13616. (deleteErrorPeer): Removed.
  13617. (deleteUnusedPeer): New function.
  13618. * src/PeerAbstractCommand.h
  13619. (setNoCheck): New function.
  13620. (noCheck): New variable.
  13621. * src/PeerAbstractCommand.cc
  13622. (PeerAbstractCommand): Added the initialization of noCheck.
  13623. (execute): Added a check for noCheck.
  13624. (setNoCheck): New function.
  13625. * src/Util.h
  13626. (stdio.h): Included.
  13627. * src/Util.cc
  13628. (unistd.h): Included.
  13629. * src/DefaultDiskWriter.cc
  13630. (unistd.h): Included.
  13631. * src/Peer.h
  13632. (operator==): Defined the function body here.
  13633. (operator!=): Defined the function body here.
  13634. * src/Peer.cc
  13635. (operator==): Removed.
  13636. (operator!=): Removed.
  13637. * src/Piece.h
  13638. (Piece): Defined the function body here(copy constructor).
  13639. (operator=): Defined the function body here.
  13640. (operator==): Defined the function body here.
  13641. * src/Piece.cc
  13642. (Piece): Removed(copy constructor).
  13643. (operator=): Removed.
  13644. (operator==): Removed.
  13645. * src/PeerMessageUtil.h
  13646. (ChokeMessage.h): Removed.
  13647. (UnchokeMessage.h): Removed.
  13648. (InterestedMessage.h): Removed.
  13649. (NotInterestedMessage.h): Removed.
  13650. (HaveMessage.h): Removed.
  13651. (BitfieldMessage.h): Removed.
  13652. (RequestMessage.h): Removed.
  13653. (CancelMessage.h): Removed.
  13654. (PieceMessage.h): Removed.
  13655. (HandshakeMessage.h): Removed.
  13656. (KeepAliveMessage.h): Removed.
  13657. (PortMessage.h): Removed.
  13658. (HaveAllMessage.h): Removed.
  13659. (HaveNoneMessage.h): Removed.
  13660. (PeerConnection.h): Removed.
  13661. (HandshakeMessage.h): Included.
  13662. * src/BitfieldMessage.h
  13663. (init): New function.
  13664. (BitfieldMessage): Rewritten.
  13665. (BitfieldMessage): New function(overload).
  13666. * src/RequestSlot.h
  13667. (operator=): Defined the function body here.
  13668. (operator==): Defined the function body here.
  13669. * src/RequestSlot.cc
  13670. (operator=): Removed.
  13671. (operator==): Removed.
  13672. To remove the dependency on the PeerMessage subclass from
  13673. PeerInteraction:
  13674. * src/PeerMessageFactory.h: New class.
  13675. * src/PeerMessageFactory.cc: New class.
  13676. * src/SimplePeerMessage.cc
  13677. (send): If invalidate is true then do nothing.
  13678. * src/PeerInteractionCommand.cc
  13679. (HandshakeMessage.h): Included.
  13680. (KeepAliveMessage.h): Included.
  13681. (ChokeMessage.h): Included.
  13682. (UnchokeMessage.h): Included.
  13683. (HaveMessage.h): Included.
  13684. (executeInternal): Call setNoCheck().
  13685. Removed setWriteCheckSocket(socket).
  13686. * src/PeerInteraction.h
  13687. (ChokeMessage.h): Removed.
  13688. (UnchokeMessage.h): Removed.
  13689. (InterestedMessage.h): Removed.
  13690. (NotInterestedMessage.h): Removed.
  13691. (HaveMessage.h): Removed.
  13692. (BitfieldMessage.h): Removed.
  13693. (RequestMessage.h): Removed.
  13694. (CancelMessage.h): Removed.
  13695. (PieceMessage.h): Removed.
  13696. (HandshakeMessage.h): Removed.
  13697. (KeepAliveMessage.h): Removed.
  13698. (PortMessage.h): Removed.
  13699. (HaveAllMessage.h): Removed.
  13700. (HaveNoneMessage.h): Removed.
  13701. (RejectMessage.h): Removed.
  13702. (AllowedFastMessage.h): Removed.
  13703. (SuggestPieceMessage.h): Removed.
  13704. (PeerMessageFactory.h): Included.
  13705. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13706. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13707. (PeerMessageFactory): New variable.
  13708. (createPeerMessage): Removed.
  13709. (createHandshakeMessage): Removed.
  13710. (setPeerMessageCommonProperty): Removed.
  13711. (addRequestSlot): New function.
  13712. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13713. (getPeerMessageFactory): New function.
  13714. (createRequestMessage): Removed.
  13715. (createCancelMessage): Removed.
  13716. (createPieceMessage): Removed.
  13717. (createHaveMessage): Removed.
  13718. (createChokeMessage): Removed.
  13719. (createUnchokeMessage): Removed.
  13720. (createInterestedMessage): Removed.
  13721. (createNotInterestedMessage): Removed.
  13722. (createBitfieldMessage): Removed.
  13723. (createKeepAliveMessage): Removed.
  13724. (createHaveAllMessage): Removed.
  13725. (createHaveNoneMessage): Removed.
  13726. (createRejectMessage): Removed.
  13727. (createAllowedFastMessage): Removed.
  13728. * src/PeerInteraction.cc
  13729. (PeerInteraction): Allocate PeerMessageFactory here.
  13730. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13731. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13732. PieceMessage::ID.
  13733. (addMessage): Simplified by using PeerMessage::onPush().
  13734. (addRequestSlot): New function.
  13735. (rejectAllPieceMessageInQueue): Simplified by using
  13736. PeerMessage::onChoked().
  13737. (rejectPieceMessageInQueue): Simplified by using
  13738. PeerMessage::onCanceled().
  13739. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13740. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13741. (createHandshakeMessage): Removed.
  13742. (createPeerMessage): Removed.
  13743. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13744. (setPeerMessageCommonProperty): Removed.
  13745. (createRequestMessage): Removed.
  13746. (createCancelMessage): Removed.
  13747. (createPieceMessage): Removed.
  13748. (createHaveMessage): Removed.
  13749. (createChokeMessage): Removed.
  13750. (createUnchokeMessage): Removed.
  13751. (createInterestedMessage): Removed.
  13752. (createNotInterestedMessage): Removed.
  13753. (createBitfieldMessage): Removed.
  13754. (createKeepAliveMessage): Removed.
  13755. (createHaveAllMessage): Removed.
  13756. (createHaveNoneMessage): Removed.
  13757. (createRejectMessage): Removed.
  13758. (createAllowedFastMessage): Removed.
  13759. * src/PieceMessage.h
  13760. (createRejectMessage): New function.
  13761. (PieceMessage): Rewritten.
  13762. (onChoked): New function.
  13763. (onCanceled): New function.
  13764. * src/PieceMessage.cc
  13765. (send): If invalidate is true then do nothing, just return.
  13766. (createRejectMessage): New function.
  13767. (onChoked): New function.
  13768. (onCanceled): New function.
  13769. * src/RequestMessage.h
  13770. (RequestMessage): Rewritten.
  13771. (onPush): New function.
  13772. (onAbortPiece): New function.
  13773. * src/RequestMessage.cc
  13774. (onPush): New function.
  13775. (onAbortPiece): New function.
  13776. Update fd_set when a socket is added or deleted in order to improve
  13777. performance:
  13778. * src/DownloadEngine.h
  13779. (rfdset): New variable.
  13780. (wfdset): New variable.
  13781. (updateFdSet): New function.
  13782. * src/DownloadEngine.cc
  13783. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13784. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13785. (waitData): Copy rfdset and wfdset.
  13786. (updateFdSet): New function.
  13787. (addSocket): Call updateFdSet.
  13788. (deleteSocket): Call updateFdSet.
  13789. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13790. To add the support for Metalink3.0 backward compatible links:
  13791. * src/Request.h
  13792. (SAFE_CHARS): Added '#'.
  13793. (METALINK_MARK): New definition.
  13794. * src/Request.cc
  13795. (parseUrl): Added the support for Metalink3.0 backward compatible
  13796. links.
  13797. etc
  13798. * src/PeerInteraction.cc
  13799. (MsgPushBack): Removed.
  13800. (sendMessages): Use STL copy and back_inserter.
  13801. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13802. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13803. * src/TorrentMan.h
  13804. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13805. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13806. * src/SharedHandle.h: New class.
  13807. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13808. * src/HttpResponseCommand.h
  13809. (HttpResponseCommand): Wrapped Socket.
  13810. * src/SocketCore.h
  13811. (operator==): New function.
  13812. (operator!=): New function.
  13813. (operator<): New function.
  13814. (getSockfd): New function.
  13815. (isOpen): New function.
  13816. (writeData): New function.
  13817. * src/SocketCore.cc
  13818. (operator==): New function.
  13819. (operator!=): New function.
  13820. (operator<): New function.
  13821. * src/AbstractCommand.h
  13822. (socket): Changed its type to SocketHandle.
  13823. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13824. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13825. (disableReadCheckSocket): New function.
  13826. (disableWriteCheckSocket): New function.
  13827. (readCheckTarget): Changed its type to SocketHandle.
  13828. (writeCheckTarget): Changed its type to SocketHandle.
  13829. (AbstractCommand): Replaced Socket with SocketHandle.
  13830. * src/AbstractCommand.cc
  13831. (AbstractCommand): Replaced Socket with SocketHandle.
  13832. (~AbstractCommand): Removed the deallocation for Socket object.
  13833. (disableReadCheckSocket): New function.
  13834. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13835. (disableWriteCheckSocket): New function.
  13836. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13837. * src/HttpDownloadCommand.cc
  13838. (DownloadCommand): Replaced Socket with SocketHandle.
  13839. * src/PeerAbstractCommand.h
  13840. (socket): Changed its type to SocketHandle.
  13841. (peer): Changed its type to PeerHandle.
  13842. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13843. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13844. (disableReadCheckSocket): New function.
  13845. (disableWriteCheckSocket): New function.
  13846. (readCheckTarget): Changed its type to SocketHandle.
  13847. (writeCheckTarget): Changed its type to SocketHandle.
  13848. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13849. Replaced Peer with PeerHandle.
  13850. * src/HttpRequestCommand.cc
  13851. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13852. Use disableReadCheckSocket.
  13853. * src/PeerInitiateConnectionCommand.h
  13854. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13855. * src/PeerChokeCommand.cc
  13856. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13857. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13858. (execute): Use PeerHandle.
  13859. * src/PeerConnection.h
  13860. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13861. (socket): Changed its type to SocketHandle.
  13862. (PeerConnection): Replaced Socket with SocketHandle.
  13863. * src/PeerConnection.cc
  13864. (PeerConnection): Replaced Socket with SocketHandle.
  13865. * src/PeerInteractionCommand.h
  13866. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13867. Replaced Peer with PeerHandle.
  13868. * src/PeerInteractionCommand.cc
  13869. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13870. Replaced Peer with PeerHandle.
  13871. (executeInternal): Use disableWriteCheckSocket.
  13872. Use HandshakeMessageHandle.
  13873. (receiveMessages): Use PeerMessageHandle.
  13874. (prepareForNextPeer): Use PeerHandle.
  13875. * src/HttpProxyRequestCommand.h
  13876. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13877. * src/HttpResponseCommand.cc
  13878. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13879. * src/TorrentMan.cc
  13880. (nullPeer): Added external reference.
  13881. (~TorrentMan): Removed the deallocation of the elements of peers.
  13882. (addPeer): Rewritten.
  13883. (isPeerAvailable): Use nullPeer.
  13884. (deleteOldpeers): Replaced with deleteErrorPeer.
  13885. (deleteErrorPeer): New function.
  13886. (getPeer): Use PeerHandle and nullPeer.
  13887. (hasMissingPiece): Replaced Peer with PeerHandle.
  13888. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13889. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13890. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13891. (getMissingPiece): Replaced Peer with PeerHandle.
  13892. * src/FtpNegotiateCommand.cc
  13893. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13894. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13895. (recvGreeting): Use disableWriteCheckSocket.
  13896. (recvPasv): Removed the allocation of Socket.
  13897. Use disableReadCheckSocket.
  13898. (sendRestPasv): Use disableWriteCheckSocket.
  13899. (recvRetr): Changed assertion.
  13900. * src/PeerInteraction.h
  13901. (SharedHandle.h): Included SharedHandle.h.
  13902. (PeerMessageHandle): New type definition.
  13903. (HandshakeMessageHandle): New type definition.
  13904. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13905. (peer): Changed its type to PeerHandle.
  13906. (createHandshakeMessage): Replaced HandshakeMessage with
  13907. HandshakeMessageHandle.
  13908. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13909. (PeerInteraction): Replaced Peer with PeerHandle.
  13910. Replaced Socket with SocketHandle.
  13911. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13912. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13913. (receiveHandshake): Replaced HandshakeMessage with
  13914. HandshakeMessageHandle.
  13915. * src/PeerInteraction.cc
  13916. (PeerInteraction): Replaced Peer with PeerHandle.
  13917. Replaced Socket with SocketHandle.
  13918. (~PeerInteraction): Removed the deallocation of the elements of
  13919. messageQueue.
  13920. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13921. (isSendingMessageInProgress): Replaced PeerMessage with
  13922. PeerMessageHandle.
  13923. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13924. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13925. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13926. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13927. (abortPiece): Use PeerMessageHandle.
  13928. (receiveHandshake): Replaced HandshakeMessage with
  13929. HandshakeMessageHandle. Removed try-catch block.
  13930. (createHandshakeMessage): Replaced HandshakeMessage with
  13931. HandshakeMessageHandle.
  13932. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13933. Removed try-catch block.
  13934. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13935. * src/HttpProxyResponseCommand.cc
  13936. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13937. * src/FtpTunnelResponseCommand.h
  13938. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13939. * src/HttpConnection.cc
  13940. (HttpConnection): Replaced Socket with SocketHandle.
  13941. * src/PeerAbstractCommand.cc
  13942. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13943. (~PeerAbstractCommand): Removed the deallocation of socket.
  13944. Use disableReadCheckSocket, disableWriteCheckSocket.
  13945. (disableReadCheckSocket): New function.
  13946. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13947. (disableWriteCheckSocket): New function.
  13948. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13949. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13950. * src/FtpTunnelRequestCommand.cc
  13951. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13952. (~FtpTunnelRequestCommand): Corrected indentation.
  13953. * src/DownloadCommand.h
  13954. (DownloadCommand): Replaced Socket with SocketHandle.
  13955. * src/PeerListenCommand.cc
  13956. (PeerListenCommand): Removed the initialization of socket.
  13957. (~PeerListenCommand): Removed the deallocation of socket.
  13958. (bindPort): Use SocketHandle.
  13959. (execute): Use SocketHandle and PeerHandle.
  13960. * src/FtpDowndloadCommand.cc
  13961. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13962. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13963. * src/main.cc
  13964. (main): Corrected indentation.
  13965. * src/HttpInitiateConnectionCommand.cc
  13966. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13967. (executeInternal): Removed the allocation of socket.
  13968. * src/HttpRequestCommand.h
  13969. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13970. * src/FtpNegotiationCommand.h
  13971. (dataSocket): Changed its type to SocketHandle.
  13972. (serverSocket): Changed its type to SocketHandle.
  13973. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13974. * src/TorrentMan.h
  13975. (MAX_PEER_UPDATE): Removed.
  13976. (MAX_PEERS): New definition.
  13977. (Peers): The element is now of type PeerHandle.
  13978. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13979. (getPeer): Replaced Peer with PeerHandle.
  13980. (deleteOldErrorPeers): Removed.
  13981. (deleteErrorPeer): New function.
  13982. (hasMissingPiece): Replaced Peer with PeerHandle.
  13983. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13984. (getMissingPiece): Replaced Peer with PeerHandle.
  13985. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13986. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13987. (addActivePeer): Replaced Peer with PeerHandle.
  13988. (deleteActivePeer): Replaced Peer with PeerHandle.
  13989. Added a check for the return value of find.
  13990. * src/FtpTunnelResponseCommand.cc
  13991. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13992. * src/FtpInitiateConnectionCommand.cc
  13993. (executeInternal): Removed the allocation of socket.
  13994. * src/DownloadEngine.h
  13995. (Sockets): An element is now of type SocketHandle.
  13996. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13997. (CommandUuids): New type definition.
  13998. (rsockets): Changed its type to SockCmdMap.
  13999. (wsockets): Changed its type to SockCmdMap.
  14000. (addSocket): Rewritten.
  14001. (deleteSocket): Rewritten.
  14002. (addSocketForReadCheck): Rewritten.
  14003. (deleteSocketForReadCheck): Rewritten.
  14004. (addSocketForWriteCheck): Rewritten.
  14005. (deleteSocketForWriteCheck): Rewritten.
  14006. (PairFind): New template class.
  14007. * src/HttpDownloadCommand.h
  14008. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14009. * src/FtpConnection.cc
  14010. (FtpConnection): Replaced Socket with SocketHandle.
  14011. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14012. block.
  14013. * src/InitiateConnectionCommandFactory.cc
  14014. (DlAbortEx.h): Included DlAbortEx.h.
  14015. (createInitiateConnectionCommand): Throw exception if the protocol of
  14016. requested URI is not supported.
  14017. * src/Peer.cc
  14018. (nullPeer): Changed its type to PeerHandle.
  14019. (operator==): New function.
  14020. (operator!=): New function.
  14021. * src/Peer.h
  14022. (SharedHandle.h): Included SharedHandle.h.
  14023. (operator==): New function.
  14024. (operator!=): New function.
  14025. (Peer): Added the default constructor.
  14026. Use resetStatus() to initialize member variables.
  14027. (nullPeer): Removed.
  14028. * src/TrackerUpdateCommand.cc
  14029. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14030. with MIN_PEERS.
  14031. * src/PeerListenCommand.h
  14032. (socket): Changed its type to SocketHandle.
  14033. * src/Command.h
  14034. (CommandUuid): New type definition.
  14035. (uuid): New variable.
  14036. (uuidGen): New variable.
  14037. (Command): Added the initialization of uuid.
  14038. (getUuid): New function.
  14039. * src/Socket.h
  14040. (Socket): Removed.
  14041. (SocketHandle): New type definition.
  14042. * src/DownloadEngine.h
  14043. (FindCommand): New function object.
  14044. (run): The portion of socket check was rewritten.
  14045. (SetDescriptor): New function object.
  14046. (AccumulateActiveCommandUuid): New function object.
  14047. (waitData): Rewritten.
  14048. (addSocket): Rewritten.
  14049. (deleteSocket): Rewritten.
  14050. (addSocketForReadCheck): Rewritten.
  14051. (addSocketForWriteCheck): Rewritten.
  14052. (deleteSocketForReadCheck): Rewritten.
  14053. (deleteSocketForWriteCheck): Rewritten.
  14054. * src/HttpProxyResponseCommand.h
  14055. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14056. * src/HttpConnection.h
  14057. (socket): Changed its type to SocketHandle.
  14058. (HttpConnection): Replaced Socket with SocketHandle.
  14059. * src/PeerInitiateConnectionCommand.cc
  14060. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14061. (executeInternal): Removed the allocation of socket.
  14062. (prepareForNextPeer): Use PeerHandle.
  14063. * src/PeerMessage.h
  14064. (peer): Changed its type to PeerHandle.
  14065. (getPeer): Replaced Peer with PeerHandle.
  14066. (setPeer): Replaced Peer with PeerHandle.
  14067. * src/DownloadCommand.cc
  14068. (DownloadCommand): Replaced Socket with SocketHandle.
  14069. * src/FtpConnection.h
  14070. (socket): Changed its type to SocketHandle.
  14071. (FtpConnection): Replaced Socket with SocketHandle.
  14072. (sendPort); Replaced Socket with SocketHandle.
  14073. * src/FtpDowndloadCommand.h
  14074. (ctrlSocket): Changed its type to SocketHandle.
  14075. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14076. * src/HttpProxyRequestCommand.cc
  14077. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14078. * src/FtpTunnelRequestCommand.h
  14079. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14080. etc
  14081. * src/PeerChokeCommand.h
  14082. (setAllPeerChoked): Removed.
  14083. (setAllPeerResetDelta): Removed.
  14084. * src/PeerChokeCommand.cc
  14085. (setAllPeerChoked): Removed.
  14086. (ChokePeer): New function object.
  14087. (setAllPeerResetDelta): Removed.
  14088. (ResetDelta): New function object.
  14089. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14090. (execute): Show download speed when the local node is a seeder.
  14091. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14092. using STL.
  14093. * src/TrackerWatcherCommand.h
  14094. (MIN_PEERS): Removed.
  14095. * src/TorrentMan.cc
  14096. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14097. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14098. To fix the bug that .aria2 file is not saved if downloading is stopped
  14099. by the errors:it results that aria2 can not resume downloading:
  14100. * src/main.cc
  14101. (normalDownload): Added the call to save().
  14102. (main): Added the deletion of the elements in 'reserved'.
  14103. To fix log:
  14104. * src/PeerInteraction.cc
  14105. (receiveHandshake): Fixed log.
  14106. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14107. To improve download performance in BitTorrent:
  14108. * src/TorrentMan.cc
  14109. (getPeer): Check the number of connections. Return nullPeer if
  14110. it is greater than MAX_PEER_UPDATE.
  14111. This code was originally here, but was removed in 0.5.1.
  14112. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14113. To improve the conditional compilation:
  14114. * src/MultiDiskWriter.h:
  14115. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14116. * src/MultiDiskWriter.cc:
  14117. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14118. * src/Util.h:
  14119. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14120. Added ENABLE_BITTORRENT around computeFastSet().
  14121. * src/Util.cc:
  14122. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14123. Added ENABLE_BITTORRENT around computeFastSet().
  14124. * src/messageDigest.h:
  14125. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14126. * src/ShaVisitor.h:
  14127. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14128. * src/ShaVisitor.cc:
  14129. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14130. * src/main.cc:
  14131. Added ENABLE_BITTORRENT around includes and blocks related to
  14132. BitTorrent.
  14133. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14134. digest support is not available.
  14135. * src/AbstractDiskWriter.h:
  14136. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14137. * src/AbstractDiskWriter.cc:
  14138. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14139. * src/MetalinkEntry.cc
  14140. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14141. support is not available.
  14142. To add command-line options for Metalink:
  14143. * src/main.cc:
  14144. Added metalink-version, metalink-language, metalink-os,
  14145. follow-metalink.
  14146. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14147. * src/main.cc: Use these definition.
  14148. * Release 0.6.0
  14149. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14150. To add Metalink support(http/ftp only):
  14151. * src/AbstractCommand.h
  14152. (tryReserved): New function.
  14153. * src/AbstractCommand.cc
  14154. (execute): Call tryReserved().
  14155. (tryReserved): New function.
  14156. * src/Request.h
  14157. (Requests): New type definition.
  14158. * src/SegmentMan.h
  14159. (reserved): New variable.
  14160. * src/Util.h
  14161. (fileChecksum): New function.
  14162. (toUpper): New function.
  14163. (toLower): New function.
  14164. * src/Util.cc
  14165. (messageDigest.h): Included.
  14166. (trim): Trim \r\n\t.
  14167. (fileChecksum): New function.
  14168. (toUpper): New function.
  14169. (toLower): New function.
  14170. * src/main.cc
  14171. (normalDownload): New function.
  14172. (main): Added 2 command-line options: metalink-file,
  14173. metalink-connection. Their usage has not been written yet.
  14174. * src/MetalinkProcessor.h: New class.
  14175. * src/Xml2MetalinkProcessor.h: New class.
  14176. * src/Xml2MetalinkProcessor.cc: New class.
  14177. * src/MetalinkEntry.h: New class.
  14178. * src/MetalinkEntry.cc: New class.
  14179. * src/MetalinkResource.h: New class.
  14180. * src/MetalinkResource.cc: New class.
  14181. To add md5 message digest checking:
  14182. * src/messageDigest.h: Rewritten.
  14183. * src/MultiDiskWriter.cc: Updated according to the changes in
  14184. messageDigest.h.
  14185. * src/ShaVisitor.cc: Updated according to the changes in
  14186. messageDigest.h.
  14187. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14188. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14189. messageDigest.h.
  14190. To fix a bug that causes segfault when the payload length in peer
  14191. message is less than 0:
  14192. * src/PeerConnection.cc:
  14193. (receiveMessage): Fixed the bug.
  14194. * src/PeerMessageUtil.cc
  14195. (checkLength): Throw an exception if length is less than or equals to
  14196. 0.
  14197. To add new interfaces to Base64 encoding/decoding:
  14198. * src/Base64.h
  14199. (part_encode): Changed the method signature.
  14200. (encode): New function(overload).
  14201. (decode): New function(overload).
  14202. * src/Base64.cc
  14203. (part_encode): Rewritten.
  14204. (encode): Rewritten.
  14205. (encode): New function(overload).
  14206. To prevent a peer to download same piece if there is an error in
  14207. checksum:
  14208. * src/PieceMessage.cc
  14209. (receivedAction): Call peerInteraction->abortPiece().
  14210. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14211. To fix the bug that causes same have message is sent many times to
  14212. a single peer.
  14213. * src/Time.cc
  14214. (isNewer): Use Util::difftv().
  14215. * src/Util.cc
  14216. (difftv): Added a cast to (long long int).
  14217. * src/TorrentMan.cc
  14218. (advertisePiece): Use push_front.
  14219. (getAdvertisedPieceIndexes): A performance improvement was made.
  14220. To fix the bug that sends tracker requests without a sleep interval
  14221. when the number of connections is less than 15.
  14222. * src/TrackerWatcherCommand.cc
  14223. (execute): Now the number of connections is not a factor to decide
  14224. whether or not a tracker request should be sent or not.
  14225. * src/Time.h
  14226. (setTimeInSec): New function.
  14227. * src/Time.cc
  14228. (setTimeInSec): New function.
  14229. etc.
  14230. * src/ChokeMessage.cc
  14231. (receivedAction): Removed peer->snubbing = false
  14232. * src/PeerConnection.h
  14233. (receiveHandshake): Updated doc.
  14234. * src/TorrentMan.h
  14235. (getAdvertisedPieceIndexes): Updated the method signature.
  14236. * src/TorrentMan.cc
  14237. (getAdvertisedPieceIndexes): Updated the method signature.
  14238. * src/Time.h
  14239. (getTimeInMicros): Added a cast to (long long int).
  14240. (getTimeInMillis): Added a cast to (long long int).
  14241. * Release 0.5.2
  14242. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14243. To make a listening socket non-block:
  14244. * src/SocketCore.h
  14245. (setNonBlockingMode): New function.
  14246. * src/SocketCore.cc
  14247. (setNonBlockingMode): New function.
  14248. (beginListen): Added a call to setNonBlockingMode().
  14249. (acceptConnection): Call setNonBlockingMode().
  14250. (setBlockingMode): Updated.
  14251. To handle tracker's NAT-checking:
  14252. * src/PeerConnection.cc
  14253. (receiveHandshake): 'msg' param is filled with received data and
  14254. its length is assigned to 'length' param, even if all handshake
  14255. message is not yet received.
  14256. * src/PeerInteractionCommand.cc
  14257. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14258. a new peer connects to localhost.
  14259. A call to peerInteraction->sendHandshake() was removed because
  14260. it is called from peerInteraction->receiveHandshake(true).
  14261. * src/PeerInteraction.h
  14262. (quickReplied): New variable.
  14263. (receiveHandshake): Added an argument.
  14264. * src/PeerInteraction.cc
  14265. (PeerInteraction): Added the initialization of quickReplied.
  14266. (receiveHandshake): Send handshake message as soon as the info hash
  14267. in a handshake message from a peer is correct.
  14268. To change the random part of peer id and key parameter:
  14269. * src/TorrentMan.h
  14270. (key): New variable.
  14271. * src/TorrentMan.cc
  14272. (setupInternal1): Use Util::randomAlpha() to generate random part
  14273. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14274. key is also generated by Util::randomAlpha() and it is now 8 character
  14275. long.
  14276. * src/Util.h
  14277. (randomAlpha): New function.
  14278. * src/Util.cc
  14279. (randomAlpha): New function.
  14280. * src/TrackerWatcherCommand.cc
  14281. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14282. Added no_peer_id=1.
  14283. Set snubbing flag to false when a choke message is received from a
  14284. snubbed peer.
  14285. * src/ChokeMessage.cc
  14286. (receivedAction): Set snubbing flag to false.
  14287. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14288. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14289. * src/SimpleLogger.h (writeHeader): New function.
  14290. * src/SimpleLogger.cc (writeHeader): New function.
  14291. (writeLog): Fixed the bug that causes segfaults if exception message
  14292. contains an unescaped "%" character.
  14293. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14294. when a tracker request fails.
  14295. * src/Request.cc (parseUrl): Query string is now handled properly.
  14296. * Release 0.5.1
  14297. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14298. To add Time class which represents a specific instant in time and
  14299. its precision is microseconds. Time checking procedures were rewritten
  14300. using this object.
  14301. * src/Time.h: New class.
  14302. * src/Time.cc: New class.
  14303. * src/AbstractCommand.h
  14304. (updateCheckPoint): Removed.
  14305. (isTimeoutDetected): Removed.
  14306. (checkPoint): Changed the type to Time.
  14307. (timeout): New variable.
  14308. (setTimeout): New function.
  14309. * src/AbstractCommand.cc
  14310. (AbstractCommand): Removed the initialization of checkPoint.
  14311. Added the initialization of timeout.
  14312. (updateCheckPoint): Removed.
  14313. (isTimeoutDetected): Removed.
  14314. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14315. * src/PeerChokeCommand.h
  14316. (checkPoint): Changed the type to Time.
  14317. * src/PeerChokeCommand.cc
  14318. (PeerChokeCommand): Removed the initialization of checkPoint.
  14319. (execute): Rewritten using Time object.
  14320. * src/TrackerWatcherCommand.h
  14321. (checkPoint): Changed the type to Time.
  14322. * src/TrackerWatcherCommand.cc
  14323. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14324. (execute): Rewritten.
  14325. * src/ConsoleDownloadEngine.h
  14326. (cp): Changed the type to Time.
  14327. (startup): Changed the type to Time.
  14328. * src/ConsoleDownloadEngine.cc
  14329. (initStatistics): Use cp.reset(), startup.reset().
  14330. (calculateStatistics): Rewritten using Time object.
  14331. * src/PeerAbstractCommand.h
  14332. (updateCheckPoint): Removed.
  14333. (isTimeoutDetected): Removed.
  14334. (checkPoint): Changed the type to Time.
  14335. * src/PeerAbstractCommand.cc
  14336. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14337. (updateCheckPoint): Removed.
  14338. (isTimeoutDetected): Removed.
  14339. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14340. * src/PeerInteractionCommand.cc
  14341. (PeerInteractionCommand): Removed the initializations of struct
  14342. timeval variables.
  14343. * src/PeerInteractionCommand.h
  14344. (keepAliveCheckPoint): Changed the type to Time.
  14345. (chokeCheckPoint): Changed the type to Time.
  14346. (freqCheckPoint): Changed the type to Time.
  14347. (haveCheckTime): Changed the type to Time.
  14348. * src/PeerInteractionCommand.cc
  14349. (executeInternal): Rewritten using Time object.
  14350. (detectMessageFlooding): Rewritten using Time object.
  14351. (checkLongTimePeerChoking): Rewritten using Time object.
  14352. (sendKeepAlive): Rewritten using Time object.
  14353. (checkHave): Rewritten using Time object.
  14354. * src/SleepCommand.h
  14355. (checkPoint): Changed the type to Time.
  14356. * src/SleepCommand.cc
  14357. (SleepCommand): Removed the initialization of checkPoint.
  14358. (execute): Rewritten using Time object.
  14359. * src/TorrentAutoSaveCommand.h
  14360. (checkPoint): Changed the type to Time.
  14361. * src/TorrentAutoSaveCommand.cc
  14362. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14363. (execute): Rewritten.
  14364. * src/DownloadCommand.h
  14365. (sw): Changed the type to Time.
  14366. * src/DownloadCommand.cc
  14367. (DownloadCommand): Removed the initialization of sw.
  14368. (executeInternal): Rewritten.
  14369. * src/RequestSlot.h
  14370. (dispatchedTime): Changed the type to Time.
  14371. * src/RequestSlot.cc
  14372. (RequestSlot): Removed the call to setDispatchedTime().
  14373. (setDispatchedTime): Rewirtten.
  14374. (isTimeout): Rewritten.
  14375. (getLatencyInMillis): Rewritten.
  14376. * src/TorrentDownloadEngine.h
  14377. (cp): Changed the type to Time[2].
  14378. (startup): Changed the type to Time.
  14379. * src/TorrentDownloadEngine.cc
  14380. (initStatistics): Rewritten.
  14381. (calculateStatistics): Rewritten.
  14382. * src/DownloadEngine.cc
  14383. (run): Rewritten.
  14384. To detect all attempts to connect to the tracker are failed:
  14385. * src/AbstractCommand.cc
  14386. (execute): Increment e->segmentMan->errors if a command aborted.
  14387. * src/SegmentMan.h
  14388. (errors): New variable.
  14389. * src/SegmentMan.cc
  14390. (SegmentMan): Added the initialization of errors.
  14391. (init): Added the initialization of errors.
  14392. * src/TrackerWatcherCommand.cc
  14393. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14394. request was failed.
  14395. To handle snubbed peers:
  14396. * src/PeerChokeCommand.cc
  14397. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14398. (execute): Snubbed peers don't get unchoked.
  14399. * src/PeerInteraction.h
  14400. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14401. * src/PeerInteraction.cc
  14402. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14403. back the requested 16k block in 60 seconds.
  14404. * src/PieceMessage.cc
  14405. (receivedAction): A peer's snubbed state is cleard if it sends
  14406. the requested 16k block in 60 seconds.
  14407. * src/Peer.h
  14408. (snubbing): New variable.
  14409. * src/Peer.cc
  14410. (resetStatus): Added snubbed = false.
  14411. To fix the bug that causes have message is not sent:
  14412. * src/PeerInteractionCommand.cc
  14413. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14414. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14415. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14416. * src/TorrentMan.h
  14417. (HaveEntry): New class.
  14418. (advertisePiece): Rewritten.
  14419. (getAdvertisedPieceIndexes): Rewritten.
  14420. (Haves): Changed the type.
  14421. (getAdvertisedPieceIndexes): Added an argument.
  14422. Others:
  14423. * src/TorrentMan.h
  14424. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14425. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14426. * src/TorrentMan.cc
  14427. (getPeer): Don't check the number of connections here.
  14428. (setupInternal1): Changed peerId.
  14429. * src/PeerInteractionCommand.h
  14430. (KEEP_ALIVE_INTERVAL): New definition.
  14431. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14432. * src/main.cc
  14433. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14434. * src/DownloadEngine.h: Removed unnecessary header includes.
  14435. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14436. To fix the bug that causes segfaults if a tracker returns a zero-length
  14437. list as "peers":
  14438. * src/TrackerUpdateCommand.cc
  14439. (execute): Added a check to see wether the type of peers is Data*.
  14440. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14441. * Release 0.5.0
  14442. To fix compile issue with gcc3:
  14443. * src/CancelMessage.h
  14444. (ID): Renamed as ID_t
  14445. (ID_t): New enum.
  14446. * src/RejectMessage.h
  14447. (ID): Renamed as ID_t
  14448. (ID_t): New enum.
  14449. * src/SuggestPieceMessage.h
  14450. (ID): Renamed as ID_t
  14451. (ID_t): New enum.
  14452. * src/AllowedFastMessage.h
  14453. (ID): Renamed as ID_t
  14454. (ID_t): New enum.
  14455. * src/PortMessage.h
  14456. (ID): Renamed as ID_t
  14457. (ID_t): New enum.
  14458. * src/HaveNoneMessage.h
  14459. (ID): Renamed as ID_t
  14460. (ID_t): New enum.
  14461. * src/KeepAliveMessage.h
  14462. (ID): Renamed as ID_t
  14463. (ID_t): New enum.
  14464. * src/HaveAllMessage.h
  14465. (ID): Renamed as ID_t
  14466. (ID_t): New enum.
  14467. * src/UnchokeMessage.h
  14468. (ID): Renamed as ID_t
  14469. (ID_t): New enum.
  14470. * src/BitfieldMessage.h
  14471. (ID): Renamed as ID_t
  14472. (ID_t): New enum.
  14473. * src/PieceMessage.h
  14474. (ID): Renamed as ID_t
  14475. (ID_t): New enum.
  14476. * src/RequestMessage.h
  14477. (ID): Renamed as ID_t
  14478. (ID_t): New enum.
  14479. * src/NotInterestedMessage.h
  14480. (ID): Renamed as ID_t
  14481. (ID_t): New enum.
  14482. * src/ChokeMessage.h
  14483. (ID): Renamed as ID_t
  14484. (ID_t): New enum.
  14485. * src/InterestedMessage.h
  14486. (ID): Renamed as ID_t
  14487. (ID_t): New enum.
  14488. * src/HaveMessage.h
  14489. (ID): Renamed as ID_t
  14490. (ID_t): New enum.
  14491. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14492. * src/PeerAbstractCommand.h
  14493. (beforeSocketCheck): Removed.
  14494. * src/PeerAbstractCommand.cc
  14495. Modified in order to call executeInternal() even if socket check
  14496. and upload limit check fail.
  14497. * src/PeerInteractionCommand.h
  14498. (keepAlive): Removed.
  14499. (sendKeepAlive): New function.
  14500. (checkHave): New function.
  14501. (beforeSocketCheck): Removed.
  14502. * src/PeerInteractionCommand.cc
  14503. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14504. calls to checkHave() and sendKeepAlive().
  14505. (keepAlive): Renamed to sendKeepAlive().
  14506. (sendKeepAlive): New function.
  14507. (beforeSocketCheck): Removed.
  14508. (checkHave): New function.
  14509. * src/BitfieldMan.cc
  14510. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14511. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14512. 0.
  14513. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14514. * src/TorrentMan.h
  14515. (UsedPieces): Removed.
  14516. (Pieces): New type definition.
  14517. * src/Piece.h: Updated doc.
  14518. * src/Peer.h
  14519. (totalLength): Removed.
  14520. * src/Peer.cc
  14521. (updateLatency): Fixed the latency calculation.
  14522. * src/TorrentMan.cc
  14523. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14524. than or equal to MAX_PEER_LIST_SIZE.
  14525. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14526. then return false.
  14527. (deleteOldErrorPeers): Rewritten.
  14528. (deleteUsedPiece): Fixed the miss use of STL remove.
  14529. * src/PeerInteraction.h
  14530. (Pieces): Removed.
  14531. (deleteTimeoutRequestSlot): Removed.
  14532. (deleteCompletedRequestSlot): Removed.
  14533. (checkRequestSlot): New function.
  14534. * src/PeerInteraction.cc
  14535. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14536. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14537. (checkRequestSlot): New function.
  14538. * src/DownloadEngine.cc
  14539. (run): Clear activeSockets before calling waitData().
  14540. (waitData): Removed a call to activeSockets.clear().
  14541. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14542. To attempt to handle EINTR:
  14543. * src/SocketCore.cc
  14544. (isReadable): Added EINTR handling.
  14545. (isWritable): Added EINTR handling.
  14546. To improve the performance:
  14547. * src/AbstractCommand.cc
  14548. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14549. * src/PeerInteractionCommand.h
  14550. (receiveMessage): Renamed as receiveMessages().
  14551. (receiveMessages): New function.
  14552. * src/PeerInteractionCommand.cc
  14553. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14554. () function. detectMessageFlooding() is moved here.
  14555. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14556. (). The flooding detection for have message is comment out.
  14557. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14558. Util::difftv().
  14559. (receiveMessage): Renamed as receiveMessages().
  14560. (receiveMessages): New function.
  14561. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14562. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14563. * src/SleepCommand.cc
  14564. (execute): Use Util::difftvsec() instead of Util::difftv().
  14565. * src/BitfieldMan.h
  14566. (getNthBitIndex): New function.
  14567. (hasMissingPiece): New function.
  14568. (getAllMissingIndexes): New function.
  14569. * src/BitfieldMan.cc
  14570. (countSetBit): Rewritten.
  14571. (getNthBitIndex): New function.
  14572. (getMissingIndexRandomly): Rewritten.
  14573. (hasMissingPiece): New function.
  14574. (getAllMissingIndexes): New function.
  14575. * src/TorrentMan.cc
  14576. (hasMissingPiece): New function.
  14577. (deleteUsedPiece): Rewritten using STL.
  14578. * src/PeerInteraction.cc
  14579. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14580. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14581. (addRequests): Updated the number of pending requests.
  14582. * src/PeerAbstractCommand.cc
  14583. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14584. (execute): Returns true if TorrentMan::isHalt() is true.
  14585. Corrected the condition of upload limit checking.
  14586. * src/Util.h
  14587. (countBit): New function.
  14588. * src/Util.cc
  14589. (nbits): New variable.
  14590. (countBit): New function.
  14591. * src/DownloadEngine.h
  14592. (SockCmdMap): New type definition.
  14593. (waitData): Added an argument.
  14594. (addSocket): Added an argument.
  14595. (addSocketForReadCheck): Added an argument.
  14596. (addSocketForWriteCheck): Added an argument.
  14597. * src/DownloadEngine.cc
  14598. (run): Executes only commands whose sockets are ready to read or write.
  14599. All commands are executed in every 1 second.
  14600. (waitData): Calls select() again if it returned
  14601. EINTR.
  14602. (addSocket): Saves socket and command object pair to the map.
  14603. (deleteSocket): Deletes socket and command object pair from the map.
  14604. (addSocketForReadCheck): Added an argument.
  14605. (addSocketForWriteCheck): Added an argument.
  14606. * src/DownloadCommand.cc
  14607. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14608. To send "event=stopped" to the tracker when the application finishes:
  14609. * src/PeerChokeCommand.h
  14610. (checkPoint): New variable.
  14611. * src/PeerChokeCommand.cc
  14612. (PeerChokeCommand): Added the initialization of checkPoint.
  14613. (execute): The interval check is now done by checkPoint, not
  14614. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14615. * src/TorrentMan.h
  14616. (halt): New function.
  14617. (hasMissingPiece): New function.
  14618. (isHalt): New function.
  14619. (setHalt): New function.
  14620. * src/TorrentMan.cc
  14621. (TorrentMan): Added the initialization of halt.
  14622. * src/TorrentAutoSaveCommand.h
  14623. (checkPoint): New variable.
  14624. * src/PeerListenCommand.cc
  14625. (execute): Returns true if TorrentMan::isHalt() is true.
  14626. * src/main.cc
  14627. (setSignalHander): Added flags argument.
  14628. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14629. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14630. Removed printDownloadAbortMessage() after torrent downloading loop.
  14631. * src/TorrentAutoSaveCommand.cc
  14632. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14633. (execute): Returns true if TorrentMan::isHalt() is true.
  14634. The interval check is now done by checkPoint, not SleepCommand.
  14635. * src/TrackerWatcherCommand.cc
  14636. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14637. event=stopped.
  14638. * src/TrackerUpdateCommand.cc
  14639. (prepareForRetry): Do not use SleepCommand here.
  14640. (execute): Returns true if TorrentMan::isHalt() is true.
  14641. Others:
  14642. * src/TorrentMan.cc
  14643. (getMissingPieceIndex): Updated log message.
  14644. * src/PeerInteraction.cc
  14645. (createPeerMessag): Updated log message.
  14646. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14647. To add the ability to download several pieces in mix in a command and
  14648. increase the number of request slots according to request-cancel
  14649. latency:
  14650. * src/PeerInteractionCommand.cc
  14651. (executeInternal): The number of messages to be received at a time
  14652. is increased from 10 to 50.
  14653. * src/LogFactory
  14654. (getInstance): Added NullLogger.
  14655. * src/NullLogger.h: New class.
  14656. * src/BitfieldMan.h
  14657. (getMissingIndex): New function.
  14658. * src/BitfieldMan.cc
  14659. (getMissingIndex): New function.
  14660. * src/TorrentMan.h
  14661. (checkOutPiece): New function.
  14662. (getMissingPieceIndex): New function.
  14663. (getMissingFastPieceIndex): New function.
  14664. (getMissingFastPiece): New function.
  14665. * src/TorrentMan.cc
  14666. (updatePiece): Rewritten using STL.
  14667. (syncPiece): Rewritten using STL.
  14668. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14669. checkOutPiece().
  14670. (getMissingPieceIndex): New function.
  14671. (getMissingFastPieceIndex): New function.
  14672. (getMissingFastPiece): New function.
  14673. (checkOutPiece): New function.
  14674. * src/PeerInteraction.h
  14675. (Pieces): New type definition.
  14676. (piece): Removed.
  14677. (pieces): New variable.
  14678. (getNewPieceAndSendInterest): Added the "piece" argument.
  14679. (abortPiece): Added the "piece" argument.
  14680. (abortAllPieces): New function.
  14681. (isInRequestSlot): New function.
  14682. (hasDownloadPiece): Added the "index" argument.
  14683. (setDownloadPiece): Removed.
  14684. (getDownloadPiece): Added the "index" argument.
  14685. (updatePiece): New function.
  14686. (createRequestMessage): Added the "index" argument.
  14687. * src/PeerInteraction.cc
  14688. (onChoked): Rewritten.
  14689. (abortPiece): Rewirtten.
  14690. (abortAllPieces): New function.
  14691. (deleteTimeoutRequestSlot): Rewritten.
  14692. Clarified code a little bit.
  14693. (deleteCompletedRequestSlot): Rewritten.
  14694. (isInRequestSlot): New function.
  14695. (syncPiece): Rewritten.
  14696. (updatePiece): New function.
  14697. (getNewPieceAndSendInterest): Rewritten.
  14698. (addRequests): Rewritten.
  14699. (getDownloadPiece): Rewritten.
  14700. (hasDownloadPiece): Rewritten.
  14701. (createRequestMessage): Added the "index" argument.
  14702. * src/common.h
  14703. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14704. (DIV_FLOOR): New definition.
  14705. * src/PieceMessage.cc
  14706. (receivedAction): Update request-piece latency here.
  14707. * src/RequestSlot.h
  14708. (getLatencyInMillis): New function.
  14709. * src/RequestSlot.cc
  14710. (isTimeout): Rewritten using getLatencyInMillis.
  14711. (getLatencyInMillis): New function.
  14712. * src/Piece.h
  14713. (operator==): New function.
  14714. (getMissingBlockIndex): New function.
  14715. * src/Piece.cc
  14716. (operator==): New function.
  14717. (getMissingBlockIndex): New function.
  14718. * src/Peer.h
  14719. (DEFAULT_LATENCY): New definition.
  14720. (latency): New variable.
  14721. (updateLatency): New function.
  14722. (getLatency): New function.
  14723. * src/Peer.cc
  14724. (resetStatus): Reset latecy.
  14725. (updateLatency): New function.
  14726. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14727. * src/SocketCore.cc
  14728. (isReadable): Added secure to the condition.
  14729. * src/HttpConnection.cc
  14730. (receiveResponse): Fixed a bug that causes no response header
  14731. exception.
  14732. * src/Peer.h
  14733. (getFastSet): Fixed the return value type.
  14734. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14735. To remove a wait from download loop:
  14736. * src/DownloadEngine.cc
  14737. (run): Comment out shortSleep.
  14738. To rewrite the message handling:
  14739. * src/SimplePeerMessage.h: New class.
  14740. * src/SimplePeerMessage.cc: New class.
  14741. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14742. (msg): New variable.
  14743. (create): New function.
  14744. (send): Removed.
  14745. (getMessage): New function.
  14746. (getMessageLength): New function.
  14747. * src/CancelMessage.cc
  14748. (create): New function.
  14749. (receivedAction): Replaced deleteRequestMessageInQueue with
  14750. rejectPieceMessageInQueue.
  14751. (send): Removed.
  14752. (getMessage): New function.
  14753. (getMessageLength): New function.
  14754. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14755. (msg): New variable.
  14756. (msgLength): New variable.
  14757. (~BitfieldMessage): Deleted msg.
  14758. (send): Removed.
  14759. (getMessage): New function.
  14760. (getMessageLength): New function.
  14761. * src/BitfieldMessage.cc
  14762. (create): New function.
  14763. (send): Removed.
  14764. (getMessage): New function.
  14765. (getMessageLength): New function.
  14766. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14767. (msg): New variable.
  14768. (sendPredicate): New function.
  14769. (onSendComplete): New function.
  14770. (send): Removed.
  14771. (getMessage): New function.
  14772. (getMessageLength): New function.
  14773. (create): New function.
  14774. * src/ChokeMessage.cc
  14775. (create): New function.
  14776. (send): Removed.
  14777. (sendPredicate): New function.
  14778. (getMessage): New function.
  14779. (getMessageLength): New function.
  14780. (onSendComplete): New function.
  14781. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14782. (msg): New variable.
  14783. (send): Removed.
  14784. (getMessage): New function.
  14785. (getMessageLength): New function.
  14786. * src/KeepAliveMessage.cc
  14787. (send): Removed.
  14788. (getMessage): New function.
  14789. (getMessageLength): New function.
  14790. * src/PortMessage.h
  14791. (create): New function.
  14792. (receivedAction): Updated log message.
  14793. * src/PortMessage.cc: New file.
  14794. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14795. (msg): New variable.
  14796. (sendPredicate): New function.
  14797. (onSendComplete): New function.
  14798. (create): New function.
  14799. (send): Removed.
  14800. (getMessage): New function.
  14801. (getMessageLength): New function.
  14802. * src/UnchokeMessage.cc
  14803. (create): New function.
  14804. (send): Removed.
  14805. (sendPredicate): New function.
  14806. (getMessage): New function.
  14807. (getMessageLength): New function.
  14808. (onSendComplete): New function.
  14809. * src/PieceMessage.h
  14810. (leftPieceDataLength): Removed.
  14811. (leftDataLength): New variable.
  14812. (headerSend): New variable.
  14813. (pendingCount): New variable.
  14814. (msgHeader): New variable.
  14815. (sendPieceData): New function.
  14816. (incrementPendingCount): New function.
  14817. (isPendingCountMax): New function.
  14818. (create): New function.
  14819. (getMessageHeader): New function.
  14820. (getMessageHeaderLength): New function.
  14821. * src/PieceMessage.cc
  14822. (create): New function.
  14823. (getMessageHeader): New function.
  14824. (getMessageHeaderLength): New function.
  14825. (send): Rewritten.
  14826. (sendPieceData): New function.
  14827. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14828. (msg): New variable.
  14829. (create): New function.
  14830. (getMessage): New function.
  14831. (getMessageLength): New function.
  14832. * src/HaveMessage.cc
  14833. (create): New function.
  14834. (send): Removed.
  14835. (sendPieceData): New function.
  14836. (getMessage): New function.
  14837. (getMessageLength): New function.
  14838. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14839. (msg): New variable.
  14840. (create): New function.
  14841. (send): Removed.
  14842. (getMessage): New function.
  14843. (getMessageLength): New function.
  14844. * src/RequestMessage.cc
  14845. (create): New function.
  14846. (receivedAction): Added the handling of fast extension.
  14847. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14848. (send): Removed.
  14849. (getMessage): New function.
  14850. (getMessageLength): New function.
  14851. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14852. (msg): New variable.
  14853. (sendPredicate): New function.
  14854. (onSendComplete): New function.
  14855. (create): New function.
  14856. (getMessage): New function.
  14857. (getMessageLength): New function.
  14858. * src/InterestedMessage.cc
  14859. (create): New function.
  14860. (send): Removed.
  14861. (sendPieceData): New function.
  14862. (getMessage): New function.
  14863. (getMessageLength): New function.
  14864. (onSendComplete): New function.
  14865. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14866. (msg): New variable.
  14867. (sendPieceData): New function.
  14868. (onSendComplete): New function.
  14869. (create): New function.
  14870. (send): Removed.
  14871. (getMessage): New function.
  14872. (getMessageLength): New function.
  14873. * src/NotInterestedMessage.cc
  14874. (create): New function.
  14875. (send): Removed.
  14876. (sendPredicate): New function.
  14877. (getMessage): New function.
  14878. (getMessageLength): New function.
  14879. (onSendComplete): New function.
  14880. * src/AllowedFastMessage.h: New class.
  14881. * src/AllowedFastMessage.cc: New class.
  14882. * src/RejectMessage.h: New class.
  14883. * src/RejectMessage.cc: New class.
  14884. * src/SuggestPieceMessage.h: New class.
  14885. * src/SuggestPieceMessage.cc: New class.
  14886. * src/HaveAllMessage.h: New class.
  14887. * src/HaveAllMessage.cc: New class.
  14888. * src/HaveNoneMessage.h: New class.
  14889. * src/HaveNoneMessage.cc: New class.
  14890. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14891. (msg): New variable.
  14892. (reserved): New variable.
  14893. (create): New function.
  14894. (getId): New function.
  14895. (receivedAction): New function.
  14896. (getMessage): New function.
  14897. (getMessageLength): New function.
  14898. (isFastExtensionSupported): New function.
  14899. * src/HandshakeMessage.cc
  14900. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14901. (create): New function.
  14902. (getMessage): New function.
  14903. (getMessageLength): New function.
  14904. (toString): Added the output of reserved field.
  14905. (check): Added const qualifier.
  14906. (isFastExtensionSupported): New function.
  14907. * src/PeerMessageUtil.h
  14908. (createChokeMessage): Removed.
  14909. (createUnchokeMessage): Removed.
  14910. (createInterestedMessage): Removed.
  14911. (createNotInterestedMessage): Removed.
  14912. (createHaveMessage): Removed.
  14913. (createBitfieldMessage): Removed.
  14914. (createRequestMessage): Removed.
  14915. (createCancelMessage): Removed.
  14916. (createPieceMessage): Removed.
  14917. (createPortMessage): Removed.
  14918. (createChokeMessage): Removed.
  14919. (createUnchokeMessage): Removed.
  14920. (createInterestedMessage): Removed.
  14921. (createNotInterestedMessage): Removed.
  14922. (createHaveMessage): Removed.
  14923. (createBitfieldMessage): Removed.
  14924. (createRequestMessage): Removed.
  14925. (createCancelMessage): Removed.
  14926. (createPieceMessage): Removed.
  14927. (createKeepAliveMessage): Removed.
  14928. (createHandshakeMessage): Removed.
  14929. (setIntParam): New function.
  14930. (createPeerMessageString): New function.
  14931. * src/PeerMessageUtil.cc
  14932. (createChokeMessage): Removed.
  14933. (createUnchokeMessage): Removed.
  14934. (createInterestedMessage): Removed.
  14935. (createNotInterestedMessage): Removed.
  14936. (createHaveMessage): Removed.
  14937. (createBitfieldMessage): Removed.
  14938. (createRequestMessage): Removed.
  14939. (createCancelMessage): Removed.
  14940. (createPieceMessage): Removed.
  14941. (createPortMessage): Removed.
  14942. (createRequestMessage): Removed.
  14943. (createCancelMessage): Removed.
  14944. (createPieceMessage): Removed.
  14945. (createHaveMessage): Removed.
  14946. (createChokeMessage): Removed.
  14947. (createUnchokeMessage): Removed.
  14948. (createInterestedMessage): Removed.
  14949. (createNotInterestedMessage): Removed.
  14950. (createBitfieldMessage): Removed.
  14951. (createKeepAliveMessage): Removed.
  14952. (createHandshakeMessage): Removed.
  14953. (setIntParam): New function.
  14954. (createPeerMessageString): New function.
  14955. * src/PeerConnection.h
  14956. (peer): Removed.
  14957. (torrentMan): Removed.
  14958. (createNLengthMessage): Removed.
  14959. (setIntParam): Removed.
  14960. (writeOutgoingMessageLog): Removed all overloaded functions.
  14961. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14962. (sendMessage): New function.
  14963. (sendHandshake): Removed.
  14964. (sendKeepAlive): Removed.
  14965. (sendChoke): Removed.
  14966. (sendUnchoke): Removed.
  14967. (sendInterested): Removed.
  14968. (sendNotInterested): Removed.
  14969. (sendHave): Removed.
  14970. (sendBitfield): Removed.
  14971. (sendRequest): Removed.
  14972. (sendPiece): Removed.
  14973. (sendPieceHeader): Removed.
  14974. (sendPieceData): Removed.
  14975. (sendCancel): Removed.
  14976. (getPeer): Removed.
  14977. * src/PeerConnection.cc
  14978. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14979. (sendHandshake): Removed.
  14980. (sendKeepAlive): Removed.
  14981. (createNLengthMessage): Removed.
  14982. (setIntParam): Removed.
  14983. (writeOutgoingMessageLog): Removed all overloaded functions.
  14984. (sendChoke): Removed.
  14985. (sendUnchoke): Removed.
  14986. (sendInterested): Removed.
  14987. (sendNotInterested): Removed.
  14988. (sendHave): Removed.
  14989. (sendBitfield): Removed.
  14990. (sendRequest): Removed.
  14991. (sendPiece): Removed.
  14992. (sendPieceHeader): Removed.
  14993. (sendPieceData): Removed.
  14994. (sendMessage): New function.
  14995. (sendCancel): Removed.
  14996. * src/PeerInteractionCommand.cc
  14997. (PeerInteractionCommand): Call setUploadLimit.
  14998. (executeInternal): Call setUploadLimit.
  14999. Added the handling of "inProgress" state of handshake message.
  15000. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15001. sendNow().
  15002. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15003. sendNow().
  15004. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15005. * src/TorrentMan.h
  15006. (PEER_ID_LENGTH): New definition.
  15007. (hasAllPieces): New function.
  15008. * src/TorrentMan.cc
  15009. (getMissingPiece): Added the handling of fast extension.
  15010. (cancelPiece): Call updatePiece().
  15011. (hasAllPieces): New function.
  15012. * src/PeerInteraction.h
  15013. (fastSet): New variable.
  15014. (getNewPieceAndSendInterest): Changed the return type to void.
  15015. (send): Renamed as sendMessages.
  15016. (deleteAllRequestSlot): Removed.
  15017. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15018. (cancelAllRequest): Removed all overloaded functions.
  15019. (deleteAllRequestSlot): Removed.
  15020. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15021. (rejectPieceMessageInQueue): New function.
  15022. (rejectAllPieceMessageInQueue): New function.
  15023. (onChoked): New function.
  15024. (isSendingMessageInProgress): New function.
  15025. (getCorrespondingRequestSlot): Changed its arguments.
  15026. (isInFastSet): New function.
  15027. (addFastSetIndex): New function.
  15028. (addRequests): New function.
  15029. (sendNow): Removed.
  15030. (trySendNow): Removed.
  15031. (sendBitfield): New function.
  15032. (sendAllowdFast): New function.
  15033. (createHaveAllMessage): New function.
  15034. (createHaveNoneMessage): New function.
  15035. (createRejectMessage): New function.
  15036. (createAllowedFastMessage): New function.
  15037. * src/PeerInteraction.cc
  15038. (send): Renamed as sendMessages.
  15039. (sendMessages): New function.
  15040. (MsgPushBack): New class.
  15041. (isSendingMessageInProgress): New function.
  15042. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15043. (rejectAllPieceMessageInQueue): New function.
  15044. Added the handling of fast extension.
  15045. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15046. (rejectPieceMessageInQueue): New function.
  15047. Added the handling of fast extension.
  15048. (deleteRequestSlot): Replaced for loop with std::find.
  15049. (onChoked): New function.
  15050. (deleteAllRequestSlot): Removed.
  15051. (abortPiece): Rewirtten.
  15052. (deleteTimeoutRequestSlot): Updated log messages.
  15053. (getCorrespondingRequestSlot): Changed its arguments.
  15054. (cancelAllRequest): Removed all overloaded functions.
  15055. (receiveHandshake): Added the check to see whether an incoming peer
  15056. supports fast extension.
  15057. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15058. PeerMessageUtil.
  15059. (createPeerMessage): Use create() of each message class instead of
  15060. PeerMessageUtil.
  15061. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15062. AllowedFastMessage were added.
  15063. (getNewPieceAndSendInterest): Changed its return value type to void.
  15064. Added the handling of fast extension.
  15065. (addRequests): New function.
  15066. (sendNow): Removed.
  15067. (sendHandshake): Rewritten.
  15068. (trySendNow): Removed.
  15069. (sendBitfield): New function.
  15070. (sendAllowdFast): New function.
  15071. (isInFastSet): New function.
  15072. (addFastSetIndex): New function.
  15073. (createRequestMessage): Use RequestMessage::create instead of
  15074. PeerMessageUtil.
  15075. (createCancelMessage): Use CancelMessage::create instead of
  15076. PeerMessageUtil.
  15077. (createPieceMessage): Use PieceMessage::create instead of
  15078. PeerMessageUtil.
  15079. (createHaveMessage): Use HaveMessage::create instead of
  15080. PeerMessageUtil.
  15081. (createChokeMessage): Use ChokeMessage::create instead of
  15082. PeerMessageUtil.
  15083. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15084. PeerMessageUtil.
  15085. (createInterestedMessage): Use InterestedMessage::create instead of
  15086. PeerMessageUtil.
  15087. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15088. of PeerMessageUtil.
  15089. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15090. PeerMessageUtil.
  15091. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15092. PeerMessageUtil.
  15093. (createHaveAllMessage): New function.
  15094. (createHaveNoneMessage): New function.
  15095. (createRejectMessage): New function.
  15096. (createAllowedFastMessage: New function.
  15097. * src/Util.h
  15098. (sha1Sum): New function.
  15099. (computeFastSet): New function.
  15100. * src/Util.cc
  15101. (sha1Sum): New function.
  15102. (computeFastSet): New function.
  15103. * src/Peer.h
  15104. (fastExtensionEnabled): New variable.
  15105. (fastSet): New variable.
  15106. (setAllBitfield): New function.
  15107. (setFastExtensionEnabled): New function.
  15108. (isFastExtensionEnabled): New function.
  15109. (addFastSetIndex): New function.
  15110. (getFastSet): New function.
  15111. (isInFastSet): New function.
  15112. (countFastSet): New function.
  15113. * src/Peer.cc
  15114. (isInFastSet): New function.
  15115. (addFastSetIndex): New function.
  15116. (setAllBitfield): New function.
  15117. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15118. sockets.
  15119. * src/PeerAbstractCommand.cc
  15120. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15121. and uploadLimit.
  15122. (execute): Changed the procedure of checking sockets. The upload speed
  15123. checking were added.
  15124. (setUploadLimit): New function.
  15125. (setUploadLimitCheck): New function.
  15126. * src/PeerAbstractCommand.h
  15127. (setUploadLimit): New function.
  15128. (setUploadLimitCheck): New function.
  15129. (uploadLimit): New variable.
  15130. (uploadLimitCheck): New variable.
  15131. To contact a tracker regularly:
  15132. * src/TrackerWatcherCommand.h (interval): New variable.
  15133. (checkPoint): New variable.
  15134. (TrackerWatcherCommand): Added interval argument.
  15135. * src/TrackerWatcherCommand.cc
  15136. (TrackerWatcherCommand): Initialized checkPoint.
  15137. (execute): Now a tracker is contacted in every specified period.
  15138. If peer list is not needed, send request with numwant=0.
  15139. * src/TrackerUpdateCommand.cc
  15140. (execute): Updated log messages.
  15141. * src/DownloadEngine.cc
  15142. (~DownloadEngine): Removed two asserts.
  15143. (waitData): Uncommented wfds. May be a bug fix.
  15144. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15145. * src/PeerInteractionCommand.h
  15146. (checkInactiveConnection): Removed.
  15147. * src/PeerInteractionCommand.cc
  15148. (executeInternal): Removed following function calls:
  15149. detectMessageFlooding(), checkLongTimePeerChoking and
  15150. checkInactiveConnection().
  15151. (checkInactiveConnection): Removed.
  15152. (detectMessageFlooding): Removed function call to
  15153. checkInactiveConnection().
  15154. * src/PeerMessageUtil.h
  15155. (createChokeMessage): New function. Overload.
  15156. (createUnchokeMessage): New function. Overload.
  15157. (createInterestedMessage): New function. Overload.
  15158. (createNotInterestedMessage): New function. Overload.
  15159. (createHaveMessage): New function. Overload.
  15160. (createBitfieldMessage): New function. Overload.
  15161. (createRequestMessage): New function. Overload.
  15162. (createCancelMessage): New function. Overload.
  15163. (createPieceMessage): New function. Overload.
  15164. (createKeepAliveMessage): New function. Overload.
  15165. * src/PeerMessageUtil.cc
  15166. (createChokeMessage): New function. Overload.
  15167. (createUnchokeMessage): New function. Overload.
  15168. (createInterestedMessage): New function. Overload.
  15169. (createNotInterestedMessage): New function. Overload.
  15170. (createHaveMessage): New function. Overload.
  15171. (createBitfieldMessage): New function. Overload.
  15172. (createRequestMessage): New function. Overload.
  15173. (createCancelMessage): New function. Overload.
  15174. (createPieceMessage): New function. Overload.
  15175. (createKeepAliveMessage): New function. Overload.
  15176. * src/SendMessageQueue.cc
  15177. (createRequestMessage): Use PeerMessageUtil.
  15178. (createCancelMessage): Use PeerMessageUtil.
  15179. (createPieceMessage): Use PeerMessageUtil.
  15180. (createHaveMessage): Use PeerMessageUtil.
  15181. (createChokeMessage): Use PeerMessageUtil.
  15182. (createUnchokeMessage): Use PeerMessageUtil.
  15183. (createInterestedMessage): Use PeerMessageUtil.
  15184. (createNotInterestedMessage): Use PeerMessageUtil.
  15185. (createBitfieldMessage): Use PeerMessageUtil.
  15186. (createKeepAliveMessage): Use PeerMessageUtil.
  15187. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15188. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15189. * src/PeerInteraction.h: New class.
  15190. * src/PeerInteraction.cc: New class.
  15191. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15192. Each peer message has its own class.
  15193. * src/PendingMessages.h: Removed.
  15194. * src/PendingMessages.cc: Removed. The sending process was moved to
  15195. each message class.
  15196. * src/RequestSlotMan.h: Removed.
  15197. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15198. SendMessageQueue.
  15199. * src/RequestMessage.h: New class.
  15200. * src/RequestMessage.cc: New class.
  15201. * src/CancelMessage.h: New class.
  15202. * src/CancelMessage.cc: New class.
  15203. * src/BitfieldMessage.h: New class.
  15204. * src/BitfieldMessage.cc: New class.
  15205. * src/ChokeMessage.h: New class.
  15206. * src/ChokeMessage.cc: New class.
  15207. * src/KeepAliveMessage.h: New class.
  15208. * src/KeepAliveMessage.cc: New class.
  15209. * src/PortMessage.h: New class.
  15210. * src/UnchokeMessage.h: New class.
  15211. * src/UnchokeMessage.cc: New class.
  15212. * src/PieceMessage.h: New class.
  15213. * src/PieceMessage.cc: New class.
  15214. * src/HaveMessage.h: New class.
  15215. * src/HaveMessage.cc: New class.
  15216. * src/BitfieldMessage.h: New class.
  15217. * src/BitfieldMessage.cc: New class.
  15218. * src/NotInterestedMessage.h: New class.
  15219. * src/NotInterestedMessage.cc: New class.
  15220. * src/InterestedMessage.h: New class.
  15221. * src/InterestedMessage.cc: New class.
  15222. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15223. (getSendMessageQueue): New function.
  15224. (setSendMessageQueue): New function.
  15225. * src/HandshakeMessage.cc: New class.
  15226. * src/PeerConnection.h (receiveMessage): Changed return value and
  15227. arguments.
  15228. (receiveHandshake): Changed return value and arguments.
  15229. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15230. here.
  15231. (receiveHandshake): Do not create handshake class here.
  15232. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15233. (piece): Removed.
  15234. (syncPiece): Removed.
  15235. (sendInterest): Removed.
  15236. (sendMessages): Removed.
  15237. (createRequestPendingMessage): Removed.
  15238. (checkPieceHash): Removed.
  15239. (erasePieceOnDisk): Removed.
  15240. (getNewPieceAndSendInterest): Removed.
  15241. (onGotNewPice): Removed.
  15242. (onGotWrongPiece): Removed.
  15243. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15244. Removed peerConnection, piece.
  15245. (~PeerInteractionCommand): Removed peerConnection.
  15246. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15247. (syncPiece): Moved to SendMessageQueue.
  15248. (decideChoking): Removed PendingMessage.
  15249. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15250. The action after receiving peer message was moved to each message
  15251. class.
  15252. (onGotNewPice): Moved to SendMessageQueue.
  15253. (onGotWrongPiece): Moved to SendMessageQueue.
  15254. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15255. (sendInterest): Moved to SendMessageQueue.
  15256. (createRequestPendingMessage): Removed.
  15257. (sendMessages): Moved to SendMessageQueue.
  15258. (onAbort): Use SendMessageQueue::abortPiece()
  15259. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15260. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15261. (checkPieceHash): Moved to SendMessageQueue.
  15262. (erasePieceOnDisk): Moved to SendMessageQueue.
  15263. * src/PeerMessageUtil.h
  15264. (createBitfieldMessage): Removed.
  15265. (createHaveMessage): Changed return value and arguments.
  15266. (createBitfieldMessage): Changed return value and arguments.
  15267. (createRequestCancelMessage): Removed.
  15268. (createPieceMessage): Changed return value and arguments.
  15269. (getShortIntParam): New function.
  15270. (checkIndex): Changed arguments.
  15271. (checkBegin): Changed arguments.
  15272. (checkLength): Changed arguments.
  15273. (checkPieceOffset): Removed.
  15274. (checkRange): New function.
  15275. (checkBitfield): Changed arguments.
  15276. (createPeerMessage): Removed.
  15277. (checkIntegrity): Removed.
  15278. (createHandshakeMessage): Changed arguments.
  15279. (createChokeMessage): New function.
  15280. (createUnchokeMessage): New function.
  15281. (createInterestedMessage): New function.
  15282. (createNotInterestedMessage): New function.
  15283. (createRequestMessage): New function.
  15284. (createCancelMessage): New function.
  15285. (createPortMessage): New function.
  15286. * src/PeerMessageUtil.cc
  15287. (createBitfieldMessage): Removed.
  15288. (createHaveMessage): Changed return value and arguments.
  15289. (createBitfieldMessage): Changed return value and arguments.
  15290. (createRequestCancelMessage): Removed.
  15291. (createPieceMessage): Changed return value and arguments.
  15292. (getShortIntParam): New function.
  15293. (checkIndex): Changed arguments.
  15294. (checkBegin): Changed arguments.
  15295. (checkLength): Changed arguments.
  15296. (checkPieceOffset): Removed.
  15297. (checkRange): New function.
  15298. (checkBitfield): Changed arguments.
  15299. (createPeerMessage): Removed.
  15300. (checkIntegrity): Removed.
  15301. (createHandshakeMessage): Changed arguments.
  15302. (createChokeMessage): New function.
  15303. (createUnchokeMessage): New function.
  15304. (createInterestedMessage): New function.
  15305. (createNotInterestedMessage): New function.
  15306. (createRequestMessage): New function.
  15307. (createCancelMessage): New function.
  15308. (createPortMessage): New function.
  15309. * src/PeerMessage.h
  15310. (id): Removed.
  15311. (index): Removed.
  15312. (begin): Removed.
  15313. (length): Removed.
  15314. (bitfield): Removed.
  15315. (bitfieldLength): Removed.
  15316. (block): Removed.
  15317. (blockLength): Removed.
  15318. (inProgress): New variable.
  15319. (cuid): New variable.
  15320. (peer): New variable.
  15321. (sendMessageQueue): New variable.
  15322. (logger): New variable.
  15323. (setBitfield): Removed.
  15324. (getBitfield): Removed.
  15325. (setBlock): Removed.
  15326. (getBlock): Removed.
  15327. (getBitfieldLength): Removed.
  15328. (getBlockLength): Removed.
  15329. (isInProgress): New function.
  15330. (toString): Made pure virtual.
  15331. (check): New function.
  15332. (send): New function.
  15333. (receivedAction): New function.
  15334. (getId): Made pure virtual.
  15335. (setId): Removed.
  15336. (getIndex): Removed.
  15337. (setIndex): Removed.
  15338. (getBegin): Removed.
  15339. (setBegin): Removed.
  15340. (getLength): Removed.
  15341. (setLength): Removed.
  15342. (getCuid): New function.
  15343. (setCuid): New function.
  15344. (getPeer): New function.
  15345. (setPeer): New function.
  15346. (getSendMessageQueue): New function.
  15347. (setSendMessageQueue): New function.
  15348. (ID): Removed.
  15349. * src/PeerMessage.cc
  15350. (setBitfield): Removed.
  15351. (setBlock): Removed.
  15352. (toString): Removed.
  15353. * src/TorrentMan.h
  15354. (getPieceLength): New function.
  15355. (getPieceLength): New function.
  15356. * src/SendMessageQueue.h
  15357. (REQUEST_TIME_OUT): New definition.
  15358. (RequestSlots): New definition.
  15359. (MessageQueue): New definition.
  15360. (requestSlotMan): Removed.
  15361. (pendingMessages): Removed.
  15362. (requestSlots): New variable.
  15363. (messageQueue): New variable.
  15364. (torrentMan): New variable.
  15365. (peerConnection): New variable.
  15366. (peer): New variable.
  15367. (piece): New variable.
  15368. (getNewPieceAndSendInterest): New function.
  15369. (createPeerMessage): New function.
  15370. (createHandshakeMessage): New function.
  15371. (send): Made private.
  15372. (setPeerMessageCommonProperty): New function.
  15373. (deleteAllRequestSlot): New function.
  15374. (deleteRequestMessageInQueue): New function.
  15375. (cancelAllRequest): Made private.
  15376. (cancelAllRequest): Made private.
  15377. (countRequestSlot): Made private.
  15378. (addPendingMessage): Removed.
  15379. (deletePendingPieceMessage): Removed.
  15380. (deletePendingRequestMessage): Removed.
  15381. (addMessage): New function.
  15382. (deletePieceMessageInQueue): New function.
  15383. (deleteTimeoutRequestSlot): Changed argument.
  15384. (deleteCompletedRequestSlot): Changed argument.
  15385. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15386. (getCorrespondingRequestSlot): New function.
  15387. (countPendingMessage): Removed.
  15388. (countMessageInQueue): New function.
  15389. (getTorrentMan): New function.
  15390. (getPeerConnection): New function.
  15391. (hasDownloadPiece): New function.
  15392. (getDownloadPiece): New function.
  15393. (setDownloadPiece): New function.
  15394. (syncPiece): New function.
  15395. (sendMessages): New function.
  15396. (sendNow): New function.
  15397. (trySendNow): New function.
  15398. (abortPiece): New function.
  15399. (sendHandshake): New function.
  15400. (receiveMessage): New function.
  15401. (receiveHandshake): New function.
  15402. (createRequestMessage): New function.
  15403. (createCancelMessage): New function.
  15404. (createPieceMessage): New function.
  15405. (createHaveMessage): New function.
  15406. (createChokeMessage): New function.
  15407. (createUnchokeMessage): New function.
  15408. (createInterestedMessage): New function.
  15409. (createNotInterestedMessage): New function.
  15410. (createBitfieldMessage): New function.
  15411. (createKeepAliveMessage): New function.
  15412. * src/SendMessageQueue.cc
  15413. (SendMessageQueue): Removed requestSlotMan.
  15414. Instantiated peerConnection here.
  15415. (~SendMessageQueue): Removed requestSlotMan.
  15416. Added deletion of peerConnection and the contents of messageQueue.
  15417. (send): Updated according to the change of messageQueue.
  15418. (addPendingMessage): Renamed to addMessage.
  15419. (addMessage): New function.
  15420. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15421. (deletePieceMessageInQueue): New function.
  15422. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15423. (deleteRequestMessageInQueue): New function.
  15424. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15425. here.
  15426. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15427. (...) was moved here.
  15428. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15429. moved here.
  15430. (deleteCompletedRequestSlot):
  15431. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15432. (getCorrespondingRequestSlot):
  15433. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15434. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15435. (countPendingMessage): Renamed to countMessageInQueue.
  15436. (countMessageInQueue): New function.
  15437. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15438. (receiveHandshake): New function.
  15439. (createHandshakeMessage): New function.
  15440. (receiveMessage): New function.
  15441. (createPeerMessage): New function.
  15442. (syncPiece): New function.
  15443. (getNewPieceAndSendInterest): New function.
  15444. (sendMessages): New function.
  15445. (sendNow): New function.
  15446. (trySendNow): New function.
  15447. (sendHandshake): New function.
  15448. (abortPiece): New function.
  15449. (getDownloadPiece): New function.
  15450. (getPeerMessageCommonProperty): New function.
  15451. (createRequestMessage): New function.
  15452. (createCancelMessage): New function.
  15453. (createPieceMessage): New function.
  15454. (createHaveMessage): New function.
  15455. (createChokeMessage): New function.
  15456. (createUnchokeMessage): New function.
  15457. (createInterestedMessage): New function.
  15458. (createNotInterestedMessage): New function.
  15459. (createBitfieldMessage): New function.
  15460. (createKeepAliveMessage): New function.
  15461. To add simple Content-Disposition support:
  15462. * src/HttpResponseCommand.h (determinFilename): New function.
  15463. * src/HttpResponseCommand.cc (executeInternal):
  15464. Use determinFilename(headers) instead of req->getFile() when comparing
  15465. filename.
  15466. (determinFilename): New function.
  15467. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15468. req->getFile().
  15469. (handleOtherEncoding): Use determinFilename(headers) instead of
  15470. req->getFile().
  15471. * src/Util.h (getContentDispositionFilename): New function.
  15472. * src/Util.cc (getContentDispositionFilename): New function.
  15473. * src/LogFactory.h (release): New function.
  15474. * src/LogFactory.cc (release): New function.
  15475. To fix a bug that causes out-of-bound exception when HTTP status
  15476. line is wrong:
  15477. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15478. size.
  15479. * src/common.h (Deleter): New class.
  15480. * src/SegmentMan.cc
  15481. (~SegmentMan): Added deletion of splitter and diskWriter.
  15482. * src/DownloadEngine.h
  15483. (Commands): Use deque.
  15484. (clearQueue): New function.
  15485. * src/DownloadEngine.cc
  15486. (~DownloadEngine): Added deletion of segmentMan.
  15487. (cleanQueue): New function.
  15488. * src/TorrentDownloadEngine.h
  15489. (TorrentDownloadEngine): The implementation was moved to
  15490. TorrentDownloadEngine.cc.
  15491. (~TorrentDownloadEngine): The implementation was moved to
  15492. TorrentDownloadEngine.cc.
  15493. * src/TorrentDownloadEngine.cc
  15494. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15495. * src/main.cc
  15496. (clearRequest): Removed.
  15497. (handler): Added deletion of e.
  15498. (torrentHandler): Added deletion of te.
  15499. (main): Do not share splitter.
  15500. Use Deleter instead of clearRequest.
  15501. Deletion of classes were updated.
  15502. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15503. * src/main.cc (main): Fixed typo.
  15504. * src/message.h: Fixed typo.
  15505. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15506. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15507. To add --select-file command-line option:
  15508. * src/Util.cc
  15509. (unfoldRange): New function.
  15510. (getNum): New function.
  15511. (unfoldSubRange): New function
  15512. * src/main.cc
  15513. (showUsage): Added help message.
  15514. (main): Added --select-file command-line option. Updated the layout of
  15515. file listing.
  15516. * src/common.h
  15517. (Integers): New definition.
  15518. * src/SocketCore.cc
  15519. (writeData): Removed timeout argument.
  15520. (readData): Removed timeout argument.
  15521. (peekData): Removed timeout argument.
  15522. * src/Socket.cc
  15523. (writeData): Removed timeout argument.
  15524. (readData): Removed timeout argument.
  15525. (peekData): Removed timeout argument.
  15526. * Release 0.4.1
  15527. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15528. To deploy upload rate based choking algorithm:
  15529. * src/PeerInteractionCommand.cc
  15530. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15531. peer currently used.
  15532. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15533. download completes. Simplified.
  15534. (receiveMessage): Updated.
  15535. * src/TorrentMan.h
  15536. (activePeers): New variable.
  15537. (addActivePeer): New function.
  15538. (getActivePeers): New function.
  15539. (deleteActivePeer): New function.
  15540. * src/TorrentMan.cc
  15541. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15542. * src/PeerAbstractCommand.cc
  15543. (onAbort): Use peer->resetStatus().
  15544. * src/main.cc
  15545. (PeerChokeCommand.h): Included.
  15546. (main): Added the instance of ChokingCommand to the command queue.
  15547. * src/Peer.h
  15548. (amChoking): Renamed from amChocking
  15549. (chokingRequired): New variable.
  15550. (optUnchoking): New variable.
  15551. (deltaUpload): New variable.
  15552. (deltaDownload): New variable.
  15553. (addDeltaUpload): New function.
  15554. (resetDeltaUpload): New function.
  15555. (addDeltaDownload): New function.
  15556. (resetDeltaDownload): New function.
  15557. (addPeerUpload): Added a call to addDeltaUpload.
  15558. (addPeerDownload): Added a call to addDeltaDownload.
  15559. * src/Peer.cc
  15560. (shouldBeChoking): Renamed from shouldChoke.
  15561. (resetStatus): New function.
  15562. * src/PeerChokeCommand.h: New class.
  15563. * src/PeerChokeCommand.cc: New class.
  15564. To add lazy upload speed limiter:
  15565. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15566. statistics calculation to TorrentDownloadEngine.
  15567. * src/TorrentConsoleDownloadEngine.cc
  15568. (sendStatistics): Renamed from printStatistics.
  15569. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15570. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15571. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15572. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15573. calculation.
  15574. (sendStatistics): New function as pure virtual function.
  15575. (getUploadSpeed): New function.
  15576. * src/TorrentDownloadEngine.cc
  15577. (initStatistics): New function.
  15578. (calculateSpeed): New function.
  15579. (calculateStatistics): New function.
  15580. * src/SendMessageQueue.h
  15581. (uploadLength): New variable.
  15582. (send): Added an argument.
  15583. (setUploadLimit): New function.
  15584. (getUploadLimit): New function.
  15585. * src/SendMessageQueue.cc
  15586. (send): Added upload speed limiter.
  15587. * src/prefs.h
  15588. (PREF_UPLOAD_LIMIT): New definition.
  15589. * src/PeerInteractionCommand.cc
  15590. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15591. * src/main.cc
  15592. (main): Added --upload-limit option
  15593. For bug fixes:
  15594. * src/main.cc
  15595. (showUsage): Corrected --listen-port help
  15596. Other changes:
  15597. * src/TorrentMan.cc
  15598. (getPeer): Return nullPeer if connection is grather than
  15599. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15600. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15601. To add some useful information to the exception message:
  15602. * src/SocketCore.cc : Updated messages.
  15603. * src/SegmentMan.cc :
  15604. * src/TorrentMan.cc : Updated messages.
  15605. * src/MultiDiskWriter.cc : Updated messages.
  15606. * src/Util.cc : Updated messages.
  15607. * src/AbstractDiskWriter.cc : Updated messages.
  15608. * src/PreAllocationDiskWriter.cc : Updated messages.
  15609. * src/message.cc : Added new messages. Updated some messages.
  15610. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15611. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15612. Updated threshold from 30 to 15.
  15613. * src/AbstractDiskWriter.h (filename): New variable.
  15614. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15615. (createFile): Assigned filename.
  15616. * src/main.cc: Updated the help message for http-auth-scheme.
  15617. * Release 0.4.0
  15618. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15619. To add TrackerUpdateCommand with which replaces
  15620. CompactTrackerResponseProcessor:
  15621. * src/TrackerWatcherCommand.h (req): Removed.
  15622. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15623. if the number of peer connections are less than 30.
  15624. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15625. * src/SegmentMan.h (diskWriter): New function.
  15626. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15627. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15628. (main): Use TrackerUpdateCommand.
  15629. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15630. (req): New variable.
  15631. (setTrackerResponseProcessor): Removed.
  15632. (getTrackerResponseProcessor): Removed.
  15633. (processTrackerResponse): Removed.
  15634. * src/DownloadEngine.h (diskWriter): Removed.
  15635. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15636. to torrentMan->processTrackerResponse().
  15637. To add Util::expandBuffer:
  15638. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15639. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15640. * src/Util.h (expandBuffer): New function.
  15641. To fix the bug that causes segmentation fault when "-l ." is specified
  15642. in command-line option:
  15643. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15644. (openFile): New function.
  15645. (closeFile): New function.
  15646. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15647. (~SimpleLogger): Call closeFile();
  15648. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15649. * src/main.cc (main): Added a check to see logger is configured
  15650. properly.
  15651. To enable HTTP authentication without specifying "--http-auth-scheme"
  15652. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15653. * src/HttpConnection.cc (createRequest): Send Authorization header
  15654. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15655. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15656. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15657. * src/Peer.cc (shouldChoke): Updated algorithm.
  15658. * src/message.h (EX_AUTH_FAILED): New definition.
  15659. (EX_FILE_OPEN): New definition.
  15660. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15661. if status == 401.
  15662. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15663. if req->isTorrent == true.
  15664. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15665. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15666. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15667. (createFile): Updated message.
  15668. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15669. To add a readout of estimated remaining time to normal HTTP/FTP
  15670. downloads:
  15671. * src/ConsoleDownloadEngine.h (startup): New variable.
  15672. (startupLength): New variable.
  15673. (isStartupLengthSet): New variable.
  15674. (avgSpeed): New variable.
  15675. (eta): New variable.
  15676. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15677. estimated remaining time.
  15678. (initStatistics): Initialized newly added variables.
  15679. (calculateStatistics): Calculate average speed and estimated remaining
  15680. time.
  15681. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15682. * src/TrackerDownloadCommand.h: Removed.
  15683. * src/TrackerDownloadCommand.cc: Removed.
  15684. * src/TrackerInitCommand.h: Removed.
  15685. * src/TrackerInitCommand.cc: Removed.
  15686. * src/TrackerUpdateCommand.h: Removed.
  15687. * src/TrackerUpdateCommand.cc: Removed.
  15688. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15689. url written in TrackerInitCommand was moved here. Do not create
  15690. tracker request command if torrentMan->trackers != 0.
  15691. * src/CompactTrackerResponseProcessor.h: New class.
  15692. * src/CompactTrackerResponseProcessor.cc: New class.
  15693. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15694. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15695. Decoupled TorrentDownloadEngine from this.
  15696. * src/SegmentMan.h (init): New function.
  15697. * src/SegmentMan.cc (init): New function.
  15698. * src/TorrentMan.h (responseProcessor): New variable.
  15699. (trackers): New variable.
  15700. (setTrackerResponseProcessor): New function.
  15701. (getTrackerResponseProcessor): New function.
  15702. (processTrackerResponse): New function.
  15703. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15704. (processTrackerResponse): New function.
  15705. * src/main.cc (main): Use ByteArrayDiskWriter and
  15706. CompactTrackerResponseProcessor.
  15707. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15708. processTrackerResponse().
  15709. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15710. readout.
  15711. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15712. which indicates download has completed.
  15713. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15714. (closeFile): fd >= 0, not fd > 0
  15715. * src/main.cc (main): Added short cut for show-files.
  15716. Added short cut for torrent-file.
  15717. Added new command-line option listen-port.
  15718. Updated i18n messages.
  15719. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15720. To add LogFactory which creates singleton logger:
  15721. * src/LogFactory.h: New class.
  15722. * src/LogFactory.cc: New class.
  15723. * src/Command.h (logger): New variable.
  15724. (Constructor): Use LogFactory.
  15725. * src/AbstractCommand.cc: Use Command::logger
  15726. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15727. Use LogFactory.
  15728. * src/SegmentSplitter.h : Made logger protected.
  15729. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15730. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15731. * src/DownloadEngine.h : Made logger protected.
  15732. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15733. * src/PeerInteractionCommand.cc : Use Command::logger.
  15734. * src/HttpResponseCommand.cc : Use Command::logger.
  15735. * src/SegmentMan.h : Made logger private.
  15736. * src/TorrentMan.h : Made logger private.
  15737. * src/TorrentMan.cc : Use LogFactory.
  15738. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15739. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15740. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15741. Use LogFactory.
  15742. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15743. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15744. Use LogFactory.
  15745. * src/DownloadCommand.cc : Use Command::logger.
  15746. * src/PeerAbstractCommand.cc : Use Command::logger.
  15747. * src/PeerListenCommand.cc : Use Command::logger.
  15748. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15749. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15750. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15751. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15752. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15753. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15754. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15755. Use LogFactory.
  15756. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15757. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15758. Use LogFactory.
  15759. * src/main.cc (main): Use LogFactory.
  15760. * src/DiskAdaptor.h (logger): New variable.
  15761. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15762. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15763. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15764. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15765. parameter to a tracker request.
  15766. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15767. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15768. * src/main.cc (setSignalHander): New function.
  15769. (main): Added a handler for SIGTERM.
  15770. (handler): Updated message.
  15771. (torrentHandler): Updated message.
  15772. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15773. * src/TorrentConsoleDownloadEngine.cc
  15774. (onPartialDownloadingCompletes): Renamed as
  15775. onSelectiveDownloadingCompletes.
  15776. (onSelectiveDownloadingCompletes): Updated message.
  15777. To add DiskAdaptor which abstract DiskWriter family:
  15778. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15779. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15780. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15781. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15782. MultiDiskAdaptor.h.
  15783. (readFileEntry): Changed its arguments.
  15784. (setup): setupDiskWriter is merged into this function.
  15785. (setupDiskWriter): Removed.
  15786. (setFileFilter): New function.
  15787. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15788. made in readFileEntry.
  15789. (getFilePath): Removed.
  15790. (getTempFilePath): Removed.
  15791. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15792. (fixFilename): Removed.
  15793. (copySingleFile): Removed.
  15794. (splitMultiFile): Removed.
  15795. (deleteTempFile): Removed.
  15796. (setFileEntriesToDownload): Removed.
  15797. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15798. (isSelectiveDownloadingMode): New function.
  15799. (setAllMultiFileRequestedState): Removed.
  15800. (finishPartialDownloadingMode): Renamed as
  15801. finishSelectiveDownloadingMode.
  15802. (finishSelectiveDownloadingMode): New function.
  15803. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15804. (getSelectedTotalLength): New function.
  15805. (onDownloadComplete): Use diskAdaptor.
  15806. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15807. (Range): Removed.
  15808. (setMultiFileEntries): Renamed as setFileEntries.
  15809. (setFileEntries): New function.
  15810. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15811. (pieceLength): New variable.
  15812. * src/main.cc (printDownloadCompeleteMessage): New function.
  15813. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15814. (main): Renamed torrent-show-files to show-files.
  15815. Rewritten file contents listing.
  15816. * src/TorrentMan.h (FileEntry): Removed.
  15817. (multiFileTopDir): Removed.
  15818. (multiFileEntries): Removed.
  15819. (diskWriter): Removed.
  15820. (diskAdaptor): New variable.
  15821. * src/DefaultDiskWriter.h (totalLength): New variable.
  15822. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15823. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15824. diskWriter.
  15825. * src/TorrentConsoleDownloadEngine.h
  15826. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15827. (partialTotalLength): Renamed as selectedTotalLength.
  15828. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15829. openExistingFile, otherwise call initAndOpenFile.
  15830. (closeFile): fd > 0, not fd != 0.
  15831. * src/DirectDiskAdaptor.h: New class.
  15832. * src/DirectDiskAdaptor.cc: New class.
  15833. * src/MultiDiskAdaptor.h: New class.
  15834. * src/MultiDiskAdaptor.cc: New class.
  15835. * src/CopyDiskAdaptor.h: New class.
  15836. * src/CopyDiskAdaptor.cc: New class.
  15837. * src/DiskAdaptor.h: New class.
  15838. * src/DiskAdaptor.cc: New class.
  15839. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15840. (PREF_SHOW_FILES): New definition.
  15841. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15842. To add the ability to download multi torrent into respective files
  15843. directly:
  15844. * src/DiskWriter.h (openFile): New function.
  15845. (seek): Removed.
  15846. * src/MultiDiskWriter.h: New class.
  15847. * src/MultiDiskWriter.cc: New class.
  15848. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15849. protected.
  15850. (openFile): New function.
  15851. * src/AbstractDiskWriter.cc (openFile): New function.
  15852. * src/prefs.h (V_FALSE): New definition.
  15853. (PREF_DIRECT_FILE_MAPPING): New definition.
  15854. * src/TorrentMan.h (setupDiskWriter): New function.
  15855. (setAllMultiFileRequestedState): New function.
  15856. (onDownloadComplete): New function.
  15857. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15858. (setupDiskWriter): New function.
  15859. (getFilePath): Updated.
  15860. (getTempFilePath): Updated.
  15861. (getSegmentFilePath): Updated.
  15862. (fixFilename): Updated.
  15863. (deleteTempFile): Updated.
  15864. (setAllMultiFileRequestedState): New function.
  15865. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15866. (finishPartialDownloadingMode): Reset requested flags.
  15867. (onDownloadComplete): New function.
  15868. * src/main.cc: Added --direct-file-mapping option.
  15869. Use TorrentMan::setupDiskWriter().
  15870. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15871. onDownloadComplete().
  15872. To fix ETA bug:
  15873. * src/Util.h (difftvsec): New function.
  15874. * src/Util.cc (difftvsec): New function.
  15875. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15876. type of "elapsed" instead of long long int.
  15877. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15878. The updates of statistics takes place every 1 seconds.
  15879. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15880. (calculateSpeed): Changed its argument signature.
  15881. * src/PeerMessage.cc (toString): Fixed message.
  15882. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15883. To print ETA:
  15884. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15885. completion handling when dealing with
  15886. TorrentMan::isPartialDownloadingMode() == true.
  15887. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15888. New function.
  15889. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15890. (sessionDownloadLength): New variable.
  15891. (avgSpeed): New variable.
  15892. (eta): New variable.
  15893. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15894. new variables: eta, avgSpeed, startup.
  15895. (calculateSpeed): Calculate average speed and ETA.
  15896. (printStatistics): Added ETA.
  15897. * src/Util.h (secfmt): New function.
  15898. * src/Util.cc (secfmt): New function.
  15899. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15900. To detect "keep alive" flooding:
  15901. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15902. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15903. variable: keepAliveCount.
  15904. (detectMessageFlooding): Added "keep alive" flooding detection.
  15905. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15906. received.
  15907. To add the ability to download only specified files in multi-file
  15908. torrent:
  15909. * src/BitfieldMan.h (filterBitfield): New variable.
  15910. (filterEnabled): New variable.
  15911. (setFilterBit): New function.
  15912. (enableFilter): New function.
  15913. (disableFilter): New function.
  15914. (isFilterEnabled): New function.
  15915. (getFilteredTotalLength): New function.
  15916. (getCompletedLength): New function.
  15917. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15918. filterBitfield, filterEnabled.
  15919. (CopyConstructor): Added filterBitfield and filterEnabled.
  15920. (operator==): Added filterBitfield and filterEnabled.
  15921. (Destructor): Added filterBitfield.
  15922. (getMissingIndex): Use filterBitfield.
  15923. (getMissingUnusedIndex): Use filterBitfield.
  15924. (getFirstMissingUnusedIndex): Use filterBitfield.
  15925. (getFirstMissingUnusedIndex): Use filterBitfield.
  15926. (getAllMissingIndexes): Use filterBitfield.
  15927. (countMissingBlock): Use filterBitfield.
  15928. (countBlock): Use filterBitfield.
  15929. (setBitInternal): Added new argument on.
  15930. (setUseBit): Use setBitInternal.
  15931. (unsetUseBit): Use setBitInternal.
  15932. (setBit): Use setBitInternal.
  15933. (unsetBit): Use setBitInternal.
  15934. (isAllBitSet): Use filterBitfield.
  15935. (setFilterBit): New function.
  15936. (addFilter): New function.
  15937. (enableFilter): New function.
  15938. (disableFilter): New function.
  15939. (clearFilter): New function.
  15940. (isFilterEnabled): New function.
  15941. (getFilteredTotalLength): New function.
  15942. (getCompletedLength): New function.
  15943. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15944. Initalized newly added variables.
  15945. [FileEntry](offset): New variable.
  15946. [FileEntry](extracted): New variable.
  15947. [FileEntry](requested): New variable.
  15948. (readFileEntry): New function.
  15949. (option): New variable.
  15950. (splitMultiFile): Removed const qualifier.
  15951. (fixFilename): Removed const qualifier.
  15952. (readFileEntryFromMetaInfoFile): New function.
  15953. (finishPartialDownloadingMode): New function.
  15954. (isPartialDownloadingMode): New function.
  15955. (setFileEntriesToDownload): New function.
  15956. (getCompletedLength): New function.
  15957. (getPartialTotalLength): New function.
  15958. * src/TorrentMan.cc (readFileEntry): New function.
  15959. (setup): Use readFileEntry. If no-preallocation option is specified,
  15960. use DefaultDiskWriter.
  15961. (readFileEntryFromMetaInfoFile): New function.
  15962. (fixFilename): Removed const qualifier.
  15963. (splitMultiFile): Removed const qualifier.
  15964. (setFileEntriesToDownload): New function.
  15965. (isPartialDownloadingMode): New function.
  15966. (finishPartialDownloadingMode): New function.
  15967. (getCompletedLength): New function.
  15968. (getPartialTotalLength): New function.
  15969. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15970. New variable.
  15971. (partialTotalLength): New variable.
  15972. (downloadLength): New variable.
  15973. (totalLength): New variable.
  15974. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15975. Added log.
  15976. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15977. partialTotalLength, downloadLength, totalLength.
  15978. (calculate): Calculate downloadLength and totalLength.
  15979. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15980. * src/main.cc (addCommand): Changed argument signature.
  15981. (main): Added new variable: args. Added new option "torrent-show-files"
  15982. "no-preallocation". Usage is not updated yet.
  15983. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15984. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15985. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15986. Attempt to add the ability to listing file entries in a .torrent file.
  15987. This feature is not yet complete.
  15988. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15989. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15990. (getName): New function.
  15991. * src/TorrentMan.h (getMultiFileEntries): New function.
  15992. (getName): New function.
  15993. * src/main.cc (main): Use above 2 funtion.
  15994. * Release 0.3.2
  15995. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15996. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15997. (detectMessageFlooding): Updated threshold value.
  15998. (checkLongTimePeerChoking): Updated timeout value.
  15999. (getNewPieceAndSendInterest): Added debug log.
  16000. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16001. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16002. (getPeer): Updated.
  16003. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16004. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16005. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16006. is localhost.
  16007. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16008. * src/PendingMessage.cc (processMessage): Not to send piece message
  16009. if peer is not interested in the pieces localhost has.
  16010. * src/Peer.cc (shouldChoke): Updated.
  16011. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16012. * src/Util.cc (isPowerOf): New function.
  16013. * src/Util.h (isPowerOf): New function.
  16014. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16015. whether or not it is power of 2.
  16016. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16017. Added new class SendMessageQueue that includes PendingMessages and
  16018. RequestSlotMan.
  16019. * src/SendMessageQueue.h: New class.
  16020. * src/SendMessageQueue.cc: New class.
  16021. * src/PendingMessage.h: Added new member variable blockIndex and its
  16022. accessors.
  16023. (createRequestMessage): Updated.
  16024. * src/PendingMessage.cc (createRequestMessage): Updated.
  16025. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16026. SendMessageQueue.
  16027. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16028. (receiveMessage): Updated with SendMessageQueue.
  16029. (deletePendingPieceMessage): Removed.
  16030. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16031. (sendInterest): Updated with SendMessageQueue.
  16032. (createRequestPendingMessage): Updated with SendMessageQueue.
  16033. (sendMessages): Updated with SendMessageQueue.
  16034. (onAbort): Updated with SendMessageQueue.
  16035. (keepAlive): Updated with SendMessageQueue.
  16036. (beforeSocketCheck): Updated SendMessageQueue.
  16037. * src/PeerInteractionCommand (sendMessages): Shuffle
  16038. missingBLockIndexes before using it.
  16039. Added its own timeout for peer connection.
  16040. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16041. setter.
  16042. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16043. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16044. Added setTimeout() call.
  16045. (executeInternal): Added setTimeout() call.
  16046. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16047. Added timeout.
  16048. (isTimeoutDetected): Updated.
  16049. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16050. option.
  16051. Added *simple* message flooding checker.
  16052. * src/PeerInteractionCommand.cc (executeInternal):
  16053. Added detectMessageFlooding() call.
  16054. (detectMessageFlooding): New function.
  16055. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16056. (beforeSocketCheck): Added detectMessageFlooding() call.
  16057. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16058. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16059. Removed deletePendingPieceMessage(), getRequestSlot(),
  16060. deleteRequestSlot(), deleteAllRequestSlot().
  16061. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16062. Added checkLongTimePeerChoking() call.
  16063. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16064. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16065. if duplicate == false.
  16066. The parameter "uploaded" and "downloaded" in the tracker request are
  16067. the size since the client sent the "started" event to the tracker.
  16068. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16069. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16070. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16071. getSessionDownloadedSize(), getSessionUploadedSize().
  16072. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16073. getSessionUploadedSize() instead of getDownloadedSize(),
  16074. getUploadedSize().
  16075. * src/PendingMessage.cc (processMessage): Do not send request message
  16076. if the peer is choking the client.
  16077. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16078. less than interval.
  16079. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16080. * configure.in: Added gnutls support. Added several CPP macros.
  16081. * m4/openssl.m4: Added.
  16082. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16083. readData(), peekData(). Added gnutls support.
  16084. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16085. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16086. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16087. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16088. Instead, added a check for whether setup method has executed
  16089. successfully.
  16090. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16091. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16092. * src/Makefile.am: Updated.
  16093. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16094. using whether OpenSSL or gcrypt, depending on the result of configure
  16095. script.
  16096. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16097. messageDigest.h.
  16098. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16099. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16100. Fixed memory leak.
  16101. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16102. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16103. Removed instantiation of TrackerInitCommand. Instead,
  16104. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16105. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16106. ENABLE_SSL.
  16107. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16108. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16109. If a piece is already acquired by another command, delete the request
  16110. slots for the piece.
  16111. * src/TrackerUpdateCommand.cc (execute):
  16112. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16113. Added a check whether peer list is null.
  16114. Fixed the bug that causes sending completed event to the tracker
  16115. several times.
  16116. * src/TrackerInitCommand.cc (execute):
  16117. Fixed the bug that causes sending completed event to the tracker
  16118. several times.
  16119. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16120. by using messageDigest.h.
  16121. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16122. * PeerConnection.cc: Replaced log message "keep-alive" with
  16123. "keep alive".
  16124. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16125. localhost long time.
  16126. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16127. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16128. at most 100 failure entry from the list. If with duplicate = false,
  16129. MAX_PEER_LIST is not checked.
  16130. * PeerListenCommand.cc: Fixed the argument order of log message.
  16131. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16132. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16133. Added warn().
  16134. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16135. Implemented warn().
  16136. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16137. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16138. * Request.h: Added AFTER_COMPLETED event.
  16139. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16140. instead of downloaded size and progress(%) after download completes.
  16141. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16142. message to the peer if it is interested in what localhost has
  16143. downloaded.
  16144. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16145. destination instead of just renaming it.
  16146. * TorrentMan.cc: Added deleteTempFile().
  16147. * PeerAbstractCommand.cc: do not stop execution after download
  16148. completes. This makes localhost a seeder.
  16149. * Util.{h,cc}: Added fileCopy().
  16150. * PeerListenCommand.cc: do not stop execution after download completes.
  16151. This makes localhost a seeder.
  16152. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16153. Added TorrentMan::deleteTempFile() to torrentHandler.
  16154. Initialized the variable dir as ".".
  16155. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16156. Deleted renameSingleFile().
  16157. Added copySingleFile(), deleteTempFile().
  16158. * DownloadEngine.h: Added virtual function afterEachIteration().
  16159. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16160. in onEndOfRun() to afterEachIteration().
  16161. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16162. true.
  16163. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16164. In rangedFileCopy(), added try-catch block to properly close file
  16165. descriptors.
  16166. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16167. Added afterEachIteration(), isFilenameFixed().
  16168. * Peer.cc: Changed choking strategy.
  16169. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16170. * TrackerInitCommand.cc: Send completed event only once.
  16171. * DownloadEngine.cc: Added a call to afterEachIteration().
  16172. * TrackerUpdateCommand.cc: Do not stop execution after download
  16173. completes.
  16174. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16175. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16176. received from a tracker.
  16177. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16178. Decreased the number of failure peers to delete to 0(just comment out
  16179. the line).
  16180. * Release 0.3.1
  16181. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16182. * PeerInteractionCommand.cc: added a call to
  16183. TorrentMan::unadvertisePiece in Destructor.
  16184. * PeerInteractionCommand.cc: make have message sent immediately
  16185. if the size of pending message queue is zero.
  16186. * TorrentMan.cc: set the maximum size of peer list to 250.
  16187. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16188. to deque.
  16189. * Util.cc: fixed rangedFileCopy.
  16190. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16191. to Constructor. Also, moved digest cleanup to Destructor.
  16192. * MetaFileUtil.cc: fixed memory leak
  16193. * replaced std::vector with std::deque.
  16194. * AbstractCommand.cc: casted timeout value to long long int.
  16195. * ChunkedEncoding.cc: fixed memory leak.
  16196. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16197. * SleepCommand.cc: casted timeout value to long long int.
  16198. * Data.cc: fixed memory leak.
  16199. * Data.cc: fixed toLLInt().
  16200. * BitfieldMan.cc: fixed memory leak.
  16201. * TorrentMan.cc: initialized storeDir to ".".
  16202. * TorrentMan.cc: fixed memory leak.
  16203. * TorrentMan.cc: corrected file paths of splitted files.
  16204. * PeerAbstractCommand.cc: casted timeout to long long int.
  16205. * main.cc: added delete(req) and delete(te->diskWriter).
  16206. * RequestSlot.cc: casted timeout value to long long int.
  16207. * Request.cc: fixed memory leak.
  16208. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16209. have the piece.
  16210. * Peer.{h,cc}: added hasPiece(int index).
  16211. * main.cc: corrected addCommand.
  16212. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16213. * BitTorrent protocol support added.
  16214. * Release 0.3.0
  16215. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16216. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16217. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16218. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16219. decoding did not work properly.
  16220. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16221. * DownloadEngine.h: included sys/time.h
  16222. * DownloadEngine.cc: remove sys/time.h
  16223. * Makefile.am (SUBDIRS): Add intl.
  16224. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16225. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16226. * main.cc: correct help message for --http-auth-scheme.
  16227. * main.cc: changed e-mail address for bug reports.
  16228. * ja.po: added japanese translation.
  16229. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16230. * SimpleLogger.cc: flush log file instead of stdout.
  16231. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16232. * main.cc: Fixed command-line option: max-tries
  16233. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16234. does not equal to seg.sp.
  16235. * DownloadCommand.cc: If EOF is got from the server and the total size
  16236. of file is not zero, then throw DlRetryEx.
  16237. * main.cc: Set the minium value of min-segment-size to 1024.
  16238. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16239. fails because of a regression since 0.2.0 release.
  16240. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16241. * HttpConnection.cc:
  16242. * common.h: defined the user agent name as macro
  16243. * DownloadEngine.{h, cc}:
  16244. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16245. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16246. * main.cc: Download complete/abort message is now generated by main.
  16247. * Makefile.am (SUBDIRS): Add m4.
  16248. (ACLOCAL_AMFLAGS): New variable.
  16249. (EXTRA_DIST): New variable.
  16250. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16251. * gettext: added gettext functionality
  16252. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16253. * AbstractCommand.cc:
  16254. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16255. unregister its cuid from SegmentMan.
  16256. * DownloadEngine.cc: .aria2 file was written when a downloading
  16257. failed with errors.
  16258. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16259. Added "User-Agent" header to CONNECT proxy request.
  16260. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16261. properly.
  16262. * Logger.h:
  16263. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16264. * ChunkedEncoding.cc: Added #include directive for strings.h
  16265. * Release 0.2.1
  16266. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16267. * Util.{h,cc}: added startsWith().
  16268. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16269. Util::endsWith().
  16270. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16271. * common.h: added #include directive of limit.h.
  16272. * DownloadEngine.cc: added #include directive of sys/time.h and
  16273. algorithm.
  16274. * Exception.h: added #include directive of stdio.h.
  16275. * AbstractCommand.h: added #include directive of sys/time.h.
  16276. * DownloadCommand.h: added #include directive of sys/time.h.
  16277. * *.h: added #include directive of common.h to all base classes.
  16278. subclasses' one was removed.
  16279. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16280. does not define these macros.
  16281. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16282. * Release 0.2.0
  16283. * main.cc:
  16284. * HttpInitiateConnectionCommand.{h,cc}:
  16285. * prefs.h:
  16286. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16287. We can now use GET command in http proxy.
  16288. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16289. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16290. that splits slowest segment of SegmentMan::commands vector.
  16291. This is the default split algorithm of aria2.
  16292. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16293. that splits first segment of SegmentMan::commands vector.
  16294. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16295. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16296. * Segment.h:
  16297. * SegmentMan.cc: Added speed field to Segment.h
  16298. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16299. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16300. * message.h: Change file size related %d to %lld.
  16301. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16302. * FtpInitiateConnectionCommand.{h,cc}:
  16303. * FtpNegotiationCommand.{h,cc}:
  16304. * FtpDownloadCommand.{h,cc}:
  16305. * FtpConnection.{h,cc}: Added FTP support
  16306. * SimpleLogger.cc: Log message now includes time information.
  16307. * main.cc: The value of --http-auth-scheme option is chagned from
  16308. 'BASIC' to 'basic'
  16309. * main.cc: Added --timeout command-line option.
  16310. * main.cc: Added --min-segment-size command-line option.
  16311. * main.cc: Added --max-retries command-line option.
  16312. * prefs.h: option string constants are now defined in prefs.h
  16313. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16314. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16315. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16316. with version 0.1.0's one.
  16317. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16318. * configure.in: Added --enable-ssl option to configure script.
  16319. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16320. cannot permit absoluteURI as Request-URI.
  16321. * HttpConnection.cc: Added Referer support.
  16322. * main.cc: Added referer command-line option.
  16323. * main.cc: Added rety-wait command-line option.
  16324. * Exception.h: Fixed formating bug in Exception::setMsg()
  16325. * SocketCore.{h,cc}:
  16326. * Socket.{h, cc}:
  16327. * Request.cc:
  16328. * InitiateConnectionCommandFactory.cc:
  16329. * HttpRequestCommand.cc: Added HTTPS support.
  16330. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16331. for SocketCore.
  16332. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16333. size is wrong
  16334. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16335. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16336. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16337. * Release 0.1.0