ChangeLog 664 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359
  1. 2009-12-22 Tatsuhiro Tsujikawa <[email protected]>
  2. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  3. pos and how. This method changes the position of download denoted
  4. by gid. If how is POS_SET, it moves the download to a position
  5. relative to the beginning of the queue. If how is POS_CUR, it
  6. moves the download to a position relative to the current
  7. position. If how is POS_END, it moves the download to a position
  8. relative to the end of the queue. If the destination position is
  9. less than 0 or beyond the end of the queue, it moves the download
  10. to the beginning or the end of the queue respectively. Returns
  11. the destination position.
  12. * src/RequestGroupMan.cc
  13. * src/RequestGroupMan.h
  14. * src/XmlRpcMethodFactory.cc
  15. * src/XmlRpcMethodImpl.cc
  16. * src/XmlRpcMethodImpl.h
  17. * test/RequestGroupManTest.cc
  18. * test/XmlRpcMethodTest.cc
  19. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  20. Added getOption and getGlobalOption to aria2rpc.
  21. * doc/xmlrpc/aria2rpc
  22. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  23. Documented getOption and getGlobalOption XML-RPC method in man
  24. page
  25. * doc/aria2c.1.txt
  26. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  27. Added getOption and getGlobalOption XML-RPC method. getOption
  28. takes GID as a parameter and returns its options as struct.
  29. getGlobalOption takes no parameter and returns global
  30. options. Because global option is used as a template for the
  31. option of newly added downloads, it includes options returned by
  32. getOption.
  33. * src/Option.h
  34. * src/XmlRpcMethodFactory.cc
  35. * src/XmlRpcMethodImpl.cc
  36. * src/XmlRpcMethodImpl.h
  37. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  38. Sort _optionHandlers in OptionParser by name in ascending order.
  39. Use vector instead of deque for efficiency.
  40. * src/OptionHandler.h
  41. * src/OptionHandlerFactory.h
  42. * src/OptionParser.cc
  43. * src/OptionParser.h
  44. * src/version_usage.cc
  45. * test/OptionParserTest.cc
  46. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  47. Code cleanup
  48. * src/XmlRpcMethod.cc
  49. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  50. Documented about followedBy and belongsTo in man page.
  51. * doc/aria2c.1.txt
  52. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  53. Added following 2 keys, followedBy and belongsTo, to the response
  54. of tellStatus.
  55. followedBy: List of GIDs which are generated by the consequence of
  56. this download. For example, when aria2 downloaded Metalink file,
  57. it generates downloads described in it(see *--follow-metalink*
  58. option). This value is useful to track these auto generated
  59. downloads. If there is no such downloads, this key will not be
  60. included in the response.
  61. belongsTo: GID of a parent download. Some downloads are a part of
  62. another download. For example, if a file in Metalink has
  63. BitTorrent resource, the download of .torrent is a part of that
  64. file. If this download has no parent, this key will not be
  65. included in the response.
  66. * src/BtPostDownloadHandler.cc
  67. * src/DownloadResult.h
  68. * src/Metalink2RequestGroup.cc
  69. * src/MetalinkPostDownloadHandler.cc
  70. * src/RequestGroup.cc
  71. * src/RequestGroup.h
  72. * src/UTMetadataPostDownloadHandler.cc
  73. * src/XmlRpcMethodImpl.cc
  74. * src/XmlRpcMethodImpl.h
  75. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  76. Assigned BObject in BDE() to avoid segmentation fault when calling
  77. methods of BDE::none().
  78. * src/BDE.cc
  79. 2009-12-18 Tatsuhiro Tsujikawa <[email protected]>
  80. Show info hash in Magnet URI in upper case letters in -S output.
  81. * src/bittorrent_helper.cc
  82. * test/BittorrentHelperTest.cc
  83. 2009-12-18 Tatsuhiro Tsujikawa <[email protected]>
  84. Removed old useless comment
  85. * src/MultiUrlRequestInfo.cc
  86. 2009-12-16 Tatsuhiro Tsujikawa <[email protected]>
  87. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  88. not properly used in configure script and failed to detect gnutls.
  89. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  90. and the initialization of pkg-config is done in first occurrence
  91. of PKG_CHECK_MODULES which is not executed because it is inside of
  92. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  93. * configure.ac
  94. 2009-12-13 Tatsuhiro Tsujikawa <[email protected]>
  95. Release 1.7.2
  96. 2009-12-13 Tatsuhiro Tsujikawa <[email protected]>
  97. Fixed the bug that RequestGroupMan::downloadFinished() returns
  98. true even if all downloads haven't finished, especially when
  99. PostDownloadHandler is involved. Changed the condition so that it
  100. only returns true if both _requestGroups and _reservedGroups are
  101. empty.
  102. * src/RequestGroupMan.cc
  103. 2009-12-13 Tatsuhiro Tsujikawa <[email protected]>
  104. Log listening port for BitTorrent/DHT in notice level.
  105. * src/DHTConnectionImpl.cc
  106. * src/PeerListenCommand.cc
  107. 2009-12-12 Tatsuhiro Tsujikawa <[email protected]>
  108. Updated po templates.
  109. * po/aria2.pot
  110. 2009-12-12 Tatsuhiro Tsujikawa <[email protected]>
  111. Bump up version number to 1.7.2
  112. * configure.ac
  113. 2009-12-11 Tatsuhiro Tsujikawa <[email protected]>
  114. Changed default value of --enable-dht from 'false' to 'true'.
  115. * doc/aria2c.1.txt
  116. 2009-12-11 Tatsuhiro Tsujikawa <[email protected]>
  117. Enabled DHT by default because of Magnet URI support. To disable
  118. DHT, use --enable-dht=false
  119. * src/OptionHandlerFactory.cc
  120. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  121. Print Magnet URI in -S output.
  122. * src/AnnounceList.cc
  123. * src/bittorrent_helper.cc
  124. * src/bittorrent_helper.h
  125. * test/BittorrentHelperTest.cc
  126. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  127. Added --bt-prioritize-piece option to aria2rpc.
  128. * doc/xmlrpc/aria2rpc
  129. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  130. Refer Magnet URI in --help. Made some cosmetic changes.
  131. * src/version_usage.cc
  132. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  133. Updated -T and -M option.
  134. * doc/aria2c.1.txt
  135. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  136. Fixed typo
  137. * doc/aria2c.1.txt
  138. 2009-12-09 Tatsuhiro Tsujikawa <[email protected]>
  139. Fixed the bug that line separator is missing in horizontal bar.
  140. * doc/xmlrpc/aria2mon
  141. 2009-12-09 Tatsuhiro Tsujikawa <[email protected]>
  142. Updated usage text for --metalink-file option.
  143. * src/usage_text.h
  144. 2009-12-09 Tatsuhiro Tsujikawa <[email protected]>
  145. If '-' is given as an argument to --metalink-file option, aria2
  146. reads Metalink file from stdin.
  147. * src/OptionHandlerFactory.cc
  148. * src/OptionHandlerImpl.h
  149. * src/a2io.h
  150. 2009-12-08 Tatsuhiro Tsujikawa <[email protected]>
  151. Fixed the bug that aria2 listens wrong port if --interface option
  152. is used.
  153. * src/SocketCore.cc
  154. 2009-12-07 Tatsuhiro Tsujikawa <[email protected]>
  155. Fixed the bug that query parameter in magnet URI is not decoded.
  156. * src/magnet.cc
  157. * test/MagnetTest.cc
  158. 2009-12-07 Tatsuhiro Tsujikawa <[email protected]>
  159. Specified defaultSize as an argument for easy testing.
  160. * src/util.cc
  161. * src/util.h
  162. * test/UtilTest.cc
  163. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  164. Release 1.7.1
  165. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  166. Bump up version number to 1.7.1
  167. * configure.ac
  168. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  169. Fixed the bug --bt-prioritize-piece=tail is not working.
  170. * src/util.cc
  171. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  172. Release 1.7.0
  173. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  174. Updated po templates.
  175. * po/aria2.pot
  176. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  177. Updated help message for --bt-prioritize-piece. Some cosmetic
  178. changes.
  179. * doc/aria2c.1.txt
  180. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  181. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  182. * src/usage_text.h
  183. * src/util.cc
  184. * test/UtilTest.cc
  185. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  186. Updated Russian, Ukrainian, German and French translations.
  187. Thanks to all translators involved.
  188. * po/de.po
  189. * po/fr.po
  190. * po/ru.po
  191. * po/uk.po
  192. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  193. Mentioned about pkg-config
  194. * README
  195. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  196. Fixed typo. Referred --index-out option in BitTorrent notes.
  197. * README
  198. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  199. Store all addresses found by getifaddrs() and getaddrinfo(). In
  200. bind, try all addresses until success
  201. * src/SocketCore.cc
  202. * src/SocketCore.h
  203. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  204. Updated po templates.
  205. * po/aria2.pot
  206. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  207. Bump up version number to 1.7.0
  208. * configure.ac
  209. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  210. Fixed compile error if ENABLE_BITTORRENT is undefined.
  211. * src/DefaultPieceStorage.cc
  212. * src/DefaultPieceStorage.h
  213. * src/PieceStorage.h
  214. * src/UnknownLengthPieceStorage.cc
  215. * src/UnknownLengthPieceStorage.h
  216. * test/MockPieceStorage.h
  217. * test/ProtocolDetectorTest.cc
  218. * test/XmlRpcMethodTest.cc
  219. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  220. Documented in man page that if getifaddrs() is missing,
  221. --interface option doesn't accept interface name.
  222. * doc/aria2c.1.txt
  223. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  224. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  225. * src/DefaultBtAnnounce.cc
  226. * src/DefaultBtAnnounce.h
  227. * test/DefaultBtAnnounceTest.cc
  228. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  229. Fixed the bug that connection is always dropped if handshake
  230. message in extension protocol don't have metadata_size.
  231. src/HandshakeExtensionMessage.cc
  232. * src/HandshakeExtensionMessage.cc
  233. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  234. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  235. text saying DHT is recommended when Magnet URI is provided.
  236. * doc/aria2c.1.txt
  237. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  238. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  239. URI is supplied. Notify user that they should consider enabling
  240. DHT if they use Magnet URI.
  241. * src/RequestGroup.cc
  242. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  243. Added --disable-ipv6 option to disable IPv6.
  244. * doc/aria2c.1.txt
  245. * src/InitiateConnectionCommand.cc
  246. * src/NameResolver.cc
  247. * src/NameResolver.h
  248. * src/OptionHandlerFactory.cc
  249. * src/main.cc
  250. * src/prefs.cc
  251. * src/prefs.h
  252. * src/usage_text.h
  253. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  254. Updated usage text for --bt-prioritize-piece option.
  255. * doc/aria2c.1.txt
  256. * src/usage_text.h
  257. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  258. In configure script, if --with-PACKAGE and --enable-FEATURE are
  259. given and PACKAGE is missing in the system or FEATURE cannot be
  260. enabled, print error message and stop the script.
  261. * configure.ac
  262. * m4/aria2_arg.m4
  263. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  264. Halt metadata download immediately when metadata download is done.
  265. Don't wait unresponsive tracker.
  266. * src/ByteArrayDiskWriter.h
  267. * src/DefaultBtInteractive.cc
  268. * src/DefaultExtensionMessageFactory.cc
  269. * src/DefaultExtensionMessageFactory.h
  270. * src/PeerInteractionCommand.cc
  271. * src/UTMetadataDataExtensionMessage.cc
  272. * src/UTMetadataDataExtensionMessage.h
  273. * src/UTMetadataRequestExtensionMessage.cc
  274. * test/UTMetadataDataExtensionMessageTest.cc
  275. * test/UTMetadataRequestExtensionMessageTest.cc
  276. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  277. Documented --interface option in man page.
  278. * doc/aria2c.1.txt
  279. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  280. Try resolved address in the order received from the resolver.
  281. * src/DNSCache.h
  282. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  283. Added debug logs.
  284. * src/SocketCore.cc
  285. 2009-12-03 Tatsuhiro Tsujikawa <[email protected]>
  286. Fixed type of tail to uint64_t
  287. * src/util.cc
  288. 2009-12-03 Tatsuhiro Tsujikawa <[email protected]>
  289. Added --interface option. This feature binds sockets to given
  290. interface. You can specify interface name, IP address and
  291. hostname.
  292. * configure.ac
  293. * src/OptionHandlerFactory.cc
  294. * src/SocketCore.cc
  295. * src/SocketCore.h
  296. * src/main.cc
  297. * src/message.h
  298. * src/prefs.cc
  299. * src/prefs.h
  300. * src/usage_text.h
  301. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  302. Updated man page for bt-prioritize-piece option in -i list.
  303. * doc/aria2c.1.txt
  304. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  305. Added bt-prioritize-piece option to -i list.
  306. * src/download_helper.cc
  307. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  308. Removed --http-auth-scheme option from man page.
  309. * doc/aria2c.1.txt
  310. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  311. Removed --http-auth-scheme option since it doesn't do nothing.
  312. * src/OptionHandlerFactory.cc
  313. * src/prefs.cc
  314. * src/prefs.h
  315. * src/usage_text.h
  316. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  317. Adjusted the number of peer info which get_peers reply message can
  318. carry.
  319. * src/DHTGetPeersReplyMessage.cc
  320. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  321. Added extension_message_test_helper.h to aria2c_SOURCES.
  322. * test/Makefile.am
  323. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  324. Documented --bt-prioritize-piece option in man page.
  325. * doc/aria2c.1.txt
  326. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  327. Added option --bt-prioritize-piece. This option instruct aria2 to
  328. try to download first and last pieces of each file first. The
  329. argument can contain 2 keywords:head and tail. To include both
  330. keywords, they must be separated by comma. These keywords can take
  331. one parameter, SIZE. For example , if head=SIZE is specified,
  332. pieces in the range of first SIZE bytes of each file get higher
  333. priority. tail=SIZE means the range of last SIZE bytes of each
  334. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  335. * src/DefaultPieceStorage.h
  336. * src/Makefile.am
  337. * src/OptionHandlerFactory.cc
  338. * src/OptionHandlerImpl.h
  339. * src/PriorityPieceSelector.cc
  340. * src/PriorityPieceSelector.h
  341. * src/RequestGroup.cc
  342. * src/prefs.cc
  343. * src/prefs.h
  344. * src/usage_text.h
  345. * src/util.cc
  346. * src/util.h
  347. * test/Makefile.am
  348. * test/MockPieceSelector.h
  349. * test/PriorityPieceSelectorTest.cc
  350. * test/UtilTest.cc
  351. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  352. Fixed typo
  353. * src/HttpRequest.h
  354. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  355. In Magnet URI with tr parameter, put each announce URI in separate
  356. tier.
  357. * src/bittorrent_helper.cc
  358. * test/BittorrentHelperTest.cc
  359. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  360. Renamed ExtensionMessage::getBencodedData() as
  361. ExtensionMessage::getPayload()
  362. * src/BtExtendedMessage.cc
  363. * src/ExtensionMessage.h
  364. * src/HandshakeExtensionMessage.cc
  365. * src/HandshakeExtensionMessage.h
  366. * src/UTMetadataDataExtensionMessage.cc
  367. * src/UTMetadataDataExtensionMessage.h
  368. * src/UTMetadataRejectExtensionMessage.cc
  369. * src/UTMetadataRejectExtensionMessage.h
  370. * src/UTMetadataRequestExtensionMessage.cc
  371. * src/UTMetadataRequestExtensionMessage.h
  372. * src/UTPexExtensionMessage.cc
  373. * src/UTPexExtensionMessage.h
  374. * test/HandshakeExtensionMessageTest.cc
  375. * test/MockExtensionMessage.h
  376. * test/UTMetadataDataExtensionMessageTest.cc
  377. * test/UTMetadataRejectExtensionMessageTest.cc
  378. * test/UTMetadataRequestExtensionMessageTest.cc
  379. * test/UTPexExtensionMessageTest.cc
  380. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  381. Updated man page for BitTorrent Magnet URI.
  382. * doc/aria2c.1.txt
  383. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  384. Call DownloadContext::setOwnerRequestGroup() in
  385. RequestGroup::setDownloadContext().
  386. * src/BtDependency.cc
  387. * src/RequestGroup.cc
  388. * src/RequestGroup.h
  389. * src/download_helper.cc
  390. * test/DefaultBtMessageDispatcherTest.cc
  391. * test/DefaultExtensionMessageFactoryTest.cc
  392. * test/HandshakeExtensionMessageTest.cc
  393. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  394. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  395. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  396. from metadata, use new metadata2Torrent() function.
  397. * src/BtDependency.cc
  398. * src/UTMetadataPostDownloadHandler.cc
  399. * src/bittorrent_helper.cc
  400. * src/bittorrent_helper.h
  401. * test/BittorrentHelperTest.cc
  402. * test/BtDependencyTest.cc
  403. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  404. Use createRequestGroupForUri to create the download for torrent
  405. file.
  406. * src/Metalink2RequestGroup.cc
  407. * test/Metalink2RequestGroupTest.cc
  408. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  409. Fixed typo
  410. * src/DownloadContext.h
  411. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  412. Use createRequestGroupForBitTorrent()
  413. * src/BtPostDownloadHandler.cc
  414. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  415. Added remove().
  416. * src/Option.cc
  417. * src/Option.h
  418. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  419. Removed options which is only valid for URIs specified in
  420. command-line. If they are left, because op is used as a template
  421. for new RequestGroup(such as created in XML-RPC command,
  422. BtPostDownloadHandler etc), they causes unintentional effect.
  423. * src/main.cc
  424. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  425. Refer to option value of PREF_OUT only in download_helper.
  426. * src/FtpNegotiationCommand.cc
  427. * src/HttpResponseCommand.cc
  428. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  429. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  430. * src/download_helper.cc
  431. * src/download_helper.h
  432. * src/XmlRpcMethodImpl.cc
  433. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  434. Updated man page for changeOption XML-RPC method.
  435. * doc/aria2c.1.txt
  436. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  437. Added --bt-max-peers option to changeOption XML-RPC method.
  438. * src/XmlRpcMethod.cc
  439. * src/XmlRpcMethodImpl.cc
  440. * test/XmlRpcMethodTest.cc
  441. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  442. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  443. * test/XmlRpcMethodTest.cc
  444. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  445. Removed redundant DownloadContext::hasAttribute(...) calls.
  446. * src/ConsoleStatCalc.cc
  447. * src/RequestGroup.cc
  448. * src/XmlRpcMethodImpl.cc
  449. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  450. Changed the number of tracker request attempt from 5 to 2.
  451. * src/TrackerWatcherCommand.cc
  452. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  453. Use host and protocol in original URI, because URI selector
  454. selects URI based on original URI, not redirected one.
  455. * src/Request.cc
  456. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  457. Fixed the bug which causes segmentation fault with tellWaiting
  458. XML-RPC method when BitTorrent download is waiting. The key of
  459. BtRegistry is changed from info hash to GID, because it is
  460. registered per RequestGroup, not info hash.
  461. * src/BtRegistry.cc
  462. * src/BtRegistry.h
  463. * src/BtSetup.cc
  464. * src/ConsoleStatCalc.cc
  465. * src/InitiatorMSEHandshakeCommand.cc
  466. * src/PeerInitiateConnectionCommand.cc
  467. * src/PeerInteractionCommand.cc
  468. * src/PeerInteractionCommand.h
  469. * src/PeerReceiveHandshakeCommand.cc
  470. * src/RequestGroup.cc
  471. * src/XmlRpcMethodImpl.cc
  472. * test/BtRegistryTest.cc
  473. * test/XmlRpcMethodTest.cc
  474. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  475. Updated man page for changeOption XML-RPC method.
  476. * doc/aria2c.1.txt
  477. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  478. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  479. method.
  480. * src/XmlRpcMethod.cc
  481. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  482. Documented about BitTorrent Magnet URI in man page.
  483. * doc/aria2c.1.txt
  484. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  485. Fixed the bug that trackers in BitTorrent Magnet URI are not
  486. inherited to generated RequestGroup.
  487. * src/UTMetadataPostDownloadHandler.cc
  488. * test/UTMetadataPostDownloadHandlerTest.cc
  489. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  490. Prepended "[METADATA]" before dn.
  491. * src/bittorrent_helper.cc
  492. * test/BittorrentHelperTest.cc
  493. 2009-11-24 Tatsuhiro Tsujikawa <[email protected]>
  494. Rewritten Magnet URI parser.
  495. * src/Makefile.am
  496. * src/ProtocolDetector.cc
  497. * src/bittorrent_helper.cc
  498. * src/bittorrent_helper.h
  499. * src/download_helper.cc
  500. * src/magnet.cc
  501. * src/magnet.h
  502. * test/BittorrentHelperTest.cc
  503. * test/MagnetTest.cc
  504. * test/Makefile.am
  505. * test/ProtocolDetectorTest.cc
  506. 2009-11-24 Tatsuhiro Tsujikawa <[email protected]>
  507. Use hton64
  508. * src/base32.cc
  509. 2009-11-24 Tatsuhiro Tsujikawa <[email protected]>
  510. Added Base32 encoded BitTorrent Magnet Link support.
  511. * src/Makefile.am
  512. * src/base32.cc
  513. * src/base32.h
  514. * src/bittorrent_helper.cc
  515. * test/Base32Test.cc
  516. * test/BittorrentHelperTest.cc
  517. * test/Makefile.am
  518. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  519. Added BitTorrent Magnet Link support. Base32 encoded link is not
  520. supported yet. Fixed typo in method name in RequestGroup. In
  521. metadataGetMode, don't show "Your share ratio was ..." message.
  522. * src/DefaultBtInteractive.cc
  523. * src/DefaultBtInteractive.h
  524. * src/DownloadHandlerFactory.cc
  525. * src/DownloadHandlerFactory.h
  526. * src/HandshakeExtensionMessage.cc
  527. * src/Makefile.am
  528. * src/Metalink2RequestGroup.cc
  529. * src/PeerInteractionCommand.cc
  530. * src/RequestGroup.cc
  531. * src/RequestGroup.h
  532. * src/UTMetadataPostDownloadHandler.cc
  533. * src/UTMetadataPostDownloadHandler.h
  534. * src/download_helper.cc
  535. * test/HandshakeExtensionMessageTest.cc
  536. * test/Makefile.am
  537. * test/UTMetadataPostDownloadHandlerTest.cc
  538. * test/UTMetadataRejectExtensionMessageTest.cc
  539. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  540. In metadataGetMode, don't show SEEDING.
  541. * src/ConsoleStatCalc.cc
  542. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  543. Fixed ut_metadata data handling. Implemented
  544. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  545. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  546. metadata_size is received.
  547. * src/DefaultExtensionMessageFactory.cc
  548. * src/DefaultExtensionMessageFactory.h
  549. * src/HandshakeExtensionMessage.cc
  550. * src/HandshakeExtensionMessage.h
  551. * src/UTMetadataDataExtensionMessage.cc
  552. * src/UTMetadataDataExtensionMessage.h
  553. * src/UTMetadataRequestExtensionMessage.cc
  554. * src/UTMetadataRequestFactory.cc
  555. * src/UTMetadataRequestFactory.h
  556. * src/UTMetadataRequestTracker.cc
  557. * src/UTMetadataRequestTracker.h
  558. * test/DefaultExtensionMessageFactoryTest.cc
  559. * test/HandshakeExtensionMessageTest.cc
  560. * test/MockBtMessage.h
  561. * test/UTMetadataDataExtensionMessageTest.cc
  562. * test/UTMetadataRequestExtensionMessageTest.cc
  563. * test/UTMetadataRequestFactoryTest.cc
  564. * test/UTMetadataRequestTrackerTest.cc
  565. * test/extension_message_test_helper.h
  566. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  567. Drop connection if ut_metadata reject message is received.
  568. * src/UTMetadataRejectExtensionMessage.cc
  569. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  570. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  571. get high enough in that mode.
  572. * src/ActivePeerConnectionCommand.cc
  573. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  574. Added BitTorrent magnet link support to ProtocolDetector.
  575. * src/ProtocolDetector.cc
  576. * src/ProtocolDetector.h
  577. * test/ProtocolDetectorTest.cc
  578. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  579. Don't inject validator into BtMessage in metadataGetMode because
  580. most of the checks depends on the total length of download but it
  581. is unknown. Delegate metadataGetMode to BtMessage.
  582. * src/DefaultBtMessageFactory.cc
  583. * src/DefaultBtMessageFactory.h
  584. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  585. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  586. * src/DefaultPieceStorage.h
  587. * src/PieceStorage.h
  588. * src/UnknownLengthPieceStorage.h
  589. * test/MockPieceStorage.h
  590. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  591. Added markTotalLengthIsKnown().
  592. * src/DownloadContext.h
  593. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  594. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  595. missing. If metadata is missing, always use DHT when it is ready.
  596. * src/BtSetup.cc
  597. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  598. Added parseMagnetLink(). Hex encoded info hash is supported.
  599. Base32 encoded info hash is not supported yet.
  600. * src/bittorrent_helper.cc
  601. * src/bittorrent_helper.h
  602. * test/BittorrentHelperTest.cc
  603. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  604. Added FromHex()
  605. * src/util.cc
  606. * src/util.h
  607. * test/UtilTest.cc
  608. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  609. Added _metadataGetMode member variable. It toggles the action when
  610. messages are received: usually they almost do nothing if
  611. _metadataGetMode is true.
  612. * src/AbstractBtMessage.cc
  613. * src/AbstractBtMessage.h
  614. * src/BtAllowedFastMessage.cc
  615. * src/BtBitfieldMessage.cc
  616. * src/BtCancelMessage.cc
  617. * src/BtChokeMessage.cc
  618. * src/BtHaveAllMessage.cc
  619. * src/BtHaveMessage.cc
  620. * src/BtInterestedMessage.cc
  621. * src/BtNotInterestedMessage.cc
  622. * src/BtPieceMessage.cc
  623. * src/BtRejectMessage.cc
  624. * src/BtRequestMessage.cc
  625. * src/BtUnchokeMessage.cc
  626. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  627. Added bencode::decode overload functions. They have extra argument
  628. 'end', passed by reference. 'end' points to the beyond the last
  629. position of data used in decoding process.
  630. * src/bencode.cc
  631. * src/bencode.h
  632. * test/BencodeTest.cc
  633. 2009-11-21 Tatsuhiro Tsujikawa <[email protected]>
  634. Initial support of Extension for Peers to Send Metadata
  635. Files(BEP9). Currently aria2 only serves metadata and cannot get
  636. metadata from swarm.
  637. * src/BtConstants.h
  638. * src/DefaultBtInteractive.cc
  639. * src/DefaultExtensionMessageFactory.cc
  640. * src/DefaultExtensionMessageFactory.h
  641. * src/ExtensionMessage.h
  642. * src/ExtensionMessageRegistry.h
  643. * src/HandshakeExtensionMessage.cc
  644. * src/HandshakeExtensionMessage.h
  645. * src/Makefile.am
  646. * src/PeerConnection.h
  647. * src/PeerInteractionCommand.cc
  648. * src/UTMetadataDataExtensionMessage.cc
  649. * src/UTMetadataDataExtensionMessage.h
  650. * src/UTMetadataExtensionMessage.cc
  651. * src/UTMetadataExtensionMessage.h
  652. * src/UTMetadataRejectExtensionMessage.cc
  653. * src/UTMetadataRejectExtensionMessage.h
  654. * src/UTMetadataRequestExtensionMessage.cc
  655. * src/UTMetadataRequestExtensionMessage.h
  656. * src/bittorrent_helper.cc
  657. * src/bittorrent_helper.h
  658. * test/BittorrentHelperTest.cc
  659. * test/DefaultExtensionMessageFactoryTest.cc
  660. * test/HandshakeExtensionMessageTest.cc
  661. * test/Makefile.am
  662. * test/UTMetadataDataExtensionMessageTest.cc
  663. * test/UTMetadataRejectExtensionMessageTest.cc
  664. * test/UTMetadataRequestExtensionMessageTest.cc
  665. 2009-11-21 Tatsuhiro Tsujikawa <[email protected]>
  666. Cancel segment in prepareForRetry() because there is a chance that
  667. the command has segments.
  668. * src/CreateRequestCommand.cc
  669. 2009-11-20 Tatsuhiro Tsujikawa <[email protected]>
  670. Fixed the bug that slow server is not knocked down in favor of
  671. faster one.
  672. * src/AbstractCommand.cc
  673. * src/DefaultPieceStorage.cc
  674. * src/DefaultPieceStorage.h
  675. * src/PieceStorage.h
  676. * src/UnknownLengthPieceStorage.cc
  677. * src/UnknownLengthPieceStorage.h
  678. * test/MockPieceStorage.h
  679. 2009-11-20 Tatsuhiro Tsujikawa <[email protected]>
  680. Fixed the bug that Request object is not added to
  681. _inFlightRequests in findFasterRequest().
  682. * src/FileEntry.cc
  683. 2009-11-18 Tatsuhiro Tsujikawa <[email protected]>
  684. Changed the strategry of how to increase the number of outstanding
  685. requests. Now the number is doubled if there are no outstanding
  686. requests after receiving messages.
  687. * src/BtConstants.h
  688. * src/DefaultBtInteractive.cc
  689. * src/DefaultBtInteractive.h
  690. 2009-11-18 Tatsuhiro Tsujikawa <[email protected]>
  691. Check socket for reading if there are outstanding requests.
  692. * src/PeerInteractionCommand.cc
  693. 2009-11-17 Tatsuhiro Tsujikawa <[email protected]>
  694. Moved frequently called methods to header file so they get
  695. inlined.
  696. * src/RequestSlot.cc
  697. * src/RequestSlot.h
  698. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  699. Copied in_addr instead of just casting from char* which might
  700. violate strict aliasing rules.
  701. * src/AsyncNameResolver.cc
  702. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  703. Use dynamic_pointer_cast
  704. * test/BtPieceMessageTest.cc
  705. * test/BtRequestMessageTest.cc
  706. * test/DefaultBtRequestFactoryTest.cc
  707. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  708. Added testSetUrl20()
  709. * test/RequestTest.cc
  710. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  711. Code cleanup
  712. * src/bittorrent_helper.cc
  713. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  714. Use C++ style cast
  715. * src/AsyncNameResolver.cc
  716. * src/Base64.h
  717. * src/BtBitfieldMessage.cc
  718. * src/BtHandshakeMessage.cc
  719. * src/DefaultBtMessageFactory.cc
  720. * src/DefaultBtProgressInfoFile.cc
  721. * src/EpollEventPoll.cc
  722. * src/ExpatMetalinkProcessor.cc
  723. * src/IteratableChecksumValidator.cc
  724. * src/IteratableChunkChecksumValidator.cc
  725. * src/MessageDigestHelper.cc
  726. * src/Platform.cc
  727. * src/RequestGroupMan.cc
  728. * src/SingleFileAllocationIterator.cc
  729. * src/Sqlite3MozCookieParser.cc
  730. * src/XML2SAXMetalinkProcessor.cc
  731. * src/Xml2XmlRpcRequestProcessor.cc
  732. * src/util.cc
  733. * src/util.h
  734. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  735. Fixed integer potential alignment problem.
  736. * src/bitfield.h
  737. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  738. Applied a patch from tizianomueller to fix sigbus errors on Linux
  739. sparc. I modified the patch to eliminate a cast to uint32_t* and
  740. include file ordering.
  741. * src/PeerListProcessor.h
  742. * src/bittorrent_helper.cc
  743. 2009-11-13 Tatsuhiro Tsujikawa <[email protected]>
  744. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  745. * src/Request.cc
  746. * src/util.cc
  747. * src/util.h
  748. * test/RequestTest.cc
  749. 2009-11-13 Tatsuhiro Tsujikawa <[email protected]>
  750. Rewritten util::uitos()
  751. * src/util.h
  752. 2009-11-13 Tatsuhiro Tsujikawa <[email protected]>
  753. Code cleanup
  754. * src/Request.cc
  755. * src/Request.h
  756. 2009-11-12 Tatsuhiro Tsujikawa <[email protected]>
  757. Rewritten Request::parseUrl()
  758. * src/Request.cc
  759. * test/RequestTest.cc
  760. 2009-11-11 Tatsuhiro Tsujikawa <[email protected]>
  761. Removed unused macro SAFE_CHARS
  762. * src/Request.cc
  763. 2009-11-11 Tatsuhiro Tsujikawa <[email protected]>
  764. Updated doc
  765. * src/DHTRoutingTableDeserializer.cc
  766. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  767. Release 1.6.3
  768. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  769. Removed unused function.
  770. * test/DHTPeerAnnounceStorageTest.cc
  771. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  772. Only decrement cols if cols > 0
  773. * src/ConsoleStatCalc.cc
  774. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  775. Updated Polish, Catalan, French, Italian, Russian and Japanese
  776. translations. Thanks to all translators.
  777. * po/ca.po
  778. * po/fr.po
  779. * po/it.po
  780. * po/ja.po
  781. * po/pl.po
  782. * po/ru.po
  783. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  784. Updated translation template
  785. * po
  786. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  787. Fixed compile error without ssl library.
  788. * src/util.cc
  789. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  790. Logged received nodes in get_peers reply message.
  791. * src/DHTAbstractNodeLookupTask.cc
  792. * src/DHTAbstractNodeLookupTask.h
  793. 2009-11-01 Tatsuhiro Tsujikawa <[email protected]>
  794. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  795. error occurred in DHTMessageDispatcherImpl::sendMessage().
  796. * src/DHTMessageDispatcherImpl.cc
  797. 2009-11-01 Tatsuhiro Tsujikawa <[email protected]>
  798. Don't reuse URI if Request pool is not empty.
  799. * src/CreateRequestCommand.cc
  800. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  801. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  802. receive get_peers request for torrent which the client is now
  803. downloading.
  804. * src/BtSetup.cc
  805. * src/DHTPeerAnnounceEntry.cc
  806. * src/DHTPeerAnnounceEntry.h
  807. * src/DHTPeerAnnounceStorage.cc
  808. * src/DHTPeerAnnounceStorage.h
  809. * src/RequestGroup.cc
  810. * test/DHTPeerAnnounceEntryTest.cc
  811. * test/DHTPeerAnnounceStorageTest.cc
  812. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  813. Fixed the bug that in Windows environment new blank line is
  814. inserted when console readout is updated.
  815. * src/ConsoleStatCalc.cc
  816. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  817. Throw exception if binding listening port is failed. Removed
  818. RequestGroupMan::getInitialCommand(). Use
  819. fillRequestGroupFromReserver() instead. Delete commands for
  820. RequestGroup which has errors when it is being added.
  821. * src/BtSetup.cc
  822. * src/DownloadEngine.cc
  823. * src/DownloadEngine.h
  824. * src/DownloadEngineFactory.cc
  825. * src/MultiUrlRequestInfo.cc
  826. * src/RequestGroupMan.cc
  827. * src/RequestGroupMan.h
  828. * test/RequestGroupManTest.cc
  829. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  830. Fixed the bug that when downloading more than one torrent,
  831. listening port is not reported properly to tracker for 2nd or
  832. later torrents.
  833. * src/BtSetup.cc
  834. * src/PeerListenCommand.cc
  835. * src/PeerListenCommand.h
  836. * src/RequestGroup.cc
  837. 2009-10-29 Tatsuhiro Tsujikawa <[email protected]>
  838. Bump up version number to 1.6.3
  839. * configure.ac
  840. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  841. Removed Util.cc from POTFILES.in
  842. * po/POTFILES.in
  843. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  844. Updated man page for previous change.
  845. * doc/aria2c.1.txt
  846. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  847. If user name is embedded but password is missing in URI, first
  848. resolve password using .netrc. If password is found in .netrc,
  849. then use it as password. If not, use the password specified in
  850. --ftp-passwd.
  851. * src/AuthConfigFactory.cc
  852. * src/Request.cc
  853. * src/Request.h
  854. * test/AuthConfigFactoryTest.cc
  855. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  856. Fixed typo
  857. * doc/aria2c.1.txt
  858. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  859. Fixed typo
  860. * src/usage_text.h
  861. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  862. Added missing bitfield.cc
  863. * src/bitfield.cc
  864. 2009-10-23 Tatsuhiro Tsujikawa <[email protected]>
  865. Renamed Util.{cc,h} as util.{cc,h}
  866. * src/Util.cc
  867. * src/Util.h
  868. * src/util.cc
  869. * src/util.h
  870. 2009-10-22 Tatsuhiro Tsujikawa <[email protected]>
  871. Moved static functions in Util class to namespace util.
  872. * src
  873. * test
  874. 2009-10-22 Tatsuhiro Tsujikawa <[email protected]>
  875. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  876. Moved generateRandomKey to bittorrent_helper.cc.
  877. * src/DHTBucket.cc
  878. * src/DHTGetPeersMessage.cc
  879. * src/DHTGetPeersReplyMessage.cc
  880. * src/DHTMessage.cc
  881. * src/DHTNode.cc
  882. * src/DHTTokenTracker.cc
  883. * src/DHTUtil.cc: Removed.
  884. * src/DHTUtil.h: Removed.
  885. * src/Makefile.am
  886. * src/Util.cc
  887. * src/Util.h
  888. * src/bitfield.h
  889. * src/bittorrent_helper.cc
  890. * src/bittorrent_helper.h
  891. * test/ARC4Test.cc
  892. * test/BNodeTest.cc
  893. * test/DHTAnnouncePeerMessageTest.cc
  894. * test/DHTAnnouncePeerReplyMessageTest.cc
  895. * test/DHTFindNodeMessageTest.cc
  896. * test/DHTFindNodeReplyMessageTest.cc
  897. * test/DHTGetPeersMessageTest.cc
  898. * test/DHTGetPeersReplyMessageTest.cc
  899. * test/DHTPingMessageTest.cc
  900. * test/DHTPingReplyMessageTest.cc
  901. * test/DHTTokenTrackerTest.cc
  902. * test/DHTUtilTest.cc: Removed.
  903. * test/Makefile.am
  904. * test/UtilTest.cc
  905. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  906. Removed the call to trim() because trim() is called for each
  907. element in split().
  908. * src/CookieParser.cc
  909. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  910. Replaced Util::slice() with split()
  911. * src/AbstractCommand.cc
  912. * src/CookieParser.cc
  913. * src/File.cc
  914. * src/HttpHeaderProcessor.cc
  915. * src/HttpRequest.cc
  916. * src/Metalink2RequestGroup.cc
  917. * src/MetalinkParserController.cc
  918. * src/Netrc.cc
  919. * src/NsCookieParser.cc
  920. * src/ParameterizedStringParser.cc
  921. * src/ServerStatMan.cc
  922. * src/UriListParser.cc
  923. * src/Util.cc
  924. * src/Util.h
  925. * src/bittorrent_helper.cc
  926. * test/UtilTest.cc
  927. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  928. Use request->getDir() instead of "/" for embedded user/pass in
  929. URI.
  930. * src/AuthConfigFactory.cc
  931. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  932. Fixed wrong insertion point for BasicCred.
  933. * src/AuthConfigFactory.cc
  934. 2009-10-17 Tatsuhiro Tsujikawa <[email protected]>
  935. Allowed non-regular file in LocalFilePathOptionHandler
  936. * src/OptionHandlerImpl.h
  937. * src/message.h
  938. 2009-10-17 Tatsuhiro Tsujikawa <[email protected]>
  939. Fixed the bug that Netrc::parse() cannot recognize comment line.
  940. * src/Netrc.cc
  941. * src/Util.h
  942. * test/NetrcTest.cc
  943. * test/sample.netrc
  944. 2009-10-13 Tatsuhiro Tsujikawa <[email protected]>
  945. Fixed typo
  946. * src/BtDependency.cc
  947. * src/BtRejectMessage.cc
  948. * src/FtpConnection.cc
  949. * src/HttpHeaderProcessor.h
  950. 2009-10-13 Tatsuhiro Tsujikawa <[email protected]>
  951. Fixed lintian report in man page
  952. * doc/aria2c.1.txt
  953. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  954. Release 1.6.2
  955. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  956. Updated Ukrainian translation. Thanks to all translators.
  957. * po/uk.po
  958. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  959. Updated translation template
  960. * po
  961. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  962. Bump up version number to 1.6.2
  963. * configure.ac
  964. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  965. Updated licence message in -v output.
  966. * src/version_usage.cc
  967. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  968. Replaced aria2 with aria2c in help message.
  969. * src/version_usage.cc
  970. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  971. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  972. * src/version_usage.cc
  973. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  974. Quoted localedir
  975. * src/Makefile.am
  976. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  977. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  978. utime. Check header for utime.h.
  979. * configure.ac
  980. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  981. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  982. * configure.ac
  983. * src/daemon.cc
  984. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  985. Don't set localedir manually. Leave it to autoconf.
  986. * configure.ac
  987. * src/Makefile.am
  988. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  989. Added --install to ACLOCAL_AMFLAGS.
  990. Removed m4 from SUBDIRS.
  991. Updated automake 1.11 and autoconf 2.64.
  992. Replaced some obsolute macros with new one.
  993. * Makefile.am
  994. * configure.ac
  995. * m4/aria2_arg.m4
  996. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  997. Removed Makefile.am in m4 directory.
  998. * configure.ac
  999. * m4/ChangeLog
  1000. * m4/Makefile.am
  1001. * m4/Makefile.in
  1002. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  1003. Removed unused m4 macros.
  1004. * m4/intldir.m4
  1005. * m4/inttypes.m4
  1006. * m4/isc-posix.m4
  1007. * m4/libgnutls-extra.m4
  1008. * m4/ulonglong.m4
  1009. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  1010. Fixed the bug that causes segmentation fault if
  1011. req->getCurrentUrl() contains printf formatting characters such as
  1012. %d. The statement that causes this bug is useless and removed.
  1013. * src/AbstractCommand.cc
  1014. 2009-10-07 Tatsuhiro Tsujikawa <[email protected]>
  1015. * Release 1.6.1
  1016. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  1017. Updated Simplified Chinese translation. Thanks to translators.
  1018. * po/zh_CN.po
  1019. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  1020. Updated translation template
  1021. * po
  1022. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  1023. Bump up version number to 1.6.1
  1024. * configure.ac
  1025. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  1026. Changed interval from 120 to 60 for dropping inactive peer.
  1027. * src/DefaultBtInteractive.cc
  1028. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  1029. Updated man page for --user-agent and --peer-id-prefix option.
  1030. * doc/aria2c.1.txt
  1031. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  1032. Code clean up
  1033. * src/BtPostDownloadHandler.cc
  1034. * src/ContentTypeRequestGroupCriteria.cc
  1035. * src/ContentTypeRequestGroupCriteria.h
  1036. * src/DownloadHandlerConstants.cc
  1037. * src/DownloadHandlerConstants.h
  1038. * src/DownloadHandlerFactory.cc
  1039. * src/MetalinkPostDownloadHandler.cc
  1040. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  1041. Don't save control file when aria2 exists while checking piece
  1042. hash(behavior of -V option). If control file doesn't exist when
  1043. aria2 launched, the completed length in saved control file will be
  1044. 0 byte and this confuses user. disableSaveControlFile() is called
  1045. in RequestGroup::processCheckIntegrityEntry().
  1046. enableSaveControlFile() will be called after hash checking is
  1047. done. See CheckIntegrityCommand.
  1048. * src/CheckIntegrityCommand.cc
  1049. * src/RequestGroup.cc
  1050. * src/RequestGroup.h
  1051. * src/RequestGroupMan.cc
  1052. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  1053. Included version number in Peer ID and client version. Peer ID
  1054. now starts with "aria2/VERSION-", where VERSION is
  1055. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1056. * src/DefaultBtInteractive.cc
  1057. * src/OptionHandlerFactory.cc
  1058. * src/bittorrent_helper.cc
  1059. * src/bittorrent_helper.h
  1060. * src/main.cc
  1061. * src/usage_text.h
  1062. * test/BittorrentHelperTest.cc
  1063. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  1064. Fixed memory leak.
  1065. * src/DownloadCommand.cc
  1066. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  1067. Removed server, port, user and passwd key from options before
  1068. XMLRPC::Client.call since they are not options of aria2.
  1069. * doc/xmlrpc/aria2mon
  1070. * doc/xmlrpc/aria2rpc
  1071. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  1072. Included version number in user-agent string.
  1073. * src/OptionHandlerFactory.cc
  1074. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  1075. Fixed the bug that the option values changed by XML-RPC
  1076. method(changeOption and changeGlobalOption) are overwritten to the
  1077. previous value by the next these request which doesn't contain
  1078. that option value. Supporse max-download-limit is initially 0. You
  1079. changed this value to 100K by changeOption. Then you issue
  1080. changeOption request to change max-upload-limit to 50K. This
  1081. second request doesn't contain xml-download-limit, so it is back
  1082. to initial value, 0. Another improvement is that exception is
  1083. thrown when changeOption and changeGlobalOption request contains
  1084. option name which doesn't allowed in each request.
  1085. * src/DownloadEngine.h
  1086. * src/XmlRpcMethod.cc
  1087. * src/XmlRpcMethod.h
  1088. * src/XmlRpcMethodImpl.cc
  1089. * src/download_helper.cc
  1090. * src/download_helper.h
  1091. * test/XmlRpcMethodTest.cc
  1092. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  1093. Added missing MetalinkParserStateImpl.{cc,h}
  1094. * src/MetalinkParserStateImpl.cc
  1095. * src/MetalinkParserStateImpl.h
  1096. 2009-10-03 Tatsuhiro Tsujikawa <[email protected]>
  1097. Put all MetalinkParserState subclasses into
  1098. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1099. * src/FileMetalinkParserState.cc: Removed
  1100. * src/FileMetalinkParserState.h: Removed
  1101. * src/FilesMetalinkParserState.cc: Removed
  1102. * src/FilesMetalinkParserState.h: Removed
  1103. * src/FinMetalinkParserState.cc: Removed
  1104. * src/FinMetalinkParserState.h: Removed
  1105. * src/HashMetalinkParserState.cc: Removed
  1106. * src/HashMetalinkParserState.h: Removed
  1107. * src/InitialMetalinkParserState.cc: Removed
  1108. * src/InitialMetalinkParserState.h: Removed
  1109. * src/LanguageMetalinkParserState.cc: Removed
  1110. * src/LanguageMetalinkParserState.h: Removed
  1111. * src/Makefile.am
  1112. * src/MetalinkMetalinkParserState.cc: Removed
  1113. * src/MetalinkMetalinkParserState.h: Removed
  1114. * src/MetalinkParserState.h
  1115. * src/MetalinkParserStateMachine.cc
  1116. * src/MetalinkParserStateMachine.h
  1117. * src/OSMetalinkParserState.cc: Removed
  1118. * src/OSMetalinkParserState.h: Removed
  1119. * src/PieceHashMetalinkParserState.cc: Removed
  1120. * src/PieceHashMetalinkParserState.h: Removed
  1121. * src/PiecesMetalinkParserState.cc: Removed
  1122. * src/PiecesMetalinkParserState.h: Removed
  1123. * src/ResourcesMetalinkParserState.cc: Removed
  1124. * src/ResourcesMetalinkParserState.h: Removed
  1125. * src/SignatureMetalinkParserState.cc: Removed
  1126. * src/SignatureMetalinkParserState.h: Removed
  1127. * src/SizeMetalinkParserState.cc: Removed
  1128. * src/SizeMetalinkParserState.h: Removed
  1129. * src/SkipTagMetalinkParserState.cc: Removed
  1130. * src/SkipTagMetalinkParserState.h: Removed
  1131. * src/URLMetalinkParserState.cc: Removed
  1132. * src/URLMetalinkParserState.h: Removed
  1133. * src/VerificationMetalinkParserState.cc: Removed
  1134. * src/VerificationMetalinkParserState.h: Removed
  1135. * src/VersionMetalinkParserState.cc: Removed
  1136. * src/VersionMetalinkParserState.h: Removed
  1137. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  1138. Move all functions in PeerMessageUtil to bittorrent_helper.
  1139. * src/BtBitfieldMessage.cc
  1140. * src/BtBitfieldMessageValidator.h
  1141. * src/BtExtendedMessage.cc
  1142. * src/BtHandshakeMessage.cc
  1143. * src/BtHandshakeMessageValidator.h
  1144. * src/BtPieceMessage.cc
  1145. * src/BtPieceMessageValidator.h
  1146. * src/BtPortMessage.cc
  1147. * src/DHTFindNodeReplyMessage.cc
  1148. * src/DHTGetPeersReplyMessage.cc
  1149. * src/DHTMessageFactoryImpl.cc
  1150. * src/DHTRoutingTableDeserializer.cc
  1151. * src/DHTRoutingTableSerializer.cc
  1152. * src/DHTTokenTracker.cc
  1153. * src/DefaultBtMessageFactory.cc
  1154. * src/IndexBtMessage.cc
  1155. * src/IndexBtMessage.h
  1156. * src/IndexBtMessageValidator.h
  1157. * src/Makefile.am
  1158. * src/PeerMessageUtil.cc: Removed.
  1159. * src/PeerMessageUtil.h: Removed.
  1160. * src/RangeBtMessage.cc
  1161. * src/RangeBtMessage.h
  1162. * src/RangeBtMessageValidator.h
  1163. * src/UTPexExtensionMessage.cc
  1164. * src/ZeroBtMessage.cc
  1165. * src/ZeroBtMessage.h
  1166. * src/bittorrent_helper.cc
  1167. * src/bittorrent_helper.h
  1168. * test/BittorrentHelperTest.cc
  1169. * test/BtAllowedFastMessageTest.cc
  1170. * test/BtBitfieldMessageTest.cc
  1171. * test/BtCancelMessageTest.cc
  1172. * test/BtChokeMessageTest.cc
  1173. * test/BtExtendedMessageTest.cc
  1174. * test/BtHandshakeMessageTest.cc
  1175. * test/BtHaveAllMessageTest.cc
  1176. * test/BtHaveMessageTest.cc
  1177. * test/BtHaveNoneMessageTest.cc
  1178. * test/BtInterestedMessageTest.cc
  1179. * test/BtNotInterestedMessageTest.cc
  1180. * test/BtPieceMessageTest.cc
  1181. * test/BtPortMessageTest.cc
  1182. * test/BtRejectMessageTest.cc
  1183. * test/BtRequestMessageTest.cc
  1184. * test/BtSuggestPieceMessageTest.cc
  1185. * test/BtUnchokeMessageTest.cc
  1186. * test/DHTFindNodeReplyMessageTest.cc
  1187. * test/DHTGetPeersReplyMessageTest.cc
  1188. * test/DHTMessageFactoryImplTest.cc
  1189. * test/DHTRoutingTableDeserializerTest.cc
  1190. * test/DHTRoutingTableSerializerTest.cc
  1191. * test/DefaultBtMessageFactoryTest.cc
  1192. * test/DefaultExtensionMessageFactoryTest.cc
  1193. * test/Makefile.am
  1194. * test/PeerListProcessorTest.cc
  1195. * test/PeerMessageUtilTest.cc: Removed.
  1196. * test/UTPexExtensionMessageTest.cc
  1197. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  1198. Limit the size of values list when sending get_peers reply.
  1199. * src/DHTGetPeersReplyMessage.cc
  1200. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  1201. Updated banner
  1202. * doc/xmlrpc/aria2rpc
  1203. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  1204. Added missing help message for remove command.
  1205. * doc/xmlrpc/aria2rpc
  1206. 2009-09-24 Tatsuhiro Tsujikawa <[email protected]>
  1207. Generated configure and config.h.in
  1208. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1209. Add check for fork(), which is missing on MinGW
  1210. * src/daemon.cc
  1211. * configure.ac
  1212. 2009-09-23 Tatsuhiro Tsujikawa <[email protected]>
  1213. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1214. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1215. Util::httpGMT().
  1216. * src/Util.cc
  1217. * src/Util.h
  1218. * test/UtilTest.cc
  1219. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1220. * Release 1.6.0
  1221. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1222. Fixed a path to xmlrpc/README.txt
  1223. * doc/Makefile.am
  1224. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1225. Added XML-RPC in -v Configuration output.
  1226. * src/FeatureConfig.cc
  1227. * src/FeatureConfig.h
  1228. * test/FeatureConfigTest.cc
  1229. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1230. Updated Bulgarian, Russian, Slovak and Japanese
  1231. translations. Thanks to all translators.
  1232. * po/bg.po
  1233. * po/ja.po
  1234. * po/ru.po
  1235. * po/sk.po
  1236. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1237. Removed --retry-wait option from aria2rpc
  1238. * doc/xmlrpc/aria2rpc
  1239. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1240. Removed --retry-wait option from man page.
  1241. * doc/aria2c.1.txt
  1242. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1243. Removed --retry-wait option since the current architecture doesn't
  1244. allow sleep for particular URI.
  1245. * src/AbstractCommand.cc
  1246. * src/OptionHandlerFactory.cc
  1247. * src/download_helper.cc
  1248. * src/prefs.cc
  1249. * src/prefs.h
  1250. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1251. Removed Retry-After header support. Since the current architecture
  1252. doesn't allow sleep for particular URI.
  1253. * src/HttpSkipResponseCommand.cc
  1254. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  1255. Updated the help message for --daemon option.
  1256. * doc/aria2c.1.txt
  1257. * src/usage_text.h
  1258. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  1259. Added our own daemon() function for systems which desn't have
  1260. daemon(3).
  1261. * configure.ac
  1262. * src/Makefile.am
  1263. * src/daemon.cc
  1264. * src/daemon.h
  1265. * src/option_processing.cc
  1266. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  1267. Simplified File::getCurrentDir()
  1268. * src/File.cc
  1269. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  1270. Use exit() instead of _exit
  1271. * src/RequestGroupMan.cc
  1272. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  1273. Replaced "CATEGORY" with "TAGS".
  1274. * src/usage_text.h
  1275. * doc/aria2c.1.txt
  1276. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  1277. Updated the help message for --help option.
  1278. * src/usage_text.h
  1279. * doc/aria2c.1.txt
  1280. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  1281. Updated man page for added help tags.
  1282. * doc/aria2c.1.txt
  1283. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  1284. Added help category #file. Added #file tag to the options related
  1285. to downloaded file.
  1286. * src/OptionHandlerFactory.cc
  1287. * src/help_tags.h
  1288. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  1289. Added help categories: #cookie and #hook. Added #https tag to
  1290. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1291. * src/OptionHandlerFactory.cc
  1292. * src/help_tags.h
  1293. 2009-09-16 Tatsuhiro Tsujikawa <[email protected]>
  1294. Made MSG_NOT_FILE translatable.
  1295. * src/message.h
  1296. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  1297. Updated man page for --help option.
  1298. * doc/aria2c.1.txt
  1299. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  1300. Updated doc.
  1301. * src/XmlRpcMethod.h
  1302. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  1303. Help category now starts with "#" to distinguish a category from
  1304. keyword search. For example, "http" categroy is now "#http". You
  1305. can type "--help=#http" to get explanation of options related to
  1306. http. If '#' is omitted, then the argument is treated as a keyword
  1307. and aria2 searches options whose name includes the keyword and
  1308. print matched ones. For example, "--help=http" will show options
  1309. whose name includes "http".
  1310. * src/OptionHandlerFactory.cc
  1311. * src/help_tags.h
  1312. * src/usage_text.h
  1313. * src/version_usage.cc
  1314. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  1315. Documented missing experimental tag and newly added xml-rpc tag in
  1316. man page.
  1317. * doc/aria2c.1.txt
  1318. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  1319. Added xml-rpc help tag. Tagged xml-rpc related options with
  1320. xml-rpc tag.
  1321. * src/OptionHandlerFactory.cc
  1322. * src/help_tags.h
  1323. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  1324. Updated message when a path is not a file. Updated common message
  1325. for wrong option.
  1326. * src/OptionHandlerException.cc
  1327. * src/message.h
  1328. 2009-09-10 Tatsuhiro Tsujikawa <[email protected]>
  1329. Use File::isFile() instead of File::exists(). Updated message when
  1330. a path is not a file.
  1331. * src/OptionHandlerImpl.cc
  1332. * src/message.h
  1333. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  1334. Fixed the bug that server performence profile is not updated when
  1335. aria2c was terminated by emergency shutdown.
  1336. * src/TrackerWatcherCommand.cc
  1337. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  1338. Use LocalFilePathOptionHandler for -T and -M option.
  1339. Updated message of MSG_FILE_NOT_EXIST.
  1340. * src/OptionHandlerFactory.cc
  1341. * src/message.h
  1342. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  1343. Added LocalFilePathOptionHandler which check whether the specified
  1344. file path does exist or not.
  1345. * src/OptionHandlerImpl.cc
  1346. * src/message.h
  1347. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  1348. Updated wiki page URI.
  1349. * README
  1350. * doc/aria2c.1.txt
  1351. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  1352. Added README.txt for xmlrpc directory.
  1353. * doc/Makefile.am
  1354. * doc/xmlrpc/README.txt
  1355. 2009-09-06 Tatsuhiro Tsujikawa <[email protected]>
  1356. Bump up version number to 1.6.0.
  1357. * configure.ac
  1358. 2009-09-01 Tatsuhiro Tsujikawa <[email protected]>
  1359. Added XML-RPC client scripts written in ruby.
  1360. * doc/Makefile.am
  1361. * doc/xmlrpc/aria2mon
  1362. * doc/xmlrpc/aria2rpc
  1363. 2009-08-31 Tatsuhiro Tsujikawa <[email protected]>
  1364. Added support for IPv6 literal address in URI. Now aria2 can
  1365. handle URI such as http://[::1]/
  1366. * src/HttpRequest.cc
  1367. * src/HttpRequest.h
  1368. * src/Request.cc
  1369. * src/Request.h
  1370. * test/HttpRequestTest.cc
  1371. * test/OptionHandlerTest.cc
  1372. * test/RequestTest.cc
  1373. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  1374. Fixed the bug that HTTP request header for XML-RPC request is not
  1375. parsed properly.
  1376. * src/HttpHeader.cc
  1377. * src/HttpHeaderProcessor.cc
  1378. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  1379. Fixed the bug that XML-RPC authorization might be done before HTTP
  1380. request header is fully received.
  1381. * src/HttpServerCommand.cc
  1382. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  1383. Documented --xml-rpc-listen-all option in man page.
  1384. * doc/aria2c.1.txt
  1385. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  1386. Added --xml-rpc-listen-all option. If true is given to this
  1387. option, aria2 listens incoming XML-RPC requests on all network
  1388. interfaces. If false is given, listens only on local loopback
  1389. interface. The default value is false.
  1390. * src/HttpListenCommand.cc
  1391. * src/OptionHandlerFactory.cc
  1392. * src/SocketCore.cc
  1393. * src/SocketCore.h
  1394. * src/prefs.cc
  1395. * src/prefs.h
  1396. * src/usage_text.h
  1397. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  1398. * Release 1.5.2
  1399. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  1400. Updated Ukrainian and Russian translations. Thanks to all
  1401. translators.
  1402. * po/ru.po
  1403. * po/uk.po
  1404. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  1405. Bump up version number to 1.5.2
  1406. * configure.ac
  1407. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  1408. Get comment, comment.utf-8, created by and creation date from
  1409. .torrent file and print them in -S output.
  1410. * src/bittorrent_helper.cc
  1411. * src/bittorrent_helper.h
  1412. * test/BittorrentHelperTest.cc
  1413. * test/test.torrent
  1414. * test/utf8.torrent
  1415. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  1416. Show exact file size along in -S option output.
  1417. * src/Util.h
  1418. * src/bittorrent_helper.cc
  1419. * test/UtilTest.cc
  1420. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  1421. Avoided unnecessary memory allocation in
  1422. BitfieldMan::getCompletedLength().
  1423. * src/BitfieldMan.cc
  1424. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  1425. Fixed the bug that download fails if
  1426. SocketCore::establishConnection() throws exception and aria2
  1427. doesn't try another address.
  1428. * src/AbstractCommand.cc
  1429. * src/InitiateConnectionCommand.cc
  1430. * src/message.h
  1431. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  1432. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1433. detected properly.
  1434. * m4/sqlite3.m4
  1435. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  1436. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1437. because it causes compile error if PARAMS macro is defined.
  1438. * src/XmlRpcElements.cc
  1439. * src/XmlRpcElements.h
  1440. * src/XmlRpcRequestParserStateImpl.cc
  1441. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  1442. * Release 1.5.1
  1443. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  1444. Bump up version number to 1.5.1
  1445. * configure.ac
  1446. 2009-07-25 Tatsuhiro Tsujikawa <[email protected]>
  1447. Fixed compile error without BitTorrent support
  1448. * src/DefaultBtProgressInfoFile.cc
  1449. * src/DownloadEngine.cc
  1450. * src/DownloadEngine.h
  1451. 2009-07-24 Tatsuhiro Tsujikawa <[email protected]>
  1452. Added missing '=' in Download Results
  1453. * src/RequestGroupMan.cc
  1454. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1455. Fixed compiler warning
  1456. * src/DefaultBtProgressInfoFile.cc
  1457. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1458. Fixed compiler warning on 32bit systems.
  1459. * src/DownloadCommand.cc
  1460. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1461. Call flush from ServerStatMan::save()
  1462. * src/ServerStatMan.cc
  1463. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1464. Check stream status after file is opened.
  1465. * src/CookieStorage.cc
  1466. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1467. Rewritten Signature::save()
  1468. * src/Signature.cc
  1469. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1470. Rewritten RequestGroupMan::saveServerStat()
  1471. * src/RequestGroupMan.cc
  1472. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1473. Rewritten stream error handling
  1474. * src/DHTAutoSaveCommand.cc
  1475. * src/DHTRoutingTableDeserializer.cc
  1476. * src/DHTRoutingTableSerializer.cc
  1477. * src/DHTSetup.cc
  1478. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1479. Check stream status after file is opened.
  1480. * src/DefaultBtProgressInfoFile.cc
  1481. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1482. Rewritten stream error handling
  1483. * src/DefaultBtProgressInfoFile.cc
  1484. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1485. Make sure that stream is closed before renaming file. Unit test
  1486. fails on mingw32 in the previous implementation.
  1487. * src/CookieStorage.cc
  1488. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1489. Fixed the unit test error without sqlite3
  1490. * test/CookieStorageTest.cc
  1491. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1492. Fixed the undefined reference error
  1493. * test/HttpResponseTest.cc
  1494. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  1495. * Release 1.5.0
  1496. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  1497. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1498. Ukrainian translations. Thanks to all translators.
  1499. * po/ru.po
  1500. * po/it.po
  1501. * po/da.po
  1502. * po/bg.po
  1503. * po/ja.po
  1504. * po/uk.po
  1505. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  1506. Added missing src/Logger.cc
  1507. * src/Logger.cc
  1508. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  1509. Rewritten Logger to avoiding constly virtual call.
  1510. * src/LogFactory.cc
  1511. * src/LogFactory.h
  1512. * src/Logger.h
  1513. * src/Makefile.am
  1514. * src/Makefile.in
  1515. * src/NullLogger.h: Removed.
  1516. * src/SimpleLogger.cc
  1517. * src/SimpleLogger.h
  1518. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  1519. Updated doc
  1520. * src/main.cc
  1521. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  1522. Updated debug log message
  1523. * src/AbstractCommand.cc
  1524. * src/message.h
  1525. 2009-07-16 Tatsuhiro Tsujikawa <[email protected]>
  1526. Avoid to create zombie process when commands specified in
  1527. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1528. X and NetBSD.
  1529. * src/main.cc
  1530. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1531. Fixed typo
  1532. * src/usage_text.h
  1533. * doc/aria2c.1.txt
  1534. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1535. Documented 'errorCode' of tellStatus in man page.
  1536. * doc/aria2c.1.txt
  1537. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1538. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1539. This key is only available for stopped/completed downloads and its
  1540. value is the error code defined in EXIT STATUS in man page.
  1541. * src/XmlRpcMethodImpl.cc
  1542. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1543. Fixed the bug that session download length is not updated when
  1544. PeerStat is not fastest one.
  1545. * src/SegmentMan.cc
  1546. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1547. Updated doc.
  1548. * doc/aria2c.1.txt
  1549. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1550. Updated doc.
  1551. * src/AbstractCommand.cc
  1552. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1553. Handle the case when DownloadContext has no FileEntry.
  1554. * src/XmlRpcMethodImpl.cc
  1555. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  1556. Handle the situation where struct option.name is char *.
  1557. * configure.ac
  1558. * src/OptionParser.cc
  1559. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  1560. Code cleanup
  1561. * src/AbstractCommand.cc
  1562. * src/DownloadCommand.cc
  1563. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  1564. Use option of each download to create AuthConfig instead of global
  1565. option.
  1566. * src/AuthConfigFactory.cc
  1567. * src/AuthConfigFactory.h
  1568. * src/FtpNegotiationCommand.cc
  1569. * src/HttpRequest.cc
  1570. * src/HttpRequest.h
  1571. * src/HttpRequestCommand.cc
  1572. * src/HttpSkipResponseCommand.cc
  1573. * src/MultiUrlRequestInfo.cc
  1574. * test/AuthConfigFactoryTest.cc
  1575. * test/FtpConnectionTest.cc
  1576. * test/HttpRequestTest.cc
  1577. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  1578. Don't call prepareForRetry(1) if all segments are ignored in
  1579. SegmentMan.
  1580. * src/AbstractCommand.cc
  1581. * src/BitfieldMan.cc
  1582. * src/BitfieldMan.h
  1583. * src/SegmentMan.cc
  1584. * src/SegmentMan.h
  1585. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  1586. Removed FileEntry::getAssociatedUris()
  1587. * src/FileEntry.h
  1588. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  1589. Updated doc: TODO1.5 -> TODO
  1590. * src/FileEntry.cc
  1591. * src/HttpResponseCommand.cc
  1592. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  1593. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1594. involved.
  1595. * src/RequestGroup.cc
  1596. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  1597. Eliminated duplicated filterBitfield initialization code.
  1598. * src/BitfieldMan.cc
  1599. * src/BitfieldMan.h
  1600. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  1601. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1602. relatively naive approach, though). For DownloadFailureException,
  1603. we handle the case when req is null properly.
  1604. * src/AbstractCommand.cc
  1605. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  1606. Added function returning suffix of control file to
  1607. DefaultBtProgressInfoFile.
  1608. * src/DefaultBtProgressInfoFile.cc
  1609. * src/DefaultBtProgressInfoFile.h
  1610. * src/RequestGroup.cc
  1611. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  1612. Documented getVersion in man page.
  1613. * doc/aria2c.1.txt
  1614. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  1615. Documented type of offset and num for tellWaiting xml-rpc method.
  1616. * doc/aria2c.1.txt
  1617. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  1618. Implemented getVersion xml-rpc method. This method returns struct
  1619. which has 2 key-value pairs: "version" key is associated to the
  1620. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1621. associated to the list of enabled features, such as "Async DNS",
  1622. "BitTorrent".
  1623. * src/FeatureConfig.h
  1624. * src/XmlRpcMethodFactory.cc
  1625. * src/XmlRpcMethodImpl.cc
  1626. * src/XmlRpcMethodImpl.h
  1627. * test/XmlRpcMethodTest.cc
  1628. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  1629. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1630. for compatibility issue.
  1631. * src/SocketCore.cc
  1632. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  1633. Fixed compile error with openSSL
  1634. * src/bittorrent_helper.cc
  1635. * src/messageDigest.h
  1636. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  1637. Removed bad code: setting certificate type priority to key
  1638. exchange priority.
  1639. * src/SocketCore.cc
  1640. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  1641. Disconnect seeder if client is also in seed state.
  1642. * src/BtBitfieldMessage.cc
  1643. * src/BtHaveAllMessage.cc
  1644. * src/BtHaveMessage.cc
  1645. * src/message.h
  1646. * test/BtBitfieldMessageTest.cc
  1647. * test/BtHaveAllMessageTest.cc
  1648. * test/BtHaveMessageTest.cc
  1649. * test/MockPieceStorage.h
  1650. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  1651. Keep CreateRequestCommand in queue when no segment is available so
  1652. that they can pick up pieces which slow BitTorrent peers are
  1653. downloading.
  1654. * src/AbstractCommand.cc
  1655. * src/CreateRequestCommand.cc
  1656. * src/CreateRequestCommand.h
  1657. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  1658. --bt-stop-timeout now only checks download speed.
  1659. * src/BtStopDownloadCommand.cc
  1660. * src/BtStopDownloadCommand.h
  1661. * src/BtSetup.cc
  1662. * src/usage_text.h
  1663. * doc/aria2c.1.txt
  1664. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1665. Fixed compile error regarding BUFSIZE.
  1666. * src/DownloadCommand.cc
  1667. * src/DownloadCommand.h
  1668. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1669. Documented tellWaiting xml-rpc method in man page.
  1670. * doc/aria2c.1.txt
  1671. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1672. Bump up version number to 1.5.0
  1673. * configure.ac
  1674. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1675. Removed resolved TODO1.5
  1676. * src/AbstractCommand.cc
  1677. * src/DownloadCommand.cc
  1678. * src/RequestGroup.cc
  1679. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1680. Release pooled and in-flight Request objectsand URIResult objects
  1681. in FileEntry after download completed.
  1682. * src/DownloadContext.cc
  1683. * src/DownloadContext.h
  1684. * src/FileEntry.cc
  1685. * src/FileEntry.h
  1686. * src/RequestGroup.cc
  1687. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1688. Set manual and source attribute in aria2c.1.txt
  1689. * doc/aria2c.1.txt
  1690. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1691. Documented that the default value of --use-head is 'false' in man
  1692. page.
  1693. * doc/aria2c.1.txt
  1694. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1695. Added bt-stop-timeout option to -i list.
  1696. * doc/aria2c.1.txt
  1697. * src/download_helper.cc
  1698. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1699. Fixed typo
  1700. * doc/aria2c.1.txt
  1701. * src/usage_text.h
  1702. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1703. Removed peer-id-prefix option from -i list.
  1704. * doc/aria2c.1.txt
  1705. * src/download_helper.cc
  1706. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1707. Fixed typo
  1708. * doc/aria2c.1.txt
  1709. * src/usage_text.h
  1710. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1711. Documented --bt-stop-timeout option in man page.
  1712. * doc/aria2c.1.txt
  1713. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1714. Updated README regarding multi-file torrent web-seeding.
  1715. * doc/README.txt
  1716. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1717. Updated man page regarding multi-file torrent web-seeding.
  1718. * doc/aria2c.1.txt
  1719. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1720. Updated doc
  1721. * src/version_usage.cc
  1722. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1723. Winsock select() doesn't work if no socket is in FD_SET. To
  1724. overcome this problem, a dummy socket is added to FD_SET and it is
  1725. given to select().
  1726. * src/SelectEventPoll.cc
  1727. * src/SelectEventPoll.h
  1728. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1729. Disabled --use-head option by default because --use-head=true
  1730. causes problems on some web sites.
  1731. * src/OptionHandlerFactory.cc
  1732. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1733. Print URL List in -S option for torrent.
  1734. * src/bittorrent_helper.cc
  1735. * src/bittorrent_helper.h
  1736. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1737. Allocate buffer in ctor of DownloadCommand.
  1738. * src/DownloadCommand.cc
  1739. * src/DownloadCommand.h
  1740. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1741. Removed DiskAdaptor::onDownloadComplete()
  1742. * src/DirectDiskAdaptor.cc
  1743. * src/DirectDiskAdaptor.h
  1744. * src/DiskAdaptor.h
  1745. * src/MultiDiskAdaptor.cc
  1746. * src/MultiDiskAdaptor.h
  1747. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1748. Committed missing BtStopDownloadCommand.{cc,h}
  1749. * src/BtStopDownloadCommand.cc
  1750. * src/BtStopDownloadCommand.h
  1751. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1752. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1753. download if the download speed is 0 and the number of seeder is 0
  1754. in consecutive SEC seconds. By default, this function is disabled.
  1755. * src/BtSetup.cc
  1756. * src/Makefile.am
  1757. * src/OptionHandlerFactory.cc
  1758. * src/prefs.cc
  1759. * src/prefs.h
  1760. * src/usage_text.h
  1761. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1762. Removed the call to DiskAdaptor::onDownloadComplete() from
  1763. BtCheckIntegrityEntry and DefaultPieceStorage.
  1764. * src/BtCheckIntegrityEntry.cc
  1765. * src/DefaultPieceStorage.cc
  1766. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1767. Commented out throw statements when number of piece is 0 to
  1768. download 0 length torrent.
  1769. * src/bittorrent_helper.cc
  1770. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1771. Call RequestGroup::createNextCommandWithAdj() from
  1772. BtFileAllocationEntry if at least one FileEntry has URI. The
  1773. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1774. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1775. * src/BtFileAllocationEntry.cc
  1776. * src/FileEntry.h
  1777. * src/RequestGroup.cc
  1778. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1779. Generate peer ID after SimpleRandomizer is initialized.
  1780. * src/main.cc
  1781. * src/option_processing.cc
  1782. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1783. Removed unused method argument.
  1784. * src/CreateRequestCommand.cc
  1785. * src/RequestGroup.cc
  1786. * src/RequestGroup.h
  1787. * src/RequestGroupMan.cc
  1788. * src/TrackerWatcherCommand.cc
  1789. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1790. Made URI reusing function work.
  1791. * src/CreateRequestCommand.cc
  1792. * src/FileEntry.cc
  1793. * src/FileEntry.h
  1794. * test/FileEntryTest.cc
  1795. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1796. Add formerly fastest PeerStat's sessionDownloadLength to new
  1797. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1798. bytes in a session.
  1799. * src/PeerStat.cc
  1800. * src/SegmentMan.cc
  1801. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1802. If pipelining is enabled, we can always pool socket.
  1803. * src/HttpDownloadCommand.cc
  1804. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1805. In a single file download, file size becomes known just after
  1806. downloading, set total length to FileEntry object when download
  1807. completed.
  1808. * src/DownloadCommand.cc
  1809. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1810. Use std::vector::reserve() for fileEntries and pieceHashes in
  1811. bittorrent_helper
  1812. * src/bittorrent_helper.cc
  1813. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1814. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1815. Removed hidden option PREF_RESET_URI.
  1816. * src/AbstractCommand.cc
  1817. * src/OptionHandlerFactory.cc
  1818. * src/prefs.cc
  1819. * src/prefs.h
  1820. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1821. Removed unused variable/function.
  1822. * src/PeerStat.h
  1823. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1824. Show first URL in Download Results if file path is not available.
  1825. * src/FileEntry.h
  1826. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1827. Throw exception if file path doesn't exist in FTP URL.
  1828. * src/InitiateConnectionCommandFactory.cc
  1829. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1830. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1831. * src/BitfieldMan.cc
  1832. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1833. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1834. of PeerStat in SegmentMan. peerStats is used for calculating
  1835. download speed. Therefore all active PeerStats should be in
  1836. there. Another one is _fastestPeerStats and it only contains
  1837. fastest PeerStat for each hostname/protocol pair. They are used
  1838. for updating ServerStat.
  1839. * src/DownloadCommand.cc
  1840. * src/Request.h
  1841. * src/RequestGroupMan.cc
  1842. * src/SegmentMan.cc
  1843. * src/SegmentMan.h
  1844. * test/SegmentManTest.cc
  1845. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1846. Try all available addresses returned by DNS until it gets
  1847. connected in HTTP(S)/FTP download
  1848. * src/AbstractCommand.cc
  1849. * src/AbstractCommand.h
  1850. * src/AbstractProxyRequestCommand.cc
  1851. * src/AbstractProxyRequestCommand.h
  1852. * src/DNSCache.h
  1853. * src/DownloadEngine.cc
  1854. * src/DownloadEngine.h
  1855. * src/FtpInitiateConnectionCommand.cc
  1856. * src/FtpInitiateConnectionCommand.h
  1857. * src/FtpNegotiationCommand.cc
  1858. * src/FtpNegotiationCommand.h
  1859. * src/HttpInitiateConnectionCommand.cc
  1860. * src/HttpInitiateConnectionCommand.h
  1861. * src/HttpRequestCommand.cc
  1862. * src/HttpRequestCommand.h
  1863. * src/InitiateConnectionCommand.cc
  1864. * src/InitiateConnectionCommand.h
  1865. * test/DNSCacheTest.cc
  1866. * test/Makefile.am
  1867. * test/SimpleDNSCacheTest.cc
  1868. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1869. Updated doc
  1870. * src/download_helper.cc
  1871. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1872. Refactored fieldMan ctor.
  1873. * src/BitfieldMan.cc
  1874. * src/BitfieldMan.h
  1875. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1876. Don't print "No files to download." message if -S is given.
  1877. * src/main.cc
  1878. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1879. Set referer and method to newly created Request object.
  1880. * src/CreateRequestCommand.cc
  1881. * src/FileEntry.cc
  1882. * src/FileEntry.h
  1883. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1884. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1885. * src/AbstractCommand.cc
  1886. * src/AbstractCommand.h
  1887. * src/CreateRequestCommand.cc
  1888. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1889. Get proxy download working
  1890. * src/AbstractProxyRequestCommand.cc
  1891. * src/AbstractProxyRequestCommand.h
  1892. * src/AbstractProxyResponseCommand.cc
  1893. * src/AbstractProxyResponseCommand.h
  1894. * src/FtpInitiateConnectionCommand.cc
  1895. * src/FtpTunnelRequestCommand.cc
  1896. * src/FtpTunnelRequestCommand.h
  1897. * src/FtpTunnelResponseCommand.cc
  1898. * src/FtpTunnelResponseCommand.h
  1899. * src/HttpInitiateConnectionCommand.cc
  1900. * src/HttpProxyRequestCommand.cc
  1901. * src/HttpProxyRequestCommand.h
  1902. * src/HttpProxyResponseCommand.cc
  1903. * src/HttpProxyResponseCommand.h
  1904. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1905. Use SegmentMan::getSegment(cuid) for single file download.
  1906. * src/AbstractCommand.cc
  1907. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1908. Fixed bufSize calculation
  1909. * src/DownloadCommand.cc
  1910. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1911. Don't append "/" if base URI ends with "/".
  1912. * src/bittorrent_helper.cc
  1913. * test/url-list-multiFile.torrent
  1914. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1915. HTTP pipelining is now working. Fixed Segmention fault in
  1916. BitfieldMan's copy ctor.
  1917. * src/AbstractCommand.cc
  1918. * src/BitfieldMan.cc
  1919. * src/BitfieldMan.h
  1920. * src/DownloadCommand.cc
  1921. * src/HttpDownloadCommand.cc
  1922. * src/HttpRequest.cc
  1923. * src/SegmentMan.cc
  1924. * src/SegmentMan.h
  1925. * test/BitfieldManTest.cc
  1926. * test/SegmentManTest.cc
  1927. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  1928. Removed ServerHost. Same functionality is implemented using
  1929. FileEntry's in-flight Request objects.
  1930. * src/AbstractCommand.cc
  1931. * src/BtDependency.cc
  1932. * src/CreateRequestCommand.cc
  1933. * src/FileEntry.cc
  1934. * src/FileEntry.h
  1935. * src/FtpNegotiationCommand.cc
  1936. * src/HttpResponseCommand.cc
  1937. * src/Makefile.am
  1938. * src/Metalink2RequestGroup.cc
  1939. * src/RequestGroup.cc
  1940. * src/RequestGroup.h
  1941. * src/ServerHost.cc: Removed
  1942. * src/ServerHost.h: Removed
  1943. * test/BtDependencyTest.cc
  1944. * test/FileEntryTest.cc
  1945. * test/RequestGroupTest.cc
  1946. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  1947. Rewritten PeerStat handling. In the previous implementation,
  1948. faster command tries to find slower command. In this new
  1949. implementation, slower command tries to find faster command.
  1950. PeerStat is now created in each HTTP/FTP request to get download
  1951. rate correctly. If the download range is small, the download rate
  1952. tends to small and this will occur at the later stage of download.
  1953. * src/AbstractCommand.cc
  1954. * src/DownloadCommand.cc
  1955. * src/FileEntry.cc
  1956. * src/FileEntry.h
  1957. * src/Request.cc
  1958. * src/Request.h
  1959. * src/RequestGroup.h
  1960. * src/RequestGroupMan.cc
  1961. * src/SegmentMan.cc
  1962. * src/SegmentMan.h
  1963. * test/SegmentManTest.cc
  1964. 2009-06-29 Tatsuhiro Tsujikawa <[email protected]>
  1965. Removed _uris from RequestGroup. All functions that refer to _uris
  1966. were moved to FileEntry. Exit status code are now defined in
  1967. DownloadResultCode.h.
  1968. * src/AbstractCommand.cc
  1969. * src/AdaptiveURISelector.cc
  1970. * src/AdaptiveURISelector.h
  1971. * src/AutoSaveCommand.cc
  1972. * src/BtPostDownloadHandler.cc
  1973. * src/CheckIntegrityDispatcherCommand.cc
  1974. * src/CookieStorage.cc
  1975. * src/DHTAutoSaveCommand.cc
  1976. * src/DHTBucketRefreshCommand.cc
  1977. * src/DHTEntryPointNameResolveCommand.cc
  1978. * src/DHTInteractionCommand.cc
  1979. * src/DHTPeerAnnounceCommand.cc
  1980. * src/DHTTokenUpdateCommand.cc
  1981. * src/DlAbortEx.h
  1982. * src/DlRetryEx.h
  1983. * src/DownloadCommand.cc
  1984. * src/DownloadContext.h
  1985. * src/DownloadFailureException.h
  1986. * src/DownloadResult.h
  1987. * src/DownloadResultCode.h
  1988. * src/FeedbackURISelector.cc
  1989. * src/FeedbackURISelector.h
  1990. * src/FileEntry.cc
  1991. * src/FileEntry.h
  1992. * src/FtpNegotiationCommand.cc
  1993. * src/HttpListenCommand.cc
  1994. * src/HttpResponseCommand.cc
  1995. * src/HttpServerResponseCommand.cc
  1996. * src/HttpSkipResponseCommand.cc
  1997. * src/InOrderURISelector.cc
  1998. * src/InOrderURISelector.h
  1999. * src/Makefile.am
  2000. * src/Makefile.in
  2001. * src/Metalink2RequestGroup.cc
  2002. * src/MultiUrlRequestInfo.cc
  2003. * src/MultiUrlRequestInfo.h
  2004. * src/OptionHandlerFactory.cc
  2005. * src/PeerListenCommand.cc
  2006. * src/RecoverableException.h
  2007. * src/RequestGroup.cc
  2008. * src/RequestGroup.h
  2009. * src/RequestGroupMan.cc
  2010. * src/RequestGroupMan.h
  2011. * src/TimedHaltCommand.cc
  2012. * src/TrackerWatcherCommand.cc
  2013. * src/URIResult.cc
  2014. * src/URIResult.h
  2015. * src/URISelector.h
  2016. * src/XmlRpcMethodImpl.cc
  2017. * src/bittorrent_helper.cc
  2018. * src/bittorrent_helper.h
  2019. * src/download_helper.cc
  2020. * src/main.cc
  2021. * src/option_processing.cc
  2022. * test/BtDependencyTest.cc
  2023. * test/BtPostDownloadHandlerTest.cc
  2024. * test/CookieStorageTest.cc
  2025. * test/DefaultBtMessageDispatcherTest.cc
  2026. * test/DownloadHandlerFactoryTest.cc
  2027. * test/DownloadHelperTest.cc
  2028. * test/FeedbackURISelectorTest.cc
  2029. * test/FileEntryTest.cc
  2030. * test/InOrderURISelectorTest.cc
  2031. * test/Metalink2RequestGroupTest.cc
  2032. * test/MetalinkPostDownloadHandlerTest.cc
  2033. * test/RequestGroupManTest.cc
  2034. * test/RequestGroupTest.cc
  2035. * test/XmlRpcMethodTest.cc
  2036. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  2037. Removed MockBtContext.h
  2038. * test/Makefile.am
  2039. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  2040. Removed _currentRequest from StreamCheckIntegrityEntry and
  2041. StreamFileAllocationEntry.
  2042. * src/AbstractCommand.cc
  2043. * src/HttpResponseCommand.cc
  2044. * src/RequestGroup.cc
  2045. * src/StreamCheckIntegrityEntry.cc
  2046. * src/StreamCheckIntegrityEntry.h
  2047. * src/StreamFileAllocationEntry.cc
  2048. * src/StreamFileAllocationEntry.h
  2049. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  2050. Rewritten DownloadContext and removed SingleFileDownloadContext
  2051. and BtContext and its derived classes. BitTorrent specific
  2052. attributes are now set by DownloadContext::setAttribute() with key
  2053. bittorrent::BITTORRENT.
  2054. * src/AbstractBtMessage.cc
  2055. * src/AbstractBtMessage.h
  2056. * src/AbstractCommand.cc
  2057. * src/AbstractCommand.h
  2058. * src/AbstractProxyRequestCommand.cc
  2059. * src/AbstractProxyResponseCommand.cc
  2060. * src/ActivePeerConnectionCommand.cc
  2061. * src/ActivePeerConnectionCommand.h
  2062. * src/AnnounceList.cc
  2063. * src/BtCheckIntegrityEntry.cc
  2064. * src/BtConstants.h
  2065. * src/BtContext.h: Removed
  2066. * src/BtDependency.cc
  2067. * src/BtExtendedMessage.cc
  2068. * src/BtPieceMessage.cc
  2069. * src/BtPieceMessage.h
  2070. * src/BtPostDownloadHandler.cc
  2071. * src/BtRegistry.cc
  2072. * src/BtRegistry.h
  2073. * src/BtSetup.cc
  2074. * src/CheckIntegrityCommand.cc
  2075. * src/CheckIntegrityEntry.cc
  2076. * src/ChecksumCheckIntegrityEntry.cc
  2077. * src/ConsoleStatCalc.cc
  2078. * src/ContentTypeRequestGroupCriteria.cc
  2079. * src/DHTGetPeersCommand.cc
  2080. * src/DHTGetPeersCommand.h
  2081. * src/DHTPeerLookupTask.cc
  2082. * src/DHTPeerLookupTask.h
  2083. * src/DHTTaskFactory.h
  2084. * src/DHTTaskFactoryImpl.cc
  2085. * src/DHTTaskFactoryImpl.h
  2086. * src/DefaultBtAnnounce.cc
  2087. * src/DefaultBtAnnounce.h
  2088. * src/DefaultBtContext.cc: Removed
  2089. * src/DefaultBtContext.h: Removed
  2090. * src/DefaultBtInteractive.cc
  2091. * src/DefaultBtInteractive.h
  2092. * src/DefaultBtMessageDispatcher.cc
  2093. * src/DefaultBtMessageDispatcher.h
  2094. * src/DefaultBtMessageFactory.cc
  2095. * src/DefaultBtMessageFactory.h
  2096. * src/DefaultBtMessageReceiver.cc
  2097. * src/DefaultBtMessageReceiver.h
  2098. * src/DefaultBtProgressInfoFile.cc
  2099. * src/DefaultBtRequestFactory.cc
  2100. * src/DefaultBtRequestFactory.h
  2101. * src/DefaultExtensionMessageFactory.cc
  2102. * src/DefaultExtensionMessageFactory.h
  2103. * src/DefaultPeerStorage.cc
  2104. * src/DefaultPeerStorage.h
  2105. * src/DefaultPieceStorage.cc
  2106. * src/DefaultSegmentManFactory.cc
  2107. * src/DiskAdaptor.cc
  2108. * src/DiskAdaptor.h
  2109. * src/DownloadContext.cc
  2110. * src/DownloadContext.h
  2111. * src/DownloadEngine.cc
  2112. * src/DownloadEngineFactory.cc
  2113. * src/DownloadHandler.cc
  2114. * src/DownloadResult.h
  2115. * src/FileAllocationCommand.cc
  2116. * src/FileAllocationDispatcherCommand.cc
  2117. * src/FileAllocationEntry.cc
  2118. * src/FileEntry.h
  2119. * src/FillRequestGroupCommand.cc
  2120. * src/FtpDownloadCommand.cc
  2121. * src/FtpFinishDownloadCommand.cc
  2122. * src/FtpInitiateConnectionCommand.cc
  2123. * src/FtpNegotiationCommand.cc
  2124. * src/FtpTunnelRequestCommand.cc
  2125. * src/FtpTunnelResponseCommand.cc
  2126. * src/HandshakeExtensionMessage.cc
  2127. * src/HandshakeExtensionMessage.h
  2128. * src/HaveEraseCommand.cc
  2129. * src/HttpDownloadCommand.cc
  2130. * src/HttpInitiateConnectionCommand.cc
  2131. * src/HttpProxyRequestCommand.cc
  2132. * src/HttpProxyResponseCommand.cc
  2133. * src/HttpRequest.cc
  2134. * src/HttpRequest.h
  2135. * src/HttpRequestCommand.cc
  2136. * src/HttpResponseCommand.cc
  2137. * src/HttpServerBodyCommand.cc
  2138. * src/HttpServerCommand.cc
  2139. * src/HttpSkipResponseCommand.cc
  2140. * src/InitiateConnectionCommandFactory.cc
  2141. * src/InitiatorMSEHandshakeCommand.cc
  2142. * src/InitiatorMSEHandshakeCommand.h
  2143. * src/IteratableChecksumValidator.cc
  2144. * src/IteratableChecksumValidator.h
  2145. * src/IteratableChunkChecksumValidator.cc
  2146. * src/MSEHandshake.cc
  2147. * src/MSEHandshake.h
  2148. * src/Makefile.am
  2149. * src/Makefile.in
  2150. * src/Metalink2RequestGroup.cc
  2151. * src/MetalinkPostDownloadHandler.cc
  2152. * src/MultiDiskAdaptor.cc
  2153. * src/MultiDiskAdaptor.h
  2154. * src/MultiFileAllocationIterator.cc
  2155. * src/MultiUrlRequestInfo.cc
  2156. * src/PeerChokeCommand.cc
  2157. * src/PeerChokeCommand.h
  2158. * src/PeerInitiateConnectionCommand.cc
  2159. * src/PeerInitiateConnectionCommand.h
  2160. * src/PeerInteractionCommand.cc
  2161. * src/PeerInteractionCommand.h
  2162. * src/PeerReceiveHandshakeCommand.cc
  2163. * src/PieceHashCheckIntegrityEntry.cc
  2164. * src/RealtimeCommand.cc
  2165. * src/ReceiverMSEHandshakeCommand.cc
  2166. * src/RequestGroup.cc
  2167. * src/RequestGroup.h
  2168. * src/RequestGroupEntry.cc
  2169. * src/RequestGroupMan.cc
  2170. * src/SeedCheckCommand.cc
  2171. * src/SeedCheckCommand.h
  2172. * src/SegmentMan.cc
  2173. * src/ShareRatioSeedCriteria.h
  2174. * src/SingleFileDownloadContext.cc: Removed
  2175. * src/SingleFileDownloadContext.h: Removed
  2176. * src/SleepCommand.cc
  2177. * src/StreamCheckIntegrityEntry.cc
  2178. * src/TrackerWatcherCommand.cc
  2179. * src/TrackerWatcherCommand.h
  2180. * src/UnknownLengthPieceStorage.cc
  2181. * src/Util.cc
  2182. * src/Util.h
  2183. * src/XmlRpcMethodImpl.cc
  2184. * src/bittorrent_helper.cc
  2185. * src/bittorrent_helper.h
  2186. * src/download_helper.cc
  2187. * src/main.cc
  2188. * src/option_processing.cc
  2189. * test/BitfieldManTest.cc
  2190. * test/BittorrentHelperTest.cc
  2191. * test/BtCancelMessageTest.cc
  2192. * test/BtChokeMessageTest.cc
  2193. * test/BtDependencyTest.cc
  2194. * test/BtPieceMessageTest.cc
  2195. * test/BtPostDownloadHandlerTest.cc
  2196. * test/BtRegistryTest.cc
  2197. * test/BtRejectMessageTest.cc
  2198. * test/BtRequestMessageTest.cc
  2199. * test/DHTPeerAnnounceStorageTest.cc
  2200. * test/DefaultBtAnnounceTest.cc
  2201. * test/DefaultBtContextTest.cc: Removed
  2202. * test/DefaultBtMessageDispatcherTest.cc
  2203. * test/DefaultBtMessageFactoryTest.cc
  2204. * test/DefaultBtProgressInfoFileTest.cc
  2205. * test/DefaultBtRequestFactoryTest.cc
  2206. * test/DefaultExtensionMessageFactoryTest.cc
  2207. * test/DefaultPeerStorageTest.cc
  2208. * test/DefaultPieceStorageTest.cc
  2209. * test/DirectDiskAdaptorTest.cc
  2210. * test/DownloadContextTest.cc
  2211. * test/DownloadHandlerFactoryTest.cc
  2212. * test/DownloadHelperTest.cc
  2213. * test/HandshakeExtensionMessageTest.cc
  2214. * test/HttpRequestTest.cc
  2215. * test/HttpResponseTest.cc
  2216. * test/IteratableChecksumValidatorTest.cc
  2217. * test/IteratableChunkChecksumValidatorTest.cc
  2218. * test/MSEHandshakeTest.cc
  2219. * test/Makefile.am
  2220. * test/Makefile.in
  2221. * test/Metalink2RequestGroupTest.cc
  2222. * test/MetalinkPostDownloadHandlerTest.cc
  2223. * test/MockBtContext.h: Removed
  2224. * test/MockDHTTaskFactory.h
  2225. * test/MockDownloadContext.h: Removed
  2226. * test/MockPieceStorage.h
  2227. * test/MultiDiskAdaptorTest.cc
  2228. * test/MultiFileAllocationIteratorTest.cc
  2229. * test/RequestGroupManTest.cc
  2230. * test/RequestGroupTest.cc
  2231. * test/SegmentManTest.cc
  2232. * test/ShareRatioSeedCriteriaTest.cc
  2233. * test/SingleFileDownloadContextTest.cc: Removed
  2234. * test/UtilTest.cc
  2235. * test/XmlRpcMethodTest.cc
  2236. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  2237. Added experimental support of WEB-Seeding for multi-file torrent.
  2238. Due to fundamental changes in file handling in HTTP/FTP code, many
  2239. functions are not working: PeerStat, ServerHost, proxy..etc
  2240. * src/AbstractCommand.cc
  2241. * src/AbstractCommand.h
  2242. * src/BitfieldMan.cc
  2243. * src/BitfieldMan.h
  2244. * src/CreateRequestCommand.cc
  2245. * src/CreateRequestCommand.h
  2246. * src/DefaultPieceStorage.cc
  2247. * src/DefaultPieceStorage.h
  2248. * src/DownloadCommand.cc
  2249. * src/DownloadCommand.h
  2250. * src/DownloadContext.cc
  2251. * src/DownloadContext.h
  2252. * src/FileEntry.cc
  2253. * src/FileEntry.h
  2254. * src/FtpDownloadCommand.cc
  2255. * src/FtpDownloadCommand.h
  2256. * src/FtpFinishDownloadCommand.cc
  2257. * src/FtpFinishDownloadCommand.h
  2258. * src/FtpInitiateConnectionCommand.cc
  2259. * src/FtpInitiateConnectionCommand.h
  2260. * src/FtpNegotiationCommand.cc
  2261. * src/FtpNegotiationCommand.h
  2262. * src/FtpTunnelResponseCommand.cc
  2263. * src/HttpDownloadCommand.cc
  2264. * src/HttpDownloadCommand.h
  2265. * src/HttpInitiateConnectionCommand.cc
  2266. * src/HttpInitiateConnectionCommand.h
  2267. * src/HttpProxyResponseCommand.cc
  2268. * src/HttpRequest.cc
  2269. * src/HttpRequest.h
  2270. * src/HttpRequestCommand.cc
  2271. * src/HttpRequestCommand.h
  2272. * src/HttpResponseCommand.cc
  2273. * src/HttpResponseCommand.h
  2274. * src/HttpSkipResponseCommand.cc
  2275. * src/HttpSkipResponseCommand.h
  2276. * src/InitiateConnectionCommand.cc
  2277. * src/InitiateConnectionCommand.h
  2278. * src/InitiateConnectionCommandFactory.cc
  2279. * src/InitiateConnectionCommandFactory.h
  2280. * src/Makefile.am
  2281. * src/PieceStorage.h
  2282. * src/RequestGroup.cc
  2283. * src/RequestGroup.h
  2284. * src/RequestGroupMan.cc
  2285. * src/SegmentMan.cc
  2286. * src/SegmentMan.h
  2287. * src/SingleFileDownloadContext.h
  2288. * src/StreamFileAllocationEntry.cc
  2289. * src/TrackerWatcherCommand.cc
  2290. * src/UnknownLengthPieceStorage.cc
  2291. * src/UnknownLengthPieceStorage.h
  2292. * src/array_fun.h
  2293. * src/bitfield.h
  2294. * src/download_helper.cc
  2295. * test/DownloadContextTest.cc
  2296. * test/Makefile.am
  2297. * test/MockDownloadContext.h
  2298. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  2299. Added tellWaiting XML-RPC method.
  2300. * src/SingleFileDownloadContext.cc
  2301. * src/XmlRpcMethodFactory.cc
  2302. * src/XmlRpcMethodImpl.cc
  2303. * src/XmlRpcMethodImpl.h
  2304. * test/XmlRpcMethodTest.cc
  2305. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  2306. Updated CookieStorageTest
  2307. * test/CookieStorageTest.cc
  2308. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2309. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2310. handle excepion inside these functions.
  2311. * src/LibgnutlsTLSContext.cc
  2312. * src/LibgnutlsTLSContext.h
  2313. * src/LibsslTLSContext.cc
  2314. * src/LibsslTLSContext.h
  2315. * src/MultiUrlRequestInfo.cc
  2316. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2317. Added comment
  2318. * src/RequestGroup.cc
  2319. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2320. In CookieStorage::load() and saveNsFormat(), handle exception
  2321. inside the functions. When saving Cookies, first write temporary
  2322. file and after successful writes, then renames it to final
  2323. destination.
  2324. * src/CookieStorage.cc
  2325. * src/CookieStorage.h
  2326. * src/MultiUrlRequestInfo.cc
  2327. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2328. The default value of --dir option is the absolute path to the
  2329. current directory. If getcwd() is failed, then it is ".", which is
  2330. the same value with old implementation. This change is necessary
  2331. because after daemon() call, the current working directory is
  2332. changed to /.
  2333. * src/File.cc
  2334. * src/File.h
  2335. * src/OptionHandlerFactory.cc
  2336. * src/option_processing.cc
  2337. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2338. Call daemon() with arguments(0,0), which means daemon() changes
  2339. current working directory to / and redirects stdin, stdout and
  2340. stderr to /dev/null.
  2341. * src/option_processing.cc
  2342. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2343. Small performance optimizations.
  2344. * src/RequestGroupMan.cc
  2345. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  2346. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2347. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2348. * src/RequestGroupMan.cc
  2349. * src/RequestGroupMan.h
  2350. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  2351. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2352. setNoWiat(true) if newly created command calls
  2353. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2354. * src/HttpListenCommand.cc
  2355. * src/HttpServerBodyCommand.cc
  2356. * src/HttpServerCommand.cc
  2357. * src/HttpServerResponseCommand.cc
  2358. * src/InitiateConnectionCommand.cc
  2359. * src/RequestGroup.cc
  2360. * src/StreamFileAllocationEntry.cc
  2361. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  2362. Removed include vector
  2363. * src/BtRegistry.h
  2364. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  2365. Rewritten BtRegistry
  2366. * src/BtRegistry.cc
  2367. * src/BtRegistry.h
  2368. * src/BtSetup.cc
  2369. * src/ConsoleStatCalc.cc
  2370. * src/PeerInteractionCommand.cc
  2371. * src/PeerReceiveHandshakeCommand.cc
  2372. * src/ReceiverMSEHandshakeCommand.cc
  2373. * src/RequestGroup.cc
  2374. * src/XmlRpcMethodImpl.cc
  2375. * test/BtRegistryTest.cc
  2376. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2377. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2378. * src/DefaultBtProgressInfoFile.cc
  2379. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2380. Throw an exception if position is less than 0.
  2381. * src/XmlRpcMethodImpl.cc
  2382. * test/XmlRpcMethodTest.cc
  2383. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2384. Use writeFilePath() in ConsoleStatCalc.cc
  2385. * src/ConsoleStatCalc.cc
  2386. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2387. Receive the return value as const reference from
  2388. DownloadContext::getFileEntries().
  2389. * src/DefaultPieceStorage.cc
  2390. * src/RequestGroupMan.cc
  2391. * src/XmlRpcMethodImpl.cc
  2392. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2393. DownloadContext now has _fileEntries so that
  2394. DownloadContext::getFileEntries() can returns its const reference.
  2395. * src/DefaultBtContext.cc
  2396. * src/DefaultBtContext.h
  2397. * src/DownloadContext.cc
  2398. * src/DownloadContext.h
  2399. * src/SingleFileDownloadContext.cc
  2400. * src/SingleFileDownloadContext.h
  2401. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2402. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2403. writeFilePath() function template from RequestGroupMan.cc to
  2404. FileEntry.h
  2405. * src/FileEntry.h
  2406. * src/RequestGroupMan.cc
  2407. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2408. Documented 'position' parameter is starting from 0 in man page.
  2409. * doc/aria2c.1.txt
  2410. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  2411. Updated doc.
  2412. * src/MSEHandshake.cc
  2413. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  2414. Removed _acceptFeatures and its accessor functions from
  2415. RequestGroup since they are not used practically.
  2416. * src/HttpRequestCommand.cc
  2417. * src/RequestGroup.cc
  2418. * src/RequestGroup.h
  2419. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  2420. Removed member _maxTries from RequestGroup class to avoid
  2421. duplicate option value. Those classes who refer this variable
  2422. should use option value of PREF_MAX_TRIES directly.
  2423. * src/AbstractCommand.cc
  2424. * src/RequestGroup.cc
  2425. * src/RequestGroup.h
  2426. * src/TrackerWatcherCommand.cc
  2427. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2428. * Release 1.4.1
  2429. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2430. Fixed compiler warnings on netbsd
  2431. * src/DHTConnectionImpl.cc
  2432. * src/PeerListenCommand.cc
  2433. * src/PeerSessionResource.cc
  2434. * src/SegmentMan.cc
  2435. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2436. Updated Ukrainian translation. Thanks to all translators.
  2437. * po/uk.po
  2438. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2439. Bump up version number to 1.4.1.
  2440. * configure.ac
  2441. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2442. Added unit tests for strjoin, strconcat and strappend.
  2443. * test/a2functionalTest.cc
  2444. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2445. Rewritten strconcat and strappend using operator+ instead of
  2446. append().
  2447. * src/a2functional.h
  2448. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2449. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2450. is enabled.
  2451. * src/Makefile.am
  2452. * test/Makefile.am
  2453. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2454. Added countSeeder() function which counts seeder in the given
  2455. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2456. * src/ConsoleStatCalc.cc
  2457. * src/Peer.h
  2458. * src/XmlRpcMethodImpl.cc
  2459. * test/PeerTest.cc
  2460. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  2461. Documented missing seeder in getPeers xml-rpc method.
  2462. Documented uploadLength and numSeeders.
  2463. * doc/aria2c.1.txt
  2464. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  2465. Added uploadLength and numSeeders to the response of tellStatus
  2466. xml-rpc method. Assert that PeerStorage instance is not null
  2467. instead of checking if statement. It should be non-null in this
  2468. context.
  2469. * src/XmlRpcMethodImpl.cc
  2470. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  2471. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2472. * src/XmlRpcResponse.cc
  2473. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  2474. Avoid intermediate object during string concatenation.
  2475. * src/HttpRequest.cc
  2476. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  2477. Added strjoin function template. Use it in pathJoin()
  2478. * src/Util.h
  2479. * src/a2functional.h
  2480. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  2481. Avoid intermediate object during string concatenation. Replaced
  2482. post-increment unary operator with pre-increment one in for loop.
  2483. * src/AdaptiveURISelector.cc
  2484. * src/AnnounceList.cc
  2485. * src/AuthConfig.h
  2486. * src/BtBitfieldMessage.cc
  2487. * src/BtExtendedMessage.cc
  2488. * src/BtHandshakeMessage.cc
  2489. * src/BtPieceMessage.cc
  2490. * src/BtPortMessage.cc
  2491. * src/Cookie.cc
  2492. * src/DHTAnnouncePeerMessage.cc
  2493. * src/DHTAutoSaveCommand.cc
  2494. * src/DHTGetPeersReplyMessage.cc
  2495. * src/DHTNode.cc
  2496. * src/DHTQueryMessage.cc
  2497. * src/DHTResponseMessage.cc
  2498. * src/DHTUnknownMessage.cc
  2499. * src/DefaultBtAnnounce.cc
  2500. * src/DefaultBtContext.cc
  2501. * src/DefaultBtInteractive.cc
  2502. * src/DefaultBtProgressInfoFile.cc
  2503. * src/DefaultPeerStorage.cc
  2504. * src/DownloadEngine.cc
  2505. * src/FeatureConfig.cc
  2506. * src/File.cc
  2507. * src/FtpConnection.cc
  2508. * src/FtpNegotiationCommand.cc
  2509. * src/HandshakeExtensionMessage.cc
  2510. * src/HttpConnection.cc
  2511. * src/HttpRequest.cc
  2512. * src/HttpResponseCommand.cc
  2513. * src/HttpServer.cc
  2514. * src/IndexBtMessage.cc
  2515. * src/Metalink2RequestGroup.cc
  2516. * src/OptionHandlerImpl.h
  2517. * src/PStringBuildVisitor.cc
  2518. * src/Peer.cc
  2519. * src/PeerListenCommand.cc
  2520. * src/Piece.cc
  2521. * src/RangeBtMessage.cc
  2522. * src/Request.cc
  2523. * src/Request.h
  2524. * src/RequestGroup.cc
  2525. * src/RequestGroupMan.cc
  2526. * src/ServerStat.cc
  2527. * src/ServerStatMan.cc
  2528. * src/UTPexExtensionMessage.cc
  2529. * src/Util.cc
  2530. * src/a2functional.h
  2531. * src/download_helper.cc
  2532. * src/messageDigest.cc
  2533. 2009-06-04 Tatsuhiro Tsujikawa <[email protected]>
  2534. Unchoke a peer randomly at first and second choke round in seed
  2535. state.
  2536. * src/BtSeederStateChoke.cc
  2537. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2538. Added (sock_t) to quiet compiler warnings in MinGW
  2539. * src/SocketCore.cc
  2540. * src/SocketCore.h
  2541. 2009-06-02 Tatsuhiro Tsujikawa <[email protected]>
  2542. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2543. * src/EpollEventPoll.h
  2544. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2545. Added fork() emulation using CreateProcess() in MinGW
  2546. * src/RequestGroupMan.cc
  2547. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  2548. * Release 1.4.0
  2549. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  2550. Added utf8.torrent to EXTRA_DIST
  2551. * test/Makefile.am
  2552. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  2553. Fixed docs of aria2.addMetalink xml-rpc method.
  2554. * doc/aria2c.1.txt
  2555. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  2556. Added Slovak translation. Updated Ukrainian and Brazilian
  2557. Portuguese translation. Thanks to all translators.
  2558. * po/sk.po
  2559. * po/uk.po
  2560. * po/pt_BR.po
  2561. * po/LINGUAS
  2562. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  2563. Added test case for XmlRpcProcessor to fail to parse malformed
  2564. document.
  2565. * test/XmlRpcRequestProcessorTest.cc
  2566. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  2567. Removed *.gmo files in po because they are generated on 'make
  2568. dist'
  2569. * po/*.gmo
  2570. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  2571. Documented max-concurrent-downloads of changeGlobalOption method
  2572. in man page.
  2573. * doc/aria2c.1.txt
  2574. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  2575. Added max-concurrent-downloads option to changeGlobalOption
  2576. xml-rpc method. Rewritten loop conditional in
  2577. RequestGroupMan::fillRequestGroupFromReserver().
  2578. * src/RequestGroupMan.cc
  2579. * src/RequestGroupMan.h
  2580. * src/XmlRpcMethod.cc
  2581. * src/XmlRpcMethodImpl.cc
  2582. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  2583. Documented position parameter in man page.
  2584. * doc/aria2c.1.txt
  2585. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  2586. Added 'position' parameter to addUri, addTorrent and addMetalink
  2587. xml-rpc method.
  2588. * src/RequestGroupMan.cc
  2589. * src/RequestGroupMan.h
  2590. * src/XmlRpcMethodImpl.cc
  2591. * test/XmlRpcMethodTest.cc
  2592. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  2593. Removed Peer.cc from compile source list when --disable-bittorrent
  2594. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2595. takes Peer.
  2596. * src/DefaultPieceStorage.cc
  2597. * src/DefaultPieceStorage.h
  2598. * src/Makefile.am
  2599. * src/PieceStorage.h
  2600. * src/UnknownLengthPieceStorage.cc
  2601. * src/UnknownLengthPieceStorage.h
  2602. * test/MockPieceStorage.h
  2603. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  2604. Implemented getter methods in header files to give them more
  2605. chance of optimization.
  2606. Return const reference for SharadHandle if possible.
  2607. * src/AbstractAuthResolver.cc
  2608. * src/AbstractAuthResolver.h
  2609. * src/AbstractBtMessage.cc
  2610. * src/AbstractBtMessage.h
  2611. * src/AbstractSingleDiskAdaptor.cc
  2612. * src/AbstractSingleDiskAdaptor.h
  2613. * src/AsyncNameResolver.cc
  2614. * src/AsyncNameResolver.h
  2615. * src/BNode.cc
  2616. * src/BNode.h
  2617. * src/BitfieldMan.cc
  2618. * src/BitfieldMan.h
  2619. * src/BtAbortOutstandingRequestEvent.h
  2620. * src/BtExtendedMessage.cc
  2621. * src/BtExtendedMessage.h
  2622. * src/BtSeederStateChoke.cc
  2623. * src/BtSeederStateChoke.h
  2624. * src/Cookie.cc
  2625. * src/Cookie.h
  2626. * src/DHTBucket.cc
  2627. * src/DHTBucket.h
  2628. * src/DHTConnectionImpl.cc
  2629. * src/DHTConnectionImpl.h
  2630. * src/DHTFindNodeReplyMessage.cc
  2631. * src/DHTFindNodeReplyMessage.h
  2632. * src/DHTGetPeersReplyMessage.cc
  2633. * src/DHTGetPeersReplyMessage.h
  2634. * src/DHTInteractionCommand.cc
  2635. * src/DHTMessage.cc
  2636. * src/DHTMessage.h
  2637. * src/DHTMessageDispatcherImpl.cc
  2638. * src/DHTMessageEntry.cc
  2639. * src/DHTMessageReceiver.cc
  2640. * src/DHTMessageReceiver.h
  2641. * src/DHTMessageTrackerEntry.cc
  2642. * src/DHTMessageTrackerEntry.h
  2643. * src/DHTPeerAnnounceEntry.cc
  2644. * src/DHTPeerAnnounceEntry.h
  2645. * src/DHTPeerLookupTask.cc
  2646. * src/DHTPeerLookupTask.h
  2647. * src/DHTRoutingTableDeserializer.cc
  2648. * src/DHTRoutingTableDeserializer.h
  2649. * src/DefaultBtAnnounce.cc
  2650. * src/DefaultBtAnnounce.h
  2651. * src/DefaultBtMessageDispatcher.cc
  2652. * src/DefaultBtMessageDispatcher.h
  2653. * src/DefaultBtRequestFactory.cc
  2654. * src/DefaultBtRequestFactory.h
  2655. * src/DiskAdaptor.cc
  2656. * src/DiskAdaptor.h
  2657. * src/DownloadContext.cc
  2658. * src/DownloadContext.h
  2659. * src/DownloadEngine.cc
  2660. * src/DownloadEngine.h
  2661. * src/EpollEventPoll.cc
  2662. * src/EpollEventPoll.h
  2663. * src/FtpConnection.cc
  2664. * src/FtpConnection.h
  2665. * src/HttpConnection.cc
  2666. * src/HttpConnection.h
  2667. * src/HttpHeader.cc
  2668. * src/HttpHeader.h
  2669. * src/HttpRequest.cc
  2670. * src/HttpRequest.h
  2671. * src/HttpResponse.cc
  2672. * src/HttpResponse.h
  2673. * src/LibsslTLSContext.cc
  2674. * src/LibsslTLSContext.h
  2675. * src/MSEHandshake.cc
  2676. * src/MSEHandshake.h
  2677. * src/MetalinkEntry.cc
  2678. * src/MetalinkEntry.h
  2679. * src/MetalinkParserController.cc
  2680. * src/MetalinkParserController.h
  2681. * src/MetalinkParserStateMachine.cc
  2682. * src/MetalinkParserStateMachine.h
  2683. * src/MultiDiskAdaptor.cc
  2684. * src/MultiDiskAdaptor.h
  2685. * src/NetrcAuthResolver.cc
  2686. * src/NetrcAuthResolver.h
  2687. * src/Peer.cc
  2688. * src/Peer.h
  2689. * src/PeerSessionResource.cc
  2690. * src/PeerSessionResource.h
  2691. * src/Piece.cc
  2692. * src/Piece.h
  2693. * src/PieceStatMan.cc
  2694. * src/PieceStatMan.h
  2695. * src/Request.cc
  2696. * src/Request.h
  2697. * src/RequestGroup.cc
  2698. * src/RequestGroup.h
  2699. * src/RequestGroupMan.cc
  2700. * src/RequestGroupMan.h
  2701. * src/RequestSlot.cc
  2702. * src/RequestSlot.h
  2703. * src/SegmentMan.cc
  2704. * src/SegmentMan.h
  2705. * src/SelectEventPoll.cc
  2706. * src/SelectEventPoll.h
  2707. * src/ServerStat.cc
  2708. * src/ServerStat.h
  2709. * src/Signature.cc
  2710. * src/Signature.h
  2711. * src/URIResult.cc
  2712. * src/URIResult.h
  2713. * src/UTPexExtensionMessage.cc
  2714. * src/UTPexExtensionMessage.h
  2715. 2009-05-28 Tatsuhiro Tsujikawa <[email protected]>
  2716. Fixed compile error without BitTorrent and Metalink support.
  2717. * src/XmlRpcMethod.cc
  2718. * src/XmlRpcMethodFactory.cc
  2719. * src/XmlRpcMethodImpl.cc
  2720. * src/XmlRpcMethodImpl.h
  2721. * test/XmlRpcMethodTest.cc
  2722. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  2723. Rewritten the help message for --allow-overwrite option.
  2724. * doc/aria2c.1.txt
  2725. * src/usage_text.h
  2726. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  2727. Fixed typo
  2728. * doc/aria2c.1.txt
  2729. * src/usage_text.h
  2730. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  2731. Updated README for 1.4.0 release. Use new table syntax of
  2732. asciidoc.
  2733. * README
  2734. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  2735. Documented --xml-rpc-max-request-size option in man page.
  2736. * doc/aria2c.1.txt
  2737. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  2738. Moved C_* constants from BtContext to DefaultBtContext.
  2739. * src/BtContext.cc: Removed.
  2740. * src/BtContext.h
  2741. * src/DefaultBtContext.cc
  2742. * src/DefaultBtContext.h
  2743. * src/Makefile.am
  2744. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  2745. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2746. path key respectively when persing .torrent file.
  2747. * src/BtContext.cc
  2748. * src/BtContext.h
  2749. * src/DefaultBtContext.cc
  2750. * test/DefaultBtContextTest.cc
  2751. * test/utf8.torrent
  2752. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  2753. Added --xml-rpc-max-request-size option to limit the size of
  2754. XML-RPC request.
  2755. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  2756. Documented XML-RPC API in man page.
  2757. * doc/aria2c.1.txt
  2758. 2009-05-24 Tatsuhiro Tsujikawa <[email protected]>
  2759. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2760. will break strict-aliasing rules
  2761. * src/PeerConnection.cc
  2762. * test/DHTRoutingTableSerializerTest.cc
  2763. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2764. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2765. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2766. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2767. PKG_CHECK_MODULES macro uses latter name.
  2768. * m4/sqlite3.m4
  2769. * src/Makefile.am
  2770. * test/Makefile.am
  2771. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2772. Fixed typo
  2773. * configure.ac
  2774. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2775. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2776. presence of libgnutls using pkg-config first. If it fails, fall
  2777. back to old macro libgnutls.m4.
  2778. * configure.ac
  2779. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2780. Use s itself instead of !s.bad()
  2781. * src/CookieStorage.cc
  2782. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2783. Documented --on-download-* option and --save-cookies option in man
  2784. page.
  2785. * doc/aria2c.1.txt
  2786. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2787. Set possible values for --load-cookie option to "/path/to/file".
  2788. * src/OptionHandlerFactory.cc
  2789. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2790. Added --save-cookies option.
  2791. * src/Cookie.cc
  2792. * src/Cookie.h
  2793. * src/CookieStorage.cc
  2794. * src/CookieStorage.h
  2795. * src/MultiUrlRequestInfo.cc
  2796. * src/OptionHandlerFactory.cc
  2797. * src/prefs.cc
  2798. * src/prefs.h
  2799. * src/usage_text.h
  2800. * test/CookieStorageTest.cc
  2801. * test/CookieTest.cc
  2802. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2803. Removed tellAll XML-RPC command because its reponse tends to be
  2804. big if stopped/waiting downloads pile up.
  2805. * src/XmlRpcMethodFactory.cc
  2806. * src/XmlRpcMethodImpl.cc
  2807. * src/XmlRpcMethodImpl.h
  2808. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2809. Added the ability to execute command when download starts and
  2810. stops. You can also specify command for particular cases such as
  2811. complete/error download. Added --on-download-start,
  2812. --on-download-stop, --on-download-complete and --on-download-error
  2813. option.
  2814. * src/OptionHandlerFactory.cc
  2815. * src/RequestGroupMan.cc
  2816. * src/prefs.cc
  2817. * src/prefs.h
  2818. * src/usage_text.h
  2819. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2820. Fixed test error
  2821. * test/BencodeTest.cc
  2822. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2823. Added unit tests.
  2824. * test/XmlRpcMethodTest.cc
  2825. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2826. Made exception message more verbose.
  2827. * src/bencode.cc
  2828. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  2829. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2830. space in console readout. Also they are now shown in MiB/s if
  2831. speed > 1024KiB/s.
  2832. * src/ConsoleStatCalc.cc
  2833. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  2834. Added SEED to console output, which represents the number of
  2835. seeders currently the client is connecting to.
  2836. * src/ConsoleStatCalc.cc
  2837. * src/ConsoleStatCalc.h
  2838. * src/DownloadEngine.cc
  2839. * src/NullStatCalc.h
  2840. * src/StatCalc.h
  2841. 2009-05-18 Tatsuhiro Tsujikawa <[email protected]>
  2842. Added source filename(__FILE__) and line number(__LINE__) to
  2843. exception message.
  2844. * src/AbstractCommand.cc
  2845. * src/AbstractDiskWriter.cc
  2846. * src/AbstractProxyResponseCommand.cc
  2847. * src/BDE.h
  2848. * src/BtAllowedFastMessage.cc
  2849. * src/BtHandshakeMessageValidator.h
  2850. * src/BtHaveAllMessage.cc
  2851. * src/BtHaveNoneMessage.cc
  2852. * src/BtPieceMessage.cc
  2853. * src/BtRejectMessage.cc
  2854. * src/ChunkedDecoder.cc
  2855. * src/CookieStorage.cc
  2856. * src/DHTAnnouncePeerMessage.cc
  2857. * src/DHTEntryPointNameResolveCommand.cc
  2858. * src/DHTMessageFactoryImpl.cc
  2859. * src/DHTMessageTracker.cc
  2860. * src/DHTRoutingTableDeserializer.cc
  2861. * src/DHTRoutingTableSerializer.cc
  2862. * src/DHTSetup.cc
  2863. * src/DHTTokenTracker.cc
  2864. * src/DefaultBtAnnounce.cc
  2865. * src/DefaultBtContext.cc
  2866. * src/DefaultBtInteractive.cc
  2867. * src/DefaultBtMessageFactory.cc
  2868. * src/DefaultBtProgressInfoFile.cc
  2869. * src/DefaultExtensionMessageFactory.cc
  2870. * src/DlAbortEx.h
  2871. * src/DlRetryEx.h
  2872. * src/DownloadCommand.cc
  2873. * src/DownloadEngineFactory.cc
  2874. * src/DownloadFailureException.h
  2875. * src/Exception.cc
  2876. * src/Exception.h
  2877. * src/ExpatMetalinkProcessor.cc
  2878. * src/ExpatXmlRpcRequestProcessor.cc
  2879. * src/FallocFileAllocationIterator.cc
  2880. * src/FatalException.h
  2881. * src/FtpConnection.cc
  2882. * src/FtpFinishDownloadCommand.cc
  2883. * src/FtpInitiateConnectionCommand.cc
  2884. * src/FtpNegotiationCommand.cc
  2885. * src/GZipDecoder.cc
  2886. * src/HandshakeExtensionMessage.cc
  2887. * src/HttpConnection.cc
  2888. * src/HttpHeaderProcessor.cc
  2889. * src/HttpInitiateConnectionCommand.cc
  2890. * src/HttpResponse.cc
  2891. * src/HttpResponseCommand.cc
  2892. * src/HttpServer.cc
  2893. * src/HttpSkipResponseCommand.cc
  2894. * src/InitiateConnectionCommandFactory.cc
  2895. * src/IteratableChunkChecksumValidator.cc
  2896. * src/LibgcryptARC4Context.h
  2897. * src/LibgcryptARC4Decryptor.h
  2898. * src/LibgcryptARC4Encryptor.h
  2899. * src/LibgcryptDHKeyExchange.h
  2900. * src/LibgnutlsTLSContext.cc
  2901. * src/LibsslARC4Context.h
  2902. * src/LibsslARC4Decryptor.h
  2903. * src/LibsslARC4Encryptor.h
  2904. * src/LibsslDHKeyExchange.h
  2905. * src/LibsslTLSContext.cc
  2906. * src/MSEHandshake.cc
  2907. * src/MessageDigestHelper.cc
  2908. * src/MetalinkHelper.cc
  2909. * src/MultiDiskAdaptor.cc
  2910. * src/NameMatchOptionHandler.h
  2911. * src/NameResolver.cc
  2912. * src/Netrc.cc
  2913. * src/NsCookieParser.cc
  2914. * src/OptionHandlerException.cc
  2915. * src/OptionHandlerException.h
  2916. * src/OptionHandlerImpl.h
  2917. * src/OptionParser.cc
  2918. * src/ParameterizedStringParser.cc
  2919. * src/PeerAbstractCommand.cc
  2920. * src/PeerConnection.cc
  2921. * src/PeerMessageUtil.cc
  2922. * src/PeerReceiveHandshakeCommand.cc
  2923. * src/Platform.cc
  2924. * src/ReceiverMSEHandshakeCommand.cc
  2925. * src/RecoverableException.h
  2926. * src/RequestGroup.cc
  2927. * src/SimpleLogger.cc
  2928. * src/SocketCore.cc
  2929. * src/Sqlite3MozCookieParser.cc
  2930. * src/UTPexExtensionMessage.cc
  2931. * src/Util.cc
  2932. * src/XML2SAXMetalinkProcessor.cc
  2933. * src/Xml2XmlRpcRequestProcessor.cc
  2934. * src/XmlRpcMethodImpl.cc
  2935. * src/bencode.cc
  2936. * src/download_helper.cc
  2937. * src/messageDigest.h
  2938. * test/ExceptionTest.cc
  2939. * test/TestUtil.cc
  2940. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  2941. Bump up version number to 1.4.0
  2942. * configure.ac
  2943. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  2944. Added 2files.metalink to EXTRA_DIST
  2945. * test/Makefile.am
  2946. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2947. Added missing 2files.metalink
  2948. * test/2files.metalink
  2949. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2950. Show "[MEMORY]" prefix before filename in download summary if it
  2951. is downloaded into memory.
  2952. * src/DownloadResult.h
  2953. * src/RequestGroup.cc
  2954. * src/RequestGroupMan.cc
  2955. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2956. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2957. * src/ExpatXmlRpcRequestProcessor.cc
  2958. * src/Xml2XmlRpcRequestProcessor.cc
  2959. * src/message.h
  2960. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2961. Defined const BDEs to avoid duplicate instantiation.
  2962. Defined MSG_GID_NOT_PROVIDED.
  2963. * src/XmlRpcMethodImpl.cc
  2964. * src/message.h
  2965. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2966. Code cleanup
  2967. * src/Xml2XmlRpcRequestProcessor.cc
  2968. * src/Xml2XmlRpcRequestProcessor.h
  2969. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2970. Defined ENABLE_XML_RPC
  2971. * configure.ac
  2972. * configure
  2973. * config.h.in
  2974. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2975. Added ExpatXmlRpcRequestProcessor
  2976. * src/ExpatXmlRpcRequestProcessor.cc
  2977. * src/ExpatXmlRpcRequestProcessor.h
  2978. * src/Makefile.am
  2979. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2980. Added tests for addTorrent and addMetalink command.
  2981. * test/TestUtil.cc
  2982. * test/TestUtil.h
  2983. * test/XmlRpcMethodTest.cc
  2984. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2985. Corrected the description of --file-allocation option.
  2986. * doc/aria2c.1.txt
  2987. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2988. Added tellAll command.
  2989. * src/XmlRpcMethodFactory.cc
  2990. * src/XmlRpcMethodImpl.cc
  2991. * src/XmlRpcMethodImpl.h
  2992. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2993. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2994. * src/XmlRpcMethodImpl.cc
  2995. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2996. Added changeGlobalOption command. Currently,
  2997. max-overall-download-limit and max-overall-upload-limit option are
  2998. available.
  2999. * src/RequestGroupMan.h
  3000. * src/XmlRpcMethod.cc
  3001. * src/XmlRpcMethod.h
  3002. * src/XmlRpcMethodFactory.cc
  3003. * src/XmlRpcMethodImpl.cc
  3004. * src/XmlRpcMethodImpl.h
  3005. * test/XmlRpcMethodTest.cc
  3006. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  3007. Added changeOption command. Currently, max-download-limit,
  3008. max-upload-limit option are available in this command.
  3009. * src/RequestGroup.h
  3010. * src/XmlRpcMethod.cc
  3011. * src/XmlRpcMethod.h
  3012. * src/XmlRpcMethodFactory.cc
  3013. * src/XmlRpcMethodImpl.cc
  3014. * src/XmlRpcMethodImpl.h
  3015. * test/XmlRpcMethodTest.cc
  3016. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  3017. Added purgeDownloadResult command.
  3018. * src/RequestGroupMan.cc
  3019. * src/RequestGroupMan.h
  3020. * src/XmlRpcMethodFactory.cc
  3021. * src/XmlRpcMethodImpl.cc
  3022. * src/XmlRpcMethodImpl.h
  3023. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  3024. Refactored.
  3025. * src/XmlRpcMethod.cc
  3026. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  3027. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3028. XmlRpcResponse.
  3029. * src/HttpServerBodyCommand.cc
  3030. * src/Makefile.am
  3031. * src/XmlRpcMethod.cc
  3032. * src/XmlRpcMethod.h
  3033. * src/XmlRpcMethodImpl.cc
  3034. * src/XmlRpcResponse.cc
  3035. * src/XmlRpcResponse.h
  3036. * test/XmlRpcMethodTest.cc
  3037. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  3038. In XML-RPC option struct, header and index-out option can take
  3039. array as value.
  3040. * src/XmlRpcMethod.cc
  3041. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  3042. Removed unused option member from PeerConnection.
  3043. * src/InitiatorMSEHandshakeCommand.cc
  3044. * src/PeerConnection.cc
  3045. * src/PeerConnection.h
  3046. * src/PeerInteractionCommand.cc
  3047. * src/PeerReceiveHandshakeCommand.cc
  3048. * src/ReceiverMSEHandshakeCommand.cc
  3049. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  3050. Added "seeder" key to getPeers response.
  3051. * src/XmlRpcMethodImpl.cc
  3052. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  3053. Added addMetalink XML-RPC command.
  3054. * src/XmlRpcMethodFactory.cc
  3055. * src/XmlRpcMethodImpl.cc
  3056. * src/XmlRpcMethodImpl.h
  3057. * src/download_helper.cc
  3058. * src/download_helper.h
  3059. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  3060. Fixed the bug that POU peers are never choked in seeding.
  3061. * src/BtSeederStateChoke.cc
  3062. * src/BtSeederStateChoke.h
  3063. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  3064. Added web-seeding URI handling in addTorrent command.
  3065. * src/XmlRpcMethodImpl.cc
  3066. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  3067. Added "length" key to getFiles response.
  3068. * src/XmlRpcMethodImpl.cc
  3069. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  3070. Moved --no-netrc option from ftp option section to http/ftp option
  3071. section.
  3072. * doc/aria2c.1.txt
  3073. * src/OptionHandlerFactory.cc
  3074. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  3075. Removed garbage "\" character before '
  3076. * doc/aria2c.1.txt
  3077. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  3078. Removed garbage "\" character before http.
  3079. * doc/aria2c.1.txt
  3080. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  3081. Documented additional options that can be specified in -i list.
  3082. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3083. and --xml-rpc-passwd. Removed --enable-http-server and
  3084. --http-server-listen-port.
  3085. * doc/aria2c.1.txt
  3086. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  3087. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3088. * src/DefaultPeerStorage.cc
  3089. * src/DefaultPeerStorage.h
  3090. * src/PeerStorage.h
  3091. * src/XmlRpcMethodImpl.cc
  3092. * test/MockPeerStorage.h
  3093. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  3094. Put a call to Socket::isReadable() in try block.
  3095. * src/HttpServerBodyCommand.cc
  3096. * src/HttpServerCommand.cc
  3097. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  3098. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3099. exception , so it is now in try block.
  3100. * src/HttpServerResponseCommand.cc
  3101. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  3102. Added "amChoking" and "peerChoking" key in getPeers response.
  3103. * src/XmlRpcMethodImpl.cc
  3104. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  3105. Added test case for zero-length filter.
  3106. * test/BitfieldManTest.cc
  3107. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  3108. getFiles command now returns file data for finished/stopped
  3109. downloads.
  3110. * src/XmlRpcMethodImpl.cc
  3111. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  3112. DownloadResult now has the list of FileEntry. The download
  3113. summary displays the path of first selected file and the number of
  3114. remaining files for multi-file torrent.
  3115. * src/DownloadResult.h
  3116. * src/RequestGroup.cc
  3117. * src/RequestGroupMan.cc
  3118. * test/RequestGroupTest.cc
  3119. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  3120. Fixed segmentation fault error when no file is selected in
  3121. multi-file torrent.
  3122. * src/BitfieldMan.cc
  3123. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  3124. Escaped <,>,& character in XML-RPC response.
  3125. * src/XmlRpcMethod.cc
  3126. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  3127. Throw DlAbortEx instead of FatalException during parsing options
  3128. because we don't want for aria2 to quit when bad option is passed
  3129. via XML-RPC.
  3130. * src/OptionHandlerException.cc
  3131. * src/OptionHandlerException.h
  3132. * src/OptionHandlerImpl.h
  3133. * src/OptionParser.cc
  3134. * src/OptionParser.h
  3135. * src/PStringSegment.cc
  3136. * src/ParameterizedStringParser.cc
  3137. * src/download_helper.cc
  3138. * test/ParameterizedStringParserTest.cc
  3139. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  3140. Selecting files are now done in
  3141. DefaultBtContext::setFileFileter().
  3142. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3143. functions are removed because they are no longer used. Creating
  3144. filter in BitfieldMan is done in new funtion
  3145. PieceStorage::setupFileFilter()
  3146. * src/BtContext.cc
  3147. * src/BtContext.h
  3148. * src/DefaultBtContext.cc
  3149. * src/DefaultBtContext.h
  3150. * src/DefaultPieceStorage.cc
  3151. * src/DefaultPieceStorage.h
  3152. * src/DiskAdaptor.cc
  3153. * src/DiskAdaptor.h
  3154. * src/PieceStorage.h
  3155. * src/RequestGroup.cc
  3156. * src/UnknownLengthPieceStorage.h
  3157. * src/XmlRpcMethodImpl.cc
  3158. * test/DefaultBtContextTest.cc
  3159. * test/MockBtContext.h
  3160. * test/MockPieceStorage.h
  3161. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3162. Fixed compile error on Mac OS X
  3163. * src/HttpServer.cc
  3164. * src/XmlRpcMethod.h
  3165. * src/XmlRpcMethodImpl.cc
  3166. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3167. Use std::binary_search instead of std::find
  3168. * src/DefaultPieceStorage.cc
  3169. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3170. Removed unnecessary BDE() call; leave them to implicit conversion.
  3171. * src/XmlRpcMethodImpl.cc
  3172. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3173. Return connections and gid in string
  3174. * src/XmlRpcMethodImpl.cc
  3175. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3176. Renamed addURI as addUri
  3177. * src/XmlRpcMethodFactory.cc
  3178. * src/XmlRpcMethodImpl.cc
  3179. * src/XmlRpcMethodImpl.h
  3180. * test/XmlRpcMethodTest.cc
  3181. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3182. Renamed addTorrentFile as addTorrent
  3183. * src/XmlRpcMethodFactory.cc
  3184. * src/XmlRpcMethodImpl.cc
  3185. * src/XmlRpcMethodImpl.h
  3186. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3187. The information for files, URIs, peers are removed from the
  3188. reponse of TellaActive, TellStatus command because they tend to be
  3189. large. Instead they can be retrieved by the dedicated commands:
  3190. getFiles, getUris and getPeers respectively.
  3191. * src/XmlRpcMethodFactory.cc
  3192. * src/XmlRpcMethodImpl.cc
  3193. * src/XmlRpcMethodImpl.h
  3194. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3195. Removed --max-overall-upload-limit and
  3196. --max-overall-download-limit option from listRequestOptions.
  3197. * src/download_helper.cc
  3198. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3199. Log incoming host in HttpListenCommand.
  3200. * src/HttpListenCommand.cc
  3201. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3202. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3203. --xml-rpc-passwd option.
  3204. * src/HttpServer.cc
  3205. * src/HttpServer.h
  3206. * src/HttpServerCommand.cc
  3207. * src/OptionHandlerFactory.cc
  3208. * src/prefs.cc
  3209. * src/prefs.h
  3210. * src/usage_text.h
  3211. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3212. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3213. processing 0 length request.
  3214. * src/HttpServerBodyCommand.cc
  3215. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3216. Removed --enable-http-server and --http-server-listen-port
  3217. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3218. instead. The original feature for --enable-http-server that
  3219. reports download progress in HTML was officially removed. Persist
  3220. XML-RPC connection if client supports keep-alive.
  3221. * src/DownloadEngineFactory.cc
  3222. * src/HttpServerCommand.cc
  3223. * src/HttpServerResponseCommand.cc
  3224. * src/Makefile.am
  3225. * src/Makefile.in
  3226. * src/OptionHandlerFactory.cc
  3227. * src/RequestGroupMan.cc
  3228. * src/main.cc
  3229. * src/option_processing.cc
  3230. * src/prefs.cc
  3231. * src/prefs.h
  3232. * src/usage_text.h
  3233. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3234. Added "uris" key to the response of tellStatus command. Added
  3235. "connections" key to the response of tellStatus and tellActive
  3236. command.
  3237. * src/XmlRpcMethodImpl.cc
  3238. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3239. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3240. Added TellStatusXmlRpcMethod. Remove command can now remove
  3241. waiting RequestGroup.
  3242. * src/RequestGroupMan.cc
  3243. * src/RequestGroupMan.h
  3244. * src/XmlRpcMethodFactory.cc
  3245. * src/XmlRpcMethodImpl.cc
  3246. * src/XmlRpcMethodImpl.h
  3247. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3248. Initialized _peerId
  3249. * src/Peer.cc
  3250. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3251. Return fault structure for error. FailXmlRpcMethod is renamed as
  3252. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3253. in non-torrent download. Return single param value.
  3254. * src/XmlRpcMethod.cc
  3255. * src/XmlRpcMethodFactory.cc
  3256. * src/XmlRpcMethodImpl.cc
  3257. * src/XmlRpcMethodImpl.h
  3258. * test/XmlRpcMethodTest.cc
  3259. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3260. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3261. command.
  3262. * src/RequestGroup.cc
  3263. * src/RequestGroup.h
  3264. * src/RequestGroupMan.cc
  3265. * src/XmlRpcMethodImpl.cc
  3266. * test/RequestGroupTest.cc
  3267. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3268. Added more options that can be specified in -i list and xml-rpc
  3269. add* command.
  3270. * src/download_helper.h
  3271. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3272. The available options in -i list should be listed in
  3273. listRequestOptions().
  3274. * src/download_helper.cc
  3275. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3276. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3277. command.
  3278. * src/XmlRpcMethodImpl.cc
  3279. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3280. Now RequestGroup has its own copy of Option object. This will help
  3281. to give custom option for each RequestGroup.
  3282. addTorrentFile command now takes options.
  3283. * src/AbstractCommand.cc
  3284. * src/AbstractCommand.h
  3285. * src/AbstractProxyRequestCommand.cc
  3286. * src/ActivePeerConnectionCommand.cc
  3287. * src/ActivePeerConnectionCommand.h
  3288. * src/AdaptiveURISelector.cc
  3289. * src/BtCheckIntegrityEntry.cc
  3290. * src/BtDependency.cc
  3291. * src/BtDependency.h
  3292. * src/BtFileAllocationEntry.cc
  3293. * src/BtPostDownloadHandler.cc
  3294. * src/CheckIntegrityEntry.cc
  3295. * src/DownloadCommand.cc
  3296. * src/FtpDownloadCommand.cc
  3297. * src/FtpFinishDownloadCommand.cc
  3298. * src/FtpInitiateConnectionCommand.cc
  3299. * src/FtpNegotiationCommand.cc
  3300. * src/HttpInitiateConnectionCommand.cc
  3301. * src/HttpRequestCommand.cc
  3302. * src/HttpResponseCommand.cc
  3303. * src/HttpSkipResponseCommand.cc
  3304. * src/InitiateConnectionCommand.cc
  3305. * src/InitiateConnectionCommandFactory.cc
  3306. * src/InitiatorMSEHandshakeCommand.cc
  3307. * src/InitiatorMSEHandshakeCommand.h
  3308. * src/Metalink2RequestGroup.cc
  3309. * src/Metalink2RequestGroup.h
  3310. * src/MetalinkPostDownloadHandler.cc
  3311. * src/MultiUrlRequestInfo.cc
  3312. * src/MultiUrlRequestInfo.h
  3313. * src/PeerAbstractCommand.cc
  3314. * src/PeerInteractionCommand.cc
  3315. * src/PeerInteractionCommand.h
  3316. * src/PeerReceiveHandshakeCommand.cc
  3317. * src/PeerReceiveHandshakeCommand.h
  3318. * src/RequestGroup.cc
  3319. * src/RequestGroup.h
  3320. * src/TrackerWatcherCommand.cc
  3321. * src/TrackerWatcherCommand.h
  3322. * src/XmlRpcMethod.cc
  3323. * src/XmlRpcMethod.h
  3324. * src/XmlRpcMethodImpl.cc
  3325. * src/download_helper.cc
  3326. * src/download_helper.h
  3327. * src/main.cc
  3328. * test/BtDependencyTest.cc
  3329. * test/BtPostDownloadHandlerTest.cc
  3330. * test/DefaultBtMessageDispatcherTest.cc
  3331. * test/DownloadHandlerFactoryTest.cc
  3332. * test/DownloadHelperTest.cc
  3333. * test/Metalink2RequestGroupTest.cc
  3334. * test/MetalinkPostDownloadHandlerTest.cc
  3335. * test/RequestGroupManTest.cc
  3336. * test/RequestGroupTest.cc
  3337. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3338. Added tellActiveStatus xml-rpc command which reports download
  3339. status of active downloads.
  3340. * src/XmlRpcMethodFactory.cc
  3341. * src/XmlRpcMethodImpl.cc
  3342. * src/XmlRpcMethodImpl.h
  3343. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3344. Added addTorrentFile xml-rpc command which receives uploaded
  3345. torrent file and add download for it.
  3346. * src/RequestGroupMan.cc
  3347. * src/XmlRpcMethodFactory.cc
  3348. * src/XmlRpcMethodImpl.cc
  3349. * src/XmlRpcMethodImpl.h
  3350. * src/download_helper.cc
  3351. * src/download_helper.h
  3352. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3353. Added remove xml-rpc command which removes specified download.
  3354. There is a known issue: the removed unfinished downloads are
  3355. reported ERR when aria2 exits. They should be reported as INPR.
  3356. * src/RequestGroupMan.cc
  3357. * src/RequestGroupMan.h
  3358. * src/XmlRpcMethodFactory.cc
  3359. * src/XmlRpcMethodImpl.cc
  3360. * src/XmlRpcMethodImpl.h
  3361. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3362. If --enable-http-server is enabled, don't stop aria2 when all
  3363. download finished and don't quit when no files to download at
  3364. start up.
  3365. * src/RequestGroupMan.cc
  3366. * src/main.cc
  3367. * src/option_processing.cc
  3368. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3369. Added missing AM_CONDITIONAL
  3370. * configure.ac
  3371. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3372. Added xml-rpc functionality. Currently only addURI commad is
  3373. supported. To enable xml-rpc, run aria2 with
  3374. --enable-http-server. This option name is temporal and will be
  3375. changed. The feature that reports download progress in html format
  3376. is temporarily disabled.
  3377. * src/HttpServer.cc
  3378. * src/HttpServer.h
  3379. * src/HttpServerBodyCommand.cc
  3380. * src/HttpServerBodyCommand.h
  3381. * src/HttpServerCommand.cc
  3382. * src/HttpServerResponseCommand.cc
  3383. * src/Makefile.am
  3384. * src/OptionParser.cc
  3385. * src/OptionParser.h
  3386. * src/RequestGroupMan.cc
  3387. * src/RequestGroupMan.h
  3388. * src/XmlRpcMethod.cc
  3389. * src/XmlRpcMethod.h
  3390. * src/XmlRpcMethodFactory.cc
  3391. * src/XmlRpcMethodFactory.h
  3392. * src/XmlRpcMethodImpl.cc
  3393. * src/XmlRpcMethodImpl.h
  3394. * src/download_helper.cc
  3395. * src/download_helper.h
  3396. * test/Makefile.am
  3397. * test/XmlRpcMethodTest.cc
  3398. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3399. Added xml-rpc request parser. The supported value types are:
  3400. i4/int, string, double, struct, array, base64. Currently only
  3401. libxml2 version is provided.
  3402. * src/Xml2XmlRpcRequestProcessor.cc
  3403. * src/Xml2XmlRpcRequestProcessor.h
  3404. * src/XmlRpcElements.cc
  3405. * src/XmlRpcElements.h
  3406. * src/XmlRpcRequest.h
  3407. * src/XmlRpcRequestParserController.cc
  3408. * src/XmlRpcRequestParserController.h
  3409. * src/XmlRpcRequestParserState.h
  3410. * src/XmlRpcRequestParserStateImpl.cc
  3411. * src/XmlRpcRequestParserStateImpl.h
  3412. * src/XmlRpcRequestParserStateMachine.cc
  3413. * src/XmlRpcRequestParserStateMachine.h
  3414. * src/XmlRpcRequestProcessor.h
  3415. * test/XmlRpcRequestParserControllerTest.cc
  3416. * test/XmlRpcRequestProcessorTest.cc
  3417. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3418. * Release 1.3.3
  3419. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3420. Fixed compile error since r1202.
  3421. * src/ExpatMetalinkProcessor.cc
  3422. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3423. Updated Ukrainian, Russian and Simplified Chinese
  3424. translations. Thanks to all translators.
  3425. * po/ru.po
  3426. * po/uk.po
  3427. * po/zh_CN.po
  3428. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  3429. Pass reference of Option object instead of pointer.
  3430. * src/download_helper.cc
  3431. * src/download_helper.h
  3432. * src/main.cc
  3433. * test/DownloadHelperTest.cc
  3434. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  3435. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3436. from option directly. Instead, get them from RequestGroup.
  3437. * src/ActivePeerConnectionCommand.cc
  3438. * src/ActivePeerConnectionCommand.h
  3439. * src/PeerReceiveHandshakeCommand.cc
  3440. * src/RequestGroup.h
  3441. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  3442. Removed unused uploadLimitCheck and uploadLimit from
  3443. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3444. PeerInteractionCommand.
  3445. * src/PeerAbstractCommand.cc
  3446. * src/PeerAbstractCommand.h
  3447. * src/PeerInteractionCommand.cc
  3448. * src/PeerInteractionCommand.h
  3449. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  3450. Fixed broken file renaming feature since r1202.
  3451. * src/FtpNegotiationCommand.cc
  3452. * src/FtpNegotiationCommand.h
  3453. * src/HttpResponseCommand.cc
  3454. * src/RequestGroup.cc
  3455. * src/RequestGroup.h
  3456. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  3457. Removed unused debug log
  3458. * src/SocketCore.cc
  3459. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  3460. Generated configure and Makefile.in using autoconf 2.63 and
  3461. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3462. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3463. * configure.ac
  3464. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  3465. Moved piece statistics stuff to new PieceStatMan class.
  3466. Refactored PieceSelector interface.
  3467. * src/DefaultPieceStorage.cc
  3468. * src/DefaultPieceStorage.h
  3469. * src/LongestSequencePieceSelector.cc
  3470. * src/LongestSequencePieceSelector.h
  3471. * src/Makefile.am
  3472. * src/PieceSelector.h
  3473. * src/PieceStatMan.cc
  3474. * src/PieceStatMan.h
  3475. * src/RarestPieceSelector.cc
  3476. * src/RarestPieceSelector.h
  3477. * src/RequestGroup.cc
  3478. * test/DefaultPieceStorageTest.cc
  3479. * test/InOrderPieceSelector.h
  3480. * test/Makefile.am
  3481. * test/PieceStatManTest.cc
  3482. * test/RarestPieceSelectorTest.cc
  3483. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  3484. Added static member _protocolFamily to SocketCore. By default,
  3485. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3486. address. Sometime SocketCore::bind() and
  3487. SocketCore::establishConnection() use difference protocl family
  3488. and latter cannot connect to former. To avoid this situation, we
  3489. limit protocol family to AF_INET for unit tests.
  3490. * src/SocketCore.cc
  3491. * src/SocketCore.h
  3492. * test/AllTest.cc
  3493. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  3494. Avoid std::bad_alloc for negative bencode string length.
  3495. * src/bencode.cc
  3496. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  3497. Supported segmented downloading with chunked transfer encoding and
  3498. content-length.
  3499. * src/DownloadCommand.cc
  3500. * src/HttpResponseCommand.cc
  3501. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  3502. Bump up version number to 1.3.3
  3503. * configure.ac
  3504. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  3505. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3506. from 4096 to 65536 (for insanely large ftp login banners)
  3507. * src/FtpConnection.h
  3508. * test/FtpConnectionTest.cc
  3509. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  3510. In DefaultBtContext::getActualBasePath(), return first
  3511. FileEntry::getPath() for single file torrent.
  3512. * src/DefaultBtContext.cc
  3513. * test/DefaultBtContextTest.cc
  3514. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  3515. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3516. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3517. Removed _directIOAllowed member from DiskWriter.
  3518. * src/AbstractDiskWriter.cc
  3519. * src/AbstractDiskWriter.h
  3520. * src/AbstractSingleDiskAdaptor.cc
  3521. * src/AbstractSingleDiskAdaptor.h
  3522. * src/BinaryStream.h
  3523. * src/ByteArrayDiskWriter.h
  3524. * src/DefaultPieceStorage.cc
  3525. * src/DiskWriter.h
  3526. * src/MultiDiskAdaptor.cc
  3527. * src/MultiDiskAdaptor.h
  3528. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  3529. Now the constructor of AbstractDiskWriter takes filename as an
  3530. argument and filename argument is removed from openFile(),
  3531. initAndOpenFile(), openExistingFile() interface. storeDir member
  3532. and its accessor functions are removed from DiskAdaptor because it
  3533. is not used anymore. size() member function of DefaultDiskWriter,
  3534. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3535. opening file.
  3536. * src/AbstractDiskWriter.cc
  3537. * src/AbstractDiskWriter.h
  3538. * src/AbstractSingleDiskAdaptor.cc
  3539. * src/AbstractSingleDiskAdaptor.h
  3540. * src/ByteArrayDiskWriter.cc
  3541. * src/ByteArrayDiskWriter.h
  3542. * src/ByteArrayDiskWriterFactory.cc
  3543. * src/ByteArrayDiskWriterFactory.h
  3544. * src/DefaultDiskWriter.cc
  3545. * src/DefaultDiskWriter.h
  3546. * src/DefaultDiskWriterFactory.cc
  3547. * src/DefaultDiskWriterFactory.h
  3548. * src/DefaultPieceStorage.cc
  3549. * src/DirectDiskAdaptor.cc
  3550. * src/DirectDiskAdaptor.h
  3551. * src/DiskAdaptor.h
  3552. * src/DiskWriter.h
  3553. * src/DiskWriterFactory.h
  3554. * src/MessageDigestHelper.cc
  3555. * src/MultiDiskAdaptor.cc
  3556. * src/RequestGroup.cc
  3557. * src/UnknownLengthPieceStorage.cc
  3558. * src/Util.cc
  3559. * test/DefaultDiskWriterTest.cc
  3560. * test/DirectDiskAdaptorTest.cc
  3561. * test/FallocFileAllocationIteratorTest.cc
  3562. * test/MessageDigestHelperTest.cc
  3563. * test/MetalinkProcessorTest.cc
  3564. * test/MultiDiskAdaptorTest.cc
  3565. * test/MultiFileAllocationIteratorTest.cc
  3566. * test/SingleFileAllocationIteratorTest.cc
  3567. * test/UtilTest.cc
  3568. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  3569. Fixed the bug that aria2 aborts when --select-file is used. This
  3570. bug was introduced in r1199.
  3571. * src/MultiDiskAdaptor.cc
  3572. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  3573. Code cleanup
  3574. * test/MockPieceStorage.cc
  3575. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  3576. Fixed the bug that read-only file with wrong file size will cause
  3577. error because it cannot be truncated to the correct size. Now if
  3578. file size is different than the expected one, re-open file in
  3579. writable mode.
  3580. * src/AbstractSingleDiskAdaptor.cc
  3581. * src/AbstractSingleDiskAdaptor.h
  3582. * src/BtCheckIntegrityEntry.cc
  3583. * src/DiskAdaptor.h
  3584. * src/MultiDiskAdaptor.h
  3585. * src/RequestGroup.cc
  3586. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  3587. Fixed the bug that with --check-integrity option aria2 reports
  3588. downloaded file size is 0 even if some parts of file is correctly
  3589. downloaded. This bug is reproducible for the download that a file
  3590. includes last piece is missing. This bug doesn't reveal for
  3591. single-torrent with file allocation on.
  3592. * src/IteratableChecksumValidator.cc
  3593. * test/IteratableChecksumValidatorTest.cc
  3594. 2009-05-01 Tatsuhiro Tsujikawa <[email protected]>
  3595. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3596. * src/RequestGroupMan.cc
  3597. * src/AdaptiveURISelector.cc
  3598. * src/AdaptiveURISelector.h
  3599. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  3600. * Release 1.3.2
  3601. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  3602. Updated README
  3603. * README
  3604. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  3605. Updated Ukrainian translations. Thanks to Alexander10.
  3606. * po/uk.po
  3607. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  3608. Code cleanup
  3609. * src/MetalinkParserStateMachine.cc
  3610. * src/MetalinkParserStateMachine.h
  3611. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  3612. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3613. and expat simultaneously, MetalinkProcessor is now not base class
  3614. and it is directly implemented in XML2SAXMetalinkProcessor and
  3615. ExpatMetalinkProcessor.
  3616. * src/ExpatMetalinkProcessor.cc
  3617. * src/ExpatMetalinkProcessor.h
  3618. * src/Makefile.am
  3619. * src/MetalinkHelper.cc
  3620. * src/MetalinkProcessor.h
  3621. * src/MetalinkProcessorFactory.cc: Removed.
  3622. * src/MetalinkProcessorFactory.h: Removed
  3623. * src/XML2SAXMetalinkProcessor.cc
  3624. * src/XML2SAXMetalinkProcessor.h
  3625. * test/MetalinkProcessorTest.cc
  3626. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  3627. Bump up version number to 1.3.2
  3628. * configure.ac
  3629. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  3630. Added missing file.
  3631. * test/Makefile.am
  3632. * test/url-list-singleFileEndsWithSlash.torrent
  3633. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  3634. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3635. request.
  3636. * src/AnnounceList.cc
  3637. * src/AnnounceList.h
  3638. * src/BDE.cc: Added
  3639. * src/BDE.h: Added
  3640. * src/DHTAbstractMessage.cc
  3641. * src/DHTAbstractMessage.h
  3642. * src/DHTAnnouncePeerMessage.cc
  3643. * src/DHTAnnouncePeerMessage.h
  3644. * src/DHTAnnouncePeerReplyMessage.cc
  3645. * src/DHTAnnouncePeerReplyMessage.h
  3646. * src/DHTFindNodeMessage.cc
  3647. * src/DHTFindNodeMessage.h
  3648. * src/DHTFindNodeReplyMessage.cc
  3649. * src/DHTFindNodeReplyMessage.h
  3650. * src/DHTGetPeersMessage.cc
  3651. * src/DHTGetPeersMessage.h
  3652. * src/DHTGetPeersReplyMessage.cc
  3653. * src/DHTGetPeersReplyMessage.h
  3654. * src/DHTMessageFactory.h
  3655. * src/DHTMessageFactoryImpl.cc
  3656. * src/DHTMessageFactoryImpl.h
  3657. * src/DHTMessageReceiver.cc
  3658. * src/DHTMessageTracker.cc
  3659. * src/DHTMessageTracker.h
  3660. * src/DHTPingMessage.cc
  3661. * src/DHTPingMessage.h
  3662. * src/DHTPingReplyMessage.cc
  3663. * src/DHTPingReplyMessage.h
  3664. * src/DHTQueryMessage.cc
  3665. * src/DHTQueryMessage.h
  3666. * src/DHTResponseMessage.cc
  3667. * src/DHTResponseMessage.h
  3668. * src/DefaultBtAnnounce.cc
  3669. * src/DefaultBtContext.cc
  3670. * src/DefaultBtContext.h
  3671. * src/HandshakeExtensionMessage.cc
  3672. * src/Makefile.am
  3673. * src/PeerListProcessor.h
  3674. * src/UTPexExtensionMessage.cc
  3675. * src/bencode.cc
  3676. * src/bencode.h
  3677. * test/AnnounceListTest.cc
  3678. * test/BDETest.cc: Added
  3679. * test/BencodeTest.cc
  3680. * test/DHTAnnouncePeerMessageTest.cc
  3681. * test/DHTAnnouncePeerReplyMessageTest.cc
  3682. * test/DHTFindNodeMessageTest.cc
  3683. * test/DHTFindNodeReplyMessageTest.cc
  3684. * test/DHTGetPeersMessageTest.cc
  3685. * test/DHTGetPeersReplyMessageTest.cc
  3686. * test/DHTMessageFactoryImplTest.cc
  3687. * test/DHTMessageTrackerTest.cc
  3688. * test/DHTPingMessageTest.cc
  3689. * test/DHTPingReplyMessageTest.cc
  3690. * test/Makefile.am
  3691. * test/MockDHTMessageFactory.h
  3692. * test/PeerListProcessorTest.cc
  3693. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  3694. Use url-list (web-seeding) only for single-file torrent. This is
  3695. basically the same behavior with Metalink file with torrent and
  3696. URIs.
  3697. * src/RequestGroup.cc
  3698. * src/DefaultBtContext.cc
  3699. * test/DefaultBtContextTest.cc
  3700. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  3701. Rewritten expr
  3702. * src/array_fun.h
  3703. * test/array_funTest.cc
  3704. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  3705. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3706. * src/DefaultBtMessageDispatcher.cc
  3707. * src/a2algo.h
  3708. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  3709. Removed ExtendedMessagingAware. Instead of using inheritance,
  3710. added ExtensionMessageRegistry and it is passed to
  3711. DefaultExtensionMessageFactory.
  3712. * src/DefaultBtInteractive.cc
  3713. * src/DefaultBtInteractive.h
  3714. * src/DefaultExtensionMessageFactory.cc
  3715. * src/DefaultExtensionMessageFactory.h
  3716. * src/ExtendedMessagingAware.h: Removed.
  3717. * src/ExtensionMessageFactory.h
  3718. * src/ExtensionMessageRegistry.h: Added.
  3719. * src/Makefile.am
  3720. * src/PeerInteractionCommand.cc
  3721. * test/DefaultExtensionMessageFactoryTest.cc
  3722. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  3723. Fixed typo in log messages
  3724. * src/MSEHandshake.cc
  3725. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  3726. Fixed the bug that prevents torrent download from finishing. The
  3727. bug doesn't reveal for all torrents. The torrents affected this
  3728. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3729. of pieces.
  3730. * src/bitfield.h
  3731. * test/bitfieldTest.cc
  3732. 2009-04-24 Tatsuhiro Tsujikawa <[email protected]>
  3733. Code cleanup
  3734. * src/PeerListProcessor.h
  3735. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  3736. Removed RequestGroupAware
  3737. * src/AbstractCommand.cc
  3738. * src/AbstractCommand.h
  3739. * src/ActivePeerConnectionCommand.cc
  3740. * src/ActivePeerConnectionCommand.h
  3741. * src/DHTGetPeersCommand.cc
  3742. * src/DHTGetPeersCommand.h
  3743. * src/InitiatorMSEHandshakeCommand.cc
  3744. * src/InitiatorMSEHandshakeCommand.h
  3745. * src/Makefile.am
  3746. * src/PeerInitiateConnectionCommand.cc
  3747. * src/PeerInitiateConnectionCommand.h
  3748. * src/PeerInteractionCommand.cc
  3749. * src/PeerInteractionCommand.h
  3750. * src/RealtimeCommand.cc
  3751. * src/RealtimeCommand.h
  3752. * src/RequestGroupAware.cc: Removed
  3753. * src/RequestGroupAware.h: Removed
  3754. * src/SeedCheckCommand.cc
  3755. * src/SeedCheckCommand.h
  3756. * src/SleepCommand.cc
  3757. * src/TrackerWatcherCommand.cc
  3758. * src/TrackerWatcherCommand.h
  3759. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  3760. Rewritten PeerListProcessor
  3761. * src/PeerListProcessor.h
  3762. * src/CompactPeerListProcessor.h: Removed
  3763. * src/CompactPeerListProcessor.cc: Removed
  3764. * src/DelegatingPeerListProcessor.cc: Removed.
  3765. * src/DefaultBtAnnounce.cc
  3766. * src/Makefile.am
  3767. * src/UTPexExtensionMessage.cc
  3768. * src/DefaultPeerListProcessor.h: Removed.
  3769. * src/DefaultPeerListProcessor.cc: Removed.
  3770. * src/DelegatingPeerListProcessor.h: Removed.
  3771. * test/Makefile.am
  3772. * test/PeerListProcessorTest.cc
  3773. * test/DefaultPeerListProcessorTest.cc: Removed.
  3774. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  3775. Rewritten RequestGroupMan::calculateStat()
  3776. * src/RequestGroupMan.cc
  3777. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  3778. Removed unnecessary virtual destructor for Request class.
  3779. * src/Request.cc
  3780. * src/Request.h
  3781. 2009-04-22 Tatsuhiro Tsujikawa <[email protected]>
  3782. Avoid dynamic_pointer_cast.
  3783. * src/DHTGetPeersCommand.cc
  3784. * src/DHTGetPeersCommand.h
  3785. 2009-04-21 Tatsuhiro Tsujikawa <[email protected]>
  3786. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3787. BtEvent.
  3788. * src/AbstractBtEventListener.h: Removed.
  3789. * src/AbstractBtMessage.cc
  3790. * src/AbstractBtMessage.h
  3791. * src/BtAbortOutstandingRequestEvent.h
  3792. * src/BtCancelSendingPieceEvent.h
  3793. * src/BtChokedEvent.h: Removed.
  3794. * src/BtChokingEvent.h
  3795. * src/BtEvent.h: Removed
  3796. * src/BtEventListener.h: Removed.
  3797. * src/BtMessage.h
  3798. * src/BtPieceMessage.cc
  3799. * src/BtPieceMessage.h
  3800. * src/BtRequestMessage.cc
  3801. * src/BtRequestMessage.h
  3802. * src/DefaultBtMessageDispatcher.cc
  3803. * src/Makefile.am
  3804. * src/a2functional.h
  3805. * test/BtPieceMessageTest.cc
  3806. * test/BtRequestMessageTest.cc
  3807. * test/DefaultBtMessageDispatcherTest.cc
  3808. * test/MockBtMessage.h
  3809. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  3810. Code cleanup
  3811. * src/RequestGroupMan.cc
  3812. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  3813. Code cleanup
  3814. * src/DownloadCommand.cc
  3815. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  3816. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3817. byte.
  3818. * src/DownloadCommand.cc
  3819. * src/bitfield.h
  3820. * test/bitfieldTest.cc
  3821. Fixed the bug that causes infinite loop if broken web server
  3822. returns chunked response without last "0" chunk-size marker and
  3823. closes connection.
  3824. * src/DownloadCommand.cc
  3825. Instantiate properly configured HttpDownloadCommand for
  3826. non-resumable downlaods.
  3827. * src/HttpResponseCommand.cc
  3828. 2009-04-16 Tatsuhiro Tsujikawa <[email protected]>
  3829. Rewritten array operation functions.
  3830. * src/BitfieldMan.cc
  3831. * src/array_fun.h
  3832. * test/array_funTest.cc
  3833. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  3834. Removed unused variable 'query'
  3835. * src/Request.cc
  3836. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  3837. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3838. accidentally set to false in r1162.
  3839. * configure.ac
  3840. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  3841. Code cleanup
  3842. * src/BNode.cc
  3843. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  3844. Increase prefixLength for the bucket which doesn't own local node
  3845. ID when splitting bucket.
  3846. * src/DHTBucket.cc
  3847. * test/DHTBucketTest.cc
  3848. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  3849. * Release 1.3.1
  3850. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  3851. Bump up version number to 1.3.1
  3852. * configure.ac
  3853. 2009-04-08 Tatsuhiro Tsujikawa <[email protected]>
  3854. Removed unused variable checkPoint. Also removed include directive
  3855. for TimeA2.h.
  3856. * src/SeedCheckCommand.h
  3857. 2009-04-07 Tatsuhiro Tsujikawa <[email protected]>
  3858. Fixed the bug that upload limit exceeds the value specified in
  3859. --seed-ratio option depending on the timing of the execution of
  3860. SeedCheckCommand.
  3861. * src/SeedCheckCommand.cc
  3862. 2009-04-05 Tatsuhiro Tsujikawa <[email protected]>
  3863. Fixed the bug that removed peer's session upload/download length
  3864. are counted twice in _cachedTransferStat before it is
  3865. re-calculated. This affected the calculation of shara ratio,
  3866. resulting aria2 wrongly determines that specified share ratio is
  3867. reached. Also fixed the typo in calculateStatFor function name.
  3868. * src/BtSetup.cc
  3869. * src/DefaultPeerStorage.cc
  3870. * src/ShareRatioSeedCriteria.h
  3871. * test/ShareRatioSeedCriteriaTest.cc
  3872. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  3873. * Release 1.3.0
  3874. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  3875. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3876. Nynorsk translations. Thanks to all translators.
  3877. * po/es.po
  3878. * po/ja.po
  3879. * po/nn.po
  3880. * po/ru.po
  3881. * po/uk.po
  3882. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  3883. Rewritten isInRange()
  3884. * src/DHTBucket.cc
  3885. * test/DHTBucketTest.cc
  3886. 2009-03-30 Tatsuhiro Tsujikawa <[email protected]>
  3887. Fixed typo
  3888. * doc/aria2c.1.txt
  3889. 2009-03-29 Tatsuhiro Tsujikawa <[email protected]>
  3890. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3891. malloc/realloc is not used.
  3892. * src/configure.ac
  3893. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  3894. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3895. char* bitfield instead of stl container for efficiency.
  3896. PieceSelector::select now takes this
  3897. bitfield. RarestPieceSelector::select now also performs
  3898. efficiently for this change. bitfield namespace is introduced and
  3899. it has several helper functions to handle basic bitfield
  3900. operations such as test, count set bits, etc.
  3901. * src/BitfieldMan.cc
  3902. * src/BitfieldMan.h
  3903. * src/DefaultBtRequestFactory.cc
  3904. * src/DefaultPieceStorage.cc
  3905. * src/DefaultPieceStorage.h
  3906. * src/LongestSequencePieceSelector.cc
  3907. * src/LongestSequencePieceSelector.h
  3908. * src/Makefile.am
  3909. * src/Piece.cc
  3910. * src/Piece.h
  3911. * src/PieceSelector.h
  3912. * src/RarestPieceSelector.cc
  3913. * src/RarestPieceSelector.h
  3914. * src/Util.cc
  3915. * src/Util.h
  3916. * src/bitfield.h
  3917. * test/BitfieldManTest.cc
  3918. * test/LongestSequencePieceSelectorTest.cc
  3919. * test/Makefile.am
  3920. * test/RarestPieceSelectorTest.cc
  3921. * test/UtilTest.cc
  3922. * test/bitfieldTest.cc
  3923. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  3924. Made accepted socket non-block.
  3925. * src/FtpNegotiationCommand.cc
  3926. * src/HttpListenCommand.cc
  3927. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  3928. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3929. * src/AbstractSingleDiskAdaptor.cc
  3930. * src/DefaultPieceStorage.cc
  3931. * src/DiskAdaptor.h
  3932. * src/DiskAdaptor.h
  3933. * src/MultiFileAllocationIterator.cc
  3934. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  3935. Run
  3936. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3937. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3938. it doesn't need to be called every time when
  3939. DefaultBtInteractive::doInteractionProcessing() is called.
  3940. * src/DefaultBtInteractive.cc
  3941. * src/DefaultBtInteractive.h
  3942. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3943. Documented 'falloc' in man page.
  3944. * doc/aria2c.1.txt
  3945. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3946. Updated doc
  3947. * src/usage_text.h
  3948. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3949. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3950. allocation mode uses posix_fallocate() system call to allocate
  3951. file on disk. If you are using newer file systems such as ext4
  3952. (with extents support), btrfs or xfs, 'falloc' is your best
  3953. choice. It allocates large(few GiB) files almost instantly. Don't
  3954. use 'falloc' with legacy file systems such as ext3 because it
  3955. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3956. until allocation finishes. 'falloc' may not be available if your
  3957. system doesn't have posix_fallocate() system call.
  3958. * configure.ac
  3959. * src/AbstractDiskWriter.cc
  3960. * src/AbstractDiskWriter.h
  3961. * src/AbstractSingleDiskAdaptor.cc
  3962. * src/BinaryStream.h
  3963. * src/BtCheckIntegrityEntry.cc
  3964. * src/ByteArrayDiskWriter.h
  3965. * src/CheckIntegrityEntry.cc
  3966. * src/CheckIntegrityEntry.h
  3967. * src/DefaultPieceStorage.cc
  3968. * src/DiskAdaptor.cc
  3969. * src/DiskAdaptor.h
  3970. * src/DiskWriter.h
  3971. * src/FallocFileAllocationIterator.cc
  3972. * src/FallocFileAllocationIterator.h
  3973. * src/FileAllocationEntry.cc
  3974. * src/FileAllocationEntry.h
  3975. * src/Makefile.am
  3976. * src/MultiFileAllocationIterator.cc
  3977. * src/MultiFileAllocationIterator.h
  3978. * src/OptionHandlerFactory.cc
  3979. * src/RequestGroup.cc
  3980. * src/StreamCheckIntegrityEntry.cc
  3981. * src/prefs.cc
  3982. * src/prefs.h
  3983. * src/usage_text.h
  3984. * test/FallocFileAllocationIteratorTest.cc
  3985. * test/Makefile.am
  3986. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3987. Removed duplicate enableDirectIO() call.
  3988. * src/MultiFileAllocationIterator.cc
  3989. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3990. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3991. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3992. cost of std::rotate().
  3993. * src/RarestPieceSelector.cc
  3994. * src/RarestPieceSelector.h
  3995. * test/RarestPieceSelectorTest.cc
  3996. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  3997. Updated usage doc for --bt-tracker-interval option.
  3998. * src/usage_text.h
  3999. * doc/aria2c.1.txt
  4000. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  4001. Documented --bt-tracker-interval option in man page.
  4002. * doc/aria2c.1.txt
  4003. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  4004. Added an option to specify the interval between tracker requests.
  4005. If non-zero value is specified, aria2 uses it and ignores the
  4006. interval value in the response of tracker. If zero is specified,
  4007. aria2 determines the inteval value based on the tarcker response
  4008. and download progress.
  4009. * src/DefaultBtAnnounce.cc
  4010. * src/DefaultBtAnnounce.h
  4011. * src/OptionHandlerFactory.cc
  4012. * src/RequestGroup.cc
  4013. * src/prefs.cc
  4014. * src/prefs.h
  4015. * src/usage_text.h
  4016. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  4017. Added operator+=, operator-=, operator-
  4018. * src/TransferStat.cc
  4019. * src/TransferStat.h
  4020. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  4021. Refactored RarestPieceSelector to reduce CPU load, especially for
  4022. addPieceStats.
  4023. * src/RarestPieceSelector.cc
  4024. * src/RarestPieceSelector.h
  4025. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  4026. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4027. getAllMissingBlockIndexes to reduce a call to
  4028. array_function_base::operator[].
  4029. * src/BitfieldMan.cc
  4030. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  4031. Cached TransferStat/download speed to avoid to sum them up in each
  4032. call.
  4033. * src/DefaultPeerStorage.cc
  4034. * src/DefaultPeerStorage.h
  4035. * src/SegmentMan.cc
  4036. * src/SegmentMan.h
  4037. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  4038. Typedefed cuid_t as int32_t in Command.h
  4039. * src/CUIDCounter.h
  4040. * src/Command.cc
  4041. * src/Command.h
  4042. * src/DownloadEngine.cc
  4043. * src/DownloadEngine.h
  4044. * src/PeerStat.h
  4045. * src/SegmentMan.cc
  4046. * src/SegmentMan.h
  4047. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  4048. Reduced the number of calls to PeerStorage::calculateStat() and
  4049. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4050. transfer rate.
  4051. * src/DefaultBtInteractive.cc
  4052. * src/DefaultBtMessageDispatcher.cc
  4053. * src/DefaultPeerStorage.cc
  4054. * src/DefaultPeerStorage.h
  4055. * src/DownloadCommand.cc
  4056. * src/DownloadEngine.cc
  4057. * src/PeerStorage.h
  4058. * src/SegmentMan.cc
  4059. * src/SegmentMan.h
  4060. * test/MockPeerStorage.h
  4061. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4062. Prepended _dir+"/" after joining path elements in torrent file.
  4063. * src/DefaultBtContext.cc
  4064. * test/DefaultBtContextTest.cc
  4065. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4066. Added missing IndexBtMessageValidator.h
  4067. * src/Makefile.am
  4068. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4069. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4070. Chinese translations. Thank you for contributing our project.
  4071. * po/id.po
  4072. * po/it.po
  4073. * po/ru.po
  4074. * po/uk.po
  4075. * po/zh_CN.po
  4076. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4077. Updated README
  4078. * README
  4079. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4080. Bump up version number to 1.3.0
  4081. * configure.ac
  4082. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4083. Updated doc
  4084. * src/DefaultBtContext.h
  4085. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4086. Slice/joinPath for name of single torrent.
  4087. * src/DefaultBtContext.cc
  4088. * test/DefaultBtContextTest.cc
  4089. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4090. Updated man page: Documented --dry-run and --index-out
  4091. options. Changed the default value of --uri-selector and
  4092. --http-auth-challenge options. Removed --direct-file-mapping
  4093. option. Added example for --index-out
  4094. * doc/aria2c.1.txt
  4095. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4096. Updated TEXT_DRY_RUN
  4097. * src/usage_text.h
  4098. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4099. Changed the default value of --uri-selector option from 'inorder'
  4100. to 'feedback'
  4101. * src/OptionHandlerFactory.cc
  4102. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4103. Included current URI in exception message.
  4104. * src/AbstractCommand.cc
  4105. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4106. Renamed ServerStatURISelector as FeedbackURISelector.
  4107. * src/FeedbackURISelector.cc
  4108. * src/FeedbackURISelector.h
  4109. * src/Makefile.am
  4110. * src/RequestGroupMan.cc
  4111. * src/ServerStatURISelector.cc
  4112. * src/ServerStatURISelector.h
  4113. * test/FeedbackURISelectorTest.cc
  4114. * test/Makefile.am
  4115. * test/ServerStatURISelectorTest.cc
  4116. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4117. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4118. all URIs are tested and their timeout is not reached.
  4119. * src/AdaptiveURISelector.cc
  4120. * src/AdaptiveURISelector.h
  4121. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4122. Changed the default value of --http-auth-challenge option to false.
  4123. * src/OptionHandlerFactory.cc
  4124. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4125. Reuse URIs when all unused URIs run out.
  4126. * src/OptionHandlerFactory.cc
  4127. * src/RequestGroup.cc
  4128. * src/prefs.cc
  4129. * src/prefs.h
  4130. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  4131. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4132. and BtRejectMessage are derived from RangeBtMessage class.
  4133. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4134. derived from IndexBtMessage class. BtChokeMessage,
  4135. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4136. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4137. ZeroBtMessage class.
  4138. * src/AbstractBtMessage.cc
  4139. * src/AbstractBtMessage.h
  4140. * src/BtAllowedFastMessage.cc
  4141. * src/BtAllowedFastMessage.h
  4142. * src/BtAllowedFastMessageValidator.h: Removed
  4143. * src/BtBitfieldMessage.cc
  4144. * src/BtBitfieldMessage.h
  4145. * src/BtCancelMessage.cc
  4146. * src/BtCancelMessage.h
  4147. * src/BtCancelMessageValidator.h: Removed
  4148. * src/BtChokeMessage.cc
  4149. * src/BtChokeMessage.h
  4150. * src/BtExtendedMessage.cc
  4151. * src/BtExtendedMessage.h
  4152. * src/BtHandshakeMessage.cc
  4153. * src/BtHandshakeMessage.h
  4154. * src/BtHaveAllMessage.cc
  4155. * src/BtHaveAllMessage.h
  4156. * src/BtHaveMessage.cc
  4157. * src/BtHaveMessage.h
  4158. * src/BtHaveMessageValidator.h: Removed
  4159. * src/BtHaveNoneMessage.cc
  4160. * src/BtHaveNoneMessage.h
  4161. * src/BtInterestedMessage.cc
  4162. * src/BtInterestedMessage.h
  4163. * src/BtKeepAliveMessage.cc
  4164. * src/BtKeepAliveMessage.h
  4165. * src/BtNotInterestedMessage.cc
  4166. * src/BtNotInterestedMessage.h
  4167. * src/BtPieceMessage.cc
  4168. * src/BtPieceMessage.h
  4169. * src/BtPortMessage.cc
  4170. * src/BtPortMessage.h
  4171. * src/BtRejectMessage.cc
  4172. * src/BtRejectMessage.h
  4173. * src/BtRejectMessageValidator.h: Removed
  4174. * src/BtRequestMessage.cc
  4175. * src/BtRequestMessage.h
  4176. * src/BtRequestMessageValidator.h: Removed
  4177. * src/BtSuggestPieceMessage.cc
  4178. * src/BtSuggestPieceMessage.h
  4179. * src/BtSuggestPieceMessageValidator.h: Removed
  4180. * src/BtUnchokeMessage.cc
  4181. * src/BtUnchokeMessage.h
  4182. * src/DefaultBtMessageFactory.cc
  4183. * src/IndexBtMessage.cc
  4184. * src/IndexBtMessage.h
  4185. * src/IndexBtMessageValidator.h
  4186. * src/Makefile.am
  4187. * src/PeerMessageUtil.cc
  4188. * src/PeerMessageUtil.h
  4189. * src/RangeBtMessage.cc
  4190. * src/RangeBtMessage.h
  4191. * src/RangeBtMessageValidator.h
  4192. * src/SimpleBtMessage.cc
  4193. * src/SimpleBtMessage.h
  4194. * src/ZeroBtMessage.cc
  4195. * src/ZeroBtMessage.h
  4196. * test/BtRequestMessageTest.cc
  4197. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  4198. Reverted usage_text.h to r1093 to avoid to lose translated
  4199. messages.
  4200. * src/usage_text.h
  4201. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  4202. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4203. declared as non-const previously is now const and defined in class
  4204. definition.
  4205. * src/AbstractBtMessage.cc
  4206. * src/AbstractBtMessage.h
  4207. * src/BtAllowedFastMessage.cc
  4208. * src/BtAllowedFastMessage.h
  4209. * src/BtBitfieldMessage.h
  4210. * src/BtCancelMessage.cc
  4211. * src/BtCancelMessage.h
  4212. * src/BtChokeMessage.cc
  4213. * src/BtChokeMessage.h
  4214. * src/BtExtendedMessage.cc
  4215. * src/BtExtendedMessage.h
  4216. * src/BtHandshakeMessage.cc
  4217. * src/BtHandshakeMessage.h
  4218. * src/BtHaveAllMessage.cc
  4219. * src/BtHaveAllMessage.h
  4220. * src/BtHaveMessage.cc
  4221. * src/BtHaveMessage.h
  4222. * src/BtHaveNoneMessage.cc
  4223. * src/BtHaveNoneMessage.h
  4224. * src/BtInterestedMessage.cc
  4225. * src/BtInterestedMessage.h
  4226. * src/BtKeepAliveMessage.cc
  4227. * src/BtKeepAliveMessage.h
  4228. * src/BtMessage.h
  4229. * src/BtNotInterestedMessage.cc
  4230. * src/BtNotInterestedMessage.h
  4231. * src/BtPieceMessage.h
  4232. * src/BtPortMessage.cc
  4233. * src/BtPortMessage.h
  4234. * src/BtRejectMessage.cc
  4235. * src/BtRejectMessage.h
  4236. * src/BtRequestMessage.cc
  4237. * src/BtRequestMessage.h
  4238. * src/BtSuggestPieceMessage.cc
  4239. * src/BtSuggestPieceMessage.h
  4240. * src/BtUnchokeMessage.cc
  4241. * src/BtUnchokeMessage.h
  4242. * src/SimpleBtMessage.cc
  4243. * src/SimpleBtMessage.h
  4244. * test/MockBtMessage.h
  4245. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  4246. Use FileEntry::exists()
  4247. * src/MultiDiskAdaptor.cc
  4248. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  4249. Added exists()
  4250. * src/FileEntry.cc
  4251. * src/FileEntry.h
  4252. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  4253. Added missing prefix dir.
  4254. * src/download_helper.cc
  4255. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  4256. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4257. * src/CopyDiskAdaptor.cc: Removed
  4258. * src/CopyDiskAdaptor.h: Removed
  4259. * src/DefaultPieceStorage.cc
  4260. * src/Makefile.am
  4261. * src/OptionHandlerFactory.cc
  4262. * src/prefs.cc
  4263. * src/prefs.h
  4264. * src/usage_text.h
  4265. * test/CopyDiskAdaptorTest.cc: Removed
  4266. * test/Makefile.am
  4267. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  4268. Rewritten isSameFileBeingDownloaded()
  4269. * src/RequestGroupMan.cc
  4270. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  4271. Removed getName() from DownloadContext. getName() is declared in
  4272. BtContext.
  4273. * src/BtContext.h
  4274. * src/DownloadContext.h
  4275. * src/SingleFileDownloadContext.cc
  4276. * src/SingleFileDownloadContext.h
  4277. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4278. in AbstractSingleDiskAdaptor.
  4279. * src/AbstractSingleDiskAdaptor.h
  4280. * src/DiskAdaptor.h
  4281. * src/MultiDiskAdaptor.h
  4282. * src/RequestGroup.cc
  4283. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4284. MultiDiskAdaptor.
  4285. * src/DefaultPieceStorage.cc
  4286. * src/MultiDiskAdaptor.cc
  4287. * src/MultiDiskAdaptor.h
  4288. * test/MultiDiskAdaptorTest.cc
  4289. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  4290. FileEntry::getPath() contains store(top level) directory to
  4291. simplify path handling operation. In the previous implementation,
  4292. store directory is concatenated to FileEntry::getPath() in
  4293. DownloadContext.
  4294. * src/BtDependency.cc
  4295. * src/BtPostDownloadHandler.cc
  4296. * src/CopyDiskAdaptor.cc
  4297. * src/DefaultBtContext.cc
  4298. * src/DirectDiskAdaptor.cc
  4299. * src/FileEntry.cc
  4300. * src/FileEntry.h
  4301. * src/FtpNegotiationCommand.cc
  4302. * src/HttpResponse.cc
  4303. * src/HttpResponseCommand.cc
  4304. * src/Metalink2RequestGroup.cc
  4305. * src/MultiDiskAdaptor.cc
  4306. * src/MultiDiskAdaptor.h
  4307. * src/MultiFileAllocationIterator.cc
  4308. * src/RequestGroup.cc
  4309. * src/SingleFileDownloadContext.cc
  4310. * src/SingleFileDownloadContext.h
  4311. * src/download_helper.cc
  4312. * test/BtDependencyTest.cc
  4313. * test/CopyDiskAdaptorTest.cc
  4314. * test/DefaultBtContextTest.cc
  4315. * test/DefaultBtProgressInfoFileTest.cc
  4316. * test/DirectDiskAdaptorTest.cc
  4317. * test/DownloadHelperTest.cc
  4318. * test/FileEntryTest.cc
  4319. * test/MultiDiskAdaptorTest.cc
  4320. * test/MultiFileAllocationIteratorTest.cc
  4321. * test/RequestGroupTest.cc
  4322. * test/SingleFileDownloadContextTest.cc
  4323. 2009-03-09 Tatsuhiro Tsujikawa <[email protected]>
  4324. Fixed compiler warning
  4325. * src/download_helper.cc
  4326. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4327. Throw exception if same infohash torrent is now downloading.
  4328. * src/RequestGroup.cc
  4329. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4330. Added --dry-run option. In this mode, aria2 just checks whether
  4331. the remote file is available and doesn't download data. This
  4332. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4333. are canceled in this mode.
  4334. * src/FtpNegotiationCommand.cc
  4335. * src/HttpResponseCommand.cc
  4336. * src/HttpResponseCommand.h
  4337. * src/OptionHandlerFactory.cc
  4338. * src/RequestGroup.cc
  4339. * src/RequestGroupMan.cc
  4340. * src/prefs.cc
  4341. * src/prefs.h
  4342. * src/usage_text.h
  4343. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4344. Fixed compiler waring
  4345. * test/UriListParserTest.cc
  4346. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4347. Parse options in -i list using OptionParser.
  4348. * src/UriListParser.cc
  4349. * src/UriListParser.h
  4350. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4351. Don't reset URI in retry to avoid additional round trips because
  4352. of redirects.
  4353. * src/AbstractCommand.cc
  4354. * src/OptionHandlerFactory.cc
  4355. * src/prefs.cc
  4356. * src/prefs.h
  4357. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4358. Declared hide() in OptionHandler.
  4359. * src/NameMatchOptionHandler.h
  4360. * src/OptionHandler.h
  4361. * src/OptionHandlerImpl.h
  4362. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4363. Updated doc
  4364. * src/Peer.h
  4365. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  4366. Added log message in setStatusInternal()
  4367. * src/ServerStat.cc
  4368. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  4369. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4370. effectively exclude failed server.
  4371. * src/AbstractCommand.cc
  4372. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  4373. Added --index-out option to specify each file path for torrent.
  4374. Here index shown in --show-files option is used to specify which
  4375. file path should be altered. For example, to change the file path
  4376. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4377. option multiple times: --index-out=1=aria2.tar.bz2
  4378. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4379. available. This option can be specified in -i list.
  4380. * src/DefaultBtContext.cc
  4381. * src/DefaultBtContext.h
  4382. * src/MultiDiskAdaptor.cc
  4383. * src/MultiDiskAdaptor.h
  4384. * src/MultiFileAllocationIterator.cc
  4385. * src/OptionHandlerFactory.cc
  4386. * src/OptionHandlerImpl.h
  4387. * src/Util.cc
  4388. * src/Util.h
  4389. * src/download_helper.cc
  4390. * src/prefs.cc
  4391. * src/prefs.h
  4392. * src/usage_text.h
  4393. * test/DefaultBtContextTest.cc
  4394. * test/MultiDiskAdaptorTest.cc
  4395. * test/MultiFileAllocationIteratorTest.cc
  4396. * test/UtilTest.cc
  4397. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  4398. Use Util::pathJoin()
  4399. * src/MetalinkParserController.cc
  4400. * test/test.xml
  4401. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  4402. Use Util::pathJoin()
  4403. * src/DefaultBtContext.cc
  4404. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  4405. Added Util::pathJoin()
  4406. * src/Util.h
  4407. * test/UtilTest.cc
  4408. 2009-03-04 Tatsuhiro Tsujikawa <[email protected]>
  4409. Applied basename function to remove directory element in
  4410. content-disposition value.
  4411. Return empty string if content-disposition value is ".." or ".".
  4412. * src/Util.cc
  4413. * test/UtilTest.cc
  4414. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  4415. Added --max-overall-download-limit in man page.
  4416. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4417. * doc/aria2c.1.txt
  4418. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  4419. Added --max-overall-download-limit option. Now --max-upload-limit
  4420. option is not ignored when --max-overall-upload-limit option has
  4421. non-zero value. aria2 checks download(upload) speed in the order:
  4422. first checks overall speed limit and if it is not exceeded, then
  4423. checks speed limit per download. Thus you can specify both
  4424. value. For example, set --max-overall-download-limit=1M and
  4425. --max-download-limit=500K to prevent from one download from eating
  4426. all overall speed limit.
  4427. * src/DefaultBtInteractive.cc
  4428. * src/DefaultBtInteractive.h
  4429. * src/DefaultBtMessageDispatcher.cc
  4430. * src/DefaultBtMessageDispatcher.h
  4431. * src/DownloadCommand.cc
  4432. * src/DownloadCommand.h
  4433. * src/FtpNegotiationCommand.cc
  4434. * src/HttpResponseCommand.cc
  4435. * src/OptionHandlerFactory.cc
  4436. * src/PeerInteractionCommand.cc
  4437. * src/RequestGroup.cc
  4438. * src/RequestGroup.h
  4439. * src/RequestGroupMan.cc
  4440. * src/RequestGroupMan.h
  4441. * src/prefs.cc
  4442. * src/prefs.h
  4443. * src/usage_text.h
  4444. * test/DefaultBtMessageDispatcherTest.cc
  4445. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  4446. Documented select-file option in Input File section.
  4447. Documented --http-auth-challenge option.
  4448. * doc/aria2c.1.txt
  4449. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  4450. Now select-file can be specified in the uri list(-i list).
  4451. * src/BtContext.cc
  4452. * src/BtContext.h
  4453. * src/RequestGroup.cc
  4454. * src/Sequence.h
  4455. * src/download_helper.cc
  4456. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  4457. Made the upper value of --max-concurrent-downloads options unlimited.
  4458. * src/OptionHandlerFactory.cc
  4459. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  4460. Fixed the bug that disk writer is not created even if it shares
  4461. same piece with the preceding file if the length of previous file
  4462. is 0.
  4463. * src/MultiDiskAdaptor.cc
  4464. * test/MultiDiskAdaptorTest.cc
  4465. 2009-02-23 Tatsuhiro Tsujikawa <[email protected]>
  4466. In BitTorrent, Open files in read-only mode for hash check. After
  4467. that, re-open file in read/write mode only when the download is
  4468. not finished.
  4469. * src/AbstractDiskWriter.cc
  4470. * src/AbstractDiskWriter.h
  4471. * src/AbstractSingleDiskAdaptor.cc
  4472. * src/AbstractSingleDiskAdaptor.h
  4473. * src/BtCheckIntegrityEntry.cc
  4474. * src/DiskAdaptor.h
  4475. * src/DiskWriter.h
  4476. * src/MultiDiskAdaptor.cc
  4477. * src/MultiDiskAdaptor.h
  4478. * src/RequestGroup.cc
  4479. 2009-02-19 Tatsuhiro Tsujikawa <[email protected]>
  4480. Added --http-auth-challenge option. If it is set to true(by
  4481. default), aria2 sends HTTP authorization header only when it is
  4482. requested by the server. If false is set, then authorization
  4483. header is always sent to the server. This is useful for servers
  4484. that don't respond 401 code when authentication is required.
  4485. There is an exception: if username and password are embedded in
  4486. URI, authorization header is always sent to the server regardless
  4487. of this option.
  4488. * src/AuthConfigFactory.cc
  4489. * src/HttpSkipResponseCommand.cc
  4490. * src/OptionHandlerFactory.cc
  4491. * src/prefs.cc
  4492. * src/prefs.h
  4493. * src/usage_text.h
  4494. * test/AuthConfigFactoryTest.cc
  4495. * test/HttpRequestTest.cc
  4496. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4497. * Release 1.2.0
  4498. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4499. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4500. Thanks to all translators.
  4501. * po/es.po
  4502. * po/ja.po
  4503. * po/ru.po
  4504. * po/uk.po
  4505. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4506. Call deleteSocketForReadCheck() before socket is closed.
  4507. * src/HttpListenCommand.cc
  4508. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4509. Defined virtual destructor for BObject.
  4510. * src/bencode.h
  4511. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4512. Rewritten BDE to make it efficient.
  4513. * src/bencode.cc
  4514. * src/bencode.h
  4515. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4516. Removed function throw list.
  4517. * src/bencode.cc
  4518. * src/bencode.h
  4519. * test/BencodeTest.cc
  4520. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4521. Enclosed all URLs in double quotes in command-line examples.
  4522. * doc/aria2c.1.txt
  4523. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4524. Updated reference/see also section.
  4525. * README
  4526. * doc/aria2c.1.txt
  4527. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  4528. Reorganized man page based on man man-pages.
  4529. * doc/aria2c.1.txt
  4530. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  4531. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4532. because same documents are available in man page. Added
  4533. References section.
  4534. * README
  4535. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  4536. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4537. PERFORMANCE PROFILE section.
  4538. * doc/aria2c.1.txt
  4539. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  4540. Rewritten the section for configuration file.
  4541. * README
  4542. * doc/aria2c.1.txt
  4543. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  4544. Fixed the segmentation fault during execution of choking algorithm
  4545. in leecher state because of broken compare operator
  4546. implementation.
  4547. * src/BtLeecherStateChoke.cc
  4548. * src/BtLeecherStateChoke.h
  4549. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  4550. Open file in binary mode.
  4551. * src/CookieStorage.cc
  4552. * src/DHTSetup.cc
  4553. * src/DHTUtil.cc
  4554. * src/Netrc.cc
  4555. * src/NsCookieParser.cc
  4556. * src/ProtocolDetector.cc
  4557. * src/RequestGroupMan.cc
  4558. * src/Signature.cc
  4559. * src/bencode.cc
  4560. * src/download_helper.cc
  4561. * src/option_processing.cc
  4562. * test/CookieParserTest.cc
  4563. * test/DefaultBtProgressInfoFileTest.cc
  4564. * test/FileTest.cc
  4565. * test/GZipDecoderTest.cc
  4566. * test/RequestGroupManTest.cc
  4567. * test/SignatureTest.cc
  4568. * test/SingleFileAllocationIteratorTest.cc
  4569. * test/UriListParserTest.cc
  4570. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  4571. Removed operator[] because it is ambiguous with built-in []
  4572. operator.
  4573. * src/array_fun.h
  4574. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  4575. Fixed compile error
  4576. * src/OptionParser.cc
  4577. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  4578. Added missing call to arrayWrapperConst
  4579. * test/array_funTest.cc
  4580. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4581. Use array_wrapper instead of array_ptr.
  4582. * src/DHTRoutingTableDeserializer.cc
  4583. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4584. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4585. * src/array_fun.h
  4586. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4587. Added array_wrapper template.
  4588. * src/array_fun.h
  4589. * test/array_funTest.cc
  4590. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4591. Use operator T* of array_ptr.
  4592. * src/OptionParser.cc
  4593. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4594. Use localhost instead of 127.0.0.1
  4595. * test/FtpConnectionTest.cc
  4596. * test/MSEHandshakeTest.cc
  4597. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4598. Added operator T*
  4599. * src/array_fun.h
  4600. * test/array_funTest.cc
  4601. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4602. Use dynamically allocated char array to detect memory access
  4603. violation.
  4604. * src/DHTRoutingTableDeserializer.cc
  4605. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4606. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4607. defined.
  4608. * src/PeerMessageUtil.cc
  4609. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4610. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4611. * configure.ac
  4612. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4613. Added a check to see struct sockaddr_in has sin_len member.
  4614. * configure.ac
  4615. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4616. Fixed buffer overrun.
  4617. * src/DHTRoutingTableDeserializer.cc
  4618. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4619. Added LL for long long int constant.
  4620. * test/FtpConnectionTest.cc
  4621. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4622. Casted to unsigned int to suppress compiler warning on netbsd.
  4623. * src/BtRuntime.h
  4624. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4625. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4626. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4627. type time_t.
  4628. * src/SimpleLogger.cc
  4629. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4630. Added test for FtpConnection::receiveSizeResponse().
  4631. * test/FtpConnectionTest.cc
  4632. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4633. Fix epoll error on the old kernel 2.6.8 or ealier.
  4634. * src/EpollEventPoll.cc
  4635. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4636. Use Util::parseLLInt instead of sscanf for portability. The
  4637. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4638. * src/FtpConnection.cc
  4639. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4640. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4641. block. It should not filter anything.
  4642. * src/BitfieldMan.cc
  4643. * src/ConsoleStatCalc.cc
  4644. * test/BitfieldManTest.cc
  4645. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4646. Fixed the bug that the boolean options that don't take arguments
  4647. don't work.
  4648. * src/OptionHandlerImpl.h
  4649. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4650. Fixed broken selected file BitTorrent download.
  4651. * src/MultiDiskAdaptor.cc
  4652. * test/MultiDiskAdaptorTest.cc
  4653. * test/MultiFileAllocationIteratorTest.cc
  4654. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4655. Fixed #define guard for EpollEventPoll
  4656. * src/EpollEventPoll.h
  4657. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4658. Wait 2 seconds. 1 second is sometimes not enough.
  4659. * test/TimeSeedCriteriaTest.cc
  4660. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4661. Use localhost instead of 127.0.0.1.
  4662. * test/DHTConnectionImplTest.cc
  4663. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4664. Suppressed compiler warning.
  4665. * src/AdaptiveURISelector.cc
  4666. * src/DefaultPieceStorage.cc
  4667. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4668. Defined virtual destructor.
  4669. * src/MetalinkParserState.h
  4670. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4671. Give NULL for second argument of getaddrinfo instead of "0".
  4672. * src/NameResolver.cc
  4673. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4674. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4675. included strptime doesn't parse data for this format.
  4676. * src/FtpConnection.cc
  4677. * test/FtpConnectionTest.cc
  4678. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4679. Removed tests giving -1 for unsigned argument.
  4680. * test/SingleFileDownloadContextTest.cc
  4681. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4682. Don't use sha256 in tests because it might not be supported by the
  4683. SSL library.
  4684. * test/MetalinkProcessorTest.cc
  4685. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4686. Removed tests giving -1 for unsigned argument.
  4687. * test/AlphaNumberDecoratorTest
  4688. * test/BitfieldManTest.cc
  4689. * test/DefaultBtContextTest.cc
  4690. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4691. Fixed compile error without libcares when epoll is available.
  4692. * src/EpollEventPoll.cc
  4693. 2009-02-09 Tatsuhiro Tsujikawa <[email protected]>
  4694. Included fstream instead of iostream.
  4695. * test/SignatureTest.cc
  4696. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  4697. Removed #include <algorithm>
  4698. * test/RequestGroupTest.cc
  4699. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  4700. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4701. using RequestGroup::extractURIResult().
  4702. * src/AdaptiveURISelector.cc
  4703. * src/RequestGroup.cc
  4704. * src/RequestGroup.h
  4705. * test/RequestGroupTest.cc
  4706. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  4707. Added tests for array_ptr.
  4708. * test/array_funTest.cc
  4709. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  4710. Don't send ip parameter to a tracker if ip parameter is empty
  4711. string.
  4712. * src/DefaultBtAnnounce.cc
  4713. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4714. Adjusted line feed.
  4715. * src/version_usage.cc
  4716. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4717. Print tags, possible values when OptionHandlerException is caught.
  4718. * src/option_processing.cc
  4719. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4720. Changed the message for FatalException.
  4721. * src/OptionParser.cc
  4722. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4723. Documented --bt-external-ip option in man page. Updated man pages
  4724. for --proxy-method option.
  4725. * doc/aria2c.1.txt
  4726. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4727. Use GET method for FTP via HTTP proxy.
  4728. * src/FtpInitiateConnectionCommand.cc
  4729. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4730. Changed the default value of --proxy-method option from 'tunnel'
  4731. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4732. option.
  4733. * src/AbstractCommand.cc
  4734. * src/AbstractCommand.h
  4735. * src/FtpInitiateConnectionCommand.cc
  4736. * src/HttpDownloadCommand.cc
  4737. * src/HttpInitiateConnectionCommand.cc
  4738. * src/HttpInitiateConnectionCommand.h
  4739. * src/OptionHandlerFactory.cc
  4740. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4741. Initialized _logger
  4742. * src/SelectEventPoll.cc
  4743. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4744. Defined a copy constructor for the same type.
  4745. * src/SharedHandle.h
  4746. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4747. Added OptionParser::parseArg() which internally uses getopt_long
  4748. to parse command-line options. All command-line options are now
  4749. configured by OptionHandler. No manual editing of struct option*
  4750. is required any more.
  4751. * src/NameMatchOptionHandler.h
  4752. * src/OptionHandler.h
  4753. * src/OptionHandlerFactory.cc
  4754. * src/OptionHandlerImpl.h
  4755. * src/OptionParser.cc
  4756. * src/OptionParser.h
  4757. * src/array_fun.h
  4758. * src/main.cc
  4759. * src/option_processing.cc
  4760. * test/OptionHandlerTest.cc
  4761. * test/OptionParserTest.cc
  4762. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4763. Fixed configure error with --disable-epoll
  4764. * configure.ac
  4765. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4766. Fixed compile error when HAVE_EPOLL is not defined.
  4767. Fixed linker error on bigendian systems.
  4768. * src/SocketCore.cc
  4769. * src/SocketCore.h
  4770. * test/DefaultBtProgressInfoFileTest.cc
  4771. 2009-02-04 Tatsuhiro Tsujikawa <[email protected]>
  4772. Added --bt-external-ip option. You can specify the external IP
  4773. address to report to a BitTorrent tracker. Although this function
  4774. is named 'external', it can accept any kind of IP addresses.
  4775. * src/DefaultBtAnnounce.cc
  4776. * src/OptionHandlerFactory.cc
  4777. * src/option_processing.cc
  4778. * src/prefs.cc
  4779. * src/prefs.h
  4780. * src/usage_text.h
  4781. * test/DefaultBtAnnounceTest.cc
  4782. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  4783. Extracted the algorithm to find the longest incremental sequence
  4784. as max_sequence template.
  4785. * src/LongestSequencePieceSelector.cc
  4786. * src/a2algo.h
  4787. * test/Makefile.am
  4788. * test/a2algoTest.cc
  4789. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  4790. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4791. * src/usage_text.h
  4792. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  4793. Updated doc for --uri-selector, --http-server-listen-port and
  4794. --enable-http-server option. Documented --event-poll option.
  4795. * doc/aria2c.1.txt
  4796. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  4797. Updated doc for --enable-http-server.
  4798. * src/usage_text.h
  4799. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  4800. Documented --http-server-listen-port and --enable-http-server in
  4801. man page.
  4802. * doc/aria2c.1.txt
  4803. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4804. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4805. translations. Thanks to all translators.
  4806. * po/es.po
  4807. * po/id.po
  4808. * po/it.po
  4809. * po/ru.po
  4810. * po/uk.po
  4811. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4812. Bump up version number to 1.2.0
  4813. * configure.ac
  4814. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4815. BtContext::getAnnounceTiers() now returns const reference.
  4816. * src/BtContext.h
  4817. * src/DefaultBtContext.cc
  4818. * src/DefaultBtContext.h
  4819. * test/MockBtContext.h
  4820. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4821. Change the number of retries for tracker request based on the
  4822. number of available tracker in a torrent file.
  4823. * src/TrackerWatcherCommand.cc
  4824. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4825. Added _maxTries property to RequestGroup and assign the option
  4826. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4827. RequestGroup::getMaxTries() instead of
  4828. Option::getAsInt(PREF_MAX_TRIES).
  4829. * src/AbstractCommand.cc
  4830. * src/RequestGroup.cc
  4831. * src/RequestGroup.h
  4832. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4833. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4834. Mandriva. I modified the patch: make RequestGroup have the
  4835. timeout value and AdaptiveURISelector directly modifies that
  4836. value.
  4837. * src/AbstractCommand.cc
  4838. * src/AdaptiveURISelector.cc
  4839. * src/AdaptiveURISelector.h
  4840. * src/FtpNegotiationCommand.cc
  4841. * src/RequestGroup.cc
  4842. * src/RequestGroup.h
  4843. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4844. Fixed compiler warning
  4845. * test/IteratableChecksumValidatorTest.cc
  4846. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  4847. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4848. integrated downloads. This PieceSelector subclass finds the
  4849. longest continuous sequence in the available missing pieces and
  4850. selects the last index of such sequence. This makes HTTP/FTP
  4851. connections less interrupted by the pieces obtained by BitTorrent
  4852. peers.
  4853. * src/DefaultPieceStorage.cc
  4854. * src/DefaultPieceStorage.h
  4855. * src/LongestSequencePieceSelector.cc
  4856. * src/LongestSequencePieceSelector.h
  4857. * src/Makefile.am
  4858. * src/PieceSelector.h
  4859. * src/RarestPieceSelector.h
  4860. * src/RequestGroup.cc
  4861. * test/BtDependencyTest.cc
  4862. * test/DefaultPieceStorageTest.cc
  4863. * test/IteratableChecksumValidatorTest.cc
  4864. * test/LongestSequencePieceSelectorTest.cc
  4865. * test/Makefile.am
  4866. * test/SegmentManTest.cc
  4867. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  4868. Fixed the bug that the average speed is wrong in
  4869. http/ftp/BitTorrent integrated download. Only the download bytes
  4870. in BitTorrent were considered.
  4871. * src/RequestGroup.cc
  4872. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  4873. Choose port for BitTorrent/DHT randomly from the specified range.
  4874. * src/DHTConnectionImpl.cc
  4875. * src/PeerListenCommand.cc
  4876. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  4877. Send HTTP Authorization header only if it is requested by the
  4878. server(response 401). There are some exceptions. The authorization
  4879. header for proxy is always sent if it is available without request
  4880. by the server. If username/password is specified in the URI, it
  4881. is immediately sent to the server without request by the server.
  4882. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4883. SharedHandle<AuthConfig>().
  4884. NetrcAuthResolver::resolveAuthConfig() returns
  4885. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4886. * src/AbstractAuthResolver.cc
  4887. * src/AbstractProxyRequestCommand.cc
  4888. * src/AuthConfigFactory.cc
  4889. * src/AuthConfigFactory.h
  4890. * src/HttpConnection.cc
  4891. * src/HttpRequest.cc
  4892. * src/HttpRequest.h
  4893. * src/HttpResponse.cc
  4894. * src/HttpResponseCommand.cc
  4895. * src/HttpSkipResponseCommand.cc
  4896. * test/AuthConfigFactoryTest.cc
  4897. * test/HttpRequestTest.cc
  4898. * test/HttpResponseTest.cc
  4899. 2009-01-27 Tatsuhiro Tsujikawa <[email protected]>
  4900. Remove leading "--" from help keyword and a substring after "="
  4901. from help keyword, so that one can query options by '-h--max-' or
  4902. '-hmax-peers=10'.
  4903. * src/option_processing.cc
  4904. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  4905. Rewritten PStringVisitor and its implementation.
  4906. * src/PStringBuildVisitor.cc
  4907. * src/PStringBuildVisitor.h
  4908. * src/PStringDatum.h
  4909. * src/PStringNumLoop.h
  4910. * src/PStringSegment.cc
  4911. * src/PStringSegment.h
  4912. * src/PStringSelect.h
  4913. * src/PStringVisitor.h
  4914. * src/download_helper.cc
  4915. * test/PStringBuildVisitorTest.cc
  4916. * test/ParameterizedStringParserTest.cc
  4917. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  4918. Persist connection between the built-in HTTP server and a client
  4919. if a client supports keep-alive. Fixed the bug that aria2 exits
  4920. when the HTTP server receives EOF from a client.
  4921. * src/HttpServer.cc
  4922. * src/HttpServer.h
  4923. * src/HttpServerCommand.cc
  4924. * src/HttpServerCommand.h
  4925. * src/HttpServerResponseCommand.cc
  4926. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  4927. Added experimental built-in HTTP server. Currently, when a client
  4928. accesses to the server, it responds with the current download
  4929. progress. By default, it is disabled. To enable the server, give
  4930. --enable-http-server option. To change the default port number
  4931. for the server to listen to, use --http-server-listen-port option.
  4932. The response HTML is very simple and refreshes it self each 1
  4933. second. Because of this refresh, you see flicker in normal web
  4934. browser such as Firefox. I recommend to use console-based browser
  4935. such as elinks, w3m. To connect to the server, run 'elinks
  4936. http://localhost:6800/' while running aria2. Please replace port
  4937. number '6800'(which is default) with your preference.
  4938. * src/DownloadEngineFactory.cc
  4939. * src/HttpHeader.cc
  4940. * src/HttpHeader.h
  4941. * src/HttpHeaderProcessor.cc
  4942. * src/HttpHeaderProcessor.h
  4943. * src/HttpListenCommand.cc
  4944. * src/HttpListenCommand.h
  4945. * src/HttpServer.cc
  4946. * src/HttpServer.h
  4947. * src/HttpServerCommand.cc
  4948. * src/HttpServerCommand.h
  4949. * src/HttpServerResponseCommand.cc
  4950. * src/HttpServerResponseCommand.h
  4951. * src/Makefile.am
  4952. * src/OptionHandlerFactory.cc
  4953. * src/Util.cc
  4954. * src/Util.h
  4955. * src/help_tags.h
  4956. * src/option_processing.cc
  4957. * src/prefs.cc
  4958. * src/prefs.h
  4959. * src/usage_text.h
  4960. * test/HttpHeaderProcessorTest.cc
  4961. * test/UtilTest.cc
  4962. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4963. Removed.
  4964. * src/CheckIntegrityMan.cc
  4965. * src/FileAllocationMan.cc
  4966. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4967. Made (piece) hash check sequential for each RequestGroup because
  4968. simultaneous hash check is slower than sequential execution.
  4969. * src/CheckIntegrityCommand.cc
  4970. * src/CheckIntegrityDispatcherCommand.cc
  4971. * src/CheckIntegrityDispatcherCommand.h
  4972. * src/CheckIntegrityMan.h
  4973. * src/ConsoleStatCalc.cc
  4974. * src/DownloadCommand.cc
  4975. * src/DownloadEngine.cc
  4976. * src/DownloadEngine.h
  4977. * src/DownloadEngineFactory.cc
  4978. * src/Makefile.am
  4979. * src/Makefile.in
  4980. * src/RequestGroup.cc
  4981. * src/StatCalc.h
  4982. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4983. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4984. SequentialDispatcherCommand.
  4985. * src/FileAllocationDispatcherCommand.cc
  4986. * src/SequentialDispatcherCommand.h
  4987. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4988. Rewritten FileAllocationDispatcherCommand using brand new
  4989. SequentialDispatcherCommand.
  4990. * src/DownloadEngineFactory.cc
  4991. * src/FileAllocationCommand.cc
  4992. * src/FileAllocationDispatcherCommand.cc
  4993. * src/FileAllocationDispatcherCommand.h
  4994. * src/Makefile.am
  4995. * src/SequentialDispatcherCommand.h
  4996. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4997. Replaced FileAllocationMan with
  4998. SequentialPicker<FileAllocationEntry>.
  4999. * src/BtCheckIntegrityEntry.cc
  5000. * src/ConsoleStatCalc.cc
  5001. * src/DownloadEngine.cc
  5002. * src/DownloadEngine.h
  5003. * src/DownloadEngineFactory.cc
  5004. * src/FileAllocationCommand.cc
  5005. * src/FileAllocationDispatcherCommand.cc
  5006. * src/FileAllocationMan.h
  5007. * src/Makefile.am
  5008. * src/SequentialPicker.h
  5009. * src/StatCalc.h
  5010. * src/StreamCheckIntegrityEntry.cc
  5011. * test/Makefile.am
  5012. * test/SequentialPickerTest.cc
  5013. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  5014. Added doc for adaptive URI selector.
  5015. * doc/aria2c.1.txt
  5016. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  5017. Added doc for adaptive URI selector.
  5018. * src/usage_text.h
  5019. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  5020. Added doc for --bt-max-peers option.
  5021. * doc/aria2c.1.txt
  5022. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  5023. Added doc for --bt-hash-check-seed option.
  5024. * doc/aria2c.1.txt
  5025. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  5026. Documented exit codes.
  5027. * doc/aria2c.1.txt
  5028. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  5029. Added --bt-max-peers option to specify the maximum number of peers
  5030. per torrent. 0 means unlimited number of peers.
  5031. * src/ActivePeerConnectionCommand.cc
  5032. * src/BtRuntime.h
  5033. * src/DefaultPeerStorage.cc
  5034. * src/DefaultPeerStorage.h
  5035. * src/OptionHandlerFactory.cc
  5036. * src/RequestGroup.cc
  5037. * src/option_processing.cc
  5038. * src/prefs.cc
  5039. * src/prefs.h
  5040. * src/usage_text.h
  5041. * test/DefaultPeerStorageTest.cc
  5042. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  5043. Added --bt-hash-check-seed option. If true is given to this
  5044. option, after hash check using --check-integrity option and file
  5045. is complete, continue to seed file. If you want to check file and
  5046. download it only when it is damaged or incomplete, set this option
  5047. to false. This option has effect only on BitTorrent download.
  5048. The default value is true(This is the same behavior with the
  5049. previous release).
  5050. * src/BtCheckIntegrityEntry.cc
  5051. * src/OptionHandlerFactory.cc
  5052. * src/option_processing.cc
  5053. * src/prefs.cc
  5054. * src/prefs.h
  5055. * src/usage_text.h
  5056. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  5057. Updated copyright year.
  5058. * src/version_usage.cc
  5059. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  5060. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5061. * doc/aria2c.1.txt
  5062. * src/usage_text.h
  5063. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  5064. Made the max value of split option unlimited.
  5065. * doc/aria2c.1.txt
  5066. * src/OptionHandlerFactory.cc
  5067. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  5068. Fixed compile warning/error.
  5069. * src/DownloadResult.h
  5070. * src/HttpDownloadCommand.cc
  5071. * src/ServerStat.cc
  5072. * test/RequestGroupTest.cc
  5073. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  5074. Added --event-poll option to select the method for polling events.
  5075. The available methods are "select" and "epoll". "epoll" is
  5076. available on Linux only. The earlier release has the compile
  5077. option to choose from these methods.
  5078. * configure.ac
  5079. * src/RequestGroupMan.cc
  5080. * src/OptionHandlerFactory.cc
  5081. * src/EpollEventPoll.h
  5082. * src/StreamFileAllocationEntry.cc
  5083. * src/a2io.h
  5084. * src/SelectEventPoll.h
  5085. * src/option_processing.cc
  5086. * src/prefs.h
  5087. * src/EpollEventPoll.cc
  5088. * src/EventPoll.h
  5089. * src/SocketCore.h
  5090. * src/Makefile.am
  5091. * src/main.cc
  5092. * src/DownloadEngine.h
  5093. * src/SelectEventPoll.cc
  5094. * src/DownloadEngine.cc
  5095. * src/SocketCore.cc
  5096. * src/DownloadEngineFactory.cc
  5097. * src/Makefile.in
  5098. * src/prefs.cc
  5099. * src/usage_text.h
  5100. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  5101. Included RecoverableException.h from main.cc
  5102. * src/main.cc
  5103. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  5104. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5105. now returns last error encountered in the HTTP/FTP downloads as a
  5106. exit status value. If all downloads finished successfully, aria2
  5107. returns 0. The error code is defined in src/DownloadResult.h.
  5108. The error occurred in the download currently in progress is not
  5109. reported as a last error. If no error has encountered but there
  5110. are in progress or waiting downloads, aria2 returns 7.
  5111. * src/AbstractCommand.cc
  5112. * src/DlAbortEx.h
  5113. * src/DlRetryEx.h
  5114. * src/DownloadCommand.cc
  5115. * src/DownloadFailureException.h
  5116. * src/DownloadResult.h
  5117. * src/FtpNegotiationCommand.cc
  5118. * src/HttpSkipResponseCommand.cc
  5119. * src/Makefile.am
  5120. * src/MultiUrlRequestInfo.cc
  5121. * src/MultiUrlRequestInfo.h
  5122. * src/RecoverableException.h
  5123. * src/RequestGroup.cc
  5124. * src/RequestGroup.h
  5125. * src/RequestGroupMan.cc
  5126. * src/RequestGroupMan.h
  5127. * src/URIResult.cc
  5128. * src/URIResult.h
  5129. * src/main.cc
  5130. * src/option_processing.cc
  5131. * test/RequestGroupTest.cc
  5132. 2009-01-06 Tatsuhiro Tsujikawa <[email protected]>
  5133. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5134. patch adds AdaptiveURISelector, which selects one of the bests
  5135. mirrors for first and reserved connections. For supplementary
  5136. ones, it returns mirrors which has not been tested yet, and if
  5137. each of them already tested, returns mirrors which has to be
  5138. tested again. Otherwise, it doesn't return anymore mirrors.
  5139. * src/AdaptiveURISelector.cc
  5140. * src/AdaptiveURISelector.h
  5141. * src/FtpNegotiationCommand.cc
  5142. * src/HttpResponseCommand.cc
  5143. * src/Makefile.am
  5144. * src/Makefile.in
  5145. * src/OptionHandlerFactory.cc
  5146. * src/RequestGroup.cc
  5147. * src/RequestGroup.h
  5148. * src/RequestGroupMan.cc
  5149. * src/ServerStat.cc
  5150. * src/ServerStat.h
  5151. * src/ServerStatMan.cc
  5152. * src/SpeedCalc.cc
  5153. * src/URISelector.h
  5154. * src/prefs.cc
  5155. * src/prefs.h
  5156. * test/RequestGroupManTest.cc
  5157. * test/ServerStatManTest.cc
  5158. * test/ServerStatTest.cc
  5159. 2009-01-04 Tatsuhiro Tsujikawa <[email protected]>
  5160. Fixed unit test error.
  5161. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5162. 2008-12-30 Tatsuhiro Tsujikawa <[email protected]>
  5163. * Release 1.1.2
  5164. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  5165. Updated Russian translation. Thanks to the translators.
  5166. * po/ru.po
  5167. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  5168. Added the description of --use-head option to man page.
  5169. * doc/aria2c.1.txt
  5170. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  5171. Bump up version number to 1.1.2
  5172. * configure.ac
  5173. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  5174. Added --use-head option to toggle whether HEAD method should be
  5175. used in the first HTTP request. By default aria2 uses HEAD method
  5176. as the first request. When the server doesn't recognize HEAD, then
  5177. give aria2 --use-head=false to force aria2 to use GET method
  5178. instead.
  5179. * src/OptionHandlerFactory.cc
  5180. * src/RequestGroupMan.cc
  5181. * src/option_processing.cc
  5182. * src/prefs.cc
  5183. * src/prefs.h
  5184. * src/usage_text.h
  5185. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  5186. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5187. message is received before CHOKE message. The old implementation
  5188. doen't clear the use-bit of the piece when recieved REJECT
  5189. message.
  5190. * src/DefaultBtMessageDispatcher.cc
  5191. * test/DefaultBtMessageDispatcherTest.cc
  5192. 2008-12-25 Tatsuhiro Tsujikawa <[email protected]>
  5193. * Release 1.1.1
  5194. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  5195. Bump up version number to 1.1.1.
  5196. * configure.ac
  5197. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  5198. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5199. is printed repeatedly.
  5200. * src/ConsoleStatCalc.cc
  5201. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  5202. * Release 1.1.0
  5203. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  5204. Added ifdef clause for conditional compilation.
  5205. * src/main.cc
  5206. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  5207. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5208. translations. Thanks to all translators.
  5209. * po/ja.po
  5210. * po/ru.po
  5211. * po/uk.po
  5212. * po/zh_CN.po
  5213. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  5214. Added the preceding ">>> " before the message "Printing the
  5215. contents of file..." to make the output more readable.
  5216. * src/main.cc
  5217. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  5218. Added try-catch block in the loop in showFiles() to continue the
  5219. operation even if the exception occurred in one file.
  5220. * src/main.cc (showFiles)
  5221. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  5222. Made messages in showFiles() translatable.
  5223. * po/aria2.pot
  5224. * src/main.cc
  5225. * src/message.h
  5226. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  5227. Print the contents of Torrent/Metalink files are printed without
  5228. -T/-M options.
  5229. * src/main.cc
  5230. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5231. Escaped '--' with '\--'
  5232. * README
  5233. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5234. Updated "How to build" section in README. Mentioned about
  5235. --with-ca-bundle compile option.
  5236. * README
  5237. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5238. Bump up version number to 1.1.0.
  5239. * configure.ac
  5240. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5241. Added a note for --dht-listen-port option.
  5242. * doc/aria2c.1.txt
  5243. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5244. Update doc for --realtime-chunk-checksum option.
  5245. * doc/aria2c.1.txt
  5246. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5247. Update doc for --realtime-chunk-checksum option.
  5248. * src/usage_text.h
  5249. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5250. Updated French, Japanese, Russian and Ukrainian translations.
  5251. Thanks to all translators.
  5252. * po/fr.po
  5253. * po/ja.po
  5254. * po/ru.po
  5255. * po/uk.po
  5256. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5257. Renamed aria2c.pot to aria2.pot
  5258. * po/aria2.pot
  5259. * po/aria2c.pot: Removed.
  5260. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5261. Removed MetaEntry.h
  5262. * src/Makefile.am
  5263. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5264. Rename file by appending digits if a local file exists and its
  5265. file size is larger than that of remote file with --continue
  5266. option. The old implementation just throws exception in such case.
  5267. * src/RequestGroup.cc
  5268. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  5269. Fixed the bug that download progress summary is not printed in the
  5270. interval specified by the option.
  5271. * src/ConsoleStatCalc.cc
  5272. * src/ConsoleStatCalc.h
  5273. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  5274. Fixed compiler warning
  5275. * src/Cookie.cc
  5276. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  5277. Fixed the cookie implementation based on RFC2965.
  5278. Now if a value in domain field is not started with dot, then
  5279. prepend dot. That means a cookie with domain=sf.net is sent to
  5280. wiki.sf.net.
  5281. * src/Cookie.cc
  5282. * test/CookieParserTest.cc
  5283. * test/CookieStorageTest.cc
  5284. * test/CookieTest.cc
  5285. * test/NsCookieParserTest.cc
  5286. * test/Sqlite3MozCookieParserTest.cc
  5287. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  5288. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5289. is enabled and the server doesn't support keep-alive.
  5290. * src/AbstractCommand.cc
  5291. * src/DownloadCommand.cc
  5292. * src/HttpDownloadCommand.cc
  5293. * src/HttpDownloadCommand.h
  5294. * src/HttpResponseCommand.cc
  5295. * src/Request.cc
  5296. * src/Request.h
  5297. * test/RequestTest.cc
  5298. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5299. Removed Dictionary/List/Data and its related classes.
  5300. * src/BencodeVisitor.cc: Removed.
  5301. * src/BencodeVisitor.h: Removed.
  5302. * src/Data.cc: Removed.
  5303. * src/Data.h: Removed.
  5304. * src/Dictionary.cc: Removed.
  5305. * src/Dictionary.h: Removed.
  5306. * src/List.cc: Removed.
  5307. * src/List.h: Removed.
  5308. * src/Makefile.am
  5309. * src/MetaEntry.h: Removed.
  5310. * src/MetaEntryVisitor.h: Removed.
  5311. * src/MetaFileUtil.cc: Removed.
  5312. * src/MetaFileUtil.h: Removed.
  5313. * test/BencodeVisitorTest.cc: Removed.
  5314. * test/DataTest.cc: Removed.
  5315. * test/DictionaryTest.cc: Removed.
  5316. * test/ListTest.cc: Removed.
  5317. * test/Makefile.am
  5318. * test/MetaFileUtilTest.cc: Removed.
  5319. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5320. Removed include of MetaEntry.h
  5321. * test/DHTMessageTrackerEntryTest.cc
  5322. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5323. Use BDE instead of Dictionary/List/Data.
  5324. * src/AnnounceList.cc
  5325. * src/AnnounceList.h
  5326. * test/AnnounceListTest.cc
  5327. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5328. Use BDE instead of Dictionary/List/Data.
  5329. * src/DHTAbstractMessage.cc
  5330. * src/DHTAbstractMessage.h
  5331. * src/DHTAnnouncePeerMessage.cc
  5332. * src/DHTAnnouncePeerMessage.h
  5333. * src/DHTAnnouncePeerReplyMessage.cc
  5334. * src/DHTAnnouncePeerReplyMessage.h
  5335. * src/DHTFindNodeMessage.cc
  5336. * src/DHTFindNodeMessage.h
  5337. * src/DHTFindNodeReplyMessage.cc
  5338. * src/DHTFindNodeReplyMessage.h
  5339. * src/DHTGetPeersMessage.cc
  5340. * src/DHTGetPeersMessage.h
  5341. * src/DHTGetPeersReplyMessage.cc
  5342. * src/DHTGetPeersReplyMessage.h
  5343. * src/DHTMessageFactory.h
  5344. * src/DHTMessageFactoryImpl.cc
  5345. * src/DHTMessageFactoryImpl.h
  5346. * src/DHTMessageReceiver.cc
  5347. * src/DHTMessageTracker.cc
  5348. * src/DHTMessageTracker.h
  5349. * src/DHTPingMessage.cc
  5350. * src/DHTPingMessage.h
  5351. * src/DHTPingReplyMessage.cc
  5352. * src/DHTPingReplyMessage.h
  5353. * src/DHTQueryMessage.cc
  5354. * src/DHTQueryMessage.h
  5355. * src/DHTResponseMessage.cc
  5356. * src/DHTResponseMessage.h
  5357. * test/DHTAnnouncePeerMessageTest.cc
  5358. * test/DHTAnnouncePeerReplyMessageTest.cc
  5359. * test/DHTFindNodeMessageTest.cc
  5360. * test/DHTFindNodeReplyMessageTest.cc
  5361. * test/DHTGetPeersMessageTest.cc
  5362. * test/DHTGetPeersReplyMessageTest.cc
  5363. * test/DHTMessageFactoryImplTest.cc
  5364. * test/DHTMessageTrackerTest.cc
  5365. * test/DHTPingMessageTest.cc
  5366. * test/DHTPingReplyMessageTest.cc
  5367. * test/MockDHTMessageFactory.h
  5368. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5369. Added tests the case where length < 0 is specified.
  5370. * test/BencodeTest.cc
  5371. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5372. Fixed memory leak in decoderawstring()
  5373. * src/bencode.cc
  5374. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5375. Added missing #ifdef guard. Added uc() function for String and
  5376. removeKey() for Dict.
  5377. * src/bencode.cc
  5378. * src/bencode.h
  5379. * test/BencodeTest.cc
  5380. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  5381. Use BDE instead of Dictionary/List/Data.
  5382. * src/HandshakeExtensionMessage.cc
  5383. * src/HandshakeExtensionMessage.h
  5384. * test/HandshakeExtensionMessageTest.cc
  5385. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  5386. Added --max-overall-upload-limit option. This option limits the
  5387. overall upload speed. Stated in help message that the existing
  5388. --max-upload-limit option limits the upload speed per each
  5389. torrent. Man page is also updated.
  5390. * doc/aria2c.1.txt
  5391. * src/DefaultBtMessageDispatcher.cc
  5392. * src/DefaultBtMessageDispatcher.h
  5393. * src/OptionHandlerFactory.cc
  5394. * src/PeerInteractionCommand.cc
  5395. * src/option_processing.cc
  5396. * src/prefs.cc
  5397. * src/prefs.h
  5398. * src/usage_text.h
  5399. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  5400. Use BDE instead of Dictionary/List/Data classes.
  5401. * src/CompactPeerListProcessor.cc
  5402. * src/CompactPeerListProcessor.h
  5403. * src/DefaultBtAnnounce.cc
  5404. * src/DefaultBtContext.cc
  5405. * src/DefaultBtContext.h
  5406. * src/DefaultPeerListProcessor.cc
  5407. * src/DefaultPeerListProcessor.h
  5408. * src/DelegatingPeerListProcessor.cc
  5409. * src/DelegatingPeerListProcessor.h
  5410. * src/PeerListProcessor.h
  5411. * src/UTPexExtensionMessage.cc
  5412. * src/Util.h
  5413. * src/message.h
  5414. * test/DefaultBtContextTest.cc
  5415. * test/DefaultPeerListProcessorTest.cc
  5416. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  5417. Added bencode helper functions and BDE class.
  5418. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5419. * src/Makefile.am
  5420. * src/bencode.cc
  5421. * src/bencode.h
  5422. * test/BencodeTest.cc
  5423. * test/Makefile.am
  5424. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  5425. Fixed the bug that bad URI is sent to the tracker when the announe
  5426. URI in torrent file includes query.
  5427. * src/DefaultBtAnnounce.cc
  5428. * test/DefaultBtAnnounceTest.cc
  5429. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  5430. Added Option::blank().
  5431. Use !Option::blank(name) instead of Option::defined(name) for
  5432. the options that take filename.
  5433. * src/MultiUrlRequestInfo.cc
  5434. * src/Option.cc
  5435. * src/Option.h
  5436. * src/main.cc
  5437. * src/option_processing.cc
  5438. * test/OptionTest.cc
  5439. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  5440. Documented the default value of --check-certificate option in man
  5441. page.
  5442. * doc/aria2c.1.txt
  5443. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  5444. Enabled --check-certificate by default. Added compile
  5445. time(configure) option --with-ca-bundle to specify CA bundle.
  5446. Warn if --check-certificate=true and --ca-certificate is not
  5447. specified or loading CA certificate is failed.
  5448. * configure.ac
  5449. * src/MultiUrlRequestInfo.cc
  5450. * src/OptionHandlerFactory.cc
  5451. * src/message.h
  5452. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  5453. Mentioned https tag in help option.
  5454. * doc/aria2c.1.txt
  5455. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  5456. Added `https' tag to help option category. Added https tag to
  5457. --ca-certificate, --certificate, --check-certificate and
  5458. --private-key option.
  5459. * src/OptionHandlerFactory.cc
  5460. * src/help_tags.h
  5461. * src/option_processing.cc
  5462. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  5463. Changed the package name from `aria2c' to `aria2' in order to fix
  5464. the packaging issue in Debian and Fedora. The name of the
  5465. executable is not changed.
  5466. * configure.ac
  5467. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  5468. Fixed typos
  5469. * src/usage_text.h
  5470. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  5471. Fixed typos and updated doc.
  5472. * README
  5473. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  5474. Fixed typos
  5475. * doc/aria2c.1.txt
  5476. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  5477. Fixed typos
  5478. * src/usage_text.h
  5479. 2008-11-30 Tatsuhiro Tsujikawa <[email protected]>
  5480. Print a message when no files to download.
  5481. * src/download_helper.cc
  5482. * src/main.cc
  5483. * src/message.h
  5484. 2008-11-28 Tatsuhiro Tsujikawa <[email protected]>
  5485. RFC3986 complied Percent-Encoding(urlencode).
  5486. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5487. ones.
  5488. * src/Request.cc
  5489. * src/Util.cc
  5490. * src/Util.h
  5491. * test/BtHandshakeMessageTest.cc
  5492. * test/DefaultBtAnnounceTest.cc
  5493. * test/DefaultBtContextTest.cc
  5494. * test/RequestTest.cc
  5495. * test/UtilTest.cc
  5496. 2008-11-27 Tatsuhiro Tsujikawa <[email protected]>
  5497. Fixed the bug that prevents aria2 from downloading 0-length files
  5498. via HTTP/FTP.
  5499. * src/DefaultBtContext.cc
  5500. * src/DefaultBtContext.h
  5501. * src/DownloadContext.h
  5502. * src/FtpNegotiationCommand.cc
  5503. * src/HttpResponseCommand.cc
  5504. * src/HttpResponseCommand.h
  5505. * src/RequestGroup.cc
  5506. * src/SingleFileDownloadContext.cc
  5507. * src/SingleFileDownloadContext.h
  5508. * test/BtPostDownloadHandlerTest.cc
  5509. * test/MetalinkPostDownloadHandlerTest.cc
  5510. * test/MockBtContext.h
  5511. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  5512. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5513. * src/option_processing.cc
  5514. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  5515. Applied aria2-1.0.1-mingw.patch.
  5516. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5517. mingw.
  5518. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5519. * src/SocketCore.cc
  5520. * src/a2netcompat.h
  5521. * test/SocketCoreTest.cc
  5522. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  5523. * Release 1.0.1
  5524. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  5525. Updated Ukrainian and Norwegian Nynorsk translations.
  5526. Thanks to all translators.
  5527. * po/nn.po
  5528. * po/uk.po
  5529. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  5530. Don't show download result when -S option is used.
  5531. * src/main.cc
  5532. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  5533. Bump up version number to 1.0.1
  5534. * configure.ac
  5535. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  5536. Closed files after the test cases in MultiDiskWriterTest::
  5537. testResetDiskWriterEntries(). This will fix the unit test error
  5538. in mingw32 build.
  5539. * test/MultiDiskWriterTest.cc
  5540. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  5541. Use HEAD method to get file size from HTTP server for segmented
  5542. downloading.
  5543. The request to the BitTorrent Tracker always uses GET method because
  5544. the response of the tracker is small and it doesn't need segmented
  5545. download.
  5546. * src/FtpNegotiationCommand.cc
  5547. * src/HttpRequest.cc
  5548. * src/HttpResponseCommand.cc
  5549. * src/HttpSkipResponseCommand.cc
  5550. * src/RequestGroup.cc
  5551. * src/RequestGroup.h
  5552. * src/TrackerWatcherCommand.cc
  5553. * test/HttpRequestTest.cc
  5554. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  5555. Fixed the bug that causes floating exception when -T option is used and
  5556. no URIs are given.
  5557. * src/download_helper.cc
  5558. * test/DownloadHelperTest.cc
  5559. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5560. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5561. errors in MinGW:
  5562. Closed file after saving server stats (RequestGroupMan.cc)
  5563. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5564. Ignored case & handled 2-digit years (strptime.c)
  5565. Added missing suseconds_t definition (a2time.h)
  5566. Fixed socket CLOSE() define (SocketCore.cc)
  5567. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5568. Changed utime() test values from x000 to x00000 as MinGW failed on
  5569. values less than timezone offset from Unix epoch
  5570. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5571. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5572. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5573. handle negative dates (CookieParserTest.cc)
  5574. * src/a2time.h
  5575. * src/FtpConnection.cc
  5576. * src/RequestGroupMan.cc
  5577. * src/SocketCore.cc
  5578. * src/strptime.c
  5579. * test/CookieParserTest.cc
  5580. * test/CopyDiskAdaptorTest.cc
  5581. * test/FileTest.cc
  5582. * test/FtpConnectionTest.cc
  5583. * test/MultiDiskAdaptorTest.cc
  5584. 2008-11-20 Tatsuhiro Tsujikawa <[email protected]>
  5585. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5586. * doc/aria2c.1.txt
  5587. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  5588. * Release 1.0.0
  5589. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  5590. Added '~' to reserved characters.
  5591. * src/Util.cc
  5592. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  5593. Do not urlencode Request::url in setUrl() because we want unmodified
  5594. URL using Request::getUrl()
  5595. * src/Request.cc
  5596. * src/Request.h
  5597. * test/RequestTest.cc
  5598. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  5599. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5600. Thanks to all translators.
  5601. * po/bg.po
  5602. * po/fr.po
  5603. * po/ja.po
  5604. * po/ru.po
  5605. * po/uk.po
  5606. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  5607. Bump up version number to 1.0.0
  5608. * configure.ac
  5609. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  5610. Added nosqlite3 build to build_test.sh.
  5611. Renamed noxml as expat.
  5612. * build_test.sh
  5613. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  5614. Updated INPUT FILE section.
  5615. * doc/aria2c.1.txt
  5616. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  5617. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5618. on big endian systems because test .aria2 files are made for little
  5619. endian systems.
  5620. * test/DefaultBtProgressInfoFileTest.cc
  5621. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  5622. Dropped ares support.
  5623. * README
  5624. * configure.ac
  5625. * m4/libares.m4: Removed.
  5626. * src/AsyncNameResolver.cc
  5627. * src/Makefile.am
  5628. * test/Makefile.am
  5629. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  5630. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5631. Removed const qualifier from DiskWriter::size().
  5632. * src/AbstractDiskWriter.cc
  5633. * src/AbstractDiskWriter.h
  5634. * src/ByteArrayDiskWriter.cc
  5635. * src/ByteArrayDiskWriter.h
  5636. * src/DiskWriter.h
  5637. * test/ByteArrayDiskWriterTest.cc
  5638. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  5639. Fixed the bug that causes segmentation fault/bus error during executing
  5640. choking algorithm while seeding. This is caused by improper
  5641. implementation of compare function which returns inconsistent results
  5642. depending on the timing of last unchoke.
  5643. * src/BtSeederStateChoke.cc
  5644. * src/BtSeederStateChoke.h
  5645. * src/DefaultPeerStorage.cc
  5646. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  5647. Removed TODO
  5648. * TODO
  5649. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  5650. Added a section that explains how to pass argument to options that
  5651. takes optional arguments with its short form.
  5652. * doc/aria2c.1.txt
  5653. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  5654. Added -u for the short form of --max-upload-limit option.
  5655. * doc/aria2c.1.txt
  5656. * src/option_processing.cc
  5657. * src/usage_text.h
  5658. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  5659. Added -V for the short form of --check-integrity option.
  5660. Now the argument of --check-integrity option is optional:
  5661. if it is omitted, it is evaluated as true.
  5662. * doc/aria2c.1.txt
  5663. * src/option_processing.cc
  5664. * src/usage_text.h
  5665. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  5666. Made the default value of --ftp-pasv option set to true and it can take
  5667. true/false values.
  5668. * src/OptionHandlerFactory.cc
  5669. * src/option_processing.cc
  5670. * src/usage_text.h
  5671. * doc/aria2c.1.txt
  5672. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  5673. Given custom random number generator to std::random_shuffle.
  5674. * src/AnnounceList.cc
  5675. * src/BtLeecherStateChoke.cc
  5676. * src/BtSeederStateChoke.cc
  5677. * src/DefaultBtRequestFactory.cc
  5678. * src/MetalinkEntry.cc
  5679. * src/RarestPieceSelector.cc
  5680. * src/SimpleRandomizer.cc
  5681. * src/SimpleRandomizer.h
  5682. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  5683. Now the default value of --enable-direct-io is true.
  5684. * src/OptionHandlerFactory.cc
  5685. * doc/aria2c.1.txt
  5686. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  5687. Erase peer before executing onReturningPeer and onErasingPeer
  5688. because choking algorithm called from onReturningPeer doesn't
  5689. like erasing peer in the active peer list.
  5690. * src/DefaultPeerStorage.cc
  5691. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5692. Instead of creating special filename in createDownloadResult() if
  5693. inMemoryDownload() is true, now it is done in getFilePath().
  5694. * src/RequestGroup.cc
  5695. * test/RequestGroupTest.cc
  5696. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5697. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5698. processed in memory. This is the fix for previous comment out.
  5699. * src/MemoryBufferPreDownloadHandler.cc
  5700. * src/RequestGroup.cc
  5701. * src/RequestGroup.h
  5702. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5703. Commented out the code which sets virtual directory path "[MEMORY]"
  5704. propagate directory to store to following RequestGroup.
  5705. * src/MemoryBufferPreDownloadHandler.cc
  5706. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5707. Bump up version number to 1.0.0b
  5708. * configure.ac
  5709. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5710. Added input_uris.txt to EXTRA_DIST
  5711. * test/Makefile.am
  5712. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5713. Removed PeerObject.h from Makefile.am
  5714. * src/Makefile.am
  5715. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5716. Avoid slow seeding
  5717. * src/PeerInteractionCommand.cc
  5718. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5719. Updated usage for -i option.
  5720. * src/usage_text.h (TEXT_INPUT_FILE)
  5721. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5722. Added INPUT FILE section to man page.
  5723. Escaped fake URLs.
  5724. * doc/aria2c.1.txt
  5725. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5726. Fixed wrong note position for -o option.
  5727. * doc/aria2c.1.txt
  5728. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5729. Fixed compile error without SSL/XML library.
  5730. * src/DefaultBtProgressInfoFile.cc
  5731. * src/DefaultBtProgressInfoFile.h
  5732. * src/FileMetalinkParserState.cc
  5733. * src/RequestGroup.h
  5734. * src/SocketCore.cc
  5735. * src/SocketCore.h
  5736. * src/VerificationMetalinkParserState.cc
  5737. * src/download_helper.h
  5738. * src/main.cc
  5739. * test/DefaultBtProgressInfoFileTest.cc
  5740. * test/DownloadHelperTest.cc
  5741. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  5742. Rewritten URI handling functions. They are now provided as a testable
  5743. functions.
  5744. * src/Makefile.am
  5745. * src/RequestGroup.cc
  5746. * src/RequestGroup.h
  5747. * src/download_helper.cc
  5748. * src/download_helper.h
  5749. * src/main.cc
  5750. * test/DownloadHelperTest.cc
  5751. * test/Makefile.am
  5752. * test/input_uris.txt
  5753. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  5754. Quickly terminate commands when ctrl-c is pressed.
  5755. * src/DownloadEngine.cc
  5756. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  5757. Quickly terminate idle commands when download finished.
  5758. * src/AbstractCommand.cc
  5759. * src/DownloadCommand.cc
  5760. * src/DownloadEngine.cc
  5761. * src/DownloadEngine.h
  5762. * src/SleepCommand.cc
  5763. * src/SleepCommand.h
  5764. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5765. Added the ability to specify output filename and directory in input
  5766. file.
  5767. Additional parameters are added in the following line of URIs
  5768. with proceeding white space(s), 1 parameter in 1 line.
  5769. The parameter names are the same with the command-line option name
  5770. without proceeding "--". Not all the options are available here:
  5771. at the moment, 'dir' and 'out' options are avialable.
  5772. Please note that out option has no effect against Metalink or BitTorrent
  5773. downloads.
  5774. Example input file:
  5775. http://host/foo-1.1.tar.bz2
  5776. out=foo.tar.bz2
  5777. dir=/tmp/downloads
  5778. http://host/thundermonkey-2.0.tar.bz2
  5779. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5780. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5781. thundermonkey-2.0.tar.bz2 is saved as
  5782. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5783. * src/BtPostDownloadHandler.cc
  5784. * src/Metalink2RequestGroup.cc
  5785. * src/Metalink2RequestGroup.h
  5786. * src/MetalinkPostDownloadHandler.cc
  5787. * src/UriListParser.cc
  5788. * src/UriListParser.h
  5789. * src/main.cc
  5790. * test/Metalink2RequestGroupTest.cc
  5791. * test/UriListParserTest.cc
  5792. * test/filelist1.txt
  5793. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5794. Fixed error when SSL library is not found.
  5795. * configure.ac
  5796. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5797. Cross referenced among -s, -C and -j options.
  5798. Updated usage of -C and -s options.
  5799. * src/usage_text.h
  5800. * doc/aria2c.1.txt
  5801. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5802. Fixed bad cast in 32bit platforms.
  5803. * test/DefaultPieceStorageTest.cc
  5804. (DefaultPieceStorageTest::testGetCompletedLength)
  5805. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5806. Fixed unit test fails on 32bit platforms.
  5807. * test/CookieParserTest.cc
  5808. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5809. Show an average download speed in Download results.
  5810. * src/BtFileAllocationEntry.cc
  5811. * src/DefaultPieceStorage.cc
  5812. * src/DownloadContext.cc
  5813. * src/DownloadContext.h
  5814. * src/DownloadResult.h
  5815. * src/RequestGroup.cc
  5816. * src/RequestGroupMan.cc
  5817. * src/StreamFileAllocationEntry.cc
  5818. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5819. Fixed the bug that metalink file is not processed if Content-Type
  5820. field has a paramter.
  5821. * src/HttpResponse.cc
  5822. * src/HttpResponse.h
  5823. * test/HttpResponseTest.cc
  5824. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  5825. Removed unused code.
  5826. * src/DefaultBtAnnounce.cc
  5827. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  5828. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5829. the value larger than DefaultPieceStorage::getTotalLength() when
  5830. in flight pieces are involved.
  5831. * src/DefaultPieceStorage.cc
  5832. * test/DefaultPieceStorageTest.cc
  5833. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5834. Bump up version number to 1.0.0a.
  5835. * configure.ac
  5836. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5837. Updated configure.ac
  5838. * configure.ac
  5839. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5840. Added usege for proxy.
  5841. * doc/aria2c.1.txt
  5842. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5843. Added usage for --ca-certificate, --certificate, --private-key and
  5844. --check-certificate options.
  5845. * doc/aria2c.1.txt
  5846. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5847. Updated man page
  5848. * doc/aria2c.1.txt
  5849. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5850. Added --no-proxy option. It receives comman separated hostname or
  5851. domains to which proxy should not be used.
  5852. aria2 honors the environment variable no_proxy to override no-proxy
  5853. value in configuration file. The user can override the environment
  5854. variable no_proxy with --no-proxy command-line option.
  5855. * src/AbstractCommand.cc
  5856. * src/OptionHandlerFactory.cc
  5857. * src/option_processing.cc
  5858. * src/prefs.cc
  5859. * src/prefs.h
  5860. * src/usage_text.h
  5861. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5862. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5863. The CA certificates are specified in --ca-certificate option.
  5864. By default, the verification is disabled. Use --check-certificate
  5865. option to enable it.
  5866. * src/HttpRequestCommand.cc
  5867. * src/LibgnutlsTLSContext.cc
  5868. * src/LibgnutlsTLSContext.h
  5869. * src/LibsslTLSContext.cc
  5870. * src/LibsslTLSContext.h
  5871. * src/MultiUrlRequestInfo.cc
  5872. * src/OptionHandlerFactory.cc
  5873. * src/SocketCore.cc
  5874. * src/SocketCore.h
  5875. * src/a2functional.h
  5876. * src/message.h
  5877. * src/option_processing.cc
  5878. * src/prefs.cc
  5879. * src/prefs.h
  5880. * src/usage_text.h
  5881. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  5882. Added client certificate authentication for SSL/TLS.
  5883. Currently a private key must be decrypted for use with aria2.
  5884. If a user accidentally gives encrypted file to aria2 then following
  5885. thing happens:
  5886. If encrypted private key is given to aria2, it behaves differently
  5887. depending on the ssl library it uses. If aria2 built with openssl then
  5888. openssl prompts the user for password. If aria2 build with gnutls then
  5889. aria2 exists with error at start up.
  5890. * src/DownloadEngineFactory.cc
  5891. * src/MultiUrlRequestInfo.cc
  5892. * src/OptionHandlerFactory.cc
  5893. * src/option_processing.cc
  5894. * src/prefs.cc
  5895. * src/prefs.h
  5896. * src/usage_text.h
  5897. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  5898. Introduced TLSContext that holds TLS related data that can be shared
  5899. with multiple SSL connections.
  5900. * src/DownloadEngineFactory.cc
  5901. * src/LibgnutlsTLSContext.cc
  5902. * src/LibgnutlsTLSContext.h
  5903. * src/LibsslTLSContext.cc
  5904. * src/LibsslTLSContext.h
  5905. * src/Makefile.am
  5906. * src/SocketCore.cc
  5907. * src/SocketCore.h
  5908. * src/TLSContext.h
  5909. * src/message.h
  5910. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  5911. Fixed the bug that the DiskWriter of the first FileEntry whose
  5912. `needsFileAllocation' property is false is not created
  5913. even if it shares a piece with next FileEntry which `requested' property
  5914. is true.
  5915. Fixed the bug that zero-length file is not created if pre file
  5916. allocation is not done.
  5917. * src/MultiDiskAdaptor.cc
  5918. * src/MultiDiskAdaptor.h
  5919. * test/MultiDiskAdaptorTest.cc
  5920. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. Added the ability to pool proxy connection.
  5922. The conneciton in FTP with proxy-method=GET is not pooled.
  5923. Proxy-Connection header will not be sent when sending CONNECT method.
  5924. * src/DownloadEngine.cc
  5925. * src/DownloadEngine.h
  5926. * src/FtpFinishDownloadCommand.cc
  5927. * src/FtpInitiateConnectionCommand.cc
  5928. * src/FtpNegotiationCommand.cc
  5929. * src/HttpDownloadCommand.cc
  5930. * src/HttpInitiateConnectionCommand.cc
  5931. * src/HttpRequest.cc
  5932. * src/HttpRequest.h
  5933. * src/HttpResponse.cc
  5934. * src/HttpSkipResponseCommand.cc
  5935. * test/HttpRequestTest.cc
  5936. * test/HttpResponseTest.cc
  5937. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Handle date before epoch.
  5939. To create *bad* Time object, call Time::null().
  5940. * src/CookieParser.cc
  5941. * src/FtpConnection.cc
  5942. * src/FtpConnection.h
  5943. * src/FtpNegotiationCommand.cc
  5944. * src/RequestGroup.cc
  5945. * src/TimeA2.cc
  5946. * src/TimeA2.h
  5947. * test/CookieParserTest.cc
  5948. * test/FtpConnectionTest.cc
  5949. * test/TimeTest.cc
  5950. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Added support for following envrionment variables: http_proxy,
  5952. https_proxy, ftp_proxy and all_proxy.
  5953. Each variable is equivalent to the aria2 option whose name is the
  5954. variable name with '_' replaced with '-'.
  5955. They overrides options specified in aria2.conf file.
  5956. The envrionment variables can be overrode using command-line option.
  5957. * src/option_processing.cc
  5958. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5959. Renamed --http-proxy-method as --proxy-method.
  5960. * src/AbstractCommand.cc
  5961. * src/FtpInitiateConnectionCommand.cc
  5962. * src/HttpInitiateConnectionCommand.cc
  5963. * src/OptionHandlerFactory.cc
  5964. * src/option_processing.cc
  5965. * src/prefs.cc
  5966. * src/prefs.h
  5967. * src/usage_text.h
  5968. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5969. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5970. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5971. Above 3 options and --http-proxy option can handle proxy in URL format
  5972. like: http://user:passwd@host:port.
  5973. If a proxy requires user/password, they must be specified in a URL.
  5974. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5975. instead.
  5976. * src/AbstractCommand.cc
  5977. * src/AbstractCommand.h
  5978. * src/AbstractProxyRequestCommand.cc
  5979. * src/AbstractProxyRequestCommand.h
  5980. * src/AuthConfigFactory.cc
  5981. * src/AuthConfigFactory.h
  5982. * src/FtpFinishDownloadCommand.cc
  5983. * src/FtpInitiateConnectionCommand.cc
  5984. * src/FtpInitiateConnectionCommand.h
  5985. * src/FtpNegotiationCommand.cc
  5986. * src/FtpTunnelRequestCommand.cc
  5987. * src/FtpTunnelRequestCommand.h
  5988. * src/HttpDownloadCommand.cc
  5989. * src/HttpInitiateConnectionCommand.cc
  5990. * src/HttpInitiateConnectionCommand.h
  5991. * src/HttpProxyRequestCommand.cc
  5992. * src/HttpProxyRequestCommand.h
  5993. * src/HttpRequest.cc
  5994. * src/HttpRequest.h
  5995. * src/HttpRequestCommand.cc
  5996. * src/HttpRequestCommand.h
  5997. * src/HttpSkipResponseCommand.cc
  5998. * src/InitiateConnectionCommand.cc
  5999. * src/InitiateConnectionCommand.h
  6000. * src/OptionHandlerFactory.cc
  6001. * src/OptionHandlerImpl.h
  6002. * src/Request.cc
  6003. * src/option_processing.cc
  6004. * src/prefs.cc
  6005. * src/prefs.h
  6006. * src/usage_text.h
  6007. * test/AuthConfigFactoryTest.cc
  6008. * test/HttpRequestTest.cc
  6009. * test/OptionHandlerTest.cc
  6010. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6011. Execute choking algorithm when unchoked and interested peer is
  6012. disconected.
  6013. * src/DefaultPeerStorage.cc
  6014. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6015. Added testcase for BtNotInterestedMessage from unchoked peer.
  6016. * test/BtNotInterestedMessageTest.cc
  6017. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6018. Execute choking algorithm when BtInterestedMessage arrives from
  6019. unchoked peer.
  6020. * src/BtInterestedMessage.cc
  6021. * src/BtInterestedMessage.h
  6022. * src/DefaultBtMessageFactory.cc
  6023. * test/BtInterestedMessageTest.cc
  6024. * test/MockPeerStorage.h
  6025. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6026. AuthConfigFactory is now part of DownloadEngine.
  6027. * src/AbstractProxyRequestCommand.cc
  6028. * src/AuthConfigFactory.h
  6029. * src/DownloadEngine.cc
  6030. * src/DownloadEngine.h
  6031. * src/FtpConnection.cc
  6032. * src/FtpConnection.h
  6033. * src/FtpNegotiationCommand.cc
  6034. * src/HttpConnection.cc
  6035. * src/HttpRequest.cc
  6036. * src/HttpRequest.h
  6037. * src/HttpRequestCommand.cc
  6038. * src/HttpResponse.cc
  6039. * src/HttpResponseCommand.cc
  6040. * src/HttpSkipResponseCommand.cc
  6041. * src/MultiUrlRequestInfo.cc
  6042. * src/main.cc
  6043. * test/FtpConnectionTest.cc
  6044. * test/HttpRequestTest.cc
  6045. * test/HttpResponseTest.cc
  6046. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Corrected catched exception type.
  6048. * src/ServerStatMan.cc
  6049. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. DNSCache is now part of DownloadEngine.
  6051. * src/DNSCache.h
  6052. * src/DownloadEngine.cc
  6053. * src/DownloadEngine.h
  6054. * src/InitiateConnectionCommand.cc
  6055. * src/MultiUrlRequestInfo.cc
  6056. * test/Makefile.am
  6057. * test/Makefile.in
  6058. * test/SimpleDNSCacheTest.cc
  6059. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6061. DownloadEngine.
  6062. * src/ActivePeerConnectionCommand.cc
  6063. * src/BtSetup.cc
  6064. * src/CUIDCounter.h
  6065. * src/DHTSetup.cc
  6066. * src/DownloadCommand.cc
  6067. * src/DownloadEngine.cc
  6068. * src/DownloadEngine.h
  6069. * src/DownloadEngineFactory.cc
  6070. * src/FileAllocationDispatcherCommand.cc
  6071. * src/InitiatorMSEHandshakeCommand.cc
  6072. * src/PeerInitiateConnectionCommand.cc
  6073. * src/PeerInteractionCommand.cc
  6074. * src/PeerListenCommand.cc
  6075. * src/RequestGroup.cc
  6076. * src/StreamFileAllocationEntry.cc
  6077. * src/TrackerWatcherCommand.cc
  6078. * src/main.cc
  6079. * test/RequestGroupManTest.cc
  6080. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6081. Implemented commented code in BtSeederStateChoke
  6082. * src/BtSeederStateChoke.cc
  6083. * src/Peer.cc
  6084. * src/Peer.h
  6085. * src/PeerInteractionCommand.cc
  6086. * src/PeerSessionResource.cc
  6087. * src/PeerSessionResource.h
  6088. * test/MockBtMessageDispatcher.h
  6089. * test/PeerSessionResourceTest.cc
  6090. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6092. its object.
  6093. * src/AbstractBtMessage.cc
  6094. * src/ActivePeerConnectionCommand.cc
  6095. * src/ActivePeerConnectionCommand.h
  6096. * src/BtContextAwareCommand.cc
  6097. * src/BtContextAwareCommand.h
  6098. * src/BtExtendedMessage.cc
  6099. * src/BtExtendedMessage.h
  6100. * src/BtInterestedMessage.cc
  6101. * src/BtInterestedMessage.h
  6102. * src/BtNotInterestedMessage.cc
  6103. * src/BtNotInterestedMessage.h
  6104. * src/BtRegistry.cc
  6105. * src/BtRegistry.h
  6106. * src/BtSeederStateChoke.cc
  6107. * src/BtSetup.cc
  6108. * src/DHTGetPeersCommand.cc
  6109. * src/DHTGetPeersCommand.h
  6110. * src/DHTPeerAnnounceEntry.cc
  6111. * src/DHTPeerAnnounceEntry.h
  6112. * src/DHTPeerAnnounceStorage.cc
  6113. * src/DHTPeerAnnounceStorage.h
  6114. * src/DHTPeerLookupTask.cc
  6115. * src/DHTPeerLookupTask.h
  6116. * src/DHTSetup.cc
  6117. * src/DHTSetup.h
  6118. * src/DHTTaskFactory.h
  6119. * src/DHTTaskFactoryImpl.cc
  6120. * src/DHTTaskFactoryImpl.h
  6121. * src/DefaultBtAnnounce.cc
  6122. * src/DefaultBtInteractive.cc
  6123. * src/DefaultBtInteractive.h
  6124. * src/DefaultBtMessageDispatcher.cc
  6125. * src/DefaultBtMessageDispatcher.h
  6126. * src/DefaultBtMessageFactory.cc
  6127. * src/DefaultBtMessageFactory.h
  6128. * src/DefaultBtMessageReceiver.cc
  6129. * src/DefaultBtProgressInfoFile.cc
  6130. * src/DefaultBtProgressInfoFile.h
  6131. * src/DefaultBtRequestFactory.cc
  6132. * src/DefaultBtRequestFactory.h
  6133. * src/DefaultExtensionMessageFactory.cc
  6134. * src/DefaultExtensionMessageFactory.h
  6135. * src/DefaultPeerStorage.cc
  6136. * src/DefaultPeerStorage.h
  6137. * src/DownloadEngine.cc
  6138. * src/DownloadEngine.h
  6139. * src/InitiatorMSEHandshakeCommand.cc
  6140. * src/InitiatorMSEHandshakeCommand.h
  6141. * src/MSEHandshake.cc
  6142. * src/MSEHandshake.h
  6143. * src/Makefile.am
  6144. * src/Makefile.in
  6145. * src/PeerChokeCommand.cc
  6146. * src/PeerChokeCommand.h
  6147. * src/PeerInitiateConnectionCommand.cc
  6148. * src/PeerInitiateConnectionCommand.h
  6149. * src/PeerInteractionCommand.cc
  6150. * src/PeerInteractionCommand.h
  6151. * src/PeerObject.h
  6152. * src/PeerReceiveHandshakeCommand.cc
  6153. * src/PeerReceiveHandshakeCommand.h
  6154. * src/ReceiverMSEHandshakeCommand.cc
  6155. * src/RequestGroup.cc
  6156. * src/RequestGroup.h
  6157. * src/RequestGroupMan.cc
  6158. * src/RequestGroupMan.h
  6159. * src/SeedCheckCommand.cc
  6160. * src/SeedCheckCommand.h
  6161. * src/ShareRatioSeedCriteria.h
  6162. * src/SimpleBtMessage.cc
  6163. * src/TrackerWatcherCommand.cc
  6164. * src/TrackerWatcherCommand.h
  6165. * src/UTPexExtensionMessage.cc
  6166. * src/UTPexExtensionMessage.h
  6167. * test/BtCancelMessageTest.cc
  6168. * test/BtChokeMessageTest.cc
  6169. * test/BtExtendedMessageTest.cc
  6170. * test/BtInterestedMessageTest.cc
  6171. * test/BtNotInterestedMessageTest.cc
  6172. * test/BtPieceMessageTest.cc
  6173. * test/BtPortMessageTest.cc
  6174. * test/BtRegistryTest.cc
  6175. * test/BtRejectMessageTest.cc
  6176. * test/BtRequestMessageTest.cc
  6177. * test/DHTPeerAnnounceEntryTest.cc
  6178. * test/DHTPeerAnnounceStorageTest.cc
  6179. * test/DefaultBtMessageDispatcherTest.cc
  6180. * test/DefaultBtMessageFactoryTest.cc
  6181. * test/DefaultBtProgressInfoFileTest.cc
  6182. * test/DefaultBtRequestFactoryTest.cc
  6183. * test/DefaultExtensionMessageFactoryTest.cc
  6184. * test/MSEHandshakeTest.cc
  6185. * test/MockDHTTaskFactory.h
  6186. * test/ShareRatioSeedCriteriaTest.cc
  6187. * test/UTPexExtensionMessageTest.cc
  6188. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Fixed compiler warning.
  6190. * test/UtilTest.cc
  6191. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Treat Cookie object as session cookie if expiry = 0 is given.
  6193. With this change, you can specify session scoped cookies in an external
  6194. file setting expiry value to 0.
  6195. * src/Cookie.cc
  6196. * src/Cookie.h
  6197. * test/CookieParserTest.cc
  6198. * test/CookieStorageTest.cc
  6199. * test/CookieTest.cc
  6200. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6201. Changed signature of DHTMessageFactory::createResponseMessage().
  6202. Removed unused validateIDMatch.
  6203. * src/DHTMessageFactory.h
  6204. * src/DHTMessageFactoryImpl.cc
  6205. * src/DHTMessageFactoryImpl.h
  6206. * src/DHTMessageTracker.cc
  6207. * test/DHTMessageFactoryImplTest.cc
  6208. * test/MockDHTMessageFactory.h
  6209. Dropped DHT message coming from same ID of localhost.
  6210. * src/DHTMessageReceiver.cc
  6211. Rejected adding node whose ID is the same as localhost's.
  6212. * src/DHTRoutingTable.cc
  6213. * test/BtPortMessageTest.cc
  6214. * test/DHTRoutingTableTest.cc
  6215. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. Pool connection when redirection occurs with Content-Length = 0.
  6217. * src/HttpSkipResponseCommand.cc
  6218. * src/HttpSkipResponseCommand.h
  6219. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6220. Fixed the bug that causes time out when redirection occurs with
  6221. content-length 0.
  6222. * src/HttpResponseCommand.cc
  6223. * src/HttpSkipResponseCommand.cc
  6224. * src/HttpSkipResponseCommand.h
  6225. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Now each status legends is shown only when it appears in Download
  6227. Result. If Download Result has no item, then status legend will not
  6228. be printed.
  6229. * src/RequestGroupMan.cc
  6230. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6231. Removed duplicate creation of OptionHandlers.
  6232. * src/option_processing.cc
  6233. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Fixed the bug that causes segmentation fault when accessing files which
  6235. don't exist or are not included in --select-file option while
  6236. validating chunk checksum.
  6237. * src/MultiDiskAdaptor.cc
  6238. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6239. Fixed compiler warning.
  6240. * test/UtilTest.cc
  6241. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6242. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6243. * src/IteratableChecksumValidator.cc
  6244. * src/IteratableChunkChecksumValidator.cc
  6245. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6246. * Release 0.16.2
  6247. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6248. Added Serbian translation. Updated Ukrainian translation.
  6249. Thanks to all translators.
  6250. * po/sr.po
  6251. * po/uk.po
  6252. * po/LINGUAS
  6253. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6254. Bump up version number to 0.16.2
  6255. * configure.ac
  6256. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6257. Added length equality test to operator== to drop a piece message
  6258. whose length does not match to the requested one.
  6259. * src/RequestSlot.cc
  6260. * test/DefaultBtMessageDispatcherTest.cc
  6261. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6262. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6263. recieved.
  6264. In this fix, if a request larger than 16KiB length is received, aria2
  6265. disconnects the peer.
  6266. * src/BtConstants.h
  6267. * src/PeerMessageUtil.cc
  6268. * src/PeerMessageUtil.h
  6269. * test/BtRequestMessageTest.cc
  6270. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6271. * Release 0.16.1
  6272. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6273. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6274. * doc/aria2c.1.txt
  6275. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6277. Updated French, Simplified Chinese and Japanese translations.
  6278. Thanks to all translators.
  6279. en@quot and en@boldquot are also added.
  6280. * po/LINGUAS
  6281. * po/fr.po
  6282. * po/ja.po
  6283. * po/uk.po
  6284. * po/vi.po
  6285. * po/zh_CN.po
  6286. * po/zh_TW.po
  6287. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6288. Bump up version number to 0.16.1.
  6289. * configure.ac
  6290. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. Updated README.
  6292. * README
  6293. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6295. not to replace '--' with em dash character.
  6296. * doc/aria2c.1.txt
  6297. * doc/makeman
  6298. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6300. every SEC seconds.
  6301. * src/DownloadEngineFactory.cc
  6302. * src/OptionHandlerFactory.cc
  6303. * src/option_processing.cc
  6304. * src/usage_text.h
  6305. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6306. Fixed compile warning on linux-amd64
  6307. * src/FtpConnection.cc
  6308. * src/IteratableChunkChecksumValidator.cc
  6309. * src/MultiDiskAdaptor.cc
  6310. Fixed the bug that unit test fails on linux-amd64
  6311. * test/UtilTest.cc
  6312. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Added --dht-file-path option to change the path to dht.dat, which is a
  6314. serialized DHT routing table.
  6315. * src/OptionHandlerFactory.cc
  6316. * src/option_processing.cc
  6317. * src/usage_text.h
  6318. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6319. Fixed possible underflow.
  6320. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6321. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. Fixed the bug that last character in URI is not encoded.
  6323. * src/Request.cc
  6324. * test/RequestTest.cc
  6325. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6326. Fixed the bug that referer header field contains fragment.
  6327. Now Request class removes fragment part of URI and encodes it
  6328. in Request::setUri() and setReferer().
  6329. * src/Request.h
  6330. * src/Request.cc
  6331. * test/RequestTest.cc
  6332. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6333. Added missing m4 macros.
  6334. * m4/cppunit.m4
  6335. * m4/libgcrypt.m4
  6336. * m4/libgnutls-extra.m4
  6337. * m4/libgnutls.m4
  6338. * m4/libxml2.m4
  6339. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6340. Fixed compile error with gcc-4.4(snapshot)
  6341. * src/File.cc
  6342. * src/FtpConnection.cc
  6343. * src/OptionHandlerImpl.h
  6344. * src/Util.cc
  6345. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Removed assert()
  6347. * src/SocketBuffer.cc (SocketBuffer::send)
  6348. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6349. Changed the type of _numNewConnection to unsigned int.
  6350. * src/ActivePeerConnectionCommand.cc
  6351. * src/ActivePeerConnectionCommand.h
  6352. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. * Release 0.16.0
  6354. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6355. Updated doc
  6356. * README
  6357. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6358. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6359. translations. Thanks to all translators.
  6360. * po/bg.po
  6361. * po/de.po
  6362. * po/fr.po
  6363. * po/ja.po
  6364. * po/zh_CN.po
  6365. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6366. Bump up version number to 0.16.0.
  6367. * configure.ac
  6368. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6369. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6370. int32_t.
  6371. Changed the type of count to int32_t.
  6372. * src/Metalink2RequestGroup.cc
  6373. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6374. Added test for Time::elapsed(time_t).
  6375. * test/TimeTest.cc
  6376. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6378. Util::difftv() should be used instead.
  6379. * src/TimeA2.cc
  6380. * src/TimeA2.h
  6381. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Made socket for dht connections non-blocking
  6383. * src/DHTAbstractMessage.cc
  6384. * src/DHTAbstractMessage.h
  6385. * src/DHTConnection.h
  6386. * src/DHTConnectionImpl.cc
  6387. * src/DHTConnectionImpl.h
  6388. * src/DHTMessage.h
  6389. * src/DHTMessageDispatcherImpl.cc
  6390. * src/DHTMessageDispatcherImpl.h
  6391. * src/DHTUnknownMessage.cc
  6392. * src/DHTUnknownMessage.h
  6393. * src/SocketCore.cc
  6394. * src/SocketCore.h
  6395. * test/MockDHTMessage.h
  6396. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6397. Changed the type of offset to int.
  6398. * src/ParameterizedStringParser.cc
  6399. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Made getAsInt() return int32_t
  6401. * src/Option.h
  6402. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6403. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6404. build.
  6405. * configure.ac
  6406. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6407. Use sqlite3_open if sqlite3_open_v2 is not available.
  6408. * src/Sqlite3MozCookieParser.cc
  6409. * src/Sqlite3MozCookieParser.h
  6410. * m4/sqlite3.m4
  6411. * test/Sqlite3MozCookieParserTest.cc
  6412. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6413. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6414. * src/BtPieceMessage.cc
  6415. * src/DHTPeerAnnounceStorage.cc
  6416. * src/DefaultPieceStorage.cc
  6417. * src/DownloadCommand.cc
  6418. * src/DownloadEngine.cc
  6419. * src/FtpConnection.cc
  6420. * src/PeerConnection.cc
  6421. * src/PeerMessageUtil.cc
  6422. * src/RequestGroup.cc
  6423. * src/RequestGroupMan.cc
  6424. * src/SimpleBtMessage.cc
  6425. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6426. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6427. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6428. * src/AbstractDiskWriter.cc
  6429. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6430. Don't set Request::supportsPersistentConnection() in HttpConnection
  6431. since this code is also used in AbstractProxyResponseCommand.
  6432. Moved those code to HttpResponse.
  6433. * src/HttpResponse.cc
  6434. * src/HttpResponse.h
  6435. * src/HttpConnection.cc
  6436. * src/HttpConnection.h
  6437. * src/HttpResponseCommand.cc
  6438. * test/HttpResponseTest.cc
  6439. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6441. The configuration is minimum: no torrent, no metalink, so there may be
  6442. other compile error on their code.
  6443. * src/a2netcompat.h
  6444. * src/File.cc
  6445. * src/File.h
  6446. * src/SocketCore.cc
  6447. * src/SocketCore.h
  6448. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6449. Made a socket of incoming peer non-blocking.
  6450. * src/PeerListenCommand.cc
  6451. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6452. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6453. whole message data is not sent in one send() call.
  6454. * src/BtPieceMessage.cc
  6455. * src/BtPieceMessage.h
  6456. * src/PeerConnection.cc
  6457. * src/PeerConnection.h
  6458. * src/SimpleBtMessage.cc
  6459. * src/SimpleBtMessage.h
  6460. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6461. Fixed the bug that aria2 downloads faster than max-download-limit when
  6462. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6463. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6464. , instead of sum of them.
  6465. * src/ActivePeerConnectionCommand.cc
  6466. * src/DefaultBtInteractive.cc
  6467. * src/DownloadCommand.cc
  6468. * src/PeerInteractionCommand.cc
  6469. * src/PeerReceiveHandshakeCommand.cc
  6470. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6471. Fixed the bug that HTTPS download fails.
  6472. * src/AbstractCommand.cc
  6473. * src/AbstractCommand.h
  6474. * src/DownloadCommand.cc
  6475. * src/FtpConnection.cc
  6476. * src/HttpConnection.cc
  6477. * src/HttpRequestCommand.cc
  6478. * src/HttpResponseCommand.cc
  6479. * src/HttpSkipResponseCommand.cc
  6480. * src/MSEHandshake.cc
  6481. * src/PeerConnection.cc
  6482. * src/SocketCore.cc
  6483. * src/SocketCore.h
  6484. Fixed the bug that aria2 doesn't download whole content body and cannot
  6485. reuse connection if chunked transfer encoding and gzip content encoding
  6486. are set.
  6487. * src/DownloadCommand.cc
  6488. * src/HttpSkipResponseCommand.cc
  6489. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6490. Updated man page.
  6491. * doc/aria2c.1.txt
  6492. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6493. When error occurred while aria2 was parsing an .aria2.conf file, print
  6494. the usage of the option that caused error.
  6495. * src/option_processing.cc
  6496. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6497. Fixed compile error on OptionHandlerException
  6498. * src/Makefile.am
  6499. * src/OptionHandlerException.cc
  6500. * src/OptionHandlerException.h
  6501. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Moved message of the error to OptionHandlerException.h
  6503. * src/NameMatchOptionHandler.h
  6504. * src/OptionHandlerException.h
  6505. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. When error occurs while aria2 is parsing an command-line option, print
  6507. the usage of the option.
  6508. * src/Makefile.am
  6509. * src/NameMatchOptionHandler.h
  6510. * src/OptionHandlerException.h
  6511. * src/option_processing.cc
  6512. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. Reverted previous change.
  6514. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6515. username is not in URI.
  6516. * src/HttpRequest.cc
  6517. * src/Request.cc
  6518. * test/HttpRequestTest.cc
  6519. * test/RequestTest.cc
  6520. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6521. Now colon is required for username and password in FTP URL, like:
  6522. ftp://username:password@host.
  6523. If colon is not there, aria2 don't parse it as a username. For example,
  6524. aria2 don't retrieve username from ftp://username@host.
  6525. This fix was made in order to login FTP server via non-transparent ftp
  6526. proxy.
  6527. * src/Request.cc
  6528. * test/RequestTest.cc
  6529. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Use netrc for HTTP.
  6531. Now FTP user/password is sent in Authorization header when
  6532. --ftp-via-http-proxy=get is given.
  6533. * src/AuthConfigFactory.cc
  6534. * src/HttpRequest.cc
  6535. * src/HttpRequest.h
  6536. * src/NetrcAuthResolver.cc
  6537. * src/NetrcAuthResolver.h
  6538. * src/OptionHandlerFactory.cc
  6539. * src/option_processing.cc
  6540. * src/prefs.cc
  6541. * src/prefs.h
  6542. * test/AuthConfigFactoryTest.cc
  6543. * test/HttpRequestTest.cc
  6544. * test/NetrcAuthResolverTest.cc
  6545. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6546. Issue PWD command first and get working directory and use it as a prefix
  6547. for CWD command.
  6548. * src/DownloadEngine.cc
  6549. * src/DownloadEngine.h
  6550. * src/FtpConnection.cc
  6551. * src/FtpConnection.h
  6552. * src/FtpFinishDownloadCommand.cc
  6553. * src/FtpInitiateConnectionCommand.cc
  6554. * src/FtpNegotiationCommand.cc
  6555. * src/FtpNegotiationCommand.h
  6556. * test/FtpConnectionTest.cc
  6557. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6558. Removed default user/pass for FTP user/pass, since it should not have
  6559. precedence over netrc configuration by default.
  6560. * src/OptionHandlerFactory.cc
  6561. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6562. Added debug log for socket event.
  6563. * src/AbstractCommand.cc
  6564. * src/PeerAbstractCommand.cc
  6565. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6566. Log microseconds.
  6567. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6568. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6569. Replaced HelpItem.cc with OptionHandler.cc.
  6570. * po/POTFILES.in
  6571. Updated po files with 'make update-po'
  6572. * po/aria2c.pot
  6573. * po/*.po
  6574. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6575. Removed possible values from the text.
  6576. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6577. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Removed unused preferences:
  6579. PREF_NO_PREALLOCATION
  6580. PREF_STDOUT_LOG
  6581. PREF_TRACKER_MAX_TRIES
  6582. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6583. PREF_MIN_SEGMENT_SIZE
  6584. * src/option_processing.cc
  6585. * src/prefs.cc
  6586. * src/prefs.h
  6587. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6588. Integrated HelpItem into OptionParser to ease the workload for adding
  6589. new options. Removed default value from usage text.
  6590. * src/HelpItem.cc: Removed.
  6591. * src/HelpItem.h: Removed.
  6592. * src/HelpItemFactory.cc: Removed.
  6593. * src/HelpItemFactory.h: Removed.
  6594. * src/Makefile.am
  6595. * src/Makefile.in
  6596. * src/NameMatchOptionHandler.h
  6597. * src/OptionHandler.cc
  6598. * src/OptionHandler.h
  6599. * src/OptionHandlerFactory.cc
  6600. * src/OptionHandlerImpl.h
  6601. * src/OptionParser.cc
  6602. * src/OptionParser.h
  6603. * src/TagContainer.cc: Removed.
  6604. * src/TagContainer.h: Removed.
  6605. * src/TaggedItem.cc: Removed.
  6606. * src/TaggedItem.h: Removed.
  6607. * src/main.cc
  6608. * src/option_processing.cc
  6609. * src/usage_text.h
  6610. * src/version_usage.cc
  6611. * test/HelpItemTest.cc: Removed.
  6612. * test/Makefile.am
  6613. * test/Makefile.in
  6614. * test/OptionHandlerTest.cc
  6615. * test/OptionParserTest.cc
  6616. * test/TagContainerTest.cc: Removed.
  6617. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6618. Moved `TransferStat stat = ...' to inside the `if' clause.
  6619. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6620. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6621. Fixed the bug that a block in a piece is requested when same block is
  6622. already requested to the same peer in end game mode.
  6623. * src/BtRequestFactory.h
  6624. * src/DefaultBtInteractive.cc
  6625. * src/DefaultBtRequestFactory.cc
  6626. * src/DefaultBtRequestFactory.h
  6627. * src/DefaultPieceStorage.cc
  6628. * src/DefaultPieceStorage.h
  6629. * src/PieceStorage.h
  6630. * src/UnknownLengthPieceStorage.cc
  6631. * src/UnknownLengthPieceStorage.h
  6632. * test/DefaultBtRequestFactoryTest.cc
  6633. * test/DefaultPieceStorageTest.cc
  6634. * test/MockBtRequestFactory.h
  6635. * test/MockPieceStorage.h
  6636. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6637. Removed _uploadLength and _downloadLength from PeerSessionResource
  6638. and use PeerStat::_sessionUploadLength and
  6639. PeerStat::_sessionDownloadLength.
  6640. * src/PeerSessionResource.cc
  6641. * src/PeerSessionResource.h
  6642. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Fixed the bug that prefixLength of split bucket which doesn't include
  6644. local node ID is incremented.
  6645. * src/DHTBucket.cc
  6646. * src/DHTBucket.h
  6647. * test/DHTBucketTest.cc
  6648. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Added cookies.sqlite to EXTRA_DIST
  6650. * test/Makefile.am
  6651. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Added Turkish translation. Updated French, German, Russian and
  6653. Simplified Chinese translations. Thanks to all translators.
  6654. * po/LINGUAS
  6655. * po/de.po
  6656. * po/fr.po
  6657. * po/ru.po
  6658. * po/tr.po
  6659. * po/zh_CN.po
  6660. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6661. Added deliminating text to the beginning of the log so that one can find
  6662. where the log starts easily.
  6663. * src/main.cc
  6664. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6665. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6666. to fix compile error when async DNS is not enabled by configuration.
  6667. * src/AbstractCommand.cc
  6668. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6669. If establishing conneciton to a server is failed, then mark error on
  6670. its ServerStat.
  6671. Added the cause of error to log when error event occurred.
  6672. Moved message string to message.h for translation.
  6673. * src/AbstractCommand.cc
  6674. * src/AbstractCommand.h
  6675. * src/FtpNegotiationCommand.cc
  6676. * src/HttpRequestCommand.cc
  6677. * src/PeerAbstractCommand.cc
  6678. * src/message.h
  6679. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6680. Added the function to get error message from socket.
  6681. * src/SocketCore.cc
  6682. * src/SocketCore.h
  6683. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6684. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6685. * src/RequestGroupMan.cc
  6686. * src/RequestGroupMan.h
  6687. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6688. If error event is received in epoll, then abort download immediately.
  6689. * src/AbstractCommand.cc
  6690. * src/Command.cc
  6691. * src/Command.h
  6692. * src/DownloadEngine.cc
  6693. * src/PeerAbstractCommand.cc
  6694. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6695. Added usage message for --uri-selector, --server-stat-of,
  6696. --server-stat-in, --server-stat-timeout options.
  6697. * src/HelpItemFactory.cc
  6698. * src/usage_text.h
  6699. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. Added upper limit of FTP response buffer. The current implementation
  6701. uses 4096bytes as a limit.
  6702. * src/FtpConnection.cc
  6703. * src/FtpConnection.h
  6704. * test/FtpConnectionTest.cc
  6705. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6706. Use non-blocking socket for TCP communication to avoid possible
  6707. blocking due to buffer full.
  6708. * src/AbstractProxyRequestCommand.cc
  6709. * src/FtpConnection.cc
  6710. * src/FtpConnection.h
  6711. * src/FtpNegotiationCommand.cc
  6712. * src/FtpNegotiationCommand.h
  6713. * src/HttpConnection.cc
  6714. * src/HttpConnection.h
  6715. * src/HttpRequestCommand.cc
  6716. * src/InitiatorMSEHandshakeCommand.cc
  6717. * src/InitiatorMSEHandshakeCommand.h
  6718. * src/MSEHandshake.cc
  6719. * src/MSEHandshake.h
  6720. * src/Makefile.am
  6721. * src/PeerConnection.cc
  6722. * src/PeerConnection.h
  6723. * src/PeerInteractionCommand.cc
  6724. * src/PeerListenCommand.cc
  6725. * src/ReceiverMSEHandshakeCommand.cc
  6726. * src/ReceiverMSEHandshakeCommand.h
  6727. * src/SocketBuffer.cc
  6728. * src/SocketBuffer.h
  6729. * src/SocketCore.cc
  6730. * src/SocketCore.h
  6731. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Call setStatusRealtime() in constructor.
  6733. * src/RealtimeCommand.cc
  6734. * src/RealtimeCommand.h
  6735. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Call Download::setNoWait(true) to execute newly created command without
  6737. a pause.
  6738. * src/AbstractCommand.cc
  6739. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6740. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6741. found' error from HTTP/FTP server NUM times without getting single
  6742. bytes of data, then force the download to fail.
  6743. Basically aria2 tris all URIs available. So if long list of URIs are
  6744. specified in Metalink, then aria2 will take a long time to fail
  6745. eventually if all URIs are outdated. This option eases this situation
  6746. to limit the number of servers to try.
  6747. * src/FtpNegotiationCommand.cc
  6748. * src/HelpItemFactory.cc
  6749. * src/HttpResponseCommand.cc
  6750. * src/OptionHandlerFactory.cc
  6751. * src/PeerStat.h
  6752. * src/RequestGroup.cc
  6753. * src/RequestGroup.h
  6754. * src/SegmentMan.cc
  6755. * src/SegmentMan.h
  6756. * src/option_processing.cc
  6757. * src/prefs.cc
  6758. * src/prefs.h
  6759. * src/usage_text.h
  6760. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6761. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6762. response even if more than one response is in it.
  6763. * src/FtpConnection.cc
  6764. * src/FtpConnection.h
  6765. * test/FtpConnectionTest.cc
  6766. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6767. Merged from stable-0.15
  6768. * m4/libcares.m4
  6769. Use pkg-config
  6770. * m4/sqlite3.m4
  6771. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6772. Removed unnecessary if statement.
  6773. * src/DefaultPieceStorage.cc (initPieceStorage)
  6774. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Added --connect-timeout option to specify connect timeout in seconds.
  6776. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6777. connecting to BitTorrent peer is not controlled by this option.
  6778. * src/AbstractProxyRequestCommand.cc
  6779. * src/FtpNegotiationCommand.cc
  6780. * src/HelpItemFactory.cc
  6781. * src/HttpRequestCommand.cc
  6782. * src/OptionHandlerFactory.cc
  6783. * src/option_processing.cc
  6784. * src/prefs.cc
  6785. * src/prefs.h
  6786. * src/usage_text.h
  6787. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Added help message for -R option.
  6789. * src/HelpItemFactory.cc
  6790. * src/usage_text.h
  6791. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6792. Added the message that the time is in local time zone.
  6793. * src/RequestGroup.cc
  6794. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6795. Implemented the ability to get timestamp from remote FTP server using
  6796. MDTM command described in RFC3659.
  6797. * src/FtpConnection.cc
  6798. * src/FtpConnection.h
  6799. * src/FtpNegotiationCommand.cc
  6800. * src/FtpNegotiationCommand.h
  6801. * test/FtpConnectionTest.cc
  6802. * test/Makefile.am
  6803. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6804. Implemented the ability to get timestamp from remote HTTP server and
  6805. apply it to local file. To enable this feature, --remote-time option
  6806. is added. No usage text has been written yet.
  6807. If several servers returns difference timestamp, then aria2 uses latest
  6808. one.
  6809. * src/CopyDiskAdaptor.cc
  6810. * src/CopyDiskAdaptor.h
  6811. * src/DirectDiskAdaptor.cc
  6812. * src/DirectDiskAdaptor.h
  6813. * src/DiskAdaptor.h
  6814. * src/File.cc
  6815. * src/File.h
  6816. * src/HttpHeader.cc
  6817. * src/HttpHeader.h
  6818. * src/HttpResponse.cc
  6819. * src/HttpResponse.h
  6820. * src/HttpResponseCommand.cc
  6821. * src/HttpResponseCommand.h
  6822. * src/MultiDiskAdaptor.cc
  6823. * src/MultiDiskAdaptor.h
  6824. * src/OptionHandlerFactory.cc
  6825. * src/RequestGroup.cc
  6826. * src/RequestGroup.h
  6827. * src/RequestGroupMan.cc
  6828. * src/option_processing.cc
  6829. * src/prefs.cc
  6830. * src/prefs.h
  6831. * test/CopyDiskAdaptorTest.cc
  6832. * test/FileTest.cc
  6833. * test/Makefile.am
  6834. * test/Makefile.in
  6835. * test/MultiDiskAdaptorTest.cc
  6836. * test/TestUtil.cc
  6837. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6838. Fixed the bug that DiskWriterEntry is not created when its
  6839. FileEntry.isRequested() is false and it doesn't share a piece with
  6840. other FileEntries that are requested. This bug causes segmentation fault
  6841. in the end.
  6842. * src/MultiDiskAdaptor.cc
  6843. * src/MultiDiskAdaptor.h
  6844. * src/MultiFileAllocationIterator.cc
  6845. * test/MultiDiskAdaptorTest.cc
  6846. * test/MultiFileAllocationIteratorTest.cc
  6847. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6849. called if the number of file entries are greater than max open files.
  6850. * src/AbstractSingleDiskAdaptor.cc
  6851. * src/AbstractSingleDiskAdaptor.h
  6852. * src/DiskAdaptor.h
  6853. * src/MultiDiskAdaptor.cc
  6854. * src/MultiDiskAdaptor.h
  6855. * test/MultiDiskAdaptorTest.cc
  6856. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. Added a constuctor that receives struct timeval.
  6858. Added operator<.
  6859. * src/TimeA2.cc
  6860. * src/TimeA2.h
  6861. * test/TimeTest.cc
  6862. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6864. * src/CookieParser.cc
  6865. * test/CookieParserTest.cc
  6866. * test/HttpResponseTest.cc
  6867. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. Implmented the functions to parse date.
  6869. * src/TimeA2.cc
  6870. * src/TimeA2.h
  6871. * test/TimeTest.cc
  6872. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Added "Firefox3 Cookie" feature to FeatureConfig
  6874. * src/FeatureConfig.cc
  6875. * src/FeatureConfig.h
  6876. * test/FeatureConfigTest.cc
  6877. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Bump up version number to 0.16.0b
  6879. * configure.ac
  6880. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6881. Use pkg-config if is is available.
  6882. * m4/openssl.m4
  6883. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6884. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6885. * src/BtAnnounce.h
  6886. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6887. If an error occurred with a URI, remove identical URI from remaining
  6888. URI list because it is likely that same error occurred in the end and it
  6889. is waste of time.
  6890. * src/AbstractCommand.cc
  6891. * src/RequestGroup.cc
  6892. * src/RequestGroup.h
  6893. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Removed wrong comment.
  6895. * src/DefaultPeerStorage.cc
  6896. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6898. Added return value of getpid() to argument of srand() to achieve more
  6899. randomized value.
  6900. * src/SimpleRandomizer.cc
  6901. * src/SimpleRandomizer.h
  6902. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6903. Contact tracker frequently when the number of connections are 0 and
  6904. download is not finished yet.
  6905. * src/ActivePeerConnectionCommand.cc
  6906. * src/BtAnnounce.h
  6907. * src/DefaultBtAnnounce.cc
  6908. * src/DefaultBtAnnounce.h
  6909. * test/MockBtAnnounce.h
  6910. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Moved threshold values to UTPexExtensionMessage.
  6912. * src/DefaultBtInteractive.cc
  6913. * src/Peer.cc
  6914. * src/Peer.h
  6915. * src/UTPexExtensionMessage.cc
  6916. * src/UTPexExtensionMessage.h
  6917. * test/UTPexExtensionMessageTest.cc
  6918. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Added _incoming member to Peer class and made it true if the peer
  6920. initiated connection. Don't add those peer to UTPex message.
  6921. If extended handshake is received, assign _incoming to false.
  6922. * src/DefaultBtInteractive.cc
  6923. * src/HandshakeExtensionMessage.cc
  6924. * src/Peer.cc
  6925. * src/Peer.h
  6926. * src/PeerListenCommand.cc
  6927. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6929. Encoding Decoder. Removed size threshold for turning off on the fly
  6930. inflation because resulting file may or may not be inflated depending
  6931. on the file size and I think it is not expected by users.
  6932. This change fixes segmentation fault when Metalink file contains gzipped
  6933. file and its filesize is provided.
  6934. * src/HttpResponseCommand.cc
  6935. * src/HttpResponseCommand.h
  6936. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Made Cookie immutable.
  6938. * src/Cookie.cc
  6939. * src/Cookie.h
  6940. * src/CookieParser.cc
  6941. * src/CookieParser.h
  6942. * src/CookieStorage.cc
  6943. * test/CookieParserTest.cc
  6944. * test/CookieStorageTest.cc
  6945. * test/NsCookieParserTest.cc
  6946. * test/Sqlite3MozCookieParserTest.cc
  6947. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6948. Removed CookieBox, CookieBoxFactory.
  6949. * src/CookieBox.cc
  6950. * src/CookieBox.h
  6951. * src/CookieBoxFactory.cc
  6952. * src/CookieBoxFactory.h
  6953. * src/Makefile.am
  6954. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6955. Use CookieStorage class instead of CookieBox class.
  6956. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6957. * src/AbstractProxyRequestCommand.cc
  6958. * src/CookieStorage.cc
  6959. * src/DownloadEngine.cc
  6960. * src/DownloadEngine.h
  6961. * src/HttpConnection.cc
  6962. * src/HttpConnection.h
  6963. * src/HttpRequest.cc
  6964. * src/HttpRequest.h
  6965. * src/HttpRequestCommand.cc
  6966. * src/HttpResponse.cc
  6967. * src/HttpResponseCommand.cc
  6968. * src/HttpSkipResponseCommand.cc
  6969. * src/Makefile.am
  6970. * src/MultiUrlRequestInfo.cc
  6971. * src/Request.cc
  6972. * src/Request.h
  6973. * src/main.cc
  6974. * test/AllTest.cc
  6975. * test/CookieStorageTest.cc
  6976. * test/CookieTest.cc
  6977. * test/HttpRequestTest.cc
  6978. * test/HttpResponseTest.cc
  6979. * test/Makefile.am
  6980. * test/NsCookieParserTest.cc
  6981. * test/Sqlite3MozCookieParserTest.cc
  6982. * test/nscookietest.txt
  6983. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Updated
  6985. * test/Cookies.sqlite
  6986. * test/nscookietest.txt
  6987. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. Added tests for CookieStorage::load()
  6989. * test/CookieStorageTest.cc
  6990. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6991. Added CookieStorage class which is based on RFC2109 and manages cookies
  6992. more strictly than CookieBox and CookieBoxFactory class.
  6993. * src/CookieStorage.cc
  6994. * src/CookieStorage.h
  6995. * src/Cookie.cc
  6996. * src/Cookie.h
  6997. * test/CookieStorageTest.cc
  6998. * test/CookieTest.cc
  6999. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7000. Fixed the bug that commands are created more than the number of pieces.
  7001. * src/RequestGroup.cc
  7002. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7003. Fixed infinite loop bug in FTP when SIZE command failed.
  7004. * src/FtpNegotiationCommand.cc
  7005. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Removed DirectDiskAdaptorTest.h
  7007. * test/Makefile.am
  7008. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. Fixed chunk checksum validation cannot detect trailing garbage data.
  7010. BUG#2074141
  7011. * src/AbstractSingleDiskAdaptor.cc
  7012. * src/AbstractSingleDiskAdaptor.h
  7013. * src/CheckIntegrityEntry.cc
  7014. * src/CheckIntegrityEntry.h
  7015. * src/DiskAdaptor.h
  7016. * src/MultiDiskAdaptor.cc
  7017. * src/MultiDiskAdaptor.h
  7018. * src/RequestGroup.cc
  7019. * test/DirectDiskAdaptorTest.cc
  7020. * test/MultiDiskAdaptorTest.cc
  7021. * test/TestUtil.cc
  7022. * test/TestUtil.h
  7023. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Bump up version number of dht.dat file to 3. In version 3 format, time
  7025. is stored in 64bit, network byte order.
  7026. New build can load old format(version 2) but it saves the file in new
  7027. format. It means once you used new build, your dht.dat becomes
  7028. incompatible with older build.
  7029. * src/DHTRoutingTableDeserializer.cc
  7030. * src/DHTRoutingTableSerializer.cc
  7031. * test/DHTRoutingTableSerializerTest.cc
  7032. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7034. * test/Makefile.am
  7035. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7036. Bump up version number of .aria2 control file to 0001.
  7037. New aria2 can still load version 0000 file but it saves the file in
  7038. version 0001 format. It means that new aria2 can resume download
  7039. started by old aria2 but the opposite is not true.
  7040. * src/DefaultBtProgressInfoFile.cc
  7041. * src/DefaultBtProgressInfoFile.h
  7042. * test/DefaultBtProgressInfoFileTest.cc
  7043. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7044. Added ntoh64 and hton64 as inline functions.
  7045. * src/Util.cc
  7046. * test/UtilTest.cc
  7047. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7048. Added sqlite3 depenency and Firefox3 cookie support.
  7049. * README
  7050. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. State that firefox3 cookie is supported explicitly in the usage.
  7052. * src/usage_text.h
  7053. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7054. Externalized message.
  7055. * src/RequestGroupMan.cc
  7056. * src/message.h
  7057. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7058. Save temporary file first and rename to the destination on success.
  7059. Added test cases.
  7060. * src/RequestGroupMan.cc
  7061. * test/RequestGroupManTest.cc
  7062. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7063. Fixed the bug that the number of connected peer is exceeding the limit
  7064. (55 by default) in seeding mode.
  7065. Multiplied 0.8 to _maxUploadSpeedLimit.
  7066. * src/ActivePeerConnectionCommand.cc
  7067. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7068. Clear table item.
  7069. * src/Dictionary.cc
  7070. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Fixed error handling of lseek.
  7072. * src/AbstractDiskWriter.cc
  7073. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7075. style cookie file.
  7076. * src/usage_text.h
  7077. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7079. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7080. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7081. * src/Util.cc
  7082. * src/Util.h
  7083. * src/CookieParser.cc
  7084. * test/UtilTest.cc
  7085. * test/CookieParserTest.cc
  7086. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7087. Separate the implementation to load old mozilla format of cookie to
  7088. NsCookieParser class.
  7089. * src/CookieBoxFactory.cc
  7090. * src/CookieBoxFactory.h
  7091. * src/NsCookieParser.cc
  7092. * src/NsCookieParser.h
  7093. * test/NsCookieParserTest.cc
  7094. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7095. Made parse() const
  7096. * src/Sqlite3MozCookieParser.cc
  7097. * src/Sqlite3MozCookieParser.h
  7098. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7099. Added firefox3 cookie support based on the patch submitted by
  7100. tizianomueller.
  7101. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7102. this functionality.
  7103. * configure.ac
  7104. * m4/sqlite3.m4
  7105. * src/CookieBoxFactory.cc
  7106. * src/CookieBoxFactory.h
  7107. * src/Makefile.am
  7108. * src/Makefile.in
  7109. * src/Sqlite3MozCookieParser.cc
  7110. * src/Sqlite3MozCookieParser.h
  7111. * src/main.cc
  7112. * test/CookieBoxFactoryTest.cc
  7113. * test/Makefile.am
  7114. * test/Makefile.in
  7115. * test/Sqlite3MozCookieParserTest.cc
  7116. * test/badcookies.sqlite
  7117. * test/cookies.sqlite
  7118. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Added Danish and Greek translations.
  7120. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7121. Great thanks to all translators.
  7122. * po/LINGUAS
  7123. * po/el.po
  7124. * po/da.po
  7125. * po/es.po
  7126. * po/ca.po
  7127. * po/nn.po
  7128. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. Fixed man page: --follow-bittorrent should be --follow-torrent
  7130. * doc/aria2c.1.txt
  7131. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. Fixed: numCommand is less than the value specified in -C option.
  7133. * src/RequestGroup.cc
  7134. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Fixed occasional assertion failure in PieceSegment.
  7136. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7137. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7138. creation of duplicate segments and one of the segment was finished then
  7139. assertion failure was caused.
  7140. * src/SegmentMan.cc
  7141. * test/SegmentManTest.cc
  7142. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. Added options to load/save the server's performance/status to a file
  7144. and the timeout to drop their data.
  7145. --server-stat-of=FILE specifies the file to which performance data
  7146. is saved.
  7147. --server-stat-if=FILE specifies the file to read previously saved
  7148. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7149. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7150. TIMEOUT is specified in seconds and the default value is 24hours.
  7151. * src/MultiUrlRequestInfo.cc
  7152. * src/OptionHandlerFactory.cc
  7153. * src/RequestGroupMan.cc
  7154. * src/RequestGroupMan.h
  7155. * src/ServerStatMan.cc
  7156. * src/ServerStatMan.h
  7157. * src/option_processing.cc
  7158. * src/prefs.cc
  7159. * src/prefs.h
  7160. * test/ServerStatManTest.cc
  7161. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7162. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7163. * src/ServerStatMan.cc
  7164. * src/ServerStatMan.h
  7165. * test/ServerStatManTest.cc
  7166. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Implemented ServerStatMan::load(...) function and its test case.
  7168. * src/ServerStat.cc
  7169. * src/ServerStat.h
  7170. * src/ServerStatMan.cc
  7171. * test/ServerStatManTest.cc
  7172. * test/ServerStatTest.cc
  7173. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7174. Use time_t instead of int32_t. Use int64_t where milli second is
  7175. expected.
  7176. * src/TimeA2.cc
  7177. * src/TimeA2.h
  7178. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Implemented ServerStatMan::save(...) function and its test case.
  7180. * src/ServerStat.cc
  7181. * src/ServerStat.h
  7182. * src/ServerStatMan.cc
  7183. * src/ServerStatMan.h
  7184. * test/ServerStatManTest.cc
  7185. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Now aria2 uses name attribute in Metalink as local filename in
  7187. BitTorrent downloads. BUG#2033999
  7188. * src/BtContext.h
  7189. * src/BtDependency.cc
  7190. * src/DefaultBtContext.cc
  7191. * src/DefaultBtContext.h
  7192. * src/SingleFileDownloadContext.cc
  7193. * src/SingleFileDownloadContext.h
  7194. * test/BtDependencyTest.cc
  7195. * test/DefaultBtContextTest.cc
  7196. * test/MockBtContext.h
  7197. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Added AC_C_BIGENDIAN
  7199. * src/configure.ac
  7200. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7201. Limited numCommand less than or equal to the number of piece.
  7202. * src/RequestGroup.cc
  7203. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7205. directive.
  7206. * test/DefaultPieceStorageTest.cc
  7207. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7208. Fixed memory leak in test code
  7209. * test/AnnounceListTest.cc
  7210. * test/DefaultPeerListProcessorTest.cc
  7211. * test/DefaultPeerStorageTest.cc
  7212. * test/MetaFileUtilTest.cc
  7213. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7214. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7215. * src/DefaultPieceStorage.cc
  7216. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7217. Initialized _directIOAllowed
  7218. * src/MultiDiskAdaptor.cc
  7219. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Fixed memory leak
  7221. * src/GZipDecoder.cc
  7222. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Fixed memory leak
  7224. * src/MetalinkParserStateMachine.cc
  7225. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Fixed memory leak
  7227. * src/Dictionary.cc
  7228. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. Fixed memory leak
  7230. * src/IteratableChunkChecksumValidator.h
  7231. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7232. Fixed unmatched malloc/free.
  7233. * src/IteratableChunkChecksumValidator.cc
  7234. * src/IteratableChecksumValidator.cc
  7235. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7236. Removed max chunk size check. This change fixes BUG#2040169
  7237. * src/ChunkedDecoder.cc
  7238. * src/ChunkedDecoder.h
  7239. * test/ChunkedDecoderTest.cc
  7240. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7241. Implemented download speed based URI selection algorithm.
  7242. Introduced new option --uri-selector.
  7243. If --uri-selector=feedback is given, aria2 uses download speed observed
  7244. in the previous downloads and chooses fastest server in the URI list.
  7245. Currently at most 10 URIs are considered to introduce randomeness for
  7246. finding better servers. The speed is average download speed in the
  7247. downloads.
  7248. On the other hand, if --uri-selector=inorder is given, which is default,
  7249. URI is tried in order in URI list.
  7250. The usage text for the new option has not been written yet.
  7251. * src/AbstractCommand.cc
  7252. * src/DownloadCommand.cc
  7253. * src/DownloadEngine.cc
  7254. * src/DownloadEngineFactory.cc
  7255. * src/InOrderURISelector.cc
  7256. * src/InOrderURISelector.h
  7257. * src/OptionHandlerFactory.cc
  7258. * src/PeerStat.h
  7259. * src/RequestGroup.cc
  7260. * src/RequestGroup.h
  7261. * src/RequestGroupMan.cc
  7262. * src/RequestGroupMan.h
  7263. * src/SegmentMan.cc
  7264. * src/SegmentMan.h
  7265. * src/ServerStat.cc
  7266. * src/ServerStat.h
  7267. * src/ServerStatMan.cc
  7268. * src/ServerStatMan.h
  7269. * src/ServerStatURISelector.cc
  7270. * src/ServerStatURISelector.h
  7271. * src/URISelector.h
  7272. * src/option_processing.cc
  7273. * src/prefs.cc
  7274. * src/prefs.h
  7275. * test/InOrderURISelectorTest.cc
  7276. * test/RequestGroupManTest.cc
  7277. * test/ServerStatManTest.cc
  7278. * test/ServerStatURISelectorTest.cc
  7279. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7280. * Release 0.15.1+2
  7281. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7282. Bump up version number to 0.15.1+2
  7283. * configure.ac
  7284. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7285. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7286. * m4/aria2_arg.m4
  7287. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7288. * Release 0.15.1+1
  7289. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7290. Bump up version number to 0.15.1+1
  7291. * configure.ac
  7292. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. Fixed the bug that causes segmentaion fault when resuming download
  7294. using metalink without size tag. Reproducible only using HTTP URI.
  7295. * src/HttpResponseCommand.cc
  7296. * src/FtpNegotiationCommand.cc
  7297. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. * Release 0.15.1
  7299. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Updated Bulgarian and French translations, thanks to all translators.
  7301. * po/bg.po
  7302. * po/fr.po
  7303. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7304. Bump up version number to 0.15.1
  7305. * configure.ac
  7306. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7307. Avoid repeated call of gettimeofday() when calculating speed.
  7308. * src/SpeedCalc.cc
  7309. * src/SpeedCalc.h
  7310. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7311. Removed writable check when socket's send buffer is full in BitTorrent
  7312. downloads to lower CPU usage.
  7313. * src/PeerInteractionCommand.cc
  7314. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. Fixed broken gzip inflation.
  7316. Turn off segmented downloading if gzip content is smaller than or equal
  7317. to 1MiB and inflate the data on the fly, because HTTP response header
  7318. doesn't contain the length of inflated file we can't determin where
  7319. the chunk of data should be written.
  7320. On the other hand, if gzip content is larger than 1MB, then turn off
  7321. on the fly inflation, because some servers returns "content-type: gzip"
  7322. for *.tgz, *.gz files.
  7323. * src/DownloadCommand.cc
  7324. * src/HttpResponseCommand.cc
  7325. * src/HttpResponseCommand.h
  7326. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7327. Applied tizianomueller's patch to fix compile error.
  7328. * test/BitfieldManTest.cc
  7329. * test/BtRequestMessageTest.cc
  7330. * test/DefaultBtContextTest.cc
  7331. * test/DefaultDiskWriterTest.cc
  7332. * test/DefaultPieceStorageTest.cc
  7333. * test/HttpHeaderProcessorTest.cc
  7334. * test/HttpResponseTest.cc
  7335. * test/Metalink2RequestGroupTest.cc
  7336. * test/MetalinkParserControllerTest.cc
  7337. * test/MetalinkProcessorTest.cc
  7338. * test/PeerSessionResourceTest.cc
  7339. * test/UtilTest.cc
  7340. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7341. * Release 0.15.0
  7342. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7343. Reordered src files in POTFILES.in so that usage text appears first.
  7344. * po/POTFILES.in
  7345. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Bump up version number to 0.15.0
  7347. * configure.ac
  7348. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7349. Added Bulgarian translation.
  7350. Updated Catalan, Spanish, French and Japanese translations.
  7351. Thanks to all translators.
  7352. * po/LINGUAS
  7353. * po/bg.po
  7354. * po/ca.po
  7355. * po/es.po
  7356. * po/fr.po
  7357. * po/ja.po
  7358. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7359. Updated feature list. Added libz for dependency section.
  7360. Added a description about unit testing using CppUnit.
  7361. * README
  7362. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Added a test for libz. Quoted where it is necessary.
  7364. * build_test.sh
  7365. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Added GZip to `Enabled Features' list.
  7367. * src/FeatureConfig.cc
  7368. * src/FeatureConfig.h
  7369. * test/FeatureConfigTest.cc
  7370. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7372. the transfer has not yet started.
  7373. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7374. * src/SegmentMan.cc
  7375. * src/SegmentMan.h
  7376. * test/SegmentManTest.cc
  7377. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7378. Cache last calculated average download/upload speed.
  7379. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7380. cached value.
  7381. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7382. * src/PeerStat.h
  7383. * src/SpeedCalc.cc
  7384. * src/SpeedCalc.h
  7385. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. Call parseUrl directly.
  7387. * src/Request.cc (resetUrl)
  7388. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7389. Supported absolute/relative path in Location header field.
  7390. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7391. * src/HttpHeader.cc
  7392. * src/HttpHeader.h
  7393. * src/HttpResponse.cc
  7394. * src/HttpSkipResponseCommand.cc
  7395. * src/Request.cc
  7396. * test/HttpHeaderTest.cc
  7397. * test/HttpResponseTest.cc
  7398. * test/RequestTest.cc
  7399. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7400. Changed help text for --load-cookie option.
  7401. * doc/aria2c.1.txt
  7402. * src/usage_text.h
  7403. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7404. Regenerated test/Makefile.in to remove stale ChangeLog.
  7405. * test/Makefile.in
  7406. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7407. Updated po files.
  7408. * po/aria2c.pot
  7409. * po/*.po
  7410. * po/*.gmo
  7411. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7412. Bump up version number to 0.15.0b
  7413. * configure.ac
  7414. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Externalize messages.
  7416. * src/RequestGroupMan.cc
  7417. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7418. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7419. Use File::exists() instead of File::isFile() to allow non-regular file
  7420. such as block special files.
  7421. * src/AbstractDiskWriter.cc
  7422. * src/MultiDiskWriter.cc
  7423. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7425. * src/gai_strerror.h
  7426. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7427. Fixed compile error. Thanks gknauf for the patch.
  7428. * src/asctime_r.c
  7429. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7430. Included asctime_r.h from a2time.h.
  7431. * src/a2time.h
  7432. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7433. Added a message "aria2 doesn't verify signature" to log message when
  7434. signature file is saved.
  7435. * src/RequestGroupMan.cc
  7436. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Added the ability to save signature when download is completed if
  7438. signature is available. The filename of signature file is the path to
  7439. download file followed by ".sig". If it already exists, then signature
  7440. will not be saved.
  7441. * src/RequestGroupMan.cc
  7442. * src/Signature.cc
  7443. * test/SignatureTest.cc
  7444. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. Updated the descriptions for --bt-seed-unverified.
  7446. * doc/aria2c.1
  7447. * doc/aria2c.1.html
  7448. * doc/aria2c.1.txt
  7449. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7451. that this is not going to verify files using piece hashes.
  7452. * src/HelpItemFactory.cc
  7453. * src/OptionHandlerFactory.cc
  7454. * src/RequestGroup.cc
  7455. * src/option_processing.cc
  7456. * src/prefs.cc
  7457. * src/prefs.h
  7458. * src/usage_text.h
  7459. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. Added the ability to retrieve signature from Metalink file.
  7461. A retrieved signature is stored in Signature class and it is held by
  7462. DownloadContext class. Note that aria2 doesn't verify signature.
  7463. * src/DownloadContext.cc
  7464. * src/DownloadContext.h
  7465. * src/Makefile.am
  7466. * src/Makefile.in
  7467. * src/Metalink2RequestGroup.cc
  7468. * src/MetalinkEntry.cc
  7469. * src/MetalinkEntry.h
  7470. * src/MetalinkParserController.cc
  7471. * src/MetalinkParserController.h
  7472. * src/MetalinkParserStateMachine.cc
  7473. * src/MetalinkParserStateMachine.h
  7474. * src/Signature.cc
  7475. * src/Signature.h
  7476. * src/SignatureMetalinkParserState.cc
  7477. * src/SignatureMetalinkParserState.h
  7478. * src/VerificationMetalinkParserState.cc
  7479. * src/VerificationMetalinkParserState.h
  7480. * test/Metalink2RequestGroupTest.cc
  7481. * test/MetalinkParserControllerTest.cc
  7482. * test/MetalinkProcessorTest.cc
  7483. * test/test.xml
  7484. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7485. Close DiskAdaptor after renaming file.
  7486. * src/RequestGroup.cc
  7487. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. Corrected indentation
  7489. * src/DefaultBtProgressInfoFile.cc
  7490. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7491. Moved the calls of std::ios::exceptions() inside of try-catch block
  7492. because if an error occurred in constructor of std::fstream, then
  7493. exception is thrown immediately when std::ios::exceptions() is called
  7494. which results unhandled exception and aria2c aborts.
  7495. * src/DefaultBtProgressInfoFile.cc
  7496. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. Added the test for the previous change in DefaultBtContext.cc
  7498. * test/DefaultBtContextTest.cc
  7499. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7500. Fixed the bug that causes infinite loop when the number of pieces are
  7501. fewer than allowed fast set size which is 10 by default.
  7502. * src/DefaultBtContext.cc
  7503. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Updated the descriptions for -j, -s. Added --bt-seed.
  7505. * doc/aria2c.1
  7506. * doc/aria2c.1.html
  7507. * doc/aria2c.1.txt
  7508. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7509. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7510. aria2 seeds previously downloaded files without validating piece hashs.
  7511. * src/HelpItemFactory.cc
  7512. * src/OptionHandlerFactory.cc
  7513. * src/RequestGroup.cc
  7514. * src/option_processing.cc
  7515. * src/prefs.cc
  7516. * src/prefs.h
  7517. * src/usage_text.h
  7518. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Updated DESCRIPTION of man page.
  7520. * doc/aria2c.1
  7521. * doc/aria2c.1.html
  7522. * doc/aria2c.1.txt
  7523. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7525. Don't define `struct addrinfo' when __sun is defined.
  7526. * src/getaddrinfo.h
  7527. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7529. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7530. second argument is of type `struct _stati64'. Otherwise it is defined as
  7531. `struct stat'.
  7532. * src/AbstractDiskWriter.cc
  7533. * src/File.cc
  7534. * src/File.h
  7535. * src/a2io.h
  7536. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. Fixed the compile error in hurd-i386
  7538. See the original bug report:
  7539. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7540. * src/a2io.h
  7541. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Code cleanup.
  7543. * src/PeerAbstractCommand.cc
  7544. * src/PeerAbstractCommand.h
  7545. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7546. Removed TransferEncoding.
  7547. * src/DownloadCommand.cc
  7548. * src/DownloadCommand.h
  7549. * src/HttpResponseCommand.cc
  7550. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Updated po files.
  7552. * po/aria2c.pot
  7553. * po/*.po
  7554. * po/*.gmo
  7555. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7556. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7557. * src/A2STR.cc
  7558. * src/A2STR.h
  7559. * src/ChunkedDecoder.cc
  7560. * src/ChunkedDecoder.h
  7561. * src/ChunkedEncoding.cc: Removed
  7562. * src/ChunkedEncoding.h: Removed
  7563. * src/DownloadCommand.cc
  7564. * src/DownloadCommand.h
  7565. * src/HttpDownloadCommand.cc
  7566. * src/HttpResponse.cc
  7567. * src/HttpResponse.h
  7568. * src/HttpResponseCommand.cc
  7569. * src/HttpSkipResponseCommand.cc
  7570. * src/HttpSkipResponseCommand.h
  7571. * src/Makefile.am
  7572. * src/TransferEncoding.h: Removed
  7573. * test/ChunkedDecoderTest.cc
  7574. * test/ChunkedEncodingTest.cc: Removed
  7575. * test/HttpResponseTest.cc
  7576. * test/Makefile.am
  7577. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. Use append instead of insert.
  7579. * src/GZipDecoder.cc
  7580. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Updated doc
  7582. * src/Decoder.h
  7583. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7584. Updated usage text for -s option.
  7585. * src/usage_text.h
  7586. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7588. * src/Request.cc
  7589. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7590. Cleaned up configure.ac.
  7591. * configure.ac
  7592. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7593. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7594. AC_ARG_ENABLE.
  7595. * configure.ac
  7596. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7598. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7599. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7600. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7601. fly and writes decoded data to a local disk.
  7602. * README
  7603. * README.html
  7604. * configure.ac
  7605. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7606. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7607. * m4/libz.m4
  7608. * src/Decoder.h
  7609. * src/DownloadCommand.cc
  7610. * src/DownloadCommand.h
  7611. * src/Exception.h
  7612. * src/GZipDecoder.cc
  7613. * src/GZipDecoder.h
  7614. * src/HttpHeader.cc
  7615. * src/HttpHeader.h
  7616. * src/HttpRequest.cc
  7617. * src/HttpRequest.h
  7618. * src/HttpResponse.cc
  7619. * src/HttpResponse.h
  7620. * src/HttpResponseCommand.cc
  7621. * src/Makefile.am
  7622. * test/GZipDecoderTest.cc
  7623. * test/HttpRequestTest.cc
  7624. * test/HttpResponseTest.cc
  7625. * test/Makefile.am
  7626. * test/Makefile.in
  7627. * test/gzip_decode_test.gz
  7628. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Clarified usage of -j option.
  7630. * src/usage_text.h
  7631. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Disabled getting size from the response of RETR.
  7633. If SIZE command failed, then disable resuming and segmented downloading.
  7634. * src/FtpConnection.cc
  7635. * src/FtpConnection.h
  7636. * src/FtpNegotiationCommand.cc
  7637. * src/FtpNegotiationCommand.h
  7638. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7639. Use digits to find first byte of file size, which makes the intention
  7640. of the code clearer.
  7641. * src/FtpConnection.cc
  7642. Don't call validateTotalLength() when size is 0.
  7643. * src/FtpNegotiationCommand.cc
  7644. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7645. Updated po files.
  7646. * po/aria2c.pot
  7647. * po/*.gmo
  7648. * po/*.po
  7649. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Clarified usage text for --split option.
  7651. * src/usage_text.h
  7652. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7653. Bump up version number to 0.15.0dev. "dev" means "development"
  7654. version, which means I started the development of the next release!
  7655. * src/configure.ac
  7656. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7657. If FTP server returns negative response with REST raw command and
  7658. requested range is not 0, throw exception. If requested range is 0,
  7659. continue download a file from 0 byte.
  7660. * src/FtpNegotiationCommand.cc
  7661. * src/FtpNegotiationCommand.h
  7662. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7663. Supported FTP server which don't recognize SIZE raw command.
  7664. If SIZE raw command is failed, aria2 will try to get file size
  7665. from the response of RETR raw command. If both attempts are failed,
  7666. then resuming and segmented downloading are disabled.
  7667. * src/FtpConnection.cc
  7668. * src/FtpConnection.h
  7669. * src/FtpNegotiationCommand.cc
  7670. * src/FtpNegotiationCommand.h
  7671. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7672. * Release 0.14.0+1
  7673. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7674. Bump up version number to 0.14.0+1
  7675. * src/configure.ac
  7676. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7677. Fixed the code that refers static member variable from non-static
  7678. context.
  7679. * src/DefaultPeerStorage.cc
  7680. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. * Release 0.14.0
  7682. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7683. Added build test script
  7684. * build_test.sh
  7685. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Updated ja.po
  7687. * src/ja.po
  7688. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Bump up version number to 0.14.0
  7690. * src/configure.ac
  7691. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7692. Updated ja.po and fr.po. Great thanks for french translators and
  7693. Sebastien WILLEMIJNS.
  7694. * po/fr.po
  7695. * po/ja.po
  7696. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7697. Added configure option to enable/disable epoll support.
  7698. * configure.ac
  7699. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Updated man page.
  7701. * doc/aria2c.1.txt
  7702. * doc/aria2c.1
  7703. * doc/aria2c.1.html
  7704. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7705. Added missing default value '5' to the usage of --split option.
  7706. * src/HelpItemFactory.cc
  7707. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Filled up pieces based on the number of missing blocks, rather than
  7709. simplay the number of piece * block length.
  7710. * src/BtRequestFactory.h
  7711. * src/DefaultBtInteractive.cc
  7712. * src/DefaultBtInteractive.h
  7713. * src/DefaultBtRequestFactory.cc
  7714. * src/DefaultBtRequestFactory.h
  7715. * src/Piece.cc
  7716. * src/Piece.h
  7717. * test/BitfieldManTest.cc
  7718. * test/DefaultBtRequestFactoryTest.cc
  7719. * test/MockBtRequestFactory.h
  7720. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Made _epEvents a member variable.
  7722. * src/DownloadEngine.cc
  7723. * src/DownloadEngine.h
  7724. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. Cancel download if http redirect is bounded more than 20 times.
  7726. * src/AbstractCommand.cc
  7727. * src/HttpSkipResponseCommand.cc
  7728. * src/Request.cc
  7729. * src/Request.h
  7730. * test/RequestTest.cc
  7731. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7732. Fixed unhandled exception(removed keyword `new').
  7733. * src/SocketCore.cc (initEPOLL)
  7734. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Removed visit(const MetaEntry*)
  7736. * src/MetaEntryVisitor.h:
  7737. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7738. and made them virtual.
  7739. * src/BencodeVisitor.h
  7740. * src/BencodeVisitor.cc
  7741. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7742. Updated po files.
  7743. * po/aria2c.pot
  7744. * po/*.po
  7745. * po/*.gmo
  7746. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7748. the number of socket to watch out.
  7749. * src/PeerInteractionCommand.cc
  7750. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7751. When there is not enough space in disk when writing a chunk of data,
  7752. aria2 now prints the message to the console to warn user and aborts
  7753. its download. Not all downloads are canceled because some downloads
  7754. may use another disk or partition. BUG#1640332
  7755. * src/AbstractDiskWriter.cc
  7756. * src/PeerAbstractCommand.cc
  7757. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7758. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7759. setHaltRequested(true) to cancel download.
  7760. * src/PeerInteractionCommand.h
  7761. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7762. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7763. socket from int to sock_t as sockets are unsigned in Windows.
  7764. For AsyncNameResolver, DownloadEngine, I did additional modification
  7765. for the portion of the code changed according to epoll support.
  7766. I defined sock_t in a2netcompat.h to use sock_t without including
  7767. SocketCore.h.
  7768. * src/AsyncNameResolver.cc
  7769. * src/AsyncNameResolver.h
  7770. * src/DownloadEngine.cc
  7771. * src/DownloadEngine.h
  7772. * src/SocketCore.cc
  7773. * src/SocketCore.h
  7774. * src/a2netcompat.h
  7775. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7777. changes in the patch were applied.
  7778. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7779. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7780. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7781. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7782. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7783. a2io.h and common.h were modified.
  7784. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7785. MinGW.
  7786. * src/common.h: Changed off_t to 64 bit in MinGW.
  7787. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7788. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7789. only a2netcompat.h is modified.
  7790. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7791. directives.
  7792. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7793. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7794. only gai_strerror.h is modified.
  7795. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7796. winsock errors in MinGW.
  7797. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7799. follow sources are applied.
  7800. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7801. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7802. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7803. I included locale.h from Platform.cc.
  7804. * src/main.cc: Moved common setup/teardown code to Platform class.
  7805. * test/AllTest.cc: Use Platform class.
  7806. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7807. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7809. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7810. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7811. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7812. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7813. aria2-0.13.2+1-mingw-2.patch.
  7814. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7815. systems which don't have termious.h. I moved the directive inside of
  7816. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7817. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7818. anyway.
  7819. * src/asctime_r.h
  7820. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7821. I added 2nd argument to the prototype declaration.
  7822. * src/StringFormat.cc: Get rid of vasprintf.
  7823. * src/getaddrinfo.h: Fixed constants.
  7824. * configure.ac: Added the check for asctime_r function.
  7825. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7826. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7827. Added writable test for Socket when the sending message is in progress.
  7828. Usually the sending message is piece message. Without wriable check,
  7829. upload latency is dropped to more than 1sec.
  7830. * src/PeerInteractionCommand.cc
  7831. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7832. Create only requested files and files which shares a piece with
  7833. requested file in multi-torrent downloads. Directory structures are
  7834. also created in the same rule.
  7835. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7836. DiskWriterEntry as in the previous implementation.
  7837. * src/MultiDiskWriter.cc
  7838. * src/MultiFileAllocationIterator.cc
  7839. * src/MultiFileAllocationIterator.h
  7840. * test/MultiFileAllocationIteratorTest.cc
  7841. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. Commented out -lprofiler
  7843. * src/Makefile.am
  7844. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. Bump up version number to 0.14.0b.
  7846. * src/configure.ac
  7847. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Actively establish connection to peers in seeding, when peer cache
  7849. is not full and max upload speed limit is not reached.
  7850. * src/ActivePeerConnectionCommand.cc
  7851. * src/ActivePeerConnectionCommand.h
  7852. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7854. to make room more fleshy, recently found peers.
  7855. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7856. it.
  7857. * src/DefaultPeerStorage.cc
  7858. * test/DefaultPeerStorageTest.cc
  7859. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Returns cached data only when the previous receiveHandshake() is called
  7861. with peek = true.
  7862. * src/PeerConnection.cc (receiveHandshake)
  7863. * src/PeerConnection.h (receiveHandshake)
  7864. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7865. Changed default value of -s option from 1 to 5.
  7866. Also max value of -s option is changed from 5 to 16.
  7867. * src/HelpItemFactory.cc
  7868. * src/OptionHandlerFactory.cc
  7869. * src/option_processing.cc
  7870. * src/usage_text.h
  7871. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Changed -s options behavior. Now it means the number of connections
  7873. made simultaneously in each http/ftp download.
  7874. If 1 URL is specified, the behavior is the same with old implementation.
  7875. If -s N is given and more than N URLs are specified, first N URLs are
  7876. used and remaining URLs are used for backup. If less than N URLs are
  7877. specified, some of URLs are used more than once so that totally N
  7878. connections are made simultaneously.
  7879. * src/main.cc
  7880. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Included missing iosfwd or ostream header.
  7882. * src/RequestGroupMan.cc
  7883. * src/TaggedItem.cc
  7884. * src/TaggedItem.h
  7885. * src/Util.cc
  7886. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7888. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7889. * src/HttpConnection.cc: Included missing sstream.
  7890. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. Added --bt-max-open-files option.
  7892. * src/DefaultPieceStorage.cc
  7893. * src/HelpItemFactory.cc
  7894. * src/MultiDiskAdaptor.cc
  7895. * src/MultiDiskAdaptor.h
  7896. * src/OptionHandlerFactory.cc
  7897. * src/option_processing.cc
  7898. * src/prefs.cc
  7899. * src/prefs.h
  7900. * src/usage_text.h
  7901. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. Fixed the bug that aria2 aborts when a path to a directory is given
  7903. in command-line.
  7904. * src/ProtocolDetector.cc
  7905. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7906. Limited the number files opened in each BitTorrent download. The default
  7907. value is 100. The option to change this value will be added.
  7908. * src/MultiDiskAdaptor.cc
  7909. * src/MultiDiskAdaptor.h
  7910. * src/MultiFileAllocationIterator.cc
  7911. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Fixed the bug that HTTP downloads don't start with old libraries.
  7913. * src/HttpHeaderProcessor.cc
  7914. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Use empty() instead of size() > 0.
  7916. * src/HttpConnection.cc
  7917. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7918. Drop connection if the incoming peer ID is the same with localhost's
  7919. one. The previous implementation drops connection when incoming peer's
  7920. IP address is the same with localhost's one.
  7921. * src/PeerListenCommand.cc
  7922. * src/DefaultBtInteractive.cc
  7923. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. Returns cached data without checking whether socket is readable
  7925. if the cache is available.
  7926. * src/PeerConnection.cc (receiveHandshake)
  7927. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. Included stdint.h
  7929. * src/common.h
  7930. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Removed duplicate HAVE_GETTIMEOFDAY
  7932. * src/Makefile.am
  7933. * src/Makefile.in
  7934. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Use interval as a minInterval when minInterval is not supplied.
  7936. * src/DefaultBtAnnounce.cc
  7937. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7939. attempt is failed, then 2nd attempt get kicked out more quickly.
  7940. And it is now static const member of DefaultBtAnnounce.
  7941. * src/DefaultBtAnnounce.h
  7942. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7943. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7944. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7945. * src/ActivePeerConnectionCommand.cc
  7946. * src/BtConstants.h
  7947. * src/BtRuntime.h
  7948. * src/DHTGetPeersCommand.cc
  7949. * src/DefaultBtAnnounce.cc
  7950. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7951. BtRuntime::MAX_PEERS.
  7952. * src/DefaultPeerStorage.h
  7953. * src/InitiatorMSEHandshakeCommand.cc
  7954. * src/PeerInitiateConnectionCommand.cc
  7955. * src/PeerInteractionCommand.cc
  7956. * src/PeerReceiveHandshakeCommand.cc
  7957. * src/TrackerWatcherCommand.cc
  7958. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Always Connect to _numNewConnection
  7960. * src/ActivePeerConnectionCommand.cc
  7961. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Made `begin' unsigned int.
  7963. * src/GrowSegment.h
  7964. * src/Piece.cc
  7965. * src/Piece.h
  7966. * src/PiecedSegment.cc
  7967. * src/PiecedSegment.h
  7968. * src/Segment.h
  7969. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Calculate piece hash when data is arrived if the data is arrived in
  7971. order. This removes additional read operation for hash calculation.
  7972. If the data is arrived in out of order, the hash is calucated when the
  7973. piece is completed. This is the same behavior as the old implementation.
  7974. * src/BtPieceMessage.cc
  7975. * src/DefaultBtProgressInfoFile.cc
  7976. * src/DefaultPieceStorage.cc
  7977. * src/DownloadCommand.cc
  7978. * src/DownloadCommand.h
  7979. * src/DownloadEngine.cc
  7980. * src/GrowSegment.cc
  7981. * src/GrowSegment.h
  7982. * src/Piece.cc
  7983. * src/Piece.h
  7984. * src/PiecedSegment.cc
  7985. * src/PiecedSegment.h
  7986. * src/Segment.h
  7987. * test/PieceTest.cc
  7988. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7989. Try to keep the ordering of outgoing piece message.
  7990. * src/DefaultBtMessageDispatcher.cc
  7991. (DefaultBtMessageDispatcher::sendMessages)
  7992. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Fixed busy loop when error/hup epoll events occur.
  7994. * src/AbstractCommand.cc
  7995. * src/PeerAbstractCommand.cc
  7996. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7997. Added --bt-request-peer-speed-limit option, which was a constant
  7998. SLOW_SPEED_THRESHOLD.
  7999. * src/ActivePeerConnectionCommand.cc
  8000. * src/ActivePeerConnectionCommand.h
  8001. * src/BtConstants.h
  8002. * src/HelpItemFactory.cc
  8003. * src/OptionHandlerFactory.cc
  8004. * src/PeerReceiveHandshakeCommand.cc
  8005. * src/option_processing.cc
  8006. * src/prefs.cc
  8007. * src/prefs.h
  8008. * src/usage_text.h
  8009. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8010. Removed repeated call of getTopDirPath(). Instead, call it once and
  8011. cache the result.
  8012. * src/MultiDiskAdaptor.cc
  8013. * src/MultiDiskAdaptor.h
  8014. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8015. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Fixed compile error on debian etch.
  8017. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8018. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8019. it is undefined.
  8020. * src/Util.cc (ULLONG_MAX)
  8021. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8022. Added epoll support. Use epoll if it is available. If not, use select.
  8023. When async dns is enabled in compile time, epoll support is enabled
  8024. only when aria2 is built with c-ares. This condition statement is
  8025. defined in a2io.h.
  8026. Currently aria2 supports both c-ares and ares, but ares is maintained
  8027. for quite a while and debian already has c-ares package, ares support
  8028. will be dropped in the future version.
  8029. * configure.ac
  8030. * src/AbstractCommand.cc
  8031. * src/AsyncNameResolver.cc
  8032. * src/AsyncNameResolver.h
  8033. * src/Command.cc
  8034. * src/Command.h
  8035. * src/DownloadEngine.cc
  8036. * src/DownloadEngine.h
  8037. * src/PeerAbstractCommand.cc
  8038. * src/SocketCore.cc
  8039. * src/SocketCore.h
  8040. * src/a2io.h
  8041. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8042. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8043. directive.
  8044. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8045. Do not do write operation to /dev/null file.
  8046. * src/LogFactory.cc
  8047. * src/SimpleLogger.cc
  8048. Replaced vasprintf with vsnprintf
  8049. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8050. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. * src/BtRequestMessage.cc
  8052. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8053. for segmentation fault caused by previous commit.
  8054. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Reduced the usage of gettimeofday().
  8056. * src/DefaultBtMessageDispatcher.cc
  8057. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8058. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8059. * src/RequestSlot.cc
  8060. * src/RequestSlot.h
  8061. (RequestSlot::isTimeout)
  8062. Made RequestSlot have a reference to Piece object to avoid find
  8063. Piece repeatedly.
  8064. * src/DefaultBtMessageDispatcher.cc
  8065. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8066. * src/RequestSlot.cc
  8067. * src/RequestSlot.h
  8068. (RequestSlot::getPiece)
  8069. * test/DefaultBtMessageDispatcherTest.cc
  8070. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8071. * src/TimeA2.cc
  8072. * src/TimeA2.h
  8073. (Time::difference): New function.
  8074. (Time::elapsed): Done optimization.
  8075. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8077. directive.
  8078. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. * src/option_processing.cc: Added missing `defined' keyword to #if
  8080. directive.
  8081. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8082. Bump up version number to 0.13.2+1
  8083. * src/configure.ac
  8084. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. Refactored broken outstanding piece handling.
  8086. * src/DefaultPieceStorage.cc
  8087. * src/DefaultPieceStorage.h
  8088. * src/Piece.cc
  8089. * src/Piece.h
  8090. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8092. name collision of static variable and predefined macro.
  8093. * src/BtContext.cc
  8094. * src/BtContext.h
  8095. * src/CookieBoxFactory.cc
  8096. * src/CookieBoxFactory.h
  8097. * src/CookieParser.cc
  8098. * src/CookieParser.h
  8099. * src/DefaultBtContext.cc
  8100. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. * src/RequestGroup.cc
  8102. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8103. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. * Release 0.13.2
  8105. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8106. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8107. * po/fr.po
  8108. * po/ja.po
  8109. * po/aria2c.pot
  8110. * po/*.po
  8111. * po/*.gmo
  8112. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. Bump up version number to 0.13.2
  8114. * src/configure.ac
  8115. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Refactord.
  8117. * src/RequestGroupMan.cc
  8118. (removeStoppedGroup)
  8119. (fillRequestGroupFromReserver)
  8120. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8121. Fixed compile error on Ubuntu.
  8122. * src/BtPieceMessage.cc
  8123. * src/MessageDigestHelper.cc
  8124. * src/Util.cc
  8125. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Fixed compile error when configured with --disable-bittorrent
  8127. * test/DownloadHandlerFactoryTest.cc
  8128. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. Done make update-po
  8130. * po/aria2c.pot
  8131. * po/*.po
  8132. * po/*.gmo
  8133. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8134. Bump up version number to 0.13.2rc.
  8135. * src/configure.ac
  8136. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Made option name bold. Updated SYNOPSIS to make it more readable.
  8138. * doc/aria2c.1.txt
  8139. * doc/aria2c.1
  8140. * doc/aria2c.1.html
  8141. * src/version_usage.cc
  8142. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8143. Refactored. Use std::string instead of size and char*.
  8144. * Data.cc
  8145. * Data.h
  8146. * test/Data.cc
  8147. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8148. Added trimSelf(). Rewritten trim() to use trimSelf().
  8149. * Util.cc
  8150. * Util.h
  8151. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8152. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8153. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8154. Fixed compile error when configured with --disable-metalink.
  8155. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8156. * test/FeatureConfigTest.cc
  8157. * test/DownloadHandlerFactoryTest.cc
  8158. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Fixed compile error when configured with --without-gnutls
  8160. --without-openssl
  8161. * src/main.cc
  8162. * test/DefaultBtProgressInfoFileTest.cc
  8163. * test/SegmentManTest.cc
  8164. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. Fixed compile error with OpenSSL.
  8166. * src/IteratableChunkChecksumValidator.cc
  8167. * src/LibsslDHKeyExchange.h
  8168. * src/MessageDigestHelper.cc
  8169. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. Revert the default value of --max-concurrent-downloads to 5.
  8171. Revert the default value of --metalink-servers to 5.
  8172. Man pages was also updated.
  8173. * src/option_processing.cc
  8174. * doc/aria2c.1.txt
  8175. * doc/aria2c.1.html
  8176. * doc/aria2c.1
  8177. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8178. Returns const reference:
  8179. DownloadContext::getPieceHash, DownloadContext::getName,
  8180. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8181. BtContext::getInfoHashAsString,
  8182. * src/BtContext.h
  8183. * src/DefaultBtContext.cc
  8184. * src/DefaultBtContext.h
  8185. * src/DownloadContext.h
  8186. * src/SingleFileDownloadContext.h
  8187. * test/MockBtContext.h
  8188. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. * src/RequestGroup.h (getDir): Removed.
  8190. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Returns const reference. The internal urlencode function was optimized
  8192. a little bit.
  8193. * src/Request.cc
  8194. * src/Request.h
  8195. * src/HttpRequest.cc
  8196. * src/HttpRequest.h
  8197. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Defined option name and possible values as std::string to reduce
  8199. temporary string object creation in runtime.
  8200. * src/HelpItemFactory.cc
  8201. * src/LogFactory.cc
  8202. * src/Option.cc
  8203. * src/OptionHandlerFactory.cc
  8204. * src/option_processing.cc
  8205. * src/prefs.cc
  8206. * src/prefs.h
  8207. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. Return const reference.
  8209. * src/DownloadHandlerConstants.cc
  8210. * src/DownloadHandlerConstants.h
  8211. (getMetalinkExtensions)
  8212. (getMetalinkContentTypes)
  8213. (getBtExtensions)
  8214. (getBtContentTypes)
  8215. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. * src/HttpHeader.cc (get): Rewritten.
  8217. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Make HttpHeader::getFirst(...) return const reference.
  8219. * src/HttpHeader.cc
  8220. * src/HttpHeader.h
  8221. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8223. it with V_TRUE.
  8224. * src/DefaultPieceStorage.cc
  8225. * src/DownloadCommand.cc
  8226. * src/FtpNegotiationCommand.cc
  8227. * src/HttpRequest.cc
  8228. * src/InitiateConnectionCommand.cc
  8229. * src/RequestGroup.cc
  8230. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8231. Made Option::get(...) return const reference of std::string.
  8232. * src/Option.cc
  8233. * src/Option.h
  8234. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Replaced std:copy with insert.
  8236. * src/DefaultBtMessageDispatcher.cc
  8237. * src/DefaultPieceStorage.cc
  8238. * src/DownloadEngineFactory.cc
  8239. * src/RequestGroup.cc
  8240. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8241. Included SocketCore.h to fix compiler warning.
  8242. * src/InitiateConnectionCommand.cc
  8243. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8244. Put piece selection strategy algorithm to RarestPieceSelector class,
  8245. Added a switch to choose whether randomized selection so that unit
  8246. tests emit same results in, possibly, win32.
  8247. * src/DefaultPieceStorage.cc
  8248. * src/DefaultPieceStorage.h
  8249. * src/RarestPieceSelector.cc
  8250. * src/RarestPieceSelector.h
  8251. * test/DefaultPieceStorageTest.cc
  8252. * test/RarestPieceSelectorTest.cc
  8253. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8254. Don't pool connection if HTTP proxy is enabled.
  8255. * src/FtpFinishDownloadCommand.cc
  8256. * src/FtpNegotiationCommand.cc
  8257. * src/HttpSkipResponseCommand.cc
  8258. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8260. * src/AbstractCommand.cc
  8261. * src/AbstractCommand.h
  8262. * src/ActivePeerConnectionCommand.cc
  8263. * src/FtpInitiateConnectionCommand.cc
  8264. * src/HttpInitiateConnectionCommand.cc
  8265. * src/InitiateConnectionCommandFactory.cc
  8266. * src/PeerAbstractCommand.cc
  8267. * src/PeerAbstractCommand.h
  8268. * src/PeerInitiateConnectionCommand.cc
  8269. * src/TrackerWatcherCommand.cc
  8270. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8271. Sort RequestSlot in ascending order and manipulate them using
  8272. lower_bound.
  8273. * src/DefaultBtMessageDispatcher.cc
  8274. * src/DefaultBtMessageDispatcher.h
  8275. (getMessageQueue): Added const qualifier.
  8276. (getRequestSlots): Added const qualifier.
  8277. (sendMessages): Use empty() instead of size().
  8278. (doCancelSendingPieceAction): Use HandleEvent object.
  8279. (doAbortOutstandingRequestAction): Rewritten.
  8280. (doChokedAction): Rewritten.
  8281. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8282. (isOutstandingRequest): Rewritten.
  8283. (getOutstandingRequest): Rewritten.
  8284. (removeOutstandingRequest): Rewritten.
  8285. (addOutstandingRequest): Rewritten.
  8286. * src/RequestSlot.cc
  8287. * src/RequestSlot.h
  8288. (operator=): Rewritten.
  8289. (operator!=): New function.
  8290. (operator<): New function.
  8291. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. * src/DefaultBtRequestFactory.cc
  8293. (doChokedAction): Rewritten.
  8294. (removeCompletedPiece): Rewritten.
  8295. (removeTargetPiece): Rewritten.
  8296. (createRequestMessages): Added the debug log.
  8297. (createRequestMessagesOnEndGame: Added the debug log.
  8298. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. Added the debug log message.
  8300. * src/BtPieceMessage.cc (doReceivedAction)
  8301. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8303. used lower_bound to process them rather than linear search.
  8304. * src/DHTPeerAnnounceStorage.cc
  8305. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8306. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8307. peer has at least one completed piece.
  8308. * src/Peer.cc
  8309. * src/Peer.h
  8310. * src/PeerInteractionCommand.cc
  8311. * src/PeerSessionResource.cc
  8312. * src/PeerSessionResource.h
  8313. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8314. Removed unnecessary sorting
  8315. * src/DefaultPieceStorage (DefaultPieceStorage)
  8316. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8317. Rewritten the portion of the code that mangaes allowed fast indexes.
  8318. * src/PeerSessionResource.cc
  8319. * src/PeerSessionResource.h
  8320. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8321. Removed the invalid string including '\r' from ru.po and
  8322. did make update-po.
  8323. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Added --log-level and --summary-interval to man page.
  8325. * doc/aria2c.1.txt
  8326. * doc/aria2c.1.html
  8327. * doc/aria2c.1
  8328. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8329. Added --log-level option to specify log level. Log messages under
  8330. the specified level are not output. Default value is `debug'.
  8331. * src/HelpItemFactory.cc
  8332. * src/LogFactory.cc
  8333. * src/LogFactory.h
  8334. * src/Logger.h
  8335. * src/OptionHandlerFactory.cc
  8336. * src/SimpleLogger.cc
  8337. * src/SimpleLogger.h
  8338. * src/main.cc
  8339. * src/option_processing.cc
  8340. * src/prefs.h
  8341. * src/usage_text.h
  8342. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8343. Print download progress summary of all parallel downloads in specified
  8344. interval, default 60 secs. While aria2 could download several files
  8345. in parallel (see -j option), it displayed just first download progress,
  8346. and the other downloads are hidden from the users. This new feature
  8347. prints all downloads currently in-progress to the console so that you
  8348. can check the status of all downloads. The interval can be adjusted
  8349. by --summary-interval option.
  8350. The progress readout is now cut so that all fits in the one line of
  8351. console.
  8352. * src/ConsoleStatCalc.cc
  8353. * src/ConsoleStatCalc.h
  8354. * src/HelpItemFactory.cc
  8355. * src/OptionHandlerFactory.cc
  8356. * src/RequestGroupMan.cc
  8357. * src/RequestGroupMan.h
  8358. * src/main.cc
  8359. * src/option_processing.cc
  8360. * src/prefs.h
  8361. * src/usage_text.h
  8362. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8363. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8364. * src/DownloadEngine.cc (DownloadEngine)
  8365. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8367. defined.
  8368. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8369. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8370. Use erase+lower_bound+insert instead of sort.
  8371. * src/DefaultPieceStorage.cc (addPieceStats)
  8372. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8373. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8374. * src/A2STR.cc
  8375. * src/A2STR.h
  8376. * src/OptionParser.cc (parse)
  8377. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. Defined fake filename `[tracker.announce]' as static const std::string.
  8379. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8380. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8381. Defined default filename `index.html' as static const std::string
  8382. * src/SingleFileDownloadContext.cc
  8383. * src/SingleFileDownloadContext.h
  8384. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8385. Defined "[MEMORY]" as static const std::string.
  8386. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8387. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Defined control file's version number as static const std::string.
  8389. * src/DefaultBtProgressInfoFile.cc
  8390. * src/DefaultBtProgressInfoFile.h
  8391. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8392. Use Request::METHOD_GET
  8393. * src/RequestGroup.cc (createNextCommandWithAdj)
  8394. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8395. Defined "OK", "ERR", "INPR" as static const std::string
  8396. * src/RequestGroupMan.cc (showDownloadResults)
  8397. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8398. Defined default client used in extended handshake as static const
  8399. std::string
  8400. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8401. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8403. * src/HttpConnection.cc (eraseConfidentialInfo)
  8404. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8405. Defined default ftp user and password as static const std::string
  8406. * src/AuthConfigFactory.cc
  8407. * src/AuthConfigFactory.h
  8408. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Defined strings used in netrc as static const std::string
  8410. * src/Netrc.cc
  8411. * src/Netrc.h
  8412. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. Defined HTTP status as static const std::string
  8414. * src/AbstractProxyResponseCommand.cc
  8415. * src/HttpHeader.cc
  8416. * src/HttpHeader.h
  8417. * src/HttpResponse.cc
  8418. * src/HttpResponseCommand.cc
  8419. * src/HttpSkipResponseCommand.cc
  8420. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8421. Defined "\r\n", "A", "I" as static const std::string
  8422. * src/A2STR.cc
  8423. * src/A2STR.h
  8424. * src/FtpConnection.cc
  8425. * src/FtpConnection.h
  8426. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Added COLON_C(".") and used it in Request::parseUrl()
  8428. * src/A2STR.cc
  8429. * src/A2STR.h
  8430. * src/Request.cc (parseUrl)
  8431. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. Changed the type of padName from `const std::string&' to `const char*'.
  8433. * src/MSEHandshake.cc (verifyPadLength)
  8434. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8435. Defined "sha1" as static const std::string.
  8436. * src/MetalinkParserController.cc
  8437. * src/MetalinkParserController.h
  8438. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8439. Defined message digest algorithm name as static const std::string
  8440. * src/DHTTokenTracker.cc
  8441. * src/DHTUtil.cc
  8442. * src/DefaultBtContext.cc
  8443. * src/MSEHandshake.cc
  8444. * src/MessageDigestHelper.cc
  8445. * src/Peer.cc
  8446. * src/messageDigest.cc
  8447. * src/messageDigest.h
  8448. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Made string literals used in SAX parser static const std::string.
  8450. * src/FileMetalinkParserState.cc
  8451. * src/FileMetalinkParserState.h
  8452. * src/FilesMetalinkParserState.cc
  8453. * src/FilesMetalinkParserState.h
  8454. * src/InitialMetalinkParserState.cc
  8455. * src/InitialMetalinkParserState.h
  8456. * src/MetalinkMetalinkParserState.cc
  8457. * src/MetalinkMetalinkParserState.h
  8458. * src/PiecesMetalinkParserState.cc
  8459. * src/PiecesMetalinkParserState.h
  8460. * src/ResourcesMetalinkParserState.cc
  8461. * src/ResourcesMetalinkParserState.h
  8462. * src/VerificationMetalinkParserState.cc
  8463. * src/VerificationMetalinkParserState.h
  8464. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8465. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8466. * src/A2STR.cc
  8467. * src/A2STR.h
  8468. * src/File.cc
  8469. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8470. Defined static const std::string IP("ip"), PORT("port") and use them
  8471. instead of string literals.
  8472. * src/DefaultPeerListProcessor.cc
  8473. * src/DefaultPeerListProcessor.h
  8474. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Made string literals for torrent file processing static const
  8476. std::string.
  8477. * src/BtContext.cc
  8478. * src/BtContext.h
  8479. * src/DefaultBtContext.cc
  8480. * src/DefaultBtContext.h
  8481. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Made string literal for tracker response static const std::string
  8483. * src/BtAnnounce.cc
  8484. * src/BtAnnounce.h
  8485. * src/DefaultBtAnnounce.cc
  8486. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Use DHTMessage::T instead of "t".
  8488. * src/DHTMessageTracker.cc (messageArrived)
  8489. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Made keyName static const. Made trimmed charset static const
  8491. std::string.
  8492. * src/Util.cc (getContentDispositionFilename)
  8493. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. Made USER_AGENT const. Made "/" static const std::string.
  8495. * src/A2STR.cc
  8496. * src/A2STR.h
  8497. * src/HttpRequest.cc
  8498. * src/HttpRequest.h
  8499. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8500. Made string listeral to static const std::string:
  8501. "Content-Range", "Content-Length"
  8502. * src/HttpHeader.cc
  8503. * src/HttpHeader.h
  8504. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Made string listeral to static const std::string.
  8506. * src/HttpConnection.cc
  8507. * src/HttpHeader.cc
  8508. * src/HttpHeader.h
  8509. * src/HttpResponse.cc
  8510. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8511. Made string listeral to static const std::string.
  8512. * src/A2STR.cc
  8513. * src/A2STR.h
  8514. * src/SimpleLogger.cc
  8515. * src/SimpleLogger.h
  8516. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8517. Made string literal to static const std::string.
  8518. Rewritten CookieParser::setField.
  8519. * src/A2STR.cc
  8520. * src/A2STR.h
  8521. * src/CookieBoxFactory.cc
  8522. * src/CookieBoxFactory.h
  8523. * src/CookieParser.cc
  8524. * src/CookieParser.h
  8525. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. Made string literal to static const std::string
  8527. * src/DHTAbstractMessage.cc
  8528. * src/DHTAnnouncePeerMessage.cc
  8529. * src/DHTAnnouncePeerMessage.h
  8530. * src/DHTAnnouncePeerReplyMessage.cc
  8531. * src/DHTAnnouncePeerReplyMessage.h
  8532. * src/DHTFindNodeMessage.cc
  8533. * src/DHTFindNodeMessage.h
  8534. * src/DHTFindNodeReplyMessage.cc
  8535. * src/DHTFindNodeReplyMessage.h
  8536. * src/DHTGetPeersMessage.cc
  8537. * src/DHTGetPeersMessage.h
  8538. * src/DHTGetPeersReplyMessage.cc
  8539. * src/DHTGetPeersReplyMessage.h
  8540. * src/DHTMessage.cc
  8541. * src/DHTMessage.h
  8542. * src/DHTMessageFactoryImpl.cc
  8543. * src/DHTMessageReceiver.cc
  8544. * src/DHTPingMessage.cc
  8545. * src/DHTPingMessage.h
  8546. * src/DHTPingReplyMessage.cc
  8547. * src/DHTPingReplyMessage.h
  8548. * src/DHTQueryMessage.cc
  8549. * src/DHTQueryMessage.h
  8550. * src/DHTResponseMessage.cc
  8551. * src/DHTResponseMessage.h
  8552. * src/DHTUnknownMessage.cc
  8553. * src/DHTUnknownMessage.h
  8554. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Made string literal to static const std::string
  8556. * src/BtChokeMessage.cc (toString)
  8557. * src/BtHaveAllMessage.cc (toString)
  8558. * src/BtHaveNoneMessage.cc (toString)
  8559. * src/BtInterestedMessage.cc (toString)
  8560. * src/BtNotInterestedMessage.cc (toString)
  8561. * src/BtUnchokeMessage.cc (toString)
  8562. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. Replaced "" with static const variable A2STR::NIL.
  8564. Replaced string comparison against "" with std::string::empty().
  8565. Added PROTO_* to Request class and use them as a protocol string
  8566. constant.
  8567. Made "started", "stopped", "completed" static const variable in
  8568. AnnounceList class.
  8569. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8570. Updated translations. Great thanks to translators.
  8571. * po/ca.po
  8572. * po/de.po
  8573. * po/fr.po
  8574. * po/it.po
  8575. * po/ja.po
  8576. * po/ru.po
  8577. * po/zh_CN.po
  8578. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. Updated man page; categorized options and fixed typo.
  8580. * doc/aria2c.1.txt
  8581. * doc/aria2c.1.html
  8582. * doc/aria2c.1
  8583. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Removed const ref
  8585. * src/MetalinkEntry.cc (AddProtocolPreference)
  8586. * src/RequestGroup.cc (FindServerHostByHostname)
  8587. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8588. Rewritten Accept-Features handling.
  8589. * src/HttpRequestCommand.cc (createHttpRequest)
  8590. * src/a2functional.h
  8591. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8592. Changed method signature:
  8593. DHTAbstractNodeLookupTask::toEntries
  8594. * src/DHTAbstractNodeLookupTask.cc
  8595. * src/DHTAbstractNodeLookupTask.h
  8596. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8597. Changed method signature:
  8598. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8599. * src/BtContext.h
  8600. * src/DefaultBtContext.cc
  8601. * src/DefaultBtContext.h
  8602. * src/DefaultBtInteractive.cc
  8603. * test/DefaultBtContextTest.cc
  8604. * test/MockBtContext.h
  8605. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8606. Changed method signature:
  8607. MultiFileAllocationIterator::makeDiskWriterEntries
  8608. * src/MultiFileAllocationIterator.cc
  8609. * src/MultiFileAllocationIterator.h
  8610. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Changed method sinature:
  8612. MetalinkEntry::toFileEntry,
  8613. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8614. Metalinker::queryEntry
  8615. * src/Metalink2RequestGroup.cc
  8616. * src/MetalinkEntry.cc
  8617. * src/MetalinkEntry.h
  8618. * src/MetalinkHelper.cc
  8619. * src/MetalinkHelper.h
  8620. * src/Metalinker.cc
  8621. * src/Metalinker.h
  8622. * src/main.cc
  8623. * test/MetalinkHelperTest.cc
  8624. * test/MetalinkerTest.cc
  8625. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. Changed method sinature:
  8627. RequestGroup::getURIs
  8628. * src/RequestGroup.cc
  8629. * src/RequestGroup.h
  8630. * test/Metalink2RequestGroupTest.cc
  8631. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. Changed method signature:
  8633. PeerListProcessor::extractPeer
  8634. * src/CompactPeerListProcessor.cc
  8635. * src/CompactPeerListProcessor.h
  8636. * src/DefaultBtAnnounce.cc
  8637. * src/DefaultPeerListProcessor.cc
  8638. * src/DefaultPeerListProcessor.h
  8639. * src/DelegatingPeerListProcessor.cc
  8640. * src/DelegatingPeerListProcessor.h
  8641. * src/PeerListProcessor.h
  8642. * src/UTPexExtensionMessage.cc
  8643. * test/DefaultPeerListProcessorTest.cc
  8644. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Changed method signature:
  8646. BtRequestFactory::createRequestMessages,
  8647. BtRequestFactory::createRequestMessagesOnEndGame
  8648. * src/BtRequestFactory.h
  8649. * src/DefaultBtInteractive.cc
  8650. * src/DefaultBtRequestFactory.cc
  8651. * src/DefaultBtRequestFactory.h
  8652. * test/DefaultBtRequestFactoryTest.cc
  8653. * test/MockBtRequestFactory.h
  8654. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Changed method signature:
  8656. PieceStorage::getInFlightPieces
  8657. * src/DefaultBtProgressInfoFile.cc
  8658. * src/DefaultPieceStorage.cc
  8659. * src/DefaultPieceStorage.h
  8660. * src/PieceStorage.h
  8661. * src/UnknownLengthPieceStorage.cc
  8662. * src/UnknownLengthPieceStorage.h
  8663. * test/DefaultBtProgressInfoFileTest.cc
  8664. * test/MockPieceStorage.h
  8665. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Changed method signature:
  8667. PostDownloadHandler::getNextRequestGroups
  8668. Metalink2RequestGroup::generate
  8669. RequestGroup::postDownloadProcessing
  8670. * src/BtPostDownloadHandler.cc
  8671. * src/BtPostDownloadHandler.h
  8672. * src/Metalink2RequestGroup.cc
  8673. * src/Metalink2RequestGroup.h
  8674. * src/MetalinkPostDownloadHandler.cc
  8675. * src/MetalinkPostDownloadHandler.h
  8676. * src/PostDownloadHandler.h
  8677. * src/RequestGroup.cc
  8678. * src/RequestGroup.h
  8679. * src/RequestGroupMan.cc
  8680. * src/main.cc
  8681. * test/BtPostDownloadHandlerTest.cc
  8682. * test/Metalink2RequestGroupTest.cc
  8683. * test/MetalinkPostDownloadHandlerTest.cc
  8684. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Rewritten AccRequestGroup
  8686. * src/main.cc
  8687. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Rewritten.
  8689. * src/TaggedItem.cc (toTagString)
  8690. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Rewritten Accept-Features handling.
  8692. * src/HttpRequestCommand.cc (createHttpRequest)
  8693. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8694. Rewritten accept types handling.
  8695. * HttpRequest.cc (createRequest)
  8696. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Rewritten
  8698. * src/FeatureConfig.cc (featureSummary)
  8699. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8700. Changed method signature:
  8701. PeerStorage::getActivePeers
  8702. * src/DHTPeerAnnounceEntry.cc
  8703. * src/DefaultPeerStorage.cc
  8704. * src/DefaultPeerStorage.h
  8705. * src/PeerStorage.h
  8706. * test/DefaultPeerStorageTest.cc
  8707. * test/MockPeerStorage.h
  8708. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8709. Changed method signature:
  8710. DHTPeerAnnounceStorage::getPeers,
  8711. DHTPeerAnnounceEntry::getPeers
  8712. * src/DHTGetPeersMessage.cc
  8713. * src/DHTPeerAnnounceEntry.cc
  8714. * src/DHTPeerAnnounceEntry.h
  8715. * src/DHTPeerAnnounceStorage.cc
  8716. * src/DHTPeerAnnounceStorage.h
  8717. * test/DHTAnnouncePeerMessageTest.cc
  8718. * test/DHTPeerAnnounceEntryTest.cc
  8719. * test/DHTPeerAnnounceStorageTest.cc
  8720. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Changed method signature:
  8722. NameResolver::resolve
  8723. * src/DHTEntryPointNameResolveCommand.cc
  8724. * src/InitiateConnectionCommand.cc
  8725. * src/NameResolver.cc
  8726. * src/NameResolver.h
  8727. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8728. Changed method signature:
  8729. PieceStorage::getAdvertisedPieceIndexes
  8730. * src/DefaultBtInteractive.cc
  8731. * src/DefaultPieceStorage.cc
  8732. * src/DefaultPieceStorage.h
  8733. * src/PieceStorage.h
  8734. * src/UnknownLengthPieceStorage.h
  8735. * test/MockPieceStorage.h
  8736. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8737. Changed method signature:
  8738. SegmentMan::getInFlightSegment
  8739. * src/AbstractCommand.cc
  8740. * src/SegmentMan.cc
  8741. * src/SegmentMan.h
  8742. * test/SegmentManTest.cc
  8743. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. Changed method signature:
  8745. DHTAbstractNodeLookupTask::getNodesFromMessage
  8746. * src/DHTAbstractNodeLookupTask.cc
  8747. * src/DHTAbstractNodeLookupTask.h
  8748. * src/DHTNodeLookupTask.cc
  8749. * src/DHTNodeLookupTask.h
  8750. * src/DHTPeerLookupTask.cc
  8751. * src/DHTPeerLookupTask.h
  8752. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8754. * src/AbstractCommand.cc
  8755. * src/BtCheckIntegrityEntry.cc
  8756. * src/BtCheckIntegrityEntry.h
  8757. * src/BtFileAllocationEntry.cc
  8758. * src/BtFileAllocationEntry.h
  8759. * src/BtSetup.cc
  8760. * src/BtSetup.h
  8761. * src/CheckIntegrityCommand.cc
  8762. * src/CheckIntegrityEntry.h
  8763. * src/ChecksumCheckIntegrityEntry.cc
  8764. * src/ChecksumCheckIntegrityEntry.h
  8765. * src/DHTSetup.cc
  8766. * src/DHTSetup.h
  8767. * src/DownloadEngine.cc
  8768. * src/FileAllocationCommand.cc
  8769. * src/FileAllocationEntry.h
  8770. * src/RequestGroup.cc
  8771. * src/RequestGroup.h
  8772. * src/RequestGroupMan.cc
  8773. * src/RequestGroupMan.h
  8774. * src/StreamCheckIntegrityEntry.cc
  8775. * src/StreamCheckIntegrityEntry.h
  8776. * src/StreamFileAllocationEntry.cc
  8777. * src/StreamFileAllocationEntry.h
  8778. * src/TrackerWatcherCommand.cc
  8779. * src/a2functional.h
  8780. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8781. Changed method signature:
  8782. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8783. DHTBucket::getGoodNodes,
  8784. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8785. * src/BNode.cc
  8786. * src/BNode.h
  8787. * src/DHTAbstractNodeLookupTask.cc
  8788. * src/DHTAutoSaveCommand.cc
  8789. * src/DHTBucket.cc
  8790. * src/DHTBucket.h
  8791. * src/DHTBucketRefreshTask.cc
  8792. * src/DHTFindNodeMessage.cc
  8793. * src/DHTGetPeersMessage.cc
  8794. * src/DHTRoutingTable.cc
  8795. * src/DHTRoutingTable.h
  8796. * test/BNodeTest.cc
  8797. * test/DHTBucketTest.cc
  8798. * test/DHTRoutingTableTest.cc
  8799. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8800. In piece selection functions, Pass std::deque<...> by reference rather
  8801. than returning it.
  8802. * src/BitfieldMan.cc
  8803. * src/BitfieldMan.h
  8804. * src/DefaultBtRequestFactory.cc
  8805. * src/DefaultPieceStorage.cc
  8806. * src/Piece.cc
  8807. * src/Piece.h
  8808. * test/BitfieldManTest.cc
  8809. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Implemented rarest piece first piece selection strategy.
  8811. * src/AbstractBtMessage.cc
  8812. * src/AbstractBtMessage.h
  8813. * src/BitfieldMan.cc
  8814. * src/BitfieldMan.h
  8815. * src/BtBitfieldMessage.cc
  8816. * src/BtHaveAllMessage.cc
  8817. * src/BtHaveMessage.cc
  8818. * src/DefaultPieceStorage.cc
  8819. * src/DefaultPieceStorage.h
  8820. * src/PeerInteractionCommand.cc
  8821. * src/PieceStorage.h
  8822. * src/UnknownLengthPieceStorage.h
  8823. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Rewritten readData and writeData.
  8825. * src/MultiDiskAdaptor.cc
  8826. * src/MultiDiskAdaptor.h
  8827. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8828. Move \n out of the message "Usage: ...".
  8829. * src/version_usage.cc
  8830. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. Bump up version number to 0.13.2b.
  8832. * configure.ac
  8833. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8834. Added const qualifier to argument Exception& e.
  8835. * src/Logger.h
  8836. * src/SimpleLogger.cc
  8837. * src/SimpleLogger.h
  8838. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8839. Pool connection when CWD, SIZE command fails.
  8840. * src/FtpNegotiationCommand.cc
  8841. * src/FtpNegotiationCommand.h
  8842. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8844. * src/HttpResponseCommand.cc
  8845. * src/HttpSkipResponseCommand.cc
  8846. * src/HttpSkipResponseCommand.h
  8847. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Pool connection when a server returns 4xx, 5xx responses.
  8849. * src/HttpNullDownloadCommand.cc
  8850. * src/HttpNullDownloadCommand.h
  8851. * src/HttpResponse.cc
  8852. * src/HttpResponse.h
  8853. * src/HttpResponseCommand.cc
  8854. * src/HttpResponseCommand.h
  8855. * test/HttpResponseTest.cc
  8856. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Print usage when no URL is specifed or bad command-line option is
  8858. specified.
  8859. * src/HelpItemFactory.cc
  8860. * src/help_tags.h
  8861. * src/option_processing.cc
  8862. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Removed duplicate log message.
  8864. * src/AbstractCommand.cc (asyncResolveHostname)
  8865. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8867. Changed -j option's default value from 5 to 1.
  8868. Added new examples using protocol auto detection feature.
  8869. Removed -T, -M usage where it can be omitted.
  8870. * doc/aria2c.1.txt
  8871. * doc/aria2c.1.html
  8872. * doc/aria2c.1.txt
  8873. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Updated command-line usage text, so that it tells users that they
  8875. can specify any number of torrent files and metalink files in
  8876. command-line.
  8877. * src/version_usage.cc
  8878. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Changed the default value of -j option to 1.
  8880. * src/HelpItemFactory.cc
  8881. * src/option_processing.cc
  8882. * src/usage_text.h
  8883. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8884. Added the ability to reuse connection in FTP and it is enabled by
  8885. default. It can be disabled by --ftp-reuse-connection=false option.
  8886. * src/Command.cc
  8887. * src/DownloadCommand.cc
  8888. * src/FtpDownloadCommand.cc
  8889. * src/FtpDownloadCommand.h
  8890. * src/FtpFinishDownloadCommand.cc
  8891. * src/FtpFinishDownloadCommand.h
  8892. * src/FtpInitiateConnectionCommand.cc
  8893. * src/FtpNegotiationCommand.cc
  8894. * src/FtpNegotiationCommand.h
  8895. * src/HelpItemFactory.cc
  8896. * src/Makefile.am
  8897. * src/Makefile.in
  8898. * src/OptionHandlerFactory.cc
  8899. * src/option_processing.cc
  8900. * src/prefs.h
  8901. * src/usage_text.h
  8902. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8903. Call Command::transitStatus() before calling Command::execute(),
  8904. so that the status change made in execute() is not cleared.
  8905. * src/DownloadEngine.cc
  8906. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8907. Removed forward declaration of SocketCore class.
  8908. * src/HttpDownloadCommand.h
  8909. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8910. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8911. in InitiateConnectionCommandFactory. They should be set only when
  8912. the protocol is HTTP or HTTPS.
  8913. * src/InitiateConnectionCommandFactory.cc
  8914. * src/RequestGroup.cc
  8915. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8916. Fixed infinite loop in checksum checking.
  8917. * src/IteratableChecksumValidator.cc
  8918. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. Set _supportsPersistentConnection to true by default.
  8920. * src/Request.cc
  8921. * src/RequestGroup.cc
  8922. * test/HttpRequestTest.cc
  8923. * test/RequestTest.cc
  8924. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. Added timeout to socket pool. The default timeout is 15 seconds,
  8926. which is the same value Apache uses.
  8927. * src/DownloadEngine.cc
  8928. * src/DownloadEngine.h
  8929. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8930. Fixed misuse of multimap::find()
  8931. * src/HttpHeader.cc
  8932. * test/HttpHeaderTest.cc
  8933. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8934. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8935. option.
  8936. The asynchronous DNS is not capable of IPv6 yet.
  8937. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8938. least for HTTP download.
  8939. * src/AbstractCommand.cc
  8940. * src/AbstractCommand.h
  8941. * src/AsyncNameResolver.cc
  8942. * src/AsyncNameResolver.h
  8943. * src/DHTEntryPointNameResolveCommand.cc
  8944. * src/DHTEntryPointNameResolveCommand.h
  8945. * src/DownloadEngine.cc
  8946. * src/DownloadEngine.h
  8947. * src/FtpInitiateConnectionCommand.cc
  8948. * src/FtpInitiateConnectionCommand.h
  8949. * src/HelpItemFactory.cc
  8950. * src/HttpInitiateConnectionCommand.cc
  8951. * src/HttpInitiateConnectionCommand.h
  8952. * src/InitiateConnectionCommand.cc
  8953. * src/InitiateConnectionCommand.h
  8954. * src/Makefile.am
  8955. * src/Makefile.in
  8956. * src/NameResolver.cc
  8957. * src/NameResolver.h
  8958. * src/OptionHandlerFactory.cc
  8959. * src/SocketCore.cc
  8960. * src/SocketCore.h
  8961. * src/Util.cc
  8962. * src/Util.h
  8963. * src/option_processing.cc
  8964. * src/prefs.h
  8965. * src/usage_text.h
  8966. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8967. Updated man page: --quiet, --header were added.
  8968. --metalink-servers and --enable-http-keep-alive option were updated.
  8969. * doc/aria2c.1
  8970. * doc/aria2c.1.html
  8971. * doc/aria2c.1.txt
  8972. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Enable HTTP keep-alive by default.
  8974. * src/HelpItemFactory.cc
  8975. * src/option_processing.cc
  8976. * src/usage_text.h
  8977. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8978. Disable http keep-alive if the remote server is not HTTP/1.1.
  8979. * src/HttpConnection.cc
  8980. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8981. Receive content body of 302 response so that the connection can be
  8982. reused later when http keep-alive is enabled.
  8983. * src/HttpNullDownloadCommand.cc
  8984. * src/HttpNullDownloadCommand.h
  8985. * src/HttpResponseCommand.cc
  8986. * src/HttpResponseCommand.h
  8987. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8988. const SharedHandle<Request> -> const SharedHandle<Request>&
  8989. * src/FtpDowndloadCommand.cc
  8990. * src/FtpDowndloadCommand.h
  8991. * src/HttpDownloadCommand.cc
  8992. * src/HttpDownloadCommand.h
  8993. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8994. Fixed the bug that the control file(.aria2 file) is not renamed
  8995. according to tryAutoFileRenaming().
  8996. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8997. its control file exist, use them and continue download.
  8998. The old implementation didn't take into account of control file's
  8999. existence, so basically you couldn't continue download of renamed file.
  9000. * src/BtProgressInfoFile.h
  9001. * src/DefaultBtProgressInfoFile.cc
  9002. * src/DefaultBtProgressInfoFile.h
  9003. * src/NullProgressInfoFile.h
  9004. * src/RequestGroup.cc
  9005. * test/DefaultBtProgressInfoFileTest.cc
  9006. * test/MockBtProgressInfoFile.h
  9007. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9008. Change the default value of --metalink-servers option from `5' to `1'.
  9009. * src/HelpItemFactory.cc
  9010. * src/option_processing.cc
  9011. * src/usage_text.h
  9012. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9013. Reimplemented transparent metalink using Accept request header.
  9014. * src/HttpRequest.cc
  9015. * src/HttpRequest.h
  9016. * src/HttpRequestCommand.cc
  9017. * src/Metalink2RequestGroup.cc
  9018. * src/RequestGroup.cc
  9019. * src/RequestGroup.h
  9020. * test/HttpRequestTest.cc
  9021. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9022. Bump up version number to 0.13.2a
  9023. * configure.ac
  9024. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. Updated configure.ac using the result of autoscan.
  9026. * configure.ac
  9027. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. Fixed compilation error without gcrypt/openssl.
  9029. * src/DownloadCommand.cc
  9030. * src/DownloadCommand.h
  9031. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Reorganized version information so that it can be displayed in a
  9033. standard terminal screen without scrolling.
  9034. Removed http, ftp from Configuration section, because they are always
  9035. enabled.
  9036. * src/FeatureConfig.cc
  9037. * src/FeatureConfig.h
  9038. * src/main.cc
  9039. * src/messageDigest.cc
  9040. * src/messageDigest.h
  9041. * src/version_usage.cc
  9042. * test/FeatureConfigTest.cc
  9043. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Masked user ID in log.
  9045. * src/FtpConnection.cc (sendUser)
  9046. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Removed query part from filename in HTTP download. The query part means
  9048. the substring after "?" in URL. Firefox seems do the same thing.
  9049. A query part is sometimes very long and not suitable to filename,
  9050. so I think it is better to remove it from filename.
  9051. * src/HttpRequest.cc
  9052. * src/HttpRequest.h
  9053. * src/Request.cc
  9054. * src/Request.h
  9055. * test/HttpRequestTest.cc
  9056. * test/RequestTest.cc
  9057. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9058. Rewritten Exception class. Throw exception object, not its pointer and
  9059. catch by reference, so that remove problematic delete operator for
  9060. catched exception.
  9061. * src/Exception.cc
  9062. * src/Exception.h
  9063. * test/ExceptionTest.cc
  9064. * src/*: All files throwing/catching exception.
  9065. * test/*: All files throwing/catching exception.
  9066. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. Now auto protocol detection is enabled without -Z option.
  9068. But there is a important difference between with/without -Z optoin.
  9069. For example, if you type:
  9070. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9071. then, aria2 interprets there are 3 request groups:
  9072. (1) http://host/file, http://mirror/file <-- multi-source download
  9073. (2) file1.torrent
  9074. (3) file2.metalink
  9075. On the other hand, if you invoke above command with -Z option, it is
  9076. interpreted as 4 request groups:
  9077. (1) http://host/file
  9078. (2) file1.torrent
  9079. (3) file2.metalink
  9080. (4) http://mirror/file
  9081. I think usually user don't mix multi-source URLs and torrent files, so
  9082. there is no big problem here.
  9083. * src/main.cc
  9084. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9085. Fixed the bug that causes segmentaion fault when reading XML containing
  9086. unescapsed character like '&'.
  9087. Also a modification was made which avoids adding unnecessary
  9088. characters stack and appending unused string.
  9089. * src/ExpatMetalinkProcessor.cc
  9090. * src/FileMetalinkParserState.h
  9091. * src/FilesMetalinkParserState.h
  9092. * src/FinMetalinkParserState.h
  9093. * src/HashMetalinkParserState.h
  9094. * src/InitialMetalinkParserState.h
  9095. * src/LanguageMetalinkParserState.h
  9096. * src/MetalinkMetalinkParserState.h
  9097. * src/MetalinkParserState.h
  9098. * src/MetalinkParserStateMachine.cc
  9099. * src/MetalinkParserStateMachine.h
  9100. * src/OSMetalinkParserState.h
  9101. * src/PieceHashMetalinkParserState.h
  9102. * src/PiecesMetalinkParserState.h
  9103. * src/ResourcesMetalinkParserState.h
  9104. * src/SizeMetalinkParserState.h
  9105. * src/SkipTagMetalinkParserState.h
  9106. * src/URLMetalinkParserState.h
  9107. * src/VerificationMetalinkParserState.h
  9108. * src/VersionMetalinkParserState.h
  9109. * src/XML2SAXMetalinkProcessor.cc
  9110. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9111. Added StringFormat class, which internally calls vasprintf.
  9112. operator<< is defined for this class, so it can be used with iostream
  9113. classes nicely. SimpleLogger and following functions are rewritten
  9114. using StringFormat class.
  9115. Besides, now Logger class's methods are non-const, many classes
  9116. that has a const Logger* as a member variable are modified to remove
  9117. const qualifier from the variable declaration.
  9118. * src/HelpItemFactory.cc
  9119. * src/Request.cc
  9120. * src/SimpleLogger.cc
  9121. * src/StringFormat.cc
  9122. * src/StringFormat.h
  9123. * src/Util.cc
  9124. * src/option_processing.cc
  9125. * src/version_usage.cc
  9126. * test/StringFormatTest.cc
  9127. * src/*.h: The classes that has const Logger* as a member variable.
  9128. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9129. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9130. failed. Also fixed memory link when exception is thrown there.
  9131. * src/main.cc (AccRequestGroup)
  9132. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Added build-in "Accept-Features" support. For now only "metalink" is
  9134. used in this header field.
  9135. This "metalink" value is removed from the list when connecting URLs
  9136. fed by metalink file to avoid loop in "transparent" metlaink.
  9137. * src/HttpRequest.cc
  9138. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9139. header is also held in this variable. Also renamed setUserHeaders as
  9140. addHeader and it was rewritten to add header not just to clear the old
  9141. value.
  9142. * src/HttpRequestCommand.cc
  9143. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9144. from "Accept-Features" list.
  9145. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9146. default.
  9147. * src/RequestGroup.h
  9148. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9149. * src/a2functional.h: Included <string> because Concat class depends on
  9150. it.
  9151. * test/HttpRequestTest.cc
  9152. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9153. Added comment
  9154. * src/RequestGroup.cc (createNextCommand)
  9155. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. Capitalized METHOD_GET and METHOD_HEAD
  9157. * src/Request.cc
  9158. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9159. Added getDownloadResults() method
  9160. * src/RequestGroupMan.cc
  9161. * src/RequestGroupMan.h
  9162. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9163. Fixed the bug that aria2 exits when commands is empty() but
  9164. _routineCommands are not.
  9165. * src/DownloadEngine.cc
  9166. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Use the default value pulled from Option object in HelpItemFactory.
  9168. except options whose defualt value is embedded in a usage text.
  9169. * src/HelpItemFactory.cc
  9170. * src/HelpItemFactory.h
  9171. * src/option_processing.cc
  9172. * src/version_usage.cc
  9173. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9174. Added --quiet option to make aria2 quiet (no console output).
  9175. --quiet option is tagged with ADVANCED.
  9176. * src/HelpItemFactory.cc
  9177. * src/LogFactory.cc
  9178. * src/LogFactory.h
  9179. * src/MultiUrlRequestInfo.cc
  9180. * src/MultiUrlRequestInfo.h
  9181. * src/NullStatCalc.h: New class. This class prints nothing.
  9182. * src/OptionHandlerFactory.cc
  9183. * src/main.cc
  9184. * src/option_processing.cc
  9185. * src/prefs.h
  9186. * src/usage_text.h
  9187. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9188. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9189. * src/HelpItemFactory.cc (createHelpItems):
  9190. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9191. Fixed compilation error in ExpatMetalinkProcessor.cc
  9192. * src/ExpatMetalinkProcessor.cc
  9193. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9194. Reuse socket if the origin server supports HTTP keep-alive and
  9195. --enable-http-keep-alive or --enable-http-pipelining is given.
  9196. The current implementation doesn't reuse the connections established
  9197. against proxy server.
  9198. * src/AbstractCommand.cc
  9199. * src/DownloadEngine.cc
  9200. * src/DownloadEngine.h
  9201. * src/HttpDownloadCommand.cc
  9202. * src/HttpInitiateConnectionCommand.cc
  9203. * src/HttpResponseCommand.cc
  9204. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Rewritten HTTP keep-alive and pipelining routine.
  9206. * src/AbstractCommand.cc
  9207. * src/HttpConnection.cc
  9208. * src/HttpDownloadCommand.cc
  9209. * src/HttpRequest.cc
  9210. * src/HttpRequestCommand.cc
  9211. * src/HttpResponseCommand.cc
  9212. * src/Request.cc
  9213. * src/Request.h
  9214. * src/RequestGroup.cc
  9215. * test/HttpRequestTest.cc
  9216. * test/HttpResponseTest.cc
  9217. * test/RequestTest.cc
  9218. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. Added missing setUserHeaders call
  9220. * src/HttpRequestCommand.cc
  9221. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9222. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9223. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9224. waste of time because it is more likey false.
  9225. * src/FileAllocationDispatcherCommand.cc (execute)
  9226. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Now HTTP status and version are a member variable of HttpHeader.
  9228. HTTP status is processed as a string, not integer.
  9229. * src/AbstractProxyResponseCommand.cc
  9230. * src/HttpConnection.cc
  9231. * src/HttpHeader.cc
  9232. * src/HttpHeader.h
  9233. * src/HttpHeaderProcessor.cc
  9234. * src/HttpHeaderProcessor.h
  9235. * src/HttpResponse.cc
  9236. * src/HttpResponse.h
  9237. * test/HttpHeaderProcessorTest.cc
  9238. * test/HttpResponseTest.cc
  9239. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9240. Added --header option. You can specify any number of additional HTTP headers
  9241. like:
  9242. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9243. Unlike other commad-line option, you can use --header option multiple times.
  9244. * src/HelpItemFactory.cc
  9245. * src/HttpRequest.{cc, h}
  9246. * src/HttpRequestCommand.cc
  9247. * src/OptionHandlerFactory.cc
  9248. * src/OptionHandlerImpl.h
  9249. * src/option_processing.cc
  9250. * src/prefs.h
  9251. * src/usage_text.h
  9252. * test/HttpRequestTest.cc (testUserHeaders)
  9253. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. Eliminates the time lag between sequential downloads and commands in
  9255. the same RequestGroup.
  9256. In old implementation, aria2 occasionally waits 1 seconds before
  9257. executing next command or RequestGroup.
  9258. This is really a waste of time, and new implementation eliminates
  9259. this unnecessary time lag.
  9260. * src/AbstractCommand.cc
  9261. * src/AutoSaveCommand.cc
  9262. * src/CheckIntegrityCommand.cc
  9263. * src/Command.{cc, h}
  9264. * src/DownloadEngine.{cc, h}
  9265. * src/DownloadEngineFactory.cc
  9266. * src/FileAllocationCommand.cc
  9267. * src/FileAllocationDispatcherCommand.cc
  9268. * src/FillRequestGroupCommand.cc
  9269. * src/FtpInitiateConnectionCommand.cc
  9270. * src/HaveEraseCommand.cc
  9271. * src/HttpInitiateConnectionCommand.cc
  9272. * src/HttpResponseCommand.cc
  9273. * src/RealtimeCommand.cc
  9274. * src/RequestGroup.cc
  9275. * src/RequestGroupMan.cc
  9276. * src/StreamFileAllocationEntry.cc
  9277. * src/TimeBasedCommand.{cc, h}
  9278. * src/TimedHaltCommand.cc
  9279. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9280. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9281. keyword explicit and SharedHandle's default constructor initializes
  9282. its internal obj to null, old implementation initializes it using
  9283. obj's default constructor.
  9284. To assign null, write SharedHandle<T> x(...); x.reset();
  9285. TODO: test/SharedHandleTest.cc needs more tests.
  9286. * src/SharedHandle.h
  9287. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. Fixed type in man page.
  9289. * doc/aria2c.1.txt
  9290. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9291. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9292. * src/SimpleLogger.{cc, h}
  9293. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9294. Implemented auto protocol detection.
  9295. Now you can do:
  9296. aria2c -Z http://host/file file1.torrent file2.metalink
  9297. (Note: -Z option is required for auto protcol detection.)
  9298. Then aria2c downloads 3 files simultaneously:
  9299. 1. http://host/file
  9300. 2. file1.torrent <-- read local torrent file
  9301. 3. file2.metalink <-- read local Metalink file.
  9302. Same thing goes with -i option. Assume your uris.txt contans:
  9303. http://host/file
  9304. file1.torrent
  9305. file2.metalink
  9306. Then you can do: aria2c -i uris.txt
  9307. (Note: -Z option is not needed if -i option is given.)
  9308. * src/main.cc
  9309. * src/ProtocolDetector.{cc, h}
  9310. * test/ProtocolDetectorTest.cc
  9311. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9312. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9313. installed
  9314. * src/ARC4Encryptor.h
  9315. * src/ARC4Decryptor.h
  9316. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9317. Renamed argument from 'errno' to 'err', since errno is confused with
  9318. errno defined in errno.h.
  9319. * src/LibgcryptARC4Decryptor.h
  9320. * src/LibgcryptARC4Context.h
  9321. * src/LibgcryptDHKeyExchange.h
  9322. * src/LibgcryptARC4Encryptor.h
  9323. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9324. Rewritten choking algorithm.
  9325. * src/PeerChokeCommand.{cc, h}
  9326. * src/BtInterestedMessage.cc
  9327. * src/PeerSessionResource.{cc, h}
  9328. * src/DefaultPeerStorage.{cc, h}
  9329. * src/BtNotInterestedMessage.cc
  9330. * src/DefaultBtMessageDispatcher.{cc, h}
  9331. * src/BtMessageDispatcher.h
  9332. * src/Peer.{cc, h}
  9333. * src/BtLeecherStateChoke.{cc, h}
  9334. * src/BtSetup.cc
  9335. * src/BtSeederStateChoke.{cc, h}
  9336. * src/PeerStorage.h
  9337. * test/MockPeerStorage.h
  9338. * test/MockBtMessageDispatcher.h
  9339. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9340. Fixed compilation error on x84-64 platform.
  9341. * src/AuthConfig.cc: Included ostream.
  9342. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Rewritten getBasename() and getDirname(), without standard library
  9344. basename(), dirname().
  9345. * src/File.cc
  9346. * test/FileTest.cc
  9347. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9348. Added Simplified Chinese translation. Also updated the following
  9349. translations: Polish, Dutch, German. Great thanks to all translators.
  9350. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9351. Suppress content-range error when 'Content-Range' response header
  9352. doesn't contains bytes-unit specifier 'bytes'
  9353. * src/HttpHeader.cc (getRange)
  9354. * test/HttpHeaderTest.cc
  9355. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9356. Fixed compilation error with g++-4.3
  9357. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Added missing include files for MinGW
  9359. * test/HttpHeaderProcessorTest.cc
  9360. * test/DHTRoutingTableSerializerTest.cc
  9361. * test/DHTRoutingTableDeserializerTest.cc
  9362. * test/UriListParserTest.cc
  9363. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9364. Now download line is printed nicely with no garbage at the end of
  9365. line. I use ioctl to get the columns of terminal.
  9366. If stdout is redirected to another device, instead of carriage return,
  9367. end of line '\n' character is used. This is feature request#1909659
  9368. * src/ConsoleStatCalc.cc (calculateStat)
  9369. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9370. Included a2time.h
  9371. * src/DHTMessageDispatcher.h
  9372. * src/DHTMessageEntry.h
  9373. * src/DHTReplaceNodeTask.h
  9374. * src/DHTMessageTracker.h
  9375. * src/Util.h
  9376. * src/CookieBox.h
  9377. * src/SocketCore.h
  9378. * src/DefaultBtMessageDispatcher.h
  9379. * src/SocketCore.cc
  9380. * src/Util.cc
  9381. * src/DHTPingTask.h
  9382. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9383. Fixed high memory footprint when DHT is enabled.
  9384. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9385. queued than it is processed and the queue is getting longer. As a
  9386. consequence, momory usage is increased.
  9387. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9388. replacement cache in DHTBucket which is described in Kademlia paper.
  9389. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9390. DHTReplaceNodeTask.
  9391. * src/DHTBucket.{h, cc}
  9392. (cacheNode): New function.
  9393. (getCachedNodes): New function.
  9394. (dropNode): Push back cached node to _nodes.
  9395. * test/DHTBucketTest.cc
  9396. (testCacheNode): New test
  9397. (testDropNode): New test
  9398. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9400. the unused 4KB memory when ssl is not used.
  9401. * src/SocketCore.cc
  9402. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9403. Added summary log for peer announce storage.
  9404. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9405. Removed cast
  9406. * src/DefaultPeerStorage.cc (addPeer)
  9407. Log exception message
  9408. * src/DHTMessageTracker.cc (handleTimeout)
  9409. Fixed casting
  9410. * test/HttpRequestTest.cc
  9411. * test/MetalinkProcessorTest.cc
  9412. * test/PieceTest.cc
  9413. * test/MetalinkEntryTest.cc
  9414. * test/SequenceTest.cc
  9415. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9416. * src/ParameterizedStringParser.cc (createLoop):
  9417. Removed unused variable sstep.
  9418. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9419. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9420. * src/Util.{h, cc}
  9421. (parseUInt): New function.
  9422. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9423. The actual range is uint32_t.
  9424. * test/UtilTest.cc
  9425. * src/ParameterizedStringParser.cc:
  9426. Use Util::parseUInt() for loop variables.
  9427. * test/ParameterizedStringParserTest.cc
  9428. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9429. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Rewritten the functions for binding port.
  9431. * src/DHTConnectionImpl.{h, cc}
  9432. * src/PeerListenCommand.{h, cc}
  9433. * src/DHTSetup.cc
  9434. * src/BtSetup.cc
  9435. * test/DHTConnectionImplTest.cc
  9436. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9437. type cleanup for allmost all remaining files.
  9438. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9439. Type clarification
  9440. * src/PeerSessionResource.{h, cc}
  9441. * src/DefaultPieceStorage.{h, cc}
  9442. * src/Peer.{h, cc}
  9443. * test/PeerSessionResourceTest.cc
  9444. Use div function
  9445. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9446. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. Type clarification
  9448. * src/DefaultPeerStorage.{h, cc}
  9449. * test/DefaultPeerStorageTest.cc
  9450. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9451. Type clarification: size_t for length or size, uint64_t for file
  9452. length, off_t for file offset.
  9453. * src/DefaultBtProgressInfoFile.cc
  9454. * src/DefaultBtContext.{h, cc}
  9455. * src/DefaultBtInteractive.cc
  9456. * src/DownloadCommand.{h, cc}
  9457. * src/IteratableChunkChecksumValidator.{h, cc}
  9458. * src/SegmentMan.{h, cc}
  9459. * src/SingleFileDownloadContext.{h, cc}
  9460. * src/IteratableChecksumValidator.{h, cc}
  9461. * src/BtContext.h
  9462. * src/IteratableValidator.h
  9463. * src/DownloadContext.h
  9464. * test/SingleFileDownloadContextTest.cc
  9465. * test/DefaultBtContextTest.cc
  9466. * test/MockBtContext.h
  9467. * test/Metalink2RequestGroupTest.cc
  9468. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9469. Type clarification: size_t for length or size, uint64_t for file
  9470. length, off_t for file offset.
  9471. * src/PiecedSegment.cc
  9472. * src/GrowSegment.h
  9473. * src/DefaultBtRequestFactory.h
  9474. * src/DefaultBtProgressInfoFile.cc
  9475. * src/UnknownLengthPieceStorage.h
  9476. * src/DefaultPieceStorage.cc
  9477. * src/UnknownLengthPieceStorage.cc
  9478. * src/DefaultBtInteractive.cc
  9479. * src/GrowSegment.cc
  9480. * src/BitfieldMan.h
  9481. * src/DownloadCommand.cc
  9482. * src/BtRequestFactory.h
  9483. * src/PiecedSegment.h
  9484. * src/DefaultPieceStorage.h
  9485. * src/Piece.cc
  9486. * src/DefaultBtRequestFactory.cc
  9487. * src/PieceStorage.h
  9488. * src/Segment.h
  9489. * src/Piece.h
  9490. * src/BitfieldMan.cc
  9491. * src/Util.cc
  9492. * test/DefaultBtProgressInfoFileTest.cc
  9493. * test/DefaultPieceStorageTest.cc
  9494. * test/MockPieceStorage.h
  9495. * test/BtRequestMessageTest.cc
  9496. * test/DefaultBtMessageDispatcherTest.cc
  9497. * test/BitfieldManTest.cc
  9498. * test/GrowSegmentTest.cc
  9499. * test/PieceTest.cc
  9500. * test/SegmentTest.cc
  9501. * test/SegmentManTest.cc
  9502. * test/DefaultBtRequestFactoryTest.cc
  9503. * test/MockBtRequestFactory.h
  9504. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. Fixed compilation error with --disable-nls
  9506. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9507. in gettext.h causes the problem.
  9508. * src/common.h
  9509. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9510. Removed subPiece related functions.
  9511. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9512. * src/DefaultPieceStorage.{h, cc}
  9513. * test/PieceTest.cc
  9514. * test/DefaultPieceStorageTest.cc
  9515. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9516. Use unsigned char for data store.
  9517. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. Bump up version number to 0.13.0+1
  9519. * configure.ac
  9520. * Release 0.13.0+1
  9521. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9522. Changed inactive connection timeout to 120.
  9523. To accept more mulually interested peers, disconnect peer when there
  9524. is no interest between us after certain time passed.
  9525. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9526. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9527. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9528. when compiled with async DNS support.
  9529. * src/DownloadEngine.cc
  9530. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9531. value '10' will be a little bit short when some DNS servers are
  9532. offline and several DNS servers are tried. It should be configured
  9533. by command-line option.
  9534. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Merged Ross's mingw patch.
  9536. * src/DHTRoutingTableDeserializer.cc
  9537. * src/DHTRoutingTableSerializer.cc
  9538. * src/Platform.{h, cc}
  9539. * src/timegm.h
  9540. * src/gettimeofday.h
  9541. * src/getaddrinfo.h
  9542. * src/SocketCore.h
  9543. * src/common.h
  9544. * src/inet_aton.h
  9545. * src/DownloadEngine.h
  9546. * src/gai_strerror.h
  9547. * src/a2netcompat.h
  9548. * configure.ac
  9549. * configure
  9550. * aclocal.m4
  9551. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Included missing iostream.
  9553. * test/AllTest.cc
  9554. * test/BtDependencyTest.cc
  9555. * test/BtExtendedMessageTest.cc
  9556. * test/DHTConnectionImplTest.cc
  9557. * test/DHTMessageFactoryImplTest.cc
  9558. * test/DHTMessageTrackerEntryTest.cc
  9559. * test/DHTNodeTest.cc
  9560. * test/DHTRoutingTableSerializerTest.cc
  9561. * test/DefaultBtAnnounceTest.cc
  9562. * test/DefaultBtContextTest.cc
  9563. * test/DefaultBtMessageFactoryTest.cc
  9564. * test/DefaultExtensionMessageFactoryTest.cc
  9565. * test/HandshakeExtensionMessageTest.cc
  9566. * test/HttpResponseTest.cc
  9567. * test/MetalinkProcessorTest.cc
  9568. * test/MultiFileAllocationIteratorTest.cc
  9569. * test/SocketCoreTest.cc
  9570. * test/UTPexExtensionMessageTest.cc
  9571. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9572. Reorganized includes.
  9573. * src/NameResolver.cc
  9574. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9575. Fixed compilation error without ares/c-ares
  9576. * src/NameResolver.h:
  9577. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9578. Added a test for large file.
  9579. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9580. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9581. Fixed the bug that file size is ignored if size > INT32_MAX
  9582. * src/SizeMetalinkParserState.cc (endElement):
  9583. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9584. Bump up version number to 0.13.0
  9585. * configure.ac
  9586. * Release 0.13.0
  9587. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Updated Makfefile.am to make 'make dist' work.
  9589. Now packaged filename is aria2c-VERSION.tar.bz2.
  9590. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9591. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9592. Large file support is now configured by configure script.
  9593. * configure.ac
  9594. Removed unsused source files
  9595. * src/
  9596. * test/
  9597. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9598. Peer.h and BtContext.h respectively.
  9599. * src/Peer.h
  9600. * src/BtContext.h
  9601. Updated translations.
  9602. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9603. translations. Great thanks to all translators!;)
  9604. * po/*.{po, gmo}
  9605. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9606. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9607. statically declared sha1 MessageDigestContext.
  9608. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9609. initialization of short-lived MessageDigestContext.
  9610. * src/MessageDigestHelper.{h, cc}
  9611. * src/main.cc
  9612. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9613. the initialization of MessageDigestContext every time in validating
  9614. chunk checksum.
  9615. * src/DownloadCommand.{h, cc}
  9616. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9617. Add a file descriptor which connected to fast peer(latency<1500) to
  9618. select(). This change reduced CPU load.
  9619. * src/PeerInteractionCommand.cc
  9620. * src/DefaultBtInteractive.{h, cc}
  9621. * src/BtInteractive.h
  9622. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. Fixed the previous insufficient fix for possible busy loop.
  9624. * src/MSEHandshake.cc (identifyHandshakeType)
  9625. Removed unused functions.
  9626. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9627. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9628. Fixed possible busy loop if first 20 bytes are not received for a few
  9629. minutes.
  9630. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9631. * src/ReceiverMSEHandshakeCommand.cc
  9632. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9633. Fixed compilation error
  9634. * src/ExpatMetalinkProcessor.cc
  9635. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9637. * src/DHTBucket.cc
  9638. Removed unnecessary cast.
  9639. * src/HandshakeExtensionMessage.cc
  9640. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9641. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9642. is missing.
  9643. * src/OptionHandlerFactory.cc
  9644. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9645. Fixed the bug that HAVE message is not sent for a piece they are
  9646. downloaded fom http/ftp server before any BitTorrent handshake is done
  9647. with peers.
  9648. * src/DefaultBtInteractive.cc
  9649. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9650. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9651. * src/Makefile.am
  9652. * src/Makefile.in
  9653. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Updated README. Added html version of README and man page.
  9655. * README
  9656. * README.html
  9657. * readme2html: Shell script to generate README.html from README using
  9658. asciidoc.
  9659. * doc/aria2c.1.html
  9660. * doc/makeman: Added the line to generate aria2c.1.html
  9661. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9662. Fixed offset calculation.
  9663. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9664. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9665. Rewritten itos and uitos using template. llitos and ullitos are
  9666. replaced with itos and uitos respectively.
  9667. * src/Util.{h, cc}
  9668. * test/UtilTest.cc
  9669. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9671. of the number of bytes required for storing public key and shared
  9672. secret.
  9673. * src/LibgcryptDHKeyExchange.h
  9674. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9675. * src/MSEHandshake.cc
  9676. * test/DHKeyExchangeTest.cc
  9677. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9678. Removed since they are not used.
  9679. * src/Xml2MetalinkProcessor.{h, cc}
  9680. * src/Socket.cc
  9681. * src/SegmentSplitter.{h, cc}
  9682. * test/Xml2MetalinkProcessorTest.cc
  9683. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Fixed the bug that prevents aria2 from stopping other than by pressing
  9685. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9686. option. aria2 doesn't stop even after --seed-time is satisfied and
  9687. continues to output blank lines in the console.
  9688. * src/ReceiverMSEHandshakeCommand.cc
  9689. * src/PeerReceiveHandshakeCommand.cc
  9690. * src/PeerListenCommand.cc
  9691. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9692. Bump up version number to 0.13.0rc
  9693. * configure.ac
  9694. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9695. Updated man page and some usage text.
  9696. * doc/aria2c.1.txt
  9697. * src/usage_text.h
  9698. * po/*.{po, gmo}
  9699. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9700. Updated translations. Added Finnish and Hebrew translations.
  9701. Great thanks to all translators!
  9702. * po/*.{po, gmo}
  9703. * po/LINGUAS
  9704. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. Log more detailed information about each message.
  9706. * src/DHTQueryMessage.{h, cc}
  9707. * src/DHTGetPeersMessage.{h, cc}
  9708. * src/DHTFindNodeReplyMessage.{h, cc}
  9709. * src/DHTGetPeersReplyMessage.{h, cc}
  9710. * src/DHTAnnouncePeerMessage.{h, cc}
  9711. * src/DHTResponseMessage.{h, cc}
  9712. * src/DHTFindNodeMessage.{h, cc}
  9713. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9714. Use constants defined in prefs.h
  9715. * src/option_processing.cc
  9716. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9717. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9718. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9719. Make room for future enchancements for IPv6 addresses.
  9720. Bump up version number of dht.dat file format to 2.
  9721. Not compatible with previous version.
  9722. * src/DHTRoutingTableSerializer.cc
  9723. * src/DHTRoutingTableDeserializer.cc
  9724. * test/DHTRoutingTableSerializerTest.cc
  9725. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. Added handling for the return values from
  9727. PeerMessageUtil::createcompact().
  9728. * src/DefaultBtContext.cc (computeFastSet):
  9729. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9730. Fixed abort when peer's ip address is IPv4-mapped address.
  9731. * src/DefaultBtContext.cc (computeFastSet)
  9732. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9733. cannot handle IPv4-mapped addresses.
  9734. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9735. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9736. Proper return value handling for OpenSSL functions.
  9737. * src/LibsslDHKeyExchange.h
  9738. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9739. Random bytes generation using libgcrypt and OpenSSL.
  9740. * src/DHTUtil.{h, cc}
  9741. * test/DHTUtilTest.cc
  9742. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9744. received.
  9745. * src/DHTMessageReceiver.cc (receiveMessage)
  9746. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Fixed the bug that a return code is always 0. BUG#1897704
  9748. If error occurred during the download or there exist unfinished
  9749. downloads, aria2 returns with code 1.
  9750. * src/RequestGroupMan.{h, cc}
  9751. * src/MultiUrlRequestInfo.{h, cc}
  9752. * src/main.cc
  9753. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9754. IPv6 support for SocketCore class.
  9755. TODO: In SocketCore::establishConnection(), this is insufficient to
  9756. determin the failure of connect() here because the socket is
  9757. non-blocking state. The next addresses should be tried after select().
  9758. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9759. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9760. instead which address family independent.
  9761. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9762. information in a compact peer format which is for IPv4 only.
  9763. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9764. this is a spec of BitTorrent protocol.
  9765. * src/SocketCore.{h, cc}
  9766. * src/PeerMessageUtil.cc
  9767. * test/SocketCoreTest.cc
  9768. * test/PeerMessageUtilTest.cc
  9769. * test/DHTConnectionImplTest.cc
  9770. Handle IPv4-mapped addresses.
  9771. * src/DHTNode.cc: Now identity is determined by node id.
  9772. * src/DHTMessageTrackerEntry.cc
  9773. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9774. should handle it.
  9775. * src/DHTRoutingTableDeserializer.cc
  9776. * src/DHTMessageFactoryImpl.cc
  9777. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9778. Change the unit of --stop option from a minute to a second.
  9779. * src/usage_text.h
  9780. * src/DownloadEngineFactory.cc
  9781. * src/OptionHandlerFactory.cc
  9782. * src/message.h
  9783. * src/TimedHaltCommand.cc
  9784. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9785. Make listening socket non-block mode.
  9786. * src/FtpConnection.cc
  9787. * src/FtpNegotiationCommand.{h, cc}
  9788. * src/PeerListenCommand.cc
  9789. Fixed the bug that cause slow ftp negotiation.
  9790. * src/FtpNegotiationCommand.{h, cc}
  9791. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9792. Added basic tag to --enable-dht, --dht-listen-port option.
  9793. * src/HelpItemFactory.cc (createHelpItems)
  9794. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9795. Updated text.
  9796. * src/usage_text.h
  9797. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9798. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9799. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9800. Determin _threadtholdSpeed in each constructor for
  9801. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9802. * src/ActivePeerConnectionCommand.{h, cc}
  9803. * src/PeerReceiveHandshakeCommand.{h, cc}
  9804. * src/BtSetup.cc
  9805. * src/BtConstants.h
  9806. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9807. Added --bt-min-crypto-level and --bt-require-crypto options.
  9808. * src/OptionHandlerFactory.cc
  9809. * src/MSEHandshake.cc
  9810. * src/HelpItemFactory.cc
  9811. * src/option_processing.cc
  9812. * src/ReceiverMSEHandshakeCommand.cc
  9813. * src/prefs.h
  9814. * src/DefaultBtAnnounce.cc
  9815. * src/InitiatorMSEHandshakeCommand.cc
  9816. * src/usage_text.h
  9817. * test/MSEHandshakeTest.cc
  9818. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9819. Bump version number to 0.13.0b
  9820. * configure.ac
  9821. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9822. Updated doc.
  9823. * src/MessageDigestHelper.h:
  9824. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9825. Use raw message digest as a token instead of its hexadecimal
  9826. representation.
  9827. * src/DHTTokenTracker.cc (generateToken)
  9828. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Added Message Stream Encryption(MSE) support.
  9830. Currently, aria2 accepts incoming connections with Obfuscation Header
  9831. and legacy BitTorrent Header and establishes connections with
  9832. Obfuscation Header first and if failed then retry with legacy
  9833. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9834. choose ARC4. The new option to change the default behavior is planned.
  9835. For tracker extension, "supportcrypto=1" is added statically.
  9836. * src/PeerInitiateConnectionCommand.{h, cc}
  9837. * src/PeerConnection.{h, cc}
  9838. * src/HandleRegistry.h
  9839. * src/SocketCore.h
  9840. * src/PeerReceiveHandshakeCommand.{h, cc}
  9841. * src/BtRegistry.{h, cc}
  9842. * src/PeerListenCommand.cc
  9843. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9844. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9845. * src/MSEHandshake.{h, cc}
  9846. * src/ARC4Encryptor.h
  9847. * src/ARC4Decryptor.h
  9848. * src/LibgcryptARC4Encryptor.h
  9849. * src/LibgcryptARC4Decryptor.h
  9850. * src/LibgcryptARC4Context.h
  9851. * src/LibsslARC4Encryptor.h
  9852. * src/LibsslARC4Decryptor.h
  9853. * src/LibsslARC4Context.h
  9854. * src/DHKeyExchange.h
  9855. * src/LibgcryptDHKeyExchange.h
  9856. * src/LibsslDHKeyExchange.h
  9857. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9858. * test/DefaultBtAnnounceTest.cc
  9859. * test/ARC4Test.cc
  9860. * test/DHKeyExchangeTest.cc
  9861. Removed prepareForRetry() because it is not used.
  9862. * src/PeerAbstractCommand.{h, cc}
  9863. * src/PeerInteractionCommand.{h, cc}
  9864. * src/PeerInitiateConnectionCommand.{h, cc}
  9865. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. Added the ability to load nodes from torrent file. These nodes are
  9867. added to the routing table when downloading that torrent.
  9868. * src/BtContext.h
  9869. * src/DefaultBtContext.{h, cc}
  9870. * src/DHTSetup.cc
  9871. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9872. hostname and port pair, and resolves all of them.
  9873. * src/NameResolver.{h, cc}: Added reset().
  9874. * src/RequestGroup.cc
  9875. * test/DefaultBtContextTest.cc
  9876. * test/MockBtContext.h
  9877. Removed assert() from DefaultBtContext and throw exception instead.
  9878. * src/DefaultBtContext.cc
  9879. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Fixed segmentation fault bug when exiting if dht is disabled.
  9881. * src/RequestGroup.cc
  9882. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Fixed typo in log message and define the message in message.h
  9884. * src/TimedHaltCommand.cc
  9885. * src/message.h
  9886. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9887. Included RecoverableException.h to fix compilation error.
  9888. * test/DHTMessageFactoryImplTest.cc
  9889. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9890. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9891. * test/DHTPingMessageTest.cc
  9892. * test/DHTGetPeersMessageTest.cc
  9893. * test/DHTFindNodeMessageTest.cc
  9894. * test/DHTAnnouncePeerMessageTest.cc
  9895. * test/MockDHTMessage.h
  9896. * test/MockDHTMessageFactory.h
  9897. * test/MockDHTMessageDispatcher.h: New class.
  9898. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9899. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9900. virtual.
  9901. * src/DHTMessageDispatcher.h
  9902. * src/DHTMessageDispatcherImpl.{h, cc}
  9903. * src/DHTSetup.cc
  9904. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9905. Adding handling of DHT error message. Just log error message and
  9906. throw exception.
  9907. * src/DHTMessageFactoryImpl.cc
  9908. * test/DHTMessageFactoryImplTest.cc
  9909. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9910. Added handling of dynamic cast failure.
  9911. * src/DHTNodeLookupTask.cc
  9912. * src/DHTPeerLookupTask.cc
  9913. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9914. Added the ability to stop aria2 itself when given time has passed
  9915. from start. Use --stop option to specify time in minutes.
  9916. When 0 is given, this feature is disabled.
  9917. * src/OptionHandlerFactory.cc
  9918. * src/TimeBasedCommand.h: Make _interval protected scope.
  9919. * src/HelpItemFactory.cc
  9920. * src/option_processing.cc
  9921. * src/prefs.h
  9922. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9923. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9924. Without this modification, the result list shows "ERR" when aria2 is
  9925. stopped by --stop option. It should be "INPR".
  9926. * src/DownloadEngine.{h, cc}
  9927. * src/DownloadEngineFactory.cc
  9928. * src/usage_text.h
  9929. * src/TimedHaltCommand.{h, cc}: New class.
  9930. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Bootstrap through node added by port message.
  9932. Currently bootstrap is executed if the number of buckets in routing
  9933. table is 1.
  9934. * src/BtPortMessage.{h, cc}
  9935. * src/DefaultBtMessageFactory.{h, cc}
  9936. * src/PeerInteractionCommand.cc
  9937. * test/BtPortMessageTest.cc
  9938. * test/MockDHTTask.h
  9939. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9940. Extract the Peer class's member variables, which are only needed after
  9941. PeerInteractionCommand, into PeerSessionResource class.
  9942. This class is instantiated in PeerInteractionCommand class's ctor and
  9943. released in its dtor.
  9944. This will make Peer class lightweight and uses less memory for peers
  9945. which are not connected and wait in the queue.
  9946. * src/PeerChokeCommand.cc
  9947. * src/PeerSessionResource.{h, cc}
  9948. * src/PeerInteractionCommand.cc
  9949. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9950. * src/DefaultBtInteractive.cc
  9951. * src/BtPieceMessage.cc
  9952. * src/BtInterestedMessage.cc
  9953. * src/BtUnchokeMessage.cc
  9954. * src/DefaultPeerStorage.{h, cc}
  9955. * src/PeerInitiateConnectionCommand.cc
  9956. * src/ActivePeerConnectionCommand.cc
  9957. * src/BtNotInterestedMessage.cc
  9958. * src/DefaultBtMessageDispatcher.cc
  9959. * src/BtChokeMessage.cc
  9960. * src/BtRequestMessage.cc
  9961. * src/Peer.{h, cc}
  9962. * src/BtRegistry.h
  9963. * src/TrackerWatcherCommand.cc
  9964. * src/PeerReceiveHandshakeCommand.cc
  9965. * test/BtExtendedMessageTest.cc
  9966. * test/BtAllowedFastMessageTest.cc
  9967. * test/BtCancelMessageTest.cc
  9968. * test/DefaultPieceStorageTest.cc
  9969. * test/BtBitfieldMessageTest.cc
  9970. * test/BtHaveMessageTest.cc
  9971. * test/BtNotInterestedMessageTest.cc
  9972. * test/BtRequestMessageTest.cc
  9973. * test/PeerSessionResourceTest.cc
  9974. * test/DefaultBtMessageDispatcherTest.cc
  9975. * test/PeerTest.cc
  9976. * test/BtInterestedMessageTest.cc
  9977. * test/BtRejectMessageTest.cc
  9978. * test/BtChokeMessageTest.cc
  9979. * test/DefaultPeerStorageTest.cc
  9980. * test/BtHaveNoneMessageTest.cc
  9981. * test/BtHaveAllMessageTest.cc
  9982. * test/DefaultExtensionMessageFactoryTest.cc
  9983. * test/BtUnchokeMessageTest.cc
  9984. * test/DefaultBtMessageFactoryTest.cc
  9985. * test/HandshakeExtensionMessageTest.cc
  9986. * test/UTPexExtensionMessageTest.cc
  9987. * test/DefaultBtRequestFactoryTest.cc
  9988. * test/BtPieceMessageTest.cc
  9989. Removed typedef PeerStats.
  9990. * src/PeerStat.h
  9991. * src/SegmentMan.cc
  9992. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9993. Added std namespace to copy, remove_copy, back_inserter,
  9994. front_inserter.
  9995. * src/RequestGroupMan.cc
  9996. * src/DefaultPieceStorage.cc
  9997. * src/StreamFileAllocationEntry.cc
  9998. * src/BtFileAllocationEntry.cc
  9999. * src/RequestGroup.cc
  10000. * src/MetalinkEntry.cc
  10001. * src/DelegatingPeerListProcessor.cc
  10002. * src/DefaultBtRequestFactory.cc
  10003. * src/DefaultBtMessageDispatcher.cc
  10004. * src/version_usage.cc: Included <algorithm>
  10005. * src/main.cc
  10006. * src/MetalinkParserController.cc
  10007. * src/DefaultBtContext.cc
  10008. * src/DownloadEngineFactory.cc
  10009. * src/a2algo.h
  10010. Removed.
  10011. * test/StreamUriListParserTest.cc
  10012. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10013. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10014. ActivePeerConnectionCommand when it is given and
  10015. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10016. * src/ActivePeerConnectionCommand.{h, cc}
  10017. * src/BtSetup.cc
  10018. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10019. Only add socket to DownloadEngine's select routine when peer or
  10020. localhost is unchoked and interested. This lowers CPU usage a
  10021. little bit.
  10022. * src/PeerInteractionCommand.cc
  10023. * src/PeerAbstractCommand.{h, cc}
  10024. * src/BtInteractive.h
  10025. * src/DefaultBtInteractive.{h, cc}
  10026. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10027. Revert previous change because get_peers message is needed for
  10028. announce_peer anyway.
  10029. * src/DHTGetPeersCommand.cc
  10030. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10031. Request peers thought DHT only when download hasn't finished.
  10032. * src/DHTGetPeersCommand.cc
  10033. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10034. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10035. * src/DHTBucketRefreshTask.{h, cc}
  10036. * src/DHTSetup.cc
  10037. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10038. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10039. standard classes.
  10040. Included string.h where mem* function are used.
  10041. Added namespace aria2.
  10042. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10043. Create directory before saving DHT routing table.
  10044. Now ios::failure is now handled properly.
  10045. * src/DHTAutoSaveCommand.cc
  10046. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10047. Removed unnecessary cerr.
  10048. * src/DownloadEngine.cc
  10049. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. Catch exception inside DHTMessageReceiver::receiveMessage().
  10051. Log unknown message.
  10052. * src/DHTMessageReceiver.{h, cc}
  10053. * src/DHTMessageFactory.h
  10054. * src/DHTMessageFactoryImpl.{h, cc}
  10055. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10056. * src/DHTInteractionCommand.cc
  10057. * src/DHTUnknownMessage.{h, cc}
  10058. * test/DHTUnknownMessageTest.cc
  10059. * test/MockDHTMessageFactory.h
  10060. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. Commented out ip address comparison because a host can have multiple
  10062. ip addresses and it is hard to predict the hostname is resolved into
  10063. which one.
  10064. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10065. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10066. * po/Makefile.in: Removed since this is generated by configure.
  10067. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10068. Fixed compiler warning about redefinition of SIZE_MAX.
  10069. Use common.h instead of config.h directly here.
  10070. * src/Platform.{h, cc}
  10071. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10072. here.
  10073. * common.h
  10074. 2008-02-02 gettextize <[email protected]>
  10075. Updated gettext related files.
  10076. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10077. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10078. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Added DHT functionality, compatible with mainline.
  10080. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10081. You may need to specify entry point to DHT network using
  10082. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10083. Use --dht-listen-port to specify port number. Make sure that your
  10084. firewall configuration can pass through UDP traffic to the port.
  10085. The routing table is saved in $HOME/.aria2/dht.dat.
  10086. * src/DHT*
  10087. * src/BNode.{h, cc}
  10088. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10089. particular torrent.
  10090. * src/Data.cc: Rewritten ctor.
  10091. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10092. --dht-entry-point.
  10093. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10094. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10095. ends, remove BtContext from DHTPeerAnnounceStorage.
  10096. * src/BtPortMessage.{h, cc}: Rewritten.
  10097. * src/message.h
  10098. * src/OptionHandlerImpl.cc
  10099. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10100. --dht-entry-point.
  10101. * src/Dictionary.{h, cc} (remove): New function.
  10102. * src/prefs.h
  10103. * src/DefaultBtMessageFactory.h
  10104. * src/BtHandshakeMessage.cc
  10105. * src/ActivePeerConnectionCommand.cc
  10106. * src/SocketCore.{h, cc}: Added datagram socket support.
  10107. * src/DefaultBtMessageFactory.cc
  10108. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10109. Create DHT commands.
  10110. * src/BtMessageFactory.h
  10111. * src/PeerMessageUtil.{h, cc}
  10112. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10113. Fixed the bug that log file is not written when configuration file doesn't exist.
  10114. This is caused by using Logger class before LogFactory is not configured.
  10115. BUG #1875079
  10116. * src/option_processing.cc
  10117. Warning message "configuration doesn't exist" is only printed when --conf is
  10118. given.
  10119. * src/option_processing.cc
  10120. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10121. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10122. ShaVisitor is now deprecated and slated to be removed.
  10123. * src/DefaultBtContext.cc
  10124. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10125. Externalize message to message.h
  10126. * src/Platform.cc
  10127. * src/message.h
  10128. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10129. Set default domain and default path to cookie.
  10130. * src/HttpResponse.cc
  10131. * src/CookieBox.{h, cc}
  10132. * src/CookieParser.{h, cc}
  10133. * test/CookieParserTest.cc
  10134. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10135. Added --no-conf and --conf-path command-line option.
  10136. --no-conf option disables loading aria2.conf file.
  10137. --conf-path option changes the configuration file path. The default
  10138. file path is $HOME/.aria2/aria2.conf
  10139. Added a warning message when the configuration file is not found.
  10140. * src/HelpItemFactory.cc
  10141. * src/option_processing.cc
  10142. * src/prefs.h
  10143. * src/usage_text.h
  10144. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10145. Added the message to inform users that other help categories are
  10146. available in -h option.
  10147. * src/version_usage.cc
  10148. * src/TagContainer.{h, cc}
  10149. * test/TagContainerTest.cc
  10150. * src/TaggedItem.{h, cc}
  10151. * test/TaggedItemTest.cc
  10152. * src/HelpItem.h
  10153. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10154. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10155. from PiecedSegment's ctor.
  10156. Previously Piece::getAllMissingBlockIndexes() is called from
  10157. PiecedSegment() but it is rather expensive since only first element is
  10158. used.
  10159. * src/PiecedSegment.cc
  10160. * src/Piece.{h, cc}
  10161. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10162. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10163. each time these functions are called.
  10164. * src/BitfieldMan.{h, cc}
  10165. * test/BitfieldManTest.cc
  10166. * src/array_fun.h
  10167. * test/array_funTest.cc
  10168. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10169. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10170. filtered. Removed unnecessary cast to int32_t.
  10171. * src/BitfieldMan.{h, cc}
  10172. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10173. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10174. payload length(4bytes) are received. This happens because lenbufLength
  10175. is not updated in this particular case and successive call of
  10176. receiveMessage() overwrites payload length with bytes recieved which
  10177. are payload body.
  10178. * src/PeerConnection.{h, cc}
  10179. * src/message.h
  10180. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10181. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10182. peer if there are peers that have same ipaddr and port.
  10183. I've experiened segmentation fault and "pure virtual function was
  10184. called" error.
  10185. * src/Peer.h
  10186. * test/PeerTest.cc
  10187. * src/DefaultPeerStorage.cc
  10188. * test/DefaultPeerStorageTest.cc
  10189. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10190. Removed a call to isPowerOf() because it is no longer necessary here
  10191. and a request block is not always power of 2.
  10192. BUG#1866924
  10193. * src/PeerMessageUtil.cc (checkLength)
  10194. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10195. Fixed the bug that always first found Segment is removed from
  10196. usedSegmentEntries. Removed unused functions.
  10197. * src/SegmentMan.{h, cc}
  10198. * test/SegmentManTest.cc
  10199. Fixed the bug that ServerHost is not removed.
  10200. * src/RequestGroup.cc
  10201. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10202. Fixed the bug that SegmentMan::completeSegment() is not called
  10203. even if Segment is complete when --lowest-speed-limit is enabled.
  10204. BUG#1864525
  10205. * src/DownloadCommand.{h, cc}
  10206. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10207. Fixed: hash algorithm 'sha1' is always used.
  10208. * src/DownloadCommand.cc (validatePieceHash)
  10209. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10210. Added --enable-peer-exchange command-line option.
  10211. * src/OptionHandlerFactory.cc
  10212. * src/HelpItemFactory.cc
  10213. * src/option_processing.cc
  10214. * src/usage_text.h
  10215. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. Move extension from BtRuntime to ExtensionMessageFactory, because
  10217. extension can be specified per peer, not per torrent.
  10218. * src/DefaultBtInteractive.cc
  10219. * src/BtRuntime.h
  10220. * src/ExtendedMessagingAware.h
  10221. * src/ExtensionMessageFactory.h
  10222. * src/DefaultExtensionMessageFactory.cc
  10223. * test/DefaultExtensionMessageFactoryTest.cc
  10224. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10225. Added categorized option help. Specify category using --help option.
  10226. Also added the ability to search options in forward match.
  10227. * src/HelpItem.{h, cc}
  10228. * test/HelpItemTest.cc
  10229. * src/HelpItemFactory.{h, cc}
  10230. * src/TagContainer.{h, cc}
  10231. * test/TagContainerTest.cc
  10232. * src/option_processing.cc
  10233. * src/prefs.h
  10234. * src/TaggedItem.{h, cc}
  10235. * test/TaggedItemTest.cc
  10236. * src/version_usage.cc
  10237. * src/help_tags.h
  10238. * src/usage_text.h
  10239. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10240. Fixed segmentation fault when bad torrent metainfo is parsed.
  10241. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10242. and then throw exception or skip it.
  10243. * src/DefaultBtContext.{h, cc}
  10244. * test/DefaultBtContextTest.cc
  10245. * src/AnnounceList.cc
  10246. * src/CompactPeerListProcessor.cc
  10247. * src/message.h
  10248. * src/DefaultBtAnnounce.{h, cc}
  10249. * test/DefaultBtAnnounceTest.cc
  10250. * src/BencodeVisitor.cc
  10251. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10252. Added missing "B"(=Byte). So now the message looks like this:
  10253. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10254. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10255. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10256. Show the seed ratio after torrent downloads.
  10257. For example, after torrent download completed and --seed-time and
  10258. --seed-ratio conditions are fulfilled, following message is printed
  10259. right after "Download complete: .....":
  10260. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10261. * src/RequestGroupMan.cc
  10262. * src/RequestGroup.{h, cc}
  10263. * src/message.h
  10264. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10265. Remove a defunct control file. A defunct control file means that while
  10266. it exists, but the corresponding download file is missing.
  10267. After its removal, a download restarts from the beginning.
  10268. * src/RequestGroup.cc
  10269. * src/message.h
  10270. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10271. Allocate bitfield in Peer when it is really used. More specifically,
  10272. bitfield in Peer is allocated after the connection is established and
  10273. deallocated when the connection is dropped.
  10274. Since 2 parameters(piece length and total length) was removed from the
  10275. constructor of Peer class, many test classes were modified accordingly.
  10276. See svn log for more detailed information.
  10277. * src/PeerInteractionCommand.cc
  10278. * src/CompactPeerListProcessor.cc
  10279. * src/Peer.cc
  10280. * src/DefaultPeerListProcessor.cc
  10281. * src/PeerListenCommand.cc
  10282. * src/PeerReceiveHandshakeCommand.cc
  10283. Fixed memory leak
  10284. * src/Piece.cc
  10285. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10287. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10288. command-line options.
  10289. * src/option_processing.cc
  10290. * src/ActivePeerConnectionCommand.cc
  10291. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10292. Send have message to peer if it already has the piece.
  10293. * src/BtHaveMessage.{h, cc}
  10294. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10295. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10296. port.
  10297. * src/DefaultPeerStorage.{h, cc}
  10298. * test/DefaultPeerStorageTest.cc
  10299. * src/HandshakeExtensionMessage.cc
  10300. * test/HandshakeExtensionMessageTest.cc
  10301. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10302. * src/PeerStorage.h
  10303. * test/MockPeerStorage.h
  10304. * src/PeerListenCommand.cc
  10305. * src/PeerReceiveHandshakeCommand.cc
  10306. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10307. Added --metalink-enable-unique-protocol option.
  10308. * src/Metalink2RequestGroup.cc
  10309. * src/option_processing.cc
  10310. * src/prefs.h
  10311. * src/version_usage.cc
  10312. * doc/aria2c.1.txt
  10313. * doc/aria2c.1
  10314. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10315. Allow a peer in incomingPeer to be added peers.
  10316. * src/DefaultPeerStorage.cc
  10317. * test/DefaultPeerStorageTest.cc
  10318. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10320. I could reproduce this bug in following procedure:
  10321. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10322. 2. Restart aria2.
  10323. 3. You see the download stopped around 99%.
  10324. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10325. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10326. If timeout is reached, then _nextCommand is unused and it may contains
  10327. segments and they won't be canceled. Actually, timeout is not needed
  10328. here because if the server dropped connection, then retry is made.
  10329. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10330. Added uTorrent compatible Peer Exchange.
  10331. * src/BencodeVisitor.{h, cc}
  10332. * test/BencodeVisitorTest.cc
  10333. * src/BtConstants.h
  10334. * src/BtContext.h: Added 'private' flag.
  10335. * src/BtExtendedMessage.{h, cc}
  10336. * test/BtExtendedMessageTest.cc
  10337. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10338. reserved field.
  10339. * test/BtHandshakeMessageTest.cc
  10340. * src/BtMessageFactory.h
  10341. * src/BtRegistry.h
  10342. * src/BtRuntime.h: This class holds default extension message IDs for
  10343. aria2. By default, aria2 uses ID 8 for ut_pex.
  10344. * src/DefaultBtContext.cc
  10345. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10346. When it is true, aria2 enables ut_pex. This value is set by
  10347. PeerInteractionCommand.
  10348. * src/DefaultBtMessageFactory.{h, cc}
  10349. * test/DefaultBtMessageFactoryTest.cc
  10350. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10351. handling to DefaultBtInteractive class.
  10352. * src/DefaultExtensionMessageFactory.{h, cc}
  10353. * test/DefaultExtensionMessageFactoryTest.cc
  10354. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10355. the container(peers and incomingPeers. The equality is determined by
  10356. Peer::id).
  10357. * test/DefaultPeerStorageTest.cc
  10358. * src/ExtensionMessage.h
  10359. * test/MockExtensionMessage.h
  10360. * src/ExtensionMessageFactory.h
  10361. * test/MockExtensionMessageFactory.h
  10362. * src/HandshakeExtensionMessage.{h, cc}
  10363. * test/HandshakeExtensionMessageTest.cc
  10364. * src/MetaEntry.h
  10365. * src/Peer.{h, cc}
  10366. * src/PeerInteractionCommand.cc
  10367. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10368. addIncomingPeer.
  10369. * src/PeerMessageUtil.{h, cc}
  10370. * src/PeerObject.h
  10371. * src/UTPexExtensionMessage.{h, cc}
  10372. * test/UTPexExtensionMessageTest.cc
  10373. * src/message.h
  10374. * src/prefs.h
  10375. Fixed the bug that returns incomplete data when it contains null
  10376. character. A convenient constructor was also added.
  10377. * src/Data.{h, cc}
  10378. Rewritten.
  10379. * src/CompactPeerListProcessor.cc
  10380. Fixed typos.
  10381. * src/message.h
  10382. * src/MetaFileUtil.cc
  10383. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10384. Added "Status Legend" label to the explanation text of 'stat' in
  10385. download result and moved it to the last. BUG#1848214
  10386. * src/RequestGroupMan.cc
  10387. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10388. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10389. * src/Makefie.am
  10390. * test/Makefile.am
  10391. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. Fixed the bug that prevents aria2 from loading cookie file when expire
  10393. value is greater than 2^31-1. BUG#1851066
  10394. * src/CookieBoxFactory.cc
  10395. * test/CookieBoxFactoryTest.cc
  10396. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10397. Fixed possible memory leak when an exception is thrown.
  10398. * src/XML2SAXMetalinkProcessor.cc
  10399. Added Expat support. If both libxml2 and Expat are installed, then
  10400. libxml2 is used by default.
  10401. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10402. ExpatMetalinkProcessor according to the configuration.
  10403. * src/ExpatMetalinkProcessor.{h, cc}
  10404. * src/main.cc: Removed libxml2 specific header and init/free function.
  10405. * src/MetalinkProcessorFactory.{h, cc}
  10406. * src/MetalinkHelper.cc
  10407. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10408. * src/MetalinkProcessor.h
  10409. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10410. MetalinkProcessorTest is used instead.
  10411. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10412. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10413. MetalinkProcessorFactory::newInstance().
  10414. * m4/libexpat.m4
  10415. * configure.ac: Added configuration options for libexpat.
  10416. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. Disabled -s option in metalink download.
  10418. * src/Metalink2RequestGroup.cc
  10419. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10420. If several protocols are available for a mirror in metalink file,
  10421. aria2 now use one of them. --metalink-preferred-protocol option was
  10422. added to specify the preference of protocol.
  10423. * src/AbstractCommand.cc
  10424. * src/OptionHandlerFactory.cc
  10425. * src/ServerHost.{h, cc}
  10426. * src/Metalink2RequestGroup.cc
  10427. * src/RequestGroup.{h, cc}
  10428. * test/RequestGroupTest.cc
  10429. * src/option_processing.cc
  10430. * src/prefs.h
  10431. * src/HttpResponseCommand.cc
  10432. * src/MetalinkResource.{h, cc}
  10433. * src/FtpNegotiationCommand.cc
  10434. * src/MetalinkEntry.{h, cc}
  10435. * src/MetalinkEntryTest.cc
  10436. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10437. Code cleanup and added debug log.
  10438. * src/PeerConnection.cc
  10439. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10440. Compiler error fix: applied the patch by Tiziano Mueller
  10441. * src/RequestGroup.cc
  10442. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10443. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10444. in stopped and completed event.
  10445. * src/AnnounceList.{h, cc}
  10446. * test/AnnounceListTest.cc
  10447. * src/DefaultBtAnnounce.cc
  10448. * test/DefaultBtAnnounceTest.cc
  10449. Sorted URLs.
  10450. * test/Metalink2RequestGroupTest.cc
  10451. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10452. Removed unnecessary string copy. Updated doc and corrected indentation.
  10453. * src/Base64.cc
  10454. Fixed compilation warnings
  10455. * test/DataTest.cc
  10456. * test/HttpRequestTest.cc
  10457. * test/MetaFileUtilTest.cc
  10458. * test/RequestTest.cc
  10459. * Release 0.12.0
  10460. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10461. Updated translations
  10462. * po/{de,fr,ja,nl,ru}.po
  10463. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10464. translations. Many thanks to translators.
  10465. * po/{ca,es,it,pt_BR,sv}.po
  10466. * po/LINGUAS
  10467. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10468. Added a notice about URL
  10469. * src/version_usage.cc
  10470. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10471. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10472. aria2 repeatedly sends stopped request when tracker returns error code.
  10473. * src/AnnounceList.cc
  10474. * test/AnnounceListTest.cc
  10475. * src/AnnounceTier.h
  10476. Added a message when ctrl-c is hit.
  10477. Now second ctrl-c is also handled in signal handler.
  10478. * src/RequestGroupMan.{h, cc}
  10479. * src/RequestGroup.{h, cc}
  10480. * src/MultiUrlRequestInfo.cc
  10481. * src/DownloadEngine.cc
  10482. * src/TrackerWatcherCommand.cc
  10483. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10484. Code cleanup
  10485. * src/Base64.cc (encode)
  10486. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10487. Changed Direct/IO enable/disable procesure in file allocation routine.
  10488. * src/SingleFileAllocationIterator.cc
  10489. (SingleFileAllocationIterator):
  10490. Disable directIO if offset is not multiple of 512.
  10491. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10492. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10493. Enable created SingleFileAllocationIterator's directIO.
  10494. * src/FileAllocationEntry.cc
  10495. (FileAllocationEntry): Enable directIO here.
  10496. (~FileAllocationEntry): Disable directIO here.
  10497. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10498. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10499. * src/Peer.{h, cc}
  10500. * src/DefaultPieceStorage.cc
  10501. * test/DefaultPieceStorageTest.cc
  10502. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10503. Rewritten direct I/O support routine
  10504. * src/SingleFileAllocationIterator.cc
  10505. * src/MultiDiskAdaptor.{h, cc}
  10506. * src/ByteArrayDiskWriter.h
  10507. * src/AbstractSingleDiskAdaptor.h
  10508. * src/AbstractDiskWriter.cc
  10509. * src/DefaultPieceStorage.cc
  10510. * src/DiskWriter.h
  10511. * src/BinaryStream.h
  10512. * src/IteratableChunkChecksumValidator.cc
  10513. * src/IteratableChecksumValidator.cc
  10514. * src/CheckIntegrityEntry.cc
  10515. * src/FileAllocationEntry.cc
  10516. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10517. Fixed typo
  10518. * src/version_usage.cc
  10519. Updated doc
  10520. * doc/aria2c.1.txt
  10521. * doc/aria2c.1
  10522. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10523. Fixed compile error without message digest support.
  10524. * src/FileMetalinkParserState.cc
  10525. * src/MetalinkParserController.{h, cc}
  10526. * test/XML2SAXMetalinkProcessorTest.cc
  10527. * test/MetalinkParserControllerTest.cc
  10528. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10529. Enable direct I/O support in checksum checking.
  10530. * src/IteratableChunkChecksumValidator.{h, cc}
  10531. * test/IteratableChunkChecksumValidatorTest.cc
  10532. * src/CheckIntegrityEntry.cc
  10533. * src/PieceHashCheckIntegrityEntry.cc
  10534. * src/IteratableChecksumValidator.{h, cc}
  10535. * src/BtCheckIntegrityEntry.cc: Added doc.
  10536. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10537. Added --allow-piece-length-change option.
  10538. * src/DefaultBtProgressInfoFile.cc
  10539. * test/DefaultBtProgressInfoFileTest.cc
  10540. * src/OptionHandlerFactory.cc
  10541. * src/option_processing.cc
  10542. * src/prefs.h
  10543. * src/version_usage.cc
  10544. * doc/aria2c.1.txt
  10545. * doc/aria2c.1
  10546. Fixed: duplicated result entry appears when exception is thrown in
  10547. RequestGroup::createInitiateConnectionCommand().
  10548. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10549. Add RequestGroup to _requestGroup after RequetGroup::
  10550. createInitiateConnectionCommand() succeeds.
  10551. Externalized message
  10552. * src/XML2SAXMetalinkProcessor.cc
  10553. * src/message.h
  10554. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10555. Forced download abort when received negative response from http/ftp
  10556. server.
  10557. * src/HttpResponseCommand.cc
  10558. * src/FtpNegotiationCommand.cc
  10559. * src/HttpResponse.cc
  10560. * src/FtpConnection.cc
  10561. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10562. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10563. the predecessor, Xml2MetalinkParser class.
  10564. I tested them against 94KB metalink file with 1234 chunk checksums.
  10565. The new one parsed it in 22msec, while it took 6000msec with old one.
  10566. * src/XML2SAXMetalinkProcessor.{h, cc}
  10567. * test/XML2SAXMetalinkProcessorTest.cc
  10568. * src/MetalinkParserController.{h, cc}
  10569. * test/MetalinkParserControllerTest.cc
  10570. * src/MetalinkParserState.h: Also added 16 subclasses.
  10571. * src/main.cc
  10572. * src/Metalink2RequestGroup.cc
  10573. * src/MetalinkHelper.cc
  10574. * src/MetalinkEntry.cc
  10575. * src/ChunkChecksum.h
  10576. Rewritten Base64 class for better performance.
  10577. * src/Base64.{h, cc}
  10578. * test/Base64Test.cc
  10579. * src/HttpRequest.cc
  10580. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10581. Fixed the bug#1841757: aria2 will connect to server to only get
  10582. file size.
  10583. * src/StreamFileAllocationEntry.cc
  10584. * src/option_processing.cc
  10585. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10586. downloads.
  10587. * src/FtpNegotiationCommand.cc
  10588. Suppressed wrong message when finding PreDownloadHandler
  10589. * src/RequestGroup.cc
  10590. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. Updated usage
  10592. * src/version_usage.cc
  10593. Updated man page
  10594. * doc/aria2c.1.txt
  10595. * doc/aria2c.1
  10596. Updated po files
  10597. * po/aria2c.pot
  10598. * po/*.po
  10599. * po/*.gmo
  10600. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10601. Eliminated g++-4.2 warning
  10602. * src/DownloadHandlerConstants.{h, cc}
  10603. * src/Util.cc
  10604. * test/MetaFileUtilTest.cc
  10605. * test/PStringBuildVisitorTest.cc
  10606. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10607. * src/RequestGroup.cc
  10608. * src/BtCheckIntegrityEntry.cc
  10609. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10610. Fixed a2io.h
  10611. * src/a2io.h
  10612. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10613. Added direct I/O support. The current implementation uses O_DIRECT,
  10614. which is not posix standard and is tested on linux 2.6.21.
  10615. Currently only file allocation uses direct I/O.
  10616. * src/SingleFileAllocationIterator.{h, cc}
  10617. * test/SingleFileAllocationIteratorTest.cc
  10618. * src/MultiFileAllocationIterator.{h, cc}
  10619. * test/MultiFileAllocationIteratorTest.cc
  10620. * src/BinaryStream.h
  10621. * src/DiskWriter.h
  10622. * src/AbstractDiskWriter.{h, cc}
  10623. * src/ByteArrayDiskWriter.h
  10624. * src/DiskAdaptor.h
  10625. * src/AbstractSingleDiskAdaptor.{h, cc}
  10626. * src/MultiDiskAdaptor.{h, cc}
  10627. * src/FileAllocationEntry.cc
  10628. * src/Util.{h, cc}
  10629. * src/OptionHandlerFactory.cc
  10630. * src/prefs.h
  10631. * src/version_usage.cc
  10632. * src/option_processing.cc
  10633. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10634. handleException.
  10635. * src/MultiFileAllocationIterator.cc
  10636. Added EINTR handling
  10637. * src/SocketCore.cc
  10638. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10639. Updated usage
  10640. * src/version_usage.cc
  10641. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. Applied Ross's patch for MinGW port.
  10643. * src/DownloadEngine.h
  10644. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10645. Set Content-Type to SingleFileDownloadContext when http response is
  10646. received.
  10647. * src/HttpResponseCommand.cc
  10648. * src/HttpResponse.{h, cc}
  10649. * test/HttpResponseTest.cc
  10650. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. Rewritten to add content-type support.
  10652. * src/DownloadHandler.{h, cc}
  10653. * src/BtPostDownloadHandler.{h, cc}
  10654. * test/BtPostDownloadHandlerTest.cc
  10655. * src/MetalinkPostDownloadHandler.{h, cc}
  10656. * test/MetalinkPostDownloadHandlerTest.cc
  10657. * src/PostDownloadHandler.{h, cc}
  10658. * src/DownloadHandlerConstants.{h, cc}
  10659. * src/RequestGroup.cc
  10660. * src/HttpResponseCommand.cc
  10661. * src/FtpNegotiationCommand.cc
  10662. * src/SingleFileDownloadContext.{h, cc}
  10663. * src/RequestGroup.h
  10664. * src/RequestGroupCriteria.h
  10665. * src/ContentTypeRequestGroupCriteria.h
  10666. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10667. If it is give, metalink/torrent file is not written to the disk, but
  10668. just is kept in memory. Parsing is occurred on memory.
  10669. * src/MetalinkHelper.{h, cc}
  10670. * src/MetalinkProcessor.h
  10671. * src/Xml2MetalinkProcessor.{h, cc}
  10672. * test/Xml2MetalinkProcessorTest.cc
  10673. * src/DownloadHandlerFactory.{h, cc}
  10674. * test/DownloadHandlerFactoryTest.cc
  10675. * src/PreDownloadHandler.{h, cc}
  10676. * src/OptionHandlerFactory.cc
  10677. * src/DefaultBtContext.{h, cc}
  10678. * test/DefaultBtContextTest.cc
  10679. * src/version_usage.cc
  10680. * src/Metalink2RequestGroup.{h, cc}
  10681. * src/RequestGroup.{h, cc}
  10682. * src/a2functional.h
  10683. * test/a2functionalTest.cc
  10684. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10685. * src/OptionHandlerImpl.h
  10686. * src/prefs.h
  10687. * src/Util.{h, cc}
  10688. * test/UtilTest.cc
  10689. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10690. memory usage.
  10691. * src/RequestGroupMan.{h, cc}
  10692. * src/DownloadEngine.cc
  10693. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10694. WeakHandle to SharedHandle because WeakHandle could be null.
  10695. * src/RequestGroup.{h, cc}
  10696. * src/DownloadEngineFactory.cc
  10697. * src/DownloadResult.h
  10698. Set totalLength after download finished
  10699. * src/UnknownLengthPieceStorage.{h, cc}
  10700. Keep torrent file specified in metalink in memory.
  10701. * src/Metalink2RequestGroup.cc
  10702. * src/BtDependency.cc
  10703. * src/TrueRequestGroupCriteria.h
  10704. Fixed the bug: seekg is used where seekp should be used.
  10705. * src/ByteArrayDiskWriter.cc
  10706. * test/ByteArraydiskWriterTest.cc
  10707. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10708. Fixed syntax error
  10709. * test/SequenceTest.cc
  10710. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10711. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10712. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10713. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10714. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10715. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10716. Added the check to see whether ares_host_callback accepts timeouts
  10717. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10718. * src/NameResolver.{h, cc}
  10719. * m4/libcares.m4
  10720. * configure.ac: Set C++ for language choice.
  10721. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10722. Fixed: compilation fails without c-ares/ares
  10723. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10724. Generate http/ftp commands only when download is incomplete.
  10725. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10726. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10727. Corrected typo. Examples are removed since they are available in man
  10728. page.
  10729. * src/version_usage.cc
  10730. Updated man page.
  10731. * doc/aria2c.1
  10732. * doc/aria2c.1.txt
  10733. * doc/makeman: Commented out sed command.
  10734. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10735. Throw DlAbortEx when a remote file is not found.
  10736. * src/HttpResponse.cc
  10737. * src/FtpNegotiationCommand.cc
  10738. * src/message.h
  10739. Overwrite an existing file if --allow-overwrite=true is given.
  10740. * src/RequestGroup.cc
  10741. Removed unused functions
  10742. * src/AbstractCommand.h
  10743. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10744. Removed 'extern' from 'extern typedef ...' in src/*.h
  10745. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10746. Updated usage
  10747. * src/version_usage.cc
  10748. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10749. Trim announce URL
  10750. * src/DefaultBtContext.cc
  10751. * test/ShaVisitorTest.cc
  10752. Trim argument s. Give trimed s to exception constructor.
  10753. * src/Util.cc (parseInt)(parseLLInt)
  10754. * test/UtilTest.cc
  10755. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10756. Set precision back to 1.
  10757. * src/ConsoleStatCalc.cc (calculateStat)
  10758. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10759. Replaced strtol with Util::parseInt
  10760. * src/ChunkedEncoding.cc
  10761. * src/HttpConnection.cc
  10762. * src/CookieBoxFactory.cc
  10763. * src/ParameterizedStringParser.cc
  10764. * src/Util.cc
  10765. * test/UtilTest.cc
  10766. * test/OptionHandlerTest.cc
  10767. * src/Request.cc
  10768. Throw exception when empty string is given. The message for exception
  10769. changed.
  10770. * src/Util.cc (parseInt)(parseLLInt)
  10771. * src/message.h
  10772. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10773. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10774. set to 1.
  10775. * src/ConsoleStatCalc.cc (calculateStat)
  10776. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10777. Preallocate non-requested file which is adjacent forward to requested
  10778. file('requested' files means the files given in --select-file option)
  10779. if they share a same piece.
  10780. This fixes long pause in the file system which doesn't support sparse
  10781. files like FAT32 while downloading.
  10782. * src/MultiFileAllocationIterator.{h, cc}
  10783. * test/MultiFileAllocationIteratorTest.cc
  10784. * src/FileEntry.{h, cc}
  10785. Removed unused _option.
  10786. * src/MultiDiskAdaptor.h
  10787. * test/MultiDiskAdaptorTest.cc
  10788. * src/DefaultPieceStorage.cc
  10789. Set the default value of --seed-ratio to 1.0.
  10790. If 0.0 is given, then seeding continues regardless of share ratio.
  10791. * src/version_usage.cc
  10792. * src/option_processing.cc
  10793. * src/BtSetup.cc
  10794. * doc/aria2c.1.txt
  10795. * doc/aria2c.1
  10796. Fixed: Selective download is not working in BitTorrent
  10797. * src/RequestGroup.cc
  10798. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10799. * src/PieceStorage.h
  10800. * test/MockPieceStorage.h
  10801. * src/UnknownLengthPieceStorage.h
  10802. * src/DefaultPieceStorage.{h, cc}
  10803. * src/Metalink2RequestGroup.cc
  10804. * src/RequestGroup.cc
  10805. * src/Sequence.h
  10806. * test/SequenceTest.cc
  10807. * src/IntSequence.h
  10808. * src/message.h
  10809. * src/Util.{h, cc}
  10810. * test/UtilTest.cc
  10811. Added new function 'parse' to catch exception thrown by subclass's
  10812. parseArg
  10813. * src/OptionHandler.h
  10814. * src/OptionParser.cc
  10815. * src/NameMatchOptionHandler.h
  10816. * src/OptionHandlerImpl.h
  10817. * test/OptionHandlerTest.cc
  10818. Added IntegerRangeOptionHandler. Used for --listen-port and
  10819. --select-file. Now --listen-port accepts range of port.
  10820. * src/OptionHandlerFactory.cc
  10821. * src/version_usage.cc
  10822. * src/OptionHandlerImpl.h
  10823. * src/option_processing.cc
  10824. * src/BtSetup.cc
  10825. * src/PeerListenCommand.{h, cc}
  10826. * doc/aria2c.1.txt
  10827. * doc/aria2c.1
  10828. Implemented operator< for Exception class to provide easy way to print
  10829. exception stack trace.
  10830. * src/Exception.{h, cc}
  10831. * src/main.cc
  10832. * src/option_processing.cc
  10833. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. * src/version_usage.cc
  10835. (showVersion): Reworked.
  10836. (showUsage): Added examples.
  10837. Removed Hint for total length and file name.
  10838. * src/Metalink2RequestGroup.cc
  10839. * src/RequestGroup.{h, cc}
  10840. * src/HttpResponseCommand.cc
  10841. * src/FtpNegotiationCommand.cc
  10842. Now --follow-torrent and --follow-metalink option work properly.
  10843. * src/RequestGroup.cc
  10844. Updated man page
  10845. * doc/aria2c.1.txt
  10846. * doc/aria2c.1
  10847. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10848. Removed.
  10849. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10850. Use Segment::operator==()
  10851. * src/HttpConnection.cc
  10852. * src/Segment.h
  10853. Updated usage
  10854. * src/version_usage.cc
  10855. Added EINTR treatment.
  10856. * src/SocketCore.cc
  10857. * src/AbstractDiskWriter.cc
  10858. Rewritten.
  10859. * src/Util.cc (rangedFileCopy)
  10860. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10861. Fixed typo.
  10862. * src/version_usage.cc
  10863. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10864. Implemented. Now -c option works fine.
  10865. * src/DefaultPieceStorage.cc (markPiecesDone)
  10866. * test/DefaultPieceStorageTest.cc
  10867. Removed.
  10868. * src/SegmentMan.{h, cc}
  10869. (markAllPiecesDone)
  10870. (markPieceDone)
  10871. Synchronized po files with
  10872. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10873. * src/fr.po
  10874. * src/ru.po
  10875. * src/de.po
  10876. * src/ja.po
  10877. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10878. Added ifdef and some modifications to compile without BitTorrent,
  10879. Metalink, MessageDigest
  10880. support.
  10881. * src/PieceHashCheckIntegrityEntry.cc
  10882. * src/MetalinkEntry.h
  10883. * src/version_usage.cc
  10884. * src/main.cc
  10885. * src/DownloadEngine.{h, cc}
  10886. * src/Metalink2RequestGroup.cc
  10887. * src/Peer.cc
  10888. * src/RequestGroup.cc
  10889. * src/MetalinkHelper.cc
  10890. * test/DefaultPieceStorageTest.cc
  10891. * test/MetalinkPostDownloadHandlerTest.cc
  10892. * test/Metalink2RequestGroupTest.cc
  10893. Hide TOTAL SPD when all downloads complete.
  10894. * src/ConsoleStatCalc.cc
  10895. Log target system information.
  10896. * src/main.cc
  10897. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10898. Now --metalink-location accepts a comma-deliminated list of locations.
  10899. * src/MetalinkEntry.{h, cc}
  10900. * test/MetalinkEntryTest.cc
  10901. * src/version_usage.cc
  10902. * src/Metalink2RequestGroup.cc
  10903. * src/Xml2MetalinkProcessor.cc
  10904. * test/Xml2MetalinkProcessorTest.cc
  10905. * doc/aria2c.1.txt
  10906. * doc/aria2c.1
  10907. * src/Util.cc (toUpper)(toLower): Rewritten.
  10908. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10909. Added the ability to detect duplicate download entry which is about to
  10910. download the same file other RequestGroup is downloading.
  10911. * src/RequestGroup.cc
  10912. * src/HttpResponseCommand.cc
  10913. * src/FtpNegotiationCommand.cc
  10914. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10915. Recalculates download progress when loading a control file,
  10916. if the piece length of DownloadContext is different from the one saved
  10917. in the control file. Currently in-flight pieces are ignored.
  10918. * src/DefaultBtProgressInfoFile.cc
  10919. * test/DefaultBtProgressInfoFileTest.cc
  10920. * src/Util.{h, cc}
  10921. * test/UtilTest.cc
  10922. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10923. Do not rotate tiers in announce-list.
  10924. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10925. AnnounceList::allTiersFailed() used instead to detect whether all
  10926. tiers are tried and failed.
  10927. * test/DefaultBtAnnounceTest.cc
  10928. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10929. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10930. * test/AnnounceListTest.cc
  10931. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10932. clause. Catch RecoverableException instead of DlRetryEx instead.
  10933. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10934. Implemented checksum validation feature(1 checksum for each file)
  10935. The validation takes place after the download.
  10936. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10937. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10938. * src/CheckIntegrityCommand.cc: Changed log message.
  10939. * src/Metalink2RequestGroup.cc: Set checksum to
  10940. SingleFileDownloadContext.
  10941. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10942. PieceHashCheckIntegrity class.
  10943. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10944. PieceHashCheckIntegrity class.
  10945. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10946. * src/IteratableValidator.h: New class.
  10947. * src/message.h
  10948. * src/CheckIntegrityEntry.{h, cc}
  10949. * src/IteratableChunkChecksumValidator.{h, cc}
  10950. * src/SingleFileDownloadContext.h
  10951. * src/DownloadCommand.cc
  10952. --allow-overwrite=true is no longer needed to check file integrity
  10953. before download in BitTorrent download.
  10954. * src/RequestGroup.cc (getInitialCommand)
  10955. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10956. throws exception.
  10957. * src/RequestGroupMan.cc (getInitialCommands)
  10958. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10959. urlencode the given url inside Request::parseUrl(...)
  10960. * src/Request.{h, cc}
  10961. * src/Util.{h, cc}
  10962. * test/RequestTest.cc
  10963. Removed #!metalink3! notation support because it is deleted from
  10964. the metalink specification.
  10965. * src/Request.{h, cc}
  10966. * test/RequestTest.cc
  10967. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10968. Don't connect server before checking file integrity at startup, if
  10969. filesize and output file path are known.
  10970. * src/AbstractCommand.cc
  10971. * src/StreamFileAllocationEntry.cc
  10972. * src/Metalink2RequestGroup.cc
  10973. * src/RequestGroup.{h, cc}
  10974. * src/HttpResponseCommand.cc
  10975. * src/FtpNegotiationCommand.cc
  10976. Added DownloadFailureException. If it is thrown, RequestGroup should
  10977. halt.
  10978. * src/AbstractCommand.cc
  10979. * src/DownloadFailureException.h
  10980. * src/RequestGroup.cc
  10981. Catch RecoverableException, instead of DlAbortEx.
  10982. * src/RequestGroupMan.cc
  10983. * src/FillRequestGroupCommand.cc
  10984. * src/MetaFileUtil.cc
  10985. * src/IteratableChunkChecksumValidator.cc
  10986. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10987. getGID())
  10988. * src/CheckIntegrityCommand.cc
  10989. * src/message.h
  10990. Print gid instead of idx.
  10991. * src/RequestGroupMan.cc
  10992. Removed exception throwers declaration.
  10993. * src/DirectDiskAdaptor.{h, cc}
  10994. * src/SocketCore.{h, cc}
  10995. * src/MultiDiskAdaptor.{h, cc}
  10996. * src/HttpConnection.{h, cc}
  10997. * src/HttpResponse.{h, cc}
  10998. * src/DiskAdaptor.{h, cc}
  10999. * src/CopyDiskAdaptor.{h, cc}
  11000. * src/MultiDiskAdaptor.{h, cc}
  11001. * src/HttpHeaderProcessor.{h, cc}
  11002. * src/AbstractSingleDiskAdaptor.{h, cc}
  11003. * src/Util.{h, cc}
  11004. * test/UtilTest.cc
  11005. * src/DefaultDiskWriter.{h, cc}
  11006. * src/FtpConnection.{h, cc}
  11007. * src/AbstractDiskWriter.{h, cc}
  11008. Removed duplicate code.
  11009. * src/StreamCheckIntegrityEntry.cc
  11010. Removed unnecessary include.
  11011. * src/DiskWriter.h
  11012. Included Exception.h
  11013. * src/option_processing.cc
  11014. Included 2 files and added doc
  11015. * src/TrackerWatcherCommand.cc
  11016. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11017. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11018. Changed CheckIntegrityEntry interface so that it can define
  11019. the action when all the chunk checksums are valid.
  11020. * src/CheckIntegrityEntry.h
  11021. * src/StreamCheckIntegrityEntry.{h, cc}
  11022. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11023. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11024. to exit rather than doing seeding. So, it would be good to toggle this
  11025. behavior.
  11026. * src/CheckIntegrityCommand.cc
  11027. * src/AbstractCommand.cc
  11028. * src/RequestGroup.cc
  11029. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11030. Reflect the download length of in-flight pieces.
  11031. It makes the download length readout more precise.
  11032. * src/DefaultPieceStorage.{h, cc}
  11033. * test/DefaultPieceStorageTest.cc
  11034. * src/a2functional.h
  11035. * test/a2functionalTest.cc
  11036. Lower CPU load when --max-download-limit is used.
  11037. There is up and down in speed indicator when enabling
  11038. http-pipelining but a download goes well. I think the problem is that
  11039. because http-pipelining is enabled, DownloadCommand is created for
  11040. each segment and in its constructor, PeerStat::downloadStart() is
  11041. called. In PeerStat::downloadStart(), speed calculation object is
  11042. reseted, which makes download speed zero.
  11043. * src/DownloadCommand.cc
  11044. Rewritten using accumulate.
  11045. * src/RequestGroupMan.cc (calculateStat)
  11046. Code clearnup.
  11047. * src/FtpNegotiationCommand.cc
  11048. * src/HttpResponseCommand.cc
  11049. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11050. Fixed: Can not resume: aria2 reports download already finished.
  11051. * src/AbstractCommand.{h, cc}
  11052. * src/HttpResponseCommand.cc
  11053. * src/FtpNegotiateCommand.cc
  11054. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11055. Now a file is stored in the directory specified in .metalnk file
  11056. (file[@name]).
  11057. * src/Metalink2RequestGroup.cc
  11058. Create the directory structure when opening the file if it doesn't
  11059. exist.
  11060. * src/AbstractDiskWriter.cc
  11061. * src/Util.{h, cc}
  11062. * src/File.h
  11063. * test/UtilTest.cc
  11064. Removed file name comparison
  11065. * src/Metalink2RequestGroup.cc
  11066. * src/HttpResponseCommand.cc
  11067. Rewritten using Util::mkdirs()
  11068. * src/FileEntry.cc (setupDir)
  11069. * test/FileEntryTest.cc
  11070. Updated doc
  11071. * src/SingleFileDownloadContext.h
  11072. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11073. Now SleepCommand dispatches nextCommand when halt is requested.
  11074. It avoids a possible long wait after hitting CTRL-C.
  11075. * src/SleepCommand.{h, cc}
  11076. * src/RequestGroupAware.{h, cc}
  11077. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11078. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11079. to open listen port, then remove the port number from the tracker
  11080. request.
  11081. * src/DefaultBtAnnounce.cc
  11082. * test/DefaultBtAnnounceTest.cc
  11083. * test/MockPieceStorage.h
  11084. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11085. them more testable.
  11086. * src/DefaultBtAnnounce.{h, cc}
  11087. * src/DefaultBtContext.{h, cc}
  11088. * src/Util.{h, cc}
  11089. * test/DefaultBtAnnounceTest.cc
  11090. * test/DefaultBtContextTest.cc
  11091. * test/UtilTest.cc
  11092. Added 'B' to upload bytes readout.
  11093. * src/ConsoleStatCalc.cc
  11094. Now the listen port for BitTorrent download is opened when it is
  11095. needed.
  11096. * src/DownloadEngineFactory.cc
  11097. * src/BtSetup.{h, cc}
  11098. * src/PeerListenCommand.{h, cc}
  11099. Now an exception thrown while parsing tracker response is now logged.
  11100. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11101. called, which means no retry is made in this case, assuming a tracker
  11102. has a problem.
  11103. * src/TrackerWatcherCommand.cc
  11104. Fixed: downloading a file whose length is unkown fails.
  11105. * src/DownloadCommand.cc
  11106. Simplified prepareForNextSegment()
  11107. * src/DownloadCommand.cc
  11108. Updated
  11109. * po/POTFILES.in
  11110. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11111. Re-implemented a file listing for Metalink, which was dropped while
  11112. http/ftp/torrent integration was being implemented.
  11113. * src/MetalinkHelper.{h, cc}: New class.
  11114. * test/MetalinkHelperTest.cc
  11115. * src/main.cc
  11116. * src/Metalink2RequestGroup.cc
  11117. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11118. Added the ability to display the detailed torrent file information.
  11119. Now -S option gives not only a file listing, but also total download
  11120. length, info hash, announce URI, piece length, the number of pieces,
  11121. and mode(single or multi-torrent).
  11122. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11123. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11124. KiB)
  11125. * test/UtilTest.cc
  11126. * src/main.cc
  11127. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11128. Added ftp://USER:PASSWD@Servername automatic parsing.
  11129. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11130. _password. Recognize username and password in URI.
  11131. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11132. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11133. * src/RequestFactory.{h, cc}: Removed.
  11134. * src/AuthConfigFactory.{h, cc}: New class.
  11135. * src/FtpConnection.cc: Use AuthConfigFactory.
  11136. * src/HttpRequest.cc: Use AuthConfigFactory.
  11137. * test/HttpRequestTest.cc: Updated.
  11138. * test/RequestTest.cc: Updated.
  11139. * test/AuthConfigFactoryTest.cc: New class.
  11140. * test/RequestFactoryTest.cc: Removed.
  11141. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11142. Use RequestGroup::allDownloadFinished() to decide whether the control
  11143. file should be removed or saved.
  11144. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11145. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11146. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11147. Use File::renameTo()
  11148. * src/DefaultBtProgressInfoFile.cc
  11149. Added --no-file-allocation-limit command-line option.
  11150. * src/version_usage.cc
  11151. * src/option_processing.cc
  11152. * src/OptionHandlerFactory.cc
  11153. * src/RequestGroup.{h, cc}
  11154. * src/BtCheckIntegrityEntry.cc
  11155. * src/StreamCheckIntegrityEntry.cc
  11156. * src/prefs.h
  11157. * doc/aria2c.1.txt
  11158. * doc/aria2c.1
  11159. Now prealloc is the default value for --file-allocation option.
  11160. * src/version_usage.cc
  11161. * src/option_processing.cc
  11162. * doc/aria2c.1.txt
  11163. * doc/aria2c.1
  11164. Don't URL-encode user-agent.
  11165. * src/HttpRequest.cc
  11166. Updated translations
  11167. * po/LINGUAS: Added nl for Dutch translation.
  11168. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11169. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11170. * po/POTFILES.in: Updated.
  11171. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11172. Added the ability to recognize url-list in a torrent file.
  11173. The retrieved URLs are attached to the corresponding FileEntry.
  11174. * src/DefaultBtContext.{h, cc}
  11175. * src/FileEntry.{h, cc}
  11176. * test/DefaultBtContextTest.cc
  11177. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11178. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11179. after the download finishes.
  11180. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11181. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11182. the data smaller than block length.
  11183. A block length can be specified by constructor's argument.
  11184. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11185. Get a missing piece in the range of given FileEntry. This function is
  11186. not used in the program yet.
  11187. * src/Util.h: Added some macros.
  11188. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11189. Added HTTP/1.1 keep alive and pipelining support.
  11190. See --enable-http-keep-alive and --enable-http-pipelining option.
  11191. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11192. Segment.
  11193. * src/HttpDownloadCommand.{h, cc}
  11194. * src/OptionHandlerFactory.cc
  11195. * src/HttpConnection.{h, cc}
  11196. * src/version_usage.cc
  11197. * src/HttpInitiateConnectionCommand.cc
  11198. * src/FtpInitiateConnectionCommand.cc
  11199. * src/Segment.h
  11200. * src/HttpRequestCommand.{h, cc}
  11201. * src/option_processing.cc
  11202. * src/prefs.h
  11203. * src/HttpResponseCommand.cc
  11204. * src/SegmentMan.{h, cc}
  11205. * src/FtpNegotiateCommand.cc
  11206. * src/HttpProxyResponseCommand.cc
  11207. * src/Request.cc
  11208. * src/HttpRequest.cc
  11209. * src/DownloadCommand.cc
  11210. * test/HttpRequestTest.cc
  11211. * test/RequestTest.cc
  11212. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11213. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11214. finished.
  11215. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11216. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11217. catching it inside the method.
  11218. When no file entry is found in a metalink without querying user
  11219. preferences, throw the exception with the error message that suggests
  11220. metalink file is probably broken.
  11221. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11222. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11223. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11224. processed.
  11225. * src/RequestGroupMan.cc (removeStoppedGroup)
  11226. Added debug message.
  11227. * src/BtPostDownloadHandler.cc
  11228. * src/MetalinkPostDownloadHandler.cc
  11229. * src/PostDownloadHandler.{h, cc}
  11230. * src/RequestGroup.cc
  11231. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11232. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11233. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11234. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11235. stops and there are any unfinished or in-progress downloads.
  11236. Added the legend of "stat".
  11237. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11238. Throw exception when chunck checksum verification fails.
  11239. * src/DownloadCommand.cc (validatePieceHash): New function.
  11240. * src/PiecedSegment.{h, cc} (clear): New function.
  11241. * src/GrowSegment.{h, cc} (clear): New function.
  11242. * src/Segment.h (clear): New function.
  11243. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11244. * test/SegmentTest.cc
  11245. * test/GrowSegmentTest.cc
  11246. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11247. Do not send referer when redirected.
  11248. * src/Request.cc (redirectUrl)
  11249. * test/RequestTest.cc
  11250. * test/HttpRequestTest.cc
  11251. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11252. Implemented BitTorrent/http/ftp integrated download.
  11253. I've rewritten lots of files and now some headers have forward
  11254. class declarations to reduce compile time.
  11255. The implementation is extremely alpha stage, I recommend to use this
  11256. for testing purpose only.
  11257. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11258. Fixed the compilation error on 64bit platform.
  11259. * test/HttpHeaderProcessorTest.cc
  11260. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11261. Merged Ross's patch that fixes compilation problem in MinGW
  11262. * test/DefaultBtProgressInfoFileTest.cc
  11263. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11264. Updated fr.po by sebone
  11265. * po/fr.po
  11266. Updated man page.
  11267. * doc/aria2c.1.txt
  11268. * Release 0.11.3
  11269. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11270. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11271. failure in Metalink.
  11272. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11273. Automatically save *.aria2 control file of http/ftp download in every
  11274. 60 seconds.
  11275. * src/AutoSaveCommand.{h, cc}: New class.
  11276. * src/TimeBasedCommand.{h, cc}: New class.
  11277. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11278. Disable parameterized URI support by default. Added -P option to
  11279. enable the feature.
  11280. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11281. * src/OptionHandlerFactory.cc
  11282. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11283. Updated Japanese translation.
  11284. * po/ja.po
  11285. Updated man page.
  11286. * doc/aria2c.1.txt
  11287. * Release 0.11.3-rc
  11288. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11289. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11290. it is successful, then renamed to *.aria2.
  11291. This prevents *.aria2 file from being truncated or corrupted when
  11292. file system becomes out of space.
  11293. * src/DefaultBtProgressInfoFile.cc (save)
  11294. * src/SegmentMan.cc (save)
  11295. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11296. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11297. Reduced the fragmentation of bitfield in http/ftp download.
  11298. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11299. * test/BitfieldManTest.cc
  11300. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11301. Added the ability to disable segmented download in .metalink.
  11302. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11303. 'url' tag.
  11304. * src/MetalinkEntry.{h, cc}
  11305. * src/RequestResource.{h, cc}
  11306. * src/MetalinkRequestInfo.cc
  11307. * src/Xml2MetalinkProcessor.cc
  11308. * test/Xml2MetalinkProcessorTest.cc
  11309. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11310. Added parameterized URI support.
  11311. * src/main.cc: -Z option added.
  11312. * src/OptionHandlerFactory.cc
  11313. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11314. * src/PStringDatum.h: New class.
  11315. * src/PStringSegment.{h,cc}: New class.
  11316. * src/PStringNumLoop.h: New class.
  11317. * src/PStringSelect.h: New class.
  11318. * src/NumberDecorator.h: New class.
  11319. * src/FixedWidthNumberDecorator.h: New class.
  11320. * src/AlphaNumberDecorator.h: New class.
  11321. * src/PStringVisitor.h: New class.
  11322. * src/PStringBuildVisitor.{h,cc}: New class.
  11323. * src/ParameterizedStringParser.{h,cc}: New class.
  11324. * src/Util.{h,cc}
  11325. (isNumber): New function.
  11326. (isLowercase): New function.
  11327. (isUppercase): New function.
  11328. (alphaToNum): New function.
  11329. * test/ParameterizedStringParserTest.cc: New class.
  11330. * test/AlphaNumberDecoratorTest.cc: New class.
  11331. * test/PStringBuildVisitorTest.cc: New class.
  11332. * test/UtilTest.cc
  11333. (testIsNumber): New function.
  11334. (testIsLowercase): New function.
  11335. (testIsUppercase): New function.
  11336. (testAlphaToNum): New function.
  11337. Added '\n' after the error message
  11338. * src/RequestInfo.h (printDownloadAbortMessage)
  11339. Added auto file renaming feature in http(s)/ftp download.
  11340. * src/main.cc: Added --auto-file-renaming command-line option.
  11341. * src/OptionHandlerFactory.cc
  11342. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11343. * src/RequestGroup.{h, cc}
  11344. (shouldCancelDownloadForSafety): Rewritten
  11345. (tryAutoFileRenaming): New function.
  11346. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11347. * src/HttpResponseCommand.cc
  11348. (executeInternal): Removed the call to RequestGroupMan::
  11349. isSameFileBeingDownloaded()
  11350. * src/FtpNegotiateCommand.cc
  11351. (recvSize): Removed the call to RequestGroupMan::
  11352. isSameFileBeingDownloaded()
  11353. * test/RequestGroupTest.cc: New class.
  11354. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11355. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11356. IO.
  11357. * src/DefaultBtProgressInfoFile.cc
  11358. * src/MetaFileUtil.cc
  11359. * src/SimpleLogger.cc
  11360. * src/SegmentMan.cc
  11361. * src/Util.cc
  11362. * src/Platform.cc
  11363. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11364. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11365. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11366. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11367. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11368. Fixed the bug that prevents file allocation is not done when
  11369. dowloading multi-torrent file.
  11370. * src/AbstractDiskWriter.cc (openFile)
  11371. Increase the maximum number of -j option from 15 to 45.
  11372. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11373. Added fr.po, thanks to Charles Landemaine.
  11374. * po/fr.po
  11375. * po/LINGUAS
  11376. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11377. gcc 3.4.4 support:
  11378. * src/DefaultBtContext.cc: int32_t -> int
  11379. * src/main.cc: int -> int32_t, int32_t -> int
  11380. * src/messageDigest.h: uint32_t -> unsigned int
  11381. * src/NameResolver.h: int32_t -> int
  11382. * src/PeerConnection.cc: int -> int32_t
  11383. * src/SpeedCalc.cc: int32_t -> int
  11384. * src/TrackerUpdateCommand.h: int -> int32_t
  11385. * src/Util.cc: int32_t -> int
  11386. * src/Util.h: int32_t -> int
  11387. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11388. * test/AnnounceListTest.cc: int -> int32_t
  11389. * test/ChunkedEncodingTest.cc: int -> int32_t
  11390. * test/DataTest.cc: int -> int32_t
  11391. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11392. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11393. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11394. * test/FeatureConfigTest.cc: int -> int32_t
  11395. * test/MetalinkEntryTest.cc: int -> int32_t
  11396. * test/MockBtRequestFactory.h: int -> int32_t
  11397. * test/MockPieceStorage.h: int -> int32_t
  11398. * test/OptionTest.cc: int -> int32_t
  11399. * test/RequestTest.cc: int -> int32_t
  11400. * test/SegmentManTest.cc: int -> int32_t
  11401. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11402. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11403. Move sleep functions to Util class:
  11404. * src/Util.cc
  11405. (sleep): New function.
  11406. (usleep): New function.
  11407. * src/DownloadCommand.cc: sleep -> Util::sleep
  11408. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11409. MinGW build enhancements. The following files are added:
  11410. * src/timegm.{c,h}
  11411. Changes to support the above new files:
  11412. * configure.ac
  11413. * src/Makefile.am
  11414. * src/a2time.h
  11415. * src/Util.cc:
  11416. * src/strptime.c: Added support for %Z option.
  11417. Fixed MinGW non-blocking bug.
  11418. * src/SocketCore.cc
  11419. * src/HttpRequestCommand.cc
  11420. Miscellenous build fixes/enhancements.
  11421. * configure.ac: Added summary report.
  11422. * src/Platform.h: Tweaked #include's.
  11423. * src/a2netcompat.h: Tweaked #include's.
  11424. * src/strptime.h: Tweaked #include's.
  11425. * src/gai_strerror.c: Tweaked #include's.
  11426. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11427. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11428. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11429. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11430. Increased the initial connection size in BitTorrent download to 40.
  11431. * src/BtRuntime.h
  11432. Added the usage message of --peer-id-prefix option.
  11433. * src/main.cc
  11434. * Release 0.11.2
  11435. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11436. MessageDigestHelper is introduced in order to simplify the use
  11437. of message digest. Removed repeated code.
  11438. The message digest algorithm is now specified by string, like "sha1",
  11439. "md5".
  11440. * src/messageDigest.{h, cc}
  11441. * src/MessageDigestHelper.{h, cc}: New class.
  11442. * src/DefaultPieceStorage.cc
  11443. * src/DefaultBtContext.{h, cc}
  11444. (computeFastSet): New function.
  11445. (setInfoHash): Added for unit testing.
  11446. (setNumPieces): Added for unit testing.
  11447. * src/DefaultBtInteractive.cc
  11448. * src/BtPieceMessage.cc
  11449. * src/Peer.cc
  11450. * src/Checksum.h
  11451. * src/message.h
  11452. * src/IteratableChecksumValidator.h
  11453. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11454. inside it.
  11455. * src/SegmentMan.{h, cc}
  11456. (checkIntegrity): Removed.
  11457. * src/IteratableChunkChecksumValidator.{h, cc}
  11458. * src/Util.h
  11459. (sha1Sum): Removed.
  11460. (simpleMessageDigest): Removed.
  11461. (fileChecksum): Removed.
  11462. (computeFastSet): Removed.
  11463. * src/ShaVisitor.cc
  11464. * src/ChunkChecksum.h
  11465. * src/DownloadCommand.cc
  11466. Removed messageDigest virtual functions.
  11467. * src/MultiDiskAdaptor.{h, cc}
  11468. * src/DiskAdaptor.h
  11469. * src/ByteArrayDiskWriter.h
  11470. * src/DiskWriter.h
  11471. * src/DiskAdaptorWriter.h
  11472. * src/AbstractSingleDiskAdaptor.{h, cc}
  11473. * src/AbstractDiskWriter.{h, cc}
  11474. Fixed comilation error when message digest is disabled.
  11475. * src/MetalinkEntry.{h, cc}
  11476. * src/MetalinkRequestInfo.cc
  11477. Removed srandom and random.
  11478. * src/SimpleRandomizer.h
  11479. Added size() virtual function to DiskAdaptor
  11480. * src/MultiDiskAdaptor.h
  11481. Fixed the bug that causes that files are not opened correctly in
  11482. multi-file torrent.
  11483. * src/TorrentRequestInfo.cc
  11484. * src/MultiDiskAdaptor.cc
  11485. Added SHA256 support
  11486. * src/messageDigest.cc
  11487. * src/Xml2MetalinkProcessor.cc
  11488. Show supported message digest algorithms
  11489. * src/main.cc
  11490. Updated contact info.
  11491. * src/main.cc
  11492. Applied Ross's patch
  11493. * src/a2netcompat.h
  11494. * src/main.cc
  11495. Fixed the bug that prevents a remote metalink from not being processed
  11496. even if '-o foo.metalink' is specified.
  11497. * src/MetalinkRequestInfo.cc
  11498. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11499. Merged Dan's patch:
  11500. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11501. Use va_copy to avoid core dump on amd64:
  11502. * src/SimpleLogger.cc
  11503. Updated contact info.
  11504. * src/main.cc
  11505. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11506. digest is not available.
  11507. * src/MetalinkEntry.h
  11508. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11509. Make a2netcompat.h include a2io.h to fix compilation error:
  11510. * src/a2netcompat.h
  11511. * src/SocketCore.cc: Removed include of a2io.h
  11512. * src/Util.cc: Removed include of a2io.h
  11513. Gather time related functions to a2time.h:
  11514. * src/a2time.h: New file.
  11515. * src/DefaultPeerStorage.cc
  11516. * src/SimpleLogger.cc
  11517. * src/Util.{h, cc}
  11518. * src/SimpleRandomizer.h
  11519. * src/TimeA2.{h,cc}
  11520. * src/DownloadCommand.cc
  11521. * src/main.cc
  11522. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11523. a2netcompat.h:
  11524. * src/NameResolver.cc
  11525. Fixed compilation error without openssl:
  11526. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11527. Added default block to suppress compiler warnings:
  11528. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11529. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11530. MinGW build enhancements. The following files are added:
  11531. * src/gai_strerror.{c,h}
  11532. * src/gettimeofday.{c,h}
  11533. Changes to support the above new files:
  11534. * configure.ac
  11535. * src/Makefile.am
  11536. * src/a2netcompat.h
  11537. * src/TimeA2.cc
  11538. * src/DefaultPeerStorage.cc
  11539. * src/NameResolver.cc: removed mingw_strerror() function.
  11540. * src/SocketCore.cc: removed mingw_strerror() function.
  11541. Miscellaneous MinGW build fixes.
  11542. * src/a2io.h: Use _lseeki64() instead of lseek()
  11543. * src/common.h
  11544. * src/DefaultFileAllocator.cc
  11545. * src/GlowFileAllocator.cc
  11546. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11547. * src/NameResolver.cc
  11548. (callback): Changed int32_t to int.
  11549. (resolve): Changed int32_t to int.
  11550. * src/Platform.cc
  11551. * src/Platform.h
  11552. * test/MultiDiskWriterTest.cc
  11553. * test/PeerMessageUtilTest.cc
  11554. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11555. Other enhancements and fixes.
  11556. * src/HttpRequestCommand.cc
  11557. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11558. * src/SocketCore.cc:
  11559. (error): New function to abstract errno/WSAGetLastError().
  11560. (errorMsg): New function to abstract errno/WSAGetLastError().
  11561. (initiateSecureConnection): Added more detailed error reporting.
  11562. * src/SocketCore.h: Added private variable blocking, to allow
  11563. proper handling of OpenSSL psuedo-errors.
  11564. * src/message.h
  11565. (EX_SSL_INIT_FAILURE)
  11566. (EX_SSL_IO_ERROR)
  11567. (EX_SSL_PROTOCOL_ERROR)
  11568. (EX_SSL_UNKNOWN_ERROR)
  11569. (EX_SSL_CONNECT_ERROR)
  11570. (EX_SOCKET_BLOCKING)
  11571. (EX_SOCKET_NONBLOCKING)
  11572. (EX_SOCKET_UNKNOWN_ERROR)
  11573. * src/Util.cc
  11574. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11575. reserved name.
  11576. (httpGMT): Fixed typo.
  11577. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11578. Merged Ross's win32 patch(manually)
  11579. In the course of merging, following files are added.
  11580. * src/strptime.{h,c}
  11581. * src/libgen.{h,c}
  11582. * src/inet_aton.{h,c}
  11583. * src/Platform.{h,cc}
  11584. * src/localtime_r.{h,c}
  11585. * src/getaddrinfo.{h,c}
  11586. I've gethered network related things, and put them to following file:
  11587. * src/a2netcompat.h
  11588. Also io related things are put to following file:
  11589. * src/a2io.h
  11590. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11591. * src/message.h
  11592. (MSG_ALLOCATION_COMPLETED)
  11593. (EX_TOO_LARGE_FILE)
  11594. (EX_SIZE_MISMATCH)
  11595. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11596. (EX_INVALID_CHUNK_CHECKSUM)
  11597. (EX_INVALID_RANGE_HEADER)
  11598. * src/FileAllocationCommand.cc
  11599. * src/HttpResponse.cc
  11600. * src/RequestGroup.cc
  11601. * src/MultiDiskAdaptor.cc
  11602. * src/OptionHandlerImpl.h
  11603. * src/HttpResponseCommand.cc
  11604. * src/FtpNegotiateCommand.cc
  11605. * src/IteratableChecksumValidator.cc
  11606. * src/SegmentMan.cc
  11607. * src/ChunkChecksumValidator.cc
  11608. Added Randomizer::getRandomNumber(long int)
  11609. * src/Randomizer.h (getRandomNumber)
  11610. * src/SimpleRandomizer.h (getRandomNumber)
  11611. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11612. * src/Util.cc (randomAlpha): Use this new function.
  11613. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11614. Converted int's to in32_t. long long int's are also converted to
  11615. int64_t
  11616. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11617. Fixed the bug that prevents cookies from being sent to the server
  11618. if the domain of cookie is FQDN and starts with ".".
  11619. * src/Cookie.cc (match)
  11620. To add the ability to change peer id.
  11621. * src/DefaultBtContext.h
  11622. (_peerIdPrefix): New variable
  11623. (setPeerIdPrefix): New function.
  11624. * src/torrentRequestInfo.cc
  11625. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11626. DefaultBtContext.
  11627. * src/main.cc (main): Added peer-id-prefix command-line option.
  11628. The usage message is not added yet.
  11629. * src/DefaultBtContext.cc
  11630. (generatePeerId): Use _peerIdPrefix.
  11631. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11632. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11633. Fixed the bug that prevents filename in content-disposition from
  11634. being retrieved when filename is not quoted.
  11635. * src/Util.cc (getContentDispositionFilename)
  11636. Fixed the bug that causes infinate loop and memory leak when file open
  11637. operation failed.
  11638. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11639. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11640. Fixed the bug that causes segfault when all URIs specified are
  11641. unsupported.
  11642. * src/RequestGroupMan.cc (getInitialCommands)
  11643. Check if RequestGroup::createNextCommand() returns empty list of
  11644. commands.
  11645. * src/RequestGroup.cc (createNextCommand)
  11646. Change log level from info to error so that users can notice that
  11647. an error occurred.
  11648. Fixed the bug that causes segfault when a zero-sized file is
  11649. downloaded.
  11650. * src/BitfieldMan.cc (isAllBitSet)
  11651. Return true if bitfieldLength is 0.
  11652. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11653. * src/main.cc
  11654. (showUsage): Added 3 usage examples for metalink download.
  11655. Replace MetalinkChunkChecksum with ChunkChecksum.
  11656. * src/MetalinkChunkChecksum.h: Removed.
  11657. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11658. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11659. * src/Xml2MetalinkProcessor.cc
  11660. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11661. * src/MetalinkRequestInfo.cc (execute)
  11662. * Release 0.11.1
  11663. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11664. Reads URIs from stdin when "-i -" is specified.
  11665. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11666. * src/UriListParser.h, src/UriListParser.cc: New class.
  11667. * src/StreamUriListParser.h: New class.
  11668. * src/FileUriListParser.h: New class.
  11669. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11670. instead of UriFileListParser.
  11671. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11672. Made console readout more readable.
  11673. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11674. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11675. Fix the bug that causes -s option not to work.
  11676. * src/main.cc (main)
  11677. * src/a2algo.h: New file.
  11678. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11679. Create directory structure specified in metalink file.
  11680. * src/RequestGroup.h, src/RequestGroup.cc
  11681. (initAndOpenFile): Create a directory to store files if it does not
  11682. exist.
  11683. (getDir): New function.
  11684. Added ETA and download speed for an individual file to readout.
  11685. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11686. * src/RequestGroup.h
  11687. (calculateDownloadSpeed): New function.
  11688. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11689. Made -S option work with metalink file and provided selective download
  11690. to metalink.
  11691. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11692. (filename): Removed.
  11693. (file): New variable.
  11694. (size): Removed.
  11695. (operator=): Updated.
  11696. (getPath): New function.
  11697. (getLength): New function.
  11698. (toFileEntry): New function.
  11699. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11700. (execute): Use toStream.
  11701. (showFileEntry): Removed.
  11702. * src/MetalinkRequestInfo.h
  11703. (targetFiles): New variable.
  11704. (setTargetFiles): New variable.
  11705. * src/MetalinkRequestInfo.cc
  11706. (execute): Added the ability to print file information included in
  11707. a metalink file.
  11708. Added selective download mode to metalink.
  11709. * src/main.cc
  11710. (showUsage): Updated to denote that -S and --select-file options are
  11711. applicable to metalink.
  11712. * src/FileEntry.h
  11713. (operator=): New function.
  11714. (getBasename): New function.
  11715. (getDirname): New function.
  11716. * src/Util.h, src/Util.cc
  11717. (toStream): New function.
  11718. * src/Xml2MetalinkProcessor.cc: Updated.
  11719. Made aria2 work with metalink with directory structure.
  11720. * src/File.h, src/File.cc
  11721. (getBasename): New function.
  11722. (getDirname): New function.
  11723. * src/RequestGroup.h, src/RequestGroup.cc
  11724. (_topDir): New variable.
  11725. (setTopDir): New function.
  11726. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11727. Rewrote HTTP header parsing with stringstream.
  11728. * src/HttpConnection.h, src/HttpConnection.cc
  11729. (HttpRequestEntry): New class.
  11730. (headerBuf): Removed.
  11731. (headerBufLength): Removed.
  11732. (outstandingHttpRequests): Now its element type is
  11733. HttpRequestEntryHandle.
  11734. (findEndOfHeader): Removed.
  11735. (receiveResponse): Rewritten.
  11736. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11737. Updated doc for -j option to notice that it should be used with -i
  11738. option.
  11739. * src/main.cc (showUsage)
  11740. Removed unused classes.
  11741. * src/RequestInfo.h
  11742. (FileInfo): Removed.
  11743. (checksum): Removed.
  11744. (fileInfo): Removed.
  11745. (setChecksum): Removed.
  11746. (getChecksum): Removed.
  11747. (getFileInfo): Removed.
  11748. Use ISO units.
  11749. * src/ConsoleDownloadEngine.cc
  11750. * src/TorrentConsoleDownloadEngine.cc
  11751. * src/Util.cc (abbrevSize)
  11752. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11753. Added the default listening ports to the help message.
  11754. * src/main.cc (showUsage)
  11755. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11756. Reduce the number of calls to gettimeofday to lower CPU load.
  11757. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11758. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11759. * src/Peer.h (calculateUploadSpeed): New function.
  11760. (calculateDownloadSpeed): New function.
  11761. * src/DefaultPeerStorage.cc
  11762. (CalculateStat): Added _now variable.
  11763. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11764. and Peer::calculateUploadSpeed(const struct timeval&)
  11765. Drop connection if no request or piece message is exchanged in
  11766. a certain interval.
  11767. * src/DefaultBtInteractive.h
  11768. (btRuntime): New variable.
  11769. (inactiveCheckPoint): New variable.
  11770. (checkActiveInteraction): New function.
  11771. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11772. request or piece message is received.
  11773. (checkActiveInteraction): New function.
  11774. (doInteractionProcessing): Call checkActiveInteraction.
  11775. Fixed the bug that causes remote Metalink and Torrent files are not
  11776. processed.
  11777. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11778. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11779. Changed format of log file.
  11780. * src/SimpleLogger.cc
  11781. * Release 0.11.0
  11782. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11783. * src/AbstractCommand.cc
  11784. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11785. MSG_MAX_TRY from error to info.
  11786. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11787. * src/message.h
  11788. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11789. (MSG_DOWNLOAD_ABORTED): Added %s.
  11790. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11791. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11792. * src/PeerAbstractCommand.cc
  11793. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11794. * src/Request.h
  11795. (cookieBox): Made ShardHandle.
  11796. * src/RequestGroup.h, src/RequestGroup.cc
  11797. (createNextCommandWithAdj): New function.
  11798. * src/FileAllocationCommand.cc
  11799. (executeInternal): Use createNextCommandWithAdj().
  11800. * src/CheckIntegrityCommand.cc
  11801. (executeInternal): Use createNextCommandWithAdj().
  11802. Added --load-cookies command-option.
  11803. * src/OptionHandlerFactory.cc
  11804. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11805. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11806. Now aria2 can handle cookie's expiration date.
  11807. * src/Cookie.h (expires): Changed its type to time_t.
  11808. * src/main.cc: Added --load-cookies command-line option.
  11809. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11810. * src/Util.h, src/Util.cc (httpGMT): New function.
  11811. * src/Request.cc (Request): Initialize cookieBox using
  11812. CookieBoxFactory.
  11813. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11814. * src/CookieParser.h, src/CookieParser.cc: New class.
  11815. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11816. * src/HttpResponseCommand.cc
  11817. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11818. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11819. download.
  11820. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11821. Added -j command-line option.
  11822. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11823. * src/main.cc
  11824. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11825. Rewritten using stringstream.
  11826. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11827. Rewritten using stringstream.
  11828. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11829. Make download size shown in MB, KB.
  11830. * src/ConsoleDownloadEngine.h (sendStatistics)
  11831. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11832. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11833. Accept incoming connections if download rate is low.
  11834. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11835. (_lowestSpeedLimit): New variable.
  11836. (setLowestSpeedLimit): New function.
  11837. (execute): Accept incoming connections if download rate is low.
  11838. MAX_PEERS is ignored in this case.
  11839. Disable PREF_OUT in multiple concurrent download:
  11840. * src/RequestGroup.h, src/RequestGroup.cc
  11841. (setUserDefinedFilename): New function.
  11842. * src/DownloadEngineFactory.cc
  11843. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11844. concurrent download.
  11845. * src/DefaultSegmentManFactory.cc
  11846. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11847. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11848. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11849. Added its overloaded method.
  11850. * src/RequestGroup.h
  11851. (_numConcurrentCommand): New variable.
  11852. (setNumConcurrentCommand): New function.
  11853. * src/RequestGroup.cc
  11854. Abort download if same file is being downloaded concurrently.
  11855. * src/RequestGroup.h, src/RequestGroupMan.cc
  11856. (isSameFileBeingDownloaded): New function.
  11857. * src/HttpResponseCommand.cc (executeInternal)
  11858. * src/FtpNegotiateCommand.cc (recvSize)
  11859. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11860. * main.cc: Added help message for -i option.
  11861. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11862. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11863. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11864. * src/MetalinkEntry.h
  11865. (checksum): Changed to ChecksumHandle
  11866. * src/MetalinkRequestInfo.cc
  11867. (checksum): Changed to ChecksumHandle
  11868. * src/File.cc
  11869. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11870. * src/common.h
  11871. (DIR_OPEN_MODE): New definition
  11872. * src/RequestGroup.cc
  11873. (prepareForNextAction): Added an argument.
  11874. * src/message.h
  11875. (MSG_GOOD_CHECKSUM): New definition
  11876. (MSG_BAD_CHECKSUM): New definition
  11877. * src/HttpResponseCommand.cc
  11878. (handleDefaultEncoding): Continue download sequence in new
  11879. non-segmented download.
  11880. * src/FileAllocationEntry.h
  11881. (_nextDownloadCommand): New variable.
  11882. * src/DownloadCommand.cc
  11883. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11884. available.
  11885. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11886. * src/IteratableChecksumValidator.h,
  11887. src/IteratableChecksumValidator.cc: New class.
  11888. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11889. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11890. Change file mode to 666:
  11891. * src/common.h (OPEN_MODE): New definition.
  11892. * src/File.cc
  11893. * src/Util.cc
  11894. * src/Directry.cc
  11895. * src/AbstractDiskWriter.cc
  11896. Change the level of log message "download aborted" to debug:
  11897. * src/PeerAbstractCommand.cc (execute)
  11898. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11899. * src/TrackerWatcherCommand.cc
  11900. (createCommand): Sleep some seconds after request failed.
  11901. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11902. then abort tracker request.
  11903. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11904. * Added the simultaneous download feature.
  11905. * src/main.cc: Print "Exception caught: " when exception is caught.
  11906. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11907. * src/ActivePeerConnectionCommand.cc
  11908. * src/PeerInteractionCommand.cc
  11909. * src/BtRuntime.h
  11910. (cuidCounter): Removed.
  11911. (getNewCuid): Removed.
  11912. * src/DownloadEngineFactory.cc
  11913. * src/PeerListenCommand.cc
  11914. * src/TrackerUpdateCommand.cc
  11915. * src/PeerInitiateConnectionCommand.cc
  11916. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11917. * src/PeerAbstractCommand.cc
  11918. (onAbort): Call PeerStorage::returnPeer()
  11919. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11920. (incomingPeers): New variable.
  11921. (addIncomingPeer): New function.
  11922. (returnPeer): New function.
  11923. (onErasingPeer): New function.
  11924. (addPeer): push_back -> push_front
  11925. (getActivePeers): Rewritten.
  11926. (calculateStat): Rewritten.
  11927. * src/PeerStorage.h
  11928. (TransferStat::copy): New function.
  11929. (TransferStat::TransferStat): New function.
  11930. (TransferStat::operator=): New function.
  11931. (addIncomingPeer): New function.
  11932. (returnPeer): New function.
  11933. * src/PeerListenCommand.cc
  11934. (execute): Use PeerStorage::addIncomingPeer() instead of
  11935. Peer::addPeer().
  11936. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11937. Connect to a peer actively when download speed is lower than specified
  11938. speed in torrent download:
  11939. * src/ActivePeerConnectionCommand.h: New class.
  11940. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11941. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11942. * src/main.cc: Fixed the bug that prevents download if .netrc
  11943. doesn't exist.
  11944. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11945. To cache resolved hostname:
  11946. * src/AbstractCommand.h, src/AbstractCommand.cc
  11947. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11948. Added dns cache.
  11949. * src/FtpInitiateConnectionCommand.cc
  11950. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11951. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11952. NameResolver working without ares.
  11953. * src/TorrentRequestInfo.cc
  11954. (execute): Don't cache dns in torrent download.
  11955. * src/HttpInitiateConnectionCommand.cc
  11956. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11957. * src/DNSCache.h: New class.
  11958. * src/UrlRequestInfo.cc
  11959. (execute): Use dns cache.
  11960. In http request, suppress port number in http request header if port
  11961. is 80 or 443:
  11962. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11963. request header if port is 80 or 443.
  11964. (createProxyRequest): Allways send port number.
  11965. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11966. To add the command-line option which disables netrc support:
  11967. * src/OptionHandlerFactory.cc
  11968. (createOptionHandlers): Added PREF_NO_NETRC.
  11969. * src/main.cc: Added -n option.
  11970. * src/prefs.h (PREF_NO_NETRC): New definition.
  11971. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11972. V_TRUE.
  11973. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11974. is V_FALSE. This may get configurable in the future release.
  11975. To clear peer's error status by time basis:
  11976. * src/PeerAbstractCommand.cc
  11977. (onAbort): Call Peer::startBadCondition().
  11978. * src/Peer.h, src/Peer.cc
  11979. (error): Removed.
  11980. (_badConditionStartTime): New variable.
  11981. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11982. (startBadCondition): New function.
  11983. (isGood): New function.
  11984. * src/DefaultPeerStorage.cc
  11985. (addPeer): Use Peer::isGood().
  11986. (FindFinePeer): Use Peer::isGood().
  11987. Always include port number in http request header:
  11988. * src/HttpRequest.cc (getHostText): Always include port number in
  11989. http request header.
  11990. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11991. To the ability to read options from a config file:
  11992. * src/main.cc: Command-line parameter validation is delegated to
  11993. OptionHandler class.
  11994. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11995. * src/Option.h, src/Option.cc (clear): New function.
  11996. * src/OptionParser.h, src/OptionParser.cc: New class.
  11997. * src/OptionHandler.h: New class.
  11998. * src/NameMatchOptionHandler.h: New class.
  11999. * src/OptionHandlerImpl.h: New classes.
  12000. * src/prefs.h: '_' -> '-'
  12001. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12002. (FTP_PASV): New definition.
  12003. * src/Util.h, src/Util.cc (getRealSize): New function.
  12004. To disable netrc support if .netrc file does not have correct
  12005. permissions:
  12006. * src/File.h, src/File.cc (mode): New function.
  12007. To prevent confidential information to be logged:
  12008. * src/HttpConnection.h, src/HttpConnection.cc
  12009. (eraseConfidentialInfo): New function.
  12010. (sendRequest): Call eraseConfidentialInfo().
  12011. (sendProxyRequest): Call eraseConfidentialInfo().
  12012. * src/main.cc: Validate permissions of .netrc file.
  12013. To add --user-agent command-line option:
  12014. * src/main.cc: Added new command line option: --user-agent
  12015. * src/prefs.h (PREF_USER_AGENT): New definition.
  12016. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12017. parameter to HttpRequest object.
  12018. * src/AbstractProxyRequestCommand.cc
  12019. (executeInternal): Set user-agent option parameter to HttpRequest
  12020. object.
  12021. Marged the patches from Dan Fandrich.
  12022. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12023. Use filename and size from Metalink file instead of sending HEAD
  12024. request:
  12025. * src/UrlRequestInfo.h
  12026. (_filename): New variable.
  12027. (_totalLength): New variable.
  12028. (setTotalLength): New variable.
  12029. (setFilename): New variable.
  12030. * src/MetalinkRequestInfo.cc
  12031. (execute): Set filename and size to UrlRequestInfo
  12032. * src/UrlRequestInfo.cc
  12033. (execute): Use filename and size from Metalink instead of seding
  12034. HEAD request to servers.
  12035. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12036. To add the ability to resume downloading a partially downloaded file
  12037. which is downloaded from the beginning:
  12038. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12039. takes this role.
  12040. * src/main.cc: Added -c option.
  12041. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12042. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12043. * src/prefs.h (PREF_CONTINUE): New definition.
  12044. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12045. * src/DefaultDiskWriter.cc
  12046. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12047. * src/AbstractDiskWriter.h
  12048. (glowFileAllocator): New variable.
  12049. * src/AbstractDiskWriter.cc
  12050. (openExistingFile): Now preallocate file space from the end of the
  12051. existing file if totalLength argument is specified and grater than 0.
  12052. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12053. to download exists in local, continue the download of the file.
  12054. --allow-overwrite=true is assumed in this context.
  12055. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12056. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12057. Throw exception if --check-integrity=true is specified but chunk
  12058. checksums are not provided:
  12059. * src/UrlRequestInfo.cc
  12060. Do not print URLs to stdout:
  12061. * src/UrlRequestInfo.cc
  12062. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12063. * src/Request.h: Use AuthResolver to get authentication information.
  12064. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12065. set to RequestFactory object.
  12066. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12067. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12068. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12069. create Request object.
  12070. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12071. To integrate Netrc into exsiting classes:
  12072. * src/Request.h
  12073. (_userDefinedAuthConfig): New variable.
  12074. (findNetrcAuthenticator): New function.
  12075. (segment): Removed.
  12076. (setUserDefinedAuthConfig): New function.
  12077. (resolveHttpAuthConfigItem): New function.
  12078. (resolveFtpAuthConfigItem): New function.
  12079. (resolveHttpProxyAuthConfigItem): New function.
  12080. * src/HttpRequest.h
  12081. (authConfig): Removed.
  12082. (proxyAuthConfig): Removed.
  12083. (setAuthConfig): Removed.
  12084. (setProxyAuthConfig): Removed.
  12085. * src/UrlRequest.h
  12086. (getHeadResult): Added a parameter: authConfigHandle
  12087. * src/common.h
  12088. (SingletonHolder.h): New include.
  12089. * src/main.cc
  12090. (Netrc.h): New include.
  12091. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12092. Added initial value of PREF_NETRC_PATH.
  12093. Added the initialization of netrc.
  12094. * src/AuthConfig.h: New class.
  12095. * src/prefs.h
  12096. (PREF_NETRC_PATH): New definition.
  12097. * src/HttpAuthConfig.h: Removed.
  12098. * src/Netrc.cc
  12099. (getRequiredNextToken): New function.
  12100. (skipMacdef): New function.
  12101. (parse): Rewritten.
  12102. * src/Netrc.h
  12103. (getRequiredNextToken): New function.
  12104. (skipMacdef): New function.
  12105. * src/Util.h, src/Util.cc
  12106. (getHomeDir): New function.
  12107. * src/TrackerWatcherComand.cc
  12108. (createRequestCommand): Use AuthConfig.
  12109. * src/FtpConnection.cc
  12110. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12111. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12112. * src/Request.cc
  12113. (findNetrcAuthenticator): New function.
  12114. (resolveHttpAuthConfigItem): New function.
  12115. (resolveFtpAuthConfigItem): New function.
  12116. (resolveHttpProxyAuthConfigItem): New function.
  12117. * src/UrlRequestInfo.cc: Use AuthConfig.
  12118. * src/HttpRequest.cc
  12119. (createRequest): Use authConfig.
  12120. (getProxyAuthString): Use authConfig.
  12121. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12122. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12123. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12124. To reduce overhead to find commands whose socket is either
  12125. readable or writable in the download engine loop:
  12126. * src/Command.h, src/Command.cc
  12127. (STATUS): New enum.
  12128. (status): New variable.
  12129. (statusMatch): New function.
  12130. (setStatusActive): New function.
  12131. (setStatusInactive): New function.
  12132. * src/DownloadEngine.h, src/DownloadEngine.cc
  12133. (executeCommand): New function.
  12134. (run): Simplified.
  12135. (waitData): Call Command::setStatusActive() when command's socket is
  12136. readable or writable.
  12137. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12138. To handle Segment as SegmentHandle:
  12139. * src/AbstractCommand.cc (execute): Rewritten.
  12140. * src/SegmentMan.h: Segment -> SegmentHandle
  12141. Introducded HttpResponse class, HttpRequest class to improve code
  12142. extensiveness and make it clear:
  12143. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12144. HttpResponse class.
  12145. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12146. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12147. * src/HttpConnection.cc: Contruction of http request were moved to
  12148. HttpRequest class.
  12149. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12150. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12151. * src/HttpAuthConfig.h: New class.
  12152. * src/Range.h: New class.
  12153. To make FtpTunnel{Request, Response}Command and
  12154. HttpProxy{Request, Response}Command derived from
  12155. AbstractProxy{Request, Response}Command:
  12156. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12157. Derived from AbstractProxyRequestCommand class.
  12158. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12159. Derived from AbstractProxyResponseCommand class.
  12160. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12161. Derived from AbstractProxyRequestCommand class.
  12162. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12163. Derived from AbstractProxyResponseCommand class.
  12164. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12165. : New class.
  12166. * src/AbstractProxyResponseCommand.h,
  12167. src/AbstractProxyResponseCommand.cc: New class.
  12168. To add netrc support:
  12169. * src/Netrc.h, src/Netrc.cc: New class.
  12170. * src/Util.h, src/Util.cc (split): New function.
  12171. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12172. "Content-Range" header instead of "Range" header.
  12173. * src/HttpHeader.h
  12174. (getStatus): Removed.
  12175. (setStatus): Removed.
  12176. * src/Segment.h
  12177. (getPositionToWrite): New function.
  12178. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12179. * src/HttpHeader.h
  12180. (Range.h): New include.
  12181. (status): New variable.
  12182. (HttpHeader): Initialized status with 0.
  12183. (getStatus): New function.
  12184. (setStatus): New function.
  12185. (getRange): New function.
  12186. (HttpHeaderHandle): New function.
  12187. * src/HttpHeader.cc
  12188. (getRange): New function.
  12189. * src/Request.h
  12190. (RequestWeakHandle): New definition.
  12191. * src/HttpConnection.h
  12192. (HttpConnectionHandle): New type definition.
  12193. * src/HttpConnection.cc
  12194. (receiveResponse): Set HTTP status to headers.
  12195. * src/main.cc
  12196. (showUsage): Fixed typo.
  12197. * src/Segment.h
  12198. (SegmentHandle): New type definition.
  12199. * src/BitfieldMan.h
  12200. (getMissingUnusedLength): New function.
  12201. * src/BitfieldMan.cc
  12202. (getMissingUnusedLength): New function.
  12203. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12204. To fix static initialization order problem:
  12205. * src/BitfieldManFactory.h
  12206. (defaultRandomizer): Removed.
  12207. (factory): New variable.
  12208. (getNewFactory): Removed.
  12209. (getFactoryInstance): New function.
  12210. (setDefaultRandomizer): Rewritten.
  12211. (getDefaultRandomizer): Rewritten.
  12212. * src/BitfieldManFactory.cc
  12213. (defaultRandomizer): Removed.
  12214. (factory): Initialized to 0.
  12215. (BitfieldManFactory): Initialized randomizer to 0.
  12216. * src/DefaultPieceStorage.cc
  12217. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12218. * src/Peer.cc
  12219. (Peer): getNewFactory() -> getFactoryInstance()
  12220. * src/SegmentMan.cc
  12221. (initBitfield): getNewFactory() -> getFactoryInstance()
  12222. * src/Piece.cc
  12223. (Piece): getNewFactory() -> getFactoryInstance()
  12224. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12225. To fix the bug that causes crash on Max OS X:
  12226. * src/SimpleRandomizer.h
  12227. (getInstance): Create new instance if the static variable is null.
  12228. * src/SimpleRandomizer.cc
  12229. (randomizer): Initialized to 0.
  12230. * src/BitfieldManFactory.h
  12231. (getNewFactory): Removed the call to setRandomizer().
  12232. To fix the miscalculation of the range of checksum:
  12233. * src/BitfieldMan.h
  12234. (isBitSetOffsetRange): New function.
  12235. * src/BitfieldMan.cc
  12236. (isBitSetOffsetRange): New function.
  12237. * src/SegmentMan.cc
  12238. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12239. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12240. * Release 0.10.1
  12241. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12242. To lower CPU usage in BitTorrent download when --max-upload-limit
  12243. command-line option specified:
  12244. * src/DefaultBtMessageDispatcher.cc
  12245. (sendMessages): Calculate uploading speed only when current message
  12246. is uploading data and is not sent yet.
  12247. * src/DefaultPeerStorage.h
  12248. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12249. * src/HttpResponseCommand.cc
  12250. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12251. This fixes compile error in Soralis 10.
  12252. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12253. To fix segfault in Metalink download:
  12254. * src/UrlRequestInfo.h
  12255. (filename): Removed.
  12256. (totalLength): Removed.
  12257. (setTotalLength): Removed.
  12258. (setFilename): Removed.
  12259. * src/MetalinkRequestInfo.cc
  12260. (execute): Do not set filename and totalLength to reqInfo.
  12261. Set chunk checksum to reqInfo if it is not null.
  12262. * src/HttpResponseCommand.cc
  12263. (executeInternal): Fixed filename in log.
  12264. (handleDefaultEncoding): Removed the call to initBitfield() and
  12265. markAllPiecesDone().
  12266. (handleOtherEncoding): Added HEAD method handling.
  12267. * src/FtpNegotiateCommand.cc
  12268. (executeInternal): Added SEQ_HEAD_OK handling.
  12269. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12270. return false.
  12271. * src/FtpNegotiateCommand.h
  12272. (SEQ_HEAD_OK): New definition.
  12273. * src/SegmentMan.cc
  12274. (initBitfield): Delete bitfield.
  12275. (isChunkChecksumValidationReady): Fixed the condition.
  12276. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12277. works fine.
  12278. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12279. * src/Xml2MetalinkProcessor.h
  12280. (xpathExists): New function.
  12281. * src/Xml2MetalinkProcessor.cc
  12282. (xpathExists): New function.
  12283. Not to send HEAD request if filename and size are available in Metalink
  12284. file:
  12285. * src/UrlRequestInfo.h
  12286. (filename): New variable.
  12287. (totalLength): New variable.
  12288. (setTotalLength): New function.
  12289. (setFilename): New function.
  12290. * src/MetalinkRequestInfo.cc
  12291. (execute): Set filename and size to UrlRequestInfo.
  12292. * src/MetalinkEntry.cc
  12293. (MetalinkEntry): Initialize size with 0.
  12294. * src/UrlRequestInfo.cc
  12295. (execute): Set filename and size to SegmentMan.
  12296. Not to download rest of the files after selected files are downloaded
  12297. in BitTorrent:
  12298. * src/PieceStorage.h
  12299. (allDownloadFinished): New function.
  12300. * src/DefaultBtAnnounce.cc
  12301. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12302. downloadFinished.
  12303. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12304. * src/DefaultPieceStorage.cc
  12305. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12306. Commented out the call to finishSelectiveDownloadingMode().
  12307. (downloadFinished): Call isFilteredAllBitSet() instead of
  12308. isAllBitSet().
  12309. (allDownloadFinished): New function.
  12310. * src/DefaultBtInteractive.cc
  12311. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12312. downloadFinished().
  12313. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12314. * src/TorrentDownloadEngine.cc
  12315. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12316. * src/BitfieldMan.h
  12317. (isFilteredAllBitSet): New function.
  12318. * src/ShareRatioSeedCriteria.h
  12319. (PieceStorage.h): New include.
  12320. (pieceStorage): New variable.
  12321. (evaluate):
  12322. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12323. * src/BitfieldMan.cc
  12324. (isFilteredAllBitSet): New function.
  12325. (isAllBitSet): Filter is not took into account.
  12326. Rename --force-truncate as --allow-overwrite:
  12327. * src/TorrentRequestInfo.cc
  12328. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12329. * src/main.cc
  12330. (showUsage): --force-truncate -> --allow-overwrite
  12331. * src/message.h
  12332. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12333. * src/prefs.h
  12334. (PREF_FORCE_TRUNCATE): Removed.
  12335. (PREF_ALLOW_OVERWRITE): New definition.
  12336. * src/SegmentMan.cc
  12337. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12338. * src/MetalinkRequestInfo.cc
  12339. (execute): Queueing message are now logged in info level.
  12340. * src/common.h
  12341. (LONG_LONG_MAX): Removed.
  12342. (LONG_LONG_MIN): Removed.
  12343. * src/HttpResponseCommand.cc
  12344. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12345. * src/FtpNegotiateCommand.cc
  12346. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12347. * src/main.cc
  12348. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12349. command-line option.
  12350. (main): Added --check-integriy and --realtime-chunk-checksum
  12351. command-line option.
  12352. --force-truncate -> --allow-overwrite
  12353. Set initial value of --check-integrity option to false.
  12354. Don't show usage when error occurs while persing command-line options.
  12355. Removed deprecated --upload-limit option.
  12356. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12357. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12358. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12359. * src/BtAllowedFastMessage.cc:
  12360. * src/BtBitfieldMessage.cc
  12361. * src/BtCancelMessage.cc
  12362. * src/BtChokeMessage.cc
  12363. * src/BtHaveAllMessage.cc
  12364. * src/BtHaveMessage.cc
  12365. * src/BtHaveNoneMessage.cc
  12366. * src/BtInterestedMessage.cc
  12367. * src/BtNotInterestedMessage.cc
  12368. * src/BtPieceMessage.cc
  12369. * src/BtPortMessage.cc
  12370. * src/BtRejectMessage.cc
  12371. * src/BtRequestMessage.cc
  12372. * src/BtSuggestPieceMessage.cc
  12373. * src/BtUnchokeMessage.cc
  12374. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12375. files are affected.
  12376. * src/ChunkChecksumValidator.cc
  12377. * src/SegmentMan.cc
  12378. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12379. To add chunk checksum validation:
  12380. * src/MetalinkEntry.h
  12381. (MetalinkChunkChecksum.h): New include.
  12382. (chunkChecksum): New variable.
  12383. * src/Request.h
  12384. (method): New variable.
  12385. (setMethod): New function.
  12386. (getMethod): New function.
  12387. (METHOD_GET): New static constant.
  12388. (METHOD_HEAD): New static constant.
  12389. * src/Xml2MetalinkProcessor.h
  12390. (getPieceHash): New function.
  12391. * src/PieceStorage.h
  12392. (markAllPiecesDone): New function.
  12393. (checkIntegrity): New function.
  12394. * src/FileAllocator.h
  12395. (NullFileAllocationMonitor.h): New include.
  12396. (FileAllocator): Initialize fileAllocationMonitor with new
  12397. NullFileAllocationMonitor().
  12398. * src/MultiDiskAdaptor.h
  12399. (messageDigest.h): Remove include.
  12400. (ctx): Removed.
  12401. (hashUpdate): Added ctx.
  12402. (MultiDiskAdaptor): Removed ctx.
  12403. (sha1Sum): Renamed as messageDigest.
  12404. (messageDigest): New function.
  12405. * src/UrlRequestInfo.h
  12406. (HeadResult): New class.
  12407. (digestAlgo): New variable.
  12408. (chunkChecksumLength): New variable.
  12409. (chunkChecksums): New variable.
  12410. (getHeadResult): New function.
  12411. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12412. (setDigestAlgo): New function.
  12413. (setChunkChecksumLength): New function.
  12414. (setChunkChecksums): New function.
  12415. * src/DefaultPieceStorage.cc
  12416. (DiskAdaptorWriter.h): New include.
  12417. (ChunkChecksumValidator.h): New include.
  12418. (markAllPiecesDone): New function.
  12419. (checkIntegrity): New function.
  12420. * src/DefaultBtContext.h
  12421. (getPieceHashes): New function.
  12422. * src/TorrentRequestInfo.cc
  12423. (execute): Try to validate chunk checksum if file already exists and
  12424. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12425. * src/messageDigest.h
  12426. (~MessageDigestContext): Added digestFree().
  12427. * src/MetalinkRequestInfo.cc
  12428. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12429. * src/DiskAdaptor.h
  12430. (messageDigest.h): New include.
  12431. (sha1Sum): Renamed as messageDigest.
  12432. (messageDigest): New function.
  12433. * src/DownloadCommand.h
  12434. (PeerStat.h): New include.
  12435. (maxDownloadSpeedLimit): New variable.
  12436. (startupIdleTime): New variable.
  12437. (lowestDownloadSpeedLimit): New variable.
  12438. (peerStat): New variable.
  12439. (setMaxDownloadSpeedLimit): New function.
  12440. (setStartupIdleTime): New function.
  12441. (setLowestDownloadSPeedLimit): New function.
  12442. * src/BtContext.h
  12443. (getPieceHashes): New function.
  12444. * src/main.cc
  12445. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12446. option to true for testing purpose.
  12447. * src/BtPieceMessage.cc
  12448. (checkPieceHash): Use messageDigest
  12449. * src/DownloadEngine.cc
  12450. (SetDescriptor): Removed.
  12451. (AccumulateActiveCommand): Removed.
  12452. (waitData): Rewritten.
  12453. (updateFdSet): Rewritten.
  12454. * src/MultiDiskAdaptor.cc
  12455. (hashUpdate): Added ctx.
  12456. (sha1Sum): Renamed as messageDigest.
  12457. (messageDigest): New function.
  12458. * src/BitfieldMan.h
  12459. (isBitRangeSet): New function.
  12460. (unsetBitRange): New function.
  12461. * src/ByteArrayDiskWriter.h
  12462. (sha1Sum): Renamed as messageDigest.
  12463. (messageDigest): New function.
  12464. * src/ConsoleDownloadEngine.cc
  12465. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12466. * src/DiskWriter.h
  12467. (messageDigest.h): New include.
  12468. (sha1Sum): Renamed as messageDigest.
  12469. (messageDigest): New function.
  12470. * src/ChunkChecksumValidator.h: New class.
  12471. * src/DiskAdaptorWriter.h: New class.
  12472. * src/prefs.h
  12473. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12474. (PREF_CHECK_INTEGRITY): New definition.
  12475. * src/HttpResponseCommand.cc
  12476. (handleDefaultEncoding): Added method "HEAD" handling.
  12477. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12478. (handleOtherEncoding):
  12479. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12480. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12481. startupIdleTime, lowestDownloadSpeedLimit to command.
  12482. * src/SegmentMan.h
  12483. (getSegmentEntryByIndex): New function.
  12484. (getSegmentEntryByCuid): New function.
  12485. (getSegmentEntryIteratorByCuid): New function.
  12486. (diskWriter): DiskWriter -> DiskWriterHandle
  12487. (pieceHashes): New variable.
  12488. (chunkHashLength): New variable.
  12489. (digestAlgo): New variable.
  12490. (FindPeerStat): Removed.
  12491. (getPeerStat): Rewritten.
  12492. (markAllPiecesDone): New function.
  12493. (checkIntegrity): New function.
  12494. (tryChunkChecksumValidation): New function.
  12495. (isChunkChecksumValidationReady): New function.
  12496. * src/BitfieldMan.cc
  12497. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12498. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12499. blocks to 0.
  12500. (isBitRangeSet): New function.
  12501. (unsetBitRange): New function.
  12502. * src/FtpNegotiateCommand.cc
  12503. (executeInternal): Set maxDownloadSpeedLimit,
  12504. startupIdleTime, lowestDownloadSpeedLimit to command.
  12505. (recvSize): Added method "HEAD" handling.
  12506. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12507. * src/AbstractSingleDiskAdaptor.cc
  12508. (sha1Sum): Renamed as messageDigest.
  12509. (messageDigest): New function.
  12510. * src/AbstractSingleDiskAdaptor.h
  12511. (sha1Sum): Renamed as messageDigest.
  12512. (messageDigest): New function.
  12513. * src/Util.h
  12514. (indexRange): New function.
  12515. * src/MetalinkEntry.cc
  12516. (MetalinkEntry): Initialized chunkChecksum to 0.
  12517. * src/ShaVisitor.cc
  12518. (~ShaVisitor): Removed the call to ctx.digestFree().
  12519. * src/SegmentMan.cc
  12520. (ChunkChecksumValidator.h): New include.
  12521. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12522. to DIGEST_ALGO_SHA1.
  12523. (~SegmentMan): Removed diskWriter.
  12524. (FindSegmentEntryByIndex): Removed.
  12525. (FindSegmentEntryByCuid): Removed.
  12526. (checkoutSegment): Rewritten.
  12527. (findSlowerSegmentEntry): Rewritten.
  12528. (getSegment): Rewritten.
  12529. (updateSegment): Rewritten.
  12530. (completeSegment): Rewritten.
  12531. (markAllPiecesDone): New function.
  12532. (checkIntegrity): New function.
  12533. (isChunkChecksumValidationReady): New function.
  12534. (tryChunkChecksumValidation): New function.
  12535. * src/Xml2MetalinkProcessor.cc
  12536. (getEntry): Get size and set it to entry.
  12537. Get chunk checksum and set it to entry.
  12538. (getPieceHash): New function.
  12539. * src/Util.cc
  12540. (sha1Sum): Removed ctx.digestFree()
  12541. (fileChecksum): Removed ctx.digestFree()
  12542. (indexRange): New function.
  12543. * src/Request.cc
  12544. (METHOD_GET): New variable.
  12545. (METHOD_HEAD): New variable.
  12546. (Request): Added method.
  12547. * src/UrlRequestInfo.cc
  12548. (FatalException.h): New include.
  12549. (message.h): New include.
  12550. (operator<<): Added operator<< for class HeadResult.
  12551. (getHeadResult): New function.
  12552. (execute): Get filename and size in separate download engine.
  12553. * src/ChunkChecksumValidator.cc: New class.
  12554. * src/DownloadCommand.cc:
  12555. (DownloadCommand): Added peerStat.
  12556. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12557. the value from Option.
  12558. The buffer size is now 16KB.
  12559. Use peerStat member instead of getting it from SegmentMan.
  12560. Use startupIdleTime member instead of gettingit from Option.
  12561. Added chunk checksum validation.
  12562. * src/AbstractDiskWriter.cc
  12563. (AbstractDiskWriter): Removed ctx.
  12564. (~AbstractDiskWriter): Removed ctx.digestFree()
  12565. (writeDataInternal): Returns the return value of write.
  12566. (readDataInternal): Returns the return value of read.
  12567. (sha1Sum): Renamed as messageDigest
  12568. (messageDigest): New function.
  12569. * src/AbstractDiwkWriter.h
  12570. (messageDigest.h): Removed include.
  12571. (ctx): Removed.
  12572. (sha1Sum): Renamed as messageDigest
  12573. (messageDigest): New function.
  12574. * src/DefaultPieceStorage.h
  12575. (markAllPiecesDone): New function.
  12576. (checkIntegrity): New function.
  12577. * src/NullFileAllocationMonitor.h: New class.
  12578. * src/MetalinkChunkChecksum.h: New class.
  12579. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12580. To decrease CPU usage in bittorrent download, calculation results in
  12581. BitfieldMan were cached and realtime fetching PeerObject was removed
  12582. with WeakHandle introduced. Option values are set to the objects
  12583. by setter before download begins.
  12584. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12585. * src/DefaultBtRequestFactory.h
  12586. (dispatcher): BtMessageDispatcherHandle ->
  12587. BtMessageDispatcherWeakHandle.
  12588. (messageFactory): New variable.
  12589. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12590. BtMessageDispatcherWeakHandle.
  12591. (setBtMessageFactory): New function.
  12592. * src/DefaultBtMessageDispatcher.cc:
  12593. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12594. from Option.
  12595. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12596. feating the value from Option.
  12597. Use messageFactory member.
  12598. * src/PeerInteractionCommand.cc
  12599. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12600. Add reverse dependencies to factory object.
  12601. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12602. dispatcher.
  12603. Set messageFactory to receiver.
  12604. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12605. btInteractive.
  12606. Set receiver to peerObject.
  12607. Set maxDownloadSpeedLimit to this.
  12608. (executeInternal): Use maxDownloadSpeedLimit member.
  12609. * src/BtChokeMessage.cc
  12610. (doReceivedAction): Use dispatcher, requestFactory member.
  12611. (onSendComplete): Use dispatcher member.
  12612. * src/PeerInteractionCommand.h
  12613. (maxDownloadSpeedLimit): New variable.
  12614. * src/DefaultBtMessageReceiver.h
  12615. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12616. (dispatcher):
  12617. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12618. (messageFactory): New variable.
  12619. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12620. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12621. (setDispatcher):
  12622. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12623. (setBtMessageFactory): New function.
  12624. * src/DefaultBtInteractive.cc
  12625. (initiateHandshake): Use messageFactory member.
  12626. (addBitfieldMessageToQueue): Use messageFactory member.
  12627. (addAllowedFastMessageToQueue): Use messageFactory member.
  12628. (decideChoking): Use messageFactory member.
  12629. (checkHave): Use messageFactory member.
  12630. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12631. (receiveMessages): Use maxDownloadSpeedLimit member.
  12632. (decideInterest): Use messageFactory member.
  12633. * src/BtRequestMessage.cc
  12634. (doReceivedAction): Use messageFactory, dispatcher member.
  12635. (onQueued): Use dispatcher member.
  12636. * src/BtPieceMessage.cc
  12637. (doReceivedAction): Use dispatcher member.
  12638. (send): Use peerConnection member.
  12639. (onWrongPiece): Use requestFactory member.
  12640. (handleChokingEvent): Use messageFactory, dispatcher member.
  12641. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12642. * src/BtMessageDispatcher.h
  12643. (BtMessageDispatcherWeakHandle): New type definition.
  12644. * src/SimpleBtMessage.cc
  12645. (send): Use peerConnection member.
  12646. * src/BtRejectMessage.cc
  12647. (doReceivedAction): Use dispatcher member.
  12648. * src/DefaultBtMessageDispatcher.h
  12649. (Option.h): Removed include.
  12650. (messageFactory): New variable.
  12651. (option): Removed.
  12652. (maxUploadSpeedLimit): New variable.
  12653. (requestTimeout): New variable.
  12654. (DefaultBtMessageDispatcher): Removed option.
  12655. Added maxUploadSpeedLimit, requestTimeout.
  12656. (setOption): Removed.
  12657. (getOption): Removed.
  12658. (setMaxUploadSpeedLimit): New function.
  12659. (setRequestTimeout): New function.
  12660. (setBtMessageFactory): New function.
  12661. * src/DefaultBtInteractive.h
  12662. (btMessageReceiver):
  12663. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12664. (dispatcher):
  12665. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12666. (btRequestFactory):
  12667. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12668. (peerConnection):
  12669. PeerConnectionHandle -> PeerConnectionWeakHandle
  12670. (messageFactory): New variable.
  12671. (option): Removed.
  12672. (keepAliveInterval): New variable.
  12673. (maxDownloadSpeedLimit): New variable.
  12674. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12675. (setBtMessageReceiver):
  12676. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12677. (setDispatcher):
  12678. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12679. (setBtRequestFactory):
  12680. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12681. (setPeerConnection):
  12682. PeerConnectionHandle -> PeerConnectionWeakHandle
  12683. (setOption): Removed.
  12684. (setKeepAliveInterval): New function.
  12685. (setMaxDownloadSpeedLimit): New function.
  12686. (setBtMessageFactory): New function.
  12687. * src/BitfieldMan.h
  12688. (cachedNumMissingBlock): New variable.
  12689. (cachedNumFilteredBlock): New variable.
  12690. (cachedCompletedLength): New variable.
  12691. (cachedFilteredComletedLength): New variable.
  12692. (cachedFilteredTotalLength): New variable.
  12693. (countMissingBlockNow): New function.
  12694. (countFilteredBlockNow): New function.
  12695. (getFilteredTotalLengthNow): New function.
  12696. (getCompletedLengthNow): New function.
  12697. (getFilteredCompletedLengthNow): New function.
  12698. (updateCache): New function.
  12699. * src/AbstractBtMessage.h
  12700. (BtMessageDispatcher.h): New include.
  12701. (PeerConnection.h): New include.
  12702. (BtRequestFactory.h): New include
  12703. (BtMessageFactory.h): New include.
  12704. (dispatcher): New variable.
  12705. (messageFactory): New variable.
  12706. (peerConnection: New variable.
  12707. (setBtMessageDispatcher): New function.
  12708. (setPeerConnection): New function.
  12709. (setBtMessageFactory): New function.
  12710. (setBtRequestFactory): New function.
  12711. * src/DefaultBtMessageFactory.cc
  12712. (setCommonProperty): Set dispatcher, requestFactory, this,
  12713. peerConnection to msg.
  12714. * src/BtRegistry.h
  12715. (BT_MESSAGE_RECEIVER): New macro.
  12716. * src/PeerConnection.h
  12717. (PeerConnectionWeakHandle): New type definition.
  12718. * src/BtMessageFactory.h
  12719. (BtMessageFactoryWeakHandle): New type definition.
  12720. * src/BitfieldMan.cc
  12721. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12722. cachedCompletedLength, cachedFilteredComletedLength,
  12723. cachedFilteredTotalLength.
  12724. Call updateCache().
  12725. (countMissingBlock): Return cachedNumMissingBlock.
  12726. (countMissingBlockNow): New function.
  12727. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12728. (countFilteredBlockNow): New function.
  12729. (setBit): Call updateCache().
  12730. (unsetBit): Call updateCache().
  12731. (setBitfield): Call updateCache().
  12732. (clearAllBit): Call updateCache().
  12733. (setAllBit): Use setBitInternal instead of setBit.
  12734. Call updateCache().
  12735. (addFilter): Call updateCache().
  12736. (enableFilter): Call updateCache().
  12737. (disableFilter): Call updateCache().
  12738. (clearFilter): Call updateCache().
  12739. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12740. (getFilteredTotalLengthNow): New function.
  12741. (getCompletedLength): Return cachedCompletedLength.
  12742. (getCompletedLengthNow): New function.
  12743. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12744. (getFilteredCompletedLengthNow): New function.
  12745. (updateCache): New function.
  12746. * src/BtMessageReceiver.h
  12747. (BtMessageReceiverWeakHandle): New type definition.
  12748. * src/DefaultBtMessageReceiver.cc
  12749. (receiveHandshake): Use messageFactory member.
  12750. (sendHandshake): Use messageFactory member.
  12751. (receiveMessage): Use messageFactory member.
  12752. * src/DefaultBtMessageFactory.h
  12753. (dispatcher): New variable.
  12754. (requestFactory): New variable.
  12755. (peerConnection): New variablle.
  12756. (setBtMessageDispatcher): New function.
  12757. (setBtRequestFactory): New function.
  12758. (setPeerConnection): New function.
  12759. * src/SharedHandle.h
  12760. (RefCount): New class.
  12761. (WeakHandle): New class.
  12762. * src/PeerObject.h
  12763. (BtMessageReceiver.h): New include.
  12764. (PeerObject): Added btMessageReceiver.
  12765. (btMessageReceiver): New variable.
  12766. * src/Util.cc
  12767. (countBit): Simplified.
  12768. * src/BtCancelMessage.cc
  12769. (doReceivedAction): Use dispatcher member.
  12770. * src/BtRequestFactory.h
  12771. (BtRequestFactoryWeakHandle): New type definition.
  12772. * src/PeerStorage.h
  12773. (downloadSpeed): int -> uint32_t
  12774. (uploadSpeed): int -> uint32_t
  12775. (sessionDownloadLength): long long int -> uint64_t
  12776. (sessionUploadLength): long long int -> uint64_t
  12777. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12778. To add RecoverableException, FatalException:
  12779. * src/AbstractCommand.cc
  12780. (onAbort): Exception -> RecoverableException
  12781. * src/PeerAbstractCommand.h
  12782. (RecoverableException.h): New include.
  12783. (onAbort): Exception -> RecoverableException.
  12784. * src/PeerInteractionCommand.cc
  12785. (onAbort): Exception -> RecoverableException.
  12786. * src/PeerAbstractCommand.cc
  12787. (execute): Exception -> RecoverableException.
  12788. (onAbort): Exception -> RecoverableException.
  12789. * src/TorrentRequestInfo.cc
  12790. (execute): Exception -> RecoverableException.
  12791. * src/MetalinkRequestInfo.cc
  12792. (execute): Exception -> RecoverableException.
  12793. * src/MetaFileUtil.cc: RecoverableException.
  12794. * src/AbstractCommand.h
  12795. (onAbort): Exception -> RecoverableException.
  12796. * src/DlRetryEx.h: Exception -> RecoverableException.
  12797. * src/DlAbortEx.h: Exception -> RecoverableException.
  12798. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12799. * src/Util.cc: Exception -> RecoverableException.
  12800. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12801. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12802. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12803. To make ID static const int
  12804. * src/BtInterestedMessage.h
  12805. (ID_t): Removed.
  12806. (ID): New variable.
  12807. (getId): Made non-const.
  12808. * src/BtPieceMessage.h
  12809. (ID_t): Removed.
  12810. (ID): New variable.
  12811. (getId): Made non-const.
  12812. * src/BtChokeMessage.h
  12813. (ID_t): Removed.
  12814. (ID): New variable.
  12815. (getId): Made non-const.
  12816. * src/BtHaveAllMessage.h
  12817. (ID_t): Removed.
  12818. (ID): New variable.
  12819. (getId): Made non-const.
  12820. * src/BtKeepAliveMessage.h
  12821. (ID_t): Removed.
  12822. (ID): New variable.
  12823. (getId): Made non-const.
  12824. * src/BtHandshakeMessage.h
  12825. (ID): New variable.
  12826. (getId): Made non-const.
  12827. * src/BtSuggestPieceMessage.h
  12828. (ID_t): Removed.
  12829. (ID): New variable.
  12830. (getId): Made non-const.
  12831. * src/BtPortMessage.h
  12832. (ID_t): Removed.
  12833. (ID): New variable.
  12834. (getId): Made non-const.
  12835. * src/AbstractBtMessage.h
  12836. (id): Removed.
  12837. (AbstractBtMessage): Removed id.
  12838. (getId): Removed.
  12839. * src/BtHaveMessage.h
  12840. (ID_t): Removed.
  12841. (ID): New variable.
  12842. (getId): Made non-const.
  12843. * src/BtAllowedFastMessage.h
  12844. (ID_t): Removed.
  12845. (ID): New variable.
  12846. (getId): Made non-const.
  12847. * src/BtCancelMessage.h
  12848. (ID_t): Removed.
  12849. (ID): New variable.
  12850. (getId): Made non-const.
  12851. * src/BtNotInterestedMessage.h
  12852. (ID_t): Removed.
  12853. (ID): New variable.
  12854. (getId): Made non-const.
  12855. * src/BtChokeMessage.h
  12856. (ID_t): Removed.
  12857. (ID): New variable.
  12858. (getId): Made non-const.
  12859. * src/BtRejectMessage.h
  12860. (ID_t): Removed.
  12861. (ID): New variable.
  12862. (getId): Made non-const.
  12863. * src/BtBitfieldMessage.h
  12864. (ID_t): Removed.
  12865. (ID): New variable.
  12866. (getId): Made non-const.
  12867. * src/BtUnchokeMessage.h
  12868. (ID_t): Removed.
  12869. (ID): New variable.
  12870. (getId): Made non-const.
  12871. * src/BtRequestMessage.h
  12872. (ID_t): Removed.
  12873. (ID): New variable.
  12874. (getId): Made non-const.
  12875. * src/BtHaveMessage.h
  12876. (ID_t): Removed.
  12877. (ID): New variable.
  12878. (getId): Made non-const.
  12879. To add --force-truncate command-line option and a check whether
  12880. the file already exists:
  12881. * src/DirectDiskAdaptor.h
  12882. (getFilePath): Made virtual public.
  12883. * src/MultiDiskAdaptor.h
  12884. (File.h): New include.
  12885. (DiskWriterEntry::fileEntry): Made private.
  12886. (DiskWriterEntry::fileExists): New function.
  12887. (DiskWriterEntry::getFileEntry): New function.
  12888. (fileExists): New function.
  12889. (getFilePath): New function.
  12890. * src/TorrentRequestInfo.cc
  12891. (FatalException.h): New include.
  12892. (message.h): New include.
  12893. (RecoverableException.h): New include.
  12894. (execute): Added a check whether file is already exists or not.
  12895. * src/DiskAdaptor.h
  12896. (fileExists): New function.
  12897. (getFilePath): New function.
  12898. * src/main.cc
  12899. (showUsage): Added an explanation of --force-truncate command-line
  12900. option.
  12901. (main): Added --force-truncate command-line option.
  12902. * src/Exception.h
  12903. (setMsg): buf[256] -> buf[1024]
  12904. * src/CopyDiskWriter.h
  12905. (getFilePath): Made public virtual.
  12906. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12907. (fileExists): New function.
  12908. * src/DownloadEngineFactory.cc
  12909. (newTorrentConsoleEngine): Don't open file here.
  12910. * src/message.h
  12911. (EX_FILE_ALREADY_EXISTS): New definition.
  12912. * src/prefs.h
  12913. (PREF_FOECE_TRUNCATE): New definition.
  12914. * src/HttpResponseCommand.cc
  12915. (handleDefaultEncoding): Added a check whether the file already exists.
  12916. * src/SegmentMan.h
  12917. (fileExists): New function.
  12918. (shouldCancelDownloadForSafety): New function.
  12919. * src/FtpNegotiateCommand.cc
  12920. (recvSize): Added a check whether the file already exists.
  12921. * src/AbstractSingleDiskAdaptor.cc
  12922. (File.h): New include.
  12923. (fileExists): New function.
  12924. * src/AbstractSingleDiskAdaptor.h
  12925. (getFilePath): Removed.
  12926. (fileExists): New function.
  12927. * src/SegmentMan.cc
  12928. (fileExists): New function.
  12929. (shouldCancelDownloadForSafety): New function.
  12930. To fix regression bug in torrent downloading:
  12931. * src/DefaultBtRequestFactory.cc
  12932. (doChokedAction): New function.
  12933. * src/DefaultBtRequestFactory.h
  12934. (doChokedAction): New function.
  12935. * src/DefaultBtMessageDispatcher.cc
  12936. (doChokedAction): Do not delete request if its target is in allowed
  12937. fast set.
  12938. * src/DefaultBtInteractive.cc
  12939. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12940. (sendKeepAlive): Send keep alive message even if the outgoing message
  12941. queue is not empty.
  12942. (decideInterest): Simplified the code.
  12943. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12944. it is already called when BtChokeMessage is received from a peer.
  12945. * src/BtRequestFactory.h
  12946. (doChokedAction): New function.
  12947. To clean up code:
  12948. * src/PeerInteractionCommand.h
  12949. (executeInternal): Added virtual keyword explicitly.
  12950. (prepareForRetry): Added virtual keyword explicitly.
  12951. (prepareForNextPeer): Added virtual keyword explicitly.
  12952. (onAbort): Added virtual keyword explicitly.
  12953. * src/RequestSlot.cc
  12954. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12955. * src/BtPieceMessage.cc
  12956. (doReceivedAction): Added a debug log of piece's bitfield.
  12957. * src/Piece.h
  12958. (getBitfieldLength): New function.
  12959. * src/ByteArrayDiskWriter.cc
  12960. (clear): Added buf = 0 to avoid double free corruption.
  12961. * src/FileAllocator.cc
  12962. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12963. Added cp.reset().
  12964. * src/BitfieldMan.h
  12965. (operator=): Rewritten.
  12966. * src/BitfieldMan.cc
  12967. (BitfieldMan): Initialized bitfield, useBitfield.
  12968. * src/PeerConnection.cc
  12969. (receiveMessage): Added a call to socket->readable() after getting
  12970. message length to avoid possible EOF.
  12971. * src/Util.cc
  12972. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12973. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12974. To add an ability to pre-allocate file space:
  12975. * src/DirectDiskAdaptor.h: Rewritten.
  12976. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12977. * src/MultiDiskAdaptor.h: Rewritten.
  12978. * src/DefaultPieceStorage.cc
  12979. (MultiDiskWriter.h): Removed include.
  12980. (PreAllocationDiskWriter.h): Removed include.
  12981. (FileAllocationMonitor.h): New include.
  12982. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12983. (initStorage): Rewritten.
  12984. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12985. * src/FileAllocator.h: New class.
  12986. * src/FileAllocator.cc: New class.
  12987. * src/FileAllocationMonitor.h: New class.
  12988. * src/FileAllocationMonitor.cc: New class.
  12989. * src/ConsoleFileAllocationMonitor.h: New class.
  12990. * src/ConsoleFileAllocationMonitor.cc: New class.
  12991. * src/AbstractSingleDiskAdaptor.h: New class.
  12992. * src/AbstractSingleDiskAdaptor.cc: New class.
  12993. * src/DiskAdaptor.h
  12994. (Directory.h): Removed include.
  12995. (DiskWriter.h): Removed include.
  12996. (FileEntry.h): Removed include.
  12997. (diskWriter): Removed.
  12998. (DiskAdaptor): Removed diskWriter.
  12999. (openFile): Made pure virtual.
  13000. (closeFile): Made pure virtual.
  13001. (openExistingFile): Made pure virtual.
  13002. (initAndOpenFile): Made pure virtual.
  13003. (writeData): Made pure virtual.
  13004. (readData): Made pure virtual.
  13005. (sha1Sum): Made pure virtual.
  13006. (getStoreDir): Returns const reference of storeDir.
  13007. (DiskAdaptorHandle): New type definition.
  13008. * src/main.cc
  13009. (ConsoleFileAllocationMonitor.h): New include.
  13010. (showUsage): Added default value description of -s option.
  13011. Added the description of --file-allocation option.
  13012. (main): Set default value of --file-allocation option to 'none'.
  13013. Added --file-allocation command-line option.
  13014. Setup FileAllocationMonitorFactory.
  13015. * src/FtpInitiateConnectionCommand.cc
  13016. (executeInternal): Removed diskWriter related processing, which was
  13017. moved to FtpNegotiationCommand.cc.
  13018. * src/DirectDiskAdaptor.cc
  13019. (getFilePath): Made non-const.
  13020. * src/CopyDiskAdaptor.h
  13021. (DiskAdaptor.h): Removed include.
  13022. (DiskWriter.h): Removed include.
  13023. (AbstractSingleDiskAdaptor.h): New include.
  13024. (getFilePath): Made non-const. Added virtual keyword.
  13025. (CopyDiskAdaptor): Removed diskWriter.
  13026. (getTempFile): Returns const reference.
  13027. (CopyDiskAdaptorHandle): New type definition.
  13028. * src/ByteArrayDiskWriter.cc
  13029. (clear): Simplified.
  13030. (initAndOpenFile): Rewritten.
  13031. (openFile): Call initAndOpenFile()
  13032. * src/MultiDiskAdaptor.cc: Rewritten.
  13033. * src/DownloadEngineFactory.cc
  13034. (FileAllocator.h): New include.
  13035. (FileAllocationMonitor.h): New include.
  13036. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13037. create DefaultDiskWriter with file allocator.
  13038. * src/DiskWriter.h
  13039. (initAndOpenFile): Added totalLength argument.
  13040. (openFile): Added totalLength argument.
  13041. * src/prefs.h
  13042. (PREF_FILE_ALLOCATION): New definition.
  13043. (V_PREALLOC): New definition.
  13044. (V_NONE): New definition.
  13045. * src/HttpResponseCommand.cc
  13046. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13047. size.
  13048. * src/FtpNegotiateCommand.cc
  13049. (Util.h): New include.
  13050. (recvSize): Open file here.
  13051. * src/Util.h
  13052. (ullitos): New function.
  13053. * src/CopyDiskWriter.h
  13054. (getFilePath): Made non-const.
  13055. * src/DefaultDiskWriter.h
  13056. (Option.h): New include.
  13057. (totalLength): Removed.
  13058. (DefaultDiskWriter): Removed totalLength.
  13059. (initAndOpenFile): Added totalLength argument.
  13060. (DefaultDiskWriterHandle): New type definition.
  13061. (createNewDiskWriter): New function.
  13062. * src/Util.cc
  13063. (ullitos): New function.
  13064. * src/DefaultDiskWriter.cc
  13065. (message.h): New include.
  13066. (FileAllocator.h): New include.
  13067. (prefs.h): New include.
  13068. (Util.h): New include.
  13069. (DefaultDiskWriter): Removed totalLength.
  13070. (initAndOpenFile): Added file allocation.
  13071. (createNewDiskWriter): New function. Just for temporary solution.
  13072. It will be rewritten later.
  13073. * src/DiskAdaptor.cc
  13074. (DiskAdaptor): Removed diskWriter.
  13075. * src/AbstractDiskWriter.cc
  13076. (LogFactory.h): New include.
  13077. (AbstractDiskWriter): Added fileAllocator, logger.
  13078. (openFile): Added totalLength argument.
  13079. * src/AbstractDiskWriter.h
  13080. (FileAllocator.h): New include.
  13081. (Logger.h): New include.
  13082. (fileAllocator): New variable.
  13083. (logger): New variable.
  13084. (openFile): Added totalLength argument. Added virtual keyword
  13085. explicitly.
  13086. (openExistingFile): Added totalLength argument. Added virtual keyword
  13087. explicitly.
  13088. (closeFile): Added virtual keyword explicitly.
  13089. (sha1Sum): Added virtual keyword explicitly.
  13090. (writeData): Added virtual keyword explicitly.
  13091. (readData): Added virtual keyword explicitly.
  13092. (setFileAllocator): New function.
  13093. * src/DefaultPieceStorage.h
  13094. (FileAllocator.h): New include.
  13095. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13096. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13097. * src/FileProgressMonitor.h: New class.
  13098. To compile aria2 on PC-BSD:
  13099. * src/DefaultBtContext.cc
  13100. (libgen.h): New include.
  13101. To fix memory leak:
  13102. * src/Exception.h
  13103. (~Exception): Delete cause. Fixed memory leak.
  13104. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13105. Rewritten a portion of bittorrent implementation:
  13106. * src/BtMessageValidator.h: New class.
  13107. * src/BtBitfieldMessageValidator.h: New class.
  13108. * src/BtHandshakeMessageValidator.h: New class.
  13109. * src/BtRequestMessageValidator.h: New class.
  13110. * src/BtSuggestPieceMessageValidator.h: New class.
  13111. * src/BtAllowedFastMessageValidator.h: New class.
  13112. * src/BtRejectMessageValidator.h: New class.
  13113. * src/BtCancelMessageValidator.h: New class.
  13114. * src/BtPieceMessageValidator.h: New class.
  13115. * src/BtHaveMessageValidator.h: New class.
  13116. * src/BtEventListener.h: New class.
  13117. * src/AbstractBtEventListener.h: New class.
  13118. * src/BtEvent.h: New class.
  13119. * src/BtChokingEvent.h: New class.
  13120. * src/BtChokedEvent.h: New class.
  13121. * src/BtCancelSendingPieceEvent.h: New class.
  13122. * src/BtAbortOutstandingRequestEvent.h: New class.
  13123. * src/Randomizer.h: New class.
  13124. * src/SimpleRandomizer.h: New class.
  13125. * src/BtMessage.h: New class.
  13126. * src/AbstractBtMessage.h: New class.
  13127. * src/SimpleBtMessage.h: New class.
  13128. * src/BtHaveMessage.h: New class.
  13129. * src/BtInterestedMessage.h: New class.
  13130. * src/BtAllowedFastMessage.h: New class.
  13131. * src/BtUnchokeMessage.h: New class.
  13132. * src/BtCancelMessage.h: New class.
  13133. * src/BtNotInterestedMessage.h: New class.
  13134. * src/BtChokeMessage.h: New class.
  13135. * src/BtHaveNoneMessage.h: New class.
  13136. * src/BtHandshakeMessage.h: New class.
  13137. * src/BtSuggestPieceMessage.h: New class.
  13138. * src/BtHaveMessage.h: New class.
  13139. * src/BtPieceMessage.h: New class.
  13140. * src/BtHaveAllMessage.h: New class.
  13141. * src/BtKeepAliveMessage.h: New class.
  13142. * src/BtPortMessage.h: New class.
  13143. * src/BtRejectMessage.h: New class.
  13144. * src/BtBitfieldMessage.h: New class.
  13145. * src/BtRequestMessage.h: New class.
  13146. * src/DefaultBtRequestFactory.h: New class.
  13147. * src/DefaultBtMessageReceiver.h: New class.
  13148. * src/BtInteractive.h: New class.
  13149. * src/BtMessageDispatcher.h: New class.
  13150. * src/DefaultBtMessageDispatcher.h: New class.
  13151. * src/DefaultBtInteractive.h: New class.
  13152. * src/BitfieldManFactory.h: New class.
  13153. * src/HandleRegistry.h: New class.
  13154. * src/BtMessageFactory.h: New class.
  13155. * src/BtMessageReceiver.h: New class.
  13156. * src/DefaultBtMessageFactory.h: New class.
  13157. * src/PeerObject.h: New class.
  13158. * src/BtRequestFactory.h: New class.
  13159. * src/SuggestPieceMessage.h: Removed.
  13160. * src/PortMessage.h: Removed.
  13161. * src/SuggestPieceMessage.h: Removed.
  13162. * src/KeepAliveMessage.h: Removed.
  13163. * src/HandshakeMessage.h: Removed.
  13164. * src/PeerInteraction.h: Removed.
  13165. * src/UnchokeMessage.h: Removed.
  13166. * src/PieceMessage.h: Removed.
  13167. * src/RequestMessage.h: Removed.
  13168. * src/InterestedMessage.h: Removed.
  13169. * src/HaveMessage.h: Removed.
  13170. * src/CancelMessage.h: Removed.
  13171. * src/RejectMessage.h: Removed.
  13172. * src/AllowedFastMessage.h: Removed.
  13173. * src/HaveNoneMessage.h: Removed.
  13174. * src/SimplePeerMessage.h: Removed.
  13175. * src/HaveAllMessage.h: Removed.
  13176. * src/BitfieldMessage.h: Removed.
  13177. * src/PeerMessageFactory.h: Removed.
  13178. * src/NotInterestedMessage.h: Removed.
  13179. * src/ChokeMessage.h: Removed.
  13180. * src/PeerMessage.h: Removed.
  13181. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13182. To know root cause of exception:
  13183. * src/Exception.h
  13184. (cause): New variable.
  13185. (Exception): Added a parameter.
  13186. (getMsg): Return const reference to msg.
  13187. (getCause): New function.
  13188. * src/DlRetryEx.h
  13189. (DlRetryEx): Added a parameter 'cause'.
  13190. Added an overloaded constructor.
  13191. (DlAbortEx): Added a parameter 'cause'.
  13192. Added an overloaded constructor.
  13193. * src/SimpleLogger.cc
  13194. (writeLog): Log nested exception messages recursively.
  13195. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13196. * src/DefaultBtProgressInfoFile.cc
  13197. (load): Fixed memory leak when the infohash doesn't match.
  13198. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13199. * src/DefaultPeerStorage.cc
  13200. (calculateStat): Simplified the code by combining 2 loops into 1.
  13201. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13202. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13203. for BitTorrent download:
  13204. * src/PeerAbstractCommand.cc
  13205. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13206. * src/main.cc:
  13207. (timeoutSpecified): Removed.
  13208. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13209. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13210. * src/TorrentRequestInfo.cc
  13211. (timeoutSpecified): Removed.
  13212. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13213. timeout value.
  13214. * src/prefs.h
  13215. (PREF_BT_TIMEOUT): New definition.
  13216. Delete unused variables:
  13217. * src/TorrentRequestInfo.cc
  13218. (requestInfo): Removed.
  13219. Move setSignalHander to Util::setGlobalSignalHandler:
  13220. * src/TorrentRequestInfo.cc:
  13221. setSignalHander -> Util::setGlobalSignalHandler
  13222. * src/main.cc
  13223. (setSignalHander): Removed.
  13224. (main): setSignalHander -> Util::setGlobalSignalHandler
  13225. * src/Util.h
  13226. (setGlobalSignalHandler): New function.
  13227. * src/Util.cc
  13228. (setGlobalSignalHandler): New function.
  13229. * src/UrlRequestInfo.cc:
  13230. setSignalHander -> Util::setGlobalSignalHandler
  13231. Reset peer status in order to exit gracefully:
  13232. * src/PeerAbstractCommand.cc
  13233. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13234. To fix the bug that causes the number of bytes uploaded is not saved
  13235. to .aria2 file:
  13236. * src/DefaultPeerStorage.h
  13237. (removedPeerSessionDownloadLength): New variable.
  13238. (removedPeerSessionUploadLength): New variable.
  13239. * src/DefaultPeerStorage.cc
  13240. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13241. removedPeerSessionUploadLength(0).
  13242. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13243. through all peers, and then add removedPeerSessionDownloadLength(
  13244. removedPeerSessionUploadLength) to it.
  13245. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13246. (to) the peer to removedPeerSessionDownloadLength
  13247. (removedPeerSessionUploadLength).
  13248. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13249. To add Metalink location option:
  13250. * src/MetalinkRequestInfo.cc
  13251. (execute): Call MetalinkEntry::setLocationPreference()
  13252. * src/main.cc
  13253. (showUsage): Added the help message for --metalink-location option.
  13254. (main): Added --metalink-location option.
  13255. * src/prefs.h
  13256. (PREF_METALINK_LOCATION): New definition.
  13257. * src/MetalinkEntry.cc
  13258. (AddLocationPreference): New function object.
  13259. (setLocationPreference): New function.
  13260. * src/Xml2MetalinkProcessor.cc
  13261. (getResource): Set location attribute to MetalinkResource
  13262. To show URLs to download
  13263. * src/UrlRequestInfo.h
  13264. (printUrls): New function.
  13265. To add multiple <file> Metalink support:
  13266. * src/MetalinkEntry.h
  13267. (MetalinkResources): Removed.
  13268. (setLocationPreference): New function.
  13269. (MetalinkEntryHandle): New type definition.
  13270. (MetalinkEntries): New type definition.
  13271. * src/Xml2MetalinkProcessor.h
  13272. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13273. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13274. (parseFile): Metalinker* -> MetalinkerHandle
  13275. * src/UrlRequestInfo.h
  13276. (execute): RequestInfo* -> RequestInfos
  13277. * src/MetalinkRequestInfo.cc
  13278. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13279. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13280. (execute): RequestInfo* -> RequestInfos
  13281. Added multiple <file> support. Print filename when it is queued.
  13282. * src/MetalinkRequestInfo.h
  13283. (execute): RequestInfo* -> RequestInfos
  13284. (getDownloadEngine): Removed.
  13285. * src/RequestInfo.h
  13286. (RequestInfoHandle): New type definition.
  13287. (RequestInfos): New type definition.
  13288. (execute): RequestInfo* -> RequestInfos
  13289. (getDownloadEngine): Removed.
  13290. * src/MetalinkResource.h
  13291. (MetalinkResourceHandle): New type definition.
  13292. (MetalinkResources): New type definition.
  13293. * src/MetalinkEntry.cc
  13294. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13295. because the element is now of type MetalinkResourceHandle.
  13296. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13297. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13298. (dropUnsupportedResource): Removed the deletion of the elements of
  13299. resources because the element is now of type MetalinkResourceHandle.
  13300. * src/Xml2MetalinkProcessor.cc
  13301. (parseFile): Metalinker* -> MetalinkerHandle
  13302. MetalinkEntry* -> MetalinkEntryHandle
  13303. Removed try-catch block.
  13304. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13305. MetalinkResource* -> MetalinkResourceHandle
  13306. Removed try-catch block.
  13307. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13308. Free result by using xmlXPathFreeObject()
  13309. * src/Metalinker.cc
  13310. (~Metalinker): Removed the deletion of entries.
  13311. MetalinkEntry* -> MetalinkEntryHandle
  13312. (queryEntry): Add multiple <file> Metalink support.
  13313. * src/Metalinker.h
  13314. (MetalinkEntries): Removed.
  13315. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13316. * src/MetalinkProcessor.h
  13317. (parseFile): Metalinker* -> MetalinkerHandle
  13318. Bug fixes:
  13319. * src/PeerChokeCommand.cc
  13320. (execute): cat01->cat02
  13321. * src/DefaultPieceStorage.cc
  13322. (DefaultPieceStorage): Added diskAdaptor(0)
  13323. * src/TrackerWatcherComand.cc:
  13324. (execute): Use btAnnounce->noMoreAnnounce()
  13325. to determin whether the function returns true or not.
  13326. * src/TrackerUpdateCommand.cc:
  13327. (execute): Use btAnnounce->noMoreAnnounce()
  13328. to determin whether the function returns true or not.
  13329. * src/FtpConnection.cc
  13330. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13331. This is the fix of the busy loop bug.
  13332. * src/DownloadCommand.cc
  13333. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13334. cached PeerStat.
  13335. The value of "name" entry in torrent file is now set by
  13336. *DiskAdaptor::setTopDir(...) methods.
  13337. * src/MultiDiskAdaptor.h
  13338. (topDir): New variable.
  13339. (setTopDir): New function.
  13340. (getTopDir): New function.
  13341. * src/MultiDiskAdaptor.cc
  13342. (getFilePath): Concat storDir, "/" and topDir.
  13343. (mkdir): Use getFilePath() to get the directory path for output.
  13344. * src/DefaultPieceStorage.cc
  13345. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13346. CopyDiskAdaptor.
  13347. * src/CopyDiskAdaptor.h
  13348. (topDir): New variable.
  13349. (setTopDir): New function.
  13350. (getTopDir): New function.
  13351. * src/CopyDiskAdaptor.cc
  13352. (fixFilename): Updated.
  13353. Misc
  13354. * src/UrlRequestInfo.h
  13355. (e): Removed.
  13356. (UrlRequestInfo): Removed e.
  13357. (getDownloadEngine): Removed.
  13358. * src/UrlRequestInfo.cc
  13359. (handler): Rewritten.
  13360. (printUrls): New function.
  13361. (execute): Call printUrls().
  13362. * src/HandshakeMessage.cc
  13363. (check): peerinteraction->getBtContext() -> btContext
  13364. * src/PeerInteraction.h
  13365. (getBtContext): Removed.
  13366. * src/TorrentRequestInfo.h
  13367. (execute): RequestInfo* -> RequestInfos
  13368. (getDownloadEngine): Removed.
  13369. * src/TorrentRequestInfo.cc
  13370. (haltRequested): Removed.
  13371. (btHaltRequested): New variable.
  13372. (torrentHandler): haltRequested -> btHaltRequested
  13373. (execute): RequestInfo* -> RequestInfos
  13374. * src/TorrentConsoleDownloadEngine.cc
  13375. (afterEachIteration): haltRequested -> btHaltRequested.
  13376. * src/ConsoleDownloadEngine.h
  13377. (initStatistics): Added virtual.
  13378. (calculateStatistics): Added virtual.
  13379. (onEndOfRun): Added virtual.
  13380. (afterEachIteration): Added virtual.
  13381. * src/ConsoleDownloadEngine.cc
  13382. (haltRequested): New variable.
  13383. (afterEachIteration): New function.
  13384. * src/main.cc
  13385. (requestInfo): Removed.
  13386. * src/SegmentMan.cc
  13387. (findSlowerSegmentEntry): Refactored.
  13388. * Release 0.9.0
  13389. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13390. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13391. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13392. * src/TorrentMan.h: Removed.
  13393. * src/TorrentMan.cc: Removed.
  13394. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13395. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13396. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13397. * src/PeerAbstractCommand.cc: Use btRuntime.
  13398. * src/BtContextAwareCommand.h: New class.
  13399. * src/FileEntry.h: Added accessor methods for following variables.
  13400. (path): Made private.
  13401. (length): Made private.
  13402. (offset): Made private.
  13403. (extracted): Made private.
  13404. (requested): Made private.
  13405. (FileEntries): New definition.
  13406. (FileEntryHandle): New definition.
  13407. * src/FileEntry.cc: New file.
  13408. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13409. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13410. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13411. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13412. * src/PieceStorage.h: New file.
  13413. * src/PeerInteractionCommand.h: Use btContext.
  13414. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13415. btRuntime.
  13416. * src/DefaultBtProgressInfoFile.h: New file.
  13417. * src/DefaultBtProgressInfoFile.cc: New file.
  13418. * src/File.cc
  13419. (Util.h): New include.
  13420. (mkdirs): New function.
  13421. * src/MultiDiskAdaptor.h
  13422. (mkdir): New function.
  13423. * src/PeerListProcessor.h
  13424. (Peers): Removed.
  13425. * src/PeerInteraction.h
  13426. (torrentMan): Removed.
  13427. (btContext): New variable.
  13428. (peerStorage): New variable.
  13429. (pieceStorage): New variable.
  13430. (btAnnounce): New variable.
  13431. (getTorrentMan): Removed.
  13432. (getBtContext): New function.
  13433. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13434. btAnnounce.
  13435. * src/HandshakeMessage.h
  13436. (TorrentMan.h): Removed.
  13437. * src/HandshakeMessage.cc: Use btContext.
  13438. * src/DefaultBtAnnounce.cc: New file.
  13439. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13440. * src/DefaultPieceStorage.cc: New file.
  13441. * src/DefaultBtContext.h: New file.
  13442. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13443. Use the accessor methods of FileEntry.
  13444. * src/CookieBox.cc: Updated to use Util::slice().
  13445. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13446. * src/common.h (SharedHandle.h): New include.
  13447. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13448. pieceStorage.
  13449. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13450. * src/DiskAdaptor.h
  13451. (topDir): Removed.
  13452. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13453. (setTopDir): Removed.
  13454. (getTopDir): Removed.
  13455. * src/BtContext.h: New file.
  13456. * src/DefaultPeerStorage.h: New file.
  13457. * src/PieceMessage.h (TorrentMan.h): Removed.
  13458. * src/RequestMessage.h (TorrentMan.h): Removed.
  13459. * src/TorrentDownloadEngine.h
  13460. (uploadLength): New variable.
  13461. (btContext): New variable.
  13462. (btRuntime): New variable.
  13463. (pieceStorage): New variable.
  13464. (peerStorage): New variable.
  13465. (btAnnounce): New variable.
  13466. (btProgressInfoFile): New variable.
  13467. (torrentMan): Removed.
  13468. (setBtContext): New function.
  13469. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13470. peerStorage, btAnnounce, btProgressInfoFile.
  13471. * src/Piece.h
  13472. (toString): New function.
  13473. (Pieces): New type definition.
  13474. * src/Peer.h
  13475. (active): New variable.
  13476. (Peer): Added active.
  13477. (activate): Set active to true.
  13478. (deactivate): Set active to false.
  13479. (isActive): New function.
  13480. (Peers): New type definition.
  13481. * src/DirectDiskAdaptor.cc
  13482. (getFilePath): Use the accessor methods of FileEntry.
  13483. * src/TorrentConsoleDownloadEngine.h
  13484. (afterEachIteration): New function.
  13485. * src/TorrentConsoleDownloadEngine.cc
  13486. (haltRequested): New variable.
  13487. (sendStatistics): Use pieceStorage, btRuntime.
  13488. (afterEachIteration): New function.
  13489. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13490. * src/Directry.h
  13491. (Directory): New function.
  13492. (DirectoryHandle): New type definition.
  13493. * src/BtProgressInfoFile.h: New file.
  13494. * src/RequestMessage.cc: Use pieceStorage.
  13495. * src/BtRuntime.h: New file.
  13496. * src/DefaultBtContext.cc: New file.
  13497. * src/BitfieldMan.h
  13498. (getCompletedLength): New function(private).
  13499. (getCompletedLength): New function.
  13500. (getFilteredCompletedLength): New function.
  13501. * src/BitfieldMan.h
  13502. (getCompletedLength): New function(private).
  13503. (getCompletedLength): New function.
  13504. (getFilteredCompletedLength): New function.
  13505. * src/MultiDiskAdaptor.cc
  13506. (mkdir): New function.
  13507. (openFile): Call mkdir().
  13508. (initAndOpenFile): Call mkdir().
  13509. * src/CancelMessage.h
  13510. (TorrentMan.h): Removed.
  13511. * src/RejectMessage.h
  13512. (TorrentMan.h): Removed.
  13513. * src/DownloadEngineFactory.cc
  13514. (DefaultPieceStorage.h): New include.
  13515. (DefaultPeerStorage.h): New include.
  13516. (DefaultBtAnnounce.h): New include.
  13517. (DefaultBtProgressInfoFile.h): New include.
  13518. (newTorrentConsoleEngine): Rewritten.
  13519. * src/ShareRatioSeedCriteria.h
  13520. (torrentMan): Removed.
  13521. (btContext): New variable.
  13522. (peerStorage): New variable.
  13523. (btRuntime): New variable.
  13524. (evaluate): Use btContext, btRuntime, peerStorage.
  13525. * src/AnnounceTier.h: New file.
  13526. * src/BtAnnounce.h: New file.
  13527. * src/BtRegistry.h: New file.
  13528. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13529. * src/PeerConnection.h (TorrentMan.h): Removed.
  13530. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13531. * src/Util.h
  13532. (slice): Added an argument.
  13533. * src/Util.cc
  13534. (slice): Added an argument to control whether trim is made or not.
  13535. * src/PeerStorage.h: New file.
  13536. * src/BtRegistry.cc: New file.
  13537. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13538. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13539. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13540. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13541. * src/TorrentRequestInfo.h
  13542. (e): Removed.
  13543. (showFileEntry): Added an argument.
  13544. (getDownloadEngine): Return 0.
  13545. * src/DefaultBtAnnounce.h: New file.
  13546. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13547. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13548. * src/PeerMessageFactory.h
  13549. (btContext): New variable.
  13550. (pieceStorage): New variable.
  13551. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13552. btAnnounce.
  13553. * src/DiskAdaptor.cc
  13554. (DiskAdaptor): Removed topDir.
  13555. (~DiskAdaptor): Removed topDir.
  13556. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13557. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13558. * src/File.h (mkdirs): New function.
  13559. * src/DefaultPeerStorage): New file.
  13560. * src/DownloadEngineFactory.h
  13561. (newTorrentConsoleEngine): Use btContext.
  13562. * src/BtContextAwareCommand.cc: New file.
  13563. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13564. * src/PeerMessage.h
  13565. (btContext): New variable.
  13566. (peerStorage): New variable.
  13567. (pieceStorage): New variable.
  13568. (setBtContext): New function.
  13569. * src/Directry.cc
  13570. (Directory): New function.
  13571. (createDir): Do nothing if name.size() == 0.
  13572. * src/AnnounceList.h
  13573. (AnnounceTier): Removed.
  13574. (AnnounceTiers): Removed.
  13575. * src/DefaultPieceStorage.h: New file.
  13576. * src/Piece.cc (toString): New function.
  13577. To fix typo:
  13578. * src/main.cc (showVersion): Fixed typo.
  13579. To fix compile warning:
  13580. * src/DelegatingPeerListProcessor.cc
  13581. (canHandle): Added "return false".
  13582. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13583. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13584. make the process of announce request testable.
  13585. * src/TrackerWatcherCommand.h
  13586. (TimeA2.h): Removed.
  13587. (interval): Removed.
  13588. (checkPoint): Removed.
  13589. (createRequestCommand): Added an argument 'url'.
  13590. (TrackerWatherCommand): Removed interval.
  13591. (createCommand): New function.
  13592. * src/DownloadEngineFactory.cc
  13593. (newTorrentConsoleEngine): Updated according to the changes in
  13594. TrackerWatherCommand.
  13595. * src/TorrentMan.cc
  13596. (DelegatingPeerListProcessor.h): New includes.
  13597. (TorrentMan): Added the initialization of announceInterval.
  13598. (isStoppedAnnounceReady): New function.
  13599. (isCompletedAnnounceReady): New function.
  13600. (isDefaultAnnounceReady): New function.
  13601. (isAnnounceReady): New function.
  13602. (getAnnounceUrl): New function.
  13603. (announceStart): New function.
  13604. (announceFailure): New function.
  13605. (announceSuccess): New function.
  13606. (isAllAnnounceFailed): New function.
  13607. (resetAnnounce): New function.
  13608. (processAnnounceResponse): New function.
  13609. (needMorePeerConnection): New function.
  13610. (noMoreAnnounce): New function.
  13611. * src/TrackerUpdateCommand.h
  13612. (getTrackerResponse): int->size_t
  13613. * src/TorrentMan.h
  13614. (isStoppedAnnounceReady): New function.
  13615. (isCompletedAnnounceReady): New function.
  13616. (isDefaultAnnounceReady): New function.
  13617. (announceInterval): New variable.
  13618. (isAnnounceReady): New function.
  13619. (getAnnounceUrl): New function.
  13620. (announceStart): New function.
  13621. (announceFailure): New function.
  13622. (announceSuccess): New function.
  13623. (isAllAnnounceFailed): New function.
  13624. (resetAnnounce): New function.
  13625. (processAnnounceResponse): New function.
  13626. (needMorePeerConnection): New function.
  13627. (noMoreAnnounce): New function.
  13628. * src/TrackerWatcherCommand.cc
  13629. (TrackerWatherCommand): Removed interval and checkPoint.
  13630. (execute): Rewritten.
  13631. (createCommand): New function.
  13632. (createRequestCommand): Rewritten.
  13633. * src/TrackerUpdateCommand.cc
  13634. (MetaFileUtil.h): Removed.
  13635. (DelegatingPeerListProcessor.h): Removed.
  13636. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13637. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13638. Request -> RequestHandle:
  13639. * src/HttpResponseCommand.h: Request->RequestHandle
  13640. * src/AbstractCommand.cc: Request->RequestHandle
  13641. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13642. * src/HttpRequestCommand.cc: Request->RequestHandle
  13643. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13644. * src/AbstractCommand.h: Request->RequestHandle
  13645. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13646. * src/HttpResponseCommand.cc: Request->RequestHandle
  13647. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13648. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13649. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13650. * src/HttpConnection.h: Request->RequestHandle
  13651. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13652. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13653. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13654. * src/DownloadCommand.h: Request->RequestHandle
  13655. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13656. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13657. * src/HttpRequestCommand.h: Request->RequestHandle
  13658. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13659. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13660. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13661. * src/HttpDownloadCommand.h: Request->RequestHandle
  13662. * src/FtpConnection.cc: Request->RequestHandle
  13663. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13664. * src/UrlRequestInfo.cc: Request->RequestHandle
  13665. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13666. * src/HttpConnection.h: Request->RequestHandle
  13667. * src/DownloadCommand.cc: Request->RequestHandle
  13668. * src/FtpConnection.h: Request->RequestHandle
  13669. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13670. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13671. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13672. * src/Request.h
  13673. (SharedHandle.h): New include.
  13674. (RequestHandle): New type definition.
  13675. (Requests): Redefined.
  13676. To add MULTITRACKER support:
  13677. * src/TrackerWatcherCommand.h
  13678. (createRequestCommand): New function.
  13679. * src/DownloadEngineFactory.cc
  13680. (newTorrentConsoleEngine): Removed req.
  13681. * src/prefs.h
  13682. (PREF_TRACKER_MAX_TRIES): New definition.
  13683. * src/TorrentMan.cc
  13684. (TorrentMan): Removed req. Added trackerNumTry.
  13685. (~TorrentMan): Removed req.
  13686. (setupInternal1): Added announceList.
  13687. * src/TorrentRequestInfo.cc
  13688. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13689. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13690. * src/main.cc
  13691. (main): Added PREF_TRACKER_MAX_TRIES.
  13692. * src/TorrentMan.h
  13693. (Request.h): Removed.
  13694. (AnnounceList.h): New include.
  13695. (trackerNumTry): New variable.
  13696. (req): Removed.
  13697. (announceList): New variable.
  13698. * src/TrackerWatcherCommand.cc
  13699. (execute): Rewritten.
  13700. (createRequestCommand): New function.
  13701. * src/TrackerUpdateCommand.cc
  13702. (execute): Updated with the use of AnnounceList.
  13703. * src/AnnounceList.cc: New class.
  13704. * src/AnnounceList.h: New class.
  13705. To fix typo:
  13706. * src/prefs.h
  13707. (PREF_MAX_TRIES): max_try->max_tries
  13708. To not to decode "+" as space in URL decode:
  13709. * src/Util.cc
  13710. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13711. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13712. To add timeout to async name resolution:
  13713. * src/AbstractCommand.h
  13714. (nameResolveFinished): New function. This is not elegant way. It needs
  13715. to be more refined.
  13716. (nameResolverCheck): New variable.
  13717. * src/AbstractCommand.cc
  13718. (AbstractCommand): Added nameResolverCheck.
  13719. (execute): Added the check whether the name resolution has finished.
  13720. (setNameResolverCheck): Set nameResolverCheck to true.
  13721. (disableNameResolverCheck): Set nameResolverCheck to false.
  13722. (nameResolverFinished): New function.
  13723. * src/FtpInitiateConnectionCommand.h
  13724. (nameResolverFinished): New function.
  13725. * src/FtpInitiateConnectionCommand.cc
  13726. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13727. * src/HttpInitiateConnectionCommand.h
  13728. (nameResolverFinished): New function.
  13729. * src/HttpInitiateConnectionCommand.cc
  13730. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13731. * src/prefs.h
  13732. (PREF_DNS_TIMEOUT): New definition.
  13733. * src/main.cc
  13734. (main): Added PREF_DNS_TIMEOUT.
  13735. To add the support for a non-compact response from a tracker:
  13736. * src/PeerListProcessor.h: New class.
  13737. * src/DefaultPeerListProcessor.h: New class.
  13738. * src/DefaultPeerListProcessor.cc: New class.
  13739. * src/CompactPeerListProcessor.h: New class.
  13740. * src/CompactPeerListProcessor.cc: New class.
  13741. * src/DelegatingPeerListProcessor.h: New class.
  13742. * src/DelegatingPeerListProcessor.cc: New class.
  13743. * src/TorrentMan.cc
  13744. (addPeer): New function(overload).
  13745. (addPeer): Delete unused peers only when new peer is added.
  13746. * src/TorrentMan.h
  13747. (PeerListProcessor.h): Included.
  13748. (Peers): Removed.
  13749. (addPeer): New function(overload).
  13750. * src/TrackerUpdateCommand.cc
  13751. (netinet/in.h): Removed.
  13752. (DelegatingPeerListProcessor.h): Included.
  13753. (execute): Updated to use DelegatingPeerListProcessor.
  13754. To fix the memory leak in TorrentMan::peers:
  13755. * src/PeerAbstractCommand.cc
  13756. (onAbort): Added peer->resetStatus().
  13757. * src/Peer.h
  13758. (resetStatus): Made public.
  13759. To improve the precision of the speed calculation:
  13760. * src/SpeedCalc.h
  13761. (nextInterval): New variable.
  13762. * src/SpeedCalc.cc
  13763. (reset): Added nextInterval.
  13764. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13765. (changeSw): Set nextInterval to 15 seconds relative to the current
  13766. instant time.
  13767. * src/main.cc
  13768. (showVersion): Updated.
  13769. (showUsage): Updated.
  13770. * Release 0.8.1
  13771. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13772. * src/main.cc
  13773. (showUsage): Commented out --min-segment-size option.
  13774. (main): Commented out --min-segment-size option.
  13775. * Release 0.8.0
  13776. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13777. * src/*.{h,cc}:
  13778. Added an exception to the license which allows linking with OpenSSL.
  13779. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13780. * src/AbstractCommand.cc
  13781. (execute): Check whether the download has finished before checking
  13782. socket status.
  13783. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13784. Do not exit even if no segment is available.
  13785. * src/prefs.h
  13786. (PREF_STARTUP_IDLE_TIME): New definition.
  13787. * src/PeerInteractionCommand.cc
  13788. (executeInternal): Removed max speed limit. Because it performs bad.
  13789. (receiveMessages): Added max speed limit. This was better than above,
  13790. but still a little bit to be desired. Sometimes the download speed
  13791. became much faster than I specified.
  13792. * src/SpeedCalc.h
  13793. (start): New variable.
  13794. (accumulatedLength): New variable.
  13795. (getAvgSpeed): New function.
  13796. * src/SpeedCalc.cc
  13797. (reset): Added start, accumulatedLength.
  13798. (update): Added calculation of an average speed.
  13799. (getAvgSpeed): New function.
  13800. * src/DownloadCommand.h
  13801. (sw): Removed.
  13802. * src/main.cc
  13803. (main): Added PREF_STARTUP_IDLE_TIME.
  13804. * src/PeerStat.h
  13805. (STATUS): Added REQUEST_IDLE.
  13806. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13807. (getAvgDownloadSpeed): New function
  13808. (requestIdle): New function.
  13809. * src/SegmentMan.h
  13810. (SegmentEntryHandle): New type definition.
  13811. (SegmentEntries): Now holds SegmentEntryHandle.
  13812. (findSlowerSegmentEntry): New funtion.
  13813. * src/SegmentMan.cc
  13814. (save): Updated according to the changes in SegmentEntries.
  13815. (read): Updated according to the changes in SegmentEntries.
  13816. (FindSegmentEntryByIndex): Updated according to the changes in
  13817. SegmentEntries.
  13818. (FindSegmentEntryByCuid): Updated according to the changes in
  13819. SegmentEntries.
  13820. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13821. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13822. Renamed uitr as itr.
  13823. (findSlowerSegmentEntry): New function.
  13824. (getSegment): Updated according to the changes in SegmentEntries.
  13825. Added the feature that cancels the segment with slow server and fast
  13826. one takes it over.
  13827. (cancelSegment): Updated according to the changes in SegmentEntries.
  13828. (getDownloadLength): Updated according to the changes in
  13829. SegmentEntries.
  13830. (init): Assigned 0 to bitfield after deleting it.
  13831. * src/DownloadCommand.cc
  13832. (STARTUP_IDLE_TIME): Removed.
  13833. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13834. * src/PeerChokeCommand.cc
  13835. (optUnchokingPeer): Updated according to the changes in Peer.
  13836. (ResetDelta): Removed.
  13837. (UploadFaster): Updated according to the changes in Peer.
  13838. (DownloadFaster): Updated according to the changes in Peer.
  13839. (execute): I clarify the meaning of "upload" and "download" here.
  13840. "upload" means the transfer from localhost to remote host.
  13841. "download" means the transfer from remote host to localhost.
  13842. Based on this rule, I swapped orderByUploadRate and
  13843. orderByDownloadRate.
  13844. * src/PeerInteractionCommand.cc
  13845. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13846. (executeInternal): Removed the argument of
  13847. peerInteraction->sendMessages().
  13848. (receiveMessages): Rewritten download speed limit.
  13849. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13850. * src/HttpResponseCommand.cc
  13851. (handleDefaultEncoding): If file size is unknown in torrent request,
  13852. do not call segmentMan->initBitfield() here.
  13853. Disabled persistent connection feature in torrent request.
  13854. * src/UrlRequestInfo.h
  13855. (UrlRequestInfo): Removed const qualifier from option.
  13856. * src/TorrentMan.h
  13857. (TransferStat): New class.
  13858. (deltaDownloadLength): Removed.
  13859. (deltaUploadLength): Removed.
  13860. (addDeltaDownloadLength): Removed.
  13861. (getDeltaDownloadLength): Removed.
  13862. (resetDeltaDownloadLength): Removed.
  13863. (addDeltaUploadLength): Removed.
  13864. (getDeltaUploadLength): Removed.
  13865. (resetDeltaUploadLength): Removed.
  13866. (addActivePeer): Added peer->activate().
  13867. (deleteActivePeer): Added peer->deactivate().
  13868. (calculateStat): New function.
  13869. * src/TorrentMan.cc
  13870. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13871. (calculateStat): New function.
  13872. * src/PeerInteraction.h
  13873. (uploadLimit): Removed.
  13874. (option): New variable.
  13875. (setUploadLimit): Removed.
  13876. (getUploadSpeed): Removed.
  13877. (sendMessages): Removed the argument "currentUploadSpeed".
  13878. * src/PeerInteraction.cc
  13879. (prefs.h): Included.
  13880. (PeerInteraction): Removed uploadLimit. Added option.
  13881. (sendMessages): Rewritten upload speed limit.
  13882. (sendHandshake): Removed the argument from sendMessages().
  13883. (sendBitfield): Removed the argument from sendMessages().
  13884. * src/PeerAbstractCommand.cc
  13885. (execute): Commented out the portion of upload limit.
  13886. (onAbort): Removed peer->resetStatus().
  13887. * src/TorrentRequestInfo.cc
  13888. (timeoutSpecified): Declared extern.
  13889. (execute): Set timeout to 180 if timeout is not specified by.
  13890. command-line.
  13891. * src/PieceMessage.cc
  13892. (receivedAction): Added peer->updateDownloadLength().
  13893. Removed peer->addPeerUpload().
  13894. Removed torrentMan->addDeltaDownloadLength().
  13895. (send): Added peer->updateUploadLength().
  13896. Removed peer->addPeerDownload().
  13897. Removed torrentMan->addDeltaUploadLength().
  13898. * src/main.cc
  13899. (timeoutSpecified): New variable.
  13900. (main): Set timeoutSpecified to false.
  13901. If the command-line option "--upload-limit" is specified, then
  13902. timeoutSpecified is set to true. This option will remain in the next
  13903. release, but be deprecated in the future release.
  13904. * src/TorrentRequestInfo.h
  13905. (TorrentRequestInfo): Removed const qualifier from op.
  13906. * src/PeerStat.h
  13907. (uploadSpeed): New variable.
  13908. (PeerStat): Added default value to cuid.
  13909. (calculateUploadSpeed): New function.
  13910. (updateUploadLength): New function.
  13911. (getMaxUploadSpeed): New function.
  13912. (getAvgUploadSpeed): New function.
  13913. (reset): Added uploadSpeed. Set status to IDLE.
  13914. * src/TorrentDownloadEngine.h
  13915. (cp): Declared as Time.
  13916. (sessionDownloadLengthArray): Removed.
  13917. (sessionUploadLengthArray): Removed.
  13918. (currentCp): Removed.
  13919. (lastCalcStat): New variable
  13920. (lastElapsed): Removed.
  13921. (sessionDownloadLength): Removed.
  13922. (calculateStat): New function.
  13923. * src/TorrentDownloadEngine.cc
  13924. (initStatistics): Removed lastElapsed, cp[],
  13925. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13926. currentCp, sessionDownloadLength.
  13927. Added cp.reset() and lastCalcStat.reset().
  13928. (calculateSpeed): Changed the name of the argument.
  13929. (calculateStatistics): Rewritten.
  13930. (calculateStat): New function.
  13931. * src/Peer.h
  13932. (PeerStat.h): Included.
  13933. (peerUpload): Removed.
  13934. (peerDownload): Removed.
  13935. (peerStat): New variable.
  13936. (sessionUploadLength): New variable.
  13937. (sessionDownloadLength): New variable.
  13938. (deltaUpload): Removed.
  13939. (deltaDownload): Removed.
  13940. (resetStatus): Made private.
  13941. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13942. Removed peerUpload, peerDownload.
  13943. (updateUploadLength): New function.
  13944. (addDeltaUpload): Removed.
  13945. (updateDownloadLength): New function.
  13946. (resetDeltaUpload): Removed.
  13947. (getDeltaUpload): Removed.
  13948. (addDeltaDownload): Removed.
  13949. (calculateUploadSpeed): New function.
  13950. (resetDeltaDownload): Removed.
  13951. (getDeltaDownload): Removed.
  13952. (calculateDownloadSpeed): New function.
  13953. (getSessionUploadLength): New function.
  13954. (getSessionDownloadLength): New function.
  13955. (activate): New function.
  13956. (deactivate): New function.
  13957. (addPeerUpload): Removed.
  13958. (setPeerUpload): Removed.
  13959. (getPeerUpload): Removed.
  13960. (addPeerDownload): Removed.
  13961. (setPeerDownload): Removed.
  13962. (getPeerDownload): Removed.
  13963. * src/Peer.cc
  13964. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13965. * src/MetalinkRequestInfo.h
  13966. (MetalinkRequestInfo): Removed const qualifier from op.
  13967. * src/RequestInfo.h
  13968. (op): Removed const qualifier.
  13969. (RequestInfo): Removed const qualifier from op.
  13970. * src/prefs.h
  13971. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13972. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13973. * src/PeerInteractionCommand.cc
  13974. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13975. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13976. * src/PeerInteraction.cc
  13977. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13978. * src/main.cc
  13979. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13980. Added the description of "--max-download-limit" option.
  13981. Removed the description of "--upload-limit" option.
  13982. Added the description of "--max-upload-limit" option.
  13983. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13984. Added "--max-download-limit" option and "--max-upload-limit" option.
  13985. Added the warning message if "--upload-limit" option is used.
  13986. * src/DownloadCommand.cc
  13987. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13988. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13989. To rewrite segment download mechanism for HTTP/FTP download.
  13990. Use BitfieldMan to manage segment download.
  13991. * src/HttpResponseCommand.h
  13992. (executeInternal): Pass the reference of segment.
  13993. * src/AbstractCommand.cc
  13994. (prepareForRetry): Call segmentMan->cancelSegment here.
  13995. (onAbort): Call segmentMan->cancelSegment here.
  13996. * src/HttpDownloadCommand.cc
  13997. (prepareForNextSegment): New function.
  13998. * src/DownloadEngineFactory.cc
  13999. (newConsoleEngine): Removed splitter.
  14000. (newTorrentConsoleEngine): Removed splitter.
  14001. * src/Request.h
  14002. (segment): Renamed from seg.
  14003. * src/FtpInitiateConnectionCommand.h
  14004. (executeInternal): Pass the reference of segment.
  14005. * src/AbstractCommand.h
  14006. (executeInternal): Pass the reference of segment.
  14007. * src/pref.h
  14008. (PREF_SEGMENT_SIZE): New definition.
  14009. * src/HttpProxyRequestCommand.h
  14010. (executeInternal): Pass the reference of segment.
  14011. * src/HttpResponseCommand.cc
  14012. (checkResponse): Allowed status 206 when a request range starts 0.
  14013. (handleDefaultEncoding): Rewritten the code related to Segment.
  14014. (handleOtherEncoding): Rewritten the code related to Segment.
  14015. * src/SegmentMan.h
  14016. (SegmentEntry): New class.
  14017. (SegmentEntries): New type definition.
  14018. (bitfield): New variable.
  14019. (usedSegmentEntries): New variable.
  14020. (onNullBitfield): New function.
  14021. (checkoutSegment): New function.
  14022. (segments): Removed.
  14023. (splitter): Removed.
  14024. (unregisterId): Removed.
  14025. (getSegment): New function(overload)
  14026. (getDownloadedSize): Removed.
  14027. (cancelSegment): New function.
  14028. (completeSegment): New function.
  14029. (initBitfield): New function.
  14030. (hasSegment): New function.
  14031. (getDownloadLength): New function.
  14032. * src/BitfieldMan.h
  14033. (getStartIndex): New function.
  14034. (getEndIndex): New function.
  14035. (getMissingUnusedIndex): New function(overload).
  14036. (getSparseMissingUnusedIndex): New function.
  14037. * src/BitfieldMan.cc
  14038. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14039. (getMissingUnusedIndex): New function(overload).
  14040. (Range): New class.
  14041. (getStartIndex): New function.
  14042. (getEndIndex): New function.
  14043. (getSparseMissingUnusedIndex): New function.
  14044. (isBitSetInternal): Return false if the given index is less than 0.
  14045. * src/HttpInitiateConnectionCommand.h
  14046. (executeInternal): Pass the reference of segment.
  14047. * src/FtpNegotiateCommand.h
  14048. (executeInternal): Pass the reference of segment.
  14049. * src/FtpNegotiateCommand.cc
  14050. (recvSize): Initialize bitfield here.
  14051. * src/FtpTunnelResponseCommand.h
  14052. (executeInternal): Pass the reference of segment.
  14053. * src/HttpConnection.cc
  14054. (createRequest): Rewritten range header processing.
  14055. * src/DownloadCommand.h
  14056. (executeInternal): Pass the reference of segment.
  14057. (prepareForRetry): Removed.
  14058. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14059. function.
  14060. * src/main.cc
  14061. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14062. * src/SegmentMan.cc
  14063. (SegmentMan): Added bitfield. Removed splitter.
  14064. (~SegmentMan): Added bitfield. Removed splitter.
  14065. (unregisterId): Removed.
  14066. (getSegment): Rewritten.
  14067. (updateSegment): Rewritten.
  14068. (save): Rewritten.
  14069. (read): Rewritten.
  14070. (finished): Rewritten.
  14071. (getDownloadedSize): Removed.
  14072. (initBitfield): New function.
  14073. (FindSegmentEntryByIndex): New function object.
  14074. (FindSegmentEntryByCuid): New function object.
  14075. (checkoutSegment): New function.
  14076. (onNullBitfield): New function.
  14077. (getSegment): New function(overload).
  14078. (CancelSegment): New function object.
  14079. (cancelSegment): New function.
  14080. (completeSegment): New function.
  14081. (hasSegment): New function.
  14082. (getDownloadLength): New function.
  14083. * src/FtpInitiateConnectionCommand.cc
  14084. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14085. * src/Segment.h: Rewritten.
  14086. * src/Segment.cc (operator<<): New function.
  14087. * src/HttpDownloadCommand.h
  14088. (prepareForNextSegment): New function.
  14089. * src/Request.cc
  14090. (resetUrl): Made segment null.
  14091. * src/DownloadEngine.cc
  14092. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14093. * src/HttpProxyRequestCommand.h
  14094. (executeInternal): Pass the reference of segment.
  14095. * src/DownloadCommand.cc
  14096. (executeInternal): Rewritten the code related to Segment.
  14097. (prepareForRetry): Removed.
  14098. (prepareForNextSegment): Rewritten.
  14099. * src/FtpTunnelResponseCommand.h
  14100. (executeInternal): Pass the reference of segment.
  14101. To add HTTP 1.1 persistent connection support(experimental)
  14102. * src/HttpRequestCommand.cc
  14103. (executeInternal): Disable keep alive if it is disabled by
  14104. configuration.
  14105. * src/Request.h
  14106. (keepAlive): New variable.
  14107. (isKeepAlive): New function.
  14108. (setKeepAlive): New function.
  14109. * src/pref.h
  14110. (PREF_HTTP_KEEP_ALIVE): New definition.
  14111. * src/HttpResponseCommand.cc
  14112. (executeInternal): Check the remote server supports keep alive.
  14113. * src/HttpConnection.cc
  14114. (createRequest): Send "Connection: close" only if keep alive is
  14115. disabled.
  14116. * src/main.cc
  14117. (main):
  14118. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14119. To add max download speed limit:
  14120. * src/pref.h
  14121. (PREF_MAX_SPEED_LIMIT): New definition.
  14122. * src/PeerInteractionCommand.cc
  14123. (executeInternal): Added max download speed limit. Not tested yet.
  14124. * src/SegmentMan.h
  14125. (PeerStats): New type definition.
  14126. (peerStats): New variable.
  14127. (registerPeerStat): New function.
  14128. (FindPeerStat): New function object.
  14129. (getPeerStat): New function.
  14130. (calculateDownloadSpeed): New function.
  14131. * src/SpeedCalc.h: New class.
  14132. * src/SpeedCalc.cc: New class.
  14133. * src/main.cc
  14134. (main):
  14135. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14136. download speed is not restricted).
  14137. * src/PeerStat.h: New class.
  14138. * src/SegmentMan.cc
  14139. (registerPeerStat): New function.
  14140. (calculateDownloadSpeed): New function.
  14141. * src/DownloadCommand.cc
  14142. (STARTUP_IDLE_TIME): New definition.
  14143. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14144. downloadStart.
  14145. (~DownloadCommand): Call peerStat->downloadStop.
  14146. (executeInternal): Added download speed limitter. Rewritten lowest
  14147. speed limitter.
  14148. * src/HttpConnection.cc
  14149. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14150. * src/AbstractCommand.cc
  14151. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14152. Added hostname to the error message.
  14153. * src/ConsoleDownloadEngine.cc
  14154. (calculateStatistics): Initialize psize with dlSize.
  14155. * src/PieceMessage.cc
  14156. (receivedAction): Do not call peerInteraction->abortPiece here.
  14157. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14158. * src/BitfieldMan.h
  14159. (clearAllUseBit): New function.
  14160. (setAllUseBit): New function.
  14161. * src/BitfieldMan.cc
  14162. (clearAllBit): Do not clear useBitfield here.
  14163. (clearAllUseBit): New function.
  14164. (setAllUseBit): New function.
  14165. * src/Piece.cc
  14166. (clearAllBlock): Call bitfield->clearAllUseBit().
  14167. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14168. To make filename URL-decoded:
  14169. * src/HttpResponseCommand.h: Updated doc.
  14170. * src/HttpResponseCommand.cc
  14171. (determinFilename): Made filename URL-decoded.
  14172. * src/FtpInitiateConnectionCommand.cc
  14173. (executeInternal): Made filename URL-decoded.
  14174. * src/Util.h (urldecode): New function.
  14175. * src/Util.cc (urldecode): New function.
  14176. To fix a bug that caused assertion failure in ares_strerror:
  14177. * src/NameResolver.cc (callback): Fixed the bug.
  14178. * Release 0.7.3
  14179. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14180. To add --seed-time and --seed-ratio command-line option:
  14181. * src/Option.h (getAsDouble): New function.
  14182. * src/Option.cc (getAsDouble): New function.
  14183. * src/SeedCheckCommand.h: New class.
  14184. * src/SeedCheckCommand.cc: New class.
  14185. * src/DownloadEngineFactory.cc
  14186. (SeedCheckCommand.h): Included.
  14187. (UnionSeedCriteria.h): Included.
  14188. (TimeSeedCriteria.h): Included.
  14189. (ShareRatioSeedCriteria.h): Included.
  14190. (newTorrentConsoleEngine): Added the processing of seed option.
  14191. * src/SeedCriteria.h: New class.
  14192. * src/ShareRatioSeedCriteria.h: New class.
  14193. * src/TimeSeedCriteria.h: New class.
  14194. * src/UnionSeedCriteria.h: New class.
  14195. * src/prefs.h
  14196. (PREF_SEED_TIME): New definition.
  14197. (PREF_SEED_RATIO): New definition.
  14198. * src/main.cc
  14199. (showUsage): Added --seed-time and --seed-ratio option.
  14200. (main): Added --seed-time and --seed-ratio option.
  14201. Made default log file name "/dev/null".
  14202. * src/SharedHandle.h
  14203. (SharedHandle): Copy constructor. Made it assignable from the
  14204. SharedHandle of the subclasses.
  14205. (operator=): Made it assignable from the SharedHandle of the
  14206. subclasses.
  14207. (getRefCount): New function.
  14208. To add notice log level and the switch to write log to stdout. This
  14209. switch is configurable per log level.
  14210. * src/Logger.h
  14211. (notice): New function.
  14212. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14213. constant.
  14214. * src/LogFactory.cc
  14215. (getInstance): The use of NullLogger was removed. A log message with
  14216. notice log level was made written to stdout along with log file.
  14217. * src/NullLogger.h
  14218. (notice): New function.
  14219. * src/SimpleLogger.h
  14220. (writeHeader): Added the 'file' argument.
  14221. (writeLog): Added the 'file' argument.
  14222. (writeFile): New function.
  14223. (stdoutField): New variable.
  14224. (SimpleLogger): Removed the default constructor.
  14225. (SimpleLogger): Made the default value of logfile 0.
  14226. (debug): Added 'virtual' keyword.
  14227. (info): Added 'virtual' keyword.
  14228. (warn): Added 'virtual' keyword.
  14229. (error): Added 'virtual' keyword.
  14230. (notice): New function.
  14231. (setStdout): New function.
  14232. * src/SimpleLogger.cc
  14233. (WRITE_LOG): Replaced writeLog with writeFile.
  14234. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14235. (SimpleLogger): Removed the default constructor.
  14236. (setStdout): New function.
  14237. (writeLog): Added the handling of NOTICE log level.
  14238. (writeFile): New function.
  14239. (notice): New function.
  14240. * src/TorrentMan.h: Updated doc.
  14241. * src/BitfieldMan.h: Updated doc.
  14242. * src/TrackerWatcherCommand.cc
  14243. (execute): Return true if error occurred in the request to the tracker
  14244. and halt is requested.
  14245. * src/TrackerUpdateCommand.cc
  14246. (execute): Return true if error occurred in the request to the tracker
  14247. and halt is requested.
  14248. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14249. DownloadEngine:
  14250. * src/TorrentConsoleDownloadEngine.h
  14251. (onSelectiveDownloadingCompletes): Removed.
  14252. * src/TorrentConsoleDownloadEngine.cc
  14253. (onSelectiveDownloadingCompletes): Removed.
  14254. * src/TorrentDownloadEngine.h
  14255. (onEndOfRun): Added 'virtual' keyword.
  14256. (afterEachIteration): Removed.
  14257. (onSelectiveDownloadingCompletes): Removed.
  14258. * src/TorrentDownloadEngine.cc
  14259. (onEndOfRun): Removed filenameFixed.
  14260. (afterEachIteration): Removed.
  14261. * src/TorrentMan.cc
  14262. (completePiece): Call onDownloadComplete here.
  14263. (onDownloadComplete): Added 2 log messages.
  14264. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14265. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14266. * src/NameResolver.h: Added the prototype declaration of callback().
  14267. To support c-ares library:
  14268. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14269. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14270. * src/FtpInitiateConnectionCommand.h:
  14271. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14272. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14273. * src/HttpInitiateConnectionCommand.h:
  14274. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14275. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14276. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14277. #1542285 by tizianomueller)
  14278. * src/HttpInitiateConnectionCommand.cc:
  14279. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14280. * src/FtpInitiateConnectionCommand.cc:
  14281. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14282. * src/DownloadEngine.h:
  14283. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14284. * src/DownloadEngine.cc:
  14285. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14286. To fix the bug that causes compilation failure with metalink-support
  14287. disabled(bug#1543587):
  14288. * src/main.cc: Fixed with the patch by tizianomueller.
  14289. * Release 0.7.2
  14290. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14291. * src/main.cc
  14292. (main): Added a message to inform users that aria2 is starting to
  14293. verify checksum.
  14294. * src/RequestInfo.cc
  14295. (printDownloadAbortMessage): Added a message to inform users that
  14296. transfer can be resumed.
  14297. * src/FeatureConfig.cc
  14298. (FEATURE_ASYNC_DNS): New definition.
  14299. (FeatureConfig): Added aysnc DNS entry.
  14300. To replace CommandUuid with Command* in SocketEntry and
  14301. NameResolverEntry:
  14302. * src/DownloadEngine.h
  14303. (CommandUuids): Removed.
  14304. (SocketEntry::commandUuid): Removed.
  14305. (SocketEntry::command): New variable.
  14306. (SocketEntry::SocketEntry): Updated.
  14307. (SocketEntry::operator==): Updated.
  14308. (NameResolverEntry::commandUuid): Removed.
  14309. (NameResolverEntry::command): New variable.
  14310. (NameResolverEntry::NameResolverEntry): Updated.
  14311. (NameResolverEntry::operator==): Updated.
  14312. (waitData): Changed the argument type.
  14313. (addSocketForReadCheck): Changed the argument type.
  14314. (deleteSocketForReadCheck): Changed the argument type.
  14315. (addSocketForWriteCheck): Changed the argument type.
  14316. (deleteSocketForWriteCheck): Changed the argument type.
  14317. (addNameResolverCheck): Changed the argument type.
  14318. (deleteNameResolverCheck): Changed the argument type.
  14319. * src/DownloadEngine.cc
  14320. (FindCommand): Removed.
  14321. (run): Removed activeUuid. Added activeCommands instead.
  14322. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14323. (AccumulateActiveCommand): New function object.
  14324. (waitData): Use AccumulateActiveCommand.
  14325. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14326. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14327. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14328. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14329. (addNameResolverCheck): Use Command instead of CommandUuid.
  14330. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14331. * src/AbstractCommand.cc
  14332. (disableReadCheckSocket): Updated according to the changes in
  14333. DownloadEngine.
  14334. (setReadCheckSocket): Updated according to the changes in
  14335. DownloadEngine.
  14336. (disableWriteCheckSocket): Updated according to the changes in
  14337. DownloadEngine.
  14338. (setWriteCheckSocket): Updated according to the changes in
  14339. DownloadEngine.
  14340. (setNameResolverCheck): Updated according to the changes in
  14341. DownloadEngine.
  14342. (disableNameResolverCheck): Updated according to the changes in
  14343. DownloadEngine.
  14344. * src/AbstractCommand.cc
  14345. (disableReadCheckSocket): Updated according to the changes in
  14346. DownloadEngine.
  14347. (setReadCheckSocket): Updated according to the changes in
  14348. DownloadEngine.
  14349. (disableWriteCheckSocket): Updated according to the changes in
  14350. DownloadEngine.
  14351. (setWriteCheckSocket): Updated according to the changes in
  14352. DownloadEngine.
  14353. * release 0.7.1
  14354. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14355. To handle the case where some BitTorrent tracker requires all letters
  14356. except for [A-Za-z0-9] is URL encoded.
  14357. * src/Util.h
  14358. (torrentUrlencode): New function.
  14359. * src/Util.cc
  14360. (ctype.h): Included.
  14361. (torrentUrlencode): New function.
  14362. * src/TrackerWatcherCommand.cc
  14363. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14364. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14365. To add asynchronous DNS support(libares):
  14366. * src/AbstractCommand.h
  14367. (setNameResolverCheck): New function.
  14368. (disableNameResolverCheck): New function
  14369. (resolveHostname): New function.
  14370. * src/AbstractCommand.cc
  14371. (setNameResolverCheck): New function.
  14372. (disableNameResolverCheck): New function
  14373. (resolveHostname): New function.
  14374. * src/FtpInitiateConnectionCommand.h
  14375. (nameResolver): New function.
  14376. * src/FtpInitiateConnectionCommand.cc
  14377. (Util.h): Included.
  14378. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14379. disableWriteCheckSocket.
  14380. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14381. (executeInternal): Added async DNS support.
  14382. * src/HttpInitiateConnectionCommand.h
  14383. (nameResolver): New function.
  14384. * src/HttpInitiateConnectionCommand.cc
  14385. (DlRetryEx.h): Included.
  14386. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14387. disableWriteCheckSocket.
  14388. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14389. (executeInternal): Added async DNS support.
  14390. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14391. by extern "C" declaration.
  14392. * src/NameResolver.cc: New class.
  14393. * src/Util.h:
  14394. (isNumberAndDotsNotation): New function
  14395. * src/Util.cc
  14396. (isNumberAndDotsNotation): New function.
  14397. * src/DownloadEngine.h
  14398. (NameResolver.h): Included.
  14399. (NameResolverEntry): New class.
  14400. (NameResolverEntries): New type definition.
  14401. (addNameResolverCheck): New function.
  14402. (deleteNameResolverCheck): New function.
  14403. * src/DownloadEngine.cc
  14404. (run): Initialize cp with 0.
  14405. (SetDescriptor::operator()): Added for NameResolverEntry.
  14406. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14407. (waitData): Check nameResolver entries.
  14408. (updateFdSet): Update fds in nameResolver entries.
  14409. (addNameResolverCheck): New function.
  14410. (deleteNameResolverCheck): new function.
  14411. * src/PeerInteractionCommand.cc
  14412. (executeInternal): Fixed wrong socket handling.
  14413. * src/main.cc
  14414. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14415. * src/Util.cc
  14416. (fileChecksum): Removed the call to ctx.digestReset().
  14417. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14418. * po/ru.po: Azamat sent me Russian translation.
  14419. * src/FtpNegotiateCommand.cc
  14420. (recvGreeting): Call disableWriteCheckSocket just after
  14421. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14422. (recvRetr): Recognized status code 125 as a acceptable response code.
  14423. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14424. case-insesitive filesystem(BUG#1531057).
  14425. * src/Time.h: Renamed as TimeA2.h.
  14426. * src/Time.cc: Renamed as TimeA2.cc.
  14427. * src/TimeA2.h: New class.
  14428. * src/TimeA2.cc: New class.
  14429. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14430. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14431. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14432. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14433. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14434. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14435. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14436. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14437. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14438. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14439. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14440. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14441. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14442. * release 0.7.0
  14443. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14444. * src/PeerChokeCommand.h
  14445. (PeerChokeCommand): Rearranged the arguments.
  14446. * src/PeerChokeCommand.cc
  14447. (PeerChokeCommand): Rearranged the arguments.
  14448. * src/MetalinkEntry.h
  14449. (Checksum.h): Included.
  14450. (md5): Removed.
  14451. (sha1): Removed.
  14452. (checksum): New variable.
  14453. (operator=): Updated.
  14454. (check): Removed.
  14455. * src/prefs.h
  14456. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14457. (PREF_FOLLOW_TORRENT): New definition.
  14458. (PREF_SELECT_FILE): New definition.
  14459. (PREF_FOLLOW_METALINK): New definition.
  14460. * src/MetalinkResource.h
  14461. (TYPE_HTTPS): Added to enum TYPE.
  14462. * src/TorrentMan.cc
  14463. (~TorrentMan): Rewritten.
  14464. * src/MultiDiskWriter.cc
  14465. (MultiDiskAdaptor): Updated according to the changes in
  14466. MessageDigestContext.
  14467. (~MultiDiskAdaptor): Updated according to the changes in
  14468. MessageDigestContext.
  14469. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14470. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14471. * src/Util.h
  14472. (fileChecksum): Updated according to the changes in
  14473. MessageDigestContext.
  14474. * src/Util.cc
  14475. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14476. (fileChecksum): Updated according to the changes in
  14477. MessageDigestContext.
  14478. * src/messageDigest.h: Rewritten.
  14479. * src/MetalinkEntry.cc
  14480. (check): Removed.
  14481. (Supported): Updated.
  14482. (dropUnsupportedResource): Fixed a memory leak.
  14483. * src/ShaVisitor.cc
  14484. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14485. (~ShaVisitor): Updated according to the changes in
  14486. MessageDigestContext.
  14487. (visit): Updated according to the changes in MessageDigestContext.
  14488. * src/main.cc
  14489. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14490. command-line option added.
  14491. * src/DownloadEngine.h
  14492. (SocketEntry): New class.
  14493. (SocketEntries): New definition.
  14494. (PairFind): Removed.
  14495. (SockCmdMap): Removed.
  14496. * src/DownloadEngine.cc
  14497. (DownloadEngine): Rewritten.
  14498. (~DownloadEngine): Rewritten.
  14499. (run): Renamed activeCommandUuids as activeUuids.
  14500. (SetDescriptor): Rewritten.
  14501. (AccumulateActiveCommandUuid): Removed.
  14502. (AccumulateActiveUuid): New function object.
  14503. (waitData): Rewritten.
  14504. (updateFdSet): Rewritten.
  14505. (addSocket): Rewritten.
  14506. (deleteSocket): Rewritten.
  14507. (addSocketForReadCheck): Rewritten.
  14508. (deleteSocketForReadCheck): Rewritten.
  14509. (addSocketForWriteCheck): Rewritten.
  14510. (deleteSocketForWriteCheck): Rewritten.
  14511. * src/Xml2MetalinkProcessor.cc
  14512. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14513. * src/DownloadCommand.cc
  14514. (executeInternal): Added the check routine for lowest speed limit.
  14515. * src/AbstractDiskWriter.cc
  14516. (AbstractDiskWriter): Updated according to the changes in
  14517. MessageDigestContext.
  14518. (~AbstractDiskWriter): Updated according to the changes in
  14519. MessageDigestContext.
  14520. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14521. * src/RequestInfo.h: New class.
  14522. * src/UrlRequestInfo.h: New class.
  14523. * src/UrlRequestInfo.cc: New class.
  14524. * src/TorrentRequestInfo.h: New class.
  14525. * src/TorrentRequestInfo.cc: New class.
  14526. * src/MetalinkRequestInfo.h: New class.
  14527. * src/MetalinkRequestInfo.cc: New class.
  14528. * src/Checksum.h: New class.
  14529. * src/DownloadEngineFactory.h: New class.
  14530. * src/DownloadEngineFactory.cc: New class.
  14531. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14532. * src/Option.h
  14533. (getAsBool): New function.
  14534. * src/Option.cc
  14535. (prefs.h): Included.
  14536. (defined): 0-length value is now recognized as undefined.
  14537. (getAsInt): Rewritten.
  14538. (getAsLLInt): Rewritten.
  14539. (getAsBool): New function.
  14540. * src/FeatureConfig.h: Rewritten.
  14541. * src/FeatureConfig.cc: Rewritten.
  14542. * src/prefs.h
  14543. (PREF_STDOUT_LOG): New definition.
  14544. (PREF_LOG): New definition.
  14545. (PREF_DIR): New definition.
  14546. (PREF_OUT): New definition.
  14547. (PREF_SPLIT): New definition.
  14548. (PREF_DAEMON): New definition.
  14549. (PREF_REFERER): New definition.
  14550. (PREF_TORRENT_FILE): New definition.
  14551. (PREF_LISTEN_PORT): New definition.
  14552. (PREF_METALINK_FILE): New definition.
  14553. (PREF_METALINK_VERSION): New definition.
  14554. (PREF_METALINK_LANGUAGE): New definition.
  14555. (PREF_METALINK_OS): New definition.
  14556. (PREF_METALINK_SERVERS): New definition.
  14557. * src/main.cc
  14558. (main): Following command-line parameters are now put into Option
  14559. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14560. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14561. metalinkLanguage, metalinkOs, metalinkServers
  14562. To fix the bug that aria2 can not handle http response header properly.
  14563. * src/HttpHeader.cc
  14564. (put): Made name lowercased.
  14565. (defined): Made name lowercased.
  14566. (getFirst): Made name lowercased.
  14567. (get): Made name lowercased.
  14568. (getFirstAsInt): Rewritten.
  14569. (getFirstAsLLInt): Rewritten.
  14570. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14571. * src/TorrentMan.h:
  14572. (advertisePiece): Updated doc.
  14573. (getAdvertisedPieceIndexes): Updated doc.
  14574. (removeAdvertisedPiece); New function.
  14575. * src/TorrentMan.cc
  14576. (FindElapsedHave): New function object.
  14577. (removeAdvertisedPiece): New function.
  14578. * src/HaveEraseCommand.h: New class.
  14579. * src/HaveEraseCommand.cc: New class.
  14580. * src/FeatureConfig.h: New class.
  14581. * src/FeatureConfig.cc: New class.
  14582. * src/Request.h
  14583. (defaultPorts): Removed.
  14584. * src/Request.cc
  14585. (FeatureConfig.h): Included.
  14586. (Request): Removed the statements related to defaultPorts.
  14587. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14588. A default port number is now retrieved from FeatureConfig.
  14589. * src/main.cc
  14590. (HaveEraseCommand.h): Included.
  14591. (showVersion): Added the output of feature list.
  14592. (main): Added HaveEraseCommand to command queue in BitTorrent
  14593. downloading.
  14594. * src/PeerInteractionCommand.h
  14595. (chokeCheckPoint): Commented out.
  14596. (periodicExecPoint): New variable.
  14597. * src/PeerInteractionCommand.cc
  14598. (executeInternal): Following methods are now called in at least every
  14599. 0.5 seconds to reduce CPU usage:
  14600. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14601. checkHave(), sendKeepAlive().
  14602. (checkLongTimePeerChoking): Commented out.
  14603. * src/BitfieldMan.h
  14604. (getNthBitIndex): Changed the method signature.
  14605. (getMissingIndexRandomly): Changed the method signature.
  14606. * src/BitfieldMan.cc
  14607. (getNthBitIndex): Rewritten
  14608. (getMissingIndexRandomly): Rewritten.
  14609. (hasMissingPiece): Rewritten.
  14610. (getMissingIndex): Refactored.
  14611. (getMissingUnusedIndex); Refactored.
  14612. (getMissingIndex): Refactored.
  14613. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14614. * src/PeerMessage.h
  14615. (Piece.h): Included.
  14616. (SharedHandle.h): Included.
  14617. (invalidate): New variable.
  14618. (uploading): New variable.
  14619. (isInvalidate): New function.
  14620. (isUploading): New function.
  14621. (onPush): New function.
  14622. (onChoked): New function.
  14623. (onCanceled): New function.
  14624. (onAbortPiece): New function.
  14625. (PeerMessageHandle): New type definition.
  14626. * src/PeerMessage.cc
  14627. (PeerMessage): Added the initialization for invalidate and uploading.
  14628. * src/CancelMessage.h
  14629. (CancelMessage): Rewritten.
  14630. * src/RejectMessage.h
  14631. (RejectMessage): Rewritten.
  14632. * src/Metalinker.h
  14633. (operator=): Defined.
  14634. * src/MetaEntry.h
  14635. (operator=): Defined.
  14636. * src/MetalinkResource.h
  14637. (operator=): Defined.
  14638. * src/AllowedFastMessage.h
  14639. (AllowedFastMessage): Rewritten.
  14640. * src/HandshakeMessage.h
  14641. (HandshakeMessage): New function(overload).
  14642. * src/HandshakeMessage.cc
  14643. (HandshakeMessage): Rewritten.
  14644. (init): New function.
  14645. * src/HaveMessage.h
  14646. (HaveMessage): Rewritten.
  14647. * src/Time.h
  14648. (operator=): Defined the function body here.
  14649. * src/Time.cc
  14650. (operator=): Removed.
  14651. * src/SocketCore.h
  14652. (operator==): Defined here.
  14653. (operator!=): Defined here.
  14654. (operator<): Defined here.
  14655. * src/SocketCore.cc
  14656. (operator==): Removed.
  14657. (operator<): Removed.
  14658. * src/BitfieldMan.h
  14659. (operator=): Defined the function body here.
  14660. * src/BitfieldMan.cc
  14661. (operator=): Removed.
  14662. * src/TorrentMan.h
  14663. (deleteErrorPeer): Removed.
  14664. (deleteUnusedPeer); New function.
  14665. * src/TorrentMan.cc
  14666. (addPeer): Call deleteUnusedPeer.
  14667. (deleteErrorPeer): Removed.
  14668. (deleteUnusedPeer): New function.
  14669. * src/PeerAbstractCommand.h
  14670. (setNoCheck): New function.
  14671. (noCheck): New variable.
  14672. * src/PeerAbstractCommand.cc
  14673. (PeerAbstractCommand): Added the initialization of noCheck.
  14674. (execute): Added a check for noCheck.
  14675. (setNoCheck): New function.
  14676. * src/Util.h
  14677. (stdio.h): Included.
  14678. * src/Util.cc
  14679. (unistd.h): Included.
  14680. * src/DefaultDiskWriter.cc
  14681. (unistd.h): Included.
  14682. * src/Peer.h
  14683. (operator==): Defined the function body here.
  14684. (operator!=): Defined the function body here.
  14685. * src/Peer.cc
  14686. (operator==): Removed.
  14687. (operator!=): Removed.
  14688. * src/Piece.h
  14689. (Piece): Defined the function body here(copy constructor).
  14690. (operator=): Defined the function body here.
  14691. (operator==): Defined the function body here.
  14692. * src/Piece.cc
  14693. (Piece): Removed(copy constructor).
  14694. (operator=): Removed.
  14695. (operator==): Removed.
  14696. * src/PeerMessageUtil.h
  14697. (ChokeMessage.h): Removed.
  14698. (UnchokeMessage.h): Removed.
  14699. (InterestedMessage.h): Removed.
  14700. (NotInterestedMessage.h): Removed.
  14701. (HaveMessage.h): Removed.
  14702. (BitfieldMessage.h): Removed.
  14703. (RequestMessage.h): Removed.
  14704. (CancelMessage.h): Removed.
  14705. (PieceMessage.h): Removed.
  14706. (HandshakeMessage.h): Removed.
  14707. (KeepAliveMessage.h): Removed.
  14708. (PortMessage.h): Removed.
  14709. (HaveAllMessage.h): Removed.
  14710. (HaveNoneMessage.h): Removed.
  14711. (PeerConnection.h): Removed.
  14712. (HandshakeMessage.h): Included.
  14713. * src/BitfieldMessage.h
  14714. (init): New function.
  14715. (BitfieldMessage): Rewritten.
  14716. (BitfieldMessage): New function(overload).
  14717. * src/RequestSlot.h
  14718. (operator=): Defined the function body here.
  14719. (operator==): Defined the function body here.
  14720. * src/RequestSlot.cc
  14721. (operator=): Removed.
  14722. (operator==): Removed.
  14723. To remove the dependency on the PeerMessage subclass from
  14724. PeerInteraction:
  14725. * src/PeerMessageFactory.h: New class.
  14726. * src/PeerMessageFactory.cc: New class.
  14727. * src/SimplePeerMessage.cc
  14728. (send): If invalidate is true then do nothing.
  14729. * src/PeerInteractionCommand.cc
  14730. (HandshakeMessage.h): Included.
  14731. (KeepAliveMessage.h): Included.
  14732. (ChokeMessage.h): Included.
  14733. (UnchokeMessage.h): Included.
  14734. (HaveMessage.h): Included.
  14735. (executeInternal): Call setNoCheck().
  14736. Removed setWriteCheckSocket(socket).
  14737. * src/PeerInteraction.h
  14738. (ChokeMessage.h): Removed.
  14739. (UnchokeMessage.h): Removed.
  14740. (InterestedMessage.h): Removed.
  14741. (NotInterestedMessage.h): Removed.
  14742. (HaveMessage.h): Removed.
  14743. (BitfieldMessage.h): Removed.
  14744. (RequestMessage.h): Removed.
  14745. (CancelMessage.h): Removed.
  14746. (PieceMessage.h): Removed.
  14747. (HandshakeMessage.h): Removed.
  14748. (KeepAliveMessage.h): Removed.
  14749. (PortMessage.h): Removed.
  14750. (HaveAllMessage.h): Removed.
  14751. (HaveNoneMessage.h): Removed.
  14752. (RejectMessage.h): Removed.
  14753. (AllowedFastMessage.h): Removed.
  14754. (SuggestPieceMessage.h): Removed.
  14755. (PeerMessageFactory.h): Included.
  14756. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14757. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14758. (PeerMessageFactory): New variable.
  14759. (createPeerMessage): Removed.
  14760. (createHandshakeMessage): Removed.
  14761. (setPeerMessageCommonProperty): Removed.
  14762. (addRequestSlot): New function.
  14763. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14764. (getPeerMessageFactory): New function.
  14765. (createRequestMessage): Removed.
  14766. (createCancelMessage): Removed.
  14767. (createPieceMessage): Removed.
  14768. (createHaveMessage): Removed.
  14769. (createChokeMessage): Removed.
  14770. (createUnchokeMessage): Removed.
  14771. (createInterestedMessage): Removed.
  14772. (createNotInterestedMessage): Removed.
  14773. (createBitfieldMessage): Removed.
  14774. (createKeepAliveMessage): Removed.
  14775. (createHaveAllMessage): Removed.
  14776. (createHaveNoneMessage): Removed.
  14777. (createRejectMessage): Removed.
  14778. (createAllowedFastMessage): Removed.
  14779. * src/PeerInteraction.cc
  14780. (PeerInteraction): Allocate PeerMessageFactory here.
  14781. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14782. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14783. PieceMessage::ID.
  14784. (addMessage): Simplified by using PeerMessage::onPush().
  14785. (addRequestSlot): New function.
  14786. (rejectAllPieceMessageInQueue): Simplified by using
  14787. PeerMessage::onChoked().
  14788. (rejectPieceMessageInQueue): Simplified by using
  14789. PeerMessage::onCanceled().
  14790. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14791. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14792. (createHandshakeMessage): Removed.
  14793. (createPeerMessage): Removed.
  14794. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14795. (setPeerMessageCommonProperty): Removed.
  14796. (createRequestMessage): Removed.
  14797. (createCancelMessage): Removed.
  14798. (createPieceMessage): Removed.
  14799. (createHaveMessage): Removed.
  14800. (createChokeMessage): Removed.
  14801. (createUnchokeMessage): Removed.
  14802. (createInterestedMessage): Removed.
  14803. (createNotInterestedMessage): Removed.
  14804. (createBitfieldMessage): Removed.
  14805. (createKeepAliveMessage): Removed.
  14806. (createHaveAllMessage): Removed.
  14807. (createHaveNoneMessage): Removed.
  14808. (createRejectMessage): Removed.
  14809. (createAllowedFastMessage): Removed.
  14810. * src/PieceMessage.h
  14811. (createRejectMessage): New function.
  14812. (PieceMessage): Rewritten.
  14813. (onChoked): New function.
  14814. (onCanceled): New function.
  14815. * src/PieceMessage.cc
  14816. (send): If invalidate is true then do nothing, just return.
  14817. (createRejectMessage): New function.
  14818. (onChoked): New function.
  14819. (onCanceled): New function.
  14820. * src/RequestMessage.h
  14821. (RequestMessage): Rewritten.
  14822. (onPush): New function.
  14823. (onAbortPiece): New function.
  14824. * src/RequestMessage.cc
  14825. (onPush): New function.
  14826. (onAbortPiece): New function.
  14827. Update fd_set when a socket is added or deleted in order to improve
  14828. performance:
  14829. * src/DownloadEngine.h
  14830. (rfdset): New variable.
  14831. (wfdset): New variable.
  14832. (updateFdSet): New function.
  14833. * src/DownloadEngine.cc
  14834. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14835. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14836. (waitData): Copy rfdset and wfdset.
  14837. (updateFdSet): New function.
  14838. (addSocket): Call updateFdSet.
  14839. (deleteSocket): Call updateFdSet.
  14840. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14841. To add the support for Metalink3.0 backward compatible links:
  14842. * src/Request.h
  14843. (SAFE_CHARS): Added '#'.
  14844. (METALINK_MARK): New definition.
  14845. * src/Request.cc
  14846. (parseUrl): Added the support for Metalink3.0 backward compatible
  14847. links.
  14848. etc
  14849. * src/PeerInteraction.cc
  14850. (MsgPushBack): Removed.
  14851. (sendMessages): Use STL copy and back_inserter.
  14852. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14853. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14854. * src/TorrentMan.h
  14855. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14856. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14857. * src/SharedHandle.h: New class.
  14858. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14859. * src/HttpResponseCommand.h
  14860. (HttpResponseCommand): Wrapped Socket.
  14861. * src/SocketCore.h
  14862. (operator==): New function.
  14863. (operator!=): New function.
  14864. (operator<): New function.
  14865. (getSockfd): New function.
  14866. (isOpen): New function.
  14867. (writeData): New function.
  14868. * src/SocketCore.cc
  14869. (operator==): New function.
  14870. (operator!=): New function.
  14871. (operator<): New function.
  14872. * src/AbstractCommand.h
  14873. (socket): Changed its type to SocketHandle.
  14874. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14875. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14876. (disableReadCheckSocket): New function.
  14877. (disableWriteCheckSocket): New function.
  14878. (readCheckTarget): Changed its type to SocketHandle.
  14879. (writeCheckTarget): Changed its type to SocketHandle.
  14880. (AbstractCommand): Replaced Socket with SocketHandle.
  14881. * src/AbstractCommand.cc
  14882. (AbstractCommand): Replaced Socket with SocketHandle.
  14883. (~AbstractCommand): Removed the deallocation for Socket object.
  14884. (disableReadCheckSocket): New function.
  14885. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14886. (disableWriteCheckSocket): New function.
  14887. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14888. * src/HttpDownloadCommand.cc
  14889. (DownloadCommand): Replaced Socket with SocketHandle.
  14890. * src/PeerAbstractCommand.h
  14891. (socket): Changed its type to SocketHandle.
  14892. (peer): Changed its type to PeerHandle.
  14893. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14894. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14895. (disableReadCheckSocket): New function.
  14896. (disableWriteCheckSocket): New function.
  14897. (readCheckTarget): Changed its type to SocketHandle.
  14898. (writeCheckTarget): Changed its type to SocketHandle.
  14899. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14900. Replaced Peer with PeerHandle.
  14901. * src/HttpRequestCommand.cc
  14902. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14903. Use disableReadCheckSocket.
  14904. * src/PeerInitiateConnectionCommand.h
  14905. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14906. * src/PeerChokeCommand.cc
  14907. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14908. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14909. (execute): Use PeerHandle.
  14910. * src/PeerConnection.h
  14911. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14912. (socket): Changed its type to SocketHandle.
  14913. (PeerConnection): Replaced Socket with SocketHandle.
  14914. * src/PeerConnection.cc
  14915. (PeerConnection): Replaced Socket with SocketHandle.
  14916. * src/PeerInteractionCommand.h
  14917. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14918. Replaced Peer with PeerHandle.
  14919. * src/PeerInteractionCommand.cc
  14920. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14921. Replaced Peer with PeerHandle.
  14922. (executeInternal): Use disableWriteCheckSocket.
  14923. Use HandshakeMessageHandle.
  14924. (receiveMessages): Use PeerMessageHandle.
  14925. (prepareForNextPeer): Use PeerHandle.
  14926. * src/HttpProxyRequestCommand.h
  14927. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14928. * src/HttpResponseCommand.cc
  14929. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14930. * src/TorrentMan.cc
  14931. (nullPeer): Added external reference.
  14932. (~TorrentMan): Removed the deallocation of the elements of peers.
  14933. (addPeer): Rewritten.
  14934. (isPeerAvailable): Use nullPeer.
  14935. (deleteOldpeers): Replaced with deleteErrorPeer.
  14936. (deleteErrorPeer): New function.
  14937. (getPeer): Use PeerHandle and nullPeer.
  14938. (hasMissingPiece): Replaced Peer with PeerHandle.
  14939. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14940. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14941. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14942. (getMissingPiece): Replaced Peer with PeerHandle.
  14943. * src/FtpNegotiateCommand.cc
  14944. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14945. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14946. (recvGreeting): Use disableWriteCheckSocket.
  14947. (recvPasv): Removed the allocation of Socket.
  14948. Use disableReadCheckSocket.
  14949. (sendRestPasv): Use disableWriteCheckSocket.
  14950. (recvRetr): Changed assertion.
  14951. * src/PeerInteraction.h
  14952. (SharedHandle.h): Included SharedHandle.h.
  14953. (PeerMessageHandle): New type definition.
  14954. (HandshakeMessageHandle): New type definition.
  14955. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14956. (peer): Changed its type to PeerHandle.
  14957. (createHandshakeMessage): Replaced HandshakeMessage with
  14958. HandshakeMessageHandle.
  14959. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14960. (PeerInteraction): Replaced Peer with PeerHandle.
  14961. Replaced Socket with SocketHandle.
  14962. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14963. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14964. (receiveHandshake): Replaced HandshakeMessage with
  14965. HandshakeMessageHandle.
  14966. * src/PeerInteraction.cc
  14967. (PeerInteraction): Replaced Peer with PeerHandle.
  14968. Replaced Socket with SocketHandle.
  14969. (~PeerInteraction): Removed the deallocation of the elements of
  14970. messageQueue.
  14971. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14972. (isSendingMessageInProgress): Replaced PeerMessage with
  14973. PeerMessageHandle.
  14974. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14975. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14976. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14977. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14978. (abortPiece): Use PeerMessageHandle.
  14979. (receiveHandshake): Replaced HandshakeMessage with
  14980. HandshakeMessageHandle. Removed try-catch block.
  14981. (createHandshakeMessage): Replaced HandshakeMessage with
  14982. HandshakeMessageHandle.
  14983. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14984. Removed try-catch block.
  14985. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14986. * src/HttpProxyResponseCommand.cc
  14987. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14988. * src/FtpTunnelResponseCommand.h
  14989. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14990. * src/HttpConnection.cc
  14991. (HttpConnection): Replaced Socket with SocketHandle.
  14992. * src/PeerAbstractCommand.cc
  14993. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14994. (~PeerAbstractCommand): Removed the deallocation of socket.
  14995. Use disableReadCheckSocket, disableWriteCheckSocket.
  14996. (disableReadCheckSocket): New function.
  14997. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14998. (disableWriteCheckSocket): New function.
  14999. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15000. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15001. * src/FtpTunnelRequestCommand.cc
  15002. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15003. (~FtpTunnelRequestCommand): Corrected indentation.
  15004. * src/DownloadCommand.h
  15005. (DownloadCommand): Replaced Socket with SocketHandle.
  15006. * src/PeerListenCommand.cc
  15007. (PeerListenCommand): Removed the initialization of socket.
  15008. (~PeerListenCommand): Removed the deallocation of socket.
  15009. (bindPort): Use SocketHandle.
  15010. (execute): Use SocketHandle and PeerHandle.
  15011. * src/FtpDowndloadCommand.cc
  15012. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15013. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15014. * src/main.cc
  15015. (main): Corrected indentation.
  15016. * src/HttpInitiateConnectionCommand.cc
  15017. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15018. (executeInternal): Removed the allocation of socket.
  15019. * src/HttpRequestCommand.h
  15020. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15021. * src/FtpNegotiationCommand.h
  15022. (dataSocket): Changed its type to SocketHandle.
  15023. (serverSocket): Changed its type to SocketHandle.
  15024. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15025. * src/TorrentMan.h
  15026. (MAX_PEER_UPDATE): Removed.
  15027. (MAX_PEERS): New definition.
  15028. (Peers): The element is now of type PeerHandle.
  15029. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15030. (getPeer): Replaced Peer with PeerHandle.
  15031. (deleteOldErrorPeers): Removed.
  15032. (deleteErrorPeer): New function.
  15033. (hasMissingPiece): Replaced Peer with PeerHandle.
  15034. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15035. (getMissingPiece): Replaced Peer with PeerHandle.
  15036. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15037. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15038. (addActivePeer): Replaced Peer with PeerHandle.
  15039. (deleteActivePeer): Replaced Peer with PeerHandle.
  15040. Added a check for the return value of find.
  15041. * src/FtpTunnelResponseCommand.cc
  15042. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15043. * src/FtpInitiateConnectionCommand.cc
  15044. (executeInternal): Removed the allocation of socket.
  15045. * src/DownloadEngine.h
  15046. (Sockets): An element is now of type SocketHandle.
  15047. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15048. (CommandUuids): New type definition.
  15049. (rsockets): Changed its type to SockCmdMap.
  15050. (wsockets): Changed its type to SockCmdMap.
  15051. (addSocket): Rewritten.
  15052. (deleteSocket): Rewritten.
  15053. (addSocketForReadCheck): Rewritten.
  15054. (deleteSocketForReadCheck): Rewritten.
  15055. (addSocketForWriteCheck): Rewritten.
  15056. (deleteSocketForWriteCheck): Rewritten.
  15057. (PairFind): New template class.
  15058. * src/HttpDownloadCommand.h
  15059. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15060. * src/FtpConnection.cc
  15061. (FtpConnection): Replaced Socket with SocketHandle.
  15062. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15063. block.
  15064. * src/InitiateConnectionCommandFactory.cc
  15065. (DlAbortEx.h): Included DlAbortEx.h.
  15066. (createInitiateConnectionCommand): Throw exception if the protocol of
  15067. requested URI is not supported.
  15068. * src/Peer.cc
  15069. (nullPeer): Changed its type to PeerHandle.
  15070. (operator==): New function.
  15071. (operator!=): New function.
  15072. * src/Peer.h
  15073. (SharedHandle.h): Included SharedHandle.h.
  15074. (operator==): New function.
  15075. (operator!=): New function.
  15076. (Peer): Added the default constructor.
  15077. Use resetStatus() to initialize member variables.
  15078. (nullPeer): Removed.
  15079. * src/TrackerUpdateCommand.cc
  15080. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15081. with MIN_PEERS.
  15082. * src/PeerListenCommand.h
  15083. (socket): Changed its type to SocketHandle.
  15084. * src/Command.h
  15085. (CommandUuid): New type definition.
  15086. (uuid): New variable.
  15087. (uuidGen): New variable.
  15088. (Command): Added the initialization of uuid.
  15089. (getUuid): New function.
  15090. * src/Socket.h
  15091. (Socket): Removed.
  15092. (SocketHandle): New type definition.
  15093. * src/DownloadEngine.h
  15094. (FindCommand): New function object.
  15095. (run): The portion of socket check was rewritten.
  15096. (SetDescriptor): New function object.
  15097. (AccumulateActiveCommandUuid): New function object.
  15098. (waitData): Rewritten.
  15099. (addSocket): Rewritten.
  15100. (deleteSocket): Rewritten.
  15101. (addSocketForReadCheck): Rewritten.
  15102. (addSocketForWriteCheck): Rewritten.
  15103. (deleteSocketForReadCheck): Rewritten.
  15104. (deleteSocketForWriteCheck): Rewritten.
  15105. * src/HttpProxyResponseCommand.h
  15106. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15107. * src/HttpConnection.h
  15108. (socket): Changed its type to SocketHandle.
  15109. (HttpConnection): Replaced Socket with SocketHandle.
  15110. * src/PeerInitiateConnectionCommand.cc
  15111. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15112. (executeInternal): Removed the allocation of socket.
  15113. (prepareForNextPeer): Use PeerHandle.
  15114. * src/PeerMessage.h
  15115. (peer): Changed its type to PeerHandle.
  15116. (getPeer): Replaced Peer with PeerHandle.
  15117. (setPeer): Replaced Peer with PeerHandle.
  15118. * src/DownloadCommand.cc
  15119. (DownloadCommand): Replaced Socket with SocketHandle.
  15120. * src/FtpConnection.h
  15121. (socket): Changed its type to SocketHandle.
  15122. (FtpConnection): Replaced Socket with SocketHandle.
  15123. (sendPort); Replaced Socket with SocketHandle.
  15124. * src/FtpDowndloadCommand.h
  15125. (ctrlSocket): Changed its type to SocketHandle.
  15126. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15127. * src/HttpProxyRequestCommand.cc
  15128. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15129. * src/FtpTunnelRequestCommand.h
  15130. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15131. etc
  15132. * src/PeerChokeCommand.h
  15133. (setAllPeerChoked): Removed.
  15134. (setAllPeerResetDelta): Removed.
  15135. * src/PeerChokeCommand.cc
  15136. (setAllPeerChoked): Removed.
  15137. (ChokePeer): New function object.
  15138. (setAllPeerResetDelta): Removed.
  15139. (ResetDelta): New function object.
  15140. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15141. (execute): Show download speed when the local node is a seeder.
  15142. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15143. using STL.
  15144. * src/TrackerWatcherCommand.h
  15145. (MIN_PEERS): Removed.
  15146. * src/TorrentMan.cc
  15147. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15148. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15149. To fix the bug that .aria2 file is not saved if downloading is stopped
  15150. by the errors:it results that aria2 can not resume downloading:
  15151. * src/main.cc
  15152. (normalDownload): Added the call to save().
  15153. (main): Added the deletion of the elements in 'reserved'.
  15154. To fix log:
  15155. * src/PeerInteraction.cc
  15156. (receiveHandshake): Fixed log.
  15157. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15158. To improve download performance in BitTorrent:
  15159. * src/TorrentMan.cc
  15160. (getPeer): Check the number of connections. Return nullPeer if
  15161. it is greater than MAX_PEER_UPDATE.
  15162. This code was originally here, but was removed in 0.5.1.
  15163. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15164. To improve the conditional compilation:
  15165. * src/MultiDiskWriter.h:
  15166. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15167. * src/MultiDiskWriter.cc:
  15168. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15169. * src/Util.h:
  15170. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15171. Added ENABLE_BITTORRENT around computeFastSet().
  15172. * src/Util.cc:
  15173. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15174. Added ENABLE_BITTORRENT around computeFastSet().
  15175. * src/messageDigest.h:
  15176. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15177. * src/ShaVisitor.h:
  15178. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15179. * src/ShaVisitor.cc:
  15180. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15181. * src/main.cc:
  15182. Added ENABLE_BITTORRENT around includes and blocks related to
  15183. BitTorrent.
  15184. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15185. digest support is not available.
  15186. * src/AbstractDiskWriter.h:
  15187. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15188. * src/AbstractDiskWriter.cc:
  15189. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15190. * src/MetalinkEntry.cc
  15191. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15192. support is not available.
  15193. To add command-line options for Metalink:
  15194. * src/main.cc:
  15195. Added metalink-version, metalink-language, metalink-os,
  15196. follow-metalink.
  15197. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15198. * src/main.cc: Use these definition.
  15199. * Release 0.6.0
  15200. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15201. To add Metalink support(http/ftp only):
  15202. * src/AbstractCommand.h
  15203. (tryReserved): New function.
  15204. * src/AbstractCommand.cc
  15205. (execute): Call tryReserved().
  15206. (tryReserved): New function.
  15207. * src/Request.h
  15208. (Requests): New type definition.
  15209. * src/SegmentMan.h
  15210. (reserved): New variable.
  15211. * src/Util.h
  15212. (fileChecksum): New function.
  15213. (toUpper): New function.
  15214. (toLower): New function.
  15215. * src/Util.cc
  15216. (messageDigest.h): Included.
  15217. (trim): Trim \r\n\t.
  15218. (fileChecksum): New function.
  15219. (toUpper): New function.
  15220. (toLower): New function.
  15221. * src/main.cc
  15222. (normalDownload): New function.
  15223. (main): Added 2 command-line options: metalink-file,
  15224. metalink-connection. Their usage has not been written yet.
  15225. * src/MetalinkProcessor.h: New class.
  15226. * src/Xml2MetalinkProcessor.h: New class.
  15227. * src/Xml2MetalinkProcessor.cc: New class.
  15228. * src/MetalinkEntry.h: New class.
  15229. * src/MetalinkEntry.cc: New class.
  15230. * src/MetalinkResource.h: New class.
  15231. * src/MetalinkResource.cc: New class.
  15232. To add md5 message digest checking:
  15233. * src/messageDigest.h: Rewritten.
  15234. * src/MultiDiskWriter.cc: Updated according to the changes in
  15235. messageDigest.h.
  15236. * src/ShaVisitor.cc: Updated according to the changes in
  15237. messageDigest.h.
  15238. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15239. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15240. messageDigest.h.
  15241. To fix a bug that causes segfault when the payload length in peer
  15242. message is less than 0:
  15243. * src/PeerConnection.cc:
  15244. (receiveMessage): Fixed the bug.
  15245. * src/PeerMessageUtil.cc
  15246. (checkLength): Throw an exception if length is less than or equals to
  15247. 0.
  15248. To add new interfaces to Base64 encoding/decoding:
  15249. * src/Base64.h
  15250. (part_encode): Changed the method signature.
  15251. (encode): New function(overload).
  15252. (decode): New function(overload).
  15253. * src/Base64.cc
  15254. (part_encode): Rewritten.
  15255. (encode): Rewritten.
  15256. (encode): New function(overload).
  15257. To prevent a peer to download same piece if there is an error in
  15258. checksum:
  15259. * src/PieceMessage.cc
  15260. (receivedAction): Call peerInteraction->abortPiece().
  15261. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15262. To fix the bug that causes same have message is sent many times to
  15263. a single peer.
  15264. * src/Time.cc
  15265. (isNewer): Use Util::difftv().
  15266. * src/Util.cc
  15267. (difftv): Added a cast to (long long int).
  15268. * src/TorrentMan.cc
  15269. (advertisePiece): Use push_front.
  15270. (getAdvertisedPieceIndexes): A performance improvement was made.
  15271. To fix the bug that sends tracker requests without a sleep interval
  15272. when the number of connections is less than 15.
  15273. * src/TrackerWatcherCommand.cc
  15274. (execute): Now the number of connections is not a factor to decide
  15275. whether or not a tracker request should be sent or not.
  15276. * src/Time.h
  15277. (setTimeInSec): New function.
  15278. * src/Time.cc
  15279. (setTimeInSec): New function.
  15280. etc.
  15281. * src/ChokeMessage.cc
  15282. (receivedAction): Removed peer->snubbing = false
  15283. * src/PeerConnection.h
  15284. (receiveHandshake): Updated doc.
  15285. * src/TorrentMan.h
  15286. (getAdvertisedPieceIndexes): Updated the method signature.
  15287. * src/TorrentMan.cc
  15288. (getAdvertisedPieceIndexes): Updated the method signature.
  15289. * src/Time.h
  15290. (getTimeInMicros): Added a cast to (long long int).
  15291. (getTimeInMillis): Added a cast to (long long int).
  15292. * Release 0.5.2
  15293. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15294. To make a listening socket non-block:
  15295. * src/SocketCore.h
  15296. (setNonBlockingMode): New function.
  15297. * src/SocketCore.cc
  15298. (setNonBlockingMode): New function.
  15299. (beginListen): Added a call to setNonBlockingMode().
  15300. (acceptConnection): Call setNonBlockingMode().
  15301. (setBlockingMode): Updated.
  15302. To handle tracker's NAT-checking:
  15303. * src/PeerConnection.cc
  15304. (receiveHandshake): 'msg' param is filled with received data and
  15305. its length is assigned to 'length' param, even if all handshake
  15306. message is not yet received.
  15307. * src/PeerInteractionCommand.cc
  15308. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15309. a new peer connects to localhost.
  15310. A call to peerInteraction->sendHandshake() was removed because
  15311. it is called from peerInteraction->receiveHandshake(true).
  15312. * src/PeerInteraction.h
  15313. (quickReplied): New variable.
  15314. (receiveHandshake): Added an argument.
  15315. * src/PeerInteraction.cc
  15316. (PeerInteraction): Added the initialization of quickReplied.
  15317. (receiveHandshake): Send handshake message as soon as the info hash
  15318. in a handshake message from a peer is correct.
  15319. To change the random part of peer id and key parameter:
  15320. * src/TorrentMan.h
  15321. (key): New variable.
  15322. * src/TorrentMan.cc
  15323. (setupInternal1): Use Util::randomAlpha() to generate random part
  15324. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15325. key is also generated by Util::randomAlpha() and it is now 8 character
  15326. long.
  15327. * src/Util.h
  15328. (randomAlpha): New function.
  15329. * src/Util.cc
  15330. (randomAlpha): New function.
  15331. * src/TrackerWatcherCommand.cc
  15332. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15333. Added no_peer_id=1.
  15334. Set snubbing flag to false when a choke message is received from a
  15335. snubbed peer.
  15336. * src/ChokeMessage.cc
  15337. (receivedAction): Set snubbing flag to false.
  15338. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15339. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15340. * src/SimpleLogger.h (writeHeader): New function.
  15341. * src/SimpleLogger.cc (writeHeader): New function.
  15342. (writeLog): Fixed the bug that causes segfaults if exception message
  15343. contains an unescaped "%" character.
  15344. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15345. when a tracker request fails.
  15346. * src/Request.cc (parseUrl): Query string is now handled properly.
  15347. * Release 0.5.1
  15348. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15349. To add Time class which represents a specific instant in time and
  15350. its precision is microseconds. Time checking procedures were rewritten
  15351. using this object.
  15352. * src/Time.h: New class.
  15353. * src/Time.cc: New class.
  15354. * src/AbstractCommand.h
  15355. (updateCheckPoint): Removed.
  15356. (isTimeoutDetected): Removed.
  15357. (checkPoint): Changed the type to Time.
  15358. (timeout): New variable.
  15359. (setTimeout): New function.
  15360. * src/AbstractCommand.cc
  15361. (AbstractCommand): Removed the initialization of checkPoint.
  15362. Added the initialization of timeout.
  15363. (updateCheckPoint): Removed.
  15364. (isTimeoutDetected): Removed.
  15365. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15366. * src/PeerChokeCommand.h
  15367. (checkPoint): Changed the type to Time.
  15368. * src/PeerChokeCommand.cc
  15369. (PeerChokeCommand): Removed the initialization of checkPoint.
  15370. (execute): Rewritten using Time object.
  15371. * src/TrackerWatcherCommand.h
  15372. (checkPoint): Changed the type to Time.
  15373. * src/TrackerWatcherCommand.cc
  15374. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15375. (execute): Rewritten.
  15376. * src/ConsoleDownloadEngine.h
  15377. (cp): Changed the type to Time.
  15378. (startup): Changed the type to Time.
  15379. * src/ConsoleDownloadEngine.cc
  15380. (initStatistics): Use cp.reset(), startup.reset().
  15381. (calculateStatistics): Rewritten using Time object.
  15382. * src/PeerAbstractCommand.h
  15383. (updateCheckPoint): Removed.
  15384. (isTimeoutDetected): Removed.
  15385. (checkPoint): Changed the type to Time.
  15386. * src/PeerAbstractCommand.cc
  15387. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15388. (updateCheckPoint): Removed.
  15389. (isTimeoutDetected): Removed.
  15390. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15391. * src/PeerInteractionCommand.cc
  15392. (PeerInteractionCommand): Removed the initializations of struct
  15393. timeval variables.
  15394. * src/PeerInteractionCommand.h
  15395. (keepAliveCheckPoint): Changed the type to Time.
  15396. (chokeCheckPoint): Changed the type to Time.
  15397. (freqCheckPoint): Changed the type to Time.
  15398. (haveCheckTime): Changed the type to Time.
  15399. * src/PeerInteractionCommand.cc
  15400. (executeInternal): Rewritten using Time object.
  15401. (detectMessageFlooding): Rewritten using Time object.
  15402. (checkLongTimePeerChoking): Rewritten using Time object.
  15403. (sendKeepAlive): Rewritten using Time object.
  15404. (checkHave): Rewritten using Time object.
  15405. * src/SleepCommand.h
  15406. (checkPoint): Changed the type to Time.
  15407. * src/SleepCommand.cc
  15408. (SleepCommand): Removed the initialization of checkPoint.
  15409. (execute): Rewritten using Time object.
  15410. * src/TorrentAutoSaveCommand.h
  15411. (checkPoint): Changed the type to Time.
  15412. * src/TorrentAutoSaveCommand.cc
  15413. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15414. (execute): Rewritten.
  15415. * src/DownloadCommand.h
  15416. (sw): Changed the type to Time.
  15417. * src/DownloadCommand.cc
  15418. (DownloadCommand): Removed the initialization of sw.
  15419. (executeInternal): Rewritten.
  15420. * src/RequestSlot.h
  15421. (dispatchedTime): Changed the type to Time.
  15422. * src/RequestSlot.cc
  15423. (RequestSlot): Removed the call to setDispatchedTime().
  15424. (setDispatchedTime): Rewirtten.
  15425. (isTimeout): Rewritten.
  15426. (getLatencyInMillis): Rewritten.
  15427. * src/TorrentDownloadEngine.h
  15428. (cp): Changed the type to Time[2].
  15429. (startup): Changed the type to Time.
  15430. * src/TorrentDownloadEngine.cc
  15431. (initStatistics): Rewritten.
  15432. (calculateStatistics): Rewritten.
  15433. * src/DownloadEngine.cc
  15434. (run): Rewritten.
  15435. To detect all attempts to connect to the tracker are failed:
  15436. * src/AbstractCommand.cc
  15437. (execute): Increment e->segmentMan->errors if a command aborted.
  15438. * src/SegmentMan.h
  15439. (errors): New variable.
  15440. * src/SegmentMan.cc
  15441. (SegmentMan): Added the initialization of errors.
  15442. (init): Added the initialization of errors.
  15443. * src/TrackerWatcherCommand.cc
  15444. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15445. request was failed.
  15446. To handle snubbed peers:
  15447. * src/PeerChokeCommand.cc
  15448. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15449. (execute): Snubbed peers don't get unchoked.
  15450. * src/PeerInteraction.h
  15451. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15452. * src/PeerInteraction.cc
  15453. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15454. back the requested 16k block in 60 seconds.
  15455. * src/PieceMessage.cc
  15456. (receivedAction): A peer's snubbed state is cleard if it sends
  15457. the requested 16k block in 60 seconds.
  15458. * src/Peer.h
  15459. (snubbing): New variable.
  15460. * src/Peer.cc
  15461. (resetStatus): Added snubbed = false.
  15462. To fix the bug that causes have message is not sent:
  15463. * src/PeerInteractionCommand.cc
  15464. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15465. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15466. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15467. * src/TorrentMan.h
  15468. (HaveEntry): New class.
  15469. (advertisePiece): Rewritten.
  15470. (getAdvertisedPieceIndexes): Rewritten.
  15471. (Haves): Changed the type.
  15472. (getAdvertisedPieceIndexes): Added an argument.
  15473. Others:
  15474. * src/TorrentMan.h
  15475. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15476. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15477. * src/TorrentMan.cc
  15478. (getPeer): Don't check the number of connections here.
  15479. (setupInternal1): Changed peerId.
  15480. * src/PeerInteractionCommand.h
  15481. (KEEP_ALIVE_INTERVAL): New definition.
  15482. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15483. * src/main.cc
  15484. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15485. * src/DownloadEngine.h: Removed unnecessary header includes.
  15486. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15487. To fix the bug that causes segfaults if a tracker returns a zero-length
  15488. list as "peers":
  15489. * src/TrackerUpdateCommand.cc
  15490. (execute): Added a check to see wether the type of peers is Data*.
  15491. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15492. * Release 0.5.0
  15493. To fix compile issue with gcc3:
  15494. * src/CancelMessage.h
  15495. (ID): Renamed as ID_t
  15496. (ID_t): New enum.
  15497. * src/RejectMessage.h
  15498. (ID): Renamed as ID_t
  15499. (ID_t): New enum.
  15500. * src/SuggestPieceMessage.h
  15501. (ID): Renamed as ID_t
  15502. (ID_t): New enum.
  15503. * src/AllowedFastMessage.h
  15504. (ID): Renamed as ID_t
  15505. (ID_t): New enum.
  15506. * src/PortMessage.h
  15507. (ID): Renamed as ID_t
  15508. (ID_t): New enum.
  15509. * src/HaveNoneMessage.h
  15510. (ID): Renamed as ID_t
  15511. (ID_t): New enum.
  15512. * src/KeepAliveMessage.h
  15513. (ID): Renamed as ID_t
  15514. (ID_t): New enum.
  15515. * src/HaveAllMessage.h
  15516. (ID): Renamed as ID_t
  15517. (ID_t): New enum.
  15518. * src/UnchokeMessage.h
  15519. (ID): Renamed as ID_t
  15520. (ID_t): New enum.
  15521. * src/BitfieldMessage.h
  15522. (ID): Renamed as ID_t
  15523. (ID_t): New enum.
  15524. * src/PieceMessage.h
  15525. (ID): Renamed as ID_t
  15526. (ID_t): New enum.
  15527. * src/RequestMessage.h
  15528. (ID): Renamed as ID_t
  15529. (ID_t): New enum.
  15530. * src/NotInterestedMessage.h
  15531. (ID): Renamed as ID_t
  15532. (ID_t): New enum.
  15533. * src/ChokeMessage.h
  15534. (ID): Renamed as ID_t
  15535. (ID_t): New enum.
  15536. * src/InterestedMessage.h
  15537. (ID): Renamed as ID_t
  15538. (ID_t): New enum.
  15539. * src/HaveMessage.h
  15540. (ID): Renamed as ID_t
  15541. (ID_t): New enum.
  15542. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15543. * src/PeerAbstractCommand.h
  15544. (beforeSocketCheck): Removed.
  15545. * src/PeerAbstractCommand.cc
  15546. Modified in order to call executeInternal() even if socket check
  15547. and upload limit check fail.
  15548. * src/PeerInteractionCommand.h
  15549. (keepAlive): Removed.
  15550. (sendKeepAlive): New function.
  15551. (checkHave): New function.
  15552. (beforeSocketCheck): Removed.
  15553. * src/PeerInteractionCommand.cc
  15554. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15555. calls to checkHave() and sendKeepAlive().
  15556. (keepAlive): Renamed to sendKeepAlive().
  15557. (sendKeepAlive): New function.
  15558. (beforeSocketCheck): Removed.
  15559. (checkHave): New function.
  15560. * src/BitfieldMan.cc
  15561. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15562. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15563. 0.
  15564. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15565. * src/TorrentMan.h
  15566. (UsedPieces): Removed.
  15567. (Pieces): New type definition.
  15568. * src/Piece.h: Updated doc.
  15569. * src/Peer.h
  15570. (totalLength): Removed.
  15571. * src/Peer.cc
  15572. (updateLatency): Fixed the latency calculation.
  15573. * src/TorrentMan.cc
  15574. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15575. than or equal to MAX_PEER_LIST_SIZE.
  15576. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15577. then return false.
  15578. (deleteOldErrorPeers): Rewritten.
  15579. (deleteUsedPiece): Fixed the miss use of STL remove.
  15580. * src/PeerInteraction.h
  15581. (Pieces): Removed.
  15582. (deleteTimeoutRequestSlot): Removed.
  15583. (deleteCompletedRequestSlot): Removed.
  15584. (checkRequestSlot): New function.
  15585. * src/PeerInteraction.cc
  15586. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15587. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15588. (checkRequestSlot): New function.
  15589. * src/DownloadEngine.cc
  15590. (run): Clear activeSockets before calling waitData().
  15591. (waitData): Removed a call to activeSockets.clear().
  15592. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15593. To attempt to handle EINTR:
  15594. * src/SocketCore.cc
  15595. (isReadable): Added EINTR handling.
  15596. (isWritable): Added EINTR handling.
  15597. To improve the performance:
  15598. * src/AbstractCommand.cc
  15599. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15600. * src/PeerInteractionCommand.h
  15601. (receiveMessage): Renamed as receiveMessages().
  15602. (receiveMessages): New function.
  15603. * src/PeerInteractionCommand.cc
  15604. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15605. () function. detectMessageFlooding() is moved here.
  15606. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15607. (). The flooding detection for have message is comment out.
  15608. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15609. Util::difftv().
  15610. (receiveMessage): Renamed as receiveMessages().
  15611. (receiveMessages): New function.
  15612. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15613. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15614. * src/SleepCommand.cc
  15615. (execute): Use Util::difftvsec() instead of Util::difftv().
  15616. * src/BitfieldMan.h
  15617. (getNthBitIndex): New function.
  15618. (hasMissingPiece): New function.
  15619. (getAllMissingIndexes): New function.
  15620. * src/BitfieldMan.cc
  15621. (countSetBit): Rewritten.
  15622. (getNthBitIndex): New function.
  15623. (getMissingIndexRandomly): Rewritten.
  15624. (hasMissingPiece): New function.
  15625. (getAllMissingIndexes): New function.
  15626. * src/TorrentMan.cc
  15627. (hasMissingPiece): New function.
  15628. (deleteUsedPiece): Rewritten using STL.
  15629. * src/PeerInteraction.cc
  15630. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15631. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15632. (addRequests): Updated the number of pending requests.
  15633. * src/PeerAbstractCommand.cc
  15634. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15635. (execute): Returns true if TorrentMan::isHalt() is true.
  15636. Corrected the condition of upload limit checking.
  15637. * src/Util.h
  15638. (countBit): New function.
  15639. * src/Util.cc
  15640. (nbits): New variable.
  15641. (countBit): New function.
  15642. * src/DownloadEngine.h
  15643. (SockCmdMap): New type definition.
  15644. (waitData): Added an argument.
  15645. (addSocket): Added an argument.
  15646. (addSocketForReadCheck): Added an argument.
  15647. (addSocketForWriteCheck): Added an argument.
  15648. * src/DownloadEngine.cc
  15649. (run): Executes only commands whose sockets are ready to read or write.
  15650. All commands are executed in every 1 second.
  15651. (waitData): Calls select() again if it returned
  15652. EINTR.
  15653. (addSocket): Saves socket and command object pair to the map.
  15654. (deleteSocket): Deletes socket and command object pair from the map.
  15655. (addSocketForReadCheck): Added an argument.
  15656. (addSocketForWriteCheck): Added an argument.
  15657. * src/DownloadCommand.cc
  15658. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15659. To send "event=stopped" to the tracker when the application finishes:
  15660. * src/PeerChokeCommand.h
  15661. (checkPoint): New variable.
  15662. * src/PeerChokeCommand.cc
  15663. (PeerChokeCommand): Added the initialization of checkPoint.
  15664. (execute): The interval check is now done by checkPoint, not
  15665. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15666. * src/TorrentMan.h
  15667. (halt): New function.
  15668. (hasMissingPiece): New function.
  15669. (isHalt): New function.
  15670. (setHalt): New function.
  15671. * src/TorrentMan.cc
  15672. (TorrentMan): Added the initialization of halt.
  15673. * src/TorrentAutoSaveCommand.h
  15674. (checkPoint): New variable.
  15675. * src/PeerListenCommand.cc
  15676. (execute): Returns true if TorrentMan::isHalt() is true.
  15677. * src/main.cc
  15678. (setSignalHander): Added flags argument.
  15679. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15680. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15681. Removed printDownloadAbortMessage() after torrent downloading loop.
  15682. * src/TorrentAutoSaveCommand.cc
  15683. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15684. (execute): Returns true if TorrentMan::isHalt() is true.
  15685. The interval check is now done by checkPoint, not SleepCommand.
  15686. * src/TrackerWatcherCommand.cc
  15687. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15688. event=stopped.
  15689. * src/TrackerUpdateCommand.cc
  15690. (prepareForRetry): Do not use SleepCommand here.
  15691. (execute): Returns true if TorrentMan::isHalt() is true.
  15692. Others:
  15693. * src/TorrentMan.cc
  15694. (getMissingPieceIndex): Updated log message.
  15695. * src/PeerInteraction.cc
  15696. (createPeerMessag): Updated log message.
  15697. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15698. To add the ability to download several pieces in mix in a command and
  15699. increase the number of request slots according to request-cancel
  15700. latency:
  15701. * src/PeerInteractionCommand.cc
  15702. (executeInternal): The number of messages to be received at a time
  15703. is increased from 10 to 50.
  15704. * src/LogFactory
  15705. (getInstance): Added NullLogger.
  15706. * src/NullLogger.h: New class.
  15707. * src/BitfieldMan.h
  15708. (getMissingIndex): New function.
  15709. * src/BitfieldMan.cc
  15710. (getMissingIndex): New function.
  15711. * src/TorrentMan.h
  15712. (checkOutPiece): New function.
  15713. (getMissingPieceIndex): New function.
  15714. (getMissingFastPieceIndex): New function.
  15715. (getMissingFastPiece): New function.
  15716. * src/TorrentMan.cc
  15717. (updatePiece): Rewritten using STL.
  15718. (syncPiece): Rewritten using STL.
  15719. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15720. checkOutPiece().
  15721. (getMissingPieceIndex): New function.
  15722. (getMissingFastPieceIndex): New function.
  15723. (getMissingFastPiece): New function.
  15724. (checkOutPiece): New function.
  15725. * src/PeerInteraction.h
  15726. (Pieces): New type definition.
  15727. (piece): Removed.
  15728. (pieces): New variable.
  15729. (getNewPieceAndSendInterest): Added the "piece" argument.
  15730. (abortPiece): Added the "piece" argument.
  15731. (abortAllPieces): New function.
  15732. (isInRequestSlot): New function.
  15733. (hasDownloadPiece): Added the "index" argument.
  15734. (setDownloadPiece): Removed.
  15735. (getDownloadPiece): Added the "index" argument.
  15736. (updatePiece): New function.
  15737. (createRequestMessage): Added the "index" argument.
  15738. * src/PeerInteraction.cc
  15739. (onChoked): Rewritten.
  15740. (abortPiece): Rewirtten.
  15741. (abortAllPieces): New function.
  15742. (deleteTimeoutRequestSlot): Rewritten.
  15743. Clarified code a little bit.
  15744. (deleteCompletedRequestSlot): Rewritten.
  15745. (isInRequestSlot): New function.
  15746. (syncPiece): Rewritten.
  15747. (updatePiece): New function.
  15748. (getNewPieceAndSendInterest): Rewritten.
  15749. (addRequests): Rewritten.
  15750. (getDownloadPiece): Rewritten.
  15751. (hasDownloadPiece): Rewritten.
  15752. (createRequestMessage): Added the "index" argument.
  15753. * src/common.h
  15754. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15755. (DIV_FLOOR): New definition.
  15756. * src/PieceMessage.cc
  15757. (receivedAction): Update request-piece latency here.
  15758. * src/RequestSlot.h
  15759. (getLatencyInMillis): New function.
  15760. * src/RequestSlot.cc
  15761. (isTimeout): Rewritten using getLatencyInMillis.
  15762. (getLatencyInMillis): New function.
  15763. * src/Piece.h
  15764. (operator==): New function.
  15765. (getMissingBlockIndex): New function.
  15766. * src/Piece.cc
  15767. (operator==): New function.
  15768. (getMissingBlockIndex): New function.
  15769. * src/Peer.h
  15770. (DEFAULT_LATENCY): New definition.
  15771. (latency): New variable.
  15772. (updateLatency): New function.
  15773. (getLatency): New function.
  15774. * src/Peer.cc
  15775. (resetStatus): Reset latecy.
  15776. (updateLatency): New function.
  15777. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15778. * src/SocketCore.cc
  15779. (isReadable): Added secure to the condition.
  15780. * src/HttpConnection.cc
  15781. (receiveResponse): Fixed a bug that causes no response header
  15782. exception.
  15783. * src/Peer.h
  15784. (getFastSet): Fixed the return value type.
  15785. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15786. To remove a wait from download loop:
  15787. * src/DownloadEngine.cc
  15788. (run): Comment out shortSleep.
  15789. To rewrite the message handling:
  15790. * src/SimplePeerMessage.h: New class.
  15791. * src/SimplePeerMessage.cc: New class.
  15792. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15793. (msg): New variable.
  15794. (create): New function.
  15795. (send): Removed.
  15796. (getMessage): New function.
  15797. (getMessageLength): New function.
  15798. * src/CancelMessage.cc
  15799. (create): New function.
  15800. (receivedAction): Replaced deleteRequestMessageInQueue with
  15801. rejectPieceMessageInQueue.
  15802. (send): Removed.
  15803. (getMessage): New function.
  15804. (getMessageLength): New function.
  15805. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15806. (msg): New variable.
  15807. (msgLength): New variable.
  15808. (~BitfieldMessage): Deleted msg.
  15809. (send): Removed.
  15810. (getMessage): New function.
  15811. (getMessageLength): New function.
  15812. * src/BitfieldMessage.cc
  15813. (create): New function.
  15814. (send): Removed.
  15815. (getMessage): New function.
  15816. (getMessageLength): New function.
  15817. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15818. (msg): New variable.
  15819. (sendPredicate): New function.
  15820. (onSendComplete): New function.
  15821. (send): Removed.
  15822. (getMessage): New function.
  15823. (getMessageLength): New function.
  15824. (create): New function.
  15825. * src/ChokeMessage.cc
  15826. (create): New function.
  15827. (send): Removed.
  15828. (sendPredicate): New function.
  15829. (getMessage): New function.
  15830. (getMessageLength): New function.
  15831. (onSendComplete): New function.
  15832. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15833. (msg): New variable.
  15834. (send): Removed.
  15835. (getMessage): New function.
  15836. (getMessageLength): New function.
  15837. * src/KeepAliveMessage.cc
  15838. (send): Removed.
  15839. (getMessage): New function.
  15840. (getMessageLength): New function.
  15841. * src/PortMessage.h
  15842. (create): New function.
  15843. (receivedAction): Updated log message.
  15844. * src/PortMessage.cc: New file.
  15845. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15846. (msg): New variable.
  15847. (sendPredicate): New function.
  15848. (onSendComplete): New function.
  15849. (create): New function.
  15850. (send): Removed.
  15851. (getMessage): New function.
  15852. (getMessageLength): New function.
  15853. * src/UnchokeMessage.cc
  15854. (create): New function.
  15855. (send): Removed.
  15856. (sendPredicate): New function.
  15857. (getMessage): New function.
  15858. (getMessageLength): New function.
  15859. (onSendComplete): New function.
  15860. * src/PieceMessage.h
  15861. (leftPieceDataLength): Removed.
  15862. (leftDataLength): New variable.
  15863. (headerSend): New variable.
  15864. (pendingCount): New variable.
  15865. (msgHeader): New variable.
  15866. (sendPieceData): New function.
  15867. (incrementPendingCount): New function.
  15868. (isPendingCountMax): New function.
  15869. (create): New function.
  15870. (getMessageHeader): New function.
  15871. (getMessageHeaderLength): New function.
  15872. * src/PieceMessage.cc
  15873. (create): New function.
  15874. (getMessageHeader): New function.
  15875. (getMessageHeaderLength): New function.
  15876. (send): Rewritten.
  15877. (sendPieceData): New function.
  15878. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15879. (msg): New variable.
  15880. (create): New function.
  15881. (getMessage): New function.
  15882. (getMessageLength): New function.
  15883. * src/HaveMessage.cc
  15884. (create): New function.
  15885. (send): Removed.
  15886. (sendPieceData): New function.
  15887. (getMessage): New function.
  15888. (getMessageLength): New function.
  15889. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15890. (msg): New variable.
  15891. (create): New function.
  15892. (send): Removed.
  15893. (getMessage): New function.
  15894. (getMessageLength): New function.
  15895. * src/RequestMessage.cc
  15896. (create): New function.
  15897. (receivedAction): Added the handling of fast extension.
  15898. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15899. (send): Removed.
  15900. (getMessage): New function.
  15901. (getMessageLength): New function.
  15902. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15903. (msg): New variable.
  15904. (sendPredicate): New function.
  15905. (onSendComplete): New function.
  15906. (create): New function.
  15907. (getMessage): New function.
  15908. (getMessageLength): New function.
  15909. * src/InterestedMessage.cc
  15910. (create): New function.
  15911. (send): Removed.
  15912. (sendPieceData): New function.
  15913. (getMessage): New function.
  15914. (getMessageLength): New function.
  15915. (onSendComplete): New function.
  15916. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15917. (msg): New variable.
  15918. (sendPieceData): New function.
  15919. (onSendComplete): New function.
  15920. (create): New function.
  15921. (send): Removed.
  15922. (getMessage): New function.
  15923. (getMessageLength): New function.
  15924. * src/NotInterestedMessage.cc
  15925. (create): New function.
  15926. (send): Removed.
  15927. (sendPredicate): New function.
  15928. (getMessage): New function.
  15929. (getMessageLength): New function.
  15930. (onSendComplete): New function.
  15931. * src/AllowedFastMessage.h: New class.
  15932. * src/AllowedFastMessage.cc: New class.
  15933. * src/RejectMessage.h: New class.
  15934. * src/RejectMessage.cc: New class.
  15935. * src/SuggestPieceMessage.h: New class.
  15936. * src/SuggestPieceMessage.cc: New class.
  15937. * src/HaveAllMessage.h: New class.
  15938. * src/HaveAllMessage.cc: New class.
  15939. * src/HaveNoneMessage.h: New class.
  15940. * src/HaveNoneMessage.cc: New class.
  15941. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15942. (msg): New variable.
  15943. (reserved): New variable.
  15944. (create): New function.
  15945. (getId): New function.
  15946. (receivedAction): New function.
  15947. (getMessage): New function.
  15948. (getMessageLength): New function.
  15949. (isFastExtensionSupported): New function.
  15950. * src/HandshakeMessage.cc
  15951. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15952. (create): New function.
  15953. (getMessage): New function.
  15954. (getMessageLength): New function.
  15955. (toString): Added the output of reserved field.
  15956. (check): Added const qualifier.
  15957. (isFastExtensionSupported): New function.
  15958. * src/PeerMessageUtil.h
  15959. (createChokeMessage): Removed.
  15960. (createUnchokeMessage): Removed.
  15961. (createInterestedMessage): Removed.
  15962. (createNotInterestedMessage): Removed.
  15963. (createHaveMessage): Removed.
  15964. (createBitfieldMessage): Removed.
  15965. (createRequestMessage): Removed.
  15966. (createCancelMessage): Removed.
  15967. (createPieceMessage): Removed.
  15968. (createPortMessage): Removed.
  15969. (createChokeMessage): Removed.
  15970. (createUnchokeMessage): Removed.
  15971. (createInterestedMessage): Removed.
  15972. (createNotInterestedMessage): Removed.
  15973. (createHaveMessage): Removed.
  15974. (createBitfieldMessage): Removed.
  15975. (createRequestMessage): Removed.
  15976. (createCancelMessage): Removed.
  15977. (createPieceMessage): Removed.
  15978. (createKeepAliveMessage): Removed.
  15979. (createHandshakeMessage): Removed.
  15980. (setIntParam): New function.
  15981. (createPeerMessageString): New function.
  15982. * src/PeerMessageUtil.cc
  15983. (createChokeMessage): Removed.
  15984. (createUnchokeMessage): Removed.
  15985. (createInterestedMessage): Removed.
  15986. (createNotInterestedMessage): Removed.
  15987. (createHaveMessage): Removed.
  15988. (createBitfieldMessage): Removed.
  15989. (createRequestMessage): Removed.
  15990. (createCancelMessage): Removed.
  15991. (createPieceMessage): Removed.
  15992. (createPortMessage): Removed.
  15993. (createRequestMessage): Removed.
  15994. (createCancelMessage): Removed.
  15995. (createPieceMessage): Removed.
  15996. (createHaveMessage): Removed.
  15997. (createChokeMessage): Removed.
  15998. (createUnchokeMessage): Removed.
  15999. (createInterestedMessage): Removed.
  16000. (createNotInterestedMessage): Removed.
  16001. (createBitfieldMessage): Removed.
  16002. (createKeepAliveMessage): Removed.
  16003. (createHandshakeMessage): Removed.
  16004. (setIntParam): New function.
  16005. (createPeerMessageString): New function.
  16006. * src/PeerConnection.h
  16007. (peer): Removed.
  16008. (torrentMan): Removed.
  16009. (createNLengthMessage): Removed.
  16010. (setIntParam): Removed.
  16011. (writeOutgoingMessageLog): Removed all overloaded functions.
  16012. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16013. (sendMessage): New function.
  16014. (sendHandshake): Removed.
  16015. (sendKeepAlive): Removed.
  16016. (sendChoke): Removed.
  16017. (sendUnchoke): Removed.
  16018. (sendInterested): Removed.
  16019. (sendNotInterested): Removed.
  16020. (sendHave): Removed.
  16021. (sendBitfield): Removed.
  16022. (sendRequest): Removed.
  16023. (sendPiece): Removed.
  16024. (sendPieceHeader): Removed.
  16025. (sendPieceData): Removed.
  16026. (sendCancel): Removed.
  16027. (getPeer): Removed.
  16028. * src/PeerConnection.cc
  16029. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16030. (sendHandshake): Removed.
  16031. (sendKeepAlive): Removed.
  16032. (createNLengthMessage): Removed.
  16033. (setIntParam): Removed.
  16034. (writeOutgoingMessageLog): Removed all overloaded functions.
  16035. (sendChoke): Removed.
  16036. (sendUnchoke): Removed.
  16037. (sendInterested): Removed.
  16038. (sendNotInterested): Removed.
  16039. (sendHave): Removed.
  16040. (sendBitfield): Removed.
  16041. (sendRequest): Removed.
  16042. (sendPiece): Removed.
  16043. (sendPieceHeader): Removed.
  16044. (sendPieceData): Removed.
  16045. (sendMessage): New function.
  16046. (sendCancel): Removed.
  16047. * src/PeerInteractionCommand.cc
  16048. (PeerInteractionCommand): Call setUploadLimit.
  16049. (executeInternal): Call setUploadLimit.
  16050. Added the handling of "inProgress" state of handshake message.
  16051. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16052. sendNow().
  16053. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16054. sendNow().
  16055. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16056. * src/TorrentMan.h
  16057. (PEER_ID_LENGTH): New definition.
  16058. (hasAllPieces): New function.
  16059. * src/TorrentMan.cc
  16060. (getMissingPiece): Added the handling of fast extension.
  16061. (cancelPiece): Call updatePiece().
  16062. (hasAllPieces): New function.
  16063. * src/PeerInteraction.h
  16064. (fastSet): New variable.
  16065. (getNewPieceAndSendInterest): Changed the return type to void.
  16066. (send): Renamed as sendMessages.
  16067. (deleteAllRequestSlot): Removed.
  16068. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16069. (cancelAllRequest): Removed all overloaded functions.
  16070. (deleteAllRequestSlot): Removed.
  16071. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16072. (rejectPieceMessageInQueue): New function.
  16073. (rejectAllPieceMessageInQueue): New function.
  16074. (onChoked): New function.
  16075. (isSendingMessageInProgress): New function.
  16076. (getCorrespondingRequestSlot): Changed its arguments.
  16077. (isInFastSet): New function.
  16078. (addFastSetIndex): New function.
  16079. (addRequests): New function.
  16080. (sendNow): Removed.
  16081. (trySendNow): Removed.
  16082. (sendBitfield): New function.
  16083. (sendAllowdFast): New function.
  16084. (createHaveAllMessage): New function.
  16085. (createHaveNoneMessage): New function.
  16086. (createRejectMessage): New function.
  16087. (createAllowedFastMessage): New function.
  16088. * src/PeerInteraction.cc
  16089. (send): Renamed as sendMessages.
  16090. (sendMessages): New function.
  16091. (MsgPushBack): New class.
  16092. (isSendingMessageInProgress): New function.
  16093. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16094. (rejectAllPieceMessageInQueue): New function.
  16095. Added the handling of fast extension.
  16096. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16097. (rejectPieceMessageInQueue): New function.
  16098. Added the handling of fast extension.
  16099. (deleteRequestSlot): Replaced for loop with std::find.
  16100. (onChoked): New function.
  16101. (deleteAllRequestSlot): Removed.
  16102. (abortPiece): Rewirtten.
  16103. (deleteTimeoutRequestSlot): Updated log messages.
  16104. (getCorrespondingRequestSlot): Changed its arguments.
  16105. (cancelAllRequest): Removed all overloaded functions.
  16106. (receiveHandshake): Added the check to see whether an incoming peer
  16107. supports fast extension.
  16108. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16109. PeerMessageUtil.
  16110. (createPeerMessage): Use create() of each message class instead of
  16111. PeerMessageUtil.
  16112. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16113. AllowedFastMessage were added.
  16114. (getNewPieceAndSendInterest): Changed its return value type to void.
  16115. Added the handling of fast extension.
  16116. (addRequests): New function.
  16117. (sendNow): Removed.
  16118. (sendHandshake): Rewritten.
  16119. (trySendNow): Removed.
  16120. (sendBitfield): New function.
  16121. (sendAllowdFast): New function.
  16122. (isInFastSet): New function.
  16123. (addFastSetIndex): New function.
  16124. (createRequestMessage): Use RequestMessage::create instead of
  16125. PeerMessageUtil.
  16126. (createCancelMessage): Use CancelMessage::create instead of
  16127. PeerMessageUtil.
  16128. (createPieceMessage): Use PieceMessage::create instead of
  16129. PeerMessageUtil.
  16130. (createHaveMessage): Use HaveMessage::create instead of
  16131. PeerMessageUtil.
  16132. (createChokeMessage): Use ChokeMessage::create instead of
  16133. PeerMessageUtil.
  16134. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16135. PeerMessageUtil.
  16136. (createInterestedMessage): Use InterestedMessage::create instead of
  16137. PeerMessageUtil.
  16138. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16139. of PeerMessageUtil.
  16140. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16141. PeerMessageUtil.
  16142. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16143. PeerMessageUtil.
  16144. (createHaveAllMessage): New function.
  16145. (createHaveNoneMessage): New function.
  16146. (createRejectMessage): New function.
  16147. (createAllowedFastMessage: New function.
  16148. * src/Util.h
  16149. (sha1Sum): New function.
  16150. (computeFastSet): New function.
  16151. * src/Util.cc
  16152. (sha1Sum): New function.
  16153. (computeFastSet): New function.
  16154. * src/Peer.h
  16155. (fastExtensionEnabled): New variable.
  16156. (fastSet): New variable.
  16157. (setAllBitfield): New function.
  16158. (setFastExtensionEnabled): New function.
  16159. (isFastExtensionEnabled): New function.
  16160. (addFastSetIndex): New function.
  16161. (getFastSet): New function.
  16162. (isInFastSet): New function.
  16163. (countFastSet): New function.
  16164. * src/Peer.cc
  16165. (isInFastSet): New function.
  16166. (addFastSetIndex): New function.
  16167. (setAllBitfield): New function.
  16168. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16169. sockets.
  16170. * src/PeerAbstractCommand.cc
  16171. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16172. and uploadLimit.
  16173. (execute): Changed the procedure of checking sockets. The upload speed
  16174. checking were added.
  16175. (setUploadLimit): New function.
  16176. (setUploadLimitCheck): New function.
  16177. * src/PeerAbstractCommand.h
  16178. (setUploadLimit): New function.
  16179. (setUploadLimitCheck): New function.
  16180. (uploadLimit): New variable.
  16181. (uploadLimitCheck): New variable.
  16182. To contact a tracker regularly:
  16183. * src/TrackerWatcherCommand.h (interval): New variable.
  16184. (checkPoint): New variable.
  16185. (TrackerWatcherCommand): Added interval argument.
  16186. * src/TrackerWatcherCommand.cc
  16187. (TrackerWatcherCommand): Initialized checkPoint.
  16188. (execute): Now a tracker is contacted in every specified period.
  16189. If peer list is not needed, send request with numwant=0.
  16190. * src/TrackerUpdateCommand.cc
  16191. (execute): Updated log messages.
  16192. * src/DownloadEngine.cc
  16193. (~DownloadEngine): Removed two asserts.
  16194. (waitData): Uncommented wfds. May be a bug fix.
  16195. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16196. * src/PeerInteractionCommand.h
  16197. (checkInactiveConnection): Removed.
  16198. * src/PeerInteractionCommand.cc
  16199. (executeInternal): Removed following function calls:
  16200. detectMessageFlooding(), checkLongTimePeerChoking and
  16201. checkInactiveConnection().
  16202. (checkInactiveConnection): Removed.
  16203. (detectMessageFlooding): Removed function call to
  16204. checkInactiveConnection().
  16205. * src/PeerMessageUtil.h
  16206. (createChokeMessage): New function. Overload.
  16207. (createUnchokeMessage): New function. Overload.
  16208. (createInterestedMessage): New function. Overload.
  16209. (createNotInterestedMessage): New function. Overload.
  16210. (createHaveMessage): New function. Overload.
  16211. (createBitfieldMessage): New function. Overload.
  16212. (createRequestMessage): New function. Overload.
  16213. (createCancelMessage): New function. Overload.
  16214. (createPieceMessage): New function. Overload.
  16215. (createKeepAliveMessage): New function. Overload.
  16216. * src/PeerMessageUtil.cc
  16217. (createChokeMessage): New function. Overload.
  16218. (createUnchokeMessage): New function. Overload.
  16219. (createInterestedMessage): New function. Overload.
  16220. (createNotInterestedMessage): New function. Overload.
  16221. (createHaveMessage): New function. Overload.
  16222. (createBitfieldMessage): New function. Overload.
  16223. (createRequestMessage): New function. Overload.
  16224. (createCancelMessage): New function. Overload.
  16225. (createPieceMessage): New function. Overload.
  16226. (createKeepAliveMessage): New function. Overload.
  16227. * src/SendMessageQueue.cc
  16228. (createRequestMessage): Use PeerMessageUtil.
  16229. (createCancelMessage): Use PeerMessageUtil.
  16230. (createPieceMessage): Use PeerMessageUtil.
  16231. (createHaveMessage): Use PeerMessageUtil.
  16232. (createChokeMessage): Use PeerMessageUtil.
  16233. (createUnchokeMessage): Use PeerMessageUtil.
  16234. (createInterestedMessage): Use PeerMessageUtil.
  16235. (createNotInterestedMessage): Use PeerMessageUtil.
  16236. (createBitfieldMessage): Use PeerMessageUtil.
  16237. (createKeepAliveMessage): Use PeerMessageUtil.
  16238. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16239. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16240. * src/PeerInteraction.h: New class.
  16241. * src/PeerInteraction.cc: New class.
  16242. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16243. Each peer message has its own class.
  16244. * src/PendingMessages.h: Removed.
  16245. * src/PendingMessages.cc: Removed. The sending process was moved to
  16246. each message class.
  16247. * src/RequestSlotMan.h: Removed.
  16248. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16249. SendMessageQueue.
  16250. * src/RequestMessage.h: New class.
  16251. * src/RequestMessage.cc: New class.
  16252. * src/CancelMessage.h: New class.
  16253. * src/CancelMessage.cc: New class.
  16254. * src/BitfieldMessage.h: New class.
  16255. * src/BitfieldMessage.cc: New class.
  16256. * src/ChokeMessage.h: New class.
  16257. * src/ChokeMessage.cc: New class.
  16258. * src/KeepAliveMessage.h: New class.
  16259. * src/KeepAliveMessage.cc: New class.
  16260. * src/PortMessage.h: New class.
  16261. * src/UnchokeMessage.h: New class.
  16262. * src/UnchokeMessage.cc: New class.
  16263. * src/PieceMessage.h: New class.
  16264. * src/PieceMessage.cc: New class.
  16265. * src/HaveMessage.h: New class.
  16266. * src/HaveMessage.cc: New class.
  16267. * src/BitfieldMessage.h: New class.
  16268. * src/BitfieldMessage.cc: New class.
  16269. * src/NotInterestedMessage.h: New class.
  16270. * src/NotInterestedMessage.cc: New class.
  16271. * src/InterestedMessage.h: New class.
  16272. * src/InterestedMessage.cc: New class.
  16273. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16274. (getSendMessageQueue): New function.
  16275. (setSendMessageQueue): New function.
  16276. * src/HandshakeMessage.cc: New class.
  16277. * src/PeerConnection.h (receiveMessage): Changed return value and
  16278. arguments.
  16279. (receiveHandshake): Changed return value and arguments.
  16280. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16281. here.
  16282. (receiveHandshake): Do not create handshake class here.
  16283. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16284. (piece): Removed.
  16285. (syncPiece): Removed.
  16286. (sendInterest): Removed.
  16287. (sendMessages): Removed.
  16288. (createRequestPendingMessage): Removed.
  16289. (checkPieceHash): Removed.
  16290. (erasePieceOnDisk): Removed.
  16291. (getNewPieceAndSendInterest): Removed.
  16292. (onGotNewPice): Removed.
  16293. (onGotWrongPiece): Removed.
  16294. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16295. Removed peerConnection, piece.
  16296. (~PeerInteractionCommand): Removed peerConnection.
  16297. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16298. (syncPiece): Moved to SendMessageQueue.
  16299. (decideChoking): Removed PendingMessage.
  16300. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16301. The action after receiving peer message was moved to each message
  16302. class.
  16303. (onGotNewPice): Moved to SendMessageQueue.
  16304. (onGotWrongPiece): Moved to SendMessageQueue.
  16305. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16306. (sendInterest): Moved to SendMessageQueue.
  16307. (createRequestPendingMessage): Removed.
  16308. (sendMessages): Moved to SendMessageQueue.
  16309. (onAbort): Use SendMessageQueue::abortPiece()
  16310. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16311. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16312. (checkPieceHash): Moved to SendMessageQueue.
  16313. (erasePieceOnDisk): Moved to SendMessageQueue.
  16314. * src/PeerMessageUtil.h
  16315. (createBitfieldMessage): Removed.
  16316. (createHaveMessage): Changed return value and arguments.
  16317. (createBitfieldMessage): Changed return value and arguments.
  16318. (createRequestCancelMessage): Removed.
  16319. (createPieceMessage): Changed return value and arguments.
  16320. (getShortIntParam): New function.
  16321. (checkIndex): Changed arguments.
  16322. (checkBegin): Changed arguments.
  16323. (checkLength): Changed arguments.
  16324. (checkPieceOffset): Removed.
  16325. (checkRange): New function.
  16326. (checkBitfield): Changed arguments.
  16327. (createPeerMessage): Removed.
  16328. (checkIntegrity): Removed.
  16329. (createHandshakeMessage): Changed arguments.
  16330. (createChokeMessage): New function.
  16331. (createUnchokeMessage): New function.
  16332. (createInterestedMessage): New function.
  16333. (createNotInterestedMessage): New function.
  16334. (createRequestMessage): New function.
  16335. (createCancelMessage): New function.
  16336. (createPortMessage): New function.
  16337. * src/PeerMessageUtil.cc
  16338. (createBitfieldMessage): Removed.
  16339. (createHaveMessage): Changed return value and arguments.
  16340. (createBitfieldMessage): Changed return value and arguments.
  16341. (createRequestCancelMessage): Removed.
  16342. (createPieceMessage): Changed return value and arguments.
  16343. (getShortIntParam): New function.
  16344. (checkIndex): Changed arguments.
  16345. (checkBegin): Changed arguments.
  16346. (checkLength): Changed arguments.
  16347. (checkPieceOffset): Removed.
  16348. (checkRange): New function.
  16349. (checkBitfield): Changed arguments.
  16350. (createPeerMessage): Removed.
  16351. (checkIntegrity): Removed.
  16352. (createHandshakeMessage): Changed arguments.
  16353. (createChokeMessage): New function.
  16354. (createUnchokeMessage): New function.
  16355. (createInterestedMessage): New function.
  16356. (createNotInterestedMessage): New function.
  16357. (createRequestMessage): New function.
  16358. (createCancelMessage): New function.
  16359. (createPortMessage): New function.
  16360. * src/PeerMessage.h
  16361. (id): Removed.
  16362. (index): Removed.
  16363. (begin): Removed.
  16364. (length): Removed.
  16365. (bitfield): Removed.
  16366. (bitfieldLength): Removed.
  16367. (block): Removed.
  16368. (blockLength): Removed.
  16369. (inProgress): New variable.
  16370. (cuid): New variable.
  16371. (peer): New variable.
  16372. (sendMessageQueue): New variable.
  16373. (logger): New variable.
  16374. (setBitfield): Removed.
  16375. (getBitfield): Removed.
  16376. (setBlock): Removed.
  16377. (getBlock): Removed.
  16378. (getBitfieldLength): Removed.
  16379. (getBlockLength): Removed.
  16380. (isInProgress): New function.
  16381. (toString): Made pure virtual.
  16382. (check): New function.
  16383. (send): New function.
  16384. (receivedAction): New function.
  16385. (getId): Made pure virtual.
  16386. (setId): Removed.
  16387. (getIndex): Removed.
  16388. (setIndex): Removed.
  16389. (getBegin): Removed.
  16390. (setBegin): Removed.
  16391. (getLength): Removed.
  16392. (setLength): Removed.
  16393. (getCuid): New function.
  16394. (setCuid): New function.
  16395. (getPeer): New function.
  16396. (setPeer): New function.
  16397. (getSendMessageQueue): New function.
  16398. (setSendMessageQueue): New function.
  16399. (ID): Removed.
  16400. * src/PeerMessage.cc
  16401. (setBitfield): Removed.
  16402. (setBlock): Removed.
  16403. (toString): Removed.
  16404. * src/TorrentMan.h
  16405. (getPieceLength): New function.
  16406. (getPieceLength): New function.
  16407. * src/SendMessageQueue.h
  16408. (REQUEST_TIME_OUT): New definition.
  16409. (RequestSlots): New definition.
  16410. (MessageQueue): New definition.
  16411. (requestSlotMan): Removed.
  16412. (pendingMessages): Removed.
  16413. (requestSlots): New variable.
  16414. (messageQueue): New variable.
  16415. (torrentMan): New variable.
  16416. (peerConnection): New variable.
  16417. (peer): New variable.
  16418. (piece): New variable.
  16419. (getNewPieceAndSendInterest): New function.
  16420. (createPeerMessage): New function.
  16421. (createHandshakeMessage): New function.
  16422. (send): Made private.
  16423. (setPeerMessageCommonProperty): New function.
  16424. (deleteAllRequestSlot): New function.
  16425. (deleteRequestMessageInQueue): New function.
  16426. (cancelAllRequest): Made private.
  16427. (cancelAllRequest): Made private.
  16428. (countRequestSlot): Made private.
  16429. (addPendingMessage): Removed.
  16430. (deletePendingPieceMessage): Removed.
  16431. (deletePendingRequestMessage): Removed.
  16432. (addMessage): New function.
  16433. (deletePieceMessageInQueue): New function.
  16434. (deleteTimeoutRequestSlot): Changed argument.
  16435. (deleteCompletedRequestSlot): Changed argument.
  16436. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16437. (getCorrespondingRequestSlot): New function.
  16438. (countPendingMessage): Removed.
  16439. (countMessageInQueue): New function.
  16440. (getTorrentMan): New function.
  16441. (getPeerConnection): New function.
  16442. (hasDownloadPiece): New function.
  16443. (getDownloadPiece): New function.
  16444. (setDownloadPiece): New function.
  16445. (syncPiece): New function.
  16446. (sendMessages): New function.
  16447. (sendNow): New function.
  16448. (trySendNow): New function.
  16449. (abortPiece): New function.
  16450. (sendHandshake): New function.
  16451. (receiveMessage): New function.
  16452. (receiveHandshake): New function.
  16453. (createRequestMessage): New function.
  16454. (createCancelMessage): New function.
  16455. (createPieceMessage): New function.
  16456. (createHaveMessage): New function.
  16457. (createChokeMessage): New function.
  16458. (createUnchokeMessage): New function.
  16459. (createInterestedMessage): New function.
  16460. (createNotInterestedMessage): New function.
  16461. (createBitfieldMessage): New function.
  16462. (createKeepAliveMessage): New function.
  16463. * src/SendMessageQueue.cc
  16464. (SendMessageQueue): Removed requestSlotMan.
  16465. Instantiated peerConnection here.
  16466. (~SendMessageQueue): Removed requestSlotMan.
  16467. Added deletion of peerConnection and the contents of messageQueue.
  16468. (send): Updated according to the change of messageQueue.
  16469. (addPendingMessage): Renamed to addMessage.
  16470. (addMessage): New function.
  16471. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16472. (deletePieceMessageInQueue): New function.
  16473. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16474. (deleteRequestMessageInQueue): New function.
  16475. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16476. here.
  16477. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16478. (...) was moved here.
  16479. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16480. moved here.
  16481. (deleteCompletedRequestSlot):
  16482. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16483. (getCorrespondingRequestSlot):
  16484. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16485. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16486. (countPendingMessage): Renamed to countMessageInQueue.
  16487. (countMessageInQueue): New function.
  16488. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16489. (receiveHandshake): New function.
  16490. (createHandshakeMessage): New function.
  16491. (receiveMessage): New function.
  16492. (createPeerMessage): New function.
  16493. (syncPiece): New function.
  16494. (getNewPieceAndSendInterest): New function.
  16495. (sendMessages): New function.
  16496. (sendNow): New function.
  16497. (trySendNow): New function.
  16498. (sendHandshake): New function.
  16499. (abortPiece): New function.
  16500. (getDownloadPiece): New function.
  16501. (getPeerMessageCommonProperty): New function.
  16502. (createRequestMessage): New function.
  16503. (createCancelMessage): New function.
  16504. (createPieceMessage): New function.
  16505. (createHaveMessage): New function.
  16506. (createChokeMessage): New function.
  16507. (createUnchokeMessage): New function.
  16508. (createInterestedMessage): New function.
  16509. (createNotInterestedMessage): New function.
  16510. (createBitfieldMessage): New function.
  16511. (createKeepAliveMessage): New function.
  16512. To add simple Content-Disposition support:
  16513. * src/HttpResponseCommand.h (determinFilename): New function.
  16514. * src/HttpResponseCommand.cc (executeInternal):
  16515. Use determinFilename(headers) instead of req->getFile() when comparing
  16516. filename.
  16517. (determinFilename): New function.
  16518. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16519. req->getFile().
  16520. (handleOtherEncoding): Use determinFilename(headers) instead of
  16521. req->getFile().
  16522. * src/Util.h (getContentDispositionFilename): New function.
  16523. * src/Util.cc (getContentDispositionFilename): New function.
  16524. * src/LogFactory.h (release): New function.
  16525. * src/LogFactory.cc (release): New function.
  16526. To fix a bug that causes out-of-bound exception when HTTP status
  16527. line is wrong:
  16528. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16529. size.
  16530. * src/common.h (Deleter): New class.
  16531. * src/SegmentMan.cc
  16532. (~SegmentMan): Added deletion of splitter and diskWriter.
  16533. * src/DownloadEngine.h
  16534. (Commands): Use deque.
  16535. (clearQueue): New function.
  16536. * src/DownloadEngine.cc
  16537. (~DownloadEngine): Added deletion of segmentMan.
  16538. (cleanQueue): New function.
  16539. * src/TorrentDownloadEngine.h
  16540. (TorrentDownloadEngine): The implementation was moved to
  16541. TorrentDownloadEngine.cc.
  16542. (~TorrentDownloadEngine): The implementation was moved to
  16543. TorrentDownloadEngine.cc.
  16544. * src/TorrentDownloadEngine.cc
  16545. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16546. * src/main.cc
  16547. (clearRequest): Removed.
  16548. (handler): Added deletion of e.
  16549. (torrentHandler): Added deletion of te.
  16550. (main): Do not share splitter.
  16551. Use Deleter instead of clearRequest.
  16552. Deletion of classes were updated.
  16553. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16554. * src/main.cc (main): Fixed typo.
  16555. * src/message.h: Fixed typo.
  16556. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16557. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16558. To add --select-file command-line option:
  16559. * src/Util.cc
  16560. (unfoldRange): New function.
  16561. (getNum): New function.
  16562. (unfoldSubRange): New function
  16563. * src/main.cc
  16564. (showUsage): Added help message.
  16565. (main): Added --select-file command-line option. Updated the layout of
  16566. file listing.
  16567. * src/common.h
  16568. (Integers): New definition.
  16569. * src/SocketCore.cc
  16570. (writeData): Removed timeout argument.
  16571. (readData): Removed timeout argument.
  16572. (peekData): Removed timeout argument.
  16573. * src/Socket.cc
  16574. (writeData): Removed timeout argument.
  16575. (readData): Removed timeout argument.
  16576. (peekData): Removed timeout argument.
  16577. * Release 0.4.1
  16578. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16579. To deploy upload rate based choking algorithm:
  16580. * src/PeerInteractionCommand.cc
  16581. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16582. peer currently used.
  16583. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16584. download completes. Simplified.
  16585. (receiveMessage): Updated.
  16586. * src/TorrentMan.h
  16587. (activePeers): New variable.
  16588. (addActivePeer): New function.
  16589. (getActivePeers): New function.
  16590. (deleteActivePeer): New function.
  16591. * src/TorrentMan.cc
  16592. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16593. * src/PeerAbstractCommand.cc
  16594. (onAbort): Use peer->resetStatus().
  16595. * src/main.cc
  16596. (PeerChokeCommand.h): Included.
  16597. (main): Added the instance of ChokingCommand to the command queue.
  16598. * src/Peer.h
  16599. (amChoking): Renamed from amChocking
  16600. (chokingRequired): New variable.
  16601. (optUnchoking): New variable.
  16602. (deltaUpload): New variable.
  16603. (deltaDownload): New variable.
  16604. (addDeltaUpload): New function.
  16605. (resetDeltaUpload): New function.
  16606. (addDeltaDownload): New function.
  16607. (resetDeltaDownload): New function.
  16608. (addPeerUpload): Added a call to addDeltaUpload.
  16609. (addPeerDownload): Added a call to addDeltaDownload.
  16610. * src/Peer.cc
  16611. (shouldBeChoking): Renamed from shouldChoke.
  16612. (resetStatus): New function.
  16613. * src/PeerChokeCommand.h: New class.
  16614. * src/PeerChokeCommand.cc: New class.
  16615. To add lazy upload speed limiter:
  16616. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16617. statistics calculation to TorrentDownloadEngine.
  16618. * src/TorrentConsoleDownloadEngine.cc
  16619. (sendStatistics): Renamed from printStatistics.
  16620. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16621. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16622. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16623. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16624. calculation.
  16625. (sendStatistics): New function as pure virtual function.
  16626. (getUploadSpeed): New function.
  16627. * src/TorrentDownloadEngine.cc
  16628. (initStatistics): New function.
  16629. (calculateSpeed): New function.
  16630. (calculateStatistics): New function.
  16631. * src/SendMessageQueue.h
  16632. (uploadLength): New variable.
  16633. (send): Added an argument.
  16634. (setUploadLimit): New function.
  16635. (getUploadLimit): New function.
  16636. * src/SendMessageQueue.cc
  16637. (send): Added upload speed limiter.
  16638. * src/prefs.h
  16639. (PREF_UPLOAD_LIMIT): New definition.
  16640. * src/PeerInteractionCommand.cc
  16641. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16642. * src/main.cc
  16643. (main): Added --upload-limit option
  16644. For bug fixes:
  16645. * src/main.cc
  16646. (showUsage): Corrected --listen-port help
  16647. Other changes:
  16648. * src/TorrentMan.cc
  16649. (getPeer): Return nullPeer if connection is grather than
  16650. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16651. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16652. To add some useful information to the exception message:
  16653. * src/SocketCore.cc : Updated messages.
  16654. * src/SegmentMan.cc :
  16655. * src/TorrentMan.cc : Updated messages.
  16656. * src/MultiDiskWriter.cc : Updated messages.
  16657. * src/Util.cc : Updated messages.
  16658. * src/AbstractDiskWriter.cc : Updated messages.
  16659. * src/PreAllocationDiskWriter.cc : Updated messages.
  16660. * src/message.cc : Added new messages. Updated some messages.
  16661. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16662. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16663. Updated threshold from 30 to 15.
  16664. * src/AbstractDiskWriter.h (filename): New variable.
  16665. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16666. (createFile): Assigned filename.
  16667. * src/main.cc: Updated the help message for http-auth-scheme.
  16668. * Release 0.4.0
  16669. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16670. To add TrackerUpdateCommand with which replaces
  16671. CompactTrackerResponseProcessor:
  16672. * src/TrackerWatcherCommand.h (req): Removed.
  16673. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16674. if the number of peer connections are less than 30.
  16675. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16676. * src/SegmentMan.h (diskWriter): New function.
  16677. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16678. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16679. (main): Use TrackerUpdateCommand.
  16680. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16681. (req): New variable.
  16682. (setTrackerResponseProcessor): Removed.
  16683. (getTrackerResponseProcessor): Removed.
  16684. (processTrackerResponse): Removed.
  16685. * src/DownloadEngine.h (diskWriter): Removed.
  16686. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16687. to torrentMan->processTrackerResponse().
  16688. To add Util::expandBuffer:
  16689. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16690. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16691. * src/Util.h (expandBuffer): New function.
  16692. To fix the bug that causes segmentation fault when "-l ." is specified
  16693. in command-line option:
  16694. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16695. (openFile): New function.
  16696. (closeFile): New function.
  16697. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16698. (~SimpleLogger): Call closeFile();
  16699. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16700. * src/main.cc (main): Added a check to see logger is configured
  16701. properly.
  16702. To enable HTTP authentication without specifying "--http-auth-scheme"
  16703. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16704. * src/HttpConnection.cc (createRequest): Send Authorization header
  16705. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16706. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16707. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16708. * src/Peer.cc (shouldChoke): Updated algorithm.
  16709. * src/message.h (EX_AUTH_FAILED): New definition.
  16710. (EX_FILE_OPEN): New definition.
  16711. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16712. if status == 401.
  16713. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16714. if req->isTorrent == true.
  16715. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16716. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16717. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16718. (createFile): Updated message.
  16719. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16720. To add a readout of estimated remaining time to normal HTTP/FTP
  16721. downloads:
  16722. * src/ConsoleDownloadEngine.h (startup): New variable.
  16723. (startupLength): New variable.
  16724. (isStartupLengthSet): New variable.
  16725. (avgSpeed): New variable.
  16726. (eta): New variable.
  16727. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16728. estimated remaining time.
  16729. (initStatistics): Initialized newly added variables.
  16730. (calculateStatistics): Calculate average speed and estimated remaining
  16731. time.
  16732. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16733. * src/TrackerDownloadCommand.h: Removed.
  16734. * src/TrackerDownloadCommand.cc: Removed.
  16735. * src/TrackerInitCommand.h: Removed.
  16736. * src/TrackerInitCommand.cc: Removed.
  16737. * src/TrackerUpdateCommand.h: Removed.
  16738. * src/TrackerUpdateCommand.cc: Removed.
  16739. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16740. url written in TrackerInitCommand was moved here. Do not create
  16741. tracker request command if torrentMan->trackers != 0.
  16742. * src/CompactTrackerResponseProcessor.h: New class.
  16743. * src/CompactTrackerResponseProcessor.cc: New class.
  16744. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16745. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16746. Decoupled TorrentDownloadEngine from this.
  16747. * src/SegmentMan.h (init): New function.
  16748. * src/SegmentMan.cc (init): New function.
  16749. * src/TorrentMan.h (responseProcessor): New variable.
  16750. (trackers): New variable.
  16751. (setTrackerResponseProcessor): New function.
  16752. (getTrackerResponseProcessor): New function.
  16753. (processTrackerResponse): New function.
  16754. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16755. (processTrackerResponse): New function.
  16756. * src/main.cc (main): Use ByteArrayDiskWriter and
  16757. CompactTrackerResponseProcessor.
  16758. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16759. processTrackerResponse().
  16760. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16761. readout.
  16762. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16763. which indicates download has completed.
  16764. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16765. (closeFile): fd >= 0, not fd > 0
  16766. * src/main.cc (main): Added short cut for show-files.
  16767. Added short cut for torrent-file.
  16768. Added new command-line option listen-port.
  16769. Updated i18n messages.
  16770. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16771. To add LogFactory which creates singleton logger:
  16772. * src/LogFactory.h: New class.
  16773. * src/LogFactory.cc: New class.
  16774. * src/Command.h (logger): New variable.
  16775. (Constructor): Use LogFactory.
  16776. * src/AbstractCommand.cc: Use Command::logger
  16777. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16778. Use LogFactory.
  16779. * src/SegmentSplitter.h : Made logger protected.
  16780. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16781. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16782. * src/DownloadEngine.h : Made logger protected.
  16783. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16784. * src/PeerInteractionCommand.cc : Use Command::logger.
  16785. * src/HttpResponseCommand.cc : Use Command::logger.
  16786. * src/SegmentMan.h : Made logger private.
  16787. * src/TorrentMan.h : Made logger private.
  16788. * src/TorrentMan.cc : Use LogFactory.
  16789. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16790. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16791. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16792. Use LogFactory.
  16793. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16794. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16795. Use LogFactory.
  16796. * src/DownloadCommand.cc : Use Command::logger.
  16797. * src/PeerAbstractCommand.cc : Use Command::logger.
  16798. * src/PeerListenCommand.cc : Use Command::logger.
  16799. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16800. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16801. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16802. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16803. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16804. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16805. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16806. Use LogFactory.
  16807. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16808. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16809. Use LogFactory.
  16810. * src/main.cc (main): Use LogFactory.
  16811. * src/DiskAdaptor.h (logger): New variable.
  16812. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16813. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16814. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16815. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16816. parameter to a tracker request.
  16817. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16818. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16819. * src/main.cc (setSignalHander): New function.
  16820. (main): Added a handler for SIGTERM.
  16821. (handler): Updated message.
  16822. (torrentHandler): Updated message.
  16823. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16824. * src/TorrentConsoleDownloadEngine.cc
  16825. (onPartialDownloadingCompletes): Renamed as
  16826. onSelectiveDownloadingCompletes.
  16827. (onSelectiveDownloadingCompletes): Updated message.
  16828. To add DiskAdaptor which abstract DiskWriter family:
  16829. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16830. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16831. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16832. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16833. MultiDiskAdaptor.h.
  16834. (readFileEntry): Changed its arguments.
  16835. (setup): setupDiskWriter is merged into this function.
  16836. (setupDiskWriter): Removed.
  16837. (setFileFilter): New function.
  16838. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16839. made in readFileEntry.
  16840. (getFilePath): Removed.
  16841. (getTempFilePath): Removed.
  16842. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16843. (fixFilename): Removed.
  16844. (copySingleFile): Removed.
  16845. (splitMultiFile): Removed.
  16846. (deleteTempFile): Removed.
  16847. (setFileEntriesToDownload): Removed.
  16848. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16849. (isSelectiveDownloadingMode): New function.
  16850. (setAllMultiFileRequestedState): Removed.
  16851. (finishPartialDownloadingMode): Renamed as
  16852. finishSelectiveDownloadingMode.
  16853. (finishSelectiveDownloadingMode): New function.
  16854. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16855. (getSelectedTotalLength): New function.
  16856. (onDownloadComplete): Use diskAdaptor.
  16857. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16858. (Range): Removed.
  16859. (setMultiFileEntries): Renamed as setFileEntries.
  16860. (setFileEntries): New function.
  16861. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16862. (pieceLength): New variable.
  16863. * src/main.cc (printDownloadCompeleteMessage): New function.
  16864. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16865. (main): Renamed torrent-show-files to show-files.
  16866. Rewritten file contents listing.
  16867. * src/TorrentMan.h (FileEntry): Removed.
  16868. (multiFileTopDir): Removed.
  16869. (multiFileEntries): Removed.
  16870. (diskWriter): Removed.
  16871. (diskAdaptor): New variable.
  16872. * src/DefaultDiskWriter.h (totalLength): New variable.
  16873. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16874. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16875. diskWriter.
  16876. * src/TorrentConsoleDownloadEngine.h
  16877. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16878. (partialTotalLength): Renamed as selectedTotalLength.
  16879. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16880. openExistingFile, otherwise call initAndOpenFile.
  16881. (closeFile): fd > 0, not fd != 0.
  16882. * src/DirectDiskAdaptor.h: New class.
  16883. * src/DirectDiskAdaptor.cc: New class.
  16884. * src/MultiDiskAdaptor.h: New class.
  16885. * src/MultiDiskAdaptor.cc: New class.
  16886. * src/CopyDiskAdaptor.h: New class.
  16887. * src/CopyDiskAdaptor.cc: New class.
  16888. * src/DiskAdaptor.h: New class.
  16889. * src/DiskAdaptor.cc: New class.
  16890. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16891. (PREF_SHOW_FILES): New definition.
  16892. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16893. To add the ability to download multi torrent into respective files
  16894. directly:
  16895. * src/DiskWriter.h (openFile): New function.
  16896. (seek): Removed.
  16897. * src/MultiDiskWriter.h: New class.
  16898. * src/MultiDiskWriter.cc: New class.
  16899. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16900. protected.
  16901. (openFile): New function.
  16902. * src/AbstractDiskWriter.cc (openFile): New function.
  16903. * src/prefs.h (V_FALSE): New definition.
  16904. (PREF_DIRECT_FILE_MAPPING): New definition.
  16905. * src/TorrentMan.h (setupDiskWriter): New function.
  16906. (setAllMultiFileRequestedState): New function.
  16907. (onDownloadComplete): New function.
  16908. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16909. (setupDiskWriter): New function.
  16910. (getFilePath): Updated.
  16911. (getTempFilePath): Updated.
  16912. (getSegmentFilePath): Updated.
  16913. (fixFilename): Updated.
  16914. (deleteTempFile): Updated.
  16915. (setAllMultiFileRequestedState): New function.
  16916. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16917. (finishPartialDownloadingMode): Reset requested flags.
  16918. (onDownloadComplete): New function.
  16919. * src/main.cc: Added --direct-file-mapping option.
  16920. Use TorrentMan::setupDiskWriter().
  16921. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16922. onDownloadComplete().
  16923. To fix ETA bug:
  16924. * src/Util.h (difftvsec): New function.
  16925. * src/Util.cc (difftvsec): New function.
  16926. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16927. type of "elapsed" instead of long long int.
  16928. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16929. The updates of statistics takes place every 1 seconds.
  16930. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16931. (calculateSpeed): Changed its argument signature.
  16932. * src/PeerMessage.cc (toString): Fixed message.
  16933. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16934. To print ETA:
  16935. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16936. completion handling when dealing with
  16937. TorrentMan::isPartialDownloadingMode() == true.
  16938. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16939. New function.
  16940. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16941. (sessionDownloadLength): New variable.
  16942. (avgSpeed): New variable.
  16943. (eta): New variable.
  16944. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16945. new variables: eta, avgSpeed, startup.
  16946. (calculateSpeed): Calculate average speed and ETA.
  16947. (printStatistics): Added ETA.
  16948. * src/Util.h (secfmt): New function.
  16949. * src/Util.cc (secfmt): New function.
  16950. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16951. To detect "keep alive" flooding:
  16952. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16953. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16954. variable: keepAliveCount.
  16955. (detectMessageFlooding): Added "keep alive" flooding detection.
  16956. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16957. received.
  16958. To add the ability to download only specified files in multi-file
  16959. torrent:
  16960. * src/BitfieldMan.h (filterBitfield): New variable.
  16961. (filterEnabled): New variable.
  16962. (setFilterBit): New function.
  16963. (enableFilter): New function.
  16964. (disableFilter): New function.
  16965. (isFilterEnabled): New function.
  16966. (getFilteredTotalLength): New function.
  16967. (getCompletedLength): New function.
  16968. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16969. filterBitfield, filterEnabled.
  16970. (CopyConstructor): Added filterBitfield and filterEnabled.
  16971. (operator==): Added filterBitfield and filterEnabled.
  16972. (Destructor): Added filterBitfield.
  16973. (getMissingIndex): Use filterBitfield.
  16974. (getMissingUnusedIndex): Use filterBitfield.
  16975. (getFirstMissingUnusedIndex): Use filterBitfield.
  16976. (getFirstMissingUnusedIndex): Use filterBitfield.
  16977. (getAllMissingIndexes): Use filterBitfield.
  16978. (countMissingBlock): Use filterBitfield.
  16979. (countBlock): Use filterBitfield.
  16980. (setBitInternal): Added new argument on.
  16981. (setUseBit): Use setBitInternal.
  16982. (unsetUseBit): Use setBitInternal.
  16983. (setBit): Use setBitInternal.
  16984. (unsetBit): Use setBitInternal.
  16985. (isAllBitSet): Use filterBitfield.
  16986. (setFilterBit): New function.
  16987. (addFilter): New function.
  16988. (enableFilter): New function.
  16989. (disableFilter): New function.
  16990. (clearFilter): New function.
  16991. (isFilterEnabled): New function.
  16992. (getFilteredTotalLength): New function.
  16993. (getCompletedLength): New function.
  16994. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16995. Initalized newly added variables.
  16996. [FileEntry](offset): New variable.
  16997. [FileEntry](extracted): New variable.
  16998. [FileEntry](requested): New variable.
  16999. (readFileEntry): New function.
  17000. (option): New variable.
  17001. (splitMultiFile): Removed const qualifier.
  17002. (fixFilename): Removed const qualifier.
  17003. (readFileEntryFromMetaInfoFile): New function.
  17004. (finishPartialDownloadingMode): New function.
  17005. (isPartialDownloadingMode): New function.
  17006. (setFileEntriesToDownload): New function.
  17007. (getCompletedLength): New function.
  17008. (getPartialTotalLength): New function.
  17009. * src/TorrentMan.cc (readFileEntry): New function.
  17010. (setup): Use readFileEntry. If no-preallocation option is specified,
  17011. use DefaultDiskWriter.
  17012. (readFileEntryFromMetaInfoFile): New function.
  17013. (fixFilename): Removed const qualifier.
  17014. (splitMultiFile): Removed const qualifier.
  17015. (setFileEntriesToDownload): New function.
  17016. (isPartialDownloadingMode): New function.
  17017. (finishPartialDownloadingMode): New function.
  17018. (getCompletedLength): New function.
  17019. (getPartialTotalLength): New function.
  17020. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17021. New variable.
  17022. (partialTotalLength): New variable.
  17023. (downloadLength): New variable.
  17024. (totalLength): New variable.
  17025. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17026. Added log.
  17027. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17028. partialTotalLength, downloadLength, totalLength.
  17029. (calculate): Calculate downloadLength and totalLength.
  17030. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17031. * src/main.cc (addCommand): Changed argument signature.
  17032. (main): Added new variable: args. Added new option "torrent-show-files"
  17033. "no-preallocation". Usage is not updated yet.
  17034. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17035. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17036. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17037. Attempt to add the ability to listing file entries in a .torrent file.
  17038. This feature is not yet complete.
  17039. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17040. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17041. (getName): New function.
  17042. * src/TorrentMan.h (getMultiFileEntries): New function.
  17043. (getName): New function.
  17044. * src/main.cc (main): Use above 2 funtion.
  17045. * Release 0.3.2
  17046. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17047. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17048. (detectMessageFlooding): Updated threshold value.
  17049. (checkLongTimePeerChoking): Updated timeout value.
  17050. (getNewPieceAndSendInterest): Added debug log.
  17051. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17052. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17053. (getPeer): Updated.
  17054. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17055. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17056. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17057. is localhost.
  17058. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17059. * src/PendingMessage.cc (processMessage): Not to send piece message
  17060. if peer is not interested in the pieces localhost has.
  17061. * src/Peer.cc (shouldChoke): Updated.
  17062. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17063. * src/Util.cc (isPowerOf): New function.
  17064. * src/Util.h (isPowerOf): New function.
  17065. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17066. whether or not it is power of 2.
  17067. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17068. Added new class SendMessageQueue that includes PendingMessages and
  17069. RequestSlotMan.
  17070. * src/SendMessageQueue.h: New class.
  17071. * src/SendMessageQueue.cc: New class.
  17072. * src/PendingMessage.h: Added new member variable blockIndex and its
  17073. accessors.
  17074. (createRequestMessage): Updated.
  17075. * src/PendingMessage.cc (createRequestMessage): Updated.
  17076. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17077. SendMessageQueue.
  17078. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17079. (receiveMessage): Updated with SendMessageQueue.
  17080. (deletePendingPieceMessage): Removed.
  17081. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17082. (sendInterest): Updated with SendMessageQueue.
  17083. (createRequestPendingMessage): Updated with SendMessageQueue.
  17084. (sendMessages): Updated with SendMessageQueue.
  17085. (onAbort): Updated with SendMessageQueue.
  17086. (keepAlive): Updated with SendMessageQueue.
  17087. (beforeSocketCheck): Updated SendMessageQueue.
  17088. * src/PeerInteractionCommand (sendMessages): Shuffle
  17089. missingBLockIndexes before using it.
  17090. Added its own timeout for peer connection.
  17091. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17092. setter.
  17093. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17094. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17095. Added setTimeout() call.
  17096. (executeInternal): Added setTimeout() call.
  17097. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17098. Added timeout.
  17099. (isTimeoutDetected): Updated.
  17100. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17101. option.
  17102. Added *simple* message flooding checker.
  17103. * src/PeerInteractionCommand.cc (executeInternal):
  17104. Added detectMessageFlooding() call.
  17105. (detectMessageFlooding): New function.
  17106. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17107. (beforeSocketCheck): Added detectMessageFlooding() call.
  17108. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17109. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17110. Removed deletePendingPieceMessage(), getRequestSlot(),
  17111. deleteRequestSlot(), deleteAllRequestSlot().
  17112. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17113. Added checkLongTimePeerChoking() call.
  17114. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17115. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17116. if duplicate == false.
  17117. The parameter "uploaded" and "downloaded" in the tracker request are
  17118. the size since the client sent the "started" event to the tracker.
  17119. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17120. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17121. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17122. getSessionDownloadedSize(), getSessionUploadedSize().
  17123. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17124. getSessionUploadedSize() instead of getDownloadedSize(),
  17125. getUploadedSize().
  17126. * src/PendingMessage.cc (processMessage): Do not send request message
  17127. if the peer is choking the client.
  17128. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17129. less than interval.
  17130. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17131. * configure.in: Added gnutls support. Added several CPP macros.
  17132. * m4/openssl.m4: Added.
  17133. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17134. readData(), peekData(). Added gnutls support.
  17135. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17136. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17137. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17138. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17139. Instead, added a check for whether setup method has executed
  17140. successfully.
  17141. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17142. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17143. * src/Makefile.am: Updated.
  17144. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17145. using whether OpenSSL or gcrypt, depending on the result of configure
  17146. script.
  17147. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17148. messageDigest.h.
  17149. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17150. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17151. Fixed memory leak.
  17152. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17153. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17154. Removed instantiation of TrackerInitCommand. Instead,
  17155. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17156. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17157. ENABLE_SSL.
  17158. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17159. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17160. If a piece is already acquired by another command, delete the request
  17161. slots for the piece.
  17162. * src/TrackerUpdateCommand.cc (execute):
  17163. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17164. Added a check whether peer list is null.
  17165. Fixed the bug that causes sending completed event to the tracker
  17166. several times.
  17167. * src/TrackerInitCommand.cc (execute):
  17168. Fixed the bug that causes sending completed event to the tracker
  17169. several times.
  17170. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17171. by using messageDigest.h.
  17172. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17173. * PeerConnection.cc: Replaced log message "keep-alive" with
  17174. "keep alive".
  17175. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17176. localhost long time.
  17177. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17178. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17179. at most 100 failure entry from the list. If with duplicate = false,
  17180. MAX_PEER_LIST is not checked.
  17181. * PeerListenCommand.cc: Fixed the argument order of log message.
  17182. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17183. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17184. Added warn().
  17185. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17186. Implemented warn().
  17187. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17188. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17189. * Request.h: Added AFTER_COMPLETED event.
  17190. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17191. instead of downloaded size and progress(%) after download completes.
  17192. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17193. message to the peer if it is interested in what localhost has
  17194. downloaded.
  17195. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17196. destination instead of just renaming it.
  17197. * TorrentMan.cc: Added deleteTempFile().
  17198. * PeerAbstractCommand.cc: do not stop execution after download
  17199. completes. This makes localhost a seeder.
  17200. * Util.{h,cc}: Added fileCopy().
  17201. * PeerListenCommand.cc: do not stop execution after download completes.
  17202. This makes localhost a seeder.
  17203. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17204. Added TorrentMan::deleteTempFile() to torrentHandler.
  17205. Initialized the variable dir as ".".
  17206. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17207. Deleted renameSingleFile().
  17208. Added copySingleFile(), deleteTempFile().
  17209. * DownloadEngine.h: Added virtual function afterEachIteration().
  17210. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17211. in onEndOfRun() to afterEachIteration().
  17212. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17213. true.
  17214. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17215. In rangedFileCopy(), added try-catch block to properly close file
  17216. descriptors.
  17217. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17218. Added afterEachIteration(), isFilenameFixed().
  17219. * Peer.cc: Changed choking strategy.
  17220. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17221. * TrackerInitCommand.cc: Send completed event only once.
  17222. * DownloadEngine.cc: Added a call to afterEachIteration().
  17223. * TrackerUpdateCommand.cc: Do not stop execution after download
  17224. completes.
  17225. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17226. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17227. received from a tracker.
  17228. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17229. Decreased the number of failure peers to delete to 0(just comment out
  17230. the line).
  17231. * Release 0.3.1
  17232. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17233. * PeerInteractionCommand.cc: added a call to
  17234. TorrentMan::unadvertisePiece in Destructor.
  17235. * PeerInteractionCommand.cc: make have message sent immediately
  17236. if the size of pending message queue is zero.
  17237. * TorrentMan.cc: set the maximum size of peer list to 250.
  17238. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17239. to deque.
  17240. * Util.cc: fixed rangedFileCopy.
  17241. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17242. to Constructor. Also, moved digest cleanup to Destructor.
  17243. * MetaFileUtil.cc: fixed memory leak
  17244. * replaced std::vector with std::deque.
  17245. * AbstractCommand.cc: casted timeout value to long long int.
  17246. * ChunkedEncoding.cc: fixed memory leak.
  17247. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17248. * SleepCommand.cc: casted timeout value to long long int.
  17249. * Data.cc: fixed memory leak.
  17250. * Data.cc: fixed toLLInt().
  17251. * BitfieldMan.cc: fixed memory leak.
  17252. * TorrentMan.cc: initialized storeDir to ".".
  17253. * TorrentMan.cc: fixed memory leak.
  17254. * TorrentMan.cc: corrected file paths of splitted files.
  17255. * PeerAbstractCommand.cc: casted timeout to long long int.
  17256. * main.cc: added delete(req) and delete(te->diskWriter).
  17257. * RequestSlot.cc: casted timeout value to long long int.
  17258. * Request.cc: fixed memory leak.
  17259. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17260. have the piece.
  17261. * Peer.{h,cc}: added hasPiece(int index).
  17262. * main.cc: corrected addCommand.
  17263. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17264. * BitTorrent protocol support added.
  17265. * Release 0.3.0
  17266. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17267. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17268. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17269. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17270. decoding did not work properly.
  17271. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17272. * DownloadEngine.h: included sys/time.h
  17273. * DownloadEngine.cc: remove sys/time.h
  17274. * Makefile.am (SUBDIRS): Add intl.
  17275. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17276. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17277. * main.cc: correct help message for --http-auth-scheme.
  17278. * main.cc: changed e-mail address for bug reports.
  17279. * ja.po: added japanese translation.
  17280. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17281. * SimpleLogger.cc: flush log file instead of stdout.
  17282. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17283. * main.cc: Fixed command-line option: max-tries
  17284. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17285. does not equal to seg.sp.
  17286. * DownloadCommand.cc: If EOF is got from the server and the total size
  17287. of file is not zero, then throw DlRetryEx.
  17288. * main.cc: Set the minium value of min-segment-size to 1024.
  17289. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17290. fails because of a regression since 0.2.0 release.
  17291. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17292. * HttpConnection.cc:
  17293. * common.h: defined the user agent name as macro
  17294. * DownloadEngine.{h, cc}:
  17295. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17296. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17297. * main.cc: Download complete/abort message is now generated by main.
  17298. * Makefile.am (SUBDIRS): Add m4.
  17299. (ACLOCAL_AMFLAGS): New variable.
  17300. (EXTRA_DIST): New variable.
  17301. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17302. * gettext: added gettext functionality
  17303. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17304. * AbstractCommand.cc:
  17305. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17306. unregister its cuid from SegmentMan.
  17307. * DownloadEngine.cc: .aria2 file was written when a downloading
  17308. failed with errors.
  17309. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17310. Added "User-Agent" header to CONNECT proxy request.
  17311. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17312. properly.
  17313. * Logger.h:
  17314. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17315. * ChunkedEncoding.cc: Added #include directive for strings.h
  17316. * Release 0.2.1
  17317. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17318. * Util.{h,cc}: added startsWith().
  17319. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17320. Util::endsWith().
  17321. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17322. * common.h: added #include directive of limit.h.
  17323. * DownloadEngine.cc: added #include directive of sys/time.h and
  17324. algorithm.
  17325. * Exception.h: added #include directive of stdio.h.
  17326. * AbstractCommand.h: added #include directive of sys/time.h.
  17327. * DownloadCommand.h: added #include directive of sys/time.h.
  17328. * *.h: added #include directive of common.h to all base classes.
  17329. subclasses' one was removed.
  17330. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17331. does not define these macros.
  17332. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17333. * Release 0.2.0
  17334. * main.cc:
  17335. * HttpInitiateConnectionCommand.{h,cc}:
  17336. * prefs.h:
  17337. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17338. We can now use GET command in http proxy.
  17339. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17340. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17341. that splits slowest segment of SegmentMan::commands vector.
  17342. This is the default split algorithm of aria2.
  17343. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17344. that splits first segment of SegmentMan::commands vector.
  17345. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17346. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17347. * Segment.h:
  17348. * SegmentMan.cc: Added speed field to Segment.h
  17349. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17350. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17351. * message.h: Change file size related %d to %lld.
  17352. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17353. * FtpInitiateConnectionCommand.{h,cc}:
  17354. * FtpNegotiationCommand.{h,cc}:
  17355. * FtpDownloadCommand.{h,cc}:
  17356. * FtpConnection.{h,cc}: Added FTP support
  17357. * SimpleLogger.cc: Log message now includes time information.
  17358. * main.cc: The value of --http-auth-scheme option is chagned from
  17359. 'BASIC' to 'basic'
  17360. * main.cc: Added --timeout command-line option.
  17361. * main.cc: Added --min-segment-size command-line option.
  17362. * main.cc: Added --max-retries command-line option.
  17363. * prefs.h: option string constants are now defined in prefs.h
  17364. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17365. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17366. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17367. with version 0.1.0's one.
  17368. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17369. * configure.in: Added --enable-ssl option to configure script.
  17370. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17371. cannot permit absoluteURI as Request-URI.
  17372. * HttpConnection.cc: Added Referer support.
  17373. * main.cc: Added referer command-line option.
  17374. * main.cc: Added rety-wait command-line option.
  17375. * Exception.h: Fixed formating bug in Exception::setMsg()
  17376. * SocketCore.{h,cc}:
  17377. * Socket.{h, cc}:
  17378. * Request.cc:
  17379. * InitiateConnectionCommandFactory.cc:
  17380. * HttpRequestCommand.cc: Added HTTPS support.
  17381. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17382. for SocketCore.
  17383. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17384. size is wrong
  17385. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17386. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17387. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17388. * Release 0.1.0