ChangeLog 750 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335
  1. 2010-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Release 1.9.4
  3. 2010-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4. Updated Italian translation. Added Korean translation.
  5. Thanks to all translators.
  6. * LINGUAS
  7. * it.po
  8. * ko.po
  9. 2010-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Updated po templates.
  11. * po/aria2.pot
  12. 2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Fixed the bug that reading Metalink from pipe fails on older
  14. libxml2. It only accepts "-" as a special keyword to read stdin.
  15. * src/XML2SAXMetalinkProcessor.cc
  16. 2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Added log message when cookies are loaded. Added filename to log
  18. message when serializing session.
  19. * src/MultiUrlRequestInfo.cc
  20. 2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Treat SIGHUP and SIGTERM signal as emergency shutdown because they
  22. are usually issued by system or other process.
  23. * src/MultiUrlRequestInfo.cc
  24. 2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Use downloadresultcode::IN_PROGRESS for
  26. RequestGroup::SHUTDOWN_SIGNAL.
  27. * src/RequestGroup.cc
  28. 2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Call requestForceHalt() instead of _requestGroupMan->forceHalt().
  30. * src/DownloadEngine.cc
  31. 2010-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Mentioned RFC 5854 in README and man page.
  33. * README
  34. * doc/aria2c.1.txt
  35. 2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Bump up version number to 1.9.4
  37. * configure.ac
  38. * doc/aria2c.1.txt
  39. 2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Don't throw exception when Metalink document is empty(no file
  41. element). It is a valid Metalink document anyway.
  42. * src/MetalinkHelper.cc
  43. * src/download_helper.cc
  44. 2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Fixed double memory free when Exception raised from
  46. AbstractCommand::prepareForNextAction() called by
  47. HttpResponseCommand::handleDefaultEncoding().
  48. * src/AbstractCommand.cc
  49. * src/HttpResponseCommand.cc
  50. 2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Added _logger->info() guard
  52. * src/IteratableChunkChecksumValidator.cc
  53. 2010-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Fixed the bug that feeding Metalink XML via pipe (-M- option) does
  55. not work when aria2 is built with expat. Fixed the bug that when
  56. Metalink XML is fed via pipe and --save-session is used, entry
  57. "/dev/stdin" is saved in session file.
  58. * src/ExpatMetalinkProcessor.cc
  59. * src/ExpatMetalinkProcessor.h
  60. * src/Metalink2RequestGroup.cc
  61. 2010-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Updated doc
  63. * src/aria2c.1.txt
  64. 2010-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Added totalLength, completedLength, uploadLength, bitfield,
  66. downloadSpeed, uploadSpeed, infoHash, numSeeders, pieceLength,
  67. numPieces, connections and dir to the response of
  68. aria2.tellStopped XML-RPC method. aria2.tellWaiting now always
  69. returns numSeeders for BitTorrent download.
  70. * src/DownloadResult.h
  71. * src/RequestGroup.cc
  72. * src/RequestGroup.h
  73. * src/XmlRpcMethodImpl.cc
  74. * test/XmlRpcMethodTest.cc
  75. 2010-05-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Fixed the bug that connection pooling does not take into account
  77. proxy. This means that when connection A via proxy X is pooled,
  78. it will be wrongly reused in the download using proxy Y.
  79. * src/DownloadEngine.cc
  80. * src/DownloadEngine.h
  81. * src/FtpFinishDownloadCommand.cc
  82. * src/FtpInitiateConnectionCommand.cc
  83. * src/FtpNegotiationCommand.cc
  84. * src/HttpDownloadCommand.cc
  85. * src/HttpInitiateConnectionCommand.cc
  86. * src/HttpResponseCommand.cc
  87. * src/HttpSkipResponseCommand.cc
  88. 2010-05-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Fixed the bug that FTP download may fail when control connection
  90. is reused. This happens because FTP server can offer different
  91. root directory for different account. If pooled connections has
  92. different root directory, then download will fail.
  93. * src/DownloadEngine.cc
  94. * src/DownloadEngine.h
  95. * src/FtpConnection.cc
  96. * src/FtpConnection.h
  97. * src/FtpFinishDownloadCommand.cc
  98. * src/FtpInitiateConnectionCommand.cc
  99. * src/FtpNegotiationCommand.cc
  100. 2010-05-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Removed DownloadResult's ctor because it has many args.
  102. * src/DownloadResult.h
  103. * src/RequestGroup.cc
  104. * test/XmlRpcMethodTest.cc
  105. 2010-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Code cleanup.
  107. * src/RequestGroupMan.cc
  108. * src/UTMetadataPostDownloadHandler.cc
  109. * src/XmlRpcMethodImpl.cc
  110. 2010-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Store both whole checksum and piece hash in metalink file.
  112. Dispatch whole checksum verification only when piece hash is not
  113. set.
  114. * src/DownloadCommand.cc
  115. * src/Metalink2RequestGroup.cc
  116. * test/Metalink2RequestGroupTest.cc
  117. 2010-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Left only IANA hash function textual name in messageDigest.cc.
  119. Assign only IANA hash function textual name to Checksum and
  120. ChunkChecksum. Fixed the value of MessageDigestContext::MD5.
  121. * src/Checksum.h
  122. * src/MetalinkParserController.cc
  123. * src/messageDigest.cc
  124. * src/messageDigest.h
  125. * test/IteratableChecksumValidatorTest.cc
  126. * test/IteratableChunkChecksumValidatorTest.cc
  127. * test/MessageDigestHelperTest.cc
  128. * test/Metalink2RequestGroupTest.cc
  129. * test/MetalinkProcessorTest.cc
  130. 2010-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Fixed typo in log message
  132. * src/AbstractCommand.cc
  133. 2010-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Release 1.9.3
  135. 2010-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Return const reference.
  137. * src/DefaultPieceStorage.h
  138. * src/DownloadContext.h
  139. * src/FeatureConfig.cc
  140. * src/FeatureConfig.h
  141. * src/OptionParser.cc
  142. * src/OptionParser.h
  143. * src/SimpleRandomizer.cc
  144. * src/SimpleRandomizer.h
  145. 2010-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Bump up version number to 1.9.3.
  147. * configure.ac
  148. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. Return const reference.
  150. * src/LpdMessageReceiver.h
  151. * src/LpdReceiveMessageCommand.h
  152. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Removed useless pathJoin
  154. * src/MetalinkParserController.cc
  155. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Fixed the bug that name attribute of file element in Metalink file
  157. is not properly sanitized.
  158. * src/Metalink2RequestGroup.cc
  159. * src/MetalinkParserController.cc
  160. * test/Makefile.am
  161. * test/Metalink2RequestGroupTest.cc
  162. * test/metalink4-dosdirtraversal.xml
  163. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Fixed the bug that if filename in Content-Disposition header
  165. includes ';', aria2 cuts filename after ';'.
  166. * src/util.cc
  167. * test/UtilTest.cc
  168. 2010-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Release 1.9.2
  170. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  171. Fixed compiler warning on opensolaris.
  172. * src/StringFormat.h
  173. * src/XORCloser.h
  174. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Updated doc
  176. * test/array_funTest.cc
  177. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Fixed segmentation fault when running unit tests on opensolaris.
  179. * src/SocketCore.cc
  180. * src/bittorrent_helper.cc
  181. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  182. Updated Russian translation. Thanks to all translators.
  183. * po/ru.po
  184. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Updated po templates.
  186. * po/aria2.pot
  187. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Print warning when trying to add file descriptor >= FD_SET or < 0
  189. to fd_set for other than MinGW32 build. For MinGW32 build, print
  190. warning when trying to add file descriptor to fd_set when it
  191. already contains FD_SET file descriptors.
  192. * src/SelectEventPoll.cc
  193. * src/SocketCore.cc
  194. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Updated doc for --event-poll option.
  196. * doc/aria2c.1.txt
  197. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Bump up version number to 1.9.2
  199. * configure.ac
  200. * doc/aria2c.1.txt
  201. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Defined FD_SETSIZE 1024 for MinGW32.
  203. * src/a2netcompat.h
  204. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Fixed compile error on the system which lacks poll()
  206. * src/DownloadEngineFactory.cc
  207. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. In SocketCore::isReadable()/isWritable(), use poll() if it is
  209. available otherwise use select(). Removed epoll/port from there
  210. because poll() does the good enough job for single socket event
  211. notification.
  212. * src/SocketCore.cc
  213. * src/SocketCore.h
  214. * src/main.cc
  215. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Added kqueue support. We use poll() for
  217. SocketCore::isReadable()/isWritable() when kqueue is used.
  218. * configure.ac
  219. * src/DownloadEngineFactory.cc
  220. * src/KqueueEventPoll.cc
  221. * src/KqueueEventPoll.h
  222. * src/Makefile.am
  223. * src/Makefile.in
  224. * src/OptionHandlerFactory.cc
  225. * src/main.cc
  226. * src/prefs.cc
  227. * src/prefs.h
  228. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Added missing timespec.h to SRCS
  230. * src/Makefile.am
  231. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Fixed the bug that aria2.unpause fails with -s1.
  233. * src/FileEntry.cc
  234. * src/XmlRpcMethodImpl.cc
  235. 2010-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  236. Added missing #ifdef HAVE_PORT_ASSOCIATE
  237. * src/DownloadEngineFactory.cc
  238. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Added opensolaris port_associate() support.
  240. * src/DownloadEngineFactory.cc
  241. * src/Makefile.am
  242. * src/OptionHandlerFactory.cc
  243. * src/PortEventPoll.cc
  244. * src/PortEventPoll.h
  245. * src/SocketCore.cc
  246. * src/SocketCore.h
  247. * src/configure.ac
  248. * src/main.cc
  249. * src/prefs.cc
  250. * src/prefs.h
  251. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  252. Fixed the bug that _e is passed where e should be passed.
  253. * src/HttpListenCommand.cc
  254. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Increased _epEvents size if necessary.
  256. * src/EpollEventPoll.cc
  257. * src/EpollEventPoll.h
  258. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Removed EventRType template parameter
  260. * src/EpollEventPoll.cc
  261. * src/EpollEventPoll.h
  262. * src/Event.h
  263. * src/PollEventPoll.cc
  264. * src/PollEventPoll.h
  265. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Use Event in EpollEventPoll
  267. * src/EpollEventPoll.cc
  268. * src/EpollEventPoll.h
  269. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  270. Externalized Event, CommandEvent, ADNSEvent, SocketEntry and
  271. AsyncNameResolverEntry class.
  272. * src/Event.h
  273. * src/Makefile.am
  274. * src/PollEventPoll.cc
  275. * src/PollEventPoll.h
  276. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  277. Supported poll() for socket event notification. --event-poll can
  278. take value "poll". Fixed the bug that timeout for
  279. SocketCore::isReadable()/isWritable() is ignored when epoll is
  280. used.
  281. * src/OptionHandlerFactory.cc
  282. * src/a2io.h
  283. * src/prefs.h
  284. * src/SocketCore.h
  285. * src/Makefile.am
  286. * src/main.cc
  287. * src/PollEventPoll.h
  288. * src/SocketCore.cc
  289. * src/DownloadEngineFactory.cc
  290. * src/PollEventPoll.cc
  291. * src/prefs.cc
  292. * configure.ac
  293. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Reverted previous change to DownloadCommand.cc with additional
  295. commentary.
  296. * src/DownloadCommand.cc
  297. 2010-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Fixed compile error with openssl 1.1.0 and mingw32.
  299. * src/AsyncNameResolver.cc
  300. * src/LogFactory.cc
  301. * src/Logger.cc
  302. * src/Logger.h
  303. * src/SocketCore.cc
  304. * src/SocketCore.h
  305. * src/a2netcompat.h
  306. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  307. Release 1.9.1
  308. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Bump up version number to 1.9.0
  310. * doc/aria2c.1.txt
  311. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. Updated Ukrainian, Russian, Simplified Chinese, German and Greek
  313. translation. Thanks to all translators.
  314. * po/de.po
  315. * po/el.po
  316. * po/ru.po
  317. * po/uk.po
  318. * po/zh_CN.po
  319. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  320. Added AC_SEARCH_LIBS for inet_aton on opensolaris. opensolaris
  321. needs -lnsl for inet_aton.
  322. * configure.ac
  323. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  324. Updated po templates.
  325. * po/aria2.pot
  326. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  327. Added aria2.pause, aria2.forcePause, aria2.pauseAll,
  328. aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC
  329. method to aria2rpc
  330. * doc/xmlrpc/aria2rpc
  331. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Use elapsed time between two mach_absolute_time() calls.
  333. Fixed compile error in Mac OS X.
  334. * src/clock_gettime_osx.cc
  335. * src/timespec.h
  336. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Implemented clock_gettime() using mach_absolute_time in Mac OS X.
  338. * configure.ac
  339. * src/Makefile.am
  340. * src/a2time.h
  341. * src/clock_gettime_osx.cc
  342. * src/clock_gettime_osx.h
  343. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  344. Implemented clock_gettime() using timeGetTime in mingw.
  345. * configure.ac
  346. * src/Makefile.am
  347. * src/a2time.h
  348. * src/clock_gettime_mingw.cc
  349. * src/clock_gettime_mingw.h
  350. * src/timespec.h
  351. * test/Makefile.am
  352. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Ensure that std::ofstream is destroyed before renaming.
  354. * src/SessionSerializer.cc
  355. * src/util.cc
  356. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Fixed the bug that user specified path is escaped using
  358. util::escapePath() where it should not.
  359. * src/DownloadContext.cc
  360. * src/DownloadContext.h
  361. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Hold reference to PieceStorage when paused in order to provide
  363. progress information via XML-RPC.
  364. * src/RequestGroup.cc
  365. * src/RequestGroup.h
  366. * src/RequestGroupMan.cc
  367. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Defined struct timespec if it is not available.
  369. * src/a2time.h
  370. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Added missing serialize_session.meta4 to EXTRA_DIST
  372. * test/Makefile.am
  373. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Fixed compile error without BitTorrent support.
  375. * src/Metalink2RequestGroup.cc
  376. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Fixed compile error on Mac OS X
  378. * src/TimerA2.h
  379. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Added warning for the system which lacks clock_gettime with
  381. CLOCK_MONOTONIC.
  382. * src/MultiUrlRequestInfo.cc
  383. * src/TimerA2.cc
  384. * src/TimerA2.h
  385. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  386. Removed redundant method call for DownloadEngine.
  387. * src/DownloadCommand.cc
  388. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  389. Fixed the bug that hash check hangs when aria2.pause is issued
  390. while aria2 is checking piece hashes. Fixed the bug that the
  391. download is paused after file allocation completion even if
  392. aria2.pause is issued during file allocation.
  393. * src/CheckIntegrityCommand.cc
  394. * src/FileAllocationCommand.cc
  395. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Added nsl to search-libs for getaddrinfo on opensolaris
  397. * configure.ac
  398. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Fixed compile error on opensolaris
  400. * configure.ac
  401. * src/Logger.h
  402. * src/GZipEncoder.h
  403. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Added aria2.pauseAll, aria2.forcePauseAll and aria2.unpauseAll
  405. XML-RPC method.
  406. * doc/aria2c.1.txt
  407. * src/XmlRpcMethodFactory.cc
  408. * src/XmlRpcMethodImpl.cc
  409. * src/XmlRpcMethodImpl.h
  410. * test/XmlRpcMethodTest.cc
  411. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Added aria2.forcePause XML-RPC command.
  413. * src/XmlRpcMethodFactory.cc
  414. * src/XmlRpcMethodImpl.cc
  415. * src/XmlRpcMethodImpl.h
  416. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  417. Use global::wallclock
  418. * src/DHTBucket.cc
  419. * src/DHTMessageTrackerEntry.cc
  420. * src/DHTMessageTrackerEntry.h
  421. * src/DefaultBtInteractive.cc
  422. * src/Peer.cc
  423. * src/PeerAbstractCommand.cc
  424. * src/PeerStat.h
  425. * src/RequestSlot.h
  426. * src/TimeBasedCommand.cc
  427. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  428. Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
  429. usable to prevent from aria2 from being affected by system time
  430. change.
  431. 2010-04-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Added aria2.pause and aria2.unpause XML-RPC method. aria2.pause
  433. pauses the download denoted by gid. gid is of type string. The
  434. status of paused download becomes "paused" and the download is
  435. placed on the first position of waiting queue. As long as the
  436. status is "paused", the download is not started. To change status
  437. to "waiting", use aria2.unpause method. This method returns GID of
  438. paused download. aria2.unpause changes the status of the download
  439. denoted by gid from "paused" to "waiting". This makes the download
  440. eligible to restart. gid is of type string. This method returns
  441. GID of unpaused download.
  442. * doc/aria2c.1.txt
  443. * src/DownloadContext.cc
  444. * src/FileEntry.cc
  445. * src/OptionHandlerFactory.cc
  446. * src/RequestGroup.cc
  447. * src/RequestGroup.h
  448. * src/RequestGroupMan.cc
  449. * src/XmlRpcMethodFactory.cc
  450. * src/XmlRpcMethodImpl.cc
  451. * src/XmlRpcMethodImpl.h
  452. * src/prefs.cc
  453. * src/prefs.h
  454. * src/usage_text.h
  455. 2010-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Added --save-session=FILE option. This option saves
  457. error/unfinished downloads to FILE on exit. You can pass this
  458. output file to aria2c with -i option on restart. Please note that
  459. downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
  460. method are not saved.
  461. * src/BtPostDownloadHandler.cc
  462. * src/DownloadResult.h
  463. * src/Makefile.am
  464. * src/MetadataInfo.cc
  465. * src/MetadataInfo.h
  466. * src/Metalink2RequestGroup.cc
  467. * src/MetalinkPostDownloadHandler.cc
  468. * src/MultiUrlRequestInfo.cc
  469. * src/OptionHandlerFactory.cc
  470. * src/RequestGroup.cc
  471. * src/RequestGroup.h
  472. * src/SessionSerializer.cc
  473. * src/SessionSerializer.h
  474. * src/UTMetadataPostDownloadHandler.cc
  475. * src/download_helper.cc
  476. * src/download_helper.h
  477. * src/prefs.cc
  478. * src/prefs.h
  479. * src/usage_text.h
  480. * test/Makefile.am
  481. * test/SessionSerializerTest.cc
  482. * test/XmlRpcMethodTest.cc
  483. * test/serialize_session.meta4
  484. 2010-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  485. Fixed the bug that FTP data connection is not established via
  486. proxy when --ftp-proxy is defined and --ftp-pasv=true and
  487. --proxy-method=tunnel.
  488. * src/AbstractCommand.cc
  489. * src/AbstractCommand.h
  490. * src/FtpNegotiationCommand.cc
  491. * src/FtpNegotiationCommand.h
  492. * src/InitiateConnectionCommand.cc
  493. 2010-04-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  494. Updated po templates.
  495. * po/aria2.pot
  496. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  497. Bump up version number to 1.9.1
  498. * configure.ac
  499. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Added shutdown and forceShutdown to aria2rpc
  501. * doc/xmlrpc/aria2rpc
  502. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Changed error message.
  504. * src/XmlRpcMethod.cc
  505. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Added bt-tracker-timeout, bt-tracker-connect-timeout,
  507. always-resume, max-resume-failure-tries and http-accept-gzip to -i
  508. list options.
  509. * doc/aria2c.1.txt
  510. * doc/xmlrpc/aria2rpc
  511. * src/download_helper.cc
  512. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Fixed the bug that web-seed URI is not percent-encoded.
  514. * src/a2functional.h
  515. * src/bittorrent_helper.cc
  516. * test/BittorrentHelperTest.cc
  517. * test/url-list-multiFile.torrent
  518. * test/url-list-singleFileEndsWithSlash.torrent
  519. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  521. These methods, as their name implies, shutdown aria2. These
  522. methods are useful for Windows because it lacks signal mechanism.
  523. * doc/aria2c.1.txt
  524. * src/TimedHaltCommand.cc
  525. * src/XmlRpcMethodFactory.cc
  526. * src/XmlRpcMethodImpl.cc
  527. * src/XmlRpcMethodImpl.h
  528. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Added forceHalt argument to TimedHaltCommand.
  530. Added requestForceHalt() to DownloadEngine.
  531. * src/DownloadEngine.cc
  532. * src/DownloadEngine.h
  533. * src/TimedHaltCommand.cc
  534. * src/TimedHaltCommand.h
  535. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Possible fix for chunked encoding with Content-Length.
  537. * src/HttpResponseCommand.cc
  538. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Don't send "Accept: default, gzip" by default. This is because
  540. some server responds with "Content-Encoding: gzip" for files which
  541. itself is gzipped file and aria2 inflates them. This is a problem
  542. if user don't want to inflate the file. Apparently this is server
  543. configuration error, but I cannot do anything about this. So turn
  544. this off. Added --http-accept-gzip option. If true is given to
  545. this option, aria2 sends 'Accept: deflate, gzip' request header
  546. and inflates response if remote server responds with
  547. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  548. indicates we removed extension tgz hack in order not to inflate
  549. files with tgz extensions.
  550. * doc/aria2c.1.txt
  551. * src/HttpRequest.cc
  552. * src/HttpRequest.h
  553. * src/HttpRequestCommand.cc
  554. * src/HttpResponseCommand.cc
  555. * src/OptionHandlerFactory.cc
  556. * src/prefs.cc
  557. * src/prefs.h
  558. * src/usage_text.h
  559. * test/HttpRequestTest.cc
  560. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  561. Made aria2 not send
  562. "application/metalink4+xml,application/metalink+xml" in Accept
  563. header for web-seeding URIs and tracker request.
  564. * src/Metalink2RequestGroup.cc
  565. * src/TrackerWatcherCommand.cc
  566. * src/download_helper.cc
  567. * src/util.cc
  568. * src/util.h
  569. 2010-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Added download_helper.{cc,h} to SRCS
  571. * src/Makefile.am
  572. * test/Makefile.am
  573. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. Added --dht-message-timeout option.
  575. * doc/aria2c.1.txt
  576. * src/DHTConstants.h
  577. * src/DHTMessageDispatcherImpl.cc
  578. * src/DHTMessageDispatcherImpl.h
  579. * src/DHTMessageTracker.cc
  580. * src/DHTMessageTracker.h
  581. * src/DHTReplaceNodeTask.h
  582. * src/DHTSetup.cc
  583. * src/DHTTaskFactoryImpl.cc
  584. * src/DHTTaskFactoryImpl.h
  585. * src/OptionHandlerFactory.cc
  586. * src/prefs.cc
  587. * src/prefs.h
  588. * src/usage_text.h
  589. * test/DHTMessageTrackerTest.cc
  590. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  592. option.
  593. * doc/aria2c.1.txt
  594. * src/OptionHandlerFactory.cc
  595. * src/TrackerWatcherCommand.cc
  596. * src/prefs.cc
  597. * src/prefs.h
  598. * src/usage_text.h
  599. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  600. Documented that specifying --seed-time=0 disables seeding after
  601. download completed.
  602. * doc/aria2c.1.txt
  603. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Code cleanup
  605. * src/BtSetup.cc
  606. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Drop connection if same Peer ID has been already seen.
  608. * src/DefaultBtInteractive.cc
  609. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Fixed the bug that waiting download unintentionally starts when
  611. URIs are added to it using aria2.changeUri XML-RPC method. This
  612. also fixes the bug that causes segmentation fault when adding URIs
  613. to waiting download, which is a regression introduced by the
  614. previous change made to src/XmlRpcMethodImpl.cc
  615. * src/XmlRpcMethodImpl.cc
  616. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Fixed compile error with g++-4.4 on FreeBSD.
  618. * src/util.h
  619. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  621. is not used immediately if there is no URIs remaining before
  622. calling aria2.changeUri and the number of connection is less than
  623. the value in -s(or -C for Metalink downloads).
  624. * src/XmlRpcMethodImpl.cc
  625. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Documented --always-resume and --max-resume-failure-tries option
  627. and exit status 8 in man page. Fixed typo.
  628. * doc/aria2c.1.txt
  629. * src/OptionHandlerFactory.cc
  630. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Added --always-resume and --max-resume-failure-tries option. If
  632. --always-resume=false is given, when all given URIs does not
  633. support resume or aria2 encounters N URIs which does not support
  634. resume
  635. (N is the value specified using --max-resume-failure-tries
  636. option), aria2 download file from scratch. The default behavior
  637. is --always-resume=true, which means if all URIs do not support
  638. resume, download fails. I think this is OK because user normally
  639. don't like to see that partially downloaded file is
  640. overwritten(this is particularly true if file size is big). This
  641. option is useful when aria2 is used as download backend and
  642. graceful falling back to overwritten behavior is preferable.
  643. Added exit status value 8, which means download failed because
  644. server did not support resume.
  645. * src/AbstractCommand.cc
  646. * src/DefaultPieceStorage.cc
  647. * src/DownloadCommand.cc
  648. * src/DownloadResultCode.h
  649. * src/FileEntry.h
  650. * src/FtpNegotiationCommand.cc
  651. * src/HttpResponse.cc
  652. * src/HttpResponseCommand.cc
  653. * src/OptionHandlerFactory.cc
  654. * src/RequestGroup.cc
  655. * src/RequestGroup.h
  656. * src/SegmentMan.cc
  657. * src/SegmentMan.h
  658. * src/prefs.cc
  659. * src/prefs.h
  660. * src/usage_text.h
  661. * test/DefaultPieceStorageTest.cc
  662. * test/SegmentManTest.cc
  663. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  664. Added --remove-control-file option to -i list options.
  665. * doc/aria2c.1.txt
  666. * doc/xmlrpc/aria2rpc
  667. * src/download_helper.cc
  668. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. Added --remove-control-file option. This option removes control
  670. file(*.aria2 file) before download. Using with
  671. --allow-overwrite=true, download always starts from scratch. This
  672. will be useful for users behind proxy server which disables
  673. resume. For such proxy user, -C1 is also recommended for Metalink
  674. downloads to avoid establishing unnecessary connections.
  675. * doc/aria2c.1.txt
  676. * src/OptionHandlerFactory.cc
  677. * src/RequestGroup.cc
  678. * src/prefs.cc
  679. * src/prefs.h
  680. * src/usage_text.h
  681. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  683. size of array at compile time.
  684. * src/array_fun.h
  685. * test/BitfieldManTest.cc
  686. * test/BtPortMessageTest.cc
  687. * test/DHTRoutingTableDeserializerTest.cc
  688. * test/DHTRoutingTableSerializerTest.cc
  689. * test/DownloadHelperTest.cc
  690. * test/LongestSequencePieceSelectorTest.cc
  691. * test/MultiDiskAdaptorTest.cc
  692. * test/OptionParserTest.cc
  693. * test/PriorityPieceSelectorTest.cc
  694. * test/array_funTest.cc
  695. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Added vbegin() and vend() for fixed sized array.
  697. * src/DownloadHandlerConstants.cc
  698. * src/FeatureConfig.cc
  699. * src/OptionHandlerFactory.cc
  700. * src/ServerStat.cc
  701. * src/TimeA2.cc
  702. * src/XmlRpcMethod.cc
  703. * src/array_fun.h
  704. * src/download_helper.cc
  705. * src/messageDigest.cc
  706. * src/util.cc
  707. * test/BittorrentHelperTest.cc
  708. * test/DHTRoutingTableDeserializerTest.cc
  709. * test/DHTRoutingTableSerializerTest.cc
  710. * test/DefaultBtAnnounceTest.cc
  711. * test/DefaultBtProgressInfoFileTest.cc
  712. * test/DownloadContextTest.cc
  713. * test/DownloadHelperTest.cc
  714. * test/FeatureConfigTest.cc
  715. * test/FeedbackURISelectorTest.cc
  716. * test/HttpRequestTest.cc
  717. * test/InOrderURISelectorTest.cc
  718. * test/MSEHandshakeTest.cc
  719. * test/MultiDiskAdaptorTest.cc
  720. * test/MultiFileAllocationIteratorTest.cc
  721. * test/PriorityPieceSelectorTest.cc
  722. * test/RequestGroupManTest.cc
  723. * test/UtilTest.cc
  724. * test/XmlRpcMethodTest.cc
  725. * test/a2algoTest.cc
  726. * test/array_funTest.cc
  727. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Simplified code using lastByteMask
  729. * src/BitfieldMan.cc
  730. * src/PieceStatMan.cc
  731. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Rewritten lastByteMask
  733. * src/bitfield.h
  734. 2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Redefined the maximum length of buffer used for HTTP header.
  736. * src/HttpHeaderProcessor.cc
  737. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  738. Code cleanup
  739. * src/SleepCommand.cc
  740. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Do exact match if IP address is specified in --no-proxy.
  742. * src/AbstractCommand.cc
  743. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Fixed the bug that socket is added to EventPoll object twice. This
  745. is because derived class FtpFinishDownloadCommand adds socket to
  746. EventPoll object while base class AbstractCommand does that
  747. already.
  748. * src/FtpFinishDownloadCommand.cc
  749. * src/FtpFinishDownloadCommand.h
  750. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Defined gid_t as int64_t.
  752. * src/BtDependency.cc
  753. * src/BtStopDownloadCommand.cc
  754. * src/FtpNegotiationCommand.cc
  755. * src/HttpResponseCommand.cc
  756. * src/RequestGroup.cc
  757. * src/RequestGroup.h
  758. * src/RequestGroupMan.cc
  759. * src/TrackerWatcherCommand.cc
  760. * src/XmlRpcMethodImpl.cc
  761. * src/message.h
  762. * test/XmlRpcMethodTest.cc
  763. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  765. translatable texts because it is used in log and debugging
  766. purpose.
  767. * src/AbstractCommand.cc
  768. * src/ActivePeerConnectionCommand.cc
  769. * src/BtPieceMessage.cc
  770. * src/CUIDCounter.h
  771. * src/CheckIntegrityCommand.cc
  772. * src/CheckIntegrityDispatcherCommand.cc
  773. * src/Command.h
  774. * src/CreateRequestCommand.cc
  775. * src/DHTEntryPointNameResolveCommand.cc
  776. * src/DefaultBtInteractive.cc
  777. * src/DefaultBtMessageDispatcher.cc
  778. * src/DownloadCommand.cc
  779. * src/FileAllocationCommand.cc
  780. * src/FileAllocationDispatcherCommand.cc
  781. * src/FtpConnection.cc
  782. * src/FtpInitiateConnectionCommand.cc
  783. * src/FtpNegotiationCommand.cc
  784. * src/HttpConnection.cc
  785. * src/HttpInitiateConnectionCommand.cc
  786. * src/HttpListenCommand.cc
  787. * src/HttpResponse.cc
  788. * src/HttpServerBodyCommand.cc
  789. * src/HttpServerCommand.cc
  790. * src/HttpServerResponseCommand.cc
  791. * src/InitiateConnectionCommand.cc
  792. * src/InitiatorMSEHandshakeCommand.cc
  793. * src/MSEHandshake.cc
  794. * src/PeerAbstractCommand.cc
  795. * src/PeerConnection.cc
  796. * src/PeerInitiateConnectionCommand.cc
  797. * src/PeerInteractionCommand.cc
  798. * src/PeerListenCommand.cc
  799. * src/PeerReceiveHandshakeCommand.cc
  800. * src/SegmentMan.cc
  801. * src/SimpleBtMessage.cc
  802. * src/TrackerWatcherCommand.cc
  803. * src/message.h
  804. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Use gid_t type for gid.
  806. * src/BtRegistry.cc
  807. * src/BtRegistry.h
  808. * src/DownloadResult.h
  809. * src/RequestGroup.cc
  810. * src/RequestGroup.h
  811. * src/RequestGroupMan.cc
  812. * src/RequestGroupMan.h
  813. * src/XmlRpcMethodImpl.cc
  814. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Use cuid_t type for cuid.
  816. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Added v key in DHT message. aria2's DHT version is independent of
  818. the package version and we defined it as 1 at the moment. It is
  819. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  820. scheme is "A2"+2bytes DHT version number in network byte order.
  821. * src/DHTAbstractMessage.cc
  822. * src/DHTConstants.h
  823. * src/DHTMessage.cc
  824. * src/DHTMessage.h
  825. * src/DHTMessageFactoryImpl.cc
  826. * src/DHTQueryMessage.cc
  827. * src/DHTResponseMessage.cc
  828. * src/util.h
  829. * test/DHTAnnouncePeerMessageTest.cc
  830. * test/DHTAnnouncePeerReplyMessageTest.cc
  831. * test/DHTFindNodeMessageTest.cc
  832. * test/DHTFindNodeReplyMessageTest.cc
  833. * test/DHTGetPeersMessageTest.cc
  834. * test/DHTGetPeersReplyMessageTest.cc
  835. * test/DHTPingMessageTest.cc
  836. * test/DHTPingReplyMessageTest.cc
  837. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  839. method response is integer, while manual says it is string. When
  840. peer's port is not listening port, set '0' to port in
  841. aria2.getPeers response.
  842. * src/XmlRpcMethodImpl.cc
  843. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Lines starting "#" in -i list are treated as comments.
  845. Example:
  846. # this is comment
  847. http://example.org/file
  848. http://example.org/file2
  849. dir=/tmp
  850. # another comment
  851. out=myfile
  852. * doc/aria2c.1.txt
  853. * src/UriListParser.cc
  854. * test/filelist1.txt
  855. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Accept IPv4 network address with CIDR block in --no-proxy option
  857. and no_proxy environment variable. Current implementation does
  858. not resolve hostname in URI to compare network address. So it is
  859. only effecive if URI has numeric IP addresses.
  860. * doc/aria2c.1.txt
  861. * src/AbstractCommand.cc
  862. * src/OptionHandlerFactory.cc
  863. * src/bitfield.h
  864. * src/usage_text.h
  865. * src/util.cc
  866. * src/util.h
  867. * test/UtilTest.cc
  868. * test/bitfieldTest.cc
  869. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  870. Reduced interval for metadatagetmode to quickly gather metadata.
  871. * src/BtSetup.cc
  872. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. Release 1.9.0
  874. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  875. Updated po templates.
  876. * po/aria2.pot
  877. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  878. Updated doc.
  879. * doc/aria2c.1.txt
  880. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Documented about Metalink4 and LPD in README
  882. * RADME
  883. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Few adjustment for timeouts in DHT. DHT message timeout is changed
  885. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  886. it adds another 5 seconds in each retry.
  887. * src/DHTConstants.h
  888. * src/DHTGetPeersCommand.cc
  889. * src/DHTGetPeersCommand.h
  890. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Changed log level from error to info for DHT message send error.
  892. * src/DHTMessageDispatcherImpl.cc
  893. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  894. Inspect all xt in magnet to find urn:btih.
  895. * src/bittorrent_helper.cc
  896. * test/BittorrentHelperTest.cc
  897. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Use global option for DHTSetup.
  899. * src/DHTSetup.cc
  900. * src/DHTSetup.h
  901. * src/RequestGroup.cc
  902. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  903. Added bt-enable-lpt, reuse-uri
  904. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  905. options.
  906. * doc/aria2c.1.txt
  907. * doc/xmlrpc/aria2rpc
  908. * src/download_helper.cc
  909. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  911. * src/BtSetup.cc
  912. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Resurrected --http-proxy-user and --http-proxy-passwd option.
  914. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  915. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  916. * doc/aria2c.1.txt
  917. * src/OptionHandlerFactory.cc
  918. * src/OptionHandlerImpl.h
  919. * src/prefs.cc
  920. * src/prefs.h
  921. * src/usage_text.h
  922. * test/OptionHandlerTest.cc
  923. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Updated Russian and Simplified Chinese translation. Thanks to all
  925. translators.
  926. * po/ru.po
  927. * po/zh_CN.po
  928. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Updated po templates.
  930. * po/aria2.pot
  931. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. For LPD sockets, bind IN_ADDRANY because binding multicast address
  933. fails under Windows.
  934. * src/LpdMessageReceiver.cc
  935. * test/LpdMessageDispatcherTest.cc
  936. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  937. Fixed the bug that error message is not propagated to Exception.
  938. * src/SocketCore.cc
  939. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Documented --bt-lpd-interface option in man page.
  941. * doc/aria2c.1.txt
  942. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Bump up version number to 1.9.0
  944. * configure.ac
  945. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  946. Fixed the bug that FillRequestGroupCommand is not invoked when
  947. RequestGroupMan::createInitialCommand() creates no Command object.
  948. * src/FillRequestGroupCommand.cc
  949. * src/RequestGroupMan.cc
  950. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. Added debug logs.
  952. * src/FileEntry.cc
  953. * src/SegmentMan.cc
  954. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  955. Fixed unit test error with mingw32 build.
  956. * test/LpdMessageReceiverTest.cc
  957. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Updated automake-1.11.1
  959. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Fixed compile error and unit test error without openssl and
  961. gnutls.
  962. * src/MetalinkParserController.cc
  963. * test/MetalinkProcessorTest.cc
  964. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Fixed unitest fails if openssl doesn't support sha-256.
  966. * src/MetalinkParserStateV4Impl.cc
  967. * test/MetalinkProcessorTest.cc
  968. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  969. Wait until message arrives(again)
  970. * test/LpdMessageReceiverTest.cc
  971. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  972. Added missing wallclock.h to SRCS.
  973. * src/Makefile.am
  974. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. Fixed compile error with --disable-bittorrent
  976. * test/Metalink2RequestGroupTest.cc
  977. * test/MetalinkParserControllerTest.cc
  978. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. Added --reuse-uri option. This option has existed quite long, but
  980. been hidden.
  981. * doc/aria2c.1.txt
  982. * src/OptionHandlerFactory.cc
  983. * src/usage_text.h
  984. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Ignore filename parameter if it contains directory traversal
  986. directives.
  987. * src/util.cc
  988. * test/UtilTest.cc
  989. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  990. urldecode -> percentDecode
  991. * src/FtpConnection.cc
  992. * src/FtpNegotiationCommand.cc
  993. * src/HttpResponse.cc
  994. * src/Request.cc
  995. * src/magnet.cc
  996. * src/util.cc
  997. * src/util.h
  998. * test/UtilTest.cc
  999. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1000. urlencode -> percentEncode,
  1001. torrentUrlencode -> torrentPercentEncode
  1002. * src/BtHandshakeMessage.cc
  1003. * src/BtHandshakeMessageValidator.h
  1004. * src/DHTMessageFactoryImpl.cc
  1005. * src/DefaultBtAnnounce.cc
  1006. * src/HandshakeExtensionMessage.cc
  1007. * src/HttpRequest.cc
  1008. * src/XmlRpcMethodImpl.cc
  1009. * src/bittorrent_helper.cc
  1010. * src/util.cc
  1011. * src/util.h
  1012. * test/DHTAnnouncePeerMessageTest.cc
  1013. * test/DHTGetPeersMessageTest.cc
  1014. * test/DHTGetPeersReplyMessageTest.cc
  1015. * test/UTPexExtensionMessageTest.cc
  1016. * test/UtilTest.cc
  1017. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Fixed the bug that filename is percent encoded where it must be
  1019. percent decoded in sendMdtm().
  1020. * src/FtpConnection.cc
  1021. * test/FtpConnectionTest.cc
  1022. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. url -> uri in Request class.
  1024. * src/AbstractCommand.cc
  1025. * src/AdaptiveURISelector.cc
  1026. * src/DefaultBtAnnounce.cc
  1027. * src/FeedbackURISelector.cc
  1028. * src/FileEntry.cc
  1029. * src/FileEntry.h
  1030. * src/HttpRequest.h
  1031. * src/HttpResponse.cc
  1032. * src/InitiateConnectionCommandFactory.cc
  1033. * src/Metalink2RequestGroup.cc
  1034. * src/OptionHandlerImpl.h
  1035. * src/ProtocolDetector.cc
  1036. * src/Request.cc
  1037. * src/Request.h
  1038. * src/XmlRpcMethodImpl.cc
  1039. * test/AuthConfigFactoryTest.cc
  1040. * test/FtpConnectionTest.cc
  1041. * test/HttpRequestTest.cc
  1042. * test/HttpResponseTest.cc
  1043. * test/RequestTest.cc
  1044. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Added getServers XML-RPC method.
  1046. * doc/aria2c.1.txt
  1047. * src/FileEntry.h
  1048. * src/XmlRpcMethodFactory.cc
  1049. * src/XmlRpcMethodImpl.cc
  1050. * src/XmlRpcMethodImpl.h
  1051. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Pool request when download finished.
  1053. * src/DownloadCommand.cc
  1054. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  1056. 1-based.
  1057. * doc/aria2c.1.txt
  1058. * src/XmlRpcMethodImpl.cc
  1059. * test/XmlRpcMethodTest.cc
  1060. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Call RequestGroupMan::requestQueueCheck() when
  1062. max-concurrent-downloads option is changed or new downloads are
  1063. added/inserted into reserved list.
  1064. * src/RequestGroupMan.cc
  1065. * src/XmlRpcMethodImpl.cc
  1066. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1067. Added aria2.forceRemove XML-RPC method.
  1068. * doc/aria2c.1.txt
  1069. * src/XmlRpcMethodFactory.cc
  1070. * src/XmlRpcMethodImpl.cc
  1071. * src/XmlRpcMethodImpl.h
  1072. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1073. Added debug log.
  1074. * src/AbstractCommand.cc
  1075. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1076. Create CreateRequestCommand to the number of -s/-C when URIs are
  1077. added by XML-RPC.
  1078. * src/RequestGroup.cc
  1079. * src/RequestGroup.h
  1080. * src/XmlRpcMethodImpl.cc
  1081. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Added 'status' key to the response of getUri XML-RPC method.
  1083. * doc/aria2c.1.txt
  1084. * src/XmlRpcMethodImpl.cc
  1085. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Replaced Time::reset() call with assigning of global::wallclock.
  1087. * src/BtLeecherStateChoke.cc
  1088. * src/BtSeederStateChoke.cc
  1089. * src/PeerSessionResource.cc
  1090. * src/RequestSlot.cc
  1091. * src/ServerStat.cc
  1092. * src/SpeedCalc.cc
  1093. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1094. Added changeUri XML-RPC method. This method removes/adds URIs
  1095. dynamically.
  1096. * doc/aria2c.1.txt
  1097. * src/AbstractCommand.cc
  1098. * src/DownloadContext.cc
  1099. * src/DownloadContext.h
  1100. * src/FileEntry.cc
  1101. * src/FileEntry.h
  1102. * src/Request.cc
  1103. * src/Request.h
  1104. * src/RequestGroup.cc
  1105. * src/RequestGroupMan.cc
  1106. * src/XmlRpcMethodFactory.cc
  1107. * src/XmlRpcMethodImpl.cc
  1108. * src/XmlRpcMethodImpl.h
  1109. * test/FileEntryTest.cc
  1110. * test/XmlRpcMethodTest.cc
  1111. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Rewritten copy ctor of RequestSlot to use initialization list.
  1113. * src/RequestSlot.h
  1114. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Added Time global::wallclock to cache "current time" to reduce the
  1116. call gettimeofday(). Global variables are now in namespace global.
  1117. * src/AbstractCommand.cc
  1118. * src/ActivePeerConnectionCommand.cc
  1119. * src/AdaptiveURISelector.cc
  1120. * src/BtLeecherStateChoke.cc
  1121. * src/BtLeecherStateChoke.h
  1122. * src/BtSeederStateChoke.cc
  1123. * src/BtSeederStateChoke.h
  1124. * src/BtStopDownloadCommand.cc
  1125. * src/ConsoleStatCalc.cc
  1126. * src/DHTBucket.cc
  1127. * src/DHTGetPeersCommand.cc
  1128. * src/DHTMessageTrackerEntry.cc
  1129. * src/DHTNode.cc
  1130. * src/DHTPeerAnnounceEntry.cc
  1131. * src/DHTPeerAnnounceStorage.cc
  1132. * src/DHTSetup.cc
  1133. * src/DefaultBtAnnounce.cc
  1134. * src/DefaultBtInteractive.cc
  1135. * src/DefaultBtMessageDispatcher.cc
  1136. * src/DefaultPeerStorage.cc
  1137. * src/DefaultPieceStorage.cc
  1138. * src/DownloadCommand.cc
  1139. * src/DownloadEngine.cc
  1140. * src/FileEntry.cc
  1141. * src/HttpServerBodyCommand.cc
  1142. * src/HttpServerCommand.cc
  1143. * src/HttpServerResponseCommand.cc
  1144. * src/LpdMessageDispatcher.cc
  1145. * src/MultiUrlRequestInfo.cc
  1146. * src/Peer.cc
  1147. * src/Peer.h
  1148. * src/PeerAbstractCommand.cc
  1149. * src/PeerStat.h
  1150. * src/RequestSlot.cc
  1151. * src/RequestSlot.h
  1152. * src/SegmentMan.cc
  1153. * src/ServerStatMan.cc
  1154. * src/SleepCommand.cc
  1155. * src/SpeedCalc.cc
  1156. * src/SpeedCalc.h
  1157. * src/TimeA2.cc
  1158. * src/TimeA2.h
  1159. * src/TimeBasedCommand.cc
  1160. * src/TimeSeedCriteria.h
  1161. * src/UTMetadataRequestTracker.h
  1162. * src/UTPexExtensionMessage.cc
  1163. * src/wallclock.h
  1164. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Fixed the bug that util::itos(INT64_MIN) fails.
  1166. * src/util.cc
  1167. * src/util.h
  1168. * test/UtilTest.cc
  1169. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Fixed memory leak in SocketBuffer when _bufq is not empty when
  1171. SocketBuffer is deleted. Added BufEntry constructor and deleted
  1172. static factory functions.
  1173. * src/SocketBuffer.cc
  1174. * src/SocketBuffer.h
  1175. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  1177. queue maintenance is requested by RequestGroup to avoid to call
  1178. the function unnecessarily.
  1179. * src/FillRequestGroupCommand.cc
  1180. * src/RequestGroup.cc
  1181. * src/RequestGroup.h
  1182. * src/RequestGroupMan.cc
  1183. * src/RequestGroupMan.h
  1184. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Don't use hash for Peer::id. Simple concatenation of ip address
  1186. and port is enough.
  1187. * src/Peer.cc
  1188. * test/PeerTest.cc
  1189. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Enclosed log of DHTMessage::toString() with Logger::info().
  1191. * src/DHTMessageDispatcherImpl.cc
  1192. * src/DHTMessageReceiver.cc
  1193. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Rewritten util::toHex().
  1195. * src/util.cc
  1196. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Removed SocketBuffer::feedAndSend(). Renamed
  1198. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  1199. * src/FtpConnection.cc
  1200. * src/HttpConnection.cc
  1201. * src/HttpServer.cc
  1202. * src/MSEHandshake.cc
  1203. * src/PeerConnection.cc
  1204. * src/SocketBuffer.cc
  1205. * src/SocketBuffer.h
  1206. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Removed unused PeerConnection::sendMessage(). Updated doc.
  1208. * src/PeerConnection.cc
  1209. * src/PeerConnection.h
  1210. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1211. Reduced copying/std::string instantiation in sending/receiving
  1212. BitTorrent messages.
  1213. * src/BtBitfieldMessage.cc
  1214. * src/BtBitfieldMessage.h
  1215. * src/BtExtendedMessage.cc
  1216. * src/BtExtendedMessage.h
  1217. * src/BtHandshakeMessage.cc
  1218. * src/BtHandshakeMessage.h
  1219. * src/BtKeepAliveMessage.cc
  1220. * src/BtKeepAliveMessage.h
  1221. * src/BtPieceMessage.cc
  1222. * src/BtPieceMessage.h
  1223. * src/BtPortMessage.cc
  1224. * src/BtPortMessage.h
  1225. * src/BtUnchokeMessage.h
  1226. * src/DefaultBtMessageReceiver.cc
  1227. * src/IndexBtMessage.cc
  1228. * src/IndexBtMessage.h
  1229. * src/PeerConnection.cc
  1230. * src/PeerConnection.h
  1231. * src/RangeBtMessage.cc
  1232. * src/RangeBtMessage.h
  1233. * src/SimpleBtMessage.cc
  1234. * src/SimpleBtMessage.h
  1235. * src/SocketBuffer.cc
  1236. * src/SocketBuffer.h
  1237. * src/ZeroBtMessage.cc
  1238. * src/ZeroBtMessage.h
  1239. * test/BtAllowedFastMessageTest.cc
  1240. * test/BtBitfieldMessageTest.cc
  1241. * test/BtCancelMessageTest.cc
  1242. * test/BtChokeMessageTest.cc
  1243. * test/BtExtendedMessageTest.cc
  1244. * test/BtHandshakeMessageTest.cc
  1245. * test/BtHaveAllMessageTest.cc
  1246. * test/BtHaveMessageTest.cc
  1247. * test/BtHaveNoneMessageTest.cc
  1248. * test/BtInterestedMessageTest.cc
  1249. * test/BtKeepAliveMessageTest.cc
  1250. * test/BtNotInterestedMessageTest.cc
  1251. * test/BtPieceMessageTest.cc
  1252. * test/BtPortMessageTest.cc
  1253. * test/BtRejectMessageTest.cc
  1254. * test/BtRequestMessageTest.cc
  1255. * test/BtSuggestPieceMessageTest.cc
  1256. * test/BtUnchokeMessageTest.cc
  1257. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Rewritten SocketBuffer. Old implementation uses single std::string
  1259. to store data and erase sent data, which is costly. New
  1260. implementation uses deque to hold each data to avoid to mutate
  1261. string.
  1262. * src/SocketBuffer.cc
  1263. * src/SocketBuffer.h
  1264. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Removed unused FileEntry::extracted
  1266. * src/FileEntry.cc
  1267. * src/FileEntry.h
  1268. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Wait until data arrives.
  1270. * test/LpdMessageReceiverTest.cc
  1271. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. In Metalink4, if size element contains invalid size, discard whole
  1273. document. Added strict hash value check for metalink3/4.
  1274. * src/MetalinkParserController.cc
  1275. * src/MetalinkParserStateMachine.cc
  1276. * src/MetalinkParserStateMachine.h
  1277. * src/MetalinkParserStateV3Impl.cc
  1278. * src/MetalinkParserStateV4Impl.cc
  1279. * src/util.cc
  1280. * src/util.h
  1281. * test/MetalinkParserControllerTest.cc
  1282. * test/MetalinkProcessorTest.cc
  1283. * test/metalink4.xml
  1284. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Added strict attribute validation for metalink4. When
  1286. specification violation is found, discard the whole document.
  1287. * src/ExpatMetalinkProcessor.cc
  1288. * src/MetalinkParserStateMachine.cc
  1289. * src/MetalinkParserStateMachine.h
  1290. * src/MetalinkParserStateV4Impl.cc
  1291. * src/XML2SAXMetalinkProcessor.cc
  1292. * test/Makefile.am
  1293. * test/MetalinkProcessorTest.cc
  1294. * test/metalink4-attrs.xml: Removed
  1295. * test/metalink4-dirtraversal.xml: Removed
  1296. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1297. Added test for Metaurl transaction.
  1298. * src/MetalinkParserController.cc
  1299. * test/MetalinkParserControllerTest.cc
  1300. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Avoid costly BtMessage::toString() if info level log is not
  1302. required.
  1303. * src/DefaultBtInteractive.cc
  1304. * src/Logger.h
  1305. * src/SimpleBtMessage.cc
  1306. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Reserved vector elements based on profiler results.
  1308. * src/DefaultBtInteractive.cc
  1309. * src/DefaultBtProgressInfoFile.cc
  1310. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1311. Avoid to calculate end() iterator in each loop. std::deque is
  1312. particularly slow. Make sure that recalculate end iterator if
  1313. element is erased during loop.
  1314. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1315. Use vector instead of deque for containers which is used for
  1316. mostly read-only purpose.
  1317. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Fixed typo
  1319. * test/Makefile.am
  1320. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  1322. * test/Makefile.am
  1323. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Small optimization: In updateTransferStatFor(), don't search peer
  1325. ID twice.
  1326. * src/DefaultPeerStorage.cc
  1327. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Use vector instead of deque for MetalinkEntry and MetalinkResource
  1329. objects.
  1330. * src/Metalink2RequestGroup.cc
  1331. * src/Metalink2RequestGroup.h
  1332. * src/MetalinkEntry.cc
  1333. * src/MetalinkEntry.h
  1334. * src/MetalinkHelper.cc
  1335. * src/MetalinkHelper.h
  1336. * src/Metalinker.cc
  1337. * src/Metalinker.h
  1338. * src/main.cc
  1339. * test/MetalinkEntryTest.cc
  1340. * test/MetalinkHelperTest.cc
  1341. * test/MetalinkProcessorTest.cc
  1342. * test/MetalinkerTest.cc
  1343. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Fixed the bug that grouped FileEntry objects are not used but
  1345. instead all FileEntry objects are used for each metaurl group.
  1346. * src/Metalink2RequestGroup.cc
  1347. * test/Metalink2RequestGroupTest.cc
  1348. * test/metalink4-groupbymetaurl.xml
  1349. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Use vector instead of deque for ChunkChecksum.
  1351. * src/ChunkChecksum.h
  1352. * src/MetalinkParserController.cc
  1353. * src/MetalinkParserController.h
  1354. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1355. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  1356. algorithm in Metalink properly
  1357. * src/MetalinkParserController.cc
  1358. * src/MetalinkParserController.h
  1359. * src/messageDigest.cc
  1360. * src/messageDigest.h
  1361. * test/MetalinkProcessorTest.cc
  1362. * test/metalink4.xml
  1363. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Replaced null or control characters in file path with '_'. For
  1365. MinGW32 build, additional characters which is not allowed in
  1366. Windows kernel are also replaced. util::detectDirTraversal() now
  1367. returns true if given string contains null or control characters.
  1368. * src/DownloadContext.cc
  1369. * src/DownloadContext.h
  1370. * src/Metalink2RequestGroup.cc
  1371. * src/MetalinkParserController.cc
  1372. * src/bittorrent_helper.cc
  1373. * src/util.cc
  1374. * src/util.h
  1375. * test/UtilTest.cc
  1376. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Discard metalink:file if its name attribute is empty string.
  1378. Removed FileEntry instantiation in
  1379. MetalinkParserController::setFileLengthOfEntry()
  1380. * src/MetalinkParserController.cc
  1381. * src/MetalinkParserStateV3Impl.cc
  1382. * src/MetalinkParserStateV4Impl.cc
  1383. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Discard torrent file if path data in it contains directory
  1385. traversal directives. Discard metalink:file element in Metalink3
  1386. format if its name attribute contains directory traversal
  1387. directives. Ignore name attribute of metalink:signature element
  1388. in Metalink3 format if it contains directory traversal directives.
  1389. * src/MetalinkParserStateV3Impl.cc
  1390. * src/bittorrent_helper.cc
  1391. * src/message.h
  1392. * test/BittorrentHelperTest.cc
  1393. * test/Makefile.am
  1394. * test/MetalinkProcessorTest.cc
  1395. * test/metalink3-dirtraversal.xml
  1396. * test/test.xml
  1397. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Removed useless comment
  1399. * src/MetalinkParserStateV4Impl.cc
  1400. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Supported name attribute of metalink::metaurl element and
  1402. multi-file torrent with Metalink4. Files with same metaurl are
  1403. grouped and downloaded in one RequestGroup.
  1404. * src/BtDependency.cc
  1405. * src/FileEntry.h
  1406. * src/Metalink2RequestGroup.cc
  1407. * src/Metalink2RequestGroup.h
  1408. * src/MetalinkEntry.cc
  1409. * src/MetalinkEntry.h
  1410. * src/MetalinkHelper.cc
  1411. * src/MetalinkHelper.h
  1412. * src/MetalinkMetaurl.cc
  1413. * src/MetalinkMetaurl.h
  1414. * src/MetalinkParserController.cc
  1415. * src/RequestGroup.cc
  1416. * src/RequestGroup.h
  1417. * src/bittorrent_helper.cc
  1418. * test/BittorrentHelperTest.cc
  1419. * test/BtDependencyTest.cc
  1420. * test/MetalinkHelperTest.cc
  1421. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1422. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  1423. * src/MetalinkMetaurl.h
  1424. * src/MetalinkParserController.cc
  1425. * src/MetalinkParserController.h
  1426. * src/MetalinkParserStateMachine.cc
  1427. * src/MetalinkParserStateMachine.h
  1428. * src/MetalinkParserStateV4Impl.cc
  1429. * test/MetalinkProcessorTest.cc
  1430. * test/metalink4-dirtraversal.xml
  1431. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1432. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  1433. element.
  1434. * src/Makefile.am
  1435. * src/Metalink2RequestGroup.cc
  1436. * src/MetalinkEntry.cc
  1437. * src/MetalinkEntry.h
  1438. * src/MetalinkMetaurl.cc
  1439. * src/MetalinkMetaurl.h
  1440. * src/MetalinkParserController.cc
  1441. * src/MetalinkParserController.h
  1442. * src/MetalinkParserStateMachine.cc
  1443. * src/MetalinkParserStateMachine.h
  1444. * src/MetalinkParserStateV4Impl.cc
  1445. * src/MetalinkParserStateV4Impl.h
  1446. * test/MetalinkProcessorTest.cc
  1447. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. Added Metalink4 support. Currently, name attribute of
  1449. metalink::metaurl is ignored and multi-file torrent cannot be used
  1450. with Metalink4.
  1451. * doc/aria2c.1.txt
  1452. * src/DownloadHandlerConstants.cc
  1453. * src/ExpatMetalinkProcessor.cc
  1454. * src/Makefile.am
  1455. * src/Metalink2RequestGroup.cc
  1456. * src/MetalinkEntry.cc
  1457. * src/MetalinkEntry.h
  1458. * src/MetalinkParserController.cc
  1459. * src/MetalinkParserController.h
  1460. * src/MetalinkParserState.h
  1461. * src/MetalinkParserStateImpl.cc
  1462. * src/MetalinkParserStateImpl.h
  1463. * src/MetalinkParserStateMachine.cc
  1464. * src/MetalinkParserStateMachine.h
  1465. * src/MetalinkParserStateV3Impl.cc
  1466. * src/MetalinkParserStateV3Impl.h
  1467. * src/MetalinkParserStateV4Impl.cc
  1468. * src/MetalinkParserStateV4Impl.h
  1469. * src/MetalinkResource.cc
  1470. * src/MetalinkResource.h
  1471. * src/Metalinker.cc
  1472. * src/RequestGroup.cc
  1473. * src/RequestGroup.h
  1474. * src/XML2SAXMetalinkProcessor.cc
  1475. * src/messageDigest.cc
  1476. * src/util.cc
  1477. * src/util.h
  1478. * test/Makefile.am
  1479. * test/MetalinkEntryTest.cc
  1480. * test/MetalinkParserControllerTest.cc
  1481. * test/MetalinkProcessorTest.cc
  1482. * test/MetalinkerTest.cc
  1483. * test/UtilTest.cc
  1484. * test/metalink4-attrs.xml
  1485. * test/metalink4-dirtraversal.xml
  1486. * test/metalink4.xml
  1487. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Added aiFlags argument to getInterfaceAddress(). Use
  1489. AI_NUMERICHOST to find interface specified using
  1490. --bt-lpd-interface option to avoid time-consuming address lookup.
  1491. * src/BtSetup.cc
  1492. * src/SocketCore.cc
  1493. * src/SocketCore.h
  1494. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1495. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  1496. is bad in LpdMessageReceiver.
  1497. * src/LpdMessage.h
  1498. * src/LpdMessageReceiver.cc
  1499. * src/LpdMessageReceiver.h
  1500. * src/LpdReceiveMessageCommand.cc
  1501. * test/LpdMessageReceiverTest.cc
  1502. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Added --bt-lpd-interface option to specify the interface to use
  1504. for Local Peer Discovery. LpdMessageDispatcher object now has its
  1505. own socket. LpdMessageReceiver's socket is binded to multicast
  1506. address to only receive multicast packets.
  1507. * src/BtSetup.cc
  1508. * src/LpdMessageDispatcher.cc
  1509. * src/LpdMessageDispatcher.h
  1510. * src/LpdMessageReceiver.cc
  1511. * src/LpdMessageReceiver.h
  1512. * src/LpdReceiveMessageCommand.cc
  1513. * src/LpdReceiveMessageCommand.h
  1514. * src/OptionHandlerFactory.cc
  1515. * src/SocketCore.cc
  1516. * src/SocketCore.h
  1517. * src/prefs.cc
  1518. * src/prefs.h
  1519. * src/usage_text.h
  1520. * test/LpdMessageDispatcherTest.cc
  1521. * test/LpdMessageReceiverTest.cc
  1522. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. Put the portion of code to get interface addresses in
  1524. SocketCore::bindAddress() into newly added getInterfaceAddress().
  1525. * src/SocketCore.cc
  1526. * src/SocketCore.h
  1527. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1528. Rewritten util::parseInt() and parseUInt()
  1529. * src/util.cc
  1530. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1531. Fixed compile error with mingw32 cross compiler. Defined
  1532. a2_sockopt_t as void* for the target systems other than mingw32.
  1533. * src/SocketCore.cc
  1534. * src/a2netcompat.h
  1535. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Removed 'always true' condition
  1537. * src/util.cc
  1538. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Documented --bt-enable-lpd option in man page.
  1540. * doc/aria2c.1.txt
  1541. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Added Local Peer Discovery. It is disabled by default. Use
  1543. --bt-enable-lpd to enable the function.
  1544. * src/BtConstants.h
  1545. * src/BtSetup.cc
  1546. * src/LpdDispatchMessageCommand.cc
  1547. * src/LpdDispatchMessageCommand.h
  1548. * src/LpdMessage.h
  1549. * src/LpdMessageDispatcher.cc
  1550. * src/LpdMessageDispatcher.h
  1551. * src/LpdMessageReceiver.cc
  1552. * src/LpdMessageReceiver.h
  1553. * src/LpdReceiveMessageCommand.cc
  1554. * src/LpdReceiveMessageCommand.h
  1555. * src/Makefile.am
  1556. * src/OptionHandlerFactory.cc
  1557. * src/Peer.cc
  1558. * src/Peer.h
  1559. * src/PeerInteractionCommand.cc
  1560. * src/SocketCore.cc
  1561. * src/SocketCore.h
  1562. * src/prefs.cc
  1563. * src/prefs.h
  1564. * src/usage_text.h
  1565. * src/util.cc
  1566. * src/util.h
  1567. * test/LpdMessageDispatcherTest.cc
  1568. * test/LpdMessageReceiverTest.cc
  1569. * test/Makefile.am
  1570. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. User-defined custom request headers specified by --header option
  1572. now override builtin headers if they have same name.
  1573. * src/HttpRequest.cc
  1574. * src/HttpRequest.h
  1575. * test/HttpRequestTest.cc
  1576. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Rewirtten util::isNumber()
  1578. * src/util.cc
  1579. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  1581. because without it localized error messages are not printed
  1582. correctly.
  1583. * src/Platform.cc
  1584. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1585. Added unit tests for util::getContentDispositionFilename() from
  1586. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  1587. tests are passed.
  1588. * src/util.cc
  1589. * test/UtilTest.cc
  1590. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  1592. util.cc
  1593. * src/Platform.cc
  1594. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Support RFC2231 "Parameter Value Character Set and Language
  1596. Information" in Content-Disposition header.
  1597. * src/HttpResponse.cc
  1598. * src/util.cc
  1599. * src/util.h
  1600. * test/UtilTest.cc
  1601. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Print CXXFLAGS
  1603. * configure.ac
  1604. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Small optimization for A2_WOULDBLOCK(e)
  1606. * src/SocketCore.cc
  1607. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Removed test file
  1609. * test/CookieStorageTest.cc
  1610. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Check both EAGAIN and EWOULDBLOCK
  1612. * src/SocketCore.cc
  1613. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Removed ret == 0 checking for SSL_read(), SSL_write() and
  1615. SSL_peek() because the checks are done in the caller. In
  1616. SocketBuffer::send(), throw exception if nothing could be written
  1617. and socket error was not EWOULDBLOCK
  1618. * src/SocketBuffer.cc
  1619. * src/SocketCore.cc
  1620. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1621. Fixed error code handling so that it can handle Winsock2 error
  1622. code.
  1623. * src/SocketCore.cc
  1624. * src/SocketCore.h
  1625. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Bump up version number to 1.9.0a
  1627. * configure.ac
  1628. * doc/aria2c.1.txt
  1629. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Fixed the bug that aria2 doesn't handle return value if error
  1631. occurred before download begins.
  1632. * src/MultiUrlRequestInfo.cc
  1633. * src/main.cc
  1634. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1635. Removed SegmentManFactory class.
  1636. * src/AbstractSegmentManFactory.h
  1637. * src/DefaultSegmentManFactory.cc
  1638. * src/DefaultSegmentManFactory.h
  1639. * src/Makefile.am
  1640. * src/RequestGroup.cc
  1641. * src/RequestGroup.h
  1642. * src/SegmentManFactory.h
  1643. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Destroyed digest context after getting calculated hash.
  1645. * src/Piece.cc
  1646. * src/Piece.h
  1647. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Removed BitfieldManFactory class.
  1649. * src/BitfieldManFactory.cc
  1650. * src/BitfieldManFactory.h
  1651. * src/DefaultPieceStorage.cc
  1652. * src/Makefile.am
  1653. * src/PeerSessionResource.cc
  1654. * src/Piece.cc
  1655. * src/main.cc
  1656. * test/DefaultPieceStorageTest.cc
  1657. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Removed unused methods from BitfieldMan class. Moved
  1659. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  1660. class.
  1661. * src/BitfieldMan.cc
  1662. * src/BitfieldMan.h
  1663. * src/BitfieldManFactory.cc
  1664. * src/BitfieldManFactory.h
  1665. * src/bitfield.h
  1666. * src/main.cc
  1667. * test/BitfieldManTest.cc
  1668. * test/DefaultPieceStorageTest.cc
  1669. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Moved getFirstNMissingIndex to bitfield.h and made it return the
  1671. number of appended indexes.
  1672. * src/BitfieldMan.cc
  1673. * src/BitfieldMan.h
  1674. * src/Piece.cc
  1675. * src/Piece.h
  1676. * src/bitfield.h
  1677. * test/BitfieldManTest.cc
  1678. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. Added more tests.
  1680. * test/BitfieldManTest.cc
  1681. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  1683. unused block indexes at once instead of calling
  1684. getFirstMissingUnusedIndex() multiple times. Made use of it in
  1685. Piece class and DefaultBtRequestFactory class via Piece class.
  1686. * src/BitfieldMan.cc
  1687. * src/BitfieldMan.h
  1688. * src/DefaultBtRequestFactory.cc
  1689. * src/Piece.cc
  1690. * src/Piece.h
  1691. * test/BitfieldManTest.cc
  1692. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Use std::make_pair(...)
  1694. * src/DHTMessageTracker.cc
  1695. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Use std::make_pair(...)
  1697. * src/bittorrent_helper.cc
  1698. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. urlencode(removeFragment(...)) in parseUrl(...)
  1700. * src/Request.cc
  1701. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1703. * src/AbstractCommand.cc
  1704. * src/AdaptiveURISelector.cc
  1705. * src/BtPieceMessage.cc
  1706. * src/BtPortMessage.cc
  1707. * src/CreateRequestCommand.cc
  1708. * src/DHTAbstractNodeLookupTask.cc
  1709. * src/DHTBucket.cc
  1710. * src/DHTGetPeersCommand.cc
  1711. * src/DHTMessageDispatcherImpl.cc
  1712. * src/DHTMessageFactoryImpl.cc
  1713. * src/DHTMessageTracker.cc
  1714. * src/DHTPeerAnnounceStorage.cc
  1715. * src/DHTRoutingTable.cc
  1716. * src/DHTSetup.cc
  1717. * src/DefaultBtAnnounce.cc
  1718. * src/DefaultBtInteractive.cc
  1719. * src/DefaultBtMessageDispatcher.cc
  1720. * src/DefaultBtMessageReceiver.cc
  1721. * src/DefaultBtProgressInfoFile.cc
  1722. * src/DefaultBtRequestFactory.cc
  1723. * src/DefaultPeerStorage.cc
  1724. * src/DefaultPieceStorage.cc
  1725. * src/DownloadCommand.cc
  1726. * src/DownloadEngine.cc
  1727. * src/EpollEventPoll.cc
  1728. * src/FileAllocationCommand.cc
  1729. * src/FileEntry.cc
  1730. * src/FtpNegotiationCommand.cc
  1731. * src/HandshakeExtensionMessage.cc
  1732. * src/HttpListenCommand.cc
  1733. * src/HttpServer.cc
  1734. * src/HttpSkipResponseCommand.cc
  1735. * src/IteratableChunkChecksumValidator.cc
  1736. * src/Logger.h
  1737. * src/MSEHandshake.cc
  1738. * src/MetalinkPostDownloadHandler.cc
  1739. * src/MultiDiskAdaptor.cc
  1740. * src/PeerAbstractCommand.cc
  1741. * src/PeerConnection.cc
  1742. * src/PeerListenCommand.cc
  1743. * src/PeerReceiveHandshakeCommand.cc
  1744. * src/RequestGroup.cc
  1745. * src/RequestGroupMan.cc
  1746. * src/SegmentMan.cc
  1747. * src/SelectEventPoll.cc
  1748. * src/ServerStat.cc
  1749. * src/SimpleBtMessage.cc
  1750. * src/SocketCore.cc
  1751. * src/TrackerWatcherCommand.cc
  1752. * src/UTMetadataDataExtensionMessage.cc
  1753. * src/UTMetadataRequestFactory.cc
  1754. * src/UTMetadataRequestTracker.cc
  1755. * src/XmlRpcMethod.cc
  1756. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1757. Changed log level from debug to info
  1758. * src/BtDependency.cc
  1759. * src/BtPostDownloadHandler.cc
  1760. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. Removed unused PeerSessionResource::_latency.
  1762. * src/BtConstants.h
  1763. * src/BtPieceMessage.cc
  1764. * src/Peer.cc
  1765. * src/Peer.h
  1766. * src/PeerSessionResource.cc
  1767. * src/PeerSessionResource.h
  1768. * test/PeerSessionResourceTest.cc
  1769. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1770. Fixed the bug that --file-allocation=falloc doesn't work with
  1771. single file download.
  1772. * src/AbstractSingleDiskAdaptor.cc
  1773. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Release 1.8.2
  1775. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1776. Added Portuguese translation. Updated Ukrainian and Spanish
  1777. translation. Thanks to all translators.
  1778. * po/LINGUAS
  1779. * po/es.po
  1780. * po/pt.po
  1781. * po/uk.po
  1782. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1783. Remove fragment from redirected URI.
  1784. * src/Request.cc
  1785. * test/RequestTest.cc
  1786. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1787. Updated po templates.
  1788. * po/aria2.pot
  1789. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Drop legacy ifdef for ares support and code cleanup.
  1791. * src/AsyncNameResolver.cc
  1792. * src/AsyncNameResolver.h
  1793. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1794. Call ares_library_init and ares_library_cleanup if they are
  1795. available. Some code cleanups.
  1796. * src/Platform.cc
  1797. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1798. Call ares_process_fd() each time after epoll to handle timeout.
  1799. * src/EpollEventPoll.cc
  1800. * src/EpollEventPoll.h
  1801. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Suppressed type-cast compiler warning
  1803. * src/CookieStorage.cc
  1804. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Fixed compile error on Mac OS X.
  1806. * src/CookieStorage.h
  1807. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1808. Removed cookietest.txt from Makefile.am
  1809. * test/Makefile.am
  1810. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1811. Updated version number in man page.
  1812. * doc/aria2c.1.txt
  1813. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1814. Rewritten help message for --allow-overwrite option.
  1815. * doc/aria2c.1.txt
  1816. * src/usage_text.h
  1817. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Added bittorrent key to the response of tellStatus XML-RPC method.
  1819. The associated value of the key is a struct and contains data
  1820. retrieved from .torrent file, such as name, announce-list,
  1821. comment, etc.
  1822. * doc/aria2c.1.txt
  1823. * src/XmlRpcMethodImpl.cc
  1824. * src/XmlRpcMethodImpl.h
  1825. * test/XmlRpcMethodTest.cc
  1826. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1827. Removed parse(std::istream&) and parse(const std::string&) from
  1828. CookieParser.
  1829. * src/CookieParser.cc
  1830. * src/CookieParser.h
  1831. * test/CookieParserTest.cc
  1832. * test/cookietest.txt: Removed
  1833. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1834. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1835. a.b.c if no other cookies are stored. Fixed the bug that
  1836. Cookie::markOriginServerOnly() is not called when cookies are
  1837. loaded from file/sqlite3 database.
  1838. * src/Cookie.h
  1839. * src/CookieStorage.cc
  1840. * src/NsCookieParser.cc
  1841. * src/Sqlite3MozCookieParser.cc
  1842. * test/CookieStorageTest.cc
  1843. * test/NsCookieParserTest.cc
  1844. * test/Sqlite3MozCookieParserTest.cc
  1845. * test/cookies.sqlite
  1846. * test/nscookietest.txt
  1847. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1849. both _pieceStorage and _segmentMan are initialized or they are
  1850. not.
  1851. * src/RequestGroup.cc
  1852. * src/RequestGroup.h
  1853. * test/BtDependencyTest.cc
  1854. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1855. Bump up version number to 1.8.2
  1856. * configure.ac
  1857. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Replaced "." with A2STR::DOT_C
  1859. * src/AbstractCommand.cc
  1860. * src/Cookie.cc
  1861. * src/DownloadContext.cc
  1862. * src/FtpConnection.cc
  1863. * src/RequestGroup.cc
  1864. * src/util.cc
  1865. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Replaced isNumberAndDotsNotation() with isNumericHost().
  1867. isNumericHost() can handle IPv6 address.
  1868. * src/Cookie.cc
  1869. * src/CookieStorage.cc
  1870. * src/util.cc
  1871. * src/util.h
  1872. * test/CookieTest.cc
  1873. * test/UtilTest.cc
  1874. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1875. Included A2STR.h
  1876. * src/CookieStorage.cc
  1877. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1878. Rewritten Cookie storage.
  1879. * src/Cookie.cc
  1880. * src/Cookie.h
  1881. * src/CookieParser.cc
  1882. * src/CookieStorage.cc
  1883. * src/CookieStorage.h
  1884. * src/a2functional.h
  1885. * test/CookieParserTest.cc
  1886. * test/CookieStorageTest.cc
  1887. * test/CookieTest.cc
  1888. * test/HttpResponseTest.cc
  1889. * test/TestUtil.h
  1890. * test/a2functionalTest.cc
  1891. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1892. Handle redirected URI which is not properly percent encoded.
  1893. * src/Request.cc
  1894. * test/RequestTest.cc
  1895. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1896. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1897. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1898. in a row without single '200 OK' response.
  1899. * src/RequestGroup.cc.
  1900. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1902. readout by 80 characters in mingw32 build. Catch exception in
  1903. DHTMessageReceiver::receiveMessage().
  1904. * src/AbstractDiskWriter.cc
  1905. * src/ConsoleStatCalc.cc
  1906. * src/DHTMessageReceiver.cc
  1907. * src/File.cc
  1908. * src/RequestGroupMan.cc
  1909. * src/a2io.h
  1910. * test/FileTest.cc
  1911. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Fixed compile error with intel compiler
  1913. * src/XmlRpcMethodImpl.cc
  1914. * src/XmlRpcMethodImpl.h
  1915. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1916. Release 1.8.1
  1917. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1918. Updated Swedish, Russian and Italian translations. Thanks to all
  1919. translators.
  1920. * po/it.po
  1921. * po/ru.po
  1922. * po/sv.po
  1923. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1924. Fixed broken OptionParser::findByName().
  1925. * src/OptionParser.cc
  1926. * test/OptionParserTest.cc
  1927. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1928. Fixed test error without BitTorrent support.
  1929. * test/XmlRpcMethodTest.cc
  1930. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1931. Fixed compile error without GNUTLS/OpenSSL.
  1932. * src/util.cc
  1933. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. Changed compression level to Z_DEFAULT_COMPRESSION.
  1935. * src/GZipEncoder.cc
  1936. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1937. Added missing command line options: --http-no-cache,
  1938. --bt-save-metadata and --bt-metadata-only.
  1939. * doc/xmlrpc/aria2rpc
  1940. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1942. client accepts gzip content encoding.
  1943. * src/A2STR.cc
  1944. * src/A2STR.h
  1945. * src/GZipEncoder.cc
  1946. * src/GZipEncoder.h
  1947. * src/HttpHeader.cc
  1948. * src/HttpHeader.h
  1949. * src/HttpServer.cc
  1950. * src/HttpServer.h
  1951. * src/HttpServerBodyCommand.cc
  1952. * src/HttpServerCommand.cc
  1953. * src/Makefile.am
  1954. * src/XmlRpcResponse.cc
  1955. * src/XmlRpcResponse.h
  1956. * test/GZipEncoderTest.cc
  1957. * test/Makefile.am
  1958. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Added XML-RPC client sample code in Python.
  1960. * doc/aria2c.1.txt
  1961. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Updated po templates.
  1963. * po/aria2.pot
  1964. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1965. Bump up version number to 1.8.1
  1966. * configure.ac
  1967. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1968. Added version number to man page. Updated copyright year in man
  1969. page.
  1970. * doc/aria2c.1.txt
  1971. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1972. Rewritten toTagString
  1973. * src/NameMatchOptionHandler.cc
  1974. * test/OptionHandlerTest.cc
  1975. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Added dir and files key to the response struct of aria2.tellStatus
  1977. XML-RPC method. The value associated with files key is the list
  1978. of files. Its element is the same struct used in aria2.getFiles
  1979. XML-RPC method. Added uris key to the response struct of
  1980. aria2.getFiles XML-RPC method. The value associated with uris key
  1981. is the list of URIs. Its element is the same struct used in
  1982. aria2.getUris XML-RPC method.
  1983. * doc/aria2c.1.txt
  1984. * src/XmlRpcMethodImpl.cc
  1985. * test/XmlRpcMethodTest.cc
  1986. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1987. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1988. struct containing Session ID, which is generated each time when
  1989. aria2 is invoked.
  1990. * doc/aria2c.1.txt
  1991. * doc/xmlrpc/aria2rpc
  1992. * src/DownloadEngine.cc
  1993. * src/DownloadEngine.h
  1994. * src/XmlRpcMethodFactory.cc
  1995. * src/XmlRpcMethodImpl.cc
  1996. * src/XmlRpcMethodImpl.h
  1997. * test/XmlRpcMethodTest.cc
  1998. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Moved generateRandomKey() from bittorrent_helper to util.
  2000. * src/DHTBucket.cc
  2001. * src/DHTNode.cc
  2002. * src/bittorrent_helper.cc
  2003. * src/bittorrent_helper.h
  2004. * src/util.cc
  2005. * src/util.h
  2006. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Updated doc about GID.
  2008. * doc/aria2c.1.txt
  2009. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  2011. accepts a negative integer. 'offset' == -1 points last download
  2012. in the waiting queue and 'offset' == -2 points the download before
  2013. the last download, and so on. The downloads in the response are in
  2014. reversed order.
  2015. * doc/aria2c.1.txt
  2016. * src/XmlRpcMethodImpl.cc
  2017. * src/XmlRpcMethodImpl.h
  2018. * test/XmlRpcMethodTest.cc
  2019. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Added --human-readable option. This option, when true is given,
  2021. prints sizes and speed in human readable format(e.g., 1.2Ki,
  2022. 3.4Mi) in the console readout. The default value is true and it
  2023. looks exactly the same as aria2-1.8.0. So the 'new feature'
  2024. appears when false is given. In this case, sizes and speed are
  2025. printed without in bytes. No Ki, Mi units conversion is used.
  2026. This may be useful for a program to parse the output of aria2.
  2027. * doc/aria2c.1.txt
  2028. * src/ConsoleStatCalc.cc
  2029. * src/ConsoleStatCalc.h
  2030. * src/OptionHandlerFactory.cc
  2031. * src/main.cc
  2032. * src/prefs.cc
  2033. * src/prefs.h
  2034. * src/usage_text.h
  2035. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  2037. option accepts empty string "". When "" is given, it erases
  2038. previously defined proxy.
  2039. * doc/aria2c.1.txt
  2040. * src/OptionHandlerImpl.h
  2041. * src/usage_text.h
  2042. * test/OptionHandlerTest.cc
  2043. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2044. Code cleanup for proxy URI handling.
  2045. * src/AbstractCommand.cc
  2046. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2047. Added --bt-metadata-only option. If true is given to this option,
  2048. aria2 downloads metadata only. The file(s) described in metadata
  2049. will not be downloaded. This option has effect only when
  2050. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  2051. * doc/aria2c.1.txt
  2052. * src/OptionHandlerFactory.cc
  2053. * src/UTMetadataPostDownloadHandler.cc
  2054. * src/download_helper.cc
  2055. * src/prefs.cc
  2056. * src/prefs.h
  2057. * src/usage_text.h
  2058. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2059. Fixed memory leak. Commands stored in std::deque<Command*> are not
  2060. deleted when exception is thrown. Make sure that when passing
  2061. std::deque<Command*> to function to store Commands, handle
  2062. exception and delete these Commands.
  2063. * src/AbstractCommand.cc
  2064. * src/CheckIntegrityCommand.cc
  2065. * src/FileAllocationCommand.cc
  2066. * src/RequestGroup.cc
  2067. * src/TrackerWatcherCommand.cc
  2068. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  2070. * src/A2STR.cc
  2071. * src/A2STR.h
  2072. * src/FtpNegotiationCommand.cc
  2073. * src/HttpResponseCommand.cc
  2074. * src/util.cc
  2075. * src/util.h
  2076. * test/UtilTest.cc
  2077. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Treat --dir="" as --dir="."
  2079. * src/FtpNegotiationCommand.cc
  2080. * src/HttpResponseCommand.cc
  2081. * src/Metalink2RequestGroup.cc
  2082. * src/UTMetadataPostDownloadHandler.cc
  2083. * src/bittorrent_helper.cc
  2084. * src/download_helper.cc
  2085. * src/util.cc
  2086. * src/util.h
  2087. * test/UtilTest.cc
  2088. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Code clean up.
  2090. * src/main.cc
  2091. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Reset GID to 1 when they reach maximum value. Rewritten
  2093. CUIDCounter::newID()
  2094. * src/CUIDCounter.h
  2095. * src/RequestGroup.cc
  2096. * src/RequestGroup.h
  2097. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Documented --http-no-cache option in man page.
  2099. * doc/aria2c.1.txt
  2100. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Added --http-no-cache option. When true is given, aria2 sends
  2102. Cache-Control: no-cache and Pragma: no-cache header to avoid
  2103. cached content. If false is given , these headers are not sent
  2104. and you can add Cache-Control header with a directive you like
  2105. using --header option.
  2106. * src/HttpRequest.cc
  2107. * src/HttpRequest.h
  2108. * src/HttpRequestCommand.cc
  2109. * src/OptionHandlerFactory.cc
  2110. * src/download_helper.cc
  2111. * src/prefs.cc
  2112. * src/prefs.h
  2113. * src/usage_text.h
  2114. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2115. Removed Logger from OptionParser. When OptionParser is used to
  2116. parse options at bootstrap, LogFactory is not configured yet
  2117. properly. When LogFactory is used in OptionParser, it initializes
  2118. itself to return a logger which has no ability to write log to the
  2119. disk.
  2120. * src/OptionParser.cc
  2121. * src/OptionParser.h
  2122. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Added following sentance to the help message of --out option:
  2124. --out option is ignored when -Z is used.
  2125. * doc/aria2c.1.txt
  2126. * src/usage_text.h
  2127. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Added --bt-save-metadata option to -i list options.
  2129. * doc/aria2c.1.txt
  2130. * src/download_helper.cc
  2131. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2132. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  2133. additional libraries.
  2134. * src/MultiUrlRequestInfo.cc
  2135. * src/NameResolver.cc
  2136. * src/SelectEventPoll.cc
  2137. * src/SelectEventPoll.h
  2138. * src/SocketCore.cc
  2139. * src/SocketCore.h
  2140. * src/a2netcompat.h
  2141. * src/daemon.cc
  2142. * src/main.cc
  2143. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. Fixed typo.
  2145. * src/DHTMessageReceiver.cc
  2146. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Fixed the bug that causes segmentation fault if unknown option is
  2148. put in aria2.conf file. BUG#2928303
  2149. * src/OptionParser.cc
  2150. * src/OptionParser.h
  2151. * src/option_processing.cc
  2152. * test/OptionParserTest.cc
  2153. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Ignore port message with port=0.
  2155. * src/BtPortMessage.cc
  2156. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2157. Run autoupdate
  2158. * configure.ac
  2159. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Updated autoconf/automake auxiliary files.
  2161. * INSTALL
  2162. * config.guess
  2163. * config.sub
  2164. * depcomp
  2165. * install-sh
  2166. * m4/intldir.m4
  2167. * missing
  2168. * mkinstalldirs
  2169. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Removed unused function.
  2171. * src/SharedHandle.h
  2172. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Find pooled socket using all cached addresses.
  2174. * src/DNSCache.h
  2175. * src/DownloadEngine.cc
  2176. * src/DownloadEngine.h
  2177. * src/InitiateConnectionCommand.cc
  2178. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Updated copyright year.
  2180. * src/version_usage.cc
  2181. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Pool connection if _contentEncodingDecoder is used and server
  2183. supports persistent connection.
  2184. * src/HttpDownloadCommand.cc
  2185. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2186. Updated doc.
  2187. * src/DownloadCommand.cc
  2188. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. Untabify. Fixed one line in copyright which is longer than 80
  2190. columns.
  2191. * src
  2192. * test
  2193. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Release 1.8.0
  2195. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Updated po templates.
  2197. * po/aria2.pot
  2198. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Documented --bt-save-metadata option in man page.
  2200. * doc/aria2c.1.txt
  2201. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2202. Fixed usage of --bt-save-metadata option.
  2203. * src/usage_text.h
  2204. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2205. Updated po templates.
  2206. * po/aria2.pot
  2207. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  2209. causes name resolution error when none of network interface has
  2210. IPv4 address.
  2211. * src/main.cc
  2212. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2213. Bump up version number to 1.8.0.
  2214. * configure.ac
  2215. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2216. Use info hash as a filename when saving BitTorrent metadata.
  2217. * src/UTMetadataPostDownloadHandler.cc
  2218. * test/UTMetadataPostDownloadHandlerTest.cc
  2219. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. Documented system.multicall XML-RPC method in man page.
  2221. * doc/aria2c.1.txt
  2222. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Added signal handler for SIGHUP to save .aria2 file when terminal
  2224. is closed. The handler is the same one for SIGINT and SIGTERM.
  2225. * src/MultiUrlRequestInfo.cc
  2226. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Defined method name in XmlRpcMethod subclasses.
  2228. * src/XmlRpcMethodFactory.cc
  2229. * src/XmlRpcMethodImpl.cc
  2230. * src/XmlRpcMethodImpl.h
  2231. * test/XmlRpcMethodTest.cc
  2232. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Added system.multicall XML-RPC method.
  2234. * src/XmlRpcMethod.cc
  2235. * src/XmlRpcMethod.h
  2236. * src/XmlRpcMethodFactory.cc
  2237. * src/XmlRpcMethodImpl.cc
  2238. * src/XmlRpcMethodImpl.h
  2239. * test/XmlRpcMethodTest.cc
  2240. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Check structure depth when decoding.
  2242. * src/bencode.cc
  2243. * src/bencode.h
  2244. * test/BencodeTest.cc
  2245. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2246. Documented tellStopped XML-RPC method in man page.
  2247. * doc/aria2c.1.txt
  2248. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2249. Added tellStopped XML-RPC method to aria2rpc.
  2250. * doc/xmlrpc/aria2rpc
  2251. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Added tellStopped XML-RPC method. This method returns stopped
  2253. download in the specified range. It takes same parameters with
  2254. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  2255. * src/XmlRpcMethodFactory.cc
  2256. * src/XmlRpcMethodImpl.cc
  2257. * src/XmlRpcMethodImpl.h
  2258. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  2260. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  2261. when conducting unit tests because they fail if networking
  2262. interface is not configured with IPv4 address.
  2263. * src/NameResolver.cc
  2264. * src/SocketCore.cc
  2265. * src/SocketCore.h
  2266. * src/a2netcompat.h
  2267. * test/AllTest.cc
  2268. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Fixed unit test error
  2270. * test/UTMetadataPostDownloadHandlerTest.cc
  2271. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2272. Defined static string constants for efficiency.
  2273. * src/XmlRpcMethodImpl.cc
  2274. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2275. Added --bt-save-metadata option. When true is given, it saves
  2276. metadata as .torrent file. This option has effect only when
  2277. BitTorrent Magnet URI is used. The filename is name in metadata
  2278. with suffix .torrent. The directory to be saved is the same
  2279. directory where download file is saved. If the same file already
  2280. exists, metdata is not saved.
  2281. * src/OptionHandlerFactory.cc
  2282. * src/UTMetadataPostDownloadHandler.cc
  2283. * src/UTMetadataPostDownloadHandler.h
  2284. * src/message.h
  2285. * src/prefs.cc
  2286. * src/prefs.h
  2287. * src/usage_text.h
  2288. * test/UTMetadataDataExtensionMessageTest.cc
  2289. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2290. Added util::saveAs() function. Use it in Signature::save().
  2291. * src/Signature.cc
  2292. * src/util.cc
  2293. * src/util.h
  2294. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Upcase info hash in Magnet URI.
  2296. * doc/aria2c.1.txt
  2297. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Refactored RequestGroupMan::changeReservedGroupPosition()
  2299. * src/RequestGroupMan.cc
  2300. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Updated the description for aria2.addTorrent XML-RPC method.
  2302. * doc/aria2c.1.txt
  2303. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Added changePosition to aria2rpc.
  2305. * doc/xmlrpc/aria2rpc
  2306. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2307. Documented changePosition XML-RPC method in man page.
  2308. * doc/aria2c.1.txt
  2309. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2310. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  2311. pos and how. This method changes the position of download denoted
  2312. by gid. If how is POS_SET, it moves the download to a position
  2313. relative to the beginning of the queue. If how is POS_CUR, it
  2314. moves the download to a position relative to the current
  2315. position. If how is POS_END, it moves the download to a position
  2316. relative to the end of the queue. If the destination position is
  2317. less than 0 or beyond the end of the queue, it moves the download
  2318. to the beginning or the end of the queue respectively. Returns
  2319. the destination position.
  2320. * src/RequestGroupMan.cc
  2321. * src/RequestGroupMan.h
  2322. * src/XmlRpcMethodFactory.cc
  2323. * src/XmlRpcMethodImpl.cc
  2324. * src/XmlRpcMethodImpl.h
  2325. * test/RequestGroupManTest.cc
  2326. * test/XmlRpcMethodTest.cc
  2327. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2328. Added getOption and getGlobalOption to aria2rpc.
  2329. * doc/xmlrpc/aria2rpc
  2330. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2331. Documented getOption and getGlobalOption XML-RPC method in man
  2332. page
  2333. * doc/aria2c.1.txt
  2334. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Added getOption and getGlobalOption XML-RPC method. getOption
  2336. takes GID as a parameter and returns its options as struct.
  2337. getGlobalOption takes no parameter and returns global
  2338. options. Because global option is used as a template for the
  2339. option of newly added downloads, it includes options returned by
  2340. getOption.
  2341. * src/Option.h
  2342. * src/XmlRpcMethodFactory.cc
  2343. * src/XmlRpcMethodImpl.cc
  2344. * src/XmlRpcMethodImpl.h
  2345. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Sort _optionHandlers in OptionParser by name in ascending order.
  2347. Use vector instead of deque for efficiency.
  2348. * src/OptionHandler.h
  2349. * src/OptionHandlerFactory.h
  2350. * src/OptionParser.cc
  2351. * src/OptionParser.h
  2352. * src/version_usage.cc
  2353. * test/OptionParserTest.cc
  2354. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2355. Code cleanup
  2356. * src/XmlRpcMethod.cc
  2357. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2358. Documented about followedBy and belongsTo in man page.
  2359. * doc/aria2c.1.txt
  2360. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2361. Added following 2 keys, followedBy and belongsTo, to the response
  2362. of tellStatus.
  2363. followedBy: List of GIDs which are generated by the consequence of
  2364. this download. For example, when aria2 downloaded Metalink file,
  2365. it generates downloads described in it(see *--follow-metalink*
  2366. option). This value is useful to track these auto generated
  2367. downloads. If there is no such downloads, this key will not be
  2368. included in the response.
  2369. belongsTo: GID of a parent download. Some downloads are a part of
  2370. another download. For example, if a file in Metalink has
  2371. BitTorrent resource, the download of .torrent is a part of that
  2372. file. If this download has no parent, this key will not be
  2373. included in the response.
  2374. * src/BtPostDownloadHandler.cc
  2375. * src/DownloadResult.h
  2376. * src/Metalink2RequestGroup.cc
  2377. * src/MetalinkPostDownloadHandler.cc
  2378. * src/RequestGroup.cc
  2379. * src/RequestGroup.h
  2380. * src/UTMetadataPostDownloadHandler.cc
  2381. * src/XmlRpcMethodImpl.cc
  2382. * src/XmlRpcMethodImpl.h
  2383. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Assigned BObject in BDE() to avoid segmentation fault when calling
  2385. methods of BDE::none().
  2386. * src/BDE.cc
  2387. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2388. Show info hash in Magnet URI in upper case letters in -S output.
  2389. * src/bittorrent_helper.cc
  2390. * test/BittorrentHelperTest.cc
  2391. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2392. Removed old useless comment
  2393. * src/MultiUrlRequestInfo.cc
  2394. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  2396. not properly used in configure script and failed to detect gnutls.
  2397. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  2398. and the initialization of pkg-config is done in first occurrence
  2399. of PKG_CHECK_MODULES which is not executed because it is inside of
  2400. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  2401. * configure.ac
  2402. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2403. Release 1.7.2
  2404. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Fixed the bug that RequestGroupMan::downloadFinished() returns
  2406. true even if all downloads haven't finished, especially when
  2407. PostDownloadHandler is involved. Changed the condition so that it
  2408. only returns true if both _requestGroups and _reservedGroups are
  2409. empty.
  2410. * src/RequestGroupMan.cc
  2411. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2412. Log listening port for BitTorrent/DHT in notice level.
  2413. * src/DHTConnectionImpl.cc
  2414. * src/PeerListenCommand.cc
  2415. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. Updated po templates.
  2417. * po/aria2.pot
  2418. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Bump up version number to 1.7.2
  2420. * configure.ac
  2421. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2422. Changed default value of --enable-dht from 'false' to 'true'.
  2423. * doc/aria2c.1.txt
  2424. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Enabled DHT by default because of Magnet URI support. To disable
  2426. DHT, use --enable-dht=false
  2427. * src/OptionHandlerFactory.cc
  2428. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2429. Print Magnet URI in -S output.
  2430. * src/AnnounceList.cc
  2431. * src/bittorrent_helper.cc
  2432. * src/bittorrent_helper.h
  2433. * test/BittorrentHelperTest.cc
  2434. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Added --bt-prioritize-piece option to aria2rpc.
  2436. * doc/xmlrpc/aria2rpc
  2437. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2438. Refer Magnet URI in --help. Made some cosmetic changes.
  2439. * src/version_usage.cc
  2440. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2441. Updated -T and -M option.
  2442. * doc/aria2c.1.txt
  2443. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Fixed typo
  2445. * doc/aria2c.1.txt
  2446. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2447. Fixed the bug that line separator is missing in horizontal bar.
  2448. * doc/xmlrpc/aria2mon
  2449. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Updated usage text for --metalink-file option.
  2451. * src/usage_text.h
  2452. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. If '-' is given as an argument to --metalink-file option, aria2
  2454. reads Metalink file from stdin.
  2455. * src/OptionHandlerFactory.cc
  2456. * src/OptionHandlerImpl.h
  2457. * src/a2io.h
  2458. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2459. Fixed the bug that aria2 listens wrong port if --interface option
  2460. is used.
  2461. * src/SocketCore.cc
  2462. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Fixed the bug that query parameter in magnet URI is not decoded.
  2464. * src/magnet.cc
  2465. * test/MagnetTest.cc
  2466. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Specified defaultSize as an argument for easy testing.
  2468. * src/util.cc
  2469. * src/util.h
  2470. * test/UtilTest.cc
  2471. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Release 1.7.1
  2473. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Bump up version number to 1.7.1
  2475. * configure.ac
  2476. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Fixed the bug --bt-prioritize-piece=tail is not working.
  2478. * src/util.cc
  2479. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Release 1.7.0
  2481. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Updated po templates.
  2483. * po/aria2.pot
  2484. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2485. Updated help message for --bt-prioritize-piece. Some cosmetic
  2486. changes.
  2487. * doc/aria2c.1.txt
  2488. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2489. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  2490. * src/usage_text.h
  2491. * src/util.cc
  2492. * test/UtilTest.cc
  2493. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2494. Updated Russian, Ukrainian, German and French translations.
  2495. Thanks to all translators involved.
  2496. * po/de.po
  2497. * po/fr.po
  2498. * po/ru.po
  2499. * po/uk.po
  2500. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. Mentioned about pkg-config
  2502. * README
  2503. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2504. Fixed typo. Referred --index-out option in BitTorrent notes.
  2505. * README
  2506. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. Store all addresses found by getifaddrs() and getaddrinfo(). In
  2508. bind, try all addresses until success
  2509. * src/SocketCore.cc
  2510. * src/SocketCore.h
  2511. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Updated po templates.
  2513. * po/aria2.pot
  2514. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2515. Bump up version number to 1.7.0
  2516. * configure.ac
  2517. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2518. Fixed compile error if ENABLE_BITTORRENT is undefined.
  2519. * src/DefaultPieceStorage.cc
  2520. * src/DefaultPieceStorage.h
  2521. * src/PieceStorage.h
  2522. * src/UnknownLengthPieceStorage.cc
  2523. * src/UnknownLengthPieceStorage.h
  2524. * test/MockPieceStorage.h
  2525. * test/ProtocolDetectorTest.cc
  2526. * test/XmlRpcMethodTest.cc
  2527. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2528. Documented in man page that if getifaddrs() is missing,
  2529. --interface option doesn't accept interface name.
  2530. * doc/aria2c.1.txt
  2531. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2532. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  2533. * src/DefaultBtAnnounce.cc
  2534. * src/DefaultBtAnnounce.h
  2535. * test/DefaultBtAnnounceTest.cc
  2536. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Fixed the bug that connection is always dropped if handshake
  2538. message in extension protocol don't have metadata_size.
  2539. src/HandshakeExtensionMessage.cc
  2540. * src/HandshakeExtensionMessage.cc
  2541. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  2543. text saying DHT is recommended when Magnet URI is provided.
  2544. * doc/aria2c.1.txt
  2545. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2546. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  2547. URI is supplied. Notify user that they should consider enabling
  2548. DHT if they use Magnet URI.
  2549. * src/RequestGroup.cc
  2550. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Added --disable-ipv6 option to disable IPv6.
  2552. * doc/aria2c.1.txt
  2553. * src/InitiateConnectionCommand.cc
  2554. * src/NameResolver.cc
  2555. * src/NameResolver.h
  2556. * src/OptionHandlerFactory.cc
  2557. * src/main.cc
  2558. * src/prefs.cc
  2559. * src/prefs.h
  2560. * src/usage_text.h
  2561. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. Updated usage text for --bt-prioritize-piece option.
  2563. * doc/aria2c.1.txt
  2564. * src/usage_text.h
  2565. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2566. In configure script, if --with-PACKAGE and --enable-FEATURE are
  2567. given and PACKAGE is missing in the system or FEATURE cannot be
  2568. enabled, print error message and stop the script.
  2569. * configure.ac
  2570. * m4/aria2_arg.m4
  2571. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2572. Halt metadata download immediately when metadata download is done.
  2573. Don't wait unresponsive tracker.
  2574. * src/ByteArrayDiskWriter.h
  2575. * src/DefaultBtInteractive.cc
  2576. * src/DefaultExtensionMessageFactory.cc
  2577. * src/DefaultExtensionMessageFactory.h
  2578. * src/PeerInteractionCommand.cc
  2579. * src/UTMetadataDataExtensionMessage.cc
  2580. * src/UTMetadataDataExtensionMessage.h
  2581. * src/UTMetadataRequestExtensionMessage.cc
  2582. * test/UTMetadataDataExtensionMessageTest.cc
  2583. * test/UTMetadataRequestExtensionMessageTest.cc
  2584. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2585. Documented --interface option in man page.
  2586. * doc/aria2c.1.txt
  2587. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Try resolved address in the order received from the resolver.
  2589. * src/DNSCache.h
  2590. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Added debug logs.
  2592. * src/SocketCore.cc
  2593. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2594. Fixed type of tail to uint64_t
  2595. * src/util.cc
  2596. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2597. Added --interface option. This feature binds sockets to given
  2598. interface. You can specify interface name, IP address and
  2599. hostname.
  2600. * configure.ac
  2601. * src/OptionHandlerFactory.cc
  2602. * src/SocketCore.cc
  2603. * src/SocketCore.h
  2604. * src/main.cc
  2605. * src/message.h
  2606. * src/prefs.cc
  2607. * src/prefs.h
  2608. * src/usage_text.h
  2609. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Updated man page for bt-prioritize-piece option in -i list.
  2611. * doc/aria2c.1.txt
  2612. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Added bt-prioritize-piece option to -i list.
  2614. * src/download_helper.cc
  2615. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2616. Removed --http-auth-scheme option from man page.
  2617. * doc/aria2c.1.txt
  2618. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2619. Removed --http-auth-scheme option since it doesn't do nothing.
  2620. * src/OptionHandlerFactory.cc
  2621. * src/prefs.cc
  2622. * src/prefs.h
  2623. * src/usage_text.h
  2624. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Adjusted the number of peer info which get_peers reply message can
  2626. carry.
  2627. * src/DHTGetPeersReplyMessage.cc
  2628. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Added extension_message_test_helper.h to aria2c_SOURCES.
  2630. * test/Makefile.am
  2631. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Documented --bt-prioritize-piece option in man page.
  2633. * doc/aria2c.1.txt
  2634. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Added option --bt-prioritize-piece. This option instruct aria2 to
  2636. try to download first and last pieces of each file first. The
  2637. argument can contain 2 keywords:head and tail. To include both
  2638. keywords, they must be separated by comma. These keywords can take
  2639. one parameter, SIZE. For example , if head=SIZE is specified,
  2640. pieces in the range of first SIZE bytes of each file get higher
  2641. priority. tail=SIZE means the range of last SIZE bytes of each
  2642. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  2643. * src/DefaultPieceStorage.h
  2644. * src/Makefile.am
  2645. * src/OptionHandlerFactory.cc
  2646. * src/OptionHandlerImpl.h
  2647. * src/PriorityPieceSelector.cc
  2648. * src/PriorityPieceSelector.h
  2649. * src/RequestGroup.cc
  2650. * src/prefs.cc
  2651. * src/prefs.h
  2652. * src/usage_text.h
  2653. * src/util.cc
  2654. * src/util.h
  2655. * test/Makefile.am
  2656. * test/MockPieceSelector.h
  2657. * test/PriorityPieceSelectorTest.cc
  2658. * test/UtilTest.cc
  2659. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2660. Fixed typo
  2661. * src/HttpRequest.h
  2662. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2663. In Magnet URI with tr parameter, put each announce URI in separate
  2664. tier.
  2665. * src/bittorrent_helper.cc
  2666. * test/BittorrentHelperTest.cc
  2667. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Renamed ExtensionMessage::getBencodedData() as
  2669. ExtensionMessage::getPayload()
  2670. * src/BtExtendedMessage.cc
  2671. * src/ExtensionMessage.h
  2672. * src/HandshakeExtensionMessage.cc
  2673. * src/HandshakeExtensionMessage.h
  2674. * src/UTMetadataDataExtensionMessage.cc
  2675. * src/UTMetadataDataExtensionMessage.h
  2676. * src/UTMetadataRejectExtensionMessage.cc
  2677. * src/UTMetadataRejectExtensionMessage.h
  2678. * src/UTMetadataRequestExtensionMessage.cc
  2679. * src/UTMetadataRequestExtensionMessage.h
  2680. * src/UTPexExtensionMessage.cc
  2681. * src/UTPexExtensionMessage.h
  2682. * test/HandshakeExtensionMessageTest.cc
  2683. * test/MockExtensionMessage.h
  2684. * test/UTMetadataDataExtensionMessageTest.cc
  2685. * test/UTMetadataRejectExtensionMessageTest.cc
  2686. * test/UTMetadataRequestExtensionMessageTest.cc
  2687. * test/UTPexExtensionMessageTest.cc
  2688. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. Updated man page for BitTorrent Magnet URI.
  2690. * doc/aria2c.1.txt
  2691. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Call DownloadContext::setOwnerRequestGroup() in
  2693. RequestGroup::setDownloadContext().
  2694. * src/BtDependency.cc
  2695. * src/RequestGroup.cc
  2696. * src/RequestGroup.h
  2697. * src/download_helper.cc
  2698. * test/DefaultBtMessageDispatcherTest.cc
  2699. * test/DefaultExtensionMessageFactoryTest.cc
  2700. * test/HandshakeExtensionMessageTest.cc
  2701. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2702. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2703. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2704. from metadata, use new metadata2Torrent() function.
  2705. * src/BtDependency.cc
  2706. * src/UTMetadataPostDownloadHandler.cc
  2707. * src/bittorrent_helper.cc
  2708. * src/bittorrent_helper.h
  2709. * test/BittorrentHelperTest.cc
  2710. * test/BtDependencyTest.cc
  2711. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2712. Use createRequestGroupForUri to create the download for torrent
  2713. file.
  2714. * src/Metalink2RequestGroup.cc
  2715. * test/Metalink2RequestGroupTest.cc
  2716. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2717. Fixed typo
  2718. * src/DownloadContext.h
  2719. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2720. Use createRequestGroupForBitTorrent()
  2721. * src/BtPostDownloadHandler.cc
  2722. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2723. Added remove().
  2724. * src/Option.cc
  2725. * src/Option.h
  2726. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2727. Removed options which is only valid for URIs specified in
  2728. command-line. If they are left, because op is used as a template
  2729. for new RequestGroup(such as created in XML-RPC command,
  2730. BtPostDownloadHandler etc), they causes unintentional effect.
  2731. * src/main.cc
  2732. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Refer to option value of PREF_OUT only in download_helper.
  2734. * src/FtpNegotiationCommand.cc
  2735. * src/HttpResponseCommand.cc
  2736. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2738. * src/download_helper.cc
  2739. * src/download_helper.h
  2740. * src/XmlRpcMethodImpl.cc
  2741. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2742. Updated man page for changeOption XML-RPC method.
  2743. * doc/aria2c.1.txt
  2744. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2745. Added --bt-max-peers option to changeOption XML-RPC method.
  2746. * src/XmlRpcMethod.cc
  2747. * src/XmlRpcMethodImpl.cc
  2748. * test/XmlRpcMethodTest.cc
  2749. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  2751. * test/XmlRpcMethodTest.cc
  2752. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. Removed redundant DownloadContext::hasAttribute(...) calls.
  2754. * src/ConsoleStatCalc.cc
  2755. * src/RequestGroup.cc
  2756. * src/XmlRpcMethodImpl.cc
  2757. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2758. Changed the number of tracker request attempt from 5 to 2.
  2759. * src/TrackerWatcherCommand.cc
  2760. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Use host and protocol in original URI, because URI selector
  2762. selects URI based on original URI, not redirected one.
  2763. * src/Request.cc
  2764. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2765. Fixed the bug which causes segmentation fault with tellWaiting
  2766. XML-RPC method when BitTorrent download is waiting. The key of
  2767. BtRegistry is changed from info hash to GID, because it is
  2768. registered per RequestGroup, not info hash.
  2769. * src/BtRegistry.cc
  2770. * src/BtRegistry.h
  2771. * src/BtSetup.cc
  2772. * src/ConsoleStatCalc.cc
  2773. * src/InitiatorMSEHandshakeCommand.cc
  2774. * src/PeerInitiateConnectionCommand.cc
  2775. * src/PeerInteractionCommand.cc
  2776. * src/PeerInteractionCommand.h
  2777. * src/PeerReceiveHandshakeCommand.cc
  2778. * src/RequestGroup.cc
  2779. * src/XmlRpcMethodImpl.cc
  2780. * test/BtRegistryTest.cc
  2781. * test/XmlRpcMethodTest.cc
  2782. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2783. Updated man page for changeOption XML-RPC method.
  2784. * doc/aria2c.1.txt
  2785. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2786. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  2787. method.
  2788. * src/XmlRpcMethod.cc
  2789. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2790. Documented about BitTorrent Magnet URI in man page.
  2791. * doc/aria2c.1.txt
  2792. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2793. Fixed the bug that trackers in BitTorrent Magnet URI are not
  2794. inherited to generated RequestGroup.
  2795. * src/UTMetadataPostDownloadHandler.cc
  2796. * test/UTMetadataPostDownloadHandlerTest.cc
  2797. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2798. Prepended "[METADATA]" before dn.
  2799. * src/bittorrent_helper.cc
  2800. * test/BittorrentHelperTest.cc
  2801. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. Rewritten Magnet URI parser.
  2803. * src/Makefile.am
  2804. * src/ProtocolDetector.cc
  2805. * src/bittorrent_helper.cc
  2806. * src/bittorrent_helper.h
  2807. * src/download_helper.cc
  2808. * src/magnet.cc
  2809. * src/magnet.h
  2810. * test/BittorrentHelperTest.cc
  2811. * test/MagnetTest.cc
  2812. * test/Makefile.am
  2813. * test/ProtocolDetectorTest.cc
  2814. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2815. Use hton64
  2816. * src/base32.cc
  2817. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. Added Base32 encoded BitTorrent Magnet Link support.
  2819. * src/Makefile.am
  2820. * src/base32.cc
  2821. * src/base32.h
  2822. * src/bittorrent_helper.cc
  2823. * test/Base32Test.cc
  2824. * test/BittorrentHelperTest.cc
  2825. * test/Makefile.am
  2826. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2828. supported yet. Fixed typo in method name in RequestGroup. In
  2829. metadataGetMode, don't show "Your share ratio was ..." message.
  2830. * src/DefaultBtInteractive.cc
  2831. * src/DefaultBtInteractive.h
  2832. * src/DownloadHandlerFactory.cc
  2833. * src/DownloadHandlerFactory.h
  2834. * src/HandshakeExtensionMessage.cc
  2835. * src/Makefile.am
  2836. * src/Metalink2RequestGroup.cc
  2837. * src/PeerInteractionCommand.cc
  2838. * src/RequestGroup.cc
  2839. * src/RequestGroup.h
  2840. * src/UTMetadataPostDownloadHandler.cc
  2841. * src/UTMetadataPostDownloadHandler.h
  2842. * src/download_helper.cc
  2843. * test/HandshakeExtensionMessageTest.cc
  2844. * test/Makefile.am
  2845. * test/UTMetadataPostDownloadHandlerTest.cc
  2846. * test/UTMetadataRejectExtensionMessageTest.cc
  2847. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2848. In metadataGetMode, don't show SEEDING.
  2849. * src/ConsoleStatCalc.cc
  2850. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2851. Fixed ut_metadata data handling. Implemented
  2852. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2853. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2854. metadata_size is received.
  2855. * src/DefaultExtensionMessageFactory.cc
  2856. * src/DefaultExtensionMessageFactory.h
  2857. * src/HandshakeExtensionMessage.cc
  2858. * src/HandshakeExtensionMessage.h
  2859. * src/UTMetadataDataExtensionMessage.cc
  2860. * src/UTMetadataDataExtensionMessage.h
  2861. * src/UTMetadataRequestExtensionMessage.cc
  2862. * src/UTMetadataRequestFactory.cc
  2863. * src/UTMetadataRequestFactory.h
  2864. * src/UTMetadataRequestTracker.cc
  2865. * src/UTMetadataRequestTracker.h
  2866. * test/DefaultExtensionMessageFactoryTest.cc
  2867. * test/HandshakeExtensionMessageTest.cc
  2868. * test/MockBtMessage.h
  2869. * test/UTMetadataDataExtensionMessageTest.cc
  2870. * test/UTMetadataRequestExtensionMessageTest.cc
  2871. * test/UTMetadataRequestFactoryTest.cc
  2872. * test/UTMetadataRequestTrackerTest.cc
  2873. * test/extension_message_test_helper.h
  2874. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. Drop connection if ut_metadata reject message is received.
  2876. * src/UTMetadataRejectExtensionMessage.cc
  2877. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2878. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2879. get high enough in that mode.
  2880. * src/ActivePeerConnectionCommand.cc
  2881. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2882. Added BitTorrent magnet link support to ProtocolDetector.
  2883. * src/ProtocolDetector.cc
  2884. * src/ProtocolDetector.h
  2885. * test/ProtocolDetectorTest.cc
  2886. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2887. Don't inject validator into BtMessage in metadataGetMode because
  2888. most of the checks depends on the total length of download but it
  2889. is unknown. Delegate metadataGetMode to BtMessage.
  2890. * src/DefaultBtMessageFactory.cc
  2891. * src/DefaultBtMessageFactory.h
  2892. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2893. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2894. * src/DefaultPieceStorage.h
  2895. * src/PieceStorage.h
  2896. * src/UnknownLengthPieceStorage.h
  2897. * test/MockPieceStorage.h
  2898. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2899. Added markTotalLengthIsKnown().
  2900. * src/DownloadContext.h
  2901. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2902. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2903. missing. If metadata is missing, always use DHT when it is ready.
  2904. * src/BtSetup.cc
  2905. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2906. Added parseMagnetLink(). Hex encoded info hash is supported.
  2907. Base32 encoded info hash is not supported yet.
  2908. * src/bittorrent_helper.cc
  2909. * src/bittorrent_helper.h
  2910. * test/BittorrentHelperTest.cc
  2911. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2912. Added FromHex()
  2913. * src/util.cc
  2914. * src/util.h
  2915. * test/UtilTest.cc
  2916. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2917. Added _metadataGetMode member variable. It toggles the action when
  2918. messages are received: usually they almost do nothing if
  2919. _metadataGetMode is true.
  2920. * src/AbstractBtMessage.cc
  2921. * src/AbstractBtMessage.h
  2922. * src/BtAllowedFastMessage.cc
  2923. * src/BtBitfieldMessage.cc
  2924. * src/BtCancelMessage.cc
  2925. * src/BtChokeMessage.cc
  2926. * src/BtHaveAllMessage.cc
  2927. * src/BtHaveMessage.cc
  2928. * src/BtInterestedMessage.cc
  2929. * src/BtNotInterestedMessage.cc
  2930. * src/BtPieceMessage.cc
  2931. * src/BtRejectMessage.cc
  2932. * src/BtRequestMessage.cc
  2933. * src/BtUnchokeMessage.cc
  2934. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2935. Added bencode::decode overload functions. They have extra argument
  2936. 'end', passed by reference. 'end' points to the beyond the last
  2937. position of data used in decoding process.
  2938. * src/bencode.cc
  2939. * src/bencode.h
  2940. * test/BencodeTest.cc
  2941. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2942. Initial support of Extension for Peers to Send Metadata
  2943. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2944. metadata from swarm.
  2945. * src/BtConstants.h
  2946. * src/DefaultBtInteractive.cc
  2947. * src/DefaultExtensionMessageFactory.cc
  2948. * src/DefaultExtensionMessageFactory.h
  2949. * src/ExtensionMessage.h
  2950. * src/ExtensionMessageRegistry.h
  2951. * src/HandshakeExtensionMessage.cc
  2952. * src/HandshakeExtensionMessage.h
  2953. * src/Makefile.am
  2954. * src/PeerConnection.h
  2955. * src/PeerInteractionCommand.cc
  2956. * src/UTMetadataDataExtensionMessage.cc
  2957. * src/UTMetadataDataExtensionMessage.h
  2958. * src/UTMetadataExtensionMessage.cc
  2959. * src/UTMetadataExtensionMessage.h
  2960. * src/UTMetadataRejectExtensionMessage.cc
  2961. * src/UTMetadataRejectExtensionMessage.h
  2962. * src/UTMetadataRequestExtensionMessage.cc
  2963. * src/UTMetadataRequestExtensionMessage.h
  2964. * src/bittorrent_helper.cc
  2965. * src/bittorrent_helper.h
  2966. * test/BittorrentHelperTest.cc
  2967. * test/DefaultExtensionMessageFactoryTest.cc
  2968. * test/HandshakeExtensionMessageTest.cc
  2969. * test/Makefile.am
  2970. * test/UTMetadataDataExtensionMessageTest.cc
  2971. * test/UTMetadataRejectExtensionMessageTest.cc
  2972. * test/UTMetadataRequestExtensionMessageTest.cc
  2973. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Cancel segment in prepareForRetry() because there is a chance that
  2975. the command has segments.
  2976. * src/CreateRequestCommand.cc
  2977. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. Fixed the bug that slow server is not knocked down in favor of
  2979. faster one.
  2980. * src/AbstractCommand.cc
  2981. * src/DefaultPieceStorage.cc
  2982. * src/DefaultPieceStorage.h
  2983. * src/PieceStorage.h
  2984. * src/UnknownLengthPieceStorage.cc
  2985. * src/UnknownLengthPieceStorage.h
  2986. * test/MockPieceStorage.h
  2987. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2988. Fixed the bug that Request object is not added to
  2989. _inFlightRequests in findFasterRequest().
  2990. * src/FileEntry.cc
  2991. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Changed the strategry of how to increase the number of outstanding
  2993. requests. Now the number is doubled if there are no outstanding
  2994. requests after receiving messages.
  2995. * src/BtConstants.h
  2996. * src/DefaultBtInteractive.cc
  2997. * src/DefaultBtInteractive.h
  2998. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2999. Check socket for reading if there are outstanding requests.
  3000. * src/PeerInteractionCommand.cc
  3001. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3002. Moved frequently called methods to header file so they get
  3003. inlined.
  3004. * src/RequestSlot.cc
  3005. * src/RequestSlot.h
  3006. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3007. Copied in_addr instead of just casting from char* which might
  3008. violate strict aliasing rules.
  3009. * src/AsyncNameResolver.cc
  3010. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3011. Use dynamic_pointer_cast
  3012. * test/BtPieceMessageTest.cc
  3013. * test/BtRequestMessageTest.cc
  3014. * test/DefaultBtRequestFactoryTest.cc
  3015. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3016. Added testSetUrl20()
  3017. * test/RequestTest.cc
  3018. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3019. Code cleanup
  3020. * src/bittorrent_helper.cc
  3021. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3022. Use C++ style cast
  3023. * src/AsyncNameResolver.cc
  3024. * src/Base64.h
  3025. * src/BtBitfieldMessage.cc
  3026. * src/BtHandshakeMessage.cc
  3027. * src/DefaultBtMessageFactory.cc
  3028. * src/DefaultBtProgressInfoFile.cc
  3029. * src/EpollEventPoll.cc
  3030. * src/ExpatMetalinkProcessor.cc
  3031. * src/IteratableChecksumValidator.cc
  3032. * src/IteratableChunkChecksumValidator.cc
  3033. * src/MessageDigestHelper.cc
  3034. * src/Platform.cc
  3035. * src/RequestGroupMan.cc
  3036. * src/SingleFileAllocationIterator.cc
  3037. * src/Sqlite3MozCookieParser.cc
  3038. * src/XML2SAXMetalinkProcessor.cc
  3039. * src/Xml2XmlRpcRequestProcessor.cc
  3040. * src/util.cc
  3041. * src/util.h
  3042. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3043. Fixed integer potential alignment problem.
  3044. * src/bitfield.h
  3045. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3046. Applied a patch from tizianomueller to fix sigbus errors on Linux
  3047. sparc. I modified the patch to eliminate a cast to uint32_t* and
  3048. include file ordering.
  3049. * src/PeerListProcessor.h
  3050. * src/bittorrent_helper.cc
  3051. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  3053. * src/Request.cc
  3054. * src/util.cc
  3055. * src/util.h
  3056. * test/RequestTest.cc
  3057. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Rewritten util::uitos()
  3059. * src/util.h
  3060. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3061. Code cleanup
  3062. * src/Request.cc
  3063. * src/Request.h
  3064. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3065. Rewritten Request::parseUrl()
  3066. * src/Request.cc
  3067. * test/RequestTest.cc
  3068. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Removed unused macro SAFE_CHARS
  3070. * src/Request.cc
  3071. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3072. Updated doc
  3073. * src/DHTRoutingTableDeserializer.cc
  3074. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3075. Release 1.6.3
  3076. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3077. Removed unused function.
  3078. * test/DHTPeerAnnounceStorageTest.cc
  3079. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3080. Only decrement cols if cols > 0
  3081. * src/ConsoleStatCalc.cc
  3082. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3083. Updated Polish, Catalan, French, Italian, Russian and Japanese
  3084. translations. Thanks to all translators.
  3085. * po/ca.po
  3086. * po/fr.po
  3087. * po/it.po
  3088. * po/ja.po
  3089. * po/pl.po
  3090. * po/ru.po
  3091. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3092. Updated translation template
  3093. * po
  3094. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3095. Fixed compile error without ssl library.
  3096. * src/util.cc
  3097. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3098. Logged received nodes in get_peers reply message.
  3099. * src/DHTAbstractNodeLookupTask.cc
  3100. * src/DHTAbstractNodeLookupTask.h
  3101. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3102. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  3103. error occurred in DHTMessageDispatcherImpl::sendMessage().
  3104. * src/DHTMessageDispatcherImpl.cc
  3105. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3106. Don't reuse URI if Request pool is not empty.
  3107. * src/CreateRequestCommand.cc
  3108. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3109. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  3110. receive get_peers request for torrent which the client is now
  3111. downloading.
  3112. * src/BtSetup.cc
  3113. * src/DHTPeerAnnounceEntry.cc
  3114. * src/DHTPeerAnnounceEntry.h
  3115. * src/DHTPeerAnnounceStorage.cc
  3116. * src/DHTPeerAnnounceStorage.h
  3117. * src/RequestGroup.cc
  3118. * test/DHTPeerAnnounceEntryTest.cc
  3119. * test/DHTPeerAnnounceStorageTest.cc
  3120. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3121. Fixed the bug that in Windows environment new blank line is
  3122. inserted when console readout is updated.
  3123. * src/ConsoleStatCalc.cc
  3124. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3125. Throw exception if binding listening port is failed. Removed
  3126. RequestGroupMan::getInitialCommand(). Use
  3127. fillRequestGroupFromReserver() instead. Delete commands for
  3128. RequestGroup which has errors when it is being added.
  3129. * src/BtSetup.cc
  3130. * src/DownloadEngine.cc
  3131. * src/DownloadEngine.h
  3132. * src/DownloadEngineFactory.cc
  3133. * src/MultiUrlRequestInfo.cc
  3134. * src/RequestGroupMan.cc
  3135. * src/RequestGroupMan.h
  3136. * test/RequestGroupManTest.cc
  3137. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Fixed the bug that when downloading more than one torrent,
  3139. listening port is not reported properly to tracker for 2nd or
  3140. later torrents.
  3141. * src/BtSetup.cc
  3142. * src/PeerListenCommand.cc
  3143. * src/PeerListenCommand.h
  3144. * src/RequestGroup.cc
  3145. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3146. Bump up version number to 1.6.3
  3147. * configure.ac
  3148. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Removed Util.cc from POTFILES.in
  3150. * po/POTFILES.in
  3151. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3152. Updated man page for previous change.
  3153. * doc/aria2c.1.txt
  3154. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3155. If user name is embedded but password is missing in URI, first
  3156. resolve password using .netrc. If password is found in .netrc,
  3157. then use it as password. If not, use the password specified in
  3158. --ftp-passwd.
  3159. * src/AuthConfigFactory.cc
  3160. * src/Request.cc
  3161. * src/Request.h
  3162. * test/AuthConfigFactoryTest.cc
  3163. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3164. Fixed typo
  3165. * doc/aria2c.1.txt
  3166. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3167. Fixed typo
  3168. * src/usage_text.h
  3169. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Added missing bitfield.cc
  3171. * src/bitfield.cc
  3172. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Renamed Util.{cc,h} as util.{cc,h}
  3174. * src/Util.cc
  3175. * src/Util.h
  3176. * src/util.cc
  3177. * src/util.h
  3178. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3179. Moved static functions in Util class to namespace util.
  3180. * src
  3181. * test
  3182. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  3184. Moved generateRandomKey to bittorrent_helper.cc.
  3185. * src/DHTBucket.cc
  3186. * src/DHTGetPeersMessage.cc
  3187. * src/DHTGetPeersReplyMessage.cc
  3188. * src/DHTMessage.cc
  3189. * src/DHTNode.cc
  3190. * src/DHTTokenTracker.cc
  3191. * src/DHTUtil.cc: Removed.
  3192. * src/DHTUtil.h: Removed.
  3193. * src/Makefile.am
  3194. * src/Util.cc
  3195. * src/Util.h
  3196. * src/bitfield.h
  3197. * src/bittorrent_helper.cc
  3198. * src/bittorrent_helper.h
  3199. * test/ARC4Test.cc
  3200. * test/BNodeTest.cc
  3201. * test/DHTAnnouncePeerMessageTest.cc
  3202. * test/DHTAnnouncePeerReplyMessageTest.cc
  3203. * test/DHTFindNodeMessageTest.cc
  3204. * test/DHTFindNodeReplyMessageTest.cc
  3205. * test/DHTGetPeersMessageTest.cc
  3206. * test/DHTGetPeersReplyMessageTest.cc
  3207. * test/DHTPingMessageTest.cc
  3208. * test/DHTPingReplyMessageTest.cc
  3209. * test/DHTTokenTrackerTest.cc
  3210. * test/DHTUtilTest.cc: Removed.
  3211. * test/Makefile.am
  3212. * test/UtilTest.cc
  3213. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3214. Removed the call to trim() because trim() is called for each
  3215. element in split().
  3216. * src/CookieParser.cc
  3217. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3218. Replaced Util::slice() with split()
  3219. * src/AbstractCommand.cc
  3220. * src/CookieParser.cc
  3221. * src/File.cc
  3222. * src/HttpHeaderProcessor.cc
  3223. * src/HttpRequest.cc
  3224. * src/Metalink2RequestGroup.cc
  3225. * src/MetalinkParserController.cc
  3226. * src/Netrc.cc
  3227. * src/NsCookieParser.cc
  3228. * src/ParameterizedStringParser.cc
  3229. * src/ServerStatMan.cc
  3230. * src/UriListParser.cc
  3231. * src/Util.cc
  3232. * src/Util.h
  3233. * src/bittorrent_helper.cc
  3234. * test/UtilTest.cc
  3235. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3236. Use request->getDir() instead of "/" for embedded user/pass in
  3237. URI.
  3238. * src/AuthConfigFactory.cc
  3239. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3240. Fixed wrong insertion point for BasicCred.
  3241. * src/AuthConfigFactory.cc
  3242. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3243. Allowed non-regular file in LocalFilePathOptionHandler
  3244. * src/OptionHandlerImpl.h
  3245. * src/message.h
  3246. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3247. Fixed the bug that Netrc::parse() cannot recognize comment line.
  3248. * src/Netrc.cc
  3249. * src/Util.h
  3250. * test/NetrcTest.cc
  3251. * test/sample.netrc
  3252. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3253. Fixed typo
  3254. * src/BtDependency.cc
  3255. * src/BtRejectMessage.cc
  3256. * src/FtpConnection.cc
  3257. * src/HttpHeaderProcessor.h
  3258. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Fixed lintian report in man page
  3260. * doc/aria2c.1.txt
  3261. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3262. Release 1.6.2
  3263. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3264. Updated Ukrainian translation. Thanks to all translators.
  3265. * po/uk.po
  3266. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3267. Updated translation template
  3268. * po
  3269. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3270. Bump up version number to 1.6.2
  3271. * configure.ac
  3272. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3273. Updated licence message in -v output.
  3274. * src/version_usage.cc
  3275. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3276. Replaced aria2 with aria2c in help message.
  3277. * src/version_usage.cc
  3278. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3279. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  3280. * src/version_usage.cc
  3281. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3282. Quoted localedir
  3283. * src/Makefile.am
  3284. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3285. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  3286. utime. Check header for utime.h.
  3287. * configure.ac
  3288. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3289. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  3290. * configure.ac
  3291. * src/daemon.cc
  3292. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3293. Don't set localedir manually. Leave it to autoconf.
  3294. * configure.ac
  3295. * src/Makefile.am
  3296. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3297. Added --install to ACLOCAL_AMFLAGS.
  3298. Removed m4 from SUBDIRS.
  3299. Updated automake 1.11 and autoconf 2.64.
  3300. Replaced some obsolute macros with new one.
  3301. * Makefile.am
  3302. * configure.ac
  3303. * m4/aria2_arg.m4
  3304. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3305. Removed Makefile.am in m4 directory.
  3306. * configure.ac
  3307. * m4/ChangeLog
  3308. * m4/Makefile.am
  3309. * m4/Makefile.in
  3310. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Removed unused m4 macros.
  3312. * m4/intldir.m4
  3313. * m4/inttypes.m4
  3314. * m4/isc-posix.m4
  3315. * m4/libgnutls-extra.m4
  3316. * m4/ulonglong.m4
  3317. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. Fixed the bug that causes segmentation fault if
  3319. req->getCurrentUrl() contains printf formatting characters such as
  3320. %d. The statement that causes this bug is useless and removed.
  3321. * src/AbstractCommand.cc
  3322. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3323. * Release 1.6.1
  3324. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3325. Updated Simplified Chinese translation. Thanks to translators.
  3326. * po/zh_CN.po
  3327. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. Updated translation template
  3329. * po
  3330. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3331. Bump up version number to 1.6.1
  3332. * configure.ac
  3333. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3334. Changed interval from 120 to 60 for dropping inactive peer.
  3335. * src/DefaultBtInteractive.cc
  3336. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3337. Updated man page for --user-agent and --peer-id-prefix option.
  3338. * doc/aria2c.1.txt
  3339. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3340. Code clean up
  3341. * src/BtPostDownloadHandler.cc
  3342. * src/ContentTypeRequestGroupCriteria.cc
  3343. * src/ContentTypeRequestGroupCriteria.h
  3344. * src/DownloadHandlerConstants.cc
  3345. * src/DownloadHandlerConstants.h
  3346. * src/DownloadHandlerFactory.cc
  3347. * src/MetalinkPostDownloadHandler.cc
  3348. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3349. Don't save control file when aria2 exists while checking piece
  3350. hash(behavior of -V option). If control file doesn't exist when
  3351. aria2 launched, the completed length in saved control file will be
  3352. 0 byte and this confuses user. disableSaveControlFile() is called
  3353. in RequestGroup::processCheckIntegrityEntry().
  3354. enableSaveControlFile() will be called after hash checking is
  3355. done. See CheckIntegrityCommand.
  3356. * src/CheckIntegrityCommand.cc
  3357. * src/RequestGroup.cc
  3358. * src/RequestGroup.h
  3359. * src/RequestGroupMan.cc
  3360. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3361. Included version number in Peer ID and client version. Peer ID
  3362. now starts with "aria2/VERSION-", where VERSION is
  3363. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  3364. * src/DefaultBtInteractive.cc
  3365. * src/OptionHandlerFactory.cc
  3366. * src/bittorrent_helper.cc
  3367. * src/bittorrent_helper.h
  3368. * src/main.cc
  3369. * src/usage_text.h
  3370. * test/BittorrentHelperTest.cc
  3371. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. Fixed memory leak.
  3373. * src/DownloadCommand.cc
  3374. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3375. Removed server, port, user and passwd key from options before
  3376. XMLRPC::Client.call since they are not options of aria2.
  3377. * doc/xmlrpc/aria2mon
  3378. * doc/xmlrpc/aria2rpc
  3379. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3380. Included version number in user-agent string.
  3381. * src/OptionHandlerFactory.cc
  3382. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3383. Fixed the bug that the option values changed by XML-RPC
  3384. method(changeOption and changeGlobalOption) are overwritten to the
  3385. previous value by the next these request which doesn't contain
  3386. that option value. Supporse max-download-limit is initially 0. You
  3387. changed this value to 100K by changeOption. Then you issue
  3388. changeOption request to change max-upload-limit to 50K. This
  3389. second request doesn't contain xml-download-limit, so it is back
  3390. to initial value, 0. Another improvement is that exception is
  3391. thrown when changeOption and changeGlobalOption request contains
  3392. option name which doesn't allowed in each request.
  3393. * src/DownloadEngine.h
  3394. * src/XmlRpcMethod.cc
  3395. * src/XmlRpcMethod.h
  3396. * src/XmlRpcMethodImpl.cc
  3397. * src/download_helper.cc
  3398. * src/download_helper.h
  3399. * test/XmlRpcMethodTest.cc
  3400. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3401. Added missing MetalinkParserStateImpl.{cc,h}
  3402. * src/MetalinkParserStateImpl.cc
  3403. * src/MetalinkParserStateImpl.h
  3404. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Put all MetalinkParserState subclasses into
  3406. MetalinkParserStateImpl.cc. Use stack to track element structure.
  3407. * src/FileMetalinkParserState.cc: Removed
  3408. * src/FileMetalinkParserState.h: Removed
  3409. * src/FilesMetalinkParserState.cc: Removed
  3410. * src/FilesMetalinkParserState.h: Removed
  3411. * src/FinMetalinkParserState.cc: Removed
  3412. * src/FinMetalinkParserState.h: Removed
  3413. * src/HashMetalinkParserState.cc: Removed
  3414. * src/HashMetalinkParserState.h: Removed
  3415. * src/InitialMetalinkParserState.cc: Removed
  3416. * src/InitialMetalinkParserState.h: Removed
  3417. * src/LanguageMetalinkParserState.cc: Removed
  3418. * src/LanguageMetalinkParserState.h: Removed
  3419. * src/Makefile.am
  3420. * src/MetalinkMetalinkParserState.cc: Removed
  3421. * src/MetalinkMetalinkParserState.h: Removed
  3422. * src/MetalinkParserState.h
  3423. * src/MetalinkParserStateMachine.cc
  3424. * src/MetalinkParserStateMachine.h
  3425. * src/OSMetalinkParserState.cc: Removed
  3426. * src/OSMetalinkParserState.h: Removed
  3427. * src/PieceHashMetalinkParserState.cc: Removed
  3428. * src/PieceHashMetalinkParserState.h: Removed
  3429. * src/PiecesMetalinkParserState.cc: Removed
  3430. * src/PiecesMetalinkParserState.h: Removed
  3431. * src/ResourcesMetalinkParserState.cc: Removed
  3432. * src/ResourcesMetalinkParserState.h: Removed
  3433. * src/SignatureMetalinkParserState.cc: Removed
  3434. * src/SignatureMetalinkParserState.h: Removed
  3435. * src/SizeMetalinkParserState.cc: Removed
  3436. * src/SizeMetalinkParserState.h: Removed
  3437. * src/SkipTagMetalinkParserState.cc: Removed
  3438. * src/SkipTagMetalinkParserState.h: Removed
  3439. * src/URLMetalinkParserState.cc: Removed
  3440. * src/URLMetalinkParserState.h: Removed
  3441. * src/VerificationMetalinkParserState.cc: Removed
  3442. * src/VerificationMetalinkParserState.h: Removed
  3443. * src/VersionMetalinkParserState.cc: Removed
  3444. * src/VersionMetalinkParserState.h: Removed
  3445. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3446. Move all functions in PeerMessageUtil to bittorrent_helper.
  3447. * src/BtBitfieldMessage.cc
  3448. * src/BtBitfieldMessageValidator.h
  3449. * src/BtExtendedMessage.cc
  3450. * src/BtHandshakeMessage.cc
  3451. * src/BtHandshakeMessageValidator.h
  3452. * src/BtPieceMessage.cc
  3453. * src/BtPieceMessageValidator.h
  3454. * src/BtPortMessage.cc
  3455. * src/DHTFindNodeReplyMessage.cc
  3456. * src/DHTGetPeersReplyMessage.cc
  3457. * src/DHTMessageFactoryImpl.cc
  3458. * src/DHTRoutingTableDeserializer.cc
  3459. * src/DHTRoutingTableSerializer.cc
  3460. * src/DHTTokenTracker.cc
  3461. * src/DefaultBtMessageFactory.cc
  3462. * src/IndexBtMessage.cc
  3463. * src/IndexBtMessage.h
  3464. * src/IndexBtMessageValidator.h
  3465. * src/Makefile.am
  3466. * src/PeerMessageUtil.cc: Removed.
  3467. * src/PeerMessageUtil.h: Removed.
  3468. * src/RangeBtMessage.cc
  3469. * src/RangeBtMessage.h
  3470. * src/RangeBtMessageValidator.h
  3471. * src/UTPexExtensionMessage.cc
  3472. * src/ZeroBtMessage.cc
  3473. * src/ZeroBtMessage.h
  3474. * src/bittorrent_helper.cc
  3475. * src/bittorrent_helper.h
  3476. * test/BittorrentHelperTest.cc
  3477. * test/BtAllowedFastMessageTest.cc
  3478. * test/BtBitfieldMessageTest.cc
  3479. * test/BtCancelMessageTest.cc
  3480. * test/BtChokeMessageTest.cc
  3481. * test/BtExtendedMessageTest.cc
  3482. * test/BtHandshakeMessageTest.cc
  3483. * test/BtHaveAllMessageTest.cc
  3484. * test/BtHaveMessageTest.cc
  3485. * test/BtHaveNoneMessageTest.cc
  3486. * test/BtInterestedMessageTest.cc
  3487. * test/BtNotInterestedMessageTest.cc
  3488. * test/BtPieceMessageTest.cc
  3489. * test/BtPortMessageTest.cc
  3490. * test/BtRejectMessageTest.cc
  3491. * test/BtRequestMessageTest.cc
  3492. * test/BtSuggestPieceMessageTest.cc
  3493. * test/BtUnchokeMessageTest.cc
  3494. * test/DHTFindNodeReplyMessageTest.cc
  3495. * test/DHTGetPeersReplyMessageTest.cc
  3496. * test/DHTMessageFactoryImplTest.cc
  3497. * test/DHTRoutingTableDeserializerTest.cc
  3498. * test/DHTRoutingTableSerializerTest.cc
  3499. * test/DefaultBtMessageFactoryTest.cc
  3500. * test/DefaultExtensionMessageFactoryTest.cc
  3501. * test/Makefile.am
  3502. * test/PeerListProcessorTest.cc
  3503. * test/PeerMessageUtilTest.cc: Removed.
  3504. * test/UTPexExtensionMessageTest.cc
  3505. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3506. Limit the size of values list when sending get_peers reply.
  3507. * src/DHTGetPeersReplyMessage.cc
  3508. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3509. Updated banner
  3510. * doc/xmlrpc/aria2rpc
  3511. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3512. Added missing help message for remove command.
  3513. * doc/xmlrpc/aria2rpc
  3514. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3515. Generated configure and config.h.in
  3516. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  3517. Add check for fork(), which is missing on MinGW
  3518. * src/daemon.cc
  3519. * configure.ac
  3520. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3521. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  3522. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  3523. Util::httpGMT().
  3524. * src/Util.cc
  3525. * src/Util.h
  3526. * test/UtilTest.cc
  3527. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3528. * Release 1.6.0
  3529. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3530. Fixed a path to xmlrpc/README.txt
  3531. * doc/Makefile.am
  3532. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3533. Added XML-RPC in -v Configuration output.
  3534. * src/FeatureConfig.cc
  3535. * src/FeatureConfig.h
  3536. * test/FeatureConfigTest.cc
  3537. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3538. Updated Bulgarian, Russian, Slovak and Japanese
  3539. translations. Thanks to all translators.
  3540. * po/bg.po
  3541. * po/ja.po
  3542. * po/ru.po
  3543. * po/sk.po
  3544. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3545. Removed --retry-wait option from aria2rpc
  3546. * doc/xmlrpc/aria2rpc
  3547. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3548. Removed --retry-wait option from man page.
  3549. * doc/aria2c.1.txt
  3550. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3551. Removed --retry-wait option since the current architecture doesn't
  3552. allow sleep for particular URI.
  3553. * src/AbstractCommand.cc
  3554. * src/OptionHandlerFactory.cc
  3555. * src/download_helper.cc
  3556. * src/prefs.cc
  3557. * src/prefs.h
  3558. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. Removed Retry-After header support. Since the current architecture
  3560. doesn't allow sleep for particular URI.
  3561. * src/HttpSkipResponseCommand.cc
  3562. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3563. Updated the help message for --daemon option.
  3564. * doc/aria2c.1.txt
  3565. * src/usage_text.h
  3566. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3567. Added our own daemon() function for systems which desn't have
  3568. daemon(3).
  3569. * configure.ac
  3570. * src/Makefile.am
  3571. * src/daemon.cc
  3572. * src/daemon.h
  3573. * src/option_processing.cc
  3574. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3575. Simplified File::getCurrentDir()
  3576. * src/File.cc
  3577. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3578. Use exit() instead of _exit
  3579. * src/RequestGroupMan.cc
  3580. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Replaced "CATEGORY" with "TAGS".
  3582. * src/usage_text.h
  3583. * doc/aria2c.1.txt
  3584. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3585. Updated the help message for --help option.
  3586. * src/usage_text.h
  3587. * doc/aria2c.1.txt
  3588. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3589. Updated man page for added help tags.
  3590. * doc/aria2c.1.txt
  3591. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3592. Added help category #file. Added #file tag to the options related
  3593. to downloaded file.
  3594. * src/OptionHandlerFactory.cc
  3595. * src/help_tags.h
  3596. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3597. Added help categories: #cookie and #hook. Added #https tag to
  3598. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  3599. * src/OptionHandlerFactory.cc
  3600. * src/help_tags.h
  3601. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3602. Made MSG_NOT_FILE translatable.
  3603. * src/message.h
  3604. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3605. Updated man page for --help option.
  3606. * doc/aria2c.1.txt
  3607. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3608. Updated doc.
  3609. * src/XmlRpcMethod.h
  3610. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3611. Help category now starts with "#" to distinguish a category from
  3612. keyword search. For example, "http" categroy is now "#http". You
  3613. can type "--help=#http" to get explanation of options related to
  3614. http. If '#' is omitted, then the argument is treated as a keyword
  3615. and aria2 searches options whose name includes the keyword and
  3616. print matched ones. For example, "--help=http" will show options
  3617. whose name includes "http".
  3618. * src/OptionHandlerFactory.cc
  3619. * src/help_tags.h
  3620. * src/usage_text.h
  3621. * src/version_usage.cc
  3622. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3623. Documented missing experimental tag and newly added xml-rpc tag in
  3624. man page.
  3625. * doc/aria2c.1.txt
  3626. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3627. Added xml-rpc help tag. Tagged xml-rpc related options with
  3628. xml-rpc tag.
  3629. * src/OptionHandlerFactory.cc
  3630. * src/help_tags.h
  3631. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3632. Updated message when a path is not a file. Updated common message
  3633. for wrong option.
  3634. * src/OptionHandlerException.cc
  3635. * src/message.h
  3636. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Use File::isFile() instead of File::exists(). Updated message when
  3638. a path is not a file.
  3639. * src/OptionHandlerImpl.cc
  3640. * src/message.h
  3641. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3642. Fixed the bug that server performence profile is not updated when
  3643. aria2c was terminated by emergency shutdown.
  3644. * src/TrackerWatcherCommand.cc
  3645. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3646. Use LocalFilePathOptionHandler for -T and -M option.
  3647. Updated message of MSG_FILE_NOT_EXIST.
  3648. * src/OptionHandlerFactory.cc
  3649. * src/message.h
  3650. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3651. Added LocalFilePathOptionHandler which check whether the specified
  3652. file path does exist or not.
  3653. * src/OptionHandlerImpl.cc
  3654. * src/message.h
  3655. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. Updated wiki page URI.
  3657. * README
  3658. * doc/aria2c.1.txt
  3659. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3660. Added README.txt for xmlrpc directory.
  3661. * doc/Makefile.am
  3662. * doc/xmlrpc/README.txt
  3663. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Bump up version number to 1.6.0.
  3665. * configure.ac
  3666. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3667. Added XML-RPC client scripts written in ruby.
  3668. * doc/Makefile.am
  3669. * doc/xmlrpc/aria2mon
  3670. * doc/xmlrpc/aria2rpc
  3671. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3672. Added support for IPv6 literal address in URI. Now aria2 can
  3673. handle URI such as http://[::1]/
  3674. * src/HttpRequest.cc
  3675. * src/HttpRequest.h
  3676. * src/Request.cc
  3677. * src/Request.h
  3678. * test/HttpRequestTest.cc
  3679. * test/OptionHandlerTest.cc
  3680. * test/RequestTest.cc
  3681. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. Fixed the bug that HTTP request header for XML-RPC request is not
  3683. parsed properly.
  3684. * src/HttpHeader.cc
  3685. * src/HttpHeaderProcessor.cc
  3686. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Fixed the bug that XML-RPC authorization might be done before HTTP
  3688. request header is fully received.
  3689. * src/HttpServerCommand.cc
  3690. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3691. Documented --xml-rpc-listen-all option in man page.
  3692. * doc/aria2c.1.txt
  3693. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3694. Added --xml-rpc-listen-all option. If true is given to this
  3695. option, aria2 listens incoming XML-RPC requests on all network
  3696. interfaces. If false is given, listens only on local loopback
  3697. interface. The default value is false.
  3698. * src/HttpListenCommand.cc
  3699. * src/OptionHandlerFactory.cc
  3700. * src/SocketCore.cc
  3701. * src/SocketCore.h
  3702. * src/prefs.cc
  3703. * src/prefs.h
  3704. * src/usage_text.h
  3705. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. * Release 1.5.2
  3707. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3708. Updated Ukrainian and Russian translations. Thanks to all
  3709. translators.
  3710. * po/ru.po
  3711. * po/uk.po
  3712. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Bump up version number to 1.5.2
  3714. * configure.ac
  3715. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3716. Get comment, comment.utf-8, created by and creation date from
  3717. .torrent file and print them in -S output.
  3718. * src/bittorrent_helper.cc
  3719. * src/bittorrent_helper.h
  3720. * test/BittorrentHelperTest.cc
  3721. * test/test.torrent
  3722. * test/utf8.torrent
  3723. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3724. Show exact file size along in -S option output.
  3725. * src/Util.h
  3726. * src/bittorrent_helper.cc
  3727. * test/UtilTest.cc
  3728. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3729. Avoided unnecessary memory allocation in
  3730. BitfieldMan::getCompletedLength().
  3731. * src/BitfieldMan.cc
  3732. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3733. Fixed the bug that download fails if
  3734. SocketCore::establishConnection() throws exception and aria2
  3735. doesn't try another address.
  3736. * src/AbstractCommand.cc
  3737. * src/InitiateConnectionCommand.cc
  3738. * src/message.h
  3739. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3741. detected properly.
  3742. * m4/sqlite3.m4
  3743. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  3745. because it causes compile error if PARAMS macro is defined.
  3746. * src/XmlRpcElements.cc
  3747. * src/XmlRpcElements.h
  3748. * src/XmlRpcRequestParserStateImpl.cc
  3749. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3750. * Release 1.5.1
  3751. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3752. Bump up version number to 1.5.1
  3753. * configure.ac
  3754. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3755. Fixed compile error without BitTorrent support
  3756. * src/DefaultBtProgressInfoFile.cc
  3757. * src/DownloadEngine.cc
  3758. * src/DownloadEngine.h
  3759. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3760. Added missing '=' in Download Results
  3761. * src/RequestGroupMan.cc
  3762. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3763. Fixed compiler warning
  3764. * src/DefaultBtProgressInfoFile.cc
  3765. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3766. Fixed compiler warning on 32bit systems.
  3767. * src/DownloadCommand.cc
  3768. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Call flush from ServerStatMan::save()
  3770. * src/ServerStatMan.cc
  3771. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3772. Check stream status after file is opened.
  3773. * src/CookieStorage.cc
  3774. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3775. Rewritten Signature::save()
  3776. * src/Signature.cc
  3777. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3778. Rewritten RequestGroupMan::saveServerStat()
  3779. * src/RequestGroupMan.cc
  3780. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3781. Rewritten stream error handling
  3782. * src/DHTAutoSaveCommand.cc
  3783. * src/DHTRoutingTableDeserializer.cc
  3784. * src/DHTRoutingTableSerializer.cc
  3785. * src/DHTSetup.cc
  3786. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3787. Check stream status after file is opened.
  3788. * src/DefaultBtProgressInfoFile.cc
  3789. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3790. Rewritten stream error handling
  3791. * src/DefaultBtProgressInfoFile.cc
  3792. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3793. Make sure that stream is closed before renaming file. Unit test
  3794. fails on mingw32 in the previous implementation.
  3795. * src/CookieStorage.cc
  3796. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Fixed the unit test error without sqlite3
  3798. * test/CookieStorageTest.cc
  3799. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Fixed the undefined reference error
  3801. * test/HttpResponseTest.cc
  3802. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. * Release 1.5.0
  3804. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3805. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3806. Ukrainian translations. Thanks to all translators.
  3807. * po/ru.po
  3808. * po/it.po
  3809. * po/da.po
  3810. * po/bg.po
  3811. * po/ja.po
  3812. * po/uk.po
  3813. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3814. Added missing src/Logger.cc
  3815. * src/Logger.cc
  3816. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3817. Rewritten Logger to avoiding constly virtual call.
  3818. * src/LogFactory.cc
  3819. * src/LogFactory.h
  3820. * src/Logger.h
  3821. * src/Makefile.am
  3822. * src/Makefile.in
  3823. * src/NullLogger.h: Removed.
  3824. * src/SimpleLogger.cc
  3825. * src/SimpleLogger.h
  3826. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3827. Updated doc
  3828. * src/main.cc
  3829. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3830. Updated debug log message
  3831. * src/AbstractCommand.cc
  3832. * src/message.h
  3833. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3834. Avoid to create zombie process when commands specified in
  3835. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3836. X and NetBSD.
  3837. * src/main.cc
  3838. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3839. Fixed typo
  3840. * src/usage_text.h
  3841. * doc/aria2c.1.txt
  3842. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3843. Documented 'errorCode' of tellStatus in man page.
  3844. * doc/aria2c.1.txt
  3845. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3846. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3847. This key is only available for stopped/completed downloads and its
  3848. value is the error code defined in EXIT STATUS in man page.
  3849. * src/XmlRpcMethodImpl.cc
  3850. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3851. Fixed the bug that session download length is not updated when
  3852. PeerStat is not fastest one.
  3853. * src/SegmentMan.cc
  3854. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3855. Updated doc.
  3856. * doc/aria2c.1.txt
  3857. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3858. Updated doc.
  3859. * src/AbstractCommand.cc
  3860. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Handle the case when DownloadContext has no FileEntry.
  3862. * src/XmlRpcMethodImpl.cc
  3863. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Handle the situation where struct option.name is char *.
  3865. * configure.ac
  3866. * src/OptionParser.cc
  3867. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3868. Code cleanup
  3869. * src/AbstractCommand.cc
  3870. * src/DownloadCommand.cc
  3871. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3872. Use option of each download to create AuthConfig instead of global
  3873. option.
  3874. * src/AuthConfigFactory.cc
  3875. * src/AuthConfigFactory.h
  3876. * src/FtpNegotiationCommand.cc
  3877. * src/HttpRequest.cc
  3878. * src/HttpRequest.h
  3879. * src/HttpRequestCommand.cc
  3880. * src/HttpSkipResponseCommand.cc
  3881. * src/MultiUrlRequestInfo.cc
  3882. * test/AuthConfigFactoryTest.cc
  3883. * test/FtpConnectionTest.cc
  3884. * test/HttpRequestTest.cc
  3885. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3886. Don't call prepareForRetry(1) if all segments are ignored in
  3887. SegmentMan.
  3888. * src/AbstractCommand.cc
  3889. * src/BitfieldMan.cc
  3890. * src/BitfieldMan.h
  3891. * src/SegmentMan.cc
  3892. * src/SegmentMan.h
  3893. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Removed FileEntry::getAssociatedUris()
  3895. * src/FileEntry.h
  3896. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Updated doc: TODO1.5 -> TODO
  3898. * src/FileEntry.cc
  3899. * src/HttpResponseCommand.cc
  3900. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3901. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3902. involved.
  3903. * src/RequestGroup.cc
  3904. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3905. Eliminated duplicated filterBitfield initialization code.
  3906. * src/BitfieldMan.cc
  3907. * src/BitfieldMan.h
  3908. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3909. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3910. relatively naive approach, though). For DownloadFailureException,
  3911. we handle the case when req is null properly.
  3912. * src/AbstractCommand.cc
  3913. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. Added function returning suffix of control file to
  3915. DefaultBtProgressInfoFile.
  3916. * src/DefaultBtProgressInfoFile.cc
  3917. * src/DefaultBtProgressInfoFile.h
  3918. * src/RequestGroup.cc
  3919. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Documented getVersion in man page.
  3921. * doc/aria2c.1.txt
  3922. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. Documented type of offset and num for tellWaiting xml-rpc method.
  3924. * doc/aria2c.1.txt
  3925. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. Implemented getVersion xml-rpc method. This method returns struct
  3927. which has 2 key-value pairs: "version" key is associated to the
  3928. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3929. associated to the list of enabled features, such as "Async DNS",
  3930. "BitTorrent".
  3931. * src/FeatureConfig.h
  3932. * src/XmlRpcMethodFactory.cc
  3933. * src/XmlRpcMethodImpl.cc
  3934. * src/XmlRpcMethodImpl.h
  3935. * test/XmlRpcMethodTest.cc
  3936. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3937. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3938. for compatibility issue.
  3939. * src/SocketCore.cc
  3940. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Fixed compile error with openSSL
  3942. * src/bittorrent_helper.cc
  3943. * src/messageDigest.h
  3944. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3945. Removed bad code: setting certificate type priority to key
  3946. exchange priority.
  3947. * src/SocketCore.cc
  3948. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Disconnect seeder if client is also in seed state.
  3950. * src/BtBitfieldMessage.cc
  3951. * src/BtHaveAllMessage.cc
  3952. * src/BtHaveMessage.cc
  3953. * src/message.h
  3954. * test/BtBitfieldMessageTest.cc
  3955. * test/BtHaveAllMessageTest.cc
  3956. * test/BtHaveMessageTest.cc
  3957. * test/MockPieceStorage.h
  3958. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3959. Keep CreateRequestCommand in queue when no segment is available so
  3960. that they can pick up pieces which slow BitTorrent peers are
  3961. downloading.
  3962. * src/AbstractCommand.cc
  3963. * src/CreateRequestCommand.cc
  3964. * src/CreateRequestCommand.h
  3965. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3966. --bt-stop-timeout now only checks download speed.
  3967. * src/BtStopDownloadCommand.cc
  3968. * src/BtStopDownloadCommand.h
  3969. * src/BtSetup.cc
  3970. * src/usage_text.h
  3971. * doc/aria2c.1.txt
  3972. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3973. Fixed compile error regarding BUFSIZE.
  3974. * src/DownloadCommand.cc
  3975. * src/DownloadCommand.h
  3976. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. Documented tellWaiting xml-rpc method in man page.
  3978. * doc/aria2c.1.txt
  3979. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3980. Bump up version number to 1.5.0
  3981. * configure.ac
  3982. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3983. Removed resolved TODO1.5
  3984. * src/AbstractCommand.cc
  3985. * src/DownloadCommand.cc
  3986. * src/RequestGroup.cc
  3987. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Release pooled and in-flight Request objectsand URIResult objects
  3989. in FileEntry after download completed.
  3990. * src/DownloadContext.cc
  3991. * src/DownloadContext.h
  3992. * src/FileEntry.cc
  3993. * src/FileEntry.h
  3994. * src/RequestGroup.cc
  3995. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Set manual and source attribute in aria2c.1.txt
  3997. * doc/aria2c.1.txt
  3998. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3999. Documented that the default value of --use-head is 'false' in man
  4000. page.
  4001. * doc/aria2c.1.txt
  4002. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4003. Added bt-stop-timeout option to -i list.
  4004. * doc/aria2c.1.txt
  4005. * src/download_helper.cc
  4006. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4007. Fixed typo
  4008. * doc/aria2c.1.txt
  4009. * src/usage_text.h
  4010. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4011. Removed peer-id-prefix option from -i list.
  4012. * doc/aria2c.1.txt
  4013. * src/download_helper.cc
  4014. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4015. Fixed typo
  4016. * doc/aria2c.1.txt
  4017. * src/usage_text.h
  4018. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4019. Documented --bt-stop-timeout option in man page.
  4020. * doc/aria2c.1.txt
  4021. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4022. Updated README regarding multi-file torrent web-seeding.
  4023. * doc/README.txt
  4024. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4025. Updated man page regarding multi-file torrent web-seeding.
  4026. * doc/aria2c.1.txt
  4027. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4028. Updated doc
  4029. * src/version_usage.cc
  4030. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. Winsock select() doesn't work if no socket is in FD_SET. To
  4032. overcome this problem, a dummy socket is added to FD_SET and it is
  4033. given to select().
  4034. * src/SelectEventPoll.cc
  4035. * src/SelectEventPoll.h
  4036. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4037. Disabled --use-head option by default because --use-head=true
  4038. causes problems on some web sites.
  4039. * src/OptionHandlerFactory.cc
  4040. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4041. Print URL List in -S option for torrent.
  4042. * src/bittorrent_helper.cc
  4043. * src/bittorrent_helper.h
  4044. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4045. Allocate buffer in ctor of DownloadCommand.
  4046. * src/DownloadCommand.cc
  4047. * src/DownloadCommand.h
  4048. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4049. Removed DiskAdaptor::onDownloadComplete()
  4050. * src/DirectDiskAdaptor.cc
  4051. * src/DirectDiskAdaptor.h
  4052. * src/DiskAdaptor.h
  4053. * src/MultiDiskAdaptor.cc
  4054. * src/MultiDiskAdaptor.h
  4055. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4056. Committed missing BtStopDownloadCommand.{cc,h}
  4057. * src/BtStopDownloadCommand.cc
  4058. * src/BtStopDownloadCommand.h
  4059. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4060. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  4061. download if the download speed is 0 and the number of seeder is 0
  4062. in consecutive SEC seconds. By default, this function is disabled.
  4063. * src/BtSetup.cc
  4064. * src/Makefile.am
  4065. * src/OptionHandlerFactory.cc
  4066. * src/prefs.cc
  4067. * src/prefs.h
  4068. * src/usage_text.h
  4069. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4070. Removed the call to DiskAdaptor::onDownloadComplete() from
  4071. BtCheckIntegrityEntry and DefaultPieceStorage.
  4072. * src/BtCheckIntegrityEntry.cc
  4073. * src/DefaultPieceStorage.cc
  4074. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4075. Commented out throw statements when number of piece is 0 to
  4076. download 0 length torrent.
  4077. * src/bittorrent_helper.cc
  4078. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4079. Call RequestGroup::createNextCommandWithAdj() from
  4080. BtFileAllocationEntry if at least one FileEntry has URI. The
  4081. static function hasAssociatedUri in RequestGroup.cc is renamed as
  4082. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  4083. * src/BtFileAllocationEntry.cc
  4084. * src/FileEntry.h
  4085. * src/RequestGroup.cc
  4086. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4087. Generate peer ID after SimpleRandomizer is initialized.
  4088. * src/main.cc
  4089. * src/option_processing.cc
  4090. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4091. Removed unused method argument.
  4092. * src/CreateRequestCommand.cc
  4093. * src/RequestGroup.cc
  4094. * src/RequestGroup.h
  4095. * src/RequestGroupMan.cc
  4096. * src/TrackerWatcherCommand.cc
  4097. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4098. Made URI reusing function work.
  4099. * src/CreateRequestCommand.cc
  4100. * src/FileEntry.cc
  4101. * src/FileEntry.h
  4102. * test/FileEntryTest.cc
  4103. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4104. Add formerly fastest PeerStat's sessionDownloadLength to new
  4105. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  4106. bytes in a session.
  4107. * src/PeerStat.cc
  4108. * src/SegmentMan.cc
  4109. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4110. If pipelining is enabled, we can always pool socket.
  4111. * src/HttpDownloadCommand.cc
  4112. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4113. In a single file download, file size becomes known just after
  4114. downloading, set total length to FileEntry object when download
  4115. completed.
  4116. * src/DownloadCommand.cc
  4117. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4118. Use std::vector::reserve() for fileEntries and pieceHashes in
  4119. bittorrent_helper
  4120. * src/bittorrent_helper.cc
  4121. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4122. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  4123. Removed hidden option PREF_RESET_URI.
  4124. * src/AbstractCommand.cc
  4125. * src/OptionHandlerFactory.cc
  4126. * src/prefs.cc
  4127. * src/prefs.h
  4128. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4129. Removed unused variable/function.
  4130. * src/PeerStat.h
  4131. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4132. Show first URL in Download Results if file path is not available.
  4133. * src/FileEntry.h
  4134. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4135. Throw exception if file path doesn't exist in FTP URL.
  4136. * src/InitiateConnectionCommandFactory.cc
  4137. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4138. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  4139. * src/BitfieldMan.cc
  4140. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4141. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  4142. of PeerStat in SegmentMan. peerStats is used for calculating
  4143. download speed. Therefore all active PeerStats should be in
  4144. there. Another one is _fastestPeerStats and it only contains
  4145. fastest PeerStat for each hostname/protocol pair. They are used
  4146. for updating ServerStat.
  4147. * src/DownloadCommand.cc
  4148. * src/Request.h
  4149. * src/RequestGroupMan.cc
  4150. * src/SegmentMan.cc
  4151. * src/SegmentMan.h
  4152. * test/SegmentManTest.cc
  4153. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4154. Try all available addresses returned by DNS until it gets
  4155. connected in HTTP(S)/FTP download
  4156. * src/AbstractCommand.cc
  4157. * src/AbstractCommand.h
  4158. * src/AbstractProxyRequestCommand.cc
  4159. * src/AbstractProxyRequestCommand.h
  4160. * src/DNSCache.h
  4161. * src/DownloadEngine.cc
  4162. * src/DownloadEngine.h
  4163. * src/FtpInitiateConnectionCommand.cc
  4164. * src/FtpInitiateConnectionCommand.h
  4165. * src/FtpNegotiationCommand.cc
  4166. * src/FtpNegotiationCommand.h
  4167. * src/HttpInitiateConnectionCommand.cc
  4168. * src/HttpInitiateConnectionCommand.h
  4169. * src/HttpRequestCommand.cc
  4170. * src/HttpRequestCommand.h
  4171. * src/InitiateConnectionCommand.cc
  4172. * src/InitiateConnectionCommand.h
  4173. * test/DNSCacheTest.cc
  4174. * test/Makefile.am
  4175. * test/SimpleDNSCacheTest.cc
  4176. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4177. Updated doc
  4178. * src/download_helper.cc
  4179. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4180. Refactored fieldMan ctor.
  4181. * src/BitfieldMan.cc
  4182. * src/BitfieldMan.h
  4183. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4184. Don't print "No files to download." message if -S is given.
  4185. * src/main.cc
  4186. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4187. Set referer and method to newly created Request object.
  4188. * src/CreateRequestCommand.cc
  4189. * src/FileEntry.cc
  4190. * src/FileEntry.h
  4191. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4192. Removed ctor of AbstractCommand which doesn't take FileEntry.
  4193. * src/AbstractCommand.cc
  4194. * src/AbstractCommand.h
  4195. * src/CreateRequestCommand.cc
  4196. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4197. Get proxy download working
  4198. * src/AbstractProxyRequestCommand.cc
  4199. * src/AbstractProxyRequestCommand.h
  4200. * src/AbstractProxyResponseCommand.cc
  4201. * src/AbstractProxyResponseCommand.h
  4202. * src/FtpInitiateConnectionCommand.cc
  4203. * src/FtpTunnelRequestCommand.cc
  4204. * src/FtpTunnelRequestCommand.h
  4205. * src/FtpTunnelResponseCommand.cc
  4206. * src/FtpTunnelResponseCommand.h
  4207. * src/HttpInitiateConnectionCommand.cc
  4208. * src/HttpProxyRequestCommand.cc
  4209. * src/HttpProxyRequestCommand.h
  4210. * src/HttpProxyResponseCommand.cc
  4211. * src/HttpProxyResponseCommand.h
  4212. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4213. Use SegmentMan::getSegment(cuid) for single file download.
  4214. * src/AbstractCommand.cc
  4215. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4216. Fixed bufSize calculation
  4217. * src/DownloadCommand.cc
  4218. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4219. Don't append "/" if base URI ends with "/".
  4220. * src/bittorrent_helper.cc
  4221. * test/url-list-multiFile.torrent
  4222. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4223. HTTP pipelining is now working. Fixed Segmention fault in
  4224. BitfieldMan's copy ctor.
  4225. * src/AbstractCommand.cc
  4226. * src/BitfieldMan.cc
  4227. * src/BitfieldMan.h
  4228. * src/DownloadCommand.cc
  4229. * src/HttpDownloadCommand.cc
  4230. * src/HttpRequest.cc
  4231. * src/SegmentMan.cc
  4232. * src/SegmentMan.h
  4233. * test/BitfieldManTest.cc
  4234. * test/SegmentManTest.cc
  4235. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4236. Removed ServerHost. Same functionality is implemented using
  4237. FileEntry's in-flight Request objects.
  4238. * src/AbstractCommand.cc
  4239. * src/BtDependency.cc
  4240. * src/CreateRequestCommand.cc
  4241. * src/FileEntry.cc
  4242. * src/FileEntry.h
  4243. * src/FtpNegotiationCommand.cc
  4244. * src/HttpResponseCommand.cc
  4245. * src/Makefile.am
  4246. * src/Metalink2RequestGroup.cc
  4247. * src/RequestGroup.cc
  4248. * src/RequestGroup.h
  4249. * src/ServerHost.cc: Removed
  4250. * src/ServerHost.h: Removed
  4251. * test/BtDependencyTest.cc
  4252. * test/FileEntryTest.cc
  4253. * test/RequestGroupTest.cc
  4254. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4255. Rewritten PeerStat handling. In the previous implementation,
  4256. faster command tries to find slower command. In this new
  4257. implementation, slower command tries to find faster command.
  4258. PeerStat is now created in each HTTP/FTP request to get download
  4259. rate correctly. If the download range is small, the download rate
  4260. tends to small and this will occur at the later stage of download.
  4261. * src/AbstractCommand.cc
  4262. * src/DownloadCommand.cc
  4263. * src/FileEntry.cc
  4264. * src/FileEntry.h
  4265. * src/Request.cc
  4266. * src/Request.h
  4267. * src/RequestGroup.h
  4268. * src/RequestGroupMan.cc
  4269. * src/SegmentMan.cc
  4270. * src/SegmentMan.h
  4271. * test/SegmentManTest.cc
  4272. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4273. Removed _uris from RequestGroup. All functions that refer to _uris
  4274. were moved to FileEntry. Exit status code are now defined in
  4275. DownloadResultCode.h.
  4276. * src/AbstractCommand.cc
  4277. * src/AdaptiveURISelector.cc
  4278. * src/AdaptiveURISelector.h
  4279. * src/AutoSaveCommand.cc
  4280. * src/BtPostDownloadHandler.cc
  4281. * src/CheckIntegrityDispatcherCommand.cc
  4282. * src/CookieStorage.cc
  4283. * src/DHTAutoSaveCommand.cc
  4284. * src/DHTBucketRefreshCommand.cc
  4285. * src/DHTEntryPointNameResolveCommand.cc
  4286. * src/DHTInteractionCommand.cc
  4287. * src/DHTPeerAnnounceCommand.cc
  4288. * src/DHTTokenUpdateCommand.cc
  4289. * src/DlAbortEx.h
  4290. * src/DlRetryEx.h
  4291. * src/DownloadCommand.cc
  4292. * src/DownloadContext.h
  4293. * src/DownloadFailureException.h
  4294. * src/DownloadResult.h
  4295. * src/DownloadResultCode.h
  4296. * src/FeedbackURISelector.cc
  4297. * src/FeedbackURISelector.h
  4298. * src/FileEntry.cc
  4299. * src/FileEntry.h
  4300. * src/FtpNegotiationCommand.cc
  4301. * src/HttpListenCommand.cc
  4302. * src/HttpResponseCommand.cc
  4303. * src/HttpServerResponseCommand.cc
  4304. * src/HttpSkipResponseCommand.cc
  4305. * src/InOrderURISelector.cc
  4306. * src/InOrderURISelector.h
  4307. * src/Makefile.am
  4308. * src/Makefile.in
  4309. * src/Metalink2RequestGroup.cc
  4310. * src/MultiUrlRequestInfo.cc
  4311. * src/MultiUrlRequestInfo.h
  4312. * src/OptionHandlerFactory.cc
  4313. * src/PeerListenCommand.cc
  4314. * src/RecoverableException.h
  4315. * src/RequestGroup.cc
  4316. * src/RequestGroup.h
  4317. * src/RequestGroupMan.cc
  4318. * src/RequestGroupMan.h
  4319. * src/TimedHaltCommand.cc
  4320. * src/TrackerWatcherCommand.cc
  4321. * src/URIResult.cc
  4322. * src/URIResult.h
  4323. * src/URISelector.h
  4324. * src/XmlRpcMethodImpl.cc
  4325. * src/bittorrent_helper.cc
  4326. * src/bittorrent_helper.h
  4327. * src/download_helper.cc
  4328. * src/main.cc
  4329. * src/option_processing.cc
  4330. * test/BtDependencyTest.cc
  4331. * test/BtPostDownloadHandlerTest.cc
  4332. * test/CookieStorageTest.cc
  4333. * test/DefaultBtMessageDispatcherTest.cc
  4334. * test/DownloadHandlerFactoryTest.cc
  4335. * test/DownloadHelperTest.cc
  4336. * test/FeedbackURISelectorTest.cc
  4337. * test/FileEntryTest.cc
  4338. * test/InOrderURISelectorTest.cc
  4339. * test/Metalink2RequestGroupTest.cc
  4340. * test/MetalinkPostDownloadHandlerTest.cc
  4341. * test/RequestGroupManTest.cc
  4342. * test/RequestGroupTest.cc
  4343. * test/XmlRpcMethodTest.cc
  4344. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4345. Removed MockBtContext.h
  4346. * test/Makefile.am
  4347. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4348. Removed _currentRequest from StreamCheckIntegrityEntry and
  4349. StreamFileAllocationEntry.
  4350. * src/AbstractCommand.cc
  4351. * src/HttpResponseCommand.cc
  4352. * src/RequestGroup.cc
  4353. * src/StreamCheckIntegrityEntry.cc
  4354. * src/StreamCheckIntegrityEntry.h
  4355. * src/StreamFileAllocationEntry.cc
  4356. * src/StreamFileAllocationEntry.h
  4357. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4358. Rewritten DownloadContext and removed SingleFileDownloadContext
  4359. and BtContext and its derived classes. BitTorrent specific
  4360. attributes are now set by DownloadContext::setAttribute() with key
  4361. bittorrent::BITTORRENT.
  4362. * src/AbstractBtMessage.cc
  4363. * src/AbstractBtMessage.h
  4364. * src/AbstractCommand.cc
  4365. * src/AbstractCommand.h
  4366. * src/AbstractProxyRequestCommand.cc
  4367. * src/AbstractProxyResponseCommand.cc
  4368. * src/ActivePeerConnectionCommand.cc
  4369. * src/ActivePeerConnectionCommand.h
  4370. * src/AnnounceList.cc
  4371. * src/BtCheckIntegrityEntry.cc
  4372. * src/BtConstants.h
  4373. * src/BtContext.h: Removed
  4374. * src/BtDependency.cc
  4375. * src/BtExtendedMessage.cc
  4376. * src/BtPieceMessage.cc
  4377. * src/BtPieceMessage.h
  4378. * src/BtPostDownloadHandler.cc
  4379. * src/BtRegistry.cc
  4380. * src/BtRegistry.h
  4381. * src/BtSetup.cc
  4382. * src/CheckIntegrityCommand.cc
  4383. * src/CheckIntegrityEntry.cc
  4384. * src/ChecksumCheckIntegrityEntry.cc
  4385. * src/ConsoleStatCalc.cc
  4386. * src/ContentTypeRequestGroupCriteria.cc
  4387. * src/DHTGetPeersCommand.cc
  4388. * src/DHTGetPeersCommand.h
  4389. * src/DHTPeerLookupTask.cc
  4390. * src/DHTPeerLookupTask.h
  4391. * src/DHTTaskFactory.h
  4392. * src/DHTTaskFactoryImpl.cc
  4393. * src/DHTTaskFactoryImpl.h
  4394. * src/DefaultBtAnnounce.cc
  4395. * src/DefaultBtAnnounce.h
  4396. * src/DefaultBtContext.cc: Removed
  4397. * src/DefaultBtContext.h: Removed
  4398. * src/DefaultBtInteractive.cc
  4399. * src/DefaultBtInteractive.h
  4400. * src/DefaultBtMessageDispatcher.cc
  4401. * src/DefaultBtMessageDispatcher.h
  4402. * src/DefaultBtMessageFactory.cc
  4403. * src/DefaultBtMessageFactory.h
  4404. * src/DefaultBtMessageReceiver.cc
  4405. * src/DefaultBtMessageReceiver.h
  4406. * src/DefaultBtProgressInfoFile.cc
  4407. * src/DefaultBtRequestFactory.cc
  4408. * src/DefaultBtRequestFactory.h
  4409. * src/DefaultExtensionMessageFactory.cc
  4410. * src/DefaultExtensionMessageFactory.h
  4411. * src/DefaultPeerStorage.cc
  4412. * src/DefaultPeerStorage.h
  4413. * src/DefaultPieceStorage.cc
  4414. * src/DefaultSegmentManFactory.cc
  4415. * src/DiskAdaptor.cc
  4416. * src/DiskAdaptor.h
  4417. * src/DownloadContext.cc
  4418. * src/DownloadContext.h
  4419. * src/DownloadEngine.cc
  4420. * src/DownloadEngineFactory.cc
  4421. * src/DownloadHandler.cc
  4422. * src/DownloadResult.h
  4423. * src/FileAllocationCommand.cc
  4424. * src/FileAllocationDispatcherCommand.cc
  4425. * src/FileAllocationEntry.cc
  4426. * src/FileEntry.h
  4427. * src/FillRequestGroupCommand.cc
  4428. * src/FtpDownloadCommand.cc
  4429. * src/FtpFinishDownloadCommand.cc
  4430. * src/FtpInitiateConnectionCommand.cc
  4431. * src/FtpNegotiationCommand.cc
  4432. * src/FtpTunnelRequestCommand.cc
  4433. * src/FtpTunnelResponseCommand.cc
  4434. * src/HandshakeExtensionMessage.cc
  4435. * src/HandshakeExtensionMessage.h
  4436. * src/HaveEraseCommand.cc
  4437. * src/HttpDownloadCommand.cc
  4438. * src/HttpInitiateConnectionCommand.cc
  4439. * src/HttpProxyRequestCommand.cc
  4440. * src/HttpProxyResponseCommand.cc
  4441. * src/HttpRequest.cc
  4442. * src/HttpRequest.h
  4443. * src/HttpRequestCommand.cc
  4444. * src/HttpResponseCommand.cc
  4445. * src/HttpServerBodyCommand.cc
  4446. * src/HttpServerCommand.cc
  4447. * src/HttpSkipResponseCommand.cc
  4448. * src/InitiateConnectionCommandFactory.cc
  4449. * src/InitiatorMSEHandshakeCommand.cc
  4450. * src/InitiatorMSEHandshakeCommand.h
  4451. * src/IteratableChecksumValidator.cc
  4452. * src/IteratableChecksumValidator.h
  4453. * src/IteratableChunkChecksumValidator.cc
  4454. * src/MSEHandshake.cc
  4455. * src/MSEHandshake.h
  4456. * src/Makefile.am
  4457. * src/Makefile.in
  4458. * src/Metalink2RequestGroup.cc
  4459. * src/MetalinkPostDownloadHandler.cc
  4460. * src/MultiDiskAdaptor.cc
  4461. * src/MultiDiskAdaptor.h
  4462. * src/MultiFileAllocationIterator.cc
  4463. * src/MultiUrlRequestInfo.cc
  4464. * src/PeerChokeCommand.cc
  4465. * src/PeerChokeCommand.h
  4466. * src/PeerInitiateConnectionCommand.cc
  4467. * src/PeerInitiateConnectionCommand.h
  4468. * src/PeerInteractionCommand.cc
  4469. * src/PeerInteractionCommand.h
  4470. * src/PeerReceiveHandshakeCommand.cc
  4471. * src/PieceHashCheckIntegrityEntry.cc
  4472. * src/RealtimeCommand.cc
  4473. * src/ReceiverMSEHandshakeCommand.cc
  4474. * src/RequestGroup.cc
  4475. * src/RequestGroup.h
  4476. * src/RequestGroupEntry.cc
  4477. * src/RequestGroupMan.cc
  4478. * src/SeedCheckCommand.cc
  4479. * src/SeedCheckCommand.h
  4480. * src/SegmentMan.cc
  4481. * src/ShareRatioSeedCriteria.h
  4482. * src/SingleFileDownloadContext.cc: Removed
  4483. * src/SingleFileDownloadContext.h: Removed
  4484. * src/SleepCommand.cc
  4485. * src/StreamCheckIntegrityEntry.cc
  4486. * src/TrackerWatcherCommand.cc
  4487. * src/TrackerWatcherCommand.h
  4488. * src/UnknownLengthPieceStorage.cc
  4489. * src/Util.cc
  4490. * src/Util.h
  4491. * src/XmlRpcMethodImpl.cc
  4492. * src/bittorrent_helper.cc
  4493. * src/bittorrent_helper.h
  4494. * src/download_helper.cc
  4495. * src/main.cc
  4496. * src/option_processing.cc
  4497. * test/BitfieldManTest.cc
  4498. * test/BittorrentHelperTest.cc
  4499. * test/BtCancelMessageTest.cc
  4500. * test/BtChokeMessageTest.cc
  4501. * test/BtDependencyTest.cc
  4502. * test/BtPieceMessageTest.cc
  4503. * test/BtPostDownloadHandlerTest.cc
  4504. * test/BtRegistryTest.cc
  4505. * test/BtRejectMessageTest.cc
  4506. * test/BtRequestMessageTest.cc
  4507. * test/DHTPeerAnnounceStorageTest.cc
  4508. * test/DefaultBtAnnounceTest.cc
  4509. * test/DefaultBtContextTest.cc: Removed
  4510. * test/DefaultBtMessageDispatcherTest.cc
  4511. * test/DefaultBtMessageFactoryTest.cc
  4512. * test/DefaultBtProgressInfoFileTest.cc
  4513. * test/DefaultBtRequestFactoryTest.cc
  4514. * test/DefaultExtensionMessageFactoryTest.cc
  4515. * test/DefaultPeerStorageTest.cc
  4516. * test/DefaultPieceStorageTest.cc
  4517. * test/DirectDiskAdaptorTest.cc
  4518. * test/DownloadContextTest.cc
  4519. * test/DownloadHandlerFactoryTest.cc
  4520. * test/DownloadHelperTest.cc
  4521. * test/HandshakeExtensionMessageTest.cc
  4522. * test/HttpRequestTest.cc
  4523. * test/HttpResponseTest.cc
  4524. * test/IteratableChecksumValidatorTest.cc
  4525. * test/IteratableChunkChecksumValidatorTest.cc
  4526. * test/MSEHandshakeTest.cc
  4527. * test/Makefile.am
  4528. * test/Makefile.in
  4529. * test/Metalink2RequestGroupTest.cc
  4530. * test/MetalinkPostDownloadHandlerTest.cc
  4531. * test/MockBtContext.h: Removed
  4532. * test/MockDHTTaskFactory.h
  4533. * test/MockDownloadContext.h: Removed
  4534. * test/MockPieceStorage.h
  4535. * test/MultiDiskAdaptorTest.cc
  4536. * test/MultiFileAllocationIteratorTest.cc
  4537. * test/RequestGroupManTest.cc
  4538. * test/RequestGroupTest.cc
  4539. * test/SegmentManTest.cc
  4540. * test/ShareRatioSeedCriteriaTest.cc
  4541. * test/SingleFileDownloadContextTest.cc: Removed
  4542. * test/UtilTest.cc
  4543. * test/XmlRpcMethodTest.cc
  4544. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4545. Added experimental support of WEB-Seeding for multi-file torrent.
  4546. Due to fundamental changes in file handling in HTTP/FTP code, many
  4547. functions are not working: PeerStat, ServerHost, proxy..etc
  4548. * src/AbstractCommand.cc
  4549. * src/AbstractCommand.h
  4550. * src/BitfieldMan.cc
  4551. * src/BitfieldMan.h
  4552. * src/CreateRequestCommand.cc
  4553. * src/CreateRequestCommand.h
  4554. * src/DefaultPieceStorage.cc
  4555. * src/DefaultPieceStorage.h
  4556. * src/DownloadCommand.cc
  4557. * src/DownloadCommand.h
  4558. * src/DownloadContext.cc
  4559. * src/DownloadContext.h
  4560. * src/FileEntry.cc
  4561. * src/FileEntry.h
  4562. * src/FtpDownloadCommand.cc
  4563. * src/FtpDownloadCommand.h
  4564. * src/FtpFinishDownloadCommand.cc
  4565. * src/FtpFinishDownloadCommand.h
  4566. * src/FtpInitiateConnectionCommand.cc
  4567. * src/FtpInitiateConnectionCommand.h
  4568. * src/FtpNegotiationCommand.cc
  4569. * src/FtpNegotiationCommand.h
  4570. * src/FtpTunnelResponseCommand.cc
  4571. * src/HttpDownloadCommand.cc
  4572. * src/HttpDownloadCommand.h
  4573. * src/HttpInitiateConnectionCommand.cc
  4574. * src/HttpInitiateConnectionCommand.h
  4575. * src/HttpProxyResponseCommand.cc
  4576. * src/HttpRequest.cc
  4577. * src/HttpRequest.h
  4578. * src/HttpRequestCommand.cc
  4579. * src/HttpRequestCommand.h
  4580. * src/HttpResponseCommand.cc
  4581. * src/HttpResponseCommand.h
  4582. * src/HttpSkipResponseCommand.cc
  4583. * src/HttpSkipResponseCommand.h
  4584. * src/InitiateConnectionCommand.cc
  4585. * src/InitiateConnectionCommand.h
  4586. * src/InitiateConnectionCommandFactory.cc
  4587. * src/InitiateConnectionCommandFactory.h
  4588. * src/Makefile.am
  4589. * src/PieceStorage.h
  4590. * src/RequestGroup.cc
  4591. * src/RequestGroup.h
  4592. * src/RequestGroupMan.cc
  4593. * src/SegmentMan.cc
  4594. * src/SegmentMan.h
  4595. * src/SingleFileDownloadContext.h
  4596. * src/StreamFileAllocationEntry.cc
  4597. * src/TrackerWatcherCommand.cc
  4598. * src/UnknownLengthPieceStorage.cc
  4599. * src/UnknownLengthPieceStorage.h
  4600. * src/array_fun.h
  4601. * src/bitfield.h
  4602. * src/download_helper.cc
  4603. * test/DownloadContextTest.cc
  4604. * test/Makefile.am
  4605. * test/MockDownloadContext.h
  4606. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4607. Added tellWaiting XML-RPC method.
  4608. * src/SingleFileDownloadContext.cc
  4609. * src/XmlRpcMethodFactory.cc
  4610. * src/XmlRpcMethodImpl.cc
  4611. * src/XmlRpcMethodImpl.h
  4612. * test/XmlRpcMethodTest.cc
  4613. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4614. Updated CookieStorageTest
  4615. * test/CookieStorageTest.cc
  4616. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4617. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  4618. handle excepion inside these functions.
  4619. * src/LibgnutlsTLSContext.cc
  4620. * src/LibgnutlsTLSContext.h
  4621. * src/LibsslTLSContext.cc
  4622. * src/LibsslTLSContext.h
  4623. * src/MultiUrlRequestInfo.cc
  4624. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4625. Added comment
  4626. * src/RequestGroup.cc
  4627. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4628. In CookieStorage::load() and saveNsFormat(), handle exception
  4629. inside the functions. When saving Cookies, first write temporary
  4630. file and after successful writes, then renames it to final
  4631. destination.
  4632. * src/CookieStorage.cc
  4633. * src/CookieStorage.h
  4634. * src/MultiUrlRequestInfo.cc
  4635. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4636. The default value of --dir option is the absolute path to the
  4637. current directory. If getcwd() is failed, then it is ".", which is
  4638. the same value with old implementation. This change is necessary
  4639. because after daemon() call, the current working directory is
  4640. changed to /.
  4641. * src/File.cc
  4642. * src/File.h
  4643. * src/OptionHandlerFactory.cc
  4644. * src/option_processing.cc
  4645. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4646. Call daemon() with arguments(0,0), which means daemon() changes
  4647. current working directory to / and redirects stdin, stdout and
  4648. stderr to /dev/null.
  4649. * src/option_processing.cc
  4650. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4651. Small performance optimizations.
  4652. * src/RequestGroupMan.cc
  4653. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4654. Added _xmlRpc member variable to RequestGroupMan to reduce the
  4655. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  4656. * src/RequestGroupMan.cc
  4657. * src/RequestGroupMan.h
  4658. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4659. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  4660. setNoWiat(true) if newly created command calls
  4661. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  4662. * src/HttpListenCommand.cc
  4663. * src/HttpServerBodyCommand.cc
  4664. * src/HttpServerCommand.cc
  4665. * src/HttpServerResponseCommand.cc
  4666. * src/InitiateConnectionCommand.cc
  4667. * src/RequestGroup.cc
  4668. * src/StreamFileAllocationEntry.cc
  4669. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4670. Removed include vector
  4671. * src/BtRegistry.h
  4672. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4673. Rewritten BtRegistry
  4674. * src/BtRegistry.cc
  4675. * src/BtRegistry.h
  4676. * src/BtSetup.cc
  4677. * src/ConsoleStatCalc.cc
  4678. * src/PeerInteractionCommand.cc
  4679. * src/PeerReceiveHandshakeCommand.cc
  4680. * src/ReceiverMSEHandshakeCommand.cc
  4681. * src/RequestGroup.cc
  4682. * src/XmlRpcMethodImpl.cc
  4683. * test/BtRegistryTest.cc
  4684. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4685. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  4686. * src/DefaultBtProgressInfoFile.cc
  4687. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4688. Throw an exception if position is less than 0.
  4689. * src/XmlRpcMethodImpl.cc
  4690. * test/XmlRpcMethodTest.cc
  4691. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4692. Use writeFilePath() in ConsoleStatCalc.cc
  4693. * src/ConsoleStatCalc.cc
  4694. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4695. Receive the return value as const reference from
  4696. DownloadContext::getFileEntries().
  4697. * src/DefaultPieceStorage.cc
  4698. * src/RequestGroupMan.cc
  4699. * src/XmlRpcMethodImpl.cc
  4700. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4701. DownloadContext now has _fileEntries so that
  4702. DownloadContext::getFileEntries() can returns its const reference.
  4703. * src/DefaultBtContext.cc
  4704. * src/DefaultBtContext.h
  4705. * src/DownloadContext.cc
  4706. * src/DownloadContext.h
  4707. * src/SingleFileDownloadContext.cc
  4708. * src/SingleFileDownloadContext.h
  4709. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4710. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4711. writeFilePath() function template from RequestGroupMan.cc to
  4712. FileEntry.h
  4713. * src/FileEntry.h
  4714. * src/RequestGroupMan.cc
  4715. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. Documented 'position' parameter is starting from 0 in man page.
  4717. * doc/aria2c.1.txt
  4718. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4719. Updated doc.
  4720. * src/MSEHandshake.cc
  4721. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4722. Removed _acceptFeatures and its accessor functions from
  4723. RequestGroup since they are not used practically.
  4724. * src/HttpRequestCommand.cc
  4725. * src/RequestGroup.cc
  4726. * src/RequestGroup.h
  4727. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4728. Removed member _maxTries from RequestGroup class to avoid
  4729. duplicate option value. Those classes who refer this variable
  4730. should use option value of PREF_MAX_TRIES directly.
  4731. * src/AbstractCommand.cc
  4732. * src/RequestGroup.cc
  4733. * src/RequestGroup.h
  4734. * src/TrackerWatcherCommand.cc
  4735. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4736. * Release 1.4.1
  4737. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4738. Fixed compiler warnings on netbsd
  4739. * src/DHTConnectionImpl.cc
  4740. * src/PeerListenCommand.cc
  4741. * src/PeerSessionResource.cc
  4742. * src/SegmentMan.cc
  4743. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4744. Updated Ukrainian translation. Thanks to all translators.
  4745. * po/uk.po
  4746. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4747. Bump up version number to 1.4.1.
  4748. * configure.ac
  4749. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4750. Added unit tests for strjoin, strconcat and strappend.
  4751. * test/a2functionalTest.cc
  4752. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4753. Rewritten strconcat and strappend using operator+ instead of
  4754. append().
  4755. * src/a2functional.h
  4756. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4757. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  4758. is enabled.
  4759. * src/Makefile.am
  4760. * test/Makefile.am
  4761. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4762. Added countSeeder() function which counts seeder in the given
  4763. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  4764. * src/ConsoleStatCalc.cc
  4765. * src/Peer.h
  4766. * src/XmlRpcMethodImpl.cc
  4767. * test/PeerTest.cc
  4768. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4769. Documented missing seeder in getPeers xml-rpc method.
  4770. Documented uploadLength and numSeeders.
  4771. * doc/aria2c.1.txt
  4772. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4773. Added uploadLength and numSeeders to the response of tellStatus
  4774. xml-rpc method. Assert that PeerStorage instance is not null
  4775. instead of checking if statement. It should be non-null in this
  4776. context.
  4777. * src/XmlRpcMethodImpl.cc
  4778. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4779. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  4780. * src/XmlRpcResponse.cc
  4781. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4782. Avoid intermediate object during string concatenation.
  4783. * src/HttpRequest.cc
  4784. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4785. Added strjoin function template. Use it in pathJoin()
  4786. * src/Util.h
  4787. * src/a2functional.h
  4788. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4789. Avoid intermediate object during string concatenation. Replaced
  4790. post-increment unary operator with pre-increment one in for loop.
  4791. * src/AdaptiveURISelector.cc
  4792. * src/AnnounceList.cc
  4793. * src/AuthConfig.h
  4794. * src/BtBitfieldMessage.cc
  4795. * src/BtExtendedMessage.cc
  4796. * src/BtHandshakeMessage.cc
  4797. * src/BtPieceMessage.cc
  4798. * src/BtPortMessage.cc
  4799. * src/Cookie.cc
  4800. * src/DHTAnnouncePeerMessage.cc
  4801. * src/DHTAutoSaveCommand.cc
  4802. * src/DHTGetPeersReplyMessage.cc
  4803. * src/DHTNode.cc
  4804. * src/DHTQueryMessage.cc
  4805. * src/DHTResponseMessage.cc
  4806. * src/DHTUnknownMessage.cc
  4807. * src/DefaultBtAnnounce.cc
  4808. * src/DefaultBtContext.cc
  4809. * src/DefaultBtInteractive.cc
  4810. * src/DefaultBtProgressInfoFile.cc
  4811. * src/DefaultPeerStorage.cc
  4812. * src/DownloadEngine.cc
  4813. * src/FeatureConfig.cc
  4814. * src/File.cc
  4815. * src/FtpConnection.cc
  4816. * src/FtpNegotiationCommand.cc
  4817. * src/HandshakeExtensionMessage.cc
  4818. * src/HttpConnection.cc
  4819. * src/HttpRequest.cc
  4820. * src/HttpResponseCommand.cc
  4821. * src/HttpServer.cc
  4822. * src/IndexBtMessage.cc
  4823. * src/Metalink2RequestGroup.cc
  4824. * src/OptionHandlerImpl.h
  4825. * src/PStringBuildVisitor.cc
  4826. * src/Peer.cc
  4827. * src/PeerListenCommand.cc
  4828. * src/Piece.cc
  4829. * src/RangeBtMessage.cc
  4830. * src/Request.cc
  4831. * src/Request.h
  4832. * src/RequestGroup.cc
  4833. * src/RequestGroupMan.cc
  4834. * src/ServerStat.cc
  4835. * src/ServerStatMan.cc
  4836. * src/UTPexExtensionMessage.cc
  4837. * src/Util.cc
  4838. * src/a2functional.h
  4839. * src/download_helper.cc
  4840. * src/messageDigest.cc
  4841. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4842. Unchoke a peer randomly at first and second choke round in seed
  4843. state.
  4844. * src/BtSeederStateChoke.cc
  4845. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4846. Added (sock_t) to quiet compiler warnings in MinGW
  4847. * src/SocketCore.cc
  4848. * src/SocketCore.h
  4849. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4850. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4851. * src/EpollEventPoll.h
  4852. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4853. Added fork() emulation using CreateProcess() in MinGW
  4854. * src/RequestGroupMan.cc
  4855. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4856. * Release 1.4.0
  4857. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4858. Added utf8.torrent to EXTRA_DIST
  4859. * test/Makefile.am
  4860. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4861. Fixed docs of aria2.addMetalink xml-rpc method.
  4862. * doc/aria2c.1.txt
  4863. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4864. Added Slovak translation. Updated Ukrainian and Brazilian
  4865. Portuguese translation. Thanks to all translators.
  4866. * po/sk.po
  4867. * po/uk.po
  4868. * po/pt_BR.po
  4869. * po/LINGUAS
  4870. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4871. Added test case for XmlRpcProcessor to fail to parse malformed
  4872. document.
  4873. * test/XmlRpcRequestProcessorTest.cc
  4874. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4875. Removed *.gmo files in po because they are generated on 'make
  4876. dist'
  4877. * po/*.gmo
  4878. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4879. Documented max-concurrent-downloads of changeGlobalOption method
  4880. in man page.
  4881. * doc/aria2c.1.txt
  4882. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4883. Added max-concurrent-downloads option to changeGlobalOption
  4884. xml-rpc method. Rewritten loop conditional in
  4885. RequestGroupMan::fillRequestGroupFromReserver().
  4886. * src/RequestGroupMan.cc
  4887. * src/RequestGroupMan.h
  4888. * src/XmlRpcMethod.cc
  4889. * src/XmlRpcMethodImpl.cc
  4890. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4891. Documented position parameter in man page.
  4892. * doc/aria2c.1.txt
  4893. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4894. Added 'position' parameter to addUri, addTorrent and addMetalink
  4895. xml-rpc method.
  4896. * src/RequestGroupMan.cc
  4897. * src/RequestGroupMan.h
  4898. * src/XmlRpcMethodImpl.cc
  4899. * test/XmlRpcMethodTest.cc
  4900. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4901. Removed Peer.cc from compile source list when --disable-bittorrent
  4902. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4903. takes Peer.
  4904. * src/DefaultPieceStorage.cc
  4905. * src/DefaultPieceStorage.h
  4906. * src/Makefile.am
  4907. * src/PieceStorage.h
  4908. * src/UnknownLengthPieceStorage.cc
  4909. * src/UnknownLengthPieceStorage.h
  4910. * test/MockPieceStorage.h
  4911. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4912. Implemented getter methods in header files to give them more
  4913. chance of optimization.
  4914. Return const reference for SharadHandle if possible.
  4915. * src/AbstractAuthResolver.cc
  4916. * src/AbstractAuthResolver.h
  4917. * src/AbstractBtMessage.cc
  4918. * src/AbstractBtMessage.h
  4919. * src/AbstractSingleDiskAdaptor.cc
  4920. * src/AbstractSingleDiskAdaptor.h
  4921. * src/AsyncNameResolver.cc
  4922. * src/AsyncNameResolver.h
  4923. * src/BNode.cc
  4924. * src/BNode.h
  4925. * src/BitfieldMan.cc
  4926. * src/BitfieldMan.h
  4927. * src/BtAbortOutstandingRequestEvent.h
  4928. * src/BtExtendedMessage.cc
  4929. * src/BtExtendedMessage.h
  4930. * src/BtSeederStateChoke.cc
  4931. * src/BtSeederStateChoke.h
  4932. * src/Cookie.cc
  4933. * src/Cookie.h
  4934. * src/DHTBucket.cc
  4935. * src/DHTBucket.h
  4936. * src/DHTConnectionImpl.cc
  4937. * src/DHTConnectionImpl.h
  4938. * src/DHTFindNodeReplyMessage.cc
  4939. * src/DHTFindNodeReplyMessage.h
  4940. * src/DHTGetPeersReplyMessage.cc
  4941. * src/DHTGetPeersReplyMessage.h
  4942. * src/DHTInteractionCommand.cc
  4943. * src/DHTMessage.cc
  4944. * src/DHTMessage.h
  4945. * src/DHTMessageDispatcherImpl.cc
  4946. * src/DHTMessageEntry.cc
  4947. * src/DHTMessageReceiver.cc
  4948. * src/DHTMessageReceiver.h
  4949. * src/DHTMessageTrackerEntry.cc
  4950. * src/DHTMessageTrackerEntry.h
  4951. * src/DHTPeerAnnounceEntry.cc
  4952. * src/DHTPeerAnnounceEntry.h
  4953. * src/DHTPeerLookupTask.cc
  4954. * src/DHTPeerLookupTask.h
  4955. * src/DHTRoutingTableDeserializer.cc
  4956. * src/DHTRoutingTableDeserializer.h
  4957. * src/DefaultBtAnnounce.cc
  4958. * src/DefaultBtAnnounce.h
  4959. * src/DefaultBtMessageDispatcher.cc
  4960. * src/DefaultBtMessageDispatcher.h
  4961. * src/DefaultBtRequestFactory.cc
  4962. * src/DefaultBtRequestFactory.h
  4963. * src/DiskAdaptor.cc
  4964. * src/DiskAdaptor.h
  4965. * src/DownloadContext.cc
  4966. * src/DownloadContext.h
  4967. * src/DownloadEngine.cc
  4968. * src/DownloadEngine.h
  4969. * src/EpollEventPoll.cc
  4970. * src/EpollEventPoll.h
  4971. * src/FtpConnection.cc
  4972. * src/FtpConnection.h
  4973. * src/HttpConnection.cc
  4974. * src/HttpConnection.h
  4975. * src/HttpHeader.cc
  4976. * src/HttpHeader.h
  4977. * src/HttpRequest.cc
  4978. * src/HttpRequest.h
  4979. * src/HttpResponse.cc
  4980. * src/HttpResponse.h
  4981. * src/LibsslTLSContext.cc
  4982. * src/LibsslTLSContext.h
  4983. * src/MSEHandshake.cc
  4984. * src/MSEHandshake.h
  4985. * src/MetalinkEntry.cc
  4986. * src/MetalinkEntry.h
  4987. * src/MetalinkParserController.cc
  4988. * src/MetalinkParserController.h
  4989. * src/MetalinkParserStateMachine.cc
  4990. * src/MetalinkParserStateMachine.h
  4991. * src/MultiDiskAdaptor.cc
  4992. * src/MultiDiskAdaptor.h
  4993. * src/NetrcAuthResolver.cc
  4994. * src/NetrcAuthResolver.h
  4995. * src/Peer.cc
  4996. * src/Peer.h
  4997. * src/PeerSessionResource.cc
  4998. * src/PeerSessionResource.h
  4999. * src/Piece.cc
  5000. * src/Piece.h
  5001. * src/PieceStatMan.cc
  5002. * src/PieceStatMan.h
  5003. * src/Request.cc
  5004. * src/Request.h
  5005. * src/RequestGroup.cc
  5006. * src/RequestGroup.h
  5007. * src/RequestGroupMan.cc
  5008. * src/RequestGroupMan.h
  5009. * src/RequestSlot.cc
  5010. * src/RequestSlot.h
  5011. * src/SegmentMan.cc
  5012. * src/SegmentMan.h
  5013. * src/SelectEventPoll.cc
  5014. * src/SelectEventPoll.h
  5015. * src/ServerStat.cc
  5016. * src/ServerStat.h
  5017. * src/Signature.cc
  5018. * src/Signature.h
  5019. * src/URIResult.cc
  5020. * src/URIResult.h
  5021. * src/UTPexExtensionMessage.cc
  5022. * src/UTPexExtensionMessage.h
  5023. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5024. Fixed compile error without BitTorrent and Metalink support.
  5025. * src/XmlRpcMethod.cc
  5026. * src/XmlRpcMethodFactory.cc
  5027. * src/XmlRpcMethodImpl.cc
  5028. * src/XmlRpcMethodImpl.h
  5029. * test/XmlRpcMethodTest.cc
  5030. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5031. Rewritten the help message for --allow-overwrite option.
  5032. * doc/aria2c.1.txt
  5033. * src/usage_text.h
  5034. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5035. Fixed typo
  5036. * doc/aria2c.1.txt
  5037. * src/usage_text.h
  5038. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5039. Updated README for 1.4.0 release. Use new table syntax of
  5040. asciidoc.
  5041. * README
  5042. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Documented --xml-rpc-max-request-size option in man page.
  5044. * doc/aria2c.1.txt
  5045. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5046. Moved C_* constants from BtContext to DefaultBtContext.
  5047. * src/BtContext.cc: Removed.
  5048. * src/BtContext.h
  5049. * src/DefaultBtContext.cc
  5050. * src/DefaultBtContext.h
  5051. * src/Makefile.am
  5052. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5053. Use name.utf-8 and path.utf-8 key in higher priority than name and
  5054. path key respectively when persing .torrent file.
  5055. * src/BtContext.cc
  5056. * src/BtContext.h
  5057. * src/DefaultBtContext.cc
  5058. * test/DefaultBtContextTest.cc
  5059. * test/utf8.torrent
  5060. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5061. Added --xml-rpc-max-request-size option to limit the size of
  5062. XML-RPC request.
  5063. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Documented XML-RPC API in man page.
  5065. * doc/aria2c.1.txt
  5066. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5067. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  5068. will break strict-aliasing rules
  5069. * src/PeerConnection.cc
  5070. * test/DHTRoutingTableSerializerTest.cc
  5071. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5072. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  5073. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  5074. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  5075. PKG_CHECK_MODULES macro uses latter name.
  5076. * m4/sqlite3.m4
  5077. * src/Makefile.am
  5078. * test/Makefile.am
  5079. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5080. Fixed typo
  5081. * configure.ac
  5082. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5083. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  5084. presence of libgnutls using pkg-config first. If it fails, fall
  5085. back to old macro libgnutls.m4.
  5086. * configure.ac
  5087. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. Use s itself instead of !s.bad()
  5089. * src/CookieStorage.cc
  5090. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5091. Documented --on-download-* option and --save-cookies option in man
  5092. page.
  5093. * doc/aria2c.1.txt
  5094. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5095. Set possible values for --load-cookie option to "/path/to/file".
  5096. * src/OptionHandlerFactory.cc
  5097. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5098. Added --save-cookies option.
  5099. * src/Cookie.cc
  5100. * src/Cookie.h
  5101. * src/CookieStorage.cc
  5102. * src/CookieStorage.h
  5103. * src/MultiUrlRequestInfo.cc
  5104. * src/OptionHandlerFactory.cc
  5105. * src/prefs.cc
  5106. * src/prefs.h
  5107. * src/usage_text.h
  5108. * test/CookieStorageTest.cc
  5109. * test/CookieTest.cc
  5110. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5111. Removed tellAll XML-RPC command because its reponse tends to be
  5112. big if stopped/waiting downloads pile up.
  5113. * src/XmlRpcMethodFactory.cc
  5114. * src/XmlRpcMethodImpl.cc
  5115. * src/XmlRpcMethodImpl.h
  5116. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5117. Added the ability to execute command when download starts and
  5118. stops. You can also specify command for particular cases such as
  5119. complete/error download. Added --on-download-start,
  5120. --on-download-stop, --on-download-complete and --on-download-error
  5121. option.
  5122. * src/OptionHandlerFactory.cc
  5123. * src/RequestGroupMan.cc
  5124. * src/prefs.cc
  5125. * src/prefs.h
  5126. * src/usage_text.h
  5127. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5128. Fixed test error
  5129. * test/BencodeTest.cc
  5130. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5131. Added unit tests.
  5132. * test/XmlRpcMethodTest.cc
  5133. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5134. Made exception message more verbose.
  5135. * src/bencode.cc
  5136. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5137. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  5138. space in console readout. Also they are now shown in MiB/s if
  5139. speed > 1024KiB/s.
  5140. * src/ConsoleStatCalc.cc
  5141. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5142. Added SEED to console output, which represents the number of
  5143. seeders currently the client is connecting to.
  5144. * src/ConsoleStatCalc.cc
  5145. * src/ConsoleStatCalc.h
  5146. * src/DownloadEngine.cc
  5147. * src/NullStatCalc.h
  5148. * src/StatCalc.h
  5149. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5150. Added source filename(__FILE__) and line number(__LINE__) to
  5151. exception message.
  5152. * src/AbstractCommand.cc
  5153. * src/AbstractDiskWriter.cc
  5154. * src/AbstractProxyResponseCommand.cc
  5155. * src/BDE.h
  5156. * src/BtAllowedFastMessage.cc
  5157. * src/BtHandshakeMessageValidator.h
  5158. * src/BtHaveAllMessage.cc
  5159. * src/BtHaveNoneMessage.cc
  5160. * src/BtPieceMessage.cc
  5161. * src/BtRejectMessage.cc
  5162. * src/ChunkedDecoder.cc
  5163. * src/CookieStorage.cc
  5164. * src/DHTAnnouncePeerMessage.cc
  5165. * src/DHTEntryPointNameResolveCommand.cc
  5166. * src/DHTMessageFactoryImpl.cc
  5167. * src/DHTMessageTracker.cc
  5168. * src/DHTRoutingTableDeserializer.cc
  5169. * src/DHTRoutingTableSerializer.cc
  5170. * src/DHTSetup.cc
  5171. * src/DHTTokenTracker.cc
  5172. * src/DefaultBtAnnounce.cc
  5173. * src/DefaultBtContext.cc
  5174. * src/DefaultBtInteractive.cc
  5175. * src/DefaultBtMessageFactory.cc
  5176. * src/DefaultBtProgressInfoFile.cc
  5177. * src/DefaultExtensionMessageFactory.cc
  5178. * src/DlAbortEx.h
  5179. * src/DlRetryEx.h
  5180. * src/DownloadCommand.cc
  5181. * src/DownloadEngineFactory.cc
  5182. * src/DownloadFailureException.h
  5183. * src/Exception.cc
  5184. * src/Exception.h
  5185. * src/ExpatMetalinkProcessor.cc
  5186. * src/ExpatXmlRpcRequestProcessor.cc
  5187. * src/FallocFileAllocationIterator.cc
  5188. * src/FatalException.h
  5189. * src/FtpConnection.cc
  5190. * src/FtpFinishDownloadCommand.cc
  5191. * src/FtpInitiateConnectionCommand.cc
  5192. * src/FtpNegotiationCommand.cc
  5193. * src/GZipDecoder.cc
  5194. * src/HandshakeExtensionMessage.cc
  5195. * src/HttpConnection.cc
  5196. * src/HttpHeaderProcessor.cc
  5197. * src/HttpInitiateConnectionCommand.cc
  5198. * src/HttpResponse.cc
  5199. * src/HttpResponseCommand.cc
  5200. * src/HttpServer.cc
  5201. * src/HttpSkipResponseCommand.cc
  5202. * src/InitiateConnectionCommandFactory.cc
  5203. * src/IteratableChunkChecksumValidator.cc
  5204. * src/LibgcryptARC4Context.h
  5205. * src/LibgcryptARC4Decryptor.h
  5206. * src/LibgcryptARC4Encryptor.h
  5207. * src/LibgcryptDHKeyExchange.h
  5208. * src/LibgnutlsTLSContext.cc
  5209. * src/LibsslARC4Context.h
  5210. * src/LibsslARC4Decryptor.h
  5211. * src/LibsslARC4Encryptor.h
  5212. * src/LibsslDHKeyExchange.h
  5213. * src/LibsslTLSContext.cc
  5214. * src/MSEHandshake.cc
  5215. * src/MessageDigestHelper.cc
  5216. * src/MetalinkHelper.cc
  5217. * src/MultiDiskAdaptor.cc
  5218. * src/NameMatchOptionHandler.h
  5219. * src/NameResolver.cc
  5220. * src/Netrc.cc
  5221. * src/NsCookieParser.cc
  5222. * src/OptionHandlerException.cc
  5223. * src/OptionHandlerException.h
  5224. * src/OptionHandlerImpl.h
  5225. * src/OptionParser.cc
  5226. * src/ParameterizedStringParser.cc
  5227. * src/PeerAbstractCommand.cc
  5228. * src/PeerConnection.cc
  5229. * src/PeerMessageUtil.cc
  5230. * src/PeerReceiveHandshakeCommand.cc
  5231. * src/Platform.cc
  5232. * src/ReceiverMSEHandshakeCommand.cc
  5233. * src/RecoverableException.h
  5234. * src/RequestGroup.cc
  5235. * src/SimpleLogger.cc
  5236. * src/SocketCore.cc
  5237. * src/Sqlite3MozCookieParser.cc
  5238. * src/UTPexExtensionMessage.cc
  5239. * src/Util.cc
  5240. * src/XML2SAXMetalinkProcessor.cc
  5241. * src/Xml2XmlRpcRequestProcessor.cc
  5242. * src/XmlRpcMethodImpl.cc
  5243. * src/bencode.cc
  5244. * src/download_helper.cc
  5245. * src/messageDigest.h
  5246. * test/ExceptionTest.cc
  5247. * test/TestUtil.cc
  5248. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5249. Bump up version number to 1.4.0
  5250. * configure.ac
  5251. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5252. Added 2files.metalink to EXTRA_DIST
  5253. * test/Makefile.am
  5254. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5255. Added missing 2files.metalink
  5256. * test/2files.metalink
  5257. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5258. Show "[MEMORY]" prefix before filename in download summary if it
  5259. is downloaded into memory.
  5260. * src/DownloadResult.h
  5261. * src/RequestGroup.cc
  5262. * src/RequestGroupMan.cc
  5263. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5264. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  5265. * src/ExpatXmlRpcRequestProcessor.cc
  5266. * src/Xml2XmlRpcRequestProcessor.cc
  5267. * src/message.h
  5268. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5269. Defined const BDEs to avoid duplicate instantiation.
  5270. Defined MSG_GID_NOT_PROVIDED.
  5271. * src/XmlRpcMethodImpl.cc
  5272. * src/message.h
  5273. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5274. Code cleanup
  5275. * src/Xml2XmlRpcRequestProcessor.cc
  5276. * src/Xml2XmlRpcRequestProcessor.h
  5277. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5278. Defined ENABLE_XML_RPC
  5279. * configure.ac
  5280. * configure
  5281. * config.h.in
  5282. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5283. Added ExpatXmlRpcRequestProcessor
  5284. * src/ExpatXmlRpcRequestProcessor.cc
  5285. * src/ExpatXmlRpcRequestProcessor.h
  5286. * src/Makefile.am
  5287. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5288. Added tests for addTorrent and addMetalink command.
  5289. * test/TestUtil.cc
  5290. * test/TestUtil.h
  5291. * test/XmlRpcMethodTest.cc
  5292. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5293. Corrected the description of --file-allocation option.
  5294. * doc/aria2c.1.txt
  5295. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5296. Added tellAll command.
  5297. * src/XmlRpcMethodFactory.cc
  5298. * src/XmlRpcMethodImpl.cc
  5299. * src/XmlRpcMethodImpl.h
  5300. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  5302. * src/XmlRpcMethodImpl.cc
  5303. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5304. Added changeGlobalOption command. Currently,
  5305. max-overall-download-limit and max-overall-upload-limit option are
  5306. available.
  5307. * src/RequestGroupMan.h
  5308. * src/XmlRpcMethod.cc
  5309. * src/XmlRpcMethod.h
  5310. * src/XmlRpcMethodFactory.cc
  5311. * src/XmlRpcMethodImpl.cc
  5312. * src/XmlRpcMethodImpl.h
  5313. * test/XmlRpcMethodTest.cc
  5314. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5315. Added changeOption command. Currently, max-download-limit,
  5316. max-upload-limit option are available in this command.
  5317. * src/RequestGroup.h
  5318. * src/XmlRpcMethod.cc
  5319. * src/XmlRpcMethod.h
  5320. * src/XmlRpcMethodFactory.cc
  5321. * src/XmlRpcMethodImpl.cc
  5322. * src/XmlRpcMethodImpl.h
  5323. * test/XmlRpcMethodTest.cc
  5324. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5325. Added purgeDownloadResult command.
  5326. * src/RequestGroupMan.cc
  5327. * src/RequestGroupMan.h
  5328. * src/XmlRpcMethodFactory.cc
  5329. * src/XmlRpcMethodImpl.cc
  5330. * src/XmlRpcMethodImpl.h
  5331. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5332. Refactored.
  5333. * src/XmlRpcMethod.cc
  5334. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5335. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  5336. XmlRpcResponse.
  5337. * src/HttpServerBodyCommand.cc
  5338. * src/Makefile.am
  5339. * src/XmlRpcMethod.cc
  5340. * src/XmlRpcMethod.h
  5341. * src/XmlRpcMethodImpl.cc
  5342. * src/XmlRpcResponse.cc
  5343. * src/XmlRpcResponse.h
  5344. * test/XmlRpcMethodTest.cc
  5345. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5346. In XML-RPC option struct, header and index-out option can take
  5347. array as value.
  5348. * src/XmlRpcMethod.cc
  5349. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5350. Removed unused option member from PeerConnection.
  5351. * src/InitiatorMSEHandshakeCommand.cc
  5352. * src/PeerConnection.cc
  5353. * src/PeerConnection.h
  5354. * src/PeerInteractionCommand.cc
  5355. * src/PeerReceiveHandshakeCommand.cc
  5356. * src/ReceiverMSEHandshakeCommand.cc
  5357. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5358. Added "seeder" key to getPeers response.
  5359. * src/XmlRpcMethodImpl.cc
  5360. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5361. Added addMetalink XML-RPC command.
  5362. * src/XmlRpcMethodFactory.cc
  5363. * src/XmlRpcMethodImpl.cc
  5364. * src/XmlRpcMethodImpl.h
  5365. * src/download_helper.cc
  5366. * src/download_helper.h
  5367. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5368. Fixed the bug that POU peers are never choked in seeding.
  5369. * src/BtSeederStateChoke.cc
  5370. * src/BtSeederStateChoke.h
  5371. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5372. Added web-seeding URI handling in addTorrent command.
  5373. * src/XmlRpcMethodImpl.cc
  5374. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5375. Added "length" key to getFiles response.
  5376. * src/XmlRpcMethodImpl.cc
  5377. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5378. Moved --no-netrc option from ftp option section to http/ftp option
  5379. section.
  5380. * doc/aria2c.1.txt
  5381. * src/OptionHandlerFactory.cc
  5382. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5383. Removed garbage "\" character before '
  5384. * doc/aria2c.1.txt
  5385. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5386. Removed garbage "\" character before http.
  5387. * doc/aria2c.1.txt
  5388. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5389. Documented additional options that can be specified in -i list.
  5390. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  5391. and --xml-rpc-passwd. Removed --enable-http-server and
  5392. --http-server-listen-port.
  5393. * doc/aria2c.1.txt
  5394. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5395. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  5396. * src/DefaultPeerStorage.cc
  5397. * src/DefaultPeerStorage.h
  5398. * src/PeerStorage.h
  5399. * src/XmlRpcMethodImpl.cc
  5400. * test/MockPeerStorage.h
  5401. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5402. Put a call to Socket::isReadable() in try block.
  5403. * src/HttpServerBodyCommand.cc
  5404. * src/HttpServerCommand.cc
  5405. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5406. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  5407. exception , so it is now in try block.
  5408. * src/HttpServerResponseCommand.cc
  5409. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5410. Added "amChoking" and "peerChoking" key in getPeers response.
  5411. * src/XmlRpcMethodImpl.cc
  5412. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5413. Added test case for zero-length filter.
  5414. * test/BitfieldManTest.cc
  5415. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5416. getFiles command now returns file data for finished/stopped
  5417. downloads.
  5418. * src/XmlRpcMethodImpl.cc
  5419. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5420. DownloadResult now has the list of FileEntry. The download
  5421. summary displays the path of first selected file and the number of
  5422. remaining files for multi-file torrent.
  5423. * src/DownloadResult.h
  5424. * src/RequestGroup.cc
  5425. * src/RequestGroupMan.cc
  5426. * test/RequestGroupTest.cc
  5427. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5428. Fixed segmentation fault error when no file is selected in
  5429. multi-file torrent.
  5430. * src/BitfieldMan.cc
  5431. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5432. Escaped <,>,& character in XML-RPC response.
  5433. * src/XmlRpcMethod.cc
  5434. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5435. Throw DlAbortEx instead of FatalException during parsing options
  5436. because we don't want for aria2 to quit when bad option is passed
  5437. via XML-RPC.
  5438. * src/OptionHandlerException.cc
  5439. * src/OptionHandlerException.h
  5440. * src/OptionHandlerImpl.h
  5441. * src/OptionParser.cc
  5442. * src/OptionParser.h
  5443. * src/PStringSegment.cc
  5444. * src/ParameterizedStringParser.cc
  5445. * src/download_helper.cc
  5446. * test/ParameterizedStringParserTest.cc
  5447. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5448. Selecting files are now done in
  5449. DefaultBtContext::setFileFileter().
  5450. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  5451. functions are removed because they are no longer used. Creating
  5452. filter in BitfieldMan is done in new funtion
  5453. PieceStorage::setupFileFilter()
  5454. * src/BtContext.cc
  5455. * src/BtContext.h
  5456. * src/DefaultBtContext.cc
  5457. * src/DefaultBtContext.h
  5458. * src/DefaultPieceStorage.cc
  5459. * src/DefaultPieceStorage.h
  5460. * src/DiskAdaptor.cc
  5461. * src/DiskAdaptor.h
  5462. * src/PieceStorage.h
  5463. * src/RequestGroup.cc
  5464. * src/UnknownLengthPieceStorage.h
  5465. * src/XmlRpcMethodImpl.cc
  5466. * test/DefaultBtContextTest.cc
  5467. * test/MockBtContext.h
  5468. * test/MockPieceStorage.h
  5469. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5470. Fixed compile error on Mac OS X
  5471. * src/HttpServer.cc
  5472. * src/XmlRpcMethod.h
  5473. * src/XmlRpcMethodImpl.cc
  5474. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5475. Use std::binary_search instead of std::find
  5476. * src/DefaultPieceStorage.cc
  5477. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5478. Removed unnecessary BDE() call; leave them to implicit conversion.
  5479. * src/XmlRpcMethodImpl.cc
  5480. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5481. Return connections and gid in string
  5482. * src/XmlRpcMethodImpl.cc
  5483. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5484. Renamed addURI as addUri
  5485. * src/XmlRpcMethodFactory.cc
  5486. * src/XmlRpcMethodImpl.cc
  5487. * src/XmlRpcMethodImpl.h
  5488. * test/XmlRpcMethodTest.cc
  5489. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5490. Renamed addTorrentFile as addTorrent
  5491. * src/XmlRpcMethodFactory.cc
  5492. * src/XmlRpcMethodImpl.cc
  5493. * src/XmlRpcMethodImpl.h
  5494. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5495. The information for files, URIs, peers are removed from the
  5496. reponse of TellaActive, TellStatus command because they tend to be
  5497. large. Instead they can be retrieved by the dedicated commands:
  5498. getFiles, getUris and getPeers respectively.
  5499. * src/XmlRpcMethodFactory.cc
  5500. * src/XmlRpcMethodImpl.cc
  5501. * src/XmlRpcMethodImpl.h
  5502. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5503. Removed --max-overall-upload-limit and
  5504. --max-overall-download-limit option from listRequestOptions.
  5505. * src/download_helper.cc
  5506. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5507. Log incoming host in HttpListenCommand.
  5508. * src/HttpListenCommand.cc
  5509. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5510. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  5511. --xml-rpc-passwd option.
  5512. * src/HttpServer.cc
  5513. * src/HttpServer.h
  5514. * src/HttpServerCommand.cc
  5515. * src/OptionHandlerFactory.cc
  5516. * src/prefs.cc
  5517. * src/prefs.h
  5518. * src/usage_text.h
  5519. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5520. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  5521. processing 0 length request.
  5522. * src/HttpServerBodyCommand.cc
  5523. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5524. Removed --enable-http-server and --http-server-listen-port
  5525. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  5526. instead. The original feature for --enable-http-server that
  5527. reports download progress in HTML was officially removed. Persist
  5528. XML-RPC connection if client supports keep-alive.
  5529. * src/DownloadEngineFactory.cc
  5530. * src/HttpServerCommand.cc
  5531. * src/HttpServerResponseCommand.cc
  5532. * src/Makefile.am
  5533. * src/Makefile.in
  5534. * src/OptionHandlerFactory.cc
  5535. * src/RequestGroupMan.cc
  5536. * src/main.cc
  5537. * src/option_processing.cc
  5538. * src/prefs.cc
  5539. * src/prefs.h
  5540. * src/usage_text.h
  5541. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5542. Added "uris" key to the response of tellStatus command. Added
  5543. "connections" key to the response of tellStatus and tellActive
  5544. command.
  5545. * src/XmlRpcMethodImpl.cc
  5546. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5547. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  5548. Added TellStatusXmlRpcMethod. Remove command can now remove
  5549. waiting RequestGroup.
  5550. * src/RequestGroupMan.cc
  5551. * src/RequestGroupMan.h
  5552. * src/XmlRpcMethodFactory.cc
  5553. * src/XmlRpcMethodImpl.cc
  5554. * src/XmlRpcMethodImpl.h
  5555. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5556. Initialized _peerId
  5557. * src/Peer.cc
  5558. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5559. Return fault structure for error. FailXmlRpcMethod is renamed as
  5560. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  5561. in non-torrent download. Return single param value.
  5562. * src/XmlRpcMethod.cc
  5563. * src/XmlRpcMethodFactory.cc
  5564. * src/XmlRpcMethodImpl.cc
  5565. * src/XmlRpcMethodImpl.h
  5566. * test/XmlRpcMethodTest.cc
  5567. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5568. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  5569. command.
  5570. * src/RequestGroup.cc
  5571. * src/RequestGroup.h
  5572. * src/RequestGroupMan.cc
  5573. * src/XmlRpcMethodImpl.cc
  5574. * test/RequestGroupTest.cc
  5575. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Added more options that can be specified in -i list and xml-rpc
  5577. add* command.
  5578. * src/download_helper.h
  5579. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5580. The available options in -i list should be listed in
  5581. listRequestOptions().
  5582. * src/download_helper.cc
  5583. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5584. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  5585. command.
  5586. * src/XmlRpcMethodImpl.cc
  5587. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5588. Now RequestGroup has its own copy of Option object. This will help
  5589. to give custom option for each RequestGroup.
  5590. addTorrentFile command now takes options.
  5591. * src/AbstractCommand.cc
  5592. * src/AbstractCommand.h
  5593. * src/AbstractProxyRequestCommand.cc
  5594. * src/ActivePeerConnectionCommand.cc
  5595. * src/ActivePeerConnectionCommand.h
  5596. * src/AdaptiveURISelector.cc
  5597. * src/BtCheckIntegrityEntry.cc
  5598. * src/BtDependency.cc
  5599. * src/BtDependency.h
  5600. * src/BtFileAllocationEntry.cc
  5601. * src/BtPostDownloadHandler.cc
  5602. * src/CheckIntegrityEntry.cc
  5603. * src/DownloadCommand.cc
  5604. * src/FtpDownloadCommand.cc
  5605. * src/FtpFinishDownloadCommand.cc
  5606. * src/FtpInitiateConnectionCommand.cc
  5607. * src/FtpNegotiationCommand.cc
  5608. * src/HttpInitiateConnectionCommand.cc
  5609. * src/HttpRequestCommand.cc
  5610. * src/HttpResponseCommand.cc
  5611. * src/HttpSkipResponseCommand.cc
  5612. * src/InitiateConnectionCommand.cc
  5613. * src/InitiateConnectionCommandFactory.cc
  5614. * src/InitiatorMSEHandshakeCommand.cc
  5615. * src/InitiatorMSEHandshakeCommand.h
  5616. * src/Metalink2RequestGroup.cc
  5617. * src/Metalink2RequestGroup.h
  5618. * src/MetalinkPostDownloadHandler.cc
  5619. * src/MultiUrlRequestInfo.cc
  5620. * src/MultiUrlRequestInfo.h
  5621. * src/PeerAbstractCommand.cc
  5622. * src/PeerInteractionCommand.cc
  5623. * src/PeerInteractionCommand.h
  5624. * src/PeerReceiveHandshakeCommand.cc
  5625. * src/PeerReceiveHandshakeCommand.h
  5626. * src/RequestGroup.cc
  5627. * src/RequestGroup.h
  5628. * src/TrackerWatcherCommand.cc
  5629. * src/TrackerWatcherCommand.h
  5630. * src/XmlRpcMethod.cc
  5631. * src/XmlRpcMethod.h
  5632. * src/XmlRpcMethodImpl.cc
  5633. * src/download_helper.cc
  5634. * src/download_helper.h
  5635. * src/main.cc
  5636. * test/BtDependencyTest.cc
  5637. * test/BtPostDownloadHandlerTest.cc
  5638. * test/DefaultBtMessageDispatcherTest.cc
  5639. * test/DownloadHandlerFactoryTest.cc
  5640. * test/DownloadHelperTest.cc
  5641. * test/Metalink2RequestGroupTest.cc
  5642. * test/MetalinkPostDownloadHandlerTest.cc
  5643. * test/RequestGroupManTest.cc
  5644. * test/RequestGroupTest.cc
  5645. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5646. Added tellActiveStatus xml-rpc command which reports download
  5647. status of active downloads.
  5648. * src/XmlRpcMethodFactory.cc
  5649. * src/XmlRpcMethodImpl.cc
  5650. * src/XmlRpcMethodImpl.h
  5651. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5652. Added addTorrentFile xml-rpc command which receives uploaded
  5653. torrent file and add download for it.
  5654. * src/RequestGroupMan.cc
  5655. * src/XmlRpcMethodFactory.cc
  5656. * src/XmlRpcMethodImpl.cc
  5657. * src/XmlRpcMethodImpl.h
  5658. * src/download_helper.cc
  5659. * src/download_helper.h
  5660. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5661. Added remove xml-rpc command which removes specified download.
  5662. There is a known issue: the removed unfinished downloads are
  5663. reported ERR when aria2 exits. They should be reported as INPR.
  5664. * src/RequestGroupMan.cc
  5665. * src/RequestGroupMan.h
  5666. * src/XmlRpcMethodFactory.cc
  5667. * src/XmlRpcMethodImpl.cc
  5668. * src/XmlRpcMethodImpl.h
  5669. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5670. If --enable-http-server is enabled, don't stop aria2 when all
  5671. download finished and don't quit when no files to download at
  5672. start up.
  5673. * src/RequestGroupMan.cc
  5674. * src/main.cc
  5675. * src/option_processing.cc
  5676. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5677. Added missing AM_CONDITIONAL
  5678. * configure.ac
  5679. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5680. Added xml-rpc functionality. Currently only addURI commad is
  5681. supported. To enable xml-rpc, run aria2 with
  5682. --enable-http-server. This option name is temporal and will be
  5683. changed. The feature that reports download progress in html format
  5684. is temporarily disabled.
  5685. * src/HttpServer.cc
  5686. * src/HttpServer.h
  5687. * src/HttpServerBodyCommand.cc
  5688. * src/HttpServerBodyCommand.h
  5689. * src/HttpServerCommand.cc
  5690. * src/HttpServerResponseCommand.cc
  5691. * src/Makefile.am
  5692. * src/OptionParser.cc
  5693. * src/OptionParser.h
  5694. * src/RequestGroupMan.cc
  5695. * src/RequestGroupMan.h
  5696. * src/XmlRpcMethod.cc
  5697. * src/XmlRpcMethod.h
  5698. * src/XmlRpcMethodFactory.cc
  5699. * src/XmlRpcMethodFactory.h
  5700. * src/XmlRpcMethodImpl.cc
  5701. * src/XmlRpcMethodImpl.h
  5702. * src/download_helper.cc
  5703. * src/download_helper.h
  5704. * test/Makefile.am
  5705. * test/XmlRpcMethodTest.cc
  5706. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5707. Added xml-rpc request parser. The supported value types are:
  5708. i4/int, string, double, struct, array, base64. Currently only
  5709. libxml2 version is provided.
  5710. * src/Xml2XmlRpcRequestProcessor.cc
  5711. * src/Xml2XmlRpcRequestProcessor.h
  5712. * src/XmlRpcElements.cc
  5713. * src/XmlRpcElements.h
  5714. * src/XmlRpcRequest.h
  5715. * src/XmlRpcRequestParserController.cc
  5716. * src/XmlRpcRequestParserController.h
  5717. * src/XmlRpcRequestParserState.h
  5718. * src/XmlRpcRequestParserStateImpl.cc
  5719. * src/XmlRpcRequestParserStateImpl.h
  5720. * src/XmlRpcRequestParserStateMachine.cc
  5721. * src/XmlRpcRequestParserStateMachine.h
  5722. * src/XmlRpcRequestProcessor.h
  5723. * test/XmlRpcRequestParserControllerTest.cc
  5724. * test/XmlRpcRequestProcessorTest.cc
  5725. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5726. * Release 1.3.3
  5727. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5728. Fixed compile error since r1202.
  5729. * src/ExpatMetalinkProcessor.cc
  5730. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5731. Updated Ukrainian, Russian and Simplified Chinese
  5732. translations. Thanks to all translators.
  5733. * po/ru.po
  5734. * po/uk.po
  5735. * po/zh_CN.po
  5736. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5737. Pass reference of Option object instead of pointer.
  5738. * src/download_helper.cc
  5739. * src/download_helper.h
  5740. * src/main.cc
  5741. * test/DownloadHelperTest.cc
  5742. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5743. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  5744. from option directly. Instead, get them from RequestGroup.
  5745. * src/ActivePeerConnectionCommand.cc
  5746. * src/ActivePeerConnectionCommand.h
  5747. * src/PeerReceiveHandshakeCommand.cc
  5748. * src/RequestGroup.h
  5749. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5750. Removed unused uploadLimitCheck and uploadLimit from
  5751. PeerAbstractCommand. Removed unused maxDownloadLimit from
  5752. PeerInteractionCommand.
  5753. * src/PeerAbstractCommand.cc
  5754. * src/PeerAbstractCommand.h
  5755. * src/PeerInteractionCommand.cc
  5756. * src/PeerInteractionCommand.h
  5757. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5758. Fixed broken file renaming feature since r1202.
  5759. * src/FtpNegotiationCommand.cc
  5760. * src/FtpNegotiationCommand.h
  5761. * src/HttpResponseCommand.cc
  5762. * src/RequestGroup.cc
  5763. * src/RequestGroup.h
  5764. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5765. Removed unused debug log
  5766. * src/SocketCore.cc
  5767. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5768. Generated configure and Makefile.in using autoconf 2.63 and
  5769. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  5770. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  5771. * configure.ac
  5772. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5773. Moved piece statistics stuff to new PieceStatMan class.
  5774. Refactored PieceSelector interface.
  5775. * src/DefaultPieceStorage.cc
  5776. * src/DefaultPieceStorage.h
  5777. * src/LongestSequencePieceSelector.cc
  5778. * src/LongestSequencePieceSelector.h
  5779. * src/Makefile.am
  5780. * src/PieceSelector.h
  5781. * src/PieceStatMan.cc
  5782. * src/PieceStatMan.h
  5783. * src/RarestPieceSelector.cc
  5784. * src/RarestPieceSelector.h
  5785. * src/RequestGroup.cc
  5786. * test/DefaultPieceStorageTest.cc
  5787. * test/InOrderPieceSelector.h
  5788. * test/Makefile.am
  5789. * test/PieceStatManTest.cc
  5790. * test/RarestPieceSelectorTest.cc
  5791. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5792. Added static member _protocolFamily to SocketCore. By default,
  5793. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  5794. address. Sometime SocketCore::bind() and
  5795. SocketCore::establishConnection() use difference protocl family
  5796. and latter cannot connect to former. To avoid this situation, we
  5797. limit protocol family to AF_INET for unit tests.
  5798. * src/SocketCore.cc
  5799. * src/SocketCore.h
  5800. * test/AllTest.cc
  5801. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5802. Avoid std::bad_alloc for negative bencode string length.
  5803. * src/bencode.cc
  5804. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5805. Supported segmented downloading with chunked transfer encoding and
  5806. content-length.
  5807. * src/DownloadCommand.cc
  5808. * src/HttpResponseCommand.cc
  5809. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5810. Bump up version number to 1.3.3
  5811. * configure.ac
  5812. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5813. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5814. from 4096 to 65536 (for insanely large ftp login banners)
  5815. * src/FtpConnection.h
  5816. * test/FtpConnectionTest.cc
  5817. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5818. In DefaultBtContext::getActualBasePath(), return first
  5819. FileEntry::getPath() for single file torrent.
  5820. * src/DefaultBtContext.cc
  5821. * test/DefaultBtContextTest.cc
  5822. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5823. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5824. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5825. Removed _directIOAllowed member from DiskWriter.
  5826. * src/AbstractDiskWriter.cc
  5827. * src/AbstractDiskWriter.h
  5828. * src/AbstractSingleDiskAdaptor.cc
  5829. * src/AbstractSingleDiskAdaptor.h
  5830. * src/BinaryStream.h
  5831. * src/ByteArrayDiskWriter.h
  5832. * src/DefaultPieceStorage.cc
  5833. * src/DiskWriter.h
  5834. * src/MultiDiskAdaptor.cc
  5835. * src/MultiDiskAdaptor.h
  5836. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5837. Now the constructor of AbstractDiskWriter takes filename as an
  5838. argument and filename argument is removed from openFile(),
  5839. initAndOpenFile(), openExistingFile() interface. storeDir member
  5840. and its accessor functions are removed from DiskAdaptor because it
  5841. is not used anymore. size() member function of DefaultDiskWriter,
  5842. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5843. opening file.
  5844. * src/AbstractDiskWriter.cc
  5845. * src/AbstractDiskWriter.h
  5846. * src/AbstractSingleDiskAdaptor.cc
  5847. * src/AbstractSingleDiskAdaptor.h
  5848. * src/ByteArrayDiskWriter.cc
  5849. * src/ByteArrayDiskWriter.h
  5850. * src/ByteArrayDiskWriterFactory.cc
  5851. * src/ByteArrayDiskWriterFactory.h
  5852. * src/DefaultDiskWriter.cc
  5853. * src/DefaultDiskWriter.h
  5854. * src/DefaultDiskWriterFactory.cc
  5855. * src/DefaultDiskWriterFactory.h
  5856. * src/DefaultPieceStorage.cc
  5857. * src/DirectDiskAdaptor.cc
  5858. * src/DirectDiskAdaptor.h
  5859. * src/DiskAdaptor.h
  5860. * src/DiskWriter.h
  5861. * src/DiskWriterFactory.h
  5862. * src/MessageDigestHelper.cc
  5863. * src/MultiDiskAdaptor.cc
  5864. * src/RequestGroup.cc
  5865. * src/UnknownLengthPieceStorage.cc
  5866. * src/Util.cc
  5867. * test/DefaultDiskWriterTest.cc
  5868. * test/DirectDiskAdaptorTest.cc
  5869. * test/FallocFileAllocationIteratorTest.cc
  5870. * test/MessageDigestHelperTest.cc
  5871. * test/MetalinkProcessorTest.cc
  5872. * test/MultiDiskAdaptorTest.cc
  5873. * test/MultiFileAllocationIteratorTest.cc
  5874. * test/SingleFileAllocationIteratorTest.cc
  5875. * test/UtilTest.cc
  5876. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5877. Fixed the bug that aria2 aborts when --select-file is used. This
  5878. bug was introduced in r1199.
  5879. * src/MultiDiskAdaptor.cc
  5880. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5881. Code cleanup
  5882. * test/MockPieceStorage.cc
  5883. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5884. Fixed the bug that read-only file with wrong file size will cause
  5885. error because it cannot be truncated to the correct size. Now if
  5886. file size is different than the expected one, re-open file in
  5887. writable mode.
  5888. * src/AbstractSingleDiskAdaptor.cc
  5889. * src/AbstractSingleDiskAdaptor.h
  5890. * src/BtCheckIntegrityEntry.cc
  5891. * src/DiskAdaptor.h
  5892. * src/MultiDiskAdaptor.h
  5893. * src/RequestGroup.cc
  5894. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5895. Fixed the bug that with --check-integrity option aria2 reports
  5896. downloaded file size is 0 even if some parts of file is correctly
  5897. downloaded. This bug is reproducible for the download that a file
  5898. includes last piece is missing. This bug doesn't reveal for
  5899. single-torrent with file allocation on.
  5900. * src/IteratableChecksumValidator.cc
  5901. * test/IteratableChecksumValidatorTest.cc
  5902. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5903. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5904. * src/RequestGroupMan.cc
  5905. * src/AdaptiveURISelector.cc
  5906. * src/AdaptiveURISelector.h
  5907. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5908. * Release 1.3.2
  5909. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5910. Updated README
  5911. * README
  5912. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5913. Updated Ukrainian translations. Thanks to Alexander10.
  5914. * po/uk.po
  5915. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5916. Code cleanup
  5917. * src/MetalinkParserStateMachine.cc
  5918. * src/MetalinkParserStateMachine.h
  5919. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5920. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5921. and expat simultaneously, MetalinkProcessor is now not base class
  5922. and it is directly implemented in XML2SAXMetalinkProcessor and
  5923. ExpatMetalinkProcessor.
  5924. * src/ExpatMetalinkProcessor.cc
  5925. * src/ExpatMetalinkProcessor.h
  5926. * src/Makefile.am
  5927. * src/MetalinkHelper.cc
  5928. * src/MetalinkProcessor.h
  5929. * src/MetalinkProcessorFactory.cc: Removed.
  5930. * src/MetalinkProcessorFactory.h: Removed
  5931. * src/XML2SAXMetalinkProcessor.cc
  5932. * src/XML2SAXMetalinkProcessor.h
  5933. * test/MetalinkProcessorTest.cc
  5934. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5935. Bump up version number to 1.3.2
  5936. * configure.ac
  5937. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5938. Added missing file.
  5939. * test/Makefile.am
  5940. * test/url-list-singleFileEndsWithSlash.torrent
  5941. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5942. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5943. request.
  5944. * src/AnnounceList.cc
  5945. * src/AnnounceList.h
  5946. * src/BDE.cc: Added
  5947. * src/BDE.h: Added
  5948. * src/DHTAbstractMessage.cc
  5949. * src/DHTAbstractMessage.h
  5950. * src/DHTAnnouncePeerMessage.cc
  5951. * src/DHTAnnouncePeerMessage.h
  5952. * src/DHTAnnouncePeerReplyMessage.cc
  5953. * src/DHTAnnouncePeerReplyMessage.h
  5954. * src/DHTFindNodeMessage.cc
  5955. * src/DHTFindNodeMessage.h
  5956. * src/DHTFindNodeReplyMessage.cc
  5957. * src/DHTFindNodeReplyMessage.h
  5958. * src/DHTGetPeersMessage.cc
  5959. * src/DHTGetPeersMessage.h
  5960. * src/DHTGetPeersReplyMessage.cc
  5961. * src/DHTGetPeersReplyMessage.h
  5962. * src/DHTMessageFactory.h
  5963. * src/DHTMessageFactoryImpl.cc
  5964. * src/DHTMessageFactoryImpl.h
  5965. * src/DHTMessageReceiver.cc
  5966. * src/DHTMessageTracker.cc
  5967. * src/DHTMessageTracker.h
  5968. * src/DHTPingMessage.cc
  5969. * src/DHTPingMessage.h
  5970. * src/DHTPingReplyMessage.cc
  5971. * src/DHTPingReplyMessage.h
  5972. * src/DHTQueryMessage.cc
  5973. * src/DHTQueryMessage.h
  5974. * src/DHTResponseMessage.cc
  5975. * src/DHTResponseMessage.h
  5976. * src/DefaultBtAnnounce.cc
  5977. * src/DefaultBtContext.cc
  5978. * src/DefaultBtContext.h
  5979. * src/HandshakeExtensionMessage.cc
  5980. * src/Makefile.am
  5981. * src/PeerListProcessor.h
  5982. * src/UTPexExtensionMessage.cc
  5983. * src/bencode.cc
  5984. * src/bencode.h
  5985. * test/AnnounceListTest.cc
  5986. * test/BDETest.cc: Added
  5987. * test/BencodeTest.cc
  5988. * test/DHTAnnouncePeerMessageTest.cc
  5989. * test/DHTAnnouncePeerReplyMessageTest.cc
  5990. * test/DHTFindNodeMessageTest.cc
  5991. * test/DHTFindNodeReplyMessageTest.cc
  5992. * test/DHTGetPeersMessageTest.cc
  5993. * test/DHTGetPeersReplyMessageTest.cc
  5994. * test/DHTMessageFactoryImplTest.cc
  5995. * test/DHTMessageTrackerTest.cc
  5996. * test/DHTPingMessageTest.cc
  5997. * test/DHTPingReplyMessageTest.cc
  5998. * test/Makefile.am
  5999. * test/MockDHTMessageFactory.h
  6000. * test/PeerListProcessorTest.cc
  6001. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6002. Use url-list (web-seeding) only for single-file torrent. This is
  6003. basically the same behavior with Metalink file with torrent and
  6004. URIs.
  6005. * src/RequestGroup.cc
  6006. * src/DefaultBtContext.cc
  6007. * test/DefaultBtContextTest.cc
  6008. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6009. Rewritten expr
  6010. * src/array_fun.h
  6011. * test/array_funTest.cc
  6012. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6013. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  6014. * src/DefaultBtMessageDispatcher.cc
  6015. * src/a2algo.h
  6016. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6017. Removed ExtendedMessagingAware. Instead of using inheritance,
  6018. added ExtensionMessageRegistry and it is passed to
  6019. DefaultExtensionMessageFactory.
  6020. * src/DefaultBtInteractive.cc
  6021. * src/DefaultBtInteractive.h
  6022. * src/DefaultExtensionMessageFactory.cc
  6023. * src/DefaultExtensionMessageFactory.h
  6024. * src/ExtendedMessagingAware.h: Removed.
  6025. * src/ExtensionMessageFactory.h
  6026. * src/ExtensionMessageRegistry.h: Added.
  6027. * src/Makefile.am
  6028. * src/PeerInteractionCommand.cc
  6029. * test/DefaultExtensionMessageFactoryTest.cc
  6030. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6031. Fixed typo in log messages
  6032. * src/MSEHandshake.cc
  6033. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6034. Fixed the bug that prevents torrent download from finishing. The
  6035. bug doesn't reveal for all torrents. The torrents affected this
  6036. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  6037. of pieces.
  6038. * src/bitfield.h
  6039. * test/bitfieldTest.cc
  6040. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6041. Code cleanup
  6042. * src/PeerListProcessor.h
  6043. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6044. Removed RequestGroupAware
  6045. * src/AbstractCommand.cc
  6046. * src/AbstractCommand.h
  6047. * src/ActivePeerConnectionCommand.cc
  6048. * src/ActivePeerConnectionCommand.h
  6049. * src/DHTGetPeersCommand.cc
  6050. * src/DHTGetPeersCommand.h
  6051. * src/InitiatorMSEHandshakeCommand.cc
  6052. * src/InitiatorMSEHandshakeCommand.h
  6053. * src/Makefile.am
  6054. * src/PeerInitiateConnectionCommand.cc
  6055. * src/PeerInitiateConnectionCommand.h
  6056. * src/PeerInteractionCommand.cc
  6057. * src/PeerInteractionCommand.h
  6058. * src/RealtimeCommand.cc
  6059. * src/RealtimeCommand.h
  6060. * src/RequestGroupAware.cc: Removed
  6061. * src/RequestGroupAware.h: Removed
  6062. * src/SeedCheckCommand.cc
  6063. * src/SeedCheckCommand.h
  6064. * src/SleepCommand.cc
  6065. * src/TrackerWatcherCommand.cc
  6066. * src/TrackerWatcherCommand.h
  6067. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6068. Rewritten PeerListProcessor
  6069. * src/PeerListProcessor.h
  6070. * src/CompactPeerListProcessor.h: Removed
  6071. * src/CompactPeerListProcessor.cc: Removed
  6072. * src/DelegatingPeerListProcessor.cc: Removed.
  6073. * src/DefaultBtAnnounce.cc
  6074. * src/Makefile.am
  6075. * src/UTPexExtensionMessage.cc
  6076. * src/DefaultPeerListProcessor.h: Removed.
  6077. * src/DefaultPeerListProcessor.cc: Removed.
  6078. * src/DelegatingPeerListProcessor.h: Removed.
  6079. * test/Makefile.am
  6080. * test/PeerListProcessorTest.cc
  6081. * test/DefaultPeerListProcessorTest.cc: Removed.
  6082. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6083. Rewritten RequestGroupMan::calculateStat()
  6084. * src/RequestGroupMan.cc
  6085. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6086. Removed unnecessary virtual destructor for Request class.
  6087. * src/Request.cc
  6088. * src/Request.h
  6089. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6090. Avoid dynamic_pointer_cast.
  6091. * src/DHTGetPeersCommand.cc
  6092. * src/DHTGetPeersCommand.h
  6093. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6094. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  6095. BtEvent.
  6096. * src/AbstractBtEventListener.h: Removed.
  6097. * src/AbstractBtMessage.cc
  6098. * src/AbstractBtMessage.h
  6099. * src/BtAbortOutstandingRequestEvent.h
  6100. * src/BtCancelSendingPieceEvent.h
  6101. * src/BtChokedEvent.h: Removed.
  6102. * src/BtChokingEvent.h
  6103. * src/BtEvent.h: Removed
  6104. * src/BtEventListener.h: Removed.
  6105. * src/BtMessage.h
  6106. * src/BtPieceMessage.cc
  6107. * src/BtPieceMessage.h
  6108. * src/BtRequestMessage.cc
  6109. * src/BtRequestMessage.h
  6110. * src/DefaultBtMessageDispatcher.cc
  6111. * src/Makefile.am
  6112. * src/a2functional.h
  6113. * test/BtPieceMessageTest.cc
  6114. * test/BtRequestMessageTest.cc
  6115. * test/DefaultBtMessageDispatcherTest.cc
  6116. * test/MockBtMessage.h
  6117. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6118. Code cleanup
  6119. * src/RequestGroupMan.cc
  6120. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6121. Code cleanup
  6122. * src/DownloadCommand.cc
  6123. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6124. Fixed segmentation fault when GZipDecoder::decode() returns 0
  6125. byte.
  6126. * src/DownloadCommand.cc
  6127. * src/bitfield.h
  6128. * test/bitfieldTest.cc
  6129. Fixed the bug that causes infinite loop if broken web server
  6130. returns chunked response without last "0" chunk-size marker and
  6131. closes connection.
  6132. * src/DownloadCommand.cc
  6133. Instantiate properly configured HttpDownloadCommand for
  6134. non-resumable downlaods.
  6135. * src/HttpResponseCommand.cc
  6136. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6137. Rewritten array operation functions.
  6138. * src/BitfieldMan.cc
  6139. * src/array_fun.h
  6140. * test/array_funTest.cc
  6141. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6142. Removed unused variable 'query'
  6143. * src/Request.cc
  6144. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6145. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  6146. accidentally set to false in r1162.
  6147. * configure.ac
  6148. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6149. Code cleanup
  6150. * src/BNode.cc
  6151. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6152. Increase prefixLength for the bucket which doesn't own local node
  6153. ID when splitting bucket.
  6154. * src/DHTBucket.cc
  6155. * test/DHTBucketTest.cc
  6156. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6157. * Release 1.3.1
  6158. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6159. Bump up version number to 1.3.1
  6160. * configure.ac
  6161. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6162. Removed unused variable checkPoint. Also removed include directive
  6163. for TimeA2.h.
  6164. * src/SeedCheckCommand.h
  6165. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6166. Fixed the bug that upload limit exceeds the value specified in
  6167. --seed-ratio option depending on the timing of the execution of
  6168. SeedCheckCommand.
  6169. * src/SeedCheckCommand.cc
  6170. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6171. Fixed the bug that removed peer's session upload/download length
  6172. are counted twice in _cachedTransferStat before it is
  6173. re-calculated. This affected the calculation of shara ratio,
  6174. resulting aria2 wrongly determines that specified share ratio is
  6175. reached. Also fixed the typo in calculateStatFor function name.
  6176. * src/BtSetup.cc
  6177. * src/DefaultPeerStorage.cc
  6178. * src/ShareRatioSeedCriteria.h
  6179. * test/ShareRatioSeedCriteriaTest.cc
  6180. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6181. * Release 1.3.0
  6182. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6183. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  6184. Nynorsk translations. Thanks to all translators.
  6185. * po/es.po
  6186. * po/ja.po
  6187. * po/nn.po
  6188. * po/ru.po
  6189. * po/uk.po
  6190. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6191. Rewritten isInRange()
  6192. * src/DHTBucket.cc
  6193. * test/DHTBucketTest.cc
  6194. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6195. Fixed typo
  6196. * doc/aria2c.1.txt
  6197. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6198. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  6199. malloc/realloc is not used.
  6200. * src/configure.ac
  6201. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6202. BitfieldMan::getMissingIndexes family functions now takes unsigned
  6203. char* bitfield instead of stl container for efficiency.
  6204. PieceSelector::select now takes this
  6205. bitfield. RarestPieceSelector::select now also performs
  6206. efficiently for this change. bitfield namespace is introduced and
  6207. it has several helper functions to handle basic bitfield
  6208. operations such as test, count set bits, etc.
  6209. * src/BitfieldMan.cc
  6210. * src/BitfieldMan.h
  6211. * src/DefaultBtRequestFactory.cc
  6212. * src/DefaultPieceStorage.cc
  6213. * src/DefaultPieceStorage.h
  6214. * src/LongestSequencePieceSelector.cc
  6215. * src/LongestSequencePieceSelector.h
  6216. * src/Makefile.am
  6217. * src/Piece.cc
  6218. * src/Piece.h
  6219. * src/PieceSelector.h
  6220. * src/RarestPieceSelector.cc
  6221. * src/RarestPieceSelector.h
  6222. * src/Util.cc
  6223. * src/Util.h
  6224. * src/bitfield.h
  6225. * test/BitfieldManTest.cc
  6226. * test/LongestSequencePieceSelectorTest.cc
  6227. * test/Makefile.am
  6228. * test/RarestPieceSelectorTest.cc
  6229. * test/UtilTest.cc
  6230. * test/bitfieldTest.cc
  6231. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6232. Made accepted socket non-block.
  6233. * src/FtpNegotiationCommand.cc
  6234. * src/HttpListenCommand.cc
  6235. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6236. Guarded #ifdef HAVE_POSIX_FALLOCATE
  6237. * src/AbstractSingleDiskAdaptor.cc
  6238. * src/DefaultPieceStorage.cc
  6239. * src/DiskAdaptor.h
  6240. * src/DiskAdaptor.h
  6241. * src/MultiFileAllocationIterator.cc
  6242. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6243. Run
  6244. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  6245. in every 1 sec. The timeout of RequestSlot is 60s by default and
  6246. it doesn't need to be called every time when
  6247. DefaultBtInteractive::doInteractionProcessing() is called.
  6248. * src/DefaultBtInteractive.cc
  6249. * src/DefaultBtInteractive.h
  6250. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6251. Documented 'falloc' in man page.
  6252. * doc/aria2c.1.txt
  6253. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6254. Updated doc
  6255. * src/usage_text.h
  6256. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6257. Added 'falloc' parameter for --file-allocation option. 'falloc'
  6258. allocation mode uses posix_fallocate() system call to allocate
  6259. file on disk. If you are using newer file systems such as ext4
  6260. (with extents support), btrfs or xfs, 'falloc' is your best
  6261. choice. It allocates large(few GiB) files almost instantly. Don't
  6262. use 'falloc' with legacy file systems such as ext3 because it
  6263. takes almost same time as 'prealloc' and it blocks aria2 entirely
  6264. until allocation finishes. 'falloc' may not be available if your
  6265. system doesn't have posix_fallocate() system call.
  6266. * configure.ac
  6267. * src/AbstractDiskWriter.cc
  6268. * src/AbstractDiskWriter.h
  6269. * src/AbstractSingleDiskAdaptor.cc
  6270. * src/BinaryStream.h
  6271. * src/BtCheckIntegrityEntry.cc
  6272. * src/ByteArrayDiskWriter.h
  6273. * src/CheckIntegrityEntry.cc
  6274. * src/CheckIntegrityEntry.h
  6275. * src/DefaultPieceStorage.cc
  6276. * src/DiskAdaptor.cc
  6277. * src/DiskAdaptor.h
  6278. * src/DiskWriter.h
  6279. * src/FallocFileAllocationIterator.cc
  6280. * src/FallocFileAllocationIterator.h
  6281. * src/FileAllocationEntry.cc
  6282. * src/FileAllocationEntry.h
  6283. * src/Makefile.am
  6284. * src/MultiFileAllocationIterator.cc
  6285. * src/MultiFileAllocationIterator.h
  6286. * src/OptionHandlerFactory.cc
  6287. * src/RequestGroup.cc
  6288. * src/StreamCheckIntegrityEntry.cc
  6289. * src/prefs.cc
  6290. * src/prefs.h
  6291. * src/usage_text.h
  6292. * test/FallocFileAllocationIteratorTest.cc
  6293. * test/Makefile.am
  6294. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6295. Removed duplicate enableDirectIO() call.
  6296. * src/MultiFileAllocationIterator.cc
  6297. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6298. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  6299. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  6300. cost of std::rotate().
  6301. * src/RarestPieceSelector.cc
  6302. * src/RarestPieceSelector.h
  6303. * test/RarestPieceSelectorTest.cc
  6304. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6305. Updated usage doc for --bt-tracker-interval option.
  6306. * src/usage_text.h
  6307. * doc/aria2c.1.txt
  6308. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6309. Documented --bt-tracker-interval option in man page.
  6310. * doc/aria2c.1.txt
  6311. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6312. Added an option to specify the interval between tracker requests.
  6313. If non-zero value is specified, aria2 uses it and ignores the
  6314. interval value in the response of tracker. If zero is specified,
  6315. aria2 determines the inteval value based on the tarcker response
  6316. and download progress.
  6317. * src/DefaultBtAnnounce.cc
  6318. * src/DefaultBtAnnounce.h
  6319. * src/OptionHandlerFactory.cc
  6320. * src/RequestGroup.cc
  6321. * src/prefs.cc
  6322. * src/prefs.h
  6323. * src/usage_text.h
  6324. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6325. Added operator+=, operator-=, operator-
  6326. * src/TransferStat.cc
  6327. * src/TransferStat.h
  6328. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6329. Refactored RarestPieceSelector to reduce CPU load, especially for
  6330. addPieceStats.
  6331. * src/RarestPieceSelector.cc
  6332. * src/RarestPieceSelector.h
  6333. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6334. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  6335. getAllMissingBlockIndexes to reduce a call to
  6336. array_function_base::operator[].
  6337. * src/BitfieldMan.cc
  6338. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6339. Cached TransferStat/download speed to avoid to sum them up in each
  6340. call.
  6341. * src/DefaultPeerStorage.cc
  6342. * src/DefaultPeerStorage.h
  6343. * src/SegmentMan.cc
  6344. * src/SegmentMan.h
  6345. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6346. Typedefed cuid_t as int32_t in Command.h
  6347. * src/CUIDCounter.h
  6348. * src/Command.cc
  6349. * src/Command.h
  6350. * src/DownloadEngine.cc
  6351. * src/DownloadEngine.h
  6352. * src/PeerStat.h
  6353. * src/SegmentMan.cc
  6354. * src/SegmentMan.h
  6355. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6356. Reduced the number of calls to PeerStorage::calculateStat() and
  6357. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  6358. transfer rate.
  6359. * src/DefaultBtInteractive.cc
  6360. * src/DefaultBtMessageDispatcher.cc
  6361. * src/DefaultPeerStorage.cc
  6362. * src/DefaultPeerStorage.h
  6363. * src/DownloadCommand.cc
  6364. * src/DownloadEngine.cc
  6365. * src/PeerStorage.h
  6366. * src/SegmentMan.cc
  6367. * src/SegmentMan.h
  6368. * test/MockPeerStorage.h
  6369. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6370. Prepended _dir+"/" after joining path elements in torrent file.
  6371. * src/DefaultBtContext.cc
  6372. * test/DefaultBtContextTest.cc
  6373. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6374. Added missing IndexBtMessageValidator.h
  6375. * src/Makefile.am
  6376. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6377. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  6378. Chinese translations. Thank you for contributing our project.
  6379. * po/id.po
  6380. * po/it.po
  6381. * po/ru.po
  6382. * po/uk.po
  6383. * po/zh_CN.po
  6384. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6385. Updated README
  6386. * README
  6387. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6388. Bump up version number to 1.3.0
  6389. * configure.ac
  6390. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6391. Updated doc
  6392. * src/DefaultBtContext.h
  6393. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6394. Slice/joinPath for name of single torrent.
  6395. * src/DefaultBtContext.cc
  6396. * test/DefaultBtContextTest.cc
  6397. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6398. Updated man page: Documented --dry-run and --index-out
  6399. options. Changed the default value of --uri-selector and
  6400. --http-auth-challenge options. Removed --direct-file-mapping
  6401. option. Added example for --index-out
  6402. * doc/aria2c.1.txt
  6403. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6404. Updated TEXT_DRY_RUN
  6405. * src/usage_text.h
  6406. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6407. Changed the default value of --uri-selector option from 'inorder'
  6408. to 'feedback'
  6409. * src/OptionHandlerFactory.cc
  6410. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6411. Included current URI in exception message.
  6412. * src/AbstractCommand.cc
  6413. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6414. Renamed ServerStatURISelector as FeedbackURISelector.
  6415. * src/FeedbackURISelector.cc
  6416. * src/FeedbackURISelector.h
  6417. * src/Makefile.am
  6418. * src/RequestGroupMan.cc
  6419. * src/ServerStatURISelector.cc
  6420. * src/ServerStatURISelector.h
  6421. * test/FeedbackURISelectorTest.cc
  6422. * test/Makefile.am
  6423. * test/ServerStatURISelectorTest.cc
  6424. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6425. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  6426. all URIs are tested and their timeout is not reached.
  6427. * src/AdaptiveURISelector.cc
  6428. * src/AdaptiveURISelector.h
  6429. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6430. Changed the default value of --http-auth-challenge option to false.
  6431. * src/OptionHandlerFactory.cc
  6432. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6433. Reuse URIs when all unused URIs run out.
  6434. * src/OptionHandlerFactory.cc
  6435. * src/RequestGroup.cc
  6436. * src/prefs.cc
  6437. * src/prefs.h
  6438. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6439. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  6440. and BtRejectMessage are derived from RangeBtMessage class.
  6441. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  6442. derived from IndexBtMessage class. BtChokeMessage,
  6443. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  6444. BtNotInterestedMessage and BtUnchokeMessage are derived from
  6445. ZeroBtMessage class.
  6446. * src/AbstractBtMessage.cc
  6447. * src/AbstractBtMessage.h
  6448. * src/BtAllowedFastMessage.cc
  6449. * src/BtAllowedFastMessage.h
  6450. * src/BtAllowedFastMessageValidator.h: Removed
  6451. * src/BtBitfieldMessage.cc
  6452. * src/BtBitfieldMessage.h
  6453. * src/BtCancelMessage.cc
  6454. * src/BtCancelMessage.h
  6455. * src/BtCancelMessageValidator.h: Removed
  6456. * src/BtChokeMessage.cc
  6457. * src/BtChokeMessage.h
  6458. * src/BtExtendedMessage.cc
  6459. * src/BtExtendedMessage.h
  6460. * src/BtHandshakeMessage.cc
  6461. * src/BtHandshakeMessage.h
  6462. * src/BtHaveAllMessage.cc
  6463. * src/BtHaveAllMessage.h
  6464. * src/BtHaveMessage.cc
  6465. * src/BtHaveMessage.h
  6466. * src/BtHaveMessageValidator.h: Removed
  6467. * src/BtHaveNoneMessage.cc
  6468. * src/BtHaveNoneMessage.h
  6469. * src/BtInterestedMessage.cc
  6470. * src/BtInterestedMessage.h
  6471. * src/BtKeepAliveMessage.cc
  6472. * src/BtKeepAliveMessage.h
  6473. * src/BtNotInterestedMessage.cc
  6474. * src/BtNotInterestedMessage.h
  6475. * src/BtPieceMessage.cc
  6476. * src/BtPieceMessage.h
  6477. * src/BtPortMessage.cc
  6478. * src/BtPortMessage.h
  6479. * src/BtRejectMessage.cc
  6480. * src/BtRejectMessage.h
  6481. * src/BtRejectMessageValidator.h: Removed
  6482. * src/BtRequestMessage.cc
  6483. * src/BtRequestMessage.h
  6484. * src/BtRequestMessageValidator.h: Removed
  6485. * src/BtSuggestPieceMessage.cc
  6486. * src/BtSuggestPieceMessage.h
  6487. * src/BtSuggestPieceMessageValidator.h: Removed
  6488. * src/BtUnchokeMessage.cc
  6489. * src/BtUnchokeMessage.h
  6490. * src/DefaultBtMessageFactory.cc
  6491. * src/IndexBtMessage.cc
  6492. * src/IndexBtMessage.h
  6493. * src/IndexBtMessageValidator.h
  6494. * src/Makefile.am
  6495. * src/PeerMessageUtil.cc
  6496. * src/PeerMessageUtil.h
  6497. * src/RangeBtMessage.cc
  6498. * src/RangeBtMessage.h
  6499. * src/RangeBtMessageValidator.h
  6500. * src/SimpleBtMessage.cc
  6501. * src/SimpleBtMessage.h
  6502. * src/ZeroBtMessage.cc
  6503. * src/ZeroBtMessage.h
  6504. * test/BtRequestMessageTest.cc
  6505. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6506. Reverted usage_text.h to r1093 to avoid to lose translated
  6507. messages.
  6508. * src/usage_text.h
  6509. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6510. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  6511. declared as non-const previously is now const and defined in class
  6512. definition.
  6513. * src/AbstractBtMessage.cc
  6514. * src/AbstractBtMessage.h
  6515. * src/BtAllowedFastMessage.cc
  6516. * src/BtAllowedFastMessage.h
  6517. * src/BtBitfieldMessage.h
  6518. * src/BtCancelMessage.cc
  6519. * src/BtCancelMessage.h
  6520. * src/BtChokeMessage.cc
  6521. * src/BtChokeMessage.h
  6522. * src/BtExtendedMessage.cc
  6523. * src/BtExtendedMessage.h
  6524. * src/BtHandshakeMessage.cc
  6525. * src/BtHandshakeMessage.h
  6526. * src/BtHaveAllMessage.cc
  6527. * src/BtHaveAllMessage.h
  6528. * src/BtHaveMessage.cc
  6529. * src/BtHaveMessage.h
  6530. * src/BtHaveNoneMessage.cc
  6531. * src/BtHaveNoneMessage.h
  6532. * src/BtInterestedMessage.cc
  6533. * src/BtInterestedMessage.h
  6534. * src/BtKeepAliveMessage.cc
  6535. * src/BtKeepAliveMessage.h
  6536. * src/BtMessage.h
  6537. * src/BtNotInterestedMessage.cc
  6538. * src/BtNotInterestedMessage.h
  6539. * src/BtPieceMessage.h
  6540. * src/BtPortMessage.cc
  6541. * src/BtPortMessage.h
  6542. * src/BtRejectMessage.cc
  6543. * src/BtRejectMessage.h
  6544. * src/BtRequestMessage.cc
  6545. * src/BtRequestMessage.h
  6546. * src/BtSuggestPieceMessage.cc
  6547. * src/BtSuggestPieceMessage.h
  6548. * src/BtUnchokeMessage.cc
  6549. * src/BtUnchokeMessage.h
  6550. * src/SimpleBtMessage.cc
  6551. * src/SimpleBtMessage.h
  6552. * test/MockBtMessage.h
  6553. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6554. Use FileEntry::exists()
  6555. * src/MultiDiskAdaptor.cc
  6556. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6557. Added exists()
  6558. * src/FileEntry.cc
  6559. * src/FileEntry.h
  6560. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6561. Added missing prefix dir.
  6562. * src/download_helper.cc
  6563. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6564. Removed --direct-file-mapping option and CopyDiskAdaptor.
  6565. * src/CopyDiskAdaptor.cc: Removed
  6566. * src/CopyDiskAdaptor.h: Removed
  6567. * src/DefaultPieceStorage.cc
  6568. * src/Makefile.am
  6569. * src/OptionHandlerFactory.cc
  6570. * src/prefs.cc
  6571. * src/prefs.h
  6572. * src/usage_text.h
  6573. * test/CopyDiskAdaptorTest.cc: Removed
  6574. * test/Makefile.am
  6575. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6576. Rewritten isSameFileBeingDownloaded()
  6577. * src/RequestGroupMan.cc
  6578. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6579. Removed getName() from DownloadContext. getName() is declared in
  6580. BtContext.
  6581. * src/BtContext.h
  6582. * src/DownloadContext.h
  6583. * src/SingleFileDownloadContext.cc
  6584. * src/SingleFileDownloadContext.h
  6585. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  6586. in AbstractSingleDiskAdaptor.
  6587. * src/AbstractSingleDiskAdaptor.h
  6588. * src/DiskAdaptor.h
  6589. * src/MultiDiskAdaptor.h
  6590. * src/RequestGroup.cc
  6591. Removed setTopDir() and getTopDir() and getTopDirPath() from
  6592. MultiDiskAdaptor.
  6593. * src/DefaultPieceStorage.cc
  6594. * src/MultiDiskAdaptor.cc
  6595. * src/MultiDiskAdaptor.h
  6596. * test/MultiDiskAdaptorTest.cc
  6597. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6598. FileEntry::getPath() contains store(top level) directory to
  6599. simplify path handling operation. In the previous implementation,
  6600. store directory is concatenated to FileEntry::getPath() in
  6601. DownloadContext.
  6602. * src/BtDependency.cc
  6603. * src/BtPostDownloadHandler.cc
  6604. * src/CopyDiskAdaptor.cc
  6605. * src/DefaultBtContext.cc
  6606. * src/DirectDiskAdaptor.cc
  6607. * src/FileEntry.cc
  6608. * src/FileEntry.h
  6609. * src/FtpNegotiationCommand.cc
  6610. * src/HttpResponse.cc
  6611. * src/HttpResponseCommand.cc
  6612. * src/Metalink2RequestGroup.cc
  6613. * src/MultiDiskAdaptor.cc
  6614. * src/MultiDiskAdaptor.h
  6615. * src/MultiFileAllocationIterator.cc
  6616. * src/RequestGroup.cc
  6617. * src/SingleFileDownloadContext.cc
  6618. * src/SingleFileDownloadContext.h
  6619. * src/download_helper.cc
  6620. * test/BtDependencyTest.cc
  6621. * test/CopyDiskAdaptorTest.cc
  6622. * test/DefaultBtContextTest.cc
  6623. * test/DefaultBtProgressInfoFileTest.cc
  6624. * test/DirectDiskAdaptorTest.cc
  6625. * test/DownloadHelperTest.cc
  6626. * test/FileEntryTest.cc
  6627. * test/MultiDiskAdaptorTest.cc
  6628. * test/MultiFileAllocationIteratorTest.cc
  6629. * test/RequestGroupTest.cc
  6630. * test/SingleFileDownloadContextTest.cc
  6631. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6632. Fixed compiler warning
  6633. * src/download_helper.cc
  6634. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6635. Throw exception if same infohash torrent is now downloading.
  6636. * src/RequestGroup.cc
  6637. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6638. Added --dry-run option. In this mode, aria2 just checks whether
  6639. the remote file is available and doesn't download data. This
  6640. option has effect on HTTP/FTP downloads and BitTorrent downloads
  6641. are canceled in this mode.
  6642. * src/FtpNegotiationCommand.cc
  6643. * src/HttpResponseCommand.cc
  6644. * src/HttpResponseCommand.h
  6645. * src/OptionHandlerFactory.cc
  6646. * src/RequestGroup.cc
  6647. * src/RequestGroupMan.cc
  6648. * src/prefs.cc
  6649. * src/prefs.h
  6650. * src/usage_text.h
  6651. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6652. Fixed compiler waring
  6653. * test/UriListParserTest.cc
  6654. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6655. Parse options in -i list using OptionParser.
  6656. * src/UriListParser.cc
  6657. * src/UriListParser.h
  6658. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6659. Don't reset URI in retry to avoid additional round trips because
  6660. of redirects.
  6661. * src/AbstractCommand.cc
  6662. * src/OptionHandlerFactory.cc
  6663. * src/prefs.cc
  6664. * src/prefs.h
  6665. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6666. Declared hide() in OptionHandler.
  6667. * src/NameMatchOptionHandler.h
  6668. * src/OptionHandler.h
  6669. * src/OptionHandlerImpl.h
  6670. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6671. Updated doc
  6672. * src/Peer.h
  6673. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6674. Added log message in setStatusInternal()
  6675. * src/ServerStat.cc
  6676. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6677. Call ServerStat::setError() in AbstractCommand::onAbort() to
  6678. effectively exclude failed server.
  6679. * src/AbstractCommand.cc
  6680. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6681. Added --index-out option to specify each file path for torrent.
  6682. Here index shown in --show-files option is used to specify which
  6683. file path should be altered. For example, to change the file path
  6684. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  6685. option multiple times: --index-out=1=aria2.tar.bz2
  6686. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  6687. available. This option can be specified in -i list.
  6688. * src/DefaultBtContext.cc
  6689. * src/DefaultBtContext.h
  6690. * src/MultiDiskAdaptor.cc
  6691. * src/MultiDiskAdaptor.h
  6692. * src/MultiFileAllocationIterator.cc
  6693. * src/OptionHandlerFactory.cc
  6694. * src/OptionHandlerImpl.h
  6695. * src/Util.cc
  6696. * src/Util.h
  6697. * src/download_helper.cc
  6698. * src/prefs.cc
  6699. * src/prefs.h
  6700. * src/usage_text.h
  6701. * test/DefaultBtContextTest.cc
  6702. * test/MultiDiskAdaptorTest.cc
  6703. * test/MultiFileAllocationIteratorTest.cc
  6704. * test/UtilTest.cc
  6705. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6706. Use Util::pathJoin()
  6707. * src/MetalinkParserController.cc
  6708. * test/test.xml
  6709. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6710. Use Util::pathJoin()
  6711. * src/DefaultBtContext.cc
  6712. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6713. Added Util::pathJoin()
  6714. * src/Util.h
  6715. * test/UtilTest.cc
  6716. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6717. Applied basename function to remove directory element in
  6718. content-disposition value.
  6719. Return empty string if content-disposition value is ".." or ".".
  6720. * src/Util.cc
  6721. * test/UtilTest.cc
  6722. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6723. Added --max-overall-download-limit in man page.
  6724. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6725. * doc/aria2c.1.txt
  6726. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6727. Added --max-overall-download-limit option. Now --max-upload-limit
  6728. option is not ignored when --max-overall-upload-limit option has
  6729. non-zero value. aria2 checks download(upload) speed in the order:
  6730. first checks overall speed limit and if it is not exceeded, then
  6731. checks speed limit per download. Thus you can specify both
  6732. value. For example, set --max-overall-download-limit=1M and
  6733. --max-download-limit=500K to prevent from one download from eating
  6734. all overall speed limit.
  6735. * src/DefaultBtInteractive.cc
  6736. * src/DefaultBtInteractive.h
  6737. * src/DefaultBtMessageDispatcher.cc
  6738. * src/DefaultBtMessageDispatcher.h
  6739. * src/DownloadCommand.cc
  6740. * src/DownloadCommand.h
  6741. * src/FtpNegotiationCommand.cc
  6742. * src/HttpResponseCommand.cc
  6743. * src/OptionHandlerFactory.cc
  6744. * src/PeerInteractionCommand.cc
  6745. * src/RequestGroup.cc
  6746. * src/RequestGroup.h
  6747. * src/RequestGroupMan.cc
  6748. * src/RequestGroupMan.h
  6749. * src/prefs.cc
  6750. * src/prefs.h
  6751. * src/usage_text.h
  6752. * test/DefaultBtMessageDispatcherTest.cc
  6753. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6754. Documented select-file option in Input File section.
  6755. Documented --http-auth-challenge option.
  6756. * doc/aria2c.1.txt
  6757. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6758. Now select-file can be specified in the uri list(-i list).
  6759. * src/BtContext.cc
  6760. * src/BtContext.h
  6761. * src/RequestGroup.cc
  6762. * src/Sequence.h
  6763. * src/download_helper.cc
  6764. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6765. Made the upper value of --max-concurrent-downloads options unlimited.
  6766. * src/OptionHandlerFactory.cc
  6767. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6768. Fixed the bug that disk writer is not created even if it shares
  6769. same piece with the preceding file if the length of previous file
  6770. is 0.
  6771. * src/MultiDiskAdaptor.cc
  6772. * test/MultiDiskAdaptorTest.cc
  6773. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6774. In BitTorrent, Open files in read-only mode for hash check. After
  6775. that, re-open file in read/write mode only when the download is
  6776. not finished.
  6777. * src/AbstractDiskWriter.cc
  6778. * src/AbstractDiskWriter.h
  6779. * src/AbstractSingleDiskAdaptor.cc
  6780. * src/AbstractSingleDiskAdaptor.h
  6781. * src/BtCheckIntegrityEntry.cc
  6782. * src/DiskAdaptor.h
  6783. * src/DiskWriter.h
  6784. * src/MultiDiskAdaptor.cc
  6785. * src/MultiDiskAdaptor.h
  6786. * src/RequestGroup.cc
  6787. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6788. Added --http-auth-challenge option. If it is set to true(by
  6789. default), aria2 sends HTTP authorization header only when it is
  6790. requested by the server. If false is set, then authorization
  6791. header is always sent to the server. This is useful for servers
  6792. that don't respond 401 code when authentication is required.
  6793. There is an exception: if username and password are embedded in
  6794. URI, authorization header is always sent to the server regardless
  6795. of this option.
  6796. * src/AuthConfigFactory.cc
  6797. * src/HttpSkipResponseCommand.cc
  6798. * src/OptionHandlerFactory.cc
  6799. * src/prefs.cc
  6800. * src/prefs.h
  6801. * src/usage_text.h
  6802. * test/AuthConfigFactoryTest.cc
  6803. * test/HttpRequestTest.cc
  6804. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6805. * Release 1.2.0
  6806. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6807. Updated Spanish, Ukrainian, Russian and Japanese translations.
  6808. Thanks to all translators.
  6809. * po/es.po
  6810. * po/ja.po
  6811. * po/ru.po
  6812. * po/uk.po
  6813. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6814. Call deleteSocketForReadCheck() before socket is closed.
  6815. * src/HttpListenCommand.cc
  6816. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6817. Defined virtual destructor for BObject.
  6818. * src/bencode.h
  6819. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6820. Rewritten BDE to make it efficient.
  6821. * src/bencode.cc
  6822. * src/bencode.h
  6823. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6824. Removed function throw list.
  6825. * src/bencode.cc
  6826. * src/bencode.h
  6827. * test/BencodeTest.cc
  6828. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6829. Enclosed all URLs in double quotes in command-line examples.
  6830. * doc/aria2c.1.txt
  6831. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6832. Updated reference/see also section.
  6833. * README
  6834. * doc/aria2c.1.txt
  6835. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6836. Reorganized man page based on man man-pages.
  6837. * doc/aria2c.1.txt
  6838. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6839. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6840. because same documents are available in man page. Added
  6841. References section.
  6842. * README
  6843. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6844. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6845. PERFORMANCE PROFILE section.
  6846. * doc/aria2c.1.txt
  6847. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6848. Rewritten the section for configuration file.
  6849. * README
  6850. * doc/aria2c.1.txt
  6851. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6852. Fixed the segmentation fault during execution of choking algorithm
  6853. in leecher state because of broken compare operator
  6854. implementation.
  6855. * src/BtLeecherStateChoke.cc
  6856. * src/BtLeecherStateChoke.h
  6857. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6858. Open file in binary mode.
  6859. * src/CookieStorage.cc
  6860. * src/DHTSetup.cc
  6861. * src/DHTUtil.cc
  6862. * src/Netrc.cc
  6863. * src/NsCookieParser.cc
  6864. * src/ProtocolDetector.cc
  6865. * src/RequestGroupMan.cc
  6866. * src/Signature.cc
  6867. * src/bencode.cc
  6868. * src/download_helper.cc
  6869. * src/option_processing.cc
  6870. * test/CookieParserTest.cc
  6871. * test/DefaultBtProgressInfoFileTest.cc
  6872. * test/FileTest.cc
  6873. * test/GZipDecoderTest.cc
  6874. * test/RequestGroupManTest.cc
  6875. * test/SignatureTest.cc
  6876. * test/SingleFileAllocationIteratorTest.cc
  6877. * test/UriListParserTest.cc
  6878. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6879. Removed operator[] because it is ambiguous with built-in []
  6880. operator.
  6881. * src/array_fun.h
  6882. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6883. Fixed compile error
  6884. * src/OptionParser.cc
  6885. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6886. Added missing call to arrayWrapperConst
  6887. * test/array_funTest.cc
  6888. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6889. Use array_wrapper instead of array_ptr.
  6890. * src/DHTRoutingTableDeserializer.cc
  6891. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6892. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6893. * src/array_fun.h
  6894. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6895. Added array_wrapper template.
  6896. * src/array_fun.h
  6897. * test/array_funTest.cc
  6898. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6899. Use operator T* of array_ptr.
  6900. * src/OptionParser.cc
  6901. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6902. Use localhost instead of 127.0.0.1
  6903. * test/FtpConnectionTest.cc
  6904. * test/MSEHandshakeTest.cc
  6905. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6906. Added operator T*
  6907. * src/array_fun.h
  6908. * test/array_funTest.cc
  6909. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6910. Use dynamically allocated char array to detect memory access
  6911. violation.
  6912. * src/DHTRoutingTableDeserializer.cc
  6913. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6914. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6915. defined.
  6916. * src/PeerMessageUtil.cc
  6917. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6918. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6919. * configure.ac
  6920. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6921. Added a check to see struct sockaddr_in has sin_len member.
  6922. * configure.ac
  6923. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6924. Fixed buffer overrun.
  6925. * src/DHTRoutingTableDeserializer.cc
  6926. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6927. Added LL for long long int constant.
  6928. * test/FtpConnectionTest.cc
  6929. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6930. Casted to unsigned int to suppress compiler warning on netbsd.
  6931. * src/BtRuntime.h
  6932. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6933. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6934. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6935. type time_t.
  6936. * src/SimpleLogger.cc
  6937. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6938. Added test for FtpConnection::receiveSizeResponse().
  6939. * test/FtpConnectionTest.cc
  6940. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6941. Fix epoll error on the old kernel 2.6.8 or ealier.
  6942. * src/EpollEventPoll.cc
  6943. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6944. Use Util::parseLLInt instead of sscanf for portability. The
  6945. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6946. * src/FtpConnection.cc
  6947. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6948. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6949. block. It should not filter anything.
  6950. * src/BitfieldMan.cc
  6951. * src/ConsoleStatCalc.cc
  6952. * test/BitfieldManTest.cc
  6953. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6954. Fixed the bug that the boolean options that don't take arguments
  6955. don't work.
  6956. * src/OptionHandlerImpl.h
  6957. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6958. Fixed broken selected file BitTorrent download.
  6959. * src/MultiDiskAdaptor.cc
  6960. * test/MultiDiskAdaptorTest.cc
  6961. * test/MultiFileAllocationIteratorTest.cc
  6962. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6963. Fixed #define guard for EpollEventPoll
  6964. * src/EpollEventPoll.h
  6965. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6966. Wait 2 seconds. 1 second is sometimes not enough.
  6967. * test/TimeSeedCriteriaTest.cc
  6968. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6969. Use localhost instead of 127.0.0.1.
  6970. * test/DHTConnectionImplTest.cc
  6971. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6972. Suppressed compiler warning.
  6973. * src/AdaptiveURISelector.cc
  6974. * src/DefaultPieceStorage.cc
  6975. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6976. Defined virtual destructor.
  6977. * src/MetalinkParserState.h
  6978. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6979. Give NULL for second argument of getaddrinfo instead of "0".
  6980. * src/NameResolver.cc
  6981. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6982. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6983. included strptime doesn't parse data for this format.
  6984. * src/FtpConnection.cc
  6985. * test/FtpConnectionTest.cc
  6986. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6987. Removed tests giving -1 for unsigned argument.
  6988. * test/SingleFileDownloadContextTest.cc
  6989. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6990. Don't use sha256 in tests because it might not be supported by the
  6991. SSL library.
  6992. * test/MetalinkProcessorTest.cc
  6993. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6994. Removed tests giving -1 for unsigned argument.
  6995. * test/AlphaNumberDecoratorTest
  6996. * test/BitfieldManTest.cc
  6997. * test/DefaultBtContextTest.cc
  6998. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6999. Fixed compile error without libcares when epoll is available.
  7000. * src/EpollEventPoll.cc
  7001. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7002. Included fstream instead of iostream.
  7003. * test/SignatureTest.cc
  7004. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7005. Removed #include <algorithm>
  7006. * test/RequestGroupTest.cc
  7007. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7008. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  7009. using RequestGroup::extractURIResult().
  7010. * src/AdaptiveURISelector.cc
  7011. * src/RequestGroup.cc
  7012. * src/RequestGroup.h
  7013. * test/RequestGroupTest.cc
  7014. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7015. Added tests for array_ptr.
  7016. * test/array_funTest.cc
  7017. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7018. Don't send ip parameter to a tracker if ip parameter is empty
  7019. string.
  7020. * src/DefaultBtAnnounce.cc
  7021. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7022. Adjusted line feed.
  7023. * src/version_usage.cc
  7024. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7025. Print tags, possible values when OptionHandlerException is caught.
  7026. * src/option_processing.cc
  7027. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7028. Changed the message for FatalException.
  7029. * src/OptionParser.cc
  7030. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7031. Documented --bt-external-ip option in man page. Updated man pages
  7032. for --proxy-method option.
  7033. * doc/aria2c.1.txt
  7034. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7035. Use GET method for FTP via HTTP proxy.
  7036. * src/FtpInitiateConnectionCommand.cc
  7037. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7038. Changed the default value of --proxy-method option from 'tunnel'
  7039. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  7040. option.
  7041. * src/AbstractCommand.cc
  7042. * src/AbstractCommand.h
  7043. * src/FtpInitiateConnectionCommand.cc
  7044. * src/HttpDownloadCommand.cc
  7045. * src/HttpInitiateConnectionCommand.cc
  7046. * src/HttpInitiateConnectionCommand.h
  7047. * src/OptionHandlerFactory.cc
  7048. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7049. Initialized _logger
  7050. * src/SelectEventPoll.cc
  7051. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7052. Defined a copy constructor for the same type.
  7053. * src/SharedHandle.h
  7054. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7055. Added OptionParser::parseArg() which internally uses getopt_long
  7056. to parse command-line options. All command-line options are now
  7057. configured by OptionHandler. No manual editing of struct option*
  7058. is required any more.
  7059. * src/NameMatchOptionHandler.h
  7060. * src/OptionHandler.h
  7061. * src/OptionHandlerFactory.cc
  7062. * src/OptionHandlerImpl.h
  7063. * src/OptionParser.cc
  7064. * src/OptionParser.h
  7065. * src/array_fun.h
  7066. * src/main.cc
  7067. * src/option_processing.cc
  7068. * test/OptionHandlerTest.cc
  7069. * test/OptionParserTest.cc
  7070. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7071. Fixed configure error with --disable-epoll
  7072. * configure.ac
  7073. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7074. Fixed compile error when HAVE_EPOLL is not defined.
  7075. Fixed linker error on bigendian systems.
  7076. * src/SocketCore.cc
  7077. * src/SocketCore.h
  7078. * test/DefaultBtProgressInfoFileTest.cc
  7079. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7080. Added --bt-external-ip option. You can specify the external IP
  7081. address to report to a BitTorrent tracker. Although this function
  7082. is named 'external', it can accept any kind of IP addresses.
  7083. * src/DefaultBtAnnounce.cc
  7084. * src/OptionHandlerFactory.cc
  7085. * src/option_processing.cc
  7086. * src/prefs.cc
  7087. * src/prefs.h
  7088. * src/usage_text.h
  7089. * test/DefaultBtAnnounceTest.cc
  7090. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7091. Extracted the algorithm to find the longest incremental sequence
  7092. as max_sequence template.
  7093. * src/LongestSequencePieceSelector.cc
  7094. * src/a2algo.h
  7095. * test/Makefile.am
  7096. * test/a2algoTest.cc
  7097. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7098. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  7099. * src/usage_text.h
  7100. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7101. Updated doc for --uri-selector, --http-server-listen-port and
  7102. --enable-http-server option. Documented --event-poll option.
  7103. * doc/aria2c.1.txt
  7104. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7105. Updated doc for --enable-http-server.
  7106. * src/usage_text.h
  7107. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7108. Documented --http-server-listen-port and --enable-http-server in
  7109. man page.
  7110. * doc/aria2c.1.txt
  7111. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7112. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  7113. translations. Thanks to all translators.
  7114. * po/es.po
  7115. * po/id.po
  7116. * po/it.po
  7117. * po/ru.po
  7118. * po/uk.po
  7119. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7120. Bump up version number to 1.2.0
  7121. * configure.ac
  7122. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7123. BtContext::getAnnounceTiers() now returns const reference.
  7124. * src/BtContext.h
  7125. * src/DefaultBtContext.cc
  7126. * src/DefaultBtContext.h
  7127. * test/MockBtContext.h
  7128. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7129. Change the number of retries for tracker request based on the
  7130. number of available tracker in a torrent file.
  7131. * src/TrackerWatcherCommand.cc
  7132. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7133. Added _maxTries property to RequestGroup and assign the option
  7134. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  7135. RequestGroup::getMaxTries() instead of
  7136. Option::getAsInt(PREF_MAX_TRIES).
  7137. * src/AbstractCommand.cc
  7138. * src/RequestGroup.cc
  7139. * src/RequestGroup.h
  7140. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7141. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  7142. Mandriva. I modified the patch: make RequestGroup have the
  7143. timeout value and AdaptiveURISelector directly modifies that
  7144. value.
  7145. * src/AbstractCommand.cc
  7146. * src/AdaptiveURISelector.cc
  7147. * src/AdaptiveURISelector.h
  7148. * src/FtpNegotiationCommand.cc
  7149. * src/RequestGroup.cc
  7150. * src/RequestGroup.h
  7151. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7152. Fixed compiler warning
  7153. * test/IteratableChecksumValidatorTest.cc
  7154. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7155. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  7156. integrated downloads. This PieceSelector subclass finds the
  7157. longest continuous sequence in the available missing pieces and
  7158. selects the last index of such sequence. This makes HTTP/FTP
  7159. connections less interrupted by the pieces obtained by BitTorrent
  7160. peers.
  7161. * src/DefaultPieceStorage.cc
  7162. * src/DefaultPieceStorage.h
  7163. * src/LongestSequencePieceSelector.cc
  7164. * src/LongestSequencePieceSelector.h
  7165. * src/Makefile.am
  7166. * src/PieceSelector.h
  7167. * src/RarestPieceSelector.h
  7168. * src/RequestGroup.cc
  7169. * test/BtDependencyTest.cc
  7170. * test/DefaultPieceStorageTest.cc
  7171. * test/IteratableChecksumValidatorTest.cc
  7172. * test/LongestSequencePieceSelectorTest.cc
  7173. * test/Makefile.am
  7174. * test/SegmentManTest.cc
  7175. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7176. Fixed the bug that the average speed is wrong in
  7177. http/ftp/BitTorrent integrated download. Only the download bytes
  7178. in BitTorrent were considered.
  7179. * src/RequestGroup.cc
  7180. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7181. Choose port for BitTorrent/DHT randomly from the specified range.
  7182. * src/DHTConnectionImpl.cc
  7183. * src/PeerListenCommand.cc
  7184. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7185. Send HTTP Authorization header only if it is requested by the
  7186. server(response 401). There are some exceptions. The authorization
  7187. header for proxy is always sent if it is available without request
  7188. by the server. If username/password is specified in the URI, it
  7189. is immediately sent to the server without request by the server.
  7190. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  7191. SharedHandle<AuthConfig>().
  7192. NetrcAuthResolver::resolveAuthConfig() returns
  7193. SharedHandle<AuthConfig>() if no AuthConfig is available.
  7194. * src/AbstractAuthResolver.cc
  7195. * src/AbstractProxyRequestCommand.cc
  7196. * src/AuthConfigFactory.cc
  7197. * src/AuthConfigFactory.h
  7198. * src/HttpConnection.cc
  7199. * src/HttpRequest.cc
  7200. * src/HttpRequest.h
  7201. * src/HttpResponse.cc
  7202. * src/HttpResponseCommand.cc
  7203. * src/HttpSkipResponseCommand.cc
  7204. * test/AuthConfigFactoryTest.cc
  7205. * test/HttpRequestTest.cc
  7206. * test/HttpResponseTest.cc
  7207. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7208. Remove leading "--" from help keyword and a substring after "="
  7209. from help keyword, so that one can query options by '-h--max-' or
  7210. '-hmax-peers=10'.
  7211. * src/option_processing.cc
  7212. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7213. Rewritten PStringVisitor and its implementation.
  7214. * src/PStringBuildVisitor.cc
  7215. * src/PStringBuildVisitor.h
  7216. * src/PStringDatum.h
  7217. * src/PStringNumLoop.h
  7218. * src/PStringSegment.cc
  7219. * src/PStringSegment.h
  7220. * src/PStringSelect.h
  7221. * src/PStringVisitor.h
  7222. * src/download_helper.cc
  7223. * test/PStringBuildVisitorTest.cc
  7224. * test/ParameterizedStringParserTest.cc
  7225. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7226. Persist connection between the built-in HTTP server and a client
  7227. if a client supports keep-alive. Fixed the bug that aria2 exits
  7228. when the HTTP server receives EOF from a client.
  7229. * src/HttpServer.cc
  7230. * src/HttpServer.h
  7231. * src/HttpServerCommand.cc
  7232. * src/HttpServerCommand.h
  7233. * src/HttpServerResponseCommand.cc
  7234. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7235. Added experimental built-in HTTP server. Currently, when a client
  7236. accesses to the server, it responds with the current download
  7237. progress. By default, it is disabled. To enable the server, give
  7238. --enable-http-server option. To change the default port number
  7239. for the server to listen to, use --http-server-listen-port option.
  7240. The response HTML is very simple and refreshes it self each 1
  7241. second. Because of this refresh, you see flicker in normal web
  7242. browser such as Firefox. I recommend to use console-based browser
  7243. such as elinks, w3m. To connect to the server, run 'elinks
  7244. http://localhost:6800/' while running aria2. Please replace port
  7245. number '6800'(which is default) with your preference.
  7246. * src/DownloadEngineFactory.cc
  7247. * src/HttpHeader.cc
  7248. * src/HttpHeader.h
  7249. * src/HttpHeaderProcessor.cc
  7250. * src/HttpHeaderProcessor.h
  7251. * src/HttpListenCommand.cc
  7252. * src/HttpListenCommand.h
  7253. * src/HttpServer.cc
  7254. * src/HttpServer.h
  7255. * src/HttpServerCommand.cc
  7256. * src/HttpServerCommand.h
  7257. * src/HttpServerResponseCommand.cc
  7258. * src/HttpServerResponseCommand.h
  7259. * src/Makefile.am
  7260. * src/OptionHandlerFactory.cc
  7261. * src/Util.cc
  7262. * src/Util.h
  7263. * src/help_tags.h
  7264. * src/option_processing.cc
  7265. * src/prefs.cc
  7266. * src/prefs.h
  7267. * src/usage_text.h
  7268. * test/HttpHeaderProcessorTest.cc
  7269. * test/UtilTest.cc
  7270. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7271. Removed.
  7272. * src/CheckIntegrityMan.cc
  7273. * src/FileAllocationMan.cc
  7274. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7275. Made (piece) hash check sequential for each RequestGroup because
  7276. simultaneous hash check is slower than sequential execution.
  7277. * src/CheckIntegrityCommand.cc
  7278. * src/CheckIntegrityDispatcherCommand.cc
  7279. * src/CheckIntegrityDispatcherCommand.h
  7280. * src/CheckIntegrityMan.h
  7281. * src/ConsoleStatCalc.cc
  7282. * src/DownloadCommand.cc
  7283. * src/DownloadEngine.cc
  7284. * src/DownloadEngine.h
  7285. * src/DownloadEngineFactory.cc
  7286. * src/Makefile.am
  7287. * src/Makefile.in
  7288. * src/RequestGroup.cc
  7289. * src/StatCalc.h
  7290. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7291. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  7292. SequentialDispatcherCommand.
  7293. * src/FileAllocationDispatcherCommand.cc
  7294. * src/SequentialDispatcherCommand.h
  7295. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7296. Rewritten FileAllocationDispatcherCommand using brand new
  7297. SequentialDispatcherCommand.
  7298. * src/DownloadEngineFactory.cc
  7299. * src/FileAllocationCommand.cc
  7300. * src/FileAllocationDispatcherCommand.cc
  7301. * src/FileAllocationDispatcherCommand.h
  7302. * src/Makefile.am
  7303. * src/SequentialDispatcherCommand.h
  7304. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7305. Replaced FileAllocationMan with
  7306. SequentialPicker<FileAllocationEntry>.
  7307. * src/BtCheckIntegrityEntry.cc
  7308. * src/ConsoleStatCalc.cc
  7309. * src/DownloadEngine.cc
  7310. * src/DownloadEngine.h
  7311. * src/DownloadEngineFactory.cc
  7312. * src/FileAllocationCommand.cc
  7313. * src/FileAllocationDispatcherCommand.cc
  7314. * src/FileAllocationMan.h
  7315. * src/Makefile.am
  7316. * src/SequentialPicker.h
  7317. * src/StatCalc.h
  7318. * src/StreamCheckIntegrityEntry.cc
  7319. * test/Makefile.am
  7320. * test/SequentialPickerTest.cc
  7321. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7322. Added doc for adaptive URI selector.
  7323. * doc/aria2c.1.txt
  7324. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7325. Added doc for adaptive URI selector.
  7326. * src/usage_text.h
  7327. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7328. Added doc for --bt-max-peers option.
  7329. * doc/aria2c.1.txt
  7330. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7331. Added doc for --bt-hash-check-seed option.
  7332. * doc/aria2c.1.txt
  7333. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7334. Documented exit codes.
  7335. * doc/aria2c.1.txt
  7336. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7337. Added --bt-max-peers option to specify the maximum number of peers
  7338. per torrent. 0 means unlimited number of peers.
  7339. * src/ActivePeerConnectionCommand.cc
  7340. * src/BtRuntime.h
  7341. * src/DefaultPeerStorage.cc
  7342. * src/DefaultPeerStorage.h
  7343. * src/OptionHandlerFactory.cc
  7344. * src/RequestGroup.cc
  7345. * src/option_processing.cc
  7346. * src/prefs.cc
  7347. * src/prefs.h
  7348. * src/usage_text.h
  7349. * test/DefaultPeerStorageTest.cc
  7350. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7351. Added --bt-hash-check-seed option. If true is given to this
  7352. option, after hash check using --check-integrity option and file
  7353. is complete, continue to seed file. If you want to check file and
  7354. download it only when it is damaged or incomplete, set this option
  7355. to false. This option has effect only on BitTorrent download.
  7356. The default value is true(This is the same behavior with the
  7357. previous release).
  7358. * src/BtCheckIntegrityEntry.cc
  7359. * src/OptionHandlerFactory.cc
  7360. * src/option_processing.cc
  7361. * src/prefs.cc
  7362. * src/prefs.h
  7363. * src/usage_text.h
  7364. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7365. Updated copyright year.
  7366. * src/version_usage.cc
  7367. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7368. Rewritten the usage text for --bt-request-peer-speed-limit option.
  7369. * doc/aria2c.1.txt
  7370. * src/usage_text.h
  7371. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7372. Made the max value of split option unlimited.
  7373. * doc/aria2c.1.txt
  7374. * src/OptionHandlerFactory.cc
  7375. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7376. Fixed compile warning/error.
  7377. * src/DownloadResult.h
  7378. * src/HttpDownloadCommand.cc
  7379. * src/ServerStat.cc
  7380. * test/RequestGroupTest.cc
  7381. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7382. Added --event-poll option to select the method for polling events.
  7383. The available methods are "select" and "epoll". "epoll" is
  7384. available on Linux only. The earlier release has the compile
  7385. option to choose from these methods.
  7386. * configure.ac
  7387. * src/RequestGroupMan.cc
  7388. * src/OptionHandlerFactory.cc
  7389. * src/EpollEventPoll.h
  7390. * src/StreamFileAllocationEntry.cc
  7391. * src/a2io.h
  7392. * src/SelectEventPoll.h
  7393. * src/option_processing.cc
  7394. * src/prefs.h
  7395. * src/EpollEventPoll.cc
  7396. * src/EventPoll.h
  7397. * src/SocketCore.h
  7398. * src/Makefile.am
  7399. * src/main.cc
  7400. * src/DownloadEngine.h
  7401. * src/SelectEventPoll.cc
  7402. * src/DownloadEngine.cc
  7403. * src/SocketCore.cc
  7404. * src/DownloadEngineFactory.cc
  7405. * src/Makefile.in
  7406. * src/prefs.cc
  7407. * src/usage_text.h
  7408. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7409. Included RecoverableException.h from main.cc
  7410. * src/main.cc
  7411. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7412. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  7413. now returns last error encountered in the HTTP/FTP downloads as a
  7414. exit status value. If all downloads finished successfully, aria2
  7415. returns 0. The error code is defined in src/DownloadResult.h.
  7416. The error occurred in the download currently in progress is not
  7417. reported as a last error. If no error has encountered but there
  7418. are in progress or waiting downloads, aria2 returns 7.
  7419. * src/AbstractCommand.cc
  7420. * src/DlAbortEx.h
  7421. * src/DlRetryEx.h
  7422. * src/DownloadCommand.cc
  7423. * src/DownloadFailureException.h
  7424. * src/DownloadResult.h
  7425. * src/FtpNegotiationCommand.cc
  7426. * src/HttpSkipResponseCommand.cc
  7427. * src/Makefile.am
  7428. * src/MultiUrlRequestInfo.cc
  7429. * src/MultiUrlRequestInfo.h
  7430. * src/RecoverableException.h
  7431. * src/RequestGroup.cc
  7432. * src/RequestGroup.h
  7433. * src/RequestGroupMan.cc
  7434. * src/RequestGroupMan.h
  7435. * src/URIResult.cc
  7436. * src/URIResult.h
  7437. * src/main.cc
  7438. * src/option_processing.cc
  7439. * test/RequestGroupTest.cc
  7440. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7441. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  7442. patch adds AdaptiveURISelector, which selects one of the bests
  7443. mirrors for first and reserved connections. For supplementary
  7444. ones, it returns mirrors which has not been tested yet, and if
  7445. each of them already tested, returns mirrors which has to be
  7446. tested again. Otherwise, it doesn't return anymore mirrors.
  7447. * src/AdaptiveURISelector.cc
  7448. * src/AdaptiveURISelector.h
  7449. * src/FtpNegotiationCommand.cc
  7450. * src/HttpResponseCommand.cc
  7451. * src/Makefile.am
  7452. * src/Makefile.in
  7453. * src/OptionHandlerFactory.cc
  7454. * src/RequestGroup.cc
  7455. * src/RequestGroup.h
  7456. * src/RequestGroupMan.cc
  7457. * src/ServerStat.cc
  7458. * src/ServerStat.h
  7459. * src/ServerStatMan.cc
  7460. * src/SpeedCalc.cc
  7461. * src/URISelector.h
  7462. * src/prefs.cc
  7463. * src/prefs.h
  7464. * test/RequestGroupManTest.cc
  7465. * test/ServerStatManTest.cc
  7466. * test/ServerStatTest.cc
  7467. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7468. Fixed unit test error.
  7469. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  7470. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7471. * Release 1.1.2
  7472. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7473. Updated Russian translation. Thanks to the translators.
  7474. * po/ru.po
  7475. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7476. Added the description of --use-head option to man page.
  7477. * doc/aria2c.1.txt
  7478. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7479. Bump up version number to 1.1.2
  7480. * configure.ac
  7481. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7482. Added --use-head option to toggle whether HEAD method should be
  7483. used in the first HTTP request. By default aria2 uses HEAD method
  7484. as the first request. When the server doesn't recognize HEAD, then
  7485. give aria2 --use-head=false to force aria2 to use GET method
  7486. instead.
  7487. * src/OptionHandlerFactory.cc
  7488. * src/RequestGroupMan.cc
  7489. * src/option_processing.cc
  7490. * src/prefs.cc
  7491. * src/prefs.h
  7492. * src/usage_text.h
  7493. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7494. Fixed the bug that BitTorrent download doesn't finish when REJECT
  7495. message is received before CHOKE message. The old implementation
  7496. doen't clear the use-bit of the piece when recieved REJECT
  7497. message.
  7498. * src/DefaultBtMessageDispatcher.cc
  7499. * test/DefaultBtMessageDispatcherTest.cc
  7500. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7501. * Release 1.1.1
  7502. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7503. Bump up version number to 1.1.1.
  7504. * configure.ac
  7505. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7506. Fixed the bug that --summary-interval=0 doesn't work. The summary
  7507. is printed repeatedly.
  7508. * src/ConsoleStatCalc.cc
  7509. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7510. * Release 1.1.0
  7511. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7512. Added ifdef clause for conditional compilation.
  7513. * src/main.cc
  7514. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7515. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  7516. translations. Thanks to all translators.
  7517. * po/ja.po
  7518. * po/ru.po
  7519. * po/uk.po
  7520. * po/zh_CN.po
  7521. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7522. Added the preceding ">>> " before the message "Printing the
  7523. contents of file..." to make the output more readable.
  7524. * src/main.cc
  7525. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7526. Added try-catch block in the loop in showFiles() to continue the
  7527. operation even if the exception occurred in one file.
  7528. * src/main.cc (showFiles)
  7529. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7530. Made messages in showFiles() translatable.
  7531. * po/aria2.pot
  7532. * src/main.cc
  7533. * src/message.h
  7534. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7535. Print the contents of Torrent/Metalink files are printed without
  7536. -T/-M options.
  7537. * src/main.cc
  7538. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7539. Escaped '--' with '\--'
  7540. * README
  7541. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7542. Updated "How to build" section in README. Mentioned about
  7543. --with-ca-bundle compile option.
  7544. * README
  7545. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7546. Bump up version number to 1.1.0.
  7547. * configure.ac
  7548. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7549. Added a note for --dht-listen-port option.
  7550. * doc/aria2c.1.txt
  7551. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7552. Update doc for --realtime-chunk-checksum option.
  7553. * doc/aria2c.1.txt
  7554. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7555. Update doc for --realtime-chunk-checksum option.
  7556. * src/usage_text.h
  7557. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7558. Updated French, Japanese, Russian and Ukrainian translations.
  7559. Thanks to all translators.
  7560. * po/fr.po
  7561. * po/ja.po
  7562. * po/ru.po
  7563. * po/uk.po
  7564. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7565. Renamed aria2c.pot to aria2.pot
  7566. * po/aria2.pot
  7567. * po/aria2c.pot: Removed.
  7568. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7569. Removed MetaEntry.h
  7570. * src/Makefile.am
  7571. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7572. Rename file by appending digits if a local file exists and its
  7573. file size is larger than that of remote file with --continue
  7574. option. The old implementation just throws exception in such case.
  7575. * src/RequestGroup.cc
  7576. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7577. Fixed the bug that download progress summary is not printed in the
  7578. interval specified by the option.
  7579. * src/ConsoleStatCalc.cc
  7580. * src/ConsoleStatCalc.h
  7581. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7582. Fixed compiler warning
  7583. * src/Cookie.cc
  7584. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7585. Fixed the cookie implementation based on RFC2965.
  7586. Now if a value in domain field is not started with dot, then
  7587. prepend dot. That means a cookie with domain=sf.net is sent to
  7588. wiki.sf.net.
  7589. * src/Cookie.cc
  7590. * test/CookieParserTest.cc
  7591. * test/CookieStorageTest.cc
  7592. * test/CookieTest.cc
  7593. * test/NsCookieParserTest.cc
  7594. * test/Sqlite3MozCookieParserTest.cc
  7595. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7596. Fixed the bug that causes corrupted downloads if HTTP pipelining
  7597. is enabled and the server doesn't support keep-alive.
  7598. * src/AbstractCommand.cc
  7599. * src/DownloadCommand.cc
  7600. * src/HttpDownloadCommand.cc
  7601. * src/HttpDownloadCommand.h
  7602. * src/HttpResponseCommand.cc
  7603. * src/Request.cc
  7604. * src/Request.h
  7605. * test/RequestTest.cc
  7606. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7607. Removed Dictionary/List/Data and its related classes.
  7608. * src/BencodeVisitor.cc: Removed.
  7609. * src/BencodeVisitor.h: Removed.
  7610. * src/Data.cc: Removed.
  7611. * src/Data.h: Removed.
  7612. * src/Dictionary.cc: Removed.
  7613. * src/Dictionary.h: Removed.
  7614. * src/List.cc: Removed.
  7615. * src/List.h: Removed.
  7616. * src/Makefile.am
  7617. * src/MetaEntry.h: Removed.
  7618. * src/MetaEntryVisitor.h: Removed.
  7619. * src/MetaFileUtil.cc: Removed.
  7620. * src/MetaFileUtil.h: Removed.
  7621. * test/BencodeVisitorTest.cc: Removed.
  7622. * test/DataTest.cc: Removed.
  7623. * test/DictionaryTest.cc: Removed.
  7624. * test/ListTest.cc: Removed.
  7625. * test/Makefile.am
  7626. * test/MetaFileUtilTest.cc: Removed.
  7627. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7628. Removed include of MetaEntry.h
  7629. * test/DHTMessageTrackerEntryTest.cc
  7630. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7631. Use BDE instead of Dictionary/List/Data.
  7632. * src/AnnounceList.cc
  7633. * src/AnnounceList.h
  7634. * test/AnnounceListTest.cc
  7635. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7636. Use BDE instead of Dictionary/List/Data.
  7637. * src/DHTAbstractMessage.cc
  7638. * src/DHTAbstractMessage.h
  7639. * src/DHTAnnouncePeerMessage.cc
  7640. * src/DHTAnnouncePeerMessage.h
  7641. * src/DHTAnnouncePeerReplyMessage.cc
  7642. * src/DHTAnnouncePeerReplyMessage.h
  7643. * src/DHTFindNodeMessage.cc
  7644. * src/DHTFindNodeMessage.h
  7645. * src/DHTFindNodeReplyMessage.cc
  7646. * src/DHTFindNodeReplyMessage.h
  7647. * src/DHTGetPeersMessage.cc
  7648. * src/DHTGetPeersMessage.h
  7649. * src/DHTGetPeersReplyMessage.cc
  7650. * src/DHTGetPeersReplyMessage.h
  7651. * src/DHTMessageFactory.h
  7652. * src/DHTMessageFactoryImpl.cc
  7653. * src/DHTMessageFactoryImpl.h
  7654. * src/DHTMessageReceiver.cc
  7655. * src/DHTMessageTracker.cc
  7656. * src/DHTMessageTracker.h
  7657. * src/DHTPingMessage.cc
  7658. * src/DHTPingMessage.h
  7659. * src/DHTPingReplyMessage.cc
  7660. * src/DHTPingReplyMessage.h
  7661. * src/DHTQueryMessage.cc
  7662. * src/DHTQueryMessage.h
  7663. * src/DHTResponseMessage.cc
  7664. * src/DHTResponseMessage.h
  7665. * test/DHTAnnouncePeerMessageTest.cc
  7666. * test/DHTAnnouncePeerReplyMessageTest.cc
  7667. * test/DHTFindNodeMessageTest.cc
  7668. * test/DHTFindNodeReplyMessageTest.cc
  7669. * test/DHTGetPeersMessageTest.cc
  7670. * test/DHTGetPeersReplyMessageTest.cc
  7671. * test/DHTMessageFactoryImplTest.cc
  7672. * test/DHTMessageTrackerTest.cc
  7673. * test/DHTPingMessageTest.cc
  7674. * test/DHTPingReplyMessageTest.cc
  7675. * test/MockDHTMessageFactory.h
  7676. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7677. Added tests the case where length < 0 is specified.
  7678. * test/BencodeTest.cc
  7679. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7680. Fixed memory leak in decoderawstring()
  7681. * src/bencode.cc
  7682. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7683. Added missing #ifdef guard. Added uc() function for String and
  7684. removeKey() for Dict.
  7685. * src/bencode.cc
  7686. * src/bencode.h
  7687. * test/BencodeTest.cc
  7688. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7689. Use BDE instead of Dictionary/List/Data.
  7690. * src/HandshakeExtensionMessage.cc
  7691. * src/HandshakeExtensionMessage.h
  7692. * test/HandshakeExtensionMessageTest.cc
  7693. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7694. Added --max-overall-upload-limit option. This option limits the
  7695. overall upload speed. Stated in help message that the existing
  7696. --max-upload-limit option limits the upload speed per each
  7697. torrent. Man page is also updated.
  7698. * doc/aria2c.1.txt
  7699. * src/DefaultBtMessageDispatcher.cc
  7700. * src/DefaultBtMessageDispatcher.h
  7701. * src/OptionHandlerFactory.cc
  7702. * src/PeerInteractionCommand.cc
  7703. * src/option_processing.cc
  7704. * src/prefs.cc
  7705. * src/prefs.h
  7706. * src/usage_text.h
  7707. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7708. Use BDE instead of Dictionary/List/Data classes.
  7709. * src/CompactPeerListProcessor.cc
  7710. * src/CompactPeerListProcessor.h
  7711. * src/DefaultBtAnnounce.cc
  7712. * src/DefaultBtContext.cc
  7713. * src/DefaultBtContext.h
  7714. * src/DefaultPeerListProcessor.cc
  7715. * src/DefaultPeerListProcessor.h
  7716. * src/DelegatingPeerListProcessor.cc
  7717. * src/DelegatingPeerListProcessor.h
  7718. * src/PeerListProcessor.h
  7719. * src/UTPexExtensionMessage.cc
  7720. * src/Util.h
  7721. * src/message.h
  7722. * test/DefaultBtContextTest.cc
  7723. * test/DefaultPeerListProcessorTest.cc
  7724. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7725. Added bencode helper functions and BDE class.
  7726. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7727. * src/Makefile.am
  7728. * src/bencode.cc
  7729. * src/bencode.h
  7730. * test/BencodeTest.cc
  7731. * test/Makefile.am
  7732. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7733. Fixed the bug that bad URI is sent to the tracker when the announe
  7734. URI in torrent file includes query.
  7735. * src/DefaultBtAnnounce.cc
  7736. * test/DefaultBtAnnounceTest.cc
  7737. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7738. Added Option::blank().
  7739. Use !Option::blank(name) instead of Option::defined(name) for
  7740. the options that take filename.
  7741. * src/MultiUrlRequestInfo.cc
  7742. * src/Option.cc
  7743. * src/Option.h
  7744. * src/main.cc
  7745. * src/option_processing.cc
  7746. * test/OptionTest.cc
  7747. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7748. Documented the default value of --check-certificate option in man
  7749. page.
  7750. * doc/aria2c.1.txt
  7751. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7752. Enabled --check-certificate by default. Added compile
  7753. time(configure) option --with-ca-bundle to specify CA bundle.
  7754. Warn if --check-certificate=true and --ca-certificate is not
  7755. specified or loading CA certificate is failed.
  7756. * configure.ac
  7757. * src/MultiUrlRequestInfo.cc
  7758. * src/OptionHandlerFactory.cc
  7759. * src/message.h
  7760. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7761. Mentioned https tag in help option.
  7762. * doc/aria2c.1.txt
  7763. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7764. Added `https' tag to help option category. Added https tag to
  7765. --ca-certificate, --certificate, --check-certificate and
  7766. --private-key option.
  7767. * src/OptionHandlerFactory.cc
  7768. * src/help_tags.h
  7769. * src/option_processing.cc
  7770. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7771. Changed the package name from `aria2c' to `aria2' in order to fix
  7772. the packaging issue in Debian and Fedora. The name of the
  7773. executable is not changed.
  7774. * configure.ac
  7775. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7776. Fixed typos
  7777. * src/usage_text.h
  7778. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7779. Fixed typos and updated doc.
  7780. * README
  7781. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7782. Fixed typos
  7783. * doc/aria2c.1.txt
  7784. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7785. Fixed typos
  7786. * src/usage_text.h
  7787. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7788. Print a message when no files to download.
  7789. * src/download_helper.cc
  7790. * src/main.cc
  7791. * src/message.h
  7792. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7793. RFC3986 complied Percent-Encoding(urlencode).
  7794. Use uppercase hexadecimal digits for encoded text instead of lowercase
  7795. ones.
  7796. * src/Request.cc
  7797. * src/Util.cc
  7798. * src/Util.h
  7799. * test/BtHandshakeMessageTest.cc
  7800. * test/DefaultBtAnnounceTest.cc
  7801. * test/DefaultBtContextTest.cc
  7802. * test/RequestTest.cc
  7803. * test/UtilTest.cc
  7804. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7805. Fixed the bug that prevents aria2 from downloading 0-length files
  7806. via HTTP/FTP.
  7807. * src/DefaultBtContext.cc
  7808. * src/DefaultBtContext.h
  7809. * src/DownloadContext.h
  7810. * src/FtpNegotiationCommand.cc
  7811. * src/HttpResponseCommand.cc
  7812. * src/HttpResponseCommand.h
  7813. * src/RequestGroup.cc
  7814. * src/SingleFileDownloadContext.cc
  7815. * src/SingleFileDownloadContext.h
  7816. * test/BtPostDownloadHandlerTest.cc
  7817. * test/MetalinkPostDownloadHandlerTest.cc
  7818. * test/MockBtContext.h
  7819. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7820. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7821. * src/option_processing.cc
  7822. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7823. Applied aria2-1.0.1-mingw.patch.
  7824. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7825. mingw.
  7826. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7827. * src/SocketCore.cc
  7828. * src/a2netcompat.h
  7829. * test/SocketCoreTest.cc
  7830. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7831. * Release 1.0.1
  7832. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7833. Updated Ukrainian and Norwegian Nynorsk translations.
  7834. Thanks to all translators.
  7835. * po/nn.po
  7836. * po/uk.po
  7837. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7838. Don't show download result when -S option is used.
  7839. * src/main.cc
  7840. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7841. Bump up version number to 1.0.1
  7842. * configure.ac
  7843. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7844. Closed files after the test cases in MultiDiskWriterTest::
  7845. testResetDiskWriterEntries(). This will fix the unit test error
  7846. in mingw32 build.
  7847. * test/MultiDiskWriterTest.cc
  7848. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7849. Use HEAD method to get file size from HTTP server for segmented
  7850. downloading.
  7851. The request to the BitTorrent Tracker always uses GET method because
  7852. the response of the tracker is small and it doesn't need segmented
  7853. download.
  7854. * src/FtpNegotiationCommand.cc
  7855. * src/HttpRequest.cc
  7856. * src/HttpResponseCommand.cc
  7857. * src/HttpSkipResponseCommand.cc
  7858. * src/RequestGroup.cc
  7859. * src/RequestGroup.h
  7860. * src/TrackerWatcherCommand.cc
  7861. * test/HttpRequestTest.cc
  7862. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7863. Fixed the bug that causes floating exception when -T option is used and
  7864. no URIs are given.
  7865. * src/download_helper.cc
  7866. * test/DownloadHelperTest.cc
  7867. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7868. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7869. errors in MinGW:
  7870. Closed file after saving server stats (RequestGroupMan.cc)
  7871. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7872. Ignored case & handled 2-digit years (strptime.c)
  7873. Added missing suseconds_t definition (a2time.h)
  7874. Fixed socket CLOSE() define (SocketCore.cc)
  7875. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7876. Changed utime() test values from x000 to x00000 as MinGW failed on
  7877. values less than timezone offset from Unix epoch
  7878. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7879. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7880. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7881. handle negative dates (CookieParserTest.cc)
  7882. * src/a2time.h
  7883. * src/FtpConnection.cc
  7884. * src/RequestGroupMan.cc
  7885. * src/SocketCore.cc
  7886. * src/strptime.c
  7887. * test/CookieParserTest.cc
  7888. * test/CopyDiskAdaptorTest.cc
  7889. * test/FileTest.cc
  7890. * test/FtpConnectionTest.cc
  7891. * test/MultiDiskAdaptorTest.cc
  7892. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7893. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7894. * doc/aria2c.1.txt
  7895. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7896. * Release 1.0.0
  7897. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7898. Added '~' to reserved characters.
  7899. * src/Util.cc
  7900. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7901. Do not urlencode Request::url in setUrl() because we want unmodified
  7902. URL using Request::getUrl()
  7903. * src/Request.cc
  7904. * src/Request.h
  7905. * test/RequestTest.cc
  7906. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7907. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7908. Thanks to all translators.
  7909. * po/bg.po
  7910. * po/fr.po
  7911. * po/ja.po
  7912. * po/ru.po
  7913. * po/uk.po
  7914. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7915. Bump up version number to 1.0.0
  7916. * configure.ac
  7917. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7918. Added nosqlite3 build to build_test.sh.
  7919. Renamed noxml as expat.
  7920. * build_test.sh
  7921. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7922. Updated INPUT FILE section.
  7923. * doc/aria2c.1.txt
  7924. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7925. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7926. on big endian systems because test .aria2 files are made for little
  7927. endian systems.
  7928. * test/DefaultBtProgressInfoFileTest.cc
  7929. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7930. Dropped ares support.
  7931. * README
  7932. * configure.ac
  7933. * m4/libares.m4: Removed.
  7934. * src/AsyncNameResolver.cc
  7935. * src/Makefile.am
  7936. * test/Makefile.am
  7937. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7938. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7939. Removed const qualifier from DiskWriter::size().
  7940. * src/AbstractDiskWriter.cc
  7941. * src/AbstractDiskWriter.h
  7942. * src/ByteArrayDiskWriter.cc
  7943. * src/ByteArrayDiskWriter.h
  7944. * src/DiskWriter.h
  7945. * test/ByteArrayDiskWriterTest.cc
  7946. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7947. Fixed the bug that causes segmentation fault/bus error during executing
  7948. choking algorithm while seeding. This is caused by improper
  7949. implementation of compare function which returns inconsistent results
  7950. depending on the timing of last unchoke.
  7951. * src/BtSeederStateChoke.cc
  7952. * src/BtSeederStateChoke.h
  7953. * src/DefaultPeerStorage.cc
  7954. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7955. Removed TODO
  7956. * TODO
  7957. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7958. Added a section that explains how to pass argument to options that
  7959. takes optional arguments with its short form.
  7960. * doc/aria2c.1.txt
  7961. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7962. Added -u for the short form of --max-upload-limit option.
  7963. * doc/aria2c.1.txt
  7964. * src/option_processing.cc
  7965. * src/usage_text.h
  7966. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7967. Added -V for the short form of --check-integrity option.
  7968. Now the argument of --check-integrity option is optional:
  7969. if it is omitted, it is evaluated as true.
  7970. * doc/aria2c.1.txt
  7971. * src/option_processing.cc
  7972. * src/usage_text.h
  7973. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7974. Made the default value of --ftp-pasv option set to true and it can take
  7975. true/false values.
  7976. * src/OptionHandlerFactory.cc
  7977. * src/option_processing.cc
  7978. * src/usage_text.h
  7979. * doc/aria2c.1.txt
  7980. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7981. Given custom random number generator to std::random_shuffle.
  7982. * src/AnnounceList.cc
  7983. * src/BtLeecherStateChoke.cc
  7984. * src/BtSeederStateChoke.cc
  7985. * src/DefaultBtRequestFactory.cc
  7986. * src/MetalinkEntry.cc
  7987. * src/RarestPieceSelector.cc
  7988. * src/SimpleRandomizer.cc
  7989. * src/SimpleRandomizer.h
  7990. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7991. Now the default value of --enable-direct-io is true.
  7992. * src/OptionHandlerFactory.cc
  7993. * doc/aria2c.1.txt
  7994. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7995. Erase peer before executing onReturningPeer and onErasingPeer
  7996. because choking algorithm called from onReturningPeer doesn't
  7997. like erasing peer in the active peer list.
  7998. * src/DefaultPeerStorage.cc
  7999. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8000. Instead of creating special filename in createDownloadResult() if
  8001. inMemoryDownload() is true, now it is done in getFilePath().
  8002. * src/RequestGroup.cc
  8003. * test/RequestGroupTest.cc
  8004. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8005. Print "[MEMORY]" and filename if a file is not saved in disk and just
  8006. processed in memory. This is the fix for previous comment out.
  8007. * src/MemoryBufferPreDownloadHandler.cc
  8008. * src/RequestGroup.cc
  8009. * src/RequestGroup.h
  8010. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8011. Commented out the code which sets virtual directory path "[MEMORY]"
  8012. propagate directory to store to following RequestGroup.
  8013. * src/MemoryBufferPreDownloadHandler.cc
  8014. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8015. Bump up version number to 1.0.0b
  8016. * configure.ac
  8017. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8018. Added input_uris.txt to EXTRA_DIST
  8019. * test/Makefile.am
  8020. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8021. Removed PeerObject.h from Makefile.am
  8022. * src/Makefile.am
  8023. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8024. Avoid slow seeding
  8025. * src/PeerInteractionCommand.cc
  8026. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8027. Updated usage for -i option.
  8028. * src/usage_text.h (TEXT_INPUT_FILE)
  8029. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8030. Added INPUT FILE section to man page.
  8031. Escaped fake URLs.
  8032. * doc/aria2c.1.txt
  8033. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8034. Fixed wrong note position for -o option.
  8035. * doc/aria2c.1.txt
  8036. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8037. Fixed compile error without SSL/XML library.
  8038. * src/DefaultBtProgressInfoFile.cc
  8039. * src/DefaultBtProgressInfoFile.h
  8040. * src/FileMetalinkParserState.cc
  8041. * src/RequestGroup.h
  8042. * src/SocketCore.cc
  8043. * src/SocketCore.h
  8044. * src/VerificationMetalinkParserState.cc
  8045. * src/download_helper.h
  8046. * src/main.cc
  8047. * test/DefaultBtProgressInfoFileTest.cc
  8048. * test/DownloadHelperTest.cc
  8049. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8050. Rewritten URI handling functions. They are now provided as a testable
  8051. functions.
  8052. * src/Makefile.am
  8053. * src/RequestGroup.cc
  8054. * src/RequestGroup.h
  8055. * src/download_helper.cc
  8056. * src/download_helper.h
  8057. * src/main.cc
  8058. * test/DownloadHelperTest.cc
  8059. * test/Makefile.am
  8060. * test/input_uris.txt
  8061. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8062. Quickly terminate commands when ctrl-c is pressed.
  8063. * src/DownloadEngine.cc
  8064. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8065. Quickly terminate idle commands when download finished.
  8066. * src/AbstractCommand.cc
  8067. * src/DownloadCommand.cc
  8068. * src/DownloadEngine.cc
  8069. * src/DownloadEngine.h
  8070. * src/SleepCommand.cc
  8071. * src/SleepCommand.h
  8072. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8073. Added the ability to specify output filename and directory in input
  8074. file.
  8075. Additional parameters are added in the following line of URIs
  8076. with proceeding white space(s), 1 parameter in 1 line.
  8077. The parameter names are the same with the command-line option name
  8078. without proceeding "--". Not all the options are available here:
  8079. at the moment, 'dir' and 'out' options are avialable.
  8080. Please note that out option has no effect against Metalink or BitTorrent
  8081. downloads.
  8082. Example input file:
  8083. http://host/foo-1.1.tar.bz2
  8084. out=foo.tar.bz2
  8085. dir=/tmp/downloads
  8086. http://host/thundermonkey-2.0.tar.bz2
  8087. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  8088. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  8089. thundermonkey-2.0.tar.bz2 is saved as
  8090. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  8091. * src/BtPostDownloadHandler.cc
  8092. * src/Metalink2RequestGroup.cc
  8093. * src/Metalink2RequestGroup.h
  8094. * src/MetalinkPostDownloadHandler.cc
  8095. * src/UriListParser.cc
  8096. * src/UriListParser.h
  8097. * src/main.cc
  8098. * test/Metalink2RequestGroupTest.cc
  8099. * test/UriListParserTest.cc
  8100. * test/filelist1.txt
  8101. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8102. Fixed error when SSL library is not found.
  8103. * configure.ac
  8104. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8105. Cross referenced among -s, -C and -j options.
  8106. Updated usage of -C and -s options.
  8107. * src/usage_text.h
  8108. * doc/aria2c.1.txt
  8109. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8110. Fixed bad cast in 32bit platforms.
  8111. * test/DefaultPieceStorageTest.cc
  8112. (DefaultPieceStorageTest::testGetCompletedLength)
  8113. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8114. Fixed unit test fails on 32bit platforms.
  8115. * test/CookieParserTest.cc
  8116. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8117. Show an average download speed in Download results.
  8118. * src/BtFileAllocationEntry.cc
  8119. * src/DefaultPieceStorage.cc
  8120. * src/DownloadContext.cc
  8121. * src/DownloadContext.h
  8122. * src/DownloadResult.h
  8123. * src/RequestGroup.cc
  8124. * src/RequestGroupMan.cc
  8125. * src/StreamFileAllocationEntry.cc
  8126. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8127. Fixed the bug that metalink file is not processed if Content-Type
  8128. field has a paramter.
  8129. * src/HttpResponse.cc
  8130. * src/HttpResponse.h
  8131. * test/HttpResponseTest.cc
  8132. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8133. Removed unused code.
  8134. * src/DefaultBtAnnounce.cc
  8135. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8136. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  8137. the value larger than DefaultPieceStorage::getTotalLength() when
  8138. in flight pieces are involved.
  8139. * src/DefaultPieceStorage.cc
  8140. * test/DefaultPieceStorageTest.cc
  8141. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8142. Bump up version number to 1.0.0a.
  8143. * configure.ac
  8144. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8145. Updated configure.ac
  8146. * configure.ac
  8147. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8148. Added usege for proxy.
  8149. * doc/aria2c.1.txt
  8150. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8151. Added usage for --ca-certificate, --certificate, --private-key and
  8152. --check-certificate options.
  8153. * doc/aria2c.1.txt
  8154. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8155. Updated man page
  8156. * doc/aria2c.1.txt
  8157. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8158. Added --no-proxy option. It receives comman separated hostname or
  8159. domains to which proxy should not be used.
  8160. aria2 honors the environment variable no_proxy to override no-proxy
  8161. value in configuration file. The user can override the environment
  8162. variable no_proxy with --no-proxy command-line option.
  8163. * src/AbstractCommand.cc
  8164. * src/OptionHandlerFactory.cc
  8165. * src/option_processing.cc
  8166. * src/prefs.cc
  8167. * src/prefs.h
  8168. * src/usage_text.h
  8169. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8170. Added the ability to verify peer in SSL/TLS using given CA certificates.
  8171. The CA certificates are specified in --ca-certificate option.
  8172. By default, the verification is disabled. Use --check-certificate
  8173. option to enable it.
  8174. * src/HttpRequestCommand.cc
  8175. * src/LibgnutlsTLSContext.cc
  8176. * src/LibgnutlsTLSContext.h
  8177. * src/LibsslTLSContext.cc
  8178. * src/LibsslTLSContext.h
  8179. * src/MultiUrlRequestInfo.cc
  8180. * src/OptionHandlerFactory.cc
  8181. * src/SocketCore.cc
  8182. * src/SocketCore.h
  8183. * src/a2functional.h
  8184. * src/message.h
  8185. * src/option_processing.cc
  8186. * src/prefs.cc
  8187. * src/prefs.h
  8188. * src/usage_text.h
  8189. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8190. Added client certificate authentication for SSL/TLS.
  8191. Currently a private key must be decrypted for use with aria2.
  8192. If a user accidentally gives encrypted file to aria2 then following
  8193. thing happens:
  8194. If encrypted private key is given to aria2, it behaves differently
  8195. depending on the ssl library it uses. If aria2 built with openssl then
  8196. openssl prompts the user for password. If aria2 build with gnutls then
  8197. aria2 exists with error at start up.
  8198. * src/DownloadEngineFactory.cc
  8199. * src/MultiUrlRequestInfo.cc
  8200. * src/OptionHandlerFactory.cc
  8201. * src/option_processing.cc
  8202. * src/prefs.cc
  8203. * src/prefs.h
  8204. * src/usage_text.h
  8205. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8206. Introduced TLSContext that holds TLS related data that can be shared
  8207. with multiple SSL connections.
  8208. * src/DownloadEngineFactory.cc
  8209. * src/LibgnutlsTLSContext.cc
  8210. * src/LibgnutlsTLSContext.h
  8211. * src/LibsslTLSContext.cc
  8212. * src/LibsslTLSContext.h
  8213. * src/Makefile.am
  8214. * src/SocketCore.cc
  8215. * src/SocketCore.h
  8216. * src/TLSContext.h
  8217. * src/message.h
  8218. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8219. Fixed the bug that the DiskWriter of the first FileEntry whose
  8220. `needsFileAllocation' property is false is not created
  8221. even if it shares a piece with next FileEntry which `requested' property
  8222. is true.
  8223. Fixed the bug that zero-length file is not created if pre file
  8224. allocation is not done.
  8225. * src/MultiDiskAdaptor.cc
  8226. * src/MultiDiskAdaptor.h
  8227. * test/MultiDiskAdaptorTest.cc
  8228. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. Added the ability to pool proxy connection.
  8230. The conneciton in FTP with proxy-method=GET is not pooled.
  8231. Proxy-Connection header will not be sent when sending CONNECT method.
  8232. * src/DownloadEngine.cc
  8233. * src/DownloadEngine.h
  8234. * src/FtpFinishDownloadCommand.cc
  8235. * src/FtpInitiateConnectionCommand.cc
  8236. * src/FtpNegotiationCommand.cc
  8237. * src/HttpDownloadCommand.cc
  8238. * src/HttpInitiateConnectionCommand.cc
  8239. * src/HttpRequest.cc
  8240. * src/HttpRequest.h
  8241. * src/HttpResponse.cc
  8242. * src/HttpSkipResponseCommand.cc
  8243. * test/HttpRequestTest.cc
  8244. * test/HttpResponseTest.cc
  8245. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8246. Handle date before epoch.
  8247. To create *bad* Time object, call Time::null().
  8248. * src/CookieParser.cc
  8249. * src/FtpConnection.cc
  8250. * src/FtpConnection.h
  8251. * src/FtpNegotiationCommand.cc
  8252. * src/RequestGroup.cc
  8253. * src/TimeA2.cc
  8254. * src/TimeA2.h
  8255. * test/CookieParserTest.cc
  8256. * test/FtpConnectionTest.cc
  8257. * test/TimeTest.cc
  8258. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Added support for following envrionment variables: http_proxy,
  8260. https_proxy, ftp_proxy and all_proxy.
  8261. Each variable is equivalent to the aria2 option whose name is the
  8262. variable name with '_' replaced with '-'.
  8263. They overrides options specified in aria2.conf file.
  8264. The envrionment variables can be overrode using command-line option.
  8265. * src/option_processing.cc
  8266. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Renamed --http-proxy-method as --proxy-method.
  8268. * src/AbstractCommand.cc
  8269. * src/FtpInitiateConnectionCommand.cc
  8270. * src/HttpInitiateConnectionCommand.cc
  8271. * src/OptionHandlerFactory.cc
  8272. * src/option_processing.cc
  8273. * src/prefs.cc
  8274. * src/prefs.h
  8275. * src/usage_text.h
  8276. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8277. Deprecated --http-proxy-user and --http-proxy-passwd options.
  8278. Added --https-proxy, --ftp-proxy and --all-proxy options.
  8279. Above 3 options and --http-proxy option can handle proxy in URL format
  8280. like: http://user:passwd@host:port.
  8281. If a proxy requires user/password, they must be specified in a URL.
  8282. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  8283. instead.
  8284. * src/AbstractCommand.cc
  8285. * src/AbstractCommand.h
  8286. * src/AbstractProxyRequestCommand.cc
  8287. * src/AbstractProxyRequestCommand.h
  8288. * src/AuthConfigFactory.cc
  8289. * src/AuthConfigFactory.h
  8290. * src/FtpFinishDownloadCommand.cc
  8291. * src/FtpInitiateConnectionCommand.cc
  8292. * src/FtpInitiateConnectionCommand.h
  8293. * src/FtpNegotiationCommand.cc
  8294. * src/FtpTunnelRequestCommand.cc
  8295. * src/FtpTunnelRequestCommand.h
  8296. * src/HttpDownloadCommand.cc
  8297. * src/HttpInitiateConnectionCommand.cc
  8298. * src/HttpInitiateConnectionCommand.h
  8299. * src/HttpProxyRequestCommand.cc
  8300. * src/HttpProxyRequestCommand.h
  8301. * src/HttpRequest.cc
  8302. * src/HttpRequest.h
  8303. * src/HttpRequestCommand.cc
  8304. * src/HttpRequestCommand.h
  8305. * src/HttpSkipResponseCommand.cc
  8306. * src/InitiateConnectionCommand.cc
  8307. * src/InitiateConnectionCommand.h
  8308. * src/OptionHandlerFactory.cc
  8309. * src/OptionHandlerImpl.h
  8310. * src/Request.cc
  8311. * src/option_processing.cc
  8312. * src/prefs.cc
  8313. * src/prefs.h
  8314. * src/usage_text.h
  8315. * test/AuthConfigFactoryTest.cc
  8316. * test/HttpRequestTest.cc
  8317. * test/OptionHandlerTest.cc
  8318. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8319. Execute choking algorithm when unchoked and interested peer is
  8320. disconected.
  8321. * src/DefaultPeerStorage.cc
  8322. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. Added testcase for BtNotInterestedMessage from unchoked peer.
  8324. * test/BtNotInterestedMessageTest.cc
  8325. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Execute choking algorithm when BtInterestedMessage arrives from
  8327. unchoked peer.
  8328. * src/BtInterestedMessage.cc
  8329. * src/BtInterestedMessage.h
  8330. * src/DefaultBtMessageFactory.cc
  8331. * test/BtInterestedMessageTest.cc
  8332. * test/MockPeerStorage.h
  8333. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. AuthConfigFactory is now part of DownloadEngine.
  8335. * src/AbstractProxyRequestCommand.cc
  8336. * src/AuthConfigFactory.h
  8337. * src/DownloadEngine.cc
  8338. * src/DownloadEngine.h
  8339. * src/FtpConnection.cc
  8340. * src/FtpConnection.h
  8341. * src/FtpNegotiationCommand.cc
  8342. * src/HttpConnection.cc
  8343. * src/HttpRequest.cc
  8344. * src/HttpRequest.h
  8345. * src/HttpRequestCommand.cc
  8346. * src/HttpResponse.cc
  8347. * src/HttpResponseCommand.cc
  8348. * src/HttpSkipResponseCommand.cc
  8349. * src/MultiUrlRequestInfo.cc
  8350. * src/main.cc
  8351. * test/FtpConnectionTest.cc
  8352. * test/HttpRequestTest.cc
  8353. * test/HttpResponseTest.cc
  8354. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8355. Corrected catched exception type.
  8356. * src/ServerStatMan.cc
  8357. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8358. DNSCache is now part of DownloadEngine.
  8359. * src/DNSCache.h
  8360. * src/DownloadEngine.cc
  8361. * src/DownloadEngine.h
  8362. * src/InitiateConnectionCommand.cc
  8363. * src/MultiUrlRequestInfo.cc
  8364. * test/Makefile.am
  8365. * test/Makefile.in
  8366. * test/SimpleDNSCacheTest.cc
  8367. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  8369. DownloadEngine.
  8370. * src/ActivePeerConnectionCommand.cc
  8371. * src/BtSetup.cc
  8372. * src/CUIDCounter.h
  8373. * src/DHTSetup.cc
  8374. * src/DownloadCommand.cc
  8375. * src/DownloadEngine.cc
  8376. * src/DownloadEngine.h
  8377. * src/DownloadEngineFactory.cc
  8378. * src/FileAllocationDispatcherCommand.cc
  8379. * src/InitiatorMSEHandshakeCommand.cc
  8380. * src/PeerInitiateConnectionCommand.cc
  8381. * src/PeerInteractionCommand.cc
  8382. * src/PeerListenCommand.cc
  8383. * src/RequestGroup.cc
  8384. * src/StreamFileAllocationEntry.cc
  8385. * src/TrackerWatcherCommand.cc
  8386. * src/main.cc
  8387. * test/RequestGroupManTest.cc
  8388. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8389. Implemented commented code in BtSeederStateChoke
  8390. * src/BtSeederStateChoke.cc
  8391. * src/Peer.cc
  8392. * src/Peer.h
  8393. * src/PeerInteractionCommand.cc
  8394. * src/PeerSessionResource.cc
  8395. * src/PeerSessionResource.h
  8396. * test/MockBtMessageDispatcher.h
  8397. * test/PeerSessionResourceTest.cc
  8398. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8399. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  8400. its object.
  8401. * src/AbstractBtMessage.cc
  8402. * src/ActivePeerConnectionCommand.cc
  8403. * src/ActivePeerConnectionCommand.h
  8404. * src/BtContextAwareCommand.cc
  8405. * src/BtContextAwareCommand.h
  8406. * src/BtExtendedMessage.cc
  8407. * src/BtExtendedMessage.h
  8408. * src/BtInterestedMessage.cc
  8409. * src/BtInterestedMessage.h
  8410. * src/BtNotInterestedMessage.cc
  8411. * src/BtNotInterestedMessage.h
  8412. * src/BtRegistry.cc
  8413. * src/BtRegistry.h
  8414. * src/BtSeederStateChoke.cc
  8415. * src/BtSetup.cc
  8416. * src/DHTGetPeersCommand.cc
  8417. * src/DHTGetPeersCommand.h
  8418. * src/DHTPeerAnnounceEntry.cc
  8419. * src/DHTPeerAnnounceEntry.h
  8420. * src/DHTPeerAnnounceStorage.cc
  8421. * src/DHTPeerAnnounceStorage.h
  8422. * src/DHTPeerLookupTask.cc
  8423. * src/DHTPeerLookupTask.h
  8424. * src/DHTSetup.cc
  8425. * src/DHTSetup.h
  8426. * src/DHTTaskFactory.h
  8427. * src/DHTTaskFactoryImpl.cc
  8428. * src/DHTTaskFactoryImpl.h
  8429. * src/DefaultBtAnnounce.cc
  8430. * src/DefaultBtInteractive.cc
  8431. * src/DefaultBtInteractive.h
  8432. * src/DefaultBtMessageDispatcher.cc
  8433. * src/DefaultBtMessageDispatcher.h
  8434. * src/DefaultBtMessageFactory.cc
  8435. * src/DefaultBtMessageFactory.h
  8436. * src/DefaultBtMessageReceiver.cc
  8437. * src/DefaultBtProgressInfoFile.cc
  8438. * src/DefaultBtProgressInfoFile.h
  8439. * src/DefaultBtRequestFactory.cc
  8440. * src/DefaultBtRequestFactory.h
  8441. * src/DefaultExtensionMessageFactory.cc
  8442. * src/DefaultExtensionMessageFactory.h
  8443. * src/DefaultPeerStorage.cc
  8444. * src/DefaultPeerStorage.h
  8445. * src/DownloadEngine.cc
  8446. * src/DownloadEngine.h
  8447. * src/InitiatorMSEHandshakeCommand.cc
  8448. * src/InitiatorMSEHandshakeCommand.h
  8449. * src/MSEHandshake.cc
  8450. * src/MSEHandshake.h
  8451. * src/Makefile.am
  8452. * src/Makefile.in
  8453. * src/PeerChokeCommand.cc
  8454. * src/PeerChokeCommand.h
  8455. * src/PeerInitiateConnectionCommand.cc
  8456. * src/PeerInitiateConnectionCommand.h
  8457. * src/PeerInteractionCommand.cc
  8458. * src/PeerInteractionCommand.h
  8459. * src/PeerObject.h
  8460. * src/PeerReceiveHandshakeCommand.cc
  8461. * src/PeerReceiveHandshakeCommand.h
  8462. * src/ReceiverMSEHandshakeCommand.cc
  8463. * src/RequestGroup.cc
  8464. * src/RequestGroup.h
  8465. * src/RequestGroupMan.cc
  8466. * src/RequestGroupMan.h
  8467. * src/SeedCheckCommand.cc
  8468. * src/SeedCheckCommand.h
  8469. * src/ShareRatioSeedCriteria.h
  8470. * src/SimpleBtMessage.cc
  8471. * src/TrackerWatcherCommand.cc
  8472. * src/TrackerWatcherCommand.h
  8473. * src/UTPexExtensionMessage.cc
  8474. * src/UTPexExtensionMessage.h
  8475. * test/BtCancelMessageTest.cc
  8476. * test/BtChokeMessageTest.cc
  8477. * test/BtExtendedMessageTest.cc
  8478. * test/BtInterestedMessageTest.cc
  8479. * test/BtNotInterestedMessageTest.cc
  8480. * test/BtPieceMessageTest.cc
  8481. * test/BtPortMessageTest.cc
  8482. * test/BtRegistryTest.cc
  8483. * test/BtRejectMessageTest.cc
  8484. * test/BtRequestMessageTest.cc
  8485. * test/DHTPeerAnnounceEntryTest.cc
  8486. * test/DHTPeerAnnounceStorageTest.cc
  8487. * test/DefaultBtMessageDispatcherTest.cc
  8488. * test/DefaultBtMessageFactoryTest.cc
  8489. * test/DefaultBtProgressInfoFileTest.cc
  8490. * test/DefaultBtRequestFactoryTest.cc
  8491. * test/DefaultExtensionMessageFactoryTest.cc
  8492. * test/MSEHandshakeTest.cc
  8493. * test/MockDHTTaskFactory.h
  8494. * test/ShareRatioSeedCriteriaTest.cc
  8495. * test/UTPexExtensionMessageTest.cc
  8496. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Fixed compiler warning.
  8498. * test/UtilTest.cc
  8499. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8500. Treat Cookie object as session cookie if expiry = 0 is given.
  8501. With this change, you can specify session scoped cookies in an external
  8502. file setting expiry value to 0.
  8503. * src/Cookie.cc
  8504. * src/Cookie.h
  8505. * test/CookieParserTest.cc
  8506. * test/CookieStorageTest.cc
  8507. * test/CookieTest.cc
  8508. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8509. Changed signature of DHTMessageFactory::createResponseMessage().
  8510. Removed unused validateIDMatch.
  8511. * src/DHTMessageFactory.h
  8512. * src/DHTMessageFactoryImpl.cc
  8513. * src/DHTMessageFactoryImpl.h
  8514. * src/DHTMessageTracker.cc
  8515. * test/DHTMessageFactoryImplTest.cc
  8516. * test/MockDHTMessageFactory.h
  8517. Dropped DHT message coming from same ID of localhost.
  8518. * src/DHTMessageReceiver.cc
  8519. Rejected adding node whose ID is the same as localhost's.
  8520. * src/DHTRoutingTable.cc
  8521. * test/BtPortMessageTest.cc
  8522. * test/DHTRoutingTableTest.cc
  8523. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8524. Pool connection when redirection occurs with Content-Length = 0.
  8525. * src/HttpSkipResponseCommand.cc
  8526. * src/HttpSkipResponseCommand.h
  8527. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. Fixed the bug that causes time out when redirection occurs with
  8529. content-length 0.
  8530. * src/HttpResponseCommand.cc
  8531. * src/HttpSkipResponseCommand.cc
  8532. * src/HttpSkipResponseCommand.h
  8533. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. Now each status legends is shown only when it appears in Download
  8535. Result. If Download Result has no item, then status legend will not
  8536. be printed.
  8537. * src/RequestGroupMan.cc
  8538. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8539. Removed duplicate creation of OptionHandlers.
  8540. * src/option_processing.cc
  8541. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Fixed the bug that causes segmentation fault when accessing files which
  8543. don't exist or are not included in --select-file option while
  8544. validating chunk checksum.
  8545. * src/MultiDiskAdaptor.cc
  8546. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Fixed compiler warning.
  8548. * test/UtilTest.cc
  8549. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Included cstdlib. This fixed the compile error with g++-4.3.2.
  8551. * src/IteratableChecksumValidator.cc
  8552. * src/IteratableChunkChecksumValidator.cc
  8553. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. * Release 0.16.2
  8555. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8556. Added Serbian translation. Updated Ukrainian translation.
  8557. Thanks to all translators.
  8558. * po/sr.po
  8559. * po/uk.po
  8560. * po/LINGUAS
  8561. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8562. Bump up version number to 0.16.2
  8563. * configure.ac
  8564. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8565. Added length equality test to operator== to drop a piece message
  8566. whose length does not match to the requested one.
  8567. * src/RequestSlot.cc
  8568. * test/DefaultBtMessageDispatcherTest.cc
  8569. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8570. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  8571. recieved.
  8572. In this fix, if a request larger than 16KiB length is received, aria2
  8573. disconnects the peer.
  8574. * src/BtConstants.h
  8575. * src/PeerMessageUtil.cc
  8576. * src/PeerMessageUtil.h
  8577. * test/BtRequestMessageTest.cc
  8578. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. * Release 0.16.1
  8580. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  8582. * doc/aria2c.1.txt
  8583. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  8585. Updated French, Simplified Chinese and Japanese translations.
  8586. Thanks to all translators.
  8587. en@quot and en@boldquot are also added.
  8588. * po/LINGUAS
  8589. * po/fr.po
  8590. * po/ja.po
  8591. * po/uk.po
  8592. * po/vi.po
  8593. * po/zh_CN.po
  8594. * po/zh_TW.po
  8595. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8596. Bump up version number to 0.16.1.
  8597. * configure.ac
  8598. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. Updated README.
  8600. * README
  8601. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  8603. not to replace '--' with em dash character.
  8604. * doc/aria2c.1.txt
  8605. * doc/makeman
  8606. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8607. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  8608. every SEC seconds.
  8609. * src/DownloadEngineFactory.cc
  8610. * src/OptionHandlerFactory.cc
  8611. * src/option_processing.cc
  8612. * src/usage_text.h
  8613. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. Fixed compile warning on linux-amd64
  8615. * src/FtpConnection.cc
  8616. * src/IteratableChunkChecksumValidator.cc
  8617. * src/MultiDiskAdaptor.cc
  8618. Fixed the bug that unit test fails on linux-amd64
  8619. * test/UtilTest.cc
  8620. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8621. Added --dht-file-path option to change the path to dht.dat, which is a
  8622. serialized DHT routing table.
  8623. * src/OptionHandlerFactory.cc
  8624. * src/option_processing.cc
  8625. * src/usage_text.h
  8626. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Fixed possible underflow.
  8628. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  8629. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. Fixed the bug that last character in URI is not encoded.
  8631. * src/Request.cc
  8632. * test/RequestTest.cc
  8633. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8634. Fixed the bug that referer header field contains fragment.
  8635. Now Request class removes fragment part of URI and encodes it
  8636. in Request::setUri() and setReferer().
  8637. * src/Request.h
  8638. * src/Request.cc
  8639. * test/RequestTest.cc
  8640. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8641. Added missing m4 macros.
  8642. * m4/cppunit.m4
  8643. * m4/libgcrypt.m4
  8644. * m4/libgnutls-extra.m4
  8645. * m4/libgnutls.m4
  8646. * m4/libxml2.m4
  8647. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8648. Fixed compile error with gcc-4.4(snapshot)
  8649. * src/File.cc
  8650. * src/FtpConnection.cc
  8651. * src/OptionHandlerImpl.h
  8652. * src/Util.cc
  8653. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8654. Removed assert()
  8655. * src/SocketBuffer.cc (SocketBuffer::send)
  8656. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Changed the type of _numNewConnection to unsigned int.
  8658. * src/ActivePeerConnectionCommand.cc
  8659. * src/ActivePeerConnectionCommand.h
  8660. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. * Release 0.16.0
  8662. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Updated doc
  8664. * README
  8665. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  8667. translations. Thanks to all translators.
  8668. * po/bg.po
  8669. * po/de.po
  8670. * po/fr.po
  8671. * po/ja.po
  8672. * po/zh_CN.po
  8673. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. Bump up version number to 0.16.0.
  8675. * configure.ac
  8676. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8677. Casted entry->maxConnections to int32_t for std::min<T> with T =
  8678. int32_t.
  8679. Changed the type of count to int32_t.
  8680. * src/Metalink2RequestGroup.cc
  8681. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. Added test for Time::elapsed(time_t).
  8683. * test/TimeTest.cc
  8684. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  8686. Util::difftv() should be used instead.
  8687. * src/TimeA2.cc
  8688. * src/TimeA2.h
  8689. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8690. Made socket for dht connections non-blocking
  8691. * src/DHTAbstractMessage.cc
  8692. * src/DHTAbstractMessage.h
  8693. * src/DHTConnection.h
  8694. * src/DHTConnectionImpl.cc
  8695. * src/DHTConnectionImpl.h
  8696. * src/DHTMessage.h
  8697. * src/DHTMessageDispatcherImpl.cc
  8698. * src/DHTMessageDispatcherImpl.h
  8699. * src/DHTUnknownMessage.cc
  8700. * src/DHTUnknownMessage.h
  8701. * src/SocketCore.cc
  8702. * src/SocketCore.h
  8703. * test/MockDHTMessage.h
  8704. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8705. Changed the type of offset to int.
  8706. * src/ParameterizedStringParser.cc
  8707. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8708. Made getAsInt() return int32_t
  8709. * src/Option.h
  8710. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8712. build.
  8713. * configure.ac
  8714. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Use sqlite3_open if sqlite3_open_v2 is not available.
  8716. * src/Sqlite3MozCookieParser.cc
  8717. * src/Sqlite3MozCookieParser.h
  8718. * m4/sqlite3.m4
  8719. * test/Sqlite3MozCookieParserTest.cc
  8720. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8722. * src/BtPieceMessage.cc
  8723. * src/DHTPeerAnnounceStorage.cc
  8724. * src/DefaultPieceStorage.cc
  8725. * src/DownloadCommand.cc
  8726. * src/DownloadEngine.cc
  8727. * src/FtpConnection.cc
  8728. * src/PeerConnection.cc
  8729. * src/PeerMessageUtil.cc
  8730. * src/RequestGroup.cc
  8731. * src/RequestGroupMan.cc
  8732. * src/SimpleBtMessage.cc
  8733. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8735. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8736. * src/AbstractDiskWriter.cc
  8737. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Don't set Request::supportsPersistentConnection() in HttpConnection
  8739. since this code is also used in AbstractProxyResponseCommand.
  8740. Moved those code to HttpResponse.
  8741. * src/HttpResponse.cc
  8742. * src/HttpResponse.h
  8743. * src/HttpConnection.cc
  8744. * src/HttpConnection.h
  8745. * src/HttpResponseCommand.cc
  8746. * test/HttpResponseTest.cc
  8747. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  8749. The configuration is minimum: no torrent, no metalink, so there may be
  8750. other compile error on their code.
  8751. * src/a2netcompat.h
  8752. * src/File.cc
  8753. * src/File.h
  8754. * src/SocketCore.cc
  8755. * src/SocketCore.h
  8756. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Made a socket of incoming peer non-blocking.
  8758. * src/PeerListenCommand.cc
  8759. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  8761. whole message data is not sent in one send() call.
  8762. * src/BtPieceMessage.cc
  8763. * src/BtPieceMessage.h
  8764. * src/PeerConnection.cc
  8765. * src/PeerConnection.h
  8766. * src/SimpleBtMessage.cc
  8767. * src/SimpleBtMessage.h
  8768. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8769. Fixed the bug that aria2 downloads faster than max-download-limit when
  8770. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  8771. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  8772. , instead of sum of them.
  8773. * src/ActivePeerConnectionCommand.cc
  8774. * src/DefaultBtInteractive.cc
  8775. * src/DownloadCommand.cc
  8776. * src/PeerInteractionCommand.cc
  8777. * src/PeerReceiveHandshakeCommand.cc
  8778. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Fixed the bug that HTTPS download fails.
  8780. * src/AbstractCommand.cc
  8781. * src/AbstractCommand.h
  8782. * src/DownloadCommand.cc
  8783. * src/FtpConnection.cc
  8784. * src/HttpConnection.cc
  8785. * src/HttpRequestCommand.cc
  8786. * src/HttpResponseCommand.cc
  8787. * src/HttpSkipResponseCommand.cc
  8788. * src/MSEHandshake.cc
  8789. * src/PeerConnection.cc
  8790. * src/SocketCore.cc
  8791. * src/SocketCore.h
  8792. Fixed the bug that aria2 doesn't download whole content body and cannot
  8793. reuse connection if chunked transfer encoding and gzip content encoding
  8794. are set.
  8795. * src/DownloadCommand.cc
  8796. * src/HttpSkipResponseCommand.cc
  8797. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8798. Updated man page.
  8799. * doc/aria2c.1.txt
  8800. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8801. When error occurred while aria2 was parsing an .aria2.conf file, print
  8802. the usage of the option that caused error.
  8803. * src/option_processing.cc
  8804. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Fixed compile error on OptionHandlerException
  8806. * src/Makefile.am
  8807. * src/OptionHandlerException.cc
  8808. * src/OptionHandlerException.h
  8809. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Moved message of the error to OptionHandlerException.h
  8811. * src/NameMatchOptionHandler.h
  8812. * src/OptionHandlerException.h
  8813. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. When error occurs while aria2 is parsing an command-line option, print
  8815. the usage of the option.
  8816. * src/Makefile.am
  8817. * src/NameMatchOptionHandler.h
  8818. * src/OptionHandlerException.h
  8819. * src/option_processing.cc
  8820. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8821. Reverted previous change.
  8822. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8823. username is not in URI.
  8824. * src/HttpRequest.cc
  8825. * src/Request.cc
  8826. * test/HttpRequestTest.cc
  8827. * test/RequestTest.cc
  8828. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8829. Now colon is required for username and password in FTP URL, like:
  8830. ftp://username:password@host.
  8831. If colon is not there, aria2 don't parse it as a username. For example,
  8832. aria2 don't retrieve username from ftp://username@host.
  8833. This fix was made in order to login FTP server via non-transparent ftp
  8834. proxy.
  8835. * src/Request.cc
  8836. * test/RequestTest.cc
  8837. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Use netrc for HTTP.
  8839. Now FTP user/password is sent in Authorization header when
  8840. --ftp-via-http-proxy=get is given.
  8841. * src/AuthConfigFactory.cc
  8842. * src/HttpRequest.cc
  8843. * src/HttpRequest.h
  8844. * src/NetrcAuthResolver.cc
  8845. * src/NetrcAuthResolver.h
  8846. * src/OptionHandlerFactory.cc
  8847. * src/option_processing.cc
  8848. * src/prefs.cc
  8849. * src/prefs.h
  8850. * test/AuthConfigFactoryTest.cc
  8851. * test/HttpRequestTest.cc
  8852. * test/NetrcAuthResolverTest.cc
  8853. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. Issue PWD command first and get working directory and use it as a prefix
  8855. for CWD command.
  8856. * src/DownloadEngine.cc
  8857. * src/DownloadEngine.h
  8858. * src/FtpConnection.cc
  8859. * src/FtpConnection.h
  8860. * src/FtpFinishDownloadCommand.cc
  8861. * src/FtpInitiateConnectionCommand.cc
  8862. * src/FtpNegotiationCommand.cc
  8863. * src/FtpNegotiationCommand.h
  8864. * test/FtpConnectionTest.cc
  8865. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. Removed default user/pass for FTP user/pass, since it should not have
  8867. precedence over netrc configuration by default.
  8868. * src/OptionHandlerFactory.cc
  8869. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Added debug log for socket event.
  8871. * src/AbstractCommand.cc
  8872. * src/PeerAbstractCommand.cc
  8873. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Log microseconds.
  8875. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8876. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8877. Replaced HelpItem.cc with OptionHandler.cc.
  8878. * po/POTFILES.in
  8879. Updated po files with 'make update-po'
  8880. * po/aria2c.pot
  8881. * po/*.po
  8882. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. Removed possible values from the text.
  8884. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8885. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8886. Removed unused preferences:
  8887. PREF_NO_PREALLOCATION
  8888. PREF_STDOUT_LOG
  8889. PREF_TRACKER_MAX_TRIES
  8890. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8891. PREF_MIN_SEGMENT_SIZE
  8892. * src/option_processing.cc
  8893. * src/prefs.cc
  8894. * src/prefs.h
  8895. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Integrated HelpItem into OptionParser to ease the workload for adding
  8897. new options. Removed default value from usage text.
  8898. * src/HelpItem.cc: Removed.
  8899. * src/HelpItem.h: Removed.
  8900. * src/HelpItemFactory.cc: Removed.
  8901. * src/HelpItemFactory.h: Removed.
  8902. * src/Makefile.am
  8903. * src/Makefile.in
  8904. * src/NameMatchOptionHandler.h
  8905. * src/OptionHandler.cc
  8906. * src/OptionHandler.h
  8907. * src/OptionHandlerFactory.cc
  8908. * src/OptionHandlerImpl.h
  8909. * src/OptionParser.cc
  8910. * src/OptionParser.h
  8911. * src/TagContainer.cc: Removed.
  8912. * src/TagContainer.h: Removed.
  8913. * src/TaggedItem.cc: Removed.
  8914. * src/TaggedItem.h: Removed.
  8915. * src/main.cc
  8916. * src/option_processing.cc
  8917. * src/usage_text.h
  8918. * src/version_usage.cc
  8919. * test/HelpItemTest.cc: Removed.
  8920. * test/Makefile.am
  8921. * test/Makefile.in
  8922. * test/OptionHandlerTest.cc
  8923. * test/OptionParserTest.cc
  8924. * test/TagContainerTest.cc: Removed.
  8925. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8926. Moved `TransferStat stat = ...' to inside the `if' clause.
  8927. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8928. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8929. Fixed the bug that a block in a piece is requested when same block is
  8930. already requested to the same peer in end game mode.
  8931. * src/BtRequestFactory.h
  8932. * src/DefaultBtInteractive.cc
  8933. * src/DefaultBtRequestFactory.cc
  8934. * src/DefaultBtRequestFactory.h
  8935. * src/DefaultPieceStorage.cc
  8936. * src/DefaultPieceStorage.h
  8937. * src/PieceStorage.h
  8938. * src/UnknownLengthPieceStorage.cc
  8939. * src/UnknownLengthPieceStorage.h
  8940. * test/DefaultBtRequestFactoryTest.cc
  8941. * test/DefaultPieceStorageTest.cc
  8942. * test/MockBtRequestFactory.h
  8943. * test/MockPieceStorage.h
  8944. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8945. Removed _uploadLength and _downloadLength from PeerSessionResource
  8946. and use PeerStat::_sessionUploadLength and
  8947. PeerStat::_sessionDownloadLength.
  8948. * src/PeerSessionResource.cc
  8949. * src/PeerSessionResource.h
  8950. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8951. Fixed the bug that prefixLength of split bucket which doesn't include
  8952. local node ID is incremented.
  8953. * src/DHTBucket.cc
  8954. * src/DHTBucket.h
  8955. * test/DHTBucketTest.cc
  8956. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Added cookies.sqlite to EXTRA_DIST
  8958. * test/Makefile.am
  8959. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8960. Added Turkish translation. Updated French, German, Russian and
  8961. Simplified Chinese translations. Thanks to all translators.
  8962. * po/LINGUAS
  8963. * po/de.po
  8964. * po/fr.po
  8965. * po/ru.po
  8966. * po/tr.po
  8967. * po/zh_CN.po
  8968. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. Added deliminating text to the beginning of the log so that one can find
  8970. where the log starts easily.
  8971. * src/main.cc
  8972. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8974. to fix compile error when async DNS is not enabled by configuration.
  8975. * src/AbstractCommand.cc
  8976. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. If establishing conneciton to a server is failed, then mark error on
  8978. its ServerStat.
  8979. Added the cause of error to log when error event occurred.
  8980. Moved message string to message.h for translation.
  8981. * src/AbstractCommand.cc
  8982. * src/AbstractCommand.h
  8983. * src/FtpNegotiationCommand.cc
  8984. * src/HttpRequestCommand.cc
  8985. * src/PeerAbstractCommand.cc
  8986. * src/message.h
  8987. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8988. Added the function to get error message from socket.
  8989. * src/SocketCore.cc
  8990. * src/SocketCore.h
  8991. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8993. * src/RequestGroupMan.cc
  8994. * src/RequestGroupMan.h
  8995. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8996. If error event is received in epoll, then abort download immediately.
  8997. * src/AbstractCommand.cc
  8998. * src/Command.cc
  8999. * src/Command.h
  9000. * src/DownloadEngine.cc
  9001. * src/PeerAbstractCommand.cc
  9002. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Added usage message for --uri-selector, --server-stat-of,
  9004. --server-stat-in, --server-stat-timeout options.
  9005. * src/HelpItemFactory.cc
  9006. * src/usage_text.h
  9007. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9008. Added upper limit of FTP response buffer. The current implementation
  9009. uses 4096bytes as a limit.
  9010. * src/FtpConnection.cc
  9011. * src/FtpConnection.h
  9012. * test/FtpConnectionTest.cc
  9013. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9014. Use non-blocking socket for TCP communication to avoid possible
  9015. blocking due to buffer full.
  9016. * src/AbstractProxyRequestCommand.cc
  9017. * src/FtpConnection.cc
  9018. * src/FtpConnection.h
  9019. * src/FtpNegotiationCommand.cc
  9020. * src/FtpNegotiationCommand.h
  9021. * src/HttpConnection.cc
  9022. * src/HttpConnection.h
  9023. * src/HttpRequestCommand.cc
  9024. * src/InitiatorMSEHandshakeCommand.cc
  9025. * src/InitiatorMSEHandshakeCommand.h
  9026. * src/MSEHandshake.cc
  9027. * src/MSEHandshake.h
  9028. * src/Makefile.am
  9029. * src/PeerConnection.cc
  9030. * src/PeerConnection.h
  9031. * src/PeerInteractionCommand.cc
  9032. * src/PeerListenCommand.cc
  9033. * src/ReceiverMSEHandshakeCommand.cc
  9034. * src/ReceiverMSEHandshakeCommand.h
  9035. * src/SocketBuffer.cc
  9036. * src/SocketBuffer.h
  9037. * src/SocketCore.cc
  9038. * src/SocketCore.h
  9039. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Call setStatusRealtime() in constructor.
  9041. * src/RealtimeCommand.cc
  9042. * src/RealtimeCommand.h
  9043. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Call Download::setNoWait(true) to execute newly created command without
  9045. a pause.
  9046. * src/AbstractCommand.cc
  9047. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9048. Added --max-file-not-found=NUM option. If aria2 receives `file not
  9049. found' error from HTTP/FTP server NUM times without getting single
  9050. bytes of data, then force the download to fail.
  9051. Basically aria2 tris all URIs available. So if long list of URIs are
  9052. specified in Metalink, then aria2 will take a long time to fail
  9053. eventually if all URIs are outdated. This option eases this situation
  9054. to limit the number of servers to try.
  9055. * src/FtpNegotiationCommand.cc
  9056. * src/HelpItemFactory.cc
  9057. * src/HttpResponseCommand.cc
  9058. * src/OptionHandlerFactory.cc
  9059. * src/PeerStat.h
  9060. * src/RequestGroup.cc
  9061. * src/RequestGroup.h
  9062. * src/SegmentMan.cc
  9063. * src/SegmentMan.h
  9064. * src/option_processing.cc
  9065. * src/prefs.cc
  9066. * src/prefs.h
  9067. * src/usage_text.h
  9068. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9069. Fixed the bug that bulkReceiveResponse() reads all received data as a
  9070. response even if more than one response is in it.
  9071. * src/FtpConnection.cc
  9072. * src/FtpConnection.h
  9073. * test/FtpConnectionTest.cc
  9074. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Merged from stable-0.15
  9076. * m4/libcares.m4
  9077. Use pkg-config
  9078. * m4/sqlite3.m4
  9079. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9080. Removed unnecessary if statement.
  9081. * src/DefaultPieceStorage.cc (initPieceStorage)
  9082. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9083. Added --connect-timeout option to specify connect timeout in seconds.
  9084. This option is in effect for HTTP/FTP/proxy server. The timeout for
  9085. connecting to BitTorrent peer is not controlled by this option.
  9086. * src/AbstractProxyRequestCommand.cc
  9087. * src/FtpNegotiationCommand.cc
  9088. * src/HelpItemFactory.cc
  9089. * src/HttpRequestCommand.cc
  9090. * src/OptionHandlerFactory.cc
  9091. * src/option_processing.cc
  9092. * src/prefs.cc
  9093. * src/prefs.h
  9094. * src/usage_text.h
  9095. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. Added help message for -R option.
  9097. * src/HelpItemFactory.cc
  9098. * src/usage_text.h
  9099. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Added the message that the time is in local time zone.
  9101. * src/RequestGroup.cc
  9102. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Implemented the ability to get timestamp from remote FTP server using
  9104. MDTM command described in RFC3659.
  9105. * src/FtpConnection.cc
  9106. * src/FtpConnection.h
  9107. * src/FtpNegotiationCommand.cc
  9108. * src/FtpNegotiationCommand.h
  9109. * test/FtpConnectionTest.cc
  9110. * test/Makefile.am
  9111. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9112. Implemented the ability to get timestamp from remote HTTP server and
  9113. apply it to local file. To enable this feature, --remote-time option
  9114. is added. No usage text has been written yet.
  9115. If several servers returns difference timestamp, then aria2 uses latest
  9116. one.
  9117. * src/CopyDiskAdaptor.cc
  9118. * src/CopyDiskAdaptor.h
  9119. * src/DirectDiskAdaptor.cc
  9120. * src/DirectDiskAdaptor.h
  9121. * src/DiskAdaptor.h
  9122. * src/File.cc
  9123. * src/File.h
  9124. * src/HttpHeader.cc
  9125. * src/HttpHeader.h
  9126. * src/HttpResponse.cc
  9127. * src/HttpResponse.h
  9128. * src/HttpResponseCommand.cc
  9129. * src/HttpResponseCommand.h
  9130. * src/MultiDiskAdaptor.cc
  9131. * src/MultiDiskAdaptor.h
  9132. * src/OptionHandlerFactory.cc
  9133. * src/RequestGroup.cc
  9134. * src/RequestGroup.h
  9135. * src/RequestGroupMan.cc
  9136. * src/option_processing.cc
  9137. * src/prefs.cc
  9138. * src/prefs.h
  9139. * test/CopyDiskAdaptorTest.cc
  9140. * test/FileTest.cc
  9141. * test/Makefile.am
  9142. * test/Makefile.in
  9143. * test/MultiDiskAdaptorTest.cc
  9144. * test/TestUtil.cc
  9145. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Fixed the bug that DiskWriterEntry is not created when its
  9147. FileEntry.isRequested() is false and it doesn't share a piece with
  9148. other FileEntries that are requested. This bug causes segmentation fault
  9149. in the end.
  9150. * src/MultiDiskAdaptor.cc
  9151. * src/MultiDiskAdaptor.h
  9152. * src/MultiFileAllocationIterator.cc
  9153. * test/MultiDiskAdaptorTest.cc
  9154. * test/MultiFileAllocationIteratorTest.cc
  9155. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  9157. called if the number of file entries are greater than max open files.
  9158. * src/AbstractSingleDiskAdaptor.cc
  9159. * src/AbstractSingleDiskAdaptor.h
  9160. * src/DiskAdaptor.h
  9161. * src/MultiDiskAdaptor.cc
  9162. * src/MultiDiskAdaptor.h
  9163. * test/MultiDiskAdaptorTest.cc
  9164. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Added a constuctor that receives struct timeval.
  9166. Added operator<.
  9167. * src/TimeA2.cc
  9168. * src/TimeA2.h
  9169. * test/TimeTest.cc
  9170. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  9172. * src/CookieParser.cc
  9173. * test/CookieParserTest.cc
  9174. * test/HttpResponseTest.cc
  9175. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. Implmented the functions to parse date.
  9177. * src/TimeA2.cc
  9178. * src/TimeA2.h
  9179. * test/TimeTest.cc
  9180. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9181. Added "Firefox3 Cookie" feature to FeatureConfig
  9182. * src/FeatureConfig.cc
  9183. * src/FeatureConfig.h
  9184. * test/FeatureConfigTest.cc
  9185. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9186. Bump up version number to 0.16.0b
  9187. * configure.ac
  9188. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9189. Use pkg-config if is is available.
  9190. * m4/openssl.m4
  9191. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  9193. * src/BtAnnounce.h
  9194. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. If an error occurred with a URI, remove identical URI from remaining
  9196. URI list because it is likely that same error occurred in the end and it
  9197. is waste of time.
  9198. * src/AbstractCommand.cc
  9199. * src/RequestGroup.cc
  9200. * src/RequestGroup.h
  9201. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9202. Removed wrong comment.
  9203. * src/DefaultPeerStorage.cc
  9204. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  9206. Added return value of getpid() to argument of srand() to achieve more
  9207. randomized value.
  9208. * src/SimpleRandomizer.cc
  9209. * src/SimpleRandomizer.h
  9210. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. Contact tracker frequently when the number of connections are 0 and
  9212. download is not finished yet.
  9213. * src/ActivePeerConnectionCommand.cc
  9214. * src/BtAnnounce.h
  9215. * src/DefaultBtAnnounce.cc
  9216. * src/DefaultBtAnnounce.h
  9217. * test/MockBtAnnounce.h
  9218. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. Moved threshold values to UTPexExtensionMessage.
  9220. * src/DefaultBtInteractive.cc
  9221. * src/Peer.cc
  9222. * src/Peer.h
  9223. * src/UTPexExtensionMessage.cc
  9224. * src/UTPexExtensionMessage.h
  9225. * test/UTPexExtensionMessageTest.cc
  9226. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Added _incoming member to Peer class and made it true if the peer
  9228. initiated connection. Don't add those peer to UTPex message.
  9229. If extended handshake is received, assign _incoming to false.
  9230. * src/DefaultBtInteractive.cc
  9231. * src/HandshakeExtensionMessage.cc
  9232. * src/Peer.cc
  9233. * src/Peer.h
  9234. * src/PeerListenCommand.cc
  9235. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9236. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  9237. Encoding Decoder. Removed size threshold for turning off on the fly
  9238. inflation because resulting file may or may not be inflated depending
  9239. on the file size and I think it is not expected by users.
  9240. This change fixes segmentation fault when Metalink file contains gzipped
  9241. file and its filesize is provided.
  9242. * src/HttpResponseCommand.cc
  9243. * src/HttpResponseCommand.h
  9244. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. Made Cookie immutable.
  9246. * src/Cookie.cc
  9247. * src/Cookie.h
  9248. * src/CookieParser.cc
  9249. * src/CookieParser.h
  9250. * src/CookieStorage.cc
  9251. * test/CookieParserTest.cc
  9252. * test/CookieStorageTest.cc
  9253. * test/NsCookieParserTest.cc
  9254. * test/Sqlite3MozCookieParserTest.cc
  9255. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9256. Removed CookieBox, CookieBoxFactory.
  9257. * src/CookieBox.cc
  9258. * src/CookieBox.h
  9259. * src/CookieBoxFactory.cc
  9260. * src/CookieBoxFactory.h
  9261. * src/Makefile.am
  9262. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9263. Use CookieStorage class instead of CookieBox class.
  9264. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  9265. * src/AbstractProxyRequestCommand.cc
  9266. * src/CookieStorage.cc
  9267. * src/DownloadEngine.cc
  9268. * src/DownloadEngine.h
  9269. * src/HttpConnection.cc
  9270. * src/HttpConnection.h
  9271. * src/HttpRequest.cc
  9272. * src/HttpRequest.h
  9273. * src/HttpRequestCommand.cc
  9274. * src/HttpResponse.cc
  9275. * src/HttpResponseCommand.cc
  9276. * src/HttpSkipResponseCommand.cc
  9277. * src/Makefile.am
  9278. * src/MultiUrlRequestInfo.cc
  9279. * src/Request.cc
  9280. * src/Request.h
  9281. * src/main.cc
  9282. * test/AllTest.cc
  9283. * test/CookieStorageTest.cc
  9284. * test/CookieTest.cc
  9285. * test/HttpRequestTest.cc
  9286. * test/HttpResponseTest.cc
  9287. * test/Makefile.am
  9288. * test/NsCookieParserTest.cc
  9289. * test/Sqlite3MozCookieParserTest.cc
  9290. * test/nscookietest.txt
  9291. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9292. Updated
  9293. * test/Cookies.sqlite
  9294. * test/nscookietest.txt
  9295. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Added tests for CookieStorage::load()
  9297. * test/CookieStorageTest.cc
  9298. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Added CookieStorage class which is based on RFC2109 and manages cookies
  9300. more strictly than CookieBox and CookieBoxFactory class.
  9301. * src/CookieStorage.cc
  9302. * src/CookieStorage.h
  9303. * src/Cookie.cc
  9304. * src/Cookie.h
  9305. * test/CookieStorageTest.cc
  9306. * test/CookieTest.cc
  9307. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Fixed the bug that commands are created more than the number of pieces.
  9309. * src/RequestGroup.cc
  9310. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Fixed infinite loop bug in FTP when SIZE command failed.
  9312. * src/FtpNegotiationCommand.cc
  9313. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Removed DirectDiskAdaptorTest.h
  9315. * test/Makefile.am
  9316. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9317. Fixed chunk checksum validation cannot detect trailing garbage data.
  9318. BUG#2074141
  9319. * src/AbstractSingleDiskAdaptor.cc
  9320. * src/AbstractSingleDiskAdaptor.h
  9321. * src/CheckIntegrityEntry.cc
  9322. * src/CheckIntegrityEntry.h
  9323. * src/DiskAdaptor.h
  9324. * src/MultiDiskAdaptor.cc
  9325. * src/MultiDiskAdaptor.h
  9326. * src/RequestGroup.cc
  9327. * test/DirectDiskAdaptorTest.cc
  9328. * test/MultiDiskAdaptorTest.cc
  9329. * test/TestUtil.cc
  9330. * test/TestUtil.h
  9331. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Bump up version number of dht.dat file to 3. In version 3 format, time
  9333. is stored in 64bit, network byte order.
  9334. New build can load old format(version 2) but it saves the file in new
  9335. format. It means once you used new build, your dht.dat becomes
  9336. incompatible with older build.
  9337. * src/DHTRoutingTableDeserializer.cc
  9338. * src/DHTRoutingTableSerializer.cc
  9339. * test/DHTRoutingTableSerializerTest.cc
  9340. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  9342. * test/Makefile.am
  9343. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Bump up version number of .aria2 control file to 0001.
  9345. New aria2 can still load version 0000 file but it saves the file in
  9346. version 0001 format. It means that new aria2 can resume download
  9347. started by old aria2 but the opposite is not true.
  9348. * src/DefaultBtProgressInfoFile.cc
  9349. * src/DefaultBtProgressInfoFile.h
  9350. * test/DefaultBtProgressInfoFileTest.cc
  9351. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9352. Added ntoh64 and hton64 as inline functions.
  9353. * src/Util.cc
  9354. * test/UtilTest.cc
  9355. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9356. Added sqlite3 depenency and Firefox3 cookie support.
  9357. * README
  9358. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9359. State that firefox3 cookie is supported explicitly in the usage.
  9360. * src/usage_text.h
  9361. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9362. Externalized message.
  9363. * src/RequestGroupMan.cc
  9364. * src/message.h
  9365. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9366. Save temporary file first and rename to the destination on success.
  9367. Added test cases.
  9368. * src/RequestGroupMan.cc
  9369. * test/RequestGroupManTest.cc
  9370. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9371. Fixed the bug that the number of connected peer is exceeding the limit
  9372. (55 by default) in seeding mode.
  9373. Multiplied 0.8 to _maxUploadSpeedLimit.
  9374. * src/ActivePeerConnectionCommand.cc
  9375. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Clear table item.
  9377. * src/Dictionary.cc
  9378. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9379. Fixed error handling of lseek.
  9380. * src/AbstractDiskWriter.cc
  9381. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  9383. style cookie file.
  9384. * src/usage_text.h
  9385. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  9387. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  9388. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  9389. * src/Util.cc
  9390. * src/Util.h
  9391. * src/CookieParser.cc
  9392. * test/UtilTest.cc
  9393. * test/CookieParserTest.cc
  9394. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9395. Separate the implementation to load old mozilla format of cookie to
  9396. NsCookieParser class.
  9397. * src/CookieBoxFactory.cc
  9398. * src/CookieBoxFactory.h
  9399. * src/NsCookieParser.cc
  9400. * src/NsCookieParser.h
  9401. * test/NsCookieParserTest.cc
  9402. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9403. Made parse() const
  9404. * src/Sqlite3MozCookieParser.cc
  9405. * src/Sqlite3MozCookieParser.h
  9406. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9407. Added firefox3 cookie support based on the patch submitted by
  9408. tizianomueller.
  9409. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  9410. this functionality.
  9411. * configure.ac
  9412. * m4/sqlite3.m4
  9413. * src/CookieBoxFactory.cc
  9414. * src/CookieBoxFactory.h
  9415. * src/Makefile.am
  9416. * src/Makefile.in
  9417. * src/Sqlite3MozCookieParser.cc
  9418. * src/Sqlite3MozCookieParser.h
  9419. * src/main.cc
  9420. * test/CookieBoxFactoryTest.cc
  9421. * test/Makefile.am
  9422. * test/Makefile.in
  9423. * test/Sqlite3MozCookieParserTest.cc
  9424. * test/badcookies.sqlite
  9425. * test/cookies.sqlite
  9426. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9427. Added Danish and Greek translations.
  9428. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  9429. Great thanks to all translators.
  9430. * po/LINGUAS
  9431. * po/el.po
  9432. * po/da.po
  9433. * po/es.po
  9434. * po/ca.po
  9435. * po/nn.po
  9436. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9437. Fixed man page: --follow-bittorrent should be --follow-torrent
  9438. * doc/aria2c.1.txt
  9439. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9440. Fixed: numCommand is less than the value specified in -C option.
  9441. * src/RequestGroup.cc
  9442. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9443. Fixed occasional assertion failure in PieceSegment.
  9444. Calling PieceStorage::getMissingPiece(size_t) was missing after
  9445. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  9446. creation of duplicate segments and one of the segment was finished then
  9447. assertion failure was caused.
  9448. * src/SegmentMan.cc
  9449. * test/SegmentManTest.cc
  9450. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9451. Added options to load/save the server's performance/status to a file
  9452. and the timeout to drop their data.
  9453. --server-stat-of=FILE specifies the file to which performance data
  9454. is saved.
  9455. --server-stat-if=FILE specifies the file to read previously saved
  9456. by --server-stat-of option. Might be used with --uri-selector=feedback.
  9457. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  9458. TIMEOUT is specified in seconds and the default value is 24hours.
  9459. * src/MultiUrlRequestInfo.cc
  9460. * src/OptionHandlerFactory.cc
  9461. * src/RequestGroupMan.cc
  9462. * src/RequestGroupMan.h
  9463. * src/ServerStatMan.cc
  9464. * src/ServerStatMan.h
  9465. * src/option_processing.cc
  9466. * src/prefs.cc
  9467. * src/prefs.h
  9468. * test/ServerStatManTest.cc
  9469. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  9471. * src/ServerStatMan.cc
  9472. * src/ServerStatMan.h
  9473. * test/ServerStatManTest.cc
  9474. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9475. Implemented ServerStatMan::load(...) function and its test case.
  9476. * src/ServerStat.cc
  9477. * src/ServerStat.h
  9478. * src/ServerStatMan.cc
  9479. * test/ServerStatManTest.cc
  9480. * test/ServerStatTest.cc
  9481. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9482. Use time_t instead of int32_t. Use int64_t where milli second is
  9483. expected.
  9484. * src/TimeA2.cc
  9485. * src/TimeA2.h
  9486. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9487. Implemented ServerStatMan::save(...) function and its test case.
  9488. * src/ServerStat.cc
  9489. * src/ServerStat.h
  9490. * src/ServerStatMan.cc
  9491. * src/ServerStatMan.h
  9492. * test/ServerStatManTest.cc
  9493. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Now aria2 uses name attribute in Metalink as local filename in
  9495. BitTorrent downloads. BUG#2033999
  9496. * src/BtContext.h
  9497. * src/BtDependency.cc
  9498. * src/DefaultBtContext.cc
  9499. * src/DefaultBtContext.h
  9500. * src/SingleFileDownloadContext.cc
  9501. * src/SingleFileDownloadContext.h
  9502. * test/BtDependencyTest.cc
  9503. * test/DefaultBtContextTest.cc
  9504. * test/MockBtContext.h
  9505. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9506. Added AC_C_BIGENDIAN
  9507. * src/configure.ac
  9508. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Limited numCommand less than or equal to the number of piece.
  9510. * src/RequestGroup.cc
  9511. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  9513. directive.
  9514. * test/DefaultPieceStorageTest.cc
  9515. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9516. Fixed memory leak in test code
  9517. * test/AnnounceListTest.cc
  9518. * test/DefaultPeerListProcessorTest.cc
  9519. * test/DefaultPeerStorageTest.cc
  9520. * test/MetaFileUtilTest.cc
  9521. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9522. Fixed wrong argument passing to BitfieldMan::isBitSet()
  9523. * src/DefaultPieceStorage.cc
  9524. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9525. Initialized _directIOAllowed
  9526. * src/MultiDiskAdaptor.cc
  9527. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9528. Fixed memory leak
  9529. * src/GZipDecoder.cc
  9530. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9531. Fixed memory leak
  9532. * src/MetalinkParserStateMachine.cc
  9533. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9534. Fixed memory leak
  9535. * src/Dictionary.cc
  9536. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9537. Fixed memory leak
  9538. * src/IteratableChunkChecksumValidator.h
  9539. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9540. Fixed unmatched malloc/free.
  9541. * src/IteratableChunkChecksumValidator.cc
  9542. * src/IteratableChecksumValidator.cc
  9543. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9544. Removed max chunk size check. This change fixes BUG#2040169
  9545. * src/ChunkedDecoder.cc
  9546. * src/ChunkedDecoder.h
  9547. * test/ChunkedDecoderTest.cc
  9548. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9549. Implemented download speed based URI selection algorithm.
  9550. Introduced new option --uri-selector.
  9551. If --uri-selector=feedback is given, aria2 uses download speed observed
  9552. in the previous downloads and chooses fastest server in the URI list.
  9553. Currently at most 10 URIs are considered to introduce randomeness for
  9554. finding better servers. The speed is average download speed in the
  9555. downloads.
  9556. On the other hand, if --uri-selector=inorder is given, which is default,
  9557. URI is tried in order in URI list.
  9558. The usage text for the new option has not been written yet.
  9559. * src/AbstractCommand.cc
  9560. * src/DownloadCommand.cc
  9561. * src/DownloadEngine.cc
  9562. * src/DownloadEngineFactory.cc
  9563. * src/InOrderURISelector.cc
  9564. * src/InOrderURISelector.h
  9565. * src/OptionHandlerFactory.cc
  9566. * src/PeerStat.h
  9567. * src/RequestGroup.cc
  9568. * src/RequestGroup.h
  9569. * src/RequestGroupMan.cc
  9570. * src/RequestGroupMan.h
  9571. * src/SegmentMan.cc
  9572. * src/SegmentMan.h
  9573. * src/ServerStat.cc
  9574. * src/ServerStat.h
  9575. * src/ServerStatMan.cc
  9576. * src/ServerStatMan.h
  9577. * src/ServerStatURISelector.cc
  9578. * src/ServerStatURISelector.h
  9579. * src/URISelector.h
  9580. * src/option_processing.cc
  9581. * src/prefs.cc
  9582. * src/prefs.h
  9583. * test/InOrderURISelectorTest.cc
  9584. * test/RequestGroupManTest.cc
  9585. * test/ServerStatManTest.cc
  9586. * test/ServerStatURISelectorTest.cc
  9587. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. * Release 0.15.1+2
  9589. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9590. Bump up version number to 0.15.1+2
  9591. * configure.ac
  9592. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9593. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  9594. * m4/aria2_arg.m4
  9595. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. * Release 0.15.1+1
  9597. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9598. Bump up version number to 0.15.1+1
  9599. * configure.ac
  9600. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9601. Fixed the bug that causes segmentaion fault when resuming download
  9602. using metalink without size tag. Reproducible only using HTTP URI.
  9603. * src/HttpResponseCommand.cc
  9604. * src/FtpNegotiationCommand.cc
  9605. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9606. * Release 0.15.1
  9607. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Updated Bulgarian and French translations, thanks to all translators.
  9609. * po/bg.po
  9610. * po/fr.po
  9611. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9612. Bump up version number to 0.15.1
  9613. * configure.ac
  9614. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. Avoid repeated call of gettimeofday() when calculating speed.
  9616. * src/SpeedCalc.cc
  9617. * src/SpeedCalc.h
  9618. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9619. Removed writable check when socket's send buffer is full in BitTorrent
  9620. downloads to lower CPU usage.
  9621. * src/PeerInteractionCommand.cc
  9622. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. Fixed broken gzip inflation.
  9624. Turn off segmented downloading if gzip content is smaller than or equal
  9625. to 1MiB and inflate the data on the fly, because HTTP response header
  9626. doesn't contain the length of inflated file we can't determin where
  9627. the chunk of data should be written.
  9628. On the other hand, if gzip content is larger than 1MB, then turn off
  9629. on the fly inflation, because some servers returns "content-type: gzip"
  9630. for *.tgz, *.gz files.
  9631. * src/DownloadCommand.cc
  9632. * src/HttpResponseCommand.cc
  9633. * src/HttpResponseCommand.h
  9634. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. Applied tizianomueller's patch to fix compile error.
  9636. * test/BitfieldManTest.cc
  9637. * test/BtRequestMessageTest.cc
  9638. * test/DefaultBtContextTest.cc
  9639. * test/DefaultDiskWriterTest.cc
  9640. * test/DefaultPieceStorageTest.cc
  9641. * test/HttpHeaderProcessorTest.cc
  9642. * test/HttpResponseTest.cc
  9643. * test/Metalink2RequestGroupTest.cc
  9644. * test/MetalinkParserControllerTest.cc
  9645. * test/MetalinkProcessorTest.cc
  9646. * test/PeerSessionResourceTest.cc
  9647. * test/UtilTest.cc
  9648. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. * Release 0.15.0
  9650. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9651. Reordered src files in POTFILES.in so that usage text appears first.
  9652. * po/POTFILES.in
  9653. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Bump up version number to 0.15.0
  9655. * configure.ac
  9656. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9657. Added Bulgarian translation.
  9658. Updated Catalan, Spanish, French and Japanese translations.
  9659. Thanks to all translators.
  9660. * po/LINGUAS
  9661. * po/bg.po
  9662. * po/ca.po
  9663. * po/es.po
  9664. * po/fr.po
  9665. * po/ja.po
  9666. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9667. Updated feature list. Added libz for dependency section.
  9668. Added a description about unit testing using CppUnit.
  9669. * README
  9670. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9671. Added a test for libz. Quoted where it is necessary.
  9672. * build_test.sh
  9673. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9674. Added GZip to `Enabled Features' list.
  9675. * src/FeatureConfig.cc
  9676. * src/FeatureConfig.h
  9677. * test/FeatureConfigTest.cc
  9678. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9679. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  9680. the transfer has not yet started.
  9681. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  9682. * src/SegmentMan.cc
  9683. * src/SegmentMan.h
  9684. * test/SegmentManTest.cc
  9685. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Cache last calculated average download/upload speed.
  9687. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  9688. cached value.
  9689. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  9690. * src/PeerStat.h
  9691. * src/SpeedCalc.cc
  9692. * src/SpeedCalc.h
  9693. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9694. Call parseUrl directly.
  9695. * src/Request.cc (resetUrl)
  9696. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9697. Supported absolute/relative path in Location header field.
  9698. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9699. * src/HttpHeader.cc
  9700. * src/HttpHeader.h
  9701. * src/HttpResponse.cc
  9702. * src/HttpSkipResponseCommand.cc
  9703. * src/Request.cc
  9704. * test/HttpHeaderTest.cc
  9705. * test/HttpResponseTest.cc
  9706. * test/RequestTest.cc
  9707. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9708. Changed help text for --load-cookie option.
  9709. * doc/aria2c.1.txt
  9710. * src/usage_text.h
  9711. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9712. Regenerated test/Makefile.in to remove stale ChangeLog.
  9713. * test/Makefile.in
  9714. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9715. Updated po files.
  9716. * po/aria2c.pot
  9717. * po/*.po
  9718. * po/*.gmo
  9719. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9720. Bump up version number to 0.15.0b
  9721. * configure.ac
  9722. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9723. Externalize messages.
  9724. * src/RequestGroupMan.cc
  9725. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9726. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9727. Use File::exists() instead of File::isFile() to allow non-regular file
  9728. such as block special files.
  9729. * src/AbstractDiskWriter.cc
  9730. * src/MultiDiskWriter.cc
  9731. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9732. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9733. * src/gai_strerror.h
  9734. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9735. Fixed compile error. Thanks gknauf for the patch.
  9736. * src/asctime_r.c
  9737. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9738. Included asctime_r.h from a2time.h.
  9739. * src/a2time.h
  9740. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9741. Added a message "aria2 doesn't verify signature" to log message when
  9742. signature file is saved.
  9743. * src/RequestGroupMan.cc
  9744. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9745. Added the ability to save signature when download is completed if
  9746. signature is available. The filename of signature file is the path to
  9747. download file followed by ".sig". If it already exists, then signature
  9748. will not be saved.
  9749. * src/RequestGroupMan.cc
  9750. * src/Signature.cc
  9751. * test/SignatureTest.cc
  9752. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9753. Updated the descriptions for --bt-seed-unverified.
  9754. * doc/aria2c.1
  9755. * doc/aria2c.1.html
  9756. * doc/aria2c.1.txt
  9757. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9758. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  9759. that this is not going to verify files using piece hashes.
  9760. * src/HelpItemFactory.cc
  9761. * src/OptionHandlerFactory.cc
  9762. * src/RequestGroup.cc
  9763. * src/option_processing.cc
  9764. * src/prefs.cc
  9765. * src/prefs.h
  9766. * src/usage_text.h
  9767. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9768. Added the ability to retrieve signature from Metalink file.
  9769. A retrieved signature is stored in Signature class and it is held by
  9770. DownloadContext class. Note that aria2 doesn't verify signature.
  9771. * src/DownloadContext.cc
  9772. * src/DownloadContext.h
  9773. * src/Makefile.am
  9774. * src/Makefile.in
  9775. * src/Metalink2RequestGroup.cc
  9776. * src/MetalinkEntry.cc
  9777. * src/MetalinkEntry.h
  9778. * src/MetalinkParserController.cc
  9779. * src/MetalinkParserController.h
  9780. * src/MetalinkParserStateMachine.cc
  9781. * src/MetalinkParserStateMachine.h
  9782. * src/Signature.cc
  9783. * src/Signature.h
  9784. * src/SignatureMetalinkParserState.cc
  9785. * src/SignatureMetalinkParserState.h
  9786. * src/VerificationMetalinkParserState.cc
  9787. * src/VerificationMetalinkParserState.h
  9788. * test/Metalink2RequestGroupTest.cc
  9789. * test/MetalinkParserControllerTest.cc
  9790. * test/MetalinkProcessorTest.cc
  9791. * test/test.xml
  9792. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9793. Close DiskAdaptor after renaming file.
  9794. * src/RequestGroup.cc
  9795. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9796. Corrected indentation
  9797. * src/DefaultBtProgressInfoFile.cc
  9798. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9799. Moved the calls of std::ios::exceptions() inside of try-catch block
  9800. because if an error occurred in constructor of std::fstream, then
  9801. exception is thrown immediately when std::ios::exceptions() is called
  9802. which results unhandled exception and aria2c aborts.
  9803. * src/DefaultBtProgressInfoFile.cc
  9804. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Added the test for the previous change in DefaultBtContext.cc
  9806. * test/DefaultBtContextTest.cc
  9807. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9808. Fixed the bug that causes infinite loop when the number of pieces are
  9809. fewer than allowed fast set size which is 10 by default.
  9810. * src/DefaultBtContext.cc
  9811. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9812. Updated the descriptions for -j, -s. Added --bt-seed.
  9813. * doc/aria2c.1
  9814. * doc/aria2c.1.html
  9815. * doc/aria2c.1.txt
  9816. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9817. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9818. aria2 seeds previously downloaded files without validating piece hashs.
  9819. * src/HelpItemFactory.cc
  9820. * src/OptionHandlerFactory.cc
  9821. * src/RequestGroup.cc
  9822. * src/option_processing.cc
  9823. * src/prefs.cc
  9824. * src/prefs.h
  9825. * src/usage_text.h
  9826. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9827. Updated DESCRIPTION of man page.
  9828. * doc/aria2c.1
  9829. * doc/aria2c.1.html
  9830. * doc/aria2c.1.txt
  9831. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9833. Don't define `struct addrinfo' when __sun is defined.
  9834. * src/getaddrinfo.h
  9835. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9836. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9837. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9838. second argument is of type `struct _stati64'. Otherwise it is defined as
  9839. `struct stat'.
  9840. * src/AbstractDiskWriter.cc
  9841. * src/File.cc
  9842. * src/File.h
  9843. * src/a2io.h
  9844. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Fixed the compile error in hurd-i386
  9846. See the original bug report:
  9847. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9848. * src/a2io.h
  9849. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Code cleanup.
  9851. * src/PeerAbstractCommand.cc
  9852. * src/PeerAbstractCommand.h
  9853. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9854. Removed TransferEncoding.
  9855. * src/DownloadCommand.cc
  9856. * src/DownloadCommand.h
  9857. * src/HttpResponseCommand.cc
  9858. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. Updated po files.
  9860. * po/aria2c.pot
  9861. * po/*.po
  9862. * po/*.gmo
  9863. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9865. * src/A2STR.cc
  9866. * src/A2STR.h
  9867. * src/ChunkedDecoder.cc
  9868. * src/ChunkedDecoder.h
  9869. * src/ChunkedEncoding.cc: Removed
  9870. * src/ChunkedEncoding.h: Removed
  9871. * src/DownloadCommand.cc
  9872. * src/DownloadCommand.h
  9873. * src/HttpDownloadCommand.cc
  9874. * src/HttpResponse.cc
  9875. * src/HttpResponse.h
  9876. * src/HttpResponseCommand.cc
  9877. * src/HttpSkipResponseCommand.cc
  9878. * src/HttpSkipResponseCommand.h
  9879. * src/Makefile.am
  9880. * src/TransferEncoding.h: Removed
  9881. * test/ChunkedDecoderTest.cc
  9882. * test/ChunkedEncodingTest.cc: Removed
  9883. * test/HttpResponseTest.cc
  9884. * test/Makefile.am
  9885. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9886. Use append instead of insert.
  9887. * src/GZipDecoder.cc
  9888. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Updated doc
  9890. * src/Decoder.h
  9891. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. Updated usage text for -s option.
  9893. * src/usage_text.h
  9894. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9896. * src/Request.cc
  9897. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9898. Cleaned up configure.ac.
  9899. * configure.ac
  9900. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9902. AC_ARG_ENABLE.
  9903. * configure.ac
  9904. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9905. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9906. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9907. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9908. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9909. fly and writes decoded data to a local disk.
  9910. * README
  9911. * README.html
  9912. * configure.ac
  9913. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9914. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9915. * m4/libz.m4
  9916. * src/Decoder.h
  9917. * src/DownloadCommand.cc
  9918. * src/DownloadCommand.h
  9919. * src/Exception.h
  9920. * src/GZipDecoder.cc
  9921. * src/GZipDecoder.h
  9922. * src/HttpHeader.cc
  9923. * src/HttpHeader.h
  9924. * src/HttpRequest.cc
  9925. * src/HttpRequest.h
  9926. * src/HttpResponse.cc
  9927. * src/HttpResponse.h
  9928. * src/HttpResponseCommand.cc
  9929. * src/Makefile.am
  9930. * test/GZipDecoderTest.cc
  9931. * test/HttpRequestTest.cc
  9932. * test/HttpResponseTest.cc
  9933. * test/Makefile.am
  9934. * test/Makefile.in
  9935. * test/gzip_decode_test.gz
  9936. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9937. Clarified usage of -j option.
  9938. * src/usage_text.h
  9939. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9940. Disabled getting size from the response of RETR.
  9941. If SIZE command failed, then disable resuming and segmented downloading.
  9942. * src/FtpConnection.cc
  9943. * src/FtpConnection.h
  9944. * src/FtpNegotiationCommand.cc
  9945. * src/FtpNegotiationCommand.h
  9946. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9947. Use digits to find first byte of file size, which makes the intention
  9948. of the code clearer.
  9949. * src/FtpConnection.cc
  9950. Don't call validateTotalLength() when size is 0.
  9951. * src/FtpNegotiationCommand.cc
  9952. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9953. Updated po files.
  9954. * po/aria2c.pot
  9955. * po/*.gmo
  9956. * po/*.po
  9957. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9958. Clarified usage text for --split option.
  9959. * src/usage_text.h
  9960. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9961. Bump up version number to 0.15.0dev. "dev" means "development"
  9962. version, which means I started the development of the next release!
  9963. * src/configure.ac
  9964. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9965. If FTP server returns negative response with REST raw command and
  9966. requested range is not 0, throw exception. If requested range is 0,
  9967. continue download a file from 0 byte.
  9968. * src/FtpNegotiationCommand.cc
  9969. * src/FtpNegotiationCommand.h
  9970. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9971. Supported FTP server which don't recognize SIZE raw command.
  9972. If SIZE raw command is failed, aria2 will try to get file size
  9973. from the response of RETR raw command. If both attempts are failed,
  9974. then resuming and segmented downloading are disabled.
  9975. * src/FtpConnection.cc
  9976. * src/FtpConnection.h
  9977. * src/FtpNegotiationCommand.cc
  9978. * src/FtpNegotiationCommand.h
  9979. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9980. * Release 0.14.0+1
  9981. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Bump up version number to 0.14.0+1
  9983. * src/configure.ac
  9984. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9985. Fixed the code that refers static member variable from non-static
  9986. context.
  9987. * src/DefaultPeerStorage.cc
  9988. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9989. * Release 0.14.0
  9990. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9991. Added build test script
  9992. * build_test.sh
  9993. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9994. Updated ja.po
  9995. * src/ja.po
  9996. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9997. Bump up version number to 0.14.0
  9998. * src/configure.ac
  9999. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10000. Updated ja.po and fr.po. Great thanks for french translators and
  10001. Sebastien WILLEMIJNS.
  10002. * po/fr.po
  10003. * po/ja.po
  10004. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. Added configure option to enable/disable epoll support.
  10006. * configure.ac
  10007. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Updated man page.
  10009. * doc/aria2c.1.txt
  10010. * doc/aria2c.1
  10011. * doc/aria2c.1.html
  10012. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10013. Added missing default value '5' to the usage of --split option.
  10014. * src/HelpItemFactory.cc
  10015. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10016. Filled up pieces based on the number of missing blocks, rather than
  10017. simplay the number of piece * block length.
  10018. * src/BtRequestFactory.h
  10019. * src/DefaultBtInteractive.cc
  10020. * src/DefaultBtInteractive.h
  10021. * src/DefaultBtRequestFactory.cc
  10022. * src/DefaultBtRequestFactory.h
  10023. * src/Piece.cc
  10024. * src/Piece.h
  10025. * test/BitfieldManTest.cc
  10026. * test/DefaultBtRequestFactoryTest.cc
  10027. * test/MockBtRequestFactory.h
  10028. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10029. Made _epEvents a member variable.
  10030. * src/DownloadEngine.cc
  10031. * src/DownloadEngine.h
  10032. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10033. Cancel download if http redirect is bounded more than 20 times.
  10034. * src/AbstractCommand.cc
  10035. * src/HttpSkipResponseCommand.cc
  10036. * src/Request.cc
  10037. * src/Request.h
  10038. * test/RequestTest.cc
  10039. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10040. Fixed unhandled exception(removed keyword `new').
  10041. * src/SocketCore.cc (initEPOLL)
  10042. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10043. Removed visit(const MetaEntry*)
  10044. * src/MetaEntryVisitor.h:
  10045. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  10046. and made them virtual.
  10047. * src/BencodeVisitor.h
  10048. * src/BencodeVisitor.cc
  10049. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. Updated po files.
  10051. * po/aria2c.pot
  10052. * po/*.po
  10053. * po/*.gmo
  10054. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10055. Moved the call setWriteCheckSocket inside the previous clause to reduce
  10056. the number of socket to watch out.
  10057. * src/PeerInteractionCommand.cc
  10058. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10059. When there is not enough space in disk when writing a chunk of data,
  10060. aria2 now prints the message to the console to warn user and aborts
  10061. its download. Not all downloads are canceled because some downloads
  10062. may use another disk or partition. BUG#1640332
  10063. * src/AbstractDiskWriter.cc
  10064. * src/PeerAbstractCommand.cc
  10065. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  10066. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  10067. setHaltRequested(true) to cancel download.
  10068. * src/PeerInteractionCommand.h
  10069. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10070. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  10071. socket from int to sock_t as sockets are unsigned in Windows.
  10072. For AsyncNameResolver, DownloadEngine, I did additional modification
  10073. for the portion of the code changed according to epoll support.
  10074. I defined sock_t in a2netcompat.h to use sock_t without including
  10075. SocketCore.h.
  10076. * src/AsyncNameResolver.cc
  10077. * src/AsyncNameResolver.h
  10078. * src/DownloadEngine.cc
  10079. * src/DownloadEngine.h
  10080. * src/SocketCore.cc
  10081. * src/SocketCore.h
  10082. * src/a2netcompat.h
  10083. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10084. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  10085. changes in the patch were applied.
  10086. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  10087. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  10088. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  10089. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10090. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  10091. a2io.h and common.h were modified.
  10092. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  10093. MinGW.
  10094. * src/common.h: Changed off_t to 64 bit in MinGW.
  10095. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10096. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  10097. only a2netcompat.h is modified.
  10098. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  10099. directives.
  10100. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  10102. only gai_strerror.h is modified.
  10103. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  10104. winsock errors in MinGW.
  10105. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10106. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  10107. follow sources are applied.
  10108. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  10109. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  10110. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  10111. I included locale.h from Platform.cc.
  10112. * src/main.cc: Moved common setup/teardown code to Platform class.
  10113. * test/AllTest.cc: Use Platform class.
  10114. Set locale to C in AllTest.cc to prevent the messages to be localized.
  10115. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10116. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  10117. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  10118. * test/HttpRequestTest.cc: Casted to off_t where it should.
  10119. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. Applied Ross's aria2-0.13.2+1-mingw.patch and
  10121. aria2-0.13.2+1-mingw-2.patch.
  10122. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  10123. systems which don't have termious.h. I moved the directive inside of
  10124. if(isTTY) { ... clause so that line is wiped out without termious.h.
  10125. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  10126. anyway.
  10127. * src/asctime_r.h
  10128. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  10129. I added 2nd argument to the prototype declaration.
  10130. * src/StringFormat.cc: Get rid of vasprintf.
  10131. * src/getaddrinfo.h: Fixed constants.
  10132. * configure.ac: Added the check for asctime_r function.
  10133. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  10134. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10135. Added writable test for Socket when the sending message is in progress.
  10136. Usually the sending message is piece message. Without wriable check,
  10137. upload latency is dropped to more than 1sec.
  10138. * src/PeerInteractionCommand.cc
  10139. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. Create only requested files and files which shares a piece with
  10141. requested file in multi-torrent downloads. Directory structures are
  10142. also created in the same rule.
  10143. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  10144. DiskWriterEntry as in the previous implementation.
  10145. * src/MultiDiskWriter.cc
  10146. * src/MultiFileAllocationIterator.cc
  10147. * src/MultiFileAllocationIterator.h
  10148. * test/MultiFileAllocationIteratorTest.cc
  10149. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. Commented out -lprofiler
  10151. * src/Makefile.am
  10152. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10153. Bump up version number to 0.14.0b.
  10154. * src/configure.ac
  10155. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10156. Actively establish connection to peers in seeding, when peer cache
  10157. is not full and max upload speed limit is not reached.
  10158. * src/ActivePeerConnectionCommand.cc
  10159. * src/ActivePeerConnectionCommand.h
  10160. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10161. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  10162. to make room more fleshy, recently found peers.
  10163. Peer::_badConditionStartTime is not used anymore. Consider to remove
  10164. it.
  10165. * src/DefaultPeerStorage.cc
  10166. * test/DefaultPeerStorageTest.cc
  10167. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10168. Returns cached data only when the previous receiveHandshake() is called
  10169. with peek = true.
  10170. * src/PeerConnection.cc (receiveHandshake)
  10171. * src/PeerConnection.h (receiveHandshake)
  10172. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10173. Changed default value of -s option from 1 to 5.
  10174. Also max value of -s option is changed from 5 to 16.
  10175. * src/HelpItemFactory.cc
  10176. * src/OptionHandlerFactory.cc
  10177. * src/option_processing.cc
  10178. * src/usage_text.h
  10179. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10180. Changed -s options behavior. Now it means the number of connections
  10181. made simultaneously in each http/ftp download.
  10182. If 1 URL is specified, the behavior is the same with old implementation.
  10183. If -s N is given and more than N URLs are specified, first N URLs are
  10184. used and remaining URLs are used for backup. If less than N URLs are
  10185. specified, some of URLs are used more than once so that totally N
  10186. connections are made simultaneously.
  10187. * src/main.cc
  10188. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10189. Included missing iosfwd or ostream header.
  10190. * src/RequestGroupMan.cc
  10191. * src/TaggedItem.cc
  10192. * src/TaggedItem.h
  10193. * src/Util.cc
  10194. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10195. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  10196. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  10197. * src/HttpConnection.cc: Included missing sstream.
  10198. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10199. Added --bt-max-open-files option.
  10200. * src/DefaultPieceStorage.cc
  10201. * src/HelpItemFactory.cc
  10202. * src/MultiDiskAdaptor.cc
  10203. * src/MultiDiskAdaptor.h
  10204. * src/OptionHandlerFactory.cc
  10205. * src/option_processing.cc
  10206. * src/prefs.cc
  10207. * src/prefs.h
  10208. * src/usage_text.h
  10209. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10210. Fixed the bug that aria2 aborts when a path to a directory is given
  10211. in command-line.
  10212. * src/ProtocolDetector.cc
  10213. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10214. Limited the number files opened in each BitTorrent download. The default
  10215. value is 100. The option to change this value will be added.
  10216. * src/MultiDiskAdaptor.cc
  10217. * src/MultiDiskAdaptor.h
  10218. * src/MultiFileAllocationIterator.cc
  10219. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10220. Fixed the bug that HTTP downloads don't start with old libraries.
  10221. * src/HttpHeaderProcessor.cc
  10222. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10223. Use empty() instead of size() > 0.
  10224. * src/HttpConnection.cc
  10225. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10226. Drop connection if the incoming peer ID is the same with localhost's
  10227. one. The previous implementation drops connection when incoming peer's
  10228. IP address is the same with localhost's one.
  10229. * src/PeerListenCommand.cc
  10230. * src/DefaultBtInteractive.cc
  10231. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10232. Returns cached data without checking whether socket is readable
  10233. if the cache is available.
  10234. * src/PeerConnection.cc (receiveHandshake)
  10235. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10236. Included stdint.h
  10237. * src/common.h
  10238. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10239. Removed duplicate HAVE_GETTIMEOFDAY
  10240. * src/Makefile.am
  10241. * src/Makefile.in
  10242. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10243. Use interval as a minInterval when minInterval is not supplied.
  10244. * src/DefaultBtAnnounce.cc
  10245. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  10247. attempt is failed, then 2nd attempt get kicked out more quickly.
  10248. And it is now static const member of DefaultBtAnnounce.
  10249. * src/DefaultBtAnnounce.h
  10250. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10251. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  10252. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  10253. * src/ActivePeerConnectionCommand.cc
  10254. * src/BtConstants.h
  10255. * src/BtRuntime.h
  10256. * src/DHTGetPeersCommand.cc
  10257. * src/DefaultBtAnnounce.cc
  10258. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  10259. BtRuntime::MAX_PEERS.
  10260. * src/DefaultPeerStorage.h
  10261. * src/InitiatorMSEHandshakeCommand.cc
  10262. * src/PeerInitiateConnectionCommand.cc
  10263. * src/PeerInteractionCommand.cc
  10264. * src/PeerReceiveHandshakeCommand.cc
  10265. * src/TrackerWatcherCommand.cc
  10266. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. Always Connect to _numNewConnection
  10268. * src/ActivePeerConnectionCommand.cc
  10269. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10270. Made `begin' unsigned int.
  10271. * src/GrowSegment.h
  10272. * src/Piece.cc
  10273. * src/Piece.h
  10274. * src/PiecedSegment.cc
  10275. * src/PiecedSegment.h
  10276. * src/Segment.h
  10277. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10278. Calculate piece hash when data is arrived if the data is arrived in
  10279. order. This removes additional read operation for hash calculation.
  10280. If the data is arrived in out of order, the hash is calucated when the
  10281. piece is completed. This is the same behavior as the old implementation.
  10282. * src/BtPieceMessage.cc
  10283. * src/DefaultBtProgressInfoFile.cc
  10284. * src/DefaultPieceStorage.cc
  10285. * src/DownloadCommand.cc
  10286. * src/DownloadCommand.h
  10287. * src/DownloadEngine.cc
  10288. * src/GrowSegment.cc
  10289. * src/GrowSegment.h
  10290. * src/Piece.cc
  10291. * src/Piece.h
  10292. * src/PiecedSegment.cc
  10293. * src/PiecedSegment.h
  10294. * src/Segment.h
  10295. * test/PieceTest.cc
  10296. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10297. Try to keep the ordering of outgoing piece message.
  10298. * src/DefaultBtMessageDispatcher.cc
  10299. (DefaultBtMessageDispatcher::sendMessages)
  10300. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10301. Fixed busy loop when error/hup epoll events occur.
  10302. * src/AbstractCommand.cc
  10303. * src/PeerAbstractCommand.cc
  10304. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10305. Added --bt-request-peer-speed-limit option, which was a constant
  10306. SLOW_SPEED_THRESHOLD.
  10307. * src/ActivePeerConnectionCommand.cc
  10308. * src/ActivePeerConnectionCommand.h
  10309. * src/BtConstants.h
  10310. * src/HelpItemFactory.cc
  10311. * src/OptionHandlerFactory.cc
  10312. * src/PeerReceiveHandshakeCommand.cc
  10313. * src/option_processing.cc
  10314. * src/prefs.cc
  10315. * src/prefs.h
  10316. * src/usage_text.h
  10317. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10318. Removed repeated call of getTopDirPath(). Instead, call it once and
  10319. cache the result.
  10320. * src/MultiDiskAdaptor.cc
  10321. * src/MultiDiskAdaptor.h
  10322. (mkdir, openFile, initAndOpenFile, openExistingFile)
  10323. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. Fixed compile error on debian etch.
  10325. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  10326. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  10327. it is undefined.
  10328. * src/Util.cc (ULLONG_MAX)
  10329. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10330. Added epoll support. Use epoll if it is available. If not, use select.
  10331. When async dns is enabled in compile time, epoll support is enabled
  10332. only when aria2 is built with c-ares. This condition statement is
  10333. defined in a2io.h.
  10334. Currently aria2 supports both c-ares and ares, but ares is maintained
  10335. for quite a while and debian already has c-ares package, ares support
  10336. will be dropped in the future version.
  10337. * configure.ac
  10338. * src/AbstractCommand.cc
  10339. * src/AsyncNameResolver.cc
  10340. * src/AsyncNameResolver.h
  10341. * src/Command.cc
  10342. * src/Command.h
  10343. * src/DownloadEngine.cc
  10344. * src/DownloadEngine.h
  10345. * src/PeerAbstractCommand.cc
  10346. * src/SocketCore.cc
  10347. * src/SocketCore.h
  10348. * src/a2io.h
  10349. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10350. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  10351. directive.
  10352. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10353. Do not do write operation to /dev/null file.
  10354. * src/LogFactory.cc
  10355. * src/SimpleLogger.cc
  10356. Replaced vasprintf with vsnprintf
  10357. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  10358. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10359. * src/BtRequestMessage.cc
  10360. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  10361. for segmentation fault caused by previous commit.
  10362. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. Reduced the usage of gettimeofday().
  10364. * src/DefaultBtMessageDispatcher.cc
  10365. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  10366. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10367. * src/RequestSlot.cc
  10368. * src/RequestSlot.h
  10369. (RequestSlot::isTimeout)
  10370. Made RequestSlot have a reference to Piece object to avoid find
  10371. Piece repeatedly.
  10372. * src/DefaultBtMessageDispatcher.cc
  10373. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10374. * src/RequestSlot.cc
  10375. * src/RequestSlot.h
  10376. (RequestSlot::getPiece)
  10377. * test/DefaultBtMessageDispatcherTest.cc
  10378. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10379. * src/TimeA2.cc
  10380. * src/TimeA2.h
  10381. (Time::difference): New function.
  10382. (Time::elapsed): Done optimization.
  10383. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10384. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  10385. directive.
  10386. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10387. * src/option_processing.cc: Added missing `defined' keyword to #if
  10388. directive.
  10389. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10390. Bump up version number to 0.13.2+1
  10391. * src/configure.ac
  10392. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10393. Refactored broken outstanding piece handling.
  10394. * src/DefaultPieceStorage.cc
  10395. * src/DefaultPieceStorage.h
  10396. * src/Piece.cc
  10397. * src/Piece.h
  10398. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10399. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  10400. name collision of static variable and predefined macro.
  10401. * src/BtContext.cc
  10402. * src/BtContext.h
  10403. * src/CookieBoxFactory.cc
  10404. * src/CookieBoxFactory.h
  10405. * src/CookieParser.cc
  10406. * src/CookieParser.h
  10407. * src/DefaultBtContext.cc
  10408. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10409. * src/RequestGroup.cc
  10410. (RequestGroup::createInitialCommand): Use empty() instead of size().
  10411. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10412. * Release 0.13.2
  10413. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10414. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  10415. * po/fr.po
  10416. * po/ja.po
  10417. * po/aria2c.pot
  10418. * po/*.po
  10419. * po/*.gmo
  10420. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10421. Bump up version number to 0.13.2
  10422. * src/configure.ac
  10423. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10424. Refactord.
  10425. * src/RequestGroupMan.cc
  10426. (removeStoppedGroup)
  10427. (fillRequestGroupFromReserver)
  10428. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10429. Fixed compile error on Ubuntu.
  10430. * src/BtPieceMessage.cc
  10431. * src/MessageDigestHelper.cc
  10432. * src/Util.cc
  10433. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10434. Fixed compile error when configured with --disable-bittorrent
  10435. * test/DownloadHandlerFactoryTest.cc
  10436. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10437. Done make update-po
  10438. * po/aria2c.pot
  10439. * po/*.po
  10440. * po/*.gmo
  10441. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10442. Bump up version number to 0.13.2rc.
  10443. * src/configure.ac
  10444. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10445. Made option name bold. Updated SYNOPSIS to make it more readable.
  10446. * doc/aria2c.1.txt
  10447. * doc/aria2c.1
  10448. * doc/aria2c.1.html
  10449. * src/version_usage.cc
  10450. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10451. Refactored. Use std::string instead of size and char*.
  10452. * Data.cc
  10453. * Data.h
  10454. * test/Data.cc
  10455. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10456. Added trimSelf(). Rewritten trim() to use trimSelf().
  10457. * Util.cc
  10458. * Util.h
  10459. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10460. * src/ChunkChecksum.h (getChecksum): Return const reference.
  10461. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10462. Fixed compile error when configured with --disable-metalink.
  10463. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  10464. * test/FeatureConfigTest.cc
  10465. * test/DownloadHandlerFactoryTest.cc
  10466. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10467. Fixed compile error when configured with --without-gnutls
  10468. --without-openssl
  10469. * src/main.cc
  10470. * test/DefaultBtProgressInfoFileTest.cc
  10471. * test/SegmentManTest.cc
  10472. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10473. Fixed compile error with OpenSSL.
  10474. * src/IteratableChunkChecksumValidator.cc
  10475. * src/LibsslDHKeyExchange.h
  10476. * src/MessageDigestHelper.cc
  10477. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10478. Revert the default value of --max-concurrent-downloads to 5.
  10479. Revert the default value of --metalink-servers to 5.
  10480. Man pages was also updated.
  10481. * src/option_processing.cc
  10482. * doc/aria2c.1.txt
  10483. * doc/aria2c.1.html
  10484. * doc/aria2c.1
  10485. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10486. Returns const reference:
  10487. DownloadContext::getPieceHash, DownloadContext::getName,
  10488. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  10489. BtContext::getInfoHashAsString,
  10490. * src/BtContext.h
  10491. * src/DefaultBtContext.cc
  10492. * src/DefaultBtContext.h
  10493. * src/DownloadContext.h
  10494. * src/SingleFileDownloadContext.h
  10495. * test/MockBtContext.h
  10496. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10497. * src/RequestGroup.h (getDir): Removed.
  10498. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10499. Returns const reference. The internal urlencode function was optimized
  10500. a little bit.
  10501. * src/Request.cc
  10502. * src/Request.h
  10503. * src/HttpRequest.cc
  10504. * src/HttpRequest.h
  10505. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10506. Defined option name and possible values as std::string to reduce
  10507. temporary string object creation in runtime.
  10508. * src/HelpItemFactory.cc
  10509. * src/LogFactory.cc
  10510. * src/Option.cc
  10511. * src/OptionHandlerFactory.cc
  10512. * src/option_processing.cc
  10513. * src/prefs.cc
  10514. * src/prefs.h
  10515. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10516. Return const reference.
  10517. * src/DownloadHandlerConstants.cc
  10518. * src/DownloadHandlerConstants.h
  10519. (getMetalinkExtensions)
  10520. (getMetalinkContentTypes)
  10521. (getBtExtensions)
  10522. (getBtContentTypes)
  10523. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10524. * src/HttpHeader.cc (get): Rewritten.
  10525. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10526. Make HttpHeader::getFirst(...) return const reference.
  10527. * src/HttpHeader.cc
  10528. * src/HttpHeader.h
  10529. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10530. Use Option::getAsBool(...) instead of Option::get(...) and compare
  10531. it with V_TRUE.
  10532. * src/DefaultPieceStorage.cc
  10533. * src/DownloadCommand.cc
  10534. * src/FtpNegotiationCommand.cc
  10535. * src/HttpRequest.cc
  10536. * src/InitiateConnectionCommand.cc
  10537. * src/RequestGroup.cc
  10538. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. Made Option::get(...) return const reference of std::string.
  10540. * src/Option.cc
  10541. * src/Option.h
  10542. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10543. Replaced std:copy with insert.
  10544. * src/DefaultBtMessageDispatcher.cc
  10545. * src/DefaultPieceStorage.cc
  10546. * src/DownloadEngineFactory.cc
  10547. * src/RequestGroup.cc
  10548. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10549. Included SocketCore.h to fix compiler warning.
  10550. * src/InitiateConnectionCommand.cc
  10551. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10552. Put piece selection strategy algorithm to RarestPieceSelector class,
  10553. Added a switch to choose whether randomized selection so that unit
  10554. tests emit same results in, possibly, win32.
  10555. * src/DefaultPieceStorage.cc
  10556. * src/DefaultPieceStorage.h
  10557. * src/RarestPieceSelector.cc
  10558. * src/RarestPieceSelector.h
  10559. * test/DefaultPieceStorageTest.cc
  10560. * test/RarestPieceSelectorTest.cc
  10561. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10562. Don't pool connection if HTTP proxy is enabled.
  10563. * src/FtpFinishDownloadCommand.cc
  10564. * src/FtpNegotiationCommand.cc
  10565. * src/HttpSkipResponseCommand.cc
  10566. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10567. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  10568. * src/AbstractCommand.cc
  10569. * src/AbstractCommand.h
  10570. * src/ActivePeerConnectionCommand.cc
  10571. * src/FtpInitiateConnectionCommand.cc
  10572. * src/HttpInitiateConnectionCommand.cc
  10573. * src/InitiateConnectionCommandFactory.cc
  10574. * src/PeerAbstractCommand.cc
  10575. * src/PeerAbstractCommand.h
  10576. * src/PeerInitiateConnectionCommand.cc
  10577. * src/TrackerWatcherCommand.cc
  10578. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10579. Sort RequestSlot in ascending order and manipulate them using
  10580. lower_bound.
  10581. * src/DefaultBtMessageDispatcher.cc
  10582. * src/DefaultBtMessageDispatcher.h
  10583. (getMessageQueue): Added const qualifier.
  10584. (getRequestSlots): Added const qualifier.
  10585. (sendMessages): Use empty() instead of size().
  10586. (doCancelSendingPieceAction): Use HandleEvent object.
  10587. (doAbortOutstandingRequestAction): Rewritten.
  10588. (doChokedAction): Rewritten.
  10589. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  10590. (isOutstandingRequest): Rewritten.
  10591. (getOutstandingRequest): Rewritten.
  10592. (removeOutstandingRequest): Rewritten.
  10593. (addOutstandingRequest): Rewritten.
  10594. * src/RequestSlot.cc
  10595. * src/RequestSlot.h
  10596. (operator=): Rewritten.
  10597. (operator!=): New function.
  10598. (operator<): New function.
  10599. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10600. * src/DefaultBtRequestFactory.cc
  10601. (doChokedAction): Rewritten.
  10602. (removeCompletedPiece): Rewritten.
  10603. (removeTargetPiece): Rewritten.
  10604. (createRequestMessages): Added the debug log.
  10605. (createRequestMessagesOnEndGame: Added the debug log.
  10606. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10607. Added the debug log message.
  10608. * src/BtPieceMessage.cc (doReceivedAction)
  10609. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10610. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  10611. used lower_bound to process them rather than linear search.
  10612. * src/DHTPeerAnnounceStorage.cc
  10613. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10614. Call subtractPieceStats from ~PeerInteractionCommand only when the
  10615. peer has at least one completed piece.
  10616. * src/Peer.cc
  10617. * src/Peer.h
  10618. * src/PeerInteractionCommand.cc
  10619. * src/PeerSessionResource.cc
  10620. * src/PeerSessionResource.h
  10621. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10622. Removed unnecessary sorting
  10623. * src/DefaultPieceStorage (DefaultPieceStorage)
  10624. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10625. Rewritten the portion of the code that mangaes allowed fast indexes.
  10626. * src/PeerSessionResource.cc
  10627. * src/PeerSessionResource.h
  10628. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10629. Removed the invalid string including '\r' from ru.po and
  10630. did make update-po.
  10631. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10632. Added --log-level and --summary-interval to man page.
  10633. * doc/aria2c.1.txt
  10634. * doc/aria2c.1.html
  10635. * doc/aria2c.1
  10636. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10637. Added --log-level option to specify log level. Log messages under
  10638. the specified level are not output. Default value is `debug'.
  10639. * src/HelpItemFactory.cc
  10640. * src/LogFactory.cc
  10641. * src/LogFactory.h
  10642. * src/Logger.h
  10643. * src/OptionHandlerFactory.cc
  10644. * src/SimpleLogger.cc
  10645. * src/SimpleLogger.h
  10646. * src/main.cc
  10647. * src/option_processing.cc
  10648. * src/prefs.h
  10649. * src/usage_text.h
  10650. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. Print download progress summary of all parallel downloads in specified
  10652. interval, default 60 secs. While aria2 could download several files
  10653. in parallel (see -j option), it displayed just first download progress,
  10654. and the other downloads are hidden from the users. This new feature
  10655. prints all downloads currently in-progress to the console so that you
  10656. can check the status of all downloads. The interval can be adjusted
  10657. by --summary-interval option.
  10658. The progress readout is now cut so that all fits in the one line of
  10659. console.
  10660. * src/ConsoleStatCalc.cc
  10661. * src/ConsoleStatCalc.h
  10662. * src/HelpItemFactory.cc
  10663. * src/OptionHandlerFactory.cc
  10664. * src/RequestGroupMan.cc
  10665. * src/RequestGroupMan.h
  10666. * src/main.cc
  10667. * src/option_processing.cc
  10668. * src/prefs.h
  10669. * src/usage_text.h
  10670. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10671. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  10672. * src/DownloadEngine.cc (DownloadEngine)
  10673. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10674. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  10675. defined.
  10676. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  10677. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10678. Use erase+lower_bound+insert instead of sort.
  10679. * src/DefaultPieceStorage.cc (addPieceStats)
  10680. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10681. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  10682. * src/A2STR.cc
  10683. * src/A2STR.h
  10684. * src/OptionParser.cc (parse)
  10685. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10686. Defined fake filename `[tracker.announce]' as static const std::string.
  10687. * src/TrackerWatcherCommand.cc (createRequestGroup)
  10688. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10689. Defined default filename `index.html' as static const std::string
  10690. * src/SingleFileDownloadContext.cc
  10691. * src/SingleFileDownloadContext.h
  10692. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10693. Defined "[MEMORY]" as static const std::string.
  10694. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10695. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10696. Defined control file's version number as static const std::string.
  10697. * src/DefaultBtProgressInfoFile.cc
  10698. * src/DefaultBtProgressInfoFile.h
  10699. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10700. Use Request::METHOD_GET
  10701. * src/RequestGroup.cc (createNextCommandWithAdj)
  10702. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10703. Defined "OK", "ERR", "INPR" as static const std::string
  10704. * src/RequestGroupMan.cc (showDownloadResults)
  10705. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10706. Defined default client used in extended handshake as static const
  10707. std::string
  10708. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10709. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10710. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10711. * src/HttpConnection.cc (eraseConfidentialInfo)
  10712. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10713. Defined default ftp user and password as static const std::string
  10714. * src/AuthConfigFactory.cc
  10715. * src/AuthConfigFactory.h
  10716. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10717. Defined strings used in netrc as static const std::string
  10718. * src/Netrc.cc
  10719. * src/Netrc.h
  10720. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10721. Defined HTTP status as static const std::string
  10722. * src/AbstractProxyResponseCommand.cc
  10723. * src/HttpHeader.cc
  10724. * src/HttpHeader.h
  10725. * src/HttpResponse.cc
  10726. * src/HttpResponseCommand.cc
  10727. * src/HttpSkipResponseCommand.cc
  10728. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10729. Defined "\r\n", "A", "I" as static const std::string
  10730. * src/A2STR.cc
  10731. * src/A2STR.h
  10732. * src/FtpConnection.cc
  10733. * src/FtpConnection.h
  10734. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10735. Added COLON_C(".") and used it in Request::parseUrl()
  10736. * src/A2STR.cc
  10737. * src/A2STR.h
  10738. * src/Request.cc (parseUrl)
  10739. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10740. Changed the type of padName from `const std::string&' to `const char*'.
  10741. * src/MSEHandshake.cc (verifyPadLength)
  10742. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10743. Defined "sha1" as static const std::string.
  10744. * src/MetalinkParserController.cc
  10745. * src/MetalinkParserController.h
  10746. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10747. Defined message digest algorithm name as static const std::string
  10748. * src/DHTTokenTracker.cc
  10749. * src/DHTUtil.cc
  10750. * src/DefaultBtContext.cc
  10751. * src/MSEHandshake.cc
  10752. * src/MessageDigestHelper.cc
  10753. * src/Peer.cc
  10754. * src/messageDigest.cc
  10755. * src/messageDigest.h
  10756. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10757. Made string literals used in SAX parser static const std::string.
  10758. * src/FileMetalinkParserState.cc
  10759. * src/FileMetalinkParserState.h
  10760. * src/FilesMetalinkParserState.cc
  10761. * src/FilesMetalinkParserState.h
  10762. * src/InitialMetalinkParserState.cc
  10763. * src/InitialMetalinkParserState.h
  10764. * src/MetalinkMetalinkParserState.cc
  10765. * src/MetalinkMetalinkParserState.h
  10766. * src/PiecesMetalinkParserState.cc
  10767. * src/PiecesMetalinkParserState.h
  10768. * src/ResourcesMetalinkParserState.cc
  10769. * src/ResourcesMetalinkParserState.h
  10770. * src/VerificationMetalinkParserState.cc
  10771. * src/VerificationMetalinkParserState.h
  10772. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10773. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  10774. * src/A2STR.cc
  10775. * src/A2STR.h
  10776. * src/File.cc
  10777. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10778. Defined static const std::string IP("ip"), PORT("port") and use them
  10779. instead of string literals.
  10780. * src/DefaultPeerListProcessor.cc
  10781. * src/DefaultPeerListProcessor.h
  10782. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10783. Made string literals for torrent file processing static const
  10784. std::string.
  10785. * src/BtContext.cc
  10786. * src/BtContext.h
  10787. * src/DefaultBtContext.cc
  10788. * src/DefaultBtContext.h
  10789. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10790. Made string literal for tracker response static const std::string
  10791. * src/BtAnnounce.cc
  10792. * src/BtAnnounce.h
  10793. * src/DefaultBtAnnounce.cc
  10794. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10795. Use DHTMessage::T instead of "t".
  10796. * src/DHTMessageTracker.cc (messageArrived)
  10797. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10798. Made keyName static const. Made trimmed charset static const
  10799. std::string.
  10800. * src/Util.cc (getContentDispositionFilename)
  10801. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10802. Made USER_AGENT const. Made "/" static const std::string.
  10803. * src/A2STR.cc
  10804. * src/A2STR.h
  10805. * src/HttpRequest.cc
  10806. * src/HttpRequest.h
  10807. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10808. Made string listeral to static const std::string:
  10809. "Content-Range", "Content-Length"
  10810. * src/HttpHeader.cc
  10811. * src/HttpHeader.h
  10812. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10813. Made string listeral to static const std::string.
  10814. * src/HttpConnection.cc
  10815. * src/HttpHeader.cc
  10816. * src/HttpHeader.h
  10817. * src/HttpResponse.cc
  10818. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10819. Made string listeral to static const std::string.
  10820. * src/A2STR.cc
  10821. * src/A2STR.h
  10822. * src/SimpleLogger.cc
  10823. * src/SimpleLogger.h
  10824. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10825. Made string literal to static const std::string.
  10826. Rewritten CookieParser::setField.
  10827. * src/A2STR.cc
  10828. * src/A2STR.h
  10829. * src/CookieBoxFactory.cc
  10830. * src/CookieBoxFactory.h
  10831. * src/CookieParser.cc
  10832. * src/CookieParser.h
  10833. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. Made string literal to static const std::string
  10835. * src/DHTAbstractMessage.cc
  10836. * src/DHTAnnouncePeerMessage.cc
  10837. * src/DHTAnnouncePeerMessage.h
  10838. * src/DHTAnnouncePeerReplyMessage.cc
  10839. * src/DHTAnnouncePeerReplyMessage.h
  10840. * src/DHTFindNodeMessage.cc
  10841. * src/DHTFindNodeMessage.h
  10842. * src/DHTFindNodeReplyMessage.cc
  10843. * src/DHTFindNodeReplyMessage.h
  10844. * src/DHTGetPeersMessage.cc
  10845. * src/DHTGetPeersMessage.h
  10846. * src/DHTGetPeersReplyMessage.cc
  10847. * src/DHTGetPeersReplyMessage.h
  10848. * src/DHTMessage.cc
  10849. * src/DHTMessage.h
  10850. * src/DHTMessageFactoryImpl.cc
  10851. * src/DHTMessageReceiver.cc
  10852. * src/DHTPingMessage.cc
  10853. * src/DHTPingMessage.h
  10854. * src/DHTPingReplyMessage.cc
  10855. * src/DHTPingReplyMessage.h
  10856. * src/DHTQueryMessage.cc
  10857. * src/DHTQueryMessage.h
  10858. * src/DHTResponseMessage.cc
  10859. * src/DHTResponseMessage.h
  10860. * src/DHTUnknownMessage.cc
  10861. * src/DHTUnknownMessage.h
  10862. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10863. Made string literal to static const std::string
  10864. * src/BtChokeMessage.cc (toString)
  10865. * src/BtHaveAllMessage.cc (toString)
  10866. * src/BtHaveNoneMessage.cc (toString)
  10867. * src/BtInterestedMessage.cc (toString)
  10868. * src/BtNotInterestedMessage.cc (toString)
  10869. * src/BtUnchokeMessage.cc (toString)
  10870. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10871. Replaced "" with static const variable A2STR::NIL.
  10872. Replaced string comparison against "" with std::string::empty().
  10873. Added PROTO_* to Request class and use them as a protocol string
  10874. constant.
  10875. Made "started", "stopped", "completed" static const variable in
  10876. AnnounceList class.
  10877. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10878. Updated translations. Great thanks to translators.
  10879. * po/ca.po
  10880. * po/de.po
  10881. * po/fr.po
  10882. * po/it.po
  10883. * po/ja.po
  10884. * po/ru.po
  10885. * po/zh_CN.po
  10886. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10887. Updated man page; categorized options and fixed typo.
  10888. * doc/aria2c.1.txt
  10889. * doc/aria2c.1.html
  10890. * doc/aria2c.1
  10891. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10892. Removed const ref
  10893. * src/MetalinkEntry.cc (AddProtocolPreference)
  10894. * src/RequestGroup.cc (FindServerHostByHostname)
  10895. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10896. Rewritten Accept-Features handling.
  10897. * src/HttpRequestCommand.cc (createHttpRequest)
  10898. * src/a2functional.h
  10899. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10900. Changed method signature:
  10901. DHTAbstractNodeLookupTask::toEntries
  10902. * src/DHTAbstractNodeLookupTask.cc
  10903. * src/DHTAbstractNodeLookupTask.h
  10904. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. Changed method signature:
  10906. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10907. * src/BtContext.h
  10908. * src/DefaultBtContext.cc
  10909. * src/DefaultBtContext.h
  10910. * src/DefaultBtInteractive.cc
  10911. * test/DefaultBtContextTest.cc
  10912. * test/MockBtContext.h
  10913. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10914. Changed method signature:
  10915. MultiFileAllocationIterator::makeDiskWriterEntries
  10916. * src/MultiFileAllocationIterator.cc
  10917. * src/MultiFileAllocationIterator.h
  10918. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10919. Changed method sinature:
  10920. MetalinkEntry::toFileEntry,
  10921. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10922. Metalinker::queryEntry
  10923. * src/Metalink2RequestGroup.cc
  10924. * src/MetalinkEntry.cc
  10925. * src/MetalinkEntry.h
  10926. * src/MetalinkHelper.cc
  10927. * src/MetalinkHelper.h
  10928. * src/Metalinker.cc
  10929. * src/Metalinker.h
  10930. * src/main.cc
  10931. * test/MetalinkHelperTest.cc
  10932. * test/MetalinkerTest.cc
  10933. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10934. Changed method sinature:
  10935. RequestGroup::getURIs
  10936. * src/RequestGroup.cc
  10937. * src/RequestGroup.h
  10938. * test/Metalink2RequestGroupTest.cc
  10939. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10940. Changed method signature:
  10941. PeerListProcessor::extractPeer
  10942. * src/CompactPeerListProcessor.cc
  10943. * src/CompactPeerListProcessor.h
  10944. * src/DefaultBtAnnounce.cc
  10945. * src/DefaultPeerListProcessor.cc
  10946. * src/DefaultPeerListProcessor.h
  10947. * src/DelegatingPeerListProcessor.cc
  10948. * src/DelegatingPeerListProcessor.h
  10949. * src/PeerListProcessor.h
  10950. * src/UTPexExtensionMessage.cc
  10951. * test/DefaultPeerListProcessorTest.cc
  10952. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10953. Changed method signature:
  10954. BtRequestFactory::createRequestMessages,
  10955. BtRequestFactory::createRequestMessagesOnEndGame
  10956. * src/BtRequestFactory.h
  10957. * src/DefaultBtInteractive.cc
  10958. * src/DefaultBtRequestFactory.cc
  10959. * src/DefaultBtRequestFactory.h
  10960. * test/DefaultBtRequestFactoryTest.cc
  10961. * test/MockBtRequestFactory.h
  10962. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10963. Changed method signature:
  10964. PieceStorage::getInFlightPieces
  10965. * src/DefaultBtProgressInfoFile.cc
  10966. * src/DefaultPieceStorage.cc
  10967. * src/DefaultPieceStorage.h
  10968. * src/PieceStorage.h
  10969. * src/UnknownLengthPieceStorage.cc
  10970. * src/UnknownLengthPieceStorage.h
  10971. * test/DefaultBtProgressInfoFileTest.cc
  10972. * test/MockPieceStorage.h
  10973. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10974. Changed method signature:
  10975. PostDownloadHandler::getNextRequestGroups
  10976. Metalink2RequestGroup::generate
  10977. RequestGroup::postDownloadProcessing
  10978. * src/BtPostDownloadHandler.cc
  10979. * src/BtPostDownloadHandler.h
  10980. * src/Metalink2RequestGroup.cc
  10981. * src/Metalink2RequestGroup.h
  10982. * src/MetalinkPostDownloadHandler.cc
  10983. * src/MetalinkPostDownloadHandler.h
  10984. * src/PostDownloadHandler.h
  10985. * src/RequestGroup.cc
  10986. * src/RequestGroup.h
  10987. * src/RequestGroupMan.cc
  10988. * src/main.cc
  10989. * test/BtPostDownloadHandlerTest.cc
  10990. * test/Metalink2RequestGroupTest.cc
  10991. * test/MetalinkPostDownloadHandlerTest.cc
  10992. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10993. Rewritten AccRequestGroup
  10994. * src/main.cc
  10995. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10996. Rewritten.
  10997. * src/TaggedItem.cc (toTagString)
  10998. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10999. Rewritten Accept-Features handling.
  11000. * src/HttpRequestCommand.cc (createHttpRequest)
  11001. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11002. Rewritten accept types handling.
  11003. * HttpRequest.cc (createRequest)
  11004. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11005. Rewritten
  11006. * src/FeatureConfig.cc (featureSummary)
  11007. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11008. Changed method signature:
  11009. PeerStorage::getActivePeers
  11010. * src/DHTPeerAnnounceEntry.cc
  11011. * src/DefaultPeerStorage.cc
  11012. * src/DefaultPeerStorage.h
  11013. * src/PeerStorage.h
  11014. * test/DefaultPeerStorageTest.cc
  11015. * test/MockPeerStorage.h
  11016. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Changed method signature:
  11018. DHTPeerAnnounceStorage::getPeers,
  11019. DHTPeerAnnounceEntry::getPeers
  11020. * src/DHTGetPeersMessage.cc
  11021. * src/DHTPeerAnnounceEntry.cc
  11022. * src/DHTPeerAnnounceEntry.h
  11023. * src/DHTPeerAnnounceStorage.cc
  11024. * src/DHTPeerAnnounceStorage.h
  11025. * test/DHTAnnouncePeerMessageTest.cc
  11026. * test/DHTPeerAnnounceEntryTest.cc
  11027. * test/DHTPeerAnnounceStorageTest.cc
  11028. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11029. Changed method signature:
  11030. NameResolver::resolve
  11031. * src/DHTEntryPointNameResolveCommand.cc
  11032. * src/InitiateConnectionCommand.cc
  11033. * src/NameResolver.cc
  11034. * src/NameResolver.h
  11035. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11036. Changed method signature:
  11037. PieceStorage::getAdvertisedPieceIndexes
  11038. * src/DefaultBtInteractive.cc
  11039. * src/DefaultPieceStorage.cc
  11040. * src/DefaultPieceStorage.h
  11041. * src/PieceStorage.h
  11042. * src/UnknownLengthPieceStorage.h
  11043. * test/MockPieceStorage.h
  11044. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11045. Changed method signature:
  11046. SegmentMan::getInFlightSegment
  11047. * src/AbstractCommand.cc
  11048. * src/SegmentMan.cc
  11049. * src/SegmentMan.h
  11050. * test/SegmentManTest.cc
  11051. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11052. Changed method signature:
  11053. DHTAbstractNodeLookupTask::getNodesFromMessage
  11054. * src/DHTAbstractNodeLookupTask.cc
  11055. * src/DHTAbstractNodeLookupTask.h
  11056. * src/DHTNodeLookupTask.cc
  11057. * src/DHTNodeLookupTask.h
  11058. * src/DHTPeerLookupTask.cc
  11059. * src/DHTPeerLookupTask.h
  11060. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11061. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  11062. * src/AbstractCommand.cc
  11063. * src/BtCheckIntegrityEntry.cc
  11064. * src/BtCheckIntegrityEntry.h
  11065. * src/BtFileAllocationEntry.cc
  11066. * src/BtFileAllocationEntry.h
  11067. * src/BtSetup.cc
  11068. * src/BtSetup.h
  11069. * src/CheckIntegrityCommand.cc
  11070. * src/CheckIntegrityEntry.h
  11071. * src/ChecksumCheckIntegrityEntry.cc
  11072. * src/ChecksumCheckIntegrityEntry.h
  11073. * src/DHTSetup.cc
  11074. * src/DHTSetup.h
  11075. * src/DownloadEngine.cc
  11076. * src/FileAllocationCommand.cc
  11077. * src/FileAllocationEntry.h
  11078. * src/RequestGroup.cc
  11079. * src/RequestGroup.h
  11080. * src/RequestGroupMan.cc
  11081. * src/RequestGroupMan.h
  11082. * src/StreamCheckIntegrityEntry.cc
  11083. * src/StreamCheckIntegrityEntry.h
  11084. * src/StreamFileAllocationEntry.cc
  11085. * src/StreamFileAllocationEntry.h
  11086. * src/TrackerWatcherCommand.cc
  11087. * src/a2functional.h
  11088. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11089. Changed method signature:
  11090. BNode::findClosestKNodes, BNode:: enumerateBucket,
  11091. DHTBucket::getGoodNodes,
  11092. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  11093. * src/BNode.cc
  11094. * src/BNode.h
  11095. * src/DHTAbstractNodeLookupTask.cc
  11096. * src/DHTAutoSaveCommand.cc
  11097. * src/DHTBucket.cc
  11098. * src/DHTBucket.h
  11099. * src/DHTBucketRefreshTask.cc
  11100. * src/DHTFindNodeMessage.cc
  11101. * src/DHTGetPeersMessage.cc
  11102. * src/DHTRoutingTable.cc
  11103. * src/DHTRoutingTable.h
  11104. * test/BNodeTest.cc
  11105. * test/DHTBucketTest.cc
  11106. * test/DHTRoutingTableTest.cc
  11107. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11108. In piece selection functions, Pass std::deque<...> by reference rather
  11109. than returning it.
  11110. * src/BitfieldMan.cc
  11111. * src/BitfieldMan.h
  11112. * src/DefaultBtRequestFactory.cc
  11113. * src/DefaultPieceStorage.cc
  11114. * src/Piece.cc
  11115. * src/Piece.h
  11116. * test/BitfieldManTest.cc
  11117. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11118. Implemented rarest piece first piece selection strategy.
  11119. * src/AbstractBtMessage.cc
  11120. * src/AbstractBtMessage.h
  11121. * src/BitfieldMan.cc
  11122. * src/BitfieldMan.h
  11123. * src/BtBitfieldMessage.cc
  11124. * src/BtHaveAllMessage.cc
  11125. * src/BtHaveMessage.cc
  11126. * src/DefaultPieceStorage.cc
  11127. * src/DefaultPieceStorage.h
  11128. * src/PeerInteractionCommand.cc
  11129. * src/PieceStorage.h
  11130. * src/UnknownLengthPieceStorage.h
  11131. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11132. Rewritten readData and writeData.
  11133. * src/MultiDiskAdaptor.cc
  11134. * src/MultiDiskAdaptor.h
  11135. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11136. Move \n out of the message "Usage: ...".
  11137. * src/version_usage.cc
  11138. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11139. Bump up version number to 0.13.2b.
  11140. * configure.ac
  11141. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11142. Added const qualifier to argument Exception& e.
  11143. * src/Logger.h
  11144. * src/SimpleLogger.cc
  11145. * src/SimpleLogger.h
  11146. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11147. Pool connection when CWD, SIZE command fails.
  11148. * src/FtpNegotiationCommand.cc
  11149. * src/FtpNegotiationCommand.h
  11150. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11151. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  11152. * src/HttpResponseCommand.cc
  11153. * src/HttpSkipResponseCommand.cc
  11154. * src/HttpSkipResponseCommand.h
  11155. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11156. Pool connection when a server returns 4xx, 5xx responses.
  11157. * src/HttpNullDownloadCommand.cc
  11158. * src/HttpNullDownloadCommand.h
  11159. * src/HttpResponse.cc
  11160. * src/HttpResponse.h
  11161. * src/HttpResponseCommand.cc
  11162. * src/HttpResponseCommand.h
  11163. * test/HttpResponseTest.cc
  11164. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11165. Print usage when no URL is specifed or bad command-line option is
  11166. specified.
  11167. * src/HelpItemFactory.cc
  11168. * src/help_tags.h
  11169. * src/option_processing.cc
  11170. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11171. Removed duplicate log message.
  11172. * src/AbstractCommand.cc (asyncResolveHostname)
  11173. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11174. Updated man page: --async-dns and --ftp-reuse-connection were added.
  11175. Changed -j option's default value from 5 to 1.
  11176. Added new examples using protocol auto detection feature.
  11177. Removed -T, -M usage where it can be omitted.
  11178. * doc/aria2c.1.txt
  11179. * doc/aria2c.1.html
  11180. * doc/aria2c.1.txt
  11181. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11182. Updated command-line usage text, so that it tells users that they
  11183. can specify any number of torrent files and metalink files in
  11184. command-line.
  11185. * src/version_usage.cc
  11186. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11187. Changed the default value of -j option to 1.
  11188. * src/HelpItemFactory.cc
  11189. * src/option_processing.cc
  11190. * src/usage_text.h
  11191. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11192. Added the ability to reuse connection in FTP and it is enabled by
  11193. default. It can be disabled by --ftp-reuse-connection=false option.
  11194. * src/Command.cc
  11195. * src/DownloadCommand.cc
  11196. * src/FtpDownloadCommand.cc
  11197. * src/FtpDownloadCommand.h
  11198. * src/FtpFinishDownloadCommand.cc
  11199. * src/FtpFinishDownloadCommand.h
  11200. * src/FtpInitiateConnectionCommand.cc
  11201. * src/FtpNegotiationCommand.cc
  11202. * src/FtpNegotiationCommand.h
  11203. * src/HelpItemFactory.cc
  11204. * src/Makefile.am
  11205. * src/Makefile.in
  11206. * src/OptionHandlerFactory.cc
  11207. * src/option_processing.cc
  11208. * src/prefs.h
  11209. * src/usage_text.h
  11210. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11211. Call Command::transitStatus() before calling Command::execute(),
  11212. so that the status change made in execute() is not cleared.
  11213. * src/DownloadEngine.cc
  11214. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11215. Removed forward declaration of SocketCore class.
  11216. * src/HttpDownloadCommand.h
  11217. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11218. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  11219. in InitiateConnectionCommandFactory. They should be set only when
  11220. the protocol is HTTP or HTTPS.
  11221. * src/InitiateConnectionCommandFactory.cc
  11222. * src/RequestGroup.cc
  11223. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11224. Fixed infinite loop in checksum checking.
  11225. * src/IteratableChecksumValidator.cc
  11226. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11227. Set _supportsPersistentConnection to true by default.
  11228. * src/Request.cc
  11229. * src/RequestGroup.cc
  11230. * test/HttpRequestTest.cc
  11231. * test/RequestTest.cc
  11232. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11233. Added timeout to socket pool. The default timeout is 15 seconds,
  11234. which is the same value Apache uses.
  11235. * src/DownloadEngine.cc
  11236. * src/DownloadEngine.h
  11237. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11238. Fixed misuse of multimap::find()
  11239. * src/HttpHeader.cc
  11240. * test/HttpHeaderTest.cc
  11241. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11242. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  11243. option.
  11244. The asynchronous DNS is not capable of IPv6 yet.
  11245. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  11246. least for HTTP download.
  11247. * src/AbstractCommand.cc
  11248. * src/AbstractCommand.h
  11249. * src/AsyncNameResolver.cc
  11250. * src/AsyncNameResolver.h
  11251. * src/DHTEntryPointNameResolveCommand.cc
  11252. * src/DHTEntryPointNameResolveCommand.h
  11253. * src/DownloadEngine.cc
  11254. * src/DownloadEngine.h
  11255. * src/FtpInitiateConnectionCommand.cc
  11256. * src/FtpInitiateConnectionCommand.h
  11257. * src/HelpItemFactory.cc
  11258. * src/HttpInitiateConnectionCommand.cc
  11259. * src/HttpInitiateConnectionCommand.h
  11260. * src/InitiateConnectionCommand.cc
  11261. * src/InitiateConnectionCommand.h
  11262. * src/Makefile.am
  11263. * src/Makefile.in
  11264. * src/NameResolver.cc
  11265. * src/NameResolver.h
  11266. * src/OptionHandlerFactory.cc
  11267. * src/SocketCore.cc
  11268. * src/SocketCore.h
  11269. * src/Util.cc
  11270. * src/Util.h
  11271. * src/option_processing.cc
  11272. * src/prefs.h
  11273. * src/usage_text.h
  11274. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11275. Updated man page: --quiet, --header were added.
  11276. --metalink-servers and --enable-http-keep-alive option were updated.
  11277. * doc/aria2c.1
  11278. * doc/aria2c.1.html
  11279. * doc/aria2c.1.txt
  11280. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11281. Enable HTTP keep-alive by default.
  11282. * src/HelpItemFactory.cc
  11283. * src/option_processing.cc
  11284. * src/usage_text.h
  11285. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11286. Disable http keep-alive if the remote server is not HTTP/1.1.
  11287. * src/HttpConnection.cc
  11288. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11289. Receive content body of 302 response so that the connection can be
  11290. reused later when http keep-alive is enabled.
  11291. * src/HttpNullDownloadCommand.cc
  11292. * src/HttpNullDownloadCommand.h
  11293. * src/HttpResponseCommand.cc
  11294. * src/HttpResponseCommand.h
  11295. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11296. const SharedHandle<Request> -> const SharedHandle<Request>&
  11297. * src/FtpDowndloadCommand.cc
  11298. * src/FtpDowndloadCommand.h
  11299. * src/HttpDownloadCommand.cc
  11300. * src/HttpDownloadCommand.h
  11301. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11302. Fixed the bug that the control file(.aria2 file) is not renamed
  11303. according to tryAutoFileRenaming().
  11304. tryAutoFileRenaming() was rewritten so that if both renamed file and
  11305. its control file exist, use them and continue download.
  11306. The old implementation didn't take into account of control file's
  11307. existence, so basically you couldn't continue download of renamed file.
  11308. * src/BtProgressInfoFile.h
  11309. * src/DefaultBtProgressInfoFile.cc
  11310. * src/DefaultBtProgressInfoFile.h
  11311. * src/NullProgressInfoFile.h
  11312. * src/RequestGroup.cc
  11313. * test/DefaultBtProgressInfoFileTest.cc
  11314. * test/MockBtProgressInfoFile.h
  11315. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11316. Change the default value of --metalink-servers option from `5' to `1'.
  11317. * src/HelpItemFactory.cc
  11318. * src/option_processing.cc
  11319. * src/usage_text.h
  11320. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11321. Reimplemented transparent metalink using Accept request header.
  11322. * src/HttpRequest.cc
  11323. * src/HttpRequest.h
  11324. * src/HttpRequestCommand.cc
  11325. * src/Metalink2RequestGroup.cc
  11326. * src/RequestGroup.cc
  11327. * src/RequestGroup.h
  11328. * test/HttpRequestTest.cc
  11329. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11330. Bump up version number to 0.13.2a
  11331. * configure.ac
  11332. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11333. Updated configure.ac using the result of autoscan.
  11334. * configure.ac
  11335. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11336. Fixed compilation error without gcrypt/openssl.
  11337. * src/DownloadCommand.cc
  11338. * src/DownloadCommand.h
  11339. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11340. Reorganized version information so that it can be displayed in a
  11341. standard terminal screen without scrolling.
  11342. Removed http, ftp from Configuration section, because they are always
  11343. enabled.
  11344. * src/FeatureConfig.cc
  11345. * src/FeatureConfig.h
  11346. * src/main.cc
  11347. * src/messageDigest.cc
  11348. * src/messageDigest.h
  11349. * src/version_usage.cc
  11350. * test/FeatureConfigTest.cc
  11351. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11352. Masked user ID in log.
  11353. * src/FtpConnection.cc (sendUser)
  11354. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11355. Removed query part from filename in HTTP download. The query part means
  11356. the substring after "?" in URL. Firefox seems do the same thing.
  11357. A query part is sometimes very long and not suitable to filename,
  11358. so I think it is better to remove it from filename.
  11359. * src/HttpRequest.cc
  11360. * src/HttpRequest.h
  11361. * src/Request.cc
  11362. * src/Request.h
  11363. * test/HttpRequestTest.cc
  11364. * test/RequestTest.cc
  11365. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11366. Rewritten Exception class. Throw exception object, not its pointer and
  11367. catch by reference, so that remove problematic delete operator for
  11368. catched exception.
  11369. * src/Exception.cc
  11370. * src/Exception.h
  11371. * test/ExceptionTest.cc
  11372. * src/*: All files throwing/catching exception.
  11373. * test/*: All files throwing/catching exception.
  11374. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11375. Now auto protocol detection is enabled without -Z option.
  11376. But there is a important difference between with/without -Z optoin.
  11377. For example, if you type:
  11378. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  11379. then, aria2 interprets there are 3 request groups:
  11380. (1) http://host/file, http://mirror/file <-- multi-source download
  11381. (2) file1.torrent
  11382. (3) file2.metalink
  11383. On the other hand, if you invoke above command with -Z option, it is
  11384. interpreted as 4 request groups:
  11385. (1) http://host/file
  11386. (2) file1.torrent
  11387. (3) file2.metalink
  11388. (4) http://mirror/file
  11389. I think usually user don't mix multi-source URLs and torrent files, so
  11390. there is no big problem here.
  11391. * src/main.cc
  11392. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11393. Fixed the bug that causes segmentaion fault when reading XML containing
  11394. unescapsed character like '&'.
  11395. Also a modification was made which avoids adding unnecessary
  11396. characters stack and appending unused string.
  11397. * src/ExpatMetalinkProcessor.cc
  11398. * src/FileMetalinkParserState.h
  11399. * src/FilesMetalinkParserState.h
  11400. * src/FinMetalinkParserState.h
  11401. * src/HashMetalinkParserState.h
  11402. * src/InitialMetalinkParserState.h
  11403. * src/LanguageMetalinkParserState.h
  11404. * src/MetalinkMetalinkParserState.h
  11405. * src/MetalinkParserState.h
  11406. * src/MetalinkParserStateMachine.cc
  11407. * src/MetalinkParserStateMachine.h
  11408. * src/OSMetalinkParserState.h
  11409. * src/PieceHashMetalinkParserState.h
  11410. * src/PiecesMetalinkParserState.h
  11411. * src/ResourcesMetalinkParserState.h
  11412. * src/SizeMetalinkParserState.h
  11413. * src/SkipTagMetalinkParserState.h
  11414. * src/URLMetalinkParserState.h
  11415. * src/VerificationMetalinkParserState.h
  11416. * src/VersionMetalinkParserState.h
  11417. * src/XML2SAXMetalinkProcessor.cc
  11418. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11419. Added StringFormat class, which internally calls vasprintf.
  11420. operator<< is defined for this class, so it can be used with iostream
  11421. classes nicely. SimpleLogger and following functions are rewritten
  11422. using StringFormat class.
  11423. Besides, now Logger class's methods are non-const, many classes
  11424. that has a const Logger* as a member variable are modified to remove
  11425. const qualifier from the variable declaration.
  11426. * src/HelpItemFactory.cc
  11427. * src/Request.cc
  11428. * src/SimpleLogger.cc
  11429. * src/StringFormat.cc
  11430. * src/StringFormat.h
  11431. * src/Util.cc
  11432. * src/option_processing.cc
  11433. * src/version_usage.cc
  11434. * test/StringFormatTest.cc
  11435. * src/*.h: The classes that has const Logger* as a member variable.
  11436. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11437. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  11438. failed. Also fixed memory link when exception is thrown there.
  11439. * src/main.cc (AccRequestGroup)
  11440. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11441. Added build-in "Accept-Features" support. For now only "metalink" is
  11442. used in this header field.
  11443. This "metalink" value is removed from the list when connecting URLs
  11444. fed by metalink file to avoid loop in "transparent" metlaink.
  11445. * src/HttpRequest.cc
  11446. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  11447. header is also held in this variable. Also renamed setUserHeaders as
  11448. addHeader and it was rewritten to add header not just to clear the old
  11449. value.
  11450. * src/HttpRequestCommand.cc
  11451. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  11452. from "Accept-Features" list.
  11453. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  11454. default.
  11455. * src/RequestGroup.h
  11456. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  11457. * src/a2functional.h: Included <string> because Concat class depends on
  11458. it.
  11459. * test/HttpRequestTest.cc
  11460. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11461. Added comment
  11462. * src/RequestGroup.cc (createNextCommand)
  11463. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11464. Capitalized METHOD_GET and METHOD_HEAD
  11465. * src/Request.cc
  11466. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11467. Added getDownloadResults() method
  11468. * src/RequestGroupMan.cc
  11469. * src/RequestGroupMan.h
  11470. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11471. Fixed the bug that aria2 exits when commands is empty() but
  11472. _routineCommands are not.
  11473. * src/DownloadEngine.cc
  11474. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11475. Use the default value pulled from Option object in HelpItemFactory.
  11476. except options whose defualt value is embedded in a usage text.
  11477. * src/HelpItemFactory.cc
  11478. * src/HelpItemFactory.h
  11479. * src/option_processing.cc
  11480. * src/version_usage.cc
  11481. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11482. Added --quiet option to make aria2 quiet (no console output).
  11483. --quiet option is tagged with ADVANCED.
  11484. * src/HelpItemFactory.cc
  11485. * src/LogFactory.cc
  11486. * src/LogFactory.h
  11487. * src/MultiUrlRequestInfo.cc
  11488. * src/MultiUrlRequestInfo.h
  11489. * src/NullStatCalc.h: New class. This class prints nothing.
  11490. * src/OptionHandlerFactory.cc
  11491. * src/main.cc
  11492. * src/option_processing.cc
  11493. * src/prefs.h
  11494. * src/usage_text.h
  11495. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11496. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  11497. * src/HelpItemFactory.cc (createHelpItems):
  11498. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11499. Fixed compilation error in ExpatMetalinkProcessor.cc
  11500. * src/ExpatMetalinkProcessor.cc
  11501. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11502. Reuse socket if the origin server supports HTTP keep-alive and
  11503. --enable-http-keep-alive or --enable-http-pipelining is given.
  11504. The current implementation doesn't reuse the connections established
  11505. against proxy server.
  11506. * src/AbstractCommand.cc
  11507. * src/DownloadEngine.cc
  11508. * src/DownloadEngine.h
  11509. * src/HttpDownloadCommand.cc
  11510. * src/HttpInitiateConnectionCommand.cc
  11511. * src/HttpResponseCommand.cc
  11512. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11513. Rewritten HTTP keep-alive and pipelining routine.
  11514. * src/AbstractCommand.cc
  11515. * src/HttpConnection.cc
  11516. * src/HttpDownloadCommand.cc
  11517. * src/HttpRequest.cc
  11518. * src/HttpRequestCommand.cc
  11519. * src/HttpResponseCommand.cc
  11520. * src/Request.cc
  11521. * src/Request.h
  11522. * src/RequestGroup.cc
  11523. * test/HttpRequestTest.cc
  11524. * test/HttpResponseTest.cc
  11525. * test/RequestTest.cc
  11526. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11527. Added missing setUserHeaders call
  11528. * src/HttpRequestCommand.cc
  11529. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11530. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  11531. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  11532. waste of time because it is more likey false.
  11533. * src/FileAllocationDispatcherCommand.cc (execute)
  11534. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11535. Now HTTP status and version are a member variable of HttpHeader.
  11536. HTTP status is processed as a string, not integer.
  11537. * src/AbstractProxyResponseCommand.cc
  11538. * src/HttpConnection.cc
  11539. * src/HttpHeader.cc
  11540. * src/HttpHeader.h
  11541. * src/HttpHeaderProcessor.cc
  11542. * src/HttpHeaderProcessor.h
  11543. * src/HttpResponse.cc
  11544. * src/HttpResponse.h
  11545. * test/HttpHeaderProcessorTest.cc
  11546. * test/HttpResponseTest.cc
  11547. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11548. Added --header option. You can specify any number of additional HTTP headers
  11549. like:
  11550. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  11551. Unlike other commad-line option, you can use --header option multiple times.
  11552. * src/HelpItemFactory.cc
  11553. * src/HttpRequest.{cc, h}
  11554. * src/HttpRequestCommand.cc
  11555. * src/OptionHandlerFactory.cc
  11556. * src/OptionHandlerImpl.h
  11557. * src/option_processing.cc
  11558. * src/prefs.h
  11559. * src/usage_text.h
  11560. * test/HttpRequestTest.cc (testUserHeaders)
  11561. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11562. Eliminates the time lag between sequential downloads and commands in
  11563. the same RequestGroup.
  11564. In old implementation, aria2 occasionally waits 1 seconds before
  11565. executing next command or RequestGroup.
  11566. This is really a waste of time, and new implementation eliminates
  11567. this unnecessary time lag.
  11568. * src/AbstractCommand.cc
  11569. * src/AutoSaveCommand.cc
  11570. * src/CheckIntegrityCommand.cc
  11571. * src/Command.{cc, h}
  11572. * src/DownloadEngine.{cc, h}
  11573. * src/DownloadEngineFactory.cc
  11574. * src/FileAllocationCommand.cc
  11575. * src/FileAllocationDispatcherCommand.cc
  11576. * src/FillRequestGroupCommand.cc
  11577. * src/FtpInitiateConnectionCommand.cc
  11578. * src/HaveEraseCommand.cc
  11579. * src/HttpInitiateConnectionCommand.cc
  11580. * src/HttpResponseCommand.cc
  11581. * src/RealtimeCommand.cc
  11582. * src/RequestGroup.cc
  11583. * src/RequestGroupMan.cc
  11584. * src/StreamFileAllocationEntry.cc
  11585. * src/TimeBasedCommand.{cc, h}
  11586. * src/TimedHaltCommand.cc
  11587. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11588. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  11589. keyword explicit and SharedHandle's default constructor initializes
  11590. its internal obj to null, old implementation initializes it using
  11591. obj's default constructor.
  11592. To assign null, write SharedHandle<T> x(...); x.reset();
  11593. TODO: test/SharedHandleTest.cc needs more tests.
  11594. * src/SharedHandle.h
  11595. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11596. Fixed type in man page.
  11597. * doc/aria2c.1.txt
  11598. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11599. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  11600. * src/SimpleLogger.{cc, h}
  11601. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11602. Implemented auto protocol detection.
  11603. Now you can do:
  11604. aria2c -Z http://host/file file1.torrent file2.metalink
  11605. (Note: -Z option is required for auto protcol detection.)
  11606. Then aria2c downloads 3 files simultaneously:
  11607. 1. http://host/file
  11608. 2. file1.torrent <-- read local torrent file
  11609. 3. file2.metalink <-- read local Metalink file.
  11610. Same thing goes with -i option. Assume your uris.txt contans:
  11611. http://host/file
  11612. file1.torrent
  11613. file2.metalink
  11614. Then you can do: aria2c -i uris.txt
  11615. (Note: -Z option is not needed if -i option is given.)
  11616. * src/main.cc
  11617. * src/ProtocolDetector.{cc, h}
  11618. * test/ProtocolDetectorTest.cc
  11619. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11620. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  11621. installed
  11622. * src/ARC4Encryptor.h
  11623. * src/ARC4Decryptor.h
  11624. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11625. Renamed argument from 'errno' to 'err', since errno is confused with
  11626. errno defined in errno.h.
  11627. * src/LibgcryptARC4Decryptor.h
  11628. * src/LibgcryptARC4Context.h
  11629. * src/LibgcryptDHKeyExchange.h
  11630. * src/LibgcryptARC4Encryptor.h
  11631. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11632. Rewritten choking algorithm.
  11633. * src/PeerChokeCommand.{cc, h}
  11634. * src/BtInterestedMessage.cc
  11635. * src/PeerSessionResource.{cc, h}
  11636. * src/DefaultPeerStorage.{cc, h}
  11637. * src/BtNotInterestedMessage.cc
  11638. * src/DefaultBtMessageDispatcher.{cc, h}
  11639. * src/BtMessageDispatcher.h
  11640. * src/Peer.{cc, h}
  11641. * src/BtLeecherStateChoke.{cc, h}
  11642. * src/BtSetup.cc
  11643. * src/BtSeederStateChoke.{cc, h}
  11644. * src/PeerStorage.h
  11645. * test/MockPeerStorage.h
  11646. * test/MockBtMessageDispatcher.h
  11647. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11648. Fixed compilation error on x84-64 platform.
  11649. * src/AuthConfig.cc: Included ostream.
  11650. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11651. Rewritten getBasename() and getDirname(), without standard library
  11652. basename(), dirname().
  11653. * src/File.cc
  11654. * test/FileTest.cc
  11655. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11656. Added Simplified Chinese translation. Also updated the following
  11657. translations: Polish, Dutch, German. Great thanks to all translators.
  11658. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11659. Suppress content-range error when 'Content-Range' response header
  11660. doesn't contains bytes-unit specifier 'bytes'
  11661. * src/HttpHeader.cc (getRange)
  11662. * test/HttpHeaderTest.cc
  11663. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11664. Fixed compilation error with g++-4.3
  11665. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11666. Added missing include files for MinGW
  11667. * test/HttpHeaderProcessorTest.cc
  11668. * test/DHTRoutingTableSerializerTest.cc
  11669. * test/DHTRoutingTableDeserializerTest.cc
  11670. * test/UriListParserTest.cc
  11671. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11672. Now download line is printed nicely with no garbage at the end of
  11673. line. I use ioctl to get the columns of terminal.
  11674. If stdout is redirected to another device, instead of carriage return,
  11675. end of line '\n' character is used. This is feature request#1909659
  11676. * src/ConsoleStatCalc.cc (calculateStat)
  11677. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11678. Included a2time.h
  11679. * src/DHTMessageDispatcher.h
  11680. * src/DHTMessageEntry.h
  11681. * src/DHTReplaceNodeTask.h
  11682. * src/DHTMessageTracker.h
  11683. * src/Util.h
  11684. * src/CookieBox.h
  11685. * src/SocketCore.h
  11686. * src/DefaultBtMessageDispatcher.h
  11687. * src/SocketCore.cc
  11688. * src/Util.cc
  11689. * src/DHTPingTask.h
  11690. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11691. Fixed high memory footprint when DHT is enabled.
  11692. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  11693. queued than it is processed and the queue is getting longer. As a
  11694. consequence, momory usage is increased.
  11695. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11696. replacement cache in DHTBucket which is described in Kademlia paper.
  11697. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11698. DHTReplaceNodeTask.
  11699. * src/DHTBucket.{h, cc}
  11700. (cacheNode): New function.
  11701. (getCachedNodes): New function.
  11702. (dropNode): Push back cached node to _nodes.
  11703. * test/DHTBucketTest.cc
  11704. (testCacheNode): New test
  11705. (testDropNode): New test
  11706. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11707. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11708. the unused 4KB memory when ssl is not used.
  11709. * src/SocketCore.cc
  11710. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11711. Added summary log for peer announce storage.
  11712. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11713. Removed cast
  11714. * src/DefaultPeerStorage.cc (addPeer)
  11715. Log exception message
  11716. * src/DHTMessageTracker.cc (handleTimeout)
  11717. Fixed casting
  11718. * test/HttpRequestTest.cc
  11719. * test/MetalinkProcessorTest.cc
  11720. * test/PieceTest.cc
  11721. * test/MetalinkEntryTest.cc
  11722. * test/SequenceTest.cc
  11723. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11724. * src/ParameterizedStringParser.cc (createLoop):
  11725. Removed unused variable sstep.
  11726. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11727. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11728. * src/Util.{h, cc}
  11729. (parseUInt): New function.
  11730. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11731. The actual range is uint32_t.
  11732. * test/UtilTest.cc
  11733. * src/ParameterizedStringParser.cc:
  11734. Use Util::parseUInt() for loop variables.
  11735. * test/ParameterizedStringParserTest.cc
  11736. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11737. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11738. Rewritten the functions for binding port.
  11739. * src/DHTConnectionImpl.{h, cc}
  11740. * src/PeerListenCommand.{h, cc}
  11741. * src/DHTSetup.cc
  11742. * src/BtSetup.cc
  11743. * test/DHTConnectionImplTest.cc
  11744. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11745. type cleanup for allmost all remaining files.
  11746. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11747. Type clarification
  11748. * src/PeerSessionResource.{h, cc}
  11749. * src/DefaultPieceStorage.{h, cc}
  11750. * src/Peer.{h, cc}
  11751. * test/PeerSessionResourceTest.cc
  11752. Use div function
  11753. * src/BtPieceMessage.cc (erasePieceOnDisk)
  11754. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11755. Type clarification
  11756. * src/DefaultPeerStorage.{h, cc}
  11757. * test/DefaultPeerStorageTest.cc
  11758. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11759. Type clarification: size_t for length or size, uint64_t for file
  11760. length, off_t for file offset.
  11761. * src/DefaultBtProgressInfoFile.cc
  11762. * src/DefaultBtContext.{h, cc}
  11763. * src/DefaultBtInteractive.cc
  11764. * src/DownloadCommand.{h, cc}
  11765. * src/IteratableChunkChecksumValidator.{h, cc}
  11766. * src/SegmentMan.{h, cc}
  11767. * src/SingleFileDownloadContext.{h, cc}
  11768. * src/IteratableChecksumValidator.{h, cc}
  11769. * src/BtContext.h
  11770. * src/IteratableValidator.h
  11771. * src/DownloadContext.h
  11772. * test/SingleFileDownloadContextTest.cc
  11773. * test/DefaultBtContextTest.cc
  11774. * test/MockBtContext.h
  11775. * test/Metalink2RequestGroupTest.cc
  11776. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11777. Type clarification: size_t for length or size, uint64_t for file
  11778. length, off_t for file offset.
  11779. * src/PiecedSegment.cc
  11780. * src/GrowSegment.h
  11781. * src/DefaultBtRequestFactory.h
  11782. * src/DefaultBtProgressInfoFile.cc
  11783. * src/UnknownLengthPieceStorage.h
  11784. * src/DefaultPieceStorage.cc
  11785. * src/UnknownLengthPieceStorage.cc
  11786. * src/DefaultBtInteractive.cc
  11787. * src/GrowSegment.cc
  11788. * src/BitfieldMan.h
  11789. * src/DownloadCommand.cc
  11790. * src/BtRequestFactory.h
  11791. * src/PiecedSegment.h
  11792. * src/DefaultPieceStorage.h
  11793. * src/Piece.cc
  11794. * src/DefaultBtRequestFactory.cc
  11795. * src/PieceStorage.h
  11796. * src/Segment.h
  11797. * src/Piece.h
  11798. * src/BitfieldMan.cc
  11799. * src/Util.cc
  11800. * test/DefaultBtProgressInfoFileTest.cc
  11801. * test/DefaultPieceStorageTest.cc
  11802. * test/MockPieceStorage.h
  11803. * test/BtRequestMessageTest.cc
  11804. * test/DefaultBtMessageDispatcherTest.cc
  11805. * test/BitfieldManTest.cc
  11806. * test/GrowSegmentTest.cc
  11807. * test/PieceTest.cc
  11808. * test/SegmentTest.cc
  11809. * test/SegmentManTest.cc
  11810. * test/DefaultBtRequestFactoryTest.cc
  11811. * test/MockBtRequestFactory.h
  11812. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11813. Fixed compilation error with --disable-nls
  11814. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11815. in gettext.h causes the problem.
  11816. * src/common.h
  11817. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11818. Removed subPiece related functions.
  11819. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11820. * src/DefaultPieceStorage.{h, cc}
  11821. * test/PieceTest.cc
  11822. * test/DefaultPieceStorageTest.cc
  11823. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11824. Use unsigned char for data store.
  11825. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11826. Bump up version number to 0.13.0+1
  11827. * configure.ac
  11828. * Release 0.13.0+1
  11829. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11830. Changed inactive connection timeout to 120.
  11831. To accept more mulually interested peers, disconnect peer when there
  11832. is no interest between us after certain time passed.
  11833. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11834. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11835. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11836. when compiled with async DNS support.
  11837. * src/DownloadEngine.cc
  11838. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11839. value '10' will be a little bit short when some DNS servers are
  11840. offline and several DNS servers are tried. It should be configured
  11841. by command-line option.
  11842. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11843. Merged Ross's mingw patch.
  11844. * src/DHTRoutingTableDeserializer.cc
  11845. * src/DHTRoutingTableSerializer.cc
  11846. * src/Platform.{h, cc}
  11847. * src/timegm.h
  11848. * src/gettimeofday.h
  11849. * src/getaddrinfo.h
  11850. * src/SocketCore.h
  11851. * src/common.h
  11852. * src/inet_aton.h
  11853. * src/DownloadEngine.h
  11854. * src/gai_strerror.h
  11855. * src/a2netcompat.h
  11856. * configure.ac
  11857. * configure
  11858. * aclocal.m4
  11859. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11860. Included missing iostream.
  11861. * test/AllTest.cc
  11862. * test/BtDependencyTest.cc
  11863. * test/BtExtendedMessageTest.cc
  11864. * test/DHTConnectionImplTest.cc
  11865. * test/DHTMessageFactoryImplTest.cc
  11866. * test/DHTMessageTrackerEntryTest.cc
  11867. * test/DHTNodeTest.cc
  11868. * test/DHTRoutingTableSerializerTest.cc
  11869. * test/DefaultBtAnnounceTest.cc
  11870. * test/DefaultBtContextTest.cc
  11871. * test/DefaultBtMessageFactoryTest.cc
  11872. * test/DefaultExtensionMessageFactoryTest.cc
  11873. * test/HandshakeExtensionMessageTest.cc
  11874. * test/HttpResponseTest.cc
  11875. * test/MetalinkProcessorTest.cc
  11876. * test/MultiFileAllocationIteratorTest.cc
  11877. * test/SocketCoreTest.cc
  11878. * test/UTPexExtensionMessageTest.cc
  11879. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11880. Reorganized includes.
  11881. * src/NameResolver.cc
  11882. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11883. Fixed compilation error without ares/c-ares
  11884. * src/NameResolver.h:
  11885. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11886. Added a test for large file.
  11887. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11888. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11889. Fixed the bug that file size is ignored if size > INT32_MAX
  11890. * src/SizeMetalinkParserState.cc (endElement):
  11891. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11892. Bump up version number to 0.13.0
  11893. * configure.ac
  11894. * Release 0.13.0
  11895. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11896. Updated Makfefile.am to make 'make dist' work.
  11897. Now packaged filename is aria2c-VERSION.tar.bz2.
  11898. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11899. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11900. Large file support is now configured by configure script.
  11901. * configure.ac
  11902. Removed unsused source files
  11903. * src/
  11904. * test/
  11905. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11906. Peer.h and BtContext.h respectively.
  11907. * src/Peer.h
  11908. * src/BtContext.h
  11909. Updated translations.
  11910. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11911. translations. Great thanks to all translators!;)
  11912. * po/*.{po, gmo}
  11913. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11914. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11915. statically declared sha1 MessageDigestContext.
  11916. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11917. initialization of short-lived MessageDigestContext.
  11918. * src/MessageDigestHelper.{h, cc}
  11919. * src/main.cc
  11920. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11921. the initialization of MessageDigestContext every time in validating
  11922. chunk checksum.
  11923. * src/DownloadCommand.{h, cc}
  11924. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11925. Add a file descriptor which connected to fast peer(latency<1500) to
  11926. select(). This change reduced CPU load.
  11927. * src/PeerInteractionCommand.cc
  11928. * src/DefaultBtInteractive.{h, cc}
  11929. * src/BtInteractive.h
  11930. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11931. Fixed the previous insufficient fix for possible busy loop.
  11932. * src/MSEHandshake.cc (identifyHandshakeType)
  11933. Removed unused functions.
  11934. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11935. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11936. Fixed possible busy loop if first 20 bytes are not received for a few
  11937. minutes.
  11938. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11939. * src/ReceiverMSEHandshakeCommand.cc
  11940. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11941. Fixed compilation error
  11942. * src/ExpatMetalinkProcessor.cc
  11943. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11944. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11945. * src/DHTBucket.cc
  11946. Removed unnecessary cast.
  11947. * src/HandshakeExtensionMessage.cc
  11948. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11949. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11950. is missing.
  11951. * src/OptionHandlerFactory.cc
  11952. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11953. Fixed the bug that HAVE message is not sent for a piece they are
  11954. downloaded fom http/ftp server before any BitTorrent handshake is done
  11955. with peers.
  11956. * src/DefaultBtInteractive.cc
  11957. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11958. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11959. * src/Makefile.am
  11960. * src/Makefile.in
  11961. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11962. Updated README. Added html version of README and man page.
  11963. * README
  11964. * README.html
  11965. * readme2html: Shell script to generate README.html from README using
  11966. asciidoc.
  11967. * doc/aria2c.1.html
  11968. * doc/makeman: Added the line to generate aria2c.1.html
  11969. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11970. Fixed offset calculation.
  11971. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11972. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11973. Rewritten itos and uitos using template. llitos and ullitos are
  11974. replaced with itos and uitos respectively.
  11975. * src/Util.{h, cc}
  11976. * test/UtilTest.cc
  11977. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11978. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11979. of the number of bytes required for storing public key and shared
  11980. secret.
  11981. * src/LibgcryptDHKeyExchange.h
  11982. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11983. * src/MSEHandshake.cc
  11984. * test/DHKeyExchangeTest.cc
  11985. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11986. Removed since they are not used.
  11987. * src/Xml2MetalinkProcessor.{h, cc}
  11988. * src/Socket.cc
  11989. * src/SegmentSplitter.{h, cc}
  11990. * test/Xml2MetalinkProcessorTest.cc
  11991. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11992. Fixed the bug that prevents aria2 from stopping other than by pressing
  11993. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11994. option. aria2 doesn't stop even after --seed-time is satisfied and
  11995. continues to output blank lines in the console.
  11996. * src/ReceiverMSEHandshakeCommand.cc
  11997. * src/PeerReceiveHandshakeCommand.cc
  11998. * src/PeerListenCommand.cc
  11999. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12000. Bump up version number to 0.13.0rc
  12001. * configure.ac
  12002. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12003. Updated man page and some usage text.
  12004. * doc/aria2c.1.txt
  12005. * src/usage_text.h
  12006. * po/*.{po, gmo}
  12007. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12008. Updated translations. Added Finnish and Hebrew translations.
  12009. Great thanks to all translators!
  12010. * po/*.{po, gmo}
  12011. * po/LINGUAS
  12012. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12013. Log more detailed information about each message.
  12014. * src/DHTQueryMessage.{h, cc}
  12015. * src/DHTGetPeersMessage.{h, cc}
  12016. * src/DHTFindNodeReplyMessage.{h, cc}
  12017. * src/DHTGetPeersReplyMessage.{h, cc}
  12018. * src/DHTAnnouncePeerMessage.{h, cc}
  12019. * src/DHTResponseMessage.{h, cc}
  12020. * src/DHTFindNodeMessage.{h, cc}
  12021. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12022. Use constants defined in prefs.h
  12023. * src/option_processing.cc
  12024. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12025. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  12026. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12027. Make room for future enchancements for IPv6 addresses.
  12028. Bump up version number of dht.dat file format to 2.
  12029. Not compatible with previous version.
  12030. * src/DHTRoutingTableSerializer.cc
  12031. * src/DHTRoutingTableDeserializer.cc
  12032. * test/DHTRoutingTableSerializerTest.cc
  12033. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12034. Added handling for the return values from
  12035. PeerMessageUtil::createcompact().
  12036. * src/DefaultBtContext.cc (computeFastSet):
  12037. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12038. Fixed abort when peer's ip address is IPv4-mapped address.
  12039. * src/DefaultBtContext.cc (computeFastSet)
  12040. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  12041. cannot handle IPv4-mapped addresses.
  12042. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  12043. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12044. Proper return value handling for OpenSSL functions.
  12045. * src/LibsslDHKeyExchange.h
  12046. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12047. Random bytes generation using libgcrypt and OpenSSL.
  12048. * src/DHTUtil.{h, cc}
  12049. * test/DHTUtilTest.cc
  12050. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12051. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  12052. received.
  12053. * src/DHTMessageReceiver.cc (receiveMessage)
  12054. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12055. Fixed the bug that a return code is always 0. BUG#1897704
  12056. If error occurred during the download or there exist unfinished
  12057. downloads, aria2 returns with code 1.
  12058. * src/RequestGroupMan.{h, cc}
  12059. * src/MultiUrlRequestInfo.{h, cc}
  12060. * src/main.cc
  12061. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12062. IPv6 support for SocketCore class.
  12063. TODO: In SocketCore::establishConnection(), this is insufficient to
  12064. determin the failure of connect() here because the socket is
  12065. non-blocking state. The next addresses should be tried after select().
  12066. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  12067. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  12068. instead which address family independent.
  12069. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  12070. information in a compact peer format which is for IPv4 only.
  12071. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  12072. this is a spec of BitTorrent protocol.
  12073. * src/SocketCore.{h, cc}
  12074. * src/PeerMessageUtil.cc
  12075. * test/SocketCoreTest.cc
  12076. * test/PeerMessageUtilTest.cc
  12077. * test/DHTConnectionImplTest.cc
  12078. Handle IPv4-mapped addresses.
  12079. * src/DHTNode.cc: Now identity is determined by node id.
  12080. * src/DHTMessageTrackerEntry.cc
  12081. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  12082. should handle it.
  12083. * src/DHTRoutingTableDeserializer.cc
  12084. * src/DHTMessageFactoryImpl.cc
  12085. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. Change the unit of --stop option from a minute to a second.
  12087. * src/usage_text.h
  12088. * src/DownloadEngineFactory.cc
  12089. * src/OptionHandlerFactory.cc
  12090. * src/message.h
  12091. * src/TimedHaltCommand.cc
  12092. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12093. Make listening socket non-block mode.
  12094. * src/FtpConnection.cc
  12095. * src/FtpNegotiationCommand.{h, cc}
  12096. * src/PeerListenCommand.cc
  12097. Fixed the bug that cause slow ftp negotiation.
  12098. * src/FtpNegotiationCommand.{h, cc}
  12099. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12100. Added basic tag to --enable-dht, --dht-listen-port option.
  12101. * src/HelpItemFactory.cc (createHelpItems)
  12102. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12103. Updated text.
  12104. * src/usage_text.h
  12105. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12106. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  12107. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12108. Determin _threadtholdSpeed in each constructor for
  12109. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  12110. * src/ActivePeerConnectionCommand.{h, cc}
  12111. * src/PeerReceiveHandshakeCommand.{h, cc}
  12112. * src/BtSetup.cc
  12113. * src/BtConstants.h
  12114. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12115. Added --bt-min-crypto-level and --bt-require-crypto options.
  12116. * src/OptionHandlerFactory.cc
  12117. * src/MSEHandshake.cc
  12118. * src/HelpItemFactory.cc
  12119. * src/option_processing.cc
  12120. * src/ReceiverMSEHandshakeCommand.cc
  12121. * src/prefs.h
  12122. * src/DefaultBtAnnounce.cc
  12123. * src/InitiatorMSEHandshakeCommand.cc
  12124. * src/usage_text.h
  12125. * test/MSEHandshakeTest.cc
  12126. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12127. Bump version number to 0.13.0b
  12128. * configure.ac
  12129. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12130. Updated doc.
  12131. * src/MessageDigestHelper.h:
  12132. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12133. Use raw message digest as a token instead of its hexadecimal
  12134. representation.
  12135. * src/DHTTokenTracker.cc (generateToken)
  12136. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12137. Added Message Stream Encryption(MSE) support.
  12138. Currently, aria2 accepts incoming connections with Obfuscation Header
  12139. and legacy BitTorrent Header and establishes connections with
  12140. Obfuscation Header first and if failed then retry with legacy
  12141. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  12142. choose ARC4. The new option to change the default behavior is planned.
  12143. For tracker extension, "supportcrypto=1" is added statically.
  12144. * src/PeerInitiateConnectionCommand.{h, cc}
  12145. * src/PeerConnection.{h, cc}
  12146. * src/HandleRegistry.h
  12147. * src/SocketCore.h
  12148. * src/PeerReceiveHandshakeCommand.{h, cc}
  12149. * src/BtRegistry.{h, cc}
  12150. * src/PeerListenCommand.cc
  12151. * src/InitiatorMSEHandshakeCommand.{h, cc}
  12152. * src/ReceiverMSEHandshakeCommand.{h, cc}
  12153. * src/MSEHandshake.{h, cc}
  12154. * src/ARC4Encryptor.h
  12155. * src/ARC4Decryptor.h
  12156. * src/LibgcryptARC4Encryptor.h
  12157. * src/LibgcryptARC4Decryptor.h
  12158. * src/LibgcryptARC4Context.h
  12159. * src/LibsslARC4Encryptor.h
  12160. * src/LibsslARC4Decryptor.h
  12161. * src/LibsslARC4Context.h
  12162. * src/DHKeyExchange.h
  12163. * src/LibgcryptDHKeyExchange.h
  12164. * src/LibsslDHKeyExchange.h
  12165. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  12166. * test/DefaultBtAnnounceTest.cc
  12167. * test/ARC4Test.cc
  12168. * test/DHKeyExchangeTest.cc
  12169. Removed prepareForRetry() because it is not used.
  12170. * src/PeerAbstractCommand.{h, cc}
  12171. * src/PeerInteractionCommand.{h, cc}
  12172. * src/PeerInitiateConnectionCommand.{h, cc}
  12173. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12174. Added the ability to load nodes from torrent file. These nodes are
  12175. added to the routing table when downloading that torrent.
  12176. * src/BtContext.h
  12177. * src/DefaultBtContext.{h, cc}
  12178. * src/DHTSetup.cc
  12179. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  12180. hostname and port pair, and resolves all of them.
  12181. * src/NameResolver.{h, cc}: Added reset().
  12182. * src/RequestGroup.cc
  12183. * test/DefaultBtContextTest.cc
  12184. * test/MockBtContext.h
  12185. Removed assert() from DefaultBtContext and throw exception instead.
  12186. * src/DefaultBtContext.cc
  12187. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12188. Fixed segmentation fault bug when exiting if dht is disabled.
  12189. * src/RequestGroup.cc
  12190. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12191. Fixed typo in log message and define the message in message.h
  12192. * src/TimedHaltCommand.cc
  12193. * src/message.h
  12194. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12195. Included RecoverableException.h to fix compilation error.
  12196. * test/DHTMessageFactoryImplTest.cc
  12197. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12198. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  12199. * test/DHTPingMessageTest.cc
  12200. * test/DHTGetPeersMessageTest.cc
  12201. * test/DHTFindNodeMessageTest.cc
  12202. * test/DHTAnnouncePeerMessageTest.cc
  12203. * test/MockDHTMessage.h
  12204. * test/MockDHTMessageFactory.h
  12205. * test/MockDHTMessageDispatcher.h: New class.
  12206. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12207. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  12208. virtual.
  12209. * src/DHTMessageDispatcher.h
  12210. * src/DHTMessageDispatcherImpl.{h, cc}
  12211. * src/DHTSetup.cc
  12212. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12213. Adding handling of DHT error message. Just log error message and
  12214. throw exception.
  12215. * src/DHTMessageFactoryImpl.cc
  12216. * test/DHTMessageFactoryImplTest.cc
  12217. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12218. Added handling of dynamic cast failure.
  12219. * src/DHTNodeLookupTask.cc
  12220. * src/DHTPeerLookupTask.cc
  12221. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12222. Added the ability to stop aria2 itself when given time has passed
  12223. from start. Use --stop option to specify time in minutes.
  12224. When 0 is given, this feature is disabled.
  12225. * src/OptionHandlerFactory.cc
  12226. * src/TimeBasedCommand.h: Make _interval protected scope.
  12227. * src/HelpItemFactory.cc
  12228. * src/option_processing.cc
  12229. * src/prefs.h
  12230. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  12231. before calling RequestGroupMan::fillRequestGroupFromReserver().
  12232. Without this modification, the result list shows "ERR" when aria2 is
  12233. stopped by --stop option. It should be "INPR".
  12234. * src/DownloadEngine.{h, cc}
  12235. * src/DownloadEngineFactory.cc
  12236. * src/usage_text.h
  12237. * src/TimedHaltCommand.{h, cc}: New class.
  12238. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12239. Bootstrap through node added by port message.
  12240. Currently bootstrap is executed if the number of buckets in routing
  12241. table is 1.
  12242. * src/BtPortMessage.{h, cc}
  12243. * src/DefaultBtMessageFactory.{h, cc}
  12244. * src/PeerInteractionCommand.cc
  12245. * test/BtPortMessageTest.cc
  12246. * test/MockDHTTask.h
  12247. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12248. Extract the Peer class's member variables, which are only needed after
  12249. PeerInteractionCommand, into PeerSessionResource class.
  12250. This class is instantiated in PeerInteractionCommand class's ctor and
  12251. released in its dtor.
  12252. This will make Peer class lightweight and uses less memory for peers
  12253. which are not connected and wait in the queue.
  12254. * src/PeerChokeCommand.cc
  12255. * src/PeerSessionResource.{h, cc}
  12256. * src/PeerInteractionCommand.cc
  12257. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  12258. * src/DefaultBtInteractive.cc
  12259. * src/BtPieceMessage.cc
  12260. * src/BtInterestedMessage.cc
  12261. * src/BtUnchokeMessage.cc
  12262. * src/DefaultPeerStorage.{h, cc}
  12263. * src/PeerInitiateConnectionCommand.cc
  12264. * src/ActivePeerConnectionCommand.cc
  12265. * src/BtNotInterestedMessage.cc
  12266. * src/DefaultBtMessageDispatcher.cc
  12267. * src/BtChokeMessage.cc
  12268. * src/BtRequestMessage.cc
  12269. * src/Peer.{h, cc}
  12270. * src/BtRegistry.h
  12271. * src/TrackerWatcherCommand.cc
  12272. * src/PeerReceiveHandshakeCommand.cc
  12273. * test/BtExtendedMessageTest.cc
  12274. * test/BtAllowedFastMessageTest.cc
  12275. * test/BtCancelMessageTest.cc
  12276. * test/DefaultPieceStorageTest.cc
  12277. * test/BtBitfieldMessageTest.cc
  12278. * test/BtHaveMessageTest.cc
  12279. * test/BtNotInterestedMessageTest.cc
  12280. * test/BtRequestMessageTest.cc
  12281. * test/PeerSessionResourceTest.cc
  12282. * test/DefaultBtMessageDispatcherTest.cc
  12283. * test/PeerTest.cc
  12284. * test/BtInterestedMessageTest.cc
  12285. * test/BtRejectMessageTest.cc
  12286. * test/BtChokeMessageTest.cc
  12287. * test/DefaultPeerStorageTest.cc
  12288. * test/BtHaveNoneMessageTest.cc
  12289. * test/BtHaveAllMessageTest.cc
  12290. * test/DefaultExtensionMessageFactoryTest.cc
  12291. * test/BtUnchokeMessageTest.cc
  12292. * test/DefaultBtMessageFactoryTest.cc
  12293. * test/HandshakeExtensionMessageTest.cc
  12294. * test/UTPexExtensionMessageTest.cc
  12295. * test/DefaultBtRequestFactoryTest.cc
  12296. * test/BtPieceMessageTest.cc
  12297. Removed typedef PeerStats.
  12298. * src/PeerStat.h
  12299. * src/SegmentMan.cc
  12300. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12301. Added std namespace to copy, remove_copy, back_inserter,
  12302. front_inserter.
  12303. * src/RequestGroupMan.cc
  12304. * src/DefaultPieceStorage.cc
  12305. * src/StreamFileAllocationEntry.cc
  12306. * src/BtFileAllocationEntry.cc
  12307. * src/RequestGroup.cc
  12308. * src/MetalinkEntry.cc
  12309. * src/DelegatingPeerListProcessor.cc
  12310. * src/DefaultBtRequestFactory.cc
  12311. * src/DefaultBtMessageDispatcher.cc
  12312. * src/version_usage.cc: Included <algorithm>
  12313. * src/main.cc
  12314. * src/MetalinkParserController.cc
  12315. * src/DefaultBtContext.cc
  12316. * src/DownloadEngineFactory.cc
  12317. * src/a2algo.h
  12318. Removed.
  12319. * test/StreamUriListParserTest.cc
  12320. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12321. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  12322. ActivePeerConnectionCommand when it is given and
  12323. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  12324. * src/ActivePeerConnectionCommand.{h, cc}
  12325. * src/BtSetup.cc
  12326. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12327. Only add socket to DownloadEngine's select routine when peer or
  12328. localhost is unchoked and interested. This lowers CPU usage a
  12329. little bit.
  12330. * src/PeerInteractionCommand.cc
  12331. * src/PeerAbstractCommand.{h, cc}
  12332. * src/BtInteractive.h
  12333. * src/DefaultBtInteractive.{h, cc}
  12334. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12335. Revert previous change because get_peers message is needed for
  12336. announce_peer anyway.
  12337. * src/DHTGetPeersCommand.cc
  12338. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12339. Request peers thought DHT only when download hasn't finished.
  12340. * src/DHTGetPeersCommand.cc
  12341. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12342. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  12343. * src/DHTBucketRefreshTask.{h, cc}
  12344. * src/DHTSetup.cc
  12345. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12346. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  12347. standard classes.
  12348. Included string.h where mem* function are used.
  12349. Added namespace aria2.
  12350. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12351. Create directory before saving DHT routing table.
  12352. Now ios::failure is now handled properly.
  12353. * src/DHTAutoSaveCommand.cc
  12354. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12355. Removed unnecessary cerr.
  12356. * src/DownloadEngine.cc
  12357. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12358. Catch exception inside DHTMessageReceiver::receiveMessage().
  12359. Log unknown message.
  12360. * src/DHTMessageReceiver.{h, cc}
  12361. * src/DHTMessageFactory.h
  12362. * src/DHTMessageFactoryImpl.{h, cc}
  12363. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  12364. * src/DHTInteractionCommand.cc
  12365. * src/DHTUnknownMessage.{h, cc}
  12366. * test/DHTUnknownMessageTest.cc
  12367. * test/MockDHTMessageFactory.h
  12368. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12369. Commented out ip address comparison because a host can have multiple
  12370. ip addresses and it is hard to predict the hostname is resolved into
  12371. which one.
  12372. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  12373. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12374. * po/Makefile.in: Removed since this is generated by configure.
  12375. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12376. Fixed compiler warning about redefinition of SIZE_MAX.
  12377. Use common.h instead of config.h directly here.
  12378. * src/Platform.{h, cc}
  12379. The check of ENABLE_NLS is made in gettext.h, so it is not required
  12380. here.
  12381. * common.h
  12382. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  12383. Updated gettext related files.
  12384. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  12385. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  12386. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12387. Added DHT functionality, compatible with mainline.
  12388. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  12389. You may need to specify entry point to DHT network using
  12390. --dht-entry-point. DHT uses UDP port to listen incoming message.
  12391. Use --dht-listen-port to specify port number. Make sure that your
  12392. firewall configuration can pass through UDP traffic to the port.
  12393. The routing table is saved in $HOME/.aria2/dht.dat.
  12394. * src/DHT*
  12395. * src/BNode.{h, cc}
  12396. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  12397. particular torrent.
  12398. * src/Data.cc: Rewritten ctor.
  12399. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  12400. --dht-entry-point.
  12401. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  12402. * src/RequestGroup.cc: Initialize DHT functionality. When download
  12403. ends, remove BtContext from DHTPeerAnnounceStorage.
  12404. * src/BtPortMessage.{h, cc}: Rewritten.
  12405. * src/message.h
  12406. * src/OptionHandlerImpl.cc
  12407. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  12408. --dht-entry-point.
  12409. * src/Dictionary.{h, cc} (remove): New function.
  12410. * src/prefs.h
  12411. * src/DefaultBtMessageFactory.h
  12412. * src/BtHandshakeMessage.cc
  12413. * src/ActivePeerConnectionCommand.cc
  12414. * src/SocketCore.{h, cc}: Added datagram socket support.
  12415. * src/DefaultBtMessageFactory.cc
  12416. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  12417. Create DHT commands.
  12418. * src/BtMessageFactory.h
  12419. * src/PeerMessageUtil.{h, cc}
  12420. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12421. Fixed the bug that log file is not written when configuration file doesn't exist.
  12422. This is caused by using Logger class before LogFactory is not configured.
  12423. BUG #1875079
  12424. * src/option_processing.cc
  12425. Warning message "configuration doesn't exist" is only printed when --conf is
  12426. given.
  12427. * src/option_processing.cc
  12428. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12429. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  12430. ShaVisitor is now deprecated and slated to be removed.
  12431. * src/DefaultBtContext.cc
  12432. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12433. Externalize message to message.h
  12434. * src/Platform.cc
  12435. * src/message.h
  12436. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12437. Set default domain and default path to cookie.
  12438. * src/HttpResponse.cc
  12439. * src/CookieBox.{h, cc}
  12440. * src/CookieParser.{h, cc}
  12441. * test/CookieParserTest.cc
  12442. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12443. Added --no-conf and --conf-path command-line option.
  12444. --no-conf option disables loading aria2.conf file.
  12445. --conf-path option changes the configuration file path. The default
  12446. file path is $HOME/.aria2/aria2.conf
  12447. Added a warning message when the configuration file is not found.
  12448. * src/HelpItemFactory.cc
  12449. * src/option_processing.cc
  12450. * src/prefs.h
  12451. * src/usage_text.h
  12452. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12453. Added the message to inform users that other help categories are
  12454. available in -h option.
  12455. * src/version_usage.cc
  12456. * src/TagContainer.{h, cc}
  12457. * test/TagContainerTest.cc
  12458. * src/TaggedItem.{h, cc}
  12459. * test/TaggedItemTest.cc
  12460. * src/HelpItem.h
  12461. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12462. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  12463. from PiecedSegment's ctor.
  12464. Previously Piece::getAllMissingBlockIndexes() is called from
  12465. PiecedSegment() but it is rather expensive since only first element is
  12466. used.
  12467. * src/PiecedSegment.cc
  12468. * src/Piece.{h, cc}
  12469. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12470. Rewritten get*Missing*Index functions. Now no need to allocate memory
  12471. each time these functions are called.
  12472. * src/BitfieldMan.{h, cc}
  12473. * test/BitfieldManTest.cc
  12474. * src/array_fun.h
  12475. * test/array_funTest.cc
  12476. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  12477. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  12478. filtered. Removed unnecessary cast to int32_t.
  12479. * src/BitfieldMan.{h, cc}
  12480. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12481. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  12482. payload length(4bytes) are received. This happens because lenbufLength
  12483. is not updated in this particular case and successive call of
  12484. receiveMessage() overwrites payload length with bytes recieved which
  12485. are payload body.
  12486. * src/PeerConnection.{h, cc}
  12487. * src/message.h
  12488. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12489. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  12490. peer if there are peers that have same ipaddr and port.
  12491. I've experiened segmentation fault and "pure virtual function was
  12492. called" error.
  12493. * src/Peer.h
  12494. * test/PeerTest.cc
  12495. * src/DefaultPeerStorage.cc
  12496. * test/DefaultPeerStorageTest.cc
  12497. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12498. Removed a call to isPowerOf() because it is no longer necessary here
  12499. and a request block is not always power of 2.
  12500. BUG#1866924
  12501. * src/PeerMessageUtil.cc (checkLength)
  12502. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12503. Fixed the bug that always first found Segment is removed from
  12504. usedSegmentEntries. Removed unused functions.
  12505. * src/SegmentMan.{h, cc}
  12506. * test/SegmentManTest.cc
  12507. Fixed the bug that ServerHost is not removed.
  12508. * src/RequestGroup.cc
  12509. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12510. Fixed the bug that SegmentMan::completeSegment() is not called
  12511. even if Segment is complete when --lowest-speed-limit is enabled.
  12512. BUG#1864525
  12513. * src/DownloadCommand.{h, cc}
  12514. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12515. Fixed: hash algorithm 'sha1' is always used.
  12516. * src/DownloadCommand.cc (validatePieceHash)
  12517. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12518. Added --enable-peer-exchange command-line option.
  12519. * src/OptionHandlerFactory.cc
  12520. * src/HelpItemFactory.cc
  12521. * src/option_processing.cc
  12522. * src/usage_text.h
  12523. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12524. Move extension from BtRuntime to ExtensionMessageFactory, because
  12525. extension can be specified per peer, not per torrent.
  12526. * src/DefaultBtInteractive.cc
  12527. * src/BtRuntime.h
  12528. * src/ExtendedMessagingAware.h
  12529. * src/ExtensionMessageFactory.h
  12530. * src/DefaultExtensionMessageFactory.cc
  12531. * test/DefaultExtensionMessageFactoryTest.cc
  12532. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12533. Added categorized option help. Specify category using --help option.
  12534. Also added the ability to search options in forward match.
  12535. * src/HelpItem.{h, cc}
  12536. * test/HelpItemTest.cc
  12537. * src/HelpItemFactory.{h, cc}
  12538. * src/TagContainer.{h, cc}
  12539. * test/TagContainerTest.cc
  12540. * src/option_processing.cc
  12541. * src/prefs.h
  12542. * src/TaggedItem.{h, cc}
  12543. * test/TaggedItemTest.cc
  12544. * src/version_usage.cc
  12545. * src/help_tags.h
  12546. * src/usage_text.h
  12547. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12548. Fixed segmentation fault when bad torrent metainfo is parsed.
  12549. Added dynamic_cast properly to detect the misconfiguration of metainfo
  12550. and then throw exception or skip it.
  12551. * src/DefaultBtContext.{h, cc}
  12552. * test/DefaultBtContextTest.cc
  12553. * src/AnnounceList.cc
  12554. * src/CompactPeerListProcessor.cc
  12555. * src/message.h
  12556. * src/DefaultBtAnnounce.{h, cc}
  12557. * test/DefaultBtAnnounceTest.cc
  12558. * src/BencodeVisitor.cc
  12559. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12560. Added missing "B"(=Byte). So now the message looks like this:
  12561. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  12562. * src/message.h (MSG_SHARE_RATIO_REPORT)
  12563. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12564. Show the seed ratio after torrent downloads.
  12565. For example, after torrent download completed and --seed-time and
  12566. --seed-ratio conditions are fulfilled, following message is printed
  12567. right after "Download complete: .....":
  12568. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  12569. * src/RequestGroupMan.cc
  12570. * src/RequestGroup.{h, cc}
  12571. * src/message.h
  12572. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12573. Remove a defunct control file. A defunct control file means that while
  12574. it exists, but the corresponding download file is missing.
  12575. After its removal, a download restarts from the beginning.
  12576. * src/RequestGroup.cc
  12577. * src/message.h
  12578. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12579. Allocate bitfield in Peer when it is really used. More specifically,
  12580. bitfield in Peer is allocated after the connection is established and
  12581. deallocated when the connection is dropped.
  12582. Since 2 parameters(piece length and total length) was removed from the
  12583. constructor of Peer class, many test classes were modified accordingly.
  12584. See svn log for more detailed information.
  12585. * src/PeerInteractionCommand.cc
  12586. * src/CompactPeerListProcessor.cc
  12587. * src/Peer.cc
  12588. * src/DefaultPeerListProcessor.cc
  12589. * src/PeerListenCommand.cc
  12590. * src/PeerReceiveHandshakeCommand.cc
  12591. Fixed memory leak
  12592. * src/Piece.cc
  12593. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12594. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  12595. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  12596. command-line options.
  12597. * src/option_processing.cc
  12598. * src/ActivePeerConnectionCommand.cc
  12599. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12600. Send have message to peer if it already has the piece.
  12601. * src/BtHaveMessage.{h, cc}
  12602. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12603. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  12604. port.
  12605. * src/DefaultPeerStorage.{h, cc}
  12606. * test/DefaultPeerStorageTest.cc
  12607. * src/HandshakeExtensionMessage.cc
  12608. * test/HandshakeExtensionMessageTest.cc
  12609. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  12610. * src/PeerStorage.h
  12611. * test/MockPeerStorage.h
  12612. * src/PeerListenCommand.cc
  12613. * src/PeerReceiveHandshakeCommand.cc
  12614. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12615. Added --metalink-enable-unique-protocol option.
  12616. * src/Metalink2RequestGroup.cc
  12617. * src/option_processing.cc
  12618. * src/prefs.h
  12619. * src/version_usage.cc
  12620. * doc/aria2c.1.txt
  12621. * doc/aria2c.1
  12622. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12623. Allow a peer in incomingPeer to be added peers.
  12624. * src/DefaultPeerStorage.cc
  12625. * test/DefaultPeerStorageTest.cc
  12626. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12627. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  12628. I could reproduce this bug in following procedure:
  12629. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  12630. 2. Restart aria2.
  12631. 3. You see the download stopped around 99%.
  12632. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12633. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  12634. If timeout is reached, then _nextCommand is unused and it may contains
  12635. segments and they won't be canceled. Actually, timeout is not needed
  12636. here because if the server dropped connection, then retry is made.
  12637. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12638. Added uTorrent compatible Peer Exchange.
  12639. * src/BencodeVisitor.{h, cc}
  12640. * test/BencodeVisitorTest.cc
  12641. * src/BtConstants.h
  12642. * src/BtContext.h: Added 'private' flag.
  12643. * src/BtExtendedMessage.{h, cc}
  12644. * test/BtExtendedMessageTest.cc
  12645. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  12646. reserved field.
  12647. * test/BtHandshakeMessageTest.cc
  12648. * src/BtMessageFactory.h
  12649. * src/BtRegistry.h
  12650. * src/BtRuntime.h: This class holds default extension message IDs for
  12651. aria2. By default, aria2 uses ID 8 for ut_pex.
  12652. * src/DefaultBtContext.cc
  12653. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  12654. When it is true, aria2 enables ut_pex. This value is set by
  12655. PeerInteractionCommand.
  12656. * src/DefaultBtMessageFactory.{h, cc}
  12657. * test/DefaultBtMessageFactoryTest.cc
  12658. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  12659. handling to DefaultBtInteractive class.
  12660. * src/DefaultExtensionMessageFactory.{h, cc}
  12661. * test/DefaultExtensionMessageFactoryTest.cc
  12662. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  12663. the container(peers and incomingPeers. The equality is determined by
  12664. Peer::id).
  12665. * test/DefaultPeerStorageTest.cc
  12666. * src/ExtensionMessage.h
  12667. * test/MockExtensionMessage.h
  12668. * src/ExtensionMessageFactory.h
  12669. * test/MockExtensionMessageFactory.h
  12670. * src/HandshakeExtensionMessage.{h, cc}
  12671. * test/HandshakeExtensionMessageTest.cc
  12672. * src/MetaEntry.h
  12673. * src/Peer.{h, cc}
  12674. * src/PeerInteractionCommand.cc
  12675. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  12676. addIncomingPeer.
  12677. * src/PeerMessageUtil.{h, cc}
  12678. * src/PeerObject.h
  12679. * src/UTPexExtensionMessage.{h, cc}
  12680. * test/UTPexExtensionMessageTest.cc
  12681. * src/message.h
  12682. * src/prefs.h
  12683. Fixed the bug that returns incomplete data when it contains null
  12684. character. A convenient constructor was also added.
  12685. * src/Data.{h, cc}
  12686. Rewritten.
  12687. * src/CompactPeerListProcessor.cc
  12688. Fixed typos.
  12689. * src/message.h
  12690. * src/MetaFileUtil.cc
  12691. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12692. Added "Status Legend" label to the explanation text of 'stat' in
  12693. download result and moved it to the last. BUG#1848214
  12694. * src/RequestGroupMan.cc
  12695. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12696. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12697. * src/Makefie.am
  12698. * test/Makefile.am
  12699. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12700. Fixed the bug that prevents aria2 from loading cookie file when expire
  12701. value is greater than 2^31-1. BUG#1851066
  12702. * src/CookieBoxFactory.cc
  12703. * test/CookieBoxFactoryTest.cc
  12704. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12705. Fixed possible memory leak when an exception is thrown.
  12706. * src/XML2SAXMetalinkProcessor.cc
  12707. Added Expat support. If both libxml2 and Expat are installed, then
  12708. libxml2 is used by default.
  12709. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12710. ExpatMetalinkProcessor according to the configuration.
  12711. * src/ExpatMetalinkProcessor.{h, cc}
  12712. * src/main.cc: Removed libxml2 specific header and init/free function.
  12713. * src/MetalinkProcessorFactory.{h, cc}
  12714. * src/MetalinkHelper.cc
  12715. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12716. * src/MetalinkProcessor.h
  12717. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12718. MetalinkProcessorTest is used instead.
  12719. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12720. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12721. MetalinkProcessorFactory::newInstance().
  12722. * m4/libexpat.m4
  12723. * configure.ac: Added configuration options for libexpat.
  12724. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12725. Disabled -s option in metalink download.
  12726. * src/Metalink2RequestGroup.cc
  12727. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12728. If several protocols are available for a mirror in metalink file,
  12729. aria2 now use one of them. --metalink-preferred-protocol option was
  12730. added to specify the preference of protocol.
  12731. * src/AbstractCommand.cc
  12732. * src/OptionHandlerFactory.cc
  12733. * src/ServerHost.{h, cc}
  12734. * src/Metalink2RequestGroup.cc
  12735. * src/RequestGroup.{h, cc}
  12736. * test/RequestGroupTest.cc
  12737. * src/option_processing.cc
  12738. * src/prefs.h
  12739. * src/HttpResponseCommand.cc
  12740. * src/MetalinkResource.{h, cc}
  12741. * src/FtpNegotiationCommand.cc
  12742. * src/MetalinkEntry.{h, cc}
  12743. * src/MetalinkEntryTest.cc
  12744. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12745. Code cleanup and added debug log.
  12746. * src/PeerConnection.cc
  12747. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12748. Compiler error fix: applied the patch by Tiziano Mueller
  12749. * src/RequestGroup.cc
  12750. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12751. Fixed the bug: only first announce URL is tried in AnnounceTier,
  12752. in stopped and completed event.
  12753. * src/AnnounceList.{h, cc}
  12754. * test/AnnounceListTest.cc
  12755. * src/DefaultBtAnnounce.cc
  12756. * test/DefaultBtAnnounceTest.cc
  12757. Sorted URLs.
  12758. * test/Metalink2RequestGroupTest.cc
  12759. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12760. Removed unnecessary string copy. Updated doc and corrected indentation.
  12761. * src/Base64.cc
  12762. Fixed compilation warnings
  12763. * test/DataTest.cc
  12764. * test/HttpRequestTest.cc
  12765. * test/MetaFileUtilTest.cc
  12766. * test/RequestTest.cc
  12767. * Release 0.12.0
  12768. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12769. Updated translations
  12770. * po/{de,fr,ja,nl,ru}.po
  12771. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  12772. translations. Many thanks to translators.
  12773. * po/{ca,es,it,pt_BR,sv}.po
  12774. * po/LINGUAS
  12775. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12776. Added a notice about URL
  12777. * src/version_usage.cc
  12778. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  12779. Fixed the bug#1845750; CTRL+C does not stop torrent.
  12780. aria2 repeatedly sends stopped request when tracker returns error code.
  12781. * src/AnnounceList.cc
  12782. * test/AnnounceListTest.cc
  12783. * src/AnnounceTier.h
  12784. Added a message when ctrl-c is hit.
  12785. Now second ctrl-c is also handled in signal handler.
  12786. * src/RequestGroupMan.{h, cc}
  12787. * src/RequestGroup.{h, cc}
  12788. * src/MultiUrlRequestInfo.cc
  12789. * src/DownloadEngine.cc
  12790. * src/TrackerWatcherCommand.cc
  12791. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12792. Code cleanup
  12793. * src/Base64.cc (encode)
  12794. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12795. Changed Direct/IO enable/disable procesure in file allocation routine.
  12796. * src/SingleFileAllocationIterator.cc
  12797. (SingleFileAllocationIterator):
  12798. Disable directIO if offset is not multiple of 512.
  12799. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  12800. * src/MultiFileAllocationIterator.cc (allocateChunk):
  12801. Enable created SingleFileAllocationIterator's directIO.
  12802. * src/FileAllocationEntry.cc
  12803. (FileAllocationEntry): Enable directIO here.
  12804. (~FileAllocationEntry): Disable directIO here.
  12805. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12806. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  12807. * src/Peer.{h, cc}
  12808. * src/DefaultPieceStorage.cc
  12809. * test/DefaultPieceStorageTest.cc
  12810. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12811. Rewritten direct I/O support routine
  12812. * src/SingleFileAllocationIterator.cc
  12813. * src/MultiDiskAdaptor.{h, cc}
  12814. * src/ByteArrayDiskWriter.h
  12815. * src/AbstractSingleDiskAdaptor.h
  12816. * src/AbstractDiskWriter.cc
  12817. * src/DefaultPieceStorage.cc
  12818. * src/DiskWriter.h
  12819. * src/BinaryStream.h
  12820. * src/IteratableChunkChecksumValidator.cc
  12821. * src/IteratableChecksumValidator.cc
  12822. * src/CheckIntegrityEntry.cc
  12823. * src/FileAllocationEntry.cc
  12824. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12825. Fixed typo
  12826. * src/version_usage.cc
  12827. Updated doc
  12828. * doc/aria2c.1.txt
  12829. * doc/aria2c.1
  12830. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12831. Fixed compile error without message digest support.
  12832. * src/FileMetalinkParserState.cc
  12833. * src/MetalinkParserController.{h, cc}
  12834. * test/XML2SAXMetalinkProcessorTest.cc
  12835. * test/MetalinkParserControllerTest.cc
  12836. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12837. Enable direct I/O support in checksum checking.
  12838. * src/IteratableChunkChecksumValidator.{h, cc}
  12839. * test/IteratableChunkChecksumValidatorTest.cc
  12840. * src/CheckIntegrityEntry.cc
  12841. * src/PieceHashCheckIntegrityEntry.cc
  12842. * src/IteratableChecksumValidator.{h, cc}
  12843. * src/BtCheckIntegrityEntry.cc: Added doc.
  12844. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12845. Added --allow-piece-length-change option.
  12846. * src/DefaultBtProgressInfoFile.cc
  12847. * test/DefaultBtProgressInfoFileTest.cc
  12848. * src/OptionHandlerFactory.cc
  12849. * src/option_processing.cc
  12850. * src/prefs.h
  12851. * src/version_usage.cc
  12852. * doc/aria2c.1.txt
  12853. * doc/aria2c.1
  12854. Fixed: duplicated result entry appears when exception is thrown in
  12855. RequestGroup::createInitiateConnectionCommand().
  12856. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12857. Add RequestGroup to _requestGroup after RequetGroup::
  12858. createInitiateConnectionCommand() succeeds.
  12859. Externalized message
  12860. * src/XML2SAXMetalinkProcessor.cc
  12861. * src/message.h
  12862. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12863. Forced download abort when received negative response from http/ftp
  12864. server.
  12865. * src/HttpResponseCommand.cc
  12866. * src/FtpNegotiationCommand.cc
  12867. * src/HttpResponse.cc
  12868. * src/FtpConnection.cc
  12869. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12870. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12871. the predecessor, Xml2MetalinkParser class.
  12872. I tested them against 94KB metalink file with 1234 chunk checksums.
  12873. The new one parsed it in 22msec, while it took 6000msec with old one.
  12874. * src/XML2SAXMetalinkProcessor.{h, cc}
  12875. * test/XML2SAXMetalinkProcessorTest.cc
  12876. * src/MetalinkParserController.{h, cc}
  12877. * test/MetalinkParserControllerTest.cc
  12878. * src/MetalinkParserState.h: Also added 16 subclasses.
  12879. * src/main.cc
  12880. * src/Metalink2RequestGroup.cc
  12881. * src/MetalinkHelper.cc
  12882. * src/MetalinkEntry.cc
  12883. * src/ChunkChecksum.h
  12884. Rewritten Base64 class for better performance.
  12885. * src/Base64.{h, cc}
  12886. * test/Base64Test.cc
  12887. * src/HttpRequest.cc
  12888. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12889. Fixed the bug#1841757: aria2 will connect to server to only get
  12890. file size.
  12891. * src/StreamFileAllocationEntry.cc
  12892. * src/option_processing.cc
  12893. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12894. downloads.
  12895. * src/FtpNegotiationCommand.cc
  12896. Suppressed wrong message when finding PreDownloadHandler
  12897. * src/RequestGroup.cc
  12898. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12899. Updated usage
  12900. * src/version_usage.cc
  12901. Updated man page
  12902. * doc/aria2c.1.txt
  12903. * doc/aria2c.1
  12904. Updated po files
  12905. * po/aria2c.pot
  12906. * po/*.po
  12907. * po/*.gmo
  12908. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12909. Eliminated g++-4.2 warning
  12910. * src/DownloadHandlerConstants.{h, cc}
  12911. * src/Util.cc
  12912. * test/MetaFileUtilTest.cc
  12913. * test/PStringBuildVisitorTest.cc
  12914. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12915. * src/RequestGroup.cc
  12916. * src/BtCheckIntegrityEntry.cc
  12917. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12918. Fixed a2io.h
  12919. * src/a2io.h
  12920. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12921. Added direct I/O support. The current implementation uses O_DIRECT,
  12922. which is not posix standard and is tested on linux 2.6.21.
  12923. Currently only file allocation uses direct I/O.
  12924. * src/SingleFileAllocationIterator.{h, cc}
  12925. * test/SingleFileAllocationIteratorTest.cc
  12926. * src/MultiFileAllocationIterator.{h, cc}
  12927. * test/MultiFileAllocationIteratorTest.cc
  12928. * src/BinaryStream.h
  12929. * src/DiskWriter.h
  12930. * src/AbstractDiskWriter.{h, cc}
  12931. * src/ByteArrayDiskWriter.h
  12932. * src/DiskAdaptor.h
  12933. * src/AbstractSingleDiskAdaptor.{h, cc}
  12934. * src/MultiDiskAdaptor.{h, cc}
  12935. * src/FileAllocationEntry.cc
  12936. * src/Util.{h, cc}
  12937. * src/OptionHandlerFactory.cc
  12938. * src/prefs.h
  12939. * src/version_usage.cc
  12940. * src/option_processing.cc
  12941. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12942. handleException.
  12943. * src/MultiFileAllocationIterator.cc
  12944. Added EINTR handling
  12945. * src/SocketCore.cc
  12946. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12947. Updated usage
  12948. * src/version_usage.cc
  12949. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12950. Applied Ross's patch for MinGW port.
  12951. * src/DownloadEngine.h
  12952. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12953. Set Content-Type to SingleFileDownloadContext when http response is
  12954. received.
  12955. * src/HttpResponseCommand.cc
  12956. * src/HttpResponse.{h, cc}
  12957. * test/HttpResponseTest.cc
  12958. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12959. Rewritten to add content-type support.
  12960. * src/DownloadHandler.{h, cc}
  12961. * src/BtPostDownloadHandler.{h, cc}
  12962. * test/BtPostDownloadHandlerTest.cc
  12963. * src/MetalinkPostDownloadHandler.{h, cc}
  12964. * test/MetalinkPostDownloadHandlerTest.cc
  12965. * src/PostDownloadHandler.{h, cc}
  12966. * src/DownloadHandlerConstants.{h, cc}
  12967. * src/RequestGroup.cc
  12968. * src/HttpResponseCommand.cc
  12969. * src/FtpNegotiationCommand.cc
  12970. * src/SingleFileDownloadContext.{h, cc}
  12971. * src/RequestGroup.h
  12972. * src/RequestGroupCriteria.h
  12973. * src/ContentTypeRequestGroupCriteria.h
  12974. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12975. If it is give, metalink/torrent file is not written to the disk, but
  12976. just is kept in memory. Parsing is occurred on memory.
  12977. * src/MetalinkHelper.{h, cc}
  12978. * src/MetalinkProcessor.h
  12979. * src/Xml2MetalinkProcessor.{h, cc}
  12980. * test/Xml2MetalinkProcessorTest.cc
  12981. * src/DownloadHandlerFactory.{h, cc}
  12982. * test/DownloadHandlerFactoryTest.cc
  12983. * src/PreDownloadHandler.{h, cc}
  12984. * src/OptionHandlerFactory.cc
  12985. * src/DefaultBtContext.{h, cc}
  12986. * test/DefaultBtContextTest.cc
  12987. * src/version_usage.cc
  12988. * src/Metalink2RequestGroup.{h, cc}
  12989. * src/RequestGroup.{h, cc}
  12990. * src/a2functional.h
  12991. * test/a2functionalTest.cc
  12992. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12993. * src/OptionHandlerImpl.h
  12994. * src/prefs.h
  12995. * src/Util.{h, cc}
  12996. * test/UtilTest.cc
  12997. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12998. memory usage.
  12999. * src/RequestGroupMan.{h, cc}
  13000. * src/DownloadEngine.cc
  13001. * src/BtDependency.{h, cc}: Changed the type of dependee from
  13002. WeakHandle to SharedHandle because WeakHandle could be null.
  13003. * src/RequestGroup.{h, cc}
  13004. * src/DownloadEngineFactory.cc
  13005. * src/DownloadResult.h
  13006. Set totalLength after download finished
  13007. * src/UnknownLengthPieceStorage.{h, cc}
  13008. Keep torrent file specified in metalink in memory.
  13009. * src/Metalink2RequestGroup.cc
  13010. * src/BtDependency.cc
  13011. * src/TrueRequestGroupCriteria.h
  13012. Fixed the bug: seekg is used where seekp should be used.
  13013. * src/ByteArrayDiskWriter.cc
  13014. * test/ByteArraydiskWriterTest.cc
  13015. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13016. Fixed syntax error
  13017. * test/SequenceTest.cc
  13018. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13019. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  13020. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  13021. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  13022. * src/RequestGroup.cc (downloadFinishedByFileLength)
  13023. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13024. Added the check to see whether ares_host_callback accepts timeouts
  13025. with c-ares; only c-ares 1.5.0 or newer accepts it.
  13026. * src/NameResolver.{h, cc}
  13027. * m4/libcares.m4
  13028. * configure.ac: Set C++ for language choice.
  13029. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13030. Fixed: compilation fails without c-ares/ares
  13031. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  13032. Generate http/ftp commands only when download is incomplete.
  13033. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  13034. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13035. Corrected typo. Examples are removed since they are available in man
  13036. page.
  13037. * src/version_usage.cc
  13038. Updated man page.
  13039. * doc/aria2c.1
  13040. * doc/aria2c.1.txt
  13041. * doc/makeman: Commented out sed command.
  13042. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13043. Throw DlAbortEx when a remote file is not found.
  13044. * src/HttpResponse.cc
  13045. * src/FtpNegotiationCommand.cc
  13046. * src/message.h
  13047. Overwrite an existing file if --allow-overwrite=true is given.
  13048. * src/RequestGroup.cc
  13049. Removed unused functions
  13050. * src/AbstractCommand.h
  13051. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13052. Removed 'extern' from 'extern typedef ...' in src/*.h
  13053. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13054. Updated usage
  13055. * src/version_usage.cc
  13056. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13057. Trim announce URL
  13058. * src/DefaultBtContext.cc
  13059. * test/ShaVisitorTest.cc
  13060. Trim argument s. Give trimed s to exception constructor.
  13061. * src/Util.cc (parseInt)(parseLLInt)
  13062. * test/UtilTest.cc
  13063. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13064. Set precision back to 1.
  13065. * src/ConsoleStatCalc.cc (calculateStat)
  13066. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13067. Replaced strtol with Util::parseInt
  13068. * src/ChunkedEncoding.cc
  13069. * src/HttpConnection.cc
  13070. * src/CookieBoxFactory.cc
  13071. * src/ParameterizedStringParser.cc
  13072. * src/Util.cc
  13073. * test/UtilTest.cc
  13074. * test/OptionHandlerTest.cc
  13075. * src/Request.cc
  13076. Throw exception when empty string is given. The message for exception
  13077. changed.
  13078. * src/Util.cc (parseInt)(parseLLInt)
  13079. * src/message.h
  13080. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13081. Set precision to 2 because share ratio is rounded into 1.0 if precision
  13082. set to 1.
  13083. * src/ConsoleStatCalc.cc (calculateStat)
  13084. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13085. Preallocate non-requested file which is adjacent forward to requested
  13086. file('requested' files means the files given in --select-file option)
  13087. if they share a same piece.
  13088. This fixes long pause in the file system which doesn't support sparse
  13089. files like FAT32 while downloading.
  13090. * src/MultiFileAllocationIterator.{h, cc}
  13091. * test/MultiFileAllocationIteratorTest.cc
  13092. * src/FileEntry.{h, cc}
  13093. Removed unused _option.
  13094. * src/MultiDiskAdaptor.h
  13095. * test/MultiDiskAdaptorTest.cc
  13096. * src/DefaultPieceStorage.cc
  13097. Set the default value of --seed-ratio to 1.0.
  13098. If 0.0 is given, then seeding continues regardless of share ratio.
  13099. * src/version_usage.cc
  13100. * src/option_processing.cc
  13101. * src/BtSetup.cc
  13102. * doc/aria2c.1.txt
  13103. * doc/aria2c.1
  13104. Fixed: Selective download is not working in BitTorrent
  13105. * src/RequestGroup.cc
  13106. Introduced Sequence class. Use this instead of Util::unfoldRange()
  13107. * src/PieceStorage.h
  13108. * test/MockPieceStorage.h
  13109. * src/UnknownLengthPieceStorage.h
  13110. * src/DefaultPieceStorage.{h, cc}
  13111. * src/Metalink2RequestGroup.cc
  13112. * src/RequestGroup.cc
  13113. * src/Sequence.h
  13114. * test/SequenceTest.cc
  13115. * src/IntSequence.h
  13116. * src/message.h
  13117. * src/Util.{h, cc}
  13118. * test/UtilTest.cc
  13119. Added new function 'parse' to catch exception thrown by subclass's
  13120. parseArg
  13121. * src/OptionHandler.h
  13122. * src/OptionParser.cc
  13123. * src/NameMatchOptionHandler.h
  13124. * src/OptionHandlerImpl.h
  13125. * test/OptionHandlerTest.cc
  13126. Added IntegerRangeOptionHandler. Used for --listen-port and
  13127. --select-file. Now --listen-port accepts range of port.
  13128. * src/OptionHandlerFactory.cc
  13129. * src/version_usage.cc
  13130. * src/OptionHandlerImpl.h
  13131. * src/option_processing.cc
  13132. * src/BtSetup.cc
  13133. * src/PeerListenCommand.{h, cc}
  13134. * doc/aria2c.1.txt
  13135. * doc/aria2c.1
  13136. Implemented operator< for Exception class to provide easy way to print
  13137. exception stack trace.
  13138. * src/Exception.{h, cc}
  13139. * src/main.cc
  13140. * src/option_processing.cc
  13141. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13142. * src/version_usage.cc
  13143. (showVersion): Reworked.
  13144. (showUsage): Added examples.
  13145. Removed Hint for total length and file name.
  13146. * src/Metalink2RequestGroup.cc
  13147. * src/RequestGroup.{h, cc}
  13148. * src/HttpResponseCommand.cc
  13149. * src/FtpNegotiationCommand.cc
  13150. Now --follow-torrent and --follow-metalink option work properly.
  13151. * src/RequestGroup.cc
  13152. Updated man page
  13153. * doc/aria2c.1.txt
  13154. * doc/aria2c.1
  13155. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13156. Removed.
  13157. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  13158. Use Segment::operator==()
  13159. * src/HttpConnection.cc
  13160. * src/Segment.h
  13161. Updated usage
  13162. * src/version_usage.cc
  13163. Added EINTR treatment.
  13164. * src/SocketCore.cc
  13165. * src/AbstractDiskWriter.cc
  13166. Rewritten.
  13167. * src/Util.cc (rangedFileCopy)
  13168. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13169. Fixed typo.
  13170. * src/version_usage.cc
  13171. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13172. Implemented. Now -c option works fine.
  13173. * src/DefaultPieceStorage.cc (markPiecesDone)
  13174. * test/DefaultPieceStorageTest.cc
  13175. Removed.
  13176. * src/SegmentMan.{h, cc}
  13177. (markAllPiecesDone)
  13178. (markPieceDone)
  13179. Synchronized po files with
  13180. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  13181. * src/fr.po
  13182. * src/ru.po
  13183. * src/de.po
  13184. * src/ja.po
  13185. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13186. Added ifdef and some modifications to compile without BitTorrent,
  13187. Metalink, MessageDigest
  13188. support.
  13189. * src/PieceHashCheckIntegrityEntry.cc
  13190. * src/MetalinkEntry.h
  13191. * src/version_usage.cc
  13192. * src/main.cc
  13193. * src/DownloadEngine.{h, cc}
  13194. * src/Metalink2RequestGroup.cc
  13195. * src/Peer.cc
  13196. * src/RequestGroup.cc
  13197. * src/MetalinkHelper.cc
  13198. * test/DefaultPieceStorageTest.cc
  13199. * test/MetalinkPostDownloadHandlerTest.cc
  13200. * test/Metalink2RequestGroupTest.cc
  13201. Hide TOTAL SPD when all downloads complete.
  13202. * src/ConsoleStatCalc.cc
  13203. Log target system information.
  13204. * src/main.cc
  13205. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13206. Now --metalink-location accepts a comma-deliminated list of locations.
  13207. * src/MetalinkEntry.{h, cc}
  13208. * test/MetalinkEntryTest.cc
  13209. * src/version_usage.cc
  13210. * src/Metalink2RequestGroup.cc
  13211. * src/Xml2MetalinkProcessor.cc
  13212. * test/Xml2MetalinkProcessorTest.cc
  13213. * doc/aria2c.1.txt
  13214. * doc/aria2c.1
  13215. * src/Util.cc (toUpper)(toLower): Rewritten.
  13216. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13217. Added the ability to detect duplicate download entry which is about to
  13218. download the same file other RequestGroup is downloading.
  13219. * src/RequestGroup.cc
  13220. * src/HttpResponseCommand.cc
  13221. * src/FtpNegotiationCommand.cc
  13222. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13223. Recalculates download progress when loading a control file,
  13224. if the piece length of DownloadContext is different from the one saved
  13225. in the control file. Currently in-flight pieces are ignored.
  13226. * src/DefaultBtProgressInfoFile.cc
  13227. * test/DefaultBtProgressInfoFileTest.cc
  13228. * src/Util.{h, cc}
  13229. * test/UtilTest.cc
  13230. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13231. Do not rotate tiers in announce-list.
  13232. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  13233. AnnounceList::allTiersFailed() used instead to detect whether all
  13234. tiers are tried and failed.
  13235. * test/DefaultBtAnnounceTest.cc
  13236. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  13237. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  13238. * test/AnnounceListTest.cc
  13239. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  13240. clause. Catch RecoverableException instead of DlRetryEx instead.
  13241. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13242. Implemented checksum validation feature(1 checksum for each file)
  13243. The validation takes place after the download.
  13244. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  13245. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  13246. * src/CheckIntegrityCommand.cc: Changed log message.
  13247. * src/Metalink2RequestGroup.cc: Set checksum to
  13248. SingleFileDownloadContext.
  13249. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  13250. PieceHashCheckIntegrity class.
  13251. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  13252. PieceHashCheckIntegrity class.
  13253. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  13254. * src/IteratableValidator.h: New class.
  13255. * src/message.h
  13256. * src/CheckIntegrityEntry.{h, cc}
  13257. * src/IteratableChunkChecksumValidator.{h, cc}
  13258. * src/SingleFileDownloadContext.h
  13259. * src/DownloadCommand.cc
  13260. --allow-overwrite=true is no longer needed to check file integrity
  13261. before download in BitTorrent download.
  13262. * src/RequestGroup.cc (getInitialCommand)
  13263. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  13264. throws exception.
  13265. * src/RequestGroupMan.cc (getInitialCommands)
  13266. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13267. urlencode the given url inside Request::parseUrl(...)
  13268. * src/Request.{h, cc}
  13269. * src/Util.{h, cc}
  13270. * test/RequestTest.cc
  13271. Removed #!metalink3! notation support because it is deleted from
  13272. the metalink specification.
  13273. * src/Request.{h, cc}
  13274. * test/RequestTest.cc
  13275. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13276. Don't connect server before checking file integrity at startup, if
  13277. filesize and output file path are known.
  13278. * src/AbstractCommand.cc
  13279. * src/StreamFileAllocationEntry.cc
  13280. * src/Metalink2RequestGroup.cc
  13281. * src/RequestGroup.{h, cc}
  13282. * src/HttpResponseCommand.cc
  13283. * src/FtpNegotiationCommand.cc
  13284. Added DownloadFailureException. If it is thrown, RequestGroup should
  13285. halt.
  13286. * src/AbstractCommand.cc
  13287. * src/DownloadFailureException.h
  13288. * src/RequestGroup.cc
  13289. Catch RecoverableException, instead of DlAbortEx.
  13290. * src/RequestGroupMan.cc
  13291. * src/FillRequestGroupCommand.cc
  13292. * src/MetaFileUtil.cc
  13293. * src/IteratableChunkChecksumValidator.cc
  13294. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  13295. getGID())
  13296. * src/CheckIntegrityCommand.cc
  13297. * src/message.h
  13298. Print gid instead of idx.
  13299. * src/RequestGroupMan.cc
  13300. Removed exception throwers declaration.
  13301. * src/DirectDiskAdaptor.{h, cc}
  13302. * src/SocketCore.{h, cc}
  13303. * src/MultiDiskAdaptor.{h, cc}
  13304. * src/HttpConnection.{h, cc}
  13305. * src/HttpResponse.{h, cc}
  13306. * src/DiskAdaptor.{h, cc}
  13307. * src/CopyDiskAdaptor.{h, cc}
  13308. * src/MultiDiskAdaptor.{h, cc}
  13309. * src/HttpHeaderProcessor.{h, cc}
  13310. * src/AbstractSingleDiskAdaptor.{h, cc}
  13311. * src/Util.{h, cc}
  13312. * test/UtilTest.cc
  13313. * src/DefaultDiskWriter.{h, cc}
  13314. * src/FtpConnection.{h, cc}
  13315. * src/AbstractDiskWriter.{h, cc}
  13316. Removed duplicate code.
  13317. * src/StreamCheckIntegrityEntry.cc
  13318. Removed unnecessary include.
  13319. * src/DiskWriter.h
  13320. Included Exception.h
  13321. * src/option_processing.cc
  13322. Included 2 files and added doc
  13323. * src/TrackerWatcherCommand.cc
  13324. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  13325. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13326. Changed CheckIntegrityEntry interface so that it can define
  13327. the action when all the chunk checksums are valid.
  13328. * src/CheckIntegrityEntry.h
  13329. * src/StreamCheckIntegrityEntry.{h, cc}
  13330. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  13331. are valid, then aira2 goes to seeding mode. Sometimes it is better
  13332. to exit rather than doing seeding. So, it would be good to toggle this
  13333. behavior.
  13334. * src/CheckIntegrityCommand.cc
  13335. * src/AbstractCommand.cc
  13336. * src/RequestGroup.cc
  13337. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13338. Reflect the download length of in-flight pieces.
  13339. It makes the download length readout more precise.
  13340. * src/DefaultPieceStorage.{h, cc}
  13341. * test/DefaultPieceStorageTest.cc
  13342. * src/a2functional.h
  13343. * test/a2functionalTest.cc
  13344. Lower CPU load when --max-download-limit is used.
  13345. There is up and down in speed indicator when enabling
  13346. http-pipelining but a download goes well. I think the problem is that
  13347. because http-pipelining is enabled, DownloadCommand is created for
  13348. each segment and in its constructor, PeerStat::downloadStart() is
  13349. called. In PeerStat::downloadStart(), speed calculation object is
  13350. reseted, which makes download speed zero.
  13351. * src/DownloadCommand.cc
  13352. Rewritten using accumulate.
  13353. * src/RequestGroupMan.cc (calculateStat)
  13354. Code clearnup.
  13355. * src/FtpNegotiationCommand.cc
  13356. * src/HttpResponseCommand.cc
  13357. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13358. Fixed: Can not resume: aria2 reports download already finished.
  13359. * src/AbstractCommand.{h, cc}
  13360. * src/HttpResponseCommand.cc
  13361. * src/FtpNegotiateCommand.cc
  13362. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13363. Now a file is stored in the directory specified in .metalnk file
  13364. (file[@name]).
  13365. * src/Metalink2RequestGroup.cc
  13366. Create the directory structure when opening the file if it doesn't
  13367. exist.
  13368. * src/AbstractDiskWriter.cc
  13369. * src/Util.{h, cc}
  13370. * src/File.h
  13371. * test/UtilTest.cc
  13372. Removed file name comparison
  13373. * src/Metalink2RequestGroup.cc
  13374. * src/HttpResponseCommand.cc
  13375. Rewritten using Util::mkdirs()
  13376. * src/FileEntry.cc (setupDir)
  13377. * test/FileEntryTest.cc
  13378. Updated doc
  13379. * src/SingleFileDownloadContext.h
  13380. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13381. Now SleepCommand dispatches nextCommand when halt is requested.
  13382. It avoids a possible long wait after hitting CTRL-C.
  13383. * src/SleepCommand.{h, cc}
  13384. * src/RequestGroupAware.{h, cc}
  13385. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13386. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  13387. to open listen port, then remove the port number from the tracker
  13388. request.
  13389. * src/DefaultBtAnnounce.cc
  13390. * test/DefaultBtAnnounceTest.cc
  13391. * test/MockPieceStorage.h
  13392. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  13393. them more testable.
  13394. * src/DefaultBtAnnounce.{h, cc}
  13395. * src/DefaultBtContext.{h, cc}
  13396. * src/Util.{h, cc}
  13397. * test/DefaultBtAnnounceTest.cc
  13398. * test/DefaultBtContextTest.cc
  13399. * test/UtilTest.cc
  13400. Added 'B' to upload bytes readout.
  13401. * src/ConsoleStatCalc.cc
  13402. Now the listen port for BitTorrent download is opened when it is
  13403. needed.
  13404. * src/DownloadEngineFactory.cc
  13405. * src/BtSetup.{h, cc}
  13406. * src/PeerListenCommand.{h, cc}
  13407. Now an exception thrown while parsing tracker response is now logged.
  13408. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  13409. called, which means no retry is made in this case, assuming a tracker
  13410. has a problem.
  13411. * src/TrackerWatcherCommand.cc
  13412. Fixed: downloading a file whose length is unkown fails.
  13413. * src/DownloadCommand.cc
  13414. Simplified prepareForNextSegment()
  13415. * src/DownloadCommand.cc
  13416. Updated
  13417. * po/POTFILES.in
  13418. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13419. Re-implemented a file listing for Metalink, which was dropped while
  13420. http/ftp/torrent integration was being implemented.
  13421. * src/MetalinkHelper.{h, cc}: New class.
  13422. * test/MetalinkHelperTest.cc
  13423. * src/main.cc
  13424. * src/Metalink2RequestGroup.cc
  13425. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13426. Added the ability to display the detailed torrent file information.
  13427. Now -S option gives not only a file listing, but also total download
  13428. length, info hash, announce URI, piece length, the number of pieces,
  13429. and mode(single or multi-torrent).
  13430. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  13431. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  13432. KiB)
  13433. * test/UtilTest.cc
  13434. * src/main.cc
  13435. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13436. Added ftp://USER:PASSWD@Servername automatic parsing.
  13437. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  13438. _password. Recognize username and password in URI.
  13439. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  13440. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  13441. * src/RequestFactory.{h, cc}: Removed.
  13442. * src/AuthConfigFactory.{h, cc}: New class.
  13443. * src/FtpConnection.cc: Use AuthConfigFactory.
  13444. * src/HttpRequest.cc: Use AuthConfigFactory.
  13445. * test/HttpRequestTest.cc: Updated.
  13446. * test/RequestTest.cc: Updated.
  13447. * test/AuthConfigFactoryTest.cc: New class.
  13448. * test/RequestFactoryTest.cc: Removed.
  13449. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13450. Use RequestGroup::allDownloadFinished() to decide whether the control
  13451. file should be removed or saved.
  13452. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  13453. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  13454. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13455. Use File::renameTo()
  13456. * src/DefaultBtProgressInfoFile.cc
  13457. Added --no-file-allocation-limit command-line option.
  13458. * src/version_usage.cc
  13459. * src/option_processing.cc
  13460. * src/OptionHandlerFactory.cc
  13461. * src/RequestGroup.{h, cc}
  13462. * src/BtCheckIntegrityEntry.cc
  13463. * src/StreamCheckIntegrityEntry.cc
  13464. * src/prefs.h
  13465. * doc/aria2c.1.txt
  13466. * doc/aria2c.1
  13467. Now prealloc is the default value for --file-allocation option.
  13468. * src/version_usage.cc
  13469. * src/option_processing.cc
  13470. * doc/aria2c.1.txt
  13471. * doc/aria2c.1
  13472. Don't URL-encode user-agent.
  13473. * src/HttpRequest.cc
  13474. Updated translations
  13475. * po/LINGUAS: Added nl for Dutch translation.
  13476. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  13477. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  13478. * po/POTFILES.in: Updated.
  13479. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13480. Added the ability to recognize url-list in a torrent file.
  13481. The retrieved URLs are attached to the corresponding FileEntry.
  13482. * src/DefaultBtContext.{h, cc}
  13483. * src/FileEntry.{h, cc}
  13484. * test/DefaultBtContextTest.cc
  13485. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13486. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  13487. after the download finishes.
  13488. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13489. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  13490. the data smaller than block length.
  13491. A block length can be specified by constructor's argument.
  13492. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  13493. Get a missing piece in the range of given FileEntry. This function is
  13494. not used in the program yet.
  13495. * src/Util.h: Added some macros.
  13496. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13497. Added HTTP/1.1 keep alive and pipelining support.
  13498. See --enable-http-keep-alive and --enable-http-pipelining option.
  13499. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  13500. Segment.
  13501. * src/HttpDownloadCommand.{h, cc}
  13502. * src/OptionHandlerFactory.cc
  13503. * src/HttpConnection.{h, cc}
  13504. * src/version_usage.cc
  13505. * src/HttpInitiateConnectionCommand.cc
  13506. * src/FtpInitiateConnectionCommand.cc
  13507. * src/Segment.h
  13508. * src/HttpRequestCommand.{h, cc}
  13509. * src/option_processing.cc
  13510. * src/prefs.h
  13511. * src/HttpResponseCommand.cc
  13512. * src/SegmentMan.{h, cc}
  13513. * src/FtpNegotiateCommand.cc
  13514. * src/HttpProxyResponseCommand.cc
  13515. * src/Request.cc
  13516. * src/HttpRequest.cc
  13517. * src/DownloadCommand.cc
  13518. * test/HttpRequestTest.cc
  13519. * test/RequestTest.cc
  13520. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13521. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  13522. finished.
  13523. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13524. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  13525. catching it inside the method.
  13526. When no file entry is found in a metalink without querying user
  13527. preferences, throw the exception with the error message that suggests
  13528. metalink file is probably broken.
  13529. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  13530. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13531. Fixed the bug that prevents remote Metalink/Torrent file from begin
  13532. processed.
  13533. * src/RequestGroupMan.cc (removeStoppedGroup)
  13534. Added debug message.
  13535. * src/BtPostDownloadHandler.cc
  13536. * src/MetalinkPostDownloadHandler.cc
  13537. * src/PostDownloadHandler.{h, cc}
  13538. * src/RequestGroup.cc
  13539. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13540. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  13541. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13542. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  13543. stops and there are any unfinished or in-progress downloads.
  13544. Added the legend of "stat".
  13545. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13546. Throw exception when chunck checksum verification fails.
  13547. * src/DownloadCommand.cc (validatePieceHash): New function.
  13548. * src/PiecedSegment.{h, cc} (clear): New function.
  13549. * src/GrowSegment.{h, cc} (clear): New function.
  13550. * src/Segment.h (clear): New function.
  13551. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  13552. * test/SegmentTest.cc
  13553. * test/GrowSegmentTest.cc
  13554. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13555. Do not send referer when redirected.
  13556. * src/Request.cc (redirectUrl)
  13557. * test/RequestTest.cc
  13558. * test/HttpRequestTest.cc
  13559. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13560. Implemented BitTorrent/http/ftp integrated download.
  13561. I've rewritten lots of files and now some headers have forward
  13562. class declarations to reduce compile time.
  13563. The implementation is extremely alpha stage, I recommend to use this
  13564. for testing purpose only.
  13565. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13566. Fixed the compilation error on 64bit platform.
  13567. * test/HttpHeaderProcessorTest.cc
  13568. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13569. Merged Ross's patch that fixes compilation problem in MinGW
  13570. * test/DefaultBtProgressInfoFileTest.cc
  13571. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13572. Updated fr.po by sebone
  13573. * po/fr.po
  13574. Updated man page.
  13575. * doc/aria2c.1.txt
  13576. * Release 0.11.3
  13577. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13578. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  13579. failure in Metalink.
  13580. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13581. Automatically save *.aria2 control file of http/ftp download in every
  13582. 60 seconds.
  13583. * src/AutoSaveCommand.{h, cc}: New class.
  13584. * src/TimeBasedCommand.{h, cc}: New class.
  13585. * src/DownloadEngineFactory.cc (newConsoleEngine)
  13586. Disable parameterized URI support by default. Added -P option to
  13587. enable the feature.
  13588. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  13589. * src/OptionHandlerFactory.cc
  13590. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  13591. Updated Japanese translation.
  13592. * po/ja.po
  13593. Updated man page.
  13594. * doc/aria2c.1.txt
  13595. * Release 0.11.3-rc
  13596. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13597. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  13598. it is successful, then renamed to *.aria2.
  13599. This prevents *.aria2 file from being truncated or corrupted when
  13600. file system becomes out of space.
  13601. * src/DefaultBtProgressInfoFile.cc (save)
  13602. * src/SegmentMan.cc (save)
  13603. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  13604. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13605. Reduced the fragmentation of bitfield in http/ftp download.
  13606. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  13607. * test/BitfieldManTest.cc
  13608. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13609. Added the ability to disable segmented download in .metalink.
  13610. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  13611. 'url' tag.
  13612. * src/MetalinkEntry.{h, cc}
  13613. * src/RequestResource.{h, cc}
  13614. * src/MetalinkRequestInfo.cc
  13615. * src/Xml2MetalinkProcessor.cc
  13616. * test/Xml2MetalinkProcessorTest.cc
  13617. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13618. Added parameterized URI support.
  13619. * src/main.cc: -Z option added.
  13620. * src/OptionHandlerFactory.cc
  13621. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  13622. * src/PStringDatum.h: New class.
  13623. * src/PStringSegment.{h,cc}: New class.
  13624. * src/PStringNumLoop.h: New class.
  13625. * src/PStringSelect.h: New class.
  13626. * src/NumberDecorator.h: New class.
  13627. * src/FixedWidthNumberDecorator.h: New class.
  13628. * src/AlphaNumberDecorator.h: New class.
  13629. * src/PStringVisitor.h: New class.
  13630. * src/PStringBuildVisitor.{h,cc}: New class.
  13631. * src/ParameterizedStringParser.{h,cc}: New class.
  13632. * src/Util.{h,cc}
  13633. (isNumber): New function.
  13634. (isLowercase): New function.
  13635. (isUppercase): New function.
  13636. (alphaToNum): New function.
  13637. * test/ParameterizedStringParserTest.cc: New class.
  13638. * test/AlphaNumberDecoratorTest.cc: New class.
  13639. * test/PStringBuildVisitorTest.cc: New class.
  13640. * test/UtilTest.cc
  13641. (testIsNumber): New function.
  13642. (testIsLowercase): New function.
  13643. (testIsUppercase): New function.
  13644. (testAlphaToNum): New function.
  13645. Added '\n' after the error message
  13646. * src/RequestInfo.h (printDownloadAbortMessage)
  13647. Added auto file renaming feature in http(s)/ftp download.
  13648. * src/main.cc: Added --auto-file-renaming command-line option.
  13649. * src/OptionHandlerFactory.cc
  13650. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  13651. * src/RequestGroup.{h, cc}
  13652. (shouldCancelDownloadForSafety): Rewritten
  13653. (tryAutoFileRenaming): New function.
  13654. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  13655. * src/HttpResponseCommand.cc
  13656. (executeInternal): Removed the call to RequestGroupMan::
  13657. isSameFileBeingDownloaded()
  13658. * src/FtpNegotiateCommand.cc
  13659. (recvSize): Removed the call to RequestGroupMan::
  13660. isSameFileBeingDownloaded()
  13661. * test/RequestGroupTest.cc: New class.
  13662. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13663. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  13664. IO.
  13665. * src/DefaultBtProgressInfoFile.cc
  13666. * src/MetaFileUtil.cc
  13667. * src/SimpleLogger.cc
  13668. * src/SegmentMan.cc
  13669. * src/Util.cc
  13670. * src/Platform.cc
  13671. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13672. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  13673. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13674. Avoid sparse files if possible, because VFAT32 doesn't support it.
  13675. * src/DefaultDiskWriter.cc (initAndOpenFile)
  13676. Fixed the bug that prevents file allocation is not done when
  13677. dowloading multi-torrent file.
  13678. * src/AbstractDiskWriter.cc (openFile)
  13679. Increase the maximum number of -j option from 15 to 45.
  13680. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13681. Added fr.po, thanks to Charles Landemaine.
  13682. * po/fr.po
  13683. * po/LINGUAS
  13684. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13685. gcc 3.4.4 support:
  13686. * src/DefaultBtContext.cc: int32_t -> int
  13687. * src/main.cc: int -> int32_t, int32_t -> int
  13688. * src/messageDigest.h: uint32_t -> unsigned int
  13689. * src/NameResolver.h: int32_t -> int
  13690. * src/PeerConnection.cc: int -> int32_t
  13691. * src/SpeedCalc.cc: int32_t -> int
  13692. * src/TrackerUpdateCommand.h: int -> int32_t
  13693. * src/Util.cc: int32_t -> int
  13694. * src/Util.h: int32_t -> int
  13695. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13696. * test/AnnounceListTest.cc: int -> int32_t
  13697. * test/ChunkedEncodingTest.cc: int -> int32_t
  13698. * test/DataTest.cc: int -> int32_t
  13699. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13700. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13701. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13702. * test/FeatureConfigTest.cc: int -> int32_t
  13703. * test/MetalinkEntryTest.cc: int -> int32_t
  13704. * test/MockBtRequestFactory.h: int -> int32_t
  13705. * test/MockPieceStorage.h: int -> int32_t
  13706. * test/OptionTest.cc: int -> int32_t
  13707. * test/RequestTest.cc: int -> int32_t
  13708. * test/SegmentManTest.cc: int -> int32_t
  13709. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13710. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13711. Move sleep functions to Util class:
  13712. * src/Util.cc
  13713. (sleep): New function.
  13714. (usleep): New function.
  13715. * src/DownloadCommand.cc: sleep -> Util::sleep
  13716. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13717. MinGW build enhancements. The following files are added:
  13718. * src/timegm.{c,h}
  13719. Changes to support the above new files:
  13720. * configure.ac
  13721. * src/Makefile.am
  13722. * src/a2time.h
  13723. * src/Util.cc:
  13724. * src/strptime.c: Added support for %Z option.
  13725. Fixed MinGW non-blocking bug.
  13726. * src/SocketCore.cc
  13727. * src/HttpRequestCommand.cc
  13728. Miscellenous build fixes/enhancements.
  13729. * configure.ac: Added summary report.
  13730. * src/Platform.h: Tweaked #include's.
  13731. * src/a2netcompat.h: Tweaked #include's.
  13732. * src/strptime.h: Tweaked #include's.
  13733. * src/gai_strerror.c: Tweaked #include's.
  13734. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13735. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13736. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13737. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13738. Increased the initial connection size in BitTorrent download to 40.
  13739. * src/BtRuntime.h
  13740. Added the usage message of --peer-id-prefix option.
  13741. * src/main.cc
  13742. * Release 0.11.2
  13743. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13744. MessageDigestHelper is introduced in order to simplify the use
  13745. of message digest. Removed repeated code.
  13746. The message digest algorithm is now specified by string, like "sha1",
  13747. "md5".
  13748. * src/messageDigest.{h, cc}
  13749. * src/MessageDigestHelper.{h, cc}: New class.
  13750. * src/DefaultPieceStorage.cc
  13751. * src/DefaultBtContext.{h, cc}
  13752. (computeFastSet): New function.
  13753. (setInfoHash): Added for unit testing.
  13754. (setNumPieces): Added for unit testing.
  13755. * src/DefaultBtInteractive.cc
  13756. * src/BtPieceMessage.cc
  13757. * src/Peer.cc
  13758. * src/Checksum.h
  13759. * src/message.h
  13760. * src/IteratableChecksumValidator.h
  13761. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  13762. inside it.
  13763. * src/SegmentMan.{h, cc}
  13764. (checkIntegrity): Removed.
  13765. * src/IteratableChunkChecksumValidator.{h, cc}
  13766. * src/Util.h
  13767. (sha1Sum): Removed.
  13768. (simpleMessageDigest): Removed.
  13769. (fileChecksum): Removed.
  13770. (computeFastSet): Removed.
  13771. * src/ShaVisitor.cc
  13772. * src/ChunkChecksum.h
  13773. * src/DownloadCommand.cc
  13774. Removed messageDigest virtual functions.
  13775. * src/MultiDiskAdaptor.{h, cc}
  13776. * src/DiskAdaptor.h
  13777. * src/ByteArrayDiskWriter.h
  13778. * src/DiskWriter.h
  13779. * src/DiskAdaptorWriter.h
  13780. * src/AbstractSingleDiskAdaptor.{h, cc}
  13781. * src/AbstractDiskWriter.{h, cc}
  13782. Fixed comilation error when message digest is disabled.
  13783. * src/MetalinkEntry.{h, cc}
  13784. * src/MetalinkRequestInfo.cc
  13785. Removed srandom and random.
  13786. * src/SimpleRandomizer.h
  13787. Added size() virtual function to DiskAdaptor
  13788. * src/MultiDiskAdaptor.h
  13789. Fixed the bug that causes that files are not opened correctly in
  13790. multi-file torrent.
  13791. * src/TorrentRequestInfo.cc
  13792. * src/MultiDiskAdaptor.cc
  13793. Added SHA256 support
  13794. * src/messageDigest.cc
  13795. * src/Xml2MetalinkProcessor.cc
  13796. Show supported message digest algorithms
  13797. * src/main.cc
  13798. Updated contact info.
  13799. * src/main.cc
  13800. Applied Ross's patch
  13801. * src/a2netcompat.h
  13802. * src/main.cc
  13803. Fixed the bug that prevents a remote metalink from not being processed
  13804. even if '-o foo.metalink' is specified.
  13805. * src/MetalinkRequestInfo.cc
  13806. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13807. Merged Dan's patch:
  13808. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  13809. Use va_copy to avoid core dump on amd64:
  13810. * src/SimpleLogger.cc
  13811. Updated contact info.
  13812. * src/main.cc
  13813. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13814. digest is not available.
  13815. * src/MetalinkEntry.h
  13816. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13817. Make a2netcompat.h include a2io.h to fix compilation error:
  13818. * src/a2netcompat.h
  13819. * src/SocketCore.cc: Removed include of a2io.h
  13820. * src/Util.cc: Removed include of a2io.h
  13821. Gather time related functions to a2time.h:
  13822. * src/a2time.h: New file.
  13823. * src/DefaultPeerStorage.cc
  13824. * src/SimpleLogger.cc
  13825. * src/Util.{h, cc}
  13826. * src/SimpleRandomizer.h
  13827. * src/TimeA2.{h,cc}
  13828. * src/DownloadCommand.cc
  13829. * src/main.cc
  13830. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13831. a2netcompat.h:
  13832. * src/NameResolver.cc
  13833. Fixed compilation error without openssl:
  13834. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13835. Added default block to suppress compiler warnings:
  13836. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13837. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13838. MinGW build enhancements. The following files are added:
  13839. * src/gai_strerror.{c,h}
  13840. * src/gettimeofday.{c,h}
  13841. Changes to support the above new files:
  13842. * configure.ac
  13843. * src/Makefile.am
  13844. * src/a2netcompat.h
  13845. * src/TimeA2.cc
  13846. * src/DefaultPeerStorage.cc
  13847. * src/NameResolver.cc: removed mingw_strerror() function.
  13848. * src/SocketCore.cc: removed mingw_strerror() function.
  13849. Miscellaneous MinGW build fixes.
  13850. * src/a2io.h: Use _lseeki64() instead of lseek()
  13851. * src/common.h
  13852. * src/DefaultFileAllocator.cc
  13853. * src/GlowFileAllocator.cc
  13854. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13855. * src/NameResolver.cc
  13856. (callback): Changed int32_t to int.
  13857. (resolve): Changed int32_t to int.
  13858. * src/Platform.cc
  13859. * src/Platform.h
  13860. * test/MultiDiskWriterTest.cc
  13861. * test/PeerMessageUtilTest.cc
  13862. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13863. Other enhancements and fixes.
  13864. * src/HttpRequestCommand.cc
  13865. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13866. * src/SocketCore.cc:
  13867. (error): New function to abstract errno/WSAGetLastError().
  13868. (errorMsg): New function to abstract errno/WSAGetLastError().
  13869. (initiateSecureConnection): Added more detailed error reporting.
  13870. * src/SocketCore.h: Added private variable blocking, to allow
  13871. proper handling of OpenSSL psuedo-errors.
  13872. * src/message.h
  13873. (EX_SSL_INIT_FAILURE)
  13874. (EX_SSL_IO_ERROR)
  13875. (EX_SSL_PROTOCOL_ERROR)
  13876. (EX_SSL_UNKNOWN_ERROR)
  13877. (EX_SSL_CONNECT_ERROR)
  13878. (EX_SOCKET_BLOCKING)
  13879. (EX_SOCKET_NONBLOCKING)
  13880. (EX_SOCKET_UNKNOWN_ERROR)
  13881. * src/Util.cc
  13882. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13883. reserved name.
  13884. (httpGMT): Fixed typo.
  13885. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13886. Merged Ross's win32 patch(manually)
  13887. In the course of merging, following files are added.
  13888. * src/strptime.{h,c}
  13889. * src/libgen.{h,c}
  13890. * src/inet_aton.{h,c}
  13891. * src/Platform.{h,cc}
  13892. * src/localtime_r.{h,c}
  13893. * src/getaddrinfo.{h,c}
  13894. I've gethered network related things, and put them to following file:
  13895. * src/a2netcompat.h
  13896. Also io related things are put to following file:
  13897. * src/a2io.h
  13898. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13899. * src/message.h
  13900. (MSG_ALLOCATION_COMPLETED)
  13901. (EX_TOO_LARGE_FILE)
  13902. (EX_SIZE_MISMATCH)
  13903. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13904. (EX_INVALID_CHUNK_CHECKSUM)
  13905. (EX_INVALID_RANGE_HEADER)
  13906. * src/FileAllocationCommand.cc
  13907. * src/HttpResponse.cc
  13908. * src/RequestGroup.cc
  13909. * src/MultiDiskAdaptor.cc
  13910. * src/OptionHandlerImpl.h
  13911. * src/HttpResponseCommand.cc
  13912. * src/FtpNegotiateCommand.cc
  13913. * src/IteratableChecksumValidator.cc
  13914. * src/SegmentMan.cc
  13915. * src/ChunkChecksumValidator.cc
  13916. Added Randomizer::getRandomNumber(long int)
  13917. * src/Randomizer.h (getRandomNumber)
  13918. * src/SimpleRandomizer.h (getRandomNumber)
  13919. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13920. * src/Util.cc (randomAlpha): Use this new function.
  13921. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13922. Converted int's to in32_t. long long int's are also converted to
  13923. int64_t
  13924. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13925. Fixed the bug that prevents cookies from being sent to the server
  13926. if the domain of cookie is FQDN and starts with ".".
  13927. * src/Cookie.cc (match)
  13928. To add the ability to change peer id.
  13929. * src/DefaultBtContext.h
  13930. (_peerIdPrefix): New variable
  13931. (setPeerIdPrefix): New function.
  13932. * src/torrentRequestInfo.cc
  13933. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13934. DefaultBtContext.
  13935. * src/main.cc (main): Added peer-id-prefix command-line option.
  13936. The usage message is not added yet.
  13937. * src/DefaultBtContext.cc
  13938. (generatePeerId): Use _peerIdPrefix.
  13939. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13940. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13941. Fixed the bug that prevents filename in content-disposition from
  13942. being retrieved when filename is not quoted.
  13943. * src/Util.cc (getContentDispositionFilename)
  13944. Fixed the bug that causes infinate loop and memory leak when file open
  13945. operation failed.
  13946. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13947. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13948. Fixed the bug that causes segfault when all URIs specified are
  13949. unsupported.
  13950. * src/RequestGroupMan.cc (getInitialCommands)
  13951. Check if RequestGroup::createNextCommand() returns empty list of
  13952. commands.
  13953. * src/RequestGroup.cc (createNextCommand)
  13954. Change log level from info to error so that users can notice that
  13955. an error occurred.
  13956. Fixed the bug that causes segfault when a zero-sized file is
  13957. downloaded.
  13958. * src/BitfieldMan.cc (isAllBitSet)
  13959. Return true if bitfieldLength is 0.
  13960. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13961. * src/main.cc
  13962. (showUsage): Added 3 usage examples for metalink download.
  13963. Replace MetalinkChunkChecksum with ChunkChecksum.
  13964. * src/MetalinkChunkChecksum.h: Removed.
  13965. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13966. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13967. * src/Xml2MetalinkProcessor.cc
  13968. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13969. * src/MetalinkRequestInfo.cc (execute)
  13970. * Release 0.11.1
  13971. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13972. Reads URIs from stdin when "-i -" is specified.
  13973. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13974. * src/UriListParser.h, src/UriListParser.cc: New class.
  13975. * src/StreamUriListParser.h: New class.
  13976. * src/FileUriListParser.h: New class.
  13977. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13978. instead of UriFileListParser.
  13979. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13980. Made console readout more readable.
  13981. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13982. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13983. Fix the bug that causes -s option not to work.
  13984. * src/main.cc (main)
  13985. * src/a2algo.h: New file.
  13986. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13987. Create directory structure specified in metalink file.
  13988. * src/RequestGroup.h, src/RequestGroup.cc
  13989. (initAndOpenFile): Create a directory to store files if it does not
  13990. exist.
  13991. (getDir): New function.
  13992. Added ETA and download speed for an individual file to readout.
  13993. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13994. * src/RequestGroup.h
  13995. (calculateDownloadSpeed): New function.
  13996. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13997. Made -S option work with metalink file and provided selective download
  13998. to metalink.
  13999. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  14000. (filename): Removed.
  14001. (file): New variable.
  14002. (size): Removed.
  14003. (operator=): Updated.
  14004. (getPath): New function.
  14005. (getLength): New function.
  14006. (toFileEntry): New function.
  14007. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  14008. (execute): Use toStream.
  14009. (showFileEntry): Removed.
  14010. * src/MetalinkRequestInfo.h
  14011. (targetFiles): New variable.
  14012. (setTargetFiles): New variable.
  14013. * src/MetalinkRequestInfo.cc
  14014. (execute): Added the ability to print file information included in
  14015. a metalink file.
  14016. Added selective download mode to metalink.
  14017. * src/main.cc
  14018. (showUsage): Updated to denote that -S and --select-file options are
  14019. applicable to metalink.
  14020. * src/FileEntry.h
  14021. (operator=): New function.
  14022. (getBasename): New function.
  14023. (getDirname): New function.
  14024. * src/Util.h, src/Util.cc
  14025. (toStream): New function.
  14026. * src/Xml2MetalinkProcessor.cc: Updated.
  14027. Made aria2 work with metalink with directory structure.
  14028. * src/File.h, src/File.cc
  14029. (getBasename): New function.
  14030. (getDirname): New function.
  14031. * src/RequestGroup.h, src/RequestGroup.cc
  14032. (_topDir): New variable.
  14033. (setTopDir): New function.
  14034. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  14035. Rewrote HTTP header parsing with stringstream.
  14036. * src/HttpConnection.h, src/HttpConnection.cc
  14037. (HttpRequestEntry): New class.
  14038. (headerBuf): Removed.
  14039. (headerBufLength): Removed.
  14040. (outstandingHttpRequests): Now its element type is
  14041. HttpRequestEntryHandle.
  14042. (findEndOfHeader): Removed.
  14043. (receiveResponse): Rewritten.
  14044. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  14045. Updated doc for -j option to notice that it should be used with -i
  14046. option.
  14047. * src/main.cc (showUsage)
  14048. Removed unused classes.
  14049. * src/RequestInfo.h
  14050. (FileInfo): Removed.
  14051. (checksum): Removed.
  14052. (fileInfo): Removed.
  14053. (setChecksum): Removed.
  14054. (getChecksum): Removed.
  14055. (getFileInfo): Removed.
  14056. Use ISO units.
  14057. * src/ConsoleDownloadEngine.cc
  14058. * src/TorrentConsoleDownloadEngine.cc
  14059. * src/Util.cc (abbrevSize)
  14060. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14061. Added the default listening ports to the help message.
  14062. * src/main.cc (showUsage)
  14063. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14064. Reduce the number of calls to gettimeofday to lower CPU load.
  14065. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  14066. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  14067. * src/Peer.h (calculateUploadSpeed): New function.
  14068. (calculateDownloadSpeed): New function.
  14069. * src/DefaultPeerStorage.cc
  14070. (CalculateStat): Added _now variable.
  14071. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  14072. and Peer::calculateUploadSpeed(const struct timeval&)
  14073. Drop connection if no request or piece message is exchanged in
  14074. a certain interval.
  14075. * src/DefaultBtInteractive.h
  14076. (btRuntime): New variable.
  14077. (inactiveCheckPoint): New variable.
  14078. (checkActiveInteraction): New function.
  14079. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  14080. request or piece message is received.
  14081. (checkActiveInteraction): New function.
  14082. (doInteractionProcessing): Call checkActiveInteraction.
  14083. Fixed the bug that causes remote Metalink and Torrent files are not
  14084. processed.
  14085. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  14086. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14087. Changed format of log file.
  14088. * src/SimpleLogger.cc
  14089. * Release 0.11.0
  14090. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14091. * src/AbstractCommand.cc
  14092. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  14093. MSG_MAX_TRY from error to info.
  14094. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  14095. * src/message.h
  14096. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  14097. (MSG_DOWNLOAD_ABORTED): Added %s.
  14098. (MSG_RESTARTING_DOWNLOAD): Added %s.
  14099. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  14100. * src/PeerAbstractCommand.cc
  14101. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  14102. * src/Request.h
  14103. (cookieBox): Made ShardHandle.
  14104. * src/RequestGroup.h, src/RequestGroup.cc
  14105. (createNextCommandWithAdj): New function.
  14106. * src/FileAllocationCommand.cc
  14107. (executeInternal): Use createNextCommandWithAdj().
  14108. * src/CheckIntegrityCommand.cc
  14109. (executeInternal): Use createNextCommandWithAdj().
  14110. Added --load-cookies command-option.
  14111. * src/OptionHandlerFactory.cc
  14112. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  14113. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  14114. Now aria2 can handle cookie's expiration date.
  14115. * src/Cookie.h (expires): Changed its type to time_t.
  14116. * src/main.cc: Added --load-cookies command-line option.
  14117. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  14118. * src/Util.h, src/Util.cc (httpGMT): New function.
  14119. * src/Request.cc (Request): Initialize cookieBox using
  14120. CookieBoxFactory.
  14121. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  14122. * src/CookieParser.h, src/CookieParser.cc: New class.
  14123. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  14124. * src/HttpResponseCommand.cc
  14125. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  14126. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  14127. download.
  14128. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14129. Added -j command-line option.
  14130. * src/OptionHandlerFactory.cc (createOptionHandlers)
  14131. * src/main.cc
  14132. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  14133. Rewritten using stringstream.
  14134. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  14135. Rewritten using stringstream.
  14136. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14137. Make download size shown in MB, KB.
  14138. * src/ConsoleDownloadEngine.h (sendStatistics)
  14139. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  14140. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14141. Accept incoming connections if download rate is low.
  14142. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  14143. (_lowestSpeedLimit): New variable.
  14144. (setLowestSpeedLimit): New function.
  14145. (execute): Accept incoming connections if download rate is low.
  14146. MAX_PEERS is ignored in this case.
  14147. Disable PREF_OUT in multiple concurrent download:
  14148. * src/RequestGroup.h, src/RequestGroup.cc
  14149. (setUserDefinedFilename): New function.
  14150. * src/DownloadEngineFactory.cc
  14151. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  14152. concurrent download.
  14153. * src/DefaultSegmentManFactory.cc
  14154. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  14155. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14156. RequestGroup::getNextCommand() was renamed to createNextCommand().
  14157. Added its overloaded method.
  14158. * src/RequestGroup.h
  14159. (_numConcurrentCommand): New variable.
  14160. (setNumConcurrentCommand): New function.
  14161. * src/RequestGroup.cc
  14162. Abort download if same file is being downloaded concurrently.
  14163. * src/RequestGroup.h, src/RequestGroupMan.cc
  14164. (isSameFileBeingDownloaded): New function.
  14165. * src/HttpResponseCommand.cc (executeInternal)
  14166. * src/FtpNegotiateCommand.cc (recvSize)
  14167. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  14168. * main.cc: Added help message for -i option.
  14169. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14170. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  14171. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  14172. * src/MetalinkEntry.h
  14173. (checksum): Changed to ChecksumHandle
  14174. * src/MetalinkRequestInfo.cc
  14175. (checksum): Changed to ChecksumHandle
  14176. * src/File.cc
  14177. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  14178. * src/common.h
  14179. (DIR_OPEN_MODE): New definition
  14180. * src/RequestGroup.cc
  14181. (prepareForNextAction): Added an argument.
  14182. * src/message.h
  14183. (MSG_GOOD_CHECKSUM): New definition
  14184. (MSG_BAD_CHECKSUM): New definition
  14185. * src/HttpResponseCommand.cc
  14186. (handleDefaultEncoding): Continue download sequence in new
  14187. non-segmented download.
  14188. * src/FileAllocationEntry.h
  14189. (_nextDownloadCommand): New variable.
  14190. * src/DownloadCommand.cc
  14191. (prepareForNextSegment): Create ChecksumCommand if checksum is
  14192. available.
  14193. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  14194. * src/IteratableChecksumValidator.h,
  14195. src/IteratableChecksumValidator.cc: New class.
  14196. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  14197. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14198. Change file mode to 666:
  14199. * src/common.h (OPEN_MODE): New definition.
  14200. * src/File.cc
  14201. * src/Util.cc
  14202. * src/Directry.cc
  14203. * src/AbstractDiskWriter.cc
  14204. Change the level of log message "download aborted" to debug:
  14205. * src/PeerAbstractCommand.cc (execute)
  14206. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  14207. * src/TrackerWatcherCommand.cc
  14208. (createCommand): Sleep some seconds after request failed.
  14209. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  14210. then abort tracker request.
  14211. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14212. * Added the simultaneous download feature.
  14213. * src/main.cc: Print "Exception caught: " when exception is caught.
  14214. Use CUIDCounter instead of BtRuntime::getNewCuid():
  14215. * src/ActivePeerConnectionCommand.cc
  14216. * src/PeerInteractionCommand.cc
  14217. * src/BtRuntime.h
  14218. (cuidCounter): Removed.
  14219. (getNewCuid): Removed.
  14220. * src/DownloadEngineFactory.cc
  14221. * src/PeerListenCommand.cc
  14222. * src/TrackerUpdateCommand.cc
  14223. * src/PeerInitiateConnectionCommand.cc
  14224. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14225. * src/PeerAbstractCommand.cc
  14226. (onAbort): Call PeerStorage::returnPeer()
  14227. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  14228. (incomingPeers): New variable.
  14229. (addIncomingPeer): New function.
  14230. (returnPeer): New function.
  14231. (onErasingPeer): New function.
  14232. (addPeer): push_back -> push_front
  14233. (getActivePeers): Rewritten.
  14234. (calculateStat): Rewritten.
  14235. * src/PeerStorage.h
  14236. (TransferStat::copy): New function.
  14237. (TransferStat::TransferStat): New function.
  14238. (TransferStat::operator=): New function.
  14239. (addIncomingPeer): New function.
  14240. (returnPeer): New function.
  14241. * src/PeerListenCommand.cc
  14242. (execute): Use PeerStorage::addIncomingPeer() instead of
  14243. Peer::addPeer().
  14244. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14245. Connect to a peer actively when download speed is lower than specified
  14246. speed in torrent download:
  14247. * src/ActivePeerConnectionCommand.h: New class.
  14248. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14249. * src/HttpRequest.cc (createRequest): url-encode user-agent
  14250. * src/main.cc: Fixed the bug that prevents download if .netrc
  14251. doesn't exist.
  14252. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14253. To cache resolved hostname:
  14254. * src/AbstractCommand.h, src/AbstractCommand.cc
  14255. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  14256. Added dns cache.
  14257. * src/FtpInitiateConnectionCommand.cc
  14258. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  14259. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  14260. NameResolver working without ares.
  14261. * src/TorrentRequestInfo.cc
  14262. (execute): Don't cache dns in torrent download.
  14263. * src/HttpInitiateConnectionCommand.cc
  14264. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  14265. * src/DNSCache.h: New class.
  14266. * src/UrlRequestInfo.cc
  14267. (execute): Use dns cache.
  14268. In http request, suppress port number in http request header if port
  14269. is 80 or 443:
  14270. * src/HttpRequest.cc (getHostText): Suppress port number in http
  14271. request header if port is 80 or 443.
  14272. (createProxyRequest): Allways send port number.
  14273. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14274. To add the command-line option which disables netrc support:
  14275. * src/OptionHandlerFactory.cc
  14276. (createOptionHandlers): Added PREF_NO_NETRC.
  14277. * src/main.cc: Added -n option.
  14278. * src/prefs.h (PREF_NO_NETRC): New definition.
  14279. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  14280. V_TRUE.
  14281. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  14282. is V_FALSE. This may get configurable in the future release.
  14283. To clear peer's error status by time basis:
  14284. * src/PeerAbstractCommand.cc
  14285. (onAbort): Call Peer::startBadCondition().
  14286. * src/Peer.h, src/Peer.cc
  14287. (error): Removed.
  14288. (_badConditionStartTime): New variable.
  14289. (_badConditionInterval): New variable. Initialized to 10 seconds.
  14290. (startBadCondition): New function.
  14291. (isGood): New function.
  14292. * src/DefaultPeerStorage.cc
  14293. (addPeer): Use Peer::isGood().
  14294. (FindFinePeer): Use Peer::isGood().
  14295. Always include port number in http request header:
  14296. * src/HttpRequest.cc (getHostText): Always include port number in
  14297. http request header.
  14298. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14299. To the ability to read options from a config file:
  14300. * src/main.cc: Command-line parameter validation is delegated to
  14301. OptionHandler class.
  14302. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  14303. * src/Option.h, src/Option.cc (clear): New function.
  14304. * src/OptionParser.h, src/OptionParser.cc: New class.
  14305. * src/OptionHandler.h: New class.
  14306. * src/NameMatchOptionHandler.h: New class.
  14307. * src/OptionHandlerImpl.h: New classes.
  14308. * src/prefs.h: '_' -> '-'
  14309. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  14310. (FTP_PASV): New definition.
  14311. * src/Util.h, src/Util.cc (getRealSize): New function.
  14312. To disable netrc support if .netrc file does not have correct
  14313. permissions:
  14314. * src/File.h, src/File.cc (mode): New function.
  14315. To prevent confidential information to be logged:
  14316. * src/HttpConnection.h, src/HttpConnection.cc
  14317. (eraseConfidentialInfo): New function.
  14318. (sendRequest): Call eraseConfidentialInfo().
  14319. (sendProxyRequest): Call eraseConfidentialInfo().
  14320. * src/main.cc: Validate permissions of .netrc file.
  14321. To add --user-agent command-line option:
  14322. * src/main.cc: Added new command line option: --user-agent
  14323. * src/prefs.h (PREF_USER_AGENT): New definition.
  14324. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  14325. parameter to HttpRequest object.
  14326. * src/AbstractProxyRequestCommand.cc
  14327. (executeInternal): Set user-agent option parameter to HttpRequest
  14328. object.
  14329. Marged the patches from Dan Fandrich.
  14330. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14331. Use filename and size from Metalink file instead of sending HEAD
  14332. request:
  14333. * src/UrlRequestInfo.h
  14334. (_filename): New variable.
  14335. (_totalLength): New variable.
  14336. (setTotalLength): New variable.
  14337. (setFilename): New variable.
  14338. * src/MetalinkRequestInfo.cc
  14339. (execute): Set filename and size to UrlRequestInfo
  14340. * src/UrlRequestInfo.cc
  14341. (execute): Use filename and size from Metalink instead of seding
  14342. HEAD request to servers.
  14343. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14344. To add the ability to resume downloading a partially downloaded file
  14345. which is downloaded from the beginning:
  14346. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  14347. takes this role.
  14348. * src/main.cc: Added -c option.
  14349. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  14350. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  14351. * src/prefs.h (PREF_CONTINUE): New definition.
  14352. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  14353. * src/DefaultDiskWriter.cc
  14354. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  14355. * src/AbstractDiskWriter.h
  14356. (glowFileAllocator): New variable.
  14357. * src/AbstractDiskWriter.cc
  14358. (openExistingFile): Now preallocate file space from the end of the
  14359. existing file if totalLength argument is specified and grater than 0.
  14360. * src/UrlRequestInfo.cc: If -c option is specified and the file
  14361. to download exists in local, continue the download of the file.
  14362. --allow-overwrite=true is assumed in this context.
  14363. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  14364. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  14365. Throw exception if --check-integrity=true is specified but chunk
  14366. checksums are not provided:
  14367. * src/UrlRequestInfo.cc
  14368. Do not print URLs to stdout:
  14369. * src/UrlRequestInfo.cc
  14370. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14371. * src/Request.h: Use AuthResolver to get authentication information.
  14372. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  14373. set to RequestFactory object.
  14374. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  14375. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  14376. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  14377. create Request object.
  14378. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  14379. To integrate Netrc into exsiting classes:
  14380. * src/Request.h
  14381. (_userDefinedAuthConfig): New variable.
  14382. (findNetrcAuthenticator): New function.
  14383. (segment): Removed.
  14384. (setUserDefinedAuthConfig): New function.
  14385. (resolveHttpAuthConfigItem): New function.
  14386. (resolveFtpAuthConfigItem): New function.
  14387. (resolveHttpProxyAuthConfigItem): New function.
  14388. * src/HttpRequest.h
  14389. (authConfig): Removed.
  14390. (proxyAuthConfig): Removed.
  14391. (setAuthConfig): Removed.
  14392. (setProxyAuthConfig): Removed.
  14393. * src/UrlRequest.h
  14394. (getHeadResult): Added a parameter: authConfigHandle
  14395. * src/common.h
  14396. (SingletonHolder.h): New include.
  14397. * src/main.cc
  14398. (Netrc.h): New include.
  14399. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  14400. Added initial value of PREF_NETRC_PATH.
  14401. Added the initialization of netrc.
  14402. * src/AuthConfig.h: New class.
  14403. * src/prefs.h
  14404. (PREF_NETRC_PATH): New definition.
  14405. * src/HttpAuthConfig.h: Removed.
  14406. * src/Netrc.cc
  14407. (getRequiredNextToken): New function.
  14408. (skipMacdef): New function.
  14409. (parse): Rewritten.
  14410. * src/Netrc.h
  14411. (getRequiredNextToken): New function.
  14412. (skipMacdef): New function.
  14413. * src/Util.h, src/Util.cc
  14414. (getHomeDir): New function.
  14415. * src/TrackerWatcherComand.cc
  14416. (createRequestCommand): Use AuthConfig.
  14417. * src/FtpConnection.cc
  14418. (sendUser): Use Request::resolveFtpAuthConfigItem().
  14419. (sendPass): Use Request::resolveFtpAuthConfigItem().
  14420. * src/Request.cc
  14421. (findNetrcAuthenticator): New function.
  14422. (resolveHttpAuthConfigItem): New function.
  14423. (resolveFtpAuthConfigItem): New function.
  14424. (resolveHttpProxyAuthConfigItem): New function.
  14425. * src/UrlRequestInfo.cc: Use AuthConfig.
  14426. * src/HttpRequest.cc
  14427. (createRequest): Use authConfig.
  14428. (getProxyAuthString): Use authConfig.
  14429. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  14430. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  14431. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14432. To reduce overhead to find commands whose socket is either
  14433. readable or writable in the download engine loop:
  14434. * src/Command.h, src/Command.cc
  14435. (STATUS): New enum.
  14436. (status): New variable.
  14437. (statusMatch): New function.
  14438. (setStatusActive): New function.
  14439. (setStatusInactive): New function.
  14440. * src/DownloadEngine.h, src/DownloadEngine.cc
  14441. (executeCommand): New function.
  14442. (run): Simplified.
  14443. (waitData): Call Command::setStatusActive() when command's socket is
  14444. readable or writable.
  14445. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14446. To handle Segment as SegmentHandle:
  14447. * src/AbstractCommand.cc (execute): Rewritten.
  14448. * src/SegmentMan.h: Segment -> SegmentHandle
  14449. Introducded HttpResponse class, HttpRequest class to improve code
  14450. extensiveness and make it clear:
  14451. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  14452. HttpResponse class.
  14453. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  14454. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  14455. * src/HttpConnection.cc: Contruction of http request were moved to
  14456. HttpRequest class.
  14457. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  14458. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  14459. * src/HttpAuthConfig.h: New class.
  14460. * src/Range.h: New class.
  14461. To make FtpTunnel{Request, Response}Command and
  14462. HttpProxy{Request, Response}Command derived from
  14463. AbstractProxy{Request, Response}Command:
  14464. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  14465. Derived from AbstractProxyRequestCommand class.
  14466. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  14467. Derived from AbstractProxyResponseCommand class.
  14468. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  14469. Derived from AbstractProxyRequestCommand class.
  14470. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  14471. Derived from AbstractProxyResponseCommand class.
  14472. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  14473. : New class.
  14474. * src/AbstractProxyResponseCommand.h,
  14475. src/AbstractProxyResponseCommand.cc: New class.
  14476. To add netrc support:
  14477. * src/Netrc.h, src/Netrc.cc: New class.
  14478. * src/Util.h, src/Util.cc (split): New function.
  14479. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  14480. "Content-Range" header instead of "Range" header.
  14481. * src/HttpHeader.h
  14482. (getStatus): Removed.
  14483. (setStatus): Removed.
  14484. * src/Segment.h
  14485. (getPositionToWrite): New function.
  14486. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14487. * src/HttpHeader.h
  14488. (Range.h): New include.
  14489. (status): New variable.
  14490. (HttpHeader): Initialized status with 0.
  14491. (getStatus): New function.
  14492. (setStatus): New function.
  14493. (getRange): New function.
  14494. (HttpHeaderHandle): New function.
  14495. * src/HttpHeader.cc
  14496. (getRange): New function.
  14497. * src/Request.h
  14498. (RequestWeakHandle): New definition.
  14499. * src/HttpConnection.h
  14500. (HttpConnectionHandle): New type definition.
  14501. * src/HttpConnection.cc
  14502. (receiveResponse): Set HTTP status to headers.
  14503. * src/main.cc
  14504. (showUsage): Fixed typo.
  14505. * src/Segment.h
  14506. (SegmentHandle): New type definition.
  14507. * src/BitfieldMan.h
  14508. (getMissingUnusedLength): New function.
  14509. * src/BitfieldMan.cc
  14510. (getMissingUnusedLength): New function.
  14511. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14512. To fix static initialization order problem:
  14513. * src/BitfieldManFactory.h
  14514. (defaultRandomizer): Removed.
  14515. (factory): New variable.
  14516. (getNewFactory): Removed.
  14517. (getFactoryInstance): New function.
  14518. (setDefaultRandomizer): Rewritten.
  14519. (getDefaultRandomizer): Rewritten.
  14520. * src/BitfieldManFactory.cc
  14521. (defaultRandomizer): Removed.
  14522. (factory): Initialized to 0.
  14523. (BitfieldManFactory): Initialized randomizer to 0.
  14524. * src/DefaultPieceStorage.cc
  14525. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  14526. * src/Peer.cc
  14527. (Peer): getNewFactory() -> getFactoryInstance()
  14528. * src/SegmentMan.cc
  14529. (initBitfield): getNewFactory() -> getFactoryInstance()
  14530. * src/Piece.cc
  14531. (Piece): getNewFactory() -> getFactoryInstance()
  14532. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14533. To fix the bug that causes crash on Max OS X:
  14534. * src/SimpleRandomizer.h
  14535. (getInstance): Create new instance if the static variable is null.
  14536. * src/SimpleRandomizer.cc
  14537. (randomizer): Initialized to 0.
  14538. * src/BitfieldManFactory.h
  14539. (getNewFactory): Removed the call to setRandomizer().
  14540. To fix the miscalculation of the range of checksum:
  14541. * src/BitfieldMan.h
  14542. (isBitSetOffsetRange): New function.
  14543. * src/BitfieldMan.cc
  14544. (isBitSetOffsetRange): New function.
  14545. * src/SegmentMan.cc
  14546. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  14547. Use bitfield->getBlockLength() instead of segment.segmentLength.
  14548. * Release 0.10.1
  14549. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14550. To lower CPU usage in BitTorrent download when --max-upload-limit
  14551. command-line option specified:
  14552. * src/DefaultBtMessageDispatcher.cc
  14553. (sendMessages): Calculate uploading speed only when current message
  14554. is uploading data and is not sent yet.
  14555. * src/DefaultPeerStorage.h
  14556. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  14557. * src/HttpResponseCommand.cc
  14558. (handleDefaultEncoding): Added the cast to int32_t to itos.
  14559. This fixes compile error in Soralis 10.
  14560. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14561. To fix segfault in Metalink download:
  14562. * src/UrlRequestInfo.h
  14563. (filename): Removed.
  14564. (totalLength): Removed.
  14565. (setTotalLength): Removed.
  14566. (setFilename): Removed.
  14567. * src/MetalinkRequestInfo.cc
  14568. (execute): Do not set filename and totalLength to reqInfo.
  14569. Set chunk checksum to reqInfo if it is not null.
  14570. * src/HttpResponseCommand.cc
  14571. (executeInternal): Fixed filename in log.
  14572. (handleDefaultEncoding): Removed the call to initBitfield() and
  14573. markAllPiecesDone().
  14574. (handleOtherEncoding): Added HEAD method handling.
  14575. * src/FtpNegotiateCommand.cc
  14576. (executeInternal): Added SEQ_HEAD_OK handling.
  14577. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  14578. return false.
  14579. * src/FtpNegotiateCommand.h
  14580. (SEQ_HEAD_OK): New definition.
  14581. * src/SegmentMan.cc
  14582. (initBitfield): Delete bitfield.
  14583. (isChunkChecksumValidationReady): Fixed the condition.
  14584. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  14585. works fine.
  14586. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14587. * src/Xml2MetalinkProcessor.h
  14588. (xpathExists): New function.
  14589. * src/Xml2MetalinkProcessor.cc
  14590. (xpathExists): New function.
  14591. Not to send HEAD request if filename and size are available in Metalink
  14592. file:
  14593. * src/UrlRequestInfo.h
  14594. (filename): New variable.
  14595. (totalLength): New variable.
  14596. (setTotalLength): New function.
  14597. (setFilename): New function.
  14598. * src/MetalinkRequestInfo.cc
  14599. (execute): Set filename and size to UrlRequestInfo.
  14600. * src/MetalinkEntry.cc
  14601. (MetalinkEntry): Initialize size with 0.
  14602. * src/UrlRequestInfo.cc
  14603. (execute): Set filename and size to SegmentMan.
  14604. Not to download rest of the files after selected files are downloaded
  14605. in BitTorrent:
  14606. * src/PieceStorage.h
  14607. (allDownloadFinished): New function.
  14608. * src/DefaultBtAnnounce.cc
  14609. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  14610. downloadFinished.
  14611. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  14612. * src/DefaultPieceStorage.cc
  14613. (completePiece): Use allDownloadFinished instead of downloadFinished.
  14614. Commented out the call to finishSelectiveDownloadingMode().
  14615. (downloadFinished): Call isFilteredAllBitSet() instead of
  14616. isAllBitSet().
  14617. (allDownloadFinished): New function.
  14618. * src/DefaultBtInteractive.cc
  14619. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  14620. downloadFinished().
  14621. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  14622. * src/TorrentDownloadEngine.cc
  14623. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  14624. * src/BitfieldMan.h
  14625. (isFilteredAllBitSet): New function.
  14626. * src/ShareRatioSeedCriteria.h
  14627. (PieceStorage.h): New include.
  14628. (pieceStorage): New variable.
  14629. (evaluate):
  14630. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  14631. * src/BitfieldMan.cc
  14632. (isFilteredAllBitSet): New function.
  14633. (isAllBitSet): Filter is not took into account.
  14634. Rename --force-truncate as --allow-overwrite:
  14635. * src/TorrentRequestInfo.cc
  14636. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  14637. * src/main.cc
  14638. (showUsage): --force-truncate -> --allow-overwrite
  14639. * src/message.h
  14640. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  14641. * src/prefs.h
  14642. (PREF_FORCE_TRUNCATE): Removed.
  14643. (PREF_ALLOW_OVERWRITE): New definition.
  14644. * src/SegmentMan.cc
  14645. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  14646. * src/MetalinkRequestInfo.cc
  14647. (execute): Queueing message are now logged in info level.
  14648. * src/common.h
  14649. (LONG_LONG_MAX): Removed.
  14650. (LONG_LONG_MIN): Removed.
  14651. * src/HttpResponseCommand.cc
  14652. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  14653. * src/FtpNegotiateCommand.cc
  14654. (recvSize): LONG_LONG_MAX -> INT64_MAX
  14655. * src/main.cc
  14656. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  14657. command-line option.
  14658. (main): Added --check-integriy and --realtime-chunk-checksum
  14659. command-line option.
  14660. --force-truncate -> --allow-overwrite
  14661. Set initial value of --check-integrity option to false.
  14662. Don't show usage when error occurs while persing command-line options.
  14663. Removed deprecated --upload-limit option.
  14664. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14665. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  14666. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  14667. * src/BtAllowedFastMessage.cc:
  14668. * src/BtBitfieldMessage.cc
  14669. * src/BtCancelMessage.cc
  14670. * src/BtChokeMessage.cc
  14671. * src/BtHaveAllMessage.cc
  14672. * src/BtHaveMessage.cc
  14673. * src/BtHaveNoneMessage.cc
  14674. * src/BtInterestedMessage.cc
  14675. * src/BtNotInterestedMessage.cc
  14676. * src/BtPieceMessage.cc
  14677. * src/BtPortMessage.cc
  14678. * src/BtRejectMessage.cc
  14679. * src/BtRequestMessage.cc
  14680. * src/BtSuggestPieceMessage.cc
  14681. * src/BtUnchokeMessage.cc
  14682. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  14683. files are affected.
  14684. * src/ChunkChecksumValidator.cc
  14685. * src/SegmentMan.cc
  14686. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14687. To add chunk checksum validation:
  14688. * src/MetalinkEntry.h
  14689. (MetalinkChunkChecksum.h): New include.
  14690. (chunkChecksum): New variable.
  14691. * src/Request.h
  14692. (method): New variable.
  14693. (setMethod): New function.
  14694. (getMethod): New function.
  14695. (METHOD_GET): New static constant.
  14696. (METHOD_HEAD): New static constant.
  14697. * src/Xml2MetalinkProcessor.h
  14698. (getPieceHash): New function.
  14699. * src/PieceStorage.h
  14700. (markAllPiecesDone): New function.
  14701. (checkIntegrity): New function.
  14702. * src/FileAllocator.h
  14703. (NullFileAllocationMonitor.h): New include.
  14704. (FileAllocator): Initialize fileAllocationMonitor with new
  14705. NullFileAllocationMonitor().
  14706. * src/MultiDiskAdaptor.h
  14707. (messageDigest.h): Remove include.
  14708. (ctx): Removed.
  14709. (hashUpdate): Added ctx.
  14710. (MultiDiskAdaptor): Removed ctx.
  14711. (sha1Sum): Renamed as messageDigest.
  14712. (messageDigest): New function.
  14713. * src/UrlRequestInfo.h
  14714. (HeadResult): New class.
  14715. (digestAlgo): New variable.
  14716. (chunkChecksumLength): New variable.
  14717. (chunkChecksums): New variable.
  14718. (getHeadResult): New function.
  14719. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14720. (setDigestAlgo): New function.
  14721. (setChunkChecksumLength): New function.
  14722. (setChunkChecksums): New function.
  14723. * src/DefaultPieceStorage.cc
  14724. (DiskAdaptorWriter.h): New include.
  14725. (ChunkChecksumValidator.h): New include.
  14726. (markAllPiecesDone): New function.
  14727. (checkIntegrity): New function.
  14728. * src/DefaultBtContext.h
  14729. (getPieceHashes): New function.
  14730. * src/TorrentRequestInfo.cc
  14731. (execute): Try to validate chunk checksum if file already exists and
  14732. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14733. * src/messageDigest.h
  14734. (~MessageDigestContext): Added digestFree().
  14735. * src/MetalinkRequestInfo.cc
  14736. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14737. * src/DiskAdaptor.h
  14738. (messageDigest.h): New include.
  14739. (sha1Sum): Renamed as messageDigest.
  14740. (messageDigest): New function.
  14741. * src/DownloadCommand.h
  14742. (PeerStat.h): New include.
  14743. (maxDownloadSpeedLimit): New variable.
  14744. (startupIdleTime): New variable.
  14745. (lowestDownloadSpeedLimit): New variable.
  14746. (peerStat): New variable.
  14747. (setMaxDownloadSpeedLimit): New function.
  14748. (setStartupIdleTime): New function.
  14749. (setLowestDownloadSPeedLimit): New function.
  14750. * src/BtContext.h
  14751. (getPieceHashes): New function.
  14752. * src/main.cc
  14753. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  14754. option to true for testing purpose.
  14755. * src/BtPieceMessage.cc
  14756. (checkPieceHash): Use messageDigest
  14757. * src/DownloadEngine.cc
  14758. (SetDescriptor): Removed.
  14759. (AccumulateActiveCommand): Removed.
  14760. (waitData): Rewritten.
  14761. (updateFdSet): Rewritten.
  14762. * src/MultiDiskAdaptor.cc
  14763. (hashUpdate): Added ctx.
  14764. (sha1Sum): Renamed as messageDigest.
  14765. (messageDigest): New function.
  14766. * src/BitfieldMan.h
  14767. (isBitRangeSet): New function.
  14768. (unsetBitRange): New function.
  14769. * src/ByteArrayDiskWriter.h
  14770. (sha1Sum): Renamed as messageDigest.
  14771. (messageDigest): New function.
  14772. * src/ConsoleDownloadEngine.cc
  14773. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  14774. * src/DiskWriter.h
  14775. (messageDigest.h): New include.
  14776. (sha1Sum): Renamed as messageDigest.
  14777. (messageDigest): New function.
  14778. * src/ChunkChecksumValidator.h: New class.
  14779. * src/DiskAdaptorWriter.h: New class.
  14780. * src/prefs.h
  14781. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  14782. (PREF_CHECK_INTEGRITY): New definition.
  14783. * src/HttpResponseCommand.cc
  14784. (handleDefaultEncoding): Added method "HEAD" handling.
  14785. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14786. (handleOtherEncoding):
  14787. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  14788. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  14789. startupIdleTime, lowestDownloadSpeedLimit to command.
  14790. * src/SegmentMan.h
  14791. (getSegmentEntryByIndex): New function.
  14792. (getSegmentEntryByCuid): New function.
  14793. (getSegmentEntryIteratorByCuid): New function.
  14794. (diskWriter): DiskWriter -> DiskWriterHandle
  14795. (pieceHashes): New variable.
  14796. (chunkHashLength): New variable.
  14797. (digestAlgo): New variable.
  14798. (FindPeerStat): Removed.
  14799. (getPeerStat): Rewritten.
  14800. (markAllPiecesDone): New function.
  14801. (checkIntegrity): New function.
  14802. (tryChunkChecksumValidation): New function.
  14803. (isChunkChecksumValidationReady): New function.
  14804. * src/BitfieldMan.cc
  14805. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  14806. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  14807. blocks to 0.
  14808. (isBitRangeSet): New function.
  14809. (unsetBitRange): New function.
  14810. * src/FtpNegotiateCommand.cc
  14811. (executeInternal): Set maxDownloadSpeedLimit,
  14812. startupIdleTime, lowestDownloadSpeedLimit to command.
  14813. (recvSize): Added method "HEAD" handling.
  14814. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14815. * src/AbstractSingleDiskAdaptor.cc
  14816. (sha1Sum): Renamed as messageDigest.
  14817. (messageDigest): New function.
  14818. * src/AbstractSingleDiskAdaptor.h
  14819. (sha1Sum): Renamed as messageDigest.
  14820. (messageDigest): New function.
  14821. * src/Util.h
  14822. (indexRange): New function.
  14823. * src/MetalinkEntry.cc
  14824. (MetalinkEntry): Initialized chunkChecksum to 0.
  14825. * src/ShaVisitor.cc
  14826. (~ShaVisitor): Removed the call to ctx.digestFree().
  14827. * src/SegmentMan.cc
  14828. (ChunkChecksumValidator.h): New include.
  14829. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14830. to DIGEST_ALGO_SHA1.
  14831. (~SegmentMan): Removed diskWriter.
  14832. (FindSegmentEntryByIndex): Removed.
  14833. (FindSegmentEntryByCuid): Removed.
  14834. (checkoutSegment): Rewritten.
  14835. (findSlowerSegmentEntry): Rewritten.
  14836. (getSegment): Rewritten.
  14837. (updateSegment): Rewritten.
  14838. (completeSegment): Rewritten.
  14839. (markAllPiecesDone): New function.
  14840. (checkIntegrity): New function.
  14841. (isChunkChecksumValidationReady): New function.
  14842. (tryChunkChecksumValidation): New function.
  14843. * src/Xml2MetalinkProcessor.cc
  14844. (getEntry): Get size and set it to entry.
  14845. Get chunk checksum and set it to entry.
  14846. (getPieceHash): New function.
  14847. * src/Util.cc
  14848. (sha1Sum): Removed ctx.digestFree()
  14849. (fileChecksum): Removed ctx.digestFree()
  14850. (indexRange): New function.
  14851. * src/Request.cc
  14852. (METHOD_GET): New variable.
  14853. (METHOD_HEAD): New variable.
  14854. (Request): Added method.
  14855. * src/UrlRequestInfo.cc
  14856. (FatalException.h): New include.
  14857. (message.h): New include.
  14858. (operator<<): Added operator<< for class HeadResult.
  14859. (getHeadResult): New function.
  14860. (execute): Get filename and size in separate download engine.
  14861. * src/ChunkChecksumValidator.cc: New class.
  14862. * src/DownloadCommand.cc:
  14863. (DownloadCommand): Added peerStat.
  14864. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14865. the value from Option.
  14866. The buffer size is now 16KB.
  14867. Use peerStat member instead of getting it from SegmentMan.
  14868. Use startupIdleTime member instead of gettingit from Option.
  14869. Added chunk checksum validation.
  14870. * src/AbstractDiskWriter.cc
  14871. (AbstractDiskWriter): Removed ctx.
  14872. (~AbstractDiskWriter): Removed ctx.digestFree()
  14873. (writeDataInternal): Returns the return value of write.
  14874. (readDataInternal): Returns the return value of read.
  14875. (sha1Sum): Renamed as messageDigest
  14876. (messageDigest): New function.
  14877. * src/AbstractDiwkWriter.h
  14878. (messageDigest.h): Removed include.
  14879. (ctx): Removed.
  14880. (sha1Sum): Renamed as messageDigest
  14881. (messageDigest): New function.
  14882. * src/DefaultPieceStorage.h
  14883. (markAllPiecesDone): New function.
  14884. (checkIntegrity): New function.
  14885. * src/NullFileAllocationMonitor.h: New class.
  14886. * src/MetalinkChunkChecksum.h: New class.
  14887. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14888. To decrease CPU usage in bittorrent download, calculation results in
  14889. BitfieldMan were cached and realtime fetching PeerObject was removed
  14890. with WeakHandle introduced. Option values are set to the objects
  14891. by setter before download begins.
  14892. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14893. * src/DefaultBtRequestFactory.h
  14894. (dispatcher): BtMessageDispatcherHandle ->
  14895. BtMessageDispatcherWeakHandle.
  14896. (messageFactory): New variable.
  14897. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14898. BtMessageDispatcherWeakHandle.
  14899. (setBtMessageFactory): New function.
  14900. * src/DefaultBtMessageDispatcher.cc:
  14901. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14902. from Option.
  14903. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14904. feating the value from Option.
  14905. Use messageFactory member.
  14906. * src/PeerInteractionCommand.cc
  14907. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14908. Add reverse dependencies to factory object.
  14909. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14910. dispatcher.
  14911. Set messageFactory to receiver.
  14912. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14913. btInteractive.
  14914. Set receiver to peerObject.
  14915. Set maxDownloadSpeedLimit to this.
  14916. (executeInternal): Use maxDownloadSpeedLimit member.
  14917. * src/BtChokeMessage.cc
  14918. (doReceivedAction): Use dispatcher, requestFactory member.
  14919. (onSendComplete): Use dispatcher member.
  14920. * src/PeerInteractionCommand.h
  14921. (maxDownloadSpeedLimit): New variable.
  14922. * src/DefaultBtMessageReceiver.h
  14923. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14924. (dispatcher):
  14925. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14926. (messageFactory): New variable.
  14927. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14928. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14929. (setDispatcher):
  14930. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14931. (setBtMessageFactory): New function.
  14932. * src/DefaultBtInteractive.cc
  14933. (initiateHandshake): Use messageFactory member.
  14934. (addBitfieldMessageToQueue): Use messageFactory member.
  14935. (addAllowedFastMessageToQueue): Use messageFactory member.
  14936. (decideChoking): Use messageFactory member.
  14937. (checkHave): Use messageFactory member.
  14938. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14939. (receiveMessages): Use maxDownloadSpeedLimit member.
  14940. (decideInterest): Use messageFactory member.
  14941. * src/BtRequestMessage.cc
  14942. (doReceivedAction): Use messageFactory, dispatcher member.
  14943. (onQueued): Use dispatcher member.
  14944. * src/BtPieceMessage.cc
  14945. (doReceivedAction): Use dispatcher member.
  14946. (send): Use peerConnection member.
  14947. (onWrongPiece): Use requestFactory member.
  14948. (handleChokingEvent): Use messageFactory, dispatcher member.
  14949. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14950. * src/BtMessageDispatcher.h
  14951. (BtMessageDispatcherWeakHandle): New type definition.
  14952. * src/SimpleBtMessage.cc
  14953. (send): Use peerConnection member.
  14954. * src/BtRejectMessage.cc
  14955. (doReceivedAction): Use dispatcher member.
  14956. * src/DefaultBtMessageDispatcher.h
  14957. (Option.h): Removed include.
  14958. (messageFactory): New variable.
  14959. (option): Removed.
  14960. (maxUploadSpeedLimit): New variable.
  14961. (requestTimeout): New variable.
  14962. (DefaultBtMessageDispatcher): Removed option.
  14963. Added maxUploadSpeedLimit, requestTimeout.
  14964. (setOption): Removed.
  14965. (getOption): Removed.
  14966. (setMaxUploadSpeedLimit): New function.
  14967. (setRequestTimeout): New function.
  14968. (setBtMessageFactory): New function.
  14969. * src/DefaultBtInteractive.h
  14970. (btMessageReceiver):
  14971. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14972. (dispatcher):
  14973. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14974. (btRequestFactory):
  14975. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14976. (peerConnection):
  14977. PeerConnectionHandle -> PeerConnectionWeakHandle
  14978. (messageFactory): New variable.
  14979. (option): Removed.
  14980. (keepAliveInterval): New variable.
  14981. (maxDownloadSpeedLimit): New variable.
  14982. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14983. (setBtMessageReceiver):
  14984. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14985. (setDispatcher):
  14986. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14987. (setBtRequestFactory):
  14988. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14989. (setPeerConnection):
  14990. PeerConnectionHandle -> PeerConnectionWeakHandle
  14991. (setOption): Removed.
  14992. (setKeepAliveInterval): New function.
  14993. (setMaxDownloadSpeedLimit): New function.
  14994. (setBtMessageFactory): New function.
  14995. * src/BitfieldMan.h
  14996. (cachedNumMissingBlock): New variable.
  14997. (cachedNumFilteredBlock): New variable.
  14998. (cachedCompletedLength): New variable.
  14999. (cachedFilteredComletedLength): New variable.
  15000. (cachedFilteredTotalLength): New variable.
  15001. (countMissingBlockNow): New function.
  15002. (countFilteredBlockNow): New function.
  15003. (getFilteredTotalLengthNow): New function.
  15004. (getCompletedLengthNow): New function.
  15005. (getFilteredCompletedLengthNow): New function.
  15006. (updateCache): New function.
  15007. * src/AbstractBtMessage.h
  15008. (BtMessageDispatcher.h): New include.
  15009. (PeerConnection.h): New include.
  15010. (BtRequestFactory.h): New include
  15011. (BtMessageFactory.h): New include.
  15012. (dispatcher): New variable.
  15013. (messageFactory): New variable.
  15014. (peerConnection: New variable.
  15015. (setBtMessageDispatcher): New function.
  15016. (setPeerConnection): New function.
  15017. (setBtMessageFactory): New function.
  15018. (setBtRequestFactory): New function.
  15019. * src/DefaultBtMessageFactory.cc
  15020. (setCommonProperty): Set dispatcher, requestFactory, this,
  15021. peerConnection to msg.
  15022. * src/BtRegistry.h
  15023. (BT_MESSAGE_RECEIVER): New macro.
  15024. * src/PeerConnection.h
  15025. (PeerConnectionWeakHandle): New type definition.
  15026. * src/BtMessageFactory.h
  15027. (BtMessageFactoryWeakHandle): New type definition.
  15028. * src/BitfieldMan.cc
  15029. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  15030. cachedCompletedLength, cachedFilteredComletedLength,
  15031. cachedFilteredTotalLength.
  15032. Call updateCache().
  15033. (countMissingBlock): Return cachedNumMissingBlock.
  15034. (countMissingBlockNow): New function.
  15035. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  15036. (countFilteredBlockNow): New function.
  15037. (setBit): Call updateCache().
  15038. (unsetBit): Call updateCache().
  15039. (setBitfield): Call updateCache().
  15040. (clearAllBit): Call updateCache().
  15041. (setAllBit): Use setBitInternal instead of setBit.
  15042. Call updateCache().
  15043. (addFilter): Call updateCache().
  15044. (enableFilter): Call updateCache().
  15045. (disableFilter): Call updateCache().
  15046. (clearFilter): Call updateCache().
  15047. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  15048. (getFilteredTotalLengthNow): New function.
  15049. (getCompletedLength): Return cachedCompletedLength.
  15050. (getCompletedLengthNow): New function.
  15051. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  15052. (getFilteredCompletedLengthNow): New function.
  15053. (updateCache): New function.
  15054. * src/BtMessageReceiver.h
  15055. (BtMessageReceiverWeakHandle): New type definition.
  15056. * src/DefaultBtMessageReceiver.cc
  15057. (receiveHandshake): Use messageFactory member.
  15058. (sendHandshake): Use messageFactory member.
  15059. (receiveMessage): Use messageFactory member.
  15060. * src/DefaultBtMessageFactory.h
  15061. (dispatcher): New variable.
  15062. (requestFactory): New variable.
  15063. (peerConnection): New variablle.
  15064. (setBtMessageDispatcher): New function.
  15065. (setBtRequestFactory): New function.
  15066. (setPeerConnection): New function.
  15067. * src/SharedHandle.h
  15068. (RefCount): New class.
  15069. (WeakHandle): New class.
  15070. * src/PeerObject.h
  15071. (BtMessageReceiver.h): New include.
  15072. (PeerObject): Added btMessageReceiver.
  15073. (btMessageReceiver): New variable.
  15074. * src/Util.cc
  15075. (countBit): Simplified.
  15076. * src/BtCancelMessage.cc
  15077. (doReceivedAction): Use dispatcher member.
  15078. * src/BtRequestFactory.h
  15079. (BtRequestFactoryWeakHandle): New type definition.
  15080. * src/PeerStorage.h
  15081. (downloadSpeed): int -> uint32_t
  15082. (uploadSpeed): int -> uint32_t
  15083. (sessionDownloadLength): long long int -> uint64_t
  15084. (sessionUploadLength): long long int -> uint64_t
  15085. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15086. To add RecoverableException, FatalException:
  15087. * src/AbstractCommand.cc
  15088. (onAbort): Exception -> RecoverableException
  15089. * src/PeerAbstractCommand.h
  15090. (RecoverableException.h): New include.
  15091. (onAbort): Exception -> RecoverableException.
  15092. * src/PeerInteractionCommand.cc
  15093. (onAbort): Exception -> RecoverableException.
  15094. * src/PeerAbstractCommand.cc
  15095. (execute): Exception -> RecoverableException.
  15096. (onAbort): Exception -> RecoverableException.
  15097. * src/TorrentRequestInfo.cc
  15098. (execute): Exception -> RecoverableException.
  15099. * src/MetalinkRequestInfo.cc
  15100. (execute): Exception -> RecoverableException.
  15101. * src/MetaFileUtil.cc: RecoverableException.
  15102. * src/AbstractCommand.h
  15103. (onAbort): Exception -> RecoverableException.
  15104. * src/DlRetryEx.h: Exception -> RecoverableException.
  15105. * src/DlAbortEx.h: Exception -> RecoverableException.
  15106. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  15107. * src/Util.cc: Exception -> RecoverableException.
  15108. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  15109. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  15110. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  15111. To make ID static const int
  15112. * src/BtInterestedMessage.h
  15113. (ID_t): Removed.
  15114. (ID): New variable.
  15115. (getId): Made non-const.
  15116. * src/BtPieceMessage.h
  15117. (ID_t): Removed.
  15118. (ID): New variable.
  15119. (getId): Made non-const.
  15120. * src/BtChokeMessage.h
  15121. (ID_t): Removed.
  15122. (ID): New variable.
  15123. (getId): Made non-const.
  15124. * src/BtHaveAllMessage.h
  15125. (ID_t): Removed.
  15126. (ID): New variable.
  15127. (getId): Made non-const.
  15128. * src/BtKeepAliveMessage.h
  15129. (ID_t): Removed.
  15130. (ID): New variable.
  15131. (getId): Made non-const.
  15132. * src/BtHandshakeMessage.h
  15133. (ID): New variable.
  15134. (getId): Made non-const.
  15135. * src/BtSuggestPieceMessage.h
  15136. (ID_t): Removed.
  15137. (ID): New variable.
  15138. (getId): Made non-const.
  15139. * src/BtPortMessage.h
  15140. (ID_t): Removed.
  15141. (ID): New variable.
  15142. (getId): Made non-const.
  15143. * src/AbstractBtMessage.h
  15144. (id): Removed.
  15145. (AbstractBtMessage): Removed id.
  15146. (getId): Removed.
  15147. * src/BtHaveMessage.h
  15148. (ID_t): Removed.
  15149. (ID): New variable.
  15150. (getId): Made non-const.
  15151. * src/BtAllowedFastMessage.h
  15152. (ID_t): Removed.
  15153. (ID): New variable.
  15154. (getId): Made non-const.
  15155. * src/BtCancelMessage.h
  15156. (ID_t): Removed.
  15157. (ID): New variable.
  15158. (getId): Made non-const.
  15159. * src/BtNotInterestedMessage.h
  15160. (ID_t): Removed.
  15161. (ID): New variable.
  15162. (getId): Made non-const.
  15163. * src/BtChokeMessage.h
  15164. (ID_t): Removed.
  15165. (ID): New variable.
  15166. (getId): Made non-const.
  15167. * src/BtRejectMessage.h
  15168. (ID_t): Removed.
  15169. (ID): New variable.
  15170. (getId): Made non-const.
  15171. * src/BtBitfieldMessage.h
  15172. (ID_t): Removed.
  15173. (ID): New variable.
  15174. (getId): Made non-const.
  15175. * src/BtUnchokeMessage.h
  15176. (ID_t): Removed.
  15177. (ID): New variable.
  15178. (getId): Made non-const.
  15179. * src/BtRequestMessage.h
  15180. (ID_t): Removed.
  15181. (ID): New variable.
  15182. (getId): Made non-const.
  15183. * src/BtHaveMessage.h
  15184. (ID_t): Removed.
  15185. (ID): New variable.
  15186. (getId): Made non-const.
  15187. To add --force-truncate command-line option and a check whether
  15188. the file already exists:
  15189. * src/DirectDiskAdaptor.h
  15190. (getFilePath): Made virtual public.
  15191. * src/MultiDiskAdaptor.h
  15192. (File.h): New include.
  15193. (DiskWriterEntry::fileEntry): Made private.
  15194. (DiskWriterEntry::fileExists): New function.
  15195. (DiskWriterEntry::getFileEntry): New function.
  15196. (fileExists): New function.
  15197. (getFilePath): New function.
  15198. * src/TorrentRequestInfo.cc
  15199. (FatalException.h): New include.
  15200. (message.h): New include.
  15201. (RecoverableException.h): New include.
  15202. (execute): Added a check whether file is already exists or not.
  15203. * src/DiskAdaptor.h
  15204. (fileExists): New function.
  15205. (getFilePath): New function.
  15206. * src/main.cc
  15207. (showUsage): Added an explanation of --force-truncate command-line
  15208. option.
  15209. (main): Added --force-truncate command-line option.
  15210. * src/Exception.h
  15211. (setMsg): buf[256] -> buf[1024]
  15212. * src/CopyDiskWriter.h
  15213. (getFilePath): Made public virtual.
  15214. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  15215. (fileExists): New function.
  15216. * src/DownloadEngineFactory.cc
  15217. (newTorrentConsoleEngine): Don't open file here.
  15218. * src/message.h
  15219. (EX_FILE_ALREADY_EXISTS): New definition.
  15220. * src/prefs.h
  15221. (PREF_FOECE_TRUNCATE): New definition.
  15222. * src/HttpResponseCommand.cc
  15223. (handleDefaultEncoding): Added a check whether the file already exists.
  15224. * src/SegmentMan.h
  15225. (fileExists): New function.
  15226. (shouldCancelDownloadForSafety): New function.
  15227. * src/FtpNegotiateCommand.cc
  15228. (recvSize): Added a check whether the file already exists.
  15229. * src/AbstractSingleDiskAdaptor.cc
  15230. (File.h): New include.
  15231. (fileExists): New function.
  15232. * src/AbstractSingleDiskAdaptor.h
  15233. (getFilePath): Removed.
  15234. (fileExists): New function.
  15235. * src/SegmentMan.cc
  15236. (fileExists): New function.
  15237. (shouldCancelDownloadForSafety): New function.
  15238. To fix regression bug in torrent downloading:
  15239. * src/DefaultBtRequestFactory.cc
  15240. (doChokedAction): New function.
  15241. * src/DefaultBtRequestFactory.h
  15242. (doChokedAction): New function.
  15243. * src/DefaultBtMessageDispatcher.cc
  15244. (doChokedAction): Do not delete request if its target is in allowed
  15245. fast set.
  15246. * src/DefaultBtInteractive.cc
  15247. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  15248. (sendKeepAlive): Send keep alive message even if the outgoing message
  15249. queue is not empty.
  15250. (decideInterest): Simplified the code.
  15251. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  15252. it is already called when BtChokeMessage is received from a peer.
  15253. * src/BtRequestFactory.h
  15254. (doChokedAction): New function.
  15255. To clean up code:
  15256. * src/PeerInteractionCommand.h
  15257. (executeInternal): Added virtual keyword explicitly.
  15258. (prepareForRetry): Added virtual keyword explicitly.
  15259. (prepareForNextPeer): Added virtual keyword explicitly.
  15260. (onAbort): Added virtual keyword explicitly.
  15261. * src/RequestSlot.cc
  15262. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  15263. * src/BtPieceMessage.cc
  15264. (doReceivedAction): Added a debug log of piece's bitfield.
  15265. * src/Piece.h
  15266. (getBitfieldLength): New function.
  15267. * src/ByteArrayDiskWriter.cc
  15268. (clear): Added buf = 0 to avoid double free corruption.
  15269. * src/FileAllocator.cc
  15270. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  15271. Added cp.reset().
  15272. * src/BitfieldMan.h
  15273. (operator=): Rewritten.
  15274. * src/BitfieldMan.cc
  15275. (BitfieldMan): Initialized bitfield, useBitfield.
  15276. * src/PeerConnection.cc
  15277. (receiveMessage): Added a call to socket->readable() after getting
  15278. message length to avoid possible EOF.
  15279. * src/Util.cc
  15280. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  15281. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15282. To add an ability to pre-allocate file space:
  15283. * src/DirectDiskAdaptor.h: Rewritten.
  15284. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  15285. * src/MultiDiskAdaptor.h: Rewritten.
  15286. * src/DefaultPieceStorage.cc
  15287. (MultiDiskWriter.h): Removed include.
  15288. (PreAllocationDiskWriter.h): Removed include.
  15289. (FileAllocationMonitor.h): New include.
  15290. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  15291. (initStorage): Rewritten.
  15292. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15293. * src/FileAllocator.h: New class.
  15294. * src/FileAllocator.cc: New class.
  15295. * src/FileAllocationMonitor.h: New class.
  15296. * src/FileAllocationMonitor.cc: New class.
  15297. * src/ConsoleFileAllocationMonitor.h: New class.
  15298. * src/ConsoleFileAllocationMonitor.cc: New class.
  15299. * src/AbstractSingleDiskAdaptor.h: New class.
  15300. * src/AbstractSingleDiskAdaptor.cc: New class.
  15301. * src/DiskAdaptor.h
  15302. (Directory.h): Removed include.
  15303. (DiskWriter.h): Removed include.
  15304. (FileEntry.h): Removed include.
  15305. (diskWriter): Removed.
  15306. (DiskAdaptor): Removed diskWriter.
  15307. (openFile): Made pure virtual.
  15308. (closeFile): Made pure virtual.
  15309. (openExistingFile): Made pure virtual.
  15310. (initAndOpenFile): Made pure virtual.
  15311. (writeData): Made pure virtual.
  15312. (readData): Made pure virtual.
  15313. (sha1Sum): Made pure virtual.
  15314. (getStoreDir): Returns const reference of storeDir.
  15315. (DiskAdaptorHandle): New type definition.
  15316. * src/main.cc
  15317. (ConsoleFileAllocationMonitor.h): New include.
  15318. (showUsage): Added default value description of -s option.
  15319. Added the description of --file-allocation option.
  15320. (main): Set default value of --file-allocation option to 'none'.
  15321. Added --file-allocation command-line option.
  15322. Setup FileAllocationMonitorFactory.
  15323. * src/FtpInitiateConnectionCommand.cc
  15324. (executeInternal): Removed diskWriter related processing, which was
  15325. moved to FtpNegotiationCommand.cc.
  15326. * src/DirectDiskAdaptor.cc
  15327. (getFilePath): Made non-const.
  15328. * src/CopyDiskAdaptor.h
  15329. (DiskAdaptor.h): Removed include.
  15330. (DiskWriter.h): Removed include.
  15331. (AbstractSingleDiskAdaptor.h): New include.
  15332. (getFilePath): Made non-const. Added virtual keyword.
  15333. (CopyDiskAdaptor): Removed diskWriter.
  15334. (getTempFile): Returns const reference.
  15335. (CopyDiskAdaptorHandle): New type definition.
  15336. * src/ByteArrayDiskWriter.cc
  15337. (clear): Simplified.
  15338. (initAndOpenFile): Rewritten.
  15339. (openFile): Call initAndOpenFile()
  15340. * src/MultiDiskAdaptor.cc: Rewritten.
  15341. * src/DownloadEngineFactory.cc
  15342. (FileAllocator.h): New include.
  15343. (FileAllocationMonitor.h): New include.
  15344. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  15345. create DefaultDiskWriter with file allocator.
  15346. * src/DiskWriter.h
  15347. (initAndOpenFile): Added totalLength argument.
  15348. (openFile): Added totalLength argument.
  15349. * src/prefs.h
  15350. (PREF_FILE_ALLOCATION): New definition.
  15351. (V_PREALLOC): New definition.
  15352. (V_NONE): New definition.
  15353. * src/HttpResponseCommand.cc
  15354. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  15355. size.
  15356. * src/FtpNegotiateCommand.cc
  15357. (Util.h): New include.
  15358. (recvSize): Open file here.
  15359. * src/Util.h
  15360. (ullitos): New function.
  15361. * src/CopyDiskWriter.h
  15362. (getFilePath): Made non-const.
  15363. * src/DefaultDiskWriter.h
  15364. (Option.h): New include.
  15365. (totalLength): Removed.
  15366. (DefaultDiskWriter): Removed totalLength.
  15367. (initAndOpenFile): Added totalLength argument.
  15368. (DefaultDiskWriterHandle): New type definition.
  15369. (createNewDiskWriter): New function.
  15370. * src/Util.cc
  15371. (ullitos): New function.
  15372. * src/DefaultDiskWriter.cc
  15373. (message.h): New include.
  15374. (FileAllocator.h): New include.
  15375. (prefs.h): New include.
  15376. (Util.h): New include.
  15377. (DefaultDiskWriter): Removed totalLength.
  15378. (initAndOpenFile): Added file allocation.
  15379. (createNewDiskWriter): New function. Just for temporary solution.
  15380. It will be rewritten later.
  15381. * src/DiskAdaptor.cc
  15382. (DiskAdaptor): Removed diskWriter.
  15383. * src/AbstractDiskWriter.cc
  15384. (LogFactory.h): New include.
  15385. (AbstractDiskWriter): Added fileAllocator, logger.
  15386. (openFile): Added totalLength argument.
  15387. * src/AbstractDiskWriter.h
  15388. (FileAllocator.h): New include.
  15389. (Logger.h): New include.
  15390. (fileAllocator): New variable.
  15391. (logger): New variable.
  15392. (openFile): Added totalLength argument. Added virtual keyword
  15393. explicitly.
  15394. (openExistingFile): Added totalLength argument. Added virtual keyword
  15395. explicitly.
  15396. (closeFile): Added virtual keyword explicitly.
  15397. (sha1Sum): Added virtual keyword explicitly.
  15398. (writeData): Added virtual keyword explicitly.
  15399. (readData): Added virtual keyword explicitly.
  15400. (setFileAllocator): New function.
  15401. * src/DefaultPieceStorage.h
  15402. (FileAllocator.h): New include.
  15403. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15404. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15405. * src/FileProgressMonitor.h: New class.
  15406. To compile aria2 on PC-BSD:
  15407. * src/DefaultBtContext.cc
  15408. (libgen.h): New include.
  15409. To fix memory leak:
  15410. * src/Exception.h
  15411. (~Exception): Delete cause. Fixed memory leak.
  15412. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15413. Rewritten a portion of bittorrent implementation:
  15414. * src/BtMessageValidator.h: New class.
  15415. * src/BtBitfieldMessageValidator.h: New class.
  15416. * src/BtHandshakeMessageValidator.h: New class.
  15417. * src/BtRequestMessageValidator.h: New class.
  15418. * src/BtSuggestPieceMessageValidator.h: New class.
  15419. * src/BtAllowedFastMessageValidator.h: New class.
  15420. * src/BtRejectMessageValidator.h: New class.
  15421. * src/BtCancelMessageValidator.h: New class.
  15422. * src/BtPieceMessageValidator.h: New class.
  15423. * src/BtHaveMessageValidator.h: New class.
  15424. * src/BtEventListener.h: New class.
  15425. * src/AbstractBtEventListener.h: New class.
  15426. * src/BtEvent.h: New class.
  15427. * src/BtChokingEvent.h: New class.
  15428. * src/BtChokedEvent.h: New class.
  15429. * src/BtCancelSendingPieceEvent.h: New class.
  15430. * src/BtAbortOutstandingRequestEvent.h: New class.
  15431. * src/Randomizer.h: New class.
  15432. * src/SimpleRandomizer.h: New class.
  15433. * src/BtMessage.h: New class.
  15434. * src/AbstractBtMessage.h: New class.
  15435. * src/SimpleBtMessage.h: New class.
  15436. * src/BtHaveMessage.h: New class.
  15437. * src/BtInterestedMessage.h: New class.
  15438. * src/BtAllowedFastMessage.h: New class.
  15439. * src/BtUnchokeMessage.h: New class.
  15440. * src/BtCancelMessage.h: New class.
  15441. * src/BtNotInterestedMessage.h: New class.
  15442. * src/BtChokeMessage.h: New class.
  15443. * src/BtHaveNoneMessage.h: New class.
  15444. * src/BtHandshakeMessage.h: New class.
  15445. * src/BtSuggestPieceMessage.h: New class.
  15446. * src/BtHaveMessage.h: New class.
  15447. * src/BtPieceMessage.h: New class.
  15448. * src/BtHaveAllMessage.h: New class.
  15449. * src/BtKeepAliveMessage.h: New class.
  15450. * src/BtPortMessage.h: New class.
  15451. * src/BtRejectMessage.h: New class.
  15452. * src/BtBitfieldMessage.h: New class.
  15453. * src/BtRequestMessage.h: New class.
  15454. * src/DefaultBtRequestFactory.h: New class.
  15455. * src/DefaultBtMessageReceiver.h: New class.
  15456. * src/BtInteractive.h: New class.
  15457. * src/BtMessageDispatcher.h: New class.
  15458. * src/DefaultBtMessageDispatcher.h: New class.
  15459. * src/DefaultBtInteractive.h: New class.
  15460. * src/BitfieldManFactory.h: New class.
  15461. * src/HandleRegistry.h: New class.
  15462. * src/BtMessageFactory.h: New class.
  15463. * src/BtMessageReceiver.h: New class.
  15464. * src/DefaultBtMessageFactory.h: New class.
  15465. * src/PeerObject.h: New class.
  15466. * src/BtRequestFactory.h: New class.
  15467. * src/SuggestPieceMessage.h: Removed.
  15468. * src/PortMessage.h: Removed.
  15469. * src/SuggestPieceMessage.h: Removed.
  15470. * src/KeepAliveMessage.h: Removed.
  15471. * src/HandshakeMessage.h: Removed.
  15472. * src/PeerInteraction.h: Removed.
  15473. * src/UnchokeMessage.h: Removed.
  15474. * src/PieceMessage.h: Removed.
  15475. * src/RequestMessage.h: Removed.
  15476. * src/InterestedMessage.h: Removed.
  15477. * src/HaveMessage.h: Removed.
  15478. * src/CancelMessage.h: Removed.
  15479. * src/RejectMessage.h: Removed.
  15480. * src/AllowedFastMessage.h: Removed.
  15481. * src/HaveNoneMessage.h: Removed.
  15482. * src/SimplePeerMessage.h: Removed.
  15483. * src/HaveAllMessage.h: Removed.
  15484. * src/BitfieldMessage.h: Removed.
  15485. * src/PeerMessageFactory.h: Removed.
  15486. * src/NotInterestedMessage.h: Removed.
  15487. * src/ChokeMessage.h: Removed.
  15488. * src/PeerMessage.h: Removed.
  15489. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15490. To know root cause of exception:
  15491. * src/Exception.h
  15492. (cause): New variable.
  15493. (Exception): Added a parameter.
  15494. (getMsg): Return const reference to msg.
  15495. (getCause): New function.
  15496. * src/DlRetryEx.h
  15497. (DlRetryEx): Added a parameter 'cause'.
  15498. Added an overloaded constructor.
  15499. (DlAbortEx): Added a parameter 'cause'.
  15500. Added an overloaded constructor.
  15501. * src/SimpleLogger.cc
  15502. (writeLog): Log nested exception messages recursively.
  15503. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15504. * src/DefaultBtProgressInfoFile.cc
  15505. (load): Fixed memory leak when the infohash doesn't match.
  15506. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15507. * src/DefaultPeerStorage.cc
  15508. (calculateStat): Simplified the code by combining 2 loops into 1.
  15509. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15510. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  15511. for BitTorrent download:
  15512. * src/PeerAbstractCommand.cc
  15513. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  15514. * src/main.cc:
  15515. (timeoutSpecified): Removed.
  15516. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  15517. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  15518. * src/TorrentRequestInfo.cc
  15519. (timeoutSpecified): Removed.
  15520. (torrentHandler): Removed timeoutSpecified and the adjustment of
  15521. timeout value.
  15522. * src/prefs.h
  15523. (PREF_BT_TIMEOUT): New definition.
  15524. Delete unused variables:
  15525. * src/TorrentRequestInfo.cc
  15526. (requestInfo): Removed.
  15527. Move setSignalHander to Util::setGlobalSignalHandler:
  15528. * src/TorrentRequestInfo.cc:
  15529. setSignalHander -> Util::setGlobalSignalHandler
  15530. * src/main.cc
  15531. (setSignalHander): Removed.
  15532. (main): setSignalHander -> Util::setGlobalSignalHandler
  15533. * src/Util.h
  15534. (setGlobalSignalHandler): New function.
  15535. * src/Util.cc
  15536. (setGlobalSignalHandler): New function.
  15537. * src/UrlRequestInfo.cc:
  15538. setSignalHander -> Util::setGlobalSignalHandler
  15539. Reset peer status in order to exit gracefully:
  15540. * src/PeerAbstractCommand.cc
  15541. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  15542. To fix the bug that causes the number of bytes uploaded is not saved
  15543. to .aria2 file:
  15544. * src/DefaultPeerStorage.h
  15545. (removedPeerSessionDownloadLength): New variable.
  15546. (removedPeerSessionUploadLength): New variable.
  15547. * src/DefaultPeerStorage.cc
  15548. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  15549. removedPeerSessionUploadLength(0).
  15550. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  15551. through all peers, and then add removedPeerSessionDownloadLength(
  15552. removedPeerSessionUploadLength) to it.
  15553. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  15554. (to) the peer to removedPeerSessionDownloadLength
  15555. (removedPeerSessionUploadLength).
  15556. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15557. To add Metalink location option:
  15558. * src/MetalinkRequestInfo.cc
  15559. (execute): Call MetalinkEntry::setLocationPreference()
  15560. * src/main.cc
  15561. (showUsage): Added the help message for --metalink-location option.
  15562. (main): Added --metalink-location option.
  15563. * src/prefs.h
  15564. (PREF_METALINK_LOCATION): New definition.
  15565. * src/MetalinkEntry.cc
  15566. (AddLocationPreference): New function object.
  15567. (setLocationPreference): New function.
  15568. * src/Xml2MetalinkProcessor.cc
  15569. (getResource): Set location attribute to MetalinkResource
  15570. To show URLs to download
  15571. * src/UrlRequestInfo.h
  15572. (printUrls): New function.
  15573. To add multiple <file> Metalink support:
  15574. * src/MetalinkEntry.h
  15575. (MetalinkResources): Removed.
  15576. (setLocationPreference): New function.
  15577. (MetalinkEntryHandle): New type definition.
  15578. (MetalinkEntries): New type definition.
  15579. * src/Xml2MetalinkProcessor.h
  15580. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15581. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15582. (parseFile): Metalinker* -> MetalinkerHandle
  15583. * src/UrlRequestInfo.h
  15584. (execute): RequestInfo* -> RequestInfos
  15585. * src/MetalinkRequestInfo.cc
  15586. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  15587. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  15588. (execute): RequestInfo* -> RequestInfos
  15589. Added multiple <file> support. Print filename when it is queued.
  15590. * src/MetalinkRequestInfo.h
  15591. (execute): RequestInfo* -> RequestInfos
  15592. (getDownloadEngine): Removed.
  15593. * src/RequestInfo.h
  15594. (RequestInfoHandle): New type definition.
  15595. (RequestInfos): New type definition.
  15596. (execute): RequestInfo* -> RequestInfos
  15597. (getDownloadEngine): Removed.
  15598. * src/MetalinkResource.h
  15599. (MetalinkResourceHandle): New type definition.
  15600. (MetalinkResources): New type definition.
  15601. * src/MetalinkEntry.cc
  15602. (~MetalinkEntry): Removed the deletion of the elements of resources,
  15603. because the element is now of type MetalinkResourceHandle.
  15604. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  15605. (Supported): MetalinkResource* -> MetalinkResourceHandle
  15606. (dropUnsupportedResource): Removed the deletion of the elements of
  15607. resources because the element is now of type MetalinkResourceHandle.
  15608. * src/Xml2MetalinkProcessor.cc
  15609. (parseFile): Metalinker* -> MetalinkerHandle
  15610. MetalinkEntry* -> MetalinkEntryHandle
  15611. Removed try-catch block.
  15612. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15613. MetalinkResource* -> MetalinkResourceHandle
  15614. Removed try-catch block.
  15615. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15616. Free result by using xmlXPathFreeObject()
  15617. * src/Metalinker.cc
  15618. (~Metalinker): Removed the deletion of entries.
  15619. MetalinkEntry* -> MetalinkEntryHandle
  15620. (queryEntry): Add multiple <file> Metalink support.
  15621. * src/Metalinker.h
  15622. (MetalinkEntries): Removed.
  15623. (queryEntry): MetalinkEntry* -> MetalinkEntries
  15624. * src/MetalinkProcessor.h
  15625. (parseFile): Metalinker* -> MetalinkerHandle
  15626. Bug fixes:
  15627. * src/PeerChokeCommand.cc
  15628. (execute): cat01->cat02
  15629. * src/DefaultPieceStorage.cc
  15630. (DefaultPieceStorage): Added diskAdaptor(0)
  15631. * src/TrackerWatcherComand.cc:
  15632. (execute): Use btAnnounce->noMoreAnnounce()
  15633. to determin whether the function returns true or not.
  15634. * src/TrackerUpdateCommand.cc:
  15635. (execute): Use btAnnounce->noMoreAnnounce()
  15636. to determin whether the function returns true or not.
  15637. * src/FtpConnection.cc
  15638. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  15639. This is the fix of the busy loop bug.
  15640. * src/DownloadCommand.cc
  15641. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  15642. cached PeerStat.
  15643. The value of "name" entry in torrent file is now set by
  15644. *DiskAdaptor::setTopDir(...) methods.
  15645. * src/MultiDiskAdaptor.h
  15646. (topDir): New variable.
  15647. (setTopDir): New function.
  15648. (getTopDir): New function.
  15649. * src/MultiDiskAdaptor.cc
  15650. (getFilePath): Concat storDir, "/" and topDir.
  15651. (mkdir): Use getFilePath() to get the directory path for output.
  15652. * src/DefaultPieceStorage.cc
  15653. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  15654. CopyDiskAdaptor.
  15655. * src/CopyDiskAdaptor.h
  15656. (topDir): New variable.
  15657. (setTopDir): New function.
  15658. (getTopDir): New function.
  15659. * src/CopyDiskAdaptor.cc
  15660. (fixFilename): Updated.
  15661. Misc
  15662. * src/UrlRequestInfo.h
  15663. (e): Removed.
  15664. (UrlRequestInfo): Removed e.
  15665. (getDownloadEngine): Removed.
  15666. * src/UrlRequestInfo.cc
  15667. (handler): Rewritten.
  15668. (printUrls): New function.
  15669. (execute): Call printUrls().
  15670. * src/HandshakeMessage.cc
  15671. (check): peerinteraction->getBtContext() -> btContext
  15672. * src/PeerInteraction.h
  15673. (getBtContext): Removed.
  15674. * src/TorrentRequestInfo.h
  15675. (execute): RequestInfo* -> RequestInfos
  15676. (getDownloadEngine): Removed.
  15677. * src/TorrentRequestInfo.cc
  15678. (haltRequested): Removed.
  15679. (btHaltRequested): New variable.
  15680. (torrentHandler): haltRequested -> btHaltRequested
  15681. (execute): RequestInfo* -> RequestInfos
  15682. * src/TorrentConsoleDownloadEngine.cc
  15683. (afterEachIteration): haltRequested -> btHaltRequested.
  15684. * src/ConsoleDownloadEngine.h
  15685. (initStatistics): Added virtual.
  15686. (calculateStatistics): Added virtual.
  15687. (onEndOfRun): Added virtual.
  15688. (afterEachIteration): Added virtual.
  15689. * src/ConsoleDownloadEngine.cc
  15690. (haltRequested): New variable.
  15691. (afterEachIteration): New function.
  15692. * src/main.cc
  15693. (requestInfo): Removed.
  15694. * src/SegmentMan.cc
  15695. (findSlowerSegmentEntry): Refactored.
  15696. * Release 0.9.0
  15697. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15698. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15699. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15700. * src/TorrentMan.h: Removed.
  15701. * src/TorrentMan.cc: Removed.
  15702. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15703. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15704. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15705. * src/PeerAbstractCommand.cc: Use btRuntime.
  15706. * src/BtContextAwareCommand.h: New class.
  15707. * src/FileEntry.h: Added accessor methods for following variables.
  15708. (path): Made private.
  15709. (length): Made private.
  15710. (offset): Made private.
  15711. (extracted): Made private.
  15712. (requested): Made private.
  15713. (FileEntries): New definition.
  15714. (FileEntryHandle): New definition.
  15715. * src/FileEntry.cc: New file.
  15716. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15717. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15718. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15719. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15720. * src/PieceStorage.h: New file.
  15721. * src/PeerInteractionCommand.h: Use btContext.
  15722. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15723. btRuntime.
  15724. * src/DefaultBtProgressInfoFile.h: New file.
  15725. * src/DefaultBtProgressInfoFile.cc: New file.
  15726. * src/File.cc
  15727. (Util.h): New include.
  15728. (mkdirs): New function.
  15729. * src/MultiDiskAdaptor.h
  15730. (mkdir): New function.
  15731. * src/PeerListProcessor.h
  15732. (Peers): Removed.
  15733. * src/PeerInteraction.h
  15734. (torrentMan): Removed.
  15735. (btContext): New variable.
  15736. (peerStorage): New variable.
  15737. (pieceStorage): New variable.
  15738. (btAnnounce): New variable.
  15739. (getTorrentMan): Removed.
  15740. (getBtContext): New function.
  15741. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15742. btAnnounce.
  15743. * src/HandshakeMessage.h
  15744. (TorrentMan.h): Removed.
  15745. * src/HandshakeMessage.cc: Use btContext.
  15746. * src/DefaultBtAnnounce.cc: New file.
  15747. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  15748. * src/DefaultPieceStorage.cc: New file.
  15749. * src/DefaultBtContext.h: New file.
  15750. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  15751. Use the accessor methods of FileEntry.
  15752. * src/CookieBox.cc: Updated to use Util::slice().
  15753. * src/PieceMessage.cc: Use btContext, pieceStorage.
  15754. * src/common.h (SharedHandle.h): New include.
  15755. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  15756. pieceStorage.
  15757. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  15758. * src/DiskAdaptor.h
  15759. (topDir): Removed.
  15760. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  15761. (setTopDir): Removed.
  15762. (getTopDir): Removed.
  15763. * src/BtContext.h: New file.
  15764. * src/DefaultPeerStorage.h: New file.
  15765. * src/PieceMessage.h (TorrentMan.h): Removed.
  15766. * src/RequestMessage.h (TorrentMan.h): Removed.
  15767. * src/TorrentDownloadEngine.h
  15768. (uploadLength): New variable.
  15769. (btContext): New variable.
  15770. (btRuntime): New variable.
  15771. (pieceStorage): New variable.
  15772. (peerStorage): New variable.
  15773. (btAnnounce): New variable.
  15774. (btProgressInfoFile): New variable.
  15775. (torrentMan): Removed.
  15776. (setBtContext): New function.
  15777. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  15778. peerStorage, btAnnounce, btProgressInfoFile.
  15779. * src/Piece.h
  15780. (toString): New function.
  15781. (Pieces): New type definition.
  15782. * src/Peer.h
  15783. (active): New variable.
  15784. (Peer): Added active.
  15785. (activate): Set active to true.
  15786. (deactivate): Set active to false.
  15787. (isActive): New function.
  15788. (Peers): New type definition.
  15789. * src/DirectDiskAdaptor.cc
  15790. (getFilePath): Use the accessor methods of FileEntry.
  15791. * src/TorrentConsoleDownloadEngine.h
  15792. (afterEachIteration): New function.
  15793. * src/TorrentConsoleDownloadEngine.cc
  15794. (haltRequested): New variable.
  15795. (sendStatistics): Use pieceStorage, btRuntime.
  15796. (afterEachIteration): New function.
  15797. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  15798. * src/Directry.h
  15799. (Directory): New function.
  15800. (DirectoryHandle): New type definition.
  15801. * src/BtProgressInfoFile.h: New file.
  15802. * src/RequestMessage.cc: Use pieceStorage.
  15803. * src/BtRuntime.h: New file.
  15804. * src/DefaultBtContext.cc: New file.
  15805. * src/BitfieldMan.h
  15806. (getCompletedLength): New function(private).
  15807. (getCompletedLength): New function.
  15808. (getFilteredCompletedLength): New function.
  15809. * src/BitfieldMan.h
  15810. (getCompletedLength): New function(private).
  15811. (getCompletedLength): New function.
  15812. (getFilteredCompletedLength): New function.
  15813. * src/MultiDiskAdaptor.cc
  15814. (mkdir): New function.
  15815. (openFile): Call mkdir().
  15816. (initAndOpenFile): Call mkdir().
  15817. * src/CancelMessage.h
  15818. (TorrentMan.h): Removed.
  15819. * src/RejectMessage.h
  15820. (TorrentMan.h): Removed.
  15821. * src/DownloadEngineFactory.cc
  15822. (DefaultPieceStorage.h): New include.
  15823. (DefaultPeerStorage.h): New include.
  15824. (DefaultBtAnnounce.h): New include.
  15825. (DefaultBtProgressInfoFile.h): New include.
  15826. (newTorrentConsoleEngine): Rewritten.
  15827. * src/ShareRatioSeedCriteria.h
  15828. (torrentMan): Removed.
  15829. (btContext): New variable.
  15830. (peerStorage): New variable.
  15831. (btRuntime): New variable.
  15832. (evaluate): Use btContext, btRuntime, peerStorage.
  15833. * src/AnnounceTier.h: New file.
  15834. * src/BtAnnounce.h: New file.
  15835. * src/BtRegistry.h: New file.
  15836. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15837. * src/PeerConnection.h (TorrentMan.h): Removed.
  15838. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15839. * src/Util.h
  15840. (slice): Added an argument.
  15841. * src/Util.cc
  15842. (slice): Added an argument to control whether trim is made or not.
  15843. * src/PeerStorage.h: New file.
  15844. * src/BtRegistry.cc: New file.
  15845. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15846. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15847. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15848. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15849. * src/TorrentRequestInfo.h
  15850. (e): Removed.
  15851. (showFileEntry): Added an argument.
  15852. (getDownloadEngine): Return 0.
  15853. * src/DefaultBtAnnounce.h: New file.
  15854. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15855. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15856. * src/PeerMessageFactory.h
  15857. (btContext): New variable.
  15858. (pieceStorage): New variable.
  15859. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15860. btAnnounce.
  15861. * src/DiskAdaptor.cc
  15862. (DiskAdaptor): Removed topDir.
  15863. (~DiskAdaptor): Removed topDir.
  15864. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15865. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15866. * src/File.h (mkdirs): New function.
  15867. * src/DefaultPeerStorage): New file.
  15868. * src/DownloadEngineFactory.h
  15869. (newTorrentConsoleEngine): Use btContext.
  15870. * src/BtContextAwareCommand.cc: New file.
  15871. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15872. * src/PeerMessage.h
  15873. (btContext): New variable.
  15874. (peerStorage): New variable.
  15875. (pieceStorage): New variable.
  15876. (setBtContext): New function.
  15877. * src/Directry.cc
  15878. (Directory): New function.
  15879. (createDir): Do nothing if name.size() == 0.
  15880. * src/AnnounceList.h
  15881. (AnnounceTier): Removed.
  15882. (AnnounceTiers): Removed.
  15883. * src/DefaultPieceStorage.h: New file.
  15884. * src/Piece.cc (toString): New function.
  15885. To fix typo:
  15886. * src/main.cc (showVersion): Fixed typo.
  15887. To fix compile warning:
  15888. * src/DelegatingPeerListProcessor.cc
  15889. (canHandle): Added "return false".
  15890. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15891. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15892. make the process of announce request testable.
  15893. * src/TrackerWatcherCommand.h
  15894. (TimeA2.h): Removed.
  15895. (interval): Removed.
  15896. (checkPoint): Removed.
  15897. (createRequestCommand): Added an argument 'url'.
  15898. (TrackerWatherCommand): Removed interval.
  15899. (createCommand): New function.
  15900. * src/DownloadEngineFactory.cc
  15901. (newTorrentConsoleEngine): Updated according to the changes in
  15902. TrackerWatherCommand.
  15903. * src/TorrentMan.cc
  15904. (DelegatingPeerListProcessor.h): New includes.
  15905. (TorrentMan): Added the initialization of announceInterval.
  15906. (isStoppedAnnounceReady): New function.
  15907. (isCompletedAnnounceReady): New function.
  15908. (isDefaultAnnounceReady): New function.
  15909. (isAnnounceReady): New function.
  15910. (getAnnounceUrl): New function.
  15911. (announceStart): New function.
  15912. (announceFailure): New function.
  15913. (announceSuccess): New function.
  15914. (isAllAnnounceFailed): New function.
  15915. (resetAnnounce): New function.
  15916. (processAnnounceResponse): New function.
  15917. (needMorePeerConnection): New function.
  15918. (noMoreAnnounce): New function.
  15919. * src/TrackerUpdateCommand.h
  15920. (getTrackerResponse): int->size_t
  15921. * src/TorrentMan.h
  15922. (isStoppedAnnounceReady): New function.
  15923. (isCompletedAnnounceReady): New function.
  15924. (isDefaultAnnounceReady): New function.
  15925. (announceInterval): New variable.
  15926. (isAnnounceReady): New function.
  15927. (getAnnounceUrl): New function.
  15928. (announceStart): New function.
  15929. (announceFailure): New function.
  15930. (announceSuccess): New function.
  15931. (isAllAnnounceFailed): New function.
  15932. (resetAnnounce): New function.
  15933. (processAnnounceResponse): New function.
  15934. (needMorePeerConnection): New function.
  15935. (noMoreAnnounce): New function.
  15936. * src/TrackerWatcherCommand.cc
  15937. (TrackerWatherCommand): Removed interval and checkPoint.
  15938. (execute): Rewritten.
  15939. (createCommand): New function.
  15940. (createRequestCommand): Rewritten.
  15941. * src/TrackerUpdateCommand.cc
  15942. (MetaFileUtil.h): Removed.
  15943. (DelegatingPeerListProcessor.h): Removed.
  15944. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15945. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15946. Request -> RequestHandle:
  15947. * src/HttpResponseCommand.h: Request->RequestHandle
  15948. * src/AbstractCommand.cc: Request->RequestHandle
  15949. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15950. * src/HttpRequestCommand.cc: Request->RequestHandle
  15951. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15952. * src/AbstractCommand.h: Request->RequestHandle
  15953. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15954. * src/HttpResponseCommand.cc: Request->RequestHandle
  15955. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15956. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15957. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15958. * src/HttpConnection.h: Request->RequestHandle
  15959. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15960. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15961. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15962. * src/DownloadCommand.h: Request->RequestHandle
  15963. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15964. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15965. * src/HttpRequestCommand.h: Request->RequestHandle
  15966. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15967. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15968. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15969. * src/HttpDownloadCommand.h: Request->RequestHandle
  15970. * src/FtpConnection.cc: Request->RequestHandle
  15971. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15972. * src/UrlRequestInfo.cc: Request->RequestHandle
  15973. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15974. * src/HttpConnection.h: Request->RequestHandle
  15975. * src/DownloadCommand.cc: Request->RequestHandle
  15976. * src/FtpConnection.h: Request->RequestHandle
  15977. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15978. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15979. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15980. * src/Request.h
  15981. (SharedHandle.h): New include.
  15982. (RequestHandle): New type definition.
  15983. (Requests): Redefined.
  15984. To add MULTITRACKER support:
  15985. * src/TrackerWatcherCommand.h
  15986. (createRequestCommand): New function.
  15987. * src/DownloadEngineFactory.cc
  15988. (newTorrentConsoleEngine): Removed req.
  15989. * src/prefs.h
  15990. (PREF_TRACKER_MAX_TRIES): New definition.
  15991. * src/TorrentMan.cc
  15992. (TorrentMan): Removed req. Added trackerNumTry.
  15993. (~TorrentMan): Removed req.
  15994. (setupInternal1): Added announceList.
  15995. * src/TorrentRequestInfo.cc
  15996. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15997. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15998. * src/main.cc
  15999. (main): Added PREF_TRACKER_MAX_TRIES.
  16000. * src/TorrentMan.h
  16001. (Request.h): Removed.
  16002. (AnnounceList.h): New include.
  16003. (trackerNumTry): New variable.
  16004. (req): Removed.
  16005. (announceList): New variable.
  16006. * src/TrackerWatcherCommand.cc
  16007. (execute): Rewritten.
  16008. (createRequestCommand): New function.
  16009. * src/TrackerUpdateCommand.cc
  16010. (execute): Updated with the use of AnnounceList.
  16011. * src/AnnounceList.cc: New class.
  16012. * src/AnnounceList.h: New class.
  16013. To fix typo:
  16014. * src/prefs.h
  16015. (PREF_MAX_TRIES): max_try->max_tries
  16016. To not to decode "+" as space in URL decode:
  16017. * src/Util.cc
  16018. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  16019. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16020. To add timeout to async name resolution:
  16021. * src/AbstractCommand.h
  16022. (nameResolveFinished): New function. This is not elegant way. It needs
  16023. to be more refined.
  16024. (nameResolverCheck): New variable.
  16025. * src/AbstractCommand.cc
  16026. (AbstractCommand): Added nameResolverCheck.
  16027. (execute): Added the check whether the name resolution has finished.
  16028. (setNameResolverCheck): Set nameResolverCheck to true.
  16029. (disableNameResolverCheck): Set nameResolverCheck to false.
  16030. (nameResolverFinished): New function.
  16031. * src/FtpInitiateConnectionCommand.h
  16032. (nameResolverFinished): New function.
  16033. * src/FtpInitiateConnectionCommand.cc
  16034. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  16035. * src/HttpInitiateConnectionCommand.h
  16036. (nameResolverFinished): New function.
  16037. * src/HttpInitiateConnectionCommand.cc
  16038. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  16039. * src/prefs.h
  16040. (PREF_DNS_TIMEOUT): New definition.
  16041. * src/main.cc
  16042. (main): Added PREF_DNS_TIMEOUT.
  16043. To add the support for a non-compact response from a tracker:
  16044. * src/PeerListProcessor.h: New class.
  16045. * src/DefaultPeerListProcessor.h: New class.
  16046. * src/DefaultPeerListProcessor.cc: New class.
  16047. * src/CompactPeerListProcessor.h: New class.
  16048. * src/CompactPeerListProcessor.cc: New class.
  16049. * src/DelegatingPeerListProcessor.h: New class.
  16050. * src/DelegatingPeerListProcessor.cc: New class.
  16051. * src/TorrentMan.cc
  16052. (addPeer): New function(overload).
  16053. (addPeer): Delete unused peers only when new peer is added.
  16054. * src/TorrentMan.h
  16055. (PeerListProcessor.h): Included.
  16056. (Peers): Removed.
  16057. (addPeer): New function(overload).
  16058. * src/TrackerUpdateCommand.cc
  16059. (netinet/in.h): Removed.
  16060. (DelegatingPeerListProcessor.h): Included.
  16061. (execute): Updated to use DelegatingPeerListProcessor.
  16062. To fix the memory leak in TorrentMan::peers:
  16063. * src/PeerAbstractCommand.cc
  16064. (onAbort): Added peer->resetStatus().
  16065. * src/Peer.h
  16066. (resetStatus): Made public.
  16067. To improve the precision of the speed calculation:
  16068. * src/SpeedCalc.h
  16069. (nextInterval): New variable.
  16070. * src/SpeedCalc.cc
  16071. (reset): Added nextInterval.
  16072. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  16073. (changeSw): Set nextInterval to 15 seconds relative to the current
  16074. instant time.
  16075. * src/main.cc
  16076. (showVersion): Updated.
  16077. (showUsage): Updated.
  16078. * Release 0.8.1
  16079. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16080. * src/main.cc
  16081. (showUsage): Commented out --min-segment-size option.
  16082. (main): Commented out --min-segment-size option.
  16083. * Release 0.8.0
  16084. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16085. * src/*.{h,cc}:
  16086. Added an exception to the license which allows linking with OpenSSL.
  16087. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16088. * src/AbstractCommand.cc
  16089. (execute): Check whether the download has finished before checking
  16090. socket status.
  16091. Return true if peerStat->getStatus() == REQUEST_IDLE.
  16092. Do not exit even if no segment is available.
  16093. * src/prefs.h
  16094. (PREF_STARTUP_IDLE_TIME): New definition.
  16095. * src/PeerInteractionCommand.cc
  16096. (executeInternal): Removed max speed limit. Because it performs bad.
  16097. (receiveMessages): Added max speed limit. This was better than above,
  16098. but still a little bit to be desired. Sometimes the download speed
  16099. became much faster than I specified.
  16100. * src/SpeedCalc.h
  16101. (start): New variable.
  16102. (accumulatedLength): New variable.
  16103. (getAvgSpeed): New function.
  16104. * src/SpeedCalc.cc
  16105. (reset): Added start, accumulatedLength.
  16106. (update): Added calculation of an average speed.
  16107. (getAvgSpeed): New function.
  16108. * src/DownloadCommand.h
  16109. (sw): Removed.
  16110. * src/main.cc
  16111. (main): Added PREF_STARTUP_IDLE_TIME.
  16112. * src/PeerStat.h
  16113. (STATUS): Added REQUEST_IDLE.
  16114. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  16115. (getAvgDownloadSpeed): New function
  16116. (requestIdle): New function.
  16117. * src/SegmentMan.h
  16118. (SegmentEntryHandle): New type definition.
  16119. (SegmentEntries): Now holds SegmentEntryHandle.
  16120. (findSlowerSegmentEntry): New funtion.
  16121. * src/SegmentMan.cc
  16122. (save): Updated according to the changes in SegmentEntries.
  16123. (read): Updated according to the changes in SegmentEntries.
  16124. (FindSegmentEntryByIndex): Updated according to the changes in
  16125. SegmentEntries.
  16126. (FindSegmentEntryByCuid): Updated according to the changes in
  16127. SegmentEntries.
  16128. (checkoutSegment): Updated according to the changes in SegmentEntries.
  16129. (onNullBitfield): Updated according to the changes in SegmentEntries.
  16130. Renamed uitr as itr.
  16131. (findSlowerSegmentEntry): New function.
  16132. (getSegment): Updated according to the changes in SegmentEntries.
  16133. Added the feature that cancels the segment with slow server and fast
  16134. one takes it over.
  16135. (cancelSegment): Updated according to the changes in SegmentEntries.
  16136. (getDownloadLength): Updated according to the changes in
  16137. SegmentEntries.
  16138. (init): Assigned 0 to bitfield after deleting it.
  16139. * src/DownloadCommand.cc
  16140. (STARTUP_IDLE_TIME): Removed.
  16141. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  16142. * src/PeerChokeCommand.cc
  16143. (optUnchokingPeer): Updated according to the changes in Peer.
  16144. (ResetDelta): Removed.
  16145. (UploadFaster): Updated according to the changes in Peer.
  16146. (DownloadFaster): Updated according to the changes in Peer.
  16147. (execute): I clarify the meaning of "upload" and "download" here.
  16148. "upload" means the transfer from localhost to remote host.
  16149. "download" means the transfer from remote host to localhost.
  16150. Based on this rule, I swapped orderByUploadRate and
  16151. orderByDownloadRate.
  16152. * src/PeerInteractionCommand.cc
  16153. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  16154. (executeInternal): Removed the argument of
  16155. peerInteraction->sendMessages().
  16156. (receiveMessages): Rewritten download speed limit.
  16157. (sendKeepAlive): Removed peerInteraction->sendMessages().
  16158. * src/HttpResponseCommand.cc
  16159. (handleDefaultEncoding): If file size is unknown in torrent request,
  16160. do not call segmentMan->initBitfield() here.
  16161. Disabled persistent connection feature in torrent request.
  16162. * src/UrlRequestInfo.h
  16163. (UrlRequestInfo): Removed const qualifier from option.
  16164. * src/TorrentMan.h
  16165. (TransferStat): New class.
  16166. (deltaDownloadLength): Removed.
  16167. (deltaUploadLength): Removed.
  16168. (addDeltaDownloadLength): Removed.
  16169. (getDeltaDownloadLength): Removed.
  16170. (resetDeltaDownloadLength): Removed.
  16171. (addDeltaUploadLength): Removed.
  16172. (getDeltaUploadLength): Removed.
  16173. (resetDeltaUploadLength): Removed.
  16174. (addActivePeer): Added peer->activate().
  16175. (deleteActivePeer): Added peer->deactivate().
  16176. (calculateStat): New function.
  16177. * src/TorrentMan.cc
  16178. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  16179. (calculateStat): New function.
  16180. * src/PeerInteraction.h
  16181. (uploadLimit): Removed.
  16182. (option): New variable.
  16183. (setUploadLimit): Removed.
  16184. (getUploadSpeed): Removed.
  16185. (sendMessages): Removed the argument "currentUploadSpeed".
  16186. * src/PeerInteraction.cc
  16187. (prefs.h): Included.
  16188. (PeerInteraction): Removed uploadLimit. Added option.
  16189. (sendMessages): Rewritten upload speed limit.
  16190. (sendHandshake): Removed the argument from sendMessages().
  16191. (sendBitfield): Removed the argument from sendMessages().
  16192. * src/PeerAbstractCommand.cc
  16193. (execute): Commented out the portion of upload limit.
  16194. (onAbort): Removed peer->resetStatus().
  16195. * src/TorrentRequestInfo.cc
  16196. (timeoutSpecified): Declared extern.
  16197. (execute): Set timeout to 180 if timeout is not specified by.
  16198. command-line.
  16199. * src/PieceMessage.cc
  16200. (receivedAction): Added peer->updateDownloadLength().
  16201. Removed peer->addPeerUpload().
  16202. Removed torrentMan->addDeltaDownloadLength().
  16203. (send): Added peer->updateUploadLength().
  16204. Removed peer->addPeerDownload().
  16205. Removed torrentMan->addDeltaUploadLength().
  16206. * src/main.cc
  16207. (timeoutSpecified): New variable.
  16208. (main): Set timeoutSpecified to false.
  16209. If the command-line option "--upload-limit" is specified, then
  16210. timeoutSpecified is set to true. This option will remain in the next
  16211. release, but be deprecated in the future release.
  16212. * src/TorrentRequestInfo.h
  16213. (TorrentRequestInfo): Removed const qualifier from op.
  16214. * src/PeerStat.h
  16215. (uploadSpeed): New variable.
  16216. (PeerStat): Added default value to cuid.
  16217. (calculateUploadSpeed): New function.
  16218. (updateUploadLength): New function.
  16219. (getMaxUploadSpeed): New function.
  16220. (getAvgUploadSpeed): New function.
  16221. (reset): Added uploadSpeed. Set status to IDLE.
  16222. * src/TorrentDownloadEngine.h
  16223. (cp): Declared as Time.
  16224. (sessionDownloadLengthArray): Removed.
  16225. (sessionUploadLengthArray): Removed.
  16226. (currentCp): Removed.
  16227. (lastCalcStat): New variable
  16228. (lastElapsed): Removed.
  16229. (sessionDownloadLength): Removed.
  16230. (calculateStat): New function.
  16231. * src/TorrentDownloadEngine.cc
  16232. (initStatistics): Removed lastElapsed, cp[],
  16233. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  16234. currentCp, sessionDownloadLength.
  16235. Added cp.reset() and lastCalcStat.reset().
  16236. (calculateSpeed): Changed the name of the argument.
  16237. (calculateStatistics): Rewritten.
  16238. (calculateStat): New function.
  16239. * src/Peer.h
  16240. (PeerStat.h): Included.
  16241. (peerUpload): Removed.
  16242. (peerDownload): Removed.
  16243. (peerStat): New variable.
  16244. (sessionUploadLength): New variable.
  16245. (sessionDownloadLength): New variable.
  16246. (deltaUpload): Removed.
  16247. (deltaDownload): Removed.
  16248. (resetStatus): Made private.
  16249. (Peer): Added sessionUploadLength, sessionDownloadLength.
  16250. Removed peerUpload, peerDownload.
  16251. (updateUploadLength): New function.
  16252. (addDeltaUpload): Removed.
  16253. (updateDownloadLength): New function.
  16254. (resetDeltaUpload): Removed.
  16255. (getDeltaUpload): Removed.
  16256. (addDeltaDownload): Removed.
  16257. (calculateUploadSpeed): New function.
  16258. (resetDeltaDownload): Removed.
  16259. (getDeltaDownload): Removed.
  16260. (calculateDownloadSpeed): New function.
  16261. (getSessionUploadLength): New function.
  16262. (getSessionDownloadLength): New function.
  16263. (activate): New function.
  16264. (deactivate): New function.
  16265. (addPeerUpload): Removed.
  16266. (setPeerUpload): Removed.
  16267. (getPeerUpload): Removed.
  16268. (addPeerDownload): Removed.
  16269. (setPeerDownload): Removed.
  16270. (getPeerDownload): Removed.
  16271. * src/Peer.cc
  16272. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  16273. * src/MetalinkRequestInfo.h
  16274. (MetalinkRequestInfo): Removed const qualifier from op.
  16275. * src/RequestInfo.h
  16276. (op): Removed const qualifier.
  16277. (RequestInfo): Removed const qualifier from op.
  16278. * src/prefs.h
  16279. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  16280. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  16281. * src/PeerInteractionCommand.cc
  16282. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  16283. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  16284. * src/PeerInteraction.cc
  16285. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  16286. * src/main.cc
  16287. (showUsage): Updated the description of "--lowest-speed-limit" option.
  16288. Added the description of "--max-download-limit" option.
  16289. Removed the description of "--upload-limit" option.
  16290. Added the description of "--max-upload-limit" option.
  16291. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  16292. Added "--max-download-limit" option and "--max-upload-limit" option.
  16293. Added the warning message if "--upload-limit" option is used.
  16294. * src/DownloadCommand.cc
  16295. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  16296. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16297. To rewrite segment download mechanism for HTTP/FTP download.
  16298. Use BitfieldMan to manage segment download.
  16299. * src/HttpResponseCommand.h
  16300. (executeInternal): Pass the reference of segment.
  16301. * src/AbstractCommand.cc
  16302. (prepareForRetry): Call segmentMan->cancelSegment here.
  16303. (onAbort): Call segmentMan->cancelSegment here.
  16304. * src/HttpDownloadCommand.cc
  16305. (prepareForNextSegment): New function.
  16306. * src/DownloadEngineFactory.cc
  16307. (newConsoleEngine): Removed splitter.
  16308. (newTorrentConsoleEngine): Removed splitter.
  16309. * src/Request.h
  16310. (segment): Renamed from seg.
  16311. * src/FtpInitiateConnectionCommand.h
  16312. (executeInternal): Pass the reference of segment.
  16313. * src/AbstractCommand.h
  16314. (executeInternal): Pass the reference of segment.
  16315. * src/pref.h
  16316. (PREF_SEGMENT_SIZE): New definition.
  16317. * src/HttpProxyRequestCommand.h
  16318. (executeInternal): Pass the reference of segment.
  16319. * src/HttpResponseCommand.cc
  16320. (checkResponse): Allowed status 206 when a request range starts 0.
  16321. (handleDefaultEncoding): Rewritten the code related to Segment.
  16322. (handleOtherEncoding): Rewritten the code related to Segment.
  16323. * src/SegmentMan.h
  16324. (SegmentEntry): New class.
  16325. (SegmentEntries): New type definition.
  16326. (bitfield): New variable.
  16327. (usedSegmentEntries): New variable.
  16328. (onNullBitfield): New function.
  16329. (checkoutSegment): New function.
  16330. (segments): Removed.
  16331. (splitter): Removed.
  16332. (unregisterId): Removed.
  16333. (getSegment): New function(overload)
  16334. (getDownloadedSize): Removed.
  16335. (cancelSegment): New function.
  16336. (completeSegment): New function.
  16337. (initBitfield): New function.
  16338. (hasSegment): New function.
  16339. (getDownloadLength): New function.
  16340. * src/BitfieldMan.h
  16341. (getStartIndex): New function.
  16342. (getEndIndex): New function.
  16343. (getMissingUnusedIndex): New function(overload).
  16344. (getSparseMissingUnusedIndex): New function.
  16345. * src/BitfieldMan.cc
  16346. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  16347. (getMissingUnusedIndex): New function(overload).
  16348. (Range): New class.
  16349. (getStartIndex): New function.
  16350. (getEndIndex): New function.
  16351. (getSparseMissingUnusedIndex): New function.
  16352. (isBitSetInternal): Return false if the given index is less than 0.
  16353. * src/HttpInitiateConnectionCommand.h
  16354. (executeInternal): Pass the reference of segment.
  16355. * src/FtpNegotiateCommand.h
  16356. (executeInternal): Pass the reference of segment.
  16357. * src/FtpNegotiateCommand.cc
  16358. (recvSize): Initialize bitfield here.
  16359. * src/FtpTunnelResponseCommand.h
  16360. (executeInternal): Pass the reference of segment.
  16361. * src/HttpConnection.cc
  16362. (createRequest): Rewritten range header processing.
  16363. * src/DownloadCommand.h
  16364. (executeInternal): Pass the reference of segment.
  16365. (prepareForRetry): Removed.
  16366. (prepareForNextSegment): Added an argument segment. Made it a virtual
  16367. function.
  16368. * src/main.cc
  16369. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  16370. * src/SegmentMan.cc
  16371. (SegmentMan): Added bitfield. Removed splitter.
  16372. (~SegmentMan): Added bitfield. Removed splitter.
  16373. (unregisterId): Removed.
  16374. (getSegment): Rewritten.
  16375. (updateSegment): Rewritten.
  16376. (save): Rewritten.
  16377. (read): Rewritten.
  16378. (finished): Rewritten.
  16379. (getDownloadedSize): Removed.
  16380. (initBitfield): New function.
  16381. (FindSegmentEntryByIndex): New function object.
  16382. (FindSegmentEntryByCuid): New function object.
  16383. (checkoutSegment): New function.
  16384. (onNullBitfield): New function.
  16385. (getSegment): New function(overload).
  16386. (CancelSegment): New function object.
  16387. (cancelSegment): New function.
  16388. (completeSegment): New function.
  16389. (hasSegment): New function.
  16390. (getDownloadLength): New function.
  16391. * src/FtpInitiateConnectionCommand.cc
  16392. (executeInternal): Load .aria2 file after hostname resolution finishes.
  16393. * src/Segment.h: Rewritten.
  16394. * src/Segment.cc (operator<<): New function.
  16395. * src/HttpDownloadCommand.h
  16396. (prepareForNextSegment): New function.
  16397. * src/Request.cc
  16398. (resetUrl): Made segment null.
  16399. * src/DownloadEngine.cc
  16400. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  16401. * src/HttpProxyRequestCommand.h
  16402. (executeInternal): Pass the reference of segment.
  16403. * src/DownloadCommand.cc
  16404. (executeInternal): Rewritten the code related to Segment.
  16405. (prepareForRetry): Removed.
  16406. (prepareForNextSegment): Rewritten.
  16407. * src/FtpTunnelResponseCommand.h
  16408. (executeInternal): Pass the reference of segment.
  16409. To add HTTP 1.1 persistent connection support(experimental)
  16410. * src/HttpRequestCommand.cc
  16411. (executeInternal): Disable keep alive if it is disabled by
  16412. configuration.
  16413. * src/Request.h
  16414. (keepAlive): New variable.
  16415. (isKeepAlive): New function.
  16416. (setKeepAlive): New function.
  16417. * src/pref.h
  16418. (PREF_HTTP_KEEP_ALIVE): New definition.
  16419. * src/HttpResponseCommand.cc
  16420. (executeInternal): Check the remote server supports keep alive.
  16421. * src/HttpConnection.cc
  16422. (createRequest): Send "Connection: close" only if keep alive is
  16423. disabled.
  16424. * src/main.cc
  16425. (main):
  16426. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  16427. To add max download speed limit:
  16428. * src/pref.h
  16429. (PREF_MAX_SPEED_LIMIT): New definition.
  16430. * src/PeerInteractionCommand.cc
  16431. (executeInternal): Added max download speed limit. Not tested yet.
  16432. * src/SegmentMan.h
  16433. (PeerStats): New type definition.
  16434. (peerStats): New variable.
  16435. (registerPeerStat): New function.
  16436. (FindPeerStat): New function object.
  16437. (getPeerStat): New function.
  16438. (calculateDownloadSpeed): New function.
  16439. * src/SpeedCalc.h: New class.
  16440. * src/SpeedCalc.cc: New class.
  16441. * src/main.cc
  16442. (main):
  16443. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  16444. download speed is not restricted).
  16445. * src/PeerStat.h: New class.
  16446. * src/SegmentMan.cc
  16447. (registerPeerStat): New function.
  16448. (calculateDownloadSpeed): New function.
  16449. * src/DownloadCommand.cc
  16450. (STARTUP_IDLE_TIME): New definition.
  16451. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  16452. downloadStart.
  16453. (~DownloadCommand): Call peerStat->downloadStop.
  16454. (executeInternal): Added download speed limitter. Rewritten lowest
  16455. speed limitter.
  16456. * src/HttpConnection.cc
  16457. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  16458. * src/AbstractCommand.cc
  16459. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  16460. Added hostname to the error message.
  16461. * src/ConsoleDownloadEngine.cc
  16462. (calculateStatistics): Initialize psize with dlSize.
  16463. * src/PieceMessage.cc
  16464. (receivedAction): Do not call peerInteraction->abortPiece here.
  16465. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  16466. * src/BitfieldMan.h
  16467. (clearAllUseBit): New function.
  16468. (setAllUseBit): New function.
  16469. * src/BitfieldMan.cc
  16470. (clearAllBit): Do not clear useBitfield here.
  16471. (clearAllUseBit): New function.
  16472. (setAllUseBit): New function.
  16473. * src/Piece.cc
  16474. (clearAllBlock): Call bitfield->clearAllUseBit().
  16475. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16476. To make filename URL-decoded:
  16477. * src/HttpResponseCommand.h: Updated doc.
  16478. * src/HttpResponseCommand.cc
  16479. (determinFilename): Made filename URL-decoded.
  16480. * src/FtpInitiateConnectionCommand.cc
  16481. (executeInternal): Made filename URL-decoded.
  16482. * src/Util.h (urldecode): New function.
  16483. * src/Util.cc (urldecode): New function.
  16484. To fix a bug that caused assertion failure in ares_strerror:
  16485. * src/NameResolver.cc (callback): Fixed the bug.
  16486. * Release 0.7.3
  16487. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16488. To add --seed-time and --seed-ratio command-line option:
  16489. * src/Option.h (getAsDouble): New function.
  16490. * src/Option.cc (getAsDouble): New function.
  16491. * src/SeedCheckCommand.h: New class.
  16492. * src/SeedCheckCommand.cc: New class.
  16493. * src/DownloadEngineFactory.cc
  16494. (SeedCheckCommand.h): Included.
  16495. (UnionSeedCriteria.h): Included.
  16496. (TimeSeedCriteria.h): Included.
  16497. (ShareRatioSeedCriteria.h): Included.
  16498. (newTorrentConsoleEngine): Added the processing of seed option.
  16499. * src/SeedCriteria.h: New class.
  16500. * src/ShareRatioSeedCriteria.h: New class.
  16501. * src/TimeSeedCriteria.h: New class.
  16502. * src/UnionSeedCriteria.h: New class.
  16503. * src/prefs.h
  16504. (PREF_SEED_TIME): New definition.
  16505. (PREF_SEED_RATIO): New definition.
  16506. * src/main.cc
  16507. (showUsage): Added --seed-time and --seed-ratio option.
  16508. (main): Added --seed-time and --seed-ratio option.
  16509. Made default log file name "/dev/null".
  16510. * src/SharedHandle.h
  16511. (SharedHandle): Copy constructor. Made it assignable from the
  16512. SharedHandle of the subclasses.
  16513. (operator=): Made it assignable from the SharedHandle of the
  16514. subclasses.
  16515. (getRefCount): New function.
  16516. To add notice log level and the switch to write log to stdout. This
  16517. switch is configurable per log level.
  16518. * src/Logger.h
  16519. (notice): New function.
  16520. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  16521. constant.
  16522. * src/LogFactory.cc
  16523. (getInstance): The use of NullLogger was removed. A log message with
  16524. notice log level was made written to stdout along with log file.
  16525. * src/NullLogger.h
  16526. (notice): New function.
  16527. * src/SimpleLogger.h
  16528. (writeHeader): Added the 'file' argument.
  16529. (writeLog): Added the 'file' argument.
  16530. (writeFile): New function.
  16531. (stdoutField): New variable.
  16532. (SimpleLogger): Removed the default constructor.
  16533. (SimpleLogger): Made the default value of logfile 0.
  16534. (debug): Added 'virtual' keyword.
  16535. (info): Added 'virtual' keyword.
  16536. (warn): Added 'virtual' keyword.
  16537. (error): Added 'virtual' keyword.
  16538. (notice): New function.
  16539. (setStdout): New function.
  16540. * src/SimpleLogger.cc
  16541. (WRITE_LOG): Replaced writeLog with writeFile.
  16542. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  16543. (SimpleLogger): Removed the default constructor.
  16544. (setStdout): New function.
  16545. (writeLog): Added the handling of NOTICE log level.
  16546. (writeFile): New function.
  16547. (notice): New function.
  16548. * src/TorrentMan.h: Updated doc.
  16549. * src/BitfieldMan.h: Updated doc.
  16550. * src/TrackerWatcherCommand.cc
  16551. (execute): Return true if error occurred in the request to the tracker
  16552. and halt is requested.
  16553. * src/TrackerUpdateCommand.cc
  16554. (execute): Return true if error occurred in the request to the tracker
  16555. and halt is requested.
  16556. To call onDownloadComplete from TorrentMan::completePiece(), not from
  16557. DownloadEngine:
  16558. * src/TorrentConsoleDownloadEngine.h
  16559. (onSelectiveDownloadingCompletes): Removed.
  16560. * src/TorrentConsoleDownloadEngine.cc
  16561. (onSelectiveDownloadingCompletes): Removed.
  16562. * src/TorrentDownloadEngine.h
  16563. (onEndOfRun): Added 'virtual' keyword.
  16564. (afterEachIteration): Removed.
  16565. (onSelectiveDownloadingCompletes): Removed.
  16566. * src/TorrentDownloadEngine.cc
  16567. (onEndOfRun): Removed filenameFixed.
  16568. (afterEachIteration): Removed.
  16569. * src/TorrentMan.cc
  16570. (completePiece): Call onDownloadComplete here.
  16571. (onDownloadComplete): Added 2 log messages.
  16572. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16573. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  16574. * src/NameResolver.h: Added the prototype declaration of callback().
  16575. To support c-ares library:
  16576. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16577. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16578. * src/FtpInitiateConnectionCommand.h:
  16579. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16580. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16581. * src/HttpInitiateConnectionCommand.h:
  16582. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16583. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  16584. Added thes upport of c-ares's ares_strerror(the idea came from patch
  16585. #1542285 by tizianomueller)
  16586. * src/HttpInitiateConnectionCommand.cc:
  16587. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16588. * src/FtpInitiateConnectionCommand.cc:
  16589. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16590. * src/DownloadEngine.h:
  16591. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16592. * src/DownloadEngine.cc:
  16593. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16594. To fix the bug that causes compilation failure with metalink-support
  16595. disabled(bug#1543587):
  16596. * src/main.cc: Fixed with the patch by tizianomueller.
  16597. * Release 0.7.2
  16598. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16599. * src/main.cc
  16600. (main): Added a message to inform users that aria2 is starting to
  16601. verify checksum.
  16602. * src/RequestInfo.cc
  16603. (printDownloadAbortMessage): Added a message to inform users that
  16604. transfer can be resumed.
  16605. * src/FeatureConfig.cc
  16606. (FEATURE_ASYNC_DNS): New definition.
  16607. (FeatureConfig): Added aysnc DNS entry.
  16608. To replace CommandUuid with Command* in SocketEntry and
  16609. NameResolverEntry:
  16610. * src/DownloadEngine.h
  16611. (CommandUuids): Removed.
  16612. (SocketEntry::commandUuid): Removed.
  16613. (SocketEntry::command): New variable.
  16614. (SocketEntry::SocketEntry): Updated.
  16615. (SocketEntry::operator==): Updated.
  16616. (NameResolverEntry::commandUuid): Removed.
  16617. (NameResolverEntry::command): New variable.
  16618. (NameResolverEntry::NameResolverEntry): Updated.
  16619. (NameResolverEntry::operator==): Updated.
  16620. (waitData): Changed the argument type.
  16621. (addSocketForReadCheck): Changed the argument type.
  16622. (deleteSocketForReadCheck): Changed the argument type.
  16623. (addSocketForWriteCheck): Changed the argument type.
  16624. (deleteSocketForWriteCheck): Changed the argument type.
  16625. (addNameResolverCheck): Changed the argument type.
  16626. (deleteNameResolverCheck): Changed the argument type.
  16627. * src/DownloadEngine.cc
  16628. (FindCommand): Removed.
  16629. (run): Removed activeUuid. Added activeCommands instead.
  16630. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  16631. (AccumulateActiveCommand): New function object.
  16632. (waitData): Use AccumulateActiveCommand.
  16633. (addSocketForReadCheck): Use Command instead of CommandUuid.
  16634. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  16635. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  16636. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  16637. (addNameResolverCheck): Use Command instead of CommandUuid.
  16638. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  16639. * src/AbstractCommand.cc
  16640. (disableReadCheckSocket): Updated according to the changes in
  16641. DownloadEngine.
  16642. (setReadCheckSocket): Updated according to the changes in
  16643. DownloadEngine.
  16644. (disableWriteCheckSocket): Updated according to the changes in
  16645. DownloadEngine.
  16646. (setWriteCheckSocket): Updated according to the changes in
  16647. DownloadEngine.
  16648. (setNameResolverCheck): Updated according to the changes in
  16649. DownloadEngine.
  16650. (disableNameResolverCheck): Updated according to the changes in
  16651. DownloadEngine.
  16652. * src/AbstractCommand.cc
  16653. (disableReadCheckSocket): Updated according to the changes in
  16654. DownloadEngine.
  16655. (setReadCheckSocket): Updated according to the changes in
  16656. DownloadEngine.
  16657. (disableWriteCheckSocket): Updated according to the changes in
  16658. DownloadEngine.
  16659. (setWriteCheckSocket): Updated according to the changes in
  16660. DownloadEngine.
  16661. * release 0.7.1
  16662. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16663. To handle the case where some BitTorrent tracker requires all letters
  16664. except for [A-Za-z0-9] is URL encoded.
  16665. * src/Util.h
  16666. (torrentUrlencode): New function.
  16667. * src/Util.cc
  16668. (ctype.h): Included.
  16669. (torrentUrlencode): New function.
  16670. * src/TrackerWatcherCommand.cc
  16671. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  16672. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16673. To add asynchronous DNS support(libares):
  16674. * src/AbstractCommand.h
  16675. (setNameResolverCheck): New function.
  16676. (disableNameResolverCheck): New function
  16677. (resolveHostname): New function.
  16678. * src/AbstractCommand.cc
  16679. (setNameResolverCheck): New function.
  16680. (disableNameResolverCheck): New function
  16681. (resolveHostname): New function.
  16682. * src/FtpInitiateConnectionCommand.h
  16683. (nameResolver): New function.
  16684. * src/FtpInitiateConnectionCommand.cc
  16685. (Util.h): Included.
  16686. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  16687. disableWriteCheckSocket.
  16688. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  16689. (executeInternal): Added async DNS support.
  16690. * src/HttpInitiateConnectionCommand.h
  16691. (nameResolver): New function.
  16692. * src/HttpInitiateConnectionCommand.cc
  16693. (DlRetryEx.h): Included.
  16694. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16695. disableWriteCheckSocket.
  16696. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16697. (executeInternal): Added async DNS support.
  16698. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16699. by extern "C" declaration.
  16700. * src/NameResolver.cc: New class.
  16701. * src/Util.h:
  16702. (isNumberAndDotsNotation): New function
  16703. * src/Util.cc
  16704. (isNumberAndDotsNotation): New function.
  16705. * src/DownloadEngine.h
  16706. (NameResolver.h): Included.
  16707. (NameResolverEntry): New class.
  16708. (NameResolverEntries): New type definition.
  16709. (addNameResolverCheck): New function.
  16710. (deleteNameResolverCheck): New function.
  16711. * src/DownloadEngine.cc
  16712. (run): Initialize cp with 0.
  16713. (SetDescriptor::operator()): Added for NameResolverEntry.
  16714. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16715. (waitData): Check nameResolver entries.
  16716. (updateFdSet): Update fds in nameResolver entries.
  16717. (addNameResolverCheck): New function.
  16718. (deleteNameResolverCheck): new function.
  16719. * src/PeerInteractionCommand.cc
  16720. (executeInternal): Fixed wrong socket handling.
  16721. * src/main.cc
  16722. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16723. * src/Util.cc
  16724. (fileChecksum): Removed the call to ctx.digestReset().
  16725. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16726. * po/ru.po: Azamat sent me Russian translation.
  16727. * src/FtpNegotiateCommand.cc
  16728. (recvGreeting): Call disableWriteCheckSocket just after
  16729. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16730. (recvRetr): Recognized status code 125 as a acceptable response code.
  16731. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16732. case-insesitive filesystem(BUG#1531057).
  16733. * src/Time.h: Renamed as TimeA2.h.
  16734. * src/Time.cc: Renamed as TimeA2.cc.
  16735. * src/TimeA2.h: New class.
  16736. * src/TimeA2.cc: New class.
  16737. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16738. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16739. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16740. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16741. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16742. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16743. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  16744. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  16745. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  16746. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16747. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  16748. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  16749. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  16750. * release 0.7.0
  16751. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16752. * src/PeerChokeCommand.h
  16753. (PeerChokeCommand): Rearranged the arguments.
  16754. * src/PeerChokeCommand.cc
  16755. (PeerChokeCommand): Rearranged the arguments.
  16756. * src/MetalinkEntry.h
  16757. (Checksum.h): Included.
  16758. (md5): Removed.
  16759. (sha1): Removed.
  16760. (checksum): New variable.
  16761. (operator=): Updated.
  16762. (check): Removed.
  16763. * src/prefs.h
  16764. (PREF_LOWEST_SPEED_LIMIT): New definition.
  16765. (PREF_FOLLOW_TORRENT): New definition.
  16766. (PREF_SELECT_FILE): New definition.
  16767. (PREF_FOLLOW_METALINK): New definition.
  16768. * src/MetalinkResource.h
  16769. (TYPE_HTTPS): Added to enum TYPE.
  16770. * src/TorrentMan.cc
  16771. (~TorrentMan): Rewritten.
  16772. * src/MultiDiskWriter.cc
  16773. (MultiDiskAdaptor): Updated according to the changes in
  16774. MessageDigestContext.
  16775. (~MultiDiskAdaptor): Updated according to the changes in
  16776. MessageDigestContext.
  16777. (hashUpdate): Updated according to the changes in MessageDigestContext.
  16778. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16779. * src/Util.h
  16780. (fileChecksum): Updated according to the changes in
  16781. MessageDigestContext.
  16782. * src/Util.cc
  16783. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16784. (fileChecksum): Updated according to the changes in
  16785. MessageDigestContext.
  16786. * src/messageDigest.h: Rewritten.
  16787. * src/MetalinkEntry.cc
  16788. (check): Removed.
  16789. (Supported): Updated.
  16790. (dropUnsupportedResource): Fixed a memory leak.
  16791. * src/ShaVisitor.cc
  16792. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  16793. (~ShaVisitor): Updated according to the changes in
  16794. MessageDigestContext.
  16795. (visit): Updated according to the changes in MessageDigestContext.
  16796. * src/main.cc
  16797. (main): Rewritten the portion of download loop. --lowest-speed-limit
  16798. command-line option added.
  16799. * src/DownloadEngine.h
  16800. (SocketEntry): New class.
  16801. (SocketEntries): New definition.
  16802. (PairFind): Removed.
  16803. (SockCmdMap): Removed.
  16804. * src/DownloadEngine.cc
  16805. (DownloadEngine): Rewritten.
  16806. (~DownloadEngine): Rewritten.
  16807. (run): Renamed activeCommandUuids as activeUuids.
  16808. (SetDescriptor): Rewritten.
  16809. (AccumulateActiveCommandUuid): Removed.
  16810. (AccumulateActiveUuid): New function object.
  16811. (waitData): Rewritten.
  16812. (updateFdSet): Rewritten.
  16813. (addSocket): Rewritten.
  16814. (deleteSocket): Rewritten.
  16815. (addSocketForReadCheck): Rewritten.
  16816. (deleteSocketForReadCheck): Rewritten.
  16817. (addSocketForWriteCheck): Rewritten.
  16818. (deleteSocketForWriteCheck): Rewritten.
  16819. * src/Xml2MetalinkProcessor.cc
  16820. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16821. * src/DownloadCommand.cc
  16822. (executeInternal): Added the check routine for lowest speed limit.
  16823. * src/AbstractDiskWriter.cc
  16824. (AbstractDiskWriter): Updated according to the changes in
  16825. MessageDigestContext.
  16826. (~AbstractDiskWriter): Updated according to the changes in
  16827. MessageDigestContext.
  16828. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16829. * src/RequestInfo.h: New class.
  16830. * src/UrlRequestInfo.h: New class.
  16831. * src/UrlRequestInfo.cc: New class.
  16832. * src/TorrentRequestInfo.h: New class.
  16833. * src/TorrentRequestInfo.cc: New class.
  16834. * src/MetalinkRequestInfo.h: New class.
  16835. * src/MetalinkRequestInfo.cc: New class.
  16836. * src/Checksum.h: New class.
  16837. * src/DownloadEngineFactory.h: New class.
  16838. * src/DownloadEngineFactory.cc: New class.
  16839. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16840. * src/Option.h
  16841. (getAsBool): New function.
  16842. * src/Option.cc
  16843. (prefs.h): Included.
  16844. (defined): 0-length value is now recognized as undefined.
  16845. (getAsInt): Rewritten.
  16846. (getAsLLInt): Rewritten.
  16847. (getAsBool): New function.
  16848. * src/FeatureConfig.h: Rewritten.
  16849. * src/FeatureConfig.cc: Rewritten.
  16850. * src/prefs.h
  16851. (PREF_STDOUT_LOG): New definition.
  16852. (PREF_LOG): New definition.
  16853. (PREF_DIR): New definition.
  16854. (PREF_OUT): New definition.
  16855. (PREF_SPLIT): New definition.
  16856. (PREF_DAEMON): New definition.
  16857. (PREF_REFERER): New definition.
  16858. (PREF_TORRENT_FILE): New definition.
  16859. (PREF_LISTEN_PORT): New definition.
  16860. (PREF_METALINK_FILE): New definition.
  16861. (PREF_METALINK_VERSION): New definition.
  16862. (PREF_METALINK_LANGUAGE): New definition.
  16863. (PREF_METALINK_OS): New definition.
  16864. (PREF_METALINK_SERVERS): New definition.
  16865. * src/main.cc
  16866. (main): Following command-line parameters are now put into Option
  16867. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16868. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16869. metalinkLanguage, metalinkOs, metalinkServers
  16870. To fix the bug that aria2 can not handle http response header properly.
  16871. * src/HttpHeader.cc
  16872. (put): Made name lowercased.
  16873. (defined): Made name lowercased.
  16874. (getFirst): Made name lowercased.
  16875. (get): Made name lowercased.
  16876. (getFirstAsInt): Rewritten.
  16877. (getFirstAsLLInt): Rewritten.
  16878. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16879. * src/TorrentMan.h:
  16880. (advertisePiece): Updated doc.
  16881. (getAdvertisedPieceIndexes): Updated doc.
  16882. (removeAdvertisedPiece); New function.
  16883. * src/TorrentMan.cc
  16884. (FindElapsedHave): New function object.
  16885. (removeAdvertisedPiece): New function.
  16886. * src/HaveEraseCommand.h: New class.
  16887. * src/HaveEraseCommand.cc: New class.
  16888. * src/FeatureConfig.h: New class.
  16889. * src/FeatureConfig.cc: New class.
  16890. * src/Request.h
  16891. (defaultPorts): Removed.
  16892. * src/Request.cc
  16893. (FeatureConfig.h): Included.
  16894. (Request): Removed the statements related to defaultPorts.
  16895. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16896. A default port number is now retrieved from FeatureConfig.
  16897. * src/main.cc
  16898. (HaveEraseCommand.h): Included.
  16899. (showVersion): Added the output of feature list.
  16900. (main): Added HaveEraseCommand to command queue in BitTorrent
  16901. downloading.
  16902. * src/PeerInteractionCommand.h
  16903. (chokeCheckPoint): Commented out.
  16904. (periodicExecPoint): New variable.
  16905. * src/PeerInteractionCommand.cc
  16906. (executeInternal): Following methods are now called in at least every
  16907. 0.5 seconds to reduce CPU usage:
  16908. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16909. checkHave(), sendKeepAlive().
  16910. (checkLongTimePeerChoking): Commented out.
  16911. * src/BitfieldMan.h
  16912. (getNthBitIndex): Changed the method signature.
  16913. (getMissingIndexRandomly): Changed the method signature.
  16914. * src/BitfieldMan.cc
  16915. (getNthBitIndex): Rewritten
  16916. (getMissingIndexRandomly): Rewritten.
  16917. (hasMissingPiece): Rewritten.
  16918. (getMissingIndex): Refactored.
  16919. (getMissingUnusedIndex); Refactored.
  16920. (getMissingIndex): Refactored.
  16921. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16922. * src/PeerMessage.h
  16923. (Piece.h): Included.
  16924. (SharedHandle.h): Included.
  16925. (invalidate): New variable.
  16926. (uploading): New variable.
  16927. (isInvalidate): New function.
  16928. (isUploading): New function.
  16929. (onPush): New function.
  16930. (onChoked): New function.
  16931. (onCanceled): New function.
  16932. (onAbortPiece): New function.
  16933. (PeerMessageHandle): New type definition.
  16934. * src/PeerMessage.cc
  16935. (PeerMessage): Added the initialization for invalidate and uploading.
  16936. * src/CancelMessage.h
  16937. (CancelMessage): Rewritten.
  16938. * src/RejectMessage.h
  16939. (RejectMessage): Rewritten.
  16940. * src/Metalinker.h
  16941. (operator=): Defined.
  16942. * src/MetaEntry.h
  16943. (operator=): Defined.
  16944. * src/MetalinkResource.h
  16945. (operator=): Defined.
  16946. * src/AllowedFastMessage.h
  16947. (AllowedFastMessage): Rewritten.
  16948. * src/HandshakeMessage.h
  16949. (HandshakeMessage): New function(overload).
  16950. * src/HandshakeMessage.cc
  16951. (HandshakeMessage): Rewritten.
  16952. (init): New function.
  16953. * src/HaveMessage.h
  16954. (HaveMessage): Rewritten.
  16955. * src/Time.h
  16956. (operator=): Defined the function body here.
  16957. * src/Time.cc
  16958. (operator=): Removed.
  16959. * src/SocketCore.h
  16960. (operator==): Defined here.
  16961. (operator!=): Defined here.
  16962. (operator<): Defined here.
  16963. * src/SocketCore.cc
  16964. (operator==): Removed.
  16965. (operator<): Removed.
  16966. * src/BitfieldMan.h
  16967. (operator=): Defined the function body here.
  16968. * src/BitfieldMan.cc
  16969. (operator=): Removed.
  16970. * src/TorrentMan.h
  16971. (deleteErrorPeer): Removed.
  16972. (deleteUnusedPeer); New function.
  16973. * src/TorrentMan.cc
  16974. (addPeer): Call deleteUnusedPeer.
  16975. (deleteErrorPeer): Removed.
  16976. (deleteUnusedPeer): New function.
  16977. * src/PeerAbstractCommand.h
  16978. (setNoCheck): New function.
  16979. (noCheck): New variable.
  16980. * src/PeerAbstractCommand.cc
  16981. (PeerAbstractCommand): Added the initialization of noCheck.
  16982. (execute): Added a check for noCheck.
  16983. (setNoCheck): New function.
  16984. * src/Util.h
  16985. (stdio.h): Included.
  16986. * src/Util.cc
  16987. (unistd.h): Included.
  16988. * src/DefaultDiskWriter.cc
  16989. (unistd.h): Included.
  16990. * src/Peer.h
  16991. (operator==): Defined the function body here.
  16992. (operator!=): Defined the function body here.
  16993. * src/Peer.cc
  16994. (operator==): Removed.
  16995. (operator!=): Removed.
  16996. * src/Piece.h
  16997. (Piece): Defined the function body here(copy constructor).
  16998. (operator=): Defined the function body here.
  16999. (operator==): Defined the function body here.
  17000. * src/Piece.cc
  17001. (Piece): Removed(copy constructor).
  17002. (operator=): Removed.
  17003. (operator==): Removed.
  17004. * src/PeerMessageUtil.h
  17005. (ChokeMessage.h): Removed.
  17006. (UnchokeMessage.h): Removed.
  17007. (InterestedMessage.h): Removed.
  17008. (NotInterestedMessage.h): Removed.
  17009. (HaveMessage.h): Removed.
  17010. (BitfieldMessage.h): Removed.
  17011. (RequestMessage.h): Removed.
  17012. (CancelMessage.h): Removed.
  17013. (PieceMessage.h): Removed.
  17014. (HandshakeMessage.h): Removed.
  17015. (KeepAliveMessage.h): Removed.
  17016. (PortMessage.h): Removed.
  17017. (HaveAllMessage.h): Removed.
  17018. (HaveNoneMessage.h): Removed.
  17019. (PeerConnection.h): Removed.
  17020. (HandshakeMessage.h): Included.
  17021. * src/BitfieldMessage.h
  17022. (init): New function.
  17023. (BitfieldMessage): Rewritten.
  17024. (BitfieldMessage): New function(overload).
  17025. * src/RequestSlot.h
  17026. (operator=): Defined the function body here.
  17027. (operator==): Defined the function body here.
  17028. * src/RequestSlot.cc
  17029. (operator=): Removed.
  17030. (operator==): Removed.
  17031. To remove the dependency on the PeerMessage subclass from
  17032. PeerInteraction:
  17033. * src/PeerMessageFactory.h: New class.
  17034. * src/PeerMessageFactory.cc: New class.
  17035. * src/SimplePeerMessage.cc
  17036. (send): If invalidate is true then do nothing.
  17037. * src/PeerInteractionCommand.cc
  17038. (HandshakeMessage.h): Included.
  17039. (KeepAliveMessage.h): Included.
  17040. (ChokeMessage.h): Included.
  17041. (UnchokeMessage.h): Included.
  17042. (HaveMessage.h): Included.
  17043. (executeInternal): Call setNoCheck().
  17044. Removed setWriteCheckSocket(socket).
  17045. * src/PeerInteraction.h
  17046. (ChokeMessage.h): Removed.
  17047. (UnchokeMessage.h): Removed.
  17048. (InterestedMessage.h): Removed.
  17049. (NotInterestedMessage.h): Removed.
  17050. (HaveMessage.h): Removed.
  17051. (BitfieldMessage.h): Removed.
  17052. (RequestMessage.h): Removed.
  17053. (CancelMessage.h): Removed.
  17054. (PieceMessage.h): Removed.
  17055. (HandshakeMessage.h): Removed.
  17056. (KeepAliveMessage.h): Removed.
  17057. (PortMessage.h): Removed.
  17058. (HaveAllMessage.h): Removed.
  17059. (HaveNoneMessage.h): Removed.
  17060. (RejectMessage.h): Removed.
  17061. (AllowedFastMessage.h): Removed.
  17062. (SuggestPieceMessage.h): Removed.
  17063. (PeerMessageFactory.h): Included.
  17064. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  17065. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  17066. (PeerMessageFactory): New variable.
  17067. (createPeerMessage): Removed.
  17068. (createHandshakeMessage): Removed.
  17069. (setPeerMessageCommonProperty): Removed.
  17070. (addRequestSlot): New function.
  17071. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  17072. (getPeerMessageFactory): New function.
  17073. (createRequestMessage): Removed.
  17074. (createCancelMessage): Removed.
  17075. (createPieceMessage): Removed.
  17076. (createHaveMessage): Removed.
  17077. (createChokeMessage): Removed.
  17078. (createUnchokeMessage): Removed.
  17079. (createInterestedMessage): Removed.
  17080. (createNotInterestedMessage): Removed.
  17081. (createBitfieldMessage): Removed.
  17082. (createKeepAliveMessage): Removed.
  17083. (createHaveAllMessage): Removed.
  17084. (createHaveNoneMessage): Removed.
  17085. (createRejectMessage): Removed.
  17086. (createAllowedFastMessage): Removed.
  17087. * src/PeerInteraction.cc
  17088. (PeerInteraction): Allocate PeerMessageFactory here.
  17089. (~PeerInteraction): Deallocate PeerMessageFactory here.
  17090. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  17091. PieceMessage::ID.
  17092. (addMessage): Simplified by using PeerMessage::onPush().
  17093. (addRequestSlot): New function.
  17094. (rejectAllPieceMessageInQueue): Simplified by using
  17095. PeerMessage::onChoked().
  17096. (rejectPieceMessageInQueue): Simplified by using
  17097. PeerMessage::onCanceled().
  17098. (abortPiece): Simplified by using PeerMessage::abortPiece().
  17099. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  17100. (createHandshakeMessage): Removed.
  17101. (createPeerMessage): Removed.
  17102. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  17103. (setPeerMessageCommonProperty): Removed.
  17104. (createRequestMessage): Removed.
  17105. (createCancelMessage): Removed.
  17106. (createPieceMessage): Removed.
  17107. (createHaveMessage): Removed.
  17108. (createChokeMessage): Removed.
  17109. (createUnchokeMessage): Removed.
  17110. (createInterestedMessage): Removed.
  17111. (createNotInterestedMessage): Removed.
  17112. (createBitfieldMessage): Removed.
  17113. (createKeepAliveMessage): Removed.
  17114. (createHaveAllMessage): Removed.
  17115. (createHaveNoneMessage): Removed.
  17116. (createRejectMessage): Removed.
  17117. (createAllowedFastMessage): Removed.
  17118. * src/PieceMessage.h
  17119. (createRejectMessage): New function.
  17120. (PieceMessage): Rewritten.
  17121. (onChoked): New function.
  17122. (onCanceled): New function.
  17123. * src/PieceMessage.cc
  17124. (send): If invalidate is true then do nothing, just return.
  17125. (createRejectMessage): New function.
  17126. (onChoked): New function.
  17127. (onCanceled): New function.
  17128. * src/RequestMessage.h
  17129. (RequestMessage): Rewritten.
  17130. (onPush): New function.
  17131. (onAbortPiece): New function.
  17132. * src/RequestMessage.cc
  17133. (onPush): New function.
  17134. (onAbortPiece): New function.
  17135. Update fd_set when a socket is added or deleted in order to improve
  17136. performance:
  17137. * src/DownloadEngine.h
  17138. (rfdset): New variable.
  17139. (wfdset): New variable.
  17140. (updateFdSet): New function.
  17141. * src/DownloadEngine.cc
  17142. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  17143. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  17144. (waitData): Copy rfdset and wfdset.
  17145. (updateFdSet): New function.
  17146. (addSocket): Call updateFdSet.
  17147. (deleteSocket): Call updateFdSet.
  17148. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17149. To add the support for Metalink3.0 backward compatible links:
  17150. * src/Request.h
  17151. (SAFE_CHARS): Added '#'.
  17152. (METALINK_MARK): New definition.
  17153. * src/Request.cc
  17154. (parseUrl): Added the support for Metalink3.0 backward compatible
  17155. links.
  17156. etc
  17157. * src/PeerInteraction.cc
  17158. (MsgPushBack): Removed.
  17159. (sendMessages): Use STL copy and back_inserter.
  17160. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  17161. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  17162. * src/TorrentMan.h
  17163. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  17164. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17165. * src/SharedHandle.h: New class.
  17166. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  17167. * src/HttpResponseCommand.h
  17168. (HttpResponseCommand): Wrapped Socket.
  17169. * src/SocketCore.h
  17170. (operator==): New function.
  17171. (operator!=): New function.
  17172. (operator<): New function.
  17173. (getSockfd): New function.
  17174. (isOpen): New function.
  17175. (writeData): New function.
  17176. * src/SocketCore.cc
  17177. (operator==): New function.
  17178. (operator!=): New function.
  17179. (operator<): New function.
  17180. * src/AbstractCommand.h
  17181. (socket): Changed its type to SocketHandle.
  17182. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17183. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17184. (disableReadCheckSocket): New function.
  17185. (disableWriteCheckSocket): New function.
  17186. (readCheckTarget): Changed its type to SocketHandle.
  17187. (writeCheckTarget): Changed its type to SocketHandle.
  17188. (AbstractCommand): Replaced Socket with SocketHandle.
  17189. * src/AbstractCommand.cc
  17190. (AbstractCommand): Replaced Socket with SocketHandle.
  17191. (~AbstractCommand): Removed the deallocation for Socket object.
  17192. (disableReadCheckSocket): New function.
  17193. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17194. (disableWriteCheckSocket): New function.
  17195. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17196. * src/HttpDownloadCommand.cc
  17197. (DownloadCommand): Replaced Socket with SocketHandle.
  17198. * src/PeerAbstractCommand.h
  17199. (socket): Changed its type to SocketHandle.
  17200. (peer): Changed its type to PeerHandle.
  17201. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17202. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17203. (disableReadCheckSocket): New function.
  17204. (disableWriteCheckSocket): New function.
  17205. (readCheckTarget): Changed its type to SocketHandle.
  17206. (writeCheckTarget): Changed its type to SocketHandle.
  17207. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17208. Replaced Peer with PeerHandle.
  17209. * src/HttpRequestCommand.cc
  17210. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17211. Use disableReadCheckSocket.
  17212. * src/PeerInitiateConnectionCommand.h
  17213. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17214. * src/PeerChokeCommand.cc
  17215. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  17216. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  17217. (execute): Use PeerHandle.
  17218. * src/PeerConnection.h
  17219. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  17220. (socket): Changed its type to SocketHandle.
  17221. (PeerConnection): Replaced Socket with SocketHandle.
  17222. * src/PeerConnection.cc
  17223. (PeerConnection): Replaced Socket with SocketHandle.
  17224. * src/PeerInteractionCommand.h
  17225. (PeerInteractionCommand): Replaced socket with SocketHandle.
  17226. Replaced Peer with PeerHandle.
  17227. * src/PeerInteractionCommand.cc
  17228. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  17229. Replaced Peer with PeerHandle.
  17230. (executeInternal): Use disableWriteCheckSocket.
  17231. Use HandshakeMessageHandle.
  17232. (receiveMessages): Use PeerMessageHandle.
  17233. (prepareForNextPeer): Use PeerHandle.
  17234. * src/HttpProxyRequestCommand.h
  17235. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17236. * src/HttpResponseCommand.cc
  17237. (HttpResponseCommand): Replaced Socket with SocketHandle.
  17238. * src/TorrentMan.cc
  17239. (nullPeer): Added external reference.
  17240. (~TorrentMan): Removed the deallocation of the elements of peers.
  17241. (addPeer): Rewritten.
  17242. (isPeerAvailable): Use nullPeer.
  17243. (deleteOldpeers): Replaced with deleteErrorPeer.
  17244. (deleteErrorPeer): New function.
  17245. (getPeer): Use PeerHandle and nullPeer.
  17246. (hasMissingPiece): Replaced Peer with PeerHandle.
  17247. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17248. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17249. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17250. (getMissingPiece): Replaced Peer with PeerHandle.
  17251. * src/FtpNegotiateCommand.cc
  17252. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  17253. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  17254. (recvGreeting): Use disableWriteCheckSocket.
  17255. (recvPasv): Removed the allocation of Socket.
  17256. Use disableReadCheckSocket.
  17257. (sendRestPasv): Use disableWriteCheckSocket.
  17258. (recvRetr): Changed assertion.
  17259. * src/PeerInteraction.h
  17260. (SharedHandle.h): Included SharedHandle.h.
  17261. (PeerMessageHandle): New type definition.
  17262. (HandshakeMessageHandle): New type definition.
  17263. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  17264. (peer): Changed its type to PeerHandle.
  17265. (createHandshakeMessage): Replaced HandshakeMessage with
  17266. HandshakeMessageHandle.
  17267. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  17268. (PeerInteraction): Replaced Peer with PeerHandle.
  17269. Replaced Socket with SocketHandle.
  17270. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17271. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17272. (receiveHandshake): Replaced HandshakeMessage with
  17273. HandshakeMessageHandle.
  17274. * src/PeerInteraction.cc
  17275. (PeerInteraction): Replaced Peer with PeerHandle.
  17276. Replaced Socket with SocketHandle.
  17277. (~PeerInteraction): Removed the deallocation of the elements of
  17278. messageQueue.
  17279. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  17280. (isSendingMessageInProgress): Replaced PeerMessage with
  17281. PeerMessageHandle.
  17282. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  17283. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17284. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  17285. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  17286. (abortPiece): Use PeerMessageHandle.
  17287. (receiveHandshake): Replaced HandshakeMessage with
  17288. HandshakeMessageHandle. Removed try-catch block.
  17289. (createHandshakeMessage): Replaced HandshakeMessage with
  17290. HandshakeMessageHandle.
  17291. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17292. Removed try-catch block.
  17293. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  17294. * src/HttpProxyResponseCommand.cc
  17295. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17296. * src/FtpTunnelResponseCommand.h
  17297. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17298. * src/HttpConnection.cc
  17299. (HttpConnection): Replaced Socket with SocketHandle.
  17300. * src/PeerAbstractCommand.cc
  17301. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17302. (~PeerAbstractCommand): Removed the deallocation of socket.
  17303. Use disableReadCheckSocket, disableWriteCheckSocket.
  17304. (disableReadCheckSocket): New function.
  17305. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17306. (disableWriteCheckSocket): New function.
  17307. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17308. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  17309. * src/FtpTunnelRequestCommand.cc
  17310. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17311. (~FtpTunnelRequestCommand): Corrected indentation.
  17312. * src/DownloadCommand.h
  17313. (DownloadCommand): Replaced Socket with SocketHandle.
  17314. * src/PeerListenCommand.cc
  17315. (PeerListenCommand): Removed the initialization of socket.
  17316. (~PeerListenCommand): Removed the deallocation of socket.
  17317. (bindPort): Use SocketHandle.
  17318. (execute): Use SocketHandle and PeerHandle.
  17319. * src/FtpDowndloadCommand.cc
  17320. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17321. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  17322. * src/main.cc
  17323. (main): Corrected indentation.
  17324. * src/HttpInitiateConnectionCommand.cc
  17325. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  17326. (executeInternal): Removed the allocation of socket.
  17327. * src/HttpRequestCommand.h
  17328. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17329. * src/FtpNegotiationCommand.h
  17330. (dataSocket): Changed its type to SocketHandle.
  17331. (serverSocket): Changed its type to SocketHandle.
  17332. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  17333. * src/TorrentMan.h
  17334. (MAX_PEER_UPDATE): Removed.
  17335. (MAX_PEERS): New definition.
  17336. (Peers): The element is now of type PeerHandle.
  17337. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  17338. (getPeer): Replaced Peer with PeerHandle.
  17339. (deleteOldErrorPeers): Removed.
  17340. (deleteErrorPeer): New function.
  17341. (hasMissingPiece): Replaced Peer with PeerHandle.
  17342. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17343. (getMissingPiece): Replaced Peer with PeerHandle.
  17344. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17345. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17346. (addActivePeer): Replaced Peer with PeerHandle.
  17347. (deleteActivePeer): Replaced Peer with PeerHandle.
  17348. Added a check for the return value of find.
  17349. * src/FtpTunnelResponseCommand.cc
  17350. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17351. * src/FtpInitiateConnectionCommand.cc
  17352. (executeInternal): Removed the allocation of socket.
  17353. * src/DownloadEngine.h
  17354. (Sockets): An element is now of type SocketHandle.
  17355. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  17356. (CommandUuids): New type definition.
  17357. (rsockets): Changed its type to SockCmdMap.
  17358. (wsockets): Changed its type to SockCmdMap.
  17359. (addSocket): Rewritten.
  17360. (deleteSocket): Rewritten.
  17361. (addSocketForReadCheck): Rewritten.
  17362. (deleteSocketForReadCheck): Rewritten.
  17363. (addSocketForWriteCheck): Rewritten.
  17364. (deleteSocketForWriteCheck): Rewritten.
  17365. (PairFind): New template class.
  17366. * src/HttpDownloadCommand.h
  17367. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  17368. * src/FtpConnection.cc
  17369. (FtpConnection): Replaced Socket with SocketHandle.
  17370. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  17371. block.
  17372. * src/InitiateConnectionCommandFactory.cc
  17373. (DlAbortEx.h): Included DlAbortEx.h.
  17374. (createInitiateConnectionCommand): Throw exception if the protocol of
  17375. requested URI is not supported.
  17376. * src/Peer.cc
  17377. (nullPeer): Changed its type to PeerHandle.
  17378. (operator==): New function.
  17379. (operator!=): New function.
  17380. * src/Peer.h
  17381. (SharedHandle.h): Included SharedHandle.h.
  17382. (operator==): New function.
  17383. (operator!=): New function.
  17384. (Peer): Added the default constructor.
  17385. Use resetStatus() to initialize member variables.
  17386. (nullPeer): Removed.
  17387. * src/TrackerUpdateCommand.cc
  17388. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  17389. with MIN_PEERS.
  17390. * src/PeerListenCommand.h
  17391. (socket): Changed its type to SocketHandle.
  17392. * src/Command.h
  17393. (CommandUuid): New type definition.
  17394. (uuid): New variable.
  17395. (uuidGen): New variable.
  17396. (Command): Added the initialization of uuid.
  17397. (getUuid): New function.
  17398. * src/Socket.h
  17399. (Socket): Removed.
  17400. (SocketHandle): New type definition.
  17401. * src/DownloadEngine.h
  17402. (FindCommand): New function object.
  17403. (run): The portion of socket check was rewritten.
  17404. (SetDescriptor): New function object.
  17405. (AccumulateActiveCommandUuid): New function object.
  17406. (waitData): Rewritten.
  17407. (addSocket): Rewritten.
  17408. (deleteSocket): Rewritten.
  17409. (addSocketForReadCheck): Rewritten.
  17410. (addSocketForWriteCheck): Rewritten.
  17411. (deleteSocketForReadCheck): Rewritten.
  17412. (deleteSocketForWriteCheck): Rewritten.
  17413. * src/HttpProxyResponseCommand.h
  17414. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  17415. * src/HttpConnection.h
  17416. (socket): Changed its type to SocketHandle.
  17417. (HttpConnection): Replaced Socket with SocketHandle.
  17418. * src/PeerInitiateConnectionCommand.cc
  17419. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17420. (executeInternal): Removed the allocation of socket.
  17421. (prepareForNextPeer): Use PeerHandle.
  17422. * src/PeerMessage.h
  17423. (peer): Changed its type to PeerHandle.
  17424. (getPeer): Replaced Peer with PeerHandle.
  17425. (setPeer): Replaced Peer with PeerHandle.
  17426. * src/DownloadCommand.cc
  17427. (DownloadCommand): Replaced Socket with SocketHandle.
  17428. * src/FtpConnection.h
  17429. (socket): Changed its type to SocketHandle.
  17430. (FtpConnection): Replaced Socket with SocketHandle.
  17431. (sendPort); Replaced Socket with SocketHandle.
  17432. * src/FtpDowndloadCommand.h
  17433. (ctrlSocket): Changed its type to SocketHandle.
  17434. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17435. * src/HttpProxyRequestCommand.cc
  17436. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17437. * src/FtpTunnelRequestCommand.h
  17438. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17439. etc
  17440. * src/PeerChokeCommand.h
  17441. (setAllPeerChoked): Removed.
  17442. (setAllPeerResetDelta): Removed.
  17443. * src/PeerChokeCommand.cc
  17444. (setAllPeerChoked): Removed.
  17445. (ChokePeer): New function object.
  17446. (setAllPeerResetDelta): Removed.
  17447. (ResetDelta): New function object.
  17448. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  17449. (execute): Show download speed when the local node is a seeder.
  17450. setAllPeerChoked and setAllPeerResetDelta were rewritten
  17451. using STL.
  17452. * src/TrackerWatcherCommand.h
  17453. (MIN_PEERS): Removed.
  17454. * src/TorrentMan.cc
  17455. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  17456. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17457. To fix the bug that .aria2 file is not saved if downloading is stopped
  17458. by the errors:it results that aria2 can not resume downloading:
  17459. * src/main.cc
  17460. (normalDownload): Added the call to save().
  17461. (main): Added the deletion of the elements in 'reserved'.
  17462. To fix log:
  17463. * src/PeerInteraction.cc
  17464. (receiveHandshake): Fixed log.
  17465. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17466. To improve download performance in BitTorrent:
  17467. * src/TorrentMan.cc
  17468. (getPeer): Check the number of connections. Return nullPeer if
  17469. it is greater than MAX_PEER_UPDATE.
  17470. This code was originally here, but was removed in 0.5.1.
  17471. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17472. To improve the conditional compilation:
  17473. * src/MultiDiskWriter.h:
  17474. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17475. * src/MultiDiskWriter.cc:
  17476. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17477. * src/Util.h:
  17478. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17479. Added ENABLE_BITTORRENT around computeFastSet().
  17480. * src/Util.cc:
  17481. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17482. Added ENABLE_BITTORRENT around computeFastSet().
  17483. * src/messageDigest.h:
  17484. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  17485. * src/ShaVisitor.h:
  17486. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17487. * src/ShaVisitor.cc:
  17488. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17489. * src/main.cc:
  17490. Added ENABLE_BITTORRENT around includes and blocks related to
  17491. BitTorrent.
  17492. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  17493. digest support is not available.
  17494. * src/AbstractDiskWriter.h:
  17495. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17496. * src/AbstractDiskWriter.cc:
  17497. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17498. * src/MetalinkEntry.cc
  17499. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  17500. support is not available.
  17501. To add command-line options for Metalink:
  17502. * src/main.cc:
  17503. Added metalink-version, metalink-language, metalink-os,
  17504. follow-metalink.
  17505. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  17506. * src/main.cc: Use these definition.
  17507. * Release 0.6.0
  17508. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17509. To add Metalink support(http/ftp only):
  17510. * src/AbstractCommand.h
  17511. (tryReserved): New function.
  17512. * src/AbstractCommand.cc
  17513. (execute): Call tryReserved().
  17514. (tryReserved): New function.
  17515. * src/Request.h
  17516. (Requests): New type definition.
  17517. * src/SegmentMan.h
  17518. (reserved): New variable.
  17519. * src/Util.h
  17520. (fileChecksum): New function.
  17521. (toUpper): New function.
  17522. (toLower): New function.
  17523. * src/Util.cc
  17524. (messageDigest.h): Included.
  17525. (trim): Trim \r\n\t.
  17526. (fileChecksum): New function.
  17527. (toUpper): New function.
  17528. (toLower): New function.
  17529. * src/main.cc
  17530. (normalDownload): New function.
  17531. (main): Added 2 command-line options: metalink-file,
  17532. metalink-connection. Their usage has not been written yet.
  17533. * src/MetalinkProcessor.h: New class.
  17534. * src/Xml2MetalinkProcessor.h: New class.
  17535. * src/Xml2MetalinkProcessor.cc: New class.
  17536. * src/MetalinkEntry.h: New class.
  17537. * src/MetalinkEntry.cc: New class.
  17538. * src/MetalinkResource.h: New class.
  17539. * src/MetalinkResource.cc: New class.
  17540. To add md5 message digest checking:
  17541. * src/messageDigest.h: Rewritten.
  17542. * src/MultiDiskWriter.cc: Updated according to the changes in
  17543. messageDigest.h.
  17544. * src/ShaVisitor.cc: Updated according to the changes in
  17545. messageDigest.h.
  17546. * src/Util.cc: Updated according to the changes in messageDigest.h.
  17547. * src/AbstractDiskWriter.cc: Updated according to the changes in
  17548. messageDigest.h.
  17549. To fix a bug that causes segfault when the payload length in peer
  17550. message is less than 0:
  17551. * src/PeerConnection.cc:
  17552. (receiveMessage): Fixed the bug.
  17553. * src/PeerMessageUtil.cc
  17554. (checkLength): Throw an exception if length is less than or equals to
  17555. 0.
  17556. To add new interfaces to Base64 encoding/decoding:
  17557. * src/Base64.h
  17558. (part_encode): Changed the method signature.
  17559. (encode): New function(overload).
  17560. (decode): New function(overload).
  17561. * src/Base64.cc
  17562. (part_encode): Rewritten.
  17563. (encode): Rewritten.
  17564. (encode): New function(overload).
  17565. To prevent a peer to download same piece if there is an error in
  17566. checksum:
  17567. * src/PieceMessage.cc
  17568. (receivedAction): Call peerInteraction->abortPiece().
  17569. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17570. To fix the bug that causes same have message is sent many times to
  17571. a single peer.
  17572. * src/Time.cc
  17573. (isNewer): Use Util::difftv().
  17574. * src/Util.cc
  17575. (difftv): Added a cast to (long long int).
  17576. * src/TorrentMan.cc
  17577. (advertisePiece): Use push_front.
  17578. (getAdvertisedPieceIndexes): A performance improvement was made.
  17579. To fix the bug that sends tracker requests without a sleep interval
  17580. when the number of connections is less than 15.
  17581. * src/TrackerWatcherCommand.cc
  17582. (execute): Now the number of connections is not a factor to decide
  17583. whether or not a tracker request should be sent or not.
  17584. * src/Time.h
  17585. (setTimeInSec): New function.
  17586. * src/Time.cc
  17587. (setTimeInSec): New function.
  17588. etc.
  17589. * src/ChokeMessage.cc
  17590. (receivedAction): Removed peer->snubbing = false
  17591. * src/PeerConnection.h
  17592. (receiveHandshake): Updated doc.
  17593. * src/TorrentMan.h
  17594. (getAdvertisedPieceIndexes): Updated the method signature.
  17595. * src/TorrentMan.cc
  17596. (getAdvertisedPieceIndexes): Updated the method signature.
  17597. * src/Time.h
  17598. (getTimeInMicros): Added a cast to (long long int).
  17599. (getTimeInMillis): Added a cast to (long long int).
  17600. * Release 0.5.2
  17601. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17602. To make a listening socket non-block:
  17603. * src/SocketCore.h
  17604. (setNonBlockingMode): New function.
  17605. * src/SocketCore.cc
  17606. (setNonBlockingMode): New function.
  17607. (beginListen): Added a call to setNonBlockingMode().
  17608. (acceptConnection): Call setNonBlockingMode().
  17609. (setBlockingMode): Updated.
  17610. To handle tracker's NAT-checking:
  17611. * src/PeerConnection.cc
  17612. (receiveHandshake): 'msg' param is filled with received data and
  17613. its length is assigned to 'length' param, even if all handshake
  17614. message is not yet received.
  17615. * src/PeerInteractionCommand.cc
  17616. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  17617. a new peer connects to localhost.
  17618. A call to peerInteraction->sendHandshake() was removed because
  17619. it is called from peerInteraction->receiveHandshake(true).
  17620. * src/PeerInteraction.h
  17621. (quickReplied): New variable.
  17622. (receiveHandshake): Added an argument.
  17623. * src/PeerInteraction.cc
  17624. (PeerInteraction): Added the initialization of quickReplied.
  17625. (receiveHandshake): Send handshake message as soon as the info hash
  17626. in a handshake message from a peer is correct.
  17627. To change the random part of peer id and key parameter:
  17628. * src/TorrentMan.h
  17629. (key): New variable.
  17630. * src/TorrentMan.cc
  17631. (setupInternal1): Use Util::randomAlpha() to generate random part
  17632. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  17633. key is also generated by Util::randomAlpha() and it is now 8 character
  17634. long.
  17635. * src/Util.h
  17636. (randomAlpha): New function.
  17637. * src/Util.cc
  17638. (randomAlpha): New function.
  17639. * src/TrackerWatcherCommand.cc
  17640. (execute): In a tracker request: Use torrentMan->key as key parameter.
  17641. Added no_peer_id=1.
  17642. Set snubbing flag to false when a choke message is received from a
  17643. snubbed peer.
  17644. * src/ChokeMessage.cc
  17645. (receivedAction): Set snubbing flag to false.
  17646. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17647. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  17648. * src/SimpleLogger.h (writeHeader): New function.
  17649. * src/SimpleLogger.cc (writeHeader): New function.
  17650. (writeLog): Fixed the bug that causes segfaults if exception message
  17651. contains an unescaped "%" character.
  17652. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  17653. when a tracker request fails.
  17654. * src/Request.cc (parseUrl): Query string is now handled properly.
  17655. * Release 0.5.1
  17656. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17657. To add Time class which represents a specific instant in time and
  17658. its precision is microseconds. Time checking procedures were rewritten
  17659. using this object.
  17660. * src/Time.h: New class.
  17661. * src/Time.cc: New class.
  17662. * src/AbstractCommand.h
  17663. (updateCheckPoint): Removed.
  17664. (isTimeoutDetected): Removed.
  17665. (checkPoint): Changed the type to Time.
  17666. (timeout): New variable.
  17667. (setTimeout): New function.
  17668. * src/AbstractCommand.cc
  17669. (AbstractCommand): Removed the initialization of checkPoint.
  17670. Added the initialization of timeout.
  17671. (updateCheckPoint): Removed.
  17672. (isTimeoutDetected): Removed.
  17673. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17674. * src/PeerChokeCommand.h
  17675. (checkPoint): Changed the type to Time.
  17676. * src/PeerChokeCommand.cc
  17677. (PeerChokeCommand): Removed the initialization of checkPoint.
  17678. (execute): Rewritten using Time object.
  17679. * src/TrackerWatcherCommand.h
  17680. (checkPoint): Changed the type to Time.
  17681. * src/TrackerWatcherCommand.cc
  17682. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  17683. (execute): Rewritten.
  17684. * src/ConsoleDownloadEngine.h
  17685. (cp): Changed the type to Time.
  17686. (startup): Changed the type to Time.
  17687. * src/ConsoleDownloadEngine.cc
  17688. (initStatistics): Use cp.reset(), startup.reset().
  17689. (calculateStatistics): Rewritten using Time object.
  17690. * src/PeerAbstractCommand.h
  17691. (updateCheckPoint): Removed.
  17692. (isTimeoutDetected): Removed.
  17693. (checkPoint): Changed the type to Time.
  17694. * src/PeerAbstractCommand.cc
  17695. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17696. (updateCheckPoint): Removed.
  17697. (isTimeoutDetected): Removed.
  17698. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17699. * src/PeerInteractionCommand.cc
  17700. (PeerInteractionCommand): Removed the initializations of struct
  17701. timeval variables.
  17702. * src/PeerInteractionCommand.h
  17703. (keepAliveCheckPoint): Changed the type to Time.
  17704. (chokeCheckPoint): Changed the type to Time.
  17705. (freqCheckPoint): Changed the type to Time.
  17706. (haveCheckTime): Changed the type to Time.
  17707. * src/PeerInteractionCommand.cc
  17708. (executeInternal): Rewritten using Time object.
  17709. (detectMessageFlooding): Rewritten using Time object.
  17710. (checkLongTimePeerChoking): Rewritten using Time object.
  17711. (sendKeepAlive): Rewritten using Time object.
  17712. (checkHave): Rewritten using Time object.
  17713. * src/SleepCommand.h
  17714. (checkPoint): Changed the type to Time.
  17715. * src/SleepCommand.cc
  17716. (SleepCommand): Removed the initialization of checkPoint.
  17717. (execute): Rewritten using Time object.
  17718. * src/TorrentAutoSaveCommand.h
  17719. (checkPoint): Changed the type to Time.
  17720. * src/TorrentAutoSaveCommand.cc
  17721. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17722. (execute): Rewritten.
  17723. * src/DownloadCommand.h
  17724. (sw): Changed the type to Time.
  17725. * src/DownloadCommand.cc
  17726. (DownloadCommand): Removed the initialization of sw.
  17727. (executeInternal): Rewritten.
  17728. * src/RequestSlot.h
  17729. (dispatchedTime): Changed the type to Time.
  17730. * src/RequestSlot.cc
  17731. (RequestSlot): Removed the call to setDispatchedTime().
  17732. (setDispatchedTime): Rewirtten.
  17733. (isTimeout): Rewritten.
  17734. (getLatencyInMillis): Rewritten.
  17735. * src/TorrentDownloadEngine.h
  17736. (cp): Changed the type to Time[2].
  17737. (startup): Changed the type to Time.
  17738. * src/TorrentDownloadEngine.cc
  17739. (initStatistics): Rewritten.
  17740. (calculateStatistics): Rewritten.
  17741. * src/DownloadEngine.cc
  17742. (run): Rewritten.
  17743. To detect all attempts to connect to the tracker are failed:
  17744. * src/AbstractCommand.cc
  17745. (execute): Increment e->segmentMan->errors if a command aborted.
  17746. * src/SegmentMan.h
  17747. (errors): New variable.
  17748. * src/SegmentMan.cc
  17749. (SegmentMan): Added the initialization of errors.
  17750. (init): Added the initialization of errors.
  17751. * src/TrackerWatcherCommand.cc
  17752. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  17753. request was failed.
  17754. To handle snubbed peers:
  17755. * src/PeerChokeCommand.cc
  17756. (optUnchokingPeer): Snubbed peers don't get unchoked.
  17757. (execute): Snubbed peers don't get unchoked.
  17758. * src/PeerInteraction.h
  17759. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  17760. * src/PeerInteraction.cc
  17761. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  17762. back the requested 16k block in 60 seconds.
  17763. * src/PieceMessage.cc
  17764. (receivedAction): A peer's snubbed state is cleard if it sends
  17765. the requested 16k block in 60 seconds.
  17766. * src/Peer.h
  17767. (snubbing): New variable.
  17768. * src/Peer.cc
  17769. (resetStatus): Added snubbed = false.
  17770. To fix the bug that causes have message is not sent:
  17771. * src/PeerInteractionCommand.cc
  17772. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  17773. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  17774. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  17775. * src/TorrentMan.h
  17776. (HaveEntry): New class.
  17777. (advertisePiece): Rewritten.
  17778. (getAdvertisedPieceIndexes): Rewritten.
  17779. (Haves): Changed the type.
  17780. (getAdvertisedPieceIndexes): Added an argument.
  17781. Others:
  17782. * src/TorrentMan.h
  17783. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  17784. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  17785. * src/TorrentMan.cc
  17786. (getPeer): Don't check the number of connections here.
  17787. (setupInternal1): Changed peerId.
  17788. * src/PeerInteractionCommand.h
  17789. (KEEP_ALIVE_INTERVAL): New definition.
  17790. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  17791. * src/main.cc
  17792. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  17793. * src/DownloadEngine.h: Removed unnecessary header includes.
  17794. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17795. To fix the bug that causes segfaults if a tracker returns a zero-length
  17796. list as "peers":
  17797. * src/TrackerUpdateCommand.cc
  17798. (execute): Added a check to see wether the type of peers is Data*.
  17799. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17800. * Release 0.5.0
  17801. To fix compile issue with gcc3:
  17802. * src/CancelMessage.h
  17803. (ID): Renamed as ID_t
  17804. (ID_t): New enum.
  17805. * src/RejectMessage.h
  17806. (ID): Renamed as ID_t
  17807. (ID_t): New enum.
  17808. * src/SuggestPieceMessage.h
  17809. (ID): Renamed as ID_t
  17810. (ID_t): New enum.
  17811. * src/AllowedFastMessage.h
  17812. (ID): Renamed as ID_t
  17813. (ID_t): New enum.
  17814. * src/PortMessage.h
  17815. (ID): Renamed as ID_t
  17816. (ID_t): New enum.
  17817. * src/HaveNoneMessage.h
  17818. (ID): Renamed as ID_t
  17819. (ID_t): New enum.
  17820. * src/KeepAliveMessage.h
  17821. (ID): Renamed as ID_t
  17822. (ID_t): New enum.
  17823. * src/HaveAllMessage.h
  17824. (ID): Renamed as ID_t
  17825. (ID_t): New enum.
  17826. * src/UnchokeMessage.h
  17827. (ID): Renamed as ID_t
  17828. (ID_t): New enum.
  17829. * src/BitfieldMessage.h
  17830. (ID): Renamed as ID_t
  17831. (ID_t): New enum.
  17832. * src/PieceMessage.h
  17833. (ID): Renamed as ID_t
  17834. (ID_t): New enum.
  17835. * src/RequestMessage.h
  17836. (ID): Renamed as ID_t
  17837. (ID_t): New enum.
  17838. * src/NotInterestedMessage.h
  17839. (ID): Renamed as ID_t
  17840. (ID_t): New enum.
  17841. * src/ChokeMessage.h
  17842. (ID): Renamed as ID_t
  17843. (ID_t): New enum.
  17844. * src/InterestedMessage.h
  17845. (ID): Renamed as ID_t
  17846. (ID_t): New enum.
  17847. * src/HaveMessage.h
  17848. (ID): Renamed as ID_t
  17849. (ID_t): New enum.
  17850. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17851. * src/PeerAbstractCommand.h
  17852. (beforeSocketCheck): Removed.
  17853. * src/PeerAbstractCommand.cc
  17854. Modified in order to call executeInternal() even if socket check
  17855. and upload limit check fail.
  17856. * src/PeerInteractionCommand.h
  17857. (keepAlive): Removed.
  17858. (sendKeepAlive): New function.
  17859. (checkHave): New function.
  17860. (beforeSocketCheck): Removed.
  17861. * src/PeerInteractionCommand.cc
  17862. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17863. calls to checkHave() and sendKeepAlive().
  17864. (keepAlive): Renamed to sendKeepAlive().
  17865. (sendKeepAlive): New function.
  17866. (beforeSocketCheck): Removed.
  17867. (checkHave): New function.
  17868. * src/BitfieldMan.cc
  17869. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17870. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17871. 0.
  17872. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17873. * src/TorrentMan.h
  17874. (UsedPieces): Removed.
  17875. (Pieces): New type definition.
  17876. * src/Piece.h: Updated doc.
  17877. * src/Peer.h
  17878. (totalLength): Removed.
  17879. * src/Peer.cc
  17880. (updateLatency): Fixed the latency calculation.
  17881. * src/TorrentMan.cc
  17882. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17883. than or equal to MAX_PEER_LIST_SIZE.
  17884. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17885. then return false.
  17886. (deleteOldErrorPeers): Rewritten.
  17887. (deleteUsedPiece): Fixed the miss use of STL remove.
  17888. * src/PeerInteraction.h
  17889. (Pieces): Removed.
  17890. (deleteTimeoutRequestSlot): Removed.
  17891. (deleteCompletedRequestSlot): Removed.
  17892. (checkRequestSlot): New function.
  17893. * src/PeerInteraction.cc
  17894. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17895. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17896. (checkRequestSlot): New function.
  17897. * src/DownloadEngine.cc
  17898. (run): Clear activeSockets before calling waitData().
  17899. (waitData): Removed a call to activeSockets.clear().
  17900. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17901. To attempt to handle EINTR:
  17902. * src/SocketCore.cc
  17903. (isReadable): Added EINTR handling.
  17904. (isWritable): Added EINTR handling.
  17905. To improve the performance:
  17906. * src/AbstractCommand.cc
  17907. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17908. * src/PeerInteractionCommand.h
  17909. (receiveMessage): Renamed as receiveMessages().
  17910. (receiveMessages): New function.
  17911. * src/PeerInteractionCommand.cc
  17912. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17913. () function. detectMessageFlooding() is moved here.
  17914. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17915. (). The flooding detection for have message is comment out.
  17916. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17917. Util::difftv().
  17918. (receiveMessage): Renamed as receiveMessages().
  17919. (receiveMessages): New function.
  17920. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17921. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17922. * src/SleepCommand.cc
  17923. (execute): Use Util::difftvsec() instead of Util::difftv().
  17924. * src/BitfieldMan.h
  17925. (getNthBitIndex): New function.
  17926. (hasMissingPiece): New function.
  17927. (getAllMissingIndexes): New function.
  17928. * src/BitfieldMan.cc
  17929. (countSetBit): Rewritten.
  17930. (getNthBitIndex): New function.
  17931. (getMissingIndexRandomly): Rewritten.
  17932. (hasMissingPiece): New function.
  17933. (getAllMissingIndexes): New function.
  17934. * src/TorrentMan.cc
  17935. (hasMissingPiece): New function.
  17936. (deleteUsedPiece): Rewritten using STL.
  17937. * src/PeerInteraction.cc
  17938. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17939. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17940. (addRequests): Updated the number of pending requests.
  17941. * src/PeerAbstractCommand.cc
  17942. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17943. (execute): Returns true if TorrentMan::isHalt() is true.
  17944. Corrected the condition of upload limit checking.
  17945. * src/Util.h
  17946. (countBit): New function.
  17947. * src/Util.cc
  17948. (nbits): New variable.
  17949. (countBit): New function.
  17950. * src/DownloadEngine.h
  17951. (SockCmdMap): New type definition.
  17952. (waitData): Added an argument.
  17953. (addSocket): Added an argument.
  17954. (addSocketForReadCheck): Added an argument.
  17955. (addSocketForWriteCheck): Added an argument.
  17956. * src/DownloadEngine.cc
  17957. (run): Executes only commands whose sockets are ready to read or write.
  17958. All commands are executed in every 1 second.
  17959. (waitData): Calls select() again if it returned
  17960. EINTR.
  17961. (addSocket): Saves socket and command object pair to the map.
  17962. (deleteSocket): Deletes socket and command object pair from the map.
  17963. (addSocketForReadCheck): Added an argument.
  17964. (addSocketForWriteCheck): Added an argument.
  17965. * src/DownloadCommand.cc
  17966. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17967. To send "event=stopped" to the tracker when the application finishes:
  17968. * src/PeerChokeCommand.h
  17969. (checkPoint): New variable.
  17970. * src/PeerChokeCommand.cc
  17971. (PeerChokeCommand): Added the initialization of checkPoint.
  17972. (execute): The interval check is now done by checkPoint, not
  17973. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17974. * src/TorrentMan.h
  17975. (halt): New function.
  17976. (hasMissingPiece): New function.
  17977. (isHalt): New function.
  17978. (setHalt): New function.
  17979. * src/TorrentMan.cc
  17980. (TorrentMan): Added the initialization of halt.
  17981. * src/TorrentAutoSaveCommand.h
  17982. (checkPoint): New variable.
  17983. * src/PeerListenCommand.cc
  17984. (execute): Returns true if TorrentMan::isHalt() is true.
  17985. * src/main.cc
  17986. (setSignalHander): Added flags argument.
  17987. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17988. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17989. Removed printDownloadAbortMessage() after torrent downloading loop.
  17990. * src/TorrentAutoSaveCommand.cc
  17991. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17992. (execute): Returns true if TorrentMan::isHalt() is true.
  17993. The interval check is now done by checkPoint, not SleepCommand.
  17994. * src/TrackerWatcherCommand.cc
  17995. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17996. event=stopped.
  17997. * src/TrackerUpdateCommand.cc
  17998. (prepareForRetry): Do not use SleepCommand here.
  17999. (execute): Returns true if TorrentMan::isHalt() is true.
  18000. Others:
  18001. * src/TorrentMan.cc
  18002. (getMissingPieceIndex): Updated log message.
  18003. * src/PeerInteraction.cc
  18004. (createPeerMessag): Updated log message.
  18005. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18006. To add the ability to download several pieces in mix in a command and
  18007. increase the number of request slots according to request-cancel
  18008. latency:
  18009. * src/PeerInteractionCommand.cc
  18010. (executeInternal): The number of messages to be received at a time
  18011. is increased from 10 to 50.
  18012. * src/LogFactory
  18013. (getInstance): Added NullLogger.
  18014. * src/NullLogger.h: New class.
  18015. * src/BitfieldMan.h
  18016. (getMissingIndex): New function.
  18017. * src/BitfieldMan.cc
  18018. (getMissingIndex): New function.
  18019. * src/TorrentMan.h
  18020. (checkOutPiece): New function.
  18021. (getMissingPieceIndex): New function.
  18022. (getMissingFastPieceIndex): New function.
  18023. (getMissingFastPiece): New function.
  18024. * src/TorrentMan.cc
  18025. (updatePiece): Rewritten using STL.
  18026. (syncPiece): Rewritten using STL.
  18027. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  18028. checkOutPiece().
  18029. (getMissingPieceIndex): New function.
  18030. (getMissingFastPieceIndex): New function.
  18031. (getMissingFastPiece): New function.
  18032. (checkOutPiece): New function.
  18033. * src/PeerInteraction.h
  18034. (Pieces): New type definition.
  18035. (piece): Removed.
  18036. (pieces): New variable.
  18037. (getNewPieceAndSendInterest): Added the "piece" argument.
  18038. (abortPiece): Added the "piece" argument.
  18039. (abortAllPieces): New function.
  18040. (isInRequestSlot): New function.
  18041. (hasDownloadPiece): Added the "index" argument.
  18042. (setDownloadPiece): Removed.
  18043. (getDownloadPiece): Added the "index" argument.
  18044. (updatePiece): New function.
  18045. (createRequestMessage): Added the "index" argument.
  18046. * src/PeerInteraction.cc
  18047. (onChoked): Rewritten.
  18048. (abortPiece): Rewirtten.
  18049. (abortAllPieces): New function.
  18050. (deleteTimeoutRequestSlot): Rewritten.
  18051. Clarified code a little bit.
  18052. (deleteCompletedRequestSlot): Rewritten.
  18053. (isInRequestSlot): New function.
  18054. (syncPiece): Rewritten.
  18055. (updatePiece): New function.
  18056. (getNewPieceAndSendInterest): Rewritten.
  18057. (addRequests): Rewritten.
  18058. (getDownloadPiece): Rewritten.
  18059. (hasDownloadPiece): Rewritten.
  18060. (createRequestMessage): Added the "index" argument.
  18061. * src/common.h
  18062. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  18063. (DIV_FLOOR): New definition.
  18064. * src/PieceMessage.cc
  18065. (receivedAction): Update request-piece latency here.
  18066. * src/RequestSlot.h
  18067. (getLatencyInMillis): New function.
  18068. * src/RequestSlot.cc
  18069. (isTimeout): Rewritten using getLatencyInMillis.
  18070. (getLatencyInMillis): New function.
  18071. * src/Piece.h
  18072. (operator==): New function.
  18073. (getMissingBlockIndex): New function.
  18074. * src/Piece.cc
  18075. (operator==): New function.
  18076. (getMissingBlockIndex): New function.
  18077. * src/Peer.h
  18078. (DEFAULT_LATENCY): New definition.
  18079. (latency): New variable.
  18080. (updateLatency): New function.
  18081. (getLatency): New function.
  18082. * src/Peer.cc
  18083. (resetStatus): Reset latecy.
  18084. (updateLatency): New function.
  18085. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18086. * src/SocketCore.cc
  18087. (isReadable): Added secure to the condition.
  18088. * src/HttpConnection.cc
  18089. (receiveResponse): Fixed a bug that causes no response header
  18090. exception.
  18091. * src/Peer.h
  18092. (getFastSet): Fixed the return value type.
  18093. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18094. To remove a wait from download loop:
  18095. * src/DownloadEngine.cc
  18096. (run): Comment out shortSleep.
  18097. To rewrite the message handling:
  18098. * src/SimplePeerMessage.h: New class.
  18099. * src/SimplePeerMessage.cc: New class.
  18100. * src/CancelMessage.h: Derived from SimplePeerMessage.
  18101. (msg): New variable.
  18102. (create): New function.
  18103. (send): Removed.
  18104. (getMessage): New function.
  18105. (getMessageLength): New function.
  18106. * src/CancelMessage.cc
  18107. (create): New function.
  18108. (receivedAction): Replaced deleteRequestMessageInQueue with
  18109. rejectPieceMessageInQueue.
  18110. (send): Removed.
  18111. (getMessage): New function.
  18112. (getMessageLength): New function.
  18113. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  18114. (msg): New variable.
  18115. (msgLength): New variable.
  18116. (~BitfieldMessage): Deleted msg.
  18117. (send): Removed.
  18118. (getMessage): New function.
  18119. (getMessageLength): New function.
  18120. * src/BitfieldMessage.cc
  18121. (create): New function.
  18122. (send): Removed.
  18123. (getMessage): New function.
  18124. (getMessageLength): New function.
  18125. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  18126. (msg): New variable.
  18127. (sendPredicate): New function.
  18128. (onSendComplete): New function.
  18129. (send): Removed.
  18130. (getMessage): New function.
  18131. (getMessageLength): New function.
  18132. (create): New function.
  18133. * src/ChokeMessage.cc
  18134. (create): New function.
  18135. (send): Removed.
  18136. (sendPredicate): New function.
  18137. (getMessage): New function.
  18138. (getMessageLength): New function.
  18139. (onSendComplete): New function.
  18140. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  18141. (msg): New variable.
  18142. (send): Removed.
  18143. (getMessage): New function.
  18144. (getMessageLength): New function.
  18145. * src/KeepAliveMessage.cc
  18146. (send): Removed.
  18147. (getMessage): New function.
  18148. (getMessageLength): New function.
  18149. * src/PortMessage.h
  18150. (create): New function.
  18151. (receivedAction): Updated log message.
  18152. * src/PortMessage.cc: New file.
  18153. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  18154. (msg): New variable.
  18155. (sendPredicate): New function.
  18156. (onSendComplete): New function.
  18157. (create): New function.
  18158. (send): Removed.
  18159. (getMessage): New function.
  18160. (getMessageLength): New function.
  18161. * src/UnchokeMessage.cc
  18162. (create): New function.
  18163. (send): Removed.
  18164. (sendPredicate): New function.
  18165. (getMessage): New function.
  18166. (getMessageLength): New function.
  18167. (onSendComplete): New function.
  18168. * src/PieceMessage.h
  18169. (leftPieceDataLength): Removed.
  18170. (leftDataLength): New variable.
  18171. (headerSend): New variable.
  18172. (pendingCount): New variable.
  18173. (msgHeader): New variable.
  18174. (sendPieceData): New function.
  18175. (incrementPendingCount): New function.
  18176. (isPendingCountMax): New function.
  18177. (create): New function.
  18178. (getMessageHeader): New function.
  18179. (getMessageHeaderLength): New function.
  18180. * src/PieceMessage.cc
  18181. (create): New function.
  18182. (getMessageHeader): New function.
  18183. (getMessageHeaderLength): New function.
  18184. (send): Rewritten.
  18185. (sendPieceData): New function.
  18186. * src/HaveMessage.h: Derived from SimplePeerMessage.
  18187. (msg): New variable.
  18188. (create): New function.
  18189. (getMessage): New function.
  18190. (getMessageLength): New function.
  18191. * src/HaveMessage.cc
  18192. (create): New function.
  18193. (send): Removed.
  18194. (sendPieceData): New function.
  18195. (getMessage): New function.
  18196. (getMessageLength): New function.
  18197. * src/RequestMessage.h: Derived from SimplePeerMessage.
  18198. (msg): New variable.
  18199. (create): New function.
  18200. (send): Removed.
  18201. (getMessage): New function.
  18202. (getMessageLength): New function.
  18203. * src/RequestMessage.cc
  18204. (create): New function.
  18205. (receivedAction): Added the handling of fast extension.
  18206. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  18207. (send): Removed.
  18208. (getMessage): New function.
  18209. (getMessageLength): New function.
  18210. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  18211. (msg): New variable.
  18212. (sendPredicate): New function.
  18213. (onSendComplete): New function.
  18214. (create): New function.
  18215. (getMessage): New function.
  18216. (getMessageLength): New function.
  18217. * src/InterestedMessage.cc
  18218. (create): New function.
  18219. (send): Removed.
  18220. (sendPieceData): New function.
  18221. (getMessage): New function.
  18222. (getMessageLength): New function.
  18223. (onSendComplete): New function.
  18224. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  18225. (msg): New variable.
  18226. (sendPieceData): New function.
  18227. (onSendComplete): New function.
  18228. (create): New function.
  18229. (send): Removed.
  18230. (getMessage): New function.
  18231. (getMessageLength): New function.
  18232. * src/NotInterestedMessage.cc
  18233. (create): New function.
  18234. (send): Removed.
  18235. (sendPredicate): New function.
  18236. (getMessage): New function.
  18237. (getMessageLength): New function.
  18238. (onSendComplete): New function.
  18239. * src/AllowedFastMessage.h: New class.
  18240. * src/AllowedFastMessage.cc: New class.
  18241. * src/RejectMessage.h: New class.
  18242. * src/RejectMessage.cc: New class.
  18243. * src/SuggestPieceMessage.h: New class.
  18244. * src/SuggestPieceMessage.cc: New class.
  18245. * src/HaveAllMessage.h: New class.
  18246. * src/HaveAllMessage.cc: New class.
  18247. * src/HaveNoneMessage.h: New class.
  18248. * src/HaveNoneMessage.cc: New class.
  18249. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  18250. (msg): New variable.
  18251. (reserved): New variable.
  18252. (create): New function.
  18253. (getId): New function.
  18254. (receivedAction): New function.
  18255. (getMessage): New function.
  18256. (getMessageLength): New function.
  18257. (isFastExtensionSupported): New function.
  18258. * src/HandshakeMessage.cc
  18259. (HandshakeMessage): Moved here from HandshakeMessage.h.
  18260. (create): New function.
  18261. (getMessage): New function.
  18262. (getMessageLength): New function.
  18263. (toString): Added the output of reserved field.
  18264. (check): Added const qualifier.
  18265. (isFastExtensionSupported): New function.
  18266. * src/PeerMessageUtil.h
  18267. (createChokeMessage): Removed.
  18268. (createUnchokeMessage): Removed.
  18269. (createInterestedMessage): Removed.
  18270. (createNotInterestedMessage): Removed.
  18271. (createHaveMessage): Removed.
  18272. (createBitfieldMessage): Removed.
  18273. (createRequestMessage): Removed.
  18274. (createCancelMessage): Removed.
  18275. (createPieceMessage): Removed.
  18276. (createPortMessage): Removed.
  18277. (createChokeMessage): Removed.
  18278. (createUnchokeMessage): Removed.
  18279. (createInterestedMessage): Removed.
  18280. (createNotInterestedMessage): Removed.
  18281. (createHaveMessage): Removed.
  18282. (createBitfieldMessage): Removed.
  18283. (createRequestMessage): Removed.
  18284. (createCancelMessage): Removed.
  18285. (createPieceMessage): Removed.
  18286. (createKeepAliveMessage): Removed.
  18287. (createHandshakeMessage): Removed.
  18288. (setIntParam): New function.
  18289. (createPeerMessageString): New function.
  18290. * src/PeerMessageUtil.cc
  18291. (createChokeMessage): Removed.
  18292. (createUnchokeMessage): Removed.
  18293. (createInterestedMessage): Removed.
  18294. (createNotInterestedMessage): Removed.
  18295. (createHaveMessage): Removed.
  18296. (createBitfieldMessage): Removed.
  18297. (createRequestMessage): Removed.
  18298. (createCancelMessage): Removed.
  18299. (createPieceMessage): Removed.
  18300. (createPortMessage): Removed.
  18301. (createRequestMessage): Removed.
  18302. (createCancelMessage): Removed.
  18303. (createPieceMessage): Removed.
  18304. (createHaveMessage): Removed.
  18305. (createChokeMessage): Removed.
  18306. (createUnchokeMessage): Removed.
  18307. (createInterestedMessage): Removed.
  18308. (createNotInterestedMessage): Removed.
  18309. (createBitfieldMessage): Removed.
  18310. (createKeepAliveMessage): Removed.
  18311. (createHandshakeMessage): Removed.
  18312. (setIntParam): New function.
  18313. (createPeerMessageString): New function.
  18314. * src/PeerConnection.h
  18315. (peer): Removed.
  18316. (torrentMan): Removed.
  18317. (createNLengthMessage): Removed.
  18318. (setIntParam): Removed.
  18319. (writeOutgoingMessageLog): Removed all overloaded functions.
  18320. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18321. (sendMessage): New function.
  18322. (sendHandshake): Removed.
  18323. (sendKeepAlive): Removed.
  18324. (sendChoke): Removed.
  18325. (sendUnchoke): Removed.
  18326. (sendInterested): Removed.
  18327. (sendNotInterested): Removed.
  18328. (sendHave): Removed.
  18329. (sendBitfield): Removed.
  18330. (sendRequest): Removed.
  18331. (sendPiece): Removed.
  18332. (sendPieceHeader): Removed.
  18333. (sendPieceData): Removed.
  18334. (sendCancel): Removed.
  18335. (getPeer): Removed.
  18336. * src/PeerConnection.cc
  18337. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18338. (sendHandshake): Removed.
  18339. (sendKeepAlive): Removed.
  18340. (createNLengthMessage): Removed.
  18341. (setIntParam): Removed.
  18342. (writeOutgoingMessageLog): Removed all overloaded functions.
  18343. (sendChoke): Removed.
  18344. (sendUnchoke): Removed.
  18345. (sendInterested): Removed.
  18346. (sendNotInterested): Removed.
  18347. (sendHave): Removed.
  18348. (sendBitfield): Removed.
  18349. (sendRequest): Removed.
  18350. (sendPiece): Removed.
  18351. (sendPieceHeader): Removed.
  18352. (sendPieceData): Removed.
  18353. (sendMessage): New function.
  18354. (sendCancel): Removed.
  18355. * src/PeerInteractionCommand.cc
  18356. (PeerInteractionCommand): Call setUploadLimit.
  18357. (executeInternal): Call setUploadLimit.
  18358. Added the handling of "inProgress" state of handshake message.
  18359. Call sendBitfield() or sendAllowdFast() instead of deprecated
  18360. sendNow().
  18361. (keepAlive): Call addMessage and sendMessage instead of deprecated
  18362. sendNow().
  18363. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  18364. * src/TorrentMan.h
  18365. (PEER_ID_LENGTH): New definition.
  18366. (hasAllPieces): New function.
  18367. * src/TorrentMan.cc
  18368. (getMissingPiece): Added the handling of fast extension.
  18369. (cancelPiece): Call updatePiece().
  18370. (hasAllPieces): New function.
  18371. * src/PeerInteraction.h
  18372. (fastSet): New variable.
  18373. (getNewPieceAndSendInterest): Changed the return type to void.
  18374. (send): Renamed as sendMessages.
  18375. (deleteAllRequestSlot): Removed.
  18376. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18377. (cancelAllRequest): Removed all overloaded functions.
  18378. (deleteAllRequestSlot): Removed.
  18379. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18380. (rejectPieceMessageInQueue): New function.
  18381. (rejectAllPieceMessageInQueue): New function.
  18382. (onChoked): New function.
  18383. (isSendingMessageInProgress): New function.
  18384. (getCorrespondingRequestSlot): Changed its arguments.
  18385. (isInFastSet): New function.
  18386. (addFastSetIndex): New function.
  18387. (addRequests): New function.
  18388. (sendNow): Removed.
  18389. (trySendNow): Removed.
  18390. (sendBitfield): New function.
  18391. (sendAllowdFast): New function.
  18392. (createHaveAllMessage): New function.
  18393. (createHaveNoneMessage): New function.
  18394. (createRejectMessage): New function.
  18395. (createAllowedFastMessage): New function.
  18396. * src/PeerInteraction.cc
  18397. (send): Renamed as sendMessages.
  18398. (sendMessages): New function.
  18399. (MsgPushBack): New class.
  18400. (isSendingMessageInProgress): New function.
  18401. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18402. (rejectAllPieceMessageInQueue): New function.
  18403. Added the handling of fast extension.
  18404. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18405. (rejectPieceMessageInQueue): New function.
  18406. Added the handling of fast extension.
  18407. (deleteRequestSlot): Replaced for loop with std::find.
  18408. (onChoked): New function.
  18409. (deleteAllRequestSlot): Removed.
  18410. (abortPiece): Rewirtten.
  18411. (deleteTimeoutRequestSlot): Updated log messages.
  18412. (getCorrespondingRequestSlot): Changed its arguments.
  18413. (cancelAllRequest): Removed all overloaded functions.
  18414. (receiveHandshake): Added the check to see whether an incoming peer
  18415. supports fast extension.
  18416. (createHandshakeMessage): Use HandshakeMessage::create instead of
  18417. PeerMessageUtil.
  18418. (createPeerMessage): Use create() of each message class instead of
  18419. PeerMessageUtil.
  18420. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  18421. AllowedFastMessage were added.
  18422. (getNewPieceAndSendInterest): Changed its return value type to void.
  18423. Added the handling of fast extension.
  18424. (addRequests): New function.
  18425. (sendNow): Removed.
  18426. (sendHandshake): Rewritten.
  18427. (trySendNow): Removed.
  18428. (sendBitfield): New function.
  18429. (sendAllowdFast): New function.
  18430. (isInFastSet): New function.
  18431. (addFastSetIndex): New function.
  18432. (createRequestMessage): Use RequestMessage::create instead of
  18433. PeerMessageUtil.
  18434. (createCancelMessage): Use CancelMessage::create instead of
  18435. PeerMessageUtil.
  18436. (createPieceMessage): Use PieceMessage::create instead of
  18437. PeerMessageUtil.
  18438. (createHaveMessage): Use HaveMessage::create instead of
  18439. PeerMessageUtil.
  18440. (createChokeMessage): Use ChokeMessage::create instead of
  18441. PeerMessageUtil.
  18442. (createUnchokeMessage): Use UnchokeMessage::create instead of
  18443. PeerMessageUtil.
  18444. (createInterestedMessage): Use InterestedMessage::create instead of
  18445. PeerMessageUtil.
  18446. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  18447. of PeerMessageUtil.
  18448. (createBitfieldMessage): Use BitfieldMessage::create instead of
  18449. PeerMessageUtil.
  18450. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  18451. PeerMessageUtil.
  18452. (createHaveAllMessage): New function.
  18453. (createHaveNoneMessage): New function.
  18454. (createRejectMessage): New function.
  18455. (createAllowedFastMessage: New function.
  18456. * src/Util.h
  18457. (sha1Sum): New function.
  18458. (computeFastSet): New function.
  18459. * src/Util.cc
  18460. (sha1Sum): New function.
  18461. (computeFastSet): New function.
  18462. * src/Peer.h
  18463. (fastExtensionEnabled): New variable.
  18464. (fastSet): New variable.
  18465. (setAllBitfield): New function.
  18466. (setFastExtensionEnabled): New function.
  18467. (isFastExtensionEnabled): New function.
  18468. (addFastSetIndex): New function.
  18469. (getFastSet): New function.
  18470. (isInFastSet): New function.
  18471. (countFastSet): New function.
  18472. * src/Peer.cc
  18473. (isInFastSet): New function.
  18474. (addFastSetIndex): New function.
  18475. (setAllBitfield): New function.
  18476. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  18477. sockets.
  18478. * src/PeerAbstractCommand.cc
  18479. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  18480. and uploadLimit.
  18481. (execute): Changed the procedure of checking sockets. The upload speed
  18482. checking were added.
  18483. (setUploadLimit): New function.
  18484. (setUploadLimitCheck): New function.
  18485. * src/PeerAbstractCommand.h
  18486. (setUploadLimit): New function.
  18487. (setUploadLimitCheck): New function.
  18488. (uploadLimit): New variable.
  18489. (uploadLimitCheck): New variable.
  18490. To contact a tracker regularly:
  18491. * src/TrackerWatcherCommand.h (interval): New variable.
  18492. (checkPoint): New variable.
  18493. (TrackerWatcherCommand): Added interval argument.
  18494. * src/TrackerWatcherCommand.cc
  18495. (TrackerWatcherCommand): Initialized checkPoint.
  18496. (execute): Now a tracker is contacted in every specified period.
  18497. If peer list is not needed, send request with numwant=0.
  18498. * src/TrackerUpdateCommand.cc
  18499. (execute): Updated log messages.
  18500. * src/DownloadEngine.cc
  18501. (~DownloadEngine): Removed two asserts.
  18502. (waitData): Uncommented wfds. May be a bug fix.
  18503. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18504. * src/PeerInteractionCommand.h
  18505. (checkInactiveConnection): Removed.
  18506. * src/PeerInteractionCommand.cc
  18507. (executeInternal): Removed following function calls:
  18508. detectMessageFlooding(), checkLongTimePeerChoking and
  18509. checkInactiveConnection().
  18510. (checkInactiveConnection): Removed.
  18511. (detectMessageFlooding): Removed function call to
  18512. checkInactiveConnection().
  18513. * src/PeerMessageUtil.h
  18514. (createChokeMessage): New function. Overload.
  18515. (createUnchokeMessage): New function. Overload.
  18516. (createInterestedMessage): New function. Overload.
  18517. (createNotInterestedMessage): New function. Overload.
  18518. (createHaveMessage): New function. Overload.
  18519. (createBitfieldMessage): New function. Overload.
  18520. (createRequestMessage): New function. Overload.
  18521. (createCancelMessage): New function. Overload.
  18522. (createPieceMessage): New function. Overload.
  18523. (createKeepAliveMessage): New function. Overload.
  18524. * src/PeerMessageUtil.cc
  18525. (createChokeMessage): New function. Overload.
  18526. (createUnchokeMessage): New function. Overload.
  18527. (createInterestedMessage): New function. Overload.
  18528. (createNotInterestedMessage): New function. Overload.
  18529. (createHaveMessage): New function. Overload.
  18530. (createBitfieldMessage): New function. Overload.
  18531. (createRequestMessage): New function. Overload.
  18532. (createCancelMessage): New function. Overload.
  18533. (createPieceMessage): New function. Overload.
  18534. (createKeepAliveMessage): New function. Overload.
  18535. * src/SendMessageQueue.cc
  18536. (createRequestMessage): Use PeerMessageUtil.
  18537. (createCancelMessage): Use PeerMessageUtil.
  18538. (createPieceMessage): Use PeerMessageUtil.
  18539. (createHaveMessage): Use PeerMessageUtil.
  18540. (createChokeMessage): Use PeerMessageUtil.
  18541. (createUnchokeMessage): Use PeerMessageUtil.
  18542. (createInterestedMessage): Use PeerMessageUtil.
  18543. (createNotInterestedMessage): Use PeerMessageUtil.
  18544. (createBitfieldMessage): Use PeerMessageUtil.
  18545. (createKeepAliveMessage): Use PeerMessageUtil.
  18546. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  18547. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  18548. * src/PeerInteraction.h: New class.
  18549. * src/PeerInteraction.cc: New class.
  18550. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18551. Each peer message has its own class.
  18552. * src/PendingMessages.h: Removed.
  18553. * src/PendingMessages.cc: Removed. The sending process was moved to
  18554. each message class.
  18555. * src/RequestSlotMan.h: Removed.
  18556. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  18557. SendMessageQueue.
  18558. * src/RequestMessage.h: New class.
  18559. * src/RequestMessage.cc: New class.
  18560. * src/CancelMessage.h: New class.
  18561. * src/CancelMessage.cc: New class.
  18562. * src/BitfieldMessage.h: New class.
  18563. * src/BitfieldMessage.cc: New class.
  18564. * src/ChokeMessage.h: New class.
  18565. * src/ChokeMessage.cc: New class.
  18566. * src/KeepAliveMessage.h: New class.
  18567. * src/KeepAliveMessage.cc: New class.
  18568. * src/PortMessage.h: New class.
  18569. * src/UnchokeMessage.h: New class.
  18570. * src/UnchokeMessage.cc: New class.
  18571. * src/PieceMessage.h: New class.
  18572. * src/PieceMessage.cc: New class.
  18573. * src/HaveMessage.h: New class.
  18574. * src/HaveMessage.cc: New class.
  18575. * src/BitfieldMessage.h: New class.
  18576. * src/BitfieldMessage.cc: New class.
  18577. * src/NotInterestedMessage.h: New class.
  18578. * src/NotInterestedMessage.cc: New class.
  18579. * src/InterestedMessage.h: New class.
  18580. * src/InterestedMessage.cc: New class.
  18581. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  18582. (getSendMessageQueue): New function.
  18583. (setSendMessageQueue): New function.
  18584. * src/HandshakeMessage.cc: New class.
  18585. * src/PeerConnection.h (receiveMessage): Changed return value and
  18586. arguments.
  18587. (receiveHandshake): Changed return value and arguments.
  18588. * src/PeerConnection.cc (receiveMessage): Do not create message class
  18589. here.
  18590. (receiveHandshake): Do not create handshake class here.
  18591. * src/PeerInteractionCommand.h (peerConnection): Removed.
  18592. (piece): Removed.
  18593. (syncPiece): Removed.
  18594. (sendInterest): Removed.
  18595. (sendMessages): Removed.
  18596. (createRequestPendingMessage): Removed.
  18597. (checkPieceHash): Removed.
  18598. (erasePieceOnDisk): Removed.
  18599. (getNewPieceAndSendInterest): Removed.
  18600. (onGotNewPice): Removed.
  18601. (onGotWrongPiece): Removed.
  18602. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18603. Removed peerConnection, piece.
  18604. (~PeerInteractionCommand): Removed peerConnection.
  18605. (executeInternal): Use sendMessageQueue instead of peerConnection.
  18606. (syncPiece): Moved to SendMessageQueue.
  18607. (decideChoking): Removed PendingMessage.
  18608. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  18609. The action after receiving peer message was moved to each message
  18610. class.
  18611. (onGotNewPice): Moved to SendMessageQueue.
  18612. (onGotWrongPiece): Moved to SendMessageQueue.
  18613. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  18614. (sendInterest): Moved to SendMessageQueue.
  18615. (createRequestPendingMessage): Removed.
  18616. (sendMessages): Moved to SendMessageQueue.
  18617. (onAbort): Use SendMessageQueue::abortPiece()
  18618. (keepAlive): Use sendMessageQueue instead of peerConnection.
  18619. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  18620. (checkPieceHash): Moved to SendMessageQueue.
  18621. (erasePieceOnDisk): Moved to SendMessageQueue.
  18622. * src/PeerMessageUtil.h
  18623. (createBitfieldMessage): Removed.
  18624. (createHaveMessage): Changed return value and arguments.
  18625. (createBitfieldMessage): Changed return value and arguments.
  18626. (createRequestCancelMessage): Removed.
  18627. (createPieceMessage): Changed return value and arguments.
  18628. (getShortIntParam): New function.
  18629. (checkIndex): Changed arguments.
  18630. (checkBegin): Changed arguments.
  18631. (checkLength): Changed arguments.
  18632. (checkPieceOffset): Removed.
  18633. (checkRange): New function.
  18634. (checkBitfield): Changed arguments.
  18635. (createPeerMessage): Removed.
  18636. (checkIntegrity): Removed.
  18637. (createHandshakeMessage): Changed arguments.
  18638. (createChokeMessage): New function.
  18639. (createUnchokeMessage): New function.
  18640. (createInterestedMessage): New function.
  18641. (createNotInterestedMessage): New function.
  18642. (createRequestMessage): New function.
  18643. (createCancelMessage): New function.
  18644. (createPortMessage): New function.
  18645. * src/PeerMessageUtil.cc
  18646. (createBitfieldMessage): Removed.
  18647. (createHaveMessage): Changed return value and arguments.
  18648. (createBitfieldMessage): Changed return value and arguments.
  18649. (createRequestCancelMessage): Removed.
  18650. (createPieceMessage): Changed return value and arguments.
  18651. (getShortIntParam): New function.
  18652. (checkIndex): Changed arguments.
  18653. (checkBegin): Changed arguments.
  18654. (checkLength): Changed arguments.
  18655. (checkPieceOffset): Removed.
  18656. (checkRange): New function.
  18657. (checkBitfield): Changed arguments.
  18658. (createPeerMessage): Removed.
  18659. (checkIntegrity): Removed.
  18660. (createHandshakeMessage): Changed arguments.
  18661. (createChokeMessage): New function.
  18662. (createUnchokeMessage): New function.
  18663. (createInterestedMessage): New function.
  18664. (createNotInterestedMessage): New function.
  18665. (createRequestMessage): New function.
  18666. (createCancelMessage): New function.
  18667. (createPortMessage): New function.
  18668. * src/PeerMessage.h
  18669. (id): Removed.
  18670. (index): Removed.
  18671. (begin): Removed.
  18672. (length): Removed.
  18673. (bitfield): Removed.
  18674. (bitfieldLength): Removed.
  18675. (block): Removed.
  18676. (blockLength): Removed.
  18677. (inProgress): New variable.
  18678. (cuid): New variable.
  18679. (peer): New variable.
  18680. (sendMessageQueue): New variable.
  18681. (logger): New variable.
  18682. (setBitfield): Removed.
  18683. (getBitfield): Removed.
  18684. (setBlock): Removed.
  18685. (getBlock): Removed.
  18686. (getBitfieldLength): Removed.
  18687. (getBlockLength): Removed.
  18688. (isInProgress): New function.
  18689. (toString): Made pure virtual.
  18690. (check): New function.
  18691. (send): New function.
  18692. (receivedAction): New function.
  18693. (getId): Made pure virtual.
  18694. (setId): Removed.
  18695. (getIndex): Removed.
  18696. (setIndex): Removed.
  18697. (getBegin): Removed.
  18698. (setBegin): Removed.
  18699. (getLength): Removed.
  18700. (setLength): Removed.
  18701. (getCuid): New function.
  18702. (setCuid): New function.
  18703. (getPeer): New function.
  18704. (setPeer): New function.
  18705. (getSendMessageQueue): New function.
  18706. (setSendMessageQueue): New function.
  18707. (ID): Removed.
  18708. * src/PeerMessage.cc
  18709. (setBitfield): Removed.
  18710. (setBlock): Removed.
  18711. (toString): Removed.
  18712. * src/TorrentMan.h
  18713. (getPieceLength): New function.
  18714. (getPieceLength): New function.
  18715. * src/SendMessageQueue.h
  18716. (REQUEST_TIME_OUT): New definition.
  18717. (RequestSlots): New definition.
  18718. (MessageQueue): New definition.
  18719. (requestSlotMan): Removed.
  18720. (pendingMessages): Removed.
  18721. (requestSlots): New variable.
  18722. (messageQueue): New variable.
  18723. (torrentMan): New variable.
  18724. (peerConnection): New variable.
  18725. (peer): New variable.
  18726. (piece): New variable.
  18727. (getNewPieceAndSendInterest): New function.
  18728. (createPeerMessage): New function.
  18729. (createHandshakeMessage): New function.
  18730. (send): Made private.
  18731. (setPeerMessageCommonProperty): New function.
  18732. (deleteAllRequestSlot): New function.
  18733. (deleteRequestMessageInQueue): New function.
  18734. (cancelAllRequest): Made private.
  18735. (cancelAllRequest): Made private.
  18736. (countRequestSlot): Made private.
  18737. (addPendingMessage): Removed.
  18738. (deletePendingPieceMessage): Removed.
  18739. (deletePendingRequestMessage): Removed.
  18740. (addMessage): New function.
  18741. (deletePieceMessageInQueue): New function.
  18742. (deleteTimeoutRequestSlot): Changed argument.
  18743. (deleteCompletedRequestSlot): Changed argument.
  18744. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  18745. (getCorrespondingRequestSlot): New function.
  18746. (countPendingMessage): Removed.
  18747. (countMessageInQueue): New function.
  18748. (getTorrentMan): New function.
  18749. (getPeerConnection): New function.
  18750. (hasDownloadPiece): New function.
  18751. (getDownloadPiece): New function.
  18752. (setDownloadPiece): New function.
  18753. (syncPiece): New function.
  18754. (sendMessages): New function.
  18755. (sendNow): New function.
  18756. (trySendNow): New function.
  18757. (abortPiece): New function.
  18758. (sendHandshake): New function.
  18759. (receiveMessage): New function.
  18760. (receiveHandshake): New function.
  18761. (createRequestMessage): New function.
  18762. (createCancelMessage): New function.
  18763. (createPieceMessage): New function.
  18764. (createHaveMessage): New function.
  18765. (createChokeMessage): New function.
  18766. (createUnchokeMessage): New function.
  18767. (createInterestedMessage): New function.
  18768. (createNotInterestedMessage): New function.
  18769. (createBitfieldMessage): New function.
  18770. (createKeepAliveMessage): New function.
  18771. * src/SendMessageQueue.cc
  18772. (SendMessageQueue): Removed requestSlotMan.
  18773. Instantiated peerConnection here.
  18774. (~SendMessageQueue): Removed requestSlotMan.
  18775. Added deletion of peerConnection and the contents of messageQueue.
  18776. (send): Updated according to the change of messageQueue.
  18777. (addPendingMessage): Renamed to addMessage.
  18778. (addMessage): New function.
  18779. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  18780. (deletePieceMessageInQueue): New function.
  18781. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  18782. (deleteRequestMessageInQueue): New function.
  18783. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  18784. here.
  18785. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  18786. (...) was moved here.
  18787. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  18788. moved here.
  18789. (deleteCompletedRequestSlot):
  18790. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  18791. (getCorrespondingRequestSlot):
  18792. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  18793. And renamed to getCorrespondingRequestSlot, correcting a typo.
  18794. (countPendingMessage): Renamed to countMessageInQueue.
  18795. (countMessageInQueue): New function.
  18796. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  18797. (receiveHandshake): New function.
  18798. (createHandshakeMessage): New function.
  18799. (receiveMessage): New function.
  18800. (createPeerMessage): New function.
  18801. (syncPiece): New function.
  18802. (getNewPieceAndSendInterest): New function.
  18803. (sendMessages): New function.
  18804. (sendNow): New function.
  18805. (trySendNow): New function.
  18806. (sendHandshake): New function.
  18807. (abortPiece): New function.
  18808. (getDownloadPiece): New function.
  18809. (getPeerMessageCommonProperty): New function.
  18810. (createRequestMessage): New function.
  18811. (createCancelMessage): New function.
  18812. (createPieceMessage): New function.
  18813. (createHaveMessage): New function.
  18814. (createChokeMessage): New function.
  18815. (createUnchokeMessage): New function.
  18816. (createInterestedMessage): New function.
  18817. (createNotInterestedMessage): New function.
  18818. (createBitfieldMessage): New function.
  18819. (createKeepAliveMessage): New function.
  18820. To add simple Content-Disposition support:
  18821. * src/HttpResponseCommand.h (determinFilename): New function.
  18822. * src/HttpResponseCommand.cc (executeInternal):
  18823. Use determinFilename(headers) instead of req->getFile() when comparing
  18824. filename.
  18825. (determinFilename): New function.
  18826. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18827. req->getFile().
  18828. (handleOtherEncoding): Use determinFilename(headers) instead of
  18829. req->getFile().
  18830. * src/Util.h (getContentDispositionFilename): New function.
  18831. * src/Util.cc (getContentDispositionFilename): New function.
  18832. * src/LogFactory.h (release): New function.
  18833. * src/LogFactory.cc (release): New function.
  18834. To fix a bug that causes out-of-bound exception when HTTP status
  18835. line is wrong:
  18836. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18837. size.
  18838. * src/common.h (Deleter): New class.
  18839. * src/SegmentMan.cc
  18840. (~SegmentMan): Added deletion of splitter and diskWriter.
  18841. * src/DownloadEngine.h
  18842. (Commands): Use deque.
  18843. (clearQueue): New function.
  18844. * src/DownloadEngine.cc
  18845. (~DownloadEngine): Added deletion of segmentMan.
  18846. (cleanQueue): New function.
  18847. * src/TorrentDownloadEngine.h
  18848. (TorrentDownloadEngine): The implementation was moved to
  18849. TorrentDownloadEngine.cc.
  18850. (~TorrentDownloadEngine): The implementation was moved to
  18851. TorrentDownloadEngine.cc.
  18852. * src/TorrentDownloadEngine.cc
  18853. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18854. * src/main.cc
  18855. (clearRequest): Removed.
  18856. (handler): Added deletion of e.
  18857. (torrentHandler): Added deletion of te.
  18858. (main): Do not share splitter.
  18859. Use Deleter instead of clearRequest.
  18860. Deletion of classes were updated.
  18861. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18862. * src/main.cc (main): Fixed typo.
  18863. * src/message.h: Fixed typo.
  18864. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18865. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18866. To add --select-file command-line option:
  18867. * src/Util.cc
  18868. (unfoldRange): New function.
  18869. (getNum): New function.
  18870. (unfoldSubRange): New function
  18871. * src/main.cc
  18872. (showUsage): Added help message.
  18873. (main): Added --select-file command-line option. Updated the layout of
  18874. file listing.
  18875. * src/common.h
  18876. (Integers): New definition.
  18877. * src/SocketCore.cc
  18878. (writeData): Removed timeout argument.
  18879. (readData): Removed timeout argument.
  18880. (peekData): Removed timeout argument.
  18881. * src/Socket.cc
  18882. (writeData): Removed timeout argument.
  18883. (readData): Removed timeout argument.
  18884. (peekData): Removed timeout argument.
  18885. * Release 0.4.1
  18886. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18887. To deploy upload rate based choking algorithm:
  18888. * src/PeerInteractionCommand.cc
  18889. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18890. peer currently used.
  18891. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18892. download completes. Simplified.
  18893. (receiveMessage): Updated.
  18894. * src/TorrentMan.h
  18895. (activePeers): New variable.
  18896. (addActivePeer): New function.
  18897. (getActivePeers): New function.
  18898. (deleteActivePeer): New function.
  18899. * src/TorrentMan.cc
  18900. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18901. * src/PeerAbstractCommand.cc
  18902. (onAbort): Use peer->resetStatus().
  18903. * src/main.cc
  18904. (PeerChokeCommand.h): Included.
  18905. (main): Added the instance of ChokingCommand to the command queue.
  18906. * src/Peer.h
  18907. (amChoking): Renamed from amChocking
  18908. (chokingRequired): New variable.
  18909. (optUnchoking): New variable.
  18910. (deltaUpload): New variable.
  18911. (deltaDownload): New variable.
  18912. (addDeltaUpload): New function.
  18913. (resetDeltaUpload): New function.
  18914. (addDeltaDownload): New function.
  18915. (resetDeltaDownload): New function.
  18916. (addPeerUpload): Added a call to addDeltaUpload.
  18917. (addPeerDownload): Added a call to addDeltaDownload.
  18918. * src/Peer.cc
  18919. (shouldBeChoking): Renamed from shouldChoke.
  18920. (resetStatus): New function.
  18921. * src/PeerChokeCommand.h: New class.
  18922. * src/PeerChokeCommand.cc: New class.
  18923. To add lazy upload speed limiter:
  18924. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18925. statistics calculation to TorrentDownloadEngine.
  18926. * src/TorrentConsoleDownloadEngine.cc
  18927. (sendStatistics): Renamed from printStatistics.
  18928. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18929. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18930. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18931. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18932. calculation.
  18933. (sendStatistics): New function as pure virtual function.
  18934. (getUploadSpeed): New function.
  18935. * src/TorrentDownloadEngine.cc
  18936. (initStatistics): New function.
  18937. (calculateSpeed): New function.
  18938. (calculateStatistics): New function.
  18939. * src/SendMessageQueue.h
  18940. (uploadLength): New variable.
  18941. (send): Added an argument.
  18942. (setUploadLimit): New function.
  18943. (getUploadLimit): New function.
  18944. * src/SendMessageQueue.cc
  18945. (send): Added upload speed limiter.
  18946. * src/prefs.h
  18947. (PREF_UPLOAD_LIMIT): New definition.
  18948. * src/PeerInteractionCommand.cc
  18949. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18950. * src/main.cc
  18951. (main): Added --upload-limit option
  18952. For bug fixes:
  18953. * src/main.cc
  18954. (showUsage): Corrected --listen-port help
  18955. Other changes:
  18956. * src/TorrentMan.cc
  18957. (getPeer): Return nullPeer if connection is grather than
  18958. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18959. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18960. To add some useful information to the exception message:
  18961. * src/SocketCore.cc : Updated messages.
  18962. * src/SegmentMan.cc :
  18963. * src/TorrentMan.cc : Updated messages.
  18964. * src/MultiDiskWriter.cc : Updated messages.
  18965. * src/Util.cc : Updated messages.
  18966. * src/AbstractDiskWriter.cc : Updated messages.
  18967. * src/PreAllocationDiskWriter.cc : Updated messages.
  18968. * src/message.cc : Added new messages. Updated some messages.
  18969. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18970. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18971. Updated threshold from 30 to 15.
  18972. * src/AbstractDiskWriter.h (filename): New variable.
  18973. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18974. (createFile): Assigned filename.
  18975. * src/main.cc: Updated the help message for http-auth-scheme.
  18976. * Release 0.4.0
  18977. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18978. To add TrackerUpdateCommand with which replaces
  18979. CompactTrackerResponseProcessor:
  18980. * src/TrackerWatcherCommand.h (req): Removed.
  18981. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18982. if the number of peer connections are less than 30.
  18983. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18984. * src/SegmentMan.h (diskWriter): New function.
  18985. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18986. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18987. (main): Use TrackerUpdateCommand.
  18988. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18989. (req): New variable.
  18990. (setTrackerResponseProcessor): Removed.
  18991. (getTrackerResponseProcessor): Removed.
  18992. (processTrackerResponse): Removed.
  18993. * src/DownloadEngine.h (diskWriter): Removed.
  18994. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18995. to torrentMan->processTrackerResponse().
  18996. To add Util::expandBuffer:
  18997. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18998. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18999. * src/Util.h (expandBuffer): New function.
  19000. To fix the bug that causes segmentation fault when "-l ." is specified
  19001. in command-line option:
  19002. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  19003. (openFile): New function.
  19004. (closeFile): New function.
  19005. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  19006. (~SimpleLogger): Call closeFile();
  19007. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  19008. * src/main.cc (main): Added a check to see logger is configured
  19009. properly.
  19010. To enable HTTP authentication without specifying "--http-auth-scheme"
  19011. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  19012. * src/HttpConnection.cc (createRequest): Send Authorization header
  19013. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  19014. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  19015. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  19016. * src/Peer.cc (shouldChoke): Updated algorithm.
  19017. * src/message.h (EX_AUTH_FAILED): New definition.
  19018. (EX_FILE_OPEN): New definition.
  19019. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  19020. if status == 401.
  19021. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  19022. if req->isTorrent == true.
  19023. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  19024. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  19025. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  19026. (createFile): Updated message.
  19027. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19028. To add a readout of estimated remaining time to normal HTTP/FTP
  19029. downloads:
  19030. * src/ConsoleDownloadEngine.h (startup): New variable.
  19031. (startupLength): New variable.
  19032. (isStartupLengthSet): New variable.
  19033. (avgSpeed): New variable.
  19034. (eta): New variable.
  19035. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  19036. estimated remaining time.
  19037. (initStatistics): Initialized newly added variables.
  19038. (calculateStatistics): Calculate average speed and estimated remaining
  19039. time.
  19040. To decouple TorrentDownloadEngine from HttpResponseCommand:
  19041. * src/TrackerDownloadCommand.h: Removed.
  19042. * src/TrackerDownloadCommand.cc: Removed.
  19043. * src/TrackerInitCommand.h: Removed.
  19044. * src/TrackerInitCommand.cc: Removed.
  19045. * src/TrackerUpdateCommand.h: Removed.
  19046. * src/TrackerUpdateCommand.cc: Removed.
  19047. * src/TrackerWatcherCommand.cc (execute): The construction of request
  19048. url written in TrackerInitCommand was moved here. Do not create
  19049. tracker request command if torrentMan->trackers != 0.
  19050. * src/CompactTrackerResponseProcessor.h: New class.
  19051. * src/CompactTrackerResponseProcessor.cc: New class.
  19052. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  19053. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  19054. Decoupled TorrentDownloadEngine from this.
  19055. * src/SegmentMan.h (init): New function.
  19056. * src/SegmentMan.cc (init): New function.
  19057. * src/TorrentMan.h (responseProcessor): New variable.
  19058. (trackers): New variable.
  19059. (setTrackerResponseProcessor): New function.
  19060. (getTrackerResponseProcessor): New function.
  19061. (processTrackerResponse): New function.
  19062. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  19063. (processTrackerResponse): New function.
  19064. * src/main.cc (main): Use ByteArrayDiskWriter and
  19065. CompactTrackerResponseProcessor.
  19066. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  19067. processTrackerResponse().
  19068. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  19069. readout.
  19070. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  19071. which indicates download has completed.
  19072. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  19073. (closeFile): fd >= 0, not fd > 0
  19074. * src/main.cc (main): Added short cut for show-files.
  19075. Added short cut for torrent-file.
  19076. Added new command-line option listen-port.
  19077. Updated i18n messages.
  19078. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19079. To add LogFactory which creates singleton logger:
  19080. * src/LogFactory.h: New class.
  19081. * src/LogFactory.cc: New class.
  19082. * src/Command.h (logger): New variable.
  19083. (Constructor): Use LogFactory.
  19084. * src/AbstractCommand.cc: Use Command::logger
  19085. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  19086. Use LogFactory.
  19087. * src/SegmentSplitter.h : Made logger protected.
  19088. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  19089. * src/SegmentMan.cc (Constructor): Use LogFactory.
  19090. * src/DownloadEngine.h : Made logger protected.
  19091. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  19092. * src/PeerInteractionCommand.cc : Use Command::logger.
  19093. * src/HttpResponseCommand.cc : Use Command::logger.
  19094. * src/SegmentMan.h : Made logger private.
  19095. * src/TorrentMan.h : Made logger private.
  19096. * src/TorrentMan.cc : Use LogFactory.
  19097. * src/FtpNegotiateCommand.cc : Use Command::logger.
  19098. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  19099. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  19100. Use LogFactory.
  19101. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  19102. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  19103. Use LogFactory.
  19104. * src/DownloadCommand.cc : Use Command::logger.
  19105. * src/PeerAbstractCommand.cc : Use Command::logger.
  19106. * src/PeerListenCommand.cc : Use Command::logger.
  19107. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  19108. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  19109. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  19110. * src/TrackerWatcherCommand.cc : Use Command::logger.
  19111. * src/TrackerUpdateCommand.cc : Use Command::logger.
  19112. * src/TrackerDownloadCommand.cc : Use Command::logger.
  19113. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  19114. Use LogFactory.
  19115. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  19116. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  19117. Use LogFactory.
  19118. * src/main.cc (main): Use LogFactory.
  19119. * src/DiskAdaptor.h (logger): New variable.
  19120. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  19121. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  19122. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19123. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  19124. parameter to a tracker request.
  19125. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  19126. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  19127. * src/main.cc (setSignalHander): New function.
  19128. (main): Added a handler for SIGTERM.
  19129. (handler): Updated message.
  19130. (torrentHandler): Updated message.
  19131. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19132. * src/TorrentConsoleDownloadEngine.cc
  19133. (onPartialDownloadingCompletes): Renamed as
  19134. onSelectiveDownloadingCompletes.
  19135. (onSelectiveDownloadingCompletes): Updated message.
  19136. To add DiskAdaptor which abstract DiskWriter family:
  19137. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  19138. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  19139. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  19140. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  19141. MultiDiskAdaptor.h.
  19142. (readFileEntry): Changed its arguments.
  19143. (setup): setupDiskWriter is merged into this function.
  19144. (setupDiskWriter): Removed.
  19145. (setFileFilter): New function.
  19146. (readFileEntryFromMetaInfoFile): Updated according to the changes
  19147. made in readFileEntry.
  19148. (getFilePath): Removed.
  19149. (getTempFilePath): Removed.
  19150. (getSegmentFilePath): Updated due to the removal of getFilePath.
  19151. (fixFilename): Removed.
  19152. (copySingleFile): Removed.
  19153. (splitMultiFile): Removed.
  19154. (deleteTempFile): Removed.
  19155. (setFileEntriesToDownload): Removed.
  19156. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  19157. (isSelectiveDownloadingMode): New function.
  19158. (setAllMultiFileRequestedState): Removed.
  19159. (finishPartialDownloadingMode): Renamed as
  19160. finishSelectiveDownloadingMode.
  19161. (finishSelectiveDownloadingMode): New function.
  19162. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  19163. (getSelectedTotalLength): New function.
  19164. (onDownloadComplete): Use diskAdaptor.
  19165. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  19166. (Range): Removed.
  19167. (setMultiFileEntries): Renamed as setFileEntries.
  19168. (setFileEntries): New function.
  19169. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  19170. (pieceLength): New variable.
  19171. * src/main.cc (printDownloadCompeleteMessage): New function.
  19172. (torrentHandler): Use diskAdaptor instead of diskWriter.
  19173. (main): Renamed torrent-show-files to show-files.
  19174. Rewritten file contents listing.
  19175. * src/TorrentMan.h (FileEntry): Removed.
  19176. (multiFileTopDir): Removed.
  19177. (multiFileEntries): Removed.
  19178. (diskWriter): Removed.
  19179. (diskAdaptor): New variable.
  19180. * src/DefaultDiskWriter.h (totalLength): New variable.
  19181. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  19182. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  19183. diskWriter.
  19184. * src/TorrentConsoleDownloadEngine.h
  19185. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  19186. (partialTotalLength): Renamed as selectedTotalLength.
  19187. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  19188. openExistingFile, otherwise call initAndOpenFile.
  19189. (closeFile): fd > 0, not fd != 0.
  19190. * src/DirectDiskAdaptor.h: New class.
  19191. * src/DirectDiskAdaptor.cc: New class.
  19192. * src/MultiDiskAdaptor.h: New class.
  19193. * src/MultiDiskAdaptor.cc: New class.
  19194. * src/CopyDiskAdaptor.h: New class.
  19195. * src/CopyDiskAdaptor.cc: New class.
  19196. * src/DiskAdaptor.h: New class.
  19197. * src/DiskAdaptor.cc: New class.
  19198. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  19199. (PREF_SHOW_FILES): New definition.
  19200. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19201. To add the ability to download multi torrent into respective files
  19202. directly:
  19203. * src/DiskWriter.h (openFile): New function.
  19204. (seek): Removed.
  19205. * src/MultiDiskWriter.h: New class.
  19206. * src/MultiDiskWriter.cc: New class.
  19207. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  19208. protected.
  19209. (openFile): New function.
  19210. * src/AbstractDiskWriter.cc (openFile): New function.
  19211. * src/prefs.h (V_FALSE): New definition.
  19212. (PREF_DIRECT_FILE_MAPPING): New definition.
  19213. * src/TorrentMan.h (setupDiskWriter): New function.
  19214. (setAllMultiFileRequestedState): New function.
  19215. (onDownloadComplete): New function.
  19216. * src/TorrentMan.cc : Included MultiDiskWriter.h
  19217. (setupDiskWriter): New function.
  19218. (getFilePath): Updated.
  19219. (getTempFilePath): Updated.
  19220. (getSegmentFilePath): Updated.
  19221. (fixFilename): Updated.
  19222. (deleteTempFile): Updated.
  19223. (setAllMultiFileRequestedState): New function.
  19224. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  19225. (finishPartialDownloadingMode): Reset requested flags.
  19226. (onDownloadComplete): New function.
  19227. * src/main.cc: Added --direct-file-mapping option.
  19228. Use TorrentMan::setupDiskWriter().
  19229. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  19230. onDownloadComplete().
  19231. To fix ETA bug:
  19232. * src/Util.h (difftvsec): New function.
  19233. * src/Util.cc (difftvsec): New function.
  19234. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  19235. type of "elapsed" instead of long long int.
  19236. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  19237. The updates of statistics takes place every 1 seconds.
  19238. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  19239. (calculateSpeed): Changed its argument signature.
  19240. * src/PeerMessage.cc (toString): Fixed message.
  19241. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19242. To print ETA:
  19243. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  19244. completion handling when dealing with
  19245. TorrentMan::isPartialDownloadingMode() == true.
  19246. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  19247. New function.
  19248. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  19249. (sessionDownloadLength): New variable.
  19250. (avgSpeed): New variable.
  19251. (eta): New variable.
  19252. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  19253. new variables: eta, avgSpeed, startup.
  19254. (calculateSpeed): Calculate average speed and ETA.
  19255. (printStatistics): Added ETA.
  19256. * src/Util.h (secfmt): New function.
  19257. * src/Util.cc (secfmt): New function.
  19258. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19259. To detect "keep alive" flooding:
  19260. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  19261. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  19262. variable: keepAliveCount.
  19263. (detectMessageFlooding): Added "keep alive" flooding detection.
  19264. (receiveMessage): Increase keepAliveCount when "keep alive" message
  19265. received.
  19266. To add the ability to download only specified files in multi-file
  19267. torrent:
  19268. * src/BitfieldMan.h (filterBitfield): New variable.
  19269. (filterEnabled): New variable.
  19270. (setFilterBit): New function.
  19271. (enableFilter): New function.
  19272. (disableFilter): New function.
  19273. (isFilterEnabled): New function.
  19274. (getFilteredTotalLength): New function.
  19275. (getCompletedLength): New function.
  19276. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  19277. filterBitfield, filterEnabled.
  19278. (CopyConstructor): Added filterBitfield and filterEnabled.
  19279. (operator==): Added filterBitfield and filterEnabled.
  19280. (Destructor): Added filterBitfield.
  19281. (getMissingIndex): Use filterBitfield.
  19282. (getMissingUnusedIndex): Use filterBitfield.
  19283. (getFirstMissingUnusedIndex): Use filterBitfield.
  19284. (getFirstMissingUnusedIndex): Use filterBitfield.
  19285. (getAllMissingIndexes): Use filterBitfield.
  19286. (countMissingBlock): Use filterBitfield.
  19287. (countBlock): Use filterBitfield.
  19288. (setBitInternal): Added new argument on.
  19289. (setUseBit): Use setBitInternal.
  19290. (unsetUseBit): Use setBitInternal.
  19291. (setBit): Use setBitInternal.
  19292. (unsetBit): Use setBitInternal.
  19293. (isAllBitSet): Use filterBitfield.
  19294. (setFilterBit): New function.
  19295. (addFilter): New function.
  19296. (enableFilter): New function.
  19297. (disableFilter): New function.
  19298. (clearFilter): New function.
  19299. (isFilterEnabled): New function.
  19300. (getFilteredTotalLength): New function.
  19301. (getCompletedLength): New function.
  19302. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  19303. Initalized newly added variables.
  19304. [FileEntry](offset): New variable.
  19305. [FileEntry](extracted): New variable.
  19306. [FileEntry](requested): New variable.
  19307. (readFileEntry): New function.
  19308. (option): New variable.
  19309. (splitMultiFile): Removed const qualifier.
  19310. (fixFilename): Removed const qualifier.
  19311. (readFileEntryFromMetaInfoFile): New function.
  19312. (finishPartialDownloadingMode): New function.
  19313. (isPartialDownloadingMode): New function.
  19314. (setFileEntriesToDownload): New function.
  19315. (getCompletedLength): New function.
  19316. (getPartialTotalLength): New function.
  19317. * src/TorrentMan.cc (readFileEntry): New function.
  19318. (setup): Use readFileEntry. If no-preallocation option is specified,
  19319. use DefaultDiskWriter.
  19320. (readFileEntryFromMetaInfoFile): New function.
  19321. (fixFilename): Removed const qualifier.
  19322. (splitMultiFile): Removed const qualifier.
  19323. (setFileEntriesToDownload): New function.
  19324. (isPartialDownloadingMode): New function.
  19325. (finishPartialDownloadingMode): New function.
  19326. (getCompletedLength): New function.
  19327. (getPartialTotalLength): New function.
  19328. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  19329. New variable.
  19330. (partialTotalLength): New variable.
  19331. (downloadLength): New variable.
  19332. (totalLength): New variable.
  19333. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  19334. Added log.
  19335. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  19336. partialTotalLength, downloadLength, totalLength.
  19337. (calculate): Calculate downloadLength and totalLength.
  19338. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  19339. * src/main.cc (addCommand): Changed argument signature.
  19340. (main): Added new variable: args. Added new option "torrent-show-files"
  19341. "no-preallocation". Usage is not updated yet.
  19342. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19343. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  19344. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19345. Attempt to add the ability to listing file entries in a .torrent file.
  19346. This feature is not yet complete.
  19347. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  19348. * src/TorrentMan.cc (getMultiFileEntries): New function.
  19349. (getName): New function.
  19350. * src/TorrentMan.h (getMultiFileEntries): New function.
  19351. (getName): New function.
  19352. * src/main.cc (main): Use above 2 funtion.
  19353. * Release 0.3.2
  19354. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19355. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  19356. (detectMessageFlooding): Updated threshold value.
  19357. (checkLongTimePeerChoking): Updated timeout value.
  19358. (getNewPieceAndSendInterest): Added debug log.
  19359. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  19360. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  19361. (getPeer): Updated.
  19362. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  19363. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  19364. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  19365. is localhost.
  19366. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  19367. * src/PendingMessage.cc (processMessage): Not to send piece message
  19368. if peer is not interested in the pieces localhost has.
  19369. * src/Peer.cc (shouldChoke): Updated.
  19370. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  19371. * src/Util.cc (isPowerOf): New function.
  19372. * src/Util.h (isPowerOf): New function.
  19373. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  19374. whether or not it is power of 2.
  19375. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19376. Added new class SendMessageQueue that includes PendingMessages and
  19377. RequestSlotMan.
  19378. * src/SendMessageQueue.h: New class.
  19379. * src/SendMessageQueue.cc: New class.
  19380. * src/PendingMessage.h: Added new member variable blockIndex and its
  19381. accessors.
  19382. (createRequestMessage): Updated.
  19383. * src/PendingMessage.cc (createRequestMessage): Updated.
  19384. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  19385. SendMessageQueue.
  19386. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  19387. (receiveMessage): Updated with SendMessageQueue.
  19388. (deletePendingPieceMessage): Removed.
  19389. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  19390. (sendInterest): Updated with SendMessageQueue.
  19391. (createRequestPendingMessage): Updated with SendMessageQueue.
  19392. (sendMessages): Updated with SendMessageQueue.
  19393. (onAbort): Updated with SendMessageQueue.
  19394. (keepAlive): Updated with SendMessageQueue.
  19395. (beforeSocketCheck): Updated SendMessageQueue.
  19396. * src/PeerInteractionCommand (sendMessages): Shuffle
  19397. missingBLockIndexes before using it.
  19398. Added its own timeout for peer connection.
  19399. * src/PeerAbstractCommand.h: Added member variable timeout and its
  19400. setter.
  19401. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  19402. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  19403. Added setTimeout() call.
  19404. (executeInternal): Added setTimeout() call.
  19405. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  19406. Added timeout.
  19407. (isTimeoutDetected): Updated.
  19408. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  19409. option.
  19410. Added *simple* message flooding checker.
  19411. * src/PeerInteractionCommand.cc (executeInternal):
  19412. Added detectMessageFlooding() call.
  19413. (detectMessageFlooding): New function.
  19414. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  19415. (beforeSocketCheck): Added detectMessageFlooding() call.
  19416. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  19417. chokeUnchokeCount, haveCount, detectMessageFlooding().
  19418. Removed deletePendingPieceMessage(), getRequestSlot(),
  19419. deleteRequestSlot(), deleteAllRequestSlot().
  19420. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  19421. Added checkLongTimePeerChoking() call.
  19422. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  19423. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  19424. if duplicate == false.
  19425. The parameter "uploaded" and "downloaded" in the tracker request are
  19426. the size since the client sent the "started" event to the tracker.
  19427. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  19428. uploaded size to preDownloadedSize, preUploadedSize respectively.
  19429. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  19430. getSessionDownloadedSize(), getSessionUploadedSize().
  19431. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  19432. getSessionUploadedSize() instead of getDownloadedSize(),
  19433. getUploadedSize().
  19434. * src/PendingMessage.cc (processMessage): Do not send request message
  19435. if the peer is choking the client.
  19436. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  19437. less than interval.
  19438. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19439. * configure.in: Added gnutls support. Added several CPP macros.
  19440. * m4/openssl.m4: Added.
  19441. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  19442. readData(), peekData(). Added gnutls support.
  19443. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  19444. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  19445. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  19446. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  19447. Instead, added a check for whether setup method has executed
  19448. successfully.
  19449. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  19450. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  19451. * src/Makefile.am: Updated.
  19452. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  19453. using whether OpenSSL or gcrypt, depending on the result of configure
  19454. script.
  19455. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19456. messageDigest.h.
  19457. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  19458. * src/PeerListenCommand.cc: Added log about port binded successfully.
  19459. Fixed memory leak.
  19460. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  19461. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  19462. Removed instantiation of TrackerInitCommand. Instead,
  19463. TrackerWatcherCommand is instantiated and pushed to the command queue.
  19464. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  19465. ENABLE_SSL.
  19466. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  19467. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  19468. If a piece is already acquired by another command, delete the request
  19469. slots for the piece.
  19470. * src/TrackerUpdateCommand.cc (execute):
  19471. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  19472. Added a check whether peer list is null.
  19473. Fixed the bug that causes sending completed event to the tracker
  19474. several times.
  19475. * src/TrackerInitCommand.cc (execute):
  19476. Fixed the bug that causes sending completed event to the tracker
  19477. several times.
  19478. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  19479. by using messageDigest.h.
  19480. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19481. * PeerConnection.cc: Replaced log message "keep-alive" with
  19482. "keep alive".
  19483. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  19484. localhost long time.
  19485. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  19486. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  19487. at most 100 failure entry from the list. If with duplicate = false,
  19488. MAX_PEER_LIST is not checked.
  19489. * PeerListenCommand.cc: Fixed the argument order of log message.
  19490. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19491. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  19492. Added warn().
  19493. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  19494. Implemented warn().
  19495. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  19496. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19497. * Request.h: Added AFTER_COMPLETED event.
  19498. * TorrentDownloadEngine.cc: Prints "Download complete" message
  19499. instead of downloaded size and progress(%) after download completes.
  19500. * PeerInteractionCommand.cc: After download completes, sends unchoke
  19501. message to the peer if it is interested in what localhost has
  19502. downloaded.
  19503. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  19504. destination instead of just renaming it.
  19505. * TorrentMan.cc: Added deleteTempFile().
  19506. * PeerAbstractCommand.cc: do not stop execution after download
  19507. completes. This makes localhost a seeder.
  19508. * Util.{h,cc}: Added fileCopy().
  19509. * PeerListenCommand.cc: do not stop execution after download completes.
  19510. This makes localhost a seeder.
  19511. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  19512. Added TorrentMan::deleteTempFile() to torrentHandler.
  19513. Initialized the variable dir as ".".
  19514. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  19515. Deleted renameSingleFile().
  19516. Added copySingleFile(), deleteTempFile().
  19517. * DownloadEngine.h: Added virtual function afterEachIteration().
  19518. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  19519. in onEndOfRun() to afterEachIteration().
  19520. In onEndOfRun(), changed if condition to check whether filenameFixed is
  19521. true.
  19522. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  19523. In rangedFileCopy(), added try-catch block to properly close file
  19524. descriptors.
  19525. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  19526. Added afterEachIteration(), isFilenameFixed().
  19527. * Peer.cc: Changed choking strategy.
  19528. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  19529. * TrackerInitCommand.cc: Send completed event only once.
  19530. * DownloadEngine.cc: Added a call to afterEachIteration().
  19531. * TrackerUpdateCommand.cc: Do not stop execution after download
  19532. completes.
  19533. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  19534. connect the peers at most MAX_PEER_UPDATE when a peer list is
  19535. received from a tracker.
  19536. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  19537. Decreased the number of failure peers to delete to 0(just comment out
  19538. the line).
  19539. * Release 0.3.1
  19540. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19541. * PeerInteractionCommand.cc: added a call to
  19542. TorrentMan::unadvertisePiece in Destructor.
  19543. * PeerInteractionCommand.cc: make have message sent immediately
  19544. if the size of pending message queue is zero.
  19545. * TorrentMan.cc: set the maximum size of peer list to 250.
  19546. * TorrentMan.h: changed the container type of Peers and UsedPieces
  19547. to deque.
  19548. * Util.cc: fixed rangedFileCopy.
  19549. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  19550. to Constructor. Also, moved digest cleanup to Destructor.
  19551. * MetaFileUtil.cc: fixed memory leak
  19552. * replaced std::vector with std::deque.
  19553. * AbstractCommand.cc: casted timeout value to long long int.
  19554. * ChunkedEncoding.cc: fixed memory leak.
  19555. * PeerInteractionCommand.cc: casted timeout value to long long int.
  19556. * SleepCommand.cc: casted timeout value to long long int.
  19557. * Data.cc: fixed memory leak.
  19558. * Data.cc: fixed toLLInt().
  19559. * BitfieldMan.cc: fixed memory leak.
  19560. * TorrentMan.cc: initialized storeDir to ".".
  19561. * TorrentMan.cc: fixed memory leak.
  19562. * TorrentMan.cc: corrected file paths of splitted files.
  19563. * PeerAbstractCommand.cc: casted timeout to long long int.
  19564. * main.cc: added delete(req) and delete(te->diskWriter).
  19565. * RequestSlot.cc: casted timeout value to long long int.
  19566. * Request.cc: fixed memory leak.
  19567. * PendingMessage.cc: make HAVE messages sent only when peer does not
  19568. have the piece.
  19569. * Peer.{h,cc}: added hasPiece(int index).
  19570. * main.cc: corrected addCommand.
  19571. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19572. * BitTorrent protocol support added.
  19573. * Release 0.3.0
  19574. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19575. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  19576. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19577. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  19578. decoding did not work properly.
  19579. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19580. * DownloadEngine.h: included sys/time.h
  19581. * DownloadEngine.cc: remove sys/time.h
  19582. * Makefile.am (SUBDIRS): Add intl.
  19583. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  19584. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19585. * main.cc: correct help message for --http-auth-scheme.
  19586. * main.cc: changed e-mail address for bug reports.
  19587. * ja.po: added japanese translation.
  19588. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19589. * SimpleLogger.cc: flush log file instead of stdout.
  19590. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19591. * main.cc: Fixed command-line option: max-tries
  19592. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  19593. does not equal to seg.sp.
  19594. * DownloadCommand.cc: If EOF is got from the server and the total size
  19595. of file is not zero, then throw DlRetryEx.
  19596. * main.cc: Set the minium value of min-segment-size to 1024.
  19597. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  19598. fails because of a regression since 0.2.0 release.
  19599. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19600. * HttpConnection.cc:
  19601. * common.h: defined the user agent name as macro
  19602. * DownloadEngine.{h, cc}:
  19603. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  19604. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  19605. * main.cc: Download complete/abort message is now generated by main.
  19606. * Makefile.am (SUBDIRS): Add m4.
  19607. (ACLOCAL_AMFLAGS): New variable.
  19608. (EXTRA_DIST): New variable.
  19609. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  19610. * gettext: added gettext functionality
  19611. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19612. * AbstractCommand.cc:
  19613. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  19614. unregister its cuid from SegmentMan.
  19615. * DownloadEngine.cc: .aria2 file was written when a downloading
  19616. failed with errors.
  19617. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  19618. Added "User-Agent" header to CONNECT proxy request.
  19619. Fixed "Proxy-Authorization" header. Now proxy authorization works
  19620. properly.
  19621. * Logger.h:
  19622. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  19623. * ChunkedEncoding.cc: Added #include directive for strings.h
  19624. * Release 0.2.1
  19625. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19626. * Util.{h,cc}: added startsWith().
  19627. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  19628. Util::endsWith().
  19629. * SocketCore.cc: struct addrinfo is now zero-initialized.
  19630. * common.h: added #include directive of limit.h.
  19631. * DownloadEngine.cc: added #include directive of sys/time.h and
  19632. algorithm.
  19633. * Exception.h: added #include directive of stdio.h.
  19634. * AbstractCommand.h: added #include directive of sys/time.h.
  19635. * DownloadCommand.h: added #include directive of sys/time.h.
  19636. * *.h: added #include directive of common.h to all base classes.
  19637. subclasses' one was removed.
  19638. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  19639. does not define these macros.
  19640. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19641. * Release 0.2.0
  19642. * main.cc:
  19643. * HttpInitiateConnectionCommand.{h,cc}:
  19644. * prefs.h:
  19645. * HttpConnection.{h,cc}: added --http-proxy-method option.
  19646. We can now use GET command in http proxy.
  19647. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19648. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  19649. that splits slowest segment of SegmentMan::commands vector.
  19650. This is the default split algorithm of aria2.
  19651. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  19652. that splits first segment of SegmentMan::commands vector.
  19653. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  19654. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  19655. * Segment.h:
  19656. * SegmentMan.cc: Added speed field to Segment.h
  19657. * main.cc: -s option now affects all URLs in command-line arguemtns.
  19658. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  19659. * message.h: Change file size related %d to %lld.
  19660. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19661. * FtpInitiateConnectionCommand.{h,cc}:
  19662. * FtpNegotiationCommand.{h,cc}:
  19663. * FtpDownloadCommand.{h,cc}:
  19664. * FtpConnection.{h,cc}: Added FTP support
  19665. * SimpleLogger.cc: Log message now includes time information.
  19666. * main.cc: The value of --http-auth-scheme option is chagned from
  19667. 'BASIC' to 'basic'
  19668. * main.cc: Added --timeout command-line option.
  19669. * main.cc: Added --min-segment-size command-line option.
  19670. * main.cc: Added --max-retries command-line option.
  19671. * prefs.h: option string constants are now defined in prefs.h
  19672. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19673. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  19674. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  19675. with version 0.1.0's one.
  19676. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19677. * configure.in: Added --enable-ssl option to configure script.
  19678. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  19679. cannot permit absoluteURI as Request-URI.
  19680. * HttpConnection.cc: Added Referer support.
  19681. * main.cc: Added referer command-line option.
  19682. * main.cc: Added rety-wait command-line option.
  19683. * Exception.h: Fixed formating bug in Exception::setMsg()
  19684. * SocketCore.{h,cc}:
  19685. * Socket.{h, cc}:
  19686. * Request.cc:
  19687. * InitiateConnectionCommandFactory.cc:
  19688. * HttpRequestCommand.cc: Added HTTPS support.
  19689. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  19690. for SocketCore.
  19691. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  19692. size is wrong
  19693. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19694. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19695. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19696. * Release 0.1.0