ChangeLog 691 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296
  1. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Small optimization for A2_WOULDBLOCK(e)
  3. * src/SocketCore.cc
  4. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Removed test file
  6. * test/CookieStorageTest.cc
  7. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Check both EAGAIN and EWOULDBLOCK
  9. * src/SocketCore.cc
  10. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Removed ret == 0 checking for SSL_read(), SSL_write() and
  12. SSL_peek() because the checks are done in the caller. In
  13. SocketBuffer::send(), throw exception if nothing could be written
  14. and socket error was not EWOULDBLOCK
  15. * src/SocketBuffer.cc
  16. * src/SocketCore.cc
  17. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Fixed error code handling so that it can handle Winsock2 error
  19. code.
  20. * src/SocketCore.cc
  21. * src/SocketCore.h
  22. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  23. Bump up version number to 1.9.0a
  24. * configure.ac
  25. * doc/aria2c.1.txt
  26. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  27. Fixed the bug that aria2 doesn't handle return value if error
  28. occurred before download begins.
  29. * src/MultiUrlRequestInfo.cc
  30. * src/main.cc
  31. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Removed SegmentManFactory class.
  33. * src/AbstractSegmentManFactory.h
  34. * src/DefaultSegmentManFactory.cc
  35. * src/DefaultSegmentManFactory.h
  36. * src/Makefile.am
  37. * src/RequestGroup.cc
  38. * src/RequestGroup.h
  39. * src/SegmentManFactory.h
  40. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Destroyed digest context after getting calculated hash.
  42. * src/Piece.cc
  43. * src/Piece.h
  44. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Removed BitfieldManFactory class.
  46. * src/BitfieldManFactory.cc
  47. * src/BitfieldManFactory.h
  48. * src/DefaultPieceStorage.cc
  49. * src/Makefile.am
  50. * src/PeerSessionResource.cc
  51. * src/Piece.cc
  52. * src/main.cc
  53. * test/DefaultPieceStorageTest.cc
  54. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Removed unused methods from BitfieldMan class. Moved
  56. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  57. class.
  58. * src/BitfieldMan.cc
  59. * src/BitfieldMan.h
  60. * src/BitfieldManFactory.cc
  61. * src/BitfieldManFactory.h
  62. * src/bitfield.h
  63. * src/main.cc
  64. * test/BitfieldManTest.cc
  65. * test/DefaultPieceStorageTest.cc
  66. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Moved getFirstNMissingIndex to bitfield.h and made it return the
  68. number of appended indexes.
  69. * src/BitfieldMan.cc
  70. * src/BitfieldMan.h
  71. * src/Piece.cc
  72. * src/Piece.h
  73. * src/bitfield.h
  74. * test/BitfieldManTest.cc
  75. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Added more tests.
  77. * test/BitfieldManTest.cc
  78. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  79. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  80. unused block indexes at once instead of calling
  81. getFirstMissingUnusedIndex() multiple times. Made use of it in
  82. Piece class and DefaultBtRequestFactory class via Piece class.
  83. * src/BitfieldMan.cc
  84. * src/BitfieldMan.h
  85. * src/DefaultBtRequestFactory.cc
  86. * src/Piece.cc
  87. * src/Piece.h
  88. * test/BitfieldManTest.cc
  89. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Use std::make_pair(...)
  91. * src/DHTMessageTracker.cc
  92. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Use std::make_pair(...)
  94. * src/bittorrent_helper.cc
  95. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. urlencode(removeFragment(...)) in parseUrl(...)
  97. * src/Request.cc
  98. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  100. * src/AbstractCommand.cc
  101. * src/AdaptiveURISelector.cc
  102. * src/BtPieceMessage.cc
  103. * src/BtPortMessage.cc
  104. * src/CreateRequestCommand.cc
  105. * src/DHTAbstractNodeLookupTask.cc
  106. * src/DHTBucket.cc
  107. * src/DHTGetPeersCommand.cc
  108. * src/DHTMessageDispatcherImpl.cc
  109. * src/DHTMessageFactoryImpl.cc
  110. * src/DHTMessageTracker.cc
  111. * src/DHTPeerAnnounceStorage.cc
  112. * src/DHTRoutingTable.cc
  113. * src/DHTSetup.cc
  114. * src/DefaultBtAnnounce.cc
  115. * src/DefaultBtInteractive.cc
  116. * src/DefaultBtMessageDispatcher.cc
  117. * src/DefaultBtMessageReceiver.cc
  118. * src/DefaultBtProgressInfoFile.cc
  119. * src/DefaultBtRequestFactory.cc
  120. * src/DefaultPeerStorage.cc
  121. * src/DefaultPieceStorage.cc
  122. * src/DownloadCommand.cc
  123. * src/DownloadEngine.cc
  124. * src/EpollEventPoll.cc
  125. * src/FileAllocationCommand.cc
  126. * src/FileEntry.cc
  127. * src/FtpNegotiationCommand.cc
  128. * src/HandshakeExtensionMessage.cc
  129. * src/HttpListenCommand.cc
  130. * src/HttpServer.cc
  131. * src/HttpSkipResponseCommand.cc
  132. * src/IteratableChunkChecksumValidator.cc
  133. * src/Logger.h
  134. * src/MSEHandshake.cc
  135. * src/MetalinkPostDownloadHandler.cc
  136. * src/MultiDiskAdaptor.cc
  137. * src/PeerAbstractCommand.cc
  138. * src/PeerConnection.cc
  139. * src/PeerListenCommand.cc
  140. * src/PeerReceiveHandshakeCommand.cc
  141. * src/RequestGroup.cc
  142. * src/RequestGroupMan.cc
  143. * src/SegmentMan.cc
  144. * src/SelectEventPoll.cc
  145. * src/ServerStat.cc
  146. * src/SimpleBtMessage.cc
  147. * src/SocketCore.cc
  148. * src/TrackerWatcherCommand.cc
  149. * src/UTMetadataDataExtensionMessage.cc
  150. * src/UTMetadataRequestFactory.cc
  151. * src/UTMetadataRequestTracker.cc
  152. * src/XmlRpcMethod.cc
  153. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Changed log level from debug to info
  155. * src/BtDependency.cc
  156. * src/BtPostDownloadHandler.cc
  157. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Removed unused PeerSessionResource::_latency.
  159. * src/BtConstants.h
  160. * src/BtPieceMessage.cc
  161. * src/Peer.cc
  162. * src/Peer.h
  163. * src/PeerSessionResource.cc
  164. * src/PeerSessionResource.h
  165. * test/PeerSessionResourceTest.cc
  166. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Fixed the bug that --file-allocation=falloc doesn't work with
  168. single file download.
  169. * src/AbstractSingleDiskAdaptor.cc
  170. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  171. Release 1.8.2
  172. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Added Portuguese translation. Updated Ukrainian and Spanish
  174. translation. Thanks to all translators.
  175. * po/LINGUAS
  176. * po/es.po
  177. * po/pt.po
  178. * po/uk.po
  179. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  180. Remove fragment from redirected URI.
  181. * src/Request.cc
  182. * test/RequestTest.cc
  183. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Updated po templates.
  185. * po/aria2.pot
  186. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  187. Drop legacy ifdef for ares support and code cleanup.
  188. * src/AsyncNameResolver.cc
  189. * src/AsyncNameResolver.h
  190. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Call ares_library_init and ares_library_cleanup if they are
  192. available. Some code cleanups.
  193. * src/Platform.cc
  194. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Call ares_process_fd() each time after epoll to handle timeout.
  196. * src/EpollEventPoll.cc
  197. * src/EpollEventPoll.h
  198. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Suppressed type-cast compiler warning
  200. * src/CookieStorage.cc
  201. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Fixed compile error on Mac OS X.
  203. * src/CookieStorage.h
  204. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Removed cookietest.txt from Makefile.am
  206. * test/Makefile.am
  207. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Updated version number in man page.
  209. * doc/aria2c.1.txt
  210. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  211. Rewritten help message for --allow-overwrite option.
  212. * doc/aria2c.1.txt
  213. * src/usage_text.h
  214. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. Added bittorrent key to the response of tellStatus XML-RPC method.
  216. The associated value of the key is a struct and contains data
  217. retrieved from .torrent file, such as name, announce-list,
  218. comment, etc.
  219. * doc/aria2c.1.txt
  220. * src/XmlRpcMethodImpl.cc
  221. * src/XmlRpcMethodImpl.h
  222. * test/XmlRpcMethodTest.cc
  223. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. Removed parse(std::istream&) and parse(const std::string&) from
  225. CookieParser.
  226. * src/CookieParser.cc
  227. * src/CookieParser.h
  228. * test/CookieParserTest.cc
  229. * test/cookietest.txt: Removed
  230. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  231. Fixed the bug that cookie for domain a.b.c is not sent to the host
  232. a.b.c if no other cookies are stored. Fixed the bug that
  233. Cookie::markOriginServerOnly() is not called when cookies are
  234. loaded from file/sqlite3 database.
  235. * src/Cookie.h
  236. * src/CookieStorage.cc
  237. * src/NsCookieParser.cc
  238. * src/Sqlite3MozCookieParser.cc
  239. * test/CookieStorageTest.cc
  240. * test/NsCookieParserTest.cc
  241. * test/Sqlite3MozCookieParserTest.cc
  242. * test/cookies.sqlite
  243. * test/nscookietest.txt
  244. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  246. both _pieceStorage and _segmentMan are initialized or they are
  247. not.
  248. * src/RequestGroup.cc
  249. * src/RequestGroup.h
  250. * test/BtDependencyTest.cc
  251. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  252. Bump up version number to 1.8.2
  253. * configure.ac
  254. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Replaced "." with A2STR::DOT_C
  256. * src/AbstractCommand.cc
  257. * src/Cookie.cc
  258. * src/DownloadContext.cc
  259. * src/FtpConnection.cc
  260. * src/RequestGroup.cc
  261. * src/util.cc
  262. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Replaced isNumberAndDotsNotation() with isNumericHost().
  264. isNumericHost() can handle IPv6 address.
  265. * src/Cookie.cc
  266. * src/CookieStorage.cc
  267. * src/util.cc
  268. * src/util.h
  269. * test/CookieTest.cc
  270. * test/UtilTest.cc
  271. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Included A2STR.h
  273. * src/CookieStorage.cc
  274. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  275. Rewritten Cookie storage.
  276. * src/Cookie.cc
  277. * src/Cookie.h
  278. * src/CookieParser.cc
  279. * src/CookieStorage.cc
  280. * src/CookieStorage.h
  281. * src/a2functional.h
  282. * test/CookieParserTest.cc
  283. * test/CookieStorageTest.cc
  284. * test/CookieTest.cc
  285. * test/HttpResponseTest.cc
  286. * test/TestUtil.h
  287. * test/a2functionalTest.cc
  288. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  289. Handle redirected URI which is not properly percent encoded.
  290. * src/Request.cc
  291. * test/RequestTest.cc
  292. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  293. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  294. not found' in the N times(N is where --max-file-not-found=N, N>0)
  295. in a row without single '200 OK' response.
  296. * src/RequestGroup.cc.
  297. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  299. readout by 80 characters in mingw32 build. Catch exception in
  300. DHTMessageReceiver::receiveMessage().
  301. * src/AbstractDiskWriter.cc
  302. * src/ConsoleStatCalc.cc
  303. * src/DHTMessageReceiver.cc
  304. * src/File.cc
  305. * src/RequestGroupMan.cc
  306. * src/a2io.h
  307. * test/FileTest.cc
  308. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Fixed compile error with intel compiler
  310. * src/XmlRpcMethodImpl.cc
  311. * src/XmlRpcMethodImpl.h
  312. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. Release 1.8.1
  314. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  315. Updated Swedish, Russian and Italian translations. Thanks to all
  316. translators.
  317. * po/it.po
  318. * po/ru.po
  319. * po/sv.po
  320. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Fixed broken OptionParser::findByName().
  322. * src/OptionParser.cc
  323. * test/OptionParserTest.cc
  324. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Fixed test error without BitTorrent support.
  326. * test/XmlRpcMethodTest.cc
  327. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Fixed compile error without GNUTLS/OpenSSL.
  329. * src/util.cc
  330. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Changed compression level to Z_DEFAULT_COMPRESSION.
  332. * src/GZipEncoder.cc
  333. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Added missing command line options: --http-no-cache,
  335. --bt-save-metadata and --bt-metadata-only.
  336. * doc/xmlrpc/aria2rpc
  337. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  338. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  339. client accepts gzip content encoding.
  340. * src/A2STR.cc
  341. * src/A2STR.h
  342. * src/GZipEncoder.cc
  343. * src/GZipEncoder.h
  344. * src/HttpHeader.cc
  345. * src/HttpHeader.h
  346. * src/HttpServer.cc
  347. * src/HttpServer.h
  348. * src/HttpServerBodyCommand.cc
  349. * src/HttpServerCommand.cc
  350. * src/Makefile.am
  351. * src/XmlRpcResponse.cc
  352. * src/XmlRpcResponse.h
  353. * test/GZipEncoderTest.cc
  354. * test/Makefile.am
  355. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Added XML-RPC client sample code in Python.
  357. * doc/aria2c.1.txt
  358. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Updated po templates.
  360. * po/aria2.pot
  361. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Bump up version number to 1.8.1
  363. * configure.ac
  364. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Added version number to man page. Updated copyright year in man
  366. page.
  367. * doc/aria2c.1.txt
  368. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  369. Rewritten toTagString
  370. * src/NameMatchOptionHandler.cc
  371. * test/OptionHandlerTest.cc
  372. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Added dir and files key to the response struct of aria2.tellStatus
  374. XML-RPC method. The value associated with files key is the list
  375. of files. Its element is the same struct used in aria2.getFiles
  376. XML-RPC method. Added uris key to the response struct of
  377. aria2.getFiles XML-RPC method. The value associated with uris key
  378. is the list of URIs. Its element is the same struct used in
  379. aria2.getUris XML-RPC method.
  380. * doc/aria2c.1.txt
  381. * src/XmlRpcMethodImpl.cc
  382. * test/XmlRpcMethodTest.cc
  383. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Added aria2.getSessionInfo XML-RPC method. This method returns a
  385. struct containing Session ID, which is generated each time when
  386. aria2 is invoked.
  387. * doc/aria2c.1.txt
  388. * doc/xmlrpc/aria2rpc
  389. * src/DownloadEngine.cc
  390. * src/DownloadEngine.h
  391. * src/XmlRpcMethodFactory.cc
  392. * src/XmlRpcMethodImpl.cc
  393. * src/XmlRpcMethodImpl.h
  394. * test/XmlRpcMethodTest.cc
  395. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Moved generateRandomKey() from bittorrent_helper to util.
  397. * src/DHTBucket.cc
  398. * src/DHTNode.cc
  399. * src/bittorrent_helper.cc
  400. * src/bittorrent_helper.h
  401. * src/util.cc
  402. * src/util.h
  403. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Updated doc about GID.
  405. * doc/aria2c.1.txt
  406. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  408. accepts a negative integer. 'offset' == -1 points last download
  409. in the waiting queue and 'offset' == -2 points the download before
  410. the last download, and so on. The downloads in the response are in
  411. reversed order.
  412. * doc/aria2c.1.txt
  413. * src/XmlRpcMethodImpl.cc
  414. * src/XmlRpcMethodImpl.h
  415. * test/XmlRpcMethodTest.cc
  416. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  417. Added --human-readable option. This option, when true is given,
  418. prints sizes and speed in human readable format(e.g., 1.2Ki,
  419. 3.4Mi) in the console readout. The default value is true and it
  420. looks exactly the same as aria2-1.8.0. So the 'new feature'
  421. appears when false is given. In this case, sizes and speed are
  422. printed without in bytes. No Ki, Mi units conversion is used.
  423. This may be useful for a program to parse the output of aria2.
  424. * doc/aria2c.1.txt
  425. * src/ConsoleStatCalc.cc
  426. * src/ConsoleStatCalc.h
  427. * src/OptionHandlerFactory.cc
  428. * src/main.cc
  429. * src/prefs.cc
  430. * src/prefs.h
  431. * src/usage_text.h
  432. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  434. option accepts empty string "". When "" is given, it erases
  435. previously defined proxy.
  436. * doc/aria2c.1.txt
  437. * src/OptionHandlerImpl.h
  438. * src/usage_text.h
  439. * test/OptionHandlerTest.cc
  440. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  441. Code cleanup for proxy URI handling.
  442. * src/AbstractCommand.cc
  443. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Added --bt-metadata-only option. If true is given to this option,
  445. aria2 downloads metadata only. The file(s) described in metadata
  446. will not be downloaded. This option has effect only when
  447. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  448. * doc/aria2c.1.txt
  449. * src/OptionHandlerFactory.cc
  450. * src/UTMetadataPostDownloadHandler.cc
  451. * src/download_helper.cc
  452. * src/prefs.cc
  453. * src/prefs.h
  454. * src/usage_text.h
  455. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Fixed memory leak. Commands stored in std::deque<Command*> are not
  457. deleted when exception is thrown. Make sure that when passing
  458. std::deque<Command*> to function to store Commands, handle
  459. exception and delete these Commands.
  460. * src/AbstractCommand.cc
  461. * src/CheckIntegrityCommand.cc
  462. * src/FileAllocationCommand.cc
  463. * src/RequestGroup.cc
  464. * src/TrackerWatcherCommand.cc
  465. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  467. * src/A2STR.cc
  468. * src/A2STR.h
  469. * src/FtpNegotiationCommand.cc
  470. * src/HttpResponseCommand.cc
  471. * src/util.cc
  472. * src/util.h
  473. * test/UtilTest.cc
  474. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Treat --dir="" as --dir="."
  476. * src/FtpNegotiationCommand.cc
  477. * src/HttpResponseCommand.cc
  478. * src/Metalink2RequestGroup.cc
  479. * src/UTMetadataPostDownloadHandler.cc
  480. * src/bittorrent_helper.cc
  481. * src/download_helper.cc
  482. * src/util.cc
  483. * src/util.h
  484. * test/UtilTest.cc
  485. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Code clean up.
  487. * src/main.cc
  488. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Reset GID to 1 when they reach maximum value. Rewritten
  490. CUIDCounter::newID()
  491. * src/CUIDCounter.h
  492. * src/RequestGroup.cc
  493. * src/RequestGroup.h
  494. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Documented --http-no-cache option in man page.
  496. * doc/aria2c.1.txt
  497. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Added --http-no-cache option. When true is given, aria2 sends
  499. Cache-Control: no-cache and Pragma: no-cache header to avoid
  500. cached content. If false is given , these headers are not sent
  501. and you can add Cache-Control header with a directive you like
  502. using --header option.
  503. * src/HttpRequest.cc
  504. * src/HttpRequest.h
  505. * src/HttpRequestCommand.cc
  506. * src/OptionHandlerFactory.cc
  507. * src/download_helper.cc
  508. * src/prefs.cc
  509. * src/prefs.h
  510. * src/usage_text.h
  511. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  512. Removed Logger from OptionParser. When OptionParser is used to
  513. parse options at bootstrap, LogFactory is not configured yet
  514. properly. When LogFactory is used in OptionParser, it initializes
  515. itself to return a logger which has no ability to write log to the
  516. disk.
  517. * src/OptionParser.cc
  518. * src/OptionParser.h
  519. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Added following sentance to the help message of --out option:
  521. --out option is ignored when -Z is used.
  522. * doc/aria2c.1.txt
  523. * src/usage_text.h
  524. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Added --bt-save-metadata option to -i list options.
  526. * doc/aria2c.1.txt
  527. * src/download_helper.cc
  528. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  530. additional libraries.
  531. * src/MultiUrlRequestInfo.cc
  532. * src/NameResolver.cc
  533. * src/SelectEventPoll.cc
  534. * src/SelectEventPoll.h
  535. * src/SocketCore.cc
  536. * src/SocketCore.h
  537. * src/a2netcompat.h
  538. * src/daemon.cc
  539. * src/main.cc
  540. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  541. Fixed typo.
  542. * src/DHTMessageReceiver.cc
  543. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  544. Fixed the bug that causes segmentation fault if unknown option is
  545. put in aria2.conf file. BUG#2928303
  546. * src/OptionParser.cc
  547. * src/OptionParser.h
  548. * src/option_processing.cc
  549. * test/OptionParserTest.cc
  550. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Ignore port message with port=0.
  552. * src/BtPortMessage.cc
  553. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Run autoupdate
  555. * configure.ac
  556. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  557. Updated autoconf/automake auxiliary files.
  558. * INSTALL
  559. * config.guess
  560. * config.sub
  561. * depcomp
  562. * install-sh
  563. * m4/intldir.m4
  564. * missing
  565. * mkinstalldirs
  566. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  567. Removed unused function.
  568. * src/SharedHandle.h
  569. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Find pooled socket using all cached addresses.
  571. * src/DNSCache.h
  572. * src/DownloadEngine.cc
  573. * src/DownloadEngine.h
  574. * src/InitiateConnectionCommand.cc
  575. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Updated copyright year.
  577. * src/version_usage.cc
  578. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Pool connection if _contentEncodingDecoder is used and server
  580. supports persistent connection.
  581. * src/HttpDownloadCommand.cc
  582. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Updated doc.
  584. * src/DownloadCommand.cc
  585. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Untabify. Fixed one line in copyright which is longer than 80
  587. columns.
  588. * src
  589. * test
  590. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Release 1.8.0
  592. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Updated po templates.
  594. * po/aria2.pot
  595. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  596. Documented --bt-save-metadata option in man page.
  597. * doc/aria2c.1.txt
  598. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Fixed usage of --bt-save-metadata option.
  600. * src/usage_text.h
  601. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. Updated po templates.
  603. * po/aria2.pot
  604. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  606. causes name resolution error when none of network interface has
  607. IPv4 address.
  608. * src/main.cc
  609. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Bump up version number to 1.8.0.
  611. * configure.ac
  612. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Use info hash as a filename when saving BitTorrent metadata.
  614. * src/UTMetadataPostDownloadHandler.cc
  615. * test/UTMetadataPostDownloadHandlerTest.cc
  616. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Documented system.multicall XML-RPC method in man page.
  618. * doc/aria2c.1.txt
  619. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Added signal handler for SIGHUP to save .aria2 file when terminal
  621. is closed. The handler is the same one for SIGINT and SIGTERM.
  622. * src/MultiUrlRequestInfo.cc
  623. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Defined method name in XmlRpcMethod subclasses.
  625. * src/XmlRpcMethodFactory.cc
  626. * src/XmlRpcMethodImpl.cc
  627. * src/XmlRpcMethodImpl.h
  628. * test/XmlRpcMethodTest.cc
  629. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Added system.multicall XML-RPC method.
  631. * src/XmlRpcMethod.cc
  632. * src/XmlRpcMethod.h
  633. * src/XmlRpcMethodFactory.cc
  634. * src/XmlRpcMethodImpl.cc
  635. * src/XmlRpcMethodImpl.h
  636. * test/XmlRpcMethodTest.cc
  637. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Check structure depth when decoding.
  639. * src/bencode.cc
  640. * src/bencode.h
  641. * test/BencodeTest.cc
  642. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Documented tellStopped XML-RPC method in man page.
  644. * doc/aria2c.1.txt
  645. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  646. Added tellStopped XML-RPC method to aria2rpc.
  647. * doc/xmlrpc/aria2rpc
  648. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  649. Added tellStopped XML-RPC method. This method returns stopped
  650. download in the specified range. It takes same parameters with
  651. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  652. * src/XmlRpcMethodFactory.cc
  653. * src/XmlRpcMethodImpl.cc
  654. * src/XmlRpcMethodImpl.h
  655. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  657. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  658. when conducting unit tests because they fail if networking
  659. interface is not configured with IPv4 address.
  660. * src/NameResolver.cc
  661. * src/SocketCore.cc
  662. * src/SocketCore.h
  663. * src/a2netcompat.h
  664. * test/AllTest.cc
  665. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Fixed unit test error
  667. * test/UTMetadataPostDownloadHandlerTest.cc
  668. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. Defined static string constants for efficiency.
  670. * src/XmlRpcMethodImpl.cc
  671. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Added --bt-save-metadata option. When true is given, it saves
  673. metadata as .torrent file. This option has effect only when
  674. BitTorrent Magnet URI is used. The filename is name in metadata
  675. with suffix .torrent. The directory to be saved is the same
  676. directory where download file is saved. If the same file already
  677. exists, metdata is not saved.
  678. * src/OptionHandlerFactory.cc
  679. * src/UTMetadataPostDownloadHandler.cc
  680. * src/UTMetadataPostDownloadHandler.h
  681. * src/message.h
  682. * src/prefs.cc
  683. * src/prefs.h
  684. * src/usage_text.h
  685. * test/UTMetadataDataExtensionMessageTest.cc
  686. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Added util::saveAs() function. Use it in Signature::save().
  688. * src/Signature.cc
  689. * src/util.cc
  690. * src/util.h
  691. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. Upcase info hash in Magnet URI.
  693. * doc/aria2c.1.txt
  694. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Refactored RequestGroupMan::changeReservedGroupPosition()
  696. * src/RequestGroupMan.cc
  697. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Updated the description for aria2.addTorrent XML-RPC method.
  699. * doc/aria2c.1.txt
  700. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Added changePosition to aria2rpc.
  702. * doc/xmlrpc/aria2rpc
  703. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Documented changePosition XML-RPC method in man page.
  705. * doc/aria2c.1.txt
  706. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  707. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  708. pos and how. This method changes the position of download denoted
  709. by gid. If how is POS_SET, it moves the download to a position
  710. relative to the beginning of the queue. If how is POS_CUR, it
  711. moves the download to a position relative to the current
  712. position. If how is POS_END, it moves the download to a position
  713. relative to the end of the queue. If the destination position is
  714. less than 0 or beyond the end of the queue, it moves the download
  715. to the beginning or the end of the queue respectively. Returns
  716. the destination position.
  717. * src/RequestGroupMan.cc
  718. * src/RequestGroupMan.h
  719. * src/XmlRpcMethodFactory.cc
  720. * src/XmlRpcMethodImpl.cc
  721. * src/XmlRpcMethodImpl.h
  722. * test/RequestGroupManTest.cc
  723. * test/XmlRpcMethodTest.cc
  724. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  725. Added getOption and getGlobalOption to aria2rpc.
  726. * doc/xmlrpc/aria2rpc
  727. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Documented getOption and getGlobalOption XML-RPC method in man
  729. page
  730. * doc/aria2c.1.txt
  731. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Added getOption and getGlobalOption XML-RPC method. getOption
  733. takes GID as a parameter and returns its options as struct.
  734. getGlobalOption takes no parameter and returns global
  735. options. Because global option is used as a template for the
  736. option of newly added downloads, it includes options returned by
  737. getOption.
  738. * src/Option.h
  739. * src/XmlRpcMethodFactory.cc
  740. * src/XmlRpcMethodImpl.cc
  741. * src/XmlRpcMethodImpl.h
  742. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Sort _optionHandlers in OptionParser by name in ascending order.
  744. Use vector instead of deque for efficiency.
  745. * src/OptionHandler.h
  746. * src/OptionHandlerFactory.h
  747. * src/OptionParser.cc
  748. * src/OptionParser.h
  749. * src/version_usage.cc
  750. * test/OptionParserTest.cc
  751. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Code cleanup
  753. * src/XmlRpcMethod.cc
  754. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Documented about followedBy and belongsTo in man page.
  756. * doc/aria2c.1.txt
  757. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. Added following 2 keys, followedBy and belongsTo, to the response
  759. of tellStatus.
  760. followedBy: List of GIDs which are generated by the consequence of
  761. this download. For example, when aria2 downloaded Metalink file,
  762. it generates downloads described in it(see *--follow-metalink*
  763. option). This value is useful to track these auto generated
  764. downloads. If there is no such downloads, this key will not be
  765. included in the response.
  766. belongsTo: GID of a parent download. Some downloads are a part of
  767. another download. For example, if a file in Metalink has
  768. BitTorrent resource, the download of .torrent is a part of that
  769. file. If this download has no parent, this key will not be
  770. included in the response.
  771. * src/BtPostDownloadHandler.cc
  772. * src/DownloadResult.h
  773. * src/Metalink2RequestGroup.cc
  774. * src/MetalinkPostDownloadHandler.cc
  775. * src/RequestGroup.cc
  776. * src/RequestGroup.h
  777. * src/UTMetadataPostDownloadHandler.cc
  778. * src/XmlRpcMethodImpl.cc
  779. * src/XmlRpcMethodImpl.h
  780. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Assigned BObject in BDE() to avoid segmentation fault when calling
  782. methods of BDE::none().
  783. * src/BDE.cc
  784. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  785. Show info hash in Magnet URI in upper case letters in -S output.
  786. * src/bittorrent_helper.cc
  787. * test/BittorrentHelperTest.cc
  788. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Removed old useless comment
  790. * src/MultiUrlRequestInfo.cc
  791. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  793. not properly used in configure script and failed to detect gnutls.
  794. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  795. and the initialization of pkg-config is done in first occurrence
  796. of PKG_CHECK_MODULES which is not executed because it is inside of
  797. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  798. * configure.ac
  799. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Release 1.7.2
  801. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Fixed the bug that RequestGroupMan::downloadFinished() returns
  803. true even if all downloads haven't finished, especially when
  804. PostDownloadHandler is involved. Changed the condition so that it
  805. only returns true if both _requestGroups and _reservedGroups are
  806. empty.
  807. * src/RequestGroupMan.cc
  808. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Log listening port for BitTorrent/DHT in notice level.
  810. * src/DHTConnectionImpl.cc
  811. * src/PeerListenCommand.cc
  812. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Updated po templates.
  814. * po/aria2.pot
  815. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. Bump up version number to 1.7.2
  817. * configure.ac
  818. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Changed default value of --enable-dht from 'false' to 'true'.
  820. * doc/aria2c.1.txt
  821. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Enabled DHT by default because of Magnet URI support. To disable
  823. DHT, use --enable-dht=false
  824. * src/OptionHandlerFactory.cc
  825. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Print Magnet URI in -S output.
  827. * src/AnnounceList.cc
  828. * src/bittorrent_helper.cc
  829. * src/bittorrent_helper.h
  830. * test/BittorrentHelperTest.cc
  831. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Added --bt-prioritize-piece option to aria2rpc.
  833. * doc/xmlrpc/aria2rpc
  834. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Refer Magnet URI in --help. Made some cosmetic changes.
  836. * src/version_usage.cc
  837. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Updated -T and -M option.
  839. * doc/aria2c.1.txt
  840. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Fixed typo
  842. * doc/aria2c.1.txt
  843. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Fixed the bug that line separator is missing in horizontal bar.
  845. * doc/xmlrpc/aria2mon
  846. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Updated usage text for --metalink-file option.
  848. * src/usage_text.h
  849. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. If '-' is given as an argument to --metalink-file option, aria2
  851. reads Metalink file from stdin.
  852. * src/OptionHandlerFactory.cc
  853. * src/OptionHandlerImpl.h
  854. * src/a2io.h
  855. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Fixed the bug that aria2 listens wrong port if --interface option
  857. is used.
  858. * src/SocketCore.cc
  859. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Fixed the bug that query parameter in magnet URI is not decoded.
  861. * src/magnet.cc
  862. * test/MagnetTest.cc
  863. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Specified defaultSize as an argument for easy testing.
  865. * src/util.cc
  866. * src/util.h
  867. * test/UtilTest.cc
  868. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Release 1.7.1
  870. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  871. Bump up version number to 1.7.1
  872. * configure.ac
  873. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Fixed the bug --bt-prioritize-piece=tail is not working.
  875. * src/util.cc
  876. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. Release 1.7.0
  878. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  879. Updated po templates.
  880. * po/aria2.pot
  881. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  882. Updated help message for --bt-prioritize-piece. Some cosmetic
  883. changes.
  884. * doc/aria2c.1.txt
  885. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  887. * src/usage_text.h
  888. * src/util.cc
  889. * test/UtilTest.cc
  890. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Updated Russian, Ukrainian, German and French translations.
  892. Thanks to all translators involved.
  893. * po/de.po
  894. * po/fr.po
  895. * po/ru.po
  896. * po/uk.po
  897. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Mentioned about pkg-config
  899. * README
  900. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Fixed typo. Referred --index-out option in BitTorrent notes.
  902. * README
  903. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Store all addresses found by getifaddrs() and getaddrinfo(). In
  905. bind, try all addresses until success
  906. * src/SocketCore.cc
  907. * src/SocketCore.h
  908. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Updated po templates.
  910. * po/aria2.pot
  911. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Bump up version number to 1.7.0
  913. * configure.ac
  914. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  915. Fixed compile error if ENABLE_BITTORRENT is undefined.
  916. * src/DefaultPieceStorage.cc
  917. * src/DefaultPieceStorage.h
  918. * src/PieceStorage.h
  919. * src/UnknownLengthPieceStorage.cc
  920. * src/UnknownLengthPieceStorage.h
  921. * test/MockPieceStorage.h
  922. * test/ProtocolDetectorTest.cc
  923. * test/XmlRpcMethodTest.cc
  924. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Documented in man page that if getifaddrs() is missing,
  926. --interface option doesn't accept interface name.
  927. * doc/aria2c.1.txt
  928. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  930. * src/DefaultBtAnnounce.cc
  931. * src/DefaultBtAnnounce.h
  932. * test/DefaultBtAnnounceTest.cc
  933. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Fixed the bug that connection is always dropped if handshake
  935. message in extension protocol don't have metadata_size.
  936. src/HandshakeExtensionMessage.cc
  937. * src/HandshakeExtensionMessage.cc
  938. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  940. text saying DHT is recommended when Magnet URI is provided.
  941. * doc/aria2c.1.txt
  942. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  944. URI is supplied. Notify user that they should consider enabling
  945. DHT if they use Magnet URI.
  946. * src/RequestGroup.cc
  947. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Added --disable-ipv6 option to disable IPv6.
  949. * doc/aria2c.1.txt
  950. * src/InitiateConnectionCommand.cc
  951. * src/NameResolver.cc
  952. * src/NameResolver.h
  953. * src/OptionHandlerFactory.cc
  954. * src/main.cc
  955. * src/prefs.cc
  956. * src/prefs.h
  957. * src/usage_text.h
  958. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Updated usage text for --bt-prioritize-piece option.
  960. * doc/aria2c.1.txt
  961. * src/usage_text.h
  962. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. In configure script, if --with-PACKAGE and --enable-FEATURE are
  964. given and PACKAGE is missing in the system or FEATURE cannot be
  965. enabled, print error message and stop the script.
  966. * configure.ac
  967. * m4/aria2_arg.m4
  968. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  969. Halt metadata download immediately when metadata download is done.
  970. Don't wait unresponsive tracker.
  971. * src/ByteArrayDiskWriter.h
  972. * src/DefaultBtInteractive.cc
  973. * src/DefaultExtensionMessageFactory.cc
  974. * src/DefaultExtensionMessageFactory.h
  975. * src/PeerInteractionCommand.cc
  976. * src/UTMetadataDataExtensionMessage.cc
  977. * src/UTMetadataDataExtensionMessage.h
  978. * src/UTMetadataRequestExtensionMessage.cc
  979. * test/UTMetadataDataExtensionMessageTest.cc
  980. * test/UTMetadataRequestExtensionMessageTest.cc
  981. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. Documented --interface option in man page.
  983. * doc/aria2c.1.txt
  984. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Try resolved address in the order received from the resolver.
  986. * src/DNSCache.h
  987. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Added debug logs.
  989. * src/SocketCore.cc
  990. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  991. Fixed type of tail to uint64_t
  992. * src/util.cc
  993. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Added --interface option. This feature binds sockets to given
  995. interface. You can specify interface name, IP address and
  996. hostname.
  997. * configure.ac
  998. * src/OptionHandlerFactory.cc
  999. * src/SocketCore.cc
  1000. * src/SocketCore.h
  1001. * src/main.cc
  1002. * src/message.h
  1003. * src/prefs.cc
  1004. * src/prefs.h
  1005. * src/usage_text.h
  1006. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Updated man page for bt-prioritize-piece option in -i list.
  1008. * doc/aria2c.1.txt
  1009. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Added bt-prioritize-piece option to -i list.
  1011. * src/download_helper.cc
  1012. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Removed --http-auth-scheme option from man page.
  1014. * doc/aria2c.1.txt
  1015. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Removed --http-auth-scheme option since it doesn't do nothing.
  1017. * src/OptionHandlerFactory.cc
  1018. * src/prefs.cc
  1019. * src/prefs.h
  1020. * src/usage_text.h
  1021. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Adjusted the number of peer info which get_peers reply message can
  1023. carry.
  1024. * src/DHTGetPeersReplyMessage.cc
  1025. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Added extension_message_test_helper.h to aria2c_SOURCES.
  1027. * test/Makefile.am
  1028. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Documented --bt-prioritize-piece option in man page.
  1030. * doc/aria2c.1.txt
  1031. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Added option --bt-prioritize-piece. This option instruct aria2 to
  1033. try to download first and last pieces of each file first. The
  1034. argument can contain 2 keywords:head and tail. To include both
  1035. keywords, they must be separated by comma. These keywords can take
  1036. one parameter, SIZE. For example , if head=SIZE is specified,
  1037. pieces in the range of first SIZE bytes of each file get higher
  1038. priority. tail=SIZE means the range of last SIZE bytes of each
  1039. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1040. * src/DefaultPieceStorage.h
  1041. * src/Makefile.am
  1042. * src/OptionHandlerFactory.cc
  1043. * src/OptionHandlerImpl.h
  1044. * src/PriorityPieceSelector.cc
  1045. * src/PriorityPieceSelector.h
  1046. * src/RequestGroup.cc
  1047. * src/prefs.cc
  1048. * src/prefs.h
  1049. * src/usage_text.h
  1050. * src/util.cc
  1051. * src/util.h
  1052. * test/Makefile.am
  1053. * test/MockPieceSelector.h
  1054. * test/PriorityPieceSelectorTest.cc
  1055. * test/UtilTest.cc
  1056. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Fixed typo
  1058. * src/HttpRequest.h
  1059. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. In Magnet URI with tr parameter, put each announce URI in separate
  1061. tier.
  1062. * src/bittorrent_helper.cc
  1063. * test/BittorrentHelperTest.cc
  1064. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Renamed ExtensionMessage::getBencodedData() as
  1066. ExtensionMessage::getPayload()
  1067. * src/BtExtendedMessage.cc
  1068. * src/ExtensionMessage.h
  1069. * src/HandshakeExtensionMessage.cc
  1070. * src/HandshakeExtensionMessage.h
  1071. * src/UTMetadataDataExtensionMessage.cc
  1072. * src/UTMetadataDataExtensionMessage.h
  1073. * src/UTMetadataRejectExtensionMessage.cc
  1074. * src/UTMetadataRejectExtensionMessage.h
  1075. * src/UTMetadataRequestExtensionMessage.cc
  1076. * src/UTMetadataRequestExtensionMessage.h
  1077. * src/UTPexExtensionMessage.cc
  1078. * src/UTPexExtensionMessage.h
  1079. * test/HandshakeExtensionMessageTest.cc
  1080. * test/MockExtensionMessage.h
  1081. * test/UTMetadataDataExtensionMessageTest.cc
  1082. * test/UTMetadataRejectExtensionMessageTest.cc
  1083. * test/UTMetadataRequestExtensionMessageTest.cc
  1084. * test/UTPexExtensionMessageTest.cc
  1085. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Updated man page for BitTorrent Magnet URI.
  1087. * doc/aria2c.1.txt
  1088. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Call DownloadContext::setOwnerRequestGroup() in
  1090. RequestGroup::setDownloadContext().
  1091. * src/BtDependency.cc
  1092. * src/RequestGroup.cc
  1093. * src/RequestGroup.h
  1094. * src/download_helper.cc
  1095. * test/DefaultBtMessageDispatcherTest.cc
  1096. * test/DefaultExtensionMessageFactoryTest.cc
  1097. * test/HandshakeExtensionMessageTest.cc
  1098. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1100. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1101. from metadata, use new metadata2Torrent() function.
  1102. * src/BtDependency.cc
  1103. * src/UTMetadataPostDownloadHandler.cc
  1104. * src/bittorrent_helper.cc
  1105. * src/bittorrent_helper.h
  1106. * test/BittorrentHelperTest.cc
  1107. * test/BtDependencyTest.cc
  1108. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1109. Use createRequestGroupForUri to create the download for torrent
  1110. file.
  1111. * src/Metalink2RequestGroup.cc
  1112. * test/Metalink2RequestGroupTest.cc
  1113. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1114. Fixed typo
  1115. * src/DownloadContext.h
  1116. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Use createRequestGroupForBitTorrent()
  1118. * src/BtPostDownloadHandler.cc
  1119. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Added remove().
  1121. * src/Option.cc
  1122. * src/Option.h
  1123. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Removed options which is only valid for URIs specified in
  1125. command-line. If they are left, because op is used as a template
  1126. for new RequestGroup(such as created in XML-RPC command,
  1127. BtPostDownloadHandler etc), they causes unintentional effect.
  1128. * src/main.cc
  1129. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Refer to option value of PREF_OUT only in download_helper.
  1131. * src/FtpNegotiationCommand.cc
  1132. * src/HttpResponseCommand.cc
  1133. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1135. * src/download_helper.cc
  1136. * src/download_helper.h
  1137. * src/XmlRpcMethodImpl.cc
  1138. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Updated man page for changeOption XML-RPC method.
  1140. * doc/aria2c.1.txt
  1141. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Added --bt-max-peers option to changeOption XML-RPC method.
  1143. * src/XmlRpcMethod.cc
  1144. * src/XmlRpcMethodImpl.cc
  1145. * test/XmlRpcMethodTest.cc
  1146. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1148. * test/XmlRpcMethodTest.cc
  1149. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Removed redundant DownloadContext::hasAttribute(...) calls.
  1151. * src/ConsoleStatCalc.cc
  1152. * src/RequestGroup.cc
  1153. * src/XmlRpcMethodImpl.cc
  1154. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1155. Changed the number of tracker request attempt from 5 to 2.
  1156. * src/TrackerWatcherCommand.cc
  1157. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Use host and protocol in original URI, because URI selector
  1159. selects URI based on original URI, not redirected one.
  1160. * src/Request.cc
  1161. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Fixed the bug which causes segmentation fault with tellWaiting
  1163. XML-RPC method when BitTorrent download is waiting. The key of
  1164. BtRegistry is changed from info hash to GID, because it is
  1165. registered per RequestGroup, not info hash.
  1166. * src/BtRegistry.cc
  1167. * src/BtRegistry.h
  1168. * src/BtSetup.cc
  1169. * src/ConsoleStatCalc.cc
  1170. * src/InitiatorMSEHandshakeCommand.cc
  1171. * src/PeerInitiateConnectionCommand.cc
  1172. * src/PeerInteractionCommand.cc
  1173. * src/PeerInteractionCommand.h
  1174. * src/PeerReceiveHandshakeCommand.cc
  1175. * src/RequestGroup.cc
  1176. * src/XmlRpcMethodImpl.cc
  1177. * test/BtRegistryTest.cc
  1178. * test/XmlRpcMethodTest.cc
  1179. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Updated man page for changeOption XML-RPC method.
  1181. * doc/aria2c.1.txt
  1182. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1184. method.
  1185. * src/XmlRpcMethod.cc
  1186. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Documented about BitTorrent Magnet URI in man page.
  1188. * doc/aria2c.1.txt
  1189. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1191. inherited to generated RequestGroup.
  1192. * src/UTMetadataPostDownloadHandler.cc
  1193. * test/UTMetadataPostDownloadHandlerTest.cc
  1194. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1195. Prepended "[METADATA]" before dn.
  1196. * src/bittorrent_helper.cc
  1197. * test/BittorrentHelperTest.cc
  1198. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Rewritten Magnet URI parser.
  1200. * src/Makefile.am
  1201. * src/ProtocolDetector.cc
  1202. * src/bittorrent_helper.cc
  1203. * src/bittorrent_helper.h
  1204. * src/download_helper.cc
  1205. * src/magnet.cc
  1206. * src/magnet.h
  1207. * test/BittorrentHelperTest.cc
  1208. * test/MagnetTest.cc
  1209. * test/Makefile.am
  1210. * test/ProtocolDetectorTest.cc
  1211. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Use hton64
  1213. * src/base32.cc
  1214. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Added Base32 encoded BitTorrent Magnet Link support.
  1216. * src/Makefile.am
  1217. * src/base32.cc
  1218. * src/base32.h
  1219. * src/bittorrent_helper.cc
  1220. * test/Base32Test.cc
  1221. * test/BittorrentHelperTest.cc
  1222. * test/Makefile.am
  1223. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1225. supported yet. Fixed typo in method name in RequestGroup. In
  1226. metadataGetMode, don't show "Your share ratio was ..." message.
  1227. * src/DefaultBtInteractive.cc
  1228. * src/DefaultBtInteractive.h
  1229. * src/DownloadHandlerFactory.cc
  1230. * src/DownloadHandlerFactory.h
  1231. * src/HandshakeExtensionMessage.cc
  1232. * src/Makefile.am
  1233. * src/Metalink2RequestGroup.cc
  1234. * src/PeerInteractionCommand.cc
  1235. * src/RequestGroup.cc
  1236. * src/RequestGroup.h
  1237. * src/UTMetadataPostDownloadHandler.cc
  1238. * src/UTMetadataPostDownloadHandler.h
  1239. * src/download_helper.cc
  1240. * test/HandshakeExtensionMessageTest.cc
  1241. * test/Makefile.am
  1242. * test/UTMetadataPostDownloadHandlerTest.cc
  1243. * test/UTMetadataRejectExtensionMessageTest.cc
  1244. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. In metadataGetMode, don't show SEEDING.
  1246. * src/ConsoleStatCalc.cc
  1247. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Fixed ut_metadata data handling. Implemented
  1249. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1250. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1251. metadata_size is received.
  1252. * src/DefaultExtensionMessageFactory.cc
  1253. * src/DefaultExtensionMessageFactory.h
  1254. * src/HandshakeExtensionMessage.cc
  1255. * src/HandshakeExtensionMessage.h
  1256. * src/UTMetadataDataExtensionMessage.cc
  1257. * src/UTMetadataDataExtensionMessage.h
  1258. * src/UTMetadataRequestExtensionMessage.cc
  1259. * src/UTMetadataRequestFactory.cc
  1260. * src/UTMetadataRequestFactory.h
  1261. * src/UTMetadataRequestTracker.cc
  1262. * src/UTMetadataRequestTracker.h
  1263. * test/DefaultExtensionMessageFactoryTest.cc
  1264. * test/HandshakeExtensionMessageTest.cc
  1265. * test/MockBtMessage.h
  1266. * test/UTMetadataDataExtensionMessageTest.cc
  1267. * test/UTMetadataRequestExtensionMessageTest.cc
  1268. * test/UTMetadataRequestFactoryTest.cc
  1269. * test/UTMetadataRequestTrackerTest.cc
  1270. * test/extension_message_test_helper.h
  1271. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Drop connection if ut_metadata reject message is received.
  1273. * src/UTMetadataRejectExtensionMessage.cc
  1274. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1276. get high enough in that mode.
  1277. * src/ActivePeerConnectionCommand.cc
  1278. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Added BitTorrent magnet link support to ProtocolDetector.
  1280. * src/ProtocolDetector.cc
  1281. * src/ProtocolDetector.h
  1282. * test/ProtocolDetectorTest.cc
  1283. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Don't inject validator into BtMessage in metadataGetMode because
  1285. most of the checks depends on the total length of download but it
  1286. is unknown. Delegate metadataGetMode to BtMessage.
  1287. * src/DefaultBtMessageFactory.cc
  1288. * src/DefaultBtMessageFactory.h
  1289. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1291. * src/DefaultPieceStorage.h
  1292. * src/PieceStorage.h
  1293. * src/UnknownLengthPieceStorage.h
  1294. * test/MockPieceStorage.h
  1295. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Added markTotalLengthIsKnown().
  1297. * src/DownloadContext.h
  1298. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1299. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1300. missing. If metadata is missing, always use DHT when it is ready.
  1301. * src/BtSetup.cc
  1302. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Added parseMagnetLink(). Hex encoded info hash is supported.
  1304. Base32 encoded info hash is not supported yet.
  1305. * src/bittorrent_helper.cc
  1306. * src/bittorrent_helper.h
  1307. * test/BittorrentHelperTest.cc
  1308. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Added FromHex()
  1310. * src/util.cc
  1311. * src/util.h
  1312. * test/UtilTest.cc
  1313. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1314. Added _metadataGetMode member variable. It toggles the action when
  1315. messages are received: usually they almost do nothing if
  1316. _metadataGetMode is true.
  1317. * src/AbstractBtMessage.cc
  1318. * src/AbstractBtMessage.h
  1319. * src/BtAllowedFastMessage.cc
  1320. * src/BtBitfieldMessage.cc
  1321. * src/BtCancelMessage.cc
  1322. * src/BtChokeMessage.cc
  1323. * src/BtHaveAllMessage.cc
  1324. * src/BtHaveMessage.cc
  1325. * src/BtInterestedMessage.cc
  1326. * src/BtNotInterestedMessage.cc
  1327. * src/BtPieceMessage.cc
  1328. * src/BtRejectMessage.cc
  1329. * src/BtRequestMessage.cc
  1330. * src/BtUnchokeMessage.cc
  1331. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1332. Added bencode::decode overload functions. They have extra argument
  1333. 'end', passed by reference. 'end' points to the beyond the last
  1334. position of data used in decoding process.
  1335. * src/bencode.cc
  1336. * src/bencode.h
  1337. * test/BencodeTest.cc
  1338. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Initial support of Extension for Peers to Send Metadata
  1340. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1341. metadata from swarm.
  1342. * src/BtConstants.h
  1343. * src/DefaultBtInteractive.cc
  1344. * src/DefaultExtensionMessageFactory.cc
  1345. * src/DefaultExtensionMessageFactory.h
  1346. * src/ExtensionMessage.h
  1347. * src/ExtensionMessageRegistry.h
  1348. * src/HandshakeExtensionMessage.cc
  1349. * src/HandshakeExtensionMessage.h
  1350. * src/Makefile.am
  1351. * src/PeerConnection.h
  1352. * src/PeerInteractionCommand.cc
  1353. * src/UTMetadataDataExtensionMessage.cc
  1354. * src/UTMetadataDataExtensionMessage.h
  1355. * src/UTMetadataExtensionMessage.cc
  1356. * src/UTMetadataExtensionMessage.h
  1357. * src/UTMetadataRejectExtensionMessage.cc
  1358. * src/UTMetadataRejectExtensionMessage.h
  1359. * src/UTMetadataRequestExtensionMessage.cc
  1360. * src/UTMetadataRequestExtensionMessage.h
  1361. * src/bittorrent_helper.cc
  1362. * src/bittorrent_helper.h
  1363. * test/BittorrentHelperTest.cc
  1364. * test/DefaultExtensionMessageFactoryTest.cc
  1365. * test/HandshakeExtensionMessageTest.cc
  1366. * test/Makefile.am
  1367. * test/UTMetadataDataExtensionMessageTest.cc
  1368. * test/UTMetadataRejectExtensionMessageTest.cc
  1369. * test/UTMetadataRequestExtensionMessageTest.cc
  1370. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1371. Cancel segment in prepareForRetry() because there is a chance that
  1372. the command has segments.
  1373. * src/CreateRequestCommand.cc
  1374. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Fixed the bug that slow server is not knocked down in favor of
  1376. faster one.
  1377. * src/AbstractCommand.cc
  1378. * src/DefaultPieceStorage.cc
  1379. * src/DefaultPieceStorage.h
  1380. * src/PieceStorage.h
  1381. * src/UnknownLengthPieceStorage.cc
  1382. * src/UnknownLengthPieceStorage.h
  1383. * test/MockPieceStorage.h
  1384. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Fixed the bug that Request object is not added to
  1386. _inFlightRequests in findFasterRequest().
  1387. * src/FileEntry.cc
  1388. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Changed the strategry of how to increase the number of outstanding
  1390. requests. Now the number is doubled if there are no outstanding
  1391. requests after receiving messages.
  1392. * src/BtConstants.h
  1393. * src/DefaultBtInteractive.cc
  1394. * src/DefaultBtInteractive.h
  1395. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Check socket for reading if there are outstanding requests.
  1397. * src/PeerInteractionCommand.cc
  1398. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. Moved frequently called methods to header file so they get
  1400. inlined.
  1401. * src/RequestSlot.cc
  1402. * src/RequestSlot.h
  1403. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Copied in_addr instead of just casting from char* which might
  1405. violate strict aliasing rules.
  1406. * src/AsyncNameResolver.cc
  1407. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Use dynamic_pointer_cast
  1409. * test/BtPieceMessageTest.cc
  1410. * test/BtRequestMessageTest.cc
  1411. * test/DefaultBtRequestFactoryTest.cc
  1412. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Added testSetUrl20()
  1414. * test/RequestTest.cc
  1415. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Code cleanup
  1417. * src/bittorrent_helper.cc
  1418. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1419. Use C++ style cast
  1420. * src/AsyncNameResolver.cc
  1421. * src/Base64.h
  1422. * src/BtBitfieldMessage.cc
  1423. * src/BtHandshakeMessage.cc
  1424. * src/DefaultBtMessageFactory.cc
  1425. * src/DefaultBtProgressInfoFile.cc
  1426. * src/EpollEventPoll.cc
  1427. * src/ExpatMetalinkProcessor.cc
  1428. * src/IteratableChecksumValidator.cc
  1429. * src/IteratableChunkChecksumValidator.cc
  1430. * src/MessageDigestHelper.cc
  1431. * src/Platform.cc
  1432. * src/RequestGroupMan.cc
  1433. * src/SingleFileAllocationIterator.cc
  1434. * src/Sqlite3MozCookieParser.cc
  1435. * src/XML2SAXMetalinkProcessor.cc
  1436. * src/Xml2XmlRpcRequestProcessor.cc
  1437. * src/util.cc
  1438. * src/util.h
  1439. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1440. Fixed integer potential alignment problem.
  1441. * src/bitfield.h
  1442. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1444. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1445. include file ordering.
  1446. * src/PeerListProcessor.h
  1447. * src/bittorrent_helper.cc
  1448. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1450. * src/Request.cc
  1451. * src/util.cc
  1452. * src/util.h
  1453. * test/RequestTest.cc
  1454. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1455. Rewritten util::uitos()
  1456. * src/util.h
  1457. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Code cleanup
  1459. * src/Request.cc
  1460. * src/Request.h
  1461. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Rewritten Request::parseUrl()
  1463. * src/Request.cc
  1464. * test/RequestTest.cc
  1465. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Removed unused macro SAFE_CHARS
  1467. * src/Request.cc
  1468. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Updated doc
  1470. * src/DHTRoutingTableDeserializer.cc
  1471. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Release 1.6.3
  1473. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Removed unused function.
  1475. * test/DHTPeerAnnounceStorageTest.cc
  1476. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Only decrement cols if cols > 0
  1478. * src/ConsoleStatCalc.cc
  1479. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1480. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1481. translations. Thanks to all translators.
  1482. * po/ca.po
  1483. * po/fr.po
  1484. * po/it.po
  1485. * po/ja.po
  1486. * po/pl.po
  1487. * po/ru.po
  1488. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Updated translation template
  1490. * po
  1491. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Fixed compile error without ssl library.
  1493. * src/util.cc
  1494. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1495. Logged received nodes in get_peers reply message.
  1496. * src/DHTAbstractNodeLookupTask.cc
  1497. * src/DHTAbstractNodeLookupTask.h
  1498. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1500. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1501. * src/DHTMessageDispatcherImpl.cc
  1502. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Don't reuse URI if Request pool is not empty.
  1504. * src/CreateRequestCommand.cc
  1505. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1507. receive get_peers request for torrent which the client is now
  1508. downloading.
  1509. * src/BtSetup.cc
  1510. * src/DHTPeerAnnounceEntry.cc
  1511. * src/DHTPeerAnnounceEntry.h
  1512. * src/DHTPeerAnnounceStorage.cc
  1513. * src/DHTPeerAnnounceStorage.h
  1514. * src/RequestGroup.cc
  1515. * test/DHTPeerAnnounceEntryTest.cc
  1516. * test/DHTPeerAnnounceStorageTest.cc
  1517. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Fixed the bug that in Windows environment new blank line is
  1519. inserted when console readout is updated.
  1520. * src/ConsoleStatCalc.cc
  1521. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Throw exception if binding listening port is failed. Removed
  1523. RequestGroupMan::getInitialCommand(). Use
  1524. fillRequestGroupFromReserver() instead. Delete commands for
  1525. RequestGroup which has errors when it is being added.
  1526. * src/BtSetup.cc
  1527. * src/DownloadEngine.cc
  1528. * src/DownloadEngine.h
  1529. * src/DownloadEngineFactory.cc
  1530. * src/MultiUrlRequestInfo.cc
  1531. * src/RequestGroupMan.cc
  1532. * src/RequestGroupMan.h
  1533. * test/RequestGroupManTest.cc
  1534. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1535. Fixed the bug that when downloading more than one torrent,
  1536. listening port is not reported properly to tracker for 2nd or
  1537. later torrents.
  1538. * src/BtSetup.cc
  1539. * src/PeerListenCommand.cc
  1540. * src/PeerListenCommand.h
  1541. * src/RequestGroup.cc
  1542. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1543. Bump up version number to 1.6.3
  1544. * configure.ac
  1545. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Removed Util.cc from POTFILES.in
  1547. * po/POTFILES.in
  1548. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Updated man page for previous change.
  1550. * doc/aria2c.1.txt
  1551. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1552. If user name is embedded but password is missing in URI, first
  1553. resolve password using .netrc. If password is found in .netrc,
  1554. then use it as password. If not, use the password specified in
  1555. --ftp-passwd.
  1556. * src/AuthConfigFactory.cc
  1557. * src/Request.cc
  1558. * src/Request.h
  1559. * test/AuthConfigFactoryTest.cc
  1560. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Fixed typo
  1562. * doc/aria2c.1.txt
  1563. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Fixed typo
  1565. * src/usage_text.h
  1566. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1567. Added missing bitfield.cc
  1568. * src/bitfield.cc
  1569. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Renamed Util.{cc,h} as util.{cc,h}
  1571. * src/Util.cc
  1572. * src/Util.h
  1573. * src/util.cc
  1574. * src/util.h
  1575. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Moved static functions in Util class to namespace util.
  1577. * src
  1578. * test
  1579. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1581. Moved generateRandomKey to bittorrent_helper.cc.
  1582. * src/DHTBucket.cc
  1583. * src/DHTGetPeersMessage.cc
  1584. * src/DHTGetPeersReplyMessage.cc
  1585. * src/DHTMessage.cc
  1586. * src/DHTNode.cc
  1587. * src/DHTTokenTracker.cc
  1588. * src/DHTUtil.cc: Removed.
  1589. * src/DHTUtil.h: Removed.
  1590. * src/Makefile.am
  1591. * src/Util.cc
  1592. * src/Util.h
  1593. * src/bitfield.h
  1594. * src/bittorrent_helper.cc
  1595. * src/bittorrent_helper.h
  1596. * test/ARC4Test.cc
  1597. * test/BNodeTest.cc
  1598. * test/DHTAnnouncePeerMessageTest.cc
  1599. * test/DHTAnnouncePeerReplyMessageTest.cc
  1600. * test/DHTFindNodeMessageTest.cc
  1601. * test/DHTFindNodeReplyMessageTest.cc
  1602. * test/DHTGetPeersMessageTest.cc
  1603. * test/DHTGetPeersReplyMessageTest.cc
  1604. * test/DHTPingMessageTest.cc
  1605. * test/DHTPingReplyMessageTest.cc
  1606. * test/DHTTokenTrackerTest.cc
  1607. * test/DHTUtilTest.cc: Removed.
  1608. * test/Makefile.am
  1609. * test/UtilTest.cc
  1610. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Removed the call to trim() because trim() is called for each
  1612. element in split().
  1613. * src/CookieParser.cc
  1614. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1615. Replaced Util::slice() with split()
  1616. * src/AbstractCommand.cc
  1617. * src/CookieParser.cc
  1618. * src/File.cc
  1619. * src/HttpHeaderProcessor.cc
  1620. * src/HttpRequest.cc
  1621. * src/Metalink2RequestGroup.cc
  1622. * src/MetalinkParserController.cc
  1623. * src/Netrc.cc
  1624. * src/NsCookieParser.cc
  1625. * src/ParameterizedStringParser.cc
  1626. * src/ServerStatMan.cc
  1627. * src/UriListParser.cc
  1628. * src/Util.cc
  1629. * src/Util.h
  1630. * src/bittorrent_helper.cc
  1631. * test/UtilTest.cc
  1632. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1633. Use request->getDir() instead of "/" for embedded user/pass in
  1634. URI.
  1635. * src/AuthConfigFactory.cc
  1636. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Fixed wrong insertion point for BasicCred.
  1638. * src/AuthConfigFactory.cc
  1639. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Allowed non-regular file in LocalFilePathOptionHandler
  1641. * src/OptionHandlerImpl.h
  1642. * src/message.h
  1643. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1645. * src/Netrc.cc
  1646. * src/Util.h
  1647. * test/NetrcTest.cc
  1648. * test/sample.netrc
  1649. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Fixed typo
  1651. * src/BtDependency.cc
  1652. * src/BtRejectMessage.cc
  1653. * src/FtpConnection.cc
  1654. * src/HttpHeaderProcessor.h
  1655. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1656. Fixed lintian report in man page
  1657. * doc/aria2c.1.txt
  1658. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Release 1.6.2
  1660. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Updated Ukrainian translation. Thanks to all translators.
  1662. * po/uk.po
  1663. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Updated translation template
  1665. * po
  1666. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Bump up version number to 1.6.2
  1668. * configure.ac
  1669. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Updated licence message in -v output.
  1671. * src/version_usage.cc
  1672. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Replaced aria2 with aria2c in help message.
  1674. * src/version_usage.cc
  1675. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1676. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1677. * src/version_usage.cc
  1678. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. Quoted localedir
  1680. * src/Makefile.am
  1681. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1683. utime. Check header for utime.h.
  1684. * configure.ac
  1685. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1686. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1687. * configure.ac
  1688. * src/daemon.cc
  1689. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Don't set localedir manually. Leave it to autoconf.
  1691. * configure.ac
  1692. * src/Makefile.am
  1693. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Added --install to ACLOCAL_AMFLAGS.
  1695. Removed m4 from SUBDIRS.
  1696. Updated automake 1.11 and autoconf 2.64.
  1697. Replaced some obsolute macros with new one.
  1698. * Makefile.am
  1699. * configure.ac
  1700. * m4/aria2_arg.m4
  1701. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Removed Makefile.am in m4 directory.
  1703. * configure.ac
  1704. * m4/ChangeLog
  1705. * m4/Makefile.am
  1706. * m4/Makefile.in
  1707. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Removed unused m4 macros.
  1709. * m4/intldir.m4
  1710. * m4/inttypes.m4
  1711. * m4/isc-posix.m4
  1712. * m4/libgnutls-extra.m4
  1713. * m4/ulonglong.m4
  1714. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1715. Fixed the bug that causes segmentation fault if
  1716. req->getCurrentUrl() contains printf formatting characters such as
  1717. %d. The statement that causes this bug is useless and removed.
  1718. * src/AbstractCommand.cc
  1719. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1720. * Release 1.6.1
  1721. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Updated Simplified Chinese translation. Thanks to translators.
  1723. * po/zh_CN.po
  1724. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Updated translation template
  1726. * po
  1727. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Bump up version number to 1.6.1
  1729. * configure.ac
  1730. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Changed interval from 120 to 60 for dropping inactive peer.
  1732. * src/DefaultBtInteractive.cc
  1733. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Updated man page for --user-agent and --peer-id-prefix option.
  1735. * doc/aria2c.1.txt
  1736. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1737. Code clean up
  1738. * src/BtPostDownloadHandler.cc
  1739. * src/ContentTypeRequestGroupCriteria.cc
  1740. * src/ContentTypeRequestGroupCriteria.h
  1741. * src/DownloadHandlerConstants.cc
  1742. * src/DownloadHandlerConstants.h
  1743. * src/DownloadHandlerFactory.cc
  1744. * src/MetalinkPostDownloadHandler.cc
  1745. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. Don't save control file when aria2 exists while checking piece
  1747. hash(behavior of -V option). If control file doesn't exist when
  1748. aria2 launched, the completed length in saved control file will be
  1749. 0 byte and this confuses user. disableSaveControlFile() is called
  1750. in RequestGroup::processCheckIntegrityEntry().
  1751. enableSaveControlFile() will be called after hash checking is
  1752. done. See CheckIntegrityCommand.
  1753. * src/CheckIntegrityCommand.cc
  1754. * src/RequestGroup.cc
  1755. * src/RequestGroup.h
  1756. * src/RequestGroupMan.cc
  1757. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Included version number in Peer ID and client version. Peer ID
  1759. now starts with "aria2/VERSION-", where VERSION is
  1760. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1761. * src/DefaultBtInteractive.cc
  1762. * src/OptionHandlerFactory.cc
  1763. * src/bittorrent_helper.cc
  1764. * src/bittorrent_helper.h
  1765. * src/main.cc
  1766. * src/usage_text.h
  1767. * test/BittorrentHelperTest.cc
  1768. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Fixed memory leak.
  1770. * src/DownloadCommand.cc
  1771. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Removed server, port, user and passwd key from options before
  1773. XMLRPC::Client.call since they are not options of aria2.
  1774. * doc/xmlrpc/aria2mon
  1775. * doc/xmlrpc/aria2rpc
  1776. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Included version number in user-agent string.
  1778. * src/OptionHandlerFactory.cc
  1779. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1780. Fixed the bug that the option values changed by XML-RPC
  1781. method(changeOption and changeGlobalOption) are overwritten to the
  1782. previous value by the next these request which doesn't contain
  1783. that option value. Supporse max-download-limit is initially 0. You
  1784. changed this value to 100K by changeOption. Then you issue
  1785. changeOption request to change max-upload-limit to 50K. This
  1786. second request doesn't contain xml-download-limit, so it is back
  1787. to initial value, 0. Another improvement is that exception is
  1788. thrown when changeOption and changeGlobalOption request contains
  1789. option name which doesn't allowed in each request.
  1790. * src/DownloadEngine.h
  1791. * src/XmlRpcMethod.cc
  1792. * src/XmlRpcMethod.h
  1793. * src/XmlRpcMethodImpl.cc
  1794. * src/download_helper.cc
  1795. * src/download_helper.h
  1796. * test/XmlRpcMethodTest.cc
  1797. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1798. Added missing MetalinkParserStateImpl.{cc,h}
  1799. * src/MetalinkParserStateImpl.cc
  1800. * src/MetalinkParserStateImpl.h
  1801. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Put all MetalinkParserState subclasses into
  1803. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1804. * src/FileMetalinkParserState.cc: Removed
  1805. * src/FileMetalinkParserState.h: Removed
  1806. * src/FilesMetalinkParserState.cc: Removed
  1807. * src/FilesMetalinkParserState.h: Removed
  1808. * src/FinMetalinkParserState.cc: Removed
  1809. * src/FinMetalinkParserState.h: Removed
  1810. * src/HashMetalinkParserState.cc: Removed
  1811. * src/HashMetalinkParserState.h: Removed
  1812. * src/InitialMetalinkParserState.cc: Removed
  1813. * src/InitialMetalinkParserState.h: Removed
  1814. * src/LanguageMetalinkParserState.cc: Removed
  1815. * src/LanguageMetalinkParserState.h: Removed
  1816. * src/Makefile.am
  1817. * src/MetalinkMetalinkParserState.cc: Removed
  1818. * src/MetalinkMetalinkParserState.h: Removed
  1819. * src/MetalinkParserState.h
  1820. * src/MetalinkParserStateMachine.cc
  1821. * src/MetalinkParserStateMachine.h
  1822. * src/OSMetalinkParserState.cc: Removed
  1823. * src/OSMetalinkParserState.h: Removed
  1824. * src/PieceHashMetalinkParserState.cc: Removed
  1825. * src/PieceHashMetalinkParserState.h: Removed
  1826. * src/PiecesMetalinkParserState.cc: Removed
  1827. * src/PiecesMetalinkParserState.h: Removed
  1828. * src/ResourcesMetalinkParserState.cc: Removed
  1829. * src/ResourcesMetalinkParserState.h: Removed
  1830. * src/SignatureMetalinkParserState.cc: Removed
  1831. * src/SignatureMetalinkParserState.h: Removed
  1832. * src/SizeMetalinkParserState.cc: Removed
  1833. * src/SizeMetalinkParserState.h: Removed
  1834. * src/SkipTagMetalinkParserState.cc: Removed
  1835. * src/SkipTagMetalinkParserState.h: Removed
  1836. * src/URLMetalinkParserState.cc: Removed
  1837. * src/URLMetalinkParserState.h: Removed
  1838. * src/VerificationMetalinkParserState.cc: Removed
  1839. * src/VerificationMetalinkParserState.h: Removed
  1840. * src/VersionMetalinkParserState.cc: Removed
  1841. * src/VersionMetalinkParserState.h: Removed
  1842. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1843. Move all functions in PeerMessageUtil to bittorrent_helper.
  1844. * src/BtBitfieldMessage.cc
  1845. * src/BtBitfieldMessageValidator.h
  1846. * src/BtExtendedMessage.cc
  1847. * src/BtHandshakeMessage.cc
  1848. * src/BtHandshakeMessageValidator.h
  1849. * src/BtPieceMessage.cc
  1850. * src/BtPieceMessageValidator.h
  1851. * src/BtPortMessage.cc
  1852. * src/DHTFindNodeReplyMessage.cc
  1853. * src/DHTGetPeersReplyMessage.cc
  1854. * src/DHTMessageFactoryImpl.cc
  1855. * src/DHTRoutingTableDeserializer.cc
  1856. * src/DHTRoutingTableSerializer.cc
  1857. * src/DHTTokenTracker.cc
  1858. * src/DefaultBtMessageFactory.cc
  1859. * src/IndexBtMessage.cc
  1860. * src/IndexBtMessage.h
  1861. * src/IndexBtMessageValidator.h
  1862. * src/Makefile.am
  1863. * src/PeerMessageUtil.cc: Removed.
  1864. * src/PeerMessageUtil.h: Removed.
  1865. * src/RangeBtMessage.cc
  1866. * src/RangeBtMessage.h
  1867. * src/RangeBtMessageValidator.h
  1868. * src/UTPexExtensionMessage.cc
  1869. * src/ZeroBtMessage.cc
  1870. * src/ZeroBtMessage.h
  1871. * src/bittorrent_helper.cc
  1872. * src/bittorrent_helper.h
  1873. * test/BittorrentHelperTest.cc
  1874. * test/BtAllowedFastMessageTest.cc
  1875. * test/BtBitfieldMessageTest.cc
  1876. * test/BtCancelMessageTest.cc
  1877. * test/BtChokeMessageTest.cc
  1878. * test/BtExtendedMessageTest.cc
  1879. * test/BtHandshakeMessageTest.cc
  1880. * test/BtHaveAllMessageTest.cc
  1881. * test/BtHaveMessageTest.cc
  1882. * test/BtHaveNoneMessageTest.cc
  1883. * test/BtInterestedMessageTest.cc
  1884. * test/BtNotInterestedMessageTest.cc
  1885. * test/BtPieceMessageTest.cc
  1886. * test/BtPortMessageTest.cc
  1887. * test/BtRejectMessageTest.cc
  1888. * test/BtRequestMessageTest.cc
  1889. * test/BtSuggestPieceMessageTest.cc
  1890. * test/BtUnchokeMessageTest.cc
  1891. * test/DHTFindNodeReplyMessageTest.cc
  1892. * test/DHTGetPeersReplyMessageTest.cc
  1893. * test/DHTMessageFactoryImplTest.cc
  1894. * test/DHTRoutingTableDeserializerTest.cc
  1895. * test/DHTRoutingTableSerializerTest.cc
  1896. * test/DefaultBtMessageFactoryTest.cc
  1897. * test/DefaultExtensionMessageFactoryTest.cc
  1898. * test/Makefile.am
  1899. * test/PeerListProcessorTest.cc
  1900. * test/PeerMessageUtilTest.cc: Removed.
  1901. * test/UTPexExtensionMessageTest.cc
  1902. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1903. Limit the size of values list when sending get_peers reply.
  1904. * src/DHTGetPeersReplyMessage.cc
  1905. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1906. Updated banner
  1907. * doc/xmlrpc/aria2rpc
  1908. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1909. Added missing help message for remove command.
  1910. * doc/xmlrpc/aria2rpc
  1911. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Generated configure and config.h.in
  1913. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1914. Add check for fork(), which is missing on MinGW
  1915. * src/daemon.cc
  1916. * configure.ac
  1917. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1918. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1919. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1920. Util::httpGMT().
  1921. * src/Util.cc
  1922. * src/Util.h
  1923. * test/UtilTest.cc
  1924. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1925. * Release 1.6.0
  1926. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1927. Fixed a path to xmlrpc/README.txt
  1928. * doc/Makefile.am
  1929. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Added XML-RPC in -v Configuration output.
  1931. * src/FeatureConfig.cc
  1932. * src/FeatureConfig.h
  1933. * test/FeatureConfigTest.cc
  1934. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1935. Updated Bulgarian, Russian, Slovak and Japanese
  1936. translations. Thanks to all translators.
  1937. * po/bg.po
  1938. * po/ja.po
  1939. * po/ru.po
  1940. * po/sk.po
  1941. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1942. Removed --retry-wait option from aria2rpc
  1943. * doc/xmlrpc/aria2rpc
  1944. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Removed --retry-wait option from man page.
  1946. * doc/aria2c.1.txt
  1947. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Removed --retry-wait option since the current architecture doesn't
  1949. allow sleep for particular URI.
  1950. * src/AbstractCommand.cc
  1951. * src/OptionHandlerFactory.cc
  1952. * src/download_helper.cc
  1953. * src/prefs.cc
  1954. * src/prefs.h
  1955. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1956. Removed Retry-After header support. Since the current architecture
  1957. doesn't allow sleep for particular URI.
  1958. * src/HttpSkipResponseCommand.cc
  1959. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1960. Updated the help message for --daemon option.
  1961. * doc/aria2c.1.txt
  1962. * src/usage_text.h
  1963. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1964. Added our own daemon() function for systems which desn't have
  1965. daemon(3).
  1966. * configure.ac
  1967. * src/Makefile.am
  1968. * src/daemon.cc
  1969. * src/daemon.h
  1970. * src/option_processing.cc
  1971. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1972. Simplified File::getCurrentDir()
  1973. * src/File.cc
  1974. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1975. Use exit() instead of _exit
  1976. * src/RequestGroupMan.cc
  1977. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1978. Replaced "CATEGORY" with "TAGS".
  1979. * src/usage_text.h
  1980. * doc/aria2c.1.txt
  1981. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1982. Updated the help message for --help option.
  1983. * src/usage_text.h
  1984. * doc/aria2c.1.txt
  1985. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Updated man page for added help tags.
  1987. * doc/aria2c.1.txt
  1988. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Added help category #file. Added #file tag to the options related
  1990. to downloaded file.
  1991. * src/OptionHandlerFactory.cc
  1992. * src/help_tags.h
  1993. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1994. Added help categories: #cookie and #hook. Added #https tag to
  1995. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1996. * src/OptionHandlerFactory.cc
  1997. * src/help_tags.h
  1998. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Made MSG_NOT_FILE translatable.
  2000. * src/message.h
  2001. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Updated man page for --help option.
  2003. * doc/aria2c.1.txt
  2004. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2005. Updated doc.
  2006. * src/XmlRpcMethod.h
  2007. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2008. Help category now starts with "#" to distinguish a category from
  2009. keyword search. For example, "http" categroy is now "#http". You
  2010. can type "--help=#http" to get explanation of options related to
  2011. http. If '#' is omitted, then the argument is treated as a keyword
  2012. and aria2 searches options whose name includes the keyword and
  2013. print matched ones. For example, "--help=http" will show options
  2014. whose name includes "http".
  2015. * src/OptionHandlerFactory.cc
  2016. * src/help_tags.h
  2017. * src/usage_text.h
  2018. * src/version_usage.cc
  2019. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Documented missing experimental tag and newly added xml-rpc tag in
  2021. man page.
  2022. * doc/aria2c.1.txt
  2023. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Added xml-rpc help tag. Tagged xml-rpc related options with
  2025. xml-rpc tag.
  2026. * src/OptionHandlerFactory.cc
  2027. * src/help_tags.h
  2028. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Updated message when a path is not a file. Updated common message
  2030. for wrong option.
  2031. * src/OptionHandlerException.cc
  2032. * src/message.h
  2033. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2034. Use File::isFile() instead of File::exists(). Updated message when
  2035. a path is not a file.
  2036. * src/OptionHandlerImpl.cc
  2037. * src/message.h
  2038. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. Fixed the bug that server performence profile is not updated when
  2040. aria2c was terminated by emergency shutdown.
  2041. * src/TrackerWatcherCommand.cc
  2042. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2043. Use LocalFilePathOptionHandler for -T and -M option.
  2044. Updated message of MSG_FILE_NOT_EXIST.
  2045. * src/OptionHandlerFactory.cc
  2046. * src/message.h
  2047. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Added LocalFilePathOptionHandler which check whether the specified
  2049. file path does exist or not.
  2050. * src/OptionHandlerImpl.cc
  2051. * src/message.h
  2052. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2053. Updated wiki page URI.
  2054. * README
  2055. * doc/aria2c.1.txt
  2056. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2057. Added README.txt for xmlrpc directory.
  2058. * doc/Makefile.am
  2059. * doc/xmlrpc/README.txt
  2060. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. Bump up version number to 1.6.0.
  2062. * configure.ac
  2063. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Added XML-RPC client scripts written in ruby.
  2065. * doc/Makefile.am
  2066. * doc/xmlrpc/aria2mon
  2067. * doc/xmlrpc/aria2rpc
  2068. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Added support for IPv6 literal address in URI. Now aria2 can
  2070. handle URI such as http://[::1]/
  2071. * src/HttpRequest.cc
  2072. * src/HttpRequest.h
  2073. * src/Request.cc
  2074. * src/Request.h
  2075. * test/HttpRequestTest.cc
  2076. * test/OptionHandlerTest.cc
  2077. * test/RequestTest.cc
  2078. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2079. Fixed the bug that HTTP request header for XML-RPC request is not
  2080. parsed properly.
  2081. * src/HttpHeader.cc
  2082. * src/HttpHeaderProcessor.cc
  2083. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Fixed the bug that XML-RPC authorization might be done before HTTP
  2085. request header is fully received.
  2086. * src/HttpServerCommand.cc
  2087. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Documented --xml-rpc-listen-all option in man page.
  2089. * doc/aria2c.1.txt
  2090. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2091. Added --xml-rpc-listen-all option. If true is given to this
  2092. option, aria2 listens incoming XML-RPC requests on all network
  2093. interfaces. If false is given, listens only on local loopback
  2094. interface. The default value is false.
  2095. * src/HttpListenCommand.cc
  2096. * src/OptionHandlerFactory.cc
  2097. * src/SocketCore.cc
  2098. * src/SocketCore.h
  2099. * src/prefs.cc
  2100. * src/prefs.h
  2101. * src/usage_text.h
  2102. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. * Release 1.5.2
  2104. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2105. Updated Ukrainian and Russian translations. Thanks to all
  2106. translators.
  2107. * po/ru.po
  2108. * po/uk.po
  2109. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Bump up version number to 1.5.2
  2111. * configure.ac
  2112. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Get comment, comment.utf-8, created by and creation date from
  2114. .torrent file and print them in -S output.
  2115. * src/bittorrent_helper.cc
  2116. * src/bittorrent_helper.h
  2117. * test/BittorrentHelperTest.cc
  2118. * test/test.torrent
  2119. * test/utf8.torrent
  2120. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2121. Show exact file size along in -S option output.
  2122. * src/Util.h
  2123. * src/bittorrent_helper.cc
  2124. * test/UtilTest.cc
  2125. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Avoided unnecessary memory allocation in
  2127. BitfieldMan::getCompletedLength().
  2128. * src/BitfieldMan.cc
  2129. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2130. Fixed the bug that download fails if
  2131. SocketCore::establishConnection() throws exception and aria2
  2132. doesn't try another address.
  2133. * src/AbstractCommand.cc
  2134. * src/InitiateConnectionCommand.cc
  2135. * src/message.h
  2136. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2138. detected properly.
  2139. * m4/sqlite3.m4
  2140. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2141. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2142. because it causes compile error if PARAMS macro is defined.
  2143. * src/XmlRpcElements.cc
  2144. * src/XmlRpcElements.h
  2145. * src/XmlRpcRequestParserStateImpl.cc
  2146. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. * Release 1.5.1
  2148. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Bump up version number to 1.5.1
  2150. * configure.ac
  2151. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2152. Fixed compile error without BitTorrent support
  2153. * src/DefaultBtProgressInfoFile.cc
  2154. * src/DownloadEngine.cc
  2155. * src/DownloadEngine.h
  2156. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2157. Added missing '=' in Download Results
  2158. * src/RequestGroupMan.cc
  2159. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Fixed compiler warning
  2161. * src/DefaultBtProgressInfoFile.cc
  2162. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Fixed compiler warning on 32bit systems.
  2164. * src/DownloadCommand.cc
  2165. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Call flush from ServerStatMan::save()
  2167. * src/ServerStatMan.cc
  2168. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Check stream status after file is opened.
  2170. * src/CookieStorage.cc
  2171. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2172. Rewritten Signature::save()
  2173. * src/Signature.cc
  2174. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Rewritten RequestGroupMan::saveServerStat()
  2176. * src/RequestGroupMan.cc
  2177. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Rewritten stream error handling
  2179. * src/DHTAutoSaveCommand.cc
  2180. * src/DHTRoutingTableDeserializer.cc
  2181. * src/DHTRoutingTableSerializer.cc
  2182. * src/DHTSetup.cc
  2183. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Check stream status after file is opened.
  2185. * src/DefaultBtProgressInfoFile.cc
  2186. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2187. Rewritten stream error handling
  2188. * src/DefaultBtProgressInfoFile.cc
  2189. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2190. Make sure that stream is closed before renaming file. Unit test
  2191. fails on mingw32 in the previous implementation.
  2192. * src/CookieStorage.cc
  2193. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Fixed the unit test error without sqlite3
  2195. * test/CookieStorageTest.cc
  2196. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Fixed the undefined reference error
  2198. * test/HttpResponseTest.cc
  2199. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. * Release 1.5.0
  2201. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2202. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2203. Ukrainian translations. Thanks to all translators.
  2204. * po/ru.po
  2205. * po/it.po
  2206. * po/da.po
  2207. * po/bg.po
  2208. * po/ja.po
  2209. * po/uk.po
  2210. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Added missing src/Logger.cc
  2212. * src/Logger.cc
  2213. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2214. Rewritten Logger to avoiding constly virtual call.
  2215. * src/LogFactory.cc
  2216. * src/LogFactory.h
  2217. * src/Logger.h
  2218. * src/Makefile.am
  2219. * src/Makefile.in
  2220. * src/NullLogger.h: Removed.
  2221. * src/SimpleLogger.cc
  2222. * src/SimpleLogger.h
  2223. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2224. Updated doc
  2225. * src/main.cc
  2226. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Updated debug log message
  2228. * src/AbstractCommand.cc
  2229. * src/message.h
  2230. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. Avoid to create zombie process when commands specified in
  2232. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2233. X and NetBSD.
  2234. * src/main.cc
  2235. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2236. Fixed typo
  2237. * src/usage_text.h
  2238. * doc/aria2c.1.txt
  2239. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Documented 'errorCode' of tellStatus in man page.
  2241. * doc/aria2c.1.txt
  2242. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2244. This key is only available for stopped/completed downloads and its
  2245. value is the error code defined in EXIT STATUS in man page.
  2246. * src/XmlRpcMethodImpl.cc
  2247. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Fixed the bug that session download length is not updated when
  2249. PeerStat is not fastest one.
  2250. * src/SegmentMan.cc
  2251. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Updated doc.
  2253. * doc/aria2c.1.txt
  2254. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Updated doc.
  2256. * src/AbstractCommand.cc
  2257. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Handle the case when DownloadContext has no FileEntry.
  2259. * src/XmlRpcMethodImpl.cc
  2260. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2261. Handle the situation where struct option.name is char *.
  2262. * configure.ac
  2263. * src/OptionParser.cc
  2264. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2265. Code cleanup
  2266. * src/AbstractCommand.cc
  2267. * src/DownloadCommand.cc
  2268. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Use option of each download to create AuthConfig instead of global
  2270. option.
  2271. * src/AuthConfigFactory.cc
  2272. * src/AuthConfigFactory.h
  2273. * src/FtpNegotiationCommand.cc
  2274. * src/HttpRequest.cc
  2275. * src/HttpRequest.h
  2276. * src/HttpRequestCommand.cc
  2277. * src/HttpSkipResponseCommand.cc
  2278. * src/MultiUrlRequestInfo.cc
  2279. * test/AuthConfigFactoryTest.cc
  2280. * test/FtpConnectionTest.cc
  2281. * test/HttpRequestTest.cc
  2282. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Don't call prepareForRetry(1) if all segments are ignored in
  2284. SegmentMan.
  2285. * src/AbstractCommand.cc
  2286. * src/BitfieldMan.cc
  2287. * src/BitfieldMan.h
  2288. * src/SegmentMan.cc
  2289. * src/SegmentMan.h
  2290. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2291. Removed FileEntry::getAssociatedUris()
  2292. * src/FileEntry.h
  2293. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2294. Updated doc: TODO1.5 -> TODO
  2295. * src/FileEntry.cc
  2296. * src/HttpResponseCommand.cc
  2297. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2299. involved.
  2300. * src/RequestGroup.cc
  2301. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2302. Eliminated duplicated filterBitfield initialization code.
  2303. * src/BitfieldMan.cc
  2304. * src/BitfieldMan.h
  2305. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2306. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2307. relatively naive approach, though). For DownloadFailureException,
  2308. we handle the case when req is null properly.
  2309. * src/AbstractCommand.cc
  2310. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2311. Added function returning suffix of control file to
  2312. DefaultBtProgressInfoFile.
  2313. * src/DefaultBtProgressInfoFile.cc
  2314. * src/DefaultBtProgressInfoFile.h
  2315. * src/RequestGroup.cc
  2316. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Documented getVersion in man page.
  2318. * doc/aria2c.1.txt
  2319. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Documented type of offset and num for tellWaiting xml-rpc method.
  2321. * doc/aria2c.1.txt
  2322. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2323. Implemented getVersion xml-rpc method. This method returns struct
  2324. which has 2 key-value pairs: "version" key is associated to the
  2325. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2326. associated to the list of enabled features, such as "Async DNS",
  2327. "BitTorrent".
  2328. * src/FeatureConfig.h
  2329. * src/XmlRpcMethodFactory.cc
  2330. * src/XmlRpcMethodImpl.cc
  2331. * src/XmlRpcMethodImpl.h
  2332. * test/XmlRpcMethodTest.cc
  2333. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2335. for compatibility issue.
  2336. * src/SocketCore.cc
  2337. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2338. Fixed compile error with openSSL
  2339. * src/bittorrent_helper.cc
  2340. * src/messageDigest.h
  2341. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Removed bad code: setting certificate type priority to key
  2343. exchange priority.
  2344. * src/SocketCore.cc
  2345. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Disconnect seeder if client is also in seed state.
  2347. * src/BtBitfieldMessage.cc
  2348. * src/BtHaveAllMessage.cc
  2349. * src/BtHaveMessage.cc
  2350. * src/message.h
  2351. * test/BtBitfieldMessageTest.cc
  2352. * test/BtHaveAllMessageTest.cc
  2353. * test/BtHaveMessageTest.cc
  2354. * test/MockPieceStorage.h
  2355. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2356. Keep CreateRequestCommand in queue when no segment is available so
  2357. that they can pick up pieces which slow BitTorrent peers are
  2358. downloading.
  2359. * src/AbstractCommand.cc
  2360. * src/CreateRequestCommand.cc
  2361. * src/CreateRequestCommand.h
  2362. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2363. --bt-stop-timeout now only checks download speed.
  2364. * src/BtStopDownloadCommand.cc
  2365. * src/BtStopDownloadCommand.h
  2366. * src/BtSetup.cc
  2367. * src/usage_text.h
  2368. * doc/aria2c.1.txt
  2369. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2370. Fixed compile error regarding BUFSIZE.
  2371. * src/DownloadCommand.cc
  2372. * src/DownloadCommand.h
  2373. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Documented tellWaiting xml-rpc method in man page.
  2375. * doc/aria2c.1.txt
  2376. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2377. Bump up version number to 1.5.0
  2378. * configure.ac
  2379. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2380. Removed resolved TODO1.5
  2381. * src/AbstractCommand.cc
  2382. * src/DownloadCommand.cc
  2383. * src/RequestGroup.cc
  2384. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. Release pooled and in-flight Request objectsand URIResult objects
  2386. in FileEntry after download completed.
  2387. * src/DownloadContext.cc
  2388. * src/DownloadContext.h
  2389. * src/FileEntry.cc
  2390. * src/FileEntry.h
  2391. * src/RequestGroup.cc
  2392. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. Set manual and source attribute in aria2c.1.txt
  2394. * doc/aria2c.1.txt
  2395. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2396. Documented that the default value of --use-head is 'false' in man
  2397. page.
  2398. * doc/aria2c.1.txt
  2399. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2400. Added bt-stop-timeout option to -i list.
  2401. * doc/aria2c.1.txt
  2402. * src/download_helper.cc
  2403. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2404. Fixed typo
  2405. * doc/aria2c.1.txt
  2406. * src/usage_text.h
  2407. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Removed peer-id-prefix option from -i list.
  2409. * doc/aria2c.1.txt
  2410. * src/download_helper.cc
  2411. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2412. Fixed typo
  2413. * doc/aria2c.1.txt
  2414. * src/usage_text.h
  2415. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. Documented --bt-stop-timeout option in man page.
  2417. * doc/aria2c.1.txt
  2418. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Updated README regarding multi-file torrent web-seeding.
  2420. * doc/README.txt
  2421. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2422. Updated man page regarding multi-file torrent web-seeding.
  2423. * doc/aria2c.1.txt
  2424. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Updated doc
  2426. * src/version_usage.cc
  2427. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2428. Winsock select() doesn't work if no socket is in FD_SET. To
  2429. overcome this problem, a dummy socket is added to FD_SET and it is
  2430. given to select().
  2431. * src/SelectEventPoll.cc
  2432. * src/SelectEventPoll.h
  2433. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2434. Disabled --use-head option by default because --use-head=true
  2435. causes problems on some web sites.
  2436. * src/OptionHandlerFactory.cc
  2437. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2438. Print URL List in -S option for torrent.
  2439. * src/bittorrent_helper.cc
  2440. * src/bittorrent_helper.h
  2441. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. Allocate buffer in ctor of DownloadCommand.
  2443. * src/DownloadCommand.cc
  2444. * src/DownloadCommand.h
  2445. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2446. Removed DiskAdaptor::onDownloadComplete()
  2447. * src/DirectDiskAdaptor.cc
  2448. * src/DirectDiskAdaptor.h
  2449. * src/DiskAdaptor.h
  2450. * src/MultiDiskAdaptor.cc
  2451. * src/MultiDiskAdaptor.h
  2452. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. Committed missing BtStopDownloadCommand.{cc,h}
  2454. * src/BtStopDownloadCommand.cc
  2455. * src/BtStopDownloadCommand.h
  2456. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2458. download if the download speed is 0 and the number of seeder is 0
  2459. in consecutive SEC seconds. By default, this function is disabled.
  2460. * src/BtSetup.cc
  2461. * src/Makefile.am
  2462. * src/OptionHandlerFactory.cc
  2463. * src/prefs.cc
  2464. * src/prefs.h
  2465. * src/usage_text.h
  2466. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Removed the call to DiskAdaptor::onDownloadComplete() from
  2468. BtCheckIntegrityEntry and DefaultPieceStorage.
  2469. * src/BtCheckIntegrityEntry.cc
  2470. * src/DefaultPieceStorage.cc
  2471. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Commented out throw statements when number of piece is 0 to
  2473. download 0 length torrent.
  2474. * src/bittorrent_helper.cc
  2475. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2476. Call RequestGroup::createNextCommandWithAdj() from
  2477. BtFileAllocationEntry if at least one FileEntry has URI. The
  2478. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2479. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2480. * src/BtFileAllocationEntry.cc
  2481. * src/FileEntry.h
  2482. * src/RequestGroup.cc
  2483. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Generate peer ID after SimpleRandomizer is initialized.
  2485. * src/main.cc
  2486. * src/option_processing.cc
  2487. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2488. Removed unused method argument.
  2489. * src/CreateRequestCommand.cc
  2490. * src/RequestGroup.cc
  2491. * src/RequestGroup.h
  2492. * src/RequestGroupMan.cc
  2493. * src/TrackerWatcherCommand.cc
  2494. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Made URI reusing function work.
  2496. * src/CreateRequestCommand.cc
  2497. * src/FileEntry.cc
  2498. * src/FileEntry.h
  2499. * test/FileEntryTest.cc
  2500. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. Add formerly fastest PeerStat's sessionDownloadLength to new
  2502. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2503. bytes in a session.
  2504. * src/PeerStat.cc
  2505. * src/SegmentMan.cc
  2506. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. If pipelining is enabled, we can always pool socket.
  2508. * src/HttpDownloadCommand.cc
  2509. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. In a single file download, file size becomes known just after
  2511. downloading, set total length to FileEntry object when download
  2512. completed.
  2513. * src/DownloadCommand.cc
  2514. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2515. Use std::vector::reserve() for fileEntries and pieceHashes in
  2516. bittorrent_helper
  2517. * src/bittorrent_helper.cc
  2518. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2520. Removed hidden option PREF_RESET_URI.
  2521. * src/AbstractCommand.cc
  2522. * src/OptionHandlerFactory.cc
  2523. * src/prefs.cc
  2524. * src/prefs.h
  2525. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Removed unused variable/function.
  2527. * src/PeerStat.h
  2528. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Show first URL in Download Results if file path is not available.
  2530. * src/FileEntry.h
  2531. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2532. Throw exception if file path doesn't exist in FTP URL.
  2533. * src/InitiateConnectionCommandFactory.cc
  2534. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2535. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2536. * src/BitfieldMan.cc
  2537. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2538. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2539. of PeerStat in SegmentMan. peerStats is used for calculating
  2540. download speed. Therefore all active PeerStats should be in
  2541. there. Another one is _fastestPeerStats and it only contains
  2542. fastest PeerStat for each hostname/protocol pair. They are used
  2543. for updating ServerStat.
  2544. * src/DownloadCommand.cc
  2545. * src/Request.h
  2546. * src/RequestGroupMan.cc
  2547. * src/SegmentMan.cc
  2548. * src/SegmentMan.h
  2549. * test/SegmentManTest.cc
  2550. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Try all available addresses returned by DNS until it gets
  2552. connected in HTTP(S)/FTP download
  2553. * src/AbstractCommand.cc
  2554. * src/AbstractCommand.h
  2555. * src/AbstractProxyRequestCommand.cc
  2556. * src/AbstractProxyRequestCommand.h
  2557. * src/DNSCache.h
  2558. * src/DownloadEngine.cc
  2559. * src/DownloadEngine.h
  2560. * src/FtpInitiateConnectionCommand.cc
  2561. * src/FtpInitiateConnectionCommand.h
  2562. * src/FtpNegotiationCommand.cc
  2563. * src/FtpNegotiationCommand.h
  2564. * src/HttpInitiateConnectionCommand.cc
  2565. * src/HttpInitiateConnectionCommand.h
  2566. * src/HttpRequestCommand.cc
  2567. * src/HttpRequestCommand.h
  2568. * src/InitiateConnectionCommand.cc
  2569. * src/InitiateConnectionCommand.h
  2570. * test/DNSCacheTest.cc
  2571. * test/Makefile.am
  2572. * test/SimpleDNSCacheTest.cc
  2573. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2574. Updated doc
  2575. * src/download_helper.cc
  2576. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Refactored fieldMan ctor.
  2578. * src/BitfieldMan.cc
  2579. * src/BitfieldMan.h
  2580. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Don't print "No files to download." message if -S is given.
  2582. * src/main.cc
  2583. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Set referer and method to newly created Request object.
  2585. * src/CreateRequestCommand.cc
  2586. * src/FileEntry.cc
  2587. * src/FileEntry.h
  2588. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2590. * src/AbstractCommand.cc
  2591. * src/AbstractCommand.h
  2592. * src/CreateRequestCommand.cc
  2593. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2594. Get proxy download working
  2595. * src/AbstractProxyRequestCommand.cc
  2596. * src/AbstractProxyRequestCommand.h
  2597. * src/AbstractProxyResponseCommand.cc
  2598. * src/AbstractProxyResponseCommand.h
  2599. * src/FtpInitiateConnectionCommand.cc
  2600. * src/FtpTunnelRequestCommand.cc
  2601. * src/FtpTunnelRequestCommand.h
  2602. * src/FtpTunnelResponseCommand.cc
  2603. * src/FtpTunnelResponseCommand.h
  2604. * src/HttpInitiateConnectionCommand.cc
  2605. * src/HttpProxyRequestCommand.cc
  2606. * src/HttpProxyRequestCommand.h
  2607. * src/HttpProxyResponseCommand.cc
  2608. * src/HttpProxyResponseCommand.h
  2609. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Use SegmentMan::getSegment(cuid) for single file download.
  2611. * src/AbstractCommand.cc
  2612. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Fixed bufSize calculation
  2614. * src/DownloadCommand.cc
  2615. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2616. Don't append "/" if base URI ends with "/".
  2617. * src/bittorrent_helper.cc
  2618. * test/url-list-multiFile.torrent
  2619. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2620. HTTP pipelining is now working. Fixed Segmention fault in
  2621. BitfieldMan's copy ctor.
  2622. * src/AbstractCommand.cc
  2623. * src/BitfieldMan.cc
  2624. * src/BitfieldMan.h
  2625. * src/DownloadCommand.cc
  2626. * src/HttpDownloadCommand.cc
  2627. * src/HttpRequest.cc
  2628. * src/SegmentMan.cc
  2629. * src/SegmentMan.h
  2630. * test/BitfieldManTest.cc
  2631. * test/SegmentManTest.cc
  2632. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Removed ServerHost. Same functionality is implemented using
  2634. FileEntry's in-flight Request objects.
  2635. * src/AbstractCommand.cc
  2636. * src/BtDependency.cc
  2637. * src/CreateRequestCommand.cc
  2638. * src/FileEntry.cc
  2639. * src/FileEntry.h
  2640. * src/FtpNegotiationCommand.cc
  2641. * src/HttpResponseCommand.cc
  2642. * src/Makefile.am
  2643. * src/Metalink2RequestGroup.cc
  2644. * src/RequestGroup.cc
  2645. * src/RequestGroup.h
  2646. * src/ServerHost.cc: Removed
  2647. * src/ServerHost.h: Removed
  2648. * test/BtDependencyTest.cc
  2649. * test/FileEntryTest.cc
  2650. * test/RequestGroupTest.cc
  2651. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. Rewritten PeerStat handling. In the previous implementation,
  2653. faster command tries to find slower command. In this new
  2654. implementation, slower command tries to find faster command.
  2655. PeerStat is now created in each HTTP/FTP request to get download
  2656. rate correctly. If the download range is small, the download rate
  2657. tends to small and this will occur at the later stage of download.
  2658. * src/AbstractCommand.cc
  2659. * src/DownloadCommand.cc
  2660. * src/FileEntry.cc
  2661. * src/FileEntry.h
  2662. * src/Request.cc
  2663. * src/Request.h
  2664. * src/RequestGroup.h
  2665. * src/RequestGroupMan.cc
  2666. * src/SegmentMan.cc
  2667. * src/SegmentMan.h
  2668. * test/SegmentManTest.cc
  2669. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2670. Removed _uris from RequestGroup. All functions that refer to _uris
  2671. were moved to FileEntry. Exit status code are now defined in
  2672. DownloadResultCode.h.
  2673. * src/AbstractCommand.cc
  2674. * src/AdaptiveURISelector.cc
  2675. * src/AdaptiveURISelector.h
  2676. * src/AutoSaveCommand.cc
  2677. * src/BtPostDownloadHandler.cc
  2678. * src/CheckIntegrityDispatcherCommand.cc
  2679. * src/CookieStorage.cc
  2680. * src/DHTAutoSaveCommand.cc
  2681. * src/DHTBucketRefreshCommand.cc
  2682. * src/DHTEntryPointNameResolveCommand.cc
  2683. * src/DHTInteractionCommand.cc
  2684. * src/DHTPeerAnnounceCommand.cc
  2685. * src/DHTTokenUpdateCommand.cc
  2686. * src/DlAbortEx.h
  2687. * src/DlRetryEx.h
  2688. * src/DownloadCommand.cc
  2689. * src/DownloadContext.h
  2690. * src/DownloadFailureException.h
  2691. * src/DownloadResult.h
  2692. * src/DownloadResultCode.h
  2693. * src/FeedbackURISelector.cc
  2694. * src/FeedbackURISelector.h
  2695. * src/FileEntry.cc
  2696. * src/FileEntry.h
  2697. * src/FtpNegotiationCommand.cc
  2698. * src/HttpListenCommand.cc
  2699. * src/HttpResponseCommand.cc
  2700. * src/HttpServerResponseCommand.cc
  2701. * src/HttpSkipResponseCommand.cc
  2702. * src/InOrderURISelector.cc
  2703. * src/InOrderURISelector.h
  2704. * src/Makefile.am
  2705. * src/Makefile.in
  2706. * src/Metalink2RequestGroup.cc
  2707. * src/MultiUrlRequestInfo.cc
  2708. * src/MultiUrlRequestInfo.h
  2709. * src/OptionHandlerFactory.cc
  2710. * src/PeerListenCommand.cc
  2711. * src/RecoverableException.h
  2712. * src/RequestGroup.cc
  2713. * src/RequestGroup.h
  2714. * src/RequestGroupMan.cc
  2715. * src/RequestGroupMan.h
  2716. * src/TimedHaltCommand.cc
  2717. * src/TrackerWatcherCommand.cc
  2718. * src/URIResult.cc
  2719. * src/URIResult.h
  2720. * src/URISelector.h
  2721. * src/XmlRpcMethodImpl.cc
  2722. * src/bittorrent_helper.cc
  2723. * src/bittorrent_helper.h
  2724. * src/download_helper.cc
  2725. * src/main.cc
  2726. * src/option_processing.cc
  2727. * test/BtDependencyTest.cc
  2728. * test/BtPostDownloadHandlerTest.cc
  2729. * test/CookieStorageTest.cc
  2730. * test/DefaultBtMessageDispatcherTest.cc
  2731. * test/DownloadHandlerFactoryTest.cc
  2732. * test/DownloadHelperTest.cc
  2733. * test/FeedbackURISelectorTest.cc
  2734. * test/FileEntryTest.cc
  2735. * test/InOrderURISelectorTest.cc
  2736. * test/Metalink2RequestGroupTest.cc
  2737. * test/MetalinkPostDownloadHandlerTest.cc
  2738. * test/RequestGroupManTest.cc
  2739. * test/RequestGroupTest.cc
  2740. * test/XmlRpcMethodTest.cc
  2741. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2742. Removed MockBtContext.h
  2743. * test/Makefile.am
  2744. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2745. Removed _currentRequest from StreamCheckIntegrityEntry and
  2746. StreamFileAllocationEntry.
  2747. * src/AbstractCommand.cc
  2748. * src/HttpResponseCommand.cc
  2749. * src/RequestGroup.cc
  2750. * src/StreamCheckIntegrityEntry.cc
  2751. * src/StreamCheckIntegrityEntry.h
  2752. * src/StreamFileAllocationEntry.cc
  2753. * src/StreamFileAllocationEntry.h
  2754. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Rewritten DownloadContext and removed SingleFileDownloadContext
  2756. and BtContext and its derived classes. BitTorrent specific
  2757. attributes are now set by DownloadContext::setAttribute() with key
  2758. bittorrent::BITTORRENT.
  2759. * src/AbstractBtMessage.cc
  2760. * src/AbstractBtMessage.h
  2761. * src/AbstractCommand.cc
  2762. * src/AbstractCommand.h
  2763. * src/AbstractProxyRequestCommand.cc
  2764. * src/AbstractProxyResponseCommand.cc
  2765. * src/ActivePeerConnectionCommand.cc
  2766. * src/ActivePeerConnectionCommand.h
  2767. * src/AnnounceList.cc
  2768. * src/BtCheckIntegrityEntry.cc
  2769. * src/BtConstants.h
  2770. * src/BtContext.h: Removed
  2771. * src/BtDependency.cc
  2772. * src/BtExtendedMessage.cc
  2773. * src/BtPieceMessage.cc
  2774. * src/BtPieceMessage.h
  2775. * src/BtPostDownloadHandler.cc
  2776. * src/BtRegistry.cc
  2777. * src/BtRegistry.h
  2778. * src/BtSetup.cc
  2779. * src/CheckIntegrityCommand.cc
  2780. * src/CheckIntegrityEntry.cc
  2781. * src/ChecksumCheckIntegrityEntry.cc
  2782. * src/ConsoleStatCalc.cc
  2783. * src/ContentTypeRequestGroupCriteria.cc
  2784. * src/DHTGetPeersCommand.cc
  2785. * src/DHTGetPeersCommand.h
  2786. * src/DHTPeerLookupTask.cc
  2787. * src/DHTPeerLookupTask.h
  2788. * src/DHTTaskFactory.h
  2789. * src/DHTTaskFactoryImpl.cc
  2790. * src/DHTTaskFactoryImpl.h
  2791. * src/DefaultBtAnnounce.cc
  2792. * src/DefaultBtAnnounce.h
  2793. * src/DefaultBtContext.cc: Removed
  2794. * src/DefaultBtContext.h: Removed
  2795. * src/DefaultBtInteractive.cc
  2796. * src/DefaultBtInteractive.h
  2797. * src/DefaultBtMessageDispatcher.cc
  2798. * src/DefaultBtMessageDispatcher.h
  2799. * src/DefaultBtMessageFactory.cc
  2800. * src/DefaultBtMessageFactory.h
  2801. * src/DefaultBtMessageReceiver.cc
  2802. * src/DefaultBtMessageReceiver.h
  2803. * src/DefaultBtProgressInfoFile.cc
  2804. * src/DefaultBtRequestFactory.cc
  2805. * src/DefaultBtRequestFactory.h
  2806. * src/DefaultExtensionMessageFactory.cc
  2807. * src/DefaultExtensionMessageFactory.h
  2808. * src/DefaultPeerStorage.cc
  2809. * src/DefaultPeerStorage.h
  2810. * src/DefaultPieceStorage.cc
  2811. * src/DefaultSegmentManFactory.cc
  2812. * src/DiskAdaptor.cc
  2813. * src/DiskAdaptor.h
  2814. * src/DownloadContext.cc
  2815. * src/DownloadContext.h
  2816. * src/DownloadEngine.cc
  2817. * src/DownloadEngineFactory.cc
  2818. * src/DownloadHandler.cc
  2819. * src/DownloadResult.h
  2820. * src/FileAllocationCommand.cc
  2821. * src/FileAllocationDispatcherCommand.cc
  2822. * src/FileAllocationEntry.cc
  2823. * src/FileEntry.h
  2824. * src/FillRequestGroupCommand.cc
  2825. * src/FtpDownloadCommand.cc
  2826. * src/FtpFinishDownloadCommand.cc
  2827. * src/FtpInitiateConnectionCommand.cc
  2828. * src/FtpNegotiationCommand.cc
  2829. * src/FtpTunnelRequestCommand.cc
  2830. * src/FtpTunnelResponseCommand.cc
  2831. * src/HandshakeExtensionMessage.cc
  2832. * src/HandshakeExtensionMessage.h
  2833. * src/HaveEraseCommand.cc
  2834. * src/HttpDownloadCommand.cc
  2835. * src/HttpInitiateConnectionCommand.cc
  2836. * src/HttpProxyRequestCommand.cc
  2837. * src/HttpProxyResponseCommand.cc
  2838. * src/HttpRequest.cc
  2839. * src/HttpRequest.h
  2840. * src/HttpRequestCommand.cc
  2841. * src/HttpResponseCommand.cc
  2842. * src/HttpServerBodyCommand.cc
  2843. * src/HttpServerCommand.cc
  2844. * src/HttpSkipResponseCommand.cc
  2845. * src/InitiateConnectionCommandFactory.cc
  2846. * src/InitiatorMSEHandshakeCommand.cc
  2847. * src/InitiatorMSEHandshakeCommand.h
  2848. * src/IteratableChecksumValidator.cc
  2849. * src/IteratableChecksumValidator.h
  2850. * src/IteratableChunkChecksumValidator.cc
  2851. * src/MSEHandshake.cc
  2852. * src/MSEHandshake.h
  2853. * src/Makefile.am
  2854. * src/Makefile.in
  2855. * src/Metalink2RequestGroup.cc
  2856. * src/MetalinkPostDownloadHandler.cc
  2857. * src/MultiDiskAdaptor.cc
  2858. * src/MultiDiskAdaptor.h
  2859. * src/MultiFileAllocationIterator.cc
  2860. * src/MultiUrlRequestInfo.cc
  2861. * src/PeerChokeCommand.cc
  2862. * src/PeerChokeCommand.h
  2863. * src/PeerInitiateConnectionCommand.cc
  2864. * src/PeerInitiateConnectionCommand.h
  2865. * src/PeerInteractionCommand.cc
  2866. * src/PeerInteractionCommand.h
  2867. * src/PeerReceiveHandshakeCommand.cc
  2868. * src/PieceHashCheckIntegrityEntry.cc
  2869. * src/RealtimeCommand.cc
  2870. * src/ReceiverMSEHandshakeCommand.cc
  2871. * src/RequestGroup.cc
  2872. * src/RequestGroup.h
  2873. * src/RequestGroupEntry.cc
  2874. * src/RequestGroupMan.cc
  2875. * src/SeedCheckCommand.cc
  2876. * src/SeedCheckCommand.h
  2877. * src/SegmentMan.cc
  2878. * src/ShareRatioSeedCriteria.h
  2879. * src/SingleFileDownloadContext.cc: Removed
  2880. * src/SingleFileDownloadContext.h: Removed
  2881. * src/SleepCommand.cc
  2882. * src/StreamCheckIntegrityEntry.cc
  2883. * src/TrackerWatcherCommand.cc
  2884. * src/TrackerWatcherCommand.h
  2885. * src/UnknownLengthPieceStorage.cc
  2886. * src/Util.cc
  2887. * src/Util.h
  2888. * src/XmlRpcMethodImpl.cc
  2889. * src/bittorrent_helper.cc
  2890. * src/bittorrent_helper.h
  2891. * src/download_helper.cc
  2892. * src/main.cc
  2893. * src/option_processing.cc
  2894. * test/BitfieldManTest.cc
  2895. * test/BittorrentHelperTest.cc
  2896. * test/BtCancelMessageTest.cc
  2897. * test/BtChokeMessageTest.cc
  2898. * test/BtDependencyTest.cc
  2899. * test/BtPieceMessageTest.cc
  2900. * test/BtPostDownloadHandlerTest.cc
  2901. * test/BtRegistryTest.cc
  2902. * test/BtRejectMessageTest.cc
  2903. * test/BtRequestMessageTest.cc
  2904. * test/DHTPeerAnnounceStorageTest.cc
  2905. * test/DefaultBtAnnounceTest.cc
  2906. * test/DefaultBtContextTest.cc: Removed
  2907. * test/DefaultBtMessageDispatcherTest.cc
  2908. * test/DefaultBtMessageFactoryTest.cc
  2909. * test/DefaultBtProgressInfoFileTest.cc
  2910. * test/DefaultBtRequestFactoryTest.cc
  2911. * test/DefaultExtensionMessageFactoryTest.cc
  2912. * test/DefaultPeerStorageTest.cc
  2913. * test/DefaultPieceStorageTest.cc
  2914. * test/DirectDiskAdaptorTest.cc
  2915. * test/DownloadContextTest.cc
  2916. * test/DownloadHandlerFactoryTest.cc
  2917. * test/DownloadHelperTest.cc
  2918. * test/HandshakeExtensionMessageTest.cc
  2919. * test/HttpRequestTest.cc
  2920. * test/HttpResponseTest.cc
  2921. * test/IteratableChecksumValidatorTest.cc
  2922. * test/IteratableChunkChecksumValidatorTest.cc
  2923. * test/MSEHandshakeTest.cc
  2924. * test/Makefile.am
  2925. * test/Makefile.in
  2926. * test/Metalink2RequestGroupTest.cc
  2927. * test/MetalinkPostDownloadHandlerTest.cc
  2928. * test/MockBtContext.h: Removed
  2929. * test/MockDHTTaskFactory.h
  2930. * test/MockDownloadContext.h: Removed
  2931. * test/MockPieceStorage.h
  2932. * test/MultiDiskAdaptorTest.cc
  2933. * test/MultiFileAllocationIteratorTest.cc
  2934. * test/RequestGroupManTest.cc
  2935. * test/RequestGroupTest.cc
  2936. * test/SegmentManTest.cc
  2937. * test/ShareRatioSeedCriteriaTest.cc
  2938. * test/SingleFileDownloadContextTest.cc: Removed
  2939. * test/UtilTest.cc
  2940. * test/XmlRpcMethodTest.cc
  2941. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2942. Added experimental support of WEB-Seeding for multi-file torrent.
  2943. Due to fundamental changes in file handling in HTTP/FTP code, many
  2944. functions are not working: PeerStat, ServerHost, proxy..etc
  2945. * src/AbstractCommand.cc
  2946. * src/AbstractCommand.h
  2947. * src/BitfieldMan.cc
  2948. * src/BitfieldMan.h
  2949. * src/CreateRequestCommand.cc
  2950. * src/CreateRequestCommand.h
  2951. * src/DefaultPieceStorage.cc
  2952. * src/DefaultPieceStorage.h
  2953. * src/DownloadCommand.cc
  2954. * src/DownloadCommand.h
  2955. * src/DownloadContext.cc
  2956. * src/DownloadContext.h
  2957. * src/FileEntry.cc
  2958. * src/FileEntry.h
  2959. * src/FtpDownloadCommand.cc
  2960. * src/FtpDownloadCommand.h
  2961. * src/FtpFinishDownloadCommand.cc
  2962. * src/FtpFinishDownloadCommand.h
  2963. * src/FtpInitiateConnectionCommand.cc
  2964. * src/FtpInitiateConnectionCommand.h
  2965. * src/FtpNegotiationCommand.cc
  2966. * src/FtpNegotiationCommand.h
  2967. * src/FtpTunnelResponseCommand.cc
  2968. * src/HttpDownloadCommand.cc
  2969. * src/HttpDownloadCommand.h
  2970. * src/HttpInitiateConnectionCommand.cc
  2971. * src/HttpInitiateConnectionCommand.h
  2972. * src/HttpProxyResponseCommand.cc
  2973. * src/HttpRequest.cc
  2974. * src/HttpRequest.h
  2975. * src/HttpRequestCommand.cc
  2976. * src/HttpRequestCommand.h
  2977. * src/HttpResponseCommand.cc
  2978. * src/HttpResponseCommand.h
  2979. * src/HttpSkipResponseCommand.cc
  2980. * src/HttpSkipResponseCommand.h
  2981. * src/InitiateConnectionCommand.cc
  2982. * src/InitiateConnectionCommand.h
  2983. * src/InitiateConnectionCommandFactory.cc
  2984. * src/InitiateConnectionCommandFactory.h
  2985. * src/Makefile.am
  2986. * src/PieceStorage.h
  2987. * src/RequestGroup.cc
  2988. * src/RequestGroup.h
  2989. * src/RequestGroupMan.cc
  2990. * src/SegmentMan.cc
  2991. * src/SegmentMan.h
  2992. * src/SingleFileDownloadContext.h
  2993. * src/StreamFileAllocationEntry.cc
  2994. * src/TrackerWatcherCommand.cc
  2995. * src/UnknownLengthPieceStorage.cc
  2996. * src/UnknownLengthPieceStorage.h
  2997. * src/array_fun.h
  2998. * src/bitfield.h
  2999. * src/download_helper.cc
  3000. * test/DownloadContextTest.cc
  3001. * test/Makefile.am
  3002. * test/MockDownloadContext.h
  3003. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3004. Added tellWaiting XML-RPC method.
  3005. * src/SingleFileDownloadContext.cc
  3006. * src/XmlRpcMethodFactory.cc
  3007. * src/XmlRpcMethodImpl.cc
  3008. * src/XmlRpcMethodImpl.h
  3009. * test/XmlRpcMethodTest.cc
  3010. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3011. Updated CookieStorageTest
  3012. * test/CookieStorageTest.cc
  3013. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3014. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3015. handle excepion inside these functions.
  3016. * src/LibgnutlsTLSContext.cc
  3017. * src/LibgnutlsTLSContext.h
  3018. * src/LibsslTLSContext.cc
  3019. * src/LibsslTLSContext.h
  3020. * src/MultiUrlRequestInfo.cc
  3021. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3022. Added comment
  3023. * src/RequestGroup.cc
  3024. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. In CookieStorage::load() and saveNsFormat(), handle exception
  3026. inside the functions. When saving Cookies, first write temporary
  3027. file and after successful writes, then renames it to final
  3028. destination.
  3029. * src/CookieStorage.cc
  3030. * src/CookieStorage.h
  3031. * src/MultiUrlRequestInfo.cc
  3032. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3033. The default value of --dir option is the absolute path to the
  3034. current directory. If getcwd() is failed, then it is ".", which is
  3035. the same value with old implementation. This change is necessary
  3036. because after daemon() call, the current working directory is
  3037. changed to /.
  3038. * src/File.cc
  3039. * src/File.h
  3040. * src/OptionHandlerFactory.cc
  3041. * src/option_processing.cc
  3042. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3043. Call daemon() with arguments(0,0), which means daemon() changes
  3044. current working directory to / and redirects stdin, stdout and
  3045. stderr to /dev/null.
  3046. * src/option_processing.cc
  3047. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3048. Small performance optimizations.
  3049. * src/RequestGroupMan.cc
  3050. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3051. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3052. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3053. * src/RequestGroupMan.cc
  3054. * src/RequestGroupMan.h
  3055. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3056. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3057. setNoWiat(true) if newly created command calls
  3058. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3059. * src/HttpListenCommand.cc
  3060. * src/HttpServerBodyCommand.cc
  3061. * src/HttpServerCommand.cc
  3062. * src/HttpServerResponseCommand.cc
  3063. * src/InitiateConnectionCommand.cc
  3064. * src/RequestGroup.cc
  3065. * src/StreamFileAllocationEntry.cc
  3066. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Removed include vector
  3068. * src/BtRegistry.h
  3069. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3070. Rewritten BtRegistry
  3071. * src/BtRegistry.cc
  3072. * src/BtRegistry.h
  3073. * src/BtSetup.cc
  3074. * src/ConsoleStatCalc.cc
  3075. * src/PeerInteractionCommand.cc
  3076. * src/PeerReceiveHandshakeCommand.cc
  3077. * src/ReceiverMSEHandshakeCommand.cc
  3078. * src/RequestGroup.cc
  3079. * src/XmlRpcMethodImpl.cc
  3080. * test/BtRegistryTest.cc
  3081. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3082. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3083. * src/DefaultBtProgressInfoFile.cc
  3084. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Throw an exception if position is less than 0.
  3086. * src/XmlRpcMethodImpl.cc
  3087. * test/XmlRpcMethodTest.cc
  3088. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. Use writeFilePath() in ConsoleStatCalc.cc
  3090. * src/ConsoleStatCalc.cc
  3091. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3092. Receive the return value as const reference from
  3093. DownloadContext::getFileEntries().
  3094. * src/DefaultPieceStorage.cc
  3095. * src/RequestGroupMan.cc
  3096. * src/XmlRpcMethodImpl.cc
  3097. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3098. DownloadContext now has _fileEntries so that
  3099. DownloadContext::getFileEntries() can returns its const reference.
  3100. * src/DefaultBtContext.cc
  3101. * src/DefaultBtContext.h
  3102. * src/DownloadContext.cc
  3103. * src/DownloadContext.h
  3104. * src/SingleFileDownloadContext.cc
  3105. * src/SingleFileDownloadContext.h
  3106. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3107. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3108. writeFilePath() function template from RequestGroupMan.cc to
  3109. FileEntry.h
  3110. * src/FileEntry.h
  3111. * src/RequestGroupMan.cc
  3112. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3113. Documented 'position' parameter is starting from 0 in man page.
  3114. * doc/aria2c.1.txt
  3115. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3116. Updated doc.
  3117. * src/MSEHandshake.cc
  3118. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3119. Removed _acceptFeatures and its accessor functions from
  3120. RequestGroup since they are not used practically.
  3121. * src/HttpRequestCommand.cc
  3122. * src/RequestGroup.cc
  3123. * src/RequestGroup.h
  3124. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3125. Removed member _maxTries from RequestGroup class to avoid
  3126. duplicate option value. Those classes who refer this variable
  3127. should use option value of PREF_MAX_TRIES directly.
  3128. * src/AbstractCommand.cc
  3129. * src/RequestGroup.cc
  3130. * src/RequestGroup.h
  3131. * src/TrackerWatcherCommand.cc
  3132. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3133. * Release 1.4.1
  3134. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3135. Fixed compiler warnings on netbsd
  3136. * src/DHTConnectionImpl.cc
  3137. * src/PeerListenCommand.cc
  3138. * src/PeerSessionResource.cc
  3139. * src/SegmentMan.cc
  3140. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Updated Ukrainian translation. Thanks to all translators.
  3142. * po/uk.po
  3143. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. Bump up version number to 1.4.1.
  3145. * configure.ac
  3146. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. Added unit tests for strjoin, strconcat and strappend.
  3148. * test/a2functionalTest.cc
  3149. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3150. Rewritten strconcat and strappend using operator+ instead of
  3151. append().
  3152. * src/a2functional.h
  3153. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3155. is enabled.
  3156. * src/Makefile.am
  3157. * test/Makefile.am
  3158. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3159. Added countSeeder() function which counts seeder in the given
  3160. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3161. * src/ConsoleStatCalc.cc
  3162. * src/Peer.h
  3163. * src/XmlRpcMethodImpl.cc
  3164. * test/PeerTest.cc
  3165. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. Documented missing seeder in getPeers xml-rpc method.
  3167. Documented uploadLength and numSeeders.
  3168. * doc/aria2c.1.txt
  3169. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Added uploadLength and numSeeders to the response of tellStatus
  3171. xml-rpc method. Assert that PeerStorage instance is not null
  3172. instead of checking if statement. It should be non-null in this
  3173. context.
  3174. * src/XmlRpcMethodImpl.cc
  3175. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3176. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3177. * src/XmlRpcResponse.cc
  3178. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3179. Avoid intermediate object during string concatenation.
  3180. * src/HttpRequest.cc
  3181. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3182. Added strjoin function template. Use it in pathJoin()
  3183. * src/Util.h
  3184. * src/a2functional.h
  3185. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3186. Avoid intermediate object during string concatenation. Replaced
  3187. post-increment unary operator with pre-increment one in for loop.
  3188. * src/AdaptiveURISelector.cc
  3189. * src/AnnounceList.cc
  3190. * src/AuthConfig.h
  3191. * src/BtBitfieldMessage.cc
  3192. * src/BtExtendedMessage.cc
  3193. * src/BtHandshakeMessage.cc
  3194. * src/BtPieceMessage.cc
  3195. * src/BtPortMessage.cc
  3196. * src/Cookie.cc
  3197. * src/DHTAnnouncePeerMessage.cc
  3198. * src/DHTAutoSaveCommand.cc
  3199. * src/DHTGetPeersReplyMessage.cc
  3200. * src/DHTNode.cc
  3201. * src/DHTQueryMessage.cc
  3202. * src/DHTResponseMessage.cc
  3203. * src/DHTUnknownMessage.cc
  3204. * src/DefaultBtAnnounce.cc
  3205. * src/DefaultBtContext.cc
  3206. * src/DefaultBtInteractive.cc
  3207. * src/DefaultBtProgressInfoFile.cc
  3208. * src/DefaultPeerStorage.cc
  3209. * src/DownloadEngine.cc
  3210. * src/FeatureConfig.cc
  3211. * src/File.cc
  3212. * src/FtpConnection.cc
  3213. * src/FtpNegotiationCommand.cc
  3214. * src/HandshakeExtensionMessage.cc
  3215. * src/HttpConnection.cc
  3216. * src/HttpRequest.cc
  3217. * src/HttpResponseCommand.cc
  3218. * src/HttpServer.cc
  3219. * src/IndexBtMessage.cc
  3220. * src/Metalink2RequestGroup.cc
  3221. * src/OptionHandlerImpl.h
  3222. * src/PStringBuildVisitor.cc
  3223. * src/Peer.cc
  3224. * src/PeerListenCommand.cc
  3225. * src/Piece.cc
  3226. * src/RangeBtMessage.cc
  3227. * src/Request.cc
  3228. * src/Request.h
  3229. * src/RequestGroup.cc
  3230. * src/RequestGroupMan.cc
  3231. * src/ServerStat.cc
  3232. * src/ServerStatMan.cc
  3233. * src/UTPexExtensionMessage.cc
  3234. * src/Util.cc
  3235. * src/a2functional.h
  3236. * src/download_helper.cc
  3237. * src/messageDigest.cc
  3238. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3239. Unchoke a peer randomly at first and second choke round in seed
  3240. state.
  3241. * src/BtSeederStateChoke.cc
  3242. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3243. Added (sock_t) to quiet compiler warnings in MinGW
  3244. * src/SocketCore.cc
  3245. * src/SocketCore.h
  3246. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3247. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3248. * src/EpollEventPoll.h
  3249. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3250. Added fork() emulation using CreateProcess() in MinGW
  3251. * src/RequestGroupMan.cc
  3252. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3253. * Release 1.4.0
  3254. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3255. Added utf8.torrent to EXTRA_DIST
  3256. * test/Makefile.am
  3257. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3258. Fixed docs of aria2.addMetalink xml-rpc method.
  3259. * doc/aria2c.1.txt
  3260. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3261. Added Slovak translation. Updated Ukrainian and Brazilian
  3262. Portuguese translation. Thanks to all translators.
  3263. * po/sk.po
  3264. * po/uk.po
  3265. * po/pt_BR.po
  3266. * po/LINGUAS
  3267. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3268. Added test case for XmlRpcProcessor to fail to parse malformed
  3269. document.
  3270. * test/XmlRpcRequestProcessorTest.cc
  3271. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3272. Removed *.gmo files in po because they are generated on 'make
  3273. dist'
  3274. * po/*.gmo
  3275. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3276. Documented max-concurrent-downloads of changeGlobalOption method
  3277. in man page.
  3278. * doc/aria2c.1.txt
  3279. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3280. Added max-concurrent-downloads option to changeGlobalOption
  3281. xml-rpc method. Rewritten loop conditional in
  3282. RequestGroupMan::fillRequestGroupFromReserver().
  3283. * src/RequestGroupMan.cc
  3284. * src/RequestGroupMan.h
  3285. * src/XmlRpcMethod.cc
  3286. * src/XmlRpcMethodImpl.cc
  3287. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3288. Documented position parameter in man page.
  3289. * doc/aria2c.1.txt
  3290. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3291. Added 'position' parameter to addUri, addTorrent and addMetalink
  3292. xml-rpc method.
  3293. * src/RequestGroupMan.cc
  3294. * src/RequestGroupMan.h
  3295. * src/XmlRpcMethodImpl.cc
  3296. * test/XmlRpcMethodTest.cc
  3297. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3298. Removed Peer.cc from compile source list when --disable-bittorrent
  3299. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3300. takes Peer.
  3301. * src/DefaultPieceStorage.cc
  3302. * src/DefaultPieceStorage.h
  3303. * src/Makefile.am
  3304. * src/PieceStorage.h
  3305. * src/UnknownLengthPieceStorage.cc
  3306. * src/UnknownLengthPieceStorage.h
  3307. * test/MockPieceStorage.h
  3308. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3309. Implemented getter methods in header files to give them more
  3310. chance of optimization.
  3311. Return const reference for SharadHandle if possible.
  3312. * src/AbstractAuthResolver.cc
  3313. * src/AbstractAuthResolver.h
  3314. * src/AbstractBtMessage.cc
  3315. * src/AbstractBtMessage.h
  3316. * src/AbstractSingleDiskAdaptor.cc
  3317. * src/AbstractSingleDiskAdaptor.h
  3318. * src/AsyncNameResolver.cc
  3319. * src/AsyncNameResolver.h
  3320. * src/BNode.cc
  3321. * src/BNode.h
  3322. * src/BitfieldMan.cc
  3323. * src/BitfieldMan.h
  3324. * src/BtAbortOutstandingRequestEvent.h
  3325. * src/BtExtendedMessage.cc
  3326. * src/BtExtendedMessage.h
  3327. * src/BtSeederStateChoke.cc
  3328. * src/BtSeederStateChoke.h
  3329. * src/Cookie.cc
  3330. * src/Cookie.h
  3331. * src/DHTBucket.cc
  3332. * src/DHTBucket.h
  3333. * src/DHTConnectionImpl.cc
  3334. * src/DHTConnectionImpl.h
  3335. * src/DHTFindNodeReplyMessage.cc
  3336. * src/DHTFindNodeReplyMessage.h
  3337. * src/DHTGetPeersReplyMessage.cc
  3338. * src/DHTGetPeersReplyMessage.h
  3339. * src/DHTInteractionCommand.cc
  3340. * src/DHTMessage.cc
  3341. * src/DHTMessage.h
  3342. * src/DHTMessageDispatcherImpl.cc
  3343. * src/DHTMessageEntry.cc
  3344. * src/DHTMessageReceiver.cc
  3345. * src/DHTMessageReceiver.h
  3346. * src/DHTMessageTrackerEntry.cc
  3347. * src/DHTMessageTrackerEntry.h
  3348. * src/DHTPeerAnnounceEntry.cc
  3349. * src/DHTPeerAnnounceEntry.h
  3350. * src/DHTPeerLookupTask.cc
  3351. * src/DHTPeerLookupTask.h
  3352. * src/DHTRoutingTableDeserializer.cc
  3353. * src/DHTRoutingTableDeserializer.h
  3354. * src/DefaultBtAnnounce.cc
  3355. * src/DefaultBtAnnounce.h
  3356. * src/DefaultBtMessageDispatcher.cc
  3357. * src/DefaultBtMessageDispatcher.h
  3358. * src/DefaultBtRequestFactory.cc
  3359. * src/DefaultBtRequestFactory.h
  3360. * src/DiskAdaptor.cc
  3361. * src/DiskAdaptor.h
  3362. * src/DownloadContext.cc
  3363. * src/DownloadContext.h
  3364. * src/DownloadEngine.cc
  3365. * src/DownloadEngine.h
  3366. * src/EpollEventPoll.cc
  3367. * src/EpollEventPoll.h
  3368. * src/FtpConnection.cc
  3369. * src/FtpConnection.h
  3370. * src/HttpConnection.cc
  3371. * src/HttpConnection.h
  3372. * src/HttpHeader.cc
  3373. * src/HttpHeader.h
  3374. * src/HttpRequest.cc
  3375. * src/HttpRequest.h
  3376. * src/HttpResponse.cc
  3377. * src/HttpResponse.h
  3378. * src/LibsslTLSContext.cc
  3379. * src/LibsslTLSContext.h
  3380. * src/MSEHandshake.cc
  3381. * src/MSEHandshake.h
  3382. * src/MetalinkEntry.cc
  3383. * src/MetalinkEntry.h
  3384. * src/MetalinkParserController.cc
  3385. * src/MetalinkParserController.h
  3386. * src/MetalinkParserStateMachine.cc
  3387. * src/MetalinkParserStateMachine.h
  3388. * src/MultiDiskAdaptor.cc
  3389. * src/MultiDiskAdaptor.h
  3390. * src/NetrcAuthResolver.cc
  3391. * src/NetrcAuthResolver.h
  3392. * src/Peer.cc
  3393. * src/Peer.h
  3394. * src/PeerSessionResource.cc
  3395. * src/PeerSessionResource.h
  3396. * src/Piece.cc
  3397. * src/Piece.h
  3398. * src/PieceStatMan.cc
  3399. * src/PieceStatMan.h
  3400. * src/Request.cc
  3401. * src/Request.h
  3402. * src/RequestGroup.cc
  3403. * src/RequestGroup.h
  3404. * src/RequestGroupMan.cc
  3405. * src/RequestGroupMan.h
  3406. * src/RequestSlot.cc
  3407. * src/RequestSlot.h
  3408. * src/SegmentMan.cc
  3409. * src/SegmentMan.h
  3410. * src/SelectEventPoll.cc
  3411. * src/SelectEventPoll.h
  3412. * src/ServerStat.cc
  3413. * src/ServerStat.h
  3414. * src/Signature.cc
  3415. * src/Signature.h
  3416. * src/URIResult.cc
  3417. * src/URIResult.h
  3418. * src/UTPexExtensionMessage.cc
  3419. * src/UTPexExtensionMessage.h
  3420. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. Fixed compile error without BitTorrent and Metalink support.
  3422. * src/XmlRpcMethod.cc
  3423. * src/XmlRpcMethodFactory.cc
  3424. * src/XmlRpcMethodImpl.cc
  3425. * src/XmlRpcMethodImpl.h
  3426. * test/XmlRpcMethodTest.cc
  3427. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3428. Rewritten the help message for --allow-overwrite option.
  3429. * doc/aria2c.1.txt
  3430. * src/usage_text.h
  3431. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3432. Fixed typo
  3433. * doc/aria2c.1.txt
  3434. * src/usage_text.h
  3435. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3436. Updated README for 1.4.0 release. Use new table syntax of
  3437. asciidoc.
  3438. * README
  3439. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3440. Documented --xml-rpc-max-request-size option in man page.
  3441. * doc/aria2c.1.txt
  3442. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Moved C_* constants from BtContext to DefaultBtContext.
  3444. * src/BtContext.cc: Removed.
  3445. * src/BtContext.h
  3446. * src/DefaultBtContext.cc
  3447. * src/DefaultBtContext.h
  3448. * src/Makefile.am
  3449. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3450. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3451. path key respectively when persing .torrent file.
  3452. * src/BtContext.cc
  3453. * src/BtContext.h
  3454. * src/DefaultBtContext.cc
  3455. * test/DefaultBtContextTest.cc
  3456. * test/utf8.torrent
  3457. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3458. Added --xml-rpc-max-request-size option to limit the size of
  3459. XML-RPC request.
  3460. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3461. Documented XML-RPC API in man page.
  3462. * doc/aria2c.1.txt
  3463. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3464. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3465. will break strict-aliasing rules
  3466. * src/PeerConnection.cc
  3467. * test/DHTRoutingTableSerializerTest.cc
  3468. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3470. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3471. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3472. PKG_CHECK_MODULES macro uses latter name.
  3473. * m4/sqlite3.m4
  3474. * src/Makefile.am
  3475. * test/Makefile.am
  3476. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3477. Fixed typo
  3478. * configure.ac
  3479. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3480. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3481. presence of libgnutls using pkg-config first. If it fails, fall
  3482. back to old macro libgnutls.m4.
  3483. * configure.ac
  3484. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3485. Use s itself instead of !s.bad()
  3486. * src/CookieStorage.cc
  3487. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3488. Documented --on-download-* option and --save-cookies option in man
  3489. page.
  3490. * doc/aria2c.1.txt
  3491. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3492. Set possible values for --load-cookie option to "/path/to/file".
  3493. * src/OptionHandlerFactory.cc
  3494. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3495. Added --save-cookies option.
  3496. * src/Cookie.cc
  3497. * src/Cookie.h
  3498. * src/CookieStorage.cc
  3499. * src/CookieStorage.h
  3500. * src/MultiUrlRequestInfo.cc
  3501. * src/OptionHandlerFactory.cc
  3502. * src/prefs.cc
  3503. * src/prefs.h
  3504. * src/usage_text.h
  3505. * test/CookieStorageTest.cc
  3506. * test/CookieTest.cc
  3507. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Removed tellAll XML-RPC command because its reponse tends to be
  3509. big if stopped/waiting downloads pile up.
  3510. * src/XmlRpcMethodFactory.cc
  3511. * src/XmlRpcMethodImpl.cc
  3512. * src/XmlRpcMethodImpl.h
  3513. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3514. Added the ability to execute command when download starts and
  3515. stops. You can also specify command for particular cases such as
  3516. complete/error download. Added --on-download-start,
  3517. --on-download-stop, --on-download-complete and --on-download-error
  3518. option.
  3519. * src/OptionHandlerFactory.cc
  3520. * src/RequestGroupMan.cc
  3521. * src/prefs.cc
  3522. * src/prefs.h
  3523. * src/usage_text.h
  3524. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3525. Fixed test error
  3526. * test/BencodeTest.cc
  3527. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3528. Added unit tests.
  3529. * test/XmlRpcMethodTest.cc
  3530. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3531. Made exception message more verbose.
  3532. * src/bencode.cc
  3533. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3534. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3535. space in console readout. Also they are now shown in MiB/s if
  3536. speed > 1024KiB/s.
  3537. * src/ConsoleStatCalc.cc
  3538. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3539. Added SEED to console output, which represents the number of
  3540. seeders currently the client is connecting to.
  3541. * src/ConsoleStatCalc.cc
  3542. * src/ConsoleStatCalc.h
  3543. * src/DownloadEngine.cc
  3544. * src/NullStatCalc.h
  3545. * src/StatCalc.h
  3546. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3547. Added source filename(__FILE__) and line number(__LINE__) to
  3548. exception message.
  3549. * src/AbstractCommand.cc
  3550. * src/AbstractDiskWriter.cc
  3551. * src/AbstractProxyResponseCommand.cc
  3552. * src/BDE.h
  3553. * src/BtAllowedFastMessage.cc
  3554. * src/BtHandshakeMessageValidator.h
  3555. * src/BtHaveAllMessage.cc
  3556. * src/BtHaveNoneMessage.cc
  3557. * src/BtPieceMessage.cc
  3558. * src/BtRejectMessage.cc
  3559. * src/ChunkedDecoder.cc
  3560. * src/CookieStorage.cc
  3561. * src/DHTAnnouncePeerMessage.cc
  3562. * src/DHTEntryPointNameResolveCommand.cc
  3563. * src/DHTMessageFactoryImpl.cc
  3564. * src/DHTMessageTracker.cc
  3565. * src/DHTRoutingTableDeserializer.cc
  3566. * src/DHTRoutingTableSerializer.cc
  3567. * src/DHTSetup.cc
  3568. * src/DHTTokenTracker.cc
  3569. * src/DefaultBtAnnounce.cc
  3570. * src/DefaultBtContext.cc
  3571. * src/DefaultBtInteractive.cc
  3572. * src/DefaultBtMessageFactory.cc
  3573. * src/DefaultBtProgressInfoFile.cc
  3574. * src/DefaultExtensionMessageFactory.cc
  3575. * src/DlAbortEx.h
  3576. * src/DlRetryEx.h
  3577. * src/DownloadCommand.cc
  3578. * src/DownloadEngineFactory.cc
  3579. * src/DownloadFailureException.h
  3580. * src/Exception.cc
  3581. * src/Exception.h
  3582. * src/ExpatMetalinkProcessor.cc
  3583. * src/ExpatXmlRpcRequestProcessor.cc
  3584. * src/FallocFileAllocationIterator.cc
  3585. * src/FatalException.h
  3586. * src/FtpConnection.cc
  3587. * src/FtpFinishDownloadCommand.cc
  3588. * src/FtpInitiateConnectionCommand.cc
  3589. * src/FtpNegotiationCommand.cc
  3590. * src/GZipDecoder.cc
  3591. * src/HandshakeExtensionMessage.cc
  3592. * src/HttpConnection.cc
  3593. * src/HttpHeaderProcessor.cc
  3594. * src/HttpInitiateConnectionCommand.cc
  3595. * src/HttpResponse.cc
  3596. * src/HttpResponseCommand.cc
  3597. * src/HttpServer.cc
  3598. * src/HttpSkipResponseCommand.cc
  3599. * src/InitiateConnectionCommandFactory.cc
  3600. * src/IteratableChunkChecksumValidator.cc
  3601. * src/LibgcryptARC4Context.h
  3602. * src/LibgcryptARC4Decryptor.h
  3603. * src/LibgcryptARC4Encryptor.h
  3604. * src/LibgcryptDHKeyExchange.h
  3605. * src/LibgnutlsTLSContext.cc
  3606. * src/LibsslARC4Context.h
  3607. * src/LibsslARC4Decryptor.h
  3608. * src/LibsslARC4Encryptor.h
  3609. * src/LibsslDHKeyExchange.h
  3610. * src/LibsslTLSContext.cc
  3611. * src/MSEHandshake.cc
  3612. * src/MessageDigestHelper.cc
  3613. * src/MetalinkHelper.cc
  3614. * src/MultiDiskAdaptor.cc
  3615. * src/NameMatchOptionHandler.h
  3616. * src/NameResolver.cc
  3617. * src/Netrc.cc
  3618. * src/NsCookieParser.cc
  3619. * src/OptionHandlerException.cc
  3620. * src/OptionHandlerException.h
  3621. * src/OptionHandlerImpl.h
  3622. * src/OptionParser.cc
  3623. * src/ParameterizedStringParser.cc
  3624. * src/PeerAbstractCommand.cc
  3625. * src/PeerConnection.cc
  3626. * src/PeerMessageUtil.cc
  3627. * src/PeerReceiveHandshakeCommand.cc
  3628. * src/Platform.cc
  3629. * src/ReceiverMSEHandshakeCommand.cc
  3630. * src/RecoverableException.h
  3631. * src/RequestGroup.cc
  3632. * src/SimpleLogger.cc
  3633. * src/SocketCore.cc
  3634. * src/Sqlite3MozCookieParser.cc
  3635. * src/UTPexExtensionMessage.cc
  3636. * src/Util.cc
  3637. * src/XML2SAXMetalinkProcessor.cc
  3638. * src/Xml2XmlRpcRequestProcessor.cc
  3639. * src/XmlRpcMethodImpl.cc
  3640. * src/bencode.cc
  3641. * src/download_helper.cc
  3642. * src/messageDigest.h
  3643. * test/ExceptionTest.cc
  3644. * test/TestUtil.cc
  3645. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3646. Bump up version number to 1.4.0
  3647. * configure.ac
  3648. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3649. Added 2files.metalink to EXTRA_DIST
  3650. * test/Makefile.am
  3651. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3652. Added missing 2files.metalink
  3653. * test/2files.metalink
  3654. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3655. Show "[MEMORY]" prefix before filename in download summary if it
  3656. is downloaded into memory.
  3657. * src/DownloadResult.h
  3658. * src/RequestGroup.cc
  3659. * src/RequestGroupMan.cc
  3660. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3662. * src/ExpatXmlRpcRequestProcessor.cc
  3663. * src/Xml2XmlRpcRequestProcessor.cc
  3664. * src/message.h
  3665. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3666. Defined const BDEs to avoid duplicate instantiation.
  3667. Defined MSG_GID_NOT_PROVIDED.
  3668. * src/XmlRpcMethodImpl.cc
  3669. * src/message.h
  3670. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Code cleanup
  3672. * src/Xml2XmlRpcRequestProcessor.cc
  3673. * src/Xml2XmlRpcRequestProcessor.h
  3674. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3675. Defined ENABLE_XML_RPC
  3676. * configure.ac
  3677. * configure
  3678. * config.h.in
  3679. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3680. Added ExpatXmlRpcRequestProcessor
  3681. * src/ExpatXmlRpcRequestProcessor.cc
  3682. * src/ExpatXmlRpcRequestProcessor.h
  3683. * src/Makefile.am
  3684. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3685. Added tests for addTorrent and addMetalink command.
  3686. * test/TestUtil.cc
  3687. * test/TestUtil.h
  3688. * test/XmlRpcMethodTest.cc
  3689. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3690. Corrected the description of --file-allocation option.
  3691. * doc/aria2c.1.txt
  3692. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3693. Added tellAll command.
  3694. * src/XmlRpcMethodFactory.cc
  3695. * src/XmlRpcMethodImpl.cc
  3696. * src/XmlRpcMethodImpl.h
  3697. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3699. * src/XmlRpcMethodImpl.cc
  3700. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3701. Added changeGlobalOption command. Currently,
  3702. max-overall-download-limit and max-overall-upload-limit option are
  3703. available.
  3704. * src/RequestGroupMan.h
  3705. * src/XmlRpcMethod.cc
  3706. * src/XmlRpcMethod.h
  3707. * src/XmlRpcMethodFactory.cc
  3708. * src/XmlRpcMethodImpl.cc
  3709. * src/XmlRpcMethodImpl.h
  3710. * test/XmlRpcMethodTest.cc
  3711. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3712. Added changeOption command. Currently, max-download-limit,
  3713. max-upload-limit option are available in this command.
  3714. * src/RequestGroup.h
  3715. * src/XmlRpcMethod.cc
  3716. * src/XmlRpcMethod.h
  3717. * src/XmlRpcMethodFactory.cc
  3718. * src/XmlRpcMethodImpl.cc
  3719. * src/XmlRpcMethodImpl.h
  3720. * test/XmlRpcMethodTest.cc
  3721. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3722. Added purgeDownloadResult command.
  3723. * src/RequestGroupMan.cc
  3724. * src/RequestGroupMan.h
  3725. * src/XmlRpcMethodFactory.cc
  3726. * src/XmlRpcMethodImpl.cc
  3727. * src/XmlRpcMethodImpl.h
  3728. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3729. Refactored.
  3730. * src/XmlRpcMethod.cc
  3731. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3733. XmlRpcResponse.
  3734. * src/HttpServerBodyCommand.cc
  3735. * src/Makefile.am
  3736. * src/XmlRpcMethod.cc
  3737. * src/XmlRpcMethod.h
  3738. * src/XmlRpcMethodImpl.cc
  3739. * src/XmlRpcResponse.cc
  3740. * src/XmlRpcResponse.h
  3741. * test/XmlRpcMethodTest.cc
  3742. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3743. In XML-RPC option struct, header and index-out option can take
  3744. array as value.
  3745. * src/XmlRpcMethod.cc
  3746. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Removed unused option member from PeerConnection.
  3748. * src/InitiatorMSEHandshakeCommand.cc
  3749. * src/PeerConnection.cc
  3750. * src/PeerConnection.h
  3751. * src/PeerInteractionCommand.cc
  3752. * src/PeerReceiveHandshakeCommand.cc
  3753. * src/ReceiverMSEHandshakeCommand.cc
  3754. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3755. Added "seeder" key to getPeers response.
  3756. * src/XmlRpcMethodImpl.cc
  3757. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3758. Added addMetalink XML-RPC command.
  3759. * src/XmlRpcMethodFactory.cc
  3760. * src/XmlRpcMethodImpl.cc
  3761. * src/XmlRpcMethodImpl.h
  3762. * src/download_helper.cc
  3763. * src/download_helper.h
  3764. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Fixed the bug that POU peers are never choked in seeding.
  3766. * src/BtSeederStateChoke.cc
  3767. * src/BtSeederStateChoke.h
  3768. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Added web-seeding URI handling in addTorrent command.
  3770. * src/XmlRpcMethodImpl.cc
  3771. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3772. Added "length" key to getFiles response.
  3773. * src/XmlRpcMethodImpl.cc
  3774. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3775. Moved --no-netrc option from ftp option section to http/ftp option
  3776. section.
  3777. * doc/aria2c.1.txt
  3778. * src/OptionHandlerFactory.cc
  3779. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3780. Removed garbage "\" character before '
  3781. * doc/aria2c.1.txt
  3782. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Removed garbage "\" character before http.
  3784. * doc/aria2c.1.txt
  3785. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Documented additional options that can be specified in -i list.
  3787. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3788. and --xml-rpc-passwd. Removed --enable-http-server and
  3789. --http-server-listen-port.
  3790. * doc/aria2c.1.txt
  3791. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3792. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3793. * src/DefaultPeerStorage.cc
  3794. * src/DefaultPeerStorage.h
  3795. * src/PeerStorage.h
  3796. * src/XmlRpcMethodImpl.cc
  3797. * test/MockPeerStorage.h
  3798. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3799. Put a call to Socket::isReadable() in try block.
  3800. * src/HttpServerBodyCommand.cc
  3801. * src/HttpServerCommand.cc
  3802. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3804. exception , so it is now in try block.
  3805. * src/HttpServerResponseCommand.cc
  3806. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3807. Added "amChoking" and "peerChoking" key in getPeers response.
  3808. * src/XmlRpcMethodImpl.cc
  3809. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3810. Added test case for zero-length filter.
  3811. * test/BitfieldManTest.cc
  3812. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. getFiles command now returns file data for finished/stopped
  3814. downloads.
  3815. * src/XmlRpcMethodImpl.cc
  3816. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3817. DownloadResult now has the list of FileEntry. The download
  3818. summary displays the path of first selected file and the number of
  3819. remaining files for multi-file torrent.
  3820. * src/DownloadResult.h
  3821. * src/RequestGroup.cc
  3822. * src/RequestGroupMan.cc
  3823. * test/RequestGroupTest.cc
  3824. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3825. Fixed segmentation fault error when no file is selected in
  3826. multi-file torrent.
  3827. * src/BitfieldMan.cc
  3828. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3829. Escaped <,>,& character in XML-RPC response.
  3830. * src/XmlRpcMethod.cc
  3831. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Throw DlAbortEx instead of FatalException during parsing options
  3833. because we don't want for aria2 to quit when bad option is passed
  3834. via XML-RPC.
  3835. * src/OptionHandlerException.cc
  3836. * src/OptionHandlerException.h
  3837. * src/OptionHandlerImpl.h
  3838. * src/OptionParser.cc
  3839. * src/OptionParser.h
  3840. * src/PStringSegment.cc
  3841. * src/ParameterizedStringParser.cc
  3842. * src/download_helper.cc
  3843. * test/ParameterizedStringParserTest.cc
  3844. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3845. Selecting files are now done in
  3846. DefaultBtContext::setFileFileter().
  3847. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3848. functions are removed because they are no longer used. Creating
  3849. filter in BitfieldMan is done in new funtion
  3850. PieceStorage::setupFileFilter()
  3851. * src/BtContext.cc
  3852. * src/BtContext.h
  3853. * src/DefaultBtContext.cc
  3854. * src/DefaultBtContext.h
  3855. * src/DefaultPieceStorage.cc
  3856. * src/DefaultPieceStorage.h
  3857. * src/DiskAdaptor.cc
  3858. * src/DiskAdaptor.h
  3859. * src/PieceStorage.h
  3860. * src/RequestGroup.cc
  3861. * src/UnknownLengthPieceStorage.h
  3862. * src/XmlRpcMethodImpl.cc
  3863. * test/DefaultBtContextTest.cc
  3864. * test/MockBtContext.h
  3865. * test/MockPieceStorage.h
  3866. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3867. Fixed compile error on Mac OS X
  3868. * src/HttpServer.cc
  3869. * src/XmlRpcMethod.h
  3870. * src/XmlRpcMethodImpl.cc
  3871. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3872. Use std::binary_search instead of std::find
  3873. * src/DefaultPieceStorage.cc
  3874. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Removed unnecessary BDE() call; leave them to implicit conversion.
  3876. * src/XmlRpcMethodImpl.cc
  3877. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Return connections and gid in string
  3879. * src/XmlRpcMethodImpl.cc
  3880. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Renamed addURI as addUri
  3882. * src/XmlRpcMethodFactory.cc
  3883. * src/XmlRpcMethodImpl.cc
  3884. * src/XmlRpcMethodImpl.h
  3885. * test/XmlRpcMethodTest.cc
  3886. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3887. Renamed addTorrentFile as addTorrent
  3888. * src/XmlRpcMethodFactory.cc
  3889. * src/XmlRpcMethodImpl.cc
  3890. * src/XmlRpcMethodImpl.h
  3891. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3892. The information for files, URIs, peers are removed from the
  3893. reponse of TellaActive, TellStatus command because they tend to be
  3894. large. Instead they can be retrieved by the dedicated commands:
  3895. getFiles, getUris and getPeers respectively.
  3896. * src/XmlRpcMethodFactory.cc
  3897. * src/XmlRpcMethodImpl.cc
  3898. * src/XmlRpcMethodImpl.h
  3899. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3900. Removed --max-overall-upload-limit and
  3901. --max-overall-download-limit option from listRequestOptions.
  3902. * src/download_helper.cc
  3903. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Log incoming host in HttpListenCommand.
  3905. * src/HttpListenCommand.cc
  3906. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3907. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3908. --xml-rpc-passwd option.
  3909. * src/HttpServer.cc
  3910. * src/HttpServer.h
  3911. * src/HttpServerCommand.cc
  3912. * src/OptionHandlerFactory.cc
  3913. * src/prefs.cc
  3914. * src/prefs.h
  3915. * src/usage_text.h
  3916. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3917. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3918. processing 0 length request.
  3919. * src/HttpServerBodyCommand.cc
  3920. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3921. Removed --enable-http-server and --http-server-listen-port
  3922. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3923. instead. The original feature for --enable-http-server that
  3924. reports download progress in HTML was officially removed. Persist
  3925. XML-RPC connection if client supports keep-alive.
  3926. * src/DownloadEngineFactory.cc
  3927. * src/HttpServerCommand.cc
  3928. * src/HttpServerResponseCommand.cc
  3929. * src/Makefile.am
  3930. * src/Makefile.in
  3931. * src/OptionHandlerFactory.cc
  3932. * src/RequestGroupMan.cc
  3933. * src/main.cc
  3934. * src/option_processing.cc
  3935. * src/prefs.cc
  3936. * src/prefs.h
  3937. * src/usage_text.h
  3938. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3939. Added "uris" key to the response of tellStatus command. Added
  3940. "connections" key to the response of tellStatus and tellActive
  3941. command.
  3942. * src/XmlRpcMethodImpl.cc
  3943. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3944. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3945. Added TellStatusXmlRpcMethod. Remove command can now remove
  3946. waiting RequestGroup.
  3947. * src/RequestGroupMan.cc
  3948. * src/RequestGroupMan.h
  3949. * src/XmlRpcMethodFactory.cc
  3950. * src/XmlRpcMethodImpl.cc
  3951. * src/XmlRpcMethodImpl.h
  3952. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3953. Initialized _peerId
  3954. * src/Peer.cc
  3955. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3956. Return fault structure for error. FailXmlRpcMethod is renamed as
  3957. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3958. in non-torrent download. Return single param value.
  3959. * src/XmlRpcMethod.cc
  3960. * src/XmlRpcMethodFactory.cc
  3961. * src/XmlRpcMethodImpl.cc
  3962. * src/XmlRpcMethodImpl.h
  3963. * test/XmlRpcMethodTest.cc
  3964. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3965. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3966. command.
  3967. * src/RequestGroup.cc
  3968. * src/RequestGroup.h
  3969. * src/RequestGroupMan.cc
  3970. * src/XmlRpcMethodImpl.cc
  3971. * test/RequestGroupTest.cc
  3972. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3973. Added more options that can be specified in -i list and xml-rpc
  3974. add* command.
  3975. * src/download_helper.h
  3976. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. The available options in -i list should be listed in
  3978. listRequestOptions().
  3979. * src/download_helper.cc
  3980. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3981. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3982. command.
  3983. * src/XmlRpcMethodImpl.cc
  3984. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Now RequestGroup has its own copy of Option object. This will help
  3986. to give custom option for each RequestGroup.
  3987. addTorrentFile command now takes options.
  3988. * src/AbstractCommand.cc
  3989. * src/AbstractCommand.h
  3990. * src/AbstractProxyRequestCommand.cc
  3991. * src/ActivePeerConnectionCommand.cc
  3992. * src/ActivePeerConnectionCommand.h
  3993. * src/AdaptiveURISelector.cc
  3994. * src/BtCheckIntegrityEntry.cc
  3995. * src/BtDependency.cc
  3996. * src/BtDependency.h
  3997. * src/BtFileAllocationEntry.cc
  3998. * src/BtPostDownloadHandler.cc
  3999. * src/CheckIntegrityEntry.cc
  4000. * src/DownloadCommand.cc
  4001. * src/FtpDownloadCommand.cc
  4002. * src/FtpFinishDownloadCommand.cc
  4003. * src/FtpInitiateConnectionCommand.cc
  4004. * src/FtpNegotiationCommand.cc
  4005. * src/HttpInitiateConnectionCommand.cc
  4006. * src/HttpRequestCommand.cc
  4007. * src/HttpResponseCommand.cc
  4008. * src/HttpSkipResponseCommand.cc
  4009. * src/InitiateConnectionCommand.cc
  4010. * src/InitiateConnectionCommandFactory.cc
  4011. * src/InitiatorMSEHandshakeCommand.cc
  4012. * src/InitiatorMSEHandshakeCommand.h
  4013. * src/Metalink2RequestGroup.cc
  4014. * src/Metalink2RequestGroup.h
  4015. * src/MetalinkPostDownloadHandler.cc
  4016. * src/MultiUrlRequestInfo.cc
  4017. * src/MultiUrlRequestInfo.h
  4018. * src/PeerAbstractCommand.cc
  4019. * src/PeerInteractionCommand.cc
  4020. * src/PeerInteractionCommand.h
  4021. * src/PeerReceiveHandshakeCommand.cc
  4022. * src/PeerReceiveHandshakeCommand.h
  4023. * src/RequestGroup.cc
  4024. * src/RequestGroup.h
  4025. * src/TrackerWatcherCommand.cc
  4026. * src/TrackerWatcherCommand.h
  4027. * src/XmlRpcMethod.cc
  4028. * src/XmlRpcMethod.h
  4029. * src/XmlRpcMethodImpl.cc
  4030. * src/download_helper.cc
  4031. * src/download_helper.h
  4032. * src/main.cc
  4033. * test/BtDependencyTest.cc
  4034. * test/BtPostDownloadHandlerTest.cc
  4035. * test/DefaultBtMessageDispatcherTest.cc
  4036. * test/DownloadHandlerFactoryTest.cc
  4037. * test/DownloadHelperTest.cc
  4038. * test/Metalink2RequestGroupTest.cc
  4039. * test/MetalinkPostDownloadHandlerTest.cc
  4040. * test/RequestGroupManTest.cc
  4041. * test/RequestGroupTest.cc
  4042. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4043. Added tellActiveStatus xml-rpc command which reports download
  4044. status of active downloads.
  4045. * src/XmlRpcMethodFactory.cc
  4046. * src/XmlRpcMethodImpl.cc
  4047. * src/XmlRpcMethodImpl.h
  4048. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4049. Added addTorrentFile xml-rpc command which receives uploaded
  4050. torrent file and add download for it.
  4051. * src/RequestGroupMan.cc
  4052. * src/XmlRpcMethodFactory.cc
  4053. * src/XmlRpcMethodImpl.cc
  4054. * src/XmlRpcMethodImpl.h
  4055. * src/download_helper.cc
  4056. * src/download_helper.h
  4057. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4058. Added remove xml-rpc command which removes specified download.
  4059. There is a known issue: the removed unfinished downloads are
  4060. reported ERR when aria2 exits. They should be reported as INPR.
  4061. * src/RequestGroupMan.cc
  4062. * src/RequestGroupMan.h
  4063. * src/XmlRpcMethodFactory.cc
  4064. * src/XmlRpcMethodImpl.cc
  4065. * src/XmlRpcMethodImpl.h
  4066. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4067. If --enable-http-server is enabled, don't stop aria2 when all
  4068. download finished and don't quit when no files to download at
  4069. start up.
  4070. * src/RequestGroupMan.cc
  4071. * src/main.cc
  4072. * src/option_processing.cc
  4073. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4074. Added missing AM_CONDITIONAL
  4075. * configure.ac
  4076. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4077. Added xml-rpc functionality. Currently only addURI commad is
  4078. supported. To enable xml-rpc, run aria2 with
  4079. --enable-http-server. This option name is temporal and will be
  4080. changed. The feature that reports download progress in html format
  4081. is temporarily disabled.
  4082. * src/HttpServer.cc
  4083. * src/HttpServer.h
  4084. * src/HttpServerBodyCommand.cc
  4085. * src/HttpServerBodyCommand.h
  4086. * src/HttpServerCommand.cc
  4087. * src/HttpServerResponseCommand.cc
  4088. * src/Makefile.am
  4089. * src/OptionParser.cc
  4090. * src/OptionParser.h
  4091. * src/RequestGroupMan.cc
  4092. * src/RequestGroupMan.h
  4093. * src/XmlRpcMethod.cc
  4094. * src/XmlRpcMethod.h
  4095. * src/XmlRpcMethodFactory.cc
  4096. * src/XmlRpcMethodFactory.h
  4097. * src/XmlRpcMethodImpl.cc
  4098. * src/XmlRpcMethodImpl.h
  4099. * src/download_helper.cc
  4100. * src/download_helper.h
  4101. * test/Makefile.am
  4102. * test/XmlRpcMethodTest.cc
  4103. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4104. Added xml-rpc request parser. The supported value types are:
  4105. i4/int, string, double, struct, array, base64. Currently only
  4106. libxml2 version is provided.
  4107. * src/Xml2XmlRpcRequestProcessor.cc
  4108. * src/Xml2XmlRpcRequestProcessor.h
  4109. * src/XmlRpcElements.cc
  4110. * src/XmlRpcElements.h
  4111. * src/XmlRpcRequest.h
  4112. * src/XmlRpcRequestParserController.cc
  4113. * src/XmlRpcRequestParserController.h
  4114. * src/XmlRpcRequestParserState.h
  4115. * src/XmlRpcRequestParserStateImpl.cc
  4116. * src/XmlRpcRequestParserStateImpl.h
  4117. * src/XmlRpcRequestParserStateMachine.cc
  4118. * src/XmlRpcRequestParserStateMachine.h
  4119. * src/XmlRpcRequestProcessor.h
  4120. * test/XmlRpcRequestParserControllerTest.cc
  4121. * test/XmlRpcRequestProcessorTest.cc
  4122. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4123. * Release 1.3.3
  4124. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4125. Fixed compile error since r1202.
  4126. * src/ExpatMetalinkProcessor.cc
  4127. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4128. Updated Ukrainian, Russian and Simplified Chinese
  4129. translations. Thanks to all translators.
  4130. * po/ru.po
  4131. * po/uk.po
  4132. * po/zh_CN.po
  4133. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4134. Pass reference of Option object instead of pointer.
  4135. * src/download_helper.cc
  4136. * src/download_helper.h
  4137. * src/main.cc
  4138. * test/DownloadHelperTest.cc
  4139. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4140. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4141. from option directly. Instead, get them from RequestGroup.
  4142. * src/ActivePeerConnectionCommand.cc
  4143. * src/ActivePeerConnectionCommand.h
  4144. * src/PeerReceiveHandshakeCommand.cc
  4145. * src/RequestGroup.h
  4146. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4147. Removed unused uploadLimitCheck and uploadLimit from
  4148. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4149. PeerInteractionCommand.
  4150. * src/PeerAbstractCommand.cc
  4151. * src/PeerAbstractCommand.h
  4152. * src/PeerInteractionCommand.cc
  4153. * src/PeerInteractionCommand.h
  4154. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4155. Fixed broken file renaming feature since r1202.
  4156. * src/FtpNegotiationCommand.cc
  4157. * src/FtpNegotiationCommand.h
  4158. * src/HttpResponseCommand.cc
  4159. * src/RequestGroup.cc
  4160. * src/RequestGroup.h
  4161. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4162. Removed unused debug log
  4163. * src/SocketCore.cc
  4164. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4165. Generated configure and Makefile.in using autoconf 2.63 and
  4166. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4167. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4168. * configure.ac
  4169. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4170. Moved piece statistics stuff to new PieceStatMan class.
  4171. Refactored PieceSelector interface.
  4172. * src/DefaultPieceStorage.cc
  4173. * src/DefaultPieceStorage.h
  4174. * src/LongestSequencePieceSelector.cc
  4175. * src/LongestSequencePieceSelector.h
  4176. * src/Makefile.am
  4177. * src/PieceSelector.h
  4178. * src/PieceStatMan.cc
  4179. * src/PieceStatMan.h
  4180. * src/RarestPieceSelector.cc
  4181. * src/RarestPieceSelector.h
  4182. * src/RequestGroup.cc
  4183. * test/DefaultPieceStorageTest.cc
  4184. * test/InOrderPieceSelector.h
  4185. * test/Makefile.am
  4186. * test/PieceStatManTest.cc
  4187. * test/RarestPieceSelectorTest.cc
  4188. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4189. Added static member _protocolFamily to SocketCore. By default,
  4190. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4191. address. Sometime SocketCore::bind() and
  4192. SocketCore::establishConnection() use difference protocl family
  4193. and latter cannot connect to former. To avoid this situation, we
  4194. limit protocol family to AF_INET for unit tests.
  4195. * src/SocketCore.cc
  4196. * src/SocketCore.h
  4197. * test/AllTest.cc
  4198. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4199. Avoid std::bad_alloc for negative bencode string length.
  4200. * src/bencode.cc
  4201. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4202. Supported segmented downloading with chunked transfer encoding and
  4203. content-length.
  4204. * src/DownloadCommand.cc
  4205. * src/HttpResponseCommand.cc
  4206. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4207. Bump up version number to 1.3.3
  4208. * configure.ac
  4209. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4210. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4211. from 4096 to 65536 (for insanely large ftp login banners)
  4212. * src/FtpConnection.h
  4213. * test/FtpConnectionTest.cc
  4214. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4215. In DefaultBtContext::getActualBasePath(), return first
  4216. FileEntry::getPath() for single file torrent.
  4217. * src/DefaultBtContext.cc
  4218. * test/DefaultBtContextTest.cc
  4219. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4220. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4221. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4222. Removed _directIOAllowed member from DiskWriter.
  4223. * src/AbstractDiskWriter.cc
  4224. * src/AbstractDiskWriter.h
  4225. * src/AbstractSingleDiskAdaptor.cc
  4226. * src/AbstractSingleDiskAdaptor.h
  4227. * src/BinaryStream.h
  4228. * src/ByteArrayDiskWriter.h
  4229. * src/DefaultPieceStorage.cc
  4230. * src/DiskWriter.h
  4231. * src/MultiDiskAdaptor.cc
  4232. * src/MultiDiskAdaptor.h
  4233. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4234. Now the constructor of AbstractDiskWriter takes filename as an
  4235. argument and filename argument is removed from openFile(),
  4236. initAndOpenFile(), openExistingFile() interface. storeDir member
  4237. and its accessor functions are removed from DiskAdaptor because it
  4238. is not used anymore. size() member function of DefaultDiskWriter,
  4239. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4240. opening file.
  4241. * src/AbstractDiskWriter.cc
  4242. * src/AbstractDiskWriter.h
  4243. * src/AbstractSingleDiskAdaptor.cc
  4244. * src/AbstractSingleDiskAdaptor.h
  4245. * src/ByteArrayDiskWriter.cc
  4246. * src/ByteArrayDiskWriter.h
  4247. * src/ByteArrayDiskWriterFactory.cc
  4248. * src/ByteArrayDiskWriterFactory.h
  4249. * src/DefaultDiskWriter.cc
  4250. * src/DefaultDiskWriter.h
  4251. * src/DefaultDiskWriterFactory.cc
  4252. * src/DefaultDiskWriterFactory.h
  4253. * src/DefaultPieceStorage.cc
  4254. * src/DirectDiskAdaptor.cc
  4255. * src/DirectDiskAdaptor.h
  4256. * src/DiskAdaptor.h
  4257. * src/DiskWriter.h
  4258. * src/DiskWriterFactory.h
  4259. * src/MessageDigestHelper.cc
  4260. * src/MultiDiskAdaptor.cc
  4261. * src/RequestGroup.cc
  4262. * src/UnknownLengthPieceStorage.cc
  4263. * src/Util.cc
  4264. * test/DefaultDiskWriterTest.cc
  4265. * test/DirectDiskAdaptorTest.cc
  4266. * test/FallocFileAllocationIteratorTest.cc
  4267. * test/MessageDigestHelperTest.cc
  4268. * test/MetalinkProcessorTest.cc
  4269. * test/MultiDiskAdaptorTest.cc
  4270. * test/MultiFileAllocationIteratorTest.cc
  4271. * test/SingleFileAllocationIteratorTest.cc
  4272. * test/UtilTest.cc
  4273. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4274. Fixed the bug that aria2 aborts when --select-file is used. This
  4275. bug was introduced in r1199.
  4276. * src/MultiDiskAdaptor.cc
  4277. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4278. Code cleanup
  4279. * test/MockPieceStorage.cc
  4280. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4281. Fixed the bug that read-only file with wrong file size will cause
  4282. error because it cannot be truncated to the correct size. Now if
  4283. file size is different than the expected one, re-open file in
  4284. writable mode.
  4285. * src/AbstractSingleDiskAdaptor.cc
  4286. * src/AbstractSingleDiskAdaptor.h
  4287. * src/BtCheckIntegrityEntry.cc
  4288. * src/DiskAdaptor.h
  4289. * src/MultiDiskAdaptor.h
  4290. * src/RequestGroup.cc
  4291. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4292. Fixed the bug that with --check-integrity option aria2 reports
  4293. downloaded file size is 0 even if some parts of file is correctly
  4294. downloaded. This bug is reproducible for the download that a file
  4295. includes last piece is missing. This bug doesn't reveal for
  4296. single-torrent with file allocation on.
  4297. * src/IteratableChecksumValidator.cc
  4298. * test/IteratableChecksumValidatorTest.cc
  4299. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4300. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4301. * src/RequestGroupMan.cc
  4302. * src/AdaptiveURISelector.cc
  4303. * src/AdaptiveURISelector.h
  4304. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4305. * Release 1.3.2
  4306. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4307. Updated README
  4308. * README
  4309. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4310. Updated Ukrainian translations. Thanks to Alexander10.
  4311. * po/uk.po
  4312. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4313. Code cleanup
  4314. * src/MetalinkParserStateMachine.cc
  4315. * src/MetalinkParserStateMachine.h
  4316. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4317. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4318. and expat simultaneously, MetalinkProcessor is now not base class
  4319. and it is directly implemented in XML2SAXMetalinkProcessor and
  4320. ExpatMetalinkProcessor.
  4321. * src/ExpatMetalinkProcessor.cc
  4322. * src/ExpatMetalinkProcessor.h
  4323. * src/Makefile.am
  4324. * src/MetalinkHelper.cc
  4325. * src/MetalinkProcessor.h
  4326. * src/MetalinkProcessorFactory.cc: Removed.
  4327. * src/MetalinkProcessorFactory.h: Removed
  4328. * src/XML2SAXMetalinkProcessor.cc
  4329. * src/XML2SAXMetalinkProcessor.h
  4330. * test/MetalinkProcessorTest.cc
  4331. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4332. Bump up version number to 1.3.2
  4333. * configure.ac
  4334. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4335. Added missing file.
  4336. * test/Makefile.am
  4337. * test/url-list-singleFileEndsWithSlash.torrent
  4338. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4339. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4340. request.
  4341. * src/AnnounceList.cc
  4342. * src/AnnounceList.h
  4343. * src/BDE.cc: Added
  4344. * src/BDE.h: Added
  4345. * src/DHTAbstractMessage.cc
  4346. * src/DHTAbstractMessage.h
  4347. * src/DHTAnnouncePeerMessage.cc
  4348. * src/DHTAnnouncePeerMessage.h
  4349. * src/DHTAnnouncePeerReplyMessage.cc
  4350. * src/DHTAnnouncePeerReplyMessage.h
  4351. * src/DHTFindNodeMessage.cc
  4352. * src/DHTFindNodeMessage.h
  4353. * src/DHTFindNodeReplyMessage.cc
  4354. * src/DHTFindNodeReplyMessage.h
  4355. * src/DHTGetPeersMessage.cc
  4356. * src/DHTGetPeersMessage.h
  4357. * src/DHTGetPeersReplyMessage.cc
  4358. * src/DHTGetPeersReplyMessage.h
  4359. * src/DHTMessageFactory.h
  4360. * src/DHTMessageFactoryImpl.cc
  4361. * src/DHTMessageFactoryImpl.h
  4362. * src/DHTMessageReceiver.cc
  4363. * src/DHTMessageTracker.cc
  4364. * src/DHTMessageTracker.h
  4365. * src/DHTPingMessage.cc
  4366. * src/DHTPingMessage.h
  4367. * src/DHTPingReplyMessage.cc
  4368. * src/DHTPingReplyMessage.h
  4369. * src/DHTQueryMessage.cc
  4370. * src/DHTQueryMessage.h
  4371. * src/DHTResponseMessage.cc
  4372. * src/DHTResponseMessage.h
  4373. * src/DefaultBtAnnounce.cc
  4374. * src/DefaultBtContext.cc
  4375. * src/DefaultBtContext.h
  4376. * src/HandshakeExtensionMessage.cc
  4377. * src/Makefile.am
  4378. * src/PeerListProcessor.h
  4379. * src/UTPexExtensionMessage.cc
  4380. * src/bencode.cc
  4381. * src/bencode.h
  4382. * test/AnnounceListTest.cc
  4383. * test/BDETest.cc: Added
  4384. * test/BencodeTest.cc
  4385. * test/DHTAnnouncePeerMessageTest.cc
  4386. * test/DHTAnnouncePeerReplyMessageTest.cc
  4387. * test/DHTFindNodeMessageTest.cc
  4388. * test/DHTFindNodeReplyMessageTest.cc
  4389. * test/DHTGetPeersMessageTest.cc
  4390. * test/DHTGetPeersReplyMessageTest.cc
  4391. * test/DHTMessageFactoryImplTest.cc
  4392. * test/DHTMessageTrackerTest.cc
  4393. * test/DHTPingMessageTest.cc
  4394. * test/DHTPingReplyMessageTest.cc
  4395. * test/Makefile.am
  4396. * test/MockDHTMessageFactory.h
  4397. * test/PeerListProcessorTest.cc
  4398. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4399. Use url-list (web-seeding) only for single-file torrent. This is
  4400. basically the same behavior with Metalink file with torrent and
  4401. URIs.
  4402. * src/RequestGroup.cc
  4403. * src/DefaultBtContext.cc
  4404. * test/DefaultBtContextTest.cc
  4405. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4406. Rewritten expr
  4407. * src/array_fun.h
  4408. * test/array_funTest.cc
  4409. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4410. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4411. * src/DefaultBtMessageDispatcher.cc
  4412. * src/a2algo.h
  4413. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4414. Removed ExtendedMessagingAware. Instead of using inheritance,
  4415. added ExtensionMessageRegistry and it is passed to
  4416. DefaultExtensionMessageFactory.
  4417. * src/DefaultBtInteractive.cc
  4418. * src/DefaultBtInteractive.h
  4419. * src/DefaultExtensionMessageFactory.cc
  4420. * src/DefaultExtensionMessageFactory.h
  4421. * src/ExtendedMessagingAware.h: Removed.
  4422. * src/ExtensionMessageFactory.h
  4423. * src/ExtensionMessageRegistry.h: Added.
  4424. * src/Makefile.am
  4425. * src/PeerInteractionCommand.cc
  4426. * test/DefaultExtensionMessageFactoryTest.cc
  4427. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4428. Fixed typo in log messages
  4429. * src/MSEHandshake.cc
  4430. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4431. Fixed the bug that prevents torrent download from finishing. The
  4432. bug doesn't reveal for all torrents. The torrents affected this
  4433. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4434. of pieces.
  4435. * src/bitfield.h
  4436. * test/bitfieldTest.cc
  4437. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4438. Code cleanup
  4439. * src/PeerListProcessor.h
  4440. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4441. Removed RequestGroupAware
  4442. * src/AbstractCommand.cc
  4443. * src/AbstractCommand.h
  4444. * src/ActivePeerConnectionCommand.cc
  4445. * src/ActivePeerConnectionCommand.h
  4446. * src/DHTGetPeersCommand.cc
  4447. * src/DHTGetPeersCommand.h
  4448. * src/InitiatorMSEHandshakeCommand.cc
  4449. * src/InitiatorMSEHandshakeCommand.h
  4450. * src/Makefile.am
  4451. * src/PeerInitiateConnectionCommand.cc
  4452. * src/PeerInitiateConnectionCommand.h
  4453. * src/PeerInteractionCommand.cc
  4454. * src/PeerInteractionCommand.h
  4455. * src/RealtimeCommand.cc
  4456. * src/RealtimeCommand.h
  4457. * src/RequestGroupAware.cc: Removed
  4458. * src/RequestGroupAware.h: Removed
  4459. * src/SeedCheckCommand.cc
  4460. * src/SeedCheckCommand.h
  4461. * src/SleepCommand.cc
  4462. * src/TrackerWatcherCommand.cc
  4463. * src/TrackerWatcherCommand.h
  4464. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4465. Rewritten PeerListProcessor
  4466. * src/PeerListProcessor.h
  4467. * src/CompactPeerListProcessor.h: Removed
  4468. * src/CompactPeerListProcessor.cc: Removed
  4469. * src/DelegatingPeerListProcessor.cc: Removed.
  4470. * src/DefaultBtAnnounce.cc
  4471. * src/Makefile.am
  4472. * src/UTPexExtensionMessage.cc
  4473. * src/DefaultPeerListProcessor.h: Removed.
  4474. * src/DefaultPeerListProcessor.cc: Removed.
  4475. * src/DelegatingPeerListProcessor.h: Removed.
  4476. * test/Makefile.am
  4477. * test/PeerListProcessorTest.cc
  4478. * test/DefaultPeerListProcessorTest.cc: Removed.
  4479. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4480. Rewritten RequestGroupMan::calculateStat()
  4481. * src/RequestGroupMan.cc
  4482. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4483. Removed unnecessary virtual destructor for Request class.
  4484. * src/Request.cc
  4485. * src/Request.h
  4486. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4487. Avoid dynamic_pointer_cast.
  4488. * src/DHTGetPeersCommand.cc
  4489. * src/DHTGetPeersCommand.h
  4490. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4491. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4492. BtEvent.
  4493. * src/AbstractBtEventListener.h: Removed.
  4494. * src/AbstractBtMessage.cc
  4495. * src/AbstractBtMessage.h
  4496. * src/BtAbortOutstandingRequestEvent.h
  4497. * src/BtCancelSendingPieceEvent.h
  4498. * src/BtChokedEvent.h: Removed.
  4499. * src/BtChokingEvent.h
  4500. * src/BtEvent.h: Removed
  4501. * src/BtEventListener.h: Removed.
  4502. * src/BtMessage.h
  4503. * src/BtPieceMessage.cc
  4504. * src/BtPieceMessage.h
  4505. * src/BtRequestMessage.cc
  4506. * src/BtRequestMessage.h
  4507. * src/DefaultBtMessageDispatcher.cc
  4508. * src/Makefile.am
  4509. * src/a2functional.h
  4510. * test/BtPieceMessageTest.cc
  4511. * test/BtRequestMessageTest.cc
  4512. * test/DefaultBtMessageDispatcherTest.cc
  4513. * test/MockBtMessage.h
  4514. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Code cleanup
  4516. * src/RequestGroupMan.cc
  4517. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4518. Code cleanup
  4519. * src/DownloadCommand.cc
  4520. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4521. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4522. byte.
  4523. * src/DownloadCommand.cc
  4524. * src/bitfield.h
  4525. * test/bitfieldTest.cc
  4526. Fixed the bug that causes infinite loop if broken web server
  4527. returns chunked response without last "0" chunk-size marker and
  4528. closes connection.
  4529. * src/DownloadCommand.cc
  4530. Instantiate properly configured HttpDownloadCommand for
  4531. non-resumable downlaods.
  4532. * src/HttpResponseCommand.cc
  4533. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4534. Rewritten array operation functions.
  4535. * src/BitfieldMan.cc
  4536. * src/array_fun.h
  4537. * test/array_funTest.cc
  4538. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. Removed unused variable 'query'
  4540. * src/Request.cc
  4541. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4542. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4543. accidentally set to false in r1162.
  4544. * configure.ac
  4545. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4546. Code cleanup
  4547. * src/BNode.cc
  4548. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4549. Increase prefixLength for the bucket which doesn't own local node
  4550. ID when splitting bucket.
  4551. * src/DHTBucket.cc
  4552. * test/DHTBucketTest.cc
  4553. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. * Release 1.3.1
  4555. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4556. Bump up version number to 1.3.1
  4557. * configure.ac
  4558. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4559. Removed unused variable checkPoint. Also removed include directive
  4560. for TimeA2.h.
  4561. * src/SeedCheckCommand.h
  4562. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4563. Fixed the bug that upload limit exceeds the value specified in
  4564. --seed-ratio option depending on the timing of the execution of
  4565. SeedCheckCommand.
  4566. * src/SeedCheckCommand.cc
  4567. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4568. Fixed the bug that removed peer's session upload/download length
  4569. are counted twice in _cachedTransferStat before it is
  4570. re-calculated. This affected the calculation of shara ratio,
  4571. resulting aria2 wrongly determines that specified share ratio is
  4572. reached. Also fixed the typo in calculateStatFor function name.
  4573. * src/BtSetup.cc
  4574. * src/DefaultPeerStorage.cc
  4575. * src/ShareRatioSeedCriteria.h
  4576. * test/ShareRatioSeedCriteriaTest.cc
  4577. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4578. * Release 1.3.0
  4579. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4580. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4581. Nynorsk translations. Thanks to all translators.
  4582. * po/es.po
  4583. * po/ja.po
  4584. * po/nn.po
  4585. * po/ru.po
  4586. * po/uk.po
  4587. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4588. Rewritten isInRange()
  4589. * src/DHTBucket.cc
  4590. * test/DHTBucketTest.cc
  4591. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4592. Fixed typo
  4593. * doc/aria2c.1.txt
  4594. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4595. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4596. malloc/realloc is not used.
  4597. * src/configure.ac
  4598. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4599. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4600. char* bitfield instead of stl container for efficiency.
  4601. PieceSelector::select now takes this
  4602. bitfield. RarestPieceSelector::select now also performs
  4603. efficiently for this change. bitfield namespace is introduced and
  4604. it has several helper functions to handle basic bitfield
  4605. operations such as test, count set bits, etc.
  4606. * src/BitfieldMan.cc
  4607. * src/BitfieldMan.h
  4608. * src/DefaultBtRequestFactory.cc
  4609. * src/DefaultPieceStorage.cc
  4610. * src/DefaultPieceStorage.h
  4611. * src/LongestSequencePieceSelector.cc
  4612. * src/LongestSequencePieceSelector.h
  4613. * src/Makefile.am
  4614. * src/Piece.cc
  4615. * src/Piece.h
  4616. * src/PieceSelector.h
  4617. * src/RarestPieceSelector.cc
  4618. * src/RarestPieceSelector.h
  4619. * src/Util.cc
  4620. * src/Util.h
  4621. * src/bitfield.h
  4622. * test/BitfieldManTest.cc
  4623. * test/LongestSequencePieceSelectorTest.cc
  4624. * test/Makefile.am
  4625. * test/RarestPieceSelectorTest.cc
  4626. * test/UtilTest.cc
  4627. * test/bitfieldTest.cc
  4628. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4629. Made accepted socket non-block.
  4630. * src/FtpNegotiationCommand.cc
  4631. * src/HttpListenCommand.cc
  4632. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4633. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4634. * src/AbstractSingleDiskAdaptor.cc
  4635. * src/DefaultPieceStorage.cc
  4636. * src/DiskAdaptor.h
  4637. * src/DiskAdaptor.h
  4638. * src/MultiFileAllocationIterator.cc
  4639. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4640. Run
  4641. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4642. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4643. it doesn't need to be called every time when
  4644. DefaultBtInteractive::doInteractionProcessing() is called.
  4645. * src/DefaultBtInteractive.cc
  4646. * src/DefaultBtInteractive.h
  4647. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4648. Documented 'falloc' in man page.
  4649. * doc/aria2c.1.txt
  4650. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4651. Updated doc
  4652. * src/usage_text.h
  4653. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4654. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4655. allocation mode uses posix_fallocate() system call to allocate
  4656. file on disk. If you are using newer file systems such as ext4
  4657. (with extents support), btrfs or xfs, 'falloc' is your best
  4658. choice. It allocates large(few GiB) files almost instantly. Don't
  4659. use 'falloc' with legacy file systems such as ext3 because it
  4660. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4661. until allocation finishes. 'falloc' may not be available if your
  4662. system doesn't have posix_fallocate() system call.
  4663. * configure.ac
  4664. * src/AbstractDiskWriter.cc
  4665. * src/AbstractDiskWriter.h
  4666. * src/AbstractSingleDiskAdaptor.cc
  4667. * src/BinaryStream.h
  4668. * src/BtCheckIntegrityEntry.cc
  4669. * src/ByteArrayDiskWriter.h
  4670. * src/CheckIntegrityEntry.cc
  4671. * src/CheckIntegrityEntry.h
  4672. * src/DefaultPieceStorage.cc
  4673. * src/DiskAdaptor.cc
  4674. * src/DiskAdaptor.h
  4675. * src/DiskWriter.h
  4676. * src/FallocFileAllocationIterator.cc
  4677. * src/FallocFileAllocationIterator.h
  4678. * src/FileAllocationEntry.cc
  4679. * src/FileAllocationEntry.h
  4680. * src/Makefile.am
  4681. * src/MultiFileAllocationIterator.cc
  4682. * src/MultiFileAllocationIterator.h
  4683. * src/OptionHandlerFactory.cc
  4684. * src/RequestGroup.cc
  4685. * src/StreamCheckIntegrityEntry.cc
  4686. * src/prefs.cc
  4687. * src/prefs.h
  4688. * src/usage_text.h
  4689. * test/FallocFileAllocationIteratorTest.cc
  4690. * test/Makefile.am
  4691. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4692. Removed duplicate enableDirectIO() call.
  4693. * src/MultiFileAllocationIterator.cc
  4694. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4695. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4696. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4697. cost of std::rotate().
  4698. * src/RarestPieceSelector.cc
  4699. * src/RarestPieceSelector.h
  4700. * test/RarestPieceSelectorTest.cc
  4701. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4702. Updated usage doc for --bt-tracker-interval option.
  4703. * src/usage_text.h
  4704. * doc/aria2c.1.txt
  4705. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4706. Documented --bt-tracker-interval option in man page.
  4707. * doc/aria2c.1.txt
  4708. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4709. Added an option to specify the interval between tracker requests.
  4710. If non-zero value is specified, aria2 uses it and ignores the
  4711. interval value in the response of tracker. If zero is specified,
  4712. aria2 determines the inteval value based on the tarcker response
  4713. and download progress.
  4714. * src/DefaultBtAnnounce.cc
  4715. * src/DefaultBtAnnounce.h
  4716. * src/OptionHandlerFactory.cc
  4717. * src/RequestGroup.cc
  4718. * src/prefs.cc
  4719. * src/prefs.h
  4720. * src/usage_text.h
  4721. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4722. Added operator+=, operator-=, operator-
  4723. * src/TransferStat.cc
  4724. * src/TransferStat.h
  4725. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4726. Refactored RarestPieceSelector to reduce CPU load, especially for
  4727. addPieceStats.
  4728. * src/RarestPieceSelector.cc
  4729. * src/RarestPieceSelector.h
  4730. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4731. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4732. getAllMissingBlockIndexes to reduce a call to
  4733. array_function_base::operator[].
  4734. * src/BitfieldMan.cc
  4735. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4736. Cached TransferStat/download speed to avoid to sum them up in each
  4737. call.
  4738. * src/DefaultPeerStorage.cc
  4739. * src/DefaultPeerStorage.h
  4740. * src/SegmentMan.cc
  4741. * src/SegmentMan.h
  4742. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4743. Typedefed cuid_t as int32_t in Command.h
  4744. * src/CUIDCounter.h
  4745. * src/Command.cc
  4746. * src/Command.h
  4747. * src/DownloadEngine.cc
  4748. * src/DownloadEngine.h
  4749. * src/PeerStat.h
  4750. * src/SegmentMan.cc
  4751. * src/SegmentMan.h
  4752. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4753. Reduced the number of calls to PeerStorage::calculateStat() and
  4754. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4755. transfer rate.
  4756. * src/DefaultBtInteractive.cc
  4757. * src/DefaultBtMessageDispatcher.cc
  4758. * src/DefaultPeerStorage.cc
  4759. * src/DefaultPeerStorage.h
  4760. * src/DownloadCommand.cc
  4761. * src/DownloadEngine.cc
  4762. * src/PeerStorage.h
  4763. * src/SegmentMan.cc
  4764. * src/SegmentMan.h
  4765. * test/MockPeerStorage.h
  4766. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4767. Prepended _dir+"/" after joining path elements in torrent file.
  4768. * src/DefaultBtContext.cc
  4769. * test/DefaultBtContextTest.cc
  4770. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4771. Added missing IndexBtMessageValidator.h
  4772. * src/Makefile.am
  4773. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4774. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4775. Chinese translations. Thank you for contributing our project.
  4776. * po/id.po
  4777. * po/it.po
  4778. * po/ru.po
  4779. * po/uk.po
  4780. * po/zh_CN.po
  4781. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4782. Updated README
  4783. * README
  4784. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4785. Bump up version number to 1.3.0
  4786. * configure.ac
  4787. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4788. Updated doc
  4789. * src/DefaultBtContext.h
  4790. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4791. Slice/joinPath for name of single torrent.
  4792. * src/DefaultBtContext.cc
  4793. * test/DefaultBtContextTest.cc
  4794. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4795. Updated man page: Documented --dry-run and --index-out
  4796. options. Changed the default value of --uri-selector and
  4797. --http-auth-challenge options. Removed --direct-file-mapping
  4798. option. Added example for --index-out
  4799. * doc/aria2c.1.txt
  4800. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4801. Updated TEXT_DRY_RUN
  4802. * src/usage_text.h
  4803. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4804. Changed the default value of --uri-selector option from 'inorder'
  4805. to 'feedback'
  4806. * src/OptionHandlerFactory.cc
  4807. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4808. Included current URI in exception message.
  4809. * src/AbstractCommand.cc
  4810. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4811. Renamed ServerStatURISelector as FeedbackURISelector.
  4812. * src/FeedbackURISelector.cc
  4813. * src/FeedbackURISelector.h
  4814. * src/Makefile.am
  4815. * src/RequestGroupMan.cc
  4816. * src/ServerStatURISelector.cc
  4817. * src/ServerStatURISelector.h
  4818. * test/FeedbackURISelectorTest.cc
  4819. * test/Makefile.am
  4820. * test/ServerStatURISelectorTest.cc
  4821. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4822. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4823. all URIs are tested and their timeout is not reached.
  4824. * src/AdaptiveURISelector.cc
  4825. * src/AdaptiveURISelector.h
  4826. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4827. Changed the default value of --http-auth-challenge option to false.
  4828. * src/OptionHandlerFactory.cc
  4829. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4830. Reuse URIs when all unused URIs run out.
  4831. * src/OptionHandlerFactory.cc
  4832. * src/RequestGroup.cc
  4833. * src/prefs.cc
  4834. * src/prefs.h
  4835. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4836. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4837. and BtRejectMessage are derived from RangeBtMessage class.
  4838. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4839. derived from IndexBtMessage class. BtChokeMessage,
  4840. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4841. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4842. ZeroBtMessage class.
  4843. * src/AbstractBtMessage.cc
  4844. * src/AbstractBtMessage.h
  4845. * src/BtAllowedFastMessage.cc
  4846. * src/BtAllowedFastMessage.h
  4847. * src/BtAllowedFastMessageValidator.h: Removed
  4848. * src/BtBitfieldMessage.cc
  4849. * src/BtBitfieldMessage.h
  4850. * src/BtCancelMessage.cc
  4851. * src/BtCancelMessage.h
  4852. * src/BtCancelMessageValidator.h: Removed
  4853. * src/BtChokeMessage.cc
  4854. * src/BtChokeMessage.h
  4855. * src/BtExtendedMessage.cc
  4856. * src/BtExtendedMessage.h
  4857. * src/BtHandshakeMessage.cc
  4858. * src/BtHandshakeMessage.h
  4859. * src/BtHaveAllMessage.cc
  4860. * src/BtHaveAllMessage.h
  4861. * src/BtHaveMessage.cc
  4862. * src/BtHaveMessage.h
  4863. * src/BtHaveMessageValidator.h: Removed
  4864. * src/BtHaveNoneMessage.cc
  4865. * src/BtHaveNoneMessage.h
  4866. * src/BtInterestedMessage.cc
  4867. * src/BtInterestedMessage.h
  4868. * src/BtKeepAliveMessage.cc
  4869. * src/BtKeepAliveMessage.h
  4870. * src/BtNotInterestedMessage.cc
  4871. * src/BtNotInterestedMessage.h
  4872. * src/BtPieceMessage.cc
  4873. * src/BtPieceMessage.h
  4874. * src/BtPortMessage.cc
  4875. * src/BtPortMessage.h
  4876. * src/BtRejectMessage.cc
  4877. * src/BtRejectMessage.h
  4878. * src/BtRejectMessageValidator.h: Removed
  4879. * src/BtRequestMessage.cc
  4880. * src/BtRequestMessage.h
  4881. * src/BtRequestMessageValidator.h: Removed
  4882. * src/BtSuggestPieceMessage.cc
  4883. * src/BtSuggestPieceMessage.h
  4884. * src/BtSuggestPieceMessageValidator.h: Removed
  4885. * src/BtUnchokeMessage.cc
  4886. * src/BtUnchokeMessage.h
  4887. * src/DefaultBtMessageFactory.cc
  4888. * src/IndexBtMessage.cc
  4889. * src/IndexBtMessage.h
  4890. * src/IndexBtMessageValidator.h
  4891. * src/Makefile.am
  4892. * src/PeerMessageUtil.cc
  4893. * src/PeerMessageUtil.h
  4894. * src/RangeBtMessage.cc
  4895. * src/RangeBtMessage.h
  4896. * src/RangeBtMessageValidator.h
  4897. * src/SimpleBtMessage.cc
  4898. * src/SimpleBtMessage.h
  4899. * src/ZeroBtMessage.cc
  4900. * src/ZeroBtMessage.h
  4901. * test/BtRequestMessageTest.cc
  4902. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4903. Reverted usage_text.h to r1093 to avoid to lose translated
  4904. messages.
  4905. * src/usage_text.h
  4906. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4907. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4908. declared as non-const previously is now const and defined in class
  4909. definition.
  4910. * src/AbstractBtMessage.cc
  4911. * src/AbstractBtMessage.h
  4912. * src/BtAllowedFastMessage.cc
  4913. * src/BtAllowedFastMessage.h
  4914. * src/BtBitfieldMessage.h
  4915. * src/BtCancelMessage.cc
  4916. * src/BtCancelMessage.h
  4917. * src/BtChokeMessage.cc
  4918. * src/BtChokeMessage.h
  4919. * src/BtExtendedMessage.cc
  4920. * src/BtExtendedMessage.h
  4921. * src/BtHandshakeMessage.cc
  4922. * src/BtHandshakeMessage.h
  4923. * src/BtHaveAllMessage.cc
  4924. * src/BtHaveAllMessage.h
  4925. * src/BtHaveMessage.cc
  4926. * src/BtHaveMessage.h
  4927. * src/BtHaveNoneMessage.cc
  4928. * src/BtHaveNoneMessage.h
  4929. * src/BtInterestedMessage.cc
  4930. * src/BtInterestedMessage.h
  4931. * src/BtKeepAliveMessage.cc
  4932. * src/BtKeepAliveMessage.h
  4933. * src/BtMessage.h
  4934. * src/BtNotInterestedMessage.cc
  4935. * src/BtNotInterestedMessage.h
  4936. * src/BtPieceMessage.h
  4937. * src/BtPortMessage.cc
  4938. * src/BtPortMessage.h
  4939. * src/BtRejectMessage.cc
  4940. * src/BtRejectMessage.h
  4941. * src/BtRequestMessage.cc
  4942. * src/BtRequestMessage.h
  4943. * src/BtSuggestPieceMessage.cc
  4944. * src/BtSuggestPieceMessage.h
  4945. * src/BtUnchokeMessage.cc
  4946. * src/BtUnchokeMessage.h
  4947. * src/SimpleBtMessage.cc
  4948. * src/SimpleBtMessage.h
  4949. * test/MockBtMessage.h
  4950. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4951. Use FileEntry::exists()
  4952. * src/MultiDiskAdaptor.cc
  4953. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4954. Added exists()
  4955. * src/FileEntry.cc
  4956. * src/FileEntry.h
  4957. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4958. Added missing prefix dir.
  4959. * src/download_helper.cc
  4960. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4961. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4962. * src/CopyDiskAdaptor.cc: Removed
  4963. * src/CopyDiskAdaptor.h: Removed
  4964. * src/DefaultPieceStorage.cc
  4965. * src/Makefile.am
  4966. * src/OptionHandlerFactory.cc
  4967. * src/prefs.cc
  4968. * src/prefs.h
  4969. * src/usage_text.h
  4970. * test/CopyDiskAdaptorTest.cc: Removed
  4971. * test/Makefile.am
  4972. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4973. Rewritten isSameFileBeingDownloaded()
  4974. * src/RequestGroupMan.cc
  4975. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4976. Removed getName() from DownloadContext. getName() is declared in
  4977. BtContext.
  4978. * src/BtContext.h
  4979. * src/DownloadContext.h
  4980. * src/SingleFileDownloadContext.cc
  4981. * src/SingleFileDownloadContext.h
  4982. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4983. in AbstractSingleDiskAdaptor.
  4984. * src/AbstractSingleDiskAdaptor.h
  4985. * src/DiskAdaptor.h
  4986. * src/MultiDiskAdaptor.h
  4987. * src/RequestGroup.cc
  4988. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4989. MultiDiskAdaptor.
  4990. * src/DefaultPieceStorage.cc
  4991. * src/MultiDiskAdaptor.cc
  4992. * src/MultiDiskAdaptor.h
  4993. * test/MultiDiskAdaptorTest.cc
  4994. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4995. FileEntry::getPath() contains store(top level) directory to
  4996. simplify path handling operation. In the previous implementation,
  4997. store directory is concatenated to FileEntry::getPath() in
  4998. DownloadContext.
  4999. * src/BtDependency.cc
  5000. * src/BtPostDownloadHandler.cc
  5001. * src/CopyDiskAdaptor.cc
  5002. * src/DefaultBtContext.cc
  5003. * src/DirectDiskAdaptor.cc
  5004. * src/FileEntry.cc
  5005. * src/FileEntry.h
  5006. * src/FtpNegotiationCommand.cc
  5007. * src/HttpResponse.cc
  5008. * src/HttpResponseCommand.cc
  5009. * src/Metalink2RequestGroup.cc
  5010. * src/MultiDiskAdaptor.cc
  5011. * src/MultiDiskAdaptor.h
  5012. * src/MultiFileAllocationIterator.cc
  5013. * src/RequestGroup.cc
  5014. * src/SingleFileDownloadContext.cc
  5015. * src/SingleFileDownloadContext.h
  5016. * src/download_helper.cc
  5017. * test/BtDependencyTest.cc
  5018. * test/CopyDiskAdaptorTest.cc
  5019. * test/DefaultBtContextTest.cc
  5020. * test/DefaultBtProgressInfoFileTest.cc
  5021. * test/DirectDiskAdaptorTest.cc
  5022. * test/DownloadHelperTest.cc
  5023. * test/FileEntryTest.cc
  5024. * test/MultiDiskAdaptorTest.cc
  5025. * test/MultiFileAllocationIteratorTest.cc
  5026. * test/RequestGroupTest.cc
  5027. * test/SingleFileDownloadContextTest.cc
  5028. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5029. Fixed compiler warning
  5030. * src/download_helper.cc
  5031. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. Throw exception if same infohash torrent is now downloading.
  5033. * src/RequestGroup.cc
  5034. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5035. Added --dry-run option. In this mode, aria2 just checks whether
  5036. the remote file is available and doesn't download data. This
  5037. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5038. are canceled in this mode.
  5039. * src/FtpNegotiationCommand.cc
  5040. * src/HttpResponseCommand.cc
  5041. * src/HttpResponseCommand.h
  5042. * src/OptionHandlerFactory.cc
  5043. * src/RequestGroup.cc
  5044. * src/RequestGroupMan.cc
  5045. * src/prefs.cc
  5046. * src/prefs.h
  5047. * src/usage_text.h
  5048. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Fixed compiler waring
  5050. * test/UriListParserTest.cc
  5051. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5052. Parse options in -i list using OptionParser.
  5053. * src/UriListParser.cc
  5054. * src/UriListParser.h
  5055. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Don't reset URI in retry to avoid additional round trips because
  5057. of redirects.
  5058. * src/AbstractCommand.cc
  5059. * src/OptionHandlerFactory.cc
  5060. * src/prefs.cc
  5061. * src/prefs.h
  5062. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5063. Declared hide() in OptionHandler.
  5064. * src/NameMatchOptionHandler.h
  5065. * src/OptionHandler.h
  5066. * src/OptionHandlerImpl.h
  5067. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5068. Updated doc
  5069. * src/Peer.h
  5070. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5071. Added log message in setStatusInternal()
  5072. * src/ServerStat.cc
  5073. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5074. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5075. effectively exclude failed server.
  5076. * src/AbstractCommand.cc
  5077. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5078. Added --index-out option to specify each file path for torrent.
  5079. Here index shown in --show-files option is used to specify which
  5080. file path should be altered. For example, to change the file path
  5081. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5082. option multiple times: --index-out=1=aria2.tar.bz2
  5083. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5084. available. This option can be specified in -i list.
  5085. * src/DefaultBtContext.cc
  5086. * src/DefaultBtContext.h
  5087. * src/MultiDiskAdaptor.cc
  5088. * src/MultiDiskAdaptor.h
  5089. * src/MultiFileAllocationIterator.cc
  5090. * src/OptionHandlerFactory.cc
  5091. * src/OptionHandlerImpl.h
  5092. * src/Util.cc
  5093. * src/Util.h
  5094. * src/download_helper.cc
  5095. * src/prefs.cc
  5096. * src/prefs.h
  5097. * src/usage_text.h
  5098. * test/DefaultBtContextTest.cc
  5099. * test/MultiDiskAdaptorTest.cc
  5100. * test/MultiFileAllocationIteratorTest.cc
  5101. * test/UtilTest.cc
  5102. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5103. Use Util::pathJoin()
  5104. * src/MetalinkParserController.cc
  5105. * test/test.xml
  5106. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5107. Use Util::pathJoin()
  5108. * src/DefaultBtContext.cc
  5109. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5110. Added Util::pathJoin()
  5111. * src/Util.h
  5112. * test/UtilTest.cc
  5113. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5114. Applied basename function to remove directory element in
  5115. content-disposition value.
  5116. Return empty string if content-disposition value is ".." or ".".
  5117. * src/Util.cc
  5118. * test/UtilTest.cc
  5119. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5120. Added --max-overall-download-limit in man page.
  5121. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5122. * doc/aria2c.1.txt
  5123. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5124. Added --max-overall-download-limit option. Now --max-upload-limit
  5125. option is not ignored when --max-overall-upload-limit option has
  5126. non-zero value. aria2 checks download(upload) speed in the order:
  5127. first checks overall speed limit and if it is not exceeded, then
  5128. checks speed limit per download. Thus you can specify both
  5129. value. For example, set --max-overall-download-limit=1M and
  5130. --max-download-limit=500K to prevent from one download from eating
  5131. all overall speed limit.
  5132. * src/DefaultBtInteractive.cc
  5133. * src/DefaultBtInteractive.h
  5134. * src/DefaultBtMessageDispatcher.cc
  5135. * src/DefaultBtMessageDispatcher.h
  5136. * src/DownloadCommand.cc
  5137. * src/DownloadCommand.h
  5138. * src/FtpNegotiationCommand.cc
  5139. * src/HttpResponseCommand.cc
  5140. * src/OptionHandlerFactory.cc
  5141. * src/PeerInteractionCommand.cc
  5142. * src/RequestGroup.cc
  5143. * src/RequestGroup.h
  5144. * src/RequestGroupMan.cc
  5145. * src/RequestGroupMan.h
  5146. * src/prefs.cc
  5147. * src/prefs.h
  5148. * src/usage_text.h
  5149. * test/DefaultBtMessageDispatcherTest.cc
  5150. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5151. Documented select-file option in Input File section.
  5152. Documented --http-auth-challenge option.
  5153. * doc/aria2c.1.txt
  5154. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5155. Now select-file can be specified in the uri list(-i list).
  5156. * src/BtContext.cc
  5157. * src/BtContext.h
  5158. * src/RequestGroup.cc
  5159. * src/Sequence.h
  5160. * src/download_helper.cc
  5161. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5162. Made the upper value of --max-concurrent-downloads options unlimited.
  5163. * src/OptionHandlerFactory.cc
  5164. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5165. Fixed the bug that disk writer is not created even if it shares
  5166. same piece with the preceding file if the length of previous file
  5167. is 0.
  5168. * src/MultiDiskAdaptor.cc
  5169. * test/MultiDiskAdaptorTest.cc
  5170. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5171. In BitTorrent, Open files in read-only mode for hash check. After
  5172. that, re-open file in read/write mode only when the download is
  5173. not finished.
  5174. * src/AbstractDiskWriter.cc
  5175. * src/AbstractDiskWriter.h
  5176. * src/AbstractSingleDiskAdaptor.cc
  5177. * src/AbstractSingleDiskAdaptor.h
  5178. * src/BtCheckIntegrityEntry.cc
  5179. * src/DiskAdaptor.h
  5180. * src/DiskWriter.h
  5181. * src/MultiDiskAdaptor.cc
  5182. * src/MultiDiskAdaptor.h
  5183. * src/RequestGroup.cc
  5184. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5185. Added --http-auth-challenge option. If it is set to true(by
  5186. default), aria2 sends HTTP authorization header only when it is
  5187. requested by the server. If false is set, then authorization
  5188. header is always sent to the server. This is useful for servers
  5189. that don't respond 401 code when authentication is required.
  5190. There is an exception: if username and password are embedded in
  5191. URI, authorization header is always sent to the server regardless
  5192. of this option.
  5193. * src/AuthConfigFactory.cc
  5194. * src/HttpSkipResponseCommand.cc
  5195. * src/OptionHandlerFactory.cc
  5196. * src/prefs.cc
  5197. * src/prefs.h
  5198. * src/usage_text.h
  5199. * test/AuthConfigFactoryTest.cc
  5200. * test/HttpRequestTest.cc
  5201. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5202. * Release 1.2.0
  5203. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5204. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5205. Thanks to all translators.
  5206. * po/es.po
  5207. * po/ja.po
  5208. * po/ru.po
  5209. * po/uk.po
  5210. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5211. Call deleteSocketForReadCheck() before socket is closed.
  5212. * src/HttpListenCommand.cc
  5213. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5214. Defined virtual destructor for BObject.
  5215. * src/bencode.h
  5216. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5217. Rewritten BDE to make it efficient.
  5218. * src/bencode.cc
  5219. * src/bencode.h
  5220. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5221. Removed function throw list.
  5222. * src/bencode.cc
  5223. * src/bencode.h
  5224. * test/BencodeTest.cc
  5225. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Enclosed all URLs in double quotes in command-line examples.
  5227. * doc/aria2c.1.txt
  5228. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5229. Updated reference/see also section.
  5230. * README
  5231. * doc/aria2c.1.txt
  5232. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5233. Reorganized man page based on man man-pages.
  5234. * doc/aria2c.1.txt
  5235. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5236. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5237. because same documents are available in man page. Added
  5238. References section.
  5239. * README
  5240. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5241. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5242. PERFORMANCE PROFILE section.
  5243. * doc/aria2c.1.txt
  5244. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5245. Rewritten the section for configuration file.
  5246. * README
  5247. * doc/aria2c.1.txt
  5248. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5249. Fixed the segmentation fault during execution of choking algorithm
  5250. in leecher state because of broken compare operator
  5251. implementation.
  5252. * src/BtLeecherStateChoke.cc
  5253. * src/BtLeecherStateChoke.h
  5254. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5255. Open file in binary mode.
  5256. * src/CookieStorage.cc
  5257. * src/DHTSetup.cc
  5258. * src/DHTUtil.cc
  5259. * src/Netrc.cc
  5260. * src/NsCookieParser.cc
  5261. * src/ProtocolDetector.cc
  5262. * src/RequestGroupMan.cc
  5263. * src/Signature.cc
  5264. * src/bencode.cc
  5265. * src/download_helper.cc
  5266. * src/option_processing.cc
  5267. * test/CookieParserTest.cc
  5268. * test/DefaultBtProgressInfoFileTest.cc
  5269. * test/FileTest.cc
  5270. * test/GZipDecoderTest.cc
  5271. * test/RequestGroupManTest.cc
  5272. * test/SignatureTest.cc
  5273. * test/SingleFileAllocationIteratorTest.cc
  5274. * test/UriListParserTest.cc
  5275. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5276. Removed operator[] because it is ambiguous with built-in []
  5277. operator.
  5278. * src/array_fun.h
  5279. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5280. Fixed compile error
  5281. * src/OptionParser.cc
  5282. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5283. Added missing call to arrayWrapperConst
  5284. * test/array_funTest.cc
  5285. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5286. Use array_wrapper instead of array_ptr.
  5287. * src/DHTRoutingTableDeserializer.cc
  5288. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5289. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5290. * src/array_fun.h
  5291. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5292. Added array_wrapper template.
  5293. * src/array_fun.h
  5294. * test/array_funTest.cc
  5295. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5296. Use operator T* of array_ptr.
  5297. * src/OptionParser.cc
  5298. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5299. Use localhost instead of 127.0.0.1
  5300. * test/FtpConnectionTest.cc
  5301. * test/MSEHandshakeTest.cc
  5302. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5303. Added operator T*
  5304. * src/array_fun.h
  5305. * test/array_funTest.cc
  5306. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5307. Use dynamically allocated char array to detect memory access
  5308. violation.
  5309. * src/DHTRoutingTableDeserializer.cc
  5310. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5311. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5312. defined.
  5313. * src/PeerMessageUtil.cc
  5314. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5315. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5316. * configure.ac
  5317. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5318. Added a check to see struct sockaddr_in has sin_len member.
  5319. * configure.ac
  5320. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5321. Fixed buffer overrun.
  5322. * src/DHTRoutingTableDeserializer.cc
  5323. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Added LL for long long int constant.
  5325. * test/FtpConnectionTest.cc
  5326. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5327. Casted to unsigned int to suppress compiler warning on netbsd.
  5328. * src/BtRuntime.h
  5329. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5330. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5331. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5332. type time_t.
  5333. * src/SimpleLogger.cc
  5334. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5335. Added test for FtpConnection::receiveSizeResponse().
  5336. * test/FtpConnectionTest.cc
  5337. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5338. Fix epoll error on the old kernel 2.6.8 or ealier.
  5339. * src/EpollEventPoll.cc
  5340. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5341. Use Util::parseLLInt instead of sscanf for portability. The
  5342. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5343. * src/FtpConnection.cc
  5344. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5345. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5346. block. It should not filter anything.
  5347. * src/BitfieldMan.cc
  5348. * src/ConsoleStatCalc.cc
  5349. * test/BitfieldManTest.cc
  5350. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5351. Fixed the bug that the boolean options that don't take arguments
  5352. don't work.
  5353. * src/OptionHandlerImpl.h
  5354. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5355. Fixed broken selected file BitTorrent download.
  5356. * src/MultiDiskAdaptor.cc
  5357. * test/MultiDiskAdaptorTest.cc
  5358. * test/MultiFileAllocationIteratorTest.cc
  5359. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5360. Fixed #define guard for EpollEventPoll
  5361. * src/EpollEventPoll.h
  5362. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5363. Wait 2 seconds. 1 second is sometimes not enough.
  5364. * test/TimeSeedCriteriaTest.cc
  5365. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5366. Use localhost instead of 127.0.0.1.
  5367. * test/DHTConnectionImplTest.cc
  5368. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5369. Suppressed compiler warning.
  5370. * src/AdaptiveURISelector.cc
  5371. * src/DefaultPieceStorage.cc
  5372. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5373. Defined virtual destructor.
  5374. * src/MetalinkParserState.h
  5375. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5376. Give NULL for second argument of getaddrinfo instead of "0".
  5377. * src/NameResolver.cc
  5378. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5379. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5380. included strptime doesn't parse data for this format.
  5381. * src/FtpConnection.cc
  5382. * test/FtpConnectionTest.cc
  5383. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5384. Removed tests giving -1 for unsigned argument.
  5385. * test/SingleFileDownloadContextTest.cc
  5386. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5387. Don't use sha256 in tests because it might not be supported by the
  5388. SSL library.
  5389. * test/MetalinkProcessorTest.cc
  5390. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5391. Removed tests giving -1 for unsigned argument.
  5392. * test/AlphaNumberDecoratorTest
  5393. * test/BitfieldManTest.cc
  5394. * test/DefaultBtContextTest.cc
  5395. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5396. Fixed compile error without libcares when epoll is available.
  5397. * src/EpollEventPoll.cc
  5398. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5399. Included fstream instead of iostream.
  5400. * test/SignatureTest.cc
  5401. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5402. Removed #include <algorithm>
  5403. * test/RequestGroupTest.cc
  5404. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5405. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5406. using RequestGroup::extractURIResult().
  5407. * src/AdaptiveURISelector.cc
  5408. * src/RequestGroup.cc
  5409. * src/RequestGroup.h
  5410. * test/RequestGroupTest.cc
  5411. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5412. Added tests for array_ptr.
  5413. * test/array_funTest.cc
  5414. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5415. Don't send ip parameter to a tracker if ip parameter is empty
  5416. string.
  5417. * src/DefaultBtAnnounce.cc
  5418. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5419. Adjusted line feed.
  5420. * src/version_usage.cc
  5421. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5422. Print tags, possible values when OptionHandlerException is caught.
  5423. * src/option_processing.cc
  5424. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5425. Changed the message for FatalException.
  5426. * src/OptionParser.cc
  5427. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5428. Documented --bt-external-ip option in man page. Updated man pages
  5429. for --proxy-method option.
  5430. * doc/aria2c.1.txt
  5431. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5432. Use GET method for FTP via HTTP proxy.
  5433. * src/FtpInitiateConnectionCommand.cc
  5434. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5435. Changed the default value of --proxy-method option from 'tunnel'
  5436. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5437. option.
  5438. * src/AbstractCommand.cc
  5439. * src/AbstractCommand.h
  5440. * src/FtpInitiateConnectionCommand.cc
  5441. * src/HttpDownloadCommand.cc
  5442. * src/HttpInitiateConnectionCommand.cc
  5443. * src/HttpInitiateConnectionCommand.h
  5444. * src/OptionHandlerFactory.cc
  5445. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5446. Initialized _logger
  5447. * src/SelectEventPoll.cc
  5448. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5449. Defined a copy constructor for the same type.
  5450. * src/SharedHandle.h
  5451. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5452. Added OptionParser::parseArg() which internally uses getopt_long
  5453. to parse command-line options. All command-line options are now
  5454. configured by OptionHandler. No manual editing of struct option*
  5455. is required any more.
  5456. * src/NameMatchOptionHandler.h
  5457. * src/OptionHandler.h
  5458. * src/OptionHandlerFactory.cc
  5459. * src/OptionHandlerImpl.h
  5460. * src/OptionParser.cc
  5461. * src/OptionParser.h
  5462. * src/array_fun.h
  5463. * src/main.cc
  5464. * src/option_processing.cc
  5465. * test/OptionHandlerTest.cc
  5466. * test/OptionParserTest.cc
  5467. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5468. Fixed configure error with --disable-epoll
  5469. * configure.ac
  5470. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5471. Fixed compile error when HAVE_EPOLL is not defined.
  5472. Fixed linker error on bigendian systems.
  5473. * src/SocketCore.cc
  5474. * src/SocketCore.h
  5475. * test/DefaultBtProgressInfoFileTest.cc
  5476. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5477. Added --bt-external-ip option. You can specify the external IP
  5478. address to report to a BitTorrent tracker. Although this function
  5479. is named 'external', it can accept any kind of IP addresses.
  5480. * src/DefaultBtAnnounce.cc
  5481. * src/OptionHandlerFactory.cc
  5482. * src/option_processing.cc
  5483. * src/prefs.cc
  5484. * src/prefs.h
  5485. * src/usage_text.h
  5486. * test/DefaultBtAnnounceTest.cc
  5487. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5488. Extracted the algorithm to find the longest incremental sequence
  5489. as max_sequence template.
  5490. * src/LongestSequencePieceSelector.cc
  5491. * src/a2algo.h
  5492. * test/Makefile.am
  5493. * test/a2algoTest.cc
  5494. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5495. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5496. * src/usage_text.h
  5497. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5498. Updated doc for --uri-selector, --http-server-listen-port and
  5499. --enable-http-server option. Documented --event-poll option.
  5500. * doc/aria2c.1.txt
  5501. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5502. Updated doc for --enable-http-server.
  5503. * src/usage_text.h
  5504. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5505. Documented --http-server-listen-port and --enable-http-server in
  5506. man page.
  5507. * doc/aria2c.1.txt
  5508. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5509. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5510. translations. Thanks to all translators.
  5511. * po/es.po
  5512. * po/id.po
  5513. * po/it.po
  5514. * po/ru.po
  5515. * po/uk.po
  5516. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5517. Bump up version number to 1.2.0
  5518. * configure.ac
  5519. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5520. BtContext::getAnnounceTiers() now returns const reference.
  5521. * src/BtContext.h
  5522. * src/DefaultBtContext.cc
  5523. * src/DefaultBtContext.h
  5524. * test/MockBtContext.h
  5525. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5526. Change the number of retries for tracker request based on the
  5527. number of available tracker in a torrent file.
  5528. * src/TrackerWatcherCommand.cc
  5529. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5530. Added _maxTries property to RequestGroup and assign the option
  5531. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5532. RequestGroup::getMaxTries() instead of
  5533. Option::getAsInt(PREF_MAX_TRIES).
  5534. * src/AbstractCommand.cc
  5535. * src/RequestGroup.cc
  5536. * src/RequestGroup.h
  5537. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5538. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5539. Mandriva. I modified the patch: make RequestGroup have the
  5540. timeout value and AdaptiveURISelector directly modifies that
  5541. value.
  5542. * src/AbstractCommand.cc
  5543. * src/AdaptiveURISelector.cc
  5544. * src/AdaptiveURISelector.h
  5545. * src/FtpNegotiationCommand.cc
  5546. * src/RequestGroup.cc
  5547. * src/RequestGroup.h
  5548. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5549. Fixed compiler warning
  5550. * test/IteratableChecksumValidatorTest.cc
  5551. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5552. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5553. integrated downloads. This PieceSelector subclass finds the
  5554. longest continuous sequence in the available missing pieces and
  5555. selects the last index of such sequence. This makes HTTP/FTP
  5556. connections less interrupted by the pieces obtained by BitTorrent
  5557. peers.
  5558. * src/DefaultPieceStorage.cc
  5559. * src/DefaultPieceStorage.h
  5560. * src/LongestSequencePieceSelector.cc
  5561. * src/LongestSequencePieceSelector.h
  5562. * src/Makefile.am
  5563. * src/PieceSelector.h
  5564. * src/RarestPieceSelector.h
  5565. * src/RequestGroup.cc
  5566. * test/BtDependencyTest.cc
  5567. * test/DefaultPieceStorageTest.cc
  5568. * test/IteratableChecksumValidatorTest.cc
  5569. * test/LongestSequencePieceSelectorTest.cc
  5570. * test/Makefile.am
  5571. * test/SegmentManTest.cc
  5572. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5573. Fixed the bug that the average speed is wrong in
  5574. http/ftp/BitTorrent integrated download. Only the download bytes
  5575. in BitTorrent were considered.
  5576. * src/RequestGroup.cc
  5577. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5578. Choose port for BitTorrent/DHT randomly from the specified range.
  5579. * src/DHTConnectionImpl.cc
  5580. * src/PeerListenCommand.cc
  5581. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5582. Send HTTP Authorization header only if it is requested by the
  5583. server(response 401). There are some exceptions. The authorization
  5584. header for proxy is always sent if it is available without request
  5585. by the server. If username/password is specified in the URI, it
  5586. is immediately sent to the server without request by the server.
  5587. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5588. SharedHandle<AuthConfig>().
  5589. NetrcAuthResolver::resolveAuthConfig() returns
  5590. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5591. * src/AbstractAuthResolver.cc
  5592. * src/AbstractProxyRequestCommand.cc
  5593. * src/AuthConfigFactory.cc
  5594. * src/AuthConfigFactory.h
  5595. * src/HttpConnection.cc
  5596. * src/HttpRequest.cc
  5597. * src/HttpRequest.h
  5598. * src/HttpResponse.cc
  5599. * src/HttpResponseCommand.cc
  5600. * src/HttpSkipResponseCommand.cc
  5601. * test/AuthConfigFactoryTest.cc
  5602. * test/HttpRequestTest.cc
  5603. * test/HttpResponseTest.cc
  5604. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5605. Remove leading "--" from help keyword and a substring after "="
  5606. from help keyword, so that one can query options by '-h--max-' or
  5607. '-hmax-peers=10'.
  5608. * src/option_processing.cc
  5609. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5610. Rewritten PStringVisitor and its implementation.
  5611. * src/PStringBuildVisitor.cc
  5612. * src/PStringBuildVisitor.h
  5613. * src/PStringDatum.h
  5614. * src/PStringNumLoop.h
  5615. * src/PStringSegment.cc
  5616. * src/PStringSegment.h
  5617. * src/PStringSelect.h
  5618. * src/PStringVisitor.h
  5619. * src/download_helper.cc
  5620. * test/PStringBuildVisitorTest.cc
  5621. * test/ParameterizedStringParserTest.cc
  5622. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5623. Persist connection between the built-in HTTP server and a client
  5624. if a client supports keep-alive. Fixed the bug that aria2 exits
  5625. when the HTTP server receives EOF from a client.
  5626. * src/HttpServer.cc
  5627. * src/HttpServer.h
  5628. * src/HttpServerCommand.cc
  5629. * src/HttpServerCommand.h
  5630. * src/HttpServerResponseCommand.cc
  5631. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5632. Added experimental built-in HTTP server. Currently, when a client
  5633. accesses to the server, it responds with the current download
  5634. progress. By default, it is disabled. To enable the server, give
  5635. --enable-http-server option. To change the default port number
  5636. for the server to listen to, use --http-server-listen-port option.
  5637. The response HTML is very simple and refreshes it self each 1
  5638. second. Because of this refresh, you see flicker in normal web
  5639. browser such as Firefox. I recommend to use console-based browser
  5640. such as elinks, w3m. To connect to the server, run 'elinks
  5641. http://localhost:6800/' while running aria2. Please replace port
  5642. number '6800'(which is default) with your preference.
  5643. * src/DownloadEngineFactory.cc
  5644. * src/HttpHeader.cc
  5645. * src/HttpHeader.h
  5646. * src/HttpHeaderProcessor.cc
  5647. * src/HttpHeaderProcessor.h
  5648. * src/HttpListenCommand.cc
  5649. * src/HttpListenCommand.h
  5650. * src/HttpServer.cc
  5651. * src/HttpServer.h
  5652. * src/HttpServerCommand.cc
  5653. * src/HttpServerCommand.h
  5654. * src/HttpServerResponseCommand.cc
  5655. * src/HttpServerResponseCommand.h
  5656. * src/Makefile.am
  5657. * src/OptionHandlerFactory.cc
  5658. * src/Util.cc
  5659. * src/Util.h
  5660. * src/help_tags.h
  5661. * src/option_processing.cc
  5662. * src/prefs.cc
  5663. * src/prefs.h
  5664. * src/usage_text.h
  5665. * test/HttpHeaderProcessorTest.cc
  5666. * test/UtilTest.cc
  5667. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5668. Removed.
  5669. * src/CheckIntegrityMan.cc
  5670. * src/FileAllocationMan.cc
  5671. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5672. Made (piece) hash check sequential for each RequestGroup because
  5673. simultaneous hash check is slower than sequential execution.
  5674. * src/CheckIntegrityCommand.cc
  5675. * src/CheckIntegrityDispatcherCommand.cc
  5676. * src/CheckIntegrityDispatcherCommand.h
  5677. * src/CheckIntegrityMan.h
  5678. * src/ConsoleStatCalc.cc
  5679. * src/DownloadCommand.cc
  5680. * src/DownloadEngine.cc
  5681. * src/DownloadEngine.h
  5682. * src/DownloadEngineFactory.cc
  5683. * src/Makefile.am
  5684. * src/Makefile.in
  5685. * src/RequestGroup.cc
  5686. * src/StatCalc.h
  5687. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5688. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5689. SequentialDispatcherCommand.
  5690. * src/FileAllocationDispatcherCommand.cc
  5691. * src/SequentialDispatcherCommand.h
  5692. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5693. Rewritten FileAllocationDispatcherCommand using brand new
  5694. SequentialDispatcherCommand.
  5695. * src/DownloadEngineFactory.cc
  5696. * src/FileAllocationCommand.cc
  5697. * src/FileAllocationDispatcherCommand.cc
  5698. * src/FileAllocationDispatcherCommand.h
  5699. * src/Makefile.am
  5700. * src/SequentialDispatcherCommand.h
  5701. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5702. Replaced FileAllocationMan with
  5703. SequentialPicker<FileAllocationEntry>.
  5704. * src/BtCheckIntegrityEntry.cc
  5705. * src/ConsoleStatCalc.cc
  5706. * src/DownloadEngine.cc
  5707. * src/DownloadEngine.h
  5708. * src/DownloadEngineFactory.cc
  5709. * src/FileAllocationCommand.cc
  5710. * src/FileAllocationDispatcherCommand.cc
  5711. * src/FileAllocationMan.h
  5712. * src/Makefile.am
  5713. * src/SequentialPicker.h
  5714. * src/StatCalc.h
  5715. * src/StreamCheckIntegrityEntry.cc
  5716. * test/Makefile.am
  5717. * test/SequentialPickerTest.cc
  5718. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5719. Added doc for adaptive URI selector.
  5720. * doc/aria2c.1.txt
  5721. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5722. Added doc for adaptive URI selector.
  5723. * src/usage_text.h
  5724. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5725. Added doc for --bt-max-peers option.
  5726. * doc/aria2c.1.txt
  5727. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5728. Added doc for --bt-hash-check-seed option.
  5729. * doc/aria2c.1.txt
  5730. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5731. Documented exit codes.
  5732. * doc/aria2c.1.txt
  5733. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5734. Added --bt-max-peers option to specify the maximum number of peers
  5735. per torrent. 0 means unlimited number of peers.
  5736. * src/ActivePeerConnectionCommand.cc
  5737. * src/BtRuntime.h
  5738. * src/DefaultPeerStorage.cc
  5739. * src/DefaultPeerStorage.h
  5740. * src/OptionHandlerFactory.cc
  5741. * src/RequestGroup.cc
  5742. * src/option_processing.cc
  5743. * src/prefs.cc
  5744. * src/prefs.h
  5745. * src/usage_text.h
  5746. * test/DefaultPeerStorageTest.cc
  5747. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5748. Added --bt-hash-check-seed option. If true is given to this
  5749. option, after hash check using --check-integrity option and file
  5750. is complete, continue to seed file. If you want to check file and
  5751. download it only when it is damaged or incomplete, set this option
  5752. to false. This option has effect only on BitTorrent download.
  5753. The default value is true(This is the same behavior with the
  5754. previous release).
  5755. * src/BtCheckIntegrityEntry.cc
  5756. * src/OptionHandlerFactory.cc
  5757. * src/option_processing.cc
  5758. * src/prefs.cc
  5759. * src/prefs.h
  5760. * src/usage_text.h
  5761. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5762. Updated copyright year.
  5763. * src/version_usage.cc
  5764. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5765. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5766. * doc/aria2c.1.txt
  5767. * src/usage_text.h
  5768. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5769. Made the max value of split option unlimited.
  5770. * doc/aria2c.1.txt
  5771. * src/OptionHandlerFactory.cc
  5772. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5773. Fixed compile warning/error.
  5774. * src/DownloadResult.h
  5775. * src/HttpDownloadCommand.cc
  5776. * src/ServerStat.cc
  5777. * test/RequestGroupTest.cc
  5778. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5779. Added --event-poll option to select the method for polling events.
  5780. The available methods are "select" and "epoll". "epoll" is
  5781. available on Linux only. The earlier release has the compile
  5782. option to choose from these methods.
  5783. * configure.ac
  5784. * src/RequestGroupMan.cc
  5785. * src/OptionHandlerFactory.cc
  5786. * src/EpollEventPoll.h
  5787. * src/StreamFileAllocationEntry.cc
  5788. * src/a2io.h
  5789. * src/SelectEventPoll.h
  5790. * src/option_processing.cc
  5791. * src/prefs.h
  5792. * src/EpollEventPoll.cc
  5793. * src/EventPoll.h
  5794. * src/SocketCore.h
  5795. * src/Makefile.am
  5796. * src/main.cc
  5797. * src/DownloadEngine.h
  5798. * src/SelectEventPoll.cc
  5799. * src/DownloadEngine.cc
  5800. * src/SocketCore.cc
  5801. * src/DownloadEngineFactory.cc
  5802. * src/Makefile.in
  5803. * src/prefs.cc
  5804. * src/usage_text.h
  5805. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5806. Included RecoverableException.h from main.cc
  5807. * src/main.cc
  5808. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5809. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5810. now returns last error encountered in the HTTP/FTP downloads as a
  5811. exit status value. If all downloads finished successfully, aria2
  5812. returns 0. The error code is defined in src/DownloadResult.h.
  5813. The error occurred in the download currently in progress is not
  5814. reported as a last error. If no error has encountered but there
  5815. are in progress or waiting downloads, aria2 returns 7.
  5816. * src/AbstractCommand.cc
  5817. * src/DlAbortEx.h
  5818. * src/DlRetryEx.h
  5819. * src/DownloadCommand.cc
  5820. * src/DownloadFailureException.h
  5821. * src/DownloadResult.h
  5822. * src/FtpNegotiationCommand.cc
  5823. * src/HttpSkipResponseCommand.cc
  5824. * src/Makefile.am
  5825. * src/MultiUrlRequestInfo.cc
  5826. * src/MultiUrlRequestInfo.h
  5827. * src/RecoverableException.h
  5828. * src/RequestGroup.cc
  5829. * src/RequestGroup.h
  5830. * src/RequestGroupMan.cc
  5831. * src/RequestGroupMan.h
  5832. * src/URIResult.cc
  5833. * src/URIResult.h
  5834. * src/main.cc
  5835. * src/option_processing.cc
  5836. * test/RequestGroupTest.cc
  5837. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5838. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5839. patch adds AdaptiveURISelector, which selects one of the bests
  5840. mirrors for first and reserved connections. For supplementary
  5841. ones, it returns mirrors which has not been tested yet, and if
  5842. each of them already tested, returns mirrors which has to be
  5843. tested again. Otherwise, it doesn't return anymore mirrors.
  5844. * src/AdaptiveURISelector.cc
  5845. * src/AdaptiveURISelector.h
  5846. * src/FtpNegotiationCommand.cc
  5847. * src/HttpResponseCommand.cc
  5848. * src/Makefile.am
  5849. * src/Makefile.in
  5850. * src/OptionHandlerFactory.cc
  5851. * src/RequestGroup.cc
  5852. * src/RequestGroup.h
  5853. * src/RequestGroupMan.cc
  5854. * src/ServerStat.cc
  5855. * src/ServerStat.h
  5856. * src/ServerStatMan.cc
  5857. * src/SpeedCalc.cc
  5858. * src/URISelector.h
  5859. * src/prefs.cc
  5860. * src/prefs.h
  5861. * test/RequestGroupManTest.cc
  5862. * test/ServerStatManTest.cc
  5863. * test/ServerStatTest.cc
  5864. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5865. Fixed unit test error.
  5866. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5867. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5868. * Release 1.1.2
  5869. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5870. Updated Russian translation. Thanks to the translators.
  5871. * po/ru.po
  5872. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5873. Added the description of --use-head option to man page.
  5874. * doc/aria2c.1.txt
  5875. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5876. Bump up version number to 1.1.2
  5877. * configure.ac
  5878. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5879. Added --use-head option to toggle whether HEAD method should be
  5880. used in the first HTTP request. By default aria2 uses HEAD method
  5881. as the first request. When the server doesn't recognize HEAD, then
  5882. give aria2 --use-head=false to force aria2 to use GET method
  5883. instead.
  5884. * src/OptionHandlerFactory.cc
  5885. * src/RequestGroupMan.cc
  5886. * src/option_processing.cc
  5887. * src/prefs.cc
  5888. * src/prefs.h
  5889. * src/usage_text.h
  5890. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5891. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5892. message is received before CHOKE message. The old implementation
  5893. doen't clear the use-bit of the piece when recieved REJECT
  5894. message.
  5895. * src/DefaultBtMessageDispatcher.cc
  5896. * test/DefaultBtMessageDispatcherTest.cc
  5897. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5898. * Release 1.1.1
  5899. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5900. Bump up version number to 1.1.1.
  5901. * configure.ac
  5902. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5903. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5904. is printed repeatedly.
  5905. * src/ConsoleStatCalc.cc
  5906. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5907. * Release 1.1.0
  5908. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5909. Added ifdef clause for conditional compilation.
  5910. * src/main.cc
  5911. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5912. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5913. translations. Thanks to all translators.
  5914. * po/ja.po
  5915. * po/ru.po
  5916. * po/uk.po
  5917. * po/zh_CN.po
  5918. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5919. Added the preceding ">>> " before the message "Printing the
  5920. contents of file..." to make the output more readable.
  5921. * src/main.cc
  5922. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5923. Added try-catch block in the loop in showFiles() to continue the
  5924. operation even if the exception occurred in one file.
  5925. * src/main.cc (showFiles)
  5926. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5927. Made messages in showFiles() translatable.
  5928. * po/aria2.pot
  5929. * src/main.cc
  5930. * src/message.h
  5931. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5932. Print the contents of Torrent/Metalink files are printed without
  5933. -T/-M options.
  5934. * src/main.cc
  5935. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5936. Escaped '--' with '\--'
  5937. * README
  5938. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5939. Updated "How to build" section in README. Mentioned about
  5940. --with-ca-bundle compile option.
  5941. * README
  5942. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5943. Bump up version number to 1.1.0.
  5944. * configure.ac
  5945. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5946. Added a note for --dht-listen-port option.
  5947. * doc/aria2c.1.txt
  5948. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5949. Update doc for --realtime-chunk-checksum option.
  5950. * doc/aria2c.1.txt
  5951. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5952. Update doc for --realtime-chunk-checksum option.
  5953. * src/usage_text.h
  5954. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5955. Updated French, Japanese, Russian and Ukrainian translations.
  5956. Thanks to all translators.
  5957. * po/fr.po
  5958. * po/ja.po
  5959. * po/ru.po
  5960. * po/uk.po
  5961. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5962. Renamed aria2c.pot to aria2.pot
  5963. * po/aria2.pot
  5964. * po/aria2c.pot: Removed.
  5965. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5966. Removed MetaEntry.h
  5967. * src/Makefile.am
  5968. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5969. Rename file by appending digits if a local file exists and its
  5970. file size is larger than that of remote file with --continue
  5971. option. The old implementation just throws exception in such case.
  5972. * src/RequestGroup.cc
  5973. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5974. Fixed the bug that download progress summary is not printed in the
  5975. interval specified by the option.
  5976. * src/ConsoleStatCalc.cc
  5977. * src/ConsoleStatCalc.h
  5978. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5979. Fixed compiler warning
  5980. * src/Cookie.cc
  5981. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5982. Fixed the cookie implementation based on RFC2965.
  5983. Now if a value in domain field is not started with dot, then
  5984. prepend dot. That means a cookie with domain=sf.net is sent to
  5985. wiki.sf.net.
  5986. * src/Cookie.cc
  5987. * test/CookieParserTest.cc
  5988. * test/CookieStorageTest.cc
  5989. * test/CookieTest.cc
  5990. * test/NsCookieParserTest.cc
  5991. * test/Sqlite3MozCookieParserTest.cc
  5992. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5993. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5994. is enabled and the server doesn't support keep-alive.
  5995. * src/AbstractCommand.cc
  5996. * src/DownloadCommand.cc
  5997. * src/HttpDownloadCommand.cc
  5998. * src/HttpDownloadCommand.h
  5999. * src/HttpResponseCommand.cc
  6000. * src/Request.cc
  6001. * src/Request.h
  6002. * test/RequestTest.cc
  6003. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6004. Removed Dictionary/List/Data and its related classes.
  6005. * src/BencodeVisitor.cc: Removed.
  6006. * src/BencodeVisitor.h: Removed.
  6007. * src/Data.cc: Removed.
  6008. * src/Data.h: Removed.
  6009. * src/Dictionary.cc: Removed.
  6010. * src/Dictionary.h: Removed.
  6011. * src/List.cc: Removed.
  6012. * src/List.h: Removed.
  6013. * src/Makefile.am
  6014. * src/MetaEntry.h: Removed.
  6015. * src/MetaEntryVisitor.h: Removed.
  6016. * src/MetaFileUtil.cc: Removed.
  6017. * src/MetaFileUtil.h: Removed.
  6018. * test/BencodeVisitorTest.cc: Removed.
  6019. * test/DataTest.cc: Removed.
  6020. * test/DictionaryTest.cc: Removed.
  6021. * test/ListTest.cc: Removed.
  6022. * test/Makefile.am
  6023. * test/MetaFileUtilTest.cc: Removed.
  6024. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6025. Removed include of MetaEntry.h
  6026. * test/DHTMessageTrackerEntryTest.cc
  6027. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6028. Use BDE instead of Dictionary/List/Data.
  6029. * src/AnnounceList.cc
  6030. * src/AnnounceList.h
  6031. * test/AnnounceListTest.cc
  6032. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6033. Use BDE instead of Dictionary/List/Data.
  6034. * src/DHTAbstractMessage.cc
  6035. * src/DHTAbstractMessage.h
  6036. * src/DHTAnnouncePeerMessage.cc
  6037. * src/DHTAnnouncePeerMessage.h
  6038. * src/DHTAnnouncePeerReplyMessage.cc
  6039. * src/DHTAnnouncePeerReplyMessage.h
  6040. * src/DHTFindNodeMessage.cc
  6041. * src/DHTFindNodeMessage.h
  6042. * src/DHTFindNodeReplyMessage.cc
  6043. * src/DHTFindNodeReplyMessage.h
  6044. * src/DHTGetPeersMessage.cc
  6045. * src/DHTGetPeersMessage.h
  6046. * src/DHTGetPeersReplyMessage.cc
  6047. * src/DHTGetPeersReplyMessage.h
  6048. * src/DHTMessageFactory.h
  6049. * src/DHTMessageFactoryImpl.cc
  6050. * src/DHTMessageFactoryImpl.h
  6051. * src/DHTMessageReceiver.cc
  6052. * src/DHTMessageTracker.cc
  6053. * src/DHTMessageTracker.h
  6054. * src/DHTPingMessage.cc
  6055. * src/DHTPingMessage.h
  6056. * src/DHTPingReplyMessage.cc
  6057. * src/DHTPingReplyMessage.h
  6058. * src/DHTQueryMessage.cc
  6059. * src/DHTQueryMessage.h
  6060. * src/DHTResponseMessage.cc
  6061. * src/DHTResponseMessage.h
  6062. * test/DHTAnnouncePeerMessageTest.cc
  6063. * test/DHTAnnouncePeerReplyMessageTest.cc
  6064. * test/DHTFindNodeMessageTest.cc
  6065. * test/DHTFindNodeReplyMessageTest.cc
  6066. * test/DHTGetPeersMessageTest.cc
  6067. * test/DHTGetPeersReplyMessageTest.cc
  6068. * test/DHTMessageFactoryImplTest.cc
  6069. * test/DHTMessageTrackerTest.cc
  6070. * test/DHTPingMessageTest.cc
  6071. * test/DHTPingReplyMessageTest.cc
  6072. * test/MockDHTMessageFactory.h
  6073. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6074. Added tests the case where length < 0 is specified.
  6075. * test/BencodeTest.cc
  6076. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6077. Fixed memory leak in decoderawstring()
  6078. * src/bencode.cc
  6079. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6080. Added missing #ifdef guard. Added uc() function for String and
  6081. removeKey() for Dict.
  6082. * src/bencode.cc
  6083. * src/bencode.h
  6084. * test/BencodeTest.cc
  6085. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6086. Use BDE instead of Dictionary/List/Data.
  6087. * src/HandshakeExtensionMessage.cc
  6088. * src/HandshakeExtensionMessage.h
  6089. * test/HandshakeExtensionMessageTest.cc
  6090. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6091. Added --max-overall-upload-limit option. This option limits the
  6092. overall upload speed. Stated in help message that the existing
  6093. --max-upload-limit option limits the upload speed per each
  6094. torrent. Man page is also updated.
  6095. * doc/aria2c.1.txt
  6096. * src/DefaultBtMessageDispatcher.cc
  6097. * src/DefaultBtMessageDispatcher.h
  6098. * src/OptionHandlerFactory.cc
  6099. * src/PeerInteractionCommand.cc
  6100. * src/option_processing.cc
  6101. * src/prefs.cc
  6102. * src/prefs.h
  6103. * src/usage_text.h
  6104. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6105. Use BDE instead of Dictionary/List/Data classes.
  6106. * src/CompactPeerListProcessor.cc
  6107. * src/CompactPeerListProcessor.h
  6108. * src/DefaultBtAnnounce.cc
  6109. * src/DefaultBtContext.cc
  6110. * src/DefaultBtContext.h
  6111. * src/DefaultPeerListProcessor.cc
  6112. * src/DefaultPeerListProcessor.h
  6113. * src/DelegatingPeerListProcessor.cc
  6114. * src/DelegatingPeerListProcessor.h
  6115. * src/PeerListProcessor.h
  6116. * src/UTPexExtensionMessage.cc
  6117. * src/Util.h
  6118. * src/message.h
  6119. * test/DefaultBtContextTest.cc
  6120. * test/DefaultPeerListProcessorTest.cc
  6121. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6122. Added bencode helper functions and BDE class.
  6123. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6124. * src/Makefile.am
  6125. * src/bencode.cc
  6126. * src/bencode.h
  6127. * test/BencodeTest.cc
  6128. * test/Makefile.am
  6129. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6130. Fixed the bug that bad URI is sent to the tracker when the announe
  6131. URI in torrent file includes query.
  6132. * src/DefaultBtAnnounce.cc
  6133. * test/DefaultBtAnnounceTest.cc
  6134. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6135. Added Option::blank().
  6136. Use !Option::blank(name) instead of Option::defined(name) for
  6137. the options that take filename.
  6138. * src/MultiUrlRequestInfo.cc
  6139. * src/Option.cc
  6140. * src/Option.h
  6141. * src/main.cc
  6142. * src/option_processing.cc
  6143. * test/OptionTest.cc
  6144. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6145. Documented the default value of --check-certificate option in man
  6146. page.
  6147. * doc/aria2c.1.txt
  6148. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6149. Enabled --check-certificate by default. Added compile
  6150. time(configure) option --with-ca-bundle to specify CA bundle.
  6151. Warn if --check-certificate=true and --ca-certificate is not
  6152. specified or loading CA certificate is failed.
  6153. * configure.ac
  6154. * src/MultiUrlRequestInfo.cc
  6155. * src/OptionHandlerFactory.cc
  6156. * src/message.h
  6157. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6158. Mentioned https tag in help option.
  6159. * doc/aria2c.1.txt
  6160. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6161. Added `https' tag to help option category. Added https tag to
  6162. --ca-certificate, --certificate, --check-certificate and
  6163. --private-key option.
  6164. * src/OptionHandlerFactory.cc
  6165. * src/help_tags.h
  6166. * src/option_processing.cc
  6167. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6168. Changed the package name from `aria2c' to `aria2' in order to fix
  6169. the packaging issue in Debian and Fedora. The name of the
  6170. executable is not changed.
  6171. * configure.ac
  6172. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6173. Fixed typos
  6174. * src/usage_text.h
  6175. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6176. Fixed typos and updated doc.
  6177. * README
  6178. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6179. Fixed typos
  6180. * doc/aria2c.1.txt
  6181. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6182. Fixed typos
  6183. * src/usage_text.h
  6184. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6185. Print a message when no files to download.
  6186. * src/download_helper.cc
  6187. * src/main.cc
  6188. * src/message.h
  6189. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6190. RFC3986 complied Percent-Encoding(urlencode).
  6191. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6192. ones.
  6193. * src/Request.cc
  6194. * src/Util.cc
  6195. * src/Util.h
  6196. * test/BtHandshakeMessageTest.cc
  6197. * test/DefaultBtAnnounceTest.cc
  6198. * test/DefaultBtContextTest.cc
  6199. * test/RequestTest.cc
  6200. * test/UtilTest.cc
  6201. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6202. Fixed the bug that prevents aria2 from downloading 0-length files
  6203. via HTTP/FTP.
  6204. * src/DefaultBtContext.cc
  6205. * src/DefaultBtContext.h
  6206. * src/DownloadContext.h
  6207. * src/FtpNegotiationCommand.cc
  6208. * src/HttpResponseCommand.cc
  6209. * src/HttpResponseCommand.h
  6210. * src/RequestGroup.cc
  6211. * src/SingleFileDownloadContext.cc
  6212. * src/SingleFileDownloadContext.h
  6213. * test/BtPostDownloadHandlerTest.cc
  6214. * test/MetalinkPostDownloadHandlerTest.cc
  6215. * test/MockBtContext.h
  6216. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6217. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6218. * src/option_processing.cc
  6219. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6220. Applied aria2-1.0.1-mingw.patch.
  6221. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6222. mingw.
  6223. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6224. * src/SocketCore.cc
  6225. * src/a2netcompat.h
  6226. * test/SocketCoreTest.cc
  6227. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6228. * Release 1.0.1
  6229. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6230. Updated Ukrainian and Norwegian Nynorsk translations.
  6231. Thanks to all translators.
  6232. * po/nn.po
  6233. * po/uk.po
  6234. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6235. Don't show download result when -S option is used.
  6236. * src/main.cc
  6237. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6238. Bump up version number to 1.0.1
  6239. * configure.ac
  6240. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6241. Closed files after the test cases in MultiDiskWriterTest::
  6242. testResetDiskWriterEntries(). This will fix the unit test error
  6243. in mingw32 build.
  6244. * test/MultiDiskWriterTest.cc
  6245. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6246. Use HEAD method to get file size from HTTP server for segmented
  6247. downloading.
  6248. The request to the BitTorrent Tracker always uses GET method because
  6249. the response of the tracker is small and it doesn't need segmented
  6250. download.
  6251. * src/FtpNegotiationCommand.cc
  6252. * src/HttpRequest.cc
  6253. * src/HttpResponseCommand.cc
  6254. * src/HttpSkipResponseCommand.cc
  6255. * src/RequestGroup.cc
  6256. * src/RequestGroup.h
  6257. * src/TrackerWatcherCommand.cc
  6258. * test/HttpRequestTest.cc
  6259. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6260. Fixed the bug that causes floating exception when -T option is used and
  6261. no URIs are given.
  6262. * src/download_helper.cc
  6263. * test/DownloadHelperTest.cc
  6264. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6265. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6266. errors in MinGW:
  6267. Closed file after saving server stats (RequestGroupMan.cc)
  6268. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6269. Ignored case & handled 2-digit years (strptime.c)
  6270. Added missing suseconds_t definition (a2time.h)
  6271. Fixed socket CLOSE() define (SocketCore.cc)
  6272. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6273. Changed utime() test values from x000 to x00000 as MinGW failed on
  6274. values less than timezone offset from Unix epoch
  6275. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6276. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6277. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6278. handle negative dates (CookieParserTest.cc)
  6279. * src/a2time.h
  6280. * src/FtpConnection.cc
  6281. * src/RequestGroupMan.cc
  6282. * src/SocketCore.cc
  6283. * src/strptime.c
  6284. * test/CookieParserTest.cc
  6285. * test/CopyDiskAdaptorTest.cc
  6286. * test/FileTest.cc
  6287. * test/FtpConnectionTest.cc
  6288. * test/MultiDiskAdaptorTest.cc
  6289. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6290. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6291. * doc/aria2c.1.txt
  6292. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6293. * Release 1.0.0
  6294. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6295. Added '~' to reserved characters.
  6296. * src/Util.cc
  6297. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6298. Do not urlencode Request::url in setUrl() because we want unmodified
  6299. URL using Request::getUrl()
  6300. * src/Request.cc
  6301. * src/Request.h
  6302. * test/RequestTest.cc
  6303. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6304. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6305. Thanks to all translators.
  6306. * po/bg.po
  6307. * po/fr.po
  6308. * po/ja.po
  6309. * po/ru.po
  6310. * po/uk.po
  6311. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6312. Bump up version number to 1.0.0
  6313. * configure.ac
  6314. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6315. Added nosqlite3 build to build_test.sh.
  6316. Renamed noxml as expat.
  6317. * build_test.sh
  6318. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6319. Updated INPUT FILE section.
  6320. * doc/aria2c.1.txt
  6321. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6322. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6323. on big endian systems because test .aria2 files are made for little
  6324. endian systems.
  6325. * test/DefaultBtProgressInfoFileTest.cc
  6326. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6327. Dropped ares support.
  6328. * README
  6329. * configure.ac
  6330. * m4/libares.m4: Removed.
  6331. * src/AsyncNameResolver.cc
  6332. * src/Makefile.am
  6333. * test/Makefile.am
  6334. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6335. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6336. Removed const qualifier from DiskWriter::size().
  6337. * src/AbstractDiskWriter.cc
  6338. * src/AbstractDiskWriter.h
  6339. * src/ByteArrayDiskWriter.cc
  6340. * src/ByteArrayDiskWriter.h
  6341. * src/DiskWriter.h
  6342. * test/ByteArrayDiskWriterTest.cc
  6343. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6344. Fixed the bug that causes segmentation fault/bus error during executing
  6345. choking algorithm while seeding. This is caused by improper
  6346. implementation of compare function which returns inconsistent results
  6347. depending on the timing of last unchoke.
  6348. * src/BtSeederStateChoke.cc
  6349. * src/BtSeederStateChoke.h
  6350. * src/DefaultPeerStorage.cc
  6351. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6352. Removed TODO
  6353. * TODO
  6354. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6355. Added a section that explains how to pass argument to options that
  6356. takes optional arguments with its short form.
  6357. * doc/aria2c.1.txt
  6358. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6359. Added -u for the short form of --max-upload-limit option.
  6360. * doc/aria2c.1.txt
  6361. * src/option_processing.cc
  6362. * src/usage_text.h
  6363. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6364. Added -V for the short form of --check-integrity option.
  6365. Now the argument of --check-integrity option is optional:
  6366. if it is omitted, it is evaluated as true.
  6367. * doc/aria2c.1.txt
  6368. * src/option_processing.cc
  6369. * src/usage_text.h
  6370. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6371. Made the default value of --ftp-pasv option set to true and it can take
  6372. true/false values.
  6373. * src/OptionHandlerFactory.cc
  6374. * src/option_processing.cc
  6375. * src/usage_text.h
  6376. * doc/aria2c.1.txt
  6377. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6378. Given custom random number generator to std::random_shuffle.
  6379. * src/AnnounceList.cc
  6380. * src/BtLeecherStateChoke.cc
  6381. * src/BtSeederStateChoke.cc
  6382. * src/DefaultBtRequestFactory.cc
  6383. * src/MetalinkEntry.cc
  6384. * src/RarestPieceSelector.cc
  6385. * src/SimpleRandomizer.cc
  6386. * src/SimpleRandomizer.h
  6387. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6388. Now the default value of --enable-direct-io is true.
  6389. * src/OptionHandlerFactory.cc
  6390. * doc/aria2c.1.txt
  6391. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6392. Erase peer before executing onReturningPeer and onErasingPeer
  6393. because choking algorithm called from onReturningPeer doesn't
  6394. like erasing peer in the active peer list.
  6395. * src/DefaultPeerStorage.cc
  6396. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6397. Instead of creating special filename in createDownloadResult() if
  6398. inMemoryDownload() is true, now it is done in getFilePath().
  6399. * src/RequestGroup.cc
  6400. * test/RequestGroupTest.cc
  6401. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6402. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6403. processed in memory. This is the fix for previous comment out.
  6404. * src/MemoryBufferPreDownloadHandler.cc
  6405. * src/RequestGroup.cc
  6406. * src/RequestGroup.h
  6407. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6408. Commented out the code which sets virtual directory path "[MEMORY]"
  6409. propagate directory to store to following RequestGroup.
  6410. * src/MemoryBufferPreDownloadHandler.cc
  6411. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6412. Bump up version number to 1.0.0b
  6413. * configure.ac
  6414. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6415. Added input_uris.txt to EXTRA_DIST
  6416. * test/Makefile.am
  6417. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6418. Removed PeerObject.h from Makefile.am
  6419. * src/Makefile.am
  6420. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6421. Avoid slow seeding
  6422. * src/PeerInteractionCommand.cc
  6423. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6424. Updated usage for -i option.
  6425. * src/usage_text.h (TEXT_INPUT_FILE)
  6426. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6427. Added INPUT FILE section to man page.
  6428. Escaped fake URLs.
  6429. * doc/aria2c.1.txt
  6430. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6431. Fixed wrong note position for -o option.
  6432. * doc/aria2c.1.txt
  6433. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6434. Fixed compile error without SSL/XML library.
  6435. * src/DefaultBtProgressInfoFile.cc
  6436. * src/DefaultBtProgressInfoFile.h
  6437. * src/FileMetalinkParserState.cc
  6438. * src/RequestGroup.h
  6439. * src/SocketCore.cc
  6440. * src/SocketCore.h
  6441. * src/VerificationMetalinkParserState.cc
  6442. * src/download_helper.h
  6443. * src/main.cc
  6444. * test/DefaultBtProgressInfoFileTest.cc
  6445. * test/DownloadHelperTest.cc
  6446. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6447. Rewritten URI handling functions. They are now provided as a testable
  6448. functions.
  6449. * src/Makefile.am
  6450. * src/RequestGroup.cc
  6451. * src/RequestGroup.h
  6452. * src/download_helper.cc
  6453. * src/download_helper.h
  6454. * src/main.cc
  6455. * test/DownloadHelperTest.cc
  6456. * test/Makefile.am
  6457. * test/input_uris.txt
  6458. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6459. Quickly terminate commands when ctrl-c is pressed.
  6460. * src/DownloadEngine.cc
  6461. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6462. Quickly terminate idle commands when download finished.
  6463. * src/AbstractCommand.cc
  6464. * src/DownloadCommand.cc
  6465. * src/DownloadEngine.cc
  6466. * src/DownloadEngine.h
  6467. * src/SleepCommand.cc
  6468. * src/SleepCommand.h
  6469. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6470. Added the ability to specify output filename and directory in input
  6471. file.
  6472. Additional parameters are added in the following line of URIs
  6473. with proceeding white space(s), 1 parameter in 1 line.
  6474. The parameter names are the same with the command-line option name
  6475. without proceeding "--". Not all the options are available here:
  6476. at the moment, 'dir' and 'out' options are avialable.
  6477. Please note that out option has no effect against Metalink or BitTorrent
  6478. downloads.
  6479. Example input file:
  6480. http://host/foo-1.1.tar.bz2
  6481. out=foo.tar.bz2
  6482. dir=/tmp/downloads
  6483. http://host/thundermonkey-2.0.tar.bz2
  6484. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6485. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6486. thundermonkey-2.0.tar.bz2 is saved as
  6487. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6488. * src/BtPostDownloadHandler.cc
  6489. * src/Metalink2RequestGroup.cc
  6490. * src/Metalink2RequestGroup.h
  6491. * src/MetalinkPostDownloadHandler.cc
  6492. * src/UriListParser.cc
  6493. * src/UriListParser.h
  6494. * src/main.cc
  6495. * test/Metalink2RequestGroupTest.cc
  6496. * test/UriListParserTest.cc
  6497. * test/filelist1.txt
  6498. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6499. Fixed error when SSL library is not found.
  6500. * configure.ac
  6501. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6502. Cross referenced among -s, -C and -j options.
  6503. Updated usage of -C and -s options.
  6504. * src/usage_text.h
  6505. * doc/aria2c.1.txt
  6506. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6507. Fixed bad cast in 32bit platforms.
  6508. * test/DefaultPieceStorageTest.cc
  6509. (DefaultPieceStorageTest::testGetCompletedLength)
  6510. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6511. Fixed unit test fails on 32bit platforms.
  6512. * test/CookieParserTest.cc
  6513. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6514. Show an average download speed in Download results.
  6515. * src/BtFileAllocationEntry.cc
  6516. * src/DefaultPieceStorage.cc
  6517. * src/DownloadContext.cc
  6518. * src/DownloadContext.h
  6519. * src/DownloadResult.h
  6520. * src/RequestGroup.cc
  6521. * src/RequestGroupMan.cc
  6522. * src/StreamFileAllocationEntry.cc
  6523. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6524. Fixed the bug that metalink file is not processed if Content-Type
  6525. field has a paramter.
  6526. * src/HttpResponse.cc
  6527. * src/HttpResponse.h
  6528. * test/HttpResponseTest.cc
  6529. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6530. Removed unused code.
  6531. * src/DefaultBtAnnounce.cc
  6532. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6533. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6534. the value larger than DefaultPieceStorage::getTotalLength() when
  6535. in flight pieces are involved.
  6536. * src/DefaultPieceStorage.cc
  6537. * test/DefaultPieceStorageTest.cc
  6538. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6539. Bump up version number to 1.0.0a.
  6540. * configure.ac
  6541. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6542. Updated configure.ac
  6543. * configure.ac
  6544. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6545. Added usege for proxy.
  6546. * doc/aria2c.1.txt
  6547. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6548. Added usage for --ca-certificate, --certificate, --private-key and
  6549. --check-certificate options.
  6550. * doc/aria2c.1.txt
  6551. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6552. Updated man page
  6553. * doc/aria2c.1.txt
  6554. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6555. Added --no-proxy option. It receives comman separated hostname or
  6556. domains to which proxy should not be used.
  6557. aria2 honors the environment variable no_proxy to override no-proxy
  6558. value in configuration file. The user can override the environment
  6559. variable no_proxy with --no-proxy command-line option.
  6560. * src/AbstractCommand.cc
  6561. * src/OptionHandlerFactory.cc
  6562. * src/option_processing.cc
  6563. * src/prefs.cc
  6564. * src/prefs.h
  6565. * src/usage_text.h
  6566. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6567. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6568. The CA certificates are specified in --ca-certificate option.
  6569. By default, the verification is disabled. Use --check-certificate
  6570. option to enable it.
  6571. * src/HttpRequestCommand.cc
  6572. * src/LibgnutlsTLSContext.cc
  6573. * src/LibgnutlsTLSContext.h
  6574. * src/LibsslTLSContext.cc
  6575. * src/LibsslTLSContext.h
  6576. * src/MultiUrlRequestInfo.cc
  6577. * src/OptionHandlerFactory.cc
  6578. * src/SocketCore.cc
  6579. * src/SocketCore.h
  6580. * src/a2functional.h
  6581. * src/message.h
  6582. * src/option_processing.cc
  6583. * src/prefs.cc
  6584. * src/prefs.h
  6585. * src/usage_text.h
  6586. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6587. Added client certificate authentication for SSL/TLS.
  6588. Currently a private key must be decrypted for use with aria2.
  6589. If a user accidentally gives encrypted file to aria2 then following
  6590. thing happens:
  6591. If encrypted private key is given to aria2, it behaves differently
  6592. depending on the ssl library it uses. If aria2 built with openssl then
  6593. openssl prompts the user for password. If aria2 build with gnutls then
  6594. aria2 exists with error at start up.
  6595. * src/DownloadEngineFactory.cc
  6596. * src/MultiUrlRequestInfo.cc
  6597. * src/OptionHandlerFactory.cc
  6598. * src/option_processing.cc
  6599. * src/prefs.cc
  6600. * src/prefs.h
  6601. * src/usage_text.h
  6602. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6603. Introduced TLSContext that holds TLS related data that can be shared
  6604. with multiple SSL connections.
  6605. * src/DownloadEngineFactory.cc
  6606. * src/LibgnutlsTLSContext.cc
  6607. * src/LibgnutlsTLSContext.h
  6608. * src/LibsslTLSContext.cc
  6609. * src/LibsslTLSContext.h
  6610. * src/Makefile.am
  6611. * src/SocketCore.cc
  6612. * src/SocketCore.h
  6613. * src/TLSContext.h
  6614. * src/message.h
  6615. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6616. Fixed the bug that the DiskWriter of the first FileEntry whose
  6617. `needsFileAllocation' property is false is not created
  6618. even if it shares a piece with next FileEntry which `requested' property
  6619. is true.
  6620. Fixed the bug that zero-length file is not created if pre file
  6621. allocation is not done.
  6622. * src/MultiDiskAdaptor.cc
  6623. * src/MultiDiskAdaptor.h
  6624. * test/MultiDiskAdaptorTest.cc
  6625. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6626. Added the ability to pool proxy connection.
  6627. The conneciton in FTP with proxy-method=GET is not pooled.
  6628. Proxy-Connection header will not be sent when sending CONNECT method.
  6629. * src/DownloadEngine.cc
  6630. * src/DownloadEngine.h
  6631. * src/FtpFinishDownloadCommand.cc
  6632. * src/FtpInitiateConnectionCommand.cc
  6633. * src/FtpNegotiationCommand.cc
  6634. * src/HttpDownloadCommand.cc
  6635. * src/HttpInitiateConnectionCommand.cc
  6636. * src/HttpRequest.cc
  6637. * src/HttpRequest.h
  6638. * src/HttpResponse.cc
  6639. * src/HttpSkipResponseCommand.cc
  6640. * test/HttpRequestTest.cc
  6641. * test/HttpResponseTest.cc
  6642. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Handle date before epoch.
  6644. To create *bad* Time object, call Time::null().
  6645. * src/CookieParser.cc
  6646. * src/FtpConnection.cc
  6647. * src/FtpConnection.h
  6648. * src/FtpNegotiationCommand.cc
  6649. * src/RequestGroup.cc
  6650. * src/TimeA2.cc
  6651. * src/TimeA2.h
  6652. * test/CookieParserTest.cc
  6653. * test/FtpConnectionTest.cc
  6654. * test/TimeTest.cc
  6655. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6656. Added support for following envrionment variables: http_proxy,
  6657. https_proxy, ftp_proxy and all_proxy.
  6658. Each variable is equivalent to the aria2 option whose name is the
  6659. variable name with '_' replaced with '-'.
  6660. They overrides options specified in aria2.conf file.
  6661. The envrionment variables can be overrode using command-line option.
  6662. * src/option_processing.cc
  6663. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. Renamed --http-proxy-method as --proxy-method.
  6665. * src/AbstractCommand.cc
  6666. * src/FtpInitiateConnectionCommand.cc
  6667. * src/HttpInitiateConnectionCommand.cc
  6668. * src/OptionHandlerFactory.cc
  6669. * src/option_processing.cc
  6670. * src/prefs.cc
  6671. * src/prefs.h
  6672. * src/usage_text.h
  6673. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6675. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6676. Above 3 options and --http-proxy option can handle proxy in URL format
  6677. like: http://user:passwd@host:port.
  6678. If a proxy requires user/password, they must be specified in a URL.
  6679. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6680. instead.
  6681. * src/AbstractCommand.cc
  6682. * src/AbstractCommand.h
  6683. * src/AbstractProxyRequestCommand.cc
  6684. * src/AbstractProxyRequestCommand.h
  6685. * src/AuthConfigFactory.cc
  6686. * src/AuthConfigFactory.h
  6687. * src/FtpFinishDownloadCommand.cc
  6688. * src/FtpInitiateConnectionCommand.cc
  6689. * src/FtpInitiateConnectionCommand.h
  6690. * src/FtpNegotiationCommand.cc
  6691. * src/FtpTunnelRequestCommand.cc
  6692. * src/FtpTunnelRequestCommand.h
  6693. * src/HttpDownloadCommand.cc
  6694. * src/HttpInitiateConnectionCommand.cc
  6695. * src/HttpInitiateConnectionCommand.h
  6696. * src/HttpProxyRequestCommand.cc
  6697. * src/HttpProxyRequestCommand.h
  6698. * src/HttpRequest.cc
  6699. * src/HttpRequest.h
  6700. * src/HttpRequestCommand.cc
  6701. * src/HttpRequestCommand.h
  6702. * src/HttpSkipResponseCommand.cc
  6703. * src/InitiateConnectionCommand.cc
  6704. * src/InitiateConnectionCommand.h
  6705. * src/OptionHandlerFactory.cc
  6706. * src/OptionHandlerImpl.h
  6707. * src/Request.cc
  6708. * src/option_processing.cc
  6709. * src/prefs.cc
  6710. * src/prefs.h
  6711. * src/usage_text.h
  6712. * test/AuthConfigFactoryTest.cc
  6713. * test/HttpRequestTest.cc
  6714. * test/OptionHandlerTest.cc
  6715. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6716. Execute choking algorithm when unchoked and interested peer is
  6717. disconected.
  6718. * src/DefaultPeerStorage.cc
  6719. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Added testcase for BtNotInterestedMessage from unchoked peer.
  6721. * test/BtNotInterestedMessageTest.cc
  6722. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6723. Execute choking algorithm when BtInterestedMessage arrives from
  6724. unchoked peer.
  6725. * src/BtInterestedMessage.cc
  6726. * src/BtInterestedMessage.h
  6727. * src/DefaultBtMessageFactory.cc
  6728. * test/BtInterestedMessageTest.cc
  6729. * test/MockPeerStorage.h
  6730. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6731. AuthConfigFactory is now part of DownloadEngine.
  6732. * src/AbstractProxyRequestCommand.cc
  6733. * src/AuthConfigFactory.h
  6734. * src/DownloadEngine.cc
  6735. * src/DownloadEngine.h
  6736. * src/FtpConnection.cc
  6737. * src/FtpConnection.h
  6738. * src/FtpNegotiationCommand.cc
  6739. * src/HttpConnection.cc
  6740. * src/HttpRequest.cc
  6741. * src/HttpRequest.h
  6742. * src/HttpRequestCommand.cc
  6743. * src/HttpResponse.cc
  6744. * src/HttpResponseCommand.cc
  6745. * src/HttpSkipResponseCommand.cc
  6746. * src/MultiUrlRequestInfo.cc
  6747. * src/main.cc
  6748. * test/FtpConnectionTest.cc
  6749. * test/HttpRequestTest.cc
  6750. * test/HttpResponseTest.cc
  6751. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Corrected catched exception type.
  6753. * src/ServerStatMan.cc
  6754. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6755. DNSCache is now part of DownloadEngine.
  6756. * src/DNSCache.h
  6757. * src/DownloadEngine.cc
  6758. * src/DownloadEngine.h
  6759. * src/InitiateConnectionCommand.cc
  6760. * src/MultiUrlRequestInfo.cc
  6761. * test/Makefile.am
  6762. * test/Makefile.in
  6763. * test/SimpleDNSCacheTest.cc
  6764. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6765. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6766. DownloadEngine.
  6767. * src/ActivePeerConnectionCommand.cc
  6768. * src/BtSetup.cc
  6769. * src/CUIDCounter.h
  6770. * src/DHTSetup.cc
  6771. * src/DownloadCommand.cc
  6772. * src/DownloadEngine.cc
  6773. * src/DownloadEngine.h
  6774. * src/DownloadEngineFactory.cc
  6775. * src/FileAllocationDispatcherCommand.cc
  6776. * src/InitiatorMSEHandshakeCommand.cc
  6777. * src/PeerInitiateConnectionCommand.cc
  6778. * src/PeerInteractionCommand.cc
  6779. * src/PeerListenCommand.cc
  6780. * src/RequestGroup.cc
  6781. * src/StreamFileAllocationEntry.cc
  6782. * src/TrackerWatcherCommand.cc
  6783. * src/main.cc
  6784. * test/RequestGroupManTest.cc
  6785. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6786. Implemented commented code in BtSeederStateChoke
  6787. * src/BtSeederStateChoke.cc
  6788. * src/Peer.cc
  6789. * src/Peer.h
  6790. * src/PeerInteractionCommand.cc
  6791. * src/PeerSessionResource.cc
  6792. * src/PeerSessionResource.h
  6793. * test/MockBtMessageDispatcher.h
  6794. * test/PeerSessionResourceTest.cc
  6795. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6796. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6797. its object.
  6798. * src/AbstractBtMessage.cc
  6799. * src/ActivePeerConnectionCommand.cc
  6800. * src/ActivePeerConnectionCommand.h
  6801. * src/BtContextAwareCommand.cc
  6802. * src/BtContextAwareCommand.h
  6803. * src/BtExtendedMessage.cc
  6804. * src/BtExtendedMessage.h
  6805. * src/BtInterestedMessage.cc
  6806. * src/BtInterestedMessage.h
  6807. * src/BtNotInterestedMessage.cc
  6808. * src/BtNotInterestedMessage.h
  6809. * src/BtRegistry.cc
  6810. * src/BtRegistry.h
  6811. * src/BtSeederStateChoke.cc
  6812. * src/BtSetup.cc
  6813. * src/DHTGetPeersCommand.cc
  6814. * src/DHTGetPeersCommand.h
  6815. * src/DHTPeerAnnounceEntry.cc
  6816. * src/DHTPeerAnnounceEntry.h
  6817. * src/DHTPeerAnnounceStorage.cc
  6818. * src/DHTPeerAnnounceStorage.h
  6819. * src/DHTPeerLookupTask.cc
  6820. * src/DHTPeerLookupTask.h
  6821. * src/DHTSetup.cc
  6822. * src/DHTSetup.h
  6823. * src/DHTTaskFactory.h
  6824. * src/DHTTaskFactoryImpl.cc
  6825. * src/DHTTaskFactoryImpl.h
  6826. * src/DefaultBtAnnounce.cc
  6827. * src/DefaultBtInteractive.cc
  6828. * src/DefaultBtInteractive.h
  6829. * src/DefaultBtMessageDispatcher.cc
  6830. * src/DefaultBtMessageDispatcher.h
  6831. * src/DefaultBtMessageFactory.cc
  6832. * src/DefaultBtMessageFactory.h
  6833. * src/DefaultBtMessageReceiver.cc
  6834. * src/DefaultBtProgressInfoFile.cc
  6835. * src/DefaultBtProgressInfoFile.h
  6836. * src/DefaultBtRequestFactory.cc
  6837. * src/DefaultBtRequestFactory.h
  6838. * src/DefaultExtensionMessageFactory.cc
  6839. * src/DefaultExtensionMessageFactory.h
  6840. * src/DefaultPeerStorage.cc
  6841. * src/DefaultPeerStorage.h
  6842. * src/DownloadEngine.cc
  6843. * src/DownloadEngine.h
  6844. * src/InitiatorMSEHandshakeCommand.cc
  6845. * src/InitiatorMSEHandshakeCommand.h
  6846. * src/MSEHandshake.cc
  6847. * src/MSEHandshake.h
  6848. * src/Makefile.am
  6849. * src/Makefile.in
  6850. * src/PeerChokeCommand.cc
  6851. * src/PeerChokeCommand.h
  6852. * src/PeerInitiateConnectionCommand.cc
  6853. * src/PeerInitiateConnectionCommand.h
  6854. * src/PeerInteractionCommand.cc
  6855. * src/PeerInteractionCommand.h
  6856. * src/PeerObject.h
  6857. * src/PeerReceiveHandshakeCommand.cc
  6858. * src/PeerReceiveHandshakeCommand.h
  6859. * src/ReceiverMSEHandshakeCommand.cc
  6860. * src/RequestGroup.cc
  6861. * src/RequestGroup.h
  6862. * src/RequestGroupMan.cc
  6863. * src/RequestGroupMan.h
  6864. * src/SeedCheckCommand.cc
  6865. * src/SeedCheckCommand.h
  6866. * src/ShareRatioSeedCriteria.h
  6867. * src/SimpleBtMessage.cc
  6868. * src/TrackerWatcherCommand.cc
  6869. * src/TrackerWatcherCommand.h
  6870. * src/UTPexExtensionMessage.cc
  6871. * src/UTPexExtensionMessage.h
  6872. * test/BtCancelMessageTest.cc
  6873. * test/BtChokeMessageTest.cc
  6874. * test/BtExtendedMessageTest.cc
  6875. * test/BtInterestedMessageTest.cc
  6876. * test/BtNotInterestedMessageTest.cc
  6877. * test/BtPieceMessageTest.cc
  6878. * test/BtPortMessageTest.cc
  6879. * test/BtRegistryTest.cc
  6880. * test/BtRejectMessageTest.cc
  6881. * test/BtRequestMessageTest.cc
  6882. * test/DHTPeerAnnounceEntryTest.cc
  6883. * test/DHTPeerAnnounceStorageTest.cc
  6884. * test/DefaultBtMessageDispatcherTest.cc
  6885. * test/DefaultBtMessageFactoryTest.cc
  6886. * test/DefaultBtProgressInfoFileTest.cc
  6887. * test/DefaultBtRequestFactoryTest.cc
  6888. * test/DefaultExtensionMessageFactoryTest.cc
  6889. * test/MSEHandshakeTest.cc
  6890. * test/MockDHTTaskFactory.h
  6891. * test/ShareRatioSeedCriteriaTest.cc
  6892. * test/UTPexExtensionMessageTest.cc
  6893. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Fixed compiler warning.
  6895. * test/UtilTest.cc
  6896. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Treat Cookie object as session cookie if expiry = 0 is given.
  6898. With this change, you can specify session scoped cookies in an external
  6899. file setting expiry value to 0.
  6900. * src/Cookie.cc
  6901. * src/Cookie.h
  6902. * test/CookieParserTest.cc
  6903. * test/CookieStorageTest.cc
  6904. * test/CookieTest.cc
  6905. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6906. Changed signature of DHTMessageFactory::createResponseMessage().
  6907. Removed unused validateIDMatch.
  6908. * src/DHTMessageFactory.h
  6909. * src/DHTMessageFactoryImpl.cc
  6910. * src/DHTMessageFactoryImpl.h
  6911. * src/DHTMessageTracker.cc
  6912. * test/DHTMessageFactoryImplTest.cc
  6913. * test/MockDHTMessageFactory.h
  6914. Dropped DHT message coming from same ID of localhost.
  6915. * src/DHTMessageReceiver.cc
  6916. Rejected adding node whose ID is the same as localhost's.
  6917. * src/DHTRoutingTable.cc
  6918. * test/BtPortMessageTest.cc
  6919. * test/DHTRoutingTableTest.cc
  6920. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6921. Pool connection when redirection occurs with Content-Length = 0.
  6922. * src/HttpSkipResponseCommand.cc
  6923. * src/HttpSkipResponseCommand.h
  6924. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Fixed the bug that causes time out when redirection occurs with
  6926. content-length 0.
  6927. * src/HttpResponseCommand.cc
  6928. * src/HttpSkipResponseCommand.cc
  6929. * src/HttpSkipResponseCommand.h
  6930. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6931. Now each status legends is shown only when it appears in Download
  6932. Result. If Download Result has no item, then status legend will not
  6933. be printed.
  6934. * src/RequestGroupMan.cc
  6935. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6936. Removed duplicate creation of OptionHandlers.
  6937. * src/option_processing.cc
  6938. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6939. Fixed the bug that causes segmentation fault when accessing files which
  6940. don't exist or are not included in --select-file option while
  6941. validating chunk checksum.
  6942. * src/MultiDiskAdaptor.cc
  6943. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Fixed compiler warning.
  6945. * test/UtilTest.cc
  6946. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6948. * src/IteratableChecksumValidator.cc
  6949. * src/IteratableChunkChecksumValidator.cc
  6950. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6951. * Release 0.16.2
  6952. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. Added Serbian translation. Updated Ukrainian translation.
  6954. Thanks to all translators.
  6955. * po/sr.po
  6956. * po/uk.po
  6957. * po/LINGUAS
  6958. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Bump up version number to 0.16.2
  6960. * configure.ac
  6961. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6962. Added length equality test to operator== to drop a piece message
  6963. whose length does not match to the requested one.
  6964. * src/RequestSlot.cc
  6965. * test/DefaultBtMessageDispatcherTest.cc
  6966. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6967. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6968. recieved.
  6969. In this fix, if a request larger than 16KiB length is received, aria2
  6970. disconnects the peer.
  6971. * src/BtConstants.h
  6972. * src/PeerMessageUtil.cc
  6973. * src/PeerMessageUtil.h
  6974. * test/BtRequestMessageTest.cc
  6975. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. * Release 0.16.1
  6977. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6978. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6979. * doc/aria2c.1.txt
  6980. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6981. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6982. Updated French, Simplified Chinese and Japanese translations.
  6983. Thanks to all translators.
  6984. en@quot and en@boldquot are also added.
  6985. * po/LINGUAS
  6986. * po/fr.po
  6987. * po/ja.po
  6988. * po/uk.po
  6989. * po/vi.po
  6990. * po/zh_CN.po
  6991. * po/zh_TW.po
  6992. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6993. Bump up version number to 0.16.1.
  6994. * configure.ac
  6995. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6996. Updated README.
  6997. * README
  6998. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6999. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7000. not to replace '--' with em dash character.
  7001. * doc/aria2c.1.txt
  7002. * doc/makeman
  7003. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7005. every SEC seconds.
  7006. * src/DownloadEngineFactory.cc
  7007. * src/OptionHandlerFactory.cc
  7008. * src/option_processing.cc
  7009. * src/usage_text.h
  7010. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7011. Fixed compile warning on linux-amd64
  7012. * src/FtpConnection.cc
  7013. * src/IteratableChunkChecksumValidator.cc
  7014. * src/MultiDiskAdaptor.cc
  7015. Fixed the bug that unit test fails on linux-amd64
  7016. * test/UtilTest.cc
  7017. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. Added --dht-file-path option to change the path to dht.dat, which is a
  7019. serialized DHT routing table.
  7020. * src/OptionHandlerFactory.cc
  7021. * src/option_processing.cc
  7022. * src/usage_text.h
  7023. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Fixed possible underflow.
  7025. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7026. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7027. Fixed the bug that last character in URI is not encoded.
  7028. * src/Request.cc
  7029. * test/RequestTest.cc
  7030. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Fixed the bug that referer header field contains fragment.
  7032. Now Request class removes fragment part of URI and encodes it
  7033. in Request::setUri() and setReferer().
  7034. * src/Request.h
  7035. * src/Request.cc
  7036. * test/RequestTest.cc
  7037. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7038. Added missing m4 macros.
  7039. * m4/cppunit.m4
  7040. * m4/libgcrypt.m4
  7041. * m4/libgnutls-extra.m4
  7042. * m4/libgnutls.m4
  7043. * m4/libxml2.m4
  7044. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7045. Fixed compile error with gcc-4.4(snapshot)
  7046. * src/File.cc
  7047. * src/FtpConnection.cc
  7048. * src/OptionHandlerImpl.h
  7049. * src/Util.cc
  7050. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Removed assert()
  7052. * src/SocketBuffer.cc (SocketBuffer::send)
  7053. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7054. Changed the type of _numNewConnection to unsigned int.
  7055. * src/ActivePeerConnectionCommand.cc
  7056. * src/ActivePeerConnectionCommand.h
  7057. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7058. * Release 0.16.0
  7059. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7060. Updated doc
  7061. * README
  7062. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7063. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7064. translations. Thanks to all translators.
  7065. * po/bg.po
  7066. * po/de.po
  7067. * po/fr.po
  7068. * po/ja.po
  7069. * po/zh_CN.po
  7070. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Bump up version number to 0.16.0.
  7072. * configure.ac
  7073. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7075. int32_t.
  7076. Changed the type of count to int32_t.
  7077. * src/Metalink2RequestGroup.cc
  7078. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. Added test for Time::elapsed(time_t).
  7080. * test/TimeTest.cc
  7081. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7082. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7083. Util::difftv() should be used instead.
  7084. * src/TimeA2.cc
  7085. * src/TimeA2.h
  7086. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7087. Made socket for dht connections non-blocking
  7088. * src/DHTAbstractMessage.cc
  7089. * src/DHTAbstractMessage.h
  7090. * src/DHTConnection.h
  7091. * src/DHTConnectionImpl.cc
  7092. * src/DHTConnectionImpl.h
  7093. * src/DHTMessage.h
  7094. * src/DHTMessageDispatcherImpl.cc
  7095. * src/DHTMessageDispatcherImpl.h
  7096. * src/DHTUnknownMessage.cc
  7097. * src/DHTUnknownMessage.h
  7098. * src/SocketCore.cc
  7099. * src/SocketCore.h
  7100. * test/MockDHTMessage.h
  7101. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Changed the type of offset to int.
  7103. * src/ParameterizedStringParser.cc
  7104. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Made getAsInt() return int32_t
  7106. * src/Option.h
  7107. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7108. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7109. build.
  7110. * configure.ac
  7111. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7112. Use sqlite3_open if sqlite3_open_v2 is not available.
  7113. * src/Sqlite3MozCookieParser.cc
  7114. * src/Sqlite3MozCookieParser.h
  7115. * m4/sqlite3.m4
  7116. * test/Sqlite3MozCookieParserTest.cc
  7117. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7118. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7119. * src/BtPieceMessage.cc
  7120. * src/DHTPeerAnnounceStorage.cc
  7121. * src/DefaultPieceStorage.cc
  7122. * src/DownloadCommand.cc
  7123. * src/DownloadEngine.cc
  7124. * src/FtpConnection.cc
  7125. * src/PeerConnection.cc
  7126. * src/PeerMessageUtil.cc
  7127. * src/RequestGroup.cc
  7128. * src/RequestGroupMan.cc
  7129. * src/SimpleBtMessage.cc
  7130. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7132. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7133. * src/AbstractDiskWriter.cc
  7134. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Don't set Request::supportsPersistentConnection() in HttpConnection
  7136. since this code is also used in AbstractProxyResponseCommand.
  7137. Moved those code to HttpResponse.
  7138. * src/HttpResponse.cc
  7139. * src/HttpResponse.h
  7140. * src/HttpConnection.cc
  7141. * src/HttpConnection.h
  7142. * src/HttpResponseCommand.cc
  7143. * test/HttpResponseTest.cc
  7144. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7146. The configuration is minimum: no torrent, no metalink, so there may be
  7147. other compile error on their code.
  7148. * src/a2netcompat.h
  7149. * src/File.cc
  7150. * src/File.h
  7151. * src/SocketCore.cc
  7152. * src/SocketCore.h
  7153. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Made a socket of incoming peer non-blocking.
  7155. * src/PeerListenCommand.cc
  7156. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7158. whole message data is not sent in one send() call.
  7159. * src/BtPieceMessage.cc
  7160. * src/BtPieceMessage.h
  7161. * src/PeerConnection.cc
  7162. * src/PeerConnection.h
  7163. * src/SimpleBtMessage.cc
  7164. * src/SimpleBtMessage.h
  7165. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7166. Fixed the bug that aria2 downloads faster than max-download-limit when
  7167. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7168. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7169. , instead of sum of them.
  7170. * src/ActivePeerConnectionCommand.cc
  7171. * src/DefaultBtInteractive.cc
  7172. * src/DownloadCommand.cc
  7173. * src/PeerInteractionCommand.cc
  7174. * src/PeerReceiveHandshakeCommand.cc
  7175. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Fixed the bug that HTTPS download fails.
  7177. * src/AbstractCommand.cc
  7178. * src/AbstractCommand.h
  7179. * src/DownloadCommand.cc
  7180. * src/FtpConnection.cc
  7181. * src/HttpConnection.cc
  7182. * src/HttpRequestCommand.cc
  7183. * src/HttpResponseCommand.cc
  7184. * src/HttpSkipResponseCommand.cc
  7185. * src/MSEHandshake.cc
  7186. * src/PeerConnection.cc
  7187. * src/SocketCore.cc
  7188. * src/SocketCore.h
  7189. Fixed the bug that aria2 doesn't download whole content body and cannot
  7190. reuse connection if chunked transfer encoding and gzip content encoding
  7191. are set.
  7192. * src/DownloadCommand.cc
  7193. * src/HttpSkipResponseCommand.cc
  7194. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. Updated man page.
  7196. * doc/aria2c.1.txt
  7197. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. When error occurred while aria2 was parsing an .aria2.conf file, print
  7199. the usage of the option that caused error.
  7200. * src/option_processing.cc
  7201. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Fixed compile error on OptionHandlerException
  7203. * src/Makefile.am
  7204. * src/OptionHandlerException.cc
  7205. * src/OptionHandlerException.h
  7206. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7207. Moved message of the error to OptionHandlerException.h
  7208. * src/NameMatchOptionHandler.h
  7209. * src/OptionHandlerException.h
  7210. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7211. When error occurs while aria2 is parsing an command-line option, print
  7212. the usage of the option.
  7213. * src/Makefile.am
  7214. * src/NameMatchOptionHandler.h
  7215. * src/OptionHandlerException.h
  7216. * src/option_processing.cc
  7217. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7218. Reverted previous change.
  7219. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7220. username is not in URI.
  7221. * src/HttpRequest.cc
  7222. * src/Request.cc
  7223. * test/HttpRequestTest.cc
  7224. * test/RequestTest.cc
  7225. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Now colon is required for username and password in FTP URL, like:
  7227. ftp://username:password@host.
  7228. If colon is not there, aria2 don't parse it as a username. For example,
  7229. aria2 don't retrieve username from ftp://username@host.
  7230. This fix was made in order to login FTP server via non-transparent ftp
  7231. proxy.
  7232. * src/Request.cc
  7233. * test/RequestTest.cc
  7234. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Use netrc for HTTP.
  7236. Now FTP user/password is sent in Authorization header when
  7237. --ftp-via-http-proxy=get is given.
  7238. * src/AuthConfigFactory.cc
  7239. * src/HttpRequest.cc
  7240. * src/HttpRequest.h
  7241. * src/NetrcAuthResolver.cc
  7242. * src/NetrcAuthResolver.h
  7243. * src/OptionHandlerFactory.cc
  7244. * src/option_processing.cc
  7245. * src/prefs.cc
  7246. * src/prefs.h
  7247. * test/AuthConfigFactoryTest.cc
  7248. * test/HttpRequestTest.cc
  7249. * test/NetrcAuthResolverTest.cc
  7250. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7251. Issue PWD command first and get working directory and use it as a prefix
  7252. for CWD command.
  7253. * src/DownloadEngine.cc
  7254. * src/DownloadEngine.h
  7255. * src/FtpConnection.cc
  7256. * src/FtpConnection.h
  7257. * src/FtpFinishDownloadCommand.cc
  7258. * src/FtpInitiateConnectionCommand.cc
  7259. * src/FtpNegotiationCommand.cc
  7260. * src/FtpNegotiationCommand.h
  7261. * test/FtpConnectionTest.cc
  7262. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7263. Removed default user/pass for FTP user/pass, since it should not have
  7264. precedence over netrc configuration by default.
  7265. * src/OptionHandlerFactory.cc
  7266. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. Added debug log for socket event.
  7268. * src/AbstractCommand.cc
  7269. * src/PeerAbstractCommand.cc
  7270. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. Log microseconds.
  7272. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7273. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7274. Replaced HelpItem.cc with OptionHandler.cc.
  7275. * po/POTFILES.in
  7276. Updated po files with 'make update-po'
  7277. * po/aria2c.pot
  7278. * po/*.po
  7279. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7280. Removed possible values from the text.
  7281. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7282. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7283. Removed unused preferences:
  7284. PREF_NO_PREALLOCATION
  7285. PREF_STDOUT_LOG
  7286. PREF_TRACKER_MAX_TRIES
  7287. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7288. PREF_MIN_SEGMENT_SIZE
  7289. * src/option_processing.cc
  7290. * src/prefs.cc
  7291. * src/prefs.h
  7292. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. Integrated HelpItem into OptionParser to ease the workload for adding
  7294. new options. Removed default value from usage text.
  7295. * src/HelpItem.cc: Removed.
  7296. * src/HelpItem.h: Removed.
  7297. * src/HelpItemFactory.cc: Removed.
  7298. * src/HelpItemFactory.h: Removed.
  7299. * src/Makefile.am
  7300. * src/Makefile.in
  7301. * src/NameMatchOptionHandler.h
  7302. * src/OptionHandler.cc
  7303. * src/OptionHandler.h
  7304. * src/OptionHandlerFactory.cc
  7305. * src/OptionHandlerImpl.h
  7306. * src/OptionParser.cc
  7307. * src/OptionParser.h
  7308. * src/TagContainer.cc: Removed.
  7309. * src/TagContainer.h: Removed.
  7310. * src/TaggedItem.cc: Removed.
  7311. * src/TaggedItem.h: Removed.
  7312. * src/main.cc
  7313. * src/option_processing.cc
  7314. * src/usage_text.h
  7315. * src/version_usage.cc
  7316. * test/HelpItemTest.cc: Removed.
  7317. * test/Makefile.am
  7318. * test/Makefile.in
  7319. * test/OptionHandlerTest.cc
  7320. * test/OptionParserTest.cc
  7321. * test/TagContainerTest.cc: Removed.
  7322. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. Moved `TransferStat stat = ...' to inside the `if' clause.
  7324. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7325. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. Fixed the bug that a block in a piece is requested when same block is
  7327. already requested to the same peer in end game mode.
  7328. * src/BtRequestFactory.h
  7329. * src/DefaultBtInteractive.cc
  7330. * src/DefaultBtRequestFactory.cc
  7331. * src/DefaultBtRequestFactory.h
  7332. * src/DefaultPieceStorage.cc
  7333. * src/DefaultPieceStorage.h
  7334. * src/PieceStorage.h
  7335. * src/UnknownLengthPieceStorage.cc
  7336. * src/UnknownLengthPieceStorage.h
  7337. * test/DefaultBtRequestFactoryTest.cc
  7338. * test/DefaultPieceStorageTest.cc
  7339. * test/MockBtRequestFactory.h
  7340. * test/MockPieceStorage.h
  7341. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Removed _uploadLength and _downloadLength from PeerSessionResource
  7343. and use PeerStat::_sessionUploadLength and
  7344. PeerStat::_sessionDownloadLength.
  7345. * src/PeerSessionResource.cc
  7346. * src/PeerSessionResource.h
  7347. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Fixed the bug that prefixLength of split bucket which doesn't include
  7349. local node ID is incremented.
  7350. * src/DHTBucket.cc
  7351. * src/DHTBucket.h
  7352. * test/DHTBucketTest.cc
  7353. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Added cookies.sqlite to EXTRA_DIST
  7355. * test/Makefile.am
  7356. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Added Turkish translation. Updated French, German, Russian and
  7358. Simplified Chinese translations. Thanks to all translators.
  7359. * po/LINGUAS
  7360. * po/de.po
  7361. * po/fr.po
  7362. * po/ru.po
  7363. * po/tr.po
  7364. * po/zh_CN.po
  7365. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Added deliminating text to the beginning of the log so that one can find
  7367. where the log starts easily.
  7368. * src/main.cc
  7369. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7370. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7371. to fix compile error when async DNS is not enabled by configuration.
  7372. * src/AbstractCommand.cc
  7373. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7374. If establishing conneciton to a server is failed, then mark error on
  7375. its ServerStat.
  7376. Added the cause of error to log when error event occurred.
  7377. Moved message string to message.h for translation.
  7378. * src/AbstractCommand.cc
  7379. * src/AbstractCommand.h
  7380. * src/FtpNegotiationCommand.cc
  7381. * src/HttpRequestCommand.cc
  7382. * src/PeerAbstractCommand.cc
  7383. * src/message.h
  7384. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Added the function to get error message from socket.
  7386. * src/SocketCore.cc
  7387. * src/SocketCore.h
  7388. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7389. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7390. * src/RequestGroupMan.cc
  7391. * src/RequestGroupMan.h
  7392. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. If error event is received in epoll, then abort download immediately.
  7394. * src/AbstractCommand.cc
  7395. * src/Command.cc
  7396. * src/Command.h
  7397. * src/DownloadEngine.cc
  7398. * src/PeerAbstractCommand.cc
  7399. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7400. Added usage message for --uri-selector, --server-stat-of,
  7401. --server-stat-in, --server-stat-timeout options.
  7402. * src/HelpItemFactory.cc
  7403. * src/usage_text.h
  7404. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. Added upper limit of FTP response buffer. The current implementation
  7406. uses 4096bytes as a limit.
  7407. * src/FtpConnection.cc
  7408. * src/FtpConnection.h
  7409. * test/FtpConnectionTest.cc
  7410. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Use non-blocking socket for TCP communication to avoid possible
  7412. blocking due to buffer full.
  7413. * src/AbstractProxyRequestCommand.cc
  7414. * src/FtpConnection.cc
  7415. * src/FtpConnection.h
  7416. * src/FtpNegotiationCommand.cc
  7417. * src/FtpNegotiationCommand.h
  7418. * src/HttpConnection.cc
  7419. * src/HttpConnection.h
  7420. * src/HttpRequestCommand.cc
  7421. * src/InitiatorMSEHandshakeCommand.cc
  7422. * src/InitiatorMSEHandshakeCommand.h
  7423. * src/MSEHandshake.cc
  7424. * src/MSEHandshake.h
  7425. * src/Makefile.am
  7426. * src/PeerConnection.cc
  7427. * src/PeerConnection.h
  7428. * src/PeerInteractionCommand.cc
  7429. * src/PeerListenCommand.cc
  7430. * src/ReceiverMSEHandshakeCommand.cc
  7431. * src/ReceiverMSEHandshakeCommand.h
  7432. * src/SocketBuffer.cc
  7433. * src/SocketBuffer.h
  7434. * src/SocketCore.cc
  7435. * src/SocketCore.h
  7436. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Call setStatusRealtime() in constructor.
  7438. * src/RealtimeCommand.cc
  7439. * src/RealtimeCommand.h
  7440. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. Call Download::setNoWait(true) to execute newly created command without
  7442. a pause.
  7443. * src/AbstractCommand.cc
  7444. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7446. found' error from HTTP/FTP server NUM times without getting single
  7447. bytes of data, then force the download to fail.
  7448. Basically aria2 tris all URIs available. So if long list of URIs are
  7449. specified in Metalink, then aria2 will take a long time to fail
  7450. eventually if all URIs are outdated. This option eases this situation
  7451. to limit the number of servers to try.
  7452. * src/FtpNegotiationCommand.cc
  7453. * src/HelpItemFactory.cc
  7454. * src/HttpResponseCommand.cc
  7455. * src/OptionHandlerFactory.cc
  7456. * src/PeerStat.h
  7457. * src/RequestGroup.cc
  7458. * src/RequestGroup.h
  7459. * src/SegmentMan.cc
  7460. * src/SegmentMan.h
  7461. * src/option_processing.cc
  7462. * src/prefs.cc
  7463. * src/prefs.h
  7464. * src/usage_text.h
  7465. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7466. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7467. response even if more than one response is in it.
  7468. * src/FtpConnection.cc
  7469. * src/FtpConnection.h
  7470. * test/FtpConnectionTest.cc
  7471. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. Merged from stable-0.15
  7473. * m4/libcares.m4
  7474. Use pkg-config
  7475. * m4/sqlite3.m4
  7476. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7477. Removed unnecessary if statement.
  7478. * src/DefaultPieceStorage.cc (initPieceStorage)
  7479. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7480. Added --connect-timeout option to specify connect timeout in seconds.
  7481. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7482. connecting to BitTorrent peer is not controlled by this option.
  7483. * src/AbstractProxyRequestCommand.cc
  7484. * src/FtpNegotiationCommand.cc
  7485. * src/HelpItemFactory.cc
  7486. * src/HttpRequestCommand.cc
  7487. * src/OptionHandlerFactory.cc
  7488. * src/option_processing.cc
  7489. * src/prefs.cc
  7490. * src/prefs.h
  7491. * src/usage_text.h
  7492. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. Added help message for -R option.
  7494. * src/HelpItemFactory.cc
  7495. * src/usage_text.h
  7496. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. Added the message that the time is in local time zone.
  7498. * src/RequestGroup.cc
  7499. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7500. Implemented the ability to get timestamp from remote FTP server using
  7501. MDTM command described in RFC3659.
  7502. * src/FtpConnection.cc
  7503. * src/FtpConnection.h
  7504. * src/FtpNegotiationCommand.cc
  7505. * src/FtpNegotiationCommand.h
  7506. * test/FtpConnectionTest.cc
  7507. * test/Makefile.am
  7508. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7509. Implemented the ability to get timestamp from remote HTTP server and
  7510. apply it to local file. To enable this feature, --remote-time option
  7511. is added. No usage text has been written yet.
  7512. If several servers returns difference timestamp, then aria2 uses latest
  7513. one.
  7514. * src/CopyDiskAdaptor.cc
  7515. * src/CopyDiskAdaptor.h
  7516. * src/DirectDiskAdaptor.cc
  7517. * src/DirectDiskAdaptor.h
  7518. * src/DiskAdaptor.h
  7519. * src/File.cc
  7520. * src/File.h
  7521. * src/HttpHeader.cc
  7522. * src/HttpHeader.h
  7523. * src/HttpResponse.cc
  7524. * src/HttpResponse.h
  7525. * src/HttpResponseCommand.cc
  7526. * src/HttpResponseCommand.h
  7527. * src/MultiDiskAdaptor.cc
  7528. * src/MultiDiskAdaptor.h
  7529. * src/OptionHandlerFactory.cc
  7530. * src/RequestGroup.cc
  7531. * src/RequestGroup.h
  7532. * src/RequestGroupMan.cc
  7533. * src/option_processing.cc
  7534. * src/prefs.cc
  7535. * src/prefs.h
  7536. * test/CopyDiskAdaptorTest.cc
  7537. * test/FileTest.cc
  7538. * test/Makefile.am
  7539. * test/Makefile.in
  7540. * test/MultiDiskAdaptorTest.cc
  7541. * test/TestUtil.cc
  7542. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Fixed the bug that DiskWriterEntry is not created when its
  7544. FileEntry.isRequested() is false and it doesn't share a piece with
  7545. other FileEntries that are requested. This bug causes segmentation fault
  7546. in the end.
  7547. * src/MultiDiskAdaptor.cc
  7548. * src/MultiDiskAdaptor.h
  7549. * src/MultiFileAllocationIterator.cc
  7550. * test/MultiDiskAdaptorTest.cc
  7551. * test/MultiFileAllocationIteratorTest.cc
  7552. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7553. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7554. called if the number of file entries are greater than max open files.
  7555. * src/AbstractSingleDiskAdaptor.cc
  7556. * src/AbstractSingleDiskAdaptor.h
  7557. * src/DiskAdaptor.h
  7558. * src/MultiDiskAdaptor.cc
  7559. * src/MultiDiskAdaptor.h
  7560. * test/MultiDiskAdaptorTest.cc
  7561. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7562. Added a constuctor that receives struct timeval.
  7563. Added operator<.
  7564. * src/TimeA2.cc
  7565. * src/TimeA2.h
  7566. * test/TimeTest.cc
  7567. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7568. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7569. * src/CookieParser.cc
  7570. * test/CookieParserTest.cc
  7571. * test/HttpResponseTest.cc
  7572. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7573. Implmented the functions to parse date.
  7574. * src/TimeA2.cc
  7575. * src/TimeA2.h
  7576. * test/TimeTest.cc
  7577. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. Added "Firefox3 Cookie" feature to FeatureConfig
  7579. * src/FeatureConfig.cc
  7580. * src/FeatureConfig.h
  7581. * test/FeatureConfigTest.cc
  7582. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7583. Bump up version number to 0.16.0b
  7584. * configure.ac
  7585. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7586. Use pkg-config if is is available.
  7587. * m4/openssl.m4
  7588. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7590. * src/BtAnnounce.h
  7591. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7592. If an error occurred with a URI, remove identical URI from remaining
  7593. URI list because it is likely that same error occurred in the end and it
  7594. is waste of time.
  7595. * src/AbstractCommand.cc
  7596. * src/RequestGroup.cc
  7597. * src/RequestGroup.h
  7598. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7599. Removed wrong comment.
  7600. * src/DefaultPeerStorage.cc
  7601. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7602. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7603. Added return value of getpid() to argument of srand() to achieve more
  7604. randomized value.
  7605. * src/SimpleRandomizer.cc
  7606. * src/SimpleRandomizer.h
  7607. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7608. Contact tracker frequently when the number of connections are 0 and
  7609. download is not finished yet.
  7610. * src/ActivePeerConnectionCommand.cc
  7611. * src/BtAnnounce.h
  7612. * src/DefaultBtAnnounce.cc
  7613. * src/DefaultBtAnnounce.h
  7614. * test/MockBtAnnounce.h
  7615. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7616. Moved threshold values to UTPexExtensionMessage.
  7617. * src/DefaultBtInteractive.cc
  7618. * src/Peer.cc
  7619. * src/Peer.h
  7620. * src/UTPexExtensionMessage.cc
  7621. * src/UTPexExtensionMessage.h
  7622. * test/UTPexExtensionMessageTest.cc
  7623. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Added _incoming member to Peer class and made it true if the peer
  7625. initiated connection. Don't add those peer to UTPex message.
  7626. If extended handshake is received, assign _incoming to false.
  7627. * src/DefaultBtInteractive.cc
  7628. * src/HandshakeExtensionMessage.cc
  7629. * src/Peer.cc
  7630. * src/Peer.h
  7631. * src/PeerListenCommand.cc
  7632. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7633. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7634. Encoding Decoder. Removed size threshold for turning off on the fly
  7635. inflation because resulting file may or may not be inflated depending
  7636. on the file size and I think it is not expected by users.
  7637. This change fixes segmentation fault when Metalink file contains gzipped
  7638. file and its filesize is provided.
  7639. * src/HttpResponseCommand.cc
  7640. * src/HttpResponseCommand.h
  7641. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7642. Made Cookie immutable.
  7643. * src/Cookie.cc
  7644. * src/Cookie.h
  7645. * src/CookieParser.cc
  7646. * src/CookieParser.h
  7647. * src/CookieStorage.cc
  7648. * test/CookieParserTest.cc
  7649. * test/CookieStorageTest.cc
  7650. * test/NsCookieParserTest.cc
  7651. * test/Sqlite3MozCookieParserTest.cc
  7652. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7653. Removed CookieBox, CookieBoxFactory.
  7654. * src/CookieBox.cc
  7655. * src/CookieBox.h
  7656. * src/CookieBoxFactory.cc
  7657. * src/CookieBoxFactory.h
  7658. * src/Makefile.am
  7659. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. Use CookieStorage class instead of CookieBox class.
  7661. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7662. * src/AbstractProxyRequestCommand.cc
  7663. * src/CookieStorage.cc
  7664. * src/DownloadEngine.cc
  7665. * src/DownloadEngine.h
  7666. * src/HttpConnection.cc
  7667. * src/HttpConnection.h
  7668. * src/HttpRequest.cc
  7669. * src/HttpRequest.h
  7670. * src/HttpRequestCommand.cc
  7671. * src/HttpResponse.cc
  7672. * src/HttpResponseCommand.cc
  7673. * src/HttpSkipResponseCommand.cc
  7674. * src/Makefile.am
  7675. * src/MultiUrlRequestInfo.cc
  7676. * src/Request.cc
  7677. * src/Request.h
  7678. * src/main.cc
  7679. * test/AllTest.cc
  7680. * test/CookieStorageTest.cc
  7681. * test/CookieTest.cc
  7682. * test/HttpRequestTest.cc
  7683. * test/HttpResponseTest.cc
  7684. * test/Makefile.am
  7685. * test/NsCookieParserTest.cc
  7686. * test/Sqlite3MozCookieParserTest.cc
  7687. * test/nscookietest.txt
  7688. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Updated
  7690. * test/Cookies.sqlite
  7691. * test/nscookietest.txt
  7692. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7693. Added tests for CookieStorage::load()
  7694. * test/CookieStorageTest.cc
  7695. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Added CookieStorage class which is based on RFC2109 and manages cookies
  7697. more strictly than CookieBox and CookieBoxFactory class.
  7698. * src/CookieStorage.cc
  7699. * src/CookieStorage.h
  7700. * src/Cookie.cc
  7701. * src/Cookie.h
  7702. * test/CookieStorageTest.cc
  7703. * test/CookieTest.cc
  7704. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7705. Fixed the bug that commands are created more than the number of pieces.
  7706. * src/RequestGroup.cc
  7707. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Fixed infinite loop bug in FTP when SIZE command failed.
  7709. * src/FtpNegotiationCommand.cc
  7710. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Removed DirectDiskAdaptorTest.h
  7712. * test/Makefile.am
  7713. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7714. Fixed chunk checksum validation cannot detect trailing garbage data.
  7715. BUG#2074141
  7716. * src/AbstractSingleDiskAdaptor.cc
  7717. * src/AbstractSingleDiskAdaptor.h
  7718. * src/CheckIntegrityEntry.cc
  7719. * src/CheckIntegrityEntry.h
  7720. * src/DiskAdaptor.h
  7721. * src/MultiDiskAdaptor.cc
  7722. * src/MultiDiskAdaptor.h
  7723. * src/RequestGroup.cc
  7724. * test/DirectDiskAdaptorTest.cc
  7725. * test/MultiDiskAdaptorTest.cc
  7726. * test/TestUtil.cc
  7727. * test/TestUtil.h
  7728. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7729. Bump up version number of dht.dat file to 3. In version 3 format, time
  7730. is stored in 64bit, network byte order.
  7731. New build can load old format(version 2) but it saves the file in new
  7732. format. It means once you used new build, your dht.dat becomes
  7733. incompatible with older build.
  7734. * src/DHTRoutingTableDeserializer.cc
  7735. * src/DHTRoutingTableSerializer.cc
  7736. * test/DHTRoutingTableSerializerTest.cc
  7737. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7738. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7739. * test/Makefile.am
  7740. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Bump up version number of .aria2 control file to 0001.
  7742. New aria2 can still load version 0000 file but it saves the file in
  7743. version 0001 format. It means that new aria2 can resume download
  7744. started by old aria2 but the opposite is not true.
  7745. * src/DefaultBtProgressInfoFile.cc
  7746. * src/DefaultBtProgressInfoFile.h
  7747. * test/DefaultBtProgressInfoFileTest.cc
  7748. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7749. Added ntoh64 and hton64 as inline functions.
  7750. * src/Util.cc
  7751. * test/UtilTest.cc
  7752. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7753. Added sqlite3 depenency and Firefox3 cookie support.
  7754. * README
  7755. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7756. State that firefox3 cookie is supported explicitly in the usage.
  7757. * src/usage_text.h
  7758. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7759. Externalized message.
  7760. * src/RequestGroupMan.cc
  7761. * src/message.h
  7762. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. Save temporary file first and rename to the destination on success.
  7764. Added test cases.
  7765. * src/RequestGroupMan.cc
  7766. * test/RequestGroupManTest.cc
  7767. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7768. Fixed the bug that the number of connected peer is exceeding the limit
  7769. (55 by default) in seeding mode.
  7770. Multiplied 0.8 to _maxUploadSpeedLimit.
  7771. * src/ActivePeerConnectionCommand.cc
  7772. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Clear table item.
  7774. * src/Dictionary.cc
  7775. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Fixed error handling of lseek.
  7777. * src/AbstractDiskWriter.cc
  7778. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7779. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7780. style cookie file.
  7781. * src/usage_text.h
  7782. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7784. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7785. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7786. * src/Util.cc
  7787. * src/Util.h
  7788. * src/CookieParser.cc
  7789. * test/UtilTest.cc
  7790. * test/CookieParserTest.cc
  7791. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7792. Separate the implementation to load old mozilla format of cookie to
  7793. NsCookieParser class.
  7794. * src/CookieBoxFactory.cc
  7795. * src/CookieBoxFactory.h
  7796. * src/NsCookieParser.cc
  7797. * src/NsCookieParser.h
  7798. * test/NsCookieParserTest.cc
  7799. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7800. Made parse() const
  7801. * src/Sqlite3MozCookieParser.cc
  7802. * src/Sqlite3MozCookieParser.h
  7803. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. Added firefox3 cookie support based on the patch submitted by
  7805. tizianomueller.
  7806. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7807. this functionality.
  7808. * configure.ac
  7809. * m4/sqlite3.m4
  7810. * src/CookieBoxFactory.cc
  7811. * src/CookieBoxFactory.h
  7812. * src/Makefile.am
  7813. * src/Makefile.in
  7814. * src/Sqlite3MozCookieParser.cc
  7815. * src/Sqlite3MozCookieParser.h
  7816. * src/main.cc
  7817. * test/CookieBoxFactoryTest.cc
  7818. * test/Makefile.am
  7819. * test/Makefile.in
  7820. * test/Sqlite3MozCookieParserTest.cc
  7821. * test/badcookies.sqlite
  7822. * test/cookies.sqlite
  7823. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7824. Added Danish and Greek translations.
  7825. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7826. Great thanks to all translators.
  7827. * po/LINGUAS
  7828. * po/el.po
  7829. * po/da.po
  7830. * po/es.po
  7831. * po/ca.po
  7832. * po/nn.po
  7833. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7834. Fixed man page: --follow-bittorrent should be --follow-torrent
  7835. * doc/aria2c.1.txt
  7836. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Fixed: numCommand is less than the value specified in -C option.
  7838. * src/RequestGroup.cc
  7839. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. Fixed occasional assertion failure in PieceSegment.
  7841. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7842. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7843. creation of duplicate segments and one of the segment was finished then
  7844. assertion failure was caused.
  7845. * src/SegmentMan.cc
  7846. * test/SegmentManTest.cc
  7847. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Added options to load/save the server's performance/status to a file
  7849. and the timeout to drop their data.
  7850. --server-stat-of=FILE specifies the file to which performance data
  7851. is saved.
  7852. --server-stat-if=FILE specifies the file to read previously saved
  7853. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7854. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7855. TIMEOUT is specified in seconds and the default value is 24hours.
  7856. * src/MultiUrlRequestInfo.cc
  7857. * src/OptionHandlerFactory.cc
  7858. * src/RequestGroupMan.cc
  7859. * src/RequestGroupMan.h
  7860. * src/ServerStatMan.cc
  7861. * src/ServerStatMan.h
  7862. * src/option_processing.cc
  7863. * src/prefs.cc
  7864. * src/prefs.h
  7865. * test/ServerStatManTest.cc
  7866. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7868. * src/ServerStatMan.cc
  7869. * src/ServerStatMan.h
  7870. * test/ServerStatManTest.cc
  7871. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Implemented ServerStatMan::load(...) function and its test case.
  7873. * src/ServerStat.cc
  7874. * src/ServerStat.h
  7875. * src/ServerStatMan.cc
  7876. * test/ServerStatManTest.cc
  7877. * test/ServerStatTest.cc
  7878. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7879. Use time_t instead of int32_t. Use int64_t where milli second is
  7880. expected.
  7881. * src/TimeA2.cc
  7882. * src/TimeA2.h
  7883. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7884. Implemented ServerStatMan::save(...) function and its test case.
  7885. * src/ServerStat.cc
  7886. * src/ServerStat.h
  7887. * src/ServerStatMan.cc
  7888. * src/ServerStatMan.h
  7889. * test/ServerStatManTest.cc
  7890. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. Now aria2 uses name attribute in Metalink as local filename in
  7892. BitTorrent downloads. BUG#2033999
  7893. * src/BtContext.h
  7894. * src/BtDependency.cc
  7895. * src/DefaultBtContext.cc
  7896. * src/DefaultBtContext.h
  7897. * src/SingleFileDownloadContext.cc
  7898. * src/SingleFileDownloadContext.h
  7899. * test/BtDependencyTest.cc
  7900. * test/DefaultBtContextTest.cc
  7901. * test/MockBtContext.h
  7902. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7903. Added AC_C_BIGENDIAN
  7904. * src/configure.ac
  7905. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7906. Limited numCommand less than or equal to the number of piece.
  7907. * src/RequestGroup.cc
  7908. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7909. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7910. directive.
  7911. * test/DefaultPieceStorageTest.cc
  7912. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7913. Fixed memory leak in test code
  7914. * test/AnnounceListTest.cc
  7915. * test/DefaultPeerListProcessorTest.cc
  7916. * test/DefaultPeerStorageTest.cc
  7917. * test/MetaFileUtilTest.cc
  7918. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7919. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7920. * src/DefaultPieceStorage.cc
  7921. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Initialized _directIOAllowed
  7923. * src/MultiDiskAdaptor.cc
  7924. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7925. Fixed memory leak
  7926. * src/GZipDecoder.cc
  7927. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. Fixed memory leak
  7929. * src/MetalinkParserStateMachine.cc
  7930. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Fixed memory leak
  7932. * src/Dictionary.cc
  7933. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. Fixed memory leak
  7935. * src/IteratableChunkChecksumValidator.h
  7936. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Fixed unmatched malloc/free.
  7938. * src/IteratableChunkChecksumValidator.cc
  7939. * src/IteratableChecksumValidator.cc
  7940. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Removed max chunk size check. This change fixes BUG#2040169
  7942. * src/ChunkedDecoder.cc
  7943. * src/ChunkedDecoder.h
  7944. * test/ChunkedDecoderTest.cc
  7945. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7946. Implemented download speed based URI selection algorithm.
  7947. Introduced new option --uri-selector.
  7948. If --uri-selector=feedback is given, aria2 uses download speed observed
  7949. in the previous downloads and chooses fastest server in the URI list.
  7950. Currently at most 10 URIs are considered to introduce randomeness for
  7951. finding better servers. The speed is average download speed in the
  7952. downloads.
  7953. On the other hand, if --uri-selector=inorder is given, which is default,
  7954. URI is tried in order in URI list.
  7955. The usage text for the new option has not been written yet.
  7956. * src/AbstractCommand.cc
  7957. * src/DownloadCommand.cc
  7958. * src/DownloadEngine.cc
  7959. * src/DownloadEngineFactory.cc
  7960. * src/InOrderURISelector.cc
  7961. * src/InOrderURISelector.h
  7962. * src/OptionHandlerFactory.cc
  7963. * src/PeerStat.h
  7964. * src/RequestGroup.cc
  7965. * src/RequestGroup.h
  7966. * src/RequestGroupMan.cc
  7967. * src/RequestGroupMan.h
  7968. * src/SegmentMan.cc
  7969. * src/SegmentMan.h
  7970. * src/ServerStat.cc
  7971. * src/ServerStat.h
  7972. * src/ServerStatMan.cc
  7973. * src/ServerStatMan.h
  7974. * src/ServerStatURISelector.cc
  7975. * src/ServerStatURISelector.h
  7976. * src/URISelector.h
  7977. * src/option_processing.cc
  7978. * src/prefs.cc
  7979. * src/prefs.h
  7980. * test/InOrderURISelectorTest.cc
  7981. * test/RequestGroupManTest.cc
  7982. * test/ServerStatManTest.cc
  7983. * test/ServerStatURISelectorTest.cc
  7984. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7985. * Release 0.15.1+2
  7986. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Bump up version number to 0.15.1+2
  7988. * configure.ac
  7989. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7991. * m4/aria2_arg.m4
  7992. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. * Release 0.15.1+1
  7994. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7995. Bump up version number to 0.15.1+1
  7996. * configure.ac
  7997. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7998. Fixed the bug that causes segmentaion fault when resuming download
  7999. using metalink without size tag. Reproducible only using HTTP URI.
  8000. * src/HttpResponseCommand.cc
  8001. * src/FtpNegotiationCommand.cc
  8002. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8003. * Release 0.15.1
  8004. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8005. Updated Bulgarian and French translations, thanks to all translators.
  8006. * po/bg.po
  8007. * po/fr.po
  8008. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8009. Bump up version number to 0.15.1
  8010. * configure.ac
  8011. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8012. Avoid repeated call of gettimeofday() when calculating speed.
  8013. * src/SpeedCalc.cc
  8014. * src/SpeedCalc.h
  8015. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Removed writable check when socket's send buffer is full in BitTorrent
  8017. downloads to lower CPU usage.
  8018. * src/PeerInteractionCommand.cc
  8019. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Fixed broken gzip inflation.
  8021. Turn off segmented downloading if gzip content is smaller than or equal
  8022. to 1MiB and inflate the data on the fly, because HTTP response header
  8023. doesn't contain the length of inflated file we can't determin where
  8024. the chunk of data should be written.
  8025. On the other hand, if gzip content is larger than 1MB, then turn off
  8026. on the fly inflation, because some servers returns "content-type: gzip"
  8027. for *.tgz, *.gz files.
  8028. * src/DownloadCommand.cc
  8029. * src/HttpResponseCommand.cc
  8030. * src/HttpResponseCommand.h
  8031. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8032. Applied tizianomueller's patch to fix compile error.
  8033. * test/BitfieldManTest.cc
  8034. * test/BtRequestMessageTest.cc
  8035. * test/DefaultBtContextTest.cc
  8036. * test/DefaultDiskWriterTest.cc
  8037. * test/DefaultPieceStorageTest.cc
  8038. * test/HttpHeaderProcessorTest.cc
  8039. * test/HttpResponseTest.cc
  8040. * test/Metalink2RequestGroupTest.cc
  8041. * test/MetalinkParserControllerTest.cc
  8042. * test/MetalinkProcessorTest.cc
  8043. * test/PeerSessionResourceTest.cc
  8044. * test/UtilTest.cc
  8045. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8046. * Release 0.15.0
  8047. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8048. Reordered src files in POTFILES.in so that usage text appears first.
  8049. * po/POTFILES.in
  8050. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. Bump up version number to 0.15.0
  8052. * configure.ac
  8053. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8054. Added Bulgarian translation.
  8055. Updated Catalan, Spanish, French and Japanese translations.
  8056. Thanks to all translators.
  8057. * po/LINGUAS
  8058. * po/bg.po
  8059. * po/ca.po
  8060. * po/es.po
  8061. * po/fr.po
  8062. * po/ja.po
  8063. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Updated feature list. Added libz for dependency section.
  8065. Added a description about unit testing using CppUnit.
  8066. * README
  8067. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8068. Added a test for libz. Quoted where it is necessary.
  8069. * build_test.sh
  8070. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8071. Added GZip to `Enabled Features' list.
  8072. * src/FeatureConfig.cc
  8073. * src/FeatureConfig.h
  8074. * test/FeatureConfigTest.cc
  8075. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8077. the transfer has not yet started.
  8078. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8079. * src/SegmentMan.cc
  8080. * src/SegmentMan.h
  8081. * test/SegmentManTest.cc
  8082. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. Cache last calculated average download/upload speed.
  8084. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8085. cached value.
  8086. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8087. * src/PeerStat.h
  8088. * src/SpeedCalc.cc
  8089. * src/SpeedCalc.h
  8090. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. Call parseUrl directly.
  8092. * src/Request.cc (resetUrl)
  8093. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. Supported absolute/relative path in Location header field.
  8095. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8096. * src/HttpHeader.cc
  8097. * src/HttpHeader.h
  8098. * src/HttpResponse.cc
  8099. * src/HttpSkipResponseCommand.cc
  8100. * src/Request.cc
  8101. * test/HttpHeaderTest.cc
  8102. * test/HttpResponseTest.cc
  8103. * test/RequestTest.cc
  8104. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. Changed help text for --load-cookie option.
  8106. * doc/aria2c.1.txt
  8107. * src/usage_text.h
  8108. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8109. Regenerated test/Makefile.in to remove stale ChangeLog.
  8110. * test/Makefile.in
  8111. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. Updated po files.
  8113. * po/aria2c.pot
  8114. * po/*.po
  8115. * po/*.gmo
  8116. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. Bump up version number to 0.15.0b
  8118. * configure.ac
  8119. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. Externalize messages.
  8121. * src/RequestGroupMan.cc
  8122. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8123. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8124. Use File::exists() instead of File::isFile() to allow non-regular file
  8125. such as block special files.
  8126. * src/AbstractDiskWriter.cc
  8127. * src/MultiDiskWriter.cc
  8128. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8130. * src/gai_strerror.h
  8131. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8132. Fixed compile error. Thanks gknauf for the patch.
  8133. * src/asctime_r.c
  8134. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8135. Included asctime_r.h from a2time.h.
  8136. * src/a2time.h
  8137. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8138. Added a message "aria2 doesn't verify signature" to log message when
  8139. signature file is saved.
  8140. * src/RequestGroupMan.cc
  8141. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. Added the ability to save signature when download is completed if
  8143. signature is available. The filename of signature file is the path to
  8144. download file followed by ".sig". If it already exists, then signature
  8145. will not be saved.
  8146. * src/RequestGroupMan.cc
  8147. * src/Signature.cc
  8148. * test/SignatureTest.cc
  8149. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Updated the descriptions for --bt-seed-unverified.
  8151. * doc/aria2c.1
  8152. * doc/aria2c.1.html
  8153. * doc/aria2c.1.txt
  8154. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8155. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8156. that this is not going to verify files using piece hashes.
  8157. * src/HelpItemFactory.cc
  8158. * src/OptionHandlerFactory.cc
  8159. * src/RequestGroup.cc
  8160. * src/option_processing.cc
  8161. * src/prefs.cc
  8162. * src/prefs.h
  8163. * src/usage_text.h
  8164. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. Added the ability to retrieve signature from Metalink file.
  8166. A retrieved signature is stored in Signature class and it is held by
  8167. DownloadContext class. Note that aria2 doesn't verify signature.
  8168. * src/DownloadContext.cc
  8169. * src/DownloadContext.h
  8170. * src/Makefile.am
  8171. * src/Makefile.in
  8172. * src/Metalink2RequestGroup.cc
  8173. * src/MetalinkEntry.cc
  8174. * src/MetalinkEntry.h
  8175. * src/MetalinkParserController.cc
  8176. * src/MetalinkParserController.h
  8177. * src/MetalinkParserStateMachine.cc
  8178. * src/MetalinkParserStateMachine.h
  8179. * src/Signature.cc
  8180. * src/Signature.h
  8181. * src/SignatureMetalinkParserState.cc
  8182. * src/SignatureMetalinkParserState.h
  8183. * src/VerificationMetalinkParserState.cc
  8184. * src/VerificationMetalinkParserState.h
  8185. * test/Metalink2RequestGroupTest.cc
  8186. * test/MetalinkParserControllerTest.cc
  8187. * test/MetalinkProcessorTest.cc
  8188. * test/test.xml
  8189. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Close DiskAdaptor after renaming file.
  8191. * src/RequestGroup.cc
  8192. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8193. Corrected indentation
  8194. * src/DefaultBtProgressInfoFile.cc
  8195. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. Moved the calls of std::ios::exceptions() inside of try-catch block
  8197. because if an error occurred in constructor of std::fstream, then
  8198. exception is thrown immediately when std::ios::exceptions() is called
  8199. which results unhandled exception and aria2c aborts.
  8200. * src/DefaultBtProgressInfoFile.cc
  8201. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Added the test for the previous change in DefaultBtContext.cc
  8203. * test/DefaultBtContextTest.cc
  8204. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8205. Fixed the bug that causes infinite loop when the number of pieces are
  8206. fewer than allowed fast set size which is 10 by default.
  8207. * src/DefaultBtContext.cc
  8208. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8209. Updated the descriptions for -j, -s. Added --bt-seed.
  8210. * doc/aria2c.1
  8211. * doc/aria2c.1.html
  8212. * doc/aria2c.1.txt
  8213. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8214. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8215. aria2 seeds previously downloaded files without validating piece hashs.
  8216. * src/HelpItemFactory.cc
  8217. * src/OptionHandlerFactory.cc
  8218. * src/RequestGroup.cc
  8219. * src/option_processing.cc
  8220. * src/prefs.cc
  8221. * src/prefs.h
  8222. * src/usage_text.h
  8223. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. Updated DESCRIPTION of man page.
  8225. * doc/aria2c.1
  8226. * doc/aria2c.1.html
  8227. * doc/aria2c.1.txt
  8228. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8230. Don't define `struct addrinfo' when __sun is defined.
  8231. * src/getaddrinfo.h
  8232. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8234. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8235. second argument is of type `struct _stati64'. Otherwise it is defined as
  8236. `struct stat'.
  8237. * src/AbstractDiskWriter.cc
  8238. * src/File.cc
  8239. * src/File.h
  8240. * src/a2io.h
  8241. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Fixed the compile error in hurd-i386
  8243. See the original bug report:
  8244. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8245. * src/a2io.h
  8246. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8247. Code cleanup.
  8248. * src/PeerAbstractCommand.cc
  8249. * src/PeerAbstractCommand.h
  8250. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Removed TransferEncoding.
  8252. * src/DownloadCommand.cc
  8253. * src/DownloadCommand.h
  8254. * src/HttpResponseCommand.cc
  8255. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Updated po files.
  8257. * po/aria2c.pot
  8258. * po/*.po
  8259. * po/*.gmo
  8260. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8261. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8262. * src/A2STR.cc
  8263. * src/A2STR.h
  8264. * src/ChunkedDecoder.cc
  8265. * src/ChunkedDecoder.h
  8266. * src/ChunkedEncoding.cc: Removed
  8267. * src/ChunkedEncoding.h: Removed
  8268. * src/DownloadCommand.cc
  8269. * src/DownloadCommand.h
  8270. * src/HttpDownloadCommand.cc
  8271. * src/HttpResponse.cc
  8272. * src/HttpResponse.h
  8273. * src/HttpResponseCommand.cc
  8274. * src/HttpSkipResponseCommand.cc
  8275. * src/HttpSkipResponseCommand.h
  8276. * src/Makefile.am
  8277. * src/TransferEncoding.h: Removed
  8278. * test/ChunkedDecoderTest.cc
  8279. * test/ChunkedEncodingTest.cc: Removed
  8280. * test/HttpResponseTest.cc
  8281. * test/Makefile.am
  8282. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Use append instead of insert.
  8284. * src/GZipDecoder.cc
  8285. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Updated doc
  8287. * src/Decoder.h
  8288. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Updated usage text for -s option.
  8290. * src/usage_text.h
  8291. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8293. * src/Request.cc
  8294. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8295. Cleaned up configure.ac.
  8296. * configure.ac
  8297. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8299. AC_ARG_ENABLE.
  8300. * configure.ac
  8301. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8303. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8304. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8305. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8306. fly and writes decoded data to a local disk.
  8307. * README
  8308. * README.html
  8309. * configure.ac
  8310. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8311. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8312. * m4/libz.m4
  8313. * src/Decoder.h
  8314. * src/DownloadCommand.cc
  8315. * src/DownloadCommand.h
  8316. * src/Exception.h
  8317. * src/GZipDecoder.cc
  8318. * src/GZipDecoder.h
  8319. * src/HttpHeader.cc
  8320. * src/HttpHeader.h
  8321. * src/HttpRequest.cc
  8322. * src/HttpRequest.h
  8323. * src/HttpResponse.cc
  8324. * src/HttpResponse.h
  8325. * src/HttpResponseCommand.cc
  8326. * src/Makefile.am
  8327. * test/GZipDecoderTest.cc
  8328. * test/HttpRequestTest.cc
  8329. * test/HttpResponseTest.cc
  8330. * test/Makefile.am
  8331. * test/Makefile.in
  8332. * test/gzip_decode_test.gz
  8333. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Clarified usage of -j option.
  8335. * src/usage_text.h
  8336. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Disabled getting size from the response of RETR.
  8338. If SIZE command failed, then disable resuming and segmented downloading.
  8339. * src/FtpConnection.cc
  8340. * src/FtpConnection.h
  8341. * src/FtpNegotiationCommand.cc
  8342. * src/FtpNegotiationCommand.h
  8343. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Use digits to find first byte of file size, which makes the intention
  8345. of the code clearer.
  8346. * src/FtpConnection.cc
  8347. Don't call validateTotalLength() when size is 0.
  8348. * src/FtpNegotiationCommand.cc
  8349. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8350. Updated po files.
  8351. * po/aria2c.pot
  8352. * po/*.gmo
  8353. * po/*.po
  8354. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8355. Clarified usage text for --split option.
  8356. * src/usage_text.h
  8357. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8358. Bump up version number to 0.15.0dev. "dev" means "development"
  8359. version, which means I started the development of the next release!
  8360. * src/configure.ac
  8361. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. If FTP server returns negative response with REST raw command and
  8363. requested range is not 0, throw exception. If requested range is 0,
  8364. continue download a file from 0 byte.
  8365. * src/FtpNegotiationCommand.cc
  8366. * src/FtpNegotiationCommand.h
  8367. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Supported FTP server which don't recognize SIZE raw command.
  8369. If SIZE raw command is failed, aria2 will try to get file size
  8370. from the response of RETR raw command. If both attempts are failed,
  8371. then resuming and segmented downloading are disabled.
  8372. * src/FtpConnection.cc
  8373. * src/FtpConnection.h
  8374. * src/FtpNegotiationCommand.cc
  8375. * src/FtpNegotiationCommand.h
  8376. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. * Release 0.14.0+1
  8378. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Bump up version number to 0.14.0+1
  8380. * src/configure.ac
  8381. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8382. Fixed the code that refers static member variable from non-static
  8383. context.
  8384. * src/DefaultPeerStorage.cc
  8385. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. * Release 0.14.0
  8387. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Added build test script
  8389. * build_test.sh
  8390. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8391. Updated ja.po
  8392. * src/ja.po
  8393. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8394. Bump up version number to 0.14.0
  8395. * src/configure.ac
  8396. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8397. Updated ja.po and fr.po. Great thanks for french translators and
  8398. Sebastien WILLEMIJNS.
  8399. * po/fr.po
  8400. * po/ja.po
  8401. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Added configure option to enable/disable epoll support.
  8403. * configure.ac
  8404. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8405. Updated man page.
  8406. * doc/aria2c.1.txt
  8407. * doc/aria2c.1
  8408. * doc/aria2c.1.html
  8409. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8410. Added missing default value '5' to the usage of --split option.
  8411. * src/HelpItemFactory.cc
  8412. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. Filled up pieces based on the number of missing blocks, rather than
  8414. simplay the number of piece * block length.
  8415. * src/BtRequestFactory.h
  8416. * src/DefaultBtInteractive.cc
  8417. * src/DefaultBtInteractive.h
  8418. * src/DefaultBtRequestFactory.cc
  8419. * src/DefaultBtRequestFactory.h
  8420. * src/Piece.cc
  8421. * src/Piece.h
  8422. * test/BitfieldManTest.cc
  8423. * test/DefaultBtRequestFactoryTest.cc
  8424. * test/MockBtRequestFactory.h
  8425. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8426. Made _epEvents a member variable.
  8427. * src/DownloadEngine.cc
  8428. * src/DownloadEngine.h
  8429. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. Cancel download if http redirect is bounded more than 20 times.
  8431. * src/AbstractCommand.cc
  8432. * src/HttpSkipResponseCommand.cc
  8433. * src/Request.cc
  8434. * src/Request.h
  8435. * test/RequestTest.cc
  8436. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Fixed unhandled exception(removed keyword `new').
  8438. * src/SocketCore.cc (initEPOLL)
  8439. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8440. Removed visit(const MetaEntry*)
  8441. * src/MetaEntryVisitor.h:
  8442. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8443. and made them virtual.
  8444. * src/BencodeVisitor.h
  8445. * src/BencodeVisitor.cc
  8446. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. Updated po files.
  8448. * po/aria2c.pot
  8449. * po/*.po
  8450. * po/*.gmo
  8451. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8453. the number of socket to watch out.
  8454. * src/PeerInteractionCommand.cc
  8455. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8456. When there is not enough space in disk when writing a chunk of data,
  8457. aria2 now prints the message to the console to warn user and aborts
  8458. its download. Not all downloads are canceled because some downloads
  8459. may use another disk or partition. BUG#1640332
  8460. * src/AbstractDiskWriter.cc
  8461. * src/PeerAbstractCommand.cc
  8462. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8463. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8464. setHaltRequested(true) to cancel download.
  8465. * src/PeerInteractionCommand.h
  8466. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8467. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8468. socket from int to sock_t as sockets are unsigned in Windows.
  8469. For AsyncNameResolver, DownloadEngine, I did additional modification
  8470. for the portion of the code changed according to epoll support.
  8471. I defined sock_t in a2netcompat.h to use sock_t without including
  8472. SocketCore.h.
  8473. * src/AsyncNameResolver.cc
  8474. * src/AsyncNameResolver.h
  8475. * src/DownloadEngine.cc
  8476. * src/DownloadEngine.h
  8477. * src/SocketCore.cc
  8478. * src/SocketCore.h
  8479. * src/a2netcompat.h
  8480. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8481. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8482. changes in the patch were applied.
  8483. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8484. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8485. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8486. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8488. a2io.h and common.h were modified.
  8489. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8490. MinGW.
  8491. * src/common.h: Changed off_t to 64 bit in MinGW.
  8492. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8493. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8494. only a2netcompat.h is modified.
  8495. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8496. directives.
  8497. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8499. only gai_strerror.h is modified.
  8500. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8501. winsock errors in MinGW.
  8502. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8503. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8504. follow sources are applied.
  8505. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8506. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8507. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8508. I included locale.h from Platform.cc.
  8509. * src/main.cc: Moved common setup/teardown code to Platform class.
  8510. * test/AllTest.cc: Use Platform class.
  8511. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8512. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8514. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8515. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8516. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8517. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8518. aria2-0.13.2+1-mingw-2.patch.
  8519. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8520. systems which don't have termious.h. I moved the directive inside of
  8521. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8522. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8523. anyway.
  8524. * src/asctime_r.h
  8525. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8526. I added 2nd argument to the prototype declaration.
  8527. * src/StringFormat.cc: Get rid of vasprintf.
  8528. * src/getaddrinfo.h: Fixed constants.
  8529. * configure.ac: Added the check for asctime_r function.
  8530. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8531. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8532. Added writable test for Socket when the sending message is in progress.
  8533. Usually the sending message is piece message. Without wriable check,
  8534. upload latency is dropped to more than 1sec.
  8535. * src/PeerInteractionCommand.cc
  8536. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Create only requested files and files which shares a piece with
  8538. requested file in multi-torrent downloads. Directory structures are
  8539. also created in the same rule.
  8540. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8541. DiskWriterEntry as in the previous implementation.
  8542. * src/MultiDiskWriter.cc
  8543. * src/MultiFileAllocationIterator.cc
  8544. * src/MultiFileAllocationIterator.h
  8545. * test/MultiFileAllocationIteratorTest.cc
  8546. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Commented out -lprofiler
  8548. * src/Makefile.am
  8549. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Bump up version number to 0.14.0b.
  8551. * src/configure.ac
  8552. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Actively establish connection to peers in seeding, when peer cache
  8554. is not full and max upload speed limit is not reached.
  8555. * src/ActivePeerConnectionCommand.cc
  8556. * src/ActivePeerConnectionCommand.h
  8557. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8559. to make room more fleshy, recently found peers.
  8560. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8561. it.
  8562. * src/DefaultPeerStorage.cc
  8563. * test/DefaultPeerStorageTest.cc
  8564. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8565. Returns cached data only when the previous receiveHandshake() is called
  8566. with peek = true.
  8567. * src/PeerConnection.cc (receiveHandshake)
  8568. * src/PeerConnection.h (receiveHandshake)
  8569. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8570. Changed default value of -s option from 1 to 5.
  8571. Also max value of -s option is changed from 5 to 16.
  8572. * src/HelpItemFactory.cc
  8573. * src/OptionHandlerFactory.cc
  8574. * src/option_processing.cc
  8575. * src/usage_text.h
  8576. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8577. Changed -s options behavior. Now it means the number of connections
  8578. made simultaneously in each http/ftp download.
  8579. If 1 URL is specified, the behavior is the same with old implementation.
  8580. If -s N is given and more than N URLs are specified, first N URLs are
  8581. used and remaining URLs are used for backup. If less than N URLs are
  8582. specified, some of URLs are used more than once so that totally N
  8583. connections are made simultaneously.
  8584. * src/main.cc
  8585. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8586. Included missing iosfwd or ostream header.
  8587. * src/RequestGroupMan.cc
  8588. * src/TaggedItem.cc
  8589. * src/TaggedItem.h
  8590. * src/Util.cc
  8591. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8592. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8593. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8594. * src/HttpConnection.cc: Included missing sstream.
  8595. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8596. Added --bt-max-open-files option.
  8597. * src/DefaultPieceStorage.cc
  8598. * src/HelpItemFactory.cc
  8599. * src/MultiDiskAdaptor.cc
  8600. * src/MultiDiskAdaptor.h
  8601. * src/OptionHandlerFactory.cc
  8602. * src/option_processing.cc
  8603. * src/prefs.cc
  8604. * src/prefs.h
  8605. * src/usage_text.h
  8606. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8607. Fixed the bug that aria2 aborts when a path to a directory is given
  8608. in command-line.
  8609. * src/ProtocolDetector.cc
  8610. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Limited the number files opened in each BitTorrent download. The default
  8612. value is 100. The option to change this value will be added.
  8613. * src/MultiDiskAdaptor.cc
  8614. * src/MultiDiskAdaptor.h
  8615. * src/MultiFileAllocationIterator.cc
  8616. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8617. Fixed the bug that HTTP downloads don't start with old libraries.
  8618. * src/HttpHeaderProcessor.cc
  8619. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8620. Use empty() instead of size() > 0.
  8621. * src/HttpConnection.cc
  8622. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8623. Drop connection if the incoming peer ID is the same with localhost's
  8624. one. The previous implementation drops connection when incoming peer's
  8625. IP address is the same with localhost's one.
  8626. * src/PeerListenCommand.cc
  8627. * src/DefaultBtInteractive.cc
  8628. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8629. Returns cached data without checking whether socket is readable
  8630. if the cache is available.
  8631. * src/PeerConnection.cc (receiveHandshake)
  8632. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8633. Included stdint.h
  8634. * src/common.h
  8635. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8636. Removed duplicate HAVE_GETTIMEOFDAY
  8637. * src/Makefile.am
  8638. * src/Makefile.in
  8639. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Use interval as a minInterval when minInterval is not supplied.
  8641. * src/DefaultBtAnnounce.cc
  8642. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8644. attempt is failed, then 2nd attempt get kicked out more quickly.
  8645. And it is now static const member of DefaultBtAnnounce.
  8646. * src/DefaultBtAnnounce.h
  8647. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8648. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8649. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8650. * src/ActivePeerConnectionCommand.cc
  8651. * src/BtConstants.h
  8652. * src/BtRuntime.h
  8653. * src/DHTGetPeersCommand.cc
  8654. * src/DefaultBtAnnounce.cc
  8655. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8656. BtRuntime::MAX_PEERS.
  8657. * src/DefaultPeerStorage.h
  8658. * src/InitiatorMSEHandshakeCommand.cc
  8659. * src/PeerInitiateConnectionCommand.cc
  8660. * src/PeerInteractionCommand.cc
  8661. * src/PeerReceiveHandshakeCommand.cc
  8662. * src/TrackerWatcherCommand.cc
  8663. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Always Connect to _numNewConnection
  8665. * src/ActivePeerConnectionCommand.cc
  8666. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8667. Made `begin' unsigned int.
  8668. * src/GrowSegment.h
  8669. * src/Piece.cc
  8670. * src/Piece.h
  8671. * src/PiecedSegment.cc
  8672. * src/PiecedSegment.h
  8673. * src/Segment.h
  8674. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8675. Calculate piece hash when data is arrived if the data is arrived in
  8676. order. This removes additional read operation for hash calculation.
  8677. If the data is arrived in out of order, the hash is calucated when the
  8678. piece is completed. This is the same behavior as the old implementation.
  8679. * src/BtPieceMessage.cc
  8680. * src/DefaultBtProgressInfoFile.cc
  8681. * src/DefaultPieceStorage.cc
  8682. * src/DownloadCommand.cc
  8683. * src/DownloadCommand.h
  8684. * src/DownloadEngine.cc
  8685. * src/GrowSegment.cc
  8686. * src/GrowSegment.h
  8687. * src/Piece.cc
  8688. * src/Piece.h
  8689. * src/PiecedSegment.cc
  8690. * src/PiecedSegment.h
  8691. * src/Segment.h
  8692. * test/PieceTest.cc
  8693. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8694. Try to keep the ordering of outgoing piece message.
  8695. * src/DefaultBtMessageDispatcher.cc
  8696. (DefaultBtMessageDispatcher::sendMessages)
  8697. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8698. Fixed busy loop when error/hup epoll events occur.
  8699. * src/AbstractCommand.cc
  8700. * src/PeerAbstractCommand.cc
  8701. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8702. Added --bt-request-peer-speed-limit option, which was a constant
  8703. SLOW_SPEED_THRESHOLD.
  8704. * src/ActivePeerConnectionCommand.cc
  8705. * src/ActivePeerConnectionCommand.h
  8706. * src/BtConstants.h
  8707. * src/HelpItemFactory.cc
  8708. * src/OptionHandlerFactory.cc
  8709. * src/PeerReceiveHandshakeCommand.cc
  8710. * src/option_processing.cc
  8711. * src/prefs.cc
  8712. * src/prefs.h
  8713. * src/usage_text.h
  8714. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Removed repeated call of getTopDirPath(). Instead, call it once and
  8716. cache the result.
  8717. * src/MultiDiskAdaptor.cc
  8718. * src/MultiDiskAdaptor.h
  8719. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8720. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Fixed compile error on debian etch.
  8722. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8723. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8724. it is undefined.
  8725. * src/Util.cc (ULLONG_MAX)
  8726. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Added epoll support. Use epoll if it is available. If not, use select.
  8728. When async dns is enabled in compile time, epoll support is enabled
  8729. only when aria2 is built with c-ares. This condition statement is
  8730. defined in a2io.h.
  8731. Currently aria2 supports both c-ares and ares, but ares is maintained
  8732. for quite a while and debian already has c-ares package, ares support
  8733. will be dropped in the future version.
  8734. * configure.ac
  8735. * src/AbstractCommand.cc
  8736. * src/AsyncNameResolver.cc
  8737. * src/AsyncNameResolver.h
  8738. * src/Command.cc
  8739. * src/Command.h
  8740. * src/DownloadEngine.cc
  8741. * src/DownloadEngine.h
  8742. * src/PeerAbstractCommand.cc
  8743. * src/SocketCore.cc
  8744. * src/SocketCore.h
  8745. * src/a2io.h
  8746. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8747. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8748. directive.
  8749. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8750. Do not do write operation to /dev/null file.
  8751. * src/LogFactory.cc
  8752. * src/SimpleLogger.cc
  8753. Replaced vasprintf with vsnprintf
  8754. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8755. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8756. * src/BtRequestMessage.cc
  8757. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8758. for segmentation fault caused by previous commit.
  8759. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Reduced the usage of gettimeofday().
  8761. * src/DefaultBtMessageDispatcher.cc
  8762. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8763. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8764. * src/RequestSlot.cc
  8765. * src/RequestSlot.h
  8766. (RequestSlot::isTimeout)
  8767. Made RequestSlot have a reference to Piece object to avoid find
  8768. Piece repeatedly.
  8769. * src/DefaultBtMessageDispatcher.cc
  8770. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8771. * src/RequestSlot.cc
  8772. * src/RequestSlot.h
  8773. (RequestSlot::getPiece)
  8774. * test/DefaultBtMessageDispatcherTest.cc
  8775. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. * src/TimeA2.cc
  8777. * src/TimeA2.h
  8778. (Time::difference): New function.
  8779. (Time::elapsed): Done optimization.
  8780. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8781. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8782. directive.
  8783. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8784. * src/option_processing.cc: Added missing `defined' keyword to #if
  8785. directive.
  8786. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Bump up version number to 0.13.2+1
  8788. * src/configure.ac
  8789. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8790. Refactored broken outstanding piece handling.
  8791. * src/DefaultPieceStorage.cc
  8792. * src/DefaultPieceStorage.h
  8793. * src/Piece.cc
  8794. * src/Piece.h
  8795. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8796. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8797. name collision of static variable and predefined macro.
  8798. * src/BtContext.cc
  8799. * src/BtContext.h
  8800. * src/CookieBoxFactory.cc
  8801. * src/CookieBoxFactory.h
  8802. * src/CookieParser.cc
  8803. * src/CookieParser.h
  8804. * src/DefaultBtContext.cc
  8805. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8806. * src/RequestGroup.cc
  8807. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8808. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8809. * Release 0.13.2
  8810. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8812. * po/fr.po
  8813. * po/ja.po
  8814. * po/aria2c.pot
  8815. * po/*.po
  8816. * po/*.gmo
  8817. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Bump up version number to 0.13.2
  8819. * src/configure.ac
  8820. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8821. Refactord.
  8822. * src/RequestGroupMan.cc
  8823. (removeStoppedGroup)
  8824. (fillRequestGroupFromReserver)
  8825. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Fixed compile error on Ubuntu.
  8827. * src/BtPieceMessage.cc
  8828. * src/MessageDigestHelper.cc
  8829. * src/Util.cc
  8830. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. Fixed compile error when configured with --disable-bittorrent
  8832. * test/DownloadHandlerFactoryTest.cc
  8833. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8834. Done make update-po
  8835. * po/aria2c.pot
  8836. * po/*.po
  8837. * po/*.gmo
  8838. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8839. Bump up version number to 0.13.2rc.
  8840. * src/configure.ac
  8841. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. Made option name bold. Updated SYNOPSIS to make it more readable.
  8843. * doc/aria2c.1.txt
  8844. * doc/aria2c.1
  8845. * doc/aria2c.1.html
  8846. * src/version_usage.cc
  8847. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Refactored. Use std::string instead of size and char*.
  8849. * Data.cc
  8850. * Data.h
  8851. * test/Data.cc
  8852. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. Added trimSelf(). Rewritten trim() to use trimSelf().
  8854. * Util.cc
  8855. * Util.h
  8856. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8858. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8859. Fixed compile error when configured with --disable-metalink.
  8860. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8861. * test/FeatureConfigTest.cc
  8862. * test/DownloadHandlerFactoryTest.cc
  8863. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. Fixed compile error when configured with --without-gnutls
  8865. --without-openssl
  8866. * src/main.cc
  8867. * test/DefaultBtProgressInfoFileTest.cc
  8868. * test/SegmentManTest.cc
  8869. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Fixed compile error with OpenSSL.
  8871. * src/IteratableChunkChecksumValidator.cc
  8872. * src/LibsslDHKeyExchange.h
  8873. * src/MessageDigestHelper.cc
  8874. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Revert the default value of --max-concurrent-downloads to 5.
  8876. Revert the default value of --metalink-servers to 5.
  8877. Man pages was also updated.
  8878. * src/option_processing.cc
  8879. * doc/aria2c.1.txt
  8880. * doc/aria2c.1.html
  8881. * doc/aria2c.1
  8882. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. Returns const reference:
  8884. DownloadContext::getPieceHash, DownloadContext::getName,
  8885. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8886. BtContext::getInfoHashAsString,
  8887. * src/BtContext.h
  8888. * src/DefaultBtContext.cc
  8889. * src/DefaultBtContext.h
  8890. * src/DownloadContext.h
  8891. * src/SingleFileDownloadContext.h
  8892. * test/MockBtContext.h
  8893. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. * src/RequestGroup.h (getDir): Removed.
  8895. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Returns const reference. The internal urlencode function was optimized
  8897. a little bit.
  8898. * src/Request.cc
  8899. * src/Request.h
  8900. * src/HttpRequest.cc
  8901. * src/HttpRequest.h
  8902. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8903. Defined option name and possible values as std::string to reduce
  8904. temporary string object creation in runtime.
  8905. * src/HelpItemFactory.cc
  8906. * src/LogFactory.cc
  8907. * src/Option.cc
  8908. * src/OptionHandlerFactory.cc
  8909. * src/option_processing.cc
  8910. * src/prefs.cc
  8911. * src/prefs.h
  8912. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Return const reference.
  8914. * src/DownloadHandlerConstants.cc
  8915. * src/DownloadHandlerConstants.h
  8916. (getMetalinkExtensions)
  8917. (getMetalinkContentTypes)
  8918. (getBtExtensions)
  8919. (getBtContentTypes)
  8920. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. * src/HttpHeader.cc (get): Rewritten.
  8922. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8923. Make HttpHeader::getFirst(...) return const reference.
  8924. * src/HttpHeader.cc
  8925. * src/HttpHeader.h
  8926. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8928. it with V_TRUE.
  8929. * src/DefaultPieceStorage.cc
  8930. * src/DownloadCommand.cc
  8931. * src/FtpNegotiationCommand.cc
  8932. * src/HttpRequest.cc
  8933. * src/InitiateConnectionCommand.cc
  8934. * src/RequestGroup.cc
  8935. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. Made Option::get(...) return const reference of std::string.
  8937. * src/Option.cc
  8938. * src/Option.h
  8939. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8940. Replaced std:copy with insert.
  8941. * src/DefaultBtMessageDispatcher.cc
  8942. * src/DefaultPieceStorage.cc
  8943. * src/DownloadEngineFactory.cc
  8944. * src/RequestGroup.cc
  8945. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Included SocketCore.h to fix compiler warning.
  8947. * src/InitiateConnectionCommand.cc
  8948. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Put piece selection strategy algorithm to RarestPieceSelector class,
  8950. Added a switch to choose whether randomized selection so that unit
  8951. tests emit same results in, possibly, win32.
  8952. * src/DefaultPieceStorage.cc
  8953. * src/DefaultPieceStorage.h
  8954. * src/RarestPieceSelector.cc
  8955. * src/RarestPieceSelector.h
  8956. * test/DefaultPieceStorageTest.cc
  8957. * test/RarestPieceSelectorTest.cc
  8958. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8959. Don't pool connection if HTTP proxy is enabled.
  8960. * src/FtpFinishDownloadCommand.cc
  8961. * src/FtpNegotiationCommand.cc
  8962. * src/HttpSkipResponseCommand.cc
  8963. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8964. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8965. * src/AbstractCommand.cc
  8966. * src/AbstractCommand.h
  8967. * src/ActivePeerConnectionCommand.cc
  8968. * src/FtpInitiateConnectionCommand.cc
  8969. * src/HttpInitiateConnectionCommand.cc
  8970. * src/InitiateConnectionCommandFactory.cc
  8971. * src/PeerAbstractCommand.cc
  8972. * src/PeerAbstractCommand.h
  8973. * src/PeerInitiateConnectionCommand.cc
  8974. * src/TrackerWatcherCommand.cc
  8975. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8976. Sort RequestSlot in ascending order and manipulate them using
  8977. lower_bound.
  8978. * src/DefaultBtMessageDispatcher.cc
  8979. * src/DefaultBtMessageDispatcher.h
  8980. (getMessageQueue): Added const qualifier.
  8981. (getRequestSlots): Added const qualifier.
  8982. (sendMessages): Use empty() instead of size().
  8983. (doCancelSendingPieceAction): Use HandleEvent object.
  8984. (doAbortOutstandingRequestAction): Rewritten.
  8985. (doChokedAction): Rewritten.
  8986. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8987. (isOutstandingRequest): Rewritten.
  8988. (getOutstandingRequest): Rewritten.
  8989. (removeOutstandingRequest): Rewritten.
  8990. (addOutstandingRequest): Rewritten.
  8991. * src/RequestSlot.cc
  8992. * src/RequestSlot.h
  8993. (operator=): Rewritten.
  8994. (operator!=): New function.
  8995. (operator<): New function.
  8996. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. * src/DefaultBtRequestFactory.cc
  8998. (doChokedAction): Rewritten.
  8999. (removeCompletedPiece): Rewritten.
  9000. (removeTargetPiece): Rewritten.
  9001. (createRequestMessages): Added the debug log.
  9002. (createRequestMessagesOnEndGame: Added the debug log.
  9003. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Added the debug log message.
  9005. * src/BtPieceMessage.cc (doReceivedAction)
  9006. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9007. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9008. used lower_bound to process them rather than linear search.
  9009. * src/DHTPeerAnnounceStorage.cc
  9010. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9012. peer has at least one completed piece.
  9013. * src/Peer.cc
  9014. * src/Peer.h
  9015. * src/PeerInteractionCommand.cc
  9016. * src/PeerSessionResource.cc
  9017. * src/PeerSessionResource.h
  9018. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9019. Removed unnecessary sorting
  9020. * src/DefaultPieceStorage (DefaultPieceStorage)
  9021. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9022. Rewritten the portion of the code that mangaes allowed fast indexes.
  9023. * src/PeerSessionResource.cc
  9024. * src/PeerSessionResource.h
  9025. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9026. Removed the invalid string including '\r' from ru.po and
  9027. did make update-po.
  9028. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9029. Added --log-level and --summary-interval to man page.
  9030. * doc/aria2c.1.txt
  9031. * doc/aria2c.1.html
  9032. * doc/aria2c.1
  9033. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9034. Added --log-level option to specify log level. Log messages under
  9035. the specified level are not output. Default value is `debug'.
  9036. * src/HelpItemFactory.cc
  9037. * src/LogFactory.cc
  9038. * src/LogFactory.h
  9039. * src/Logger.h
  9040. * src/OptionHandlerFactory.cc
  9041. * src/SimpleLogger.cc
  9042. * src/SimpleLogger.h
  9043. * src/main.cc
  9044. * src/option_processing.cc
  9045. * src/prefs.h
  9046. * src/usage_text.h
  9047. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9048. Print download progress summary of all parallel downloads in specified
  9049. interval, default 60 secs. While aria2 could download several files
  9050. in parallel (see -j option), it displayed just first download progress,
  9051. and the other downloads are hidden from the users. This new feature
  9052. prints all downloads currently in-progress to the console so that you
  9053. can check the status of all downloads. The interval can be adjusted
  9054. by --summary-interval option.
  9055. The progress readout is now cut so that all fits in the one line of
  9056. console.
  9057. * src/ConsoleStatCalc.cc
  9058. * src/ConsoleStatCalc.h
  9059. * src/HelpItemFactory.cc
  9060. * src/OptionHandlerFactory.cc
  9061. * src/RequestGroupMan.cc
  9062. * src/RequestGroupMan.h
  9063. * src/main.cc
  9064. * src/option_processing.cc
  9065. * src/prefs.h
  9066. * src/usage_text.h
  9067. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9068. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9069. * src/DownloadEngine.cc (DownloadEngine)
  9070. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9071. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9072. defined.
  9073. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9074. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Use erase+lower_bound+insert instead of sort.
  9076. * src/DefaultPieceStorage.cc (addPieceStats)
  9077. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9078. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9079. * src/A2STR.cc
  9080. * src/A2STR.h
  9081. * src/OptionParser.cc (parse)
  9082. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9083. Defined fake filename `[tracker.announce]' as static const std::string.
  9084. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9085. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Defined default filename `index.html' as static const std::string
  9087. * src/SingleFileDownloadContext.cc
  9088. * src/SingleFileDownloadContext.h
  9089. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. Defined "[MEMORY]" as static const std::string.
  9091. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9092. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9093. Defined control file's version number as static const std::string.
  9094. * src/DefaultBtProgressInfoFile.cc
  9095. * src/DefaultBtProgressInfoFile.h
  9096. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9097. Use Request::METHOD_GET
  9098. * src/RequestGroup.cc (createNextCommandWithAdj)
  9099. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Defined "OK", "ERR", "INPR" as static const std::string
  9101. * src/RequestGroupMan.cc (showDownloadResults)
  9102. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Defined default client used in extended handshake as static const
  9104. std::string
  9105. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9106. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9107. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9108. * src/HttpConnection.cc (eraseConfidentialInfo)
  9109. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. Defined default ftp user and password as static const std::string
  9111. * src/AuthConfigFactory.cc
  9112. * src/AuthConfigFactory.h
  9113. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9114. Defined strings used in netrc as static const std::string
  9115. * src/Netrc.cc
  9116. * src/Netrc.h
  9117. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9118. Defined HTTP status as static const std::string
  9119. * src/AbstractProxyResponseCommand.cc
  9120. * src/HttpHeader.cc
  9121. * src/HttpHeader.h
  9122. * src/HttpResponse.cc
  9123. * src/HttpResponseCommand.cc
  9124. * src/HttpSkipResponseCommand.cc
  9125. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9126. Defined "\r\n", "A", "I" as static const std::string
  9127. * src/A2STR.cc
  9128. * src/A2STR.h
  9129. * src/FtpConnection.cc
  9130. * src/FtpConnection.h
  9131. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9132. Added COLON_C(".") and used it in Request::parseUrl()
  9133. * src/A2STR.cc
  9134. * src/A2STR.h
  9135. * src/Request.cc (parseUrl)
  9136. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Changed the type of padName from `const std::string&' to `const char*'.
  9138. * src/MSEHandshake.cc (verifyPadLength)
  9139. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. Defined "sha1" as static const std::string.
  9141. * src/MetalinkParserController.cc
  9142. * src/MetalinkParserController.h
  9143. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9144. Defined message digest algorithm name as static const std::string
  9145. * src/DHTTokenTracker.cc
  9146. * src/DHTUtil.cc
  9147. * src/DefaultBtContext.cc
  9148. * src/MSEHandshake.cc
  9149. * src/MessageDigestHelper.cc
  9150. * src/Peer.cc
  9151. * src/messageDigest.cc
  9152. * src/messageDigest.h
  9153. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Made string literals used in SAX parser static const std::string.
  9155. * src/FileMetalinkParserState.cc
  9156. * src/FileMetalinkParserState.h
  9157. * src/FilesMetalinkParserState.cc
  9158. * src/FilesMetalinkParserState.h
  9159. * src/InitialMetalinkParserState.cc
  9160. * src/InitialMetalinkParserState.h
  9161. * src/MetalinkMetalinkParserState.cc
  9162. * src/MetalinkMetalinkParserState.h
  9163. * src/PiecesMetalinkParserState.cc
  9164. * src/PiecesMetalinkParserState.h
  9165. * src/ResourcesMetalinkParserState.cc
  9166. * src/ResourcesMetalinkParserState.h
  9167. * src/VerificationMetalinkParserState.cc
  9168. * src/VerificationMetalinkParserState.h
  9169. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9170. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9171. * src/A2STR.cc
  9172. * src/A2STR.h
  9173. * src/File.cc
  9174. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9175. Defined static const std::string IP("ip"), PORT("port") and use them
  9176. instead of string literals.
  9177. * src/DefaultPeerListProcessor.cc
  9178. * src/DefaultPeerListProcessor.h
  9179. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9180. Made string literals for torrent file processing static const
  9181. std::string.
  9182. * src/BtContext.cc
  9183. * src/BtContext.h
  9184. * src/DefaultBtContext.cc
  9185. * src/DefaultBtContext.h
  9186. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9187. Made string literal for tracker response static const std::string
  9188. * src/BtAnnounce.cc
  9189. * src/BtAnnounce.h
  9190. * src/DefaultBtAnnounce.cc
  9191. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. Use DHTMessage::T instead of "t".
  9193. * src/DHTMessageTracker.cc (messageArrived)
  9194. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Made keyName static const. Made trimmed charset static const
  9196. std::string.
  9197. * src/Util.cc (getContentDispositionFilename)
  9198. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9199. Made USER_AGENT const. Made "/" static const std::string.
  9200. * src/A2STR.cc
  9201. * src/A2STR.h
  9202. * src/HttpRequest.cc
  9203. * src/HttpRequest.h
  9204. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Made string listeral to static const std::string:
  9206. "Content-Range", "Content-Length"
  9207. * src/HttpHeader.cc
  9208. * src/HttpHeader.h
  9209. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. Made string listeral to static const std::string.
  9211. * src/HttpConnection.cc
  9212. * src/HttpHeader.cc
  9213. * src/HttpHeader.h
  9214. * src/HttpResponse.cc
  9215. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9216. Made string listeral to static const std::string.
  9217. * src/A2STR.cc
  9218. * src/A2STR.h
  9219. * src/SimpleLogger.cc
  9220. * src/SimpleLogger.h
  9221. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9222. Made string literal to static const std::string.
  9223. Rewritten CookieParser::setField.
  9224. * src/A2STR.cc
  9225. * src/A2STR.h
  9226. * src/CookieBoxFactory.cc
  9227. * src/CookieBoxFactory.h
  9228. * src/CookieParser.cc
  9229. * src/CookieParser.h
  9230. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9231. Made string literal to static const std::string
  9232. * src/DHTAbstractMessage.cc
  9233. * src/DHTAnnouncePeerMessage.cc
  9234. * src/DHTAnnouncePeerMessage.h
  9235. * src/DHTAnnouncePeerReplyMessage.cc
  9236. * src/DHTAnnouncePeerReplyMessage.h
  9237. * src/DHTFindNodeMessage.cc
  9238. * src/DHTFindNodeMessage.h
  9239. * src/DHTFindNodeReplyMessage.cc
  9240. * src/DHTFindNodeReplyMessage.h
  9241. * src/DHTGetPeersMessage.cc
  9242. * src/DHTGetPeersMessage.h
  9243. * src/DHTGetPeersReplyMessage.cc
  9244. * src/DHTGetPeersReplyMessage.h
  9245. * src/DHTMessage.cc
  9246. * src/DHTMessage.h
  9247. * src/DHTMessageFactoryImpl.cc
  9248. * src/DHTMessageReceiver.cc
  9249. * src/DHTPingMessage.cc
  9250. * src/DHTPingMessage.h
  9251. * src/DHTPingReplyMessage.cc
  9252. * src/DHTPingReplyMessage.h
  9253. * src/DHTQueryMessage.cc
  9254. * src/DHTQueryMessage.h
  9255. * src/DHTResponseMessage.cc
  9256. * src/DHTResponseMessage.h
  9257. * src/DHTUnknownMessage.cc
  9258. * src/DHTUnknownMessage.h
  9259. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9260. Made string literal to static const std::string
  9261. * src/BtChokeMessage.cc (toString)
  9262. * src/BtHaveAllMessage.cc (toString)
  9263. * src/BtHaveNoneMessage.cc (toString)
  9264. * src/BtInterestedMessage.cc (toString)
  9265. * src/BtNotInterestedMessage.cc (toString)
  9266. * src/BtUnchokeMessage.cc (toString)
  9267. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. Replaced "" with static const variable A2STR::NIL.
  9269. Replaced string comparison against "" with std::string::empty().
  9270. Added PROTO_* to Request class and use them as a protocol string
  9271. constant.
  9272. Made "started", "stopped", "completed" static const variable in
  9273. AnnounceList class.
  9274. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9275. Updated translations. Great thanks to translators.
  9276. * po/ca.po
  9277. * po/de.po
  9278. * po/fr.po
  9279. * po/it.po
  9280. * po/ja.po
  9281. * po/ru.po
  9282. * po/zh_CN.po
  9283. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Updated man page; categorized options and fixed typo.
  9285. * doc/aria2c.1.txt
  9286. * doc/aria2c.1.html
  9287. * doc/aria2c.1
  9288. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9289. Removed const ref
  9290. * src/MetalinkEntry.cc (AddProtocolPreference)
  9291. * src/RequestGroup.cc (FindServerHostByHostname)
  9292. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Rewritten Accept-Features handling.
  9294. * src/HttpRequestCommand.cc (createHttpRequest)
  9295. * src/a2functional.h
  9296. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9297. Changed method signature:
  9298. DHTAbstractNodeLookupTask::toEntries
  9299. * src/DHTAbstractNodeLookupTask.cc
  9300. * src/DHTAbstractNodeLookupTask.h
  9301. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9302. Changed method signature:
  9303. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9304. * src/BtContext.h
  9305. * src/DefaultBtContext.cc
  9306. * src/DefaultBtContext.h
  9307. * src/DefaultBtInteractive.cc
  9308. * test/DefaultBtContextTest.cc
  9309. * test/MockBtContext.h
  9310. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Changed method signature:
  9312. MultiFileAllocationIterator::makeDiskWriterEntries
  9313. * src/MultiFileAllocationIterator.cc
  9314. * src/MultiFileAllocationIterator.h
  9315. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9316. Changed method sinature:
  9317. MetalinkEntry::toFileEntry,
  9318. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9319. Metalinker::queryEntry
  9320. * src/Metalink2RequestGroup.cc
  9321. * src/MetalinkEntry.cc
  9322. * src/MetalinkEntry.h
  9323. * src/MetalinkHelper.cc
  9324. * src/MetalinkHelper.h
  9325. * src/Metalinker.cc
  9326. * src/Metalinker.h
  9327. * src/main.cc
  9328. * test/MetalinkHelperTest.cc
  9329. * test/MetalinkerTest.cc
  9330. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9331. Changed method sinature:
  9332. RequestGroup::getURIs
  9333. * src/RequestGroup.cc
  9334. * src/RequestGroup.h
  9335. * test/Metalink2RequestGroupTest.cc
  9336. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9337. Changed method signature:
  9338. PeerListProcessor::extractPeer
  9339. * src/CompactPeerListProcessor.cc
  9340. * src/CompactPeerListProcessor.h
  9341. * src/DefaultBtAnnounce.cc
  9342. * src/DefaultPeerListProcessor.cc
  9343. * src/DefaultPeerListProcessor.h
  9344. * src/DelegatingPeerListProcessor.cc
  9345. * src/DelegatingPeerListProcessor.h
  9346. * src/PeerListProcessor.h
  9347. * src/UTPexExtensionMessage.cc
  9348. * test/DefaultPeerListProcessorTest.cc
  9349. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9350. Changed method signature:
  9351. BtRequestFactory::createRequestMessages,
  9352. BtRequestFactory::createRequestMessagesOnEndGame
  9353. * src/BtRequestFactory.h
  9354. * src/DefaultBtInteractive.cc
  9355. * src/DefaultBtRequestFactory.cc
  9356. * src/DefaultBtRequestFactory.h
  9357. * test/DefaultBtRequestFactoryTest.cc
  9358. * test/MockBtRequestFactory.h
  9359. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9360. Changed method signature:
  9361. PieceStorage::getInFlightPieces
  9362. * src/DefaultBtProgressInfoFile.cc
  9363. * src/DefaultPieceStorage.cc
  9364. * src/DefaultPieceStorage.h
  9365. * src/PieceStorage.h
  9366. * src/UnknownLengthPieceStorage.cc
  9367. * src/UnknownLengthPieceStorage.h
  9368. * test/DefaultBtProgressInfoFileTest.cc
  9369. * test/MockPieceStorage.h
  9370. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9371. Changed method signature:
  9372. PostDownloadHandler::getNextRequestGroups
  9373. Metalink2RequestGroup::generate
  9374. RequestGroup::postDownloadProcessing
  9375. * src/BtPostDownloadHandler.cc
  9376. * src/BtPostDownloadHandler.h
  9377. * src/Metalink2RequestGroup.cc
  9378. * src/Metalink2RequestGroup.h
  9379. * src/MetalinkPostDownloadHandler.cc
  9380. * src/MetalinkPostDownloadHandler.h
  9381. * src/PostDownloadHandler.h
  9382. * src/RequestGroup.cc
  9383. * src/RequestGroup.h
  9384. * src/RequestGroupMan.cc
  9385. * src/main.cc
  9386. * test/BtPostDownloadHandlerTest.cc
  9387. * test/Metalink2RequestGroupTest.cc
  9388. * test/MetalinkPostDownloadHandlerTest.cc
  9389. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Rewritten AccRequestGroup
  9391. * src/main.cc
  9392. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. Rewritten.
  9394. * src/TaggedItem.cc (toTagString)
  9395. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Rewritten Accept-Features handling.
  9397. * src/HttpRequestCommand.cc (createHttpRequest)
  9398. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Rewritten accept types handling.
  9400. * HttpRequest.cc (createRequest)
  9401. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. Rewritten
  9403. * src/FeatureConfig.cc (featureSummary)
  9404. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9405. Changed method signature:
  9406. PeerStorage::getActivePeers
  9407. * src/DHTPeerAnnounceEntry.cc
  9408. * src/DefaultPeerStorage.cc
  9409. * src/DefaultPeerStorage.h
  9410. * src/PeerStorage.h
  9411. * test/DefaultPeerStorageTest.cc
  9412. * test/MockPeerStorage.h
  9413. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9414. Changed method signature:
  9415. DHTPeerAnnounceStorage::getPeers,
  9416. DHTPeerAnnounceEntry::getPeers
  9417. * src/DHTGetPeersMessage.cc
  9418. * src/DHTPeerAnnounceEntry.cc
  9419. * src/DHTPeerAnnounceEntry.h
  9420. * src/DHTPeerAnnounceStorage.cc
  9421. * src/DHTPeerAnnounceStorage.h
  9422. * test/DHTAnnouncePeerMessageTest.cc
  9423. * test/DHTPeerAnnounceEntryTest.cc
  9424. * test/DHTPeerAnnounceStorageTest.cc
  9425. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Changed method signature:
  9427. NameResolver::resolve
  9428. * src/DHTEntryPointNameResolveCommand.cc
  9429. * src/InitiateConnectionCommand.cc
  9430. * src/NameResolver.cc
  9431. * src/NameResolver.h
  9432. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. Changed method signature:
  9434. PieceStorage::getAdvertisedPieceIndexes
  9435. * src/DefaultBtInteractive.cc
  9436. * src/DefaultPieceStorage.cc
  9437. * src/DefaultPieceStorage.h
  9438. * src/PieceStorage.h
  9439. * src/UnknownLengthPieceStorage.h
  9440. * test/MockPieceStorage.h
  9441. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9442. Changed method signature:
  9443. SegmentMan::getInFlightSegment
  9444. * src/AbstractCommand.cc
  9445. * src/SegmentMan.cc
  9446. * src/SegmentMan.h
  9447. * test/SegmentManTest.cc
  9448. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9449. Changed method signature:
  9450. DHTAbstractNodeLookupTask::getNodesFromMessage
  9451. * src/DHTAbstractNodeLookupTask.cc
  9452. * src/DHTAbstractNodeLookupTask.h
  9453. * src/DHTNodeLookupTask.cc
  9454. * src/DHTNodeLookupTask.h
  9455. * src/DHTPeerLookupTask.cc
  9456. * src/DHTPeerLookupTask.h
  9457. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9458. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9459. * src/AbstractCommand.cc
  9460. * src/BtCheckIntegrityEntry.cc
  9461. * src/BtCheckIntegrityEntry.h
  9462. * src/BtFileAllocationEntry.cc
  9463. * src/BtFileAllocationEntry.h
  9464. * src/BtSetup.cc
  9465. * src/BtSetup.h
  9466. * src/CheckIntegrityCommand.cc
  9467. * src/CheckIntegrityEntry.h
  9468. * src/ChecksumCheckIntegrityEntry.cc
  9469. * src/ChecksumCheckIntegrityEntry.h
  9470. * src/DHTSetup.cc
  9471. * src/DHTSetup.h
  9472. * src/DownloadEngine.cc
  9473. * src/FileAllocationCommand.cc
  9474. * src/FileAllocationEntry.h
  9475. * src/RequestGroup.cc
  9476. * src/RequestGroup.h
  9477. * src/RequestGroupMan.cc
  9478. * src/RequestGroupMan.h
  9479. * src/StreamCheckIntegrityEntry.cc
  9480. * src/StreamCheckIntegrityEntry.h
  9481. * src/StreamFileAllocationEntry.cc
  9482. * src/StreamFileAllocationEntry.h
  9483. * src/TrackerWatcherCommand.cc
  9484. * src/a2functional.h
  9485. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Changed method signature:
  9487. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9488. DHTBucket::getGoodNodes,
  9489. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9490. * src/BNode.cc
  9491. * src/BNode.h
  9492. * src/DHTAbstractNodeLookupTask.cc
  9493. * src/DHTAutoSaveCommand.cc
  9494. * src/DHTBucket.cc
  9495. * src/DHTBucket.h
  9496. * src/DHTBucketRefreshTask.cc
  9497. * src/DHTFindNodeMessage.cc
  9498. * src/DHTGetPeersMessage.cc
  9499. * src/DHTRoutingTable.cc
  9500. * src/DHTRoutingTable.h
  9501. * test/BNodeTest.cc
  9502. * test/DHTBucketTest.cc
  9503. * test/DHTRoutingTableTest.cc
  9504. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. In piece selection functions, Pass std::deque<...> by reference rather
  9506. than returning it.
  9507. * src/BitfieldMan.cc
  9508. * src/BitfieldMan.h
  9509. * src/DefaultBtRequestFactory.cc
  9510. * src/DefaultPieceStorage.cc
  9511. * src/Piece.cc
  9512. * src/Piece.h
  9513. * test/BitfieldManTest.cc
  9514. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Implemented rarest piece first piece selection strategy.
  9516. * src/AbstractBtMessage.cc
  9517. * src/AbstractBtMessage.h
  9518. * src/BitfieldMan.cc
  9519. * src/BitfieldMan.h
  9520. * src/BtBitfieldMessage.cc
  9521. * src/BtHaveAllMessage.cc
  9522. * src/BtHaveMessage.cc
  9523. * src/DefaultPieceStorage.cc
  9524. * src/DefaultPieceStorage.h
  9525. * src/PeerInteractionCommand.cc
  9526. * src/PieceStorage.h
  9527. * src/UnknownLengthPieceStorage.h
  9528. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9529. Rewritten readData and writeData.
  9530. * src/MultiDiskAdaptor.cc
  9531. * src/MultiDiskAdaptor.h
  9532. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. Move \n out of the message "Usage: ...".
  9534. * src/version_usage.cc
  9535. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9536. Bump up version number to 0.13.2b.
  9537. * configure.ac
  9538. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9539. Added const qualifier to argument Exception& e.
  9540. * src/Logger.h
  9541. * src/SimpleLogger.cc
  9542. * src/SimpleLogger.h
  9543. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9544. Pool connection when CWD, SIZE command fails.
  9545. * src/FtpNegotiationCommand.cc
  9546. * src/FtpNegotiationCommand.h
  9547. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9549. * src/HttpResponseCommand.cc
  9550. * src/HttpSkipResponseCommand.cc
  9551. * src/HttpSkipResponseCommand.h
  9552. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9553. Pool connection when a server returns 4xx, 5xx responses.
  9554. * src/HttpNullDownloadCommand.cc
  9555. * src/HttpNullDownloadCommand.h
  9556. * src/HttpResponse.cc
  9557. * src/HttpResponse.h
  9558. * src/HttpResponseCommand.cc
  9559. * src/HttpResponseCommand.h
  9560. * test/HttpResponseTest.cc
  9561. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9562. Print usage when no URL is specifed or bad command-line option is
  9563. specified.
  9564. * src/HelpItemFactory.cc
  9565. * src/help_tags.h
  9566. * src/option_processing.cc
  9567. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Removed duplicate log message.
  9569. * src/AbstractCommand.cc (asyncResolveHostname)
  9570. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9571. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9572. Changed -j option's default value from 5 to 1.
  9573. Added new examples using protocol auto detection feature.
  9574. Removed -T, -M usage where it can be omitted.
  9575. * doc/aria2c.1.txt
  9576. * doc/aria2c.1.html
  9577. * doc/aria2c.1.txt
  9578. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9579. Updated command-line usage text, so that it tells users that they
  9580. can specify any number of torrent files and metalink files in
  9581. command-line.
  9582. * src/version_usage.cc
  9583. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9584. Changed the default value of -j option to 1.
  9585. * src/HelpItemFactory.cc
  9586. * src/option_processing.cc
  9587. * src/usage_text.h
  9588. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9589. Added the ability to reuse connection in FTP and it is enabled by
  9590. default. It can be disabled by --ftp-reuse-connection=false option.
  9591. * src/Command.cc
  9592. * src/DownloadCommand.cc
  9593. * src/FtpDownloadCommand.cc
  9594. * src/FtpDownloadCommand.h
  9595. * src/FtpFinishDownloadCommand.cc
  9596. * src/FtpFinishDownloadCommand.h
  9597. * src/FtpInitiateConnectionCommand.cc
  9598. * src/FtpNegotiationCommand.cc
  9599. * src/FtpNegotiationCommand.h
  9600. * src/HelpItemFactory.cc
  9601. * src/Makefile.am
  9602. * src/Makefile.in
  9603. * src/OptionHandlerFactory.cc
  9604. * src/option_processing.cc
  9605. * src/prefs.h
  9606. * src/usage_text.h
  9607. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Call Command::transitStatus() before calling Command::execute(),
  9609. so that the status change made in execute() is not cleared.
  9610. * src/DownloadEngine.cc
  9611. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9612. Removed forward declaration of SocketCore class.
  9613. * src/HttpDownloadCommand.h
  9614. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9616. in InitiateConnectionCommandFactory. They should be set only when
  9617. the protocol is HTTP or HTTPS.
  9618. * src/InitiateConnectionCommandFactory.cc
  9619. * src/RequestGroup.cc
  9620. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9621. Fixed infinite loop in checksum checking.
  9622. * src/IteratableChecksumValidator.cc
  9623. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9624. Set _supportsPersistentConnection to true by default.
  9625. * src/Request.cc
  9626. * src/RequestGroup.cc
  9627. * test/HttpRequestTest.cc
  9628. * test/RequestTest.cc
  9629. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9630. Added timeout to socket pool. The default timeout is 15 seconds,
  9631. which is the same value Apache uses.
  9632. * src/DownloadEngine.cc
  9633. * src/DownloadEngine.h
  9634. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. Fixed misuse of multimap::find()
  9636. * src/HttpHeader.cc
  9637. * test/HttpHeaderTest.cc
  9638. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9639. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9640. option.
  9641. The asynchronous DNS is not capable of IPv6 yet.
  9642. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9643. least for HTTP download.
  9644. * src/AbstractCommand.cc
  9645. * src/AbstractCommand.h
  9646. * src/AsyncNameResolver.cc
  9647. * src/AsyncNameResolver.h
  9648. * src/DHTEntryPointNameResolveCommand.cc
  9649. * src/DHTEntryPointNameResolveCommand.h
  9650. * src/DownloadEngine.cc
  9651. * src/DownloadEngine.h
  9652. * src/FtpInitiateConnectionCommand.cc
  9653. * src/FtpInitiateConnectionCommand.h
  9654. * src/HelpItemFactory.cc
  9655. * src/HttpInitiateConnectionCommand.cc
  9656. * src/HttpInitiateConnectionCommand.h
  9657. * src/InitiateConnectionCommand.cc
  9658. * src/InitiateConnectionCommand.h
  9659. * src/Makefile.am
  9660. * src/Makefile.in
  9661. * src/NameResolver.cc
  9662. * src/NameResolver.h
  9663. * src/OptionHandlerFactory.cc
  9664. * src/SocketCore.cc
  9665. * src/SocketCore.h
  9666. * src/Util.cc
  9667. * src/Util.h
  9668. * src/option_processing.cc
  9669. * src/prefs.h
  9670. * src/usage_text.h
  9671. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9672. Updated man page: --quiet, --header were added.
  9673. --metalink-servers and --enable-http-keep-alive option were updated.
  9674. * doc/aria2c.1
  9675. * doc/aria2c.1.html
  9676. * doc/aria2c.1.txt
  9677. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9678. Enable HTTP keep-alive by default.
  9679. * src/HelpItemFactory.cc
  9680. * src/option_processing.cc
  9681. * src/usage_text.h
  9682. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. Disable http keep-alive if the remote server is not HTTP/1.1.
  9684. * src/HttpConnection.cc
  9685. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Receive content body of 302 response so that the connection can be
  9687. reused later when http keep-alive is enabled.
  9688. * src/HttpNullDownloadCommand.cc
  9689. * src/HttpNullDownloadCommand.h
  9690. * src/HttpResponseCommand.cc
  9691. * src/HttpResponseCommand.h
  9692. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. const SharedHandle<Request> -> const SharedHandle<Request>&
  9694. * src/FtpDowndloadCommand.cc
  9695. * src/FtpDowndloadCommand.h
  9696. * src/HttpDownloadCommand.cc
  9697. * src/HttpDownloadCommand.h
  9698. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Fixed the bug that the control file(.aria2 file) is not renamed
  9700. according to tryAutoFileRenaming().
  9701. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9702. its control file exist, use them and continue download.
  9703. The old implementation didn't take into account of control file's
  9704. existence, so basically you couldn't continue download of renamed file.
  9705. * src/BtProgressInfoFile.h
  9706. * src/DefaultBtProgressInfoFile.cc
  9707. * src/DefaultBtProgressInfoFile.h
  9708. * src/NullProgressInfoFile.h
  9709. * src/RequestGroup.cc
  9710. * test/DefaultBtProgressInfoFileTest.cc
  9711. * test/MockBtProgressInfoFile.h
  9712. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9713. Change the default value of --metalink-servers option from `5' to `1'.
  9714. * src/HelpItemFactory.cc
  9715. * src/option_processing.cc
  9716. * src/usage_text.h
  9717. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. Reimplemented transparent metalink using Accept request header.
  9719. * src/HttpRequest.cc
  9720. * src/HttpRequest.h
  9721. * src/HttpRequestCommand.cc
  9722. * src/Metalink2RequestGroup.cc
  9723. * src/RequestGroup.cc
  9724. * src/RequestGroup.h
  9725. * test/HttpRequestTest.cc
  9726. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9727. Bump up version number to 0.13.2a
  9728. * configure.ac
  9729. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9730. Updated configure.ac using the result of autoscan.
  9731. * configure.ac
  9732. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. Fixed compilation error without gcrypt/openssl.
  9734. * src/DownloadCommand.cc
  9735. * src/DownloadCommand.h
  9736. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9737. Reorganized version information so that it can be displayed in a
  9738. standard terminal screen without scrolling.
  9739. Removed http, ftp from Configuration section, because they are always
  9740. enabled.
  9741. * src/FeatureConfig.cc
  9742. * src/FeatureConfig.h
  9743. * src/main.cc
  9744. * src/messageDigest.cc
  9745. * src/messageDigest.h
  9746. * src/version_usage.cc
  9747. * test/FeatureConfigTest.cc
  9748. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9749. Masked user ID in log.
  9750. * src/FtpConnection.cc (sendUser)
  9751. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9752. Removed query part from filename in HTTP download. The query part means
  9753. the substring after "?" in URL. Firefox seems do the same thing.
  9754. A query part is sometimes very long and not suitable to filename,
  9755. so I think it is better to remove it from filename.
  9756. * src/HttpRequest.cc
  9757. * src/HttpRequest.h
  9758. * src/Request.cc
  9759. * src/Request.h
  9760. * test/HttpRequestTest.cc
  9761. * test/RequestTest.cc
  9762. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9763. Rewritten Exception class. Throw exception object, not its pointer and
  9764. catch by reference, so that remove problematic delete operator for
  9765. catched exception.
  9766. * src/Exception.cc
  9767. * src/Exception.h
  9768. * test/ExceptionTest.cc
  9769. * src/*: All files throwing/catching exception.
  9770. * test/*: All files throwing/catching exception.
  9771. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Now auto protocol detection is enabled without -Z option.
  9773. But there is a important difference between with/without -Z optoin.
  9774. For example, if you type:
  9775. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9776. then, aria2 interprets there are 3 request groups:
  9777. (1) http://host/file, http://mirror/file <-- multi-source download
  9778. (2) file1.torrent
  9779. (3) file2.metalink
  9780. On the other hand, if you invoke above command with -Z option, it is
  9781. interpreted as 4 request groups:
  9782. (1) http://host/file
  9783. (2) file1.torrent
  9784. (3) file2.metalink
  9785. (4) http://mirror/file
  9786. I think usually user don't mix multi-source URLs and torrent files, so
  9787. there is no big problem here.
  9788. * src/main.cc
  9789. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Fixed the bug that causes segmentaion fault when reading XML containing
  9791. unescapsed character like '&'.
  9792. Also a modification was made which avoids adding unnecessary
  9793. characters stack and appending unused string.
  9794. * src/ExpatMetalinkProcessor.cc
  9795. * src/FileMetalinkParserState.h
  9796. * src/FilesMetalinkParserState.h
  9797. * src/FinMetalinkParserState.h
  9798. * src/HashMetalinkParserState.h
  9799. * src/InitialMetalinkParserState.h
  9800. * src/LanguageMetalinkParserState.h
  9801. * src/MetalinkMetalinkParserState.h
  9802. * src/MetalinkParserState.h
  9803. * src/MetalinkParserStateMachine.cc
  9804. * src/MetalinkParserStateMachine.h
  9805. * src/OSMetalinkParserState.h
  9806. * src/PieceHashMetalinkParserState.h
  9807. * src/PiecesMetalinkParserState.h
  9808. * src/ResourcesMetalinkParserState.h
  9809. * src/SizeMetalinkParserState.h
  9810. * src/SkipTagMetalinkParserState.h
  9811. * src/URLMetalinkParserState.h
  9812. * src/VerificationMetalinkParserState.h
  9813. * src/VersionMetalinkParserState.h
  9814. * src/XML2SAXMetalinkProcessor.cc
  9815. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9816. Added StringFormat class, which internally calls vasprintf.
  9817. operator<< is defined for this class, so it can be used with iostream
  9818. classes nicely. SimpleLogger and following functions are rewritten
  9819. using StringFormat class.
  9820. Besides, now Logger class's methods are non-const, many classes
  9821. that has a const Logger* as a member variable are modified to remove
  9822. const qualifier from the variable declaration.
  9823. * src/HelpItemFactory.cc
  9824. * src/Request.cc
  9825. * src/SimpleLogger.cc
  9826. * src/StringFormat.cc
  9827. * src/StringFormat.h
  9828. * src/Util.cc
  9829. * src/option_processing.cc
  9830. * src/version_usage.cc
  9831. * test/StringFormatTest.cc
  9832. * src/*.h: The classes that has const Logger* as a member variable.
  9833. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9834. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9835. failed. Also fixed memory link when exception is thrown there.
  9836. * src/main.cc (AccRequestGroup)
  9837. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9838. Added build-in "Accept-Features" support. For now only "metalink" is
  9839. used in this header field.
  9840. This "metalink" value is removed from the list when connecting URLs
  9841. fed by metalink file to avoid loop in "transparent" metlaink.
  9842. * src/HttpRequest.cc
  9843. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9844. header is also held in this variable. Also renamed setUserHeaders as
  9845. addHeader and it was rewritten to add header not just to clear the old
  9846. value.
  9847. * src/HttpRequestCommand.cc
  9848. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9849. from "Accept-Features" list.
  9850. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9851. default.
  9852. * src/RequestGroup.h
  9853. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9854. * src/a2functional.h: Included <string> because Concat class depends on
  9855. it.
  9856. * test/HttpRequestTest.cc
  9857. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9858. Added comment
  9859. * src/RequestGroup.cc (createNextCommand)
  9860. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. Capitalized METHOD_GET and METHOD_HEAD
  9862. * src/Request.cc
  9863. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. Added getDownloadResults() method
  9865. * src/RequestGroupMan.cc
  9866. * src/RequestGroupMan.h
  9867. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9868. Fixed the bug that aria2 exits when commands is empty() but
  9869. _routineCommands are not.
  9870. * src/DownloadEngine.cc
  9871. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9872. Use the default value pulled from Option object in HelpItemFactory.
  9873. except options whose defualt value is embedded in a usage text.
  9874. * src/HelpItemFactory.cc
  9875. * src/HelpItemFactory.h
  9876. * src/option_processing.cc
  9877. * src/version_usage.cc
  9878. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9879. Added --quiet option to make aria2 quiet (no console output).
  9880. --quiet option is tagged with ADVANCED.
  9881. * src/HelpItemFactory.cc
  9882. * src/LogFactory.cc
  9883. * src/LogFactory.h
  9884. * src/MultiUrlRequestInfo.cc
  9885. * src/MultiUrlRequestInfo.h
  9886. * src/NullStatCalc.h: New class. This class prints nothing.
  9887. * src/OptionHandlerFactory.cc
  9888. * src/main.cc
  9889. * src/option_processing.cc
  9890. * src/prefs.h
  9891. * src/usage_text.h
  9892. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9893. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9894. * src/HelpItemFactory.cc (createHelpItems):
  9895. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Fixed compilation error in ExpatMetalinkProcessor.cc
  9897. * src/ExpatMetalinkProcessor.cc
  9898. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9899. Reuse socket if the origin server supports HTTP keep-alive and
  9900. --enable-http-keep-alive or --enable-http-pipelining is given.
  9901. The current implementation doesn't reuse the connections established
  9902. against proxy server.
  9903. * src/AbstractCommand.cc
  9904. * src/DownloadEngine.cc
  9905. * src/DownloadEngine.h
  9906. * src/HttpDownloadCommand.cc
  9907. * src/HttpInitiateConnectionCommand.cc
  9908. * src/HttpResponseCommand.cc
  9909. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9910. Rewritten HTTP keep-alive and pipelining routine.
  9911. * src/AbstractCommand.cc
  9912. * src/HttpConnection.cc
  9913. * src/HttpDownloadCommand.cc
  9914. * src/HttpRequest.cc
  9915. * src/HttpRequestCommand.cc
  9916. * src/HttpResponseCommand.cc
  9917. * src/Request.cc
  9918. * src/Request.h
  9919. * src/RequestGroup.cc
  9920. * test/HttpRequestTest.cc
  9921. * test/HttpResponseTest.cc
  9922. * test/RequestTest.cc
  9923. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9924. Added missing setUserHeaders call
  9925. * src/HttpRequestCommand.cc
  9926. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9928. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9929. waste of time because it is more likey false.
  9930. * src/FileAllocationDispatcherCommand.cc (execute)
  9931. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9932. Now HTTP status and version are a member variable of HttpHeader.
  9933. HTTP status is processed as a string, not integer.
  9934. * src/AbstractProxyResponseCommand.cc
  9935. * src/HttpConnection.cc
  9936. * src/HttpHeader.cc
  9937. * src/HttpHeader.h
  9938. * src/HttpHeaderProcessor.cc
  9939. * src/HttpHeaderProcessor.h
  9940. * src/HttpResponse.cc
  9941. * src/HttpResponse.h
  9942. * test/HttpHeaderProcessorTest.cc
  9943. * test/HttpResponseTest.cc
  9944. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9945. Added --header option. You can specify any number of additional HTTP headers
  9946. like:
  9947. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9948. Unlike other commad-line option, you can use --header option multiple times.
  9949. * src/HelpItemFactory.cc
  9950. * src/HttpRequest.{cc, h}
  9951. * src/HttpRequestCommand.cc
  9952. * src/OptionHandlerFactory.cc
  9953. * src/OptionHandlerImpl.h
  9954. * src/option_processing.cc
  9955. * src/prefs.h
  9956. * src/usage_text.h
  9957. * test/HttpRequestTest.cc (testUserHeaders)
  9958. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9959. Eliminates the time lag between sequential downloads and commands in
  9960. the same RequestGroup.
  9961. In old implementation, aria2 occasionally waits 1 seconds before
  9962. executing next command or RequestGroup.
  9963. This is really a waste of time, and new implementation eliminates
  9964. this unnecessary time lag.
  9965. * src/AbstractCommand.cc
  9966. * src/AutoSaveCommand.cc
  9967. * src/CheckIntegrityCommand.cc
  9968. * src/Command.{cc, h}
  9969. * src/DownloadEngine.{cc, h}
  9970. * src/DownloadEngineFactory.cc
  9971. * src/FileAllocationCommand.cc
  9972. * src/FileAllocationDispatcherCommand.cc
  9973. * src/FillRequestGroupCommand.cc
  9974. * src/FtpInitiateConnectionCommand.cc
  9975. * src/HaveEraseCommand.cc
  9976. * src/HttpInitiateConnectionCommand.cc
  9977. * src/HttpResponseCommand.cc
  9978. * src/RealtimeCommand.cc
  9979. * src/RequestGroup.cc
  9980. * src/RequestGroupMan.cc
  9981. * src/StreamFileAllocationEntry.cc
  9982. * src/TimeBasedCommand.{cc, h}
  9983. * src/TimedHaltCommand.cc
  9984. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9985. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9986. keyword explicit and SharedHandle's default constructor initializes
  9987. its internal obj to null, old implementation initializes it using
  9988. obj's default constructor.
  9989. To assign null, write SharedHandle<T> x(...); x.reset();
  9990. TODO: test/SharedHandleTest.cc needs more tests.
  9991. * src/SharedHandle.h
  9992. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9993. Fixed type in man page.
  9994. * doc/aria2c.1.txt
  9995. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9996. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9997. * src/SimpleLogger.{cc, h}
  9998. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9999. Implemented auto protocol detection.
  10000. Now you can do:
  10001. aria2c -Z http://host/file file1.torrent file2.metalink
  10002. (Note: -Z option is required for auto protcol detection.)
  10003. Then aria2c downloads 3 files simultaneously:
  10004. 1. http://host/file
  10005. 2. file1.torrent <-- read local torrent file
  10006. 3. file2.metalink <-- read local Metalink file.
  10007. Same thing goes with -i option. Assume your uris.txt contans:
  10008. http://host/file
  10009. file1.torrent
  10010. file2.metalink
  10011. Then you can do: aria2c -i uris.txt
  10012. (Note: -Z option is not needed if -i option is given.)
  10013. * src/main.cc
  10014. * src/ProtocolDetector.{cc, h}
  10015. * test/ProtocolDetectorTest.cc
  10016. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10017. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10018. installed
  10019. * src/ARC4Encryptor.h
  10020. * src/ARC4Decryptor.h
  10021. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10022. Renamed argument from 'errno' to 'err', since errno is confused with
  10023. errno defined in errno.h.
  10024. * src/LibgcryptARC4Decryptor.h
  10025. * src/LibgcryptARC4Context.h
  10026. * src/LibgcryptDHKeyExchange.h
  10027. * src/LibgcryptARC4Encryptor.h
  10028. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10029. Rewritten choking algorithm.
  10030. * src/PeerChokeCommand.{cc, h}
  10031. * src/BtInterestedMessage.cc
  10032. * src/PeerSessionResource.{cc, h}
  10033. * src/DefaultPeerStorage.{cc, h}
  10034. * src/BtNotInterestedMessage.cc
  10035. * src/DefaultBtMessageDispatcher.{cc, h}
  10036. * src/BtMessageDispatcher.h
  10037. * src/Peer.{cc, h}
  10038. * src/BtLeecherStateChoke.{cc, h}
  10039. * src/BtSetup.cc
  10040. * src/BtSeederStateChoke.{cc, h}
  10041. * src/PeerStorage.h
  10042. * test/MockPeerStorage.h
  10043. * test/MockBtMessageDispatcher.h
  10044. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10045. Fixed compilation error on x84-64 platform.
  10046. * src/AuthConfig.cc: Included ostream.
  10047. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10048. Rewritten getBasename() and getDirname(), without standard library
  10049. basename(), dirname().
  10050. * src/File.cc
  10051. * test/FileTest.cc
  10052. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10053. Added Simplified Chinese translation. Also updated the following
  10054. translations: Polish, Dutch, German. Great thanks to all translators.
  10055. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10056. Suppress content-range error when 'Content-Range' response header
  10057. doesn't contains bytes-unit specifier 'bytes'
  10058. * src/HttpHeader.cc (getRange)
  10059. * test/HttpHeaderTest.cc
  10060. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. Fixed compilation error with g++-4.3
  10062. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. Added missing include files for MinGW
  10064. * test/HttpHeaderProcessorTest.cc
  10065. * test/DHTRoutingTableSerializerTest.cc
  10066. * test/DHTRoutingTableDeserializerTest.cc
  10067. * test/UriListParserTest.cc
  10068. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10069. Now download line is printed nicely with no garbage at the end of
  10070. line. I use ioctl to get the columns of terminal.
  10071. If stdout is redirected to another device, instead of carriage return,
  10072. end of line '\n' character is used. This is feature request#1909659
  10073. * src/ConsoleStatCalc.cc (calculateStat)
  10074. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10075. Included a2time.h
  10076. * src/DHTMessageDispatcher.h
  10077. * src/DHTMessageEntry.h
  10078. * src/DHTReplaceNodeTask.h
  10079. * src/DHTMessageTracker.h
  10080. * src/Util.h
  10081. * src/CookieBox.h
  10082. * src/SocketCore.h
  10083. * src/DefaultBtMessageDispatcher.h
  10084. * src/SocketCore.cc
  10085. * src/Util.cc
  10086. * src/DHTPingTask.h
  10087. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10088. Fixed high memory footprint when DHT is enabled.
  10089. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10090. queued than it is processed and the queue is getting longer. As a
  10091. consequence, momory usage is increased.
  10092. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10093. replacement cache in DHTBucket which is described in Kademlia paper.
  10094. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10095. DHTReplaceNodeTask.
  10096. * src/DHTBucket.{h, cc}
  10097. (cacheNode): New function.
  10098. (getCachedNodes): New function.
  10099. (dropNode): Push back cached node to _nodes.
  10100. * test/DHTBucketTest.cc
  10101. (testCacheNode): New test
  10102. (testDropNode): New test
  10103. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10104. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10105. the unused 4KB memory when ssl is not used.
  10106. * src/SocketCore.cc
  10107. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. Added summary log for peer announce storage.
  10109. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10110. Removed cast
  10111. * src/DefaultPeerStorage.cc (addPeer)
  10112. Log exception message
  10113. * src/DHTMessageTracker.cc (handleTimeout)
  10114. Fixed casting
  10115. * test/HttpRequestTest.cc
  10116. * test/MetalinkProcessorTest.cc
  10117. * test/PieceTest.cc
  10118. * test/MetalinkEntryTest.cc
  10119. * test/SequenceTest.cc
  10120. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10121. * src/ParameterizedStringParser.cc (createLoop):
  10122. Removed unused variable sstep.
  10123. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10124. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10125. * src/Util.{h, cc}
  10126. (parseUInt): New function.
  10127. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10128. The actual range is uint32_t.
  10129. * test/UtilTest.cc
  10130. * src/ParameterizedStringParser.cc:
  10131. Use Util::parseUInt() for loop variables.
  10132. * test/ParameterizedStringParserTest.cc
  10133. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10134. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10135. Rewritten the functions for binding port.
  10136. * src/DHTConnectionImpl.{h, cc}
  10137. * src/PeerListenCommand.{h, cc}
  10138. * src/DHTSetup.cc
  10139. * src/BtSetup.cc
  10140. * test/DHTConnectionImplTest.cc
  10141. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10142. type cleanup for allmost all remaining files.
  10143. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10144. Type clarification
  10145. * src/PeerSessionResource.{h, cc}
  10146. * src/DefaultPieceStorage.{h, cc}
  10147. * src/Peer.{h, cc}
  10148. * test/PeerSessionResourceTest.cc
  10149. Use div function
  10150. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10151. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10152. Type clarification
  10153. * src/DefaultPeerStorage.{h, cc}
  10154. * test/DefaultPeerStorageTest.cc
  10155. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10156. Type clarification: size_t for length or size, uint64_t for file
  10157. length, off_t for file offset.
  10158. * src/DefaultBtProgressInfoFile.cc
  10159. * src/DefaultBtContext.{h, cc}
  10160. * src/DefaultBtInteractive.cc
  10161. * src/DownloadCommand.{h, cc}
  10162. * src/IteratableChunkChecksumValidator.{h, cc}
  10163. * src/SegmentMan.{h, cc}
  10164. * src/SingleFileDownloadContext.{h, cc}
  10165. * src/IteratableChecksumValidator.{h, cc}
  10166. * src/BtContext.h
  10167. * src/IteratableValidator.h
  10168. * src/DownloadContext.h
  10169. * test/SingleFileDownloadContextTest.cc
  10170. * test/DefaultBtContextTest.cc
  10171. * test/MockBtContext.h
  10172. * test/Metalink2RequestGroupTest.cc
  10173. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10174. Type clarification: size_t for length or size, uint64_t for file
  10175. length, off_t for file offset.
  10176. * src/PiecedSegment.cc
  10177. * src/GrowSegment.h
  10178. * src/DefaultBtRequestFactory.h
  10179. * src/DefaultBtProgressInfoFile.cc
  10180. * src/UnknownLengthPieceStorage.h
  10181. * src/DefaultPieceStorage.cc
  10182. * src/UnknownLengthPieceStorage.cc
  10183. * src/DefaultBtInteractive.cc
  10184. * src/GrowSegment.cc
  10185. * src/BitfieldMan.h
  10186. * src/DownloadCommand.cc
  10187. * src/BtRequestFactory.h
  10188. * src/PiecedSegment.h
  10189. * src/DefaultPieceStorage.h
  10190. * src/Piece.cc
  10191. * src/DefaultBtRequestFactory.cc
  10192. * src/PieceStorage.h
  10193. * src/Segment.h
  10194. * src/Piece.h
  10195. * src/BitfieldMan.cc
  10196. * src/Util.cc
  10197. * test/DefaultBtProgressInfoFileTest.cc
  10198. * test/DefaultPieceStorageTest.cc
  10199. * test/MockPieceStorage.h
  10200. * test/BtRequestMessageTest.cc
  10201. * test/DefaultBtMessageDispatcherTest.cc
  10202. * test/BitfieldManTest.cc
  10203. * test/GrowSegmentTest.cc
  10204. * test/PieceTest.cc
  10205. * test/SegmentTest.cc
  10206. * test/SegmentManTest.cc
  10207. * test/DefaultBtRequestFactoryTest.cc
  10208. * test/MockBtRequestFactory.h
  10209. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10210. Fixed compilation error with --disable-nls
  10211. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10212. in gettext.h causes the problem.
  10213. * src/common.h
  10214. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10215. Removed subPiece related functions.
  10216. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10217. * src/DefaultPieceStorage.{h, cc}
  10218. * test/PieceTest.cc
  10219. * test/DefaultPieceStorageTest.cc
  10220. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10221. Use unsigned char for data store.
  10222. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10223. Bump up version number to 0.13.0+1
  10224. * configure.ac
  10225. * Release 0.13.0+1
  10226. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10227. Changed inactive connection timeout to 120.
  10228. To accept more mulually interested peers, disconnect peer when there
  10229. is no interest between us after certain time passed.
  10230. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10231. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10232. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10233. when compiled with async DNS support.
  10234. * src/DownloadEngine.cc
  10235. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10236. value '10' will be a little bit short when some DNS servers are
  10237. offline and several DNS servers are tried. It should be configured
  10238. by command-line option.
  10239. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10240. Merged Ross's mingw patch.
  10241. * src/DHTRoutingTableDeserializer.cc
  10242. * src/DHTRoutingTableSerializer.cc
  10243. * src/Platform.{h, cc}
  10244. * src/timegm.h
  10245. * src/gettimeofday.h
  10246. * src/getaddrinfo.h
  10247. * src/SocketCore.h
  10248. * src/common.h
  10249. * src/inet_aton.h
  10250. * src/DownloadEngine.h
  10251. * src/gai_strerror.h
  10252. * src/a2netcompat.h
  10253. * configure.ac
  10254. * configure
  10255. * aclocal.m4
  10256. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10257. Included missing iostream.
  10258. * test/AllTest.cc
  10259. * test/BtDependencyTest.cc
  10260. * test/BtExtendedMessageTest.cc
  10261. * test/DHTConnectionImplTest.cc
  10262. * test/DHTMessageFactoryImplTest.cc
  10263. * test/DHTMessageTrackerEntryTest.cc
  10264. * test/DHTNodeTest.cc
  10265. * test/DHTRoutingTableSerializerTest.cc
  10266. * test/DefaultBtAnnounceTest.cc
  10267. * test/DefaultBtContextTest.cc
  10268. * test/DefaultBtMessageFactoryTest.cc
  10269. * test/DefaultExtensionMessageFactoryTest.cc
  10270. * test/HandshakeExtensionMessageTest.cc
  10271. * test/HttpResponseTest.cc
  10272. * test/MetalinkProcessorTest.cc
  10273. * test/MultiFileAllocationIteratorTest.cc
  10274. * test/SocketCoreTest.cc
  10275. * test/UTPexExtensionMessageTest.cc
  10276. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Reorganized includes.
  10278. * src/NameResolver.cc
  10279. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. Fixed compilation error without ares/c-ares
  10281. * src/NameResolver.h:
  10282. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10283. Added a test for large file.
  10284. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10285. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Fixed the bug that file size is ignored if size > INT32_MAX
  10287. * src/SizeMetalinkParserState.cc (endElement):
  10288. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. Bump up version number to 0.13.0
  10290. * configure.ac
  10291. * Release 0.13.0
  10292. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10293. Updated Makfefile.am to make 'make dist' work.
  10294. Now packaged filename is aria2c-VERSION.tar.bz2.
  10295. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10296. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10297. Large file support is now configured by configure script.
  10298. * configure.ac
  10299. Removed unsused source files
  10300. * src/
  10301. * test/
  10302. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10303. Peer.h and BtContext.h respectively.
  10304. * src/Peer.h
  10305. * src/BtContext.h
  10306. Updated translations.
  10307. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10308. translations. Great thanks to all translators!;)
  10309. * po/*.{po, gmo}
  10310. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10311. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10312. statically declared sha1 MessageDigestContext.
  10313. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10314. initialization of short-lived MessageDigestContext.
  10315. * src/MessageDigestHelper.{h, cc}
  10316. * src/main.cc
  10317. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10318. the initialization of MessageDigestContext every time in validating
  10319. chunk checksum.
  10320. * src/DownloadCommand.{h, cc}
  10321. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10322. Add a file descriptor which connected to fast peer(latency<1500) to
  10323. select(). This change reduced CPU load.
  10324. * src/PeerInteractionCommand.cc
  10325. * src/DefaultBtInteractive.{h, cc}
  10326. * src/BtInteractive.h
  10327. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10328. Fixed the previous insufficient fix for possible busy loop.
  10329. * src/MSEHandshake.cc (identifyHandshakeType)
  10330. Removed unused functions.
  10331. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10332. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10333. Fixed possible busy loop if first 20 bytes are not received for a few
  10334. minutes.
  10335. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10336. * src/ReceiverMSEHandshakeCommand.cc
  10337. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10338. Fixed compilation error
  10339. * src/ExpatMetalinkProcessor.cc
  10340. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10341. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10342. * src/DHTBucket.cc
  10343. Removed unnecessary cast.
  10344. * src/HandshakeExtensionMessage.cc
  10345. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10346. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10347. is missing.
  10348. * src/OptionHandlerFactory.cc
  10349. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10350. Fixed the bug that HAVE message is not sent for a piece they are
  10351. downloaded fom http/ftp server before any BitTorrent handshake is done
  10352. with peers.
  10353. * src/DefaultBtInteractive.cc
  10354. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10355. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10356. * src/Makefile.am
  10357. * src/Makefile.in
  10358. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10359. Updated README. Added html version of README and man page.
  10360. * README
  10361. * README.html
  10362. * readme2html: Shell script to generate README.html from README using
  10363. asciidoc.
  10364. * doc/aria2c.1.html
  10365. * doc/makeman: Added the line to generate aria2c.1.html
  10366. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. Fixed offset calculation.
  10368. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10369. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10370. Rewritten itos and uitos using template. llitos and ullitos are
  10371. replaced with itos and uitos respectively.
  10372. * src/Util.{h, cc}
  10373. * test/UtilTest.cc
  10374. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10375. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10376. of the number of bytes required for storing public key and shared
  10377. secret.
  10378. * src/LibgcryptDHKeyExchange.h
  10379. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10380. * src/MSEHandshake.cc
  10381. * test/DHKeyExchangeTest.cc
  10382. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10383. Removed since they are not used.
  10384. * src/Xml2MetalinkProcessor.{h, cc}
  10385. * src/Socket.cc
  10386. * src/SegmentSplitter.{h, cc}
  10387. * test/Xml2MetalinkProcessorTest.cc
  10388. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10389. Fixed the bug that prevents aria2 from stopping other than by pressing
  10390. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10391. option. aria2 doesn't stop even after --seed-time is satisfied and
  10392. continues to output blank lines in the console.
  10393. * src/ReceiverMSEHandshakeCommand.cc
  10394. * src/PeerReceiveHandshakeCommand.cc
  10395. * src/PeerListenCommand.cc
  10396. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10397. Bump up version number to 0.13.0rc
  10398. * configure.ac
  10399. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. Updated man page and some usage text.
  10401. * doc/aria2c.1.txt
  10402. * src/usage_text.h
  10403. * po/*.{po, gmo}
  10404. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10405. Updated translations. Added Finnish and Hebrew translations.
  10406. Great thanks to all translators!
  10407. * po/*.{po, gmo}
  10408. * po/LINGUAS
  10409. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. Log more detailed information about each message.
  10411. * src/DHTQueryMessage.{h, cc}
  10412. * src/DHTGetPeersMessage.{h, cc}
  10413. * src/DHTFindNodeReplyMessage.{h, cc}
  10414. * src/DHTGetPeersReplyMessage.{h, cc}
  10415. * src/DHTAnnouncePeerMessage.{h, cc}
  10416. * src/DHTResponseMessage.{h, cc}
  10417. * src/DHTFindNodeMessage.{h, cc}
  10418. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10419. Use constants defined in prefs.h
  10420. * src/option_processing.cc
  10421. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10423. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10424. Make room for future enchancements for IPv6 addresses.
  10425. Bump up version number of dht.dat file format to 2.
  10426. Not compatible with previous version.
  10427. * src/DHTRoutingTableSerializer.cc
  10428. * src/DHTRoutingTableDeserializer.cc
  10429. * test/DHTRoutingTableSerializerTest.cc
  10430. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10431. Added handling for the return values from
  10432. PeerMessageUtil::createcompact().
  10433. * src/DefaultBtContext.cc (computeFastSet):
  10434. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10435. Fixed abort when peer's ip address is IPv4-mapped address.
  10436. * src/DefaultBtContext.cc (computeFastSet)
  10437. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10438. cannot handle IPv4-mapped addresses.
  10439. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10440. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10441. Proper return value handling for OpenSSL functions.
  10442. * src/LibsslDHKeyExchange.h
  10443. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10444. Random bytes generation using libgcrypt and OpenSSL.
  10445. * src/DHTUtil.{h, cc}
  10446. * test/DHTUtilTest.cc
  10447. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10448. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10449. received.
  10450. * src/DHTMessageReceiver.cc (receiveMessage)
  10451. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10452. Fixed the bug that a return code is always 0. BUG#1897704
  10453. If error occurred during the download or there exist unfinished
  10454. downloads, aria2 returns with code 1.
  10455. * src/RequestGroupMan.{h, cc}
  10456. * src/MultiUrlRequestInfo.{h, cc}
  10457. * src/main.cc
  10458. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10459. IPv6 support for SocketCore class.
  10460. TODO: In SocketCore::establishConnection(), this is insufficient to
  10461. determin the failure of connect() here because the socket is
  10462. non-blocking state. The next addresses should be tried after select().
  10463. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10464. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10465. instead which address family independent.
  10466. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10467. information in a compact peer format which is for IPv4 only.
  10468. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10469. this is a spec of BitTorrent protocol.
  10470. * src/SocketCore.{h, cc}
  10471. * src/PeerMessageUtil.cc
  10472. * test/SocketCoreTest.cc
  10473. * test/PeerMessageUtilTest.cc
  10474. * test/DHTConnectionImplTest.cc
  10475. Handle IPv4-mapped addresses.
  10476. * src/DHTNode.cc: Now identity is determined by node id.
  10477. * src/DHTMessageTrackerEntry.cc
  10478. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10479. should handle it.
  10480. * src/DHTRoutingTableDeserializer.cc
  10481. * src/DHTMessageFactoryImpl.cc
  10482. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10483. Change the unit of --stop option from a minute to a second.
  10484. * src/usage_text.h
  10485. * src/DownloadEngineFactory.cc
  10486. * src/OptionHandlerFactory.cc
  10487. * src/message.h
  10488. * src/TimedHaltCommand.cc
  10489. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10490. Make listening socket non-block mode.
  10491. * src/FtpConnection.cc
  10492. * src/FtpNegotiationCommand.{h, cc}
  10493. * src/PeerListenCommand.cc
  10494. Fixed the bug that cause slow ftp negotiation.
  10495. * src/FtpNegotiationCommand.{h, cc}
  10496. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10497. Added basic tag to --enable-dht, --dht-listen-port option.
  10498. * src/HelpItemFactory.cc (createHelpItems)
  10499. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10500. Updated text.
  10501. * src/usage_text.h
  10502. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10503. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10504. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10505. Determin _threadtholdSpeed in each constructor for
  10506. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10507. * src/ActivePeerConnectionCommand.{h, cc}
  10508. * src/PeerReceiveHandshakeCommand.{h, cc}
  10509. * src/BtSetup.cc
  10510. * src/BtConstants.h
  10511. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10512. Added --bt-min-crypto-level and --bt-require-crypto options.
  10513. * src/OptionHandlerFactory.cc
  10514. * src/MSEHandshake.cc
  10515. * src/HelpItemFactory.cc
  10516. * src/option_processing.cc
  10517. * src/ReceiverMSEHandshakeCommand.cc
  10518. * src/prefs.h
  10519. * src/DefaultBtAnnounce.cc
  10520. * src/InitiatorMSEHandshakeCommand.cc
  10521. * src/usage_text.h
  10522. * test/MSEHandshakeTest.cc
  10523. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10524. Bump version number to 0.13.0b
  10525. * configure.ac
  10526. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Updated doc.
  10528. * src/MessageDigestHelper.h:
  10529. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10530. Use raw message digest as a token instead of its hexadecimal
  10531. representation.
  10532. * src/DHTTokenTracker.cc (generateToken)
  10533. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10534. Added Message Stream Encryption(MSE) support.
  10535. Currently, aria2 accepts incoming connections with Obfuscation Header
  10536. and legacy BitTorrent Header and establishes connections with
  10537. Obfuscation Header first and if failed then retry with legacy
  10538. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10539. choose ARC4. The new option to change the default behavior is planned.
  10540. For tracker extension, "supportcrypto=1" is added statically.
  10541. * src/PeerInitiateConnectionCommand.{h, cc}
  10542. * src/PeerConnection.{h, cc}
  10543. * src/HandleRegistry.h
  10544. * src/SocketCore.h
  10545. * src/PeerReceiveHandshakeCommand.{h, cc}
  10546. * src/BtRegistry.{h, cc}
  10547. * src/PeerListenCommand.cc
  10548. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10549. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10550. * src/MSEHandshake.{h, cc}
  10551. * src/ARC4Encryptor.h
  10552. * src/ARC4Decryptor.h
  10553. * src/LibgcryptARC4Encryptor.h
  10554. * src/LibgcryptARC4Decryptor.h
  10555. * src/LibgcryptARC4Context.h
  10556. * src/LibsslARC4Encryptor.h
  10557. * src/LibsslARC4Decryptor.h
  10558. * src/LibsslARC4Context.h
  10559. * src/DHKeyExchange.h
  10560. * src/LibgcryptDHKeyExchange.h
  10561. * src/LibsslDHKeyExchange.h
  10562. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10563. * test/DefaultBtAnnounceTest.cc
  10564. * test/ARC4Test.cc
  10565. * test/DHKeyExchangeTest.cc
  10566. Removed prepareForRetry() because it is not used.
  10567. * src/PeerAbstractCommand.{h, cc}
  10568. * src/PeerInteractionCommand.{h, cc}
  10569. * src/PeerInitiateConnectionCommand.{h, cc}
  10570. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10571. Added the ability to load nodes from torrent file. These nodes are
  10572. added to the routing table when downloading that torrent.
  10573. * src/BtContext.h
  10574. * src/DefaultBtContext.{h, cc}
  10575. * src/DHTSetup.cc
  10576. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10577. hostname and port pair, and resolves all of them.
  10578. * src/NameResolver.{h, cc}: Added reset().
  10579. * src/RequestGroup.cc
  10580. * test/DefaultBtContextTest.cc
  10581. * test/MockBtContext.h
  10582. Removed assert() from DefaultBtContext and throw exception instead.
  10583. * src/DefaultBtContext.cc
  10584. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10585. Fixed segmentation fault bug when exiting if dht is disabled.
  10586. * src/RequestGroup.cc
  10587. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10588. Fixed typo in log message and define the message in message.h
  10589. * src/TimedHaltCommand.cc
  10590. * src/message.h
  10591. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10592. Included RecoverableException.h to fix compilation error.
  10593. * test/DHTMessageFactoryImplTest.cc
  10594. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10596. * test/DHTPingMessageTest.cc
  10597. * test/DHTGetPeersMessageTest.cc
  10598. * test/DHTFindNodeMessageTest.cc
  10599. * test/DHTAnnouncePeerMessageTest.cc
  10600. * test/MockDHTMessage.h
  10601. * test/MockDHTMessageFactory.h
  10602. * test/MockDHTMessageDispatcher.h: New class.
  10603. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10604. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10605. virtual.
  10606. * src/DHTMessageDispatcher.h
  10607. * src/DHTMessageDispatcherImpl.{h, cc}
  10608. * src/DHTSetup.cc
  10609. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10610. Adding handling of DHT error message. Just log error message and
  10611. throw exception.
  10612. * src/DHTMessageFactoryImpl.cc
  10613. * test/DHTMessageFactoryImplTest.cc
  10614. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10615. Added handling of dynamic cast failure.
  10616. * src/DHTNodeLookupTask.cc
  10617. * src/DHTPeerLookupTask.cc
  10618. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10619. Added the ability to stop aria2 itself when given time has passed
  10620. from start. Use --stop option to specify time in minutes.
  10621. When 0 is given, this feature is disabled.
  10622. * src/OptionHandlerFactory.cc
  10623. * src/TimeBasedCommand.h: Make _interval protected scope.
  10624. * src/HelpItemFactory.cc
  10625. * src/option_processing.cc
  10626. * src/prefs.h
  10627. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10628. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10629. Without this modification, the result list shows "ERR" when aria2 is
  10630. stopped by --stop option. It should be "INPR".
  10631. * src/DownloadEngine.{h, cc}
  10632. * src/DownloadEngineFactory.cc
  10633. * src/usage_text.h
  10634. * src/TimedHaltCommand.{h, cc}: New class.
  10635. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10636. Bootstrap through node added by port message.
  10637. Currently bootstrap is executed if the number of buckets in routing
  10638. table is 1.
  10639. * src/BtPortMessage.{h, cc}
  10640. * src/DefaultBtMessageFactory.{h, cc}
  10641. * src/PeerInteractionCommand.cc
  10642. * test/BtPortMessageTest.cc
  10643. * test/MockDHTTask.h
  10644. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10645. Extract the Peer class's member variables, which are only needed after
  10646. PeerInteractionCommand, into PeerSessionResource class.
  10647. This class is instantiated in PeerInteractionCommand class's ctor and
  10648. released in its dtor.
  10649. This will make Peer class lightweight and uses less memory for peers
  10650. which are not connected and wait in the queue.
  10651. * src/PeerChokeCommand.cc
  10652. * src/PeerSessionResource.{h, cc}
  10653. * src/PeerInteractionCommand.cc
  10654. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10655. * src/DefaultBtInteractive.cc
  10656. * src/BtPieceMessage.cc
  10657. * src/BtInterestedMessage.cc
  10658. * src/BtUnchokeMessage.cc
  10659. * src/DefaultPeerStorage.{h, cc}
  10660. * src/PeerInitiateConnectionCommand.cc
  10661. * src/ActivePeerConnectionCommand.cc
  10662. * src/BtNotInterestedMessage.cc
  10663. * src/DefaultBtMessageDispatcher.cc
  10664. * src/BtChokeMessage.cc
  10665. * src/BtRequestMessage.cc
  10666. * src/Peer.{h, cc}
  10667. * src/BtRegistry.h
  10668. * src/TrackerWatcherCommand.cc
  10669. * src/PeerReceiveHandshakeCommand.cc
  10670. * test/BtExtendedMessageTest.cc
  10671. * test/BtAllowedFastMessageTest.cc
  10672. * test/BtCancelMessageTest.cc
  10673. * test/DefaultPieceStorageTest.cc
  10674. * test/BtBitfieldMessageTest.cc
  10675. * test/BtHaveMessageTest.cc
  10676. * test/BtNotInterestedMessageTest.cc
  10677. * test/BtRequestMessageTest.cc
  10678. * test/PeerSessionResourceTest.cc
  10679. * test/DefaultBtMessageDispatcherTest.cc
  10680. * test/PeerTest.cc
  10681. * test/BtInterestedMessageTest.cc
  10682. * test/BtRejectMessageTest.cc
  10683. * test/BtChokeMessageTest.cc
  10684. * test/DefaultPeerStorageTest.cc
  10685. * test/BtHaveNoneMessageTest.cc
  10686. * test/BtHaveAllMessageTest.cc
  10687. * test/DefaultExtensionMessageFactoryTest.cc
  10688. * test/BtUnchokeMessageTest.cc
  10689. * test/DefaultBtMessageFactoryTest.cc
  10690. * test/HandshakeExtensionMessageTest.cc
  10691. * test/UTPexExtensionMessageTest.cc
  10692. * test/DefaultBtRequestFactoryTest.cc
  10693. * test/BtPieceMessageTest.cc
  10694. Removed typedef PeerStats.
  10695. * src/PeerStat.h
  10696. * src/SegmentMan.cc
  10697. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10698. Added std namespace to copy, remove_copy, back_inserter,
  10699. front_inserter.
  10700. * src/RequestGroupMan.cc
  10701. * src/DefaultPieceStorage.cc
  10702. * src/StreamFileAllocationEntry.cc
  10703. * src/BtFileAllocationEntry.cc
  10704. * src/RequestGroup.cc
  10705. * src/MetalinkEntry.cc
  10706. * src/DelegatingPeerListProcessor.cc
  10707. * src/DefaultBtRequestFactory.cc
  10708. * src/DefaultBtMessageDispatcher.cc
  10709. * src/version_usage.cc: Included <algorithm>
  10710. * src/main.cc
  10711. * src/MetalinkParserController.cc
  10712. * src/DefaultBtContext.cc
  10713. * src/DownloadEngineFactory.cc
  10714. * src/a2algo.h
  10715. Removed.
  10716. * test/StreamUriListParserTest.cc
  10717. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10719. ActivePeerConnectionCommand when it is given and
  10720. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10721. * src/ActivePeerConnectionCommand.{h, cc}
  10722. * src/BtSetup.cc
  10723. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10724. Only add socket to DownloadEngine's select routine when peer or
  10725. localhost is unchoked and interested. This lowers CPU usage a
  10726. little bit.
  10727. * src/PeerInteractionCommand.cc
  10728. * src/PeerAbstractCommand.{h, cc}
  10729. * src/BtInteractive.h
  10730. * src/DefaultBtInteractive.{h, cc}
  10731. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10732. Revert previous change because get_peers message is needed for
  10733. announce_peer anyway.
  10734. * src/DHTGetPeersCommand.cc
  10735. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10736. Request peers thought DHT only when download hasn't finished.
  10737. * src/DHTGetPeersCommand.cc
  10738. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10739. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10740. * src/DHTBucketRefreshTask.{h, cc}
  10741. * src/DHTSetup.cc
  10742. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10743. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10744. standard classes.
  10745. Included string.h where mem* function are used.
  10746. Added namespace aria2.
  10747. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10748. Create directory before saving DHT routing table.
  10749. Now ios::failure is now handled properly.
  10750. * src/DHTAutoSaveCommand.cc
  10751. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10752. Removed unnecessary cerr.
  10753. * src/DownloadEngine.cc
  10754. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10755. Catch exception inside DHTMessageReceiver::receiveMessage().
  10756. Log unknown message.
  10757. * src/DHTMessageReceiver.{h, cc}
  10758. * src/DHTMessageFactory.h
  10759. * src/DHTMessageFactoryImpl.{h, cc}
  10760. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10761. * src/DHTInteractionCommand.cc
  10762. * src/DHTUnknownMessage.{h, cc}
  10763. * test/DHTUnknownMessageTest.cc
  10764. * test/MockDHTMessageFactory.h
  10765. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10766. Commented out ip address comparison because a host can have multiple
  10767. ip addresses and it is hard to predict the hostname is resolved into
  10768. which one.
  10769. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10770. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10771. * po/Makefile.in: Removed since this is generated by configure.
  10772. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10773. Fixed compiler warning about redefinition of SIZE_MAX.
  10774. Use common.h instead of config.h directly here.
  10775. * src/Platform.{h, cc}
  10776. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10777. here.
  10778. * common.h
  10779. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  10780. Updated gettext related files.
  10781. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10782. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10783. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10784. Added DHT functionality, compatible with mainline.
  10785. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10786. You may need to specify entry point to DHT network using
  10787. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10788. Use --dht-listen-port to specify port number. Make sure that your
  10789. firewall configuration can pass through UDP traffic to the port.
  10790. The routing table is saved in $HOME/.aria2/dht.dat.
  10791. * src/DHT*
  10792. * src/BNode.{h, cc}
  10793. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10794. particular torrent.
  10795. * src/Data.cc: Rewritten ctor.
  10796. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10797. --dht-entry-point.
  10798. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10799. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10800. ends, remove BtContext from DHTPeerAnnounceStorage.
  10801. * src/BtPortMessage.{h, cc}: Rewritten.
  10802. * src/message.h
  10803. * src/OptionHandlerImpl.cc
  10804. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10805. --dht-entry-point.
  10806. * src/Dictionary.{h, cc} (remove): New function.
  10807. * src/prefs.h
  10808. * src/DefaultBtMessageFactory.h
  10809. * src/BtHandshakeMessage.cc
  10810. * src/ActivePeerConnectionCommand.cc
  10811. * src/SocketCore.{h, cc}: Added datagram socket support.
  10812. * src/DefaultBtMessageFactory.cc
  10813. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10814. Create DHT commands.
  10815. * src/BtMessageFactory.h
  10816. * src/PeerMessageUtil.{h, cc}
  10817. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10818. Fixed the bug that log file is not written when configuration file doesn't exist.
  10819. This is caused by using Logger class before LogFactory is not configured.
  10820. BUG #1875079
  10821. * src/option_processing.cc
  10822. Warning message "configuration doesn't exist" is only printed when --conf is
  10823. given.
  10824. * src/option_processing.cc
  10825. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10826. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10827. ShaVisitor is now deprecated and slated to be removed.
  10828. * src/DefaultBtContext.cc
  10829. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10830. Externalize message to message.h
  10831. * src/Platform.cc
  10832. * src/message.h
  10833. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. Set default domain and default path to cookie.
  10835. * src/HttpResponse.cc
  10836. * src/CookieBox.{h, cc}
  10837. * src/CookieParser.{h, cc}
  10838. * test/CookieParserTest.cc
  10839. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10840. Added --no-conf and --conf-path command-line option.
  10841. --no-conf option disables loading aria2.conf file.
  10842. --conf-path option changes the configuration file path. The default
  10843. file path is $HOME/.aria2/aria2.conf
  10844. Added a warning message when the configuration file is not found.
  10845. * src/HelpItemFactory.cc
  10846. * src/option_processing.cc
  10847. * src/prefs.h
  10848. * src/usage_text.h
  10849. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10850. Added the message to inform users that other help categories are
  10851. available in -h option.
  10852. * src/version_usage.cc
  10853. * src/TagContainer.{h, cc}
  10854. * test/TagContainerTest.cc
  10855. * src/TaggedItem.{h, cc}
  10856. * test/TaggedItemTest.cc
  10857. * src/HelpItem.h
  10858. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10859. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10860. from PiecedSegment's ctor.
  10861. Previously Piece::getAllMissingBlockIndexes() is called from
  10862. PiecedSegment() but it is rather expensive since only first element is
  10863. used.
  10864. * src/PiecedSegment.cc
  10865. * src/Piece.{h, cc}
  10866. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10867. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10868. each time these functions are called.
  10869. * src/BitfieldMan.{h, cc}
  10870. * test/BitfieldManTest.cc
  10871. * src/array_fun.h
  10872. * test/array_funTest.cc
  10873. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10874. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10875. filtered. Removed unnecessary cast to int32_t.
  10876. * src/BitfieldMan.{h, cc}
  10877. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10878. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10879. payload length(4bytes) are received. This happens because lenbufLength
  10880. is not updated in this particular case and successive call of
  10881. receiveMessage() overwrites payload length with bytes recieved which
  10882. are payload body.
  10883. * src/PeerConnection.{h, cc}
  10884. * src/message.h
  10885. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10886. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10887. peer if there are peers that have same ipaddr and port.
  10888. I've experiened segmentation fault and "pure virtual function was
  10889. called" error.
  10890. * src/Peer.h
  10891. * test/PeerTest.cc
  10892. * src/DefaultPeerStorage.cc
  10893. * test/DefaultPeerStorageTest.cc
  10894. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10895. Removed a call to isPowerOf() because it is no longer necessary here
  10896. and a request block is not always power of 2.
  10897. BUG#1866924
  10898. * src/PeerMessageUtil.cc (checkLength)
  10899. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10900. Fixed the bug that always first found Segment is removed from
  10901. usedSegmentEntries. Removed unused functions.
  10902. * src/SegmentMan.{h, cc}
  10903. * test/SegmentManTest.cc
  10904. Fixed the bug that ServerHost is not removed.
  10905. * src/RequestGroup.cc
  10906. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10907. Fixed the bug that SegmentMan::completeSegment() is not called
  10908. even if Segment is complete when --lowest-speed-limit is enabled.
  10909. BUG#1864525
  10910. * src/DownloadCommand.{h, cc}
  10911. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10912. Fixed: hash algorithm 'sha1' is always used.
  10913. * src/DownloadCommand.cc (validatePieceHash)
  10914. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10915. Added --enable-peer-exchange command-line option.
  10916. * src/OptionHandlerFactory.cc
  10917. * src/HelpItemFactory.cc
  10918. * src/option_processing.cc
  10919. * src/usage_text.h
  10920. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10921. Move extension from BtRuntime to ExtensionMessageFactory, because
  10922. extension can be specified per peer, not per torrent.
  10923. * src/DefaultBtInteractive.cc
  10924. * src/BtRuntime.h
  10925. * src/ExtendedMessagingAware.h
  10926. * src/ExtensionMessageFactory.h
  10927. * src/DefaultExtensionMessageFactory.cc
  10928. * test/DefaultExtensionMessageFactoryTest.cc
  10929. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10930. Added categorized option help. Specify category using --help option.
  10931. Also added the ability to search options in forward match.
  10932. * src/HelpItem.{h, cc}
  10933. * test/HelpItemTest.cc
  10934. * src/HelpItemFactory.{h, cc}
  10935. * src/TagContainer.{h, cc}
  10936. * test/TagContainerTest.cc
  10937. * src/option_processing.cc
  10938. * src/prefs.h
  10939. * src/TaggedItem.{h, cc}
  10940. * test/TaggedItemTest.cc
  10941. * src/version_usage.cc
  10942. * src/help_tags.h
  10943. * src/usage_text.h
  10944. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. Fixed segmentation fault when bad torrent metainfo is parsed.
  10946. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10947. and then throw exception or skip it.
  10948. * src/DefaultBtContext.{h, cc}
  10949. * test/DefaultBtContextTest.cc
  10950. * src/AnnounceList.cc
  10951. * src/CompactPeerListProcessor.cc
  10952. * src/message.h
  10953. * src/DefaultBtAnnounce.{h, cc}
  10954. * test/DefaultBtAnnounceTest.cc
  10955. * src/BencodeVisitor.cc
  10956. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10957. Added missing "B"(=Byte). So now the message looks like this:
  10958. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10959. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10960. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10961. Show the seed ratio after torrent downloads.
  10962. For example, after torrent download completed and --seed-time and
  10963. --seed-ratio conditions are fulfilled, following message is printed
  10964. right after "Download complete: .....":
  10965. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10966. * src/RequestGroupMan.cc
  10967. * src/RequestGroup.{h, cc}
  10968. * src/message.h
  10969. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10970. Remove a defunct control file. A defunct control file means that while
  10971. it exists, but the corresponding download file is missing.
  10972. After its removal, a download restarts from the beginning.
  10973. * src/RequestGroup.cc
  10974. * src/message.h
  10975. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10976. Allocate bitfield in Peer when it is really used. More specifically,
  10977. bitfield in Peer is allocated after the connection is established and
  10978. deallocated when the connection is dropped.
  10979. Since 2 parameters(piece length and total length) was removed from the
  10980. constructor of Peer class, many test classes were modified accordingly.
  10981. See svn log for more detailed information.
  10982. * src/PeerInteractionCommand.cc
  10983. * src/CompactPeerListProcessor.cc
  10984. * src/Peer.cc
  10985. * src/DefaultPeerListProcessor.cc
  10986. * src/PeerListenCommand.cc
  10987. * src/PeerReceiveHandshakeCommand.cc
  10988. Fixed memory leak
  10989. * src/Piece.cc
  10990. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10991. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10992. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10993. command-line options.
  10994. * src/option_processing.cc
  10995. * src/ActivePeerConnectionCommand.cc
  10996. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10997. Send have message to peer if it already has the piece.
  10998. * src/BtHaveMessage.{h, cc}
  10999. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11000. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11001. port.
  11002. * src/DefaultPeerStorage.{h, cc}
  11003. * test/DefaultPeerStorageTest.cc
  11004. * src/HandshakeExtensionMessage.cc
  11005. * test/HandshakeExtensionMessageTest.cc
  11006. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11007. * src/PeerStorage.h
  11008. * test/MockPeerStorage.h
  11009. * src/PeerListenCommand.cc
  11010. * src/PeerReceiveHandshakeCommand.cc
  11011. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11012. Added --metalink-enable-unique-protocol option.
  11013. * src/Metalink2RequestGroup.cc
  11014. * src/option_processing.cc
  11015. * src/prefs.h
  11016. * src/version_usage.cc
  11017. * doc/aria2c.1.txt
  11018. * doc/aria2c.1
  11019. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11020. Allow a peer in incomingPeer to be added peers.
  11021. * src/DefaultPeerStorage.cc
  11022. * test/DefaultPeerStorageTest.cc
  11023. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11024. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11025. I could reproduce this bug in following procedure:
  11026. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11027. 2. Restart aria2.
  11028. 3. You see the download stopped around 99%.
  11029. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11030. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11031. If timeout is reached, then _nextCommand is unused and it may contains
  11032. segments and they won't be canceled. Actually, timeout is not needed
  11033. here because if the server dropped connection, then retry is made.
  11034. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11035. Added uTorrent compatible Peer Exchange.
  11036. * src/BencodeVisitor.{h, cc}
  11037. * test/BencodeVisitorTest.cc
  11038. * src/BtConstants.h
  11039. * src/BtContext.h: Added 'private' flag.
  11040. * src/BtExtendedMessage.{h, cc}
  11041. * test/BtExtendedMessageTest.cc
  11042. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11043. reserved field.
  11044. * test/BtHandshakeMessageTest.cc
  11045. * src/BtMessageFactory.h
  11046. * src/BtRegistry.h
  11047. * src/BtRuntime.h: This class holds default extension message IDs for
  11048. aria2. By default, aria2 uses ID 8 for ut_pex.
  11049. * src/DefaultBtContext.cc
  11050. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11051. When it is true, aria2 enables ut_pex. This value is set by
  11052. PeerInteractionCommand.
  11053. * src/DefaultBtMessageFactory.{h, cc}
  11054. * test/DefaultBtMessageFactoryTest.cc
  11055. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11056. handling to DefaultBtInteractive class.
  11057. * src/DefaultExtensionMessageFactory.{h, cc}
  11058. * test/DefaultExtensionMessageFactoryTest.cc
  11059. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11060. the container(peers and incomingPeers. The equality is determined by
  11061. Peer::id).
  11062. * test/DefaultPeerStorageTest.cc
  11063. * src/ExtensionMessage.h
  11064. * test/MockExtensionMessage.h
  11065. * src/ExtensionMessageFactory.h
  11066. * test/MockExtensionMessageFactory.h
  11067. * src/HandshakeExtensionMessage.{h, cc}
  11068. * test/HandshakeExtensionMessageTest.cc
  11069. * src/MetaEntry.h
  11070. * src/Peer.{h, cc}
  11071. * src/PeerInteractionCommand.cc
  11072. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11073. addIncomingPeer.
  11074. * src/PeerMessageUtil.{h, cc}
  11075. * src/PeerObject.h
  11076. * src/UTPexExtensionMessage.{h, cc}
  11077. * test/UTPexExtensionMessageTest.cc
  11078. * src/message.h
  11079. * src/prefs.h
  11080. Fixed the bug that returns incomplete data when it contains null
  11081. character. A convenient constructor was also added.
  11082. * src/Data.{h, cc}
  11083. Rewritten.
  11084. * src/CompactPeerListProcessor.cc
  11085. Fixed typos.
  11086. * src/message.h
  11087. * src/MetaFileUtil.cc
  11088. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11089. Added "Status Legend" label to the explanation text of 'stat' in
  11090. download result and moved it to the last. BUG#1848214
  11091. * src/RequestGroupMan.cc
  11092. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11093. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11094. * src/Makefie.am
  11095. * test/Makefile.am
  11096. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11097. Fixed the bug that prevents aria2 from loading cookie file when expire
  11098. value is greater than 2^31-1. BUG#1851066
  11099. * src/CookieBoxFactory.cc
  11100. * test/CookieBoxFactoryTest.cc
  11101. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11102. Fixed possible memory leak when an exception is thrown.
  11103. * src/XML2SAXMetalinkProcessor.cc
  11104. Added Expat support. If both libxml2 and Expat are installed, then
  11105. libxml2 is used by default.
  11106. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11107. ExpatMetalinkProcessor according to the configuration.
  11108. * src/ExpatMetalinkProcessor.{h, cc}
  11109. * src/main.cc: Removed libxml2 specific header and init/free function.
  11110. * src/MetalinkProcessorFactory.{h, cc}
  11111. * src/MetalinkHelper.cc
  11112. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11113. * src/MetalinkProcessor.h
  11114. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11115. MetalinkProcessorTest is used instead.
  11116. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11117. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11118. MetalinkProcessorFactory::newInstance().
  11119. * m4/libexpat.m4
  11120. * configure.ac: Added configuration options for libexpat.
  11121. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11122. Disabled -s option in metalink download.
  11123. * src/Metalink2RequestGroup.cc
  11124. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11125. If several protocols are available for a mirror in metalink file,
  11126. aria2 now use one of them. --metalink-preferred-protocol option was
  11127. added to specify the preference of protocol.
  11128. * src/AbstractCommand.cc
  11129. * src/OptionHandlerFactory.cc
  11130. * src/ServerHost.{h, cc}
  11131. * src/Metalink2RequestGroup.cc
  11132. * src/RequestGroup.{h, cc}
  11133. * test/RequestGroupTest.cc
  11134. * src/option_processing.cc
  11135. * src/prefs.h
  11136. * src/HttpResponseCommand.cc
  11137. * src/MetalinkResource.{h, cc}
  11138. * src/FtpNegotiationCommand.cc
  11139. * src/MetalinkEntry.{h, cc}
  11140. * src/MetalinkEntryTest.cc
  11141. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11142. Code cleanup and added debug log.
  11143. * src/PeerConnection.cc
  11144. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11145. Compiler error fix: applied the patch by Tiziano Mueller
  11146. * src/RequestGroup.cc
  11147. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11148. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11149. in stopped and completed event.
  11150. * src/AnnounceList.{h, cc}
  11151. * test/AnnounceListTest.cc
  11152. * src/DefaultBtAnnounce.cc
  11153. * test/DefaultBtAnnounceTest.cc
  11154. Sorted URLs.
  11155. * test/Metalink2RequestGroupTest.cc
  11156. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11157. Removed unnecessary string copy. Updated doc and corrected indentation.
  11158. * src/Base64.cc
  11159. Fixed compilation warnings
  11160. * test/DataTest.cc
  11161. * test/HttpRequestTest.cc
  11162. * test/MetaFileUtilTest.cc
  11163. * test/RequestTest.cc
  11164. * Release 0.12.0
  11165. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11166. Updated translations
  11167. * po/{de,fr,ja,nl,ru}.po
  11168. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11169. translations. Many thanks to translators.
  11170. * po/{ca,es,it,pt_BR,sv}.po
  11171. * po/LINGUAS
  11172. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Added a notice about URL
  11174. * src/version_usage.cc
  11175. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11176. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11177. aria2 repeatedly sends stopped request when tracker returns error code.
  11178. * src/AnnounceList.cc
  11179. * test/AnnounceListTest.cc
  11180. * src/AnnounceTier.h
  11181. Added a message when ctrl-c is hit.
  11182. Now second ctrl-c is also handled in signal handler.
  11183. * src/RequestGroupMan.{h, cc}
  11184. * src/RequestGroup.{h, cc}
  11185. * src/MultiUrlRequestInfo.cc
  11186. * src/DownloadEngine.cc
  11187. * src/TrackerWatcherCommand.cc
  11188. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11189. Code cleanup
  11190. * src/Base64.cc (encode)
  11191. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11192. Changed Direct/IO enable/disable procesure in file allocation routine.
  11193. * src/SingleFileAllocationIterator.cc
  11194. (SingleFileAllocationIterator):
  11195. Disable directIO if offset is not multiple of 512.
  11196. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11197. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11198. Enable created SingleFileAllocationIterator's directIO.
  11199. * src/FileAllocationEntry.cc
  11200. (FileAllocationEntry): Enable directIO here.
  11201. (~FileAllocationEntry): Disable directIO here.
  11202. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11203. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11204. * src/Peer.{h, cc}
  11205. * src/DefaultPieceStorage.cc
  11206. * test/DefaultPieceStorageTest.cc
  11207. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11208. Rewritten direct I/O support routine
  11209. * src/SingleFileAllocationIterator.cc
  11210. * src/MultiDiskAdaptor.{h, cc}
  11211. * src/ByteArrayDiskWriter.h
  11212. * src/AbstractSingleDiskAdaptor.h
  11213. * src/AbstractDiskWriter.cc
  11214. * src/DefaultPieceStorage.cc
  11215. * src/DiskWriter.h
  11216. * src/BinaryStream.h
  11217. * src/IteratableChunkChecksumValidator.cc
  11218. * src/IteratableChecksumValidator.cc
  11219. * src/CheckIntegrityEntry.cc
  11220. * src/FileAllocationEntry.cc
  11221. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11222. Fixed typo
  11223. * src/version_usage.cc
  11224. Updated doc
  11225. * doc/aria2c.1.txt
  11226. * doc/aria2c.1
  11227. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11228. Fixed compile error without message digest support.
  11229. * src/FileMetalinkParserState.cc
  11230. * src/MetalinkParserController.{h, cc}
  11231. * test/XML2SAXMetalinkProcessorTest.cc
  11232. * test/MetalinkParserControllerTest.cc
  11233. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11234. Enable direct I/O support in checksum checking.
  11235. * src/IteratableChunkChecksumValidator.{h, cc}
  11236. * test/IteratableChunkChecksumValidatorTest.cc
  11237. * src/CheckIntegrityEntry.cc
  11238. * src/PieceHashCheckIntegrityEntry.cc
  11239. * src/IteratableChecksumValidator.{h, cc}
  11240. * src/BtCheckIntegrityEntry.cc: Added doc.
  11241. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11242. Added --allow-piece-length-change option.
  11243. * src/DefaultBtProgressInfoFile.cc
  11244. * test/DefaultBtProgressInfoFileTest.cc
  11245. * src/OptionHandlerFactory.cc
  11246. * src/option_processing.cc
  11247. * src/prefs.h
  11248. * src/version_usage.cc
  11249. * doc/aria2c.1.txt
  11250. * doc/aria2c.1
  11251. Fixed: duplicated result entry appears when exception is thrown in
  11252. RequestGroup::createInitiateConnectionCommand().
  11253. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11254. Add RequestGroup to _requestGroup after RequetGroup::
  11255. createInitiateConnectionCommand() succeeds.
  11256. Externalized message
  11257. * src/XML2SAXMetalinkProcessor.cc
  11258. * src/message.h
  11259. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11260. Forced download abort when received negative response from http/ftp
  11261. server.
  11262. * src/HttpResponseCommand.cc
  11263. * src/FtpNegotiationCommand.cc
  11264. * src/HttpResponse.cc
  11265. * src/FtpConnection.cc
  11266. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11267. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11268. the predecessor, Xml2MetalinkParser class.
  11269. I tested them against 94KB metalink file with 1234 chunk checksums.
  11270. The new one parsed it in 22msec, while it took 6000msec with old one.
  11271. * src/XML2SAXMetalinkProcessor.{h, cc}
  11272. * test/XML2SAXMetalinkProcessorTest.cc
  11273. * src/MetalinkParserController.{h, cc}
  11274. * test/MetalinkParserControllerTest.cc
  11275. * src/MetalinkParserState.h: Also added 16 subclasses.
  11276. * src/main.cc
  11277. * src/Metalink2RequestGroup.cc
  11278. * src/MetalinkHelper.cc
  11279. * src/MetalinkEntry.cc
  11280. * src/ChunkChecksum.h
  11281. Rewritten Base64 class for better performance.
  11282. * src/Base64.{h, cc}
  11283. * test/Base64Test.cc
  11284. * src/HttpRequest.cc
  11285. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11286. Fixed the bug#1841757: aria2 will connect to server to only get
  11287. file size.
  11288. * src/StreamFileAllocationEntry.cc
  11289. * src/option_processing.cc
  11290. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11291. downloads.
  11292. * src/FtpNegotiationCommand.cc
  11293. Suppressed wrong message when finding PreDownloadHandler
  11294. * src/RequestGroup.cc
  11295. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11296. Updated usage
  11297. * src/version_usage.cc
  11298. Updated man page
  11299. * doc/aria2c.1.txt
  11300. * doc/aria2c.1
  11301. Updated po files
  11302. * po/aria2c.pot
  11303. * po/*.po
  11304. * po/*.gmo
  11305. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11306. Eliminated g++-4.2 warning
  11307. * src/DownloadHandlerConstants.{h, cc}
  11308. * src/Util.cc
  11309. * test/MetaFileUtilTest.cc
  11310. * test/PStringBuildVisitorTest.cc
  11311. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11312. * src/RequestGroup.cc
  11313. * src/BtCheckIntegrityEntry.cc
  11314. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11315. Fixed a2io.h
  11316. * src/a2io.h
  11317. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11318. Added direct I/O support. The current implementation uses O_DIRECT,
  11319. which is not posix standard and is tested on linux 2.6.21.
  11320. Currently only file allocation uses direct I/O.
  11321. * src/SingleFileAllocationIterator.{h, cc}
  11322. * test/SingleFileAllocationIteratorTest.cc
  11323. * src/MultiFileAllocationIterator.{h, cc}
  11324. * test/MultiFileAllocationIteratorTest.cc
  11325. * src/BinaryStream.h
  11326. * src/DiskWriter.h
  11327. * src/AbstractDiskWriter.{h, cc}
  11328. * src/ByteArrayDiskWriter.h
  11329. * src/DiskAdaptor.h
  11330. * src/AbstractSingleDiskAdaptor.{h, cc}
  11331. * src/MultiDiskAdaptor.{h, cc}
  11332. * src/FileAllocationEntry.cc
  11333. * src/Util.{h, cc}
  11334. * src/OptionHandlerFactory.cc
  11335. * src/prefs.h
  11336. * src/version_usage.cc
  11337. * src/option_processing.cc
  11338. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11339. handleException.
  11340. * src/MultiFileAllocationIterator.cc
  11341. Added EINTR handling
  11342. * src/SocketCore.cc
  11343. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. Updated usage
  11345. * src/version_usage.cc
  11346. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11347. Applied Ross's patch for MinGW port.
  11348. * src/DownloadEngine.h
  11349. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11350. Set Content-Type to SingleFileDownloadContext when http response is
  11351. received.
  11352. * src/HttpResponseCommand.cc
  11353. * src/HttpResponse.{h, cc}
  11354. * test/HttpResponseTest.cc
  11355. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11356. Rewritten to add content-type support.
  11357. * src/DownloadHandler.{h, cc}
  11358. * src/BtPostDownloadHandler.{h, cc}
  11359. * test/BtPostDownloadHandlerTest.cc
  11360. * src/MetalinkPostDownloadHandler.{h, cc}
  11361. * test/MetalinkPostDownloadHandlerTest.cc
  11362. * src/PostDownloadHandler.{h, cc}
  11363. * src/DownloadHandlerConstants.{h, cc}
  11364. * src/RequestGroup.cc
  11365. * src/HttpResponseCommand.cc
  11366. * src/FtpNegotiationCommand.cc
  11367. * src/SingleFileDownloadContext.{h, cc}
  11368. * src/RequestGroup.h
  11369. * src/RequestGroupCriteria.h
  11370. * src/ContentTypeRequestGroupCriteria.h
  11371. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11372. If it is give, metalink/torrent file is not written to the disk, but
  11373. just is kept in memory. Parsing is occurred on memory.
  11374. * src/MetalinkHelper.{h, cc}
  11375. * src/MetalinkProcessor.h
  11376. * src/Xml2MetalinkProcessor.{h, cc}
  11377. * test/Xml2MetalinkProcessorTest.cc
  11378. * src/DownloadHandlerFactory.{h, cc}
  11379. * test/DownloadHandlerFactoryTest.cc
  11380. * src/PreDownloadHandler.{h, cc}
  11381. * src/OptionHandlerFactory.cc
  11382. * src/DefaultBtContext.{h, cc}
  11383. * test/DefaultBtContextTest.cc
  11384. * src/version_usage.cc
  11385. * src/Metalink2RequestGroup.{h, cc}
  11386. * src/RequestGroup.{h, cc}
  11387. * src/a2functional.h
  11388. * test/a2functionalTest.cc
  11389. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11390. * src/OptionHandlerImpl.h
  11391. * src/prefs.h
  11392. * src/Util.{h, cc}
  11393. * test/UtilTest.cc
  11394. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11395. memory usage.
  11396. * src/RequestGroupMan.{h, cc}
  11397. * src/DownloadEngine.cc
  11398. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11399. WeakHandle to SharedHandle because WeakHandle could be null.
  11400. * src/RequestGroup.{h, cc}
  11401. * src/DownloadEngineFactory.cc
  11402. * src/DownloadResult.h
  11403. Set totalLength after download finished
  11404. * src/UnknownLengthPieceStorage.{h, cc}
  11405. Keep torrent file specified in metalink in memory.
  11406. * src/Metalink2RequestGroup.cc
  11407. * src/BtDependency.cc
  11408. * src/TrueRequestGroupCriteria.h
  11409. Fixed the bug: seekg is used where seekp should be used.
  11410. * src/ByteArrayDiskWriter.cc
  11411. * test/ByteArraydiskWriterTest.cc
  11412. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11413. Fixed syntax error
  11414. * test/SequenceTest.cc
  11415. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11416. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11417. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11418. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11419. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11420. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11421. Added the check to see whether ares_host_callback accepts timeouts
  11422. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11423. * src/NameResolver.{h, cc}
  11424. * m4/libcares.m4
  11425. * configure.ac: Set C++ for language choice.
  11426. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11427. Fixed: compilation fails without c-ares/ares
  11428. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11429. Generate http/ftp commands only when download is incomplete.
  11430. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11431. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11432. Corrected typo. Examples are removed since they are available in man
  11433. page.
  11434. * src/version_usage.cc
  11435. Updated man page.
  11436. * doc/aria2c.1
  11437. * doc/aria2c.1.txt
  11438. * doc/makeman: Commented out sed command.
  11439. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11440. Throw DlAbortEx when a remote file is not found.
  11441. * src/HttpResponse.cc
  11442. * src/FtpNegotiationCommand.cc
  11443. * src/message.h
  11444. Overwrite an existing file if --allow-overwrite=true is given.
  11445. * src/RequestGroup.cc
  11446. Removed unused functions
  11447. * src/AbstractCommand.h
  11448. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11449. Removed 'extern' from 'extern typedef ...' in src/*.h
  11450. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11451. Updated usage
  11452. * src/version_usage.cc
  11453. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11454. Trim announce URL
  11455. * src/DefaultBtContext.cc
  11456. * test/ShaVisitorTest.cc
  11457. Trim argument s. Give trimed s to exception constructor.
  11458. * src/Util.cc (parseInt)(parseLLInt)
  11459. * test/UtilTest.cc
  11460. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11461. Set precision back to 1.
  11462. * src/ConsoleStatCalc.cc (calculateStat)
  11463. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11464. Replaced strtol with Util::parseInt
  11465. * src/ChunkedEncoding.cc
  11466. * src/HttpConnection.cc
  11467. * src/CookieBoxFactory.cc
  11468. * src/ParameterizedStringParser.cc
  11469. * src/Util.cc
  11470. * test/UtilTest.cc
  11471. * test/OptionHandlerTest.cc
  11472. * src/Request.cc
  11473. Throw exception when empty string is given. The message for exception
  11474. changed.
  11475. * src/Util.cc (parseInt)(parseLLInt)
  11476. * src/message.h
  11477. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11478. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11479. set to 1.
  11480. * src/ConsoleStatCalc.cc (calculateStat)
  11481. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11482. Preallocate non-requested file which is adjacent forward to requested
  11483. file('requested' files means the files given in --select-file option)
  11484. if they share a same piece.
  11485. This fixes long pause in the file system which doesn't support sparse
  11486. files like FAT32 while downloading.
  11487. * src/MultiFileAllocationIterator.{h, cc}
  11488. * test/MultiFileAllocationIteratorTest.cc
  11489. * src/FileEntry.{h, cc}
  11490. Removed unused _option.
  11491. * src/MultiDiskAdaptor.h
  11492. * test/MultiDiskAdaptorTest.cc
  11493. * src/DefaultPieceStorage.cc
  11494. Set the default value of --seed-ratio to 1.0.
  11495. If 0.0 is given, then seeding continues regardless of share ratio.
  11496. * src/version_usage.cc
  11497. * src/option_processing.cc
  11498. * src/BtSetup.cc
  11499. * doc/aria2c.1.txt
  11500. * doc/aria2c.1
  11501. Fixed: Selective download is not working in BitTorrent
  11502. * src/RequestGroup.cc
  11503. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11504. * src/PieceStorage.h
  11505. * test/MockPieceStorage.h
  11506. * src/UnknownLengthPieceStorage.h
  11507. * src/DefaultPieceStorage.{h, cc}
  11508. * src/Metalink2RequestGroup.cc
  11509. * src/RequestGroup.cc
  11510. * src/Sequence.h
  11511. * test/SequenceTest.cc
  11512. * src/IntSequence.h
  11513. * src/message.h
  11514. * src/Util.{h, cc}
  11515. * test/UtilTest.cc
  11516. Added new function 'parse' to catch exception thrown by subclass's
  11517. parseArg
  11518. * src/OptionHandler.h
  11519. * src/OptionParser.cc
  11520. * src/NameMatchOptionHandler.h
  11521. * src/OptionHandlerImpl.h
  11522. * test/OptionHandlerTest.cc
  11523. Added IntegerRangeOptionHandler. Used for --listen-port and
  11524. --select-file. Now --listen-port accepts range of port.
  11525. * src/OptionHandlerFactory.cc
  11526. * src/version_usage.cc
  11527. * src/OptionHandlerImpl.h
  11528. * src/option_processing.cc
  11529. * src/BtSetup.cc
  11530. * src/PeerListenCommand.{h, cc}
  11531. * doc/aria2c.1.txt
  11532. * doc/aria2c.1
  11533. Implemented operator< for Exception class to provide easy way to print
  11534. exception stack trace.
  11535. * src/Exception.{h, cc}
  11536. * src/main.cc
  11537. * src/option_processing.cc
  11538. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11539. * src/version_usage.cc
  11540. (showVersion): Reworked.
  11541. (showUsage): Added examples.
  11542. Removed Hint for total length and file name.
  11543. * src/Metalink2RequestGroup.cc
  11544. * src/RequestGroup.{h, cc}
  11545. * src/HttpResponseCommand.cc
  11546. * src/FtpNegotiationCommand.cc
  11547. Now --follow-torrent and --follow-metalink option work properly.
  11548. * src/RequestGroup.cc
  11549. Updated man page
  11550. * doc/aria2c.1.txt
  11551. * doc/aria2c.1
  11552. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11553. Removed.
  11554. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11555. Use Segment::operator==()
  11556. * src/HttpConnection.cc
  11557. * src/Segment.h
  11558. Updated usage
  11559. * src/version_usage.cc
  11560. Added EINTR treatment.
  11561. * src/SocketCore.cc
  11562. * src/AbstractDiskWriter.cc
  11563. Rewritten.
  11564. * src/Util.cc (rangedFileCopy)
  11565. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11566. Fixed typo.
  11567. * src/version_usage.cc
  11568. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11569. Implemented. Now -c option works fine.
  11570. * src/DefaultPieceStorage.cc (markPiecesDone)
  11571. * test/DefaultPieceStorageTest.cc
  11572. Removed.
  11573. * src/SegmentMan.{h, cc}
  11574. (markAllPiecesDone)
  11575. (markPieceDone)
  11576. Synchronized po files with
  11577. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11578. * src/fr.po
  11579. * src/ru.po
  11580. * src/de.po
  11581. * src/ja.po
  11582. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11583. Added ifdef and some modifications to compile without BitTorrent,
  11584. Metalink, MessageDigest
  11585. support.
  11586. * src/PieceHashCheckIntegrityEntry.cc
  11587. * src/MetalinkEntry.h
  11588. * src/version_usage.cc
  11589. * src/main.cc
  11590. * src/DownloadEngine.{h, cc}
  11591. * src/Metalink2RequestGroup.cc
  11592. * src/Peer.cc
  11593. * src/RequestGroup.cc
  11594. * src/MetalinkHelper.cc
  11595. * test/DefaultPieceStorageTest.cc
  11596. * test/MetalinkPostDownloadHandlerTest.cc
  11597. * test/Metalink2RequestGroupTest.cc
  11598. Hide TOTAL SPD when all downloads complete.
  11599. * src/ConsoleStatCalc.cc
  11600. Log target system information.
  11601. * src/main.cc
  11602. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11603. Now --metalink-location accepts a comma-deliminated list of locations.
  11604. * src/MetalinkEntry.{h, cc}
  11605. * test/MetalinkEntryTest.cc
  11606. * src/version_usage.cc
  11607. * src/Metalink2RequestGroup.cc
  11608. * src/Xml2MetalinkProcessor.cc
  11609. * test/Xml2MetalinkProcessorTest.cc
  11610. * doc/aria2c.1.txt
  11611. * doc/aria2c.1
  11612. * src/Util.cc (toUpper)(toLower): Rewritten.
  11613. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11614. Added the ability to detect duplicate download entry which is about to
  11615. download the same file other RequestGroup is downloading.
  11616. * src/RequestGroup.cc
  11617. * src/HttpResponseCommand.cc
  11618. * src/FtpNegotiationCommand.cc
  11619. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11620. Recalculates download progress when loading a control file,
  11621. if the piece length of DownloadContext is different from the one saved
  11622. in the control file. Currently in-flight pieces are ignored.
  11623. * src/DefaultBtProgressInfoFile.cc
  11624. * test/DefaultBtProgressInfoFileTest.cc
  11625. * src/Util.{h, cc}
  11626. * test/UtilTest.cc
  11627. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11628. Do not rotate tiers in announce-list.
  11629. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11630. AnnounceList::allTiersFailed() used instead to detect whether all
  11631. tiers are tried and failed.
  11632. * test/DefaultBtAnnounceTest.cc
  11633. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11634. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11635. * test/AnnounceListTest.cc
  11636. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11637. clause. Catch RecoverableException instead of DlRetryEx instead.
  11638. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11639. Implemented checksum validation feature(1 checksum for each file)
  11640. The validation takes place after the download.
  11641. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11642. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11643. * src/CheckIntegrityCommand.cc: Changed log message.
  11644. * src/Metalink2RequestGroup.cc: Set checksum to
  11645. SingleFileDownloadContext.
  11646. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11647. PieceHashCheckIntegrity class.
  11648. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11649. PieceHashCheckIntegrity class.
  11650. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11651. * src/IteratableValidator.h: New class.
  11652. * src/message.h
  11653. * src/CheckIntegrityEntry.{h, cc}
  11654. * src/IteratableChunkChecksumValidator.{h, cc}
  11655. * src/SingleFileDownloadContext.h
  11656. * src/DownloadCommand.cc
  11657. --allow-overwrite=true is no longer needed to check file integrity
  11658. before download in BitTorrent download.
  11659. * src/RequestGroup.cc (getInitialCommand)
  11660. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11661. throws exception.
  11662. * src/RequestGroupMan.cc (getInitialCommands)
  11663. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11664. urlencode the given url inside Request::parseUrl(...)
  11665. * src/Request.{h, cc}
  11666. * src/Util.{h, cc}
  11667. * test/RequestTest.cc
  11668. Removed #!metalink3! notation support because it is deleted from
  11669. the metalink specification.
  11670. * src/Request.{h, cc}
  11671. * test/RequestTest.cc
  11672. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11673. Don't connect server before checking file integrity at startup, if
  11674. filesize and output file path are known.
  11675. * src/AbstractCommand.cc
  11676. * src/StreamFileAllocationEntry.cc
  11677. * src/Metalink2RequestGroup.cc
  11678. * src/RequestGroup.{h, cc}
  11679. * src/HttpResponseCommand.cc
  11680. * src/FtpNegotiationCommand.cc
  11681. Added DownloadFailureException. If it is thrown, RequestGroup should
  11682. halt.
  11683. * src/AbstractCommand.cc
  11684. * src/DownloadFailureException.h
  11685. * src/RequestGroup.cc
  11686. Catch RecoverableException, instead of DlAbortEx.
  11687. * src/RequestGroupMan.cc
  11688. * src/FillRequestGroupCommand.cc
  11689. * src/MetaFileUtil.cc
  11690. * src/IteratableChunkChecksumValidator.cc
  11691. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11692. getGID())
  11693. * src/CheckIntegrityCommand.cc
  11694. * src/message.h
  11695. Print gid instead of idx.
  11696. * src/RequestGroupMan.cc
  11697. Removed exception throwers declaration.
  11698. * src/DirectDiskAdaptor.{h, cc}
  11699. * src/SocketCore.{h, cc}
  11700. * src/MultiDiskAdaptor.{h, cc}
  11701. * src/HttpConnection.{h, cc}
  11702. * src/HttpResponse.{h, cc}
  11703. * src/DiskAdaptor.{h, cc}
  11704. * src/CopyDiskAdaptor.{h, cc}
  11705. * src/MultiDiskAdaptor.{h, cc}
  11706. * src/HttpHeaderProcessor.{h, cc}
  11707. * src/AbstractSingleDiskAdaptor.{h, cc}
  11708. * src/Util.{h, cc}
  11709. * test/UtilTest.cc
  11710. * src/DefaultDiskWriter.{h, cc}
  11711. * src/FtpConnection.{h, cc}
  11712. * src/AbstractDiskWriter.{h, cc}
  11713. Removed duplicate code.
  11714. * src/StreamCheckIntegrityEntry.cc
  11715. Removed unnecessary include.
  11716. * src/DiskWriter.h
  11717. Included Exception.h
  11718. * src/option_processing.cc
  11719. Included 2 files and added doc
  11720. * src/TrackerWatcherCommand.cc
  11721. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11722. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11723. Changed CheckIntegrityEntry interface so that it can define
  11724. the action when all the chunk checksums are valid.
  11725. * src/CheckIntegrityEntry.h
  11726. * src/StreamCheckIntegrityEntry.{h, cc}
  11727. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11728. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11729. to exit rather than doing seeding. So, it would be good to toggle this
  11730. behavior.
  11731. * src/CheckIntegrityCommand.cc
  11732. * src/AbstractCommand.cc
  11733. * src/RequestGroup.cc
  11734. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11735. Reflect the download length of in-flight pieces.
  11736. It makes the download length readout more precise.
  11737. * src/DefaultPieceStorage.{h, cc}
  11738. * test/DefaultPieceStorageTest.cc
  11739. * src/a2functional.h
  11740. * test/a2functionalTest.cc
  11741. Lower CPU load when --max-download-limit is used.
  11742. There is up and down in speed indicator when enabling
  11743. http-pipelining but a download goes well. I think the problem is that
  11744. because http-pipelining is enabled, DownloadCommand is created for
  11745. each segment and in its constructor, PeerStat::downloadStart() is
  11746. called. In PeerStat::downloadStart(), speed calculation object is
  11747. reseted, which makes download speed zero.
  11748. * src/DownloadCommand.cc
  11749. Rewritten using accumulate.
  11750. * src/RequestGroupMan.cc (calculateStat)
  11751. Code clearnup.
  11752. * src/FtpNegotiationCommand.cc
  11753. * src/HttpResponseCommand.cc
  11754. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11755. Fixed: Can not resume: aria2 reports download already finished.
  11756. * src/AbstractCommand.{h, cc}
  11757. * src/HttpResponseCommand.cc
  11758. * src/FtpNegotiateCommand.cc
  11759. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11760. Now a file is stored in the directory specified in .metalnk file
  11761. (file[@name]).
  11762. * src/Metalink2RequestGroup.cc
  11763. Create the directory structure when opening the file if it doesn't
  11764. exist.
  11765. * src/AbstractDiskWriter.cc
  11766. * src/Util.{h, cc}
  11767. * src/File.h
  11768. * test/UtilTest.cc
  11769. Removed file name comparison
  11770. * src/Metalink2RequestGroup.cc
  11771. * src/HttpResponseCommand.cc
  11772. Rewritten using Util::mkdirs()
  11773. * src/FileEntry.cc (setupDir)
  11774. * test/FileEntryTest.cc
  11775. Updated doc
  11776. * src/SingleFileDownloadContext.h
  11777. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11778. Now SleepCommand dispatches nextCommand when halt is requested.
  11779. It avoids a possible long wait after hitting CTRL-C.
  11780. * src/SleepCommand.{h, cc}
  11781. * src/RequestGroupAware.{h, cc}
  11782. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11783. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11784. to open listen port, then remove the port number from the tracker
  11785. request.
  11786. * src/DefaultBtAnnounce.cc
  11787. * test/DefaultBtAnnounceTest.cc
  11788. * test/MockPieceStorage.h
  11789. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11790. them more testable.
  11791. * src/DefaultBtAnnounce.{h, cc}
  11792. * src/DefaultBtContext.{h, cc}
  11793. * src/Util.{h, cc}
  11794. * test/DefaultBtAnnounceTest.cc
  11795. * test/DefaultBtContextTest.cc
  11796. * test/UtilTest.cc
  11797. Added 'B' to upload bytes readout.
  11798. * src/ConsoleStatCalc.cc
  11799. Now the listen port for BitTorrent download is opened when it is
  11800. needed.
  11801. * src/DownloadEngineFactory.cc
  11802. * src/BtSetup.{h, cc}
  11803. * src/PeerListenCommand.{h, cc}
  11804. Now an exception thrown while parsing tracker response is now logged.
  11805. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11806. called, which means no retry is made in this case, assuming a tracker
  11807. has a problem.
  11808. * src/TrackerWatcherCommand.cc
  11809. Fixed: downloading a file whose length is unkown fails.
  11810. * src/DownloadCommand.cc
  11811. Simplified prepareForNextSegment()
  11812. * src/DownloadCommand.cc
  11813. Updated
  11814. * po/POTFILES.in
  11815. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11816. Re-implemented a file listing for Metalink, which was dropped while
  11817. http/ftp/torrent integration was being implemented.
  11818. * src/MetalinkHelper.{h, cc}: New class.
  11819. * test/MetalinkHelperTest.cc
  11820. * src/main.cc
  11821. * src/Metalink2RequestGroup.cc
  11822. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11823. Added the ability to display the detailed torrent file information.
  11824. Now -S option gives not only a file listing, but also total download
  11825. length, info hash, announce URI, piece length, the number of pieces,
  11826. and mode(single or multi-torrent).
  11827. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11828. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11829. KiB)
  11830. * test/UtilTest.cc
  11831. * src/main.cc
  11832. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11833. Added ftp://USER:PASSWD@Servername automatic parsing.
  11834. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11835. _password. Recognize username and password in URI.
  11836. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11837. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11838. * src/RequestFactory.{h, cc}: Removed.
  11839. * src/AuthConfigFactory.{h, cc}: New class.
  11840. * src/FtpConnection.cc: Use AuthConfigFactory.
  11841. * src/HttpRequest.cc: Use AuthConfigFactory.
  11842. * test/HttpRequestTest.cc: Updated.
  11843. * test/RequestTest.cc: Updated.
  11844. * test/AuthConfigFactoryTest.cc: New class.
  11845. * test/RequestFactoryTest.cc: Removed.
  11846. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11847. Use RequestGroup::allDownloadFinished() to decide whether the control
  11848. file should be removed or saved.
  11849. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11850. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11851. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11852. Use File::renameTo()
  11853. * src/DefaultBtProgressInfoFile.cc
  11854. Added --no-file-allocation-limit command-line option.
  11855. * src/version_usage.cc
  11856. * src/option_processing.cc
  11857. * src/OptionHandlerFactory.cc
  11858. * src/RequestGroup.{h, cc}
  11859. * src/BtCheckIntegrityEntry.cc
  11860. * src/StreamCheckIntegrityEntry.cc
  11861. * src/prefs.h
  11862. * doc/aria2c.1.txt
  11863. * doc/aria2c.1
  11864. Now prealloc is the default value for --file-allocation option.
  11865. * src/version_usage.cc
  11866. * src/option_processing.cc
  11867. * doc/aria2c.1.txt
  11868. * doc/aria2c.1
  11869. Don't URL-encode user-agent.
  11870. * src/HttpRequest.cc
  11871. Updated translations
  11872. * po/LINGUAS: Added nl for Dutch translation.
  11873. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11874. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11875. * po/POTFILES.in: Updated.
  11876. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11877. Added the ability to recognize url-list in a torrent file.
  11878. The retrieved URLs are attached to the corresponding FileEntry.
  11879. * src/DefaultBtContext.{h, cc}
  11880. * src/FileEntry.{h, cc}
  11881. * test/DefaultBtContextTest.cc
  11882. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11883. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11884. after the download finishes.
  11885. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11886. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11887. the data smaller than block length.
  11888. A block length can be specified by constructor's argument.
  11889. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11890. Get a missing piece in the range of given FileEntry. This function is
  11891. not used in the program yet.
  11892. * src/Util.h: Added some macros.
  11893. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11894. Added HTTP/1.1 keep alive and pipelining support.
  11895. See --enable-http-keep-alive and --enable-http-pipelining option.
  11896. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11897. Segment.
  11898. * src/HttpDownloadCommand.{h, cc}
  11899. * src/OptionHandlerFactory.cc
  11900. * src/HttpConnection.{h, cc}
  11901. * src/version_usage.cc
  11902. * src/HttpInitiateConnectionCommand.cc
  11903. * src/FtpInitiateConnectionCommand.cc
  11904. * src/Segment.h
  11905. * src/HttpRequestCommand.{h, cc}
  11906. * src/option_processing.cc
  11907. * src/prefs.h
  11908. * src/HttpResponseCommand.cc
  11909. * src/SegmentMan.{h, cc}
  11910. * src/FtpNegotiateCommand.cc
  11911. * src/HttpProxyResponseCommand.cc
  11912. * src/Request.cc
  11913. * src/HttpRequest.cc
  11914. * src/DownloadCommand.cc
  11915. * test/HttpRequestTest.cc
  11916. * test/RequestTest.cc
  11917. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11918. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11919. finished.
  11920. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11921. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11922. catching it inside the method.
  11923. When no file entry is found in a metalink without querying user
  11924. preferences, throw the exception with the error message that suggests
  11925. metalink file is probably broken.
  11926. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11927. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11928. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11929. processed.
  11930. * src/RequestGroupMan.cc (removeStoppedGroup)
  11931. Added debug message.
  11932. * src/BtPostDownloadHandler.cc
  11933. * src/MetalinkPostDownloadHandler.cc
  11934. * src/PostDownloadHandler.{h, cc}
  11935. * src/RequestGroup.cc
  11936. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11937. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11938. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11939. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11940. stops and there are any unfinished or in-progress downloads.
  11941. Added the legend of "stat".
  11942. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11943. Throw exception when chunck checksum verification fails.
  11944. * src/DownloadCommand.cc (validatePieceHash): New function.
  11945. * src/PiecedSegment.{h, cc} (clear): New function.
  11946. * src/GrowSegment.{h, cc} (clear): New function.
  11947. * src/Segment.h (clear): New function.
  11948. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11949. * test/SegmentTest.cc
  11950. * test/GrowSegmentTest.cc
  11951. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11952. Do not send referer when redirected.
  11953. * src/Request.cc (redirectUrl)
  11954. * test/RequestTest.cc
  11955. * test/HttpRequestTest.cc
  11956. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11957. Implemented BitTorrent/http/ftp integrated download.
  11958. I've rewritten lots of files and now some headers have forward
  11959. class declarations to reduce compile time.
  11960. The implementation is extremely alpha stage, I recommend to use this
  11961. for testing purpose only.
  11962. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11963. Fixed the compilation error on 64bit platform.
  11964. * test/HttpHeaderProcessorTest.cc
  11965. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11966. Merged Ross's patch that fixes compilation problem in MinGW
  11967. * test/DefaultBtProgressInfoFileTest.cc
  11968. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11969. Updated fr.po by sebone
  11970. * po/fr.po
  11971. Updated man page.
  11972. * doc/aria2c.1.txt
  11973. * Release 0.11.3
  11974. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11975. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11976. failure in Metalink.
  11977. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11978. Automatically save *.aria2 control file of http/ftp download in every
  11979. 60 seconds.
  11980. * src/AutoSaveCommand.{h, cc}: New class.
  11981. * src/TimeBasedCommand.{h, cc}: New class.
  11982. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11983. Disable parameterized URI support by default. Added -P option to
  11984. enable the feature.
  11985. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11986. * src/OptionHandlerFactory.cc
  11987. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11988. Updated Japanese translation.
  11989. * po/ja.po
  11990. Updated man page.
  11991. * doc/aria2c.1.txt
  11992. * Release 0.11.3-rc
  11993. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11994. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11995. it is successful, then renamed to *.aria2.
  11996. This prevents *.aria2 file from being truncated or corrupted when
  11997. file system becomes out of space.
  11998. * src/DefaultBtProgressInfoFile.cc (save)
  11999. * src/SegmentMan.cc (save)
  12000. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12001. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12002. Reduced the fragmentation of bitfield in http/ftp download.
  12003. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12004. * test/BitfieldManTest.cc
  12005. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12006. Added the ability to disable segmented download in .metalink.
  12007. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12008. 'url' tag.
  12009. * src/MetalinkEntry.{h, cc}
  12010. * src/RequestResource.{h, cc}
  12011. * src/MetalinkRequestInfo.cc
  12012. * src/Xml2MetalinkProcessor.cc
  12013. * test/Xml2MetalinkProcessorTest.cc
  12014. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12015. Added parameterized URI support.
  12016. * src/main.cc: -Z option added.
  12017. * src/OptionHandlerFactory.cc
  12018. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12019. * src/PStringDatum.h: New class.
  12020. * src/PStringSegment.{h,cc}: New class.
  12021. * src/PStringNumLoop.h: New class.
  12022. * src/PStringSelect.h: New class.
  12023. * src/NumberDecorator.h: New class.
  12024. * src/FixedWidthNumberDecorator.h: New class.
  12025. * src/AlphaNumberDecorator.h: New class.
  12026. * src/PStringVisitor.h: New class.
  12027. * src/PStringBuildVisitor.{h,cc}: New class.
  12028. * src/ParameterizedStringParser.{h,cc}: New class.
  12029. * src/Util.{h,cc}
  12030. (isNumber): New function.
  12031. (isLowercase): New function.
  12032. (isUppercase): New function.
  12033. (alphaToNum): New function.
  12034. * test/ParameterizedStringParserTest.cc: New class.
  12035. * test/AlphaNumberDecoratorTest.cc: New class.
  12036. * test/PStringBuildVisitorTest.cc: New class.
  12037. * test/UtilTest.cc
  12038. (testIsNumber): New function.
  12039. (testIsLowercase): New function.
  12040. (testIsUppercase): New function.
  12041. (testAlphaToNum): New function.
  12042. Added '\n' after the error message
  12043. * src/RequestInfo.h (printDownloadAbortMessage)
  12044. Added auto file renaming feature in http(s)/ftp download.
  12045. * src/main.cc: Added --auto-file-renaming command-line option.
  12046. * src/OptionHandlerFactory.cc
  12047. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12048. * src/RequestGroup.{h, cc}
  12049. (shouldCancelDownloadForSafety): Rewritten
  12050. (tryAutoFileRenaming): New function.
  12051. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12052. * src/HttpResponseCommand.cc
  12053. (executeInternal): Removed the call to RequestGroupMan::
  12054. isSameFileBeingDownloaded()
  12055. * src/FtpNegotiateCommand.cc
  12056. (recvSize): Removed the call to RequestGroupMan::
  12057. isSameFileBeingDownloaded()
  12058. * test/RequestGroupTest.cc: New class.
  12059. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12060. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12061. IO.
  12062. * src/DefaultBtProgressInfoFile.cc
  12063. * src/MetaFileUtil.cc
  12064. * src/SimpleLogger.cc
  12065. * src/SegmentMan.cc
  12066. * src/Util.cc
  12067. * src/Platform.cc
  12068. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12069. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12070. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12071. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12072. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12073. Fixed the bug that prevents file allocation is not done when
  12074. dowloading multi-torrent file.
  12075. * src/AbstractDiskWriter.cc (openFile)
  12076. Increase the maximum number of -j option from 15 to 45.
  12077. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12078. Added fr.po, thanks to Charles Landemaine.
  12079. * po/fr.po
  12080. * po/LINGUAS
  12081. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12082. gcc 3.4.4 support:
  12083. * src/DefaultBtContext.cc: int32_t -> int
  12084. * src/main.cc: int -> int32_t, int32_t -> int
  12085. * src/messageDigest.h: uint32_t -> unsigned int
  12086. * src/NameResolver.h: int32_t -> int
  12087. * src/PeerConnection.cc: int -> int32_t
  12088. * src/SpeedCalc.cc: int32_t -> int
  12089. * src/TrackerUpdateCommand.h: int -> int32_t
  12090. * src/Util.cc: int32_t -> int
  12091. * src/Util.h: int32_t -> int
  12092. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12093. * test/AnnounceListTest.cc: int -> int32_t
  12094. * test/ChunkedEncodingTest.cc: int -> int32_t
  12095. * test/DataTest.cc: int -> int32_t
  12096. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12097. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12098. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12099. * test/FeatureConfigTest.cc: int -> int32_t
  12100. * test/MetalinkEntryTest.cc: int -> int32_t
  12101. * test/MockBtRequestFactory.h: int -> int32_t
  12102. * test/MockPieceStorage.h: int -> int32_t
  12103. * test/OptionTest.cc: int -> int32_t
  12104. * test/RequestTest.cc: int -> int32_t
  12105. * test/SegmentManTest.cc: int -> int32_t
  12106. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12107. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12108. Move sleep functions to Util class:
  12109. * src/Util.cc
  12110. (sleep): New function.
  12111. (usleep): New function.
  12112. * src/DownloadCommand.cc: sleep -> Util::sleep
  12113. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12114. MinGW build enhancements. The following files are added:
  12115. * src/timegm.{c,h}
  12116. Changes to support the above new files:
  12117. * configure.ac
  12118. * src/Makefile.am
  12119. * src/a2time.h
  12120. * src/Util.cc:
  12121. * src/strptime.c: Added support for %Z option.
  12122. Fixed MinGW non-blocking bug.
  12123. * src/SocketCore.cc
  12124. * src/HttpRequestCommand.cc
  12125. Miscellenous build fixes/enhancements.
  12126. * configure.ac: Added summary report.
  12127. * src/Platform.h: Tweaked #include's.
  12128. * src/a2netcompat.h: Tweaked #include's.
  12129. * src/strptime.h: Tweaked #include's.
  12130. * src/gai_strerror.c: Tweaked #include's.
  12131. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12132. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12133. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12134. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12135. Increased the initial connection size in BitTorrent download to 40.
  12136. * src/BtRuntime.h
  12137. Added the usage message of --peer-id-prefix option.
  12138. * src/main.cc
  12139. * Release 0.11.2
  12140. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12141. MessageDigestHelper is introduced in order to simplify the use
  12142. of message digest. Removed repeated code.
  12143. The message digest algorithm is now specified by string, like "sha1",
  12144. "md5".
  12145. * src/messageDigest.{h, cc}
  12146. * src/MessageDigestHelper.{h, cc}: New class.
  12147. * src/DefaultPieceStorage.cc
  12148. * src/DefaultBtContext.{h, cc}
  12149. (computeFastSet): New function.
  12150. (setInfoHash): Added for unit testing.
  12151. (setNumPieces): Added for unit testing.
  12152. * src/DefaultBtInteractive.cc
  12153. * src/BtPieceMessage.cc
  12154. * src/Peer.cc
  12155. * src/Checksum.h
  12156. * src/message.h
  12157. * src/IteratableChecksumValidator.h
  12158. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12159. inside it.
  12160. * src/SegmentMan.{h, cc}
  12161. (checkIntegrity): Removed.
  12162. * src/IteratableChunkChecksumValidator.{h, cc}
  12163. * src/Util.h
  12164. (sha1Sum): Removed.
  12165. (simpleMessageDigest): Removed.
  12166. (fileChecksum): Removed.
  12167. (computeFastSet): Removed.
  12168. * src/ShaVisitor.cc
  12169. * src/ChunkChecksum.h
  12170. * src/DownloadCommand.cc
  12171. Removed messageDigest virtual functions.
  12172. * src/MultiDiskAdaptor.{h, cc}
  12173. * src/DiskAdaptor.h
  12174. * src/ByteArrayDiskWriter.h
  12175. * src/DiskWriter.h
  12176. * src/DiskAdaptorWriter.h
  12177. * src/AbstractSingleDiskAdaptor.{h, cc}
  12178. * src/AbstractDiskWriter.{h, cc}
  12179. Fixed comilation error when message digest is disabled.
  12180. * src/MetalinkEntry.{h, cc}
  12181. * src/MetalinkRequestInfo.cc
  12182. Removed srandom and random.
  12183. * src/SimpleRandomizer.h
  12184. Added size() virtual function to DiskAdaptor
  12185. * src/MultiDiskAdaptor.h
  12186. Fixed the bug that causes that files are not opened correctly in
  12187. multi-file torrent.
  12188. * src/TorrentRequestInfo.cc
  12189. * src/MultiDiskAdaptor.cc
  12190. Added SHA256 support
  12191. * src/messageDigest.cc
  12192. * src/Xml2MetalinkProcessor.cc
  12193. Show supported message digest algorithms
  12194. * src/main.cc
  12195. Updated contact info.
  12196. * src/main.cc
  12197. Applied Ross's patch
  12198. * src/a2netcompat.h
  12199. * src/main.cc
  12200. Fixed the bug that prevents a remote metalink from not being processed
  12201. even if '-o foo.metalink' is specified.
  12202. * src/MetalinkRequestInfo.cc
  12203. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12204. Merged Dan's patch:
  12205. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12206. Use va_copy to avoid core dump on amd64:
  12207. * src/SimpleLogger.cc
  12208. Updated contact info.
  12209. * src/main.cc
  12210. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12211. digest is not available.
  12212. * src/MetalinkEntry.h
  12213. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12214. Make a2netcompat.h include a2io.h to fix compilation error:
  12215. * src/a2netcompat.h
  12216. * src/SocketCore.cc: Removed include of a2io.h
  12217. * src/Util.cc: Removed include of a2io.h
  12218. Gather time related functions to a2time.h:
  12219. * src/a2time.h: New file.
  12220. * src/DefaultPeerStorage.cc
  12221. * src/SimpleLogger.cc
  12222. * src/Util.{h, cc}
  12223. * src/SimpleRandomizer.h
  12224. * src/TimeA2.{h,cc}
  12225. * src/DownloadCommand.cc
  12226. * src/main.cc
  12227. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12228. a2netcompat.h:
  12229. * src/NameResolver.cc
  12230. Fixed compilation error without openssl:
  12231. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12232. Added default block to suppress compiler warnings:
  12233. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12234. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12235. MinGW build enhancements. The following files are added:
  12236. * src/gai_strerror.{c,h}
  12237. * src/gettimeofday.{c,h}
  12238. Changes to support the above new files:
  12239. * configure.ac
  12240. * src/Makefile.am
  12241. * src/a2netcompat.h
  12242. * src/TimeA2.cc
  12243. * src/DefaultPeerStorage.cc
  12244. * src/NameResolver.cc: removed mingw_strerror() function.
  12245. * src/SocketCore.cc: removed mingw_strerror() function.
  12246. Miscellaneous MinGW build fixes.
  12247. * src/a2io.h: Use _lseeki64() instead of lseek()
  12248. * src/common.h
  12249. * src/DefaultFileAllocator.cc
  12250. * src/GlowFileAllocator.cc
  12251. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12252. * src/NameResolver.cc
  12253. (callback): Changed int32_t to int.
  12254. (resolve): Changed int32_t to int.
  12255. * src/Platform.cc
  12256. * src/Platform.h
  12257. * test/MultiDiskWriterTest.cc
  12258. * test/PeerMessageUtilTest.cc
  12259. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12260. Other enhancements and fixes.
  12261. * src/HttpRequestCommand.cc
  12262. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12263. * src/SocketCore.cc:
  12264. (error): New function to abstract errno/WSAGetLastError().
  12265. (errorMsg): New function to abstract errno/WSAGetLastError().
  12266. (initiateSecureConnection): Added more detailed error reporting.
  12267. * src/SocketCore.h: Added private variable blocking, to allow
  12268. proper handling of OpenSSL psuedo-errors.
  12269. * src/message.h
  12270. (EX_SSL_INIT_FAILURE)
  12271. (EX_SSL_IO_ERROR)
  12272. (EX_SSL_PROTOCOL_ERROR)
  12273. (EX_SSL_UNKNOWN_ERROR)
  12274. (EX_SSL_CONNECT_ERROR)
  12275. (EX_SOCKET_BLOCKING)
  12276. (EX_SOCKET_NONBLOCKING)
  12277. (EX_SOCKET_UNKNOWN_ERROR)
  12278. * src/Util.cc
  12279. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12280. reserved name.
  12281. (httpGMT): Fixed typo.
  12282. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12283. Merged Ross's win32 patch(manually)
  12284. In the course of merging, following files are added.
  12285. * src/strptime.{h,c}
  12286. * src/libgen.{h,c}
  12287. * src/inet_aton.{h,c}
  12288. * src/Platform.{h,cc}
  12289. * src/localtime_r.{h,c}
  12290. * src/getaddrinfo.{h,c}
  12291. I've gethered network related things, and put them to following file:
  12292. * src/a2netcompat.h
  12293. Also io related things are put to following file:
  12294. * src/a2io.h
  12295. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12296. * src/message.h
  12297. (MSG_ALLOCATION_COMPLETED)
  12298. (EX_TOO_LARGE_FILE)
  12299. (EX_SIZE_MISMATCH)
  12300. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12301. (EX_INVALID_CHUNK_CHECKSUM)
  12302. (EX_INVALID_RANGE_HEADER)
  12303. * src/FileAllocationCommand.cc
  12304. * src/HttpResponse.cc
  12305. * src/RequestGroup.cc
  12306. * src/MultiDiskAdaptor.cc
  12307. * src/OptionHandlerImpl.h
  12308. * src/HttpResponseCommand.cc
  12309. * src/FtpNegotiateCommand.cc
  12310. * src/IteratableChecksumValidator.cc
  12311. * src/SegmentMan.cc
  12312. * src/ChunkChecksumValidator.cc
  12313. Added Randomizer::getRandomNumber(long int)
  12314. * src/Randomizer.h (getRandomNumber)
  12315. * src/SimpleRandomizer.h (getRandomNumber)
  12316. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12317. * src/Util.cc (randomAlpha): Use this new function.
  12318. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12319. Converted int's to in32_t. long long int's are also converted to
  12320. int64_t
  12321. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12322. Fixed the bug that prevents cookies from being sent to the server
  12323. if the domain of cookie is FQDN and starts with ".".
  12324. * src/Cookie.cc (match)
  12325. To add the ability to change peer id.
  12326. * src/DefaultBtContext.h
  12327. (_peerIdPrefix): New variable
  12328. (setPeerIdPrefix): New function.
  12329. * src/torrentRequestInfo.cc
  12330. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12331. DefaultBtContext.
  12332. * src/main.cc (main): Added peer-id-prefix command-line option.
  12333. The usage message is not added yet.
  12334. * src/DefaultBtContext.cc
  12335. (generatePeerId): Use _peerIdPrefix.
  12336. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12337. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12338. Fixed the bug that prevents filename in content-disposition from
  12339. being retrieved when filename is not quoted.
  12340. * src/Util.cc (getContentDispositionFilename)
  12341. Fixed the bug that causes infinate loop and memory leak when file open
  12342. operation failed.
  12343. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12344. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12345. Fixed the bug that causes segfault when all URIs specified are
  12346. unsupported.
  12347. * src/RequestGroupMan.cc (getInitialCommands)
  12348. Check if RequestGroup::createNextCommand() returns empty list of
  12349. commands.
  12350. * src/RequestGroup.cc (createNextCommand)
  12351. Change log level from info to error so that users can notice that
  12352. an error occurred.
  12353. Fixed the bug that causes segfault when a zero-sized file is
  12354. downloaded.
  12355. * src/BitfieldMan.cc (isAllBitSet)
  12356. Return true if bitfieldLength is 0.
  12357. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12358. * src/main.cc
  12359. (showUsage): Added 3 usage examples for metalink download.
  12360. Replace MetalinkChunkChecksum with ChunkChecksum.
  12361. * src/MetalinkChunkChecksum.h: Removed.
  12362. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12363. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12364. * src/Xml2MetalinkProcessor.cc
  12365. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12366. * src/MetalinkRequestInfo.cc (execute)
  12367. * Release 0.11.1
  12368. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12369. Reads URIs from stdin when "-i -" is specified.
  12370. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12371. * src/UriListParser.h, src/UriListParser.cc: New class.
  12372. * src/StreamUriListParser.h: New class.
  12373. * src/FileUriListParser.h: New class.
  12374. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12375. instead of UriFileListParser.
  12376. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12377. Made console readout more readable.
  12378. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12379. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12380. Fix the bug that causes -s option not to work.
  12381. * src/main.cc (main)
  12382. * src/a2algo.h: New file.
  12383. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12384. Create directory structure specified in metalink file.
  12385. * src/RequestGroup.h, src/RequestGroup.cc
  12386. (initAndOpenFile): Create a directory to store files if it does not
  12387. exist.
  12388. (getDir): New function.
  12389. Added ETA and download speed for an individual file to readout.
  12390. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12391. * src/RequestGroup.h
  12392. (calculateDownloadSpeed): New function.
  12393. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12394. Made -S option work with metalink file and provided selective download
  12395. to metalink.
  12396. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12397. (filename): Removed.
  12398. (file): New variable.
  12399. (size): Removed.
  12400. (operator=): Updated.
  12401. (getPath): New function.
  12402. (getLength): New function.
  12403. (toFileEntry): New function.
  12404. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12405. (execute): Use toStream.
  12406. (showFileEntry): Removed.
  12407. * src/MetalinkRequestInfo.h
  12408. (targetFiles): New variable.
  12409. (setTargetFiles): New variable.
  12410. * src/MetalinkRequestInfo.cc
  12411. (execute): Added the ability to print file information included in
  12412. a metalink file.
  12413. Added selective download mode to metalink.
  12414. * src/main.cc
  12415. (showUsage): Updated to denote that -S and --select-file options are
  12416. applicable to metalink.
  12417. * src/FileEntry.h
  12418. (operator=): New function.
  12419. (getBasename): New function.
  12420. (getDirname): New function.
  12421. * src/Util.h, src/Util.cc
  12422. (toStream): New function.
  12423. * src/Xml2MetalinkProcessor.cc: Updated.
  12424. Made aria2 work with metalink with directory structure.
  12425. * src/File.h, src/File.cc
  12426. (getBasename): New function.
  12427. (getDirname): New function.
  12428. * src/RequestGroup.h, src/RequestGroup.cc
  12429. (_topDir): New variable.
  12430. (setTopDir): New function.
  12431. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12432. Rewrote HTTP header parsing with stringstream.
  12433. * src/HttpConnection.h, src/HttpConnection.cc
  12434. (HttpRequestEntry): New class.
  12435. (headerBuf): Removed.
  12436. (headerBufLength): Removed.
  12437. (outstandingHttpRequests): Now its element type is
  12438. HttpRequestEntryHandle.
  12439. (findEndOfHeader): Removed.
  12440. (receiveResponse): Rewritten.
  12441. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12442. Updated doc for -j option to notice that it should be used with -i
  12443. option.
  12444. * src/main.cc (showUsage)
  12445. Removed unused classes.
  12446. * src/RequestInfo.h
  12447. (FileInfo): Removed.
  12448. (checksum): Removed.
  12449. (fileInfo): Removed.
  12450. (setChecksum): Removed.
  12451. (getChecksum): Removed.
  12452. (getFileInfo): Removed.
  12453. Use ISO units.
  12454. * src/ConsoleDownloadEngine.cc
  12455. * src/TorrentConsoleDownloadEngine.cc
  12456. * src/Util.cc (abbrevSize)
  12457. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12458. Added the default listening ports to the help message.
  12459. * src/main.cc (showUsage)
  12460. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12461. Reduce the number of calls to gettimeofday to lower CPU load.
  12462. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12463. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12464. * src/Peer.h (calculateUploadSpeed): New function.
  12465. (calculateDownloadSpeed): New function.
  12466. * src/DefaultPeerStorage.cc
  12467. (CalculateStat): Added _now variable.
  12468. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12469. and Peer::calculateUploadSpeed(const struct timeval&)
  12470. Drop connection if no request or piece message is exchanged in
  12471. a certain interval.
  12472. * src/DefaultBtInteractive.h
  12473. (btRuntime): New variable.
  12474. (inactiveCheckPoint): New variable.
  12475. (checkActiveInteraction): New function.
  12476. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12477. request or piece message is received.
  12478. (checkActiveInteraction): New function.
  12479. (doInteractionProcessing): Call checkActiveInteraction.
  12480. Fixed the bug that causes remote Metalink and Torrent files are not
  12481. processed.
  12482. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12483. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12484. Changed format of log file.
  12485. * src/SimpleLogger.cc
  12486. * Release 0.11.0
  12487. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12488. * src/AbstractCommand.cc
  12489. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12490. MSG_MAX_TRY from error to info.
  12491. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12492. * src/message.h
  12493. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12494. (MSG_DOWNLOAD_ABORTED): Added %s.
  12495. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12496. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12497. * src/PeerAbstractCommand.cc
  12498. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12499. * src/Request.h
  12500. (cookieBox): Made ShardHandle.
  12501. * src/RequestGroup.h, src/RequestGroup.cc
  12502. (createNextCommandWithAdj): New function.
  12503. * src/FileAllocationCommand.cc
  12504. (executeInternal): Use createNextCommandWithAdj().
  12505. * src/CheckIntegrityCommand.cc
  12506. (executeInternal): Use createNextCommandWithAdj().
  12507. Added --load-cookies command-option.
  12508. * src/OptionHandlerFactory.cc
  12509. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12510. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12511. Now aria2 can handle cookie's expiration date.
  12512. * src/Cookie.h (expires): Changed its type to time_t.
  12513. * src/main.cc: Added --load-cookies command-line option.
  12514. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12515. * src/Util.h, src/Util.cc (httpGMT): New function.
  12516. * src/Request.cc (Request): Initialize cookieBox using
  12517. CookieBoxFactory.
  12518. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12519. * src/CookieParser.h, src/CookieParser.cc: New class.
  12520. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12521. * src/HttpResponseCommand.cc
  12522. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12523. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12524. download.
  12525. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12526. Added -j command-line option.
  12527. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12528. * src/main.cc
  12529. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12530. Rewritten using stringstream.
  12531. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12532. Rewritten using stringstream.
  12533. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12534. Make download size shown in MB, KB.
  12535. * src/ConsoleDownloadEngine.h (sendStatistics)
  12536. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12537. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12538. Accept incoming connections if download rate is low.
  12539. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12540. (_lowestSpeedLimit): New variable.
  12541. (setLowestSpeedLimit): New function.
  12542. (execute): Accept incoming connections if download rate is low.
  12543. MAX_PEERS is ignored in this case.
  12544. Disable PREF_OUT in multiple concurrent download:
  12545. * src/RequestGroup.h, src/RequestGroup.cc
  12546. (setUserDefinedFilename): New function.
  12547. * src/DownloadEngineFactory.cc
  12548. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12549. concurrent download.
  12550. * src/DefaultSegmentManFactory.cc
  12551. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12552. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12553. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12554. Added its overloaded method.
  12555. * src/RequestGroup.h
  12556. (_numConcurrentCommand): New variable.
  12557. (setNumConcurrentCommand): New function.
  12558. * src/RequestGroup.cc
  12559. Abort download if same file is being downloaded concurrently.
  12560. * src/RequestGroup.h, src/RequestGroupMan.cc
  12561. (isSameFileBeingDownloaded): New function.
  12562. * src/HttpResponseCommand.cc (executeInternal)
  12563. * src/FtpNegotiateCommand.cc (recvSize)
  12564. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12565. * main.cc: Added help message for -i option.
  12566. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12567. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12568. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12569. * src/MetalinkEntry.h
  12570. (checksum): Changed to ChecksumHandle
  12571. * src/MetalinkRequestInfo.cc
  12572. (checksum): Changed to ChecksumHandle
  12573. * src/File.cc
  12574. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12575. * src/common.h
  12576. (DIR_OPEN_MODE): New definition
  12577. * src/RequestGroup.cc
  12578. (prepareForNextAction): Added an argument.
  12579. * src/message.h
  12580. (MSG_GOOD_CHECKSUM): New definition
  12581. (MSG_BAD_CHECKSUM): New definition
  12582. * src/HttpResponseCommand.cc
  12583. (handleDefaultEncoding): Continue download sequence in new
  12584. non-segmented download.
  12585. * src/FileAllocationEntry.h
  12586. (_nextDownloadCommand): New variable.
  12587. * src/DownloadCommand.cc
  12588. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12589. available.
  12590. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12591. * src/IteratableChecksumValidator.h,
  12592. src/IteratableChecksumValidator.cc: New class.
  12593. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12594. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12595. Change file mode to 666:
  12596. * src/common.h (OPEN_MODE): New definition.
  12597. * src/File.cc
  12598. * src/Util.cc
  12599. * src/Directry.cc
  12600. * src/AbstractDiskWriter.cc
  12601. Change the level of log message "download aborted" to debug:
  12602. * src/PeerAbstractCommand.cc (execute)
  12603. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12604. * src/TrackerWatcherCommand.cc
  12605. (createCommand): Sleep some seconds after request failed.
  12606. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12607. then abort tracker request.
  12608. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12609. * Added the simultaneous download feature.
  12610. * src/main.cc: Print "Exception caught: " when exception is caught.
  12611. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12612. * src/ActivePeerConnectionCommand.cc
  12613. * src/PeerInteractionCommand.cc
  12614. * src/BtRuntime.h
  12615. (cuidCounter): Removed.
  12616. (getNewCuid): Removed.
  12617. * src/DownloadEngineFactory.cc
  12618. * src/PeerListenCommand.cc
  12619. * src/TrackerUpdateCommand.cc
  12620. * src/PeerInitiateConnectionCommand.cc
  12621. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12622. * src/PeerAbstractCommand.cc
  12623. (onAbort): Call PeerStorage::returnPeer()
  12624. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12625. (incomingPeers): New variable.
  12626. (addIncomingPeer): New function.
  12627. (returnPeer): New function.
  12628. (onErasingPeer): New function.
  12629. (addPeer): push_back -> push_front
  12630. (getActivePeers): Rewritten.
  12631. (calculateStat): Rewritten.
  12632. * src/PeerStorage.h
  12633. (TransferStat::copy): New function.
  12634. (TransferStat::TransferStat): New function.
  12635. (TransferStat::operator=): New function.
  12636. (addIncomingPeer): New function.
  12637. (returnPeer): New function.
  12638. * src/PeerListenCommand.cc
  12639. (execute): Use PeerStorage::addIncomingPeer() instead of
  12640. Peer::addPeer().
  12641. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12642. Connect to a peer actively when download speed is lower than specified
  12643. speed in torrent download:
  12644. * src/ActivePeerConnectionCommand.h: New class.
  12645. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12646. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12647. * src/main.cc: Fixed the bug that prevents download if .netrc
  12648. doesn't exist.
  12649. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12650. To cache resolved hostname:
  12651. * src/AbstractCommand.h, src/AbstractCommand.cc
  12652. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12653. Added dns cache.
  12654. * src/FtpInitiateConnectionCommand.cc
  12655. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12656. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12657. NameResolver working without ares.
  12658. * src/TorrentRequestInfo.cc
  12659. (execute): Don't cache dns in torrent download.
  12660. * src/HttpInitiateConnectionCommand.cc
  12661. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12662. * src/DNSCache.h: New class.
  12663. * src/UrlRequestInfo.cc
  12664. (execute): Use dns cache.
  12665. In http request, suppress port number in http request header if port
  12666. is 80 or 443:
  12667. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12668. request header if port is 80 or 443.
  12669. (createProxyRequest): Allways send port number.
  12670. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12671. To add the command-line option which disables netrc support:
  12672. * src/OptionHandlerFactory.cc
  12673. (createOptionHandlers): Added PREF_NO_NETRC.
  12674. * src/main.cc: Added -n option.
  12675. * src/prefs.h (PREF_NO_NETRC): New definition.
  12676. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12677. V_TRUE.
  12678. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12679. is V_FALSE. This may get configurable in the future release.
  12680. To clear peer's error status by time basis:
  12681. * src/PeerAbstractCommand.cc
  12682. (onAbort): Call Peer::startBadCondition().
  12683. * src/Peer.h, src/Peer.cc
  12684. (error): Removed.
  12685. (_badConditionStartTime): New variable.
  12686. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12687. (startBadCondition): New function.
  12688. (isGood): New function.
  12689. * src/DefaultPeerStorage.cc
  12690. (addPeer): Use Peer::isGood().
  12691. (FindFinePeer): Use Peer::isGood().
  12692. Always include port number in http request header:
  12693. * src/HttpRequest.cc (getHostText): Always include port number in
  12694. http request header.
  12695. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12696. To the ability to read options from a config file:
  12697. * src/main.cc: Command-line parameter validation is delegated to
  12698. OptionHandler class.
  12699. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12700. * src/Option.h, src/Option.cc (clear): New function.
  12701. * src/OptionParser.h, src/OptionParser.cc: New class.
  12702. * src/OptionHandler.h: New class.
  12703. * src/NameMatchOptionHandler.h: New class.
  12704. * src/OptionHandlerImpl.h: New classes.
  12705. * src/prefs.h: '_' -> '-'
  12706. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12707. (FTP_PASV): New definition.
  12708. * src/Util.h, src/Util.cc (getRealSize): New function.
  12709. To disable netrc support if .netrc file does not have correct
  12710. permissions:
  12711. * src/File.h, src/File.cc (mode): New function.
  12712. To prevent confidential information to be logged:
  12713. * src/HttpConnection.h, src/HttpConnection.cc
  12714. (eraseConfidentialInfo): New function.
  12715. (sendRequest): Call eraseConfidentialInfo().
  12716. (sendProxyRequest): Call eraseConfidentialInfo().
  12717. * src/main.cc: Validate permissions of .netrc file.
  12718. To add --user-agent command-line option:
  12719. * src/main.cc: Added new command line option: --user-agent
  12720. * src/prefs.h (PREF_USER_AGENT): New definition.
  12721. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12722. parameter to HttpRequest object.
  12723. * src/AbstractProxyRequestCommand.cc
  12724. (executeInternal): Set user-agent option parameter to HttpRequest
  12725. object.
  12726. Marged the patches from Dan Fandrich.
  12727. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12728. Use filename and size from Metalink file instead of sending HEAD
  12729. request:
  12730. * src/UrlRequestInfo.h
  12731. (_filename): New variable.
  12732. (_totalLength): New variable.
  12733. (setTotalLength): New variable.
  12734. (setFilename): New variable.
  12735. * src/MetalinkRequestInfo.cc
  12736. (execute): Set filename and size to UrlRequestInfo
  12737. * src/UrlRequestInfo.cc
  12738. (execute): Use filename and size from Metalink instead of seding
  12739. HEAD request to servers.
  12740. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12741. To add the ability to resume downloading a partially downloaded file
  12742. which is downloaded from the beginning:
  12743. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12744. takes this role.
  12745. * src/main.cc: Added -c option.
  12746. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12747. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12748. * src/prefs.h (PREF_CONTINUE): New definition.
  12749. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12750. * src/DefaultDiskWriter.cc
  12751. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12752. * src/AbstractDiskWriter.h
  12753. (glowFileAllocator): New variable.
  12754. * src/AbstractDiskWriter.cc
  12755. (openExistingFile): Now preallocate file space from the end of the
  12756. existing file if totalLength argument is specified and grater than 0.
  12757. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12758. to download exists in local, continue the download of the file.
  12759. --allow-overwrite=true is assumed in this context.
  12760. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12761. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12762. Throw exception if --check-integrity=true is specified but chunk
  12763. checksums are not provided:
  12764. * src/UrlRequestInfo.cc
  12765. Do not print URLs to stdout:
  12766. * src/UrlRequestInfo.cc
  12767. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12768. * src/Request.h: Use AuthResolver to get authentication information.
  12769. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12770. set to RequestFactory object.
  12771. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12772. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12773. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12774. create Request object.
  12775. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12776. To integrate Netrc into exsiting classes:
  12777. * src/Request.h
  12778. (_userDefinedAuthConfig): New variable.
  12779. (findNetrcAuthenticator): New function.
  12780. (segment): Removed.
  12781. (setUserDefinedAuthConfig): New function.
  12782. (resolveHttpAuthConfigItem): New function.
  12783. (resolveFtpAuthConfigItem): New function.
  12784. (resolveHttpProxyAuthConfigItem): New function.
  12785. * src/HttpRequest.h
  12786. (authConfig): Removed.
  12787. (proxyAuthConfig): Removed.
  12788. (setAuthConfig): Removed.
  12789. (setProxyAuthConfig): Removed.
  12790. * src/UrlRequest.h
  12791. (getHeadResult): Added a parameter: authConfigHandle
  12792. * src/common.h
  12793. (SingletonHolder.h): New include.
  12794. * src/main.cc
  12795. (Netrc.h): New include.
  12796. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12797. Added initial value of PREF_NETRC_PATH.
  12798. Added the initialization of netrc.
  12799. * src/AuthConfig.h: New class.
  12800. * src/prefs.h
  12801. (PREF_NETRC_PATH): New definition.
  12802. * src/HttpAuthConfig.h: Removed.
  12803. * src/Netrc.cc
  12804. (getRequiredNextToken): New function.
  12805. (skipMacdef): New function.
  12806. (parse): Rewritten.
  12807. * src/Netrc.h
  12808. (getRequiredNextToken): New function.
  12809. (skipMacdef): New function.
  12810. * src/Util.h, src/Util.cc
  12811. (getHomeDir): New function.
  12812. * src/TrackerWatcherComand.cc
  12813. (createRequestCommand): Use AuthConfig.
  12814. * src/FtpConnection.cc
  12815. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12816. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12817. * src/Request.cc
  12818. (findNetrcAuthenticator): New function.
  12819. (resolveHttpAuthConfigItem): New function.
  12820. (resolveFtpAuthConfigItem): New function.
  12821. (resolveHttpProxyAuthConfigItem): New function.
  12822. * src/UrlRequestInfo.cc: Use AuthConfig.
  12823. * src/HttpRequest.cc
  12824. (createRequest): Use authConfig.
  12825. (getProxyAuthString): Use authConfig.
  12826. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12827. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12828. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12829. To reduce overhead to find commands whose socket is either
  12830. readable or writable in the download engine loop:
  12831. * src/Command.h, src/Command.cc
  12832. (STATUS): New enum.
  12833. (status): New variable.
  12834. (statusMatch): New function.
  12835. (setStatusActive): New function.
  12836. (setStatusInactive): New function.
  12837. * src/DownloadEngine.h, src/DownloadEngine.cc
  12838. (executeCommand): New function.
  12839. (run): Simplified.
  12840. (waitData): Call Command::setStatusActive() when command's socket is
  12841. readable or writable.
  12842. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12843. To handle Segment as SegmentHandle:
  12844. * src/AbstractCommand.cc (execute): Rewritten.
  12845. * src/SegmentMan.h: Segment -> SegmentHandle
  12846. Introducded HttpResponse class, HttpRequest class to improve code
  12847. extensiveness and make it clear:
  12848. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12849. HttpResponse class.
  12850. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12851. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12852. * src/HttpConnection.cc: Contruction of http request were moved to
  12853. HttpRequest class.
  12854. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12855. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12856. * src/HttpAuthConfig.h: New class.
  12857. * src/Range.h: New class.
  12858. To make FtpTunnel{Request, Response}Command and
  12859. HttpProxy{Request, Response}Command derived from
  12860. AbstractProxy{Request, Response}Command:
  12861. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12862. Derived from AbstractProxyRequestCommand class.
  12863. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12864. Derived from AbstractProxyResponseCommand class.
  12865. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12866. Derived from AbstractProxyRequestCommand class.
  12867. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12868. Derived from AbstractProxyResponseCommand class.
  12869. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12870. : New class.
  12871. * src/AbstractProxyResponseCommand.h,
  12872. src/AbstractProxyResponseCommand.cc: New class.
  12873. To add netrc support:
  12874. * src/Netrc.h, src/Netrc.cc: New class.
  12875. * src/Util.h, src/Util.cc (split): New function.
  12876. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12877. "Content-Range" header instead of "Range" header.
  12878. * src/HttpHeader.h
  12879. (getStatus): Removed.
  12880. (setStatus): Removed.
  12881. * src/Segment.h
  12882. (getPositionToWrite): New function.
  12883. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12884. * src/HttpHeader.h
  12885. (Range.h): New include.
  12886. (status): New variable.
  12887. (HttpHeader): Initialized status with 0.
  12888. (getStatus): New function.
  12889. (setStatus): New function.
  12890. (getRange): New function.
  12891. (HttpHeaderHandle): New function.
  12892. * src/HttpHeader.cc
  12893. (getRange): New function.
  12894. * src/Request.h
  12895. (RequestWeakHandle): New definition.
  12896. * src/HttpConnection.h
  12897. (HttpConnectionHandle): New type definition.
  12898. * src/HttpConnection.cc
  12899. (receiveResponse): Set HTTP status to headers.
  12900. * src/main.cc
  12901. (showUsage): Fixed typo.
  12902. * src/Segment.h
  12903. (SegmentHandle): New type definition.
  12904. * src/BitfieldMan.h
  12905. (getMissingUnusedLength): New function.
  12906. * src/BitfieldMan.cc
  12907. (getMissingUnusedLength): New function.
  12908. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12909. To fix static initialization order problem:
  12910. * src/BitfieldManFactory.h
  12911. (defaultRandomizer): Removed.
  12912. (factory): New variable.
  12913. (getNewFactory): Removed.
  12914. (getFactoryInstance): New function.
  12915. (setDefaultRandomizer): Rewritten.
  12916. (getDefaultRandomizer): Rewritten.
  12917. * src/BitfieldManFactory.cc
  12918. (defaultRandomizer): Removed.
  12919. (factory): Initialized to 0.
  12920. (BitfieldManFactory): Initialized randomizer to 0.
  12921. * src/DefaultPieceStorage.cc
  12922. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12923. * src/Peer.cc
  12924. (Peer): getNewFactory() -> getFactoryInstance()
  12925. * src/SegmentMan.cc
  12926. (initBitfield): getNewFactory() -> getFactoryInstance()
  12927. * src/Piece.cc
  12928. (Piece): getNewFactory() -> getFactoryInstance()
  12929. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12930. To fix the bug that causes crash on Max OS X:
  12931. * src/SimpleRandomizer.h
  12932. (getInstance): Create new instance if the static variable is null.
  12933. * src/SimpleRandomizer.cc
  12934. (randomizer): Initialized to 0.
  12935. * src/BitfieldManFactory.h
  12936. (getNewFactory): Removed the call to setRandomizer().
  12937. To fix the miscalculation of the range of checksum:
  12938. * src/BitfieldMan.h
  12939. (isBitSetOffsetRange): New function.
  12940. * src/BitfieldMan.cc
  12941. (isBitSetOffsetRange): New function.
  12942. * src/SegmentMan.cc
  12943. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12944. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12945. * Release 0.10.1
  12946. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12947. To lower CPU usage in BitTorrent download when --max-upload-limit
  12948. command-line option specified:
  12949. * src/DefaultBtMessageDispatcher.cc
  12950. (sendMessages): Calculate uploading speed only when current message
  12951. is uploading data and is not sent yet.
  12952. * src/DefaultPeerStorage.h
  12953. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12954. * src/HttpResponseCommand.cc
  12955. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12956. This fixes compile error in Soralis 10.
  12957. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12958. To fix segfault in Metalink download:
  12959. * src/UrlRequestInfo.h
  12960. (filename): Removed.
  12961. (totalLength): Removed.
  12962. (setTotalLength): Removed.
  12963. (setFilename): Removed.
  12964. * src/MetalinkRequestInfo.cc
  12965. (execute): Do not set filename and totalLength to reqInfo.
  12966. Set chunk checksum to reqInfo if it is not null.
  12967. * src/HttpResponseCommand.cc
  12968. (executeInternal): Fixed filename in log.
  12969. (handleDefaultEncoding): Removed the call to initBitfield() and
  12970. markAllPiecesDone().
  12971. (handleOtherEncoding): Added HEAD method handling.
  12972. * src/FtpNegotiateCommand.cc
  12973. (executeInternal): Added SEQ_HEAD_OK handling.
  12974. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12975. return false.
  12976. * src/FtpNegotiateCommand.h
  12977. (SEQ_HEAD_OK): New definition.
  12978. * src/SegmentMan.cc
  12979. (initBitfield): Delete bitfield.
  12980. (isChunkChecksumValidationReady): Fixed the condition.
  12981. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12982. works fine.
  12983. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12984. * src/Xml2MetalinkProcessor.h
  12985. (xpathExists): New function.
  12986. * src/Xml2MetalinkProcessor.cc
  12987. (xpathExists): New function.
  12988. Not to send HEAD request if filename and size are available in Metalink
  12989. file:
  12990. * src/UrlRequestInfo.h
  12991. (filename): New variable.
  12992. (totalLength): New variable.
  12993. (setTotalLength): New function.
  12994. (setFilename): New function.
  12995. * src/MetalinkRequestInfo.cc
  12996. (execute): Set filename and size to UrlRequestInfo.
  12997. * src/MetalinkEntry.cc
  12998. (MetalinkEntry): Initialize size with 0.
  12999. * src/UrlRequestInfo.cc
  13000. (execute): Set filename and size to SegmentMan.
  13001. Not to download rest of the files after selected files are downloaded
  13002. in BitTorrent:
  13003. * src/PieceStorage.h
  13004. (allDownloadFinished): New function.
  13005. * src/DefaultBtAnnounce.cc
  13006. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13007. downloadFinished.
  13008. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13009. * src/DefaultPieceStorage.cc
  13010. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13011. Commented out the call to finishSelectiveDownloadingMode().
  13012. (downloadFinished): Call isFilteredAllBitSet() instead of
  13013. isAllBitSet().
  13014. (allDownloadFinished): New function.
  13015. * src/DefaultBtInteractive.cc
  13016. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13017. downloadFinished().
  13018. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13019. * src/TorrentDownloadEngine.cc
  13020. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13021. * src/BitfieldMan.h
  13022. (isFilteredAllBitSet): New function.
  13023. * src/ShareRatioSeedCriteria.h
  13024. (PieceStorage.h): New include.
  13025. (pieceStorage): New variable.
  13026. (evaluate):
  13027. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13028. * src/BitfieldMan.cc
  13029. (isFilteredAllBitSet): New function.
  13030. (isAllBitSet): Filter is not took into account.
  13031. Rename --force-truncate as --allow-overwrite:
  13032. * src/TorrentRequestInfo.cc
  13033. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13034. * src/main.cc
  13035. (showUsage): --force-truncate -> --allow-overwrite
  13036. * src/message.h
  13037. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13038. * src/prefs.h
  13039. (PREF_FORCE_TRUNCATE): Removed.
  13040. (PREF_ALLOW_OVERWRITE): New definition.
  13041. * src/SegmentMan.cc
  13042. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13043. * src/MetalinkRequestInfo.cc
  13044. (execute): Queueing message are now logged in info level.
  13045. * src/common.h
  13046. (LONG_LONG_MAX): Removed.
  13047. (LONG_LONG_MIN): Removed.
  13048. * src/HttpResponseCommand.cc
  13049. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13050. * src/FtpNegotiateCommand.cc
  13051. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13052. * src/main.cc
  13053. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13054. command-line option.
  13055. (main): Added --check-integriy and --realtime-chunk-checksum
  13056. command-line option.
  13057. --force-truncate -> --allow-overwrite
  13058. Set initial value of --check-integrity option to false.
  13059. Don't show usage when error occurs while persing command-line options.
  13060. Removed deprecated --upload-limit option.
  13061. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13062. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13063. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13064. * src/BtAllowedFastMessage.cc:
  13065. * src/BtBitfieldMessage.cc
  13066. * src/BtCancelMessage.cc
  13067. * src/BtChokeMessage.cc
  13068. * src/BtHaveAllMessage.cc
  13069. * src/BtHaveMessage.cc
  13070. * src/BtHaveNoneMessage.cc
  13071. * src/BtInterestedMessage.cc
  13072. * src/BtNotInterestedMessage.cc
  13073. * src/BtPieceMessage.cc
  13074. * src/BtPortMessage.cc
  13075. * src/BtRejectMessage.cc
  13076. * src/BtRequestMessage.cc
  13077. * src/BtSuggestPieceMessage.cc
  13078. * src/BtUnchokeMessage.cc
  13079. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13080. files are affected.
  13081. * src/ChunkChecksumValidator.cc
  13082. * src/SegmentMan.cc
  13083. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13084. To add chunk checksum validation:
  13085. * src/MetalinkEntry.h
  13086. (MetalinkChunkChecksum.h): New include.
  13087. (chunkChecksum): New variable.
  13088. * src/Request.h
  13089. (method): New variable.
  13090. (setMethod): New function.
  13091. (getMethod): New function.
  13092. (METHOD_GET): New static constant.
  13093. (METHOD_HEAD): New static constant.
  13094. * src/Xml2MetalinkProcessor.h
  13095. (getPieceHash): New function.
  13096. * src/PieceStorage.h
  13097. (markAllPiecesDone): New function.
  13098. (checkIntegrity): New function.
  13099. * src/FileAllocator.h
  13100. (NullFileAllocationMonitor.h): New include.
  13101. (FileAllocator): Initialize fileAllocationMonitor with new
  13102. NullFileAllocationMonitor().
  13103. * src/MultiDiskAdaptor.h
  13104. (messageDigest.h): Remove include.
  13105. (ctx): Removed.
  13106. (hashUpdate): Added ctx.
  13107. (MultiDiskAdaptor): Removed ctx.
  13108. (sha1Sum): Renamed as messageDigest.
  13109. (messageDigest): New function.
  13110. * src/UrlRequestInfo.h
  13111. (HeadResult): New class.
  13112. (digestAlgo): New variable.
  13113. (chunkChecksumLength): New variable.
  13114. (chunkChecksums): New variable.
  13115. (getHeadResult): New function.
  13116. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13117. (setDigestAlgo): New function.
  13118. (setChunkChecksumLength): New function.
  13119. (setChunkChecksums): New function.
  13120. * src/DefaultPieceStorage.cc
  13121. (DiskAdaptorWriter.h): New include.
  13122. (ChunkChecksumValidator.h): New include.
  13123. (markAllPiecesDone): New function.
  13124. (checkIntegrity): New function.
  13125. * src/DefaultBtContext.h
  13126. (getPieceHashes): New function.
  13127. * src/TorrentRequestInfo.cc
  13128. (execute): Try to validate chunk checksum if file already exists and
  13129. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13130. * src/messageDigest.h
  13131. (~MessageDigestContext): Added digestFree().
  13132. * src/MetalinkRequestInfo.cc
  13133. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13134. * src/DiskAdaptor.h
  13135. (messageDigest.h): New include.
  13136. (sha1Sum): Renamed as messageDigest.
  13137. (messageDigest): New function.
  13138. * src/DownloadCommand.h
  13139. (PeerStat.h): New include.
  13140. (maxDownloadSpeedLimit): New variable.
  13141. (startupIdleTime): New variable.
  13142. (lowestDownloadSpeedLimit): New variable.
  13143. (peerStat): New variable.
  13144. (setMaxDownloadSpeedLimit): New function.
  13145. (setStartupIdleTime): New function.
  13146. (setLowestDownloadSPeedLimit): New function.
  13147. * src/BtContext.h
  13148. (getPieceHashes): New function.
  13149. * src/main.cc
  13150. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13151. option to true for testing purpose.
  13152. * src/BtPieceMessage.cc
  13153. (checkPieceHash): Use messageDigest
  13154. * src/DownloadEngine.cc
  13155. (SetDescriptor): Removed.
  13156. (AccumulateActiveCommand): Removed.
  13157. (waitData): Rewritten.
  13158. (updateFdSet): Rewritten.
  13159. * src/MultiDiskAdaptor.cc
  13160. (hashUpdate): Added ctx.
  13161. (sha1Sum): Renamed as messageDigest.
  13162. (messageDigest): New function.
  13163. * src/BitfieldMan.h
  13164. (isBitRangeSet): New function.
  13165. (unsetBitRange): New function.
  13166. * src/ByteArrayDiskWriter.h
  13167. (sha1Sum): Renamed as messageDigest.
  13168. (messageDigest): New function.
  13169. * src/ConsoleDownloadEngine.cc
  13170. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13171. * src/DiskWriter.h
  13172. (messageDigest.h): New include.
  13173. (sha1Sum): Renamed as messageDigest.
  13174. (messageDigest): New function.
  13175. * src/ChunkChecksumValidator.h: New class.
  13176. * src/DiskAdaptorWriter.h: New class.
  13177. * src/prefs.h
  13178. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13179. (PREF_CHECK_INTEGRITY): New definition.
  13180. * src/HttpResponseCommand.cc
  13181. (handleDefaultEncoding): Added method "HEAD" handling.
  13182. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13183. (handleOtherEncoding):
  13184. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13185. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13186. startupIdleTime, lowestDownloadSpeedLimit to command.
  13187. * src/SegmentMan.h
  13188. (getSegmentEntryByIndex): New function.
  13189. (getSegmentEntryByCuid): New function.
  13190. (getSegmentEntryIteratorByCuid): New function.
  13191. (diskWriter): DiskWriter -> DiskWriterHandle
  13192. (pieceHashes): New variable.
  13193. (chunkHashLength): New variable.
  13194. (digestAlgo): New variable.
  13195. (FindPeerStat): Removed.
  13196. (getPeerStat): Rewritten.
  13197. (markAllPiecesDone): New function.
  13198. (checkIntegrity): New function.
  13199. (tryChunkChecksumValidation): New function.
  13200. (isChunkChecksumValidationReady): New function.
  13201. * src/BitfieldMan.cc
  13202. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13203. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13204. blocks to 0.
  13205. (isBitRangeSet): New function.
  13206. (unsetBitRange): New function.
  13207. * src/FtpNegotiateCommand.cc
  13208. (executeInternal): Set maxDownloadSpeedLimit,
  13209. startupIdleTime, lowestDownloadSpeedLimit to command.
  13210. (recvSize): Added method "HEAD" handling.
  13211. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13212. * src/AbstractSingleDiskAdaptor.cc
  13213. (sha1Sum): Renamed as messageDigest.
  13214. (messageDigest): New function.
  13215. * src/AbstractSingleDiskAdaptor.h
  13216. (sha1Sum): Renamed as messageDigest.
  13217. (messageDigest): New function.
  13218. * src/Util.h
  13219. (indexRange): New function.
  13220. * src/MetalinkEntry.cc
  13221. (MetalinkEntry): Initialized chunkChecksum to 0.
  13222. * src/ShaVisitor.cc
  13223. (~ShaVisitor): Removed the call to ctx.digestFree().
  13224. * src/SegmentMan.cc
  13225. (ChunkChecksumValidator.h): New include.
  13226. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13227. to DIGEST_ALGO_SHA1.
  13228. (~SegmentMan): Removed diskWriter.
  13229. (FindSegmentEntryByIndex): Removed.
  13230. (FindSegmentEntryByCuid): Removed.
  13231. (checkoutSegment): Rewritten.
  13232. (findSlowerSegmentEntry): Rewritten.
  13233. (getSegment): Rewritten.
  13234. (updateSegment): Rewritten.
  13235. (completeSegment): Rewritten.
  13236. (markAllPiecesDone): New function.
  13237. (checkIntegrity): New function.
  13238. (isChunkChecksumValidationReady): New function.
  13239. (tryChunkChecksumValidation): New function.
  13240. * src/Xml2MetalinkProcessor.cc
  13241. (getEntry): Get size and set it to entry.
  13242. Get chunk checksum and set it to entry.
  13243. (getPieceHash): New function.
  13244. * src/Util.cc
  13245. (sha1Sum): Removed ctx.digestFree()
  13246. (fileChecksum): Removed ctx.digestFree()
  13247. (indexRange): New function.
  13248. * src/Request.cc
  13249. (METHOD_GET): New variable.
  13250. (METHOD_HEAD): New variable.
  13251. (Request): Added method.
  13252. * src/UrlRequestInfo.cc
  13253. (FatalException.h): New include.
  13254. (message.h): New include.
  13255. (operator<<): Added operator<< for class HeadResult.
  13256. (getHeadResult): New function.
  13257. (execute): Get filename and size in separate download engine.
  13258. * src/ChunkChecksumValidator.cc: New class.
  13259. * src/DownloadCommand.cc:
  13260. (DownloadCommand): Added peerStat.
  13261. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13262. the value from Option.
  13263. The buffer size is now 16KB.
  13264. Use peerStat member instead of getting it from SegmentMan.
  13265. Use startupIdleTime member instead of gettingit from Option.
  13266. Added chunk checksum validation.
  13267. * src/AbstractDiskWriter.cc
  13268. (AbstractDiskWriter): Removed ctx.
  13269. (~AbstractDiskWriter): Removed ctx.digestFree()
  13270. (writeDataInternal): Returns the return value of write.
  13271. (readDataInternal): Returns the return value of read.
  13272. (sha1Sum): Renamed as messageDigest
  13273. (messageDigest): New function.
  13274. * src/AbstractDiwkWriter.h
  13275. (messageDigest.h): Removed include.
  13276. (ctx): Removed.
  13277. (sha1Sum): Renamed as messageDigest
  13278. (messageDigest): New function.
  13279. * src/DefaultPieceStorage.h
  13280. (markAllPiecesDone): New function.
  13281. (checkIntegrity): New function.
  13282. * src/NullFileAllocationMonitor.h: New class.
  13283. * src/MetalinkChunkChecksum.h: New class.
  13284. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13285. To decrease CPU usage in bittorrent download, calculation results in
  13286. BitfieldMan were cached and realtime fetching PeerObject was removed
  13287. with WeakHandle introduced. Option values are set to the objects
  13288. by setter before download begins.
  13289. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13290. * src/DefaultBtRequestFactory.h
  13291. (dispatcher): BtMessageDispatcherHandle ->
  13292. BtMessageDispatcherWeakHandle.
  13293. (messageFactory): New variable.
  13294. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13295. BtMessageDispatcherWeakHandle.
  13296. (setBtMessageFactory): New function.
  13297. * src/DefaultBtMessageDispatcher.cc:
  13298. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13299. from Option.
  13300. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13301. feating the value from Option.
  13302. Use messageFactory member.
  13303. * src/PeerInteractionCommand.cc
  13304. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13305. Add reverse dependencies to factory object.
  13306. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13307. dispatcher.
  13308. Set messageFactory to receiver.
  13309. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13310. btInteractive.
  13311. Set receiver to peerObject.
  13312. Set maxDownloadSpeedLimit to this.
  13313. (executeInternal): Use maxDownloadSpeedLimit member.
  13314. * src/BtChokeMessage.cc
  13315. (doReceivedAction): Use dispatcher, requestFactory member.
  13316. (onSendComplete): Use dispatcher member.
  13317. * src/PeerInteractionCommand.h
  13318. (maxDownloadSpeedLimit): New variable.
  13319. * src/DefaultBtMessageReceiver.h
  13320. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13321. (dispatcher):
  13322. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13323. (messageFactory): New variable.
  13324. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13325. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13326. (setDispatcher):
  13327. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13328. (setBtMessageFactory): New function.
  13329. * src/DefaultBtInteractive.cc
  13330. (initiateHandshake): Use messageFactory member.
  13331. (addBitfieldMessageToQueue): Use messageFactory member.
  13332. (addAllowedFastMessageToQueue): Use messageFactory member.
  13333. (decideChoking): Use messageFactory member.
  13334. (checkHave): Use messageFactory member.
  13335. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13336. (receiveMessages): Use maxDownloadSpeedLimit member.
  13337. (decideInterest): Use messageFactory member.
  13338. * src/BtRequestMessage.cc
  13339. (doReceivedAction): Use messageFactory, dispatcher member.
  13340. (onQueued): Use dispatcher member.
  13341. * src/BtPieceMessage.cc
  13342. (doReceivedAction): Use dispatcher member.
  13343. (send): Use peerConnection member.
  13344. (onWrongPiece): Use requestFactory member.
  13345. (handleChokingEvent): Use messageFactory, dispatcher member.
  13346. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13347. * src/BtMessageDispatcher.h
  13348. (BtMessageDispatcherWeakHandle): New type definition.
  13349. * src/SimpleBtMessage.cc
  13350. (send): Use peerConnection member.
  13351. * src/BtRejectMessage.cc
  13352. (doReceivedAction): Use dispatcher member.
  13353. * src/DefaultBtMessageDispatcher.h
  13354. (Option.h): Removed include.
  13355. (messageFactory): New variable.
  13356. (option): Removed.
  13357. (maxUploadSpeedLimit): New variable.
  13358. (requestTimeout): New variable.
  13359. (DefaultBtMessageDispatcher): Removed option.
  13360. Added maxUploadSpeedLimit, requestTimeout.
  13361. (setOption): Removed.
  13362. (getOption): Removed.
  13363. (setMaxUploadSpeedLimit): New function.
  13364. (setRequestTimeout): New function.
  13365. (setBtMessageFactory): New function.
  13366. * src/DefaultBtInteractive.h
  13367. (btMessageReceiver):
  13368. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13369. (dispatcher):
  13370. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13371. (btRequestFactory):
  13372. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13373. (peerConnection):
  13374. PeerConnectionHandle -> PeerConnectionWeakHandle
  13375. (messageFactory): New variable.
  13376. (option): Removed.
  13377. (keepAliveInterval): New variable.
  13378. (maxDownloadSpeedLimit): New variable.
  13379. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13380. (setBtMessageReceiver):
  13381. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13382. (setDispatcher):
  13383. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13384. (setBtRequestFactory):
  13385. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13386. (setPeerConnection):
  13387. PeerConnectionHandle -> PeerConnectionWeakHandle
  13388. (setOption): Removed.
  13389. (setKeepAliveInterval): New function.
  13390. (setMaxDownloadSpeedLimit): New function.
  13391. (setBtMessageFactory): New function.
  13392. * src/BitfieldMan.h
  13393. (cachedNumMissingBlock): New variable.
  13394. (cachedNumFilteredBlock): New variable.
  13395. (cachedCompletedLength): New variable.
  13396. (cachedFilteredComletedLength): New variable.
  13397. (cachedFilteredTotalLength): New variable.
  13398. (countMissingBlockNow): New function.
  13399. (countFilteredBlockNow): New function.
  13400. (getFilteredTotalLengthNow): New function.
  13401. (getCompletedLengthNow): New function.
  13402. (getFilteredCompletedLengthNow): New function.
  13403. (updateCache): New function.
  13404. * src/AbstractBtMessage.h
  13405. (BtMessageDispatcher.h): New include.
  13406. (PeerConnection.h): New include.
  13407. (BtRequestFactory.h): New include
  13408. (BtMessageFactory.h): New include.
  13409. (dispatcher): New variable.
  13410. (messageFactory): New variable.
  13411. (peerConnection: New variable.
  13412. (setBtMessageDispatcher): New function.
  13413. (setPeerConnection): New function.
  13414. (setBtMessageFactory): New function.
  13415. (setBtRequestFactory): New function.
  13416. * src/DefaultBtMessageFactory.cc
  13417. (setCommonProperty): Set dispatcher, requestFactory, this,
  13418. peerConnection to msg.
  13419. * src/BtRegistry.h
  13420. (BT_MESSAGE_RECEIVER): New macro.
  13421. * src/PeerConnection.h
  13422. (PeerConnectionWeakHandle): New type definition.
  13423. * src/BtMessageFactory.h
  13424. (BtMessageFactoryWeakHandle): New type definition.
  13425. * src/BitfieldMan.cc
  13426. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13427. cachedCompletedLength, cachedFilteredComletedLength,
  13428. cachedFilteredTotalLength.
  13429. Call updateCache().
  13430. (countMissingBlock): Return cachedNumMissingBlock.
  13431. (countMissingBlockNow): New function.
  13432. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13433. (countFilteredBlockNow): New function.
  13434. (setBit): Call updateCache().
  13435. (unsetBit): Call updateCache().
  13436. (setBitfield): Call updateCache().
  13437. (clearAllBit): Call updateCache().
  13438. (setAllBit): Use setBitInternal instead of setBit.
  13439. Call updateCache().
  13440. (addFilter): Call updateCache().
  13441. (enableFilter): Call updateCache().
  13442. (disableFilter): Call updateCache().
  13443. (clearFilter): Call updateCache().
  13444. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13445. (getFilteredTotalLengthNow): New function.
  13446. (getCompletedLength): Return cachedCompletedLength.
  13447. (getCompletedLengthNow): New function.
  13448. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13449. (getFilteredCompletedLengthNow): New function.
  13450. (updateCache): New function.
  13451. * src/BtMessageReceiver.h
  13452. (BtMessageReceiverWeakHandle): New type definition.
  13453. * src/DefaultBtMessageReceiver.cc
  13454. (receiveHandshake): Use messageFactory member.
  13455. (sendHandshake): Use messageFactory member.
  13456. (receiveMessage): Use messageFactory member.
  13457. * src/DefaultBtMessageFactory.h
  13458. (dispatcher): New variable.
  13459. (requestFactory): New variable.
  13460. (peerConnection): New variablle.
  13461. (setBtMessageDispatcher): New function.
  13462. (setBtRequestFactory): New function.
  13463. (setPeerConnection): New function.
  13464. * src/SharedHandle.h
  13465. (RefCount): New class.
  13466. (WeakHandle): New class.
  13467. * src/PeerObject.h
  13468. (BtMessageReceiver.h): New include.
  13469. (PeerObject): Added btMessageReceiver.
  13470. (btMessageReceiver): New variable.
  13471. * src/Util.cc
  13472. (countBit): Simplified.
  13473. * src/BtCancelMessage.cc
  13474. (doReceivedAction): Use dispatcher member.
  13475. * src/BtRequestFactory.h
  13476. (BtRequestFactoryWeakHandle): New type definition.
  13477. * src/PeerStorage.h
  13478. (downloadSpeed): int -> uint32_t
  13479. (uploadSpeed): int -> uint32_t
  13480. (sessionDownloadLength): long long int -> uint64_t
  13481. (sessionUploadLength): long long int -> uint64_t
  13482. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13483. To add RecoverableException, FatalException:
  13484. * src/AbstractCommand.cc
  13485. (onAbort): Exception -> RecoverableException
  13486. * src/PeerAbstractCommand.h
  13487. (RecoverableException.h): New include.
  13488. (onAbort): Exception -> RecoverableException.
  13489. * src/PeerInteractionCommand.cc
  13490. (onAbort): Exception -> RecoverableException.
  13491. * src/PeerAbstractCommand.cc
  13492. (execute): Exception -> RecoverableException.
  13493. (onAbort): Exception -> RecoverableException.
  13494. * src/TorrentRequestInfo.cc
  13495. (execute): Exception -> RecoverableException.
  13496. * src/MetalinkRequestInfo.cc
  13497. (execute): Exception -> RecoverableException.
  13498. * src/MetaFileUtil.cc: RecoverableException.
  13499. * src/AbstractCommand.h
  13500. (onAbort): Exception -> RecoverableException.
  13501. * src/DlRetryEx.h: Exception -> RecoverableException.
  13502. * src/DlAbortEx.h: Exception -> RecoverableException.
  13503. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13504. * src/Util.cc: Exception -> RecoverableException.
  13505. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13506. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13507. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13508. To make ID static const int
  13509. * src/BtInterestedMessage.h
  13510. (ID_t): Removed.
  13511. (ID): New variable.
  13512. (getId): Made non-const.
  13513. * src/BtPieceMessage.h
  13514. (ID_t): Removed.
  13515. (ID): New variable.
  13516. (getId): Made non-const.
  13517. * src/BtChokeMessage.h
  13518. (ID_t): Removed.
  13519. (ID): New variable.
  13520. (getId): Made non-const.
  13521. * src/BtHaveAllMessage.h
  13522. (ID_t): Removed.
  13523. (ID): New variable.
  13524. (getId): Made non-const.
  13525. * src/BtKeepAliveMessage.h
  13526. (ID_t): Removed.
  13527. (ID): New variable.
  13528. (getId): Made non-const.
  13529. * src/BtHandshakeMessage.h
  13530. (ID): New variable.
  13531. (getId): Made non-const.
  13532. * src/BtSuggestPieceMessage.h
  13533. (ID_t): Removed.
  13534. (ID): New variable.
  13535. (getId): Made non-const.
  13536. * src/BtPortMessage.h
  13537. (ID_t): Removed.
  13538. (ID): New variable.
  13539. (getId): Made non-const.
  13540. * src/AbstractBtMessage.h
  13541. (id): Removed.
  13542. (AbstractBtMessage): Removed id.
  13543. (getId): Removed.
  13544. * src/BtHaveMessage.h
  13545. (ID_t): Removed.
  13546. (ID): New variable.
  13547. (getId): Made non-const.
  13548. * src/BtAllowedFastMessage.h
  13549. (ID_t): Removed.
  13550. (ID): New variable.
  13551. (getId): Made non-const.
  13552. * src/BtCancelMessage.h
  13553. (ID_t): Removed.
  13554. (ID): New variable.
  13555. (getId): Made non-const.
  13556. * src/BtNotInterestedMessage.h
  13557. (ID_t): Removed.
  13558. (ID): New variable.
  13559. (getId): Made non-const.
  13560. * src/BtChokeMessage.h
  13561. (ID_t): Removed.
  13562. (ID): New variable.
  13563. (getId): Made non-const.
  13564. * src/BtRejectMessage.h
  13565. (ID_t): Removed.
  13566. (ID): New variable.
  13567. (getId): Made non-const.
  13568. * src/BtBitfieldMessage.h
  13569. (ID_t): Removed.
  13570. (ID): New variable.
  13571. (getId): Made non-const.
  13572. * src/BtUnchokeMessage.h
  13573. (ID_t): Removed.
  13574. (ID): New variable.
  13575. (getId): Made non-const.
  13576. * src/BtRequestMessage.h
  13577. (ID_t): Removed.
  13578. (ID): New variable.
  13579. (getId): Made non-const.
  13580. * src/BtHaveMessage.h
  13581. (ID_t): Removed.
  13582. (ID): New variable.
  13583. (getId): Made non-const.
  13584. To add --force-truncate command-line option and a check whether
  13585. the file already exists:
  13586. * src/DirectDiskAdaptor.h
  13587. (getFilePath): Made virtual public.
  13588. * src/MultiDiskAdaptor.h
  13589. (File.h): New include.
  13590. (DiskWriterEntry::fileEntry): Made private.
  13591. (DiskWriterEntry::fileExists): New function.
  13592. (DiskWriterEntry::getFileEntry): New function.
  13593. (fileExists): New function.
  13594. (getFilePath): New function.
  13595. * src/TorrentRequestInfo.cc
  13596. (FatalException.h): New include.
  13597. (message.h): New include.
  13598. (RecoverableException.h): New include.
  13599. (execute): Added a check whether file is already exists or not.
  13600. * src/DiskAdaptor.h
  13601. (fileExists): New function.
  13602. (getFilePath): New function.
  13603. * src/main.cc
  13604. (showUsage): Added an explanation of --force-truncate command-line
  13605. option.
  13606. (main): Added --force-truncate command-line option.
  13607. * src/Exception.h
  13608. (setMsg): buf[256] -> buf[1024]
  13609. * src/CopyDiskWriter.h
  13610. (getFilePath): Made public virtual.
  13611. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13612. (fileExists): New function.
  13613. * src/DownloadEngineFactory.cc
  13614. (newTorrentConsoleEngine): Don't open file here.
  13615. * src/message.h
  13616. (EX_FILE_ALREADY_EXISTS): New definition.
  13617. * src/prefs.h
  13618. (PREF_FOECE_TRUNCATE): New definition.
  13619. * src/HttpResponseCommand.cc
  13620. (handleDefaultEncoding): Added a check whether the file already exists.
  13621. * src/SegmentMan.h
  13622. (fileExists): New function.
  13623. (shouldCancelDownloadForSafety): New function.
  13624. * src/FtpNegotiateCommand.cc
  13625. (recvSize): Added a check whether the file already exists.
  13626. * src/AbstractSingleDiskAdaptor.cc
  13627. (File.h): New include.
  13628. (fileExists): New function.
  13629. * src/AbstractSingleDiskAdaptor.h
  13630. (getFilePath): Removed.
  13631. (fileExists): New function.
  13632. * src/SegmentMan.cc
  13633. (fileExists): New function.
  13634. (shouldCancelDownloadForSafety): New function.
  13635. To fix regression bug in torrent downloading:
  13636. * src/DefaultBtRequestFactory.cc
  13637. (doChokedAction): New function.
  13638. * src/DefaultBtRequestFactory.h
  13639. (doChokedAction): New function.
  13640. * src/DefaultBtMessageDispatcher.cc
  13641. (doChokedAction): Do not delete request if its target is in allowed
  13642. fast set.
  13643. * src/DefaultBtInteractive.cc
  13644. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13645. (sendKeepAlive): Send keep alive message even if the outgoing message
  13646. queue is not empty.
  13647. (decideInterest): Simplified the code.
  13648. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13649. it is already called when BtChokeMessage is received from a peer.
  13650. * src/BtRequestFactory.h
  13651. (doChokedAction): New function.
  13652. To clean up code:
  13653. * src/PeerInteractionCommand.h
  13654. (executeInternal): Added virtual keyword explicitly.
  13655. (prepareForRetry): Added virtual keyword explicitly.
  13656. (prepareForNextPeer): Added virtual keyword explicitly.
  13657. (onAbort): Added virtual keyword explicitly.
  13658. * src/RequestSlot.cc
  13659. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13660. * src/BtPieceMessage.cc
  13661. (doReceivedAction): Added a debug log of piece's bitfield.
  13662. * src/Piece.h
  13663. (getBitfieldLength): New function.
  13664. * src/ByteArrayDiskWriter.cc
  13665. (clear): Added buf = 0 to avoid double free corruption.
  13666. * src/FileAllocator.cc
  13667. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13668. Added cp.reset().
  13669. * src/BitfieldMan.h
  13670. (operator=): Rewritten.
  13671. * src/BitfieldMan.cc
  13672. (BitfieldMan): Initialized bitfield, useBitfield.
  13673. * src/PeerConnection.cc
  13674. (receiveMessage): Added a call to socket->readable() after getting
  13675. message length to avoid possible EOF.
  13676. * src/Util.cc
  13677. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13678. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13679. To add an ability to pre-allocate file space:
  13680. * src/DirectDiskAdaptor.h: Rewritten.
  13681. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13682. * src/MultiDiskAdaptor.h: Rewritten.
  13683. * src/DefaultPieceStorage.cc
  13684. (MultiDiskWriter.h): Removed include.
  13685. (PreAllocationDiskWriter.h): Removed include.
  13686. (FileAllocationMonitor.h): New include.
  13687. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13688. (initStorage): Rewritten.
  13689. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13690. * src/FileAllocator.h: New class.
  13691. * src/FileAllocator.cc: New class.
  13692. * src/FileAllocationMonitor.h: New class.
  13693. * src/FileAllocationMonitor.cc: New class.
  13694. * src/ConsoleFileAllocationMonitor.h: New class.
  13695. * src/ConsoleFileAllocationMonitor.cc: New class.
  13696. * src/AbstractSingleDiskAdaptor.h: New class.
  13697. * src/AbstractSingleDiskAdaptor.cc: New class.
  13698. * src/DiskAdaptor.h
  13699. (Directory.h): Removed include.
  13700. (DiskWriter.h): Removed include.
  13701. (FileEntry.h): Removed include.
  13702. (diskWriter): Removed.
  13703. (DiskAdaptor): Removed diskWriter.
  13704. (openFile): Made pure virtual.
  13705. (closeFile): Made pure virtual.
  13706. (openExistingFile): Made pure virtual.
  13707. (initAndOpenFile): Made pure virtual.
  13708. (writeData): Made pure virtual.
  13709. (readData): Made pure virtual.
  13710. (sha1Sum): Made pure virtual.
  13711. (getStoreDir): Returns const reference of storeDir.
  13712. (DiskAdaptorHandle): New type definition.
  13713. * src/main.cc
  13714. (ConsoleFileAllocationMonitor.h): New include.
  13715. (showUsage): Added default value description of -s option.
  13716. Added the description of --file-allocation option.
  13717. (main): Set default value of --file-allocation option to 'none'.
  13718. Added --file-allocation command-line option.
  13719. Setup FileAllocationMonitorFactory.
  13720. * src/FtpInitiateConnectionCommand.cc
  13721. (executeInternal): Removed diskWriter related processing, which was
  13722. moved to FtpNegotiationCommand.cc.
  13723. * src/DirectDiskAdaptor.cc
  13724. (getFilePath): Made non-const.
  13725. * src/CopyDiskAdaptor.h
  13726. (DiskAdaptor.h): Removed include.
  13727. (DiskWriter.h): Removed include.
  13728. (AbstractSingleDiskAdaptor.h): New include.
  13729. (getFilePath): Made non-const. Added virtual keyword.
  13730. (CopyDiskAdaptor): Removed diskWriter.
  13731. (getTempFile): Returns const reference.
  13732. (CopyDiskAdaptorHandle): New type definition.
  13733. * src/ByteArrayDiskWriter.cc
  13734. (clear): Simplified.
  13735. (initAndOpenFile): Rewritten.
  13736. (openFile): Call initAndOpenFile()
  13737. * src/MultiDiskAdaptor.cc: Rewritten.
  13738. * src/DownloadEngineFactory.cc
  13739. (FileAllocator.h): New include.
  13740. (FileAllocationMonitor.h): New include.
  13741. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13742. create DefaultDiskWriter with file allocator.
  13743. * src/DiskWriter.h
  13744. (initAndOpenFile): Added totalLength argument.
  13745. (openFile): Added totalLength argument.
  13746. * src/prefs.h
  13747. (PREF_FILE_ALLOCATION): New definition.
  13748. (V_PREALLOC): New definition.
  13749. (V_NONE): New definition.
  13750. * src/HttpResponseCommand.cc
  13751. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13752. size.
  13753. * src/FtpNegotiateCommand.cc
  13754. (Util.h): New include.
  13755. (recvSize): Open file here.
  13756. * src/Util.h
  13757. (ullitos): New function.
  13758. * src/CopyDiskWriter.h
  13759. (getFilePath): Made non-const.
  13760. * src/DefaultDiskWriter.h
  13761. (Option.h): New include.
  13762. (totalLength): Removed.
  13763. (DefaultDiskWriter): Removed totalLength.
  13764. (initAndOpenFile): Added totalLength argument.
  13765. (DefaultDiskWriterHandle): New type definition.
  13766. (createNewDiskWriter): New function.
  13767. * src/Util.cc
  13768. (ullitos): New function.
  13769. * src/DefaultDiskWriter.cc
  13770. (message.h): New include.
  13771. (FileAllocator.h): New include.
  13772. (prefs.h): New include.
  13773. (Util.h): New include.
  13774. (DefaultDiskWriter): Removed totalLength.
  13775. (initAndOpenFile): Added file allocation.
  13776. (createNewDiskWriter): New function. Just for temporary solution.
  13777. It will be rewritten later.
  13778. * src/DiskAdaptor.cc
  13779. (DiskAdaptor): Removed diskWriter.
  13780. * src/AbstractDiskWriter.cc
  13781. (LogFactory.h): New include.
  13782. (AbstractDiskWriter): Added fileAllocator, logger.
  13783. (openFile): Added totalLength argument.
  13784. * src/AbstractDiskWriter.h
  13785. (FileAllocator.h): New include.
  13786. (Logger.h): New include.
  13787. (fileAllocator): New variable.
  13788. (logger): New variable.
  13789. (openFile): Added totalLength argument. Added virtual keyword
  13790. explicitly.
  13791. (openExistingFile): Added totalLength argument. Added virtual keyword
  13792. explicitly.
  13793. (closeFile): Added virtual keyword explicitly.
  13794. (sha1Sum): Added virtual keyword explicitly.
  13795. (writeData): Added virtual keyword explicitly.
  13796. (readData): Added virtual keyword explicitly.
  13797. (setFileAllocator): New function.
  13798. * src/DefaultPieceStorage.h
  13799. (FileAllocator.h): New include.
  13800. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13801. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13802. * src/FileProgressMonitor.h: New class.
  13803. To compile aria2 on PC-BSD:
  13804. * src/DefaultBtContext.cc
  13805. (libgen.h): New include.
  13806. To fix memory leak:
  13807. * src/Exception.h
  13808. (~Exception): Delete cause. Fixed memory leak.
  13809. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13810. Rewritten a portion of bittorrent implementation:
  13811. * src/BtMessageValidator.h: New class.
  13812. * src/BtBitfieldMessageValidator.h: New class.
  13813. * src/BtHandshakeMessageValidator.h: New class.
  13814. * src/BtRequestMessageValidator.h: New class.
  13815. * src/BtSuggestPieceMessageValidator.h: New class.
  13816. * src/BtAllowedFastMessageValidator.h: New class.
  13817. * src/BtRejectMessageValidator.h: New class.
  13818. * src/BtCancelMessageValidator.h: New class.
  13819. * src/BtPieceMessageValidator.h: New class.
  13820. * src/BtHaveMessageValidator.h: New class.
  13821. * src/BtEventListener.h: New class.
  13822. * src/AbstractBtEventListener.h: New class.
  13823. * src/BtEvent.h: New class.
  13824. * src/BtChokingEvent.h: New class.
  13825. * src/BtChokedEvent.h: New class.
  13826. * src/BtCancelSendingPieceEvent.h: New class.
  13827. * src/BtAbortOutstandingRequestEvent.h: New class.
  13828. * src/Randomizer.h: New class.
  13829. * src/SimpleRandomizer.h: New class.
  13830. * src/BtMessage.h: New class.
  13831. * src/AbstractBtMessage.h: New class.
  13832. * src/SimpleBtMessage.h: New class.
  13833. * src/BtHaveMessage.h: New class.
  13834. * src/BtInterestedMessage.h: New class.
  13835. * src/BtAllowedFastMessage.h: New class.
  13836. * src/BtUnchokeMessage.h: New class.
  13837. * src/BtCancelMessage.h: New class.
  13838. * src/BtNotInterestedMessage.h: New class.
  13839. * src/BtChokeMessage.h: New class.
  13840. * src/BtHaveNoneMessage.h: New class.
  13841. * src/BtHandshakeMessage.h: New class.
  13842. * src/BtSuggestPieceMessage.h: New class.
  13843. * src/BtHaveMessage.h: New class.
  13844. * src/BtPieceMessage.h: New class.
  13845. * src/BtHaveAllMessage.h: New class.
  13846. * src/BtKeepAliveMessage.h: New class.
  13847. * src/BtPortMessage.h: New class.
  13848. * src/BtRejectMessage.h: New class.
  13849. * src/BtBitfieldMessage.h: New class.
  13850. * src/BtRequestMessage.h: New class.
  13851. * src/DefaultBtRequestFactory.h: New class.
  13852. * src/DefaultBtMessageReceiver.h: New class.
  13853. * src/BtInteractive.h: New class.
  13854. * src/BtMessageDispatcher.h: New class.
  13855. * src/DefaultBtMessageDispatcher.h: New class.
  13856. * src/DefaultBtInteractive.h: New class.
  13857. * src/BitfieldManFactory.h: New class.
  13858. * src/HandleRegistry.h: New class.
  13859. * src/BtMessageFactory.h: New class.
  13860. * src/BtMessageReceiver.h: New class.
  13861. * src/DefaultBtMessageFactory.h: New class.
  13862. * src/PeerObject.h: New class.
  13863. * src/BtRequestFactory.h: New class.
  13864. * src/SuggestPieceMessage.h: Removed.
  13865. * src/PortMessage.h: Removed.
  13866. * src/SuggestPieceMessage.h: Removed.
  13867. * src/KeepAliveMessage.h: Removed.
  13868. * src/HandshakeMessage.h: Removed.
  13869. * src/PeerInteraction.h: Removed.
  13870. * src/UnchokeMessage.h: Removed.
  13871. * src/PieceMessage.h: Removed.
  13872. * src/RequestMessage.h: Removed.
  13873. * src/InterestedMessage.h: Removed.
  13874. * src/HaveMessage.h: Removed.
  13875. * src/CancelMessage.h: Removed.
  13876. * src/RejectMessage.h: Removed.
  13877. * src/AllowedFastMessage.h: Removed.
  13878. * src/HaveNoneMessage.h: Removed.
  13879. * src/SimplePeerMessage.h: Removed.
  13880. * src/HaveAllMessage.h: Removed.
  13881. * src/BitfieldMessage.h: Removed.
  13882. * src/PeerMessageFactory.h: Removed.
  13883. * src/NotInterestedMessage.h: Removed.
  13884. * src/ChokeMessage.h: Removed.
  13885. * src/PeerMessage.h: Removed.
  13886. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13887. To know root cause of exception:
  13888. * src/Exception.h
  13889. (cause): New variable.
  13890. (Exception): Added a parameter.
  13891. (getMsg): Return const reference to msg.
  13892. (getCause): New function.
  13893. * src/DlRetryEx.h
  13894. (DlRetryEx): Added a parameter 'cause'.
  13895. Added an overloaded constructor.
  13896. (DlAbortEx): Added a parameter 'cause'.
  13897. Added an overloaded constructor.
  13898. * src/SimpleLogger.cc
  13899. (writeLog): Log nested exception messages recursively.
  13900. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13901. * src/DefaultBtProgressInfoFile.cc
  13902. (load): Fixed memory leak when the infohash doesn't match.
  13903. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13904. * src/DefaultPeerStorage.cc
  13905. (calculateStat): Simplified the code by combining 2 loops into 1.
  13906. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13907. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13908. for BitTorrent download:
  13909. * src/PeerAbstractCommand.cc
  13910. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13911. * src/main.cc:
  13912. (timeoutSpecified): Removed.
  13913. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13914. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13915. * src/TorrentRequestInfo.cc
  13916. (timeoutSpecified): Removed.
  13917. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13918. timeout value.
  13919. * src/prefs.h
  13920. (PREF_BT_TIMEOUT): New definition.
  13921. Delete unused variables:
  13922. * src/TorrentRequestInfo.cc
  13923. (requestInfo): Removed.
  13924. Move setSignalHander to Util::setGlobalSignalHandler:
  13925. * src/TorrentRequestInfo.cc:
  13926. setSignalHander -> Util::setGlobalSignalHandler
  13927. * src/main.cc
  13928. (setSignalHander): Removed.
  13929. (main): setSignalHander -> Util::setGlobalSignalHandler
  13930. * src/Util.h
  13931. (setGlobalSignalHandler): New function.
  13932. * src/Util.cc
  13933. (setGlobalSignalHandler): New function.
  13934. * src/UrlRequestInfo.cc:
  13935. setSignalHander -> Util::setGlobalSignalHandler
  13936. Reset peer status in order to exit gracefully:
  13937. * src/PeerAbstractCommand.cc
  13938. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13939. To fix the bug that causes the number of bytes uploaded is not saved
  13940. to .aria2 file:
  13941. * src/DefaultPeerStorage.h
  13942. (removedPeerSessionDownloadLength): New variable.
  13943. (removedPeerSessionUploadLength): New variable.
  13944. * src/DefaultPeerStorage.cc
  13945. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13946. removedPeerSessionUploadLength(0).
  13947. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13948. through all peers, and then add removedPeerSessionDownloadLength(
  13949. removedPeerSessionUploadLength) to it.
  13950. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13951. (to) the peer to removedPeerSessionDownloadLength
  13952. (removedPeerSessionUploadLength).
  13953. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13954. To add Metalink location option:
  13955. * src/MetalinkRequestInfo.cc
  13956. (execute): Call MetalinkEntry::setLocationPreference()
  13957. * src/main.cc
  13958. (showUsage): Added the help message for --metalink-location option.
  13959. (main): Added --metalink-location option.
  13960. * src/prefs.h
  13961. (PREF_METALINK_LOCATION): New definition.
  13962. * src/MetalinkEntry.cc
  13963. (AddLocationPreference): New function object.
  13964. (setLocationPreference): New function.
  13965. * src/Xml2MetalinkProcessor.cc
  13966. (getResource): Set location attribute to MetalinkResource
  13967. To show URLs to download
  13968. * src/UrlRequestInfo.h
  13969. (printUrls): New function.
  13970. To add multiple <file> Metalink support:
  13971. * src/MetalinkEntry.h
  13972. (MetalinkResources): Removed.
  13973. (setLocationPreference): New function.
  13974. (MetalinkEntryHandle): New type definition.
  13975. (MetalinkEntries): New type definition.
  13976. * src/Xml2MetalinkProcessor.h
  13977. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13978. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13979. (parseFile): Metalinker* -> MetalinkerHandle
  13980. * src/UrlRequestInfo.h
  13981. (execute): RequestInfo* -> RequestInfos
  13982. * src/MetalinkRequestInfo.cc
  13983. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13984. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13985. (execute): RequestInfo* -> RequestInfos
  13986. Added multiple <file> support. Print filename when it is queued.
  13987. * src/MetalinkRequestInfo.h
  13988. (execute): RequestInfo* -> RequestInfos
  13989. (getDownloadEngine): Removed.
  13990. * src/RequestInfo.h
  13991. (RequestInfoHandle): New type definition.
  13992. (RequestInfos): New type definition.
  13993. (execute): RequestInfo* -> RequestInfos
  13994. (getDownloadEngine): Removed.
  13995. * src/MetalinkResource.h
  13996. (MetalinkResourceHandle): New type definition.
  13997. (MetalinkResources): New type definition.
  13998. * src/MetalinkEntry.cc
  13999. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14000. because the element is now of type MetalinkResourceHandle.
  14001. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14002. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14003. (dropUnsupportedResource): Removed the deletion of the elements of
  14004. resources because the element is now of type MetalinkResourceHandle.
  14005. * src/Xml2MetalinkProcessor.cc
  14006. (parseFile): Metalinker* -> MetalinkerHandle
  14007. MetalinkEntry* -> MetalinkEntryHandle
  14008. Removed try-catch block.
  14009. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14010. MetalinkResource* -> MetalinkResourceHandle
  14011. Removed try-catch block.
  14012. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14013. Free result by using xmlXPathFreeObject()
  14014. * src/Metalinker.cc
  14015. (~Metalinker): Removed the deletion of entries.
  14016. MetalinkEntry* -> MetalinkEntryHandle
  14017. (queryEntry): Add multiple <file> Metalink support.
  14018. * src/Metalinker.h
  14019. (MetalinkEntries): Removed.
  14020. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14021. * src/MetalinkProcessor.h
  14022. (parseFile): Metalinker* -> MetalinkerHandle
  14023. Bug fixes:
  14024. * src/PeerChokeCommand.cc
  14025. (execute): cat01->cat02
  14026. * src/DefaultPieceStorage.cc
  14027. (DefaultPieceStorage): Added diskAdaptor(0)
  14028. * src/TrackerWatcherComand.cc:
  14029. (execute): Use btAnnounce->noMoreAnnounce()
  14030. to determin whether the function returns true or not.
  14031. * src/TrackerUpdateCommand.cc:
  14032. (execute): Use btAnnounce->noMoreAnnounce()
  14033. to determin whether the function returns true or not.
  14034. * src/FtpConnection.cc
  14035. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14036. This is the fix of the busy loop bug.
  14037. * src/DownloadCommand.cc
  14038. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14039. cached PeerStat.
  14040. The value of "name" entry in torrent file is now set by
  14041. *DiskAdaptor::setTopDir(...) methods.
  14042. * src/MultiDiskAdaptor.h
  14043. (topDir): New variable.
  14044. (setTopDir): New function.
  14045. (getTopDir): New function.
  14046. * src/MultiDiskAdaptor.cc
  14047. (getFilePath): Concat storDir, "/" and topDir.
  14048. (mkdir): Use getFilePath() to get the directory path for output.
  14049. * src/DefaultPieceStorage.cc
  14050. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14051. CopyDiskAdaptor.
  14052. * src/CopyDiskAdaptor.h
  14053. (topDir): New variable.
  14054. (setTopDir): New function.
  14055. (getTopDir): New function.
  14056. * src/CopyDiskAdaptor.cc
  14057. (fixFilename): Updated.
  14058. Misc
  14059. * src/UrlRequestInfo.h
  14060. (e): Removed.
  14061. (UrlRequestInfo): Removed e.
  14062. (getDownloadEngine): Removed.
  14063. * src/UrlRequestInfo.cc
  14064. (handler): Rewritten.
  14065. (printUrls): New function.
  14066. (execute): Call printUrls().
  14067. * src/HandshakeMessage.cc
  14068. (check): peerinteraction->getBtContext() -> btContext
  14069. * src/PeerInteraction.h
  14070. (getBtContext): Removed.
  14071. * src/TorrentRequestInfo.h
  14072. (execute): RequestInfo* -> RequestInfos
  14073. (getDownloadEngine): Removed.
  14074. * src/TorrentRequestInfo.cc
  14075. (haltRequested): Removed.
  14076. (btHaltRequested): New variable.
  14077. (torrentHandler): haltRequested -> btHaltRequested
  14078. (execute): RequestInfo* -> RequestInfos
  14079. * src/TorrentConsoleDownloadEngine.cc
  14080. (afterEachIteration): haltRequested -> btHaltRequested.
  14081. * src/ConsoleDownloadEngine.h
  14082. (initStatistics): Added virtual.
  14083. (calculateStatistics): Added virtual.
  14084. (onEndOfRun): Added virtual.
  14085. (afterEachIteration): Added virtual.
  14086. * src/ConsoleDownloadEngine.cc
  14087. (haltRequested): New variable.
  14088. (afterEachIteration): New function.
  14089. * src/main.cc
  14090. (requestInfo): Removed.
  14091. * src/SegmentMan.cc
  14092. (findSlowerSegmentEntry): Refactored.
  14093. * Release 0.9.0
  14094. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14095. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14096. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14097. * src/TorrentMan.h: Removed.
  14098. * src/TorrentMan.cc: Removed.
  14099. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14100. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14101. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14102. * src/PeerAbstractCommand.cc: Use btRuntime.
  14103. * src/BtContextAwareCommand.h: New class.
  14104. * src/FileEntry.h: Added accessor methods for following variables.
  14105. (path): Made private.
  14106. (length): Made private.
  14107. (offset): Made private.
  14108. (extracted): Made private.
  14109. (requested): Made private.
  14110. (FileEntries): New definition.
  14111. (FileEntryHandle): New definition.
  14112. * src/FileEntry.cc: New file.
  14113. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14114. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14115. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14116. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14117. * src/PieceStorage.h: New file.
  14118. * src/PeerInteractionCommand.h: Use btContext.
  14119. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14120. btRuntime.
  14121. * src/DefaultBtProgressInfoFile.h: New file.
  14122. * src/DefaultBtProgressInfoFile.cc: New file.
  14123. * src/File.cc
  14124. (Util.h): New include.
  14125. (mkdirs): New function.
  14126. * src/MultiDiskAdaptor.h
  14127. (mkdir): New function.
  14128. * src/PeerListProcessor.h
  14129. (Peers): Removed.
  14130. * src/PeerInteraction.h
  14131. (torrentMan): Removed.
  14132. (btContext): New variable.
  14133. (peerStorage): New variable.
  14134. (pieceStorage): New variable.
  14135. (btAnnounce): New variable.
  14136. (getTorrentMan): Removed.
  14137. (getBtContext): New function.
  14138. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14139. btAnnounce.
  14140. * src/HandshakeMessage.h
  14141. (TorrentMan.h): Removed.
  14142. * src/HandshakeMessage.cc: Use btContext.
  14143. * src/DefaultBtAnnounce.cc: New file.
  14144. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14145. * src/DefaultPieceStorage.cc: New file.
  14146. * src/DefaultBtContext.h: New file.
  14147. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14148. Use the accessor methods of FileEntry.
  14149. * src/CookieBox.cc: Updated to use Util::slice().
  14150. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14151. * src/common.h (SharedHandle.h): New include.
  14152. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14153. pieceStorage.
  14154. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14155. * src/DiskAdaptor.h
  14156. (topDir): Removed.
  14157. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14158. (setTopDir): Removed.
  14159. (getTopDir): Removed.
  14160. * src/BtContext.h: New file.
  14161. * src/DefaultPeerStorage.h: New file.
  14162. * src/PieceMessage.h (TorrentMan.h): Removed.
  14163. * src/RequestMessage.h (TorrentMan.h): Removed.
  14164. * src/TorrentDownloadEngine.h
  14165. (uploadLength): New variable.
  14166. (btContext): New variable.
  14167. (btRuntime): New variable.
  14168. (pieceStorage): New variable.
  14169. (peerStorage): New variable.
  14170. (btAnnounce): New variable.
  14171. (btProgressInfoFile): New variable.
  14172. (torrentMan): Removed.
  14173. (setBtContext): New function.
  14174. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14175. peerStorage, btAnnounce, btProgressInfoFile.
  14176. * src/Piece.h
  14177. (toString): New function.
  14178. (Pieces): New type definition.
  14179. * src/Peer.h
  14180. (active): New variable.
  14181. (Peer): Added active.
  14182. (activate): Set active to true.
  14183. (deactivate): Set active to false.
  14184. (isActive): New function.
  14185. (Peers): New type definition.
  14186. * src/DirectDiskAdaptor.cc
  14187. (getFilePath): Use the accessor methods of FileEntry.
  14188. * src/TorrentConsoleDownloadEngine.h
  14189. (afterEachIteration): New function.
  14190. * src/TorrentConsoleDownloadEngine.cc
  14191. (haltRequested): New variable.
  14192. (sendStatistics): Use pieceStorage, btRuntime.
  14193. (afterEachIteration): New function.
  14194. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14195. * src/Directry.h
  14196. (Directory): New function.
  14197. (DirectoryHandle): New type definition.
  14198. * src/BtProgressInfoFile.h: New file.
  14199. * src/RequestMessage.cc: Use pieceStorage.
  14200. * src/BtRuntime.h: New file.
  14201. * src/DefaultBtContext.cc: New file.
  14202. * src/BitfieldMan.h
  14203. (getCompletedLength): New function(private).
  14204. (getCompletedLength): New function.
  14205. (getFilteredCompletedLength): New function.
  14206. * src/BitfieldMan.h
  14207. (getCompletedLength): New function(private).
  14208. (getCompletedLength): New function.
  14209. (getFilteredCompletedLength): New function.
  14210. * src/MultiDiskAdaptor.cc
  14211. (mkdir): New function.
  14212. (openFile): Call mkdir().
  14213. (initAndOpenFile): Call mkdir().
  14214. * src/CancelMessage.h
  14215. (TorrentMan.h): Removed.
  14216. * src/RejectMessage.h
  14217. (TorrentMan.h): Removed.
  14218. * src/DownloadEngineFactory.cc
  14219. (DefaultPieceStorage.h): New include.
  14220. (DefaultPeerStorage.h): New include.
  14221. (DefaultBtAnnounce.h): New include.
  14222. (DefaultBtProgressInfoFile.h): New include.
  14223. (newTorrentConsoleEngine): Rewritten.
  14224. * src/ShareRatioSeedCriteria.h
  14225. (torrentMan): Removed.
  14226. (btContext): New variable.
  14227. (peerStorage): New variable.
  14228. (btRuntime): New variable.
  14229. (evaluate): Use btContext, btRuntime, peerStorage.
  14230. * src/AnnounceTier.h: New file.
  14231. * src/BtAnnounce.h: New file.
  14232. * src/BtRegistry.h: New file.
  14233. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14234. * src/PeerConnection.h (TorrentMan.h): Removed.
  14235. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14236. * src/Util.h
  14237. (slice): Added an argument.
  14238. * src/Util.cc
  14239. (slice): Added an argument to control whether trim is made or not.
  14240. * src/PeerStorage.h: New file.
  14241. * src/BtRegistry.cc: New file.
  14242. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14243. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14244. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14245. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14246. * src/TorrentRequestInfo.h
  14247. (e): Removed.
  14248. (showFileEntry): Added an argument.
  14249. (getDownloadEngine): Return 0.
  14250. * src/DefaultBtAnnounce.h: New file.
  14251. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14252. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14253. * src/PeerMessageFactory.h
  14254. (btContext): New variable.
  14255. (pieceStorage): New variable.
  14256. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14257. btAnnounce.
  14258. * src/DiskAdaptor.cc
  14259. (DiskAdaptor): Removed topDir.
  14260. (~DiskAdaptor): Removed topDir.
  14261. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14262. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14263. * src/File.h (mkdirs): New function.
  14264. * src/DefaultPeerStorage): New file.
  14265. * src/DownloadEngineFactory.h
  14266. (newTorrentConsoleEngine): Use btContext.
  14267. * src/BtContextAwareCommand.cc: New file.
  14268. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14269. * src/PeerMessage.h
  14270. (btContext): New variable.
  14271. (peerStorage): New variable.
  14272. (pieceStorage): New variable.
  14273. (setBtContext): New function.
  14274. * src/Directry.cc
  14275. (Directory): New function.
  14276. (createDir): Do nothing if name.size() == 0.
  14277. * src/AnnounceList.h
  14278. (AnnounceTier): Removed.
  14279. (AnnounceTiers): Removed.
  14280. * src/DefaultPieceStorage.h: New file.
  14281. * src/Piece.cc (toString): New function.
  14282. To fix typo:
  14283. * src/main.cc (showVersion): Fixed typo.
  14284. To fix compile warning:
  14285. * src/DelegatingPeerListProcessor.cc
  14286. (canHandle): Added "return false".
  14287. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14288. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14289. make the process of announce request testable.
  14290. * src/TrackerWatcherCommand.h
  14291. (TimeA2.h): Removed.
  14292. (interval): Removed.
  14293. (checkPoint): Removed.
  14294. (createRequestCommand): Added an argument 'url'.
  14295. (TrackerWatherCommand): Removed interval.
  14296. (createCommand): New function.
  14297. * src/DownloadEngineFactory.cc
  14298. (newTorrentConsoleEngine): Updated according to the changes in
  14299. TrackerWatherCommand.
  14300. * src/TorrentMan.cc
  14301. (DelegatingPeerListProcessor.h): New includes.
  14302. (TorrentMan): Added the initialization of announceInterval.
  14303. (isStoppedAnnounceReady): New function.
  14304. (isCompletedAnnounceReady): New function.
  14305. (isDefaultAnnounceReady): New function.
  14306. (isAnnounceReady): New function.
  14307. (getAnnounceUrl): New function.
  14308. (announceStart): New function.
  14309. (announceFailure): New function.
  14310. (announceSuccess): New function.
  14311. (isAllAnnounceFailed): New function.
  14312. (resetAnnounce): New function.
  14313. (processAnnounceResponse): New function.
  14314. (needMorePeerConnection): New function.
  14315. (noMoreAnnounce): New function.
  14316. * src/TrackerUpdateCommand.h
  14317. (getTrackerResponse): int->size_t
  14318. * src/TorrentMan.h
  14319. (isStoppedAnnounceReady): New function.
  14320. (isCompletedAnnounceReady): New function.
  14321. (isDefaultAnnounceReady): New function.
  14322. (announceInterval): New variable.
  14323. (isAnnounceReady): New function.
  14324. (getAnnounceUrl): New function.
  14325. (announceStart): New function.
  14326. (announceFailure): New function.
  14327. (announceSuccess): New function.
  14328. (isAllAnnounceFailed): New function.
  14329. (resetAnnounce): New function.
  14330. (processAnnounceResponse): New function.
  14331. (needMorePeerConnection): New function.
  14332. (noMoreAnnounce): New function.
  14333. * src/TrackerWatcherCommand.cc
  14334. (TrackerWatherCommand): Removed interval and checkPoint.
  14335. (execute): Rewritten.
  14336. (createCommand): New function.
  14337. (createRequestCommand): Rewritten.
  14338. * src/TrackerUpdateCommand.cc
  14339. (MetaFileUtil.h): Removed.
  14340. (DelegatingPeerListProcessor.h): Removed.
  14341. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14342. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14343. Request -> RequestHandle:
  14344. * src/HttpResponseCommand.h: Request->RequestHandle
  14345. * src/AbstractCommand.cc: Request->RequestHandle
  14346. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14347. * src/HttpRequestCommand.cc: Request->RequestHandle
  14348. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14349. * src/AbstractCommand.h: Request->RequestHandle
  14350. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14351. * src/HttpResponseCommand.cc: Request->RequestHandle
  14352. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14353. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14354. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14355. * src/HttpConnection.h: Request->RequestHandle
  14356. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14357. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14358. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14359. * src/DownloadCommand.h: Request->RequestHandle
  14360. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14361. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14362. * src/HttpRequestCommand.h: Request->RequestHandle
  14363. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14364. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14365. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14366. * src/HttpDownloadCommand.h: Request->RequestHandle
  14367. * src/FtpConnection.cc: Request->RequestHandle
  14368. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14369. * src/UrlRequestInfo.cc: Request->RequestHandle
  14370. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14371. * src/HttpConnection.h: Request->RequestHandle
  14372. * src/DownloadCommand.cc: Request->RequestHandle
  14373. * src/FtpConnection.h: Request->RequestHandle
  14374. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14375. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14376. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14377. * src/Request.h
  14378. (SharedHandle.h): New include.
  14379. (RequestHandle): New type definition.
  14380. (Requests): Redefined.
  14381. To add MULTITRACKER support:
  14382. * src/TrackerWatcherCommand.h
  14383. (createRequestCommand): New function.
  14384. * src/DownloadEngineFactory.cc
  14385. (newTorrentConsoleEngine): Removed req.
  14386. * src/prefs.h
  14387. (PREF_TRACKER_MAX_TRIES): New definition.
  14388. * src/TorrentMan.cc
  14389. (TorrentMan): Removed req. Added trackerNumTry.
  14390. (~TorrentMan): Removed req.
  14391. (setupInternal1): Added announceList.
  14392. * src/TorrentRequestInfo.cc
  14393. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14394. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14395. * src/main.cc
  14396. (main): Added PREF_TRACKER_MAX_TRIES.
  14397. * src/TorrentMan.h
  14398. (Request.h): Removed.
  14399. (AnnounceList.h): New include.
  14400. (trackerNumTry): New variable.
  14401. (req): Removed.
  14402. (announceList): New variable.
  14403. * src/TrackerWatcherCommand.cc
  14404. (execute): Rewritten.
  14405. (createRequestCommand): New function.
  14406. * src/TrackerUpdateCommand.cc
  14407. (execute): Updated with the use of AnnounceList.
  14408. * src/AnnounceList.cc: New class.
  14409. * src/AnnounceList.h: New class.
  14410. To fix typo:
  14411. * src/prefs.h
  14412. (PREF_MAX_TRIES): max_try->max_tries
  14413. To not to decode "+" as space in URL decode:
  14414. * src/Util.cc
  14415. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14416. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14417. To add timeout to async name resolution:
  14418. * src/AbstractCommand.h
  14419. (nameResolveFinished): New function. This is not elegant way. It needs
  14420. to be more refined.
  14421. (nameResolverCheck): New variable.
  14422. * src/AbstractCommand.cc
  14423. (AbstractCommand): Added nameResolverCheck.
  14424. (execute): Added the check whether the name resolution has finished.
  14425. (setNameResolverCheck): Set nameResolverCheck to true.
  14426. (disableNameResolverCheck): Set nameResolverCheck to false.
  14427. (nameResolverFinished): New function.
  14428. * src/FtpInitiateConnectionCommand.h
  14429. (nameResolverFinished): New function.
  14430. * src/FtpInitiateConnectionCommand.cc
  14431. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14432. * src/HttpInitiateConnectionCommand.h
  14433. (nameResolverFinished): New function.
  14434. * src/HttpInitiateConnectionCommand.cc
  14435. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14436. * src/prefs.h
  14437. (PREF_DNS_TIMEOUT): New definition.
  14438. * src/main.cc
  14439. (main): Added PREF_DNS_TIMEOUT.
  14440. To add the support for a non-compact response from a tracker:
  14441. * src/PeerListProcessor.h: New class.
  14442. * src/DefaultPeerListProcessor.h: New class.
  14443. * src/DefaultPeerListProcessor.cc: New class.
  14444. * src/CompactPeerListProcessor.h: New class.
  14445. * src/CompactPeerListProcessor.cc: New class.
  14446. * src/DelegatingPeerListProcessor.h: New class.
  14447. * src/DelegatingPeerListProcessor.cc: New class.
  14448. * src/TorrentMan.cc
  14449. (addPeer): New function(overload).
  14450. (addPeer): Delete unused peers only when new peer is added.
  14451. * src/TorrentMan.h
  14452. (PeerListProcessor.h): Included.
  14453. (Peers): Removed.
  14454. (addPeer): New function(overload).
  14455. * src/TrackerUpdateCommand.cc
  14456. (netinet/in.h): Removed.
  14457. (DelegatingPeerListProcessor.h): Included.
  14458. (execute): Updated to use DelegatingPeerListProcessor.
  14459. To fix the memory leak in TorrentMan::peers:
  14460. * src/PeerAbstractCommand.cc
  14461. (onAbort): Added peer->resetStatus().
  14462. * src/Peer.h
  14463. (resetStatus): Made public.
  14464. To improve the precision of the speed calculation:
  14465. * src/SpeedCalc.h
  14466. (nextInterval): New variable.
  14467. * src/SpeedCalc.cc
  14468. (reset): Added nextInterval.
  14469. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14470. (changeSw): Set nextInterval to 15 seconds relative to the current
  14471. instant time.
  14472. * src/main.cc
  14473. (showVersion): Updated.
  14474. (showUsage): Updated.
  14475. * Release 0.8.1
  14476. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14477. * src/main.cc
  14478. (showUsage): Commented out --min-segment-size option.
  14479. (main): Commented out --min-segment-size option.
  14480. * Release 0.8.0
  14481. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14482. * src/*.{h,cc}:
  14483. Added an exception to the license which allows linking with OpenSSL.
  14484. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14485. * src/AbstractCommand.cc
  14486. (execute): Check whether the download has finished before checking
  14487. socket status.
  14488. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14489. Do not exit even if no segment is available.
  14490. * src/prefs.h
  14491. (PREF_STARTUP_IDLE_TIME): New definition.
  14492. * src/PeerInteractionCommand.cc
  14493. (executeInternal): Removed max speed limit. Because it performs bad.
  14494. (receiveMessages): Added max speed limit. This was better than above,
  14495. but still a little bit to be desired. Sometimes the download speed
  14496. became much faster than I specified.
  14497. * src/SpeedCalc.h
  14498. (start): New variable.
  14499. (accumulatedLength): New variable.
  14500. (getAvgSpeed): New function.
  14501. * src/SpeedCalc.cc
  14502. (reset): Added start, accumulatedLength.
  14503. (update): Added calculation of an average speed.
  14504. (getAvgSpeed): New function.
  14505. * src/DownloadCommand.h
  14506. (sw): Removed.
  14507. * src/main.cc
  14508. (main): Added PREF_STARTUP_IDLE_TIME.
  14509. * src/PeerStat.h
  14510. (STATUS): Added REQUEST_IDLE.
  14511. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14512. (getAvgDownloadSpeed): New function
  14513. (requestIdle): New function.
  14514. * src/SegmentMan.h
  14515. (SegmentEntryHandle): New type definition.
  14516. (SegmentEntries): Now holds SegmentEntryHandle.
  14517. (findSlowerSegmentEntry): New funtion.
  14518. * src/SegmentMan.cc
  14519. (save): Updated according to the changes in SegmentEntries.
  14520. (read): Updated according to the changes in SegmentEntries.
  14521. (FindSegmentEntryByIndex): Updated according to the changes in
  14522. SegmentEntries.
  14523. (FindSegmentEntryByCuid): Updated according to the changes in
  14524. SegmentEntries.
  14525. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14526. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14527. Renamed uitr as itr.
  14528. (findSlowerSegmentEntry): New function.
  14529. (getSegment): Updated according to the changes in SegmentEntries.
  14530. Added the feature that cancels the segment with slow server and fast
  14531. one takes it over.
  14532. (cancelSegment): Updated according to the changes in SegmentEntries.
  14533. (getDownloadLength): Updated according to the changes in
  14534. SegmentEntries.
  14535. (init): Assigned 0 to bitfield after deleting it.
  14536. * src/DownloadCommand.cc
  14537. (STARTUP_IDLE_TIME): Removed.
  14538. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14539. * src/PeerChokeCommand.cc
  14540. (optUnchokingPeer): Updated according to the changes in Peer.
  14541. (ResetDelta): Removed.
  14542. (UploadFaster): Updated according to the changes in Peer.
  14543. (DownloadFaster): Updated according to the changes in Peer.
  14544. (execute): I clarify the meaning of "upload" and "download" here.
  14545. "upload" means the transfer from localhost to remote host.
  14546. "download" means the transfer from remote host to localhost.
  14547. Based on this rule, I swapped orderByUploadRate and
  14548. orderByDownloadRate.
  14549. * src/PeerInteractionCommand.cc
  14550. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14551. (executeInternal): Removed the argument of
  14552. peerInteraction->sendMessages().
  14553. (receiveMessages): Rewritten download speed limit.
  14554. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14555. * src/HttpResponseCommand.cc
  14556. (handleDefaultEncoding): If file size is unknown in torrent request,
  14557. do not call segmentMan->initBitfield() here.
  14558. Disabled persistent connection feature in torrent request.
  14559. * src/UrlRequestInfo.h
  14560. (UrlRequestInfo): Removed const qualifier from option.
  14561. * src/TorrentMan.h
  14562. (TransferStat): New class.
  14563. (deltaDownloadLength): Removed.
  14564. (deltaUploadLength): Removed.
  14565. (addDeltaDownloadLength): Removed.
  14566. (getDeltaDownloadLength): Removed.
  14567. (resetDeltaDownloadLength): Removed.
  14568. (addDeltaUploadLength): Removed.
  14569. (getDeltaUploadLength): Removed.
  14570. (resetDeltaUploadLength): Removed.
  14571. (addActivePeer): Added peer->activate().
  14572. (deleteActivePeer): Added peer->deactivate().
  14573. (calculateStat): New function.
  14574. * src/TorrentMan.cc
  14575. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14576. (calculateStat): New function.
  14577. * src/PeerInteraction.h
  14578. (uploadLimit): Removed.
  14579. (option): New variable.
  14580. (setUploadLimit): Removed.
  14581. (getUploadSpeed): Removed.
  14582. (sendMessages): Removed the argument "currentUploadSpeed".
  14583. * src/PeerInteraction.cc
  14584. (prefs.h): Included.
  14585. (PeerInteraction): Removed uploadLimit. Added option.
  14586. (sendMessages): Rewritten upload speed limit.
  14587. (sendHandshake): Removed the argument from sendMessages().
  14588. (sendBitfield): Removed the argument from sendMessages().
  14589. * src/PeerAbstractCommand.cc
  14590. (execute): Commented out the portion of upload limit.
  14591. (onAbort): Removed peer->resetStatus().
  14592. * src/TorrentRequestInfo.cc
  14593. (timeoutSpecified): Declared extern.
  14594. (execute): Set timeout to 180 if timeout is not specified by.
  14595. command-line.
  14596. * src/PieceMessage.cc
  14597. (receivedAction): Added peer->updateDownloadLength().
  14598. Removed peer->addPeerUpload().
  14599. Removed torrentMan->addDeltaDownloadLength().
  14600. (send): Added peer->updateUploadLength().
  14601. Removed peer->addPeerDownload().
  14602. Removed torrentMan->addDeltaUploadLength().
  14603. * src/main.cc
  14604. (timeoutSpecified): New variable.
  14605. (main): Set timeoutSpecified to false.
  14606. If the command-line option "--upload-limit" is specified, then
  14607. timeoutSpecified is set to true. This option will remain in the next
  14608. release, but be deprecated in the future release.
  14609. * src/TorrentRequestInfo.h
  14610. (TorrentRequestInfo): Removed const qualifier from op.
  14611. * src/PeerStat.h
  14612. (uploadSpeed): New variable.
  14613. (PeerStat): Added default value to cuid.
  14614. (calculateUploadSpeed): New function.
  14615. (updateUploadLength): New function.
  14616. (getMaxUploadSpeed): New function.
  14617. (getAvgUploadSpeed): New function.
  14618. (reset): Added uploadSpeed. Set status to IDLE.
  14619. * src/TorrentDownloadEngine.h
  14620. (cp): Declared as Time.
  14621. (sessionDownloadLengthArray): Removed.
  14622. (sessionUploadLengthArray): Removed.
  14623. (currentCp): Removed.
  14624. (lastCalcStat): New variable
  14625. (lastElapsed): Removed.
  14626. (sessionDownloadLength): Removed.
  14627. (calculateStat): New function.
  14628. * src/TorrentDownloadEngine.cc
  14629. (initStatistics): Removed lastElapsed, cp[],
  14630. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14631. currentCp, sessionDownloadLength.
  14632. Added cp.reset() and lastCalcStat.reset().
  14633. (calculateSpeed): Changed the name of the argument.
  14634. (calculateStatistics): Rewritten.
  14635. (calculateStat): New function.
  14636. * src/Peer.h
  14637. (PeerStat.h): Included.
  14638. (peerUpload): Removed.
  14639. (peerDownload): Removed.
  14640. (peerStat): New variable.
  14641. (sessionUploadLength): New variable.
  14642. (sessionDownloadLength): New variable.
  14643. (deltaUpload): Removed.
  14644. (deltaDownload): Removed.
  14645. (resetStatus): Made private.
  14646. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14647. Removed peerUpload, peerDownload.
  14648. (updateUploadLength): New function.
  14649. (addDeltaUpload): Removed.
  14650. (updateDownloadLength): New function.
  14651. (resetDeltaUpload): Removed.
  14652. (getDeltaUpload): Removed.
  14653. (addDeltaDownload): Removed.
  14654. (calculateUploadSpeed): New function.
  14655. (resetDeltaDownload): Removed.
  14656. (getDeltaDownload): Removed.
  14657. (calculateDownloadSpeed): New function.
  14658. (getSessionUploadLength): New function.
  14659. (getSessionDownloadLength): New function.
  14660. (activate): New function.
  14661. (deactivate): New function.
  14662. (addPeerUpload): Removed.
  14663. (setPeerUpload): Removed.
  14664. (getPeerUpload): Removed.
  14665. (addPeerDownload): Removed.
  14666. (setPeerDownload): Removed.
  14667. (getPeerDownload): Removed.
  14668. * src/Peer.cc
  14669. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14670. * src/MetalinkRequestInfo.h
  14671. (MetalinkRequestInfo): Removed const qualifier from op.
  14672. * src/RequestInfo.h
  14673. (op): Removed const qualifier.
  14674. (RequestInfo): Removed const qualifier from op.
  14675. * src/prefs.h
  14676. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14677. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14678. * src/PeerInteractionCommand.cc
  14679. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14680. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14681. * src/PeerInteraction.cc
  14682. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14683. * src/main.cc
  14684. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14685. Added the description of "--max-download-limit" option.
  14686. Removed the description of "--upload-limit" option.
  14687. Added the description of "--max-upload-limit" option.
  14688. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14689. Added "--max-download-limit" option and "--max-upload-limit" option.
  14690. Added the warning message if "--upload-limit" option is used.
  14691. * src/DownloadCommand.cc
  14692. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14693. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14694. To rewrite segment download mechanism for HTTP/FTP download.
  14695. Use BitfieldMan to manage segment download.
  14696. * src/HttpResponseCommand.h
  14697. (executeInternal): Pass the reference of segment.
  14698. * src/AbstractCommand.cc
  14699. (prepareForRetry): Call segmentMan->cancelSegment here.
  14700. (onAbort): Call segmentMan->cancelSegment here.
  14701. * src/HttpDownloadCommand.cc
  14702. (prepareForNextSegment): New function.
  14703. * src/DownloadEngineFactory.cc
  14704. (newConsoleEngine): Removed splitter.
  14705. (newTorrentConsoleEngine): Removed splitter.
  14706. * src/Request.h
  14707. (segment): Renamed from seg.
  14708. * src/FtpInitiateConnectionCommand.h
  14709. (executeInternal): Pass the reference of segment.
  14710. * src/AbstractCommand.h
  14711. (executeInternal): Pass the reference of segment.
  14712. * src/pref.h
  14713. (PREF_SEGMENT_SIZE): New definition.
  14714. * src/HttpProxyRequestCommand.h
  14715. (executeInternal): Pass the reference of segment.
  14716. * src/HttpResponseCommand.cc
  14717. (checkResponse): Allowed status 206 when a request range starts 0.
  14718. (handleDefaultEncoding): Rewritten the code related to Segment.
  14719. (handleOtherEncoding): Rewritten the code related to Segment.
  14720. * src/SegmentMan.h
  14721. (SegmentEntry): New class.
  14722. (SegmentEntries): New type definition.
  14723. (bitfield): New variable.
  14724. (usedSegmentEntries): New variable.
  14725. (onNullBitfield): New function.
  14726. (checkoutSegment): New function.
  14727. (segments): Removed.
  14728. (splitter): Removed.
  14729. (unregisterId): Removed.
  14730. (getSegment): New function(overload)
  14731. (getDownloadedSize): Removed.
  14732. (cancelSegment): New function.
  14733. (completeSegment): New function.
  14734. (initBitfield): New function.
  14735. (hasSegment): New function.
  14736. (getDownloadLength): New function.
  14737. * src/BitfieldMan.h
  14738. (getStartIndex): New function.
  14739. (getEndIndex): New function.
  14740. (getMissingUnusedIndex): New function(overload).
  14741. (getSparseMissingUnusedIndex): New function.
  14742. * src/BitfieldMan.cc
  14743. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14744. (getMissingUnusedIndex): New function(overload).
  14745. (Range): New class.
  14746. (getStartIndex): New function.
  14747. (getEndIndex): New function.
  14748. (getSparseMissingUnusedIndex): New function.
  14749. (isBitSetInternal): Return false if the given index is less than 0.
  14750. * src/HttpInitiateConnectionCommand.h
  14751. (executeInternal): Pass the reference of segment.
  14752. * src/FtpNegotiateCommand.h
  14753. (executeInternal): Pass the reference of segment.
  14754. * src/FtpNegotiateCommand.cc
  14755. (recvSize): Initialize bitfield here.
  14756. * src/FtpTunnelResponseCommand.h
  14757. (executeInternal): Pass the reference of segment.
  14758. * src/HttpConnection.cc
  14759. (createRequest): Rewritten range header processing.
  14760. * src/DownloadCommand.h
  14761. (executeInternal): Pass the reference of segment.
  14762. (prepareForRetry): Removed.
  14763. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14764. function.
  14765. * src/main.cc
  14766. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14767. * src/SegmentMan.cc
  14768. (SegmentMan): Added bitfield. Removed splitter.
  14769. (~SegmentMan): Added bitfield. Removed splitter.
  14770. (unregisterId): Removed.
  14771. (getSegment): Rewritten.
  14772. (updateSegment): Rewritten.
  14773. (save): Rewritten.
  14774. (read): Rewritten.
  14775. (finished): Rewritten.
  14776. (getDownloadedSize): Removed.
  14777. (initBitfield): New function.
  14778. (FindSegmentEntryByIndex): New function object.
  14779. (FindSegmentEntryByCuid): New function object.
  14780. (checkoutSegment): New function.
  14781. (onNullBitfield): New function.
  14782. (getSegment): New function(overload).
  14783. (CancelSegment): New function object.
  14784. (cancelSegment): New function.
  14785. (completeSegment): New function.
  14786. (hasSegment): New function.
  14787. (getDownloadLength): New function.
  14788. * src/FtpInitiateConnectionCommand.cc
  14789. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14790. * src/Segment.h: Rewritten.
  14791. * src/Segment.cc (operator<<): New function.
  14792. * src/HttpDownloadCommand.h
  14793. (prepareForNextSegment): New function.
  14794. * src/Request.cc
  14795. (resetUrl): Made segment null.
  14796. * src/DownloadEngine.cc
  14797. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14798. * src/HttpProxyRequestCommand.h
  14799. (executeInternal): Pass the reference of segment.
  14800. * src/DownloadCommand.cc
  14801. (executeInternal): Rewritten the code related to Segment.
  14802. (prepareForRetry): Removed.
  14803. (prepareForNextSegment): Rewritten.
  14804. * src/FtpTunnelResponseCommand.h
  14805. (executeInternal): Pass the reference of segment.
  14806. To add HTTP 1.1 persistent connection support(experimental)
  14807. * src/HttpRequestCommand.cc
  14808. (executeInternal): Disable keep alive if it is disabled by
  14809. configuration.
  14810. * src/Request.h
  14811. (keepAlive): New variable.
  14812. (isKeepAlive): New function.
  14813. (setKeepAlive): New function.
  14814. * src/pref.h
  14815. (PREF_HTTP_KEEP_ALIVE): New definition.
  14816. * src/HttpResponseCommand.cc
  14817. (executeInternal): Check the remote server supports keep alive.
  14818. * src/HttpConnection.cc
  14819. (createRequest): Send "Connection: close" only if keep alive is
  14820. disabled.
  14821. * src/main.cc
  14822. (main):
  14823. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14824. To add max download speed limit:
  14825. * src/pref.h
  14826. (PREF_MAX_SPEED_LIMIT): New definition.
  14827. * src/PeerInteractionCommand.cc
  14828. (executeInternal): Added max download speed limit. Not tested yet.
  14829. * src/SegmentMan.h
  14830. (PeerStats): New type definition.
  14831. (peerStats): New variable.
  14832. (registerPeerStat): New function.
  14833. (FindPeerStat): New function object.
  14834. (getPeerStat): New function.
  14835. (calculateDownloadSpeed): New function.
  14836. * src/SpeedCalc.h: New class.
  14837. * src/SpeedCalc.cc: New class.
  14838. * src/main.cc
  14839. (main):
  14840. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14841. download speed is not restricted).
  14842. * src/PeerStat.h: New class.
  14843. * src/SegmentMan.cc
  14844. (registerPeerStat): New function.
  14845. (calculateDownloadSpeed): New function.
  14846. * src/DownloadCommand.cc
  14847. (STARTUP_IDLE_TIME): New definition.
  14848. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14849. downloadStart.
  14850. (~DownloadCommand): Call peerStat->downloadStop.
  14851. (executeInternal): Added download speed limitter. Rewritten lowest
  14852. speed limitter.
  14853. * src/HttpConnection.cc
  14854. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14855. * src/AbstractCommand.cc
  14856. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14857. Added hostname to the error message.
  14858. * src/ConsoleDownloadEngine.cc
  14859. (calculateStatistics): Initialize psize with dlSize.
  14860. * src/PieceMessage.cc
  14861. (receivedAction): Do not call peerInteraction->abortPiece here.
  14862. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14863. * src/BitfieldMan.h
  14864. (clearAllUseBit): New function.
  14865. (setAllUseBit): New function.
  14866. * src/BitfieldMan.cc
  14867. (clearAllBit): Do not clear useBitfield here.
  14868. (clearAllUseBit): New function.
  14869. (setAllUseBit): New function.
  14870. * src/Piece.cc
  14871. (clearAllBlock): Call bitfield->clearAllUseBit().
  14872. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14873. To make filename URL-decoded:
  14874. * src/HttpResponseCommand.h: Updated doc.
  14875. * src/HttpResponseCommand.cc
  14876. (determinFilename): Made filename URL-decoded.
  14877. * src/FtpInitiateConnectionCommand.cc
  14878. (executeInternal): Made filename URL-decoded.
  14879. * src/Util.h (urldecode): New function.
  14880. * src/Util.cc (urldecode): New function.
  14881. To fix a bug that caused assertion failure in ares_strerror:
  14882. * src/NameResolver.cc (callback): Fixed the bug.
  14883. * Release 0.7.3
  14884. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14885. To add --seed-time and --seed-ratio command-line option:
  14886. * src/Option.h (getAsDouble): New function.
  14887. * src/Option.cc (getAsDouble): New function.
  14888. * src/SeedCheckCommand.h: New class.
  14889. * src/SeedCheckCommand.cc: New class.
  14890. * src/DownloadEngineFactory.cc
  14891. (SeedCheckCommand.h): Included.
  14892. (UnionSeedCriteria.h): Included.
  14893. (TimeSeedCriteria.h): Included.
  14894. (ShareRatioSeedCriteria.h): Included.
  14895. (newTorrentConsoleEngine): Added the processing of seed option.
  14896. * src/SeedCriteria.h: New class.
  14897. * src/ShareRatioSeedCriteria.h: New class.
  14898. * src/TimeSeedCriteria.h: New class.
  14899. * src/UnionSeedCriteria.h: New class.
  14900. * src/prefs.h
  14901. (PREF_SEED_TIME): New definition.
  14902. (PREF_SEED_RATIO): New definition.
  14903. * src/main.cc
  14904. (showUsage): Added --seed-time and --seed-ratio option.
  14905. (main): Added --seed-time and --seed-ratio option.
  14906. Made default log file name "/dev/null".
  14907. * src/SharedHandle.h
  14908. (SharedHandle): Copy constructor. Made it assignable from the
  14909. SharedHandle of the subclasses.
  14910. (operator=): Made it assignable from the SharedHandle of the
  14911. subclasses.
  14912. (getRefCount): New function.
  14913. To add notice log level and the switch to write log to stdout. This
  14914. switch is configurable per log level.
  14915. * src/Logger.h
  14916. (notice): New function.
  14917. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14918. constant.
  14919. * src/LogFactory.cc
  14920. (getInstance): The use of NullLogger was removed. A log message with
  14921. notice log level was made written to stdout along with log file.
  14922. * src/NullLogger.h
  14923. (notice): New function.
  14924. * src/SimpleLogger.h
  14925. (writeHeader): Added the 'file' argument.
  14926. (writeLog): Added the 'file' argument.
  14927. (writeFile): New function.
  14928. (stdoutField): New variable.
  14929. (SimpleLogger): Removed the default constructor.
  14930. (SimpleLogger): Made the default value of logfile 0.
  14931. (debug): Added 'virtual' keyword.
  14932. (info): Added 'virtual' keyword.
  14933. (warn): Added 'virtual' keyword.
  14934. (error): Added 'virtual' keyword.
  14935. (notice): New function.
  14936. (setStdout): New function.
  14937. * src/SimpleLogger.cc
  14938. (WRITE_LOG): Replaced writeLog with writeFile.
  14939. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14940. (SimpleLogger): Removed the default constructor.
  14941. (setStdout): New function.
  14942. (writeLog): Added the handling of NOTICE log level.
  14943. (writeFile): New function.
  14944. (notice): New function.
  14945. * src/TorrentMan.h: Updated doc.
  14946. * src/BitfieldMan.h: Updated doc.
  14947. * src/TrackerWatcherCommand.cc
  14948. (execute): Return true if error occurred in the request to the tracker
  14949. and halt is requested.
  14950. * src/TrackerUpdateCommand.cc
  14951. (execute): Return true if error occurred in the request to the tracker
  14952. and halt is requested.
  14953. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14954. DownloadEngine:
  14955. * src/TorrentConsoleDownloadEngine.h
  14956. (onSelectiveDownloadingCompletes): Removed.
  14957. * src/TorrentConsoleDownloadEngine.cc
  14958. (onSelectiveDownloadingCompletes): Removed.
  14959. * src/TorrentDownloadEngine.h
  14960. (onEndOfRun): Added 'virtual' keyword.
  14961. (afterEachIteration): Removed.
  14962. (onSelectiveDownloadingCompletes): Removed.
  14963. * src/TorrentDownloadEngine.cc
  14964. (onEndOfRun): Removed filenameFixed.
  14965. (afterEachIteration): Removed.
  14966. * src/TorrentMan.cc
  14967. (completePiece): Call onDownloadComplete here.
  14968. (onDownloadComplete): Added 2 log messages.
  14969. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14970. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14971. * src/NameResolver.h: Added the prototype declaration of callback().
  14972. To support c-ares library:
  14973. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14974. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14975. * src/FtpInitiateConnectionCommand.h:
  14976. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14977. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14978. * src/HttpInitiateConnectionCommand.h:
  14979. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14980. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14981. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14982. #1542285 by tizianomueller)
  14983. * src/HttpInitiateConnectionCommand.cc:
  14984. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14985. * src/FtpInitiateConnectionCommand.cc:
  14986. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14987. * src/DownloadEngine.h:
  14988. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14989. * src/DownloadEngine.cc:
  14990. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14991. To fix the bug that causes compilation failure with metalink-support
  14992. disabled(bug#1543587):
  14993. * src/main.cc: Fixed with the patch by tizianomueller.
  14994. * Release 0.7.2
  14995. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14996. * src/main.cc
  14997. (main): Added a message to inform users that aria2 is starting to
  14998. verify checksum.
  14999. * src/RequestInfo.cc
  15000. (printDownloadAbortMessage): Added a message to inform users that
  15001. transfer can be resumed.
  15002. * src/FeatureConfig.cc
  15003. (FEATURE_ASYNC_DNS): New definition.
  15004. (FeatureConfig): Added aysnc DNS entry.
  15005. To replace CommandUuid with Command* in SocketEntry and
  15006. NameResolverEntry:
  15007. * src/DownloadEngine.h
  15008. (CommandUuids): Removed.
  15009. (SocketEntry::commandUuid): Removed.
  15010. (SocketEntry::command): New variable.
  15011. (SocketEntry::SocketEntry): Updated.
  15012. (SocketEntry::operator==): Updated.
  15013. (NameResolverEntry::commandUuid): Removed.
  15014. (NameResolverEntry::command): New variable.
  15015. (NameResolverEntry::NameResolverEntry): Updated.
  15016. (NameResolverEntry::operator==): Updated.
  15017. (waitData): Changed the argument type.
  15018. (addSocketForReadCheck): Changed the argument type.
  15019. (deleteSocketForReadCheck): Changed the argument type.
  15020. (addSocketForWriteCheck): Changed the argument type.
  15021. (deleteSocketForWriteCheck): Changed the argument type.
  15022. (addNameResolverCheck): Changed the argument type.
  15023. (deleteNameResolverCheck): Changed the argument type.
  15024. * src/DownloadEngine.cc
  15025. (FindCommand): Removed.
  15026. (run): Removed activeUuid. Added activeCommands instead.
  15027. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15028. (AccumulateActiveCommand): New function object.
  15029. (waitData): Use AccumulateActiveCommand.
  15030. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15031. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15032. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15033. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15034. (addNameResolverCheck): Use Command instead of CommandUuid.
  15035. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15036. * src/AbstractCommand.cc
  15037. (disableReadCheckSocket): Updated according to the changes in
  15038. DownloadEngine.
  15039. (setReadCheckSocket): Updated according to the changes in
  15040. DownloadEngine.
  15041. (disableWriteCheckSocket): Updated according to the changes in
  15042. DownloadEngine.
  15043. (setWriteCheckSocket): Updated according to the changes in
  15044. DownloadEngine.
  15045. (setNameResolverCheck): Updated according to the changes in
  15046. DownloadEngine.
  15047. (disableNameResolverCheck): Updated according to the changes in
  15048. DownloadEngine.
  15049. * src/AbstractCommand.cc
  15050. (disableReadCheckSocket): Updated according to the changes in
  15051. DownloadEngine.
  15052. (setReadCheckSocket): Updated according to the changes in
  15053. DownloadEngine.
  15054. (disableWriteCheckSocket): Updated according to the changes in
  15055. DownloadEngine.
  15056. (setWriteCheckSocket): Updated according to the changes in
  15057. DownloadEngine.
  15058. * release 0.7.1
  15059. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15060. To handle the case where some BitTorrent tracker requires all letters
  15061. except for [A-Za-z0-9] is URL encoded.
  15062. * src/Util.h
  15063. (torrentUrlencode): New function.
  15064. * src/Util.cc
  15065. (ctype.h): Included.
  15066. (torrentUrlencode): New function.
  15067. * src/TrackerWatcherCommand.cc
  15068. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15069. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15070. To add asynchronous DNS support(libares):
  15071. * src/AbstractCommand.h
  15072. (setNameResolverCheck): New function.
  15073. (disableNameResolverCheck): New function
  15074. (resolveHostname): New function.
  15075. * src/AbstractCommand.cc
  15076. (setNameResolverCheck): New function.
  15077. (disableNameResolverCheck): New function
  15078. (resolveHostname): New function.
  15079. * src/FtpInitiateConnectionCommand.h
  15080. (nameResolver): New function.
  15081. * src/FtpInitiateConnectionCommand.cc
  15082. (Util.h): Included.
  15083. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15084. disableWriteCheckSocket.
  15085. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15086. (executeInternal): Added async DNS support.
  15087. * src/HttpInitiateConnectionCommand.h
  15088. (nameResolver): New function.
  15089. * src/HttpInitiateConnectionCommand.cc
  15090. (DlRetryEx.h): Included.
  15091. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15092. disableWriteCheckSocket.
  15093. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15094. (executeInternal): Added async DNS support.
  15095. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15096. by extern "C" declaration.
  15097. * src/NameResolver.cc: New class.
  15098. * src/Util.h:
  15099. (isNumberAndDotsNotation): New function
  15100. * src/Util.cc
  15101. (isNumberAndDotsNotation): New function.
  15102. * src/DownloadEngine.h
  15103. (NameResolver.h): Included.
  15104. (NameResolverEntry): New class.
  15105. (NameResolverEntries): New type definition.
  15106. (addNameResolverCheck): New function.
  15107. (deleteNameResolverCheck): New function.
  15108. * src/DownloadEngine.cc
  15109. (run): Initialize cp with 0.
  15110. (SetDescriptor::operator()): Added for NameResolverEntry.
  15111. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15112. (waitData): Check nameResolver entries.
  15113. (updateFdSet): Update fds in nameResolver entries.
  15114. (addNameResolverCheck): New function.
  15115. (deleteNameResolverCheck): new function.
  15116. * src/PeerInteractionCommand.cc
  15117. (executeInternal): Fixed wrong socket handling.
  15118. * src/main.cc
  15119. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15120. * src/Util.cc
  15121. (fileChecksum): Removed the call to ctx.digestReset().
  15122. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15123. * po/ru.po: Azamat sent me Russian translation.
  15124. * src/FtpNegotiateCommand.cc
  15125. (recvGreeting): Call disableWriteCheckSocket just after
  15126. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15127. (recvRetr): Recognized status code 125 as a acceptable response code.
  15128. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15129. case-insesitive filesystem(BUG#1531057).
  15130. * src/Time.h: Renamed as TimeA2.h.
  15131. * src/Time.cc: Renamed as TimeA2.cc.
  15132. * src/TimeA2.h: New class.
  15133. * src/TimeA2.cc: New class.
  15134. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15135. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15136. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15137. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15138. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15139. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15140. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15141. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15142. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15143. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15144. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15145. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15146. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15147. * release 0.7.0
  15148. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15149. * src/PeerChokeCommand.h
  15150. (PeerChokeCommand): Rearranged the arguments.
  15151. * src/PeerChokeCommand.cc
  15152. (PeerChokeCommand): Rearranged the arguments.
  15153. * src/MetalinkEntry.h
  15154. (Checksum.h): Included.
  15155. (md5): Removed.
  15156. (sha1): Removed.
  15157. (checksum): New variable.
  15158. (operator=): Updated.
  15159. (check): Removed.
  15160. * src/prefs.h
  15161. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15162. (PREF_FOLLOW_TORRENT): New definition.
  15163. (PREF_SELECT_FILE): New definition.
  15164. (PREF_FOLLOW_METALINK): New definition.
  15165. * src/MetalinkResource.h
  15166. (TYPE_HTTPS): Added to enum TYPE.
  15167. * src/TorrentMan.cc
  15168. (~TorrentMan): Rewritten.
  15169. * src/MultiDiskWriter.cc
  15170. (MultiDiskAdaptor): Updated according to the changes in
  15171. MessageDigestContext.
  15172. (~MultiDiskAdaptor): Updated according to the changes in
  15173. MessageDigestContext.
  15174. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15175. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15176. * src/Util.h
  15177. (fileChecksum): Updated according to the changes in
  15178. MessageDigestContext.
  15179. * src/Util.cc
  15180. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15181. (fileChecksum): Updated according to the changes in
  15182. MessageDigestContext.
  15183. * src/messageDigest.h: Rewritten.
  15184. * src/MetalinkEntry.cc
  15185. (check): Removed.
  15186. (Supported): Updated.
  15187. (dropUnsupportedResource): Fixed a memory leak.
  15188. * src/ShaVisitor.cc
  15189. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15190. (~ShaVisitor): Updated according to the changes in
  15191. MessageDigestContext.
  15192. (visit): Updated according to the changes in MessageDigestContext.
  15193. * src/main.cc
  15194. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15195. command-line option added.
  15196. * src/DownloadEngine.h
  15197. (SocketEntry): New class.
  15198. (SocketEntries): New definition.
  15199. (PairFind): Removed.
  15200. (SockCmdMap): Removed.
  15201. * src/DownloadEngine.cc
  15202. (DownloadEngine): Rewritten.
  15203. (~DownloadEngine): Rewritten.
  15204. (run): Renamed activeCommandUuids as activeUuids.
  15205. (SetDescriptor): Rewritten.
  15206. (AccumulateActiveCommandUuid): Removed.
  15207. (AccumulateActiveUuid): New function object.
  15208. (waitData): Rewritten.
  15209. (updateFdSet): Rewritten.
  15210. (addSocket): Rewritten.
  15211. (deleteSocket): Rewritten.
  15212. (addSocketForReadCheck): Rewritten.
  15213. (deleteSocketForReadCheck): Rewritten.
  15214. (addSocketForWriteCheck): Rewritten.
  15215. (deleteSocketForWriteCheck): Rewritten.
  15216. * src/Xml2MetalinkProcessor.cc
  15217. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15218. * src/DownloadCommand.cc
  15219. (executeInternal): Added the check routine for lowest speed limit.
  15220. * src/AbstractDiskWriter.cc
  15221. (AbstractDiskWriter): Updated according to the changes in
  15222. MessageDigestContext.
  15223. (~AbstractDiskWriter): Updated according to the changes in
  15224. MessageDigestContext.
  15225. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15226. * src/RequestInfo.h: New class.
  15227. * src/UrlRequestInfo.h: New class.
  15228. * src/UrlRequestInfo.cc: New class.
  15229. * src/TorrentRequestInfo.h: New class.
  15230. * src/TorrentRequestInfo.cc: New class.
  15231. * src/MetalinkRequestInfo.h: New class.
  15232. * src/MetalinkRequestInfo.cc: New class.
  15233. * src/Checksum.h: New class.
  15234. * src/DownloadEngineFactory.h: New class.
  15235. * src/DownloadEngineFactory.cc: New class.
  15236. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15237. * src/Option.h
  15238. (getAsBool): New function.
  15239. * src/Option.cc
  15240. (prefs.h): Included.
  15241. (defined): 0-length value is now recognized as undefined.
  15242. (getAsInt): Rewritten.
  15243. (getAsLLInt): Rewritten.
  15244. (getAsBool): New function.
  15245. * src/FeatureConfig.h: Rewritten.
  15246. * src/FeatureConfig.cc: Rewritten.
  15247. * src/prefs.h
  15248. (PREF_STDOUT_LOG): New definition.
  15249. (PREF_LOG): New definition.
  15250. (PREF_DIR): New definition.
  15251. (PREF_OUT): New definition.
  15252. (PREF_SPLIT): New definition.
  15253. (PREF_DAEMON): New definition.
  15254. (PREF_REFERER): New definition.
  15255. (PREF_TORRENT_FILE): New definition.
  15256. (PREF_LISTEN_PORT): New definition.
  15257. (PREF_METALINK_FILE): New definition.
  15258. (PREF_METALINK_VERSION): New definition.
  15259. (PREF_METALINK_LANGUAGE): New definition.
  15260. (PREF_METALINK_OS): New definition.
  15261. (PREF_METALINK_SERVERS): New definition.
  15262. * src/main.cc
  15263. (main): Following command-line parameters are now put into Option
  15264. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15265. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15266. metalinkLanguage, metalinkOs, metalinkServers
  15267. To fix the bug that aria2 can not handle http response header properly.
  15268. * src/HttpHeader.cc
  15269. (put): Made name lowercased.
  15270. (defined): Made name lowercased.
  15271. (getFirst): Made name lowercased.
  15272. (get): Made name lowercased.
  15273. (getFirstAsInt): Rewritten.
  15274. (getFirstAsLLInt): Rewritten.
  15275. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15276. * src/TorrentMan.h:
  15277. (advertisePiece): Updated doc.
  15278. (getAdvertisedPieceIndexes): Updated doc.
  15279. (removeAdvertisedPiece); New function.
  15280. * src/TorrentMan.cc
  15281. (FindElapsedHave): New function object.
  15282. (removeAdvertisedPiece): New function.
  15283. * src/HaveEraseCommand.h: New class.
  15284. * src/HaveEraseCommand.cc: New class.
  15285. * src/FeatureConfig.h: New class.
  15286. * src/FeatureConfig.cc: New class.
  15287. * src/Request.h
  15288. (defaultPorts): Removed.
  15289. * src/Request.cc
  15290. (FeatureConfig.h): Included.
  15291. (Request): Removed the statements related to defaultPorts.
  15292. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15293. A default port number is now retrieved from FeatureConfig.
  15294. * src/main.cc
  15295. (HaveEraseCommand.h): Included.
  15296. (showVersion): Added the output of feature list.
  15297. (main): Added HaveEraseCommand to command queue in BitTorrent
  15298. downloading.
  15299. * src/PeerInteractionCommand.h
  15300. (chokeCheckPoint): Commented out.
  15301. (periodicExecPoint): New variable.
  15302. * src/PeerInteractionCommand.cc
  15303. (executeInternal): Following methods are now called in at least every
  15304. 0.5 seconds to reduce CPU usage:
  15305. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15306. checkHave(), sendKeepAlive().
  15307. (checkLongTimePeerChoking): Commented out.
  15308. * src/BitfieldMan.h
  15309. (getNthBitIndex): Changed the method signature.
  15310. (getMissingIndexRandomly): Changed the method signature.
  15311. * src/BitfieldMan.cc
  15312. (getNthBitIndex): Rewritten
  15313. (getMissingIndexRandomly): Rewritten.
  15314. (hasMissingPiece): Rewritten.
  15315. (getMissingIndex): Refactored.
  15316. (getMissingUnusedIndex); Refactored.
  15317. (getMissingIndex): Refactored.
  15318. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15319. * src/PeerMessage.h
  15320. (Piece.h): Included.
  15321. (SharedHandle.h): Included.
  15322. (invalidate): New variable.
  15323. (uploading): New variable.
  15324. (isInvalidate): New function.
  15325. (isUploading): New function.
  15326. (onPush): New function.
  15327. (onChoked): New function.
  15328. (onCanceled): New function.
  15329. (onAbortPiece): New function.
  15330. (PeerMessageHandle): New type definition.
  15331. * src/PeerMessage.cc
  15332. (PeerMessage): Added the initialization for invalidate and uploading.
  15333. * src/CancelMessage.h
  15334. (CancelMessage): Rewritten.
  15335. * src/RejectMessage.h
  15336. (RejectMessage): Rewritten.
  15337. * src/Metalinker.h
  15338. (operator=): Defined.
  15339. * src/MetaEntry.h
  15340. (operator=): Defined.
  15341. * src/MetalinkResource.h
  15342. (operator=): Defined.
  15343. * src/AllowedFastMessage.h
  15344. (AllowedFastMessage): Rewritten.
  15345. * src/HandshakeMessage.h
  15346. (HandshakeMessage): New function(overload).
  15347. * src/HandshakeMessage.cc
  15348. (HandshakeMessage): Rewritten.
  15349. (init): New function.
  15350. * src/HaveMessage.h
  15351. (HaveMessage): Rewritten.
  15352. * src/Time.h
  15353. (operator=): Defined the function body here.
  15354. * src/Time.cc
  15355. (operator=): Removed.
  15356. * src/SocketCore.h
  15357. (operator==): Defined here.
  15358. (operator!=): Defined here.
  15359. (operator<): Defined here.
  15360. * src/SocketCore.cc
  15361. (operator==): Removed.
  15362. (operator<): Removed.
  15363. * src/BitfieldMan.h
  15364. (operator=): Defined the function body here.
  15365. * src/BitfieldMan.cc
  15366. (operator=): Removed.
  15367. * src/TorrentMan.h
  15368. (deleteErrorPeer): Removed.
  15369. (deleteUnusedPeer); New function.
  15370. * src/TorrentMan.cc
  15371. (addPeer): Call deleteUnusedPeer.
  15372. (deleteErrorPeer): Removed.
  15373. (deleteUnusedPeer): New function.
  15374. * src/PeerAbstractCommand.h
  15375. (setNoCheck): New function.
  15376. (noCheck): New variable.
  15377. * src/PeerAbstractCommand.cc
  15378. (PeerAbstractCommand): Added the initialization of noCheck.
  15379. (execute): Added a check for noCheck.
  15380. (setNoCheck): New function.
  15381. * src/Util.h
  15382. (stdio.h): Included.
  15383. * src/Util.cc
  15384. (unistd.h): Included.
  15385. * src/DefaultDiskWriter.cc
  15386. (unistd.h): Included.
  15387. * src/Peer.h
  15388. (operator==): Defined the function body here.
  15389. (operator!=): Defined the function body here.
  15390. * src/Peer.cc
  15391. (operator==): Removed.
  15392. (operator!=): Removed.
  15393. * src/Piece.h
  15394. (Piece): Defined the function body here(copy constructor).
  15395. (operator=): Defined the function body here.
  15396. (operator==): Defined the function body here.
  15397. * src/Piece.cc
  15398. (Piece): Removed(copy constructor).
  15399. (operator=): Removed.
  15400. (operator==): Removed.
  15401. * src/PeerMessageUtil.h
  15402. (ChokeMessage.h): Removed.
  15403. (UnchokeMessage.h): Removed.
  15404. (InterestedMessage.h): Removed.
  15405. (NotInterestedMessage.h): Removed.
  15406. (HaveMessage.h): Removed.
  15407. (BitfieldMessage.h): Removed.
  15408. (RequestMessage.h): Removed.
  15409. (CancelMessage.h): Removed.
  15410. (PieceMessage.h): Removed.
  15411. (HandshakeMessage.h): Removed.
  15412. (KeepAliveMessage.h): Removed.
  15413. (PortMessage.h): Removed.
  15414. (HaveAllMessage.h): Removed.
  15415. (HaveNoneMessage.h): Removed.
  15416. (PeerConnection.h): Removed.
  15417. (HandshakeMessage.h): Included.
  15418. * src/BitfieldMessage.h
  15419. (init): New function.
  15420. (BitfieldMessage): Rewritten.
  15421. (BitfieldMessage): New function(overload).
  15422. * src/RequestSlot.h
  15423. (operator=): Defined the function body here.
  15424. (operator==): Defined the function body here.
  15425. * src/RequestSlot.cc
  15426. (operator=): Removed.
  15427. (operator==): Removed.
  15428. To remove the dependency on the PeerMessage subclass from
  15429. PeerInteraction:
  15430. * src/PeerMessageFactory.h: New class.
  15431. * src/PeerMessageFactory.cc: New class.
  15432. * src/SimplePeerMessage.cc
  15433. (send): If invalidate is true then do nothing.
  15434. * src/PeerInteractionCommand.cc
  15435. (HandshakeMessage.h): Included.
  15436. (KeepAliveMessage.h): Included.
  15437. (ChokeMessage.h): Included.
  15438. (UnchokeMessage.h): Included.
  15439. (HaveMessage.h): Included.
  15440. (executeInternal): Call setNoCheck().
  15441. Removed setWriteCheckSocket(socket).
  15442. * src/PeerInteraction.h
  15443. (ChokeMessage.h): Removed.
  15444. (UnchokeMessage.h): Removed.
  15445. (InterestedMessage.h): Removed.
  15446. (NotInterestedMessage.h): Removed.
  15447. (HaveMessage.h): Removed.
  15448. (BitfieldMessage.h): Removed.
  15449. (RequestMessage.h): Removed.
  15450. (CancelMessage.h): Removed.
  15451. (PieceMessage.h): Removed.
  15452. (HandshakeMessage.h): Removed.
  15453. (KeepAliveMessage.h): Removed.
  15454. (PortMessage.h): Removed.
  15455. (HaveAllMessage.h): Removed.
  15456. (HaveNoneMessage.h): Removed.
  15457. (RejectMessage.h): Removed.
  15458. (AllowedFastMessage.h): Removed.
  15459. (SuggestPieceMessage.h): Removed.
  15460. (PeerMessageFactory.h): Included.
  15461. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15462. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15463. (PeerMessageFactory): New variable.
  15464. (createPeerMessage): Removed.
  15465. (createHandshakeMessage): Removed.
  15466. (setPeerMessageCommonProperty): Removed.
  15467. (addRequestSlot): New function.
  15468. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15469. (getPeerMessageFactory): New function.
  15470. (createRequestMessage): Removed.
  15471. (createCancelMessage): Removed.
  15472. (createPieceMessage): Removed.
  15473. (createHaveMessage): Removed.
  15474. (createChokeMessage): Removed.
  15475. (createUnchokeMessage): Removed.
  15476. (createInterestedMessage): Removed.
  15477. (createNotInterestedMessage): Removed.
  15478. (createBitfieldMessage): Removed.
  15479. (createKeepAliveMessage): Removed.
  15480. (createHaveAllMessage): Removed.
  15481. (createHaveNoneMessage): Removed.
  15482. (createRejectMessage): Removed.
  15483. (createAllowedFastMessage): Removed.
  15484. * src/PeerInteraction.cc
  15485. (PeerInteraction): Allocate PeerMessageFactory here.
  15486. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15487. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15488. PieceMessage::ID.
  15489. (addMessage): Simplified by using PeerMessage::onPush().
  15490. (addRequestSlot): New function.
  15491. (rejectAllPieceMessageInQueue): Simplified by using
  15492. PeerMessage::onChoked().
  15493. (rejectPieceMessageInQueue): Simplified by using
  15494. PeerMessage::onCanceled().
  15495. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15496. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15497. (createHandshakeMessage): Removed.
  15498. (createPeerMessage): Removed.
  15499. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15500. (setPeerMessageCommonProperty): Removed.
  15501. (createRequestMessage): Removed.
  15502. (createCancelMessage): Removed.
  15503. (createPieceMessage): Removed.
  15504. (createHaveMessage): Removed.
  15505. (createChokeMessage): Removed.
  15506. (createUnchokeMessage): Removed.
  15507. (createInterestedMessage): Removed.
  15508. (createNotInterestedMessage): Removed.
  15509. (createBitfieldMessage): Removed.
  15510. (createKeepAliveMessage): Removed.
  15511. (createHaveAllMessage): Removed.
  15512. (createHaveNoneMessage): Removed.
  15513. (createRejectMessage): Removed.
  15514. (createAllowedFastMessage): Removed.
  15515. * src/PieceMessage.h
  15516. (createRejectMessage): New function.
  15517. (PieceMessage): Rewritten.
  15518. (onChoked): New function.
  15519. (onCanceled): New function.
  15520. * src/PieceMessage.cc
  15521. (send): If invalidate is true then do nothing, just return.
  15522. (createRejectMessage): New function.
  15523. (onChoked): New function.
  15524. (onCanceled): New function.
  15525. * src/RequestMessage.h
  15526. (RequestMessage): Rewritten.
  15527. (onPush): New function.
  15528. (onAbortPiece): New function.
  15529. * src/RequestMessage.cc
  15530. (onPush): New function.
  15531. (onAbortPiece): New function.
  15532. Update fd_set when a socket is added or deleted in order to improve
  15533. performance:
  15534. * src/DownloadEngine.h
  15535. (rfdset): New variable.
  15536. (wfdset): New variable.
  15537. (updateFdSet): New function.
  15538. * src/DownloadEngine.cc
  15539. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15540. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15541. (waitData): Copy rfdset and wfdset.
  15542. (updateFdSet): New function.
  15543. (addSocket): Call updateFdSet.
  15544. (deleteSocket): Call updateFdSet.
  15545. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15546. To add the support for Metalink3.0 backward compatible links:
  15547. * src/Request.h
  15548. (SAFE_CHARS): Added '#'.
  15549. (METALINK_MARK): New definition.
  15550. * src/Request.cc
  15551. (parseUrl): Added the support for Metalink3.0 backward compatible
  15552. links.
  15553. etc
  15554. * src/PeerInteraction.cc
  15555. (MsgPushBack): Removed.
  15556. (sendMessages): Use STL copy and back_inserter.
  15557. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15558. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15559. * src/TorrentMan.h
  15560. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15561. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15562. * src/SharedHandle.h: New class.
  15563. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15564. * src/HttpResponseCommand.h
  15565. (HttpResponseCommand): Wrapped Socket.
  15566. * src/SocketCore.h
  15567. (operator==): New function.
  15568. (operator!=): New function.
  15569. (operator<): New function.
  15570. (getSockfd): New function.
  15571. (isOpen): New function.
  15572. (writeData): New function.
  15573. * src/SocketCore.cc
  15574. (operator==): New function.
  15575. (operator!=): New function.
  15576. (operator<): New function.
  15577. * src/AbstractCommand.h
  15578. (socket): Changed its type to SocketHandle.
  15579. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15580. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15581. (disableReadCheckSocket): New function.
  15582. (disableWriteCheckSocket): New function.
  15583. (readCheckTarget): Changed its type to SocketHandle.
  15584. (writeCheckTarget): Changed its type to SocketHandle.
  15585. (AbstractCommand): Replaced Socket with SocketHandle.
  15586. * src/AbstractCommand.cc
  15587. (AbstractCommand): Replaced Socket with SocketHandle.
  15588. (~AbstractCommand): Removed the deallocation for Socket object.
  15589. (disableReadCheckSocket): New function.
  15590. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15591. (disableWriteCheckSocket): New function.
  15592. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15593. * src/HttpDownloadCommand.cc
  15594. (DownloadCommand): Replaced Socket with SocketHandle.
  15595. * src/PeerAbstractCommand.h
  15596. (socket): Changed its type to SocketHandle.
  15597. (peer): Changed its type to PeerHandle.
  15598. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15599. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15600. (disableReadCheckSocket): New function.
  15601. (disableWriteCheckSocket): New function.
  15602. (readCheckTarget): Changed its type to SocketHandle.
  15603. (writeCheckTarget): Changed its type to SocketHandle.
  15604. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15605. Replaced Peer with PeerHandle.
  15606. * src/HttpRequestCommand.cc
  15607. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15608. Use disableReadCheckSocket.
  15609. * src/PeerInitiateConnectionCommand.h
  15610. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15611. * src/PeerChokeCommand.cc
  15612. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15613. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15614. (execute): Use PeerHandle.
  15615. * src/PeerConnection.h
  15616. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15617. (socket): Changed its type to SocketHandle.
  15618. (PeerConnection): Replaced Socket with SocketHandle.
  15619. * src/PeerConnection.cc
  15620. (PeerConnection): Replaced Socket with SocketHandle.
  15621. * src/PeerInteractionCommand.h
  15622. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15623. Replaced Peer with PeerHandle.
  15624. * src/PeerInteractionCommand.cc
  15625. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15626. Replaced Peer with PeerHandle.
  15627. (executeInternal): Use disableWriteCheckSocket.
  15628. Use HandshakeMessageHandle.
  15629. (receiveMessages): Use PeerMessageHandle.
  15630. (prepareForNextPeer): Use PeerHandle.
  15631. * src/HttpProxyRequestCommand.h
  15632. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15633. * src/HttpResponseCommand.cc
  15634. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15635. * src/TorrentMan.cc
  15636. (nullPeer): Added external reference.
  15637. (~TorrentMan): Removed the deallocation of the elements of peers.
  15638. (addPeer): Rewritten.
  15639. (isPeerAvailable): Use nullPeer.
  15640. (deleteOldpeers): Replaced with deleteErrorPeer.
  15641. (deleteErrorPeer): New function.
  15642. (getPeer): Use PeerHandle and nullPeer.
  15643. (hasMissingPiece): Replaced Peer with PeerHandle.
  15644. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15645. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15646. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15647. (getMissingPiece): Replaced Peer with PeerHandle.
  15648. * src/FtpNegotiateCommand.cc
  15649. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15650. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15651. (recvGreeting): Use disableWriteCheckSocket.
  15652. (recvPasv): Removed the allocation of Socket.
  15653. Use disableReadCheckSocket.
  15654. (sendRestPasv): Use disableWriteCheckSocket.
  15655. (recvRetr): Changed assertion.
  15656. * src/PeerInteraction.h
  15657. (SharedHandle.h): Included SharedHandle.h.
  15658. (PeerMessageHandle): New type definition.
  15659. (HandshakeMessageHandle): New type definition.
  15660. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15661. (peer): Changed its type to PeerHandle.
  15662. (createHandshakeMessage): Replaced HandshakeMessage with
  15663. HandshakeMessageHandle.
  15664. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15665. (PeerInteraction): Replaced Peer with PeerHandle.
  15666. Replaced Socket with SocketHandle.
  15667. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15668. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15669. (receiveHandshake): Replaced HandshakeMessage with
  15670. HandshakeMessageHandle.
  15671. * src/PeerInteraction.cc
  15672. (PeerInteraction): Replaced Peer with PeerHandle.
  15673. Replaced Socket with SocketHandle.
  15674. (~PeerInteraction): Removed the deallocation of the elements of
  15675. messageQueue.
  15676. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15677. (isSendingMessageInProgress): Replaced PeerMessage with
  15678. PeerMessageHandle.
  15679. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15680. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15681. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15682. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15683. (abortPiece): Use PeerMessageHandle.
  15684. (receiveHandshake): Replaced HandshakeMessage with
  15685. HandshakeMessageHandle. Removed try-catch block.
  15686. (createHandshakeMessage): Replaced HandshakeMessage with
  15687. HandshakeMessageHandle.
  15688. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15689. Removed try-catch block.
  15690. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15691. * src/HttpProxyResponseCommand.cc
  15692. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15693. * src/FtpTunnelResponseCommand.h
  15694. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15695. * src/HttpConnection.cc
  15696. (HttpConnection): Replaced Socket with SocketHandle.
  15697. * src/PeerAbstractCommand.cc
  15698. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15699. (~PeerAbstractCommand): Removed the deallocation of socket.
  15700. Use disableReadCheckSocket, disableWriteCheckSocket.
  15701. (disableReadCheckSocket): New function.
  15702. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15703. (disableWriteCheckSocket): New function.
  15704. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15705. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15706. * src/FtpTunnelRequestCommand.cc
  15707. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15708. (~FtpTunnelRequestCommand): Corrected indentation.
  15709. * src/DownloadCommand.h
  15710. (DownloadCommand): Replaced Socket with SocketHandle.
  15711. * src/PeerListenCommand.cc
  15712. (PeerListenCommand): Removed the initialization of socket.
  15713. (~PeerListenCommand): Removed the deallocation of socket.
  15714. (bindPort): Use SocketHandle.
  15715. (execute): Use SocketHandle and PeerHandle.
  15716. * src/FtpDowndloadCommand.cc
  15717. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15718. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15719. * src/main.cc
  15720. (main): Corrected indentation.
  15721. * src/HttpInitiateConnectionCommand.cc
  15722. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15723. (executeInternal): Removed the allocation of socket.
  15724. * src/HttpRequestCommand.h
  15725. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15726. * src/FtpNegotiationCommand.h
  15727. (dataSocket): Changed its type to SocketHandle.
  15728. (serverSocket): Changed its type to SocketHandle.
  15729. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15730. * src/TorrentMan.h
  15731. (MAX_PEER_UPDATE): Removed.
  15732. (MAX_PEERS): New definition.
  15733. (Peers): The element is now of type PeerHandle.
  15734. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15735. (getPeer): Replaced Peer with PeerHandle.
  15736. (deleteOldErrorPeers): Removed.
  15737. (deleteErrorPeer): New function.
  15738. (hasMissingPiece): Replaced Peer with PeerHandle.
  15739. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15740. (getMissingPiece): Replaced Peer with PeerHandle.
  15741. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15742. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15743. (addActivePeer): Replaced Peer with PeerHandle.
  15744. (deleteActivePeer): Replaced Peer with PeerHandle.
  15745. Added a check for the return value of find.
  15746. * src/FtpTunnelResponseCommand.cc
  15747. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15748. * src/FtpInitiateConnectionCommand.cc
  15749. (executeInternal): Removed the allocation of socket.
  15750. * src/DownloadEngine.h
  15751. (Sockets): An element is now of type SocketHandle.
  15752. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15753. (CommandUuids): New type definition.
  15754. (rsockets): Changed its type to SockCmdMap.
  15755. (wsockets): Changed its type to SockCmdMap.
  15756. (addSocket): Rewritten.
  15757. (deleteSocket): Rewritten.
  15758. (addSocketForReadCheck): Rewritten.
  15759. (deleteSocketForReadCheck): Rewritten.
  15760. (addSocketForWriteCheck): Rewritten.
  15761. (deleteSocketForWriteCheck): Rewritten.
  15762. (PairFind): New template class.
  15763. * src/HttpDownloadCommand.h
  15764. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15765. * src/FtpConnection.cc
  15766. (FtpConnection): Replaced Socket with SocketHandle.
  15767. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15768. block.
  15769. * src/InitiateConnectionCommandFactory.cc
  15770. (DlAbortEx.h): Included DlAbortEx.h.
  15771. (createInitiateConnectionCommand): Throw exception if the protocol of
  15772. requested URI is not supported.
  15773. * src/Peer.cc
  15774. (nullPeer): Changed its type to PeerHandle.
  15775. (operator==): New function.
  15776. (operator!=): New function.
  15777. * src/Peer.h
  15778. (SharedHandle.h): Included SharedHandle.h.
  15779. (operator==): New function.
  15780. (operator!=): New function.
  15781. (Peer): Added the default constructor.
  15782. Use resetStatus() to initialize member variables.
  15783. (nullPeer): Removed.
  15784. * src/TrackerUpdateCommand.cc
  15785. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15786. with MIN_PEERS.
  15787. * src/PeerListenCommand.h
  15788. (socket): Changed its type to SocketHandle.
  15789. * src/Command.h
  15790. (CommandUuid): New type definition.
  15791. (uuid): New variable.
  15792. (uuidGen): New variable.
  15793. (Command): Added the initialization of uuid.
  15794. (getUuid): New function.
  15795. * src/Socket.h
  15796. (Socket): Removed.
  15797. (SocketHandle): New type definition.
  15798. * src/DownloadEngine.h
  15799. (FindCommand): New function object.
  15800. (run): The portion of socket check was rewritten.
  15801. (SetDescriptor): New function object.
  15802. (AccumulateActiveCommandUuid): New function object.
  15803. (waitData): Rewritten.
  15804. (addSocket): Rewritten.
  15805. (deleteSocket): Rewritten.
  15806. (addSocketForReadCheck): Rewritten.
  15807. (addSocketForWriteCheck): Rewritten.
  15808. (deleteSocketForReadCheck): Rewritten.
  15809. (deleteSocketForWriteCheck): Rewritten.
  15810. * src/HttpProxyResponseCommand.h
  15811. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15812. * src/HttpConnection.h
  15813. (socket): Changed its type to SocketHandle.
  15814. (HttpConnection): Replaced Socket with SocketHandle.
  15815. * src/PeerInitiateConnectionCommand.cc
  15816. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15817. (executeInternal): Removed the allocation of socket.
  15818. (prepareForNextPeer): Use PeerHandle.
  15819. * src/PeerMessage.h
  15820. (peer): Changed its type to PeerHandle.
  15821. (getPeer): Replaced Peer with PeerHandle.
  15822. (setPeer): Replaced Peer with PeerHandle.
  15823. * src/DownloadCommand.cc
  15824. (DownloadCommand): Replaced Socket with SocketHandle.
  15825. * src/FtpConnection.h
  15826. (socket): Changed its type to SocketHandle.
  15827. (FtpConnection): Replaced Socket with SocketHandle.
  15828. (sendPort); Replaced Socket with SocketHandle.
  15829. * src/FtpDowndloadCommand.h
  15830. (ctrlSocket): Changed its type to SocketHandle.
  15831. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15832. * src/HttpProxyRequestCommand.cc
  15833. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15834. * src/FtpTunnelRequestCommand.h
  15835. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15836. etc
  15837. * src/PeerChokeCommand.h
  15838. (setAllPeerChoked): Removed.
  15839. (setAllPeerResetDelta): Removed.
  15840. * src/PeerChokeCommand.cc
  15841. (setAllPeerChoked): Removed.
  15842. (ChokePeer): New function object.
  15843. (setAllPeerResetDelta): Removed.
  15844. (ResetDelta): New function object.
  15845. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15846. (execute): Show download speed when the local node is a seeder.
  15847. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15848. using STL.
  15849. * src/TrackerWatcherCommand.h
  15850. (MIN_PEERS): Removed.
  15851. * src/TorrentMan.cc
  15852. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15853. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15854. To fix the bug that .aria2 file is not saved if downloading is stopped
  15855. by the errors:it results that aria2 can not resume downloading:
  15856. * src/main.cc
  15857. (normalDownload): Added the call to save().
  15858. (main): Added the deletion of the elements in 'reserved'.
  15859. To fix log:
  15860. * src/PeerInteraction.cc
  15861. (receiveHandshake): Fixed log.
  15862. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15863. To improve download performance in BitTorrent:
  15864. * src/TorrentMan.cc
  15865. (getPeer): Check the number of connections. Return nullPeer if
  15866. it is greater than MAX_PEER_UPDATE.
  15867. This code was originally here, but was removed in 0.5.1.
  15868. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15869. To improve the conditional compilation:
  15870. * src/MultiDiskWriter.h:
  15871. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15872. * src/MultiDiskWriter.cc:
  15873. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15874. * src/Util.h:
  15875. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15876. Added ENABLE_BITTORRENT around computeFastSet().
  15877. * src/Util.cc:
  15878. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15879. Added ENABLE_BITTORRENT around computeFastSet().
  15880. * src/messageDigest.h:
  15881. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15882. * src/ShaVisitor.h:
  15883. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15884. * src/ShaVisitor.cc:
  15885. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15886. * src/main.cc:
  15887. Added ENABLE_BITTORRENT around includes and blocks related to
  15888. BitTorrent.
  15889. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15890. digest support is not available.
  15891. * src/AbstractDiskWriter.h:
  15892. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15893. * src/AbstractDiskWriter.cc:
  15894. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15895. * src/MetalinkEntry.cc
  15896. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15897. support is not available.
  15898. To add command-line options for Metalink:
  15899. * src/main.cc:
  15900. Added metalink-version, metalink-language, metalink-os,
  15901. follow-metalink.
  15902. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15903. * src/main.cc: Use these definition.
  15904. * Release 0.6.0
  15905. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15906. To add Metalink support(http/ftp only):
  15907. * src/AbstractCommand.h
  15908. (tryReserved): New function.
  15909. * src/AbstractCommand.cc
  15910. (execute): Call tryReserved().
  15911. (tryReserved): New function.
  15912. * src/Request.h
  15913. (Requests): New type definition.
  15914. * src/SegmentMan.h
  15915. (reserved): New variable.
  15916. * src/Util.h
  15917. (fileChecksum): New function.
  15918. (toUpper): New function.
  15919. (toLower): New function.
  15920. * src/Util.cc
  15921. (messageDigest.h): Included.
  15922. (trim): Trim \r\n\t.
  15923. (fileChecksum): New function.
  15924. (toUpper): New function.
  15925. (toLower): New function.
  15926. * src/main.cc
  15927. (normalDownload): New function.
  15928. (main): Added 2 command-line options: metalink-file,
  15929. metalink-connection. Their usage has not been written yet.
  15930. * src/MetalinkProcessor.h: New class.
  15931. * src/Xml2MetalinkProcessor.h: New class.
  15932. * src/Xml2MetalinkProcessor.cc: New class.
  15933. * src/MetalinkEntry.h: New class.
  15934. * src/MetalinkEntry.cc: New class.
  15935. * src/MetalinkResource.h: New class.
  15936. * src/MetalinkResource.cc: New class.
  15937. To add md5 message digest checking:
  15938. * src/messageDigest.h: Rewritten.
  15939. * src/MultiDiskWriter.cc: Updated according to the changes in
  15940. messageDigest.h.
  15941. * src/ShaVisitor.cc: Updated according to the changes in
  15942. messageDigest.h.
  15943. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15944. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15945. messageDigest.h.
  15946. To fix a bug that causes segfault when the payload length in peer
  15947. message is less than 0:
  15948. * src/PeerConnection.cc:
  15949. (receiveMessage): Fixed the bug.
  15950. * src/PeerMessageUtil.cc
  15951. (checkLength): Throw an exception if length is less than or equals to
  15952. 0.
  15953. To add new interfaces to Base64 encoding/decoding:
  15954. * src/Base64.h
  15955. (part_encode): Changed the method signature.
  15956. (encode): New function(overload).
  15957. (decode): New function(overload).
  15958. * src/Base64.cc
  15959. (part_encode): Rewritten.
  15960. (encode): Rewritten.
  15961. (encode): New function(overload).
  15962. To prevent a peer to download same piece if there is an error in
  15963. checksum:
  15964. * src/PieceMessage.cc
  15965. (receivedAction): Call peerInteraction->abortPiece().
  15966. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15967. To fix the bug that causes same have message is sent many times to
  15968. a single peer.
  15969. * src/Time.cc
  15970. (isNewer): Use Util::difftv().
  15971. * src/Util.cc
  15972. (difftv): Added a cast to (long long int).
  15973. * src/TorrentMan.cc
  15974. (advertisePiece): Use push_front.
  15975. (getAdvertisedPieceIndexes): A performance improvement was made.
  15976. To fix the bug that sends tracker requests without a sleep interval
  15977. when the number of connections is less than 15.
  15978. * src/TrackerWatcherCommand.cc
  15979. (execute): Now the number of connections is not a factor to decide
  15980. whether or not a tracker request should be sent or not.
  15981. * src/Time.h
  15982. (setTimeInSec): New function.
  15983. * src/Time.cc
  15984. (setTimeInSec): New function.
  15985. etc.
  15986. * src/ChokeMessage.cc
  15987. (receivedAction): Removed peer->snubbing = false
  15988. * src/PeerConnection.h
  15989. (receiveHandshake): Updated doc.
  15990. * src/TorrentMan.h
  15991. (getAdvertisedPieceIndexes): Updated the method signature.
  15992. * src/TorrentMan.cc
  15993. (getAdvertisedPieceIndexes): Updated the method signature.
  15994. * src/Time.h
  15995. (getTimeInMicros): Added a cast to (long long int).
  15996. (getTimeInMillis): Added a cast to (long long int).
  15997. * Release 0.5.2
  15998. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15999. To make a listening socket non-block:
  16000. * src/SocketCore.h
  16001. (setNonBlockingMode): New function.
  16002. * src/SocketCore.cc
  16003. (setNonBlockingMode): New function.
  16004. (beginListen): Added a call to setNonBlockingMode().
  16005. (acceptConnection): Call setNonBlockingMode().
  16006. (setBlockingMode): Updated.
  16007. To handle tracker's NAT-checking:
  16008. * src/PeerConnection.cc
  16009. (receiveHandshake): 'msg' param is filled with received data and
  16010. its length is assigned to 'length' param, even if all handshake
  16011. message is not yet received.
  16012. * src/PeerInteractionCommand.cc
  16013. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16014. a new peer connects to localhost.
  16015. A call to peerInteraction->sendHandshake() was removed because
  16016. it is called from peerInteraction->receiveHandshake(true).
  16017. * src/PeerInteraction.h
  16018. (quickReplied): New variable.
  16019. (receiveHandshake): Added an argument.
  16020. * src/PeerInteraction.cc
  16021. (PeerInteraction): Added the initialization of quickReplied.
  16022. (receiveHandshake): Send handshake message as soon as the info hash
  16023. in a handshake message from a peer is correct.
  16024. To change the random part of peer id and key parameter:
  16025. * src/TorrentMan.h
  16026. (key): New variable.
  16027. * src/TorrentMan.cc
  16028. (setupInternal1): Use Util::randomAlpha() to generate random part
  16029. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16030. key is also generated by Util::randomAlpha() and it is now 8 character
  16031. long.
  16032. * src/Util.h
  16033. (randomAlpha): New function.
  16034. * src/Util.cc
  16035. (randomAlpha): New function.
  16036. * src/TrackerWatcherCommand.cc
  16037. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16038. Added no_peer_id=1.
  16039. Set snubbing flag to false when a choke message is received from a
  16040. snubbed peer.
  16041. * src/ChokeMessage.cc
  16042. (receivedAction): Set snubbing flag to false.
  16043. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16044. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16045. * src/SimpleLogger.h (writeHeader): New function.
  16046. * src/SimpleLogger.cc (writeHeader): New function.
  16047. (writeLog): Fixed the bug that causes segfaults if exception message
  16048. contains an unescaped "%" character.
  16049. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16050. when a tracker request fails.
  16051. * src/Request.cc (parseUrl): Query string is now handled properly.
  16052. * Release 0.5.1
  16053. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16054. To add Time class which represents a specific instant in time and
  16055. its precision is microseconds. Time checking procedures were rewritten
  16056. using this object.
  16057. * src/Time.h: New class.
  16058. * src/Time.cc: New class.
  16059. * src/AbstractCommand.h
  16060. (updateCheckPoint): Removed.
  16061. (isTimeoutDetected): Removed.
  16062. (checkPoint): Changed the type to Time.
  16063. (timeout): New variable.
  16064. (setTimeout): New function.
  16065. * src/AbstractCommand.cc
  16066. (AbstractCommand): Removed the initialization of checkPoint.
  16067. Added the initialization of timeout.
  16068. (updateCheckPoint): Removed.
  16069. (isTimeoutDetected): Removed.
  16070. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16071. * src/PeerChokeCommand.h
  16072. (checkPoint): Changed the type to Time.
  16073. * src/PeerChokeCommand.cc
  16074. (PeerChokeCommand): Removed the initialization of checkPoint.
  16075. (execute): Rewritten using Time object.
  16076. * src/TrackerWatcherCommand.h
  16077. (checkPoint): Changed the type to Time.
  16078. * src/TrackerWatcherCommand.cc
  16079. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16080. (execute): Rewritten.
  16081. * src/ConsoleDownloadEngine.h
  16082. (cp): Changed the type to Time.
  16083. (startup): Changed the type to Time.
  16084. * src/ConsoleDownloadEngine.cc
  16085. (initStatistics): Use cp.reset(), startup.reset().
  16086. (calculateStatistics): Rewritten using Time object.
  16087. * src/PeerAbstractCommand.h
  16088. (updateCheckPoint): Removed.
  16089. (isTimeoutDetected): Removed.
  16090. (checkPoint): Changed the type to Time.
  16091. * src/PeerAbstractCommand.cc
  16092. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16093. (updateCheckPoint): Removed.
  16094. (isTimeoutDetected): Removed.
  16095. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16096. * src/PeerInteractionCommand.cc
  16097. (PeerInteractionCommand): Removed the initializations of struct
  16098. timeval variables.
  16099. * src/PeerInteractionCommand.h
  16100. (keepAliveCheckPoint): Changed the type to Time.
  16101. (chokeCheckPoint): Changed the type to Time.
  16102. (freqCheckPoint): Changed the type to Time.
  16103. (haveCheckTime): Changed the type to Time.
  16104. * src/PeerInteractionCommand.cc
  16105. (executeInternal): Rewritten using Time object.
  16106. (detectMessageFlooding): Rewritten using Time object.
  16107. (checkLongTimePeerChoking): Rewritten using Time object.
  16108. (sendKeepAlive): Rewritten using Time object.
  16109. (checkHave): Rewritten using Time object.
  16110. * src/SleepCommand.h
  16111. (checkPoint): Changed the type to Time.
  16112. * src/SleepCommand.cc
  16113. (SleepCommand): Removed the initialization of checkPoint.
  16114. (execute): Rewritten using Time object.
  16115. * src/TorrentAutoSaveCommand.h
  16116. (checkPoint): Changed the type to Time.
  16117. * src/TorrentAutoSaveCommand.cc
  16118. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16119. (execute): Rewritten.
  16120. * src/DownloadCommand.h
  16121. (sw): Changed the type to Time.
  16122. * src/DownloadCommand.cc
  16123. (DownloadCommand): Removed the initialization of sw.
  16124. (executeInternal): Rewritten.
  16125. * src/RequestSlot.h
  16126. (dispatchedTime): Changed the type to Time.
  16127. * src/RequestSlot.cc
  16128. (RequestSlot): Removed the call to setDispatchedTime().
  16129. (setDispatchedTime): Rewirtten.
  16130. (isTimeout): Rewritten.
  16131. (getLatencyInMillis): Rewritten.
  16132. * src/TorrentDownloadEngine.h
  16133. (cp): Changed the type to Time[2].
  16134. (startup): Changed the type to Time.
  16135. * src/TorrentDownloadEngine.cc
  16136. (initStatistics): Rewritten.
  16137. (calculateStatistics): Rewritten.
  16138. * src/DownloadEngine.cc
  16139. (run): Rewritten.
  16140. To detect all attempts to connect to the tracker are failed:
  16141. * src/AbstractCommand.cc
  16142. (execute): Increment e->segmentMan->errors if a command aborted.
  16143. * src/SegmentMan.h
  16144. (errors): New variable.
  16145. * src/SegmentMan.cc
  16146. (SegmentMan): Added the initialization of errors.
  16147. (init): Added the initialization of errors.
  16148. * src/TrackerWatcherCommand.cc
  16149. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16150. request was failed.
  16151. To handle snubbed peers:
  16152. * src/PeerChokeCommand.cc
  16153. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16154. (execute): Snubbed peers don't get unchoked.
  16155. * src/PeerInteraction.h
  16156. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16157. * src/PeerInteraction.cc
  16158. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16159. back the requested 16k block in 60 seconds.
  16160. * src/PieceMessage.cc
  16161. (receivedAction): A peer's snubbed state is cleard if it sends
  16162. the requested 16k block in 60 seconds.
  16163. * src/Peer.h
  16164. (snubbing): New variable.
  16165. * src/Peer.cc
  16166. (resetStatus): Added snubbed = false.
  16167. To fix the bug that causes have message is not sent:
  16168. * src/PeerInteractionCommand.cc
  16169. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16170. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16171. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16172. * src/TorrentMan.h
  16173. (HaveEntry): New class.
  16174. (advertisePiece): Rewritten.
  16175. (getAdvertisedPieceIndexes): Rewritten.
  16176. (Haves): Changed the type.
  16177. (getAdvertisedPieceIndexes): Added an argument.
  16178. Others:
  16179. * src/TorrentMan.h
  16180. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16181. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16182. * src/TorrentMan.cc
  16183. (getPeer): Don't check the number of connections here.
  16184. (setupInternal1): Changed peerId.
  16185. * src/PeerInteractionCommand.h
  16186. (KEEP_ALIVE_INTERVAL): New definition.
  16187. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16188. * src/main.cc
  16189. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16190. * src/DownloadEngine.h: Removed unnecessary header includes.
  16191. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16192. To fix the bug that causes segfaults if a tracker returns a zero-length
  16193. list as "peers":
  16194. * src/TrackerUpdateCommand.cc
  16195. (execute): Added a check to see wether the type of peers is Data*.
  16196. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16197. * Release 0.5.0
  16198. To fix compile issue with gcc3:
  16199. * src/CancelMessage.h
  16200. (ID): Renamed as ID_t
  16201. (ID_t): New enum.
  16202. * src/RejectMessage.h
  16203. (ID): Renamed as ID_t
  16204. (ID_t): New enum.
  16205. * src/SuggestPieceMessage.h
  16206. (ID): Renamed as ID_t
  16207. (ID_t): New enum.
  16208. * src/AllowedFastMessage.h
  16209. (ID): Renamed as ID_t
  16210. (ID_t): New enum.
  16211. * src/PortMessage.h
  16212. (ID): Renamed as ID_t
  16213. (ID_t): New enum.
  16214. * src/HaveNoneMessage.h
  16215. (ID): Renamed as ID_t
  16216. (ID_t): New enum.
  16217. * src/KeepAliveMessage.h
  16218. (ID): Renamed as ID_t
  16219. (ID_t): New enum.
  16220. * src/HaveAllMessage.h
  16221. (ID): Renamed as ID_t
  16222. (ID_t): New enum.
  16223. * src/UnchokeMessage.h
  16224. (ID): Renamed as ID_t
  16225. (ID_t): New enum.
  16226. * src/BitfieldMessage.h
  16227. (ID): Renamed as ID_t
  16228. (ID_t): New enum.
  16229. * src/PieceMessage.h
  16230. (ID): Renamed as ID_t
  16231. (ID_t): New enum.
  16232. * src/RequestMessage.h
  16233. (ID): Renamed as ID_t
  16234. (ID_t): New enum.
  16235. * src/NotInterestedMessage.h
  16236. (ID): Renamed as ID_t
  16237. (ID_t): New enum.
  16238. * src/ChokeMessage.h
  16239. (ID): Renamed as ID_t
  16240. (ID_t): New enum.
  16241. * src/InterestedMessage.h
  16242. (ID): Renamed as ID_t
  16243. (ID_t): New enum.
  16244. * src/HaveMessage.h
  16245. (ID): Renamed as ID_t
  16246. (ID_t): New enum.
  16247. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16248. * src/PeerAbstractCommand.h
  16249. (beforeSocketCheck): Removed.
  16250. * src/PeerAbstractCommand.cc
  16251. Modified in order to call executeInternal() even if socket check
  16252. and upload limit check fail.
  16253. * src/PeerInteractionCommand.h
  16254. (keepAlive): Removed.
  16255. (sendKeepAlive): New function.
  16256. (checkHave): New function.
  16257. (beforeSocketCheck): Removed.
  16258. * src/PeerInteractionCommand.cc
  16259. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16260. calls to checkHave() and sendKeepAlive().
  16261. (keepAlive): Renamed to sendKeepAlive().
  16262. (sendKeepAlive): New function.
  16263. (beforeSocketCheck): Removed.
  16264. (checkHave): New function.
  16265. * src/BitfieldMan.cc
  16266. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16267. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16268. 0.
  16269. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16270. * src/TorrentMan.h
  16271. (UsedPieces): Removed.
  16272. (Pieces): New type definition.
  16273. * src/Piece.h: Updated doc.
  16274. * src/Peer.h
  16275. (totalLength): Removed.
  16276. * src/Peer.cc
  16277. (updateLatency): Fixed the latency calculation.
  16278. * src/TorrentMan.cc
  16279. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16280. than or equal to MAX_PEER_LIST_SIZE.
  16281. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16282. then return false.
  16283. (deleteOldErrorPeers): Rewritten.
  16284. (deleteUsedPiece): Fixed the miss use of STL remove.
  16285. * src/PeerInteraction.h
  16286. (Pieces): Removed.
  16287. (deleteTimeoutRequestSlot): Removed.
  16288. (deleteCompletedRequestSlot): Removed.
  16289. (checkRequestSlot): New function.
  16290. * src/PeerInteraction.cc
  16291. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16292. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16293. (checkRequestSlot): New function.
  16294. * src/DownloadEngine.cc
  16295. (run): Clear activeSockets before calling waitData().
  16296. (waitData): Removed a call to activeSockets.clear().
  16297. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16298. To attempt to handle EINTR:
  16299. * src/SocketCore.cc
  16300. (isReadable): Added EINTR handling.
  16301. (isWritable): Added EINTR handling.
  16302. To improve the performance:
  16303. * src/AbstractCommand.cc
  16304. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16305. * src/PeerInteractionCommand.h
  16306. (receiveMessage): Renamed as receiveMessages().
  16307. (receiveMessages): New function.
  16308. * src/PeerInteractionCommand.cc
  16309. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16310. () function. detectMessageFlooding() is moved here.
  16311. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16312. (). The flooding detection for have message is comment out.
  16313. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16314. Util::difftv().
  16315. (receiveMessage): Renamed as receiveMessages().
  16316. (receiveMessages): New function.
  16317. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16318. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16319. * src/SleepCommand.cc
  16320. (execute): Use Util::difftvsec() instead of Util::difftv().
  16321. * src/BitfieldMan.h
  16322. (getNthBitIndex): New function.
  16323. (hasMissingPiece): New function.
  16324. (getAllMissingIndexes): New function.
  16325. * src/BitfieldMan.cc
  16326. (countSetBit): Rewritten.
  16327. (getNthBitIndex): New function.
  16328. (getMissingIndexRandomly): Rewritten.
  16329. (hasMissingPiece): New function.
  16330. (getAllMissingIndexes): New function.
  16331. * src/TorrentMan.cc
  16332. (hasMissingPiece): New function.
  16333. (deleteUsedPiece): Rewritten using STL.
  16334. * src/PeerInteraction.cc
  16335. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16336. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16337. (addRequests): Updated the number of pending requests.
  16338. * src/PeerAbstractCommand.cc
  16339. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16340. (execute): Returns true if TorrentMan::isHalt() is true.
  16341. Corrected the condition of upload limit checking.
  16342. * src/Util.h
  16343. (countBit): New function.
  16344. * src/Util.cc
  16345. (nbits): New variable.
  16346. (countBit): New function.
  16347. * src/DownloadEngine.h
  16348. (SockCmdMap): New type definition.
  16349. (waitData): Added an argument.
  16350. (addSocket): Added an argument.
  16351. (addSocketForReadCheck): Added an argument.
  16352. (addSocketForWriteCheck): Added an argument.
  16353. * src/DownloadEngine.cc
  16354. (run): Executes only commands whose sockets are ready to read or write.
  16355. All commands are executed in every 1 second.
  16356. (waitData): Calls select() again if it returned
  16357. EINTR.
  16358. (addSocket): Saves socket and command object pair to the map.
  16359. (deleteSocket): Deletes socket and command object pair from the map.
  16360. (addSocketForReadCheck): Added an argument.
  16361. (addSocketForWriteCheck): Added an argument.
  16362. * src/DownloadCommand.cc
  16363. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16364. To send "event=stopped" to the tracker when the application finishes:
  16365. * src/PeerChokeCommand.h
  16366. (checkPoint): New variable.
  16367. * src/PeerChokeCommand.cc
  16368. (PeerChokeCommand): Added the initialization of checkPoint.
  16369. (execute): The interval check is now done by checkPoint, not
  16370. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16371. * src/TorrentMan.h
  16372. (halt): New function.
  16373. (hasMissingPiece): New function.
  16374. (isHalt): New function.
  16375. (setHalt): New function.
  16376. * src/TorrentMan.cc
  16377. (TorrentMan): Added the initialization of halt.
  16378. * src/TorrentAutoSaveCommand.h
  16379. (checkPoint): New variable.
  16380. * src/PeerListenCommand.cc
  16381. (execute): Returns true if TorrentMan::isHalt() is true.
  16382. * src/main.cc
  16383. (setSignalHander): Added flags argument.
  16384. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16385. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16386. Removed printDownloadAbortMessage() after torrent downloading loop.
  16387. * src/TorrentAutoSaveCommand.cc
  16388. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16389. (execute): Returns true if TorrentMan::isHalt() is true.
  16390. The interval check is now done by checkPoint, not SleepCommand.
  16391. * src/TrackerWatcherCommand.cc
  16392. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16393. event=stopped.
  16394. * src/TrackerUpdateCommand.cc
  16395. (prepareForRetry): Do not use SleepCommand here.
  16396. (execute): Returns true if TorrentMan::isHalt() is true.
  16397. Others:
  16398. * src/TorrentMan.cc
  16399. (getMissingPieceIndex): Updated log message.
  16400. * src/PeerInteraction.cc
  16401. (createPeerMessag): Updated log message.
  16402. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16403. To add the ability to download several pieces in mix in a command and
  16404. increase the number of request slots according to request-cancel
  16405. latency:
  16406. * src/PeerInteractionCommand.cc
  16407. (executeInternal): The number of messages to be received at a time
  16408. is increased from 10 to 50.
  16409. * src/LogFactory
  16410. (getInstance): Added NullLogger.
  16411. * src/NullLogger.h: New class.
  16412. * src/BitfieldMan.h
  16413. (getMissingIndex): New function.
  16414. * src/BitfieldMan.cc
  16415. (getMissingIndex): New function.
  16416. * src/TorrentMan.h
  16417. (checkOutPiece): New function.
  16418. (getMissingPieceIndex): New function.
  16419. (getMissingFastPieceIndex): New function.
  16420. (getMissingFastPiece): New function.
  16421. * src/TorrentMan.cc
  16422. (updatePiece): Rewritten using STL.
  16423. (syncPiece): Rewritten using STL.
  16424. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16425. checkOutPiece().
  16426. (getMissingPieceIndex): New function.
  16427. (getMissingFastPieceIndex): New function.
  16428. (getMissingFastPiece): New function.
  16429. (checkOutPiece): New function.
  16430. * src/PeerInteraction.h
  16431. (Pieces): New type definition.
  16432. (piece): Removed.
  16433. (pieces): New variable.
  16434. (getNewPieceAndSendInterest): Added the "piece" argument.
  16435. (abortPiece): Added the "piece" argument.
  16436. (abortAllPieces): New function.
  16437. (isInRequestSlot): New function.
  16438. (hasDownloadPiece): Added the "index" argument.
  16439. (setDownloadPiece): Removed.
  16440. (getDownloadPiece): Added the "index" argument.
  16441. (updatePiece): New function.
  16442. (createRequestMessage): Added the "index" argument.
  16443. * src/PeerInteraction.cc
  16444. (onChoked): Rewritten.
  16445. (abortPiece): Rewirtten.
  16446. (abortAllPieces): New function.
  16447. (deleteTimeoutRequestSlot): Rewritten.
  16448. Clarified code a little bit.
  16449. (deleteCompletedRequestSlot): Rewritten.
  16450. (isInRequestSlot): New function.
  16451. (syncPiece): Rewritten.
  16452. (updatePiece): New function.
  16453. (getNewPieceAndSendInterest): Rewritten.
  16454. (addRequests): Rewritten.
  16455. (getDownloadPiece): Rewritten.
  16456. (hasDownloadPiece): Rewritten.
  16457. (createRequestMessage): Added the "index" argument.
  16458. * src/common.h
  16459. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16460. (DIV_FLOOR): New definition.
  16461. * src/PieceMessage.cc
  16462. (receivedAction): Update request-piece latency here.
  16463. * src/RequestSlot.h
  16464. (getLatencyInMillis): New function.
  16465. * src/RequestSlot.cc
  16466. (isTimeout): Rewritten using getLatencyInMillis.
  16467. (getLatencyInMillis): New function.
  16468. * src/Piece.h
  16469. (operator==): New function.
  16470. (getMissingBlockIndex): New function.
  16471. * src/Piece.cc
  16472. (operator==): New function.
  16473. (getMissingBlockIndex): New function.
  16474. * src/Peer.h
  16475. (DEFAULT_LATENCY): New definition.
  16476. (latency): New variable.
  16477. (updateLatency): New function.
  16478. (getLatency): New function.
  16479. * src/Peer.cc
  16480. (resetStatus): Reset latecy.
  16481. (updateLatency): New function.
  16482. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16483. * src/SocketCore.cc
  16484. (isReadable): Added secure to the condition.
  16485. * src/HttpConnection.cc
  16486. (receiveResponse): Fixed a bug that causes no response header
  16487. exception.
  16488. * src/Peer.h
  16489. (getFastSet): Fixed the return value type.
  16490. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16491. To remove a wait from download loop:
  16492. * src/DownloadEngine.cc
  16493. (run): Comment out shortSleep.
  16494. To rewrite the message handling:
  16495. * src/SimplePeerMessage.h: New class.
  16496. * src/SimplePeerMessage.cc: New class.
  16497. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16498. (msg): New variable.
  16499. (create): New function.
  16500. (send): Removed.
  16501. (getMessage): New function.
  16502. (getMessageLength): New function.
  16503. * src/CancelMessage.cc
  16504. (create): New function.
  16505. (receivedAction): Replaced deleteRequestMessageInQueue with
  16506. rejectPieceMessageInQueue.
  16507. (send): Removed.
  16508. (getMessage): New function.
  16509. (getMessageLength): New function.
  16510. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16511. (msg): New variable.
  16512. (msgLength): New variable.
  16513. (~BitfieldMessage): Deleted msg.
  16514. (send): Removed.
  16515. (getMessage): New function.
  16516. (getMessageLength): New function.
  16517. * src/BitfieldMessage.cc
  16518. (create): New function.
  16519. (send): Removed.
  16520. (getMessage): New function.
  16521. (getMessageLength): New function.
  16522. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16523. (msg): New variable.
  16524. (sendPredicate): New function.
  16525. (onSendComplete): New function.
  16526. (send): Removed.
  16527. (getMessage): New function.
  16528. (getMessageLength): New function.
  16529. (create): New function.
  16530. * src/ChokeMessage.cc
  16531. (create): New function.
  16532. (send): Removed.
  16533. (sendPredicate): New function.
  16534. (getMessage): New function.
  16535. (getMessageLength): New function.
  16536. (onSendComplete): New function.
  16537. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16538. (msg): New variable.
  16539. (send): Removed.
  16540. (getMessage): New function.
  16541. (getMessageLength): New function.
  16542. * src/KeepAliveMessage.cc
  16543. (send): Removed.
  16544. (getMessage): New function.
  16545. (getMessageLength): New function.
  16546. * src/PortMessage.h
  16547. (create): New function.
  16548. (receivedAction): Updated log message.
  16549. * src/PortMessage.cc: New file.
  16550. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16551. (msg): New variable.
  16552. (sendPredicate): New function.
  16553. (onSendComplete): New function.
  16554. (create): New function.
  16555. (send): Removed.
  16556. (getMessage): New function.
  16557. (getMessageLength): New function.
  16558. * src/UnchokeMessage.cc
  16559. (create): New function.
  16560. (send): Removed.
  16561. (sendPredicate): New function.
  16562. (getMessage): New function.
  16563. (getMessageLength): New function.
  16564. (onSendComplete): New function.
  16565. * src/PieceMessage.h
  16566. (leftPieceDataLength): Removed.
  16567. (leftDataLength): New variable.
  16568. (headerSend): New variable.
  16569. (pendingCount): New variable.
  16570. (msgHeader): New variable.
  16571. (sendPieceData): New function.
  16572. (incrementPendingCount): New function.
  16573. (isPendingCountMax): New function.
  16574. (create): New function.
  16575. (getMessageHeader): New function.
  16576. (getMessageHeaderLength): New function.
  16577. * src/PieceMessage.cc
  16578. (create): New function.
  16579. (getMessageHeader): New function.
  16580. (getMessageHeaderLength): New function.
  16581. (send): Rewritten.
  16582. (sendPieceData): New function.
  16583. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16584. (msg): New variable.
  16585. (create): New function.
  16586. (getMessage): New function.
  16587. (getMessageLength): New function.
  16588. * src/HaveMessage.cc
  16589. (create): New function.
  16590. (send): Removed.
  16591. (sendPieceData): New function.
  16592. (getMessage): New function.
  16593. (getMessageLength): New function.
  16594. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16595. (msg): New variable.
  16596. (create): New function.
  16597. (send): Removed.
  16598. (getMessage): New function.
  16599. (getMessageLength): New function.
  16600. * src/RequestMessage.cc
  16601. (create): New function.
  16602. (receivedAction): Added the handling of fast extension.
  16603. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16604. (send): Removed.
  16605. (getMessage): New function.
  16606. (getMessageLength): New function.
  16607. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16608. (msg): New variable.
  16609. (sendPredicate): New function.
  16610. (onSendComplete): New function.
  16611. (create): New function.
  16612. (getMessage): New function.
  16613. (getMessageLength): New function.
  16614. * src/InterestedMessage.cc
  16615. (create): New function.
  16616. (send): Removed.
  16617. (sendPieceData): New function.
  16618. (getMessage): New function.
  16619. (getMessageLength): New function.
  16620. (onSendComplete): New function.
  16621. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16622. (msg): New variable.
  16623. (sendPieceData): New function.
  16624. (onSendComplete): New function.
  16625. (create): New function.
  16626. (send): Removed.
  16627. (getMessage): New function.
  16628. (getMessageLength): New function.
  16629. * src/NotInterestedMessage.cc
  16630. (create): New function.
  16631. (send): Removed.
  16632. (sendPredicate): New function.
  16633. (getMessage): New function.
  16634. (getMessageLength): New function.
  16635. (onSendComplete): New function.
  16636. * src/AllowedFastMessage.h: New class.
  16637. * src/AllowedFastMessage.cc: New class.
  16638. * src/RejectMessage.h: New class.
  16639. * src/RejectMessage.cc: New class.
  16640. * src/SuggestPieceMessage.h: New class.
  16641. * src/SuggestPieceMessage.cc: New class.
  16642. * src/HaveAllMessage.h: New class.
  16643. * src/HaveAllMessage.cc: New class.
  16644. * src/HaveNoneMessage.h: New class.
  16645. * src/HaveNoneMessage.cc: New class.
  16646. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16647. (msg): New variable.
  16648. (reserved): New variable.
  16649. (create): New function.
  16650. (getId): New function.
  16651. (receivedAction): New function.
  16652. (getMessage): New function.
  16653. (getMessageLength): New function.
  16654. (isFastExtensionSupported): New function.
  16655. * src/HandshakeMessage.cc
  16656. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16657. (create): New function.
  16658. (getMessage): New function.
  16659. (getMessageLength): New function.
  16660. (toString): Added the output of reserved field.
  16661. (check): Added const qualifier.
  16662. (isFastExtensionSupported): New function.
  16663. * src/PeerMessageUtil.h
  16664. (createChokeMessage): Removed.
  16665. (createUnchokeMessage): Removed.
  16666. (createInterestedMessage): Removed.
  16667. (createNotInterestedMessage): Removed.
  16668. (createHaveMessage): Removed.
  16669. (createBitfieldMessage): Removed.
  16670. (createRequestMessage): Removed.
  16671. (createCancelMessage): Removed.
  16672. (createPieceMessage): Removed.
  16673. (createPortMessage): Removed.
  16674. (createChokeMessage): Removed.
  16675. (createUnchokeMessage): Removed.
  16676. (createInterestedMessage): Removed.
  16677. (createNotInterestedMessage): Removed.
  16678. (createHaveMessage): Removed.
  16679. (createBitfieldMessage): Removed.
  16680. (createRequestMessage): Removed.
  16681. (createCancelMessage): Removed.
  16682. (createPieceMessage): Removed.
  16683. (createKeepAliveMessage): Removed.
  16684. (createHandshakeMessage): Removed.
  16685. (setIntParam): New function.
  16686. (createPeerMessageString): New function.
  16687. * src/PeerMessageUtil.cc
  16688. (createChokeMessage): Removed.
  16689. (createUnchokeMessage): Removed.
  16690. (createInterestedMessage): Removed.
  16691. (createNotInterestedMessage): Removed.
  16692. (createHaveMessage): Removed.
  16693. (createBitfieldMessage): Removed.
  16694. (createRequestMessage): Removed.
  16695. (createCancelMessage): Removed.
  16696. (createPieceMessage): Removed.
  16697. (createPortMessage): Removed.
  16698. (createRequestMessage): Removed.
  16699. (createCancelMessage): Removed.
  16700. (createPieceMessage): Removed.
  16701. (createHaveMessage): Removed.
  16702. (createChokeMessage): Removed.
  16703. (createUnchokeMessage): Removed.
  16704. (createInterestedMessage): Removed.
  16705. (createNotInterestedMessage): Removed.
  16706. (createBitfieldMessage): Removed.
  16707. (createKeepAliveMessage): Removed.
  16708. (createHandshakeMessage): Removed.
  16709. (setIntParam): New function.
  16710. (createPeerMessageString): New function.
  16711. * src/PeerConnection.h
  16712. (peer): Removed.
  16713. (torrentMan): Removed.
  16714. (createNLengthMessage): Removed.
  16715. (setIntParam): Removed.
  16716. (writeOutgoingMessageLog): Removed all overloaded functions.
  16717. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16718. (sendMessage): New function.
  16719. (sendHandshake): Removed.
  16720. (sendKeepAlive): Removed.
  16721. (sendChoke): Removed.
  16722. (sendUnchoke): Removed.
  16723. (sendInterested): Removed.
  16724. (sendNotInterested): Removed.
  16725. (sendHave): Removed.
  16726. (sendBitfield): Removed.
  16727. (sendRequest): Removed.
  16728. (sendPiece): Removed.
  16729. (sendPieceHeader): Removed.
  16730. (sendPieceData): Removed.
  16731. (sendCancel): Removed.
  16732. (getPeer): Removed.
  16733. * src/PeerConnection.cc
  16734. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16735. (sendHandshake): Removed.
  16736. (sendKeepAlive): Removed.
  16737. (createNLengthMessage): Removed.
  16738. (setIntParam): Removed.
  16739. (writeOutgoingMessageLog): Removed all overloaded functions.
  16740. (sendChoke): Removed.
  16741. (sendUnchoke): Removed.
  16742. (sendInterested): Removed.
  16743. (sendNotInterested): Removed.
  16744. (sendHave): Removed.
  16745. (sendBitfield): Removed.
  16746. (sendRequest): Removed.
  16747. (sendPiece): Removed.
  16748. (sendPieceHeader): Removed.
  16749. (sendPieceData): Removed.
  16750. (sendMessage): New function.
  16751. (sendCancel): Removed.
  16752. * src/PeerInteractionCommand.cc
  16753. (PeerInteractionCommand): Call setUploadLimit.
  16754. (executeInternal): Call setUploadLimit.
  16755. Added the handling of "inProgress" state of handshake message.
  16756. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16757. sendNow().
  16758. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16759. sendNow().
  16760. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16761. * src/TorrentMan.h
  16762. (PEER_ID_LENGTH): New definition.
  16763. (hasAllPieces): New function.
  16764. * src/TorrentMan.cc
  16765. (getMissingPiece): Added the handling of fast extension.
  16766. (cancelPiece): Call updatePiece().
  16767. (hasAllPieces): New function.
  16768. * src/PeerInteraction.h
  16769. (fastSet): New variable.
  16770. (getNewPieceAndSendInterest): Changed the return type to void.
  16771. (send): Renamed as sendMessages.
  16772. (deleteAllRequestSlot): Removed.
  16773. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16774. (cancelAllRequest): Removed all overloaded functions.
  16775. (deleteAllRequestSlot): Removed.
  16776. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16777. (rejectPieceMessageInQueue): New function.
  16778. (rejectAllPieceMessageInQueue): New function.
  16779. (onChoked): New function.
  16780. (isSendingMessageInProgress): New function.
  16781. (getCorrespondingRequestSlot): Changed its arguments.
  16782. (isInFastSet): New function.
  16783. (addFastSetIndex): New function.
  16784. (addRequests): New function.
  16785. (sendNow): Removed.
  16786. (trySendNow): Removed.
  16787. (sendBitfield): New function.
  16788. (sendAllowdFast): New function.
  16789. (createHaveAllMessage): New function.
  16790. (createHaveNoneMessage): New function.
  16791. (createRejectMessage): New function.
  16792. (createAllowedFastMessage): New function.
  16793. * src/PeerInteraction.cc
  16794. (send): Renamed as sendMessages.
  16795. (sendMessages): New function.
  16796. (MsgPushBack): New class.
  16797. (isSendingMessageInProgress): New function.
  16798. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16799. (rejectAllPieceMessageInQueue): New function.
  16800. Added the handling of fast extension.
  16801. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16802. (rejectPieceMessageInQueue): New function.
  16803. Added the handling of fast extension.
  16804. (deleteRequestSlot): Replaced for loop with std::find.
  16805. (onChoked): New function.
  16806. (deleteAllRequestSlot): Removed.
  16807. (abortPiece): Rewirtten.
  16808. (deleteTimeoutRequestSlot): Updated log messages.
  16809. (getCorrespondingRequestSlot): Changed its arguments.
  16810. (cancelAllRequest): Removed all overloaded functions.
  16811. (receiveHandshake): Added the check to see whether an incoming peer
  16812. supports fast extension.
  16813. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16814. PeerMessageUtil.
  16815. (createPeerMessage): Use create() of each message class instead of
  16816. PeerMessageUtil.
  16817. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16818. AllowedFastMessage were added.
  16819. (getNewPieceAndSendInterest): Changed its return value type to void.
  16820. Added the handling of fast extension.
  16821. (addRequests): New function.
  16822. (sendNow): Removed.
  16823. (sendHandshake): Rewritten.
  16824. (trySendNow): Removed.
  16825. (sendBitfield): New function.
  16826. (sendAllowdFast): New function.
  16827. (isInFastSet): New function.
  16828. (addFastSetIndex): New function.
  16829. (createRequestMessage): Use RequestMessage::create instead of
  16830. PeerMessageUtil.
  16831. (createCancelMessage): Use CancelMessage::create instead of
  16832. PeerMessageUtil.
  16833. (createPieceMessage): Use PieceMessage::create instead of
  16834. PeerMessageUtil.
  16835. (createHaveMessage): Use HaveMessage::create instead of
  16836. PeerMessageUtil.
  16837. (createChokeMessage): Use ChokeMessage::create instead of
  16838. PeerMessageUtil.
  16839. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16840. PeerMessageUtil.
  16841. (createInterestedMessage): Use InterestedMessage::create instead of
  16842. PeerMessageUtil.
  16843. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16844. of PeerMessageUtil.
  16845. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16846. PeerMessageUtil.
  16847. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16848. PeerMessageUtil.
  16849. (createHaveAllMessage): New function.
  16850. (createHaveNoneMessage): New function.
  16851. (createRejectMessage): New function.
  16852. (createAllowedFastMessage: New function.
  16853. * src/Util.h
  16854. (sha1Sum): New function.
  16855. (computeFastSet): New function.
  16856. * src/Util.cc
  16857. (sha1Sum): New function.
  16858. (computeFastSet): New function.
  16859. * src/Peer.h
  16860. (fastExtensionEnabled): New variable.
  16861. (fastSet): New variable.
  16862. (setAllBitfield): New function.
  16863. (setFastExtensionEnabled): New function.
  16864. (isFastExtensionEnabled): New function.
  16865. (addFastSetIndex): New function.
  16866. (getFastSet): New function.
  16867. (isInFastSet): New function.
  16868. (countFastSet): New function.
  16869. * src/Peer.cc
  16870. (isInFastSet): New function.
  16871. (addFastSetIndex): New function.
  16872. (setAllBitfield): New function.
  16873. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16874. sockets.
  16875. * src/PeerAbstractCommand.cc
  16876. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16877. and uploadLimit.
  16878. (execute): Changed the procedure of checking sockets. The upload speed
  16879. checking were added.
  16880. (setUploadLimit): New function.
  16881. (setUploadLimitCheck): New function.
  16882. * src/PeerAbstractCommand.h
  16883. (setUploadLimit): New function.
  16884. (setUploadLimitCheck): New function.
  16885. (uploadLimit): New variable.
  16886. (uploadLimitCheck): New variable.
  16887. To contact a tracker regularly:
  16888. * src/TrackerWatcherCommand.h (interval): New variable.
  16889. (checkPoint): New variable.
  16890. (TrackerWatcherCommand): Added interval argument.
  16891. * src/TrackerWatcherCommand.cc
  16892. (TrackerWatcherCommand): Initialized checkPoint.
  16893. (execute): Now a tracker is contacted in every specified period.
  16894. If peer list is not needed, send request with numwant=0.
  16895. * src/TrackerUpdateCommand.cc
  16896. (execute): Updated log messages.
  16897. * src/DownloadEngine.cc
  16898. (~DownloadEngine): Removed two asserts.
  16899. (waitData): Uncommented wfds. May be a bug fix.
  16900. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16901. * src/PeerInteractionCommand.h
  16902. (checkInactiveConnection): Removed.
  16903. * src/PeerInteractionCommand.cc
  16904. (executeInternal): Removed following function calls:
  16905. detectMessageFlooding(), checkLongTimePeerChoking and
  16906. checkInactiveConnection().
  16907. (checkInactiveConnection): Removed.
  16908. (detectMessageFlooding): Removed function call to
  16909. checkInactiveConnection().
  16910. * src/PeerMessageUtil.h
  16911. (createChokeMessage): New function. Overload.
  16912. (createUnchokeMessage): New function. Overload.
  16913. (createInterestedMessage): New function. Overload.
  16914. (createNotInterestedMessage): New function. Overload.
  16915. (createHaveMessage): New function. Overload.
  16916. (createBitfieldMessage): New function. Overload.
  16917. (createRequestMessage): New function. Overload.
  16918. (createCancelMessage): New function. Overload.
  16919. (createPieceMessage): New function. Overload.
  16920. (createKeepAliveMessage): New function. Overload.
  16921. * src/PeerMessageUtil.cc
  16922. (createChokeMessage): New function. Overload.
  16923. (createUnchokeMessage): New function. Overload.
  16924. (createInterestedMessage): New function. Overload.
  16925. (createNotInterestedMessage): New function. Overload.
  16926. (createHaveMessage): New function. Overload.
  16927. (createBitfieldMessage): New function. Overload.
  16928. (createRequestMessage): New function. Overload.
  16929. (createCancelMessage): New function. Overload.
  16930. (createPieceMessage): New function. Overload.
  16931. (createKeepAliveMessage): New function. Overload.
  16932. * src/SendMessageQueue.cc
  16933. (createRequestMessage): Use PeerMessageUtil.
  16934. (createCancelMessage): Use PeerMessageUtil.
  16935. (createPieceMessage): Use PeerMessageUtil.
  16936. (createHaveMessage): Use PeerMessageUtil.
  16937. (createChokeMessage): Use PeerMessageUtil.
  16938. (createUnchokeMessage): Use PeerMessageUtil.
  16939. (createInterestedMessage): Use PeerMessageUtil.
  16940. (createNotInterestedMessage): Use PeerMessageUtil.
  16941. (createBitfieldMessage): Use PeerMessageUtil.
  16942. (createKeepAliveMessage): Use PeerMessageUtil.
  16943. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16944. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16945. * src/PeerInteraction.h: New class.
  16946. * src/PeerInteraction.cc: New class.
  16947. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16948. Each peer message has its own class.
  16949. * src/PendingMessages.h: Removed.
  16950. * src/PendingMessages.cc: Removed. The sending process was moved to
  16951. each message class.
  16952. * src/RequestSlotMan.h: Removed.
  16953. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16954. SendMessageQueue.
  16955. * src/RequestMessage.h: New class.
  16956. * src/RequestMessage.cc: New class.
  16957. * src/CancelMessage.h: New class.
  16958. * src/CancelMessage.cc: New class.
  16959. * src/BitfieldMessage.h: New class.
  16960. * src/BitfieldMessage.cc: New class.
  16961. * src/ChokeMessage.h: New class.
  16962. * src/ChokeMessage.cc: New class.
  16963. * src/KeepAliveMessage.h: New class.
  16964. * src/KeepAliveMessage.cc: New class.
  16965. * src/PortMessage.h: New class.
  16966. * src/UnchokeMessage.h: New class.
  16967. * src/UnchokeMessage.cc: New class.
  16968. * src/PieceMessage.h: New class.
  16969. * src/PieceMessage.cc: New class.
  16970. * src/HaveMessage.h: New class.
  16971. * src/HaveMessage.cc: New class.
  16972. * src/BitfieldMessage.h: New class.
  16973. * src/BitfieldMessage.cc: New class.
  16974. * src/NotInterestedMessage.h: New class.
  16975. * src/NotInterestedMessage.cc: New class.
  16976. * src/InterestedMessage.h: New class.
  16977. * src/InterestedMessage.cc: New class.
  16978. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16979. (getSendMessageQueue): New function.
  16980. (setSendMessageQueue): New function.
  16981. * src/HandshakeMessage.cc: New class.
  16982. * src/PeerConnection.h (receiveMessage): Changed return value and
  16983. arguments.
  16984. (receiveHandshake): Changed return value and arguments.
  16985. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16986. here.
  16987. (receiveHandshake): Do not create handshake class here.
  16988. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16989. (piece): Removed.
  16990. (syncPiece): Removed.
  16991. (sendInterest): Removed.
  16992. (sendMessages): Removed.
  16993. (createRequestPendingMessage): Removed.
  16994. (checkPieceHash): Removed.
  16995. (erasePieceOnDisk): Removed.
  16996. (getNewPieceAndSendInterest): Removed.
  16997. (onGotNewPice): Removed.
  16998. (onGotWrongPiece): Removed.
  16999. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17000. Removed peerConnection, piece.
  17001. (~PeerInteractionCommand): Removed peerConnection.
  17002. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17003. (syncPiece): Moved to SendMessageQueue.
  17004. (decideChoking): Removed PendingMessage.
  17005. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17006. The action after receiving peer message was moved to each message
  17007. class.
  17008. (onGotNewPice): Moved to SendMessageQueue.
  17009. (onGotWrongPiece): Moved to SendMessageQueue.
  17010. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17011. (sendInterest): Moved to SendMessageQueue.
  17012. (createRequestPendingMessage): Removed.
  17013. (sendMessages): Moved to SendMessageQueue.
  17014. (onAbort): Use SendMessageQueue::abortPiece()
  17015. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17016. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17017. (checkPieceHash): Moved to SendMessageQueue.
  17018. (erasePieceOnDisk): Moved to SendMessageQueue.
  17019. * src/PeerMessageUtil.h
  17020. (createBitfieldMessage): Removed.
  17021. (createHaveMessage): Changed return value and arguments.
  17022. (createBitfieldMessage): Changed return value and arguments.
  17023. (createRequestCancelMessage): Removed.
  17024. (createPieceMessage): Changed return value and arguments.
  17025. (getShortIntParam): New function.
  17026. (checkIndex): Changed arguments.
  17027. (checkBegin): Changed arguments.
  17028. (checkLength): Changed arguments.
  17029. (checkPieceOffset): Removed.
  17030. (checkRange): New function.
  17031. (checkBitfield): Changed arguments.
  17032. (createPeerMessage): Removed.
  17033. (checkIntegrity): Removed.
  17034. (createHandshakeMessage): Changed arguments.
  17035. (createChokeMessage): New function.
  17036. (createUnchokeMessage): New function.
  17037. (createInterestedMessage): New function.
  17038. (createNotInterestedMessage): New function.
  17039. (createRequestMessage): New function.
  17040. (createCancelMessage): New function.
  17041. (createPortMessage): New function.
  17042. * src/PeerMessageUtil.cc
  17043. (createBitfieldMessage): Removed.
  17044. (createHaveMessage): Changed return value and arguments.
  17045. (createBitfieldMessage): Changed return value and arguments.
  17046. (createRequestCancelMessage): Removed.
  17047. (createPieceMessage): Changed return value and arguments.
  17048. (getShortIntParam): New function.
  17049. (checkIndex): Changed arguments.
  17050. (checkBegin): Changed arguments.
  17051. (checkLength): Changed arguments.
  17052. (checkPieceOffset): Removed.
  17053. (checkRange): New function.
  17054. (checkBitfield): Changed arguments.
  17055. (createPeerMessage): Removed.
  17056. (checkIntegrity): Removed.
  17057. (createHandshakeMessage): Changed arguments.
  17058. (createChokeMessage): New function.
  17059. (createUnchokeMessage): New function.
  17060. (createInterestedMessage): New function.
  17061. (createNotInterestedMessage): New function.
  17062. (createRequestMessage): New function.
  17063. (createCancelMessage): New function.
  17064. (createPortMessage): New function.
  17065. * src/PeerMessage.h
  17066. (id): Removed.
  17067. (index): Removed.
  17068. (begin): Removed.
  17069. (length): Removed.
  17070. (bitfield): Removed.
  17071. (bitfieldLength): Removed.
  17072. (block): Removed.
  17073. (blockLength): Removed.
  17074. (inProgress): New variable.
  17075. (cuid): New variable.
  17076. (peer): New variable.
  17077. (sendMessageQueue): New variable.
  17078. (logger): New variable.
  17079. (setBitfield): Removed.
  17080. (getBitfield): Removed.
  17081. (setBlock): Removed.
  17082. (getBlock): Removed.
  17083. (getBitfieldLength): Removed.
  17084. (getBlockLength): Removed.
  17085. (isInProgress): New function.
  17086. (toString): Made pure virtual.
  17087. (check): New function.
  17088. (send): New function.
  17089. (receivedAction): New function.
  17090. (getId): Made pure virtual.
  17091. (setId): Removed.
  17092. (getIndex): Removed.
  17093. (setIndex): Removed.
  17094. (getBegin): Removed.
  17095. (setBegin): Removed.
  17096. (getLength): Removed.
  17097. (setLength): Removed.
  17098. (getCuid): New function.
  17099. (setCuid): New function.
  17100. (getPeer): New function.
  17101. (setPeer): New function.
  17102. (getSendMessageQueue): New function.
  17103. (setSendMessageQueue): New function.
  17104. (ID): Removed.
  17105. * src/PeerMessage.cc
  17106. (setBitfield): Removed.
  17107. (setBlock): Removed.
  17108. (toString): Removed.
  17109. * src/TorrentMan.h
  17110. (getPieceLength): New function.
  17111. (getPieceLength): New function.
  17112. * src/SendMessageQueue.h
  17113. (REQUEST_TIME_OUT): New definition.
  17114. (RequestSlots): New definition.
  17115. (MessageQueue): New definition.
  17116. (requestSlotMan): Removed.
  17117. (pendingMessages): Removed.
  17118. (requestSlots): New variable.
  17119. (messageQueue): New variable.
  17120. (torrentMan): New variable.
  17121. (peerConnection): New variable.
  17122. (peer): New variable.
  17123. (piece): New variable.
  17124. (getNewPieceAndSendInterest): New function.
  17125. (createPeerMessage): New function.
  17126. (createHandshakeMessage): New function.
  17127. (send): Made private.
  17128. (setPeerMessageCommonProperty): New function.
  17129. (deleteAllRequestSlot): New function.
  17130. (deleteRequestMessageInQueue): New function.
  17131. (cancelAllRequest): Made private.
  17132. (cancelAllRequest): Made private.
  17133. (countRequestSlot): Made private.
  17134. (addPendingMessage): Removed.
  17135. (deletePendingPieceMessage): Removed.
  17136. (deletePendingRequestMessage): Removed.
  17137. (addMessage): New function.
  17138. (deletePieceMessageInQueue): New function.
  17139. (deleteTimeoutRequestSlot): Changed argument.
  17140. (deleteCompletedRequestSlot): Changed argument.
  17141. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17142. (getCorrespondingRequestSlot): New function.
  17143. (countPendingMessage): Removed.
  17144. (countMessageInQueue): New function.
  17145. (getTorrentMan): New function.
  17146. (getPeerConnection): New function.
  17147. (hasDownloadPiece): New function.
  17148. (getDownloadPiece): New function.
  17149. (setDownloadPiece): New function.
  17150. (syncPiece): New function.
  17151. (sendMessages): New function.
  17152. (sendNow): New function.
  17153. (trySendNow): New function.
  17154. (abortPiece): New function.
  17155. (sendHandshake): New function.
  17156. (receiveMessage): New function.
  17157. (receiveHandshake): New function.
  17158. (createRequestMessage): New function.
  17159. (createCancelMessage): New function.
  17160. (createPieceMessage): New function.
  17161. (createHaveMessage): New function.
  17162. (createChokeMessage): New function.
  17163. (createUnchokeMessage): New function.
  17164. (createInterestedMessage): New function.
  17165. (createNotInterestedMessage): New function.
  17166. (createBitfieldMessage): New function.
  17167. (createKeepAliveMessage): New function.
  17168. * src/SendMessageQueue.cc
  17169. (SendMessageQueue): Removed requestSlotMan.
  17170. Instantiated peerConnection here.
  17171. (~SendMessageQueue): Removed requestSlotMan.
  17172. Added deletion of peerConnection and the contents of messageQueue.
  17173. (send): Updated according to the change of messageQueue.
  17174. (addPendingMessage): Renamed to addMessage.
  17175. (addMessage): New function.
  17176. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17177. (deletePieceMessageInQueue): New function.
  17178. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17179. (deleteRequestMessageInQueue): New function.
  17180. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17181. here.
  17182. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17183. (...) was moved here.
  17184. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17185. moved here.
  17186. (deleteCompletedRequestSlot):
  17187. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17188. (getCorrespondingRequestSlot):
  17189. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17190. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17191. (countPendingMessage): Renamed to countMessageInQueue.
  17192. (countMessageInQueue): New function.
  17193. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17194. (receiveHandshake): New function.
  17195. (createHandshakeMessage): New function.
  17196. (receiveMessage): New function.
  17197. (createPeerMessage): New function.
  17198. (syncPiece): New function.
  17199. (getNewPieceAndSendInterest): New function.
  17200. (sendMessages): New function.
  17201. (sendNow): New function.
  17202. (trySendNow): New function.
  17203. (sendHandshake): New function.
  17204. (abortPiece): New function.
  17205. (getDownloadPiece): New function.
  17206. (getPeerMessageCommonProperty): New function.
  17207. (createRequestMessage): New function.
  17208. (createCancelMessage): New function.
  17209. (createPieceMessage): New function.
  17210. (createHaveMessage): New function.
  17211. (createChokeMessage): New function.
  17212. (createUnchokeMessage): New function.
  17213. (createInterestedMessage): New function.
  17214. (createNotInterestedMessage): New function.
  17215. (createBitfieldMessage): New function.
  17216. (createKeepAliveMessage): New function.
  17217. To add simple Content-Disposition support:
  17218. * src/HttpResponseCommand.h (determinFilename): New function.
  17219. * src/HttpResponseCommand.cc (executeInternal):
  17220. Use determinFilename(headers) instead of req->getFile() when comparing
  17221. filename.
  17222. (determinFilename): New function.
  17223. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17224. req->getFile().
  17225. (handleOtherEncoding): Use determinFilename(headers) instead of
  17226. req->getFile().
  17227. * src/Util.h (getContentDispositionFilename): New function.
  17228. * src/Util.cc (getContentDispositionFilename): New function.
  17229. * src/LogFactory.h (release): New function.
  17230. * src/LogFactory.cc (release): New function.
  17231. To fix a bug that causes out-of-bound exception when HTTP status
  17232. line is wrong:
  17233. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17234. size.
  17235. * src/common.h (Deleter): New class.
  17236. * src/SegmentMan.cc
  17237. (~SegmentMan): Added deletion of splitter and diskWriter.
  17238. * src/DownloadEngine.h
  17239. (Commands): Use deque.
  17240. (clearQueue): New function.
  17241. * src/DownloadEngine.cc
  17242. (~DownloadEngine): Added deletion of segmentMan.
  17243. (cleanQueue): New function.
  17244. * src/TorrentDownloadEngine.h
  17245. (TorrentDownloadEngine): The implementation was moved to
  17246. TorrentDownloadEngine.cc.
  17247. (~TorrentDownloadEngine): The implementation was moved to
  17248. TorrentDownloadEngine.cc.
  17249. * src/TorrentDownloadEngine.cc
  17250. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17251. * src/main.cc
  17252. (clearRequest): Removed.
  17253. (handler): Added deletion of e.
  17254. (torrentHandler): Added deletion of te.
  17255. (main): Do not share splitter.
  17256. Use Deleter instead of clearRequest.
  17257. Deletion of classes were updated.
  17258. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17259. * src/main.cc (main): Fixed typo.
  17260. * src/message.h: Fixed typo.
  17261. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17262. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17263. To add --select-file command-line option:
  17264. * src/Util.cc
  17265. (unfoldRange): New function.
  17266. (getNum): New function.
  17267. (unfoldSubRange): New function
  17268. * src/main.cc
  17269. (showUsage): Added help message.
  17270. (main): Added --select-file command-line option. Updated the layout of
  17271. file listing.
  17272. * src/common.h
  17273. (Integers): New definition.
  17274. * src/SocketCore.cc
  17275. (writeData): Removed timeout argument.
  17276. (readData): Removed timeout argument.
  17277. (peekData): Removed timeout argument.
  17278. * src/Socket.cc
  17279. (writeData): Removed timeout argument.
  17280. (readData): Removed timeout argument.
  17281. (peekData): Removed timeout argument.
  17282. * Release 0.4.1
  17283. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17284. To deploy upload rate based choking algorithm:
  17285. * src/PeerInteractionCommand.cc
  17286. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17287. peer currently used.
  17288. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17289. download completes. Simplified.
  17290. (receiveMessage): Updated.
  17291. * src/TorrentMan.h
  17292. (activePeers): New variable.
  17293. (addActivePeer): New function.
  17294. (getActivePeers): New function.
  17295. (deleteActivePeer): New function.
  17296. * src/TorrentMan.cc
  17297. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17298. * src/PeerAbstractCommand.cc
  17299. (onAbort): Use peer->resetStatus().
  17300. * src/main.cc
  17301. (PeerChokeCommand.h): Included.
  17302. (main): Added the instance of ChokingCommand to the command queue.
  17303. * src/Peer.h
  17304. (amChoking): Renamed from amChocking
  17305. (chokingRequired): New variable.
  17306. (optUnchoking): New variable.
  17307. (deltaUpload): New variable.
  17308. (deltaDownload): New variable.
  17309. (addDeltaUpload): New function.
  17310. (resetDeltaUpload): New function.
  17311. (addDeltaDownload): New function.
  17312. (resetDeltaDownload): New function.
  17313. (addPeerUpload): Added a call to addDeltaUpload.
  17314. (addPeerDownload): Added a call to addDeltaDownload.
  17315. * src/Peer.cc
  17316. (shouldBeChoking): Renamed from shouldChoke.
  17317. (resetStatus): New function.
  17318. * src/PeerChokeCommand.h: New class.
  17319. * src/PeerChokeCommand.cc: New class.
  17320. To add lazy upload speed limiter:
  17321. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17322. statistics calculation to TorrentDownloadEngine.
  17323. * src/TorrentConsoleDownloadEngine.cc
  17324. (sendStatistics): Renamed from printStatistics.
  17325. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17326. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17327. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17328. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17329. calculation.
  17330. (sendStatistics): New function as pure virtual function.
  17331. (getUploadSpeed): New function.
  17332. * src/TorrentDownloadEngine.cc
  17333. (initStatistics): New function.
  17334. (calculateSpeed): New function.
  17335. (calculateStatistics): New function.
  17336. * src/SendMessageQueue.h
  17337. (uploadLength): New variable.
  17338. (send): Added an argument.
  17339. (setUploadLimit): New function.
  17340. (getUploadLimit): New function.
  17341. * src/SendMessageQueue.cc
  17342. (send): Added upload speed limiter.
  17343. * src/prefs.h
  17344. (PREF_UPLOAD_LIMIT): New definition.
  17345. * src/PeerInteractionCommand.cc
  17346. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17347. * src/main.cc
  17348. (main): Added --upload-limit option
  17349. For bug fixes:
  17350. * src/main.cc
  17351. (showUsage): Corrected --listen-port help
  17352. Other changes:
  17353. * src/TorrentMan.cc
  17354. (getPeer): Return nullPeer if connection is grather than
  17355. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17356. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17357. To add some useful information to the exception message:
  17358. * src/SocketCore.cc : Updated messages.
  17359. * src/SegmentMan.cc :
  17360. * src/TorrentMan.cc : Updated messages.
  17361. * src/MultiDiskWriter.cc : Updated messages.
  17362. * src/Util.cc : Updated messages.
  17363. * src/AbstractDiskWriter.cc : Updated messages.
  17364. * src/PreAllocationDiskWriter.cc : Updated messages.
  17365. * src/message.cc : Added new messages. Updated some messages.
  17366. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17367. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17368. Updated threshold from 30 to 15.
  17369. * src/AbstractDiskWriter.h (filename): New variable.
  17370. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17371. (createFile): Assigned filename.
  17372. * src/main.cc: Updated the help message for http-auth-scheme.
  17373. * Release 0.4.0
  17374. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17375. To add TrackerUpdateCommand with which replaces
  17376. CompactTrackerResponseProcessor:
  17377. * src/TrackerWatcherCommand.h (req): Removed.
  17378. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17379. if the number of peer connections are less than 30.
  17380. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17381. * src/SegmentMan.h (diskWriter): New function.
  17382. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17383. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17384. (main): Use TrackerUpdateCommand.
  17385. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17386. (req): New variable.
  17387. (setTrackerResponseProcessor): Removed.
  17388. (getTrackerResponseProcessor): Removed.
  17389. (processTrackerResponse): Removed.
  17390. * src/DownloadEngine.h (diskWriter): Removed.
  17391. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17392. to torrentMan->processTrackerResponse().
  17393. To add Util::expandBuffer:
  17394. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17395. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17396. * src/Util.h (expandBuffer): New function.
  17397. To fix the bug that causes segmentation fault when "-l ." is specified
  17398. in command-line option:
  17399. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17400. (openFile): New function.
  17401. (closeFile): New function.
  17402. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17403. (~SimpleLogger): Call closeFile();
  17404. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17405. * src/main.cc (main): Added a check to see logger is configured
  17406. properly.
  17407. To enable HTTP authentication without specifying "--http-auth-scheme"
  17408. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17409. * src/HttpConnection.cc (createRequest): Send Authorization header
  17410. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17411. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17412. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17413. * src/Peer.cc (shouldChoke): Updated algorithm.
  17414. * src/message.h (EX_AUTH_FAILED): New definition.
  17415. (EX_FILE_OPEN): New definition.
  17416. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17417. if status == 401.
  17418. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17419. if req->isTorrent == true.
  17420. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17421. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17422. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17423. (createFile): Updated message.
  17424. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17425. To add a readout of estimated remaining time to normal HTTP/FTP
  17426. downloads:
  17427. * src/ConsoleDownloadEngine.h (startup): New variable.
  17428. (startupLength): New variable.
  17429. (isStartupLengthSet): New variable.
  17430. (avgSpeed): New variable.
  17431. (eta): New variable.
  17432. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17433. estimated remaining time.
  17434. (initStatistics): Initialized newly added variables.
  17435. (calculateStatistics): Calculate average speed and estimated remaining
  17436. time.
  17437. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17438. * src/TrackerDownloadCommand.h: Removed.
  17439. * src/TrackerDownloadCommand.cc: Removed.
  17440. * src/TrackerInitCommand.h: Removed.
  17441. * src/TrackerInitCommand.cc: Removed.
  17442. * src/TrackerUpdateCommand.h: Removed.
  17443. * src/TrackerUpdateCommand.cc: Removed.
  17444. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17445. url written in TrackerInitCommand was moved here. Do not create
  17446. tracker request command if torrentMan->trackers != 0.
  17447. * src/CompactTrackerResponseProcessor.h: New class.
  17448. * src/CompactTrackerResponseProcessor.cc: New class.
  17449. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17450. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17451. Decoupled TorrentDownloadEngine from this.
  17452. * src/SegmentMan.h (init): New function.
  17453. * src/SegmentMan.cc (init): New function.
  17454. * src/TorrentMan.h (responseProcessor): New variable.
  17455. (trackers): New variable.
  17456. (setTrackerResponseProcessor): New function.
  17457. (getTrackerResponseProcessor): New function.
  17458. (processTrackerResponse): New function.
  17459. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17460. (processTrackerResponse): New function.
  17461. * src/main.cc (main): Use ByteArrayDiskWriter and
  17462. CompactTrackerResponseProcessor.
  17463. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17464. processTrackerResponse().
  17465. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17466. readout.
  17467. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17468. which indicates download has completed.
  17469. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17470. (closeFile): fd >= 0, not fd > 0
  17471. * src/main.cc (main): Added short cut for show-files.
  17472. Added short cut for torrent-file.
  17473. Added new command-line option listen-port.
  17474. Updated i18n messages.
  17475. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17476. To add LogFactory which creates singleton logger:
  17477. * src/LogFactory.h: New class.
  17478. * src/LogFactory.cc: New class.
  17479. * src/Command.h (logger): New variable.
  17480. (Constructor): Use LogFactory.
  17481. * src/AbstractCommand.cc: Use Command::logger
  17482. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17483. Use LogFactory.
  17484. * src/SegmentSplitter.h : Made logger protected.
  17485. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17486. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17487. * src/DownloadEngine.h : Made logger protected.
  17488. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17489. * src/PeerInteractionCommand.cc : Use Command::logger.
  17490. * src/HttpResponseCommand.cc : Use Command::logger.
  17491. * src/SegmentMan.h : Made logger private.
  17492. * src/TorrentMan.h : Made logger private.
  17493. * src/TorrentMan.cc : Use LogFactory.
  17494. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17495. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17496. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17497. Use LogFactory.
  17498. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17499. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17500. Use LogFactory.
  17501. * src/DownloadCommand.cc : Use Command::logger.
  17502. * src/PeerAbstractCommand.cc : Use Command::logger.
  17503. * src/PeerListenCommand.cc : Use Command::logger.
  17504. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17505. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17506. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17507. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17508. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17509. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17510. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17511. Use LogFactory.
  17512. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17513. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17514. Use LogFactory.
  17515. * src/main.cc (main): Use LogFactory.
  17516. * src/DiskAdaptor.h (logger): New variable.
  17517. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17518. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17519. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17520. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17521. parameter to a tracker request.
  17522. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17523. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17524. * src/main.cc (setSignalHander): New function.
  17525. (main): Added a handler for SIGTERM.
  17526. (handler): Updated message.
  17527. (torrentHandler): Updated message.
  17528. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17529. * src/TorrentConsoleDownloadEngine.cc
  17530. (onPartialDownloadingCompletes): Renamed as
  17531. onSelectiveDownloadingCompletes.
  17532. (onSelectiveDownloadingCompletes): Updated message.
  17533. To add DiskAdaptor which abstract DiskWriter family:
  17534. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17535. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17536. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17537. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17538. MultiDiskAdaptor.h.
  17539. (readFileEntry): Changed its arguments.
  17540. (setup): setupDiskWriter is merged into this function.
  17541. (setupDiskWriter): Removed.
  17542. (setFileFilter): New function.
  17543. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17544. made in readFileEntry.
  17545. (getFilePath): Removed.
  17546. (getTempFilePath): Removed.
  17547. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17548. (fixFilename): Removed.
  17549. (copySingleFile): Removed.
  17550. (splitMultiFile): Removed.
  17551. (deleteTempFile): Removed.
  17552. (setFileEntriesToDownload): Removed.
  17553. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17554. (isSelectiveDownloadingMode): New function.
  17555. (setAllMultiFileRequestedState): Removed.
  17556. (finishPartialDownloadingMode): Renamed as
  17557. finishSelectiveDownloadingMode.
  17558. (finishSelectiveDownloadingMode): New function.
  17559. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17560. (getSelectedTotalLength): New function.
  17561. (onDownloadComplete): Use diskAdaptor.
  17562. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17563. (Range): Removed.
  17564. (setMultiFileEntries): Renamed as setFileEntries.
  17565. (setFileEntries): New function.
  17566. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17567. (pieceLength): New variable.
  17568. * src/main.cc (printDownloadCompeleteMessage): New function.
  17569. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17570. (main): Renamed torrent-show-files to show-files.
  17571. Rewritten file contents listing.
  17572. * src/TorrentMan.h (FileEntry): Removed.
  17573. (multiFileTopDir): Removed.
  17574. (multiFileEntries): Removed.
  17575. (diskWriter): Removed.
  17576. (diskAdaptor): New variable.
  17577. * src/DefaultDiskWriter.h (totalLength): New variable.
  17578. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17579. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17580. diskWriter.
  17581. * src/TorrentConsoleDownloadEngine.h
  17582. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17583. (partialTotalLength): Renamed as selectedTotalLength.
  17584. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17585. openExistingFile, otherwise call initAndOpenFile.
  17586. (closeFile): fd > 0, not fd != 0.
  17587. * src/DirectDiskAdaptor.h: New class.
  17588. * src/DirectDiskAdaptor.cc: New class.
  17589. * src/MultiDiskAdaptor.h: New class.
  17590. * src/MultiDiskAdaptor.cc: New class.
  17591. * src/CopyDiskAdaptor.h: New class.
  17592. * src/CopyDiskAdaptor.cc: New class.
  17593. * src/DiskAdaptor.h: New class.
  17594. * src/DiskAdaptor.cc: New class.
  17595. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17596. (PREF_SHOW_FILES): New definition.
  17597. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17598. To add the ability to download multi torrent into respective files
  17599. directly:
  17600. * src/DiskWriter.h (openFile): New function.
  17601. (seek): Removed.
  17602. * src/MultiDiskWriter.h: New class.
  17603. * src/MultiDiskWriter.cc: New class.
  17604. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17605. protected.
  17606. (openFile): New function.
  17607. * src/AbstractDiskWriter.cc (openFile): New function.
  17608. * src/prefs.h (V_FALSE): New definition.
  17609. (PREF_DIRECT_FILE_MAPPING): New definition.
  17610. * src/TorrentMan.h (setupDiskWriter): New function.
  17611. (setAllMultiFileRequestedState): New function.
  17612. (onDownloadComplete): New function.
  17613. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17614. (setupDiskWriter): New function.
  17615. (getFilePath): Updated.
  17616. (getTempFilePath): Updated.
  17617. (getSegmentFilePath): Updated.
  17618. (fixFilename): Updated.
  17619. (deleteTempFile): Updated.
  17620. (setAllMultiFileRequestedState): New function.
  17621. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17622. (finishPartialDownloadingMode): Reset requested flags.
  17623. (onDownloadComplete): New function.
  17624. * src/main.cc: Added --direct-file-mapping option.
  17625. Use TorrentMan::setupDiskWriter().
  17626. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17627. onDownloadComplete().
  17628. To fix ETA bug:
  17629. * src/Util.h (difftvsec): New function.
  17630. * src/Util.cc (difftvsec): New function.
  17631. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17632. type of "elapsed" instead of long long int.
  17633. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17634. The updates of statistics takes place every 1 seconds.
  17635. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17636. (calculateSpeed): Changed its argument signature.
  17637. * src/PeerMessage.cc (toString): Fixed message.
  17638. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17639. To print ETA:
  17640. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17641. completion handling when dealing with
  17642. TorrentMan::isPartialDownloadingMode() == true.
  17643. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17644. New function.
  17645. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17646. (sessionDownloadLength): New variable.
  17647. (avgSpeed): New variable.
  17648. (eta): New variable.
  17649. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17650. new variables: eta, avgSpeed, startup.
  17651. (calculateSpeed): Calculate average speed and ETA.
  17652. (printStatistics): Added ETA.
  17653. * src/Util.h (secfmt): New function.
  17654. * src/Util.cc (secfmt): New function.
  17655. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17656. To detect "keep alive" flooding:
  17657. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17658. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17659. variable: keepAliveCount.
  17660. (detectMessageFlooding): Added "keep alive" flooding detection.
  17661. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17662. received.
  17663. To add the ability to download only specified files in multi-file
  17664. torrent:
  17665. * src/BitfieldMan.h (filterBitfield): New variable.
  17666. (filterEnabled): New variable.
  17667. (setFilterBit): New function.
  17668. (enableFilter): New function.
  17669. (disableFilter): New function.
  17670. (isFilterEnabled): New function.
  17671. (getFilteredTotalLength): New function.
  17672. (getCompletedLength): New function.
  17673. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17674. filterBitfield, filterEnabled.
  17675. (CopyConstructor): Added filterBitfield and filterEnabled.
  17676. (operator==): Added filterBitfield and filterEnabled.
  17677. (Destructor): Added filterBitfield.
  17678. (getMissingIndex): Use filterBitfield.
  17679. (getMissingUnusedIndex): Use filterBitfield.
  17680. (getFirstMissingUnusedIndex): Use filterBitfield.
  17681. (getFirstMissingUnusedIndex): Use filterBitfield.
  17682. (getAllMissingIndexes): Use filterBitfield.
  17683. (countMissingBlock): Use filterBitfield.
  17684. (countBlock): Use filterBitfield.
  17685. (setBitInternal): Added new argument on.
  17686. (setUseBit): Use setBitInternal.
  17687. (unsetUseBit): Use setBitInternal.
  17688. (setBit): Use setBitInternal.
  17689. (unsetBit): Use setBitInternal.
  17690. (isAllBitSet): Use filterBitfield.
  17691. (setFilterBit): New function.
  17692. (addFilter): New function.
  17693. (enableFilter): New function.
  17694. (disableFilter): New function.
  17695. (clearFilter): New function.
  17696. (isFilterEnabled): New function.
  17697. (getFilteredTotalLength): New function.
  17698. (getCompletedLength): New function.
  17699. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17700. Initalized newly added variables.
  17701. [FileEntry](offset): New variable.
  17702. [FileEntry](extracted): New variable.
  17703. [FileEntry](requested): New variable.
  17704. (readFileEntry): New function.
  17705. (option): New variable.
  17706. (splitMultiFile): Removed const qualifier.
  17707. (fixFilename): Removed const qualifier.
  17708. (readFileEntryFromMetaInfoFile): New function.
  17709. (finishPartialDownloadingMode): New function.
  17710. (isPartialDownloadingMode): New function.
  17711. (setFileEntriesToDownload): New function.
  17712. (getCompletedLength): New function.
  17713. (getPartialTotalLength): New function.
  17714. * src/TorrentMan.cc (readFileEntry): New function.
  17715. (setup): Use readFileEntry. If no-preallocation option is specified,
  17716. use DefaultDiskWriter.
  17717. (readFileEntryFromMetaInfoFile): New function.
  17718. (fixFilename): Removed const qualifier.
  17719. (splitMultiFile): Removed const qualifier.
  17720. (setFileEntriesToDownload): New function.
  17721. (isPartialDownloadingMode): New function.
  17722. (finishPartialDownloadingMode): New function.
  17723. (getCompletedLength): New function.
  17724. (getPartialTotalLength): New function.
  17725. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17726. New variable.
  17727. (partialTotalLength): New variable.
  17728. (downloadLength): New variable.
  17729. (totalLength): New variable.
  17730. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17731. Added log.
  17732. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17733. partialTotalLength, downloadLength, totalLength.
  17734. (calculate): Calculate downloadLength and totalLength.
  17735. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17736. * src/main.cc (addCommand): Changed argument signature.
  17737. (main): Added new variable: args. Added new option "torrent-show-files"
  17738. "no-preallocation". Usage is not updated yet.
  17739. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17740. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17741. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17742. Attempt to add the ability to listing file entries in a .torrent file.
  17743. This feature is not yet complete.
  17744. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17745. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17746. (getName): New function.
  17747. * src/TorrentMan.h (getMultiFileEntries): New function.
  17748. (getName): New function.
  17749. * src/main.cc (main): Use above 2 funtion.
  17750. * Release 0.3.2
  17751. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17752. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17753. (detectMessageFlooding): Updated threshold value.
  17754. (checkLongTimePeerChoking): Updated timeout value.
  17755. (getNewPieceAndSendInterest): Added debug log.
  17756. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17757. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17758. (getPeer): Updated.
  17759. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17760. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17761. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17762. is localhost.
  17763. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17764. * src/PendingMessage.cc (processMessage): Not to send piece message
  17765. if peer is not interested in the pieces localhost has.
  17766. * src/Peer.cc (shouldChoke): Updated.
  17767. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17768. * src/Util.cc (isPowerOf): New function.
  17769. * src/Util.h (isPowerOf): New function.
  17770. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17771. whether or not it is power of 2.
  17772. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17773. Added new class SendMessageQueue that includes PendingMessages and
  17774. RequestSlotMan.
  17775. * src/SendMessageQueue.h: New class.
  17776. * src/SendMessageQueue.cc: New class.
  17777. * src/PendingMessage.h: Added new member variable blockIndex and its
  17778. accessors.
  17779. (createRequestMessage): Updated.
  17780. * src/PendingMessage.cc (createRequestMessage): Updated.
  17781. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17782. SendMessageQueue.
  17783. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17784. (receiveMessage): Updated with SendMessageQueue.
  17785. (deletePendingPieceMessage): Removed.
  17786. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17787. (sendInterest): Updated with SendMessageQueue.
  17788. (createRequestPendingMessage): Updated with SendMessageQueue.
  17789. (sendMessages): Updated with SendMessageQueue.
  17790. (onAbort): Updated with SendMessageQueue.
  17791. (keepAlive): Updated with SendMessageQueue.
  17792. (beforeSocketCheck): Updated SendMessageQueue.
  17793. * src/PeerInteractionCommand (sendMessages): Shuffle
  17794. missingBLockIndexes before using it.
  17795. Added its own timeout for peer connection.
  17796. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17797. setter.
  17798. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17799. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17800. Added setTimeout() call.
  17801. (executeInternal): Added setTimeout() call.
  17802. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17803. Added timeout.
  17804. (isTimeoutDetected): Updated.
  17805. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17806. option.
  17807. Added *simple* message flooding checker.
  17808. * src/PeerInteractionCommand.cc (executeInternal):
  17809. Added detectMessageFlooding() call.
  17810. (detectMessageFlooding): New function.
  17811. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17812. (beforeSocketCheck): Added detectMessageFlooding() call.
  17813. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17814. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17815. Removed deletePendingPieceMessage(), getRequestSlot(),
  17816. deleteRequestSlot(), deleteAllRequestSlot().
  17817. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17818. Added checkLongTimePeerChoking() call.
  17819. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17820. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17821. if duplicate == false.
  17822. The parameter "uploaded" and "downloaded" in the tracker request are
  17823. the size since the client sent the "started" event to the tracker.
  17824. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17825. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17826. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17827. getSessionDownloadedSize(), getSessionUploadedSize().
  17828. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17829. getSessionUploadedSize() instead of getDownloadedSize(),
  17830. getUploadedSize().
  17831. * src/PendingMessage.cc (processMessage): Do not send request message
  17832. if the peer is choking the client.
  17833. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17834. less than interval.
  17835. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17836. * configure.in: Added gnutls support. Added several CPP macros.
  17837. * m4/openssl.m4: Added.
  17838. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17839. readData(), peekData(). Added gnutls support.
  17840. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17841. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17842. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17843. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17844. Instead, added a check for whether setup method has executed
  17845. successfully.
  17846. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17847. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17848. * src/Makefile.am: Updated.
  17849. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17850. using whether OpenSSL or gcrypt, depending on the result of configure
  17851. script.
  17852. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17853. messageDigest.h.
  17854. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17855. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17856. Fixed memory leak.
  17857. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17858. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17859. Removed instantiation of TrackerInitCommand. Instead,
  17860. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17861. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17862. ENABLE_SSL.
  17863. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17864. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17865. If a piece is already acquired by another command, delete the request
  17866. slots for the piece.
  17867. * src/TrackerUpdateCommand.cc (execute):
  17868. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17869. Added a check whether peer list is null.
  17870. Fixed the bug that causes sending completed event to the tracker
  17871. several times.
  17872. * src/TrackerInitCommand.cc (execute):
  17873. Fixed the bug that causes sending completed event to the tracker
  17874. several times.
  17875. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17876. by using messageDigest.h.
  17877. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17878. * PeerConnection.cc: Replaced log message "keep-alive" with
  17879. "keep alive".
  17880. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17881. localhost long time.
  17882. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17883. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17884. at most 100 failure entry from the list. If with duplicate = false,
  17885. MAX_PEER_LIST is not checked.
  17886. * PeerListenCommand.cc: Fixed the argument order of log message.
  17887. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17888. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17889. Added warn().
  17890. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17891. Implemented warn().
  17892. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17893. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17894. * Request.h: Added AFTER_COMPLETED event.
  17895. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17896. instead of downloaded size and progress(%) after download completes.
  17897. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17898. message to the peer if it is interested in what localhost has
  17899. downloaded.
  17900. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17901. destination instead of just renaming it.
  17902. * TorrentMan.cc: Added deleteTempFile().
  17903. * PeerAbstractCommand.cc: do not stop execution after download
  17904. completes. This makes localhost a seeder.
  17905. * Util.{h,cc}: Added fileCopy().
  17906. * PeerListenCommand.cc: do not stop execution after download completes.
  17907. This makes localhost a seeder.
  17908. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17909. Added TorrentMan::deleteTempFile() to torrentHandler.
  17910. Initialized the variable dir as ".".
  17911. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17912. Deleted renameSingleFile().
  17913. Added copySingleFile(), deleteTempFile().
  17914. * DownloadEngine.h: Added virtual function afterEachIteration().
  17915. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17916. in onEndOfRun() to afterEachIteration().
  17917. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17918. true.
  17919. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17920. In rangedFileCopy(), added try-catch block to properly close file
  17921. descriptors.
  17922. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17923. Added afterEachIteration(), isFilenameFixed().
  17924. * Peer.cc: Changed choking strategy.
  17925. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17926. * TrackerInitCommand.cc: Send completed event only once.
  17927. * DownloadEngine.cc: Added a call to afterEachIteration().
  17928. * TrackerUpdateCommand.cc: Do not stop execution after download
  17929. completes.
  17930. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17931. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17932. received from a tracker.
  17933. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17934. Decreased the number of failure peers to delete to 0(just comment out
  17935. the line).
  17936. * Release 0.3.1
  17937. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17938. * PeerInteractionCommand.cc: added a call to
  17939. TorrentMan::unadvertisePiece in Destructor.
  17940. * PeerInteractionCommand.cc: make have message sent immediately
  17941. if the size of pending message queue is zero.
  17942. * TorrentMan.cc: set the maximum size of peer list to 250.
  17943. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17944. to deque.
  17945. * Util.cc: fixed rangedFileCopy.
  17946. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17947. to Constructor. Also, moved digest cleanup to Destructor.
  17948. * MetaFileUtil.cc: fixed memory leak
  17949. * replaced std::vector with std::deque.
  17950. * AbstractCommand.cc: casted timeout value to long long int.
  17951. * ChunkedEncoding.cc: fixed memory leak.
  17952. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17953. * SleepCommand.cc: casted timeout value to long long int.
  17954. * Data.cc: fixed memory leak.
  17955. * Data.cc: fixed toLLInt().
  17956. * BitfieldMan.cc: fixed memory leak.
  17957. * TorrentMan.cc: initialized storeDir to ".".
  17958. * TorrentMan.cc: fixed memory leak.
  17959. * TorrentMan.cc: corrected file paths of splitted files.
  17960. * PeerAbstractCommand.cc: casted timeout to long long int.
  17961. * main.cc: added delete(req) and delete(te->diskWriter).
  17962. * RequestSlot.cc: casted timeout value to long long int.
  17963. * Request.cc: fixed memory leak.
  17964. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17965. have the piece.
  17966. * Peer.{h,cc}: added hasPiece(int index).
  17967. * main.cc: corrected addCommand.
  17968. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17969. * BitTorrent protocol support added.
  17970. * Release 0.3.0
  17971. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17972. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17973. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17974. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17975. decoding did not work properly.
  17976. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17977. * DownloadEngine.h: included sys/time.h
  17978. * DownloadEngine.cc: remove sys/time.h
  17979. * Makefile.am (SUBDIRS): Add intl.
  17980. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17981. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17982. * main.cc: correct help message for --http-auth-scheme.
  17983. * main.cc: changed e-mail address for bug reports.
  17984. * ja.po: added japanese translation.
  17985. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17986. * SimpleLogger.cc: flush log file instead of stdout.
  17987. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17988. * main.cc: Fixed command-line option: max-tries
  17989. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17990. does not equal to seg.sp.
  17991. * DownloadCommand.cc: If EOF is got from the server and the total size
  17992. of file is not zero, then throw DlRetryEx.
  17993. * main.cc: Set the minium value of min-segment-size to 1024.
  17994. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17995. fails because of a regression since 0.2.0 release.
  17996. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17997. * HttpConnection.cc:
  17998. * common.h: defined the user agent name as macro
  17999. * DownloadEngine.{h, cc}:
  18000. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18001. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18002. * main.cc: Download complete/abort message is now generated by main.
  18003. * Makefile.am (SUBDIRS): Add m4.
  18004. (ACLOCAL_AMFLAGS): New variable.
  18005. (EXTRA_DIST): New variable.
  18006. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18007. * gettext: added gettext functionality
  18008. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18009. * AbstractCommand.cc:
  18010. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18011. unregister its cuid from SegmentMan.
  18012. * DownloadEngine.cc: .aria2 file was written when a downloading
  18013. failed with errors.
  18014. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18015. Added "User-Agent" header to CONNECT proxy request.
  18016. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18017. properly.
  18018. * Logger.h:
  18019. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18020. * ChunkedEncoding.cc: Added #include directive for strings.h
  18021. * Release 0.2.1
  18022. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18023. * Util.{h,cc}: added startsWith().
  18024. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18025. Util::endsWith().
  18026. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18027. * common.h: added #include directive of limit.h.
  18028. * DownloadEngine.cc: added #include directive of sys/time.h and
  18029. algorithm.
  18030. * Exception.h: added #include directive of stdio.h.
  18031. * AbstractCommand.h: added #include directive of sys/time.h.
  18032. * DownloadCommand.h: added #include directive of sys/time.h.
  18033. * *.h: added #include directive of common.h to all base classes.
  18034. subclasses' one was removed.
  18035. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18036. does not define these macros.
  18037. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18038. * Release 0.2.0
  18039. * main.cc:
  18040. * HttpInitiateConnectionCommand.{h,cc}:
  18041. * prefs.h:
  18042. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18043. We can now use GET command in http proxy.
  18044. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18045. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18046. that splits slowest segment of SegmentMan::commands vector.
  18047. This is the default split algorithm of aria2.
  18048. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18049. that splits first segment of SegmentMan::commands vector.
  18050. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18051. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18052. * Segment.h:
  18053. * SegmentMan.cc: Added speed field to Segment.h
  18054. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18055. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18056. * message.h: Change file size related %d to %lld.
  18057. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18058. * FtpInitiateConnectionCommand.{h,cc}:
  18059. * FtpNegotiationCommand.{h,cc}:
  18060. * FtpDownloadCommand.{h,cc}:
  18061. * FtpConnection.{h,cc}: Added FTP support
  18062. * SimpleLogger.cc: Log message now includes time information.
  18063. * main.cc: The value of --http-auth-scheme option is chagned from
  18064. 'BASIC' to 'basic'
  18065. * main.cc: Added --timeout command-line option.
  18066. * main.cc: Added --min-segment-size command-line option.
  18067. * main.cc: Added --max-retries command-line option.
  18068. * prefs.h: option string constants are now defined in prefs.h
  18069. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18070. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18071. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18072. with version 0.1.0's one.
  18073. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18074. * configure.in: Added --enable-ssl option to configure script.
  18075. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18076. cannot permit absoluteURI as Request-URI.
  18077. * HttpConnection.cc: Added Referer support.
  18078. * main.cc: Added referer command-line option.
  18079. * main.cc: Added rety-wait command-line option.
  18080. * Exception.h: Fixed formating bug in Exception::setMsg()
  18081. * SocketCore.{h,cc}:
  18082. * Socket.{h, cc}:
  18083. * Request.cc:
  18084. * InitiateConnectionCommandFactory.cc:
  18085. * HttpRequestCommand.cc: Added HTTPS support.
  18086. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18087. for SocketCore.
  18088. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18089. size is wrong
  18090. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18091. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18092. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18093. * Release 0.1.0