ChangeLog 659 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182
  1. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Updated -T and -M option.
  3. * doc/aria2c.1.txt
  4. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Fixed typo
  6. * doc/aria2c.1.txt
  7. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Fixed the bug that line separator is missing in horizontal bar.
  9. * doc/xmlrpc/aria2mon
  10. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Updated usage text for --metalink-file option.
  12. * src/usage_text.h
  13. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. If '-' is given as an argument to --metalink-file option, aria2
  15. reads Metalink file from stdin.
  16. * src/OptionHandlerFactory.cc
  17. * src/OptionHandlerImpl.h
  18. * src/a2io.h
  19. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Fixed the bug that aria2 listens wrong port if --interface option
  21. is used.
  22. * src/SocketCore.cc
  23. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Fixed the bug that query parameter in magnet URI is not decoded.
  25. * src/magnet.cc
  26. * test/MagnetTest.cc
  27. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Specified defaultSize as an argument for easy testing.
  29. * src/util.cc
  30. * src/util.h
  31. * test/UtilTest.cc
  32. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Release 1.7.1
  34. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Bump up version number to 1.7.1
  36. * configure.ac
  37. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Fixed the bug --bt-prioritize-piece=tail is not working.
  39. * src/util.cc
  40. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Release 1.7.0
  42. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Updated po templates.
  44. * po/aria2.pot
  45. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Updated help message for --bt-prioritize-piece. Some cosmetic
  47. changes.
  48. * doc/aria2c.1.txt
  49. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  51. * src/usage_text.h
  52. * src/util.cc
  53. * test/UtilTest.cc
  54. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Updated Russian, Ukrainian, German and French translations.
  56. Thanks to all translators involved.
  57. * po/de.po
  58. * po/fr.po
  59. * po/ru.po
  60. * po/uk.po
  61. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Mentioned about pkg-config
  63. * README
  64. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Fixed typo. Referred --index-out option in BitTorrent notes.
  66. * README
  67. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  68. Store all addresses found by getifaddrs() and getaddrinfo(). In
  69. bind, try all addresses until success
  70. * src/SocketCore.cc
  71. * src/SocketCore.h
  72. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  73. Updated po templates.
  74. * po/aria2.pot
  75. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Bump up version number to 1.7.0
  77. * configure.ac
  78. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  79. Fixed compile error if ENABLE_BITTORRENT is undefined.
  80. * src/DefaultPieceStorage.cc
  81. * src/DefaultPieceStorage.h
  82. * src/PieceStorage.h
  83. * src/UnknownLengthPieceStorage.cc
  84. * src/UnknownLengthPieceStorage.h
  85. * test/MockPieceStorage.h
  86. * test/ProtocolDetectorTest.cc
  87. * test/XmlRpcMethodTest.cc
  88. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Documented in man page that if getifaddrs() is missing,
  90. --interface option doesn't accept interface name.
  91. * doc/aria2c.1.txt
  92. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  94. * src/DefaultBtAnnounce.cc
  95. * src/DefaultBtAnnounce.h
  96. * test/DefaultBtAnnounceTest.cc
  97. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Fixed the bug that connection is always dropped if handshake
  99. message in extension protocol don't have metadata_size.
  100. src/HandshakeExtensionMessage.cc
  101. * src/HandshakeExtensionMessage.cc
  102. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  104. text saying DHT is recommended when Magnet URI is provided.
  105. * doc/aria2c.1.txt
  106. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  108. URI is supplied. Notify user that they should consider enabling
  109. DHT if they use Magnet URI.
  110. * src/RequestGroup.cc
  111. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Added --disable-ipv6 option to disable IPv6.
  113. * doc/aria2c.1.txt
  114. * src/InitiateConnectionCommand.cc
  115. * src/NameResolver.cc
  116. * src/NameResolver.h
  117. * src/OptionHandlerFactory.cc
  118. * src/main.cc
  119. * src/prefs.cc
  120. * src/prefs.h
  121. * src/usage_text.h
  122. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Updated usage text for --bt-prioritize-piece option.
  124. * doc/aria2c.1.txt
  125. * src/usage_text.h
  126. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. In configure script, if --with-PACKAGE and --enable-FEATURE are
  128. given and PACKAGE is missing in the system or FEATURE cannot be
  129. enabled, print error message and stop the script.
  130. * configure.ac
  131. * m4/aria2_arg.m4
  132. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Halt metadata download immediately when metadata download is done.
  134. Don't wait unresponsive tracker.
  135. * src/ByteArrayDiskWriter.h
  136. * src/DefaultBtInteractive.cc
  137. * src/DefaultExtensionMessageFactory.cc
  138. * src/DefaultExtensionMessageFactory.h
  139. * src/PeerInteractionCommand.cc
  140. * src/UTMetadataDataExtensionMessage.cc
  141. * src/UTMetadataDataExtensionMessage.h
  142. * src/UTMetadataRequestExtensionMessage.cc
  143. * test/UTMetadataDataExtensionMessageTest.cc
  144. * test/UTMetadataRequestExtensionMessageTest.cc
  145. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Documented --interface option in man page.
  147. * doc/aria2c.1.txt
  148. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. Try resolved address in the order received from the resolver.
  150. * src/DNSCache.h
  151. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Added debug logs.
  153. * src/SocketCore.cc
  154. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Fixed type of tail to uint64_t
  156. * src/util.cc
  157. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Added --interface option. This feature binds sockets to given
  159. interface. You can specify interface name, IP address and
  160. hostname.
  161. * configure.ac
  162. * src/OptionHandlerFactory.cc
  163. * src/SocketCore.cc
  164. * src/SocketCore.h
  165. * src/main.cc
  166. * src/message.h
  167. * src/prefs.cc
  168. * src/prefs.h
  169. * src/usage_text.h
  170. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  171. Updated man page for bt-prioritize-piece option in -i list.
  172. * doc/aria2c.1.txt
  173. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Added bt-prioritize-piece option to -i list.
  175. * src/download_helper.cc
  176. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Removed --http-auth-scheme option from man page.
  178. * doc/aria2c.1.txt
  179. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  180. Removed --http-auth-scheme option since it doesn't do nothing.
  181. * src/OptionHandlerFactory.cc
  182. * src/prefs.cc
  183. * src/prefs.h
  184. * src/usage_text.h
  185. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Adjusted the number of peer info which get_peers reply message can
  187. carry.
  188. * src/DHTGetPeersReplyMessage.cc
  189. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Added extension_message_test_helper.h to aria2c_SOURCES.
  191. * test/Makefile.am
  192. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  193. Documented --bt-prioritize-piece option in man page.
  194. * doc/aria2c.1.txt
  195. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Added option --bt-prioritize-piece. This option instruct aria2 to
  197. try to download first and last pieces of each file first. The
  198. argument can contain 2 keywords:head and tail. To include both
  199. keywords, they must be separated by comma. These keywords can take
  200. one parameter, SIZE. For example , if head=SIZE is specified,
  201. pieces in the range of first SIZE bytes of each file get higher
  202. priority. tail=SIZE means the range of last SIZE bytes of each
  203. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  204. * src/DefaultPieceStorage.h
  205. * src/Makefile.am
  206. * src/OptionHandlerFactory.cc
  207. * src/OptionHandlerImpl.h
  208. * src/PriorityPieceSelector.cc
  209. * src/PriorityPieceSelector.h
  210. * src/RequestGroup.cc
  211. * src/prefs.cc
  212. * src/prefs.h
  213. * src/usage_text.h
  214. * src/util.cc
  215. * src/util.h
  216. * test/Makefile.am
  217. * test/MockPieceSelector.h
  218. * test/PriorityPieceSelectorTest.cc
  219. * test/UtilTest.cc
  220. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Fixed typo
  222. * src/HttpRequest.h
  223. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. In Magnet URI with tr parameter, put each announce URI in separate
  225. tier.
  226. * src/bittorrent_helper.cc
  227. * test/BittorrentHelperTest.cc
  228. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Renamed ExtensionMessage::getBencodedData() as
  230. ExtensionMessage::getPayload()
  231. * src/BtExtendedMessage.cc
  232. * src/ExtensionMessage.h
  233. * src/HandshakeExtensionMessage.cc
  234. * src/HandshakeExtensionMessage.h
  235. * src/UTMetadataDataExtensionMessage.cc
  236. * src/UTMetadataDataExtensionMessage.h
  237. * src/UTMetadataRejectExtensionMessage.cc
  238. * src/UTMetadataRejectExtensionMessage.h
  239. * src/UTMetadataRequestExtensionMessage.cc
  240. * src/UTMetadataRequestExtensionMessage.h
  241. * src/UTPexExtensionMessage.cc
  242. * src/UTPexExtensionMessage.h
  243. * test/HandshakeExtensionMessageTest.cc
  244. * test/MockExtensionMessage.h
  245. * test/UTMetadataDataExtensionMessageTest.cc
  246. * test/UTMetadataRejectExtensionMessageTest.cc
  247. * test/UTMetadataRequestExtensionMessageTest.cc
  248. * test/UTPexExtensionMessageTest.cc
  249. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Updated man page for BitTorrent Magnet URI.
  251. * doc/aria2c.1.txt
  252. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Call DownloadContext::setOwnerRequestGroup() in
  254. RequestGroup::setDownloadContext().
  255. * src/BtDependency.cc
  256. * src/RequestGroup.cc
  257. * src/RequestGroup.h
  258. * src/download_helper.cc
  259. * test/DefaultBtMessageDispatcherTest.cc
  260. * test/DefaultExtensionMessageFactoryTest.cc
  261. * test/HandshakeExtensionMessageTest.cc
  262. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  264. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  265. from metadata, use new metadata2Torrent() function.
  266. * src/BtDependency.cc
  267. * src/UTMetadataPostDownloadHandler.cc
  268. * src/bittorrent_helper.cc
  269. * src/bittorrent_helper.h
  270. * test/BittorrentHelperTest.cc
  271. * test/BtDependencyTest.cc
  272. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Use createRequestGroupForUri to create the download for torrent
  274. file.
  275. * src/Metalink2RequestGroup.cc
  276. * test/Metalink2RequestGroupTest.cc
  277. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  278. Fixed typo
  279. * src/DownloadContext.h
  280. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Use createRequestGroupForBitTorrent()
  282. * src/BtPostDownloadHandler.cc
  283. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Added remove().
  285. * src/Option.cc
  286. * src/Option.h
  287. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Removed options which is only valid for URIs specified in
  289. command-line. If they are left, because op is used as a template
  290. for new RequestGroup(such as created in XML-RPC command,
  291. BtPostDownloadHandler etc), they causes unintentional effect.
  292. * src/main.cc
  293. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Refer to option value of PREF_OUT only in download_helper.
  295. * src/FtpNegotiationCommand.cc
  296. * src/HttpResponseCommand.cc
  297. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  299. * src/download_helper.cc
  300. * src/download_helper.h
  301. * src/XmlRpcMethodImpl.cc
  302. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Updated man page for changeOption XML-RPC method.
  304. * doc/aria2c.1.txt
  305. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Added --bt-max-peers option to changeOption XML-RPC method.
  307. * src/XmlRpcMethod.cc
  308. * src/XmlRpcMethodImpl.cc
  309. * test/XmlRpcMethodTest.cc
  310. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  311. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  312. * test/XmlRpcMethodTest.cc
  313. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  314. Removed redundant DownloadContext::hasAttribute(...) calls.
  315. * src/ConsoleStatCalc.cc
  316. * src/RequestGroup.cc
  317. * src/XmlRpcMethodImpl.cc
  318. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Changed the number of tracker request attempt from 5 to 2.
  320. * src/TrackerWatcherCommand.cc
  321. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Use host and protocol in original URI, because URI selector
  323. selects URI based on original URI, not redirected one.
  324. * src/Request.cc
  325. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Fixed the bug which causes segmentation fault with tellWaiting
  327. XML-RPC method when BitTorrent download is waiting. The key of
  328. BtRegistry is changed from info hash to GID, because it is
  329. registered per RequestGroup, not info hash.
  330. * src/BtRegistry.cc
  331. * src/BtRegistry.h
  332. * src/BtSetup.cc
  333. * src/ConsoleStatCalc.cc
  334. * src/InitiatorMSEHandshakeCommand.cc
  335. * src/PeerInitiateConnectionCommand.cc
  336. * src/PeerInteractionCommand.cc
  337. * src/PeerInteractionCommand.h
  338. * src/PeerReceiveHandshakeCommand.cc
  339. * src/RequestGroup.cc
  340. * src/XmlRpcMethodImpl.cc
  341. * test/BtRegistryTest.cc
  342. * test/XmlRpcMethodTest.cc
  343. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  344. Updated man page for changeOption XML-RPC method.
  345. * doc/aria2c.1.txt
  346. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  348. method.
  349. * src/XmlRpcMethod.cc
  350. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. Documented about BitTorrent Magnet URI in man page.
  352. * doc/aria2c.1.txt
  353. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  354. Fixed the bug that trackers in BitTorrent Magnet URI are not
  355. inherited to generated RequestGroup.
  356. * src/UTMetadataPostDownloadHandler.cc
  357. * test/UTMetadataPostDownloadHandlerTest.cc
  358. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Prepended "[METADATA]" before dn.
  360. * src/bittorrent_helper.cc
  361. * test/BittorrentHelperTest.cc
  362. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. Rewritten Magnet URI parser.
  364. * src/Makefile.am
  365. * src/ProtocolDetector.cc
  366. * src/bittorrent_helper.cc
  367. * src/bittorrent_helper.h
  368. * src/download_helper.cc
  369. * src/magnet.cc
  370. * src/magnet.h
  371. * test/BittorrentHelperTest.cc
  372. * test/MagnetTest.cc
  373. * test/Makefile.am
  374. * test/ProtocolDetectorTest.cc
  375. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Use hton64
  377. * src/base32.cc
  378. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Added Base32 encoded BitTorrent Magnet Link support.
  380. * src/Makefile.am
  381. * src/base32.cc
  382. * src/base32.h
  383. * src/bittorrent_helper.cc
  384. * test/Base32Test.cc
  385. * test/BittorrentHelperTest.cc
  386. * test/Makefile.am
  387. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Added BitTorrent Magnet Link support. Base32 encoded link is not
  389. supported yet. Fixed typo in method name in RequestGroup. In
  390. metadataGetMode, don't show "Your share ratio was ..." message.
  391. * src/DefaultBtInteractive.cc
  392. * src/DefaultBtInteractive.h
  393. * src/DownloadHandlerFactory.cc
  394. * src/DownloadHandlerFactory.h
  395. * src/HandshakeExtensionMessage.cc
  396. * src/Makefile.am
  397. * src/Metalink2RequestGroup.cc
  398. * src/PeerInteractionCommand.cc
  399. * src/RequestGroup.cc
  400. * src/RequestGroup.h
  401. * src/UTMetadataPostDownloadHandler.cc
  402. * src/UTMetadataPostDownloadHandler.h
  403. * src/download_helper.cc
  404. * test/HandshakeExtensionMessageTest.cc
  405. * test/Makefile.am
  406. * test/UTMetadataPostDownloadHandlerTest.cc
  407. * test/UTMetadataRejectExtensionMessageTest.cc
  408. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  409. In metadataGetMode, don't show SEEDING.
  410. * src/ConsoleStatCalc.cc
  411. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Fixed ut_metadata data handling. Implemented
  413. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  414. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  415. metadata_size is received.
  416. * src/DefaultExtensionMessageFactory.cc
  417. * src/DefaultExtensionMessageFactory.h
  418. * src/HandshakeExtensionMessage.cc
  419. * src/HandshakeExtensionMessage.h
  420. * src/UTMetadataDataExtensionMessage.cc
  421. * src/UTMetadataDataExtensionMessage.h
  422. * src/UTMetadataRequestExtensionMessage.cc
  423. * src/UTMetadataRequestFactory.cc
  424. * src/UTMetadataRequestFactory.h
  425. * src/UTMetadataRequestTracker.cc
  426. * src/UTMetadataRequestTracker.h
  427. * test/DefaultExtensionMessageFactoryTest.cc
  428. * test/HandshakeExtensionMessageTest.cc
  429. * test/MockBtMessage.h
  430. * test/UTMetadataDataExtensionMessageTest.cc
  431. * test/UTMetadataRequestExtensionMessageTest.cc
  432. * test/UTMetadataRequestFactoryTest.cc
  433. * test/UTMetadataRequestTrackerTest.cc
  434. * test/extension_message_test_helper.h
  435. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Drop connection if ut_metadata reject message is received.
  437. * src/UTMetadataRejectExtensionMessage.cc
  438. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  439. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  440. get high enough in that mode.
  441. * src/ActivePeerConnectionCommand.cc
  442. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Added BitTorrent magnet link support to ProtocolDetector.
  444. * src/ProtocolDetector.cc
  445. * src/ProtocolDetector.h
  446. * test/ProtocolDetectorTest.cc
  447. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Don't inject validator into BtMessage in metadataGetMode because
  449. most of the checks depends on the total length of download but it
  450. is unknown. Delegate metadataGetMode to BtMessage.
  451. * src/DefaultBtMessageFactory.cc
  452. * src/DefaultBtMessageFactory.h
  453. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  454. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  455. * src/DefaultPieceStorage.h
  456. * src/PieceStorage.h
  457. * src/UnknownLengthPieceStorage.h
  458. * test/MockPieceStorage.h
  459. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Added markTotalLengthIsKnown().
  461. * src/DownloadContext.h
  462. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  463. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  464. missing. If metadata is missing, always use DHT when it is ready.
  465. * src/BtSetup.cc
  466. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. Added parseMagnetLink(). Hex encoded info hash is supported.
  468. Base32 encoded info hash is not supported yet.
  469. * src/bittorrent_helper.cc
  470. * src/bittorrent_helper.h
  471. * test/BittorrentHelperTest.cc
  472. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  473. Added FromHex()
  474. * src/util.cc
  475. * src/util.h
  476. * test/UtilTest.cc
  477. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  478. Added _metadataGetMode member variable. It toggles the action when
  479. messages are received: usually they almost do nothing if
  480. _metadataGetMode is true.
  481. * src/AbstractBtMessage.cc
  482. * src/AbstractBtMessage.h
  483. * src/BtAllowedFastMessage.cc
  484. * src/BtBitfieldMessage.cc
  485. * src/BtCancelMessage.cc
  486. * src/BtChokeMessage.cc
  487. * src/BtHaveAllMessage.cc
  488. * src/BtHaveMessage.cc
  489. * src/BtInterestedMessage.cc
  490. * src/BtNotInterestedMessage.cc
  491. * src/BtPieceMessage.cc
  492. * src/BtRejectMessage.cc
  493. * src/BtRequestMessage.cc
  494. * src/BtUnchokeMessage.cc
  495. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Added bencode::decode overload functions. They have extra argument
  497. 'end', passed by reference. 'end' points to the beyond the last
  498. position of data used in decoding process.
  499. * src/bencode.cc
  500. * src/bencode.h
  501. * test/BencodeTest.cc
  502. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Initial support of Extension for Peers to Send Metadata
  504. Files(BEP9). Currently aria2 only serves metadata and cannot get
  505. metadata from swarm.
  506. * src/BtConstants.h
  507. * src/DefaultBtInteractive.cc
  508. * src/DefaultExtensionMessageFactory.cc
  509. * src/DefaultExtensionMessageFactory.h
  510. * src/ExtensionMessage.h
  511. * src/ExtensionMessageRegistry.h
  512. * src/HandshakeExtensionMessage.cc
  513. * src/HandshakeExtensionMessage.h
  514. * src/Makefile.am
  515. * src/PeerConnection.h
  516. * src/PeerInteractionCommand.cc
  517. * src/UTMetadataDataExtensionMessage.cc
  518. * src/UTMetadataDataExtensionMessage.h
  519. * src/UTMetadataExtensionMessage.cc
  520. * src/UTMetadataExtensionMessage.h
  521. * src/UTMetadataRejectExtensionMessage.cc
  522. * src/UTMetadataRejectExtensionMessage.h
  523. * src/UTMetadataRequestExtensionMessage.cc
  524. * src/UTMetadataRequestExtensionMessage.h
  525. * src/bittorrent_helper.cc
  526. * src/bittorrent_helper.h
  527. * test/BittorrentHelperTest.cc
  528. * test/DefaultExtensionMessageFactoryTest.cc
  529. * test/HandshakeExtensionMessageTest.cc
  530. * test/Makefile.am
  531. * test/UTMetadataDataExtensionMessageTest.cc
  532. * test/UTMetadataRejectExtensionMessageTest.cc
  533. * test/UTMetadataRequestExtensionMessageTest.cc
  534. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Cancel segment in prepareForRetry() because there is a chance that
  536. the command has segments.
  537. * src/CreateRequestCommand.cc
  538. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Fixed the bug that slow server is not knocked down in favor of
  540. faster one.
  541. * src/AbstractCommand.cc
  542. * src/DefaultPieceStorage.cc
  543. * src/DefaultPieceStorage.h
  544. * src/PieceStorage.h
  545. * src/UnknownLengthPieceStorage.cc
  546. * src/UnknownLengthPieceStorage.h
  547. * test/MockPieceStorage.h
  548. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. Fixed the bug that Request object is not added to
  550. _inFlightRequests in findFasterRequest().
  551. * src/FileEntry.cc
  552. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Changed the strategry of how to increase the number of outstanding
  554. requests. Now the number is doubled if there are no outstanding
  555. requests after receiving messages.
  556. * src/BtConstants.h
  557. * src/DefaultBtInteractive.cc
  558. * src/DefaultBtInteractive.h
  559. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Check socket for reading if there are outstanding requests.
  561. * src/PeerInteractionCommand.cc
  562. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  563. Moved frequently called methods to header file so they get
  564. inlined.
  565. * src/RequestSlot.cc
  566. * src/RequestSlot.h
  567. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Copied in_addr instead of just casting from char* which might
  569. violate strict aliasing rules.
  570. * src/AsyncNameResolver.cc
  571. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  572. Use dynamic_pointer_cast
  573. * test/BtPieceMessageTest.cc
  574. * test/BtRequestMessageTest.cc
  575. * test/DefaultBtRequestFactoryTest.cc
  576. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  577. Added testSetUrl20()
  578. * test/RequestTest.cc
  579. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Code cleanup
  581. * src/bittorrent_helper.cc
  582. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Use C++ style cast
  584. * src/AsyncNameResolver.cc
  585. * src/Base64.h
  586. * src/BtBitfieldMessage.cc
  587. * src/BtHandshakeMessage.cc
  588. * src/DefaultBtMessageFactory.cc
  589. * src/DefaultBtProgressInfoFile.cc
  590. * src/EpollEventPoll.cc
  591. * src/ExpatMetalinkProcessor.cc
  592. * src/IteratableChecksumValidator.cc
  593. * src/IteratableChunkChecksumValidator.cc
  594. * src/MessageDigestHelper.cc
  595. * src/Platform.cc
  596. * src/RequestGroupMan.cc
  597. * src/SingleFileAllocationIterator.cc
  598. * src/Sqlite3MozCookieParser.cc
  599. * src/XML2SAXMetalinkProcessor.cc
  600. * src/Xml2XmlRpcRequestProcessor.cc
  601. * src/util.cc
  602. * src/util.h
  603. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Fixed integer potential alignment problem.
  605. * src/bitfield.h
  606. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Applied a patch from tizianomueller to fix sigbus errors on Linux
  608. sparc. I modified the patch to eliminate a cast to uint32_t* and
  609. include file ordering.
  610. * src/PeerListProcessor.h
  611. * src/bittorrent_helper.cc
  612. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  614. * src/Request.cc
  615. * src/util.cc
  616. * src/util.h
  617. * test/RequestTest.cc
  618. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Rewritten util::uitos()
  620. * src/util.h
  621. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Code cleanup
  623. * src/Request.cc
  624. * src/Request.h
  625. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Rewritten Request::parseUrl()
  627. * src/Request.cc
  628. * test/RequestTest.cc
  629. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Removed unused macro SAFE_CHARS
  631. * src/Request.cc
  632. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Updated doc
  634. * src/DHTRoutingTableDeserializer.cc
  635. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Release 1.6.3
  637. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Removed unused function.
  639. * test/DHTPeerAnnounceStorageTest.cc
  640. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. Only decrement cols if cols > 0
  642. * src/ConsoleStatCalc.cc
  643. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Updated Polish, Catalan, French, Italian, Russian and Japanese
  645. translations. Thanks to all translators.
  646. * po/ca.po
  647. * po/fr.po
  648. * po/it.po
  649. * po/ja.po
  650. * po/pl.po
  651. * po/ru.po
  652. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Updated translation template
  654. * po
  655. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Fixed compile error without ssl library.
  657. * src/util.cc
  658. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  659. Logged received nodes in get_peers reply message.
  660. * src/DHTAbstractNodeLookupTask.cc
  661. * src/DHTAbstractNodeLookupTask.h
  662. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  664. error occurred in DHTMessageDispatcherImpl::sendMessage().
  665. * src/DHTMessageDispatcherImpl.cc
  666. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Don't reuse URI if Request pool is not empty.
  668. * src/CreateRequestCommand.cc
  669. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  671. receive get_peers request for torrent which the client is now
  672. downloading.
  673. * src/BtSetup.cc
  674. * src/DHTPeerAnnounceEntry.cc
  675. * src/DHTPeerAnnounceEntry.h
  676. * src/DHTPeerAnnounceStorage.cc
  677. * src/DHTPeerAnnounceStorage.h
  678. * src/RequestGroup.cc
  679. * test/DHTPeerAnnounceEntryTest.cc
  680. * test/DHTPeerAnnounceStorageTest.cc
  681. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Fixed the bug that in Windows environment new blank line is
  683. inserted when console readout is updated.
  684. * src/ConsoleStatCalc.cc
  685. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  686. Throw exception if binding listening port is failed. Removed
  687. RequestGroupMan::getInitialCommand(). Use
  688. fillRequestGroupFromReserver() instead. Delete commands for
  689. RequestGroup which has errors when it is being added.
  690. * src/BtSetup.cc
  691. * src/DownloadEngine.cc
  692. * src/DownloadEngine.h
  693. * src/DownloadEngineFactory.cc
  694. * src/MultiUrlRequestInfo.cc
  695. * src/RequestGroupMan.cc
  696. * src/RequestGroupMan.h
  697. * test/RequestGroupManTest.cc
  698. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. Fixed the bug that when downloading more than one torrent,
  700. listening port is not reported properly to tracker for 2nd or
  701. later torrents.
  702. * src/BtSetup.cc
  703. * src/PeerListenCommand.cc
  704. * src/PeerListenCommand.h
  705. * src/RequestGroup.cc
  706. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  707. Bump up version number to 1.6.3
  708. * configure.ac
  709. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Removed Util.cc from POTFILES.in
  711. * po/POTFILES.in
  712. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Updated man page for previous change.
  714. * doc/aria2c.1.txt
  715. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. If user name is embedded but password is missing in URI, first
  717. resolve password using .netrc. If password is found in .netrc,
  718. then use it as password. If not, use the password specified in
  719. --ftp-passwd.
  720. * src/AuthConfigFactory.cc
  721. * src/Request.cc
  722. * src/Request.h
  723. * test/AuthConfigFactoryTest.cc
  724. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  725. Fixed typo
  726. * doc/aria2c.1.txt
  727. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Fixed typo
  729. * src/usage_text.h
  730. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Added missing bitfield.cc
  732. * src/bitfield.cc
  733. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  734. Renamed Util.{cc,h} as util.{cc,h}
  735. * src/Util.cc
  736. * src/Util.h
  737. * src/util.cc
  738. * src/util.h
  739. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Moved static functions in Util class to namespace util.
  741. * src
  742. * test
  743. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  745. Moved generateRandomKey to bittorrent_helper.cc.
  746. * src/DHTBucket.cc
  747. * src/DHTGetPeersMessage.cc
  748. * src/DHTGetPeersReplyMessage.cc
  749. * src/DHTMessage.cc
  750. * src/DHTNode.cc
  751. * src/DHTTokenTracker.cc
  752. * src/DHTUtil.cc: Removed.
  753. * src/DHTUtil.h: Removed.
  754. * src/Makefile.am
  755. * src/Util.cc
  756. * src/Util.h
  757. * src/bitfield.h
  758. * src/bittorrent_helper.cc
  759. * src/bittorrent_helper.h
  760. * test/ARC4Test.cc
  761. * test/BNodeTest.cc
  762. * test/DHTAnnouncePeerMessageTest.cc
  763. * test/DHTAnnouncePeerReplyMessageTest.cc
  764. * test/DHTFindNodeMessageTest.cc
  765. * test/DHTFindNodeReplyMessageTest.cc
  766. * test/DHTGetPeersMessageTest.cc
  767. * test/DHTGetPeersReplyMessageTest.cc
  768. * test/DHTPingMessageTest.cc
  769. * test/DHTPingReplyMessageTest.cc
  770. * test/DHTTokenTrackerTest.cc
  771. * test/DHTUtilTest.cc: Removed.
  772. * test/Makefile.am
  773. * test/UtilTest.cc
  774. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Removed the call to trim() because trim() is called for each
  776. element in split().
  777. * src/CookieParser.cc
  778. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Replaced Util::slice() with split()
  780. * src/AbstractCommand.cc
  781. * src/CookieParser.cc
  782. * src/File.cc
  783. * src/HttpHeaderProcessor.cc
  784. * src/HttpRequest.cc
  785. * src/Metalink2RequestGroup.cc
  786. * src/MetalinkParserController.cc
  787. * src/Netrc.cc
  788. * src/NsCookieParser.cc
  789. * src/ParameterizedStringParser.cc
  790. * src/ServerStatMan.cc
  791. * src/UriListParser.cc
  792. * src/Util.cc
  793. * src/Util.h
  794. * src/bittorrent_helper.cc
  795. * test/UtilTest.cc
  796. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Use request->getDir() instead of "/" for embedded user/pass in
  798. URI.
  799. * src/AuthConfigFactory.cc
  800. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Fixed wrong insertion point for BasicCred.
  802. * src/AuthConfigFactory.cc
  803. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Allowed non-regular file in LocalFilePathOptionHandler
  805. * src/OptionHandlerImpl.h
  806. * src/message.h
  807. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Fixed the bug that Netrc::parse() cannot recognize comment line.
  809. * src/Netrc.cc
  810. * src/Util.h
  811. * test/NetrcTest.cc
  812. * test/sample.netrc
  813. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Fixed typo
  815. * src/BtDependency.cc
  816. * src/BtRejectMessage.cc
  817. * src/FtpConnection.cc
  818. * src/HttpHeaderProcessor.h
  819. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Fixed lintian report in man page
  821. * doc/aria2c.1.txt
  822. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Release 1.6.2
  824. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Updated Ukrainian translation. Thanks to all translators.
  826. * po/uk.po
  827. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Updated translation template
  829. * po
  830. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Bump up version number to 1.6.2
  832. * configure.ac
  833. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Updated licence message in -v output.
  835. * src/version_usage.cc
  836. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Replaced aria2 with aria2c in help message.
  838. * src/version_usage.cc
  839. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  841. * src/version_usage.cc
  842. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Quoted localedir
  844. * src/Makefile.am
  845. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  847. utime. Check header for utime.h.
  848. * configure.ac
  849. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  851. * configure.ac
  852. * src/daemon.cc
  853. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  854. Don't set localedir manually. Leave it to autoconf.
  855. * configure.ac
  856. * src/Makefile.am
  857. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  858. Added --install to ACLOCAL_AMFLAGS.
  859. Removed m4 from SUBDIRS.
  860. Updated automake 1.11 and autoconf 2.64.
  861. Replaced some obsolute macros with new one.
  862. * Makefile.am
  863. * configure.ac
  864. * m4/aria2_arg.m4
  865. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Removed Makefile.am in m4 directory.
  867. * configure.ac
  868. * m4/ChangeLog
  869. * m4/Makefile.am
  870. * m4/Makefile.in
  871. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Removed unused m4 macros.
  873. * m4/intldir.m4
  874. * m4/inttypes.m4
  875. * m4/isc-posix.m4
  876. * m4/libgnutls-extra.m4
  877. * m4/ulonglong.m4
  878. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  879. Fixed the bug that causes segmentation fault if
  880. req->getCurrentUrl() contains printf formatting characters such as
  881. %d. The statement that causes this bug is useless and removed.
  882. * src/AbstractCommand.cc
  883. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. * Release 1.6.1
  885. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Updated Simplified Chinese translation. Thanks to translators.
  887. * po/zh_CN.po
  888. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Updated translation template
  890. * po
  891. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Bump up version number to 1.6.1
  893. * configure.ac
  894. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Changed interval from 120 to 60 for dropping inactive peer.
  896. * src/DefaultBtInteractive.cc
  897. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Updated man page for --user-agent and --peer-id-prefix option.
  899. * doc/aria2c.1.txt
  900. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Code clean up
  902. * src/BtPostDownloadHandler.cc
  903. * src/ContentTypeRequestGroupCriteria.cc
  904. * src/ContentTypeRequestGroupCriteria.h
  905. * src/DownloadHandlerConstants.cc
  906. * src/DownloadHandlerConstants.h
  907. * src/DownloadHandlerFactory.cc
  908. * src/MetalinkPostDownloadHandler.cc
  909. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Don't save control file when aria2 exists while checking piece
  911. hash(behavior of -V option). If control file doesn't exist when
  912. aria2 launched, the completed length in saved control file will be
  913. 0 byte and this confuses user. disableSaveControlFile() is called
  914. in RequestGroup::processCheckIntegrityEntry().
  915. enableSaveControlFile() will be called after hash checking is
  916. done. See CheckIntegrityCommand.
  917. * src/CheckIntegrityCommand.cc
  918. * src/RequestGroup.cc
  919. * src/RequestGroup.h
  920. * src/RequestGroupMan.cc
  921. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  922. Included version number in Peer ID and client version. Peer ID
  923. now starts with "aria2/VERSION-", where VERSION is
  924. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  925. * src/DefaultBtInteractive.cc
  926. * src/OptionHandlerFactory.cc
  927. * src/bittorrent_helper.cc
  928. * src/bittorrent_helper.h
  929. * src/main.cc
  930. * src/usage_text.h
  931. * test/BittorrentHelperTest.cc
  932. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Fixed memory leak.
  934. * src/DownloadCommand.cc
  935. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Removed server, port, user and passwd key from options before
  937. XMLRPC::Client.call since they are not options of aria2.
  938. * doc/xmlrpc/aria2mon
  939. * doc/xmlrpc/aria2rpc
  940. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Included version number in user-agent string.
  942. * src/OptionHandlerFactory.cc
  943. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Fixed the bug that the option values changed by XML-RPC
  945. method(changeOption and changeGlobalOption) are overwritten to the
  946. previous value by the next these request which doesn't contain
  947. that option value. Supporse max-download-limit is initially 0. You
  948. changed this value to 100K by changeOption. Then you issue
  949. changeOption request to change max-upload-limit to 50K. This
  950. second request doesn't contain xml-download-limit, so it is back
  951. to initial value, 0. Another improvement is that exception is
  952. thrown when changeOption and changeGlobalOption request contains
  953. option name which doesn't allowed in each request.
  954. * src/DownloadEngine.h
  955. * src/XmlRpcMethod.cc
  956. * src/XmlRpcMethod.h
  957. * src/XmlRpcMethodImpl.cc
  958. * src/download_helper.cc
  959. * src/download_helper.h
  960. * test/XmlRpcMethodTest.cc
  961. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  962. Added missing MetalinkParserStateImpl.{cc,h}
  963. * src/MetalinkParserStateImpl.cc
  964. * src/MetalinkParserStateImpl.h
  965. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Put all MetalinkParserState subclasses into
  967. MetalinkParserStateImpl.cc. Use stack to track element structure.
  968. * src/FileMetalinkParserState.cc: Removed
  969. * src/FileMetalinkParserState.h: Removed
  970. * src/FilesMetalinkParserState.cc: Removed
  971. * src/FilesMetalinkParserState.h: Removed
  972. * src/FinMetalinkParserState.cc: Removed
  973. * src/FinMetalinkParserState.h: Removed
  974. * src/HashMetalinkParserState.cc: Removed
  975. * src/HashMetalinkParserState.h: Removed
  976. * src/InitialMetalinkParserState.cc: Removed
  977. * src/InitialMetalinkParserState.h: Removed
  978. * src/LanguageMetalinkParserState.cc: Removed
  979. * src/LanguageMetalinkParserState.h: Removed
  980. * src/Makefile.am
  981. * src/MetalinkMetalinkParserState.cc: Removed
  982. * src/MetalinkMetalinkParserState.h: Removed
  983. * src/MetalinkParserState.h
  984. * src/MetalinkParserStateMachine.cc
  985. * src/MetalinkParserStateMachine.h
  986. * src/OSMetalinkParserState.cc: Removed
  987. * src/OSMetalinkParserState.h: Removed
  988. * src/PieceHashMetalinkParserState.cc: Removed
  989. * src/PieceHashMetalinkParserState.h: Removed
  990. * src/PiecesMetalinkParserState.cc: Removed
  991. * src/PiecesMetalinkParserState.h: Removed
  992. * src/ResourcesMetalinkParserState.cc: Removed
  993. * src/ResourcesMetalinkParserState.h: Removed
  994. * src/SignatureMetalinkParserState.cc: Removed
  995. * src/SignatureMetalinkParserState.h: Removed
  996. * src/SizeMetalinkParserState.cc: Removed
  997. * src/SizeMetalinkParserState.h: Removed
  998. * src/SkipTagMetalinkParserState.cc: Removed
  999. * src/SkipTagMetalinkParserState.h: Removed
  1000. * src/URLMetalinkParserState.cc: Removed
  1001. * src/URLMetalinkParserState.h: Removed
  1002. * src/VerificationMetalinkParserState.cc: Removed
  1003. * src/VerificationMetalinkParserState.h: Removed
  1004. * src/VersionMetalinkParserState.cc: Removed
  1005. * src/VersionMetalinkParserState.h: Removed
  1006. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Move all functions in PeerMessageUtil to bittorrent_helper.
  1008. * src/BtBitfieldMessage.cc
  1009. * src/BtBitfieldMessageValidator.h
  1010. * src/BtExtendedMessage.cc
  1011. * src/BtHandshakeMessage.cc
  1012. * src/BtHandshakeMessageValidator.h
  1013. * src/BtPieceMessage.cc
  1014. * src/BtPieceMessageValidator.h
  1015. * src/BtPortMessage.cc
  1016. * src/DHTFindNodeReplyMessage.cc
  1017. * src/DHTGetPeersReplyMessage.cc
  1018. * src/DHTMessageFactoryImpl.cc
  1019. * src/DHTRoutingTableDeserializer.cc
  1020. * src/DHTRoutingTableSerializer.cc
  1021. * src/DHTTokenTracker.cc
  1022. * src/DefaultBtMessageFactory.cc
  1023. * src/IndexBtMessage.cc
  1024. * src/IndexBtMessage.h
  1025. * src/IndexBtMessageValidator.h
  1026. * src/Makefile.am
  1027. * src/PeerMessageUtil.cc: Removed.
  1028. * src/PeerMessageUtil.h: Removed.
  1029. * src/RangeBtMessage.cc
  1030. * src/RangeBtMessage.h
  1031. * src/RangeBtMessageValidator.h
  1032. * src/UTPexExtensionMessage.cc
  1033. * src/ZeroBtMessage.cc
  1034. * src/ZeroBtMessage.h
  1035. * src/bittorrent_helper.cc
  1036. * src/bittorrent_helper.h
  1037. * test/BittorrentHelperTest.cc
  1038. * test/BtAllowedFastMessageTest.cc
  1039. * test/BtBitfieldMessageTest.cc
  1040. * test/BtCancelMessageTest.cc
  1041. * test/BtChokeMessageTest.cc
  1042. * test/BtExtendedMessageTest.cc
  1043. * test/BtHandshakeMessageTest.cc
  1044. * test/BtHaveAllMessageTest.cc
  1045. * test/BtHaveMessageTest.cc
  1046. * test/BtHaveNoneMessageTest.cc
  1047. * test/BtInterestedMessageTest.cc
  1048. * test/BtNotInterestedMessageTest.cc
  1049. * test/BtPieceMessageTest.cc
  1050. * test/BtPortMessageTest.cc
  1051. * test/BtRejectMessageTest.cc
  1052. * test/BtRequestMessageTest.cc
  1053. * test/BtSuggestPieceMessageTest.cc
  1054. * test/BtUnchokeMessageTest.cc
  1055. * test/DHTFindNodeReplyMessageTest.cc
  1056. * test/DHTGetPeersReplyMessageTest.cc
  1057. * test/DHTMessageFactoryImplTest.cc
  1058. * test/DHTRoutingTableDeserializerTest.cc
  1059. * test/DHTRoutingTableSerializerTest.cc
  1060. * test/DefaultBtMessageFactoryTest.cc
  1061. * test/DefaultExtensionMessageFactoryTest.cc
  1062. * test/Makefile.am
  1063. * test/PeerListProcessorTest.cc
  1064. * test/PeerMessageUtilTest.cc: Removed.
  1065. * test/UTPexExtensionMessageTest.cc
  1066. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1067. Limit the size of values list when sending get_peers reply.
  1068. * src/DHTGetPeersReplyMessage.cc
  1069. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1070. Updated banner
  1071. * doc/xmlrpc/aria2rpc
  1072. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1073. Added missing help message for remove command.
  1074. * doc/xmlrpc/aria2rpc
  1075. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1076. Generated configure and config.h.in
  1077. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1078. Add check for fork(), which is missing on MinGW
  1079. * src/daemon.cc
  1080. * configure.ac
  1081. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1083. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1084. Util::httpGMT().
  1085. * src/Util.cc
  1086. * src/Util.h
  1087. * test/UtilTest.cc
  1088. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. * Release 1.6.0
  1090. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1091. Fixed a path to xmlrpc/README.txt
  1092. * doc/Makefile.am
  1093. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1094. Added XML-RPC in -v Configuration output.
  1095. * src/FeatureConfig.cc
  1096. * src/FeatureConfig.h
  1097. * test/FeatureConfigTest.cc
  1098. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Updated Bulgarian, Russian, Slovak and Japanese
  1100. translations. Thanks to all translators.
  1101. * po/bg.po
  1102. * po/ja.po
  1103. * po/ru.po
  1104. * po/sk.po
  1105. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1106. Removed --retry-wait option from aria2rpc
  1107. * doc/xmlrpc/aria2rpc
  1108. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1109. Removed --retry-wait option from man page.
  1110. * doc/aria2c.1.txt
  1111. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Removed --retry-wait option since the current architecture doesn't
  1113. allow sleep for particular URI.
  1114. * src/AbstractCommand.cc
  1115. * src/OptionHandlerFactory.cc
  1116. * src/download_helper.cc
  1117. * src/prefs.cc
  1118. * src/prefs.h
  1119. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Removed Retry-After header support. Since the current architecture
  1121. doesn't allow sleep for particular URI.
  1122. * src/HttpSkipResponseCommand.cc
  1123. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Updated the help message for --daemon option.
  1125. * doc/aria2c.1.txt
  1126. * src/usage_text.h
  1127. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Added our own daemon() function for systems which desn't have
  1129. daemon(3).
  1130. * configure.ac
  1131. * src/Makefile.am
  1132. * src/daemon.cc
  1133. * src/daemon.h
  1134. * src/option_processing.cc
  1135. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Simplified File::getCurrentDir()
  1137. * src/File.cc
  1138. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Use exit() instead of _exit
  1140. * src/RequestGroupMan.cc
  1141. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Replaced "CATEGORY" with "TAGS".
  1143. * src/usage_text.h
  1144. * doc/aria2c.1.txt
  1145. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Updated the help message for --help option.
  1147. * src/usage_text.h
  1148. * doc/aria2c.1.txt
  1149. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Updated man page for added help tags.
  1151. * doc/aria2c.1.txt
  1152. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. Added help category #file. Added #file tag to the options related
  1154. to downloaded file.
  1155. * src/OptionHandlerFactory.cc
  1156. * src/help_tags.h
  1157. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Added help categories: #cookie and #hook. Added #https tag to
  1159. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1160. * src/OptionHandlerFactory.cc
  1161. * src/help_tags.h
  1162. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1163. Made MSG_NOT_FILE translatable.
  1164. * src/message.h
  1165. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Updated man page for --help option.
  1167. * doc/aria2c.1.txt
  1168. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Updated doc.
  1170. * src/XmlRpcMethod.h
  1171. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Help category now starts with "#" to distinguish a category from
  1173. keyword search. For example, "http" categroy is now "#http". You
  1174. can type "--help=#http" to get explanation of options related to
  1175. http. If '#' is omitted, then the argument is treated as a keyword
  1176. and aria2 searches options whose name includes the keyword and
  1177. print matched ones. For example, "--help=http" will show options
  1178. whose name includes "http".
  1179. * src/OptionHandlerFactory.cc
  1180. * src/help_tags.h
  1181. * src/usage_text.h
  1182. * src/version_usage.cc
  1183. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Documented missing experimental tag and newly added xml-rpc tag in
  1185. man page.
  1186. * doc/aria2c.1.txt
  1187. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Added xml-rpc help tag. Tagged xml-rpc related options with
  1189. xml-rpc tag.
  1190. * src/OptionHandlerFactory.cc
  1191. * src/help_tags.h
  1192. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1193. Updated message when a path is not a file. Updated common message
  1194. for wrong option.
  1195. * src/OptionHandlerException.cc
  1196. * src/message.h
  1197. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Use File::isFile() instead of File::exists(). Updated message when
  1199. a path is not a file.
  1200. * src/OptionHandlerImpl.cc
  1201. * src/message.h
  1202. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Fixed the bug that server performence profile is not updated when
  1204. aria2c was terminated by emergency shutdown.
  1205. * src/TrackerWatcherCommand.cc
  1206. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Use LocalFilePathOptionHandler for -T and -M option.
  1208. Updated message of MSG_FILE_NOT_EXIST.
  1209. * src/OptionHandlerFactory.cc
  1210. * src/message.h
  1211. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Added LocalFilePathOptionHandler which check whether the specified
  1213. file path does exist or not.
  1214. * src/OptionHandlerImpl.cc
  1215. * src/message.h
  1216. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Updated wiki page URI.
  1218. * README
  1219. * doc/aria2c.1.txt
  1220. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Added README.txt for xmlrpc directory.
  1222. * doc/Makefile.am
  1223. * doc/xmlrpc/README.txt
  1224. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Bump up version number to 1.6.0.
  1226. * configure.ac
  1227. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. Added XML-RPC client scripts written in ruby.
  1229. * doc/Makefile.am
  1230. * doc/xmlrpc/aria2mon
  1231. * doc/xmlrpc/aria2rpc
  1232. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1233. Added support for IPv6 literal address in URI. Now aria2 can
  1234. handle URI such as http://[::1]/
  1235. * src/HttpRequest.cc
  1236. * src/HttpRequest.h
  1237. * src/Request.cc
  1238. * src/Request.h
  1239. * test/HttpRequestTest.cc
  1240. * test/OptionHandlerTest.cc
  1241. * test/RequestTest.cc
  1242. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Fixed the bug that HTTP request header for XML-RPC request is not
  1244. parsed properly.
  1245. * src/HttpHeader.cc
  1246. * src/HttpHeaderProcessor.cc
  1247. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Fixed the bug that XML-RPC authorization might be done before HTTP
  1249. request header is fully received.
  1250. * src/HttpServerCommand.cc
  1251. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Documented --xml-rpc-listen-all option in man page.
  1253. * doc/aria2c.1.txt
  1254. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Added --xml-rpc-listen-all option. If true is given to this
  1256. option, aria2 listens incoming XML-RPC requests on all network
  1257. interfaces. If false is given, listens only on local loopback
  1258. interface. The default value is false.
  1259. * src/HttpListenCommand.cc
  1260. * src/OptionHandlerFactory.cc
  1261. * src/SocketCore.cc
  1262. * src/SocketCore.h
  1263. * src/prefs.cc
  1264. * src/prefs.h
  1265. * src/usage_text.h
  1266. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1267. * Release 1.5.2
  1268. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Updated Ukrainian and Russian translations. Thanks to all
  1270. translators.
  1271. * po/ru.po
  1272. * po/uk.po
  1273. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Bump up version number to 1.5.2
  1275. * configure.ac
  1276. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1277. Get comment, comment.utf-8, created by and creation date from
  1278. .torrent file and print them in -S output.
  1279. * src/bittorrent_helper.cc
  1280. * src/bittorrent_helper.h
  1281. * test/BittorrentHelperTest.cc
  1282. * test/test.torrent
  1283. * test/utf8.torrent
  1284. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Show exact file size along in -S option output.
  1286. * src/Util.h
  1287. * src/bittorrent_helper.cc
  1288. * test/UtilTest.cc
  1289. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Avoided unnecessary memory allocation in
  1291. BitfieldMan::getCompletedLength().
  1292. * src/BitfieldMan.cc
  1293. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Fixed the bug that download fails if
  1295. SocketCore::establishConnection() throws exception and aria2
  1296. doesn't try another address.
  1297. * src/AbstractCommand.cc
  1298. * src/InitiateConnectionCommand.cc
  1299. * src/message.h
  1300. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1302. detected properly.
  1303. * m4/sqlite3.m4
  1304. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1306. because it causes compile error if PARAMS macro is defined.
  1307. * src/XmlRpcElements.cc
  1308. * src/XmlRpcElements.h
  1309. * src/XmlRpcRequestParserStateImpl.cc
  1310. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1311. * Release 1.5.1
  1312. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Bump up version number to 1.5.1
  1314. * configure.ac
  1315. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Fixed compile error without BitTorrent support
  1317. * src/DefaultBtProgressInfoFile.cc
  1318. * src/DownloadEngine.cc
  1319. * src/DownloadEngine.h
  1320. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Added missing '=' in Download Results
  1322. * src/RequestGroupMan.cc
  1323. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Fixed compiler warning
  1325. * src/DefaultBtProgressInfoFile.cc
  1326. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Fixed compiler warning on 32bit systems.
  1328. * src/DownloadCommand.cc
  1329. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1330. Call flush from ServerStatMan::save()
  1331. * src/ServerStatMan.cc
  1332. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Check stream status after file is opened.
  1334. * src/CookieStorage.cc
  1335. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Rewritten Signature::save()
  1337. * src/Signature.cc
  1338. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Rewritten RequestGroupMan::saveServerStat()
  1340. * src/RequestGroupMan.cc
  1341. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Rewritten stream error handling
  1343. * src/DHTAutoSaveCommand.cc
  1344. * src/DHTRoutingTableDeserializer.cc
  1345. * src/DHTRoutingTableSerializer.cc
  1346. * src/DHTSetup.cc
  1347. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Check stream status after file is opened.
  1349. * src/DefaultBtProgressInfoFile.cc
  1350. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Rewritten stream error handling
  1352. * src/DefaultBtProgressInfoFile.cc
  1353. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Make sure that stream is closed before renaming file. Unit test
  1355. fails on mingw32 in the previous implementation.
  1356. * src/CookieStorage.cc
  1357. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Fixed the unit test error without sqlite3
  1359. * test/CookieStorageTest.cc
  1360. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1361. Fixed the undefined reference error
  1362. * test/HttpResponseTest.cc
  1363. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. * Release 1.5.0
  1365. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1367. Ukrainian translations. Thanks to all translators.
  1368. * po/ru.po
  1369. * po/it.po
  1370. * po/da.po
  1371. * po/bg.po
  1372. * po/ja.po
  1373. * po/uk.po
  1374. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Added missing src/Logger.cc
  1376. * src/Logger.cc
  1377. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Rewritten Logger to avoiding constly virtual call.
  1379. * src/LogFactory.cc
  1380. * src/LogFactory.h
  1381. * src/Logger.h
  1382. * src/Makefile.am
  1383. * src/Makefile.in
  1384. * src/NullLogger.h: Removed.
  1385. * src/SimpleLogger.cc
  1386. * src/SimpleLogger.h
  1387. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Updated doc
  1389. * src/main.cc
  1390. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1391. Updated debug log message
  1392. * src/AbstractCommand.cc
  1393. * src/message.h
  1394. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Avoid to create zombie process when commands specified in
  1396. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1397. X and NetBSD.
  1398. * src/main.cc
  1399. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1400. Fixed typo
  1401. * src/usage_text.h
  1402. * doc/aria2c.1.txt
  1403. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Documented 'errorCode' of tellStatus in man page.
  1405. * doc/aria2c.1.txt
  1406. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1408. This key is only available for stopped/completed downloads and its
  1409. value is the error code defined in EXIT STATUS in man page.
  1410. * src/XmlRpcMethodImpl.cc
  1411. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Fixed the bug that session download length is not updated when
  1413. PeerStat is not fastest one.
  1414. * src/SegmentMan.cc
  1415. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Updated doc.
  1417. * doc/aria2c.1.txt
  1418. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1419. Updated doc.
  1420. * src/AbstractCommand.cc
  1421. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1422. Handle the case when DownloadContext has no FileEntry.
  1423. * src/XmlRpcMethodImpl.cc
  1424. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1425. Handle the situation where struct option.name is char *.
  1426. * configure.ac
  1427. * src/OptionParser.cc
  1428. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1429. Code cleanup
  1430. * src/AbstractCommand.cc
  1431. * src/DownloadCommand.cc
  1432. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Use option of each download to create AuthConfig instead of global
  1434. option.
  1435. * src/AuthConfigFactory.cc
  1436. * src/AuthConfigFactory.h
  1437. * src/FtpNegotiationCommand.cc
  1438. * src/HttpRequest.cc
  1439. * src/HttpRequest.h
  1440. * src/HttpRequestCommand.cc
  1441. * src/HttpSkipResponseCommand.cc
  1442. * src/MultiUrlRequestInfo.cc
  1443. * test/AuthConfigFactoryTest.cc
  1444. * test/FtpConnectionTest.cc
  1445. * test/HttpRequestTest.cc
  1446. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Don't call prepareForRetry(1) if all segments are ignored in
  1448. SegmentMan.
  1449. * src/AbstractCommand.cc
  1450. * src/BitfieldMan.cc
  1451. * src/BitfieldMan.h
  1452. * src/SegmentMan.cc
  1453. * src/SegmentMan.h
  1454. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1455. Removed FileEntry::getAssociatedUris()
  1456. * src/FileEntry.h
  1457. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Updated doc: TODO1.5 -> TODO
  1459. * src/FileEntry.cc
  1460. * src/HttpResponseCommand.cc
  1461. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1463. involved.
  1464. * src/RequestGroup.cc
  1465. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Eliminated duplicated filterBitfield initialization code.
  1467. * src/BitfieldMan.cc
  1468. * src/BitfieldMan.h
  1469. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1471. relatively naive approach, though). For DownloadFailureException,
  1472. we handle the case when req is null properly.
  1473. * src/AbstractCommand.cc
  1474. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. Added function returning suffix of control file to
  1476. DefaultBtProgressInfoFile.
  1477. * src/DefaultBtProgressInfoFile.cc
  1478. * src/DefaultBtProgressInfoFile.h
  1479. * src/RequestGroup.cc
  1480. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Documented getVersion in man page.
  1482. * doc/aria2c.1.txt
  1483. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Documented type of offset and num for tellWaiting xml-rpc method.
  1485. * doc/aria2c.1.txt
  1486. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. Implemented getVersion xml-rpc method. This method returns struct
  1488. which has 2 key-value pairs: "version" key is associated to the
  1489. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1490. associated to the list of enabled features, such as "Async DNS",
  1491. "BitTorrent".
  1492. * src/FeatureConfig.h
  1493. * src/XmlRpcMethodFactory.cc
  1494. * src/XmlRpcMethodImpl.cc
  1495. * src/XmlRpcMethodImpl.h
  1496. * test/XmlRpcMethodTest.cc
  1497. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1499. for compatibility issue.
  1500. * src/SocketCore.cc
  1501. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Fixed compile error with openSSL
  1503. * src/bittorrent_helper.cc
  1504. * src/messageDigest.h
  1505. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Removed bad code: setting certificate type priority to key
  1507. exchange priority.
  1508. * src/SocketCore.cc
  1509. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1510. Disconnect seeder if client is also in seed state.
  1511. * src/BtBitfieldMessage.cc
  1512. * src/BtHaveAllMessage.cc
  1513. * src/BtHaveMessage.cc
  1514. * src/message.h
  1515. * test/BtBitfieldMessageTest.cc
  1516. * test/BtHaveAllMessageTest.cc
  1517. * test/BtHaveMessageTest.cc
  1518. * test/MockPieceStorage.h
  1519. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Keep CreateRequestCommand in queue when no segment is available so
  1521. that they can pick up pieces which slow BitTorrent peers are
  1522. downloading.
  1523. * src/AbstractCommand.cc
  1524. * src/CreateRequestCommand.cc
  1525. * src/CreateRequestCommand.h
  1526. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. --bt-stop-timeout now only checks download speed.
  1528. * src/BtStopDownloadCommand.cc
  1529. * src/BtStopDownloadCommand.h
  1530. * src/BtSetup.cc
  1531. * src/usage_text.h
  1532. * doc/aria2c.1.txt
  1533. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Fixed compile error regarding BUFSIZE.
  1535. * src/DownloadCommand.cc
  1536. * src/DownloadCommand.h
  1537. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1538. Documented tellWaiting xml-rpc method in man page.
  1539. * doc/aria2c.1.txt
  1540. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1541. Bump up version number to 1.5.0
  1542. * configure.ac
  1543. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1544. Removed resolved TODO1.5
  1545. * src/AbstractCommand.cc
  1546. * src/DownloadCommand.cc
  1547. * src/RequestGroup.cc
  1548. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Release pooled and in-flight Request objectsand URIResult objects
  1550. in FileEntry after download completed.
  1551. * src/DownloadContext.cc
  1552. * src/DownloadContext.h
  1553. * src/FileEntry.cc
  1554. * src/FileEntry.h
  1555. * src/RequestGroup.cc
  1556. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Set manual and source attribute in aria2c.1.txt
  1558. * doc/aria2c.1.txt
  1559. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. Documented that the default value of --use-head is 'false' in man
  1561. page.
  1562. * doc/aria2c.1.txt
  1563. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Added bt-stop-timeout option to -i list.
  1565. * doc/aria2c.1.txt
  1566. * src/download_helper.cc
  1567. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Fixed typo
  1569. * doc/aria2c.1.txt
  1570. * src/usage_text.h
  1571. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1572. Removed peer-id-prefix option from -i list.
  1573. * doc/aria2c.1.txt
  1574. * src/download_helper.cc
  1575. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Fixed typo
  1577. * doc/aria2c.1.txt
  1578. * src/usage_text.h
  1579. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Documented --bt-stop-timeout option in man page.
  1581. * doc/aria2c.1.txt
  1582. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1583. Updated README regarding multi-file torrent web-seeding.
  1584. * doc/README.txt
  1585. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1586. Updated man page regarding multi-file torrent web-seeding.
  1587. * doc/aria2c.1.txt
  1588. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1589. Updated doc
  1590. * src/version_usage.cc
  1591. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Winsock select() doesn't work if no socket is in FD_SET. To
  1593. overcome this problem, a dummy socket is added to FD_SET and it is
  1594. given to select().
  1595. * src/SelectEventPoll.cc
  1596. * src/SelectEventPoll.h
  1597. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Disabled --use-head option by default because --use-head=true
  1599. causes problems on some web sites.
  1600. * src/OptionHandlerFactory.cc
  1601. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Print URL List in -S option for torrent.
  1603. * src/bittorrent_helper.cc
  1604. * src/bittorrent_helper.h
  1605. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Allocate buffer in ctor of DownloadCommand.
  1607. * src/DownloadCommand.cc
  1608. * src/DownloadCommand.h
  1609. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Removed DiskAdaptor::onDownloadComplete()
  1611. * src/DirectDiskAdaptor.cc
  1612. * src/DirectDiskAdaptor.h
  1613. * src/DiskAdaptor.h
  1614. * src/MultiDiskAdaptor.cc
  1615. * src/MultiDiskAdaptor.h
  1616. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1617. Committed missing BtStopDownloadCommand.{cc,h}
  1618. * src/BtStopDownloadCommand.cc
  1619. * src/BtStopDownloadCommand.h
  1620. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1621. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1622. download if the download speed is 0 and the number of seeder is 0
  1623. in consecutive SEC seconds. By default, this function is disabled.
  1624. * src/BtSetup.cc
  1625. * src/Makefile.am
  1626. * src/OptionHandlerFactory.cc
  1627. * src/prefs.cc
  1628. * src/prefs.h
  1629. * src/usage_text.h
  1630. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Removed the call to DiskAdaptor::onDownloadComplete() from
  1632. BtCheckIntegrityEntry and DefaultPieceStorage.
  1633. * src/BtCheckIntegrityEntry.cc
  1634. * src/DefaultPieceStorage.cc
  1635. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Commented out throw statements when number of piece is 0 to
  1637. download 0 length torrent.
  1638. * src/bittorrent_helper.cc
  1639. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Call RequestGroup::createNextCommandWithAdj() from
  1641. BtFileAllocationEntry if at least one FileEntry has URI. The
  1642. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1643. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1644. * src/BtFileAllocationEntry.cc
  1645. * src/FileEntry.h
  1646. * src/RequestGroup.cc
  1647. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Generate peer ID after SimpleRandomizer is initialized.
  1649. * src/main.cc
  1650. * src/option_processing.cc
  1651. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Removed unused method argument.
  1653. * src/CreateRequestCommand.cc
  1654. * src/RequestGroup.cc
  1655. * src/RequestGroup.h
  1656. * src/RequestGroupMan.cc
  1657. * src/TrackerWatcherCommand.cc
  1658. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Made URI reusing function work.
  1660. * src/CreateRequestCommand.cc
  1661. * src/FileEntry.cc
  1662. * src/FileEntry.h
  1663. * test/FileEntryTest.cc
  1664. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1665. Add formerly fastest PeerStat's sessionDownloadLength to new
  1666. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1667. bytes in a session.
  1668. * src/PeerStat.cc
  1669. * src/SegmentMan.cc
  1670. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. If pipelining is enabled, we can always pool socket.
  1672. * src/HttpDownloadCommand.cc
  1673. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. In a single file download, file size becomes known just after
  1675. downloading, set total length to FileEntry object when download
  1676. completed.
  1677. * src/DownloadCommand.cc
  1678. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. Use std::vector::reserve() for fileEntries and pieceHashes in
  1680. bittorrent_helper
  1681. * src/bittorrent_helper.cc
  1682. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1684. Removed hidden option PREF_RESET_URI.
  1685. * src/AbstractCommand.cc
  1686. * src/OptionHandlerFactory.cc
  1687. * src/prefs.cc
  1688. * src/prefs.h
  1689. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Removed unused variable/function.
  1691. * src/PeerStat.h
  1692. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Show first URL in Download Results if file path is not available.
  1694. * src/FileEntry.h
  1695. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Throw exception if file path doesn't exist in FTP URL.
  1697. * src/InitiateConnectionCommandFactory.cc
  1698. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1700. * src/BitfieldMan.cc
  1701. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1703. of PeerStat in SegmentMan. peerStats is used for calculating
  1704. download speed. Therefore all active PeerStats should be in
  1705. there. Another one is _fastestPeerStats and it only contains
  1706. fastest PeerStat for each hostname/protocol pair. They are used
  1707. for updating ServerStat.
  1708. * src/DownloadCommand.cc
  1709. * src/Request.h
  1710. * src/RequestGroupMan.cc
  1711. * src/SegmentMan.cc
  1712. * src/SegmentMan.h
  1713. * test/SegmentManTest.cc
  1714. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1715. Try all available addresses returned by DNS until it gets
  1716. connected in HTTP(S)/FTP download
  1717. * src/AbstractCommand.cc
  1718. * src/AbstractCommand.h
  1719. * src/AbstractProxyRequestCommand.cc
  1720. * src/AbstractProxyRequestCommand.h
  1721. * src/DNSCache.h
  1722. * src/DownloadEngine.cc
  1723. * src/DownloadEngine.h
  1724. * src/FtpInitiateConnectionCommand.cc
  1725. * src/FtpInitiateConnectionCommand.h
  1726. * src/FtpNegotiationCommand.cc
  1727. * src/FtpNegotiationCommand.h
  1728. * src/HttpInitiateConnectionCommand.cc
  1729. * src/HttpInitiateConnectionCommand.h
  1730. * src/HttpRequestCommand.cc
  1731. * src/HttpRequestCommand.h
  1732. * src/InitiateConnectionCommand.cc
  1733. * src/InitiateConnectionCommand.h
  1734. * test/DNSCacheTest.cc
  1735. * test/Makefile.am
  1736. * test/SimpleDNSCacheTest.cc
  1737. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Updated doc
  1739. * src/download_helper.cc
  1740. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Refactored fieldMan ctor.
  1742. * src/BitfieldMan.cc
  1743. * src/BitfieldMan.h
  1744. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1745. Don't print "No files to download." message if -S is given.
  1746. * src/main.cc
  1747. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. Set referer and method to newly created Request object.
  1749. * src/CreateRequestCommand.cc
  1750. * src/FileEntry.cc
  1751. * src/FileEntry.h
  1752. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1754. * src/AbstractCommand.cc
  1755. * src/AbstractCommand.h
  1756. * src/CreateRequestCommand.cc
  1757. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Get proxy download working
  1759. * src/AbstractProxyRequestCommand.cc
  1760. * src/AbstractProxyRequestCommand.h
  1761. * src/AbstractProxyResponseCommand.cc
  1762. * src/AbstractProxyResponseCommand.h
  1763. * src/FtpInitiateConnectionCommand.cc
  1764. * src/FtpTunnelRequestCommand.cc
  1765. * src/FtpTunnelRequestCommand.h
  1766. * src/FtpTunnelResponseCommand.cc
  1767. * src/FtpTunnelResponseCommand.h
  1768. * src/HttpInitiateConnectionCommand.cc
  1769. * src/HttpProxyRequestCommand.cc
  1770. * src/HttpProxyRequestCommand.h
  1771. * src/HttpProxyResponseCommand.cc
  1772. * src/HttpProxyResponseCommand.h
  1773. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Use SegmentMan::getSegment(cuid) for single file download.
  1775. * src/AbstractCommand.cc
  1776. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Fixed bufSize calculation
  1778. * src/DownloadCommand.cc
  1779. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1780. Don't append "/" if base URI ends with "/".
  1781. * src/bittorrent_helper.cc
  1782. * test/url-list-multiFile.torrent
  1783. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1784. HTTP pipelining is now working. Fixed Segmention fault in
  1785. BitfieldMan's copy ctor.
  1786. * src/AbstractCommand.cc
  1787. * src/BitfieldMan.cc
  1788. * src/BitfieldMan.h
  1789. * src/DownloadCommand.cc
  1790. * src/HttpDownloadCommand.cc
  1791. * src/HttpRequest.cc
  1792. * src/SegmentMan.cc
  1793. * src/SegmentMan.h
  1794. * test/BitfieldManTest.cc
  1795. * test/SegmentManTest.cc
  1796. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Removed ServerHost. Same functionality is implemented using
  1798. FileEntry's in-flight Request objects.
  1799. * src/AbstractCommand.cc
  1800. * src/BtDependency.cc
  1801. * src/CreateRequestCommand.cc
  1802. * src/FileEntry.cc
  1803. * src/FileEntry.h
  1804. * src/FtpNegotiationCommand.cc
  1805. * src/HttpResponseCommand.cc
  1806. * src/Makefile.am
  1807. * src/Metalink2RequestGroup.cc
  1808. * src/RequestGroup.cc
  1809. * src/RequestGroup.h
  1810. * src/ServerHost.cc: Removed
  1811. * src/ServerHost.h: Removed
  1812. * test/BtDependencyTest.cc
  1813. * test/FileEntryTest.cc
  1814. * test/RequestGroupTest.cc
  1815. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1816. Rewritten PeerStat handling. In the previous implementation,
  1817. faster command tries to find slower command. In this new
  1818. implementation, slower command tries to find faster command.
  1819. PeerStat is now created in each HTTP/FTP request to get download
  1820. rate correctly. If the download range is small, the download rate
  1821. tends to small and this will occur at the later stage of download.
  1822. * src/AbstractCommand.cc
  1823. * src/DownloadCommand.cc
  1824. * src/FileEntry.cc
  1825. * src/FileEntry.h
  1826. * src/Request.cc
  1827. * src/Request.h
  1828. * src/RequestGroup.h
  1829. * src/RequestGroupMan.cc
  1830. * src/SegmentMan.cc
  1831. * src/SegmentMan.h
  1832. * test/SegmentManTest.cc
  1833. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1834. Removed _uris from RequestGroup. All functions that refer to _uris
  1835. were moved to FileEntry. Exit status code are now defined in
  1836. DownloadResultCode.h.
  1837. * src/AbstractCommand.cc
  1838. * src/AdaptiveURISelector.cc
  1839. * src/AdaptiveURISelector.h
  1840. * src/AutoSaveCommand.cc
  1841. * src/BtPostDownloadHandler.cc
  1842. * src/CheckIntegrityDispatcherCommand.cc
  1843. * src/CookieStorage.cc
  1844. * src/DHTAutoSaveCommand.cc
  1845. * src/DHTBucketRefreshCommand.cc
  1846. * src/DHTEntryPointNameResolveCommand.cc
  1847. * src/DHTInteractionCommand.cc
  1848. * src/DHTPeerAnnounceCommand.cc
  1849. * src/DHTTokenUpdateCommand.cc
  1850. * src/DlAbortEx.h
  1851. * src/DlRetryEx.h
  1852. * src/DownloadCommand.cc
  1853. * src/DownloadContext.h
  1854. * src/DownloadFailureException.h
  1855. * src/DownloadResult.h
  1856. * src/DownloadResultCode.h
  1857. * src/FeedbackURISelector.cc
  1858. * src/FeedbackURISelector.h
  1859. * src/FileEntry.cc
  1860. * src/FileEntry.h
  1861. * src/FtpNegotiationCommand.cc
  1862. * src/HttpListenCommand.cc
  1863. * src/HttpResponseCommand.cc
  1864. * src/HttpServerResponseCommand.cc
  1865. * src/HttpSkipResponseCommand.cc
  1866. * src/InOrderURISelector.cc
  1867. * src/InOrderURISelector.h
  1868. * src/Makefile.am
  1869. * src/Makefile.in
  1870. * src/Metalink2RequestGroup.cc
  1871. * src/MultiUrlRequestInfo.cc
  1872. * src/MultiUrlRequestInfo.h
  1873. * src/OptionHandlerFactory.cc
  1874. * src/PeerListenCommand.cc
  1875. * src/RecoverableException.h
  1876. * src/RequestGroup.cc
  1877. * src/RequestGroup.h
  1878. * src/RequestGroupMan.cc
  1879. * src/RequestGroupMan.h
  1880. * src/TimedHaltCommand.cc
  1881. * src/TrackerWatcherCommand.cc
  1882. * src/URIResult.cc
  1883. * src/URIResult.h
  1884. * src/URISelector.h
  1885. * src/XmlRpcMethodImpl.cc
  1886. * src/bittorrent_helper.cc
  1887. * src/bittorrent_helper.h
  1888. * src/download_helper.cc
  1889. * src/main.cc
  1890. * src/option_processing.cc
  1891. * test/BtDependencyTest.cc
  1892. * test/BtPostDownloadHandlerTest.cc
  1893. * test/CookieStorageTest.cc
  1894. * test/DefaultBtMessageDispatcherTest.cc
  1895. * test/DownloadHandlerFactoryTest.cc
  1896. * test/DownloadHelperTest.cc
  1897. * test/FeedbackURISelectorTest.cc
  1898. * test/FileEntryTest.cc
  1899. * test/InOrderURISelectorTest.cc
  1900. * test/Metalink2RequestGroupTest.cc
  1901. * test/MetalinkPostDownloadHandlerTest.cc
  1902. * test/RequestGroupManTest.cc
  1903. * test/RequestGroupTest.cc
  1904. * test/XmlRpcMethodTest.cc
  1905. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1906. Removed MockBtContext.h
  1907. * test/Makefile.am
  1908. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1909. Removed _currentRequest from StreamCheckIntegrityEntry and
  1910. StreamFileAllocationEntry.
  1911. * src/AbstractCommand.cc
  1912. * src/HttpResponseCommand.cc
  1913. * src/RequestGroup.cc
  1914. * src/StreamCheckIntegrityEntry.cc
  1915. * src/StreamCheckIntegrityEntry.h
  1916. * src/StreamFileAllocationEntry.cc
  1917. * src/StreamFileAllocationEntry.h
  1918. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1919. Rewritten DownloadContext and removed SingleFileDownloadContext
  1920. and BtContext and its derived classes. BitTorrent specific
  1921. attributes are now set by DownloadContext::setAttribute() with key
  1922. bittorrent::BITTORRENT.
  1923. * src/AbstractBtMessage.cc
  1924. * src/AbstractBtMessage.h
  1925. * src/AbstractCommand.cc
  1926. * src/AbstractCommand.h
  1927. * src/AbstractProxyRequestCommand.cc
  1928. * src/AbstractProxyResponseCommand.cc
  1929. * src/ActivePeerConnectionCommand.cc
  1930. * src/ActivePeerConnectionCommand.h
  1931. * src/AnnounceList.cc
  1932. * src/BtCheckIntegrityEntry.cc
  1933. * src/BtConstants.h
  1934. * src/BtContext.h: Removed
  1935. * src/BtDependency.cc
  1936. * src/BtExtendedMessage.cc
  1937. * src/BtPieceMessage.cc
  1938. * src/BtPieceMessage.h
  1939. * src/BtPostDownloadHandler.cc
  1940. * src/BtRegistry.cc
  1941. * src/BtRegistry.h
  1942. * src/BtSetup.cc
  1943. * src/CheckIntegrityCommand.cc
  1944. * src/CheckIntegrityEntry.cc
  1945. * src/ChecksumCheckIntegrityEntry.cc
  1946. * src/ConsoleStatCalc.cc
  1947. * src/ContentTypeRequestGroupCriteria.cc
  1948. * src/DHTGetPeersCommand.cc
  1949. * src/DHTGetPeersCommand.h
  1950. * src/DHTPeerLookupTask.cc
  1951. * src/DHTPeerLookupTask.h
  1952. * src/DHTTaskFactory.h
  1953. * src/DHTTaskFactoryImpl.cc
  1954. * src/DHTTaskFactoryImpl.h
  1955. * src/DefaultBtAnnounce.cc
  1956. * src/DefaultBtAnnounce.h
  1957. * src/DefaultBtContext.cc: Removed
  1958. * src/DefaultBtContext.h: Removed
  1959. * src/DefaultBtInteractive.cc
  1960. * src/DefaultBtInteractive.h
  1961. * src/DefaultBtMessageDispatcher.cc
  1962. * src/DefaultBtMessageDispatcher.h
  1963. * src/DefaultBtMessageFactory.cc
  1964. * src/DefaultBtMessageFactory.h
  1965. * src/DefaultBtMessageReceiver.cc
  1966. * src/DefaultBtMessageReceiver.h
  1967. * src/DefaultBtProgressInfoFile.cc
  1968. * src/DefaultBtRequestFactory.cc
  1969. * src/DefaultBtRequestFactory.h
  1970. * src/DefaultExtensionMessageFactory.cc
  1971. * src/DefaultExtensionMessageFactory.h
  1972. * src/DefaultPeerStorage.cc
  1973. * src/DefaultPeerStorage.h
  1974. * src/DefaultPieceStorage.cc
  1975. * src/DefaultSegmentManFactory.cc
  1976. * src/DiskAdaptor.cc
  1977. * src/DiskAdaptor.h
  1978. * src/DownloadContext.cc
  1979. * src/DownloadContext.h
  1980. * src/DownloadEngine.cc
  1981. * src/DownloadEngineFactory.cc
  1982. * src/DownloadHandler.cc
  1983. * src/DownloadResult.h
  1984. * src/FileAllocationCommand.cc
  1985. * src/FileAllocationDispatcherCommand.cc
  1986. * src/FileAllocationEntry.cc
  1987. * src/FileEntry.h
  1988. * src/FillRequestGroupCommand.cc
  1989. * src/FtpDownloadCommand.cc
  1990. * src/FtpFinishDownloadCommand.cc
  1991. * src/FtpInitiateConnectionCommand.cc
  1992. * src/FtpNegotiationCommand.cc
  1993. * src/FtpTunnelRequestCommand.cc
  1994. * src/FtpTunnelResponseCommand.cc
  1995. * src/HandshakeExtensionMessage.cc
  1996. * src/HandshakeExtensionMessage.h
  1997. * src/HaveEraseCommand.cc
  1998. * src/HttpDownloadCommand.cc
  1999. * src/HttpInitiateConnectionCommand.cc
  2000. * src/HttpProxyRequestCommand.cc
  2001. * src/HttpProxyResponseCommand.cc
  2002. * src/HttpRequest.cc
  2003. * src/HttpRequest.h
  2004. * src/HttpRequestCommand.cc
  2005. * src/HttpResponseCommand.cc
  2006. * src/HttpServerBodyCommand.cc
  2007. * src/HttpServerCommand.cc
  2008. * src/HttpSkipResponseCommand.cc
  2009. * src/InitiateConnectionCommandFactory.cc
  2010. * src/InitiatorMSEHandshakeCommand.cc
  2011. * src/InitiatorMSEHandshakeCommand.h
  2012. * src/IteratableChecksumValidator.cc
  2013. * src/IteratableChecksumValidator.h
  2014. * src/IteratableChunkChecksumValidator.cc
  2015. * src/MSEHandshake.cc
  2016. * src/MSEHandshake.h
  2017. * src/Makefile.am
  2018. * src/Makefile.in
  2019. * src/Metalink2RequestGroup.cc
  2020. * src/MetalinkPostDownloadHandler.cc
  2021. * src/MultiDiskAdaptor.cc
  2022. * src/MultiDiskAdaptor.h
  2023. * src/MultiFileAllocationIterator.cc
  2024. * src/MultiUrlRequestInfo.cc
  2025. * src/PeerChokeCommand.cc
  2026. * src/PeerChokeCommand.h
  2027. * src/PeerInitiateConnectionCommand.cc
  2028. * src/PeerInitiateConnectionCommand.h
  2029. * src/PeerInteractionCommand.cc
  2030. * src/PeerInteractionCommand.h
  2031. * src/PeerReceiveHandshakeCommand.cc
  2032. * src/PieceHashCheckIntegrityEntry.cc
  2033. * src/RealtimeCommand.cc
  2034. * src/ReceiverMSEHandshakeCommand.cc
  2035. * src/RequestGroup.cc
  2036. * src/RequestGroup.h
  2037. * src/RequestGroupEntry.cc
  2038. * src/RequestGroupMan.cc
  2039. * src/SeedCheckCommand.cc
  2040. * src/SeedCheckCommand.h
  2041. * src/SegmentMan.cc
  2042. * src/ShareRatioSeedCriteria.h
  2043. * src/SingleFileDownloadContext.cc: Removed
  2044. * src/SingleFileDownloadContext.h: Removed
  2045. * src/SleepCommand.cc
  2046. * src/StreamCheckIntegrityEntry.cc
  2047. * src/TrackerWatcherCommand.cc
  2048. * src/TrackerWatcherCommand.h
  2049. * src/UnknownLengthPieceStorage.cc
  2050. * src/Util.cc
  2051. * src/Util.h
  2052. * src/XmlRpcMethodImpl.cc
  2053. * src/bittorrent_helper.cc
  2054. * src/bittorrent_helper.h
  2055. * src/download_helper.cc
  2056. * src/main.cc
  2057. * src/option_processing.cc
  2058. * test/BitfieldManTest.cc
  2059. * test/BittorrentHelperTest.cc
  2060. * test/BtCancelMessageTest.cc
  2061. * test/BtChokeMessageTest.cc
  2062. * test/BtDependencyTest.cc
  2063. * test/BtPieceMessageTest.cc
  2064. * test/BtPostDownloadHandlerTest.cc
  2065. * test/BtRegistryTest.cc
  2066. * test/BtRejectMessageTest.cc
  2067. * test/BtRequestMessageTest.cc
  2068. * test/DHTPeerAnnounceStorageTest.cc
  2069. * test/DefaultBtAnnounceTest.cc
  2070. * test/DefaultBtContextTest.cc: Removed
  2071. * test/DefaultBtMessageDispatcherTest.cc
  2072. * test/DefaultBtMessageFactoryTest.cc
  2073. * test/DefaultBtProgressInfoFileTest.cc
  2074. * test/DefaultBtRequestFactoryTest.cc
  2075. * test/DefaultExtensionMessageFactoryTest.cc
  2076. * test/DefaultPeerStorageTest.cc
  2077. * test/DefaultPieceStorageTest.cc
  2078. * test/DirectDiskAdaptorTest.cc
  2079. * test/DownloadContextTest.cc
  2080. * test/DownloadHandlerFactoryTest.cc
  2081. * test/DownloadHelperTest.cc
  2082. * test/HandshakeExtensionMessageTest.cc
  2083. * test/HttpRequestTest.cc
  2084. * test/HttpResponseTest.cc
  2085. * test/IteratableChecksumValidatorTest.cc
  2086. * test/IteratableChunkChecksumValidatorTest.cc
  2087. * test/MSEHandshakeTest.cc
  2088. * test/Makefile.am
  2089. * test/Makefile.in
  2090. * test/Metalink2RequestGroupTest.cc
  2091. * test/MetalinkPostDownloadHandlerTest.cc
  2092. * test/MockBtContext.h: Removed
  2093. * test/MockDHTTaskFactory.h
  2094. * test/MockDownloadContext.h: Removed
  2095. * test/MockPieceStorage.h
  2096. * test/MultiDiskAdaptorTest.cc
  2097. * test/MultiFileAllocationIteratorTest.cc
  2098. * test/RequestGroupManTest.cc
  2099. * test/RequestGroupTest.cc
  2100. * test/SegmentManTest.cc
  2101. * test/ShareRatioSeedCriteriaTest.cc
  2102. * test/SingleFileDownloadContextTest.cc: Removed
  2103. * test/UtilTest.cc
  2104. * test/XmlRpcMethodTest.cc
  2105. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2106. Added experimental support of WEB-Seeding for multi-file torrent.
  2107. Due to fundamental changes in file handling in HTTP/FTP code, many
  2108. functions are not working: PeerStat, ServerHost, proxy..etc
  2109. * src/AbstractCommand.cc
  2110. * src/AbstractCommand.h
  2111. * src/BitfieldMan.cc
  2112. * src/BitfieldMan.h
  2113. * src/CreateRequestCommand.cc
  2114. * src/CreateRequestCommand.h
  2115. * src/DefaultPieceStorage.cc
  2116. * src/DefaultPieceStorage.h
  2117. * src/DownloadCommand.cc
  2118. * src/DownloadCommand.h
  2119. * src/DownloadContext.cc
  2120. * src/DownloadContext.h
  2121. * src/FileEntry.cc
  2122. * src/FileEntry.h
  2123. * src/FtpDownloadCommand.cc
  2124. * src/FtpDownloadCommand.h
  2125. * src/FtpFinishDownloadCommand.cc
  2126. * src/FtpFinishDownloadCommand.h
  2127. * src/FtpInitiateConnectionCommand.cc
  2128. * src/FtpInitiateConnectionCommand.h
  2129. * src/FtpNegotiationCommand.cc
  2130. * src/FtpNegotiationCommand.h
  2131. * src/FtpTunnelResponseCommand.cc
  2132. * src/HttpDownloadCommand.cc
  2133. * src/HttpDownloadCommand.h
  2134. * src/HttpInitiateConnectionCommand.cc
  2135. * src/HttpInitiateConnectionCommand.h
  2136. * src/HttpProxyResponseCommand.cc
  2137. * src/HttpRequest.cc
  2138. * src/HttpRequest.h
  2139. * src/HttpRequestCommand.cc
  2140. * src/HttpRequestCommand.h
  2141. * src/HttpResponseCommand.cc
  2142. * src/HttpResponseCommand.h
  2143. * src/HttpSkipResponseCommand.cc
  2144. * src/HttpSkipResponseCommand.h
  2145. * src/InitiateConnectionCommand.cc
  2146. * src/InitiateConnectionCommand.h
  2147. * src/InitiateConnectionCommandFactory.cc
  2148. * src/InitiateConnectionCommandFactory.h
  2149. * src/Makefile.am
  2150. * src/PieceStorage.h
  2151. * src/RequestGroup.cc
  2152. * src/RequestGroup.h
  2153. * src/RequestGroupMan.cc
  2154. * src/SegmentMan.cc
  2155. * src/SegmentMan.h
  2156. * src/SingleFileDownloadContext.h
  2157. * src/StreamFileAllocationEntry.cc
  2158. * src/TrackerWatcherCommand.cc
  2159. * src/UnknownLengthPieceStorage.cc
  2160. * src/UnknownLengthPieceStorage.h
  2161. * src/array_fun.h
  2162. * src/bitfield.h
  2163. * src/download_helper.cc
  2164. * test/DownloadContextTest.cc
  2165. * test/Makefile.am
  2166. * test/MockDownloadContext.h
  2167. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2168. Added tellWaiting XML-RPC method.
  2169. * src/SingleFileDownloadContext.cc
  2170. * src/XmlRpcMethodFactory.cc
  2171. * src/XmlRpcMethodImpl.cc
  2172. * src/XmlRpcMethodImpl.h
  2173. * test/XmlRpcMethodTest.cc
  2174. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Updated CookieStorageTest
  2176. * test/CookieStorageTest.cc
  2177. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2179. handle excepion inside these functions.
  2180. * src/LibgnutlsTLSContext.cc
  2181. * src/LibgnutlsTLSContext.h
  2182. * src/LibsslTLSContext.cc
  2183. * src/LibsslTLSContext.h
  2184. * src/MultiUrlRequestInfo.cc
  2185. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2186. Added comment
  2187. * src/RequestGroup.cc
  2188. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. In CookieStorage::load() and saveNsFormat(), handle exception
  2190. inside the functions. When saving Cookies, first write temporary
  2191. file and after successful writes, then renames it to final
  2192. destination.
  2193. * src/CookieStorage.cc
  2194. * src/CookieStorage.h
  2195. * src/MultiUrlRequestInfo.cc
  2196. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. The default value of --dir option is the absolute path to the
  2198. current directory. If getcwd() is failed, then it is ".", which is
  2199. the same value with old implementation. This change is necessary
  2200. because after daemon() call, the current working directory is
  2201. changed to /.
  2202. * src/File.cc
  2203. * src/File.h
  2204. * src/OptionHandlerFactory.cc
  2205. * src/option_processing.cc
  2206. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2207. Call daemon() with arguments(0,0), which means daemon() changes
  2208. current working directory to / and redirects stdin, stdout and
  2209. stderr to /dev/null.
  2210. * src/option_processing.cc
  2211. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Small performance optimizations.
  2213. * src/RequestGroupMan.cc
  2214. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2216. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2217. * src/RequestGroupMan.cc
  2218. * src/RequestGroupMan.h
  2219. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2221. setNoWiat(true) if newly created command calls
  2222. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2223. * src/HttpListenCommand.cc
  2224. * src/HttpServerBodyCommand.cc
  2225. * src/HttpServerCommand.cc
  2226. * src/HttpServerResponseCommand.cc
  2227. * src/InitiateConnectionCommand.cc
  2228. * src/RequestGroup.cc
  2229. * src/StreamFileAllocationEntry.cc
  2230. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. Removed include vector
  2232. * src/BtRegistry.h
  2233. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2234. Rewritten BtRegistry
  2235. * src/BtRegistry.cc
  2236. * src/BtRegistry.h
  2237. * src/BtSetup.cc
  2238. * src/ConsoleStatCalc.cc
  2239. * src/PeerInteractionCommand.cc
  2240. * src/PeerReceiveHandshakeCommand.cc
  2241. * src/ReceiverMSEHandshakeCommand.cc
  2242. * src/RequestGroup.cc
  2243. * src/XmlRpcMethodImpl.cc
  2244. * test/BtRegistryTest.cc
  2245. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2246. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2247. * src/DefaultBtProgressInfoFile.cc
  2248. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2249. Throw an exception if position is less than 0.
  2250. * src/XmlRpcMethodImpl.cc
  2251. * test/XmlRpcMethodTest.cc
  2252. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2253. Use writeFilePath() in ConsoleStatCalc.cc
  2254. * src/ConsoleStatCalc.cc
  2255. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2256. Receive the return value as const reference from
  2257. DownloadContext::getFileEntries().
  2258. * src/DefaultPieceStorage.cc
  2259. * src/RequestGroupMan.cc
  2260. * src/XmlRpcMethodImpl.cc
  2261. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. DownloadContext now has _fileEntries so that
  2263. DownloadContext::getFileEntries() can returns its const reference.
  2264. * src/DefaultBtContext.cc
  2265. * src/DefaultBtContext.h
  2266. * src/DownloadContext.cc
  2267. * src/DownloadContext.h
  2268. * src/SingleFileDownloadContext.cc
  2269. * src/SingleFileDownloadContext.h
  2270. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2272. writeFilePath() function template from RequestGroupMan.cc to
  2273. FileEntry.h
  2274. * src/FileEntry.h
  2275. * src/RequestGroupMan.cc
  2276. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Documented 'position' parameter is starting from 0 in man page.
  2278. * doc/aria2c.1.txt
  2279. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Updated doc.
  2281. * src/MSEHandshake.cc
  2282. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Removed _acceptFeatures and its accessor functions from
  2284. RequestGroup since they are not used practically.
  2285. * src/HttpRequestCommand.cc
  2286. * src/RequestGroup.cc
  2287. * src/RequestGroup.h
  2288. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Removed member _maxTries from RequestGroup class to avoid
  2290. duplicate option value. Those classes who refer this variable
  2291. should use option value of PREF_MAX_TRIES directly.
  2292. * src/AbstractCommand.cc
  2293. * src/RequestGroup.cc
  2294. * src/RequestGroup.h
  2295. * src/TrackerWatcherCommand.cc
  2296. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. * Release 1.4.1
  2298. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. Fixed compiler warnings on netbsd
  2300. * src/DHTConnectionImpl.cc
  2301. * src/PeerListenCommand.cc
  2302. * src/PeerSessionResource.cc
  2303. * src/SegmentMan.cc
  2304. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Updated Ukrainian translation. Thanks to all translators.
  2306. * po/uk.po
  2307. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Bump up version number to 1.4.1.
  2309. * configure.ac
  2310. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2311. Added unit tests for strjoin, strconcat and strappend.
  2312. * test/a2functionalTest.cc
  2313. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2314. Rewritten strconcat and strappend using operator+ instead of
  2315. append().
  2316. * src/a2functional.h
  2317. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2318. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2319. is enabled.
  2320. * src/Makefile.am
  2321. * test/Makefile.am
  2322. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2323. Added countSeeder() function which counts seeder in the given
  2324. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2325. * src/ConsoleStatCalc.cc
  2326. * src/Peer.h
  2327. * src/XmlRpcMethodImpl.cc
  2328. * test/PeerTest.cc
  2329. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. Documented missing seeder in getPeers xml-rpc method.
  2331. Documented uploadLength and numSeeders.
  2332. * doc/aria2c.1.txt
  2333. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Added uploadLength and numSeeders to the response of tellStatus
  2335. xml-rpc method. Assert that PeerStorage instance is not null
  2336. instead of checking if statement. It should be non-null in this
  2337. context.
  2338. * src/XmlRpcMethodImpl.cc
  2339. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2341. * src/XmlRpcResponse.cc
  2342. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Avoid intermediate object during string concatenation.
  2344. * src/HttpRequest.cc
  2345. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Added strjoin function template. Use it in pathJoin()
  2347. * src/Util.h
  2348. * src/a2functional.h
  2349. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Avoid intermediate object during string concatenation. Replaced
  2351. post-increment unary operator with pre-increment one in for loop.
  2352. * src/AdaptiveURISelector.cc
  2353. * src/AnnounceList.cc
  2354. * src/AuthConfig.h
  2355. * src/BtBitfieldMessage.cc
  2356. * src/BtExtendedMessage.cc
  2357. * src/BtHandshakeMessage.cc
  2358. * src/BtPieceMessage.cc
  2359. * src/BtPortMessage.cc
  2360. * src/Cookie.cc
  2361. * src/DHTAnnouncePeerMessage.cc
  2362. * src/DHTAutoSaveCommand.cc
  2363. * src/DHTGetPeersReplyMessage.cc
  2364. * src/DHTNode.cc
  2365. * src/DHTQueryMessage.cc
  2366. * src/DHTResponseMessage.cc
  2367. * src/DHTUnknownMessage.cc
  2368. * src/DefaultBtAnnounce.cc
  2369. * src/DefaultBtContext.cc
  2370. * src/DefaultBtInteractive.cc
  2371. * src/DefaultBtProgressInfoFile.cc
  2372. * src/DefaultPeerStorage.cc
  2373. * src/DownloadEngine.cc
  2374. * src/FeatureConfig.cc
  2375. * src/File.cc
  2376. * src/FtpConnection.cc
  2377. * src/FtpNegotiationCommand.cc
  2378. * src/HandshakeExtensionMessage.cc
  2379. * src/HttpConnection.cc
  2380. * src/HttpRequest.cc
  2381. * src/HttpResponseCommand.cc
  2382. * src/HttpServer.cc
  2383. * src/IndexBtMessage.cc
  2384. * src/Metalink2RequestGroup.cc
  2385. * src/OptionHandlerImpl.h
  2386. * src/PStringBuildVisitor.cc
  2387. * src/Peer.cc
  2388. * src/PeerListenCommand.cc
  2389. * src/Piece.cc
  2390. * src/RangeBtMessage.cc
  2391. * src/Request.cc
  2392. * src/Request.h
  2393. * src/RequestGroup.cc
  2394. * src/RequestGroupMan.cc
  2395. * src/ServerStat.cc
  2396. * src/ServerStatMan.cc
  2397. * src/UTPexExtensionMessage.cc
  2398. * src/Util.cc
  2399. * src/a2functional.h
  2400. * src/download_helper.cc
  2401. * src/messageDigest.cc
  2402. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2403. Unchoke a peer randomly at first and second choke round in seed
  2404. state.
  2405. * src/BtSeederStateChoke.cc
  2406. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2407. Added (sock_t) to quiet compiler warnings in MinGW
  2408. * src/SocketCore.cc
  2409. * src/SocketCore.h
  2410. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2412. * src/EpollEventPoll.h
  2413. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2414. Added fork() emulation using CreateProcess() in MinGW
  2415. * src/RequestGroupMan.cc
  2416. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2417. * Release 1.4.0
  2418. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Added utf8.torrent to EXTRA_DIST
  2420. * test/Makefile.am
  2421. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2422. Fixed docs of aria2.addMetalink xml-rpc method.
  2423. * doc/aria2c.1.txt
  2424. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Added Slovak translation. Updated Ukrainian and Brazilian
  2426. Portuguese translation. Thanks to all translators.
  2427. * po/sk.po
  2428. * po/uk.po
  2429. * po/pt_BR.po
  2430. * po/LINGUAS
  2431. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Added test case for XmlRpcProcessor to fail to parse malformed
  2433. document.
  2434. * test/XmlRpcRequestProcessorTest.cc
  2435. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Removed *.gmo files in po because they are generated on 'make
  2437. dist'
  2438. * po/*.gmo
  2439. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2440. Documented max-concurrent-downloads of changeGlobalOption method
  2441. in man page.
  2442. * doc/aria2c.1.txt
  2443. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Added max-concurrent-downloads option to changeGlobalOption
  2445. xml-rpc method. Rewritten loop conditional in
  2446. RequestGroupMan::fillRequestGroupFromReserver().
  2447. * src/RequestGroupMan.cc
  2448. * src/RequestGroupMan.h
  2449. * src/XmlRpcMethod.cc
  2450. * src/XmlRpcMethodImpl.cc
  2451. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Documented position parameter in man page.
  2453. * doc/aria2c.1.txt
  2454. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Added 'position' parameter to addUri, addTorrent and addMetalink
  2456. xml-rpc method.
  2457. * src/RequestGroupMan.cc
  2458. * src/RequestGroupMan.h
  2459. * src/XmlRpcMethodImpl.cc
  2460. * test/XmlRpcMethodTest.cc
  2461. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2462. Removed Peer.cc from compile source list when --disable-bittorrent
  2463. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2464. takes Peer.
  2465. * src/DefaultPieceStorage.cc
  2466. * src/DefaultPieceStorage.h
  2467. * src/Makefile.am
  2468. * src/PieceStorage.h
  2469. * src/UnknownLengthPieceStorage.cc
  2470. * src/UnknownLengthPieceStorage.h
  2471. * test/MockPieceStorage.h
  2472. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Implemented getter methods in header files to give them more
  2474. chance of optimization.
  2475. Return const reference for SharadHandle if possible.
  2476. * src/AbstractAuthResolver.cc
  2477. * src/AbstractAuthResolver.h
  2478. * src/AbstractBtMessage.cc
  2479. * src/AbstractBtMessage.h
  2480. * src/AbstractSingleDiskAdaptor.cc
  2481. * src/AbstractSingleDiskAdaptor.h
  2482. * src/AsyncNameResolver.cc
  2483. * src/AsyncNameResolver.h
  2484. * src/BNode.cc
  2485. * src/BNode.h
  2486. * src/BitfieldMan.cc
  2487. * src/BitfieldMan.h
  2488. * src/BtAbortOutstandingRequestEvent.h
  2489. * src/BtExtendedMessage.cc
  2490. * src/BtExtendedMessage.h
  2491. * src/BtSeederStateChoke.cc
  2492. * src/BtSeederStateChoke.h
  2493. * src/Cookie.cc
  2494. * src/Cookie.h
  2495. * src/DHTBucket.cc
  2496. * src/DHTBucket.h
  2497. * src/DHTConnectionImpl.cc
  2498. * src/DHTConnectionImpl.h
  2499. * src/DHTFindNodeReplyMessage.cc
  2500. * src/DHTFindNodeReplyMessage.h
  2501. * src/DHTGetPeersReplyMessage.cc
  2502. * src/DHTGetPeersReplyMessage.h
  2503. * src/DHTInteractionCommand.cc
  2504. * src/DHTMessage.cc
  2505. * src/DHTMessage.h
  2506. * src/DHTMessageDispatcherImpl.cc
  2507. * src/DHTMessageEntry.cc
  2508. * src/DHTMessageReceiver.cc
  2509. * src/DHTMessageReceiver.h
  2510. * src/DHTMessageTrackerEntry.cc
  2511. * src/DHTMessageTrackerEntry.h
  2512. * src/DHTPeerAnnounceEntry.cc
  2513. * src/DHTPeerAnnounceEntry.h
  2514. * src/DHTPeerLookupTask.cc
  2515. * src/DHTPeerLookupTask.h
  2516. * src/DHTRoutingTableDeserializer.cc
  2517. * src/DHTRoutingTableDeserializer.h
  2518. * src/DefaultBtAnnounce.cc
  2519. * src/DefaultBtAnnounce.h
  2520. * src/DefaultBtMessageDispatcher.cc
  2521. * src/DefaultBtMessageDispatcher.h
  2522. * src/DefaultBtRequestFactory.cc
  2523. * src/DefaultBtRequestFactory.h
  2524. * src/DiskAdaptor.cc
  2525. * src/DiskAdaptor.h
  2526. * src/DownloadContext.cc
  2527. * src/DownloadContext.h
  2528. * src/DownloadEngine.cc
  2529. * src/DownloadEngine.h
  2530. * src/EpollEventPoll.cc
  2531. * src/EpollEventPoll.h
  2532. * src/FtpConnection.cc
  2533. * src/FtpConnection.h
  2534. * src/HttpConnection.cc
  2535. * src/HttpConnection.h
  2536. * src/HttpHeader.cc
  2537. * src/HttpHeader.h
  2538. * src/HttpRequest.cc
  2539. * src/HttpRequest.h
  2540. * src/HttpResponse.cc
  2541. * src/HttpResponse.h
  2542. * src/LibsslTLSContext.cc
  2543. * src/LibsslTLSContext.h
  2544. * src/MSEHandshake.cc
  2545. * src/MSEHandshake.h
  2546. * src/MetalinkEntry.cc
  2547. * src/MetalinkEntry.h
  2548. * src/MetalinkParserController.cc
  2549. * src/MetalinkParserController.h
  2550. * src/MetalinkParserStateMachine.cc
  2551. * src/MetalinkParserStateMachine.h
  2552. * src/MultiDiskAdaptor.cc
  2553. * src/MultiDiskAdaptor.h
  2554. * src/NetrcAuthResolver.cc
  2555. * src/NetrcAuthResolver.h
  2556. * src/Peer.cc
  2557. * src/Peer.h
  2558. * src/PeerSessionResource.cc
  2559. * src/PeerSessionResource.h
  2560. * src/Piece.cc
  2561. * src/Piece.h
  2562. * src/PieceStatMan.cc
  2563. * src/PieceStatMan.h
  2564. * src/Request.cc
  2565. * src/Request.h
  2566. * src/RequestGroup.cc
  2567. * src/RequestGroup.h
  2568. * src/RequestGroupMan.cc
  2569. * src/RequestGroupMan.h
  2570. * src/RequestSlot.cc
  2571. * src/RequestSlot.h
  2572. * src/SegmentMan.cc
  2573. * src/SegmentMan.h
  2574. * src/SelectEventPoll.cc
  2575. * src/SelectEventPoll.h
  2576. * src/ServerStat.cc
  2577. * src/ServerStat.h
  2578. * src/Signature.cc
  2579. * src/Signature.h
  2580. * src/URIResult.cc
  2581. * src/URIResult.h
  2582. * src/UTPexExtensionMessage.cc
  2583. * src/UTPexExtensionMessage.h
  2584. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2585. Fixed compile error without BitTorrent and Metalink support.
  2586. * src/XmlRpcMethod.cc
  2587. * src/XmlRpcMethodFactory.cc
  2588. * src/XmlRpcMethodImpl.cc
  2589. * src/XmlRpcMethodImpl.h
  2590. * test/XmlRpcMethodTest.cc
  2591. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Rewritten the help message for --allow-overwrite option.
  2593. * doc/aria2c.1.txt
  2594. * src/usage_text.h
  2595. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. Fixed typo
  2597. * doc/aria2c.1.txt
  2598. * src/usage_text.h
  2599. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Updated README for 1.4.0 release. Use new table syntax of
  2601. asciidoc.
  2602. * README
  2603. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2604. Documented --xml-rpc-max-request-size option in man page.
  2605. * doc/aria2c.1.txt
  2606. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2607. Moved C_* constants from BtContext to DefaultBtContext.
  2608. * src/BtContext.cc: Removed.
  2609. * src/BtContext.h
  2610. * src/DefaultBtContext.cc
  2611. * src/DefaultBtContext.h
  2612. * src/Makefile.am
  2613. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2614. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2615. path key respectively when persing .torrent file.
  2616. * src/BtContext.cc
  2617. * src/BtContext.h
  2618. * src/DefaultBtContext.cc
  2619. * test/DefaultBtContextTest.cc
  2620. * test/utf8.torrent
  2621. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2622. Added --xml-rpc-max-request-size option to limit the size of
  2623. XML-RPC request.
  2624. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Documented XML-RPC API in man page.
  2626. * doc/aria2c.1.txt
  2627. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2629. will break strict-aliasing rules
  2630. * src/PeerConnection.cc
  2631. * test/DHTRoutingTableSerializerTest.cc
  2632. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2634. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2635. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2636. PKG_CHECK_MODULES macro uses latter name.
  2637. * m4/sqlite3.m4
  2638. * src/Makefile.am
  2639. * test/Makefile.am
  2640. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. Fixed typo
  2642. * configure.ac
  2643. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2644. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2645. presence of libgnutls using pkg-config first. If it fails, fall
  2646. back to old macro libgnutls.m4.
  2647. * configure.ac
  2648. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. Use s itself instead of !s.bad()
  2650. * src/CookieStorage.cc
  2651. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. Documented --on-download-* option and --save-cookies option in man
  2653. page.
  2654. * doc/aria2c.1.txt
  2655. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2656. Set possible values for --load-cookie option to "/path/to/file".
  2657. * src/OptionHandlerFactory.cc
  2658. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Added --save-cookies option.
  2660. * src/Cookie.cc
  2661. * src/Cookie.h
  2662. * src/CookieStorage.cc
  2663. * src/CookieStorage.h
  2664. * src/MultiUrlRequestInfo.cc
  2665. * src/OptionHandlerFactory.cc
  2666. * src/prefs.cc
  2667. * src/prefs.h
  2668. * src/usage_text.h
  2669. * test/CookieStorageTest.cc
  2670. * test/CookieTest.cc
  2671. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2672. Removed tellAll XML-RPC command because its reponse tends to be
  2673. big if stopped/waiting downloads pile up.
  2674. * src/XmlRpcMethodFactory.cc
  2675. * src/XmlRpcMethodImpl.cc
  2676. * src/XmlRpcMethodImpl.h
  2677. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2678. Added the ability to execute command when download starts and
  2679. stops. You can also specify command for particular cases such as
  2680. complete/error download. Added --on-download-start,
  2681. --on-download-stop, --on-download-complete and --on-download-error
  2682. option.
  2683. * src/OptionHandlerFactory.cc
  2684. * src/RequestGroupMan.cc
  2685. * src/prefs.cc
  2686. * src/prefs.h
  2687. * src/usage_text.h
  2688. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. Fixed test error
  2690. * test/BencodeTest.cc
  2691. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Added unit tests.
  2693. * test/XmlRpcMethodTest.cc
  2694. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2695. Made exception message more verbose.
  2696. * src/bencode.cc
  2697. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2699. space in console readout. Also they are now shown in MiB/s if
  2700. speed > 1024KiB/s.
  2701. * src/ConsoleStatCalc.cc
  2702. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Added SEED to console output, which represents the number of
  2704. seeders currently the client is connecting to.
  2705. * src/ConsoleStatCalc.cc
  2706. * src/ConsoleStatCalc.h
  2707. * src/DownloadEngine.cc
  2708. * src/NullStatCalc.h
  2709. * src/StatCalc.h
  2710. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2711. Added source filename(__FILE__) and line number(__LINE__) to
  2712. exception message.
  2713. * src/AbstractCommand.cc
  2714. * src/AbstractDiskWriter.cc
  2715. * src/AbstractProxyResponseCommand.cc
  2716. * src/BDE.h
  2717. * src/BtAllowedFastMessage.cc
  2718. * src/BtHandshakeMessageValidator.h
  2719. * src/BtHaveAllMessage.cc
  2720. * src/BtHaveNoneMessage.cc
  2721. * src/BtPieceMessage.cc
  2722. * src/BtRejectMessage.cc
  2723. * src/ChunkedDecoder.cc
  2724. * src/CookieStorage.cc
  2725. * src/DHTAnnouncePeerMessage.cc
  2726. * src/DHTEntryPointNameResolveCommand.cc
  2727. * src/DHTMessageFactoryImpl.cc
  2728. * src/DHTMessageTracker.cc
  2729. * src/DHTRoutingTableDeserializer.cc
  2730. * src/DHTRoutingTableSerializer.cc
  2731. * src/DHTSetup.cc
  2732. * src/DHTTokenTracker.cc
  2733. * src/DefaultBtAnnounce.cc
  2734. * src/DefaultBtContext.cc
  2735. * src/DefaultBtInteractive.cc
  2736. * src/DefaultBtMessageFactory.cc
  2737. * src/DefaultBtProgressInfoFile.cc
  2738. * src/DefaultExtensionMessageFactory.cc
  2739. * src/DlAbortEx.h
  2740. * src/DlRetryEx.h
  2741. * src/DownloadCommand.cc
  2742. * src/DownloadEngineFactory.cc
  2743. * src/DownloadFailureException.h
  2744. * src/Exception.cc
  2745. * src/Exception.h
  2746. * src/ExpatMetalinkProcessor.cc
  2747. * src/ExpatXmlRpcRequestProcessor.cc
  2748. * src/FallocFileAllocationIterator.cc
  2749. * src/FatalException.h
  2750. * src/FtpConnection.cc
  2751. * src/FtpFinishDownloadCommand.cc
  2752. * src/FtpInitiateConnectionCommand.cc
  2753. * src/FtpNegotiationCommand.cc
  2754. * src/GZipDecoder.cc
  2755. * src/HandshakeExtensionMessage.cc
  2756. * src/HttpConnection.cc
  2757. * src/HttpHeaderProcessor.cc
  2758. * src/HttpInitiateConnectionCommand.cc
  2759. * src/HttpResponse.cc
  2760. * src/HttpResponseCommand.cc
  2761. * src/HttpServer.cc
  2762. * src/HttpSkipResponseCommand.cc
  2763. * src/InitiateConnectionCommandFactory.cc
  2764. * src/IteratableChunkChecksumValidator.cc
  2765. * src/LibgcryptARC4Context.h
  2766. * src/LibgcryptARC4Decryptor.h
  2767. * src/LibgcryptARC4Encryptor.h
  2768. * src/LibgcryptDHKeyExchange.h
  2769. * src/LibgnutlsTLSContext.cc
  2770. * src/LibsslARC4Context.h
  2771. * src/LibsslARC4Decryptor.h
  2772. * src/LibsslARC4Encryptor.h
  2773. * src/LibsslDHKeyExchange.h
  2774. * src/LibsslTLSContext.cc
  2775. * src/MSEHandshake.cc
  2776. * src/MessageDigestHelper.cc
  2777. * src/MetalinkHelper.cc
  2778. * src/MultiDiskAdaptor.cc
  2779. * src/NameMatchOptionHandler.h
  2780. * src/NameResolver.cc
  2781. * src/Netrc.cc
  2782. * src/NsCookieParser.cc
  2783. * src/OptionHandlerException.cc
  2784. * src/OptionHandlerException.h
  2785. * src/OptionHandlerImpl.h
  2786. * src/OptionParser.cc
  2787. * src/ParameterizedStringParser.cc
  2788. * src/PeerAbstractCommand.cc
  2789. * src/PeerConnection.cc
  2790. * src/PeerMessageUtil.cc
  2791. * src/PeerReceiveHandshakeCommand.cc
  2792. * src/Platform.cc
  2793. * src/ReceiverMSEHandshakeCommand.cc
  2794. * src/RecoverableException.h
  2795. * src/RequestGroup.cc
  2796. * src/SimpleLogger.cc
  2797. * src/SocketCore.cc
  2798. * src/Sqlite3MozCookieParser.cc
  2799. * src/UTPexExtensionMessage.cc
  2800. * src/Util.cc
  2801. * src/XML2SAXMetalinkProcessor.cc
  2802. * src/Xml2XmlRpcRequestProcessor.cc
  2803. * src/XmlRpcMethodImpl.cc
  2804. * src/bencode.cc
  2805. * src/download_helper.cc
  2806. * src/messageDigest.h
  2807. * test/ExceptionTest.cc
  2808. * test/TestUtil.cc
  2809. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Bump up version number to 1.4.0
  2811. * configure.ac
  2812. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Added 2files.metalink to EXTRA_DIST
  2814. * test/Makefile.am
  2815. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Added missing 2files.metalink
  2817. * test/2files.metalink
  2818. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2819. Show "[MEMORY]" prefix before filename in download summary if it
  2820. is downloaded into memory.
  2821. * src/DownloadResult.h
  2822. * src/RequestGroup.cc
  2823. * src/RequestGroupMan.cc
  2824. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2826. * src/ExpatXmlRpcRequestProcessor.cc
  2827. * src/Xml2XmlRpcRequestProcessor.cc
  2828. * src/message.h
  2829. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2830. Defined const BDEs to avoid duplicate instantiation.
  2831. Defined MSG_GID_NOT_PROVIDED.
  2832. * src/XmlRpcMethodImpl.cc
  2833. * src/message.h
  2834. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2835. Code cleanup
  2836. * src/Xml2XmlRpcRequestProcessor.cc
  2837. * src/Xml2XmlRpcRequestProcessor.h
  2838. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Defined ENABLE_XML_RPC
  2840. * configure.ac
  2841. * configure
  2842. * config.h.in
  2843. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2844. Added ExpatXmlRpcRequestProcessor
  2845. * src/ExpatXmlRpcRequestProcessor.cc
  2846. * src/ExpatXmlRpcRequestProcessor.h
  2847. * src/Makefile.am
  2848. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2849. Added tests for addTorrent and addMetalink command.
  2850. * test/TestUtil.cc
  2851. * test/TestUtil.h
  2852. * test/XmlRpcMethodTest.cc
  2853. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. Corrected the description of --file-allocation option.
  2855. * doc/aria2c.1.txt
  2856. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Added tellAll command.
  2858. * src/XmlRpcMethodFactory.cc
  2859. * src/XmlRpcMethodImpl.cc
  2860. * src/XmlRpcMethodImpl.h
  2861. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2863. * src/XmlRpcMethodImpl.cc
  2864. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2865. Added changeGlobalOption command. Currently,
  2866. max-overall-download-limit and max-overall-upload-limit option are
  2867. available.
  2868. * src/RequestGroupMan.h
  2869. * src/XmlRpcMethod.cc
  2870. * src/XmlRpcMethod.h
  2871. * src/XmlRpcMethodFactory.cc
  2872. * src/XmlRpcMethodImpl.cc
  2873. * src/XmlRpcMethodImpl.h
  2874. * test/XmlRpcMethodTest.cc
  2875. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Added changeOption command. Currently, max-download-limit,
  2877. max-upload-limit option are available in this command.
  2878. * src/RequestGroup.h
  2879. * src/XmlRpcMethod.cc
  2880. * src/XmlRpcMethod.h
  2881. * src/XmlRpcMethodFactory.cc
  2882. * src/XmlRpcMethodImpl.cc
  2883. * src/XmlRpcMethodImpl.h
  2884. * test/XmlRpcMethodTest.cc
  2885. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Added purgeDownloadResult command.
  2887. * src/RequestGroupMan.cc
  2888. * src/RequestGroupMan.h
  2889. * src/XmlRpcMethodFactory.cc
  2890. * src/XmlRpcMethodImpl.cc
  2891. * src/XmlRpcMethodImpl.h
  2892. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2893. Refactored.
  2894. * src/XmlRpcMethod.cc
  2895. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2897. XmlRpcResponse.
  2898. * src/HttpServerBodyCommand.cc
  2899. * src/Makefile.am
  2900. * src/XmlRpcMethod.cc
  2901. * src/XmlRpcMethod.h
  2902. * src/XmlRpcMethodImpl.cc
  2903. * src/XmlRpcResponse.cc
  2904. * src/XmlRpcResponse.h
  2905. * test/XmlRpcMethodTest.cc
  2906. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2907. In XML-RPC option struct, header and index-out option can take
  2908. array as value.
  2909. * src/XmlRpcMethod.cc
  2910. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Removed unused option member from PeerConnection.
  2912. * src/InitiatorMSEHandshakeCommand.cc
  2913. * src/PeerConnection.cc
  2914. * src/PeerConnection.h
  2915. * src/PeerInteractionCommand.cc
  2916. * src/PeerReceiveHandshakeCommand.cc
  2917. * src/ReceiverMSEHandshakeCommand.cc
  2918. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2919. Added "seeder" key to getPeers response.
  2920. * src/XmlRpcMethodImpl.cc
  2921. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. Added addMetalink XML-RPC command.
  2923. * src/XmlRpcMethodFactory.cc
  2924. * src/XmlRpcMethodImpl.cc
  2925. * src/XmlRpcMethodImpl.h
  2926. * src/download_helper.cc
  2927. * src/download_helper.h
  2928. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2929. Fixed the bug that POU peers are never choked in seeding.
  2930. * src/BtSeederStateChoke.cc
  2931. * src/BtSeederStateChoke.h
  2932. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Added web-seeding URI handling in addTorrent command.
  2934. * src/XmlRpcMethodImpl.cc
  2935. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2936. Added "length" key to getFiles response.
  2937. * src/XmlRpcMethodImpl.cc
  2938. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2939. Moved --no-netrc option from ftp option section to http/ftp option
  2940. section.
  2941. * doc/aria2c.1.txt
  2942. * src/OptionHandlerFactory.cc
  2943. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2944. Removed garbage "\" character before '
  2945. * doc/aria2c.1.txt
  2946. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2947. Removed garbage "\" character before http.
  2948. * doc/aria2c.1.txt
  2949. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2950. Documented additional options that can be specified in -i list.
  2951. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2952. and --xml-rpc-passwd. Removed --enable-http-server and
  2953. --http-server-listen-port.
  2954. * doc/aria2c.1.txt
  2955. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2957. * src/DefaultPeerStorage.cc
  2958. * src/DefaultPeerStorage.h
  2959. * src/PeerStorage.h
  2960. * src/XmlRpcMethodImpl.cc
  2961. * test/MockPeerStorage.h
  2962. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2963. Put a call to Socket::isReadable() in try block.
  2964. * src/HttpServerBodyCommand.cc
  2965. * src/HttpServerCommand.cc
  2966. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2968. exception , so it is now in try block.
  2969. * src/HttpServerResponseCommand.cc
  2970. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2971. Added "amChoking" and "peerChoking" key in getPeers response.
  2972. * src/XmlRpcMethodImpl.cc
  2973. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Added test case for zero-length filter.
  2975. * test/BitfieldManTest.cc
  2976. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2977. getFiles command now returns file data for finished/stopped
  2978. downloads.
  2979. * src/XmlRpcMethodImpl.cc
  2980. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2981. DownloadResult now has the list of FileEntry. The download
  2982. summary displays the path of first selected file and the number of
  2983. remaining files for multi-file torrent.
  2984. * src/DownloadResult.h
  2985. * src/RequestGroup.cc
  2986. * src/RequestGroupMan.cc
  2987. * test/RequestGroupTest.cc
  2988. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Fixed segmentation fault error when no file is selected in
  2990. multi-file torrent.
  2991. * src/BitfieldMan.cc
  2992. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2993. Escaped <,>,& character in XML-RPC response.
  2994. * src/XmlRpcMethod.cc
  2995. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Throw DlAbortEx instead of FatalException during parsing options
  2997. because we don't want for aria2 to quit when bad option is passed
  2998. via XML-RPC.
  2999. * src/OptionHandlerException.cc
  3000. * src/OptionHandlerException.h
  3001. * src/OptionHandlerImpl.h
  3002. * src/OptionParser.cc
  3003. * src/OptionParser.h
  3004. * src/PStringSegment.cc
  3005. * src/ParameterizedStringParser.cc
  3006. * src/download_helper.cc
  3007. * test/ParameterizedStringParserTest.cc
  3008. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3009. Selecting files are now done in
  3010. DefaultBtContext::setFileFileter().
  3011. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3012. functions are removed because they are no longer used. Creating
  3013. filter in BitfieldMan is done in new funtion
  3014. PieceStorage::setupFileFilter()
  3015. * src/BtContext.cc
  3016. * src/BtContext.h
  3017. * src/DefaultBtContext.cc
  3018. * src/DefaultBtContext.h
  3019. * src/DefaultPieceStorage.cc
  3020. * src/DefaultPieceStorage.h
  3021. * src/DiskAdaptor.cc
  3022. * src/DiskAdaptor.h
  3023. * src/PieceStorage.h
  3024. * src/RequestGroup.cc
  3025. * src/UnknownLengthPieceStorage.h
  3026. * src/XmlRpcMethodImpl.cc
  3027. * test/DefaultBtContextTest.cc
  3028. * test/MockBtContext.h
  3029. * test/MockPieceStorage.h
  3030. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3031. Fixed compile error on Mac OS X
  3032. * src/HttpServer.cc
  3033. * src/XmlRpcMethod.h
  3034. * src/XmlRpcMethodImpl.cc
  3035. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3036. Use std::binary_search instead of std::find
  3037. * src/DefaultPieceStorage.cc
  3038. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3039. Removed unnecessary BDE() call; leave them to implicit conversion.
  3040. * src/XmlRpcMethodImpl.cc
  3041. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3042. Return connections and gid in string
  3043. * src/XmlRpcMethodImpl.cc
  3044. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3045. Renamed addURI as addUri
  3046. * src/XmlRpcMethodFactory.cc
  3047. * src/XmlRpcMethodImpl.cc
  3048. * src/XmlRpcMethodImpl.h
  3049. * test/XmlRpcMethodTest.cc
  3050. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3051. Renamed addTorrentFile as addTorrent
  3052. * src/XmlRpcMethodFactory.cc
  3053. * src/XmlRpcMethodImpl.cc
  3054. * src/XmlRpcMethodImpl.h
  3055. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3056. The information for files, URIs, peers are removed from the
  3057. reponse of TellaActive, TellStatus command because they tend to be
  3058. large. Instead they can be retrieved by the dedicated commands:
  3059. getFiles, getUris and getPeers respectively.
  3060. * src/XmlRpcMethodFactory.cc
  3061. * src/XmlRpcMethodImpl.cc
  3062. * src/XmlRpcMethodImpl.h
  3063. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3064. Removed --max-overall-upload-limit and
  3065. --max-overall-download-limit option from listRequestOptions.
  3066. * src/download_helper.cc
  3067. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3068. Log incoming host in HttpListenCommand.
  3069. * src/HttpListenCommand.cc
  3070. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3071. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3072. --xml-rpc-passwd option.
  3073. * src/HttpServer.cc
  3074. * src/HttpServer.h
  3075. * src/HttpServerCommand.cc
  3076. * src/OptionHandlerFactory.cc
  3077. * src/prefs.cc
  3078. * src/prefs.h
  3079. * src/usage_text.h
  3080. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3082. processing 0 length request.
  3083. * src/HttpServerBodyCommand.cc
  3084. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Removed --enable-http-server and --http-server-listen-port
  3086. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3087. instead. The original feature for --enable-http-server that
  3088. reports download progress in HTML was officially removed. Persist
  3089. XML-RPC connection if client supports keep-alive.
  3090. * src/DownloadEngineFactory.cc
  3091. * src/HttpServerCommand.cc
  3092. * src/HttpServerResponseCommand.cc
  3093. * src/Makefile.am
  3094. * src/Makefile.in
  3095. * src/OptionHandlerFactory.cc
  3096. * src/RequestGroupMan.cc
  3097. * src/main.cc
  3098. * src/option_processing.cc
  3099. * src/prefs.cc
  3100. * src/prefs.h
  3101. * src/usage_text.h
  3102. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3103. Added "uris" key to the response of tellStatus command. Added
  3104. "connections" key to the response of tellStatus and tellActive
  3105. command.
  3106. * src/XmlRpcMethodImpl.cc
  3107. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3108. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3109. Added TellStatusXmlRpcMethod. Remove command can now remove
  3110. waiting RequestGroup.
  3111. * src/RequestGroupMan.cc
  3112. * src/RequestGroupMan.h
  3113. * src/XmlRpcMethodFactory.cc
  3114. * src/XmlRpcMethodImpl.cc
  3115. * src/XmlRpcMethodImpl.h
  3116. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Initialized _peerId
  3118. * src/Peer.cc
  3119. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3120. Return fault structure for error. FailXmlRpcMethod is renamed as
  3121. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3122. in non-torrent download. Return single param value.
  3123. * src/XmlRpcMethod.cc
  3124. * src/XmlRpcMethodFactory.cc
  3125. * src/XmlRpcMethodImpl.cc
  3126. * src/XmlRpcMethodImpl.h
  3127. * test/XmlRpcMethodTest.cc
  3128. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3129. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3130. command.
  3131. * src/RequestGroup.cc
  3132. * src/RequestGroup.h
  3133. * src/RequestGroupMan.cc
  3134. * src/XmlRpcMethodImpl.cc
  3135. * test/RequestGroupTest.cc
  3136. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3137. Added more options that can be specified in -i list and xml-rpc
  3138. add* command.
  3139. * src/download_helper.h
  3140. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. The available options in -i list should be listed in
  3142. listRequestOptions().
  3143. * src/download_helper.cc
  3144. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3145. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3146. command.
  3147. * src/XmlRpcMethodImpl.cc
  3148. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Now RequestGroup has its own copy of Option object. This will help
  3150. to give custom option for each RequestGroup.
  3151. addTorrentFile command now takes options.
  3152. * src/AbstractCommand.cc
  3153. * src/AbstractCommand.h
  3154. * src/AbstractProxyRequestCommand.cc
  3155. * src/ActivePeerConnectionCommand.cc
  3156. * src/ActivePeerConnectionCommand.h
  3157. * src/AdaptiveURISelector.cc
  3158. * src/BtCheckIntegrityEntry.cc
  3159. * src/BtDependency.cc
  3160. * src/BtDependency.h
  3161. * src/BtFileAllocationEntry.cc
  3162. * src/BtPostDownloadHandler.cc
  3163. * src/CheckIntegrityEntry.cc
  3164. * src/DownloadCommand.cc
  3165. * src/FtpDownloadCommand.cc
  3166. * src/FtpFinishDownloadCommand.cc
  3167. * src/FtpInitiateConnectionCommand.cc
  3168. * src/FtpNegotiationCommand.cc
  3169. * src/HttpInitiateConnectionCommand.cc
  3170. * src/HttpRequestCommand.cc
  3171. * src/HttpResponseCommand.cc
  3172. * src/HttpSkipResponseCommand.cc
  3173. * src/InitiateConnectionCommand.cc
  3174. * src/InitiateConnectionCommandFactory.cc
  3175. * src/InitiatorMSEHandshakeCommand.cc
  3176. * src/InitiatorMSEHandshakeCommand.h
  3177. * src/Metalink2RequestGroup.cc
  3178. * src/Metalink2RequestGroup.h
  3179. * src/MetalinkPostDownloadHandler.cc
  3180. * src/MultiUrlRequestInfo.cc
  3181. * src/MultiUrlRequestInfo.h
  3182. * src/PeerAbstractCommand.cc
  3183. * src/PeerInteractionCommand.cc
  3184. * src/PeerInteractionCommand.h
  3185. * src/PeerReceiveHandshakeCommand.cc
  3186. * src/PeerReceiveHandshakeCommand.h
  3187. * src/RequestGroup.cc
  3188. * src/RequestGroup.h
  3189. * src/TrackerWatcherCommand.cc
  3190. * src/TrackerWatcherCommand.h
  3191. * src/XmlRpcMethod.cc
  3192. * src/XmlRpcMethod.h
  3193. * src/XmlRpcMethodImpl.cc
  3194. * src/download_helper.cc
  3195. * src/download_helper.h
  3196. * src/main.cc
  3197. * test/BtDependencyTest.cc
  3198. * test/BtPostDownloadHandlerTest.cc
  3199. * test/DefaultBtMessageDispatcherTest.cc
  3200. * test/DownloadHandlerFactoryTest.cc
  3201. * test/DownloadHelperTest.cc
  3202. * test/Metalink2RequestGroupTest.cc
  3203. * test/MetalinkPostDownloadHandlerTest.cc
  3204. * test/RequestGroupManTest.cc
  3205. * test/RequestGroupTest.cc
  3206. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Added tellActiveStatus xml-rpc command which reports download
  3208. status of active downloads.
  3209. * src/XmlRpcMethodFactory.cc
  3210. * src/XmlRpcMethodImpl.cc
  3211. * src/XmlRpcMethodImpl.h
  3212. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3213. Added addTorrentFile xml-rpc command which receives uploaded
  3214. torrent file and add download for it.
  3215. * src/RequestGroupMan.cc
  3216. * src/XmlRpcMethodFactory.cc
  3217. * src/XmlRpcMethodImpl.cc
  3218. * src/XmlRpcMethodImpl.h
  3219. * src/download_helper.cc
  3220. * src/download_helper.h
  3221. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3222. Added remove xml-rpc command which removes specified download.
  3223. There is a known issue: the removed unfinished downloads are
  3224. reported ERR when aria2 exits. They should be reported as INPR.
  3225. * src/RequestGroupMan.cc
  3226. * src/RequestGroupMan.h
  3227. * src/XmlRpcMethodFactory.cc
  3228. * src/XmlRpcMethodImpl.cc
  3229. * src/XmlRpcMethodImpl.h
  3230. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3231. If --enable-http-server is enabled, don't stop aria2 when all
  3232. download finished and don't quit when no files to download at
  3233. start up.
  3234. * src/RequestGroupMan.cc
  3235. * src/main.cc
  3236. * src/option_processing.cc
  3237. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3238. Added missing AM_CONDITIONAL
  3239. * configure.ac
  3240. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3241. Added xml-rpc functionality. Currently only addURI commad is
  3242. supported. To enable xml-rpc, run aria2 with
  3243. --enable-http-server. This option name is temporal and will be
  3244. changed. The feature that reports download progress in html format
  3245. is temporarily disabled.
  3246. * src/HttpServer.cc
  3247. * src/HttpServer.h
  3248. * src/HttpServerBodyCommand.cc
  3249. * src/HttpServerBodyCommand.h
  3250. * src/HttpServerCommand.cc
  3251. * src/HttpServerResponseCommand.cc
  3252. * src/Makefile.am
  3253. * src/OptionParser.cc
  3254. * src/OptionParser.h
  3255. * src/RequestGroupMan.cc
  3256. * src/RequestGroupMan.h
  3257. * src/XmlRpcMethod.cc
  3258. * src/XmlRpcMethod.h
  3259. * src/XmlRpcMethodFactory.cc
  3260. * src/XmlRpcMethodFactory.h
  3261. * src/XmlRpcMethodImpl.cc
  3262. * src/XmlRpcMethodImpl.h
  3263. * src/download_helper.cc
  3264. * src/download_helper.h
  3265. * test/Makefile.am
  3266. * test/XmlRpcMethodTest.cc
  3267. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3268. Added xml-rpc request parser. The supported value types are:
  3269. i4/int, string, double, struct, array, base64. Currently only
  3270. libxml2 version is provided.
  3271. * src/Xml2XmlRpcRequestProcessor.cc
  3272. * src/Xml2XmlRpcRequestProcessor.h
  3273. * src/XmlRpcElements.cc
  3274. * src/XmlRpcElements.h
  3275. * src/XmlRpcRequest.h
  3276. * src/XmlRpcRequestParserController.cc
  3277. * src/XmlRpcRequestParserController.h
  3278. * src/XmlRpcRequestParserState.h
  3279. * src/XmlRpcRequestParserStateImpl.cc
  3280. * src/XmlRpcRequestParserStateImpl.h
  3281. * src/XmlRpcRequestParserStateMachine.cc
  3282. * src/XmlRpcRequestParserStateMachine.h
  3283. * src/XmlRpcRequestProcessor.h
  3284. * test/XmlRpcRequestParserControllerTest.cc
  3285. * test/XmlRpcRequestProcessorTest.cc
  3286. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3287. * Release 1.3.3
  3288. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3289. Fixed compile error since r1202.
  3290. * src/ExpatMetalinkProcessor.cc
  3291. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3292. Updated Ukrainian, Russian and Simplified Chinese
  3293. translations. Thanks to all translators.
  3294. * po/ru.po
  3295. * po/uk.po
  3296. * po/zh_CN.po
  3297. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3298. Pass reference of Option object instead of pointer.
  3299. * src/download_helper.cc
  3300. * src/download_helper.h
  3301. * src/main.cc
  3302. * test/DownloadHelperTest.cc
  3303. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3304. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3305. from option directly. Instead, get them from RequestGroup.
  3306. * src/ActivePeerConnectionCommand.cc
  3307. * src/ActivePeerConnectionCommand.h
  3308. * src/PeerReceiveHandshakeCommand.cc
  3309. * src/RequestGroup.h
  3310. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Removed unused uploadLimitCheck and uploadLimit from
  3312. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3313. PeerInteractionCommand.
  3314. * src/PeerAbstractCommand.cc
  3315. * src/PeerAbstractCommand.h
  3316. * src/PeerInteractionCommand.cc
  3317. * src/PeerInteractionCommand.h
  3318. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3319. Fixed broken file renaming feature since r1202.
  3320. * src/FtpNegotiationCommand.cc
  3321. * src/FtpNegotiationCommand.h
  3322. * src/HttpResponseCommand.cc
  3323. * src/RequestGroup.cc
  3324. * src/RequestGroup.h
  3325. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3326. Removed unused debug log
  3327. * src/SocketCore.cc
  3328. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3329. Generated configure and Makefile.in using autoconf 2.63 and
  3330. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3331. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3332. * configure.ac
  3333. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3334. Moved piece statistics stuff to new PieceStatMan class.
  3335. Refactored PieceSelector interface.
  3336. * src/DefaultPieceStorage.cc
  3337. * src/DefaultPieceStorage.h
  3338. * src/LongestSequencePieceSelector.cc
  3339. * src/LongestSequencePieceSelector.h
  3340. * src/Makefile.am
  3341. * src/PieceSelector.h
  3342. * src/PieceStatMan.cc
  3343. * src/PieceStatMan.h
  3344. * src/RarestPieceSelector.cc
  3345. * src/RarestPieceSelector.h
  3346. * src/RequestGroup.cc
  3347. * test/DefaultPieceStorageTest.cc
  3348. * test/InOrderPieceSelector.h
  3349. * test/Makefile.am
  3350. * test/PieceStatManTest.cc
  3351. * test/RarestPieceSelectorTest.cc
  3352. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3353. Added static member _protocolFamily to SocketCore. By default,
  3354. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3355. address. Sometime SocketCore::bind() and
  3356. SocketCore::establishConnection() use difference protocl family
  3357. and latter cannot connect to former. To avoid this situation, we
  3358. limit protocol family to AF_INET for unit tests.
  3359. * src/SocketCore.cc
  3360. * src/SocketCore.h
  3361. * test/AllTest.cc
  3362. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3363. Avoid std::bad_alloc for negative bencode string length.
  3364. * src/bencode.cc
  3365. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3366. Supported segmented downloading with chunked transfer encoding and
  3367. content-length.
  3368. * src/DownloadCommand.cc
  3369. * src/HttpResponseCommand.cc
  3370. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3371. Bump up version number to 1.3.3
  3372. * configure.ac
  3373. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3374. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3375. from 4096 to 65536 (for insanely large ftp login banners)
  3376. * src/FtpConnection.h
  3377. * test/FtpConnectionTest.cc
  3378. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3379. In DefaultBtContext::getActualBasePath(), return first
  3380. FileEntry::getPath() for single file torrent.
  3381. * src/DefaultBtContext.cc
  3382. * test/DefaultBtContextTest.cc
  3383. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3384. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3385. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3386. Removed _directIOAllowed member from DiskWriter.
  3387. * src/AbstractDiskWriter.cc
  3388. * src/AbstractDiskWriter.h
  3389. * src/AbstractSingleDiskAdaptor.cc
  3390. * src/AbstractSingleDiskAdaptor.h
  3391. * src/BinaryStream.h
  3392. * src/ByteArrayDiskWriter.h
  3393. * src/DefaultPieceStorage.cc
  3394. * src/DiskWriter.h
  3395. * src/MultiDiskAdaptor.cc
  3396. * src/MultiDiskAdaptor.h
  3397. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3398. Now the constructor of AbstractDiskWriter takes filename as an
  3399. argument and filename argument is removed from openFile(),
  3400. initAndOpenFile(), openExistingFile() interface. storeDir member
  3401. and its accessor functions are removed from DiskAdaptor because it
  3402. is not used anymore. size() member function of DefaultDiskWriter,
  3403. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3404. opening file.
  3405. * src/AbstractDiskWriter.cc
  3406. * src/AbstractDiskWriter.h
  3407. * src/AbstractSingleDiskAdaptor.cc
  3408. * src/AbstractSingleDiskAdaptor.h
  3409. * src/ByteArrayDiskWriter.cc
  3410. * src/ByteArrayDiskWriter.h
  3411. * src/ByteArrayDiskWriterFactory.cc
  3412. * src/ByteArrayDiskWriterFactory.h
  3413. * src/DefaultDiskWriter.cc
  3414. * src/DefaultDiskWriter.h
  3415. * src/DefaultDiskWriterFactory.cc
  3416. * src/DefaultDiskWriterFactory.h
  3417. * src/DefaultPieceStorage.cc
  3418. * src/DirectDiskAdaptor.cc
  3419. * src/DirectDiskAdaptor.h
  3420. * src/DiskAdaptor.h
  3421. * src/DiskWriter.h
  3422. * src/DiskWriterFactory.h
  3423. * src/MessageDigestHelper.cc
  3424. * src/MultiDiskAdaptor.cc
  3425. * src/RequestGroup.cc
  3426. * src/UnknownLengthPieceStorage.cc
  3427. * src/Util.cc
  3428. * test/DefaultDiskWriterTest.cc
  3429. * test/DirectDiskAdaptorTest.cc
  3430. * test/FallocFileAllocationIteratorTest.cc
  3431. * test/MessageDigestHelperTest.cc
  3432. * test/MetalinkProcessorTest.cc
  3433. * test/MultiDiskAdaptorTest.cc
  3434. * test/MultiFileAllocationIteratorTest.cc
  3435. * test/SingleFileAllocationIteratorTest.cc
  3436. * test/UtilTest.cc
  3437. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3438. Fixed the bug that aria2 aborts when --select-file is used. This
  3439. bug was introduced in r1199.
  3440. * src/MultiDiskAdaptor.cc
  3441. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3442. Code cleanup
  3443. * test/MockPieceStorage.cc
  3444. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3445. Fixed the bug that read-only file with wrong file size will cause
  3446. error because it cannot be truncated to the correct size. Now if
  3447. file size is different than the expected one, re-open file in
  3448. writable mode.
  3449. * src/AbstractSingleDiskAdaptor.cc
  3450. * src/AbstractSingleDiskAdaptor.h
  3451. * src/BtCheckIntegrityEntry.cc
  3452. * src/DiskAdaptor.h
  3453. * src/MultiDiskAdaptor.h
  3454. * src/RequestGroup.cc
  3455. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3456. Fixed the bug that with --check-integrity option aria2 reports
  3457. downloaded file size is 0 even if some parts of file is correctly
  3458. downloaded. This bug is reproducible for the download that a file
  3459. includes last piece is missing. This bug doesn't reveal for
  3460. single-torrent with file allocation on.
  3461. * src/IteratableChecksumValidator.cc
  3462. * test/IteratableChecksumValidatorTest.cc
  3463. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3464. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3465. * src/RequestGroupMan.cc
  3466. * src/AdaptiveURISelector.cc
  3467. * src/AdaptiveURISelector.h
  3468. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. * Release 1.3.2
  3470. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3471. Updated README
  3472. * README
  3473. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3474. Updated Ukrainian translations. Thanks to Alexander10.
  3475. * po/uk.po
  3476. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3477. Code cleanup
  3478. * src/MetalinkParserStateMachine.cc
  3479. * src/MetalinkParserStateMachine.h
  3480. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3481. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3482. and expat simultaneously, MetalinkProcessor is now not base class
  3483. and it is directly implemented in XML2SAXMetalinkProcessor and
  3484. ExpatMetalinkProcessor.
  3485. * src/ExpatMetalinkProcessor.cc
  3486. * src/ExpatMetalinkProcessor.h
  3487. * src/Makefile.am
  3488. * src/MetalinkHelper.cc
  3489. * src/MetalinkProcessor.h
  3490. * src/MetalinkProcessorFactory.cc: Removed.
  3491. * src/MetalinkProcessorFactory.h: Removed
  3492. * src/XML2SAXMetalinkProcessor.cc
  3493. * src/XML2SAXMetalinkProcessor.h
  3494. * test/MetalinkProcessorTest.cc
  3495. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3496. Bump up version number to 1.3.2
  3497. * configure.ac
  3498. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3499. Added missing file.
  3500. * test/Makefile.am
  3501. * test/url-list-singleFileEndsWithSlash.torrent
  3502. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3503. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3504. request.
  3505. * src/AnnounceList.cc
  3506. * src/AnnounceList.h
  3507. * src/BDE.cc: Added
  3508. * src/BDE.h: Added
  3509. * src/DHTAbstractMessage.cc
  3510. * src/DHTAbstractMessage.h
  3511. * src/DHTAnnouncePeerMessage.cc
  3512. * src/DHTAnnouncePeerMessage.h
  3513. * src/DHTAnnouncePeerReplyMessage.cc
  3514. * src/DHTAnnouncePeerReplyMessage.h
  3515. * src/DHTFindNodeMessage.cc
  3516. * src/DHTFindNodeMessage.h
  3517. * src/DHTFindNodeReplyMessage.cc
  3518. * src/DHTFindNodeReplyMessage.h
  3519. * src/DHTGetPeersMessage.cc
  3520. * src/DHTGetPeersMessage.h
  3521. * src/DHTGetPeersReplyMessage.cc
  3522. * src/DHTGetPeersReplyMessage.h
  3523. * src/DHTMessageFactory.h
  3524. * src/DHTMessageFactoryImpl.cc
  3525. * src/DHTMessageFactoryImpl.h
  3526. * src/DHTMessageReceiver.cc
  3527. * src/DHTMessageTracker.cc
  3528. * src/DHTMessageTracker.h
  3529. * src/DHTPingMessage.cc
  3530. * src/DHTPingMessage.h
  3531. * src/DHTPingReplyMessage.cc
  3532. * src/DHTPingReplyMessage.h
  3533. * src/DHTQueryMessage.cc
  3534. * src/DHTQueryMessage.h
  3535. * src/DHTResponseMessage.cc
  3536. * src/DHTResponseMessage.h
  3537. * src/DefaultBtAnnounce.cc
  3538. * src/DefaultBtContext.cc
  3539. * src/DefaultBtContext.h
  3540. * src/HandshakeExtensionMessage.cc
  3541. * src/Makefile.am
  3542. * src/PeerListProcessor.h
  3543. * src/UTPexExtensionMessage.cc
  3544. * src/bencode.cc
  3545. * src/bencode.h
  3546. * test/AnnounceListTest.cc
  3547. * test/BDETest.cc: Added
  3548. * test/BencodeTest.cc
  3549. * test/DHTAnnouncePeerMessageTest.cc
  3550. * test/DHTAnnouncePeerReplyMessageTest.cc
  3551. * test/DHTFindNodeMessageTest.cc
  3552. * test/DHTFindNodeReplyMessageTest.cc
  3553. * test/DHTGetPeersMessageTest.cc
  3554. * test/DHTGetPeersReplyMessageTest.cc
  3555. * test/DHTMessageFactoryImplTest.cc
  3556. * test/DHTMessageTrackerTest.cc
  3557. * test/DHTPingMessageTest.cc
  3558. * test/DHTPingReplyMessageTest.cc
  3559. * test/Makefile.am
  3560. * test/MockDHTMessageFactory.h
  3561. * test/PeerListProcessorTest.cc
  3562. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3563. Use url-list (web-seeding) only for single-file torrent. This is
  3564. basically the same behavior with Metalink file with torrent and
  3565. URIs.
  3566. * src/RequestGroup.cc
  3567. * src/DefaultBtContext.cc
  3568. * test/DefaultBtContextTest.cc
  3569. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3570. Rewritten expr
  3571. * src/array_fun.h
  3572. * test/array_funTest.cc
  3573. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3574. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3575. * src/DefaultBtMessageDispatcher.cc
  3576. * src/a2algo.h
  3577. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3578. Removed ExtendedMessagingAware. Instead of using inheritance,
  3579. added ExtensionMessageRegistry and it is passed to
  3580. DefaultExtensionMessageFactory.
  3581. * src/DefaultBtInteractive.cc
  3582. * src/DefaultBtInteractive.h
  3583. * src/DefaultExtensionMessageFactory.cc
  3584. * src/DefaultExtensionMessageFactory.h
  3585. * src/ExtendedMessagingAware.h: Removed.
  3586. * src/ExtensionMessageFactory.h
  3587. * src/ExtensionMessageRegistry.h: Added.
  3588. * src/Makefile.am
  3589. * src/PeerInteractionCommand.cc
  3590. * test/DefaultExtensionMessageFactoryTest.cc
  3591. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3592. Fixed typo in log messages
  3593. * src/MSEHandshake.cc
  3594. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3595. Fixed the bug that prevents torrent download from finishing. The
  3596. bug doesn't reveal for all torrents. The torrents affected this
  3597. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3598. of pieces.
  3599. * src/bitfield.h
  3600. * test/bitfieldTest.cc
  3601. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3602. Code cleanup
  3603. * src/PeerListProcessor.h
  3604. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3605. Removed RequestGroupAware
  3606. * src/AbstractCommand.cc
  3607. * src/AbstractCommand.h
  3608. * src/ActivePeerConnectionCommand.cc
  3609. * src/ActivePeerConnectionCommand.h
  3610. * src/DHTGetPeersCommand.cc
  3611. * src/DHTGetPeersCommand.h
  3612. * src/InitiatorMSEHandshakeCommand.cc
  3613. * src/InitiatorMSEHandshakeCommand.h
  3614. * src/Makefile.am
  3615. * src/PeerInitiateConnectionCommand.cc
  3616. * src/PeerInitiateConnectionCommand.h
  3617. * src/PeerInteractionCommand.cc
  3618. * src/PeerInteractionCommand.h
  3619. * src/RealtimeCommand.cc
  3620. * src/RealtimeCommand.h
  3621. * src/RequestGroupAware.cc: Removed
  3622. * src/RequestGroupAware.h: Removed
  3623. * src/SeedCheckCommand.cc
  3624. * src/SeedCheckCommand.h
  3625. * src/SleepCommand.cc
  3626. * src/TrackerWatcherCommand.cc
  3627. * src/TrackerWatcherCommand.h
  3628. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3629. Rewritten PeerListProcessor
  3630. * src/PeerListProcessor.h
  3631. * src/CompactPeerListProcessor.h: Removed
  3632. * src/CompactPeerListProcessor.cc: Removed
  3633. * src/DelegatingPeerListProcessor.cc: Removed.
  3634. * src/DefaultBtAnnounce.cc
  3635. * src/Makefile.am
  3636. * src/UTPexExtensionMessage.cc
  3637. * src/DefaultPeerListProcessor.h: Removed.
  3638. * src/DefaultPeerListProcessor.cc: Removed.
  3639. * src/DelegatingPeerListProcessor.h: Removed.
  3640. * test/Makefile.am
  3641. * test/PeerListProcessorTest.cc
  3642. * test/DefaultPeerListProcessorTest.cc: Removed.
  3643. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3644. Rewritten RequestGroupMan::calculateStat()
  3645. * src/RequestGroupMan.cc
  3646. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3647. Removed unnecessary virtual destructor for Request class.
  3648. * src/Request.cc
  3649. * src/Request.h
  3650. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3651. Avoid dynamic_pointer_cast.
  3652. * src/DHTGetPeersCommand.cc
  3653. * src/DHTGetPeersCommand.h
  3654. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3655. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3656. BtEvent.
  3657. * src/AbstractBtEventListener.h: Removed.
  3658. * src/AbstractBtMessage.cc
  3659. * src/AbstractBtMessage.h
  3660. * src/BtAbortOutstandingRequestEvent.h
  3661. * src/BtCancelSendingPieceEvent.h
  3662. * src/BtChokedEvent.h: Removed.
  3663. * src/BtChokingEvent.h
  3664. * src/BtEvent.h: Removed
  3665. * src/BtEventListener.h: Removed.
  3666. * src/BtMessage.h
  3667. * src/BtPieceMessage.cc
  3668. * src/BtPieceMessage.h
  3669. * src/BtRequestMessage.cc
  3670. * src/BtRequestMessage.h
  3671. * src/DefaultBtMessageDispatcher.cc
  3672. * src/Makefile.am
  3673. * src/a2functional.h
  3674. * test/BtPieceMessageTest.cc
  3675. * test/BtRequestMessageTest.cc
  3676. * test/DefaultBtMessageDispatcherTest.cc
  3677. * test/MockBtMessage.h
  3678. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3679. Code cleanup
  3680. * src/RequestGroupMan.cc
  3681. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. Code cleanup
  3683. * src/DownloadCommand.cc
  3684. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3685. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3686. byte.
  3687. * src/DownloadCommand.cc
  3688. * src/bitfield.h
  3689. * test/bitfieldTest.cc
  3690. Fixed the bug that causes infinite loop if broken web server
  3691. returns chunked response without last "0" chunk-size marker and
  3692. closes connection.
  3693. * src/DownloadCommand.cc
  3694. Instantiate properly configured HttpDownloadCommand for
  3695. non-resumable downlaods.
  3696. * src/HttpResponseCommand.cc
  3697. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Rewritten array operation functions.
  3699. * src/BitfieldMan.cc
  3700. * src/array_fun.h
  3701. * test/array_funTest.cc
  3702. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3703. Removed unused variable 'query'
  3704. * src/Request.cc
  3705. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3707. accidentally set to false in r1162.
  3708. * configure.ac
  3709. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Code cleanup
  3711. * src/BNode.cc
  3712. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Increase prefixLength for the bucket which doesn't own local node
  3714. ID when splitting bucket.
  3715. * src/DHTBucket.cc
  3716. * test/DHTBucketTest.cc
  3717. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3718. * Release 1.3.1
  3719. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3720. Bump up version number to 1.3.1
  3721. * configure.ac
  3722. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3723. Removed unused variable checkPoint. Also removed include directive
  3724. for TimeA2.h.
  3725. * src/SeedCheckCommand.h
  3726. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3727. Fixed the bug that upload limit exceeds the value specified in
  3728. --seed-ratio option depending on the timing of the execution of
  3729. SeedCheckCommand.
  3730. * src/SeedCheckCommand.cc
  3731. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Fixed the bug that removed peer's session upload/download length
  3733. are counted twice in _cachedTransferStat before it is
  3734. re-calculated. This affected the calculation of shara ratio,
  3735. resulting aria2 wrongly determines that specified share ratio is
  3736. reached. Also fixed the typo in calculateStatFor function name.
  3737. * src/BtSetup.cc
  3738. * src/DefaultPeerStorage.cc
  3739. * src/ShareRatioSeedCriteria.h
  3740. * test/ShareRatioSeedCriteriaTest.cc
  3741. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3742. * Release 1.3.0
  3743. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3745. Nynorsk translations. Thanks to all translators.
  3746. * po/es.po
  3747. * po/ja.po
  3748. * po/nn.po
  3749. * po/ru.po
  3750. * po/uk.po
  3751. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3752. Rewritten isInRange()
  3753. * src/DHTBucket.cc
  3754. * test/DHTBucketTest.cc
  3755. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Fixed typo
  3757. * doc/aria2c.1.txt
  3758. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3760. malloc/realloc is not used.
  3761. * src/configure.ac
  3762. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3763. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3764. char* bitfield instead of stl container for efficiency.
  3765. PieceSelector::select now takes this
  3766. bitfield. RarestPieceSelector::select now also performs
  3767. efficiently for this change. bitfield namespace is introduced and
  3768. it has several helper functions to handle basic bitfield
  3769. operations such as test, count set bits, etc.
  3770. * src/BitfieldMan.cc
  3771. * src/BitfieldMan.h
  3772. * src/DefaultBtRequestFactory.cc
  3773. * src/DefaultPieceStorage.cc
  3774. * src/DefaultPieceStorage.h
  3775. * src/LongestSequencePieceSelector.cc
  3776. * src/LongestSequencePieceSelector.h
  3777. * src/Makefile.am
  3778. * src/Piece.cc
  3779. * src/Piece.h
  3780. * src/PieceSelector.h
  3781. * src/RarestPieceSelector.cc
  3782. * src/RarestPieceSelector.h
  3783. * src/Util.cc
  3784. * src/Util.h
  3785. * src/bitfield.h
  3786. * test/BitfieldManTest.cc
  3787. * test/LongestSequencePieceSelectorTest.cc
  3788. * test/Makefile.am
  3789. * test/RarestPieceSelectorTest.cc
  3790. * test/UtilTest.cc
  3791. * test/bitfieldTest.cc
  3792. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3793. Made accepted socket non-block.
  3794. * src/FtpNegotiationCommand.cc
  3795. * src/HttpListenCommand.cc
  3796. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3798. * src/AbstractSingleDiskAdaptor.cc
  3799. * src/DefaultPieceStorage.cc
  3800. * src/DiskAdaptor.h
  3801. * src/DiskAdaptor.h
  3802. * src/MultiFileAllocationIterator.cc
  3803. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3804. Run
  3805. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3806. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3807. it doesn't need to be called every time when
  3808. DefaultBtInteractive::doInteractionProcessing() is called.
  3809. * src/DefaultBtInteractive.cc
  3810. * src/DefaultBtInteractive.h
  3811. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3812. Documented 'falloc' in man page.
  3813. * doc/aria2c.1.txt
  3814. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. Updated doc
  3816. * src/usage_text.h
  3817. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3818. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3819. allocation mode uses posix_fallocate() system call to allocate
  3820. file on disk. If you are using newer file systems such as ext4
  3821. (with extents support), btrfs or xfs, 'falloc' is your best
  3822. choice. It allocates large(few GiB) files almost instantly. Don't
  3823. use 'falloc' with legacy file systems such as ext3 because it
  3824. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3825. until allocation finishes. 'falloc' may not be available if your
  3826. system doesn't have posix_fallocate() system call.
  3827. * configure.ac
  3828. * src/AbstractDiskWriter.cc
  3829. * src/AbstractDiskWriter.h
  3830. * src/AbstractSingleDiskAdaptor.cc
  3831. * src/BinaryStream.h
  3832. * src/BtCheckIntegrityEntry.cc
  3833. * src/ByteArrayDiskWriter.h
  3834. * src/CheckIntegrityEntry.cc
  3835. * src/CheckIntegrityEntry.h
  3836. * src/DefaultPieceStorage.cc
  3837. * src/DiskAdaptor.cc
  3838. * src/DiskAdaptor.h
  3839. * src/DiskWriter.h
  3840. * src/FallocFileAllocationIterator.cc
  3841. * src/FallocFileAllocationIterator.h
  3842. * src/FileAllocationEntry.cc
  3843. * src/FileAllocationEntry.h
  3844. * src/Makefile.am
  3845. * src/MultiFileAllocationIterator.cc
  3846. * src/MultiFileAllocationIterator.h
  3847. * src/OptionHandlerFactory.cc
  3848. * src/RequestGroup.cc
  3849. * src/StreamCheckIntegrityEntry.cc
  3850. * src/prefs.cc
  3851. * src/prefs.h
  3852. * src/usage_text.h
  3853. * test/FallocFileAllocationIteratorTest.cc
  3854. * test/Makefile.am
  3855. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3856. Removed duplicate enableDirectIO() call.
  3857. * src/MultiFileAllocationIterator.cc
  3858. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3859. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3860. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3861. cost of std::rotate().
  3862. * src/RarestPieceSelector.cc
  3863. * src/RarestPieceSelector.h
  3864. * test/RarestPieceSelectorTest.cc
  3865. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3866. Updated usage doc for --bt-tracker-interval option.
  3867. * src/usage_text.h
  3868. * doc/aria2c.1.txt
  3869. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3870. Documented --bt-tracker-interval option in man page.
  3871. * doc/aria2c.1.txt
  3872. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3873. Added an option to specify the interval between tracker requests.
  3874. If non-zero value is specified, aria2 uses it and ignores the
  3875. interval value in the response of tracker. If zero is specified,
  3876. aria2 determines the inteval value based on the tarcker response
  3877. and download progress.
  3878. * src/DefaultBtAnnounce.cc
  3879. * src/DefaultBtAnnounce.h
  3880. * src/OptionHandlerFactory.cc
  3881. * src/RequestGroup.cc
  3882. * src/prefs.cc
  3883. * src/prefs.h
  3884. * src/usage_text.h
  3885. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3886. Added operator+=, operator-=, operator-
  3887. * src/TransferStat.cc
  3888. * src/TransferStat.h
  3889. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3890. Refactored RarestPieceSelector to reduce CPU load, especially for
  3891. addPieceStats.
  3892. * src/RarestPieceSelector.cc
  3893. * src/RarestPieceSelector.h
  3894. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3895. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3896. getAllMissingBlockIndexes to reduce a call to
  3897. array_function_base::operator[].
  3898. * src/BitfieldMan.cc
  3899. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3900. Cached TransferStat/download speed to avoid to sum them up in each
  3901. call.
  3902. * src/DefaultPeerStorage.cc
  3903. * src/DefaultPeerStorage.h
  3904. * src/SegmentMan.cc
  3905. * src/SegmentMan.h
  3906. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3907. Typedefed cuid_t as int32_t in Command.h
  3908. * src/CUIDCounter.h
  3909. * src/Command.cc
  3910. * src/Command.h
  3911. * src/DownloadEngine.cc
  3912. * src/DownloadEngine.h
  3913. * src/PeerStat.h
  3914. * src/SegmentMan.cc
  3915. * src/SegmentMan.h
  3916. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3917. Reduced the number of calls to PeerStorage::calculateStat() and
  3918. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3919. transfer rate.
  3920. * src/DefaultBtInteractive.cc
  3921. * src/DefaultBtMessageDispatcher.cc
  3922. * src/DefaultPeerStorage.cc
  3923. * src/DefaultPeerStorage.h
  3924. * src/DownloadCommand.cc
  3925. * src/DownloadEngine.cc
  3926. * src/PeerStorage.h
  3927. * src/SegmentMan.cc
  3928. * src/SegmentMan.h
  3929. * test/MockPeerStorage.h
  3930. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3931. Prepended _dir+"/" after joining path elements in torrent file.
  3932. * src/DefaultBtContext.cc
  3933. * test/DefaultBtContextTest.cc
  3934. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3935. Added missing IndexBtMessageValidator.h
  3936. * src/Makefile.am
  3937. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3939. Chinese translations. Thank you for contributing our project.
  3940. * po/id.po
  3941. * po/it.po
  3942. * po/ru.po
  3943. * po/uk.po
  3944. * po/zh_CN.po
  3945. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. Updated README
  3947. * README
  3948. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Bump up version number to 1.3.0
  3950. * configure.ac
  3951. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3952. Updated doc
  3953. * src/DefaultBtContext.h
  3954. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3955. Slice/joinPath for name of single torrent.
  3956. * src/DefaultBtContext.cc
  3957. * test/DefaultBtContextTest.cc
  3958. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3959. Updated man page: Documented --dry-run and --index-out
  3960. options. Changed the default value of --uri-selector and
  3961. --http-auth-challenge options. Removed --direct-file-mapping
  3962. option. Added example for --index-out
  3963. * doc/aria2c.1.txt
  3964. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3965. Updated TEXT_DRY_RUN
  3966. * src/usage_text.h
  3967. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3968. Changed the default value of --uri-selector option from 'inorder'
  3969. to 'feedback'
  3970. * src/OptionHandlerFactory.cc
  3971. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3972. Included current URI in exception message.
  3973. * src/AbstractCommand.cc
  3974. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3975. Renamed ServerStatURISelector as FeedbackURISelector.
  3976. * src/FeedbackURISelector.cc
  3977. * src/FeedbackURISelector.h
  3978. * src/Makefile.am
  3979. * src/RequestGroupMan.cc
  3980. * src/ServerStatURISelector.cc
  3981. * src/ServerStatURISelector.h
  3982. * test/FeedbackURISelectorTest.cc
  3983. * test/Makefile.am
  3984. * test/ServerStatURISelectorTest.cc
  3985. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3986. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3987. all URIs are tested and their timeout is not reached.
  3988. * src/AdaptiveURISelector.cc
  3989. * src/AdaptiveURISelector.h
  3990. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3991. Changed the default value of --http-auth-challenge option to false.
  3992. * src/OptionHandlerFactory.cc
  3993. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3994. Reuse URIs when all unused URIs run out.
  3995. * src/OptionHandlerFactory.cc
  3996. * src/RequestGroup.cc
  3997. * src/prefs.cc
  3998. * src/prefs.h
  3999. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4000. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4001. and BtRejectMessage are derived from RangeBtMessage class.
  4002. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4003. derived from IndexBtMessage class. BtChokeMessage,
  4004. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4005. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4006. ZeroBtMessage class.
  4007. * src/AbstractBtMessage.cc
  4008. * src/AbstractBtMessage.h
  4009. * src/BtAllowedFastMessage.cc
  4010. * src/BtAllowedFastMessage.h
  4011. * src/BtAllowedFastMessageValidator.h: Removed
  4012. * src/BtBitfieldMessage.cc
  4013. * src/BtBitfieldMessage.h
  4014. * src/BtCancelMessage.cc
  4015. * src/BtCancelMessage.h
  4016. * src/BtCancelMessageValidator.h: Removed
  4017. * src/BtChokeMessage.cc
  4018. * src/BtChokeMessage.h
  4019. * src/BtExtendedMessage.cc
  4020. * src/BtExtendedMessage.h
  4021. * src/BtHandshakeMessage.cc
  4022. * src/BtHandshakeMessage.h
  4023. * src/BtHaveAllMessage.cc
  4024. * src/BtHaveAllMessage.h
  4025. * src/BtHaveMessage.cc
  4026. * src/BtHaveMessage.h
  4027. * src/BtHaveMessageValidator.h: Removed
  4028. * src/BtHaveNoneMessage.cc
  4029. * src/BtHaveNoneMessage.h
  4030. * src/BtInterestedMessage.cc
  4031. * src/BtInterestedMessage.h
  4032. * src/BtKeepAliveMessage.cc
  4033. * src/BtKeepAliveMessage.h
  4034. * src/BtNotInterestedMessage.cc
  4035. * src/BtNotInterestedMessage.h
  4036. * src/BtPieceMessage.cc
  4037. * src/BtPieceMessage.h
  4038. * src/BtPortMessage.cc
  4039. * src/BtPortMessage.h
  4040. * src/BtRejectMessage.cc
  4041. * src/BtRejectMessage.h
  4042. * src/BtRejectMessageValidator.h: Removed
  4043. * src/BtRequestMessage.cc
  4044. * src/BtRequestMessage.h
  4045. * src/BtRequestMessageValidator.h: Removed
  4046. * src/BtSuggestPieceMessage.cc
  4047. * src/BtSuggestPieceMessage.h
  4048. * src/BtSuggestPieceMessageValidator.h: Removed
  4049. * src/BtUnchokeMessage.cc
  4050. * src/BtUnchokeMessage.h
  4051. * src/DefaultBtMessageFactory.cc
  4052. * src/IndexBtMessage.cc
  4053. * src/IndexBtMessage.h
  4054. * src/IndexBtMessageValidator.h
  4055. * src/Makefile.am
  4056. * src/PeerMessageUtil.cc
  4057. * src/PeerMessageUtil.h
  4058. * src/RangeBtMessage.cc
  4059. * src/RangeBtMessage.h
  4060. * src/RangeBtMessageValidator.h
  4061. * src/SimpleBtMessage.cc
  4062. * src/SimpleBtMessage.h
  4063. * src/ZeroBtMessage.cc
  4064. * src/ZeroBtMessage.h
  4065. * test/BtRequestMessageTest.cc
  4066. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4067. Reverted usage_text.h to r1093 to avoid to lose translated
  4068. messages.
  4069. * src/usage_text.h
  4070. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4071. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4072. declared as non-const previously is now const and defined in class
  4073. definition.
  4074. * src/AbstractBtMessage.cc
  4075. * src/AbstractBtMessage.h
  4076. * src/BtAllowedFastMessage.cc
  4077. * src/BtAllowedFastMessage.h
  4078. * src/BtBitfieldMessage.h
  4079. * src/BtCancelMessage.cc
  4080. * src/BtCancelMessage.h
  4081. * src/BtChokeMessage.cc
  4082. * src/BtChokeMessage.h
  4083. * src/BtExtendedMessage.cc
  4084. * src/BtExtendedMessage.h
  4085. * src/BtHandshakeMessage.cc
  4086. * src/BtHandshakeMessage.h
  4087. * src/BtHaveAllMessage.cc
  4088. * src/BtHaveAllMessage.h
  4089. * src/BtHaveMessage.cc
  4090. * src/BtHaveMessage.h
  4091. * src/BtHaveNoneMessage.cc
  4092. * src/BtHaveNoneMessage.h
  4093. * src/BtInterestedMessage.cc
  4094. * src/BtInterestedMessage.h
  4095. * src/BtKeepAliveMessage.cc
  4096. * src/BtKeepAliveMessage.h
  4097. * src/BtMessage.h
  4098. * src/BtNotInterestedMessage.cc
  4099. * src/BtNotInterestedMessage.h
  4100. * src/BtPieceMessage.h
  4101. * src/BtPortMessage.cc
  4102. * src/BtPortMessage.h
  4103. * src/BtRejectMessage.cc
  4104. * src/BtRejectMessage.h
  4105. * src/BtRequestMessage.cc
  4106. * src/BtRequestMessage.h
  4107. * src/BtSuggestPieceMessage.cc
  4108. * src/BtSuggestPieceMessage.h
  4109. * src/BtUnchokeMessage.cc
  4110. * src/BtUnchokeMessage.h
  4111. * src/SimpleBtMessage.cc
  4112. * src/SimpleBtMessage.h
  4113. * test/MockBtMessage.h
  4114. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4115. Use FileEntry::exists()
  4116. * src/MultiDiskAdaptor.cc
  4117. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4118. Added exists()
  4119. * src/FileEntry.cc
  4120. * src/FileEntry.h
  4121. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4122. Added missing prefix dir.
  4123. * src/download_helper.cc
  4124. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4125. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4126. * src/CopyDiskAdaptor.cc: Removed
  4127. * src/CopyDiskAdaptor.h: Removed
  4128. * src/DefaultPieceStorage.cc
  4129. * src/Makefile.am
  4130. * src/OptionHandlerFactory.cc
  4131. * src/prefs.cc
  4132. * src/prefs.h
  4133. * src/usage_text.h
  4134. * test/CopyDiskAdaptorTest.cc: Removed
  4135. * test/Makefile.am
  4136. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4137. Rewritten isSameFileBeingDownloaded()
  4138. * src/RequestGroupMan.cc
  4139. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4140. Removed getName() from DownloadContext. getName() is declared in
  4141. BtContext.
  4142. * src/BtContext.h
  4143. * src/DownloadContext.h
  4144. * src/SingleFileDownloadContext.cc
  4145. * src/SingleFileDownloadContext.h
  4146. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4147. in AbstractSingleDiskAdaptor.
  4148. * src/AbstractSingleDiskAdaptor.h
  4149. * src/DiskAdaptor.h
  4150. * src/MultiDiskAdaptor.h
  4151. * src/RequestGroup.cc
  4152. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4153. MultiDiskAdaptor.
  4154. * src/DefaultPieceStorage.cc
  4155. * src/MultiDiskAdaptor.cc
  4156. * src/MultiDiskAdaptor.h
  4157. * test/MultiDiskAdaptorTest.cc
  4158. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4159. FileEntry::getPath() contains store(top level) directory to
  4160. simplify path handling operation. In the previous implementation,
  4161. store directory is concatenated to FileEntry::getPath() in
  4162. DownloadContext.
  4163. * src/BtDependency.cc
  4164. * src/BtPostDownloadHandler.cc
  4165. * src/CopyDiskAdaptor.cc
  4166. * src/DefaultBtContext.cc
  4167. * src/DirectDiskAdaptor.cc
  4168. * src/FileEntry.cc
  4169. * src/FileEntry.h
  4170. * src/FtpNegotiationCommand.cc
  4171. * src/HttpResponse.cc
  4172. * src/HttpResponseCommand.cc
  4173. * src/Metalink2RequestGroup.cc
  4174. * src/MultiDiskAdaptor.cc
  4175. * src/MultiDiskAdaptor.h
  4176. * src/MultiFileAllocationIterator.cc
  4177. * src/RequestGroup.cc
  4178. * src/SingleFileDownloadContext.cc
  4179. * src/SingleFileDownloadContext.h
  4180. * src/download_helper.cc
  4181. * test/BtDependencyTest.cc
  4182. * test/CopyDiskAdaptorTest.cc
  4183. * test/DefaultBtContextTest.cc
  4184. * test/DefaultBtProgressInfoFileTest.cc
  4185. * test/DirectDiskAdaptorTest.cc
  4186. * test/DownloadHelperTest.cc
  4187. * test/FileEntryTest.cc
  4188. * test/MultiDiskAdaptorTest.cc
  4189. * test/MultiFileAllocationIteratorTest.cc
  4190. * test/RequestGroupTest.cc
  4191. * test/SingleFileDownloadContextTest.cc
  4192. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4193. Fixed compiler warning
  4194. * src/download_helper.cc
  4195. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4196. Throw exception if same infohash torrent is now downloading.
  4197. * src/RequestGroup.cc
  4198. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4199. Added --dry-run option. In this mode, aria2 just checks whether
  4200. the remote file is available and doesn't download data. This
  4201. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4202. are canceled in this mode.
  4203. * src/FtpNegotiationCommand.cc
  4204. * src/HttpResponseCommand.cc
  4205. * src/HttpResponseCommand.h
  4206. * src/OptionHandlerFactory.cc
  4207. * src/RequestGroup.cc
  4208. * src/RequestGroupMan.cc
  4209. * src/prefs.cc
  4210. * src/prefs.h
  4211. * src/usage_text.h
  4212. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4213. Fixed compiler waring
  4214. * test/UriListParserTest.cc
  4215. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4216. Parse options in -i list using OptionParser.
  4217. * src/UriListParser.cc
  4218. * src/UriListParser.h
  4219. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4220. Don't reset URI in retry to avoid additional round trips because
  4221. of redirects.
  4222. * src/AbstractCommand.cc
  4223. * src/OptionHandlerFactory.cc
  4224. * src/prefs.cc
  4225. * src/prefs.h
  4226. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4227. Declared hide() in OptionHandler.
  4228. * src/NameMatchOptionHandler.h
  4229. * src/OptionHandler.h
  4230. * src/OptionHandlerImpl.h
  4231. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4232. Updated doc
  4233. * src/Peer.h
  4234. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4235. Added log message in setStatusInternal()
  4236. * src/ServerStat.cc
  4237. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4238. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4239. effectively exclude failed server.
  4240. * src/AbstractCommand.cc
  4241. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4242. Added --index-out option to specify each file path for torrent.
  4243. Here index shown in --show-files option is used to specify which
  4244. file path should be altered. For example, to change the file path
  4245. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4246. option multiple times: --index-out=1=aria2.tar.bz2
  4247. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4248. available. This option can be specified in -i list.
  4249. * src/DefaultBtContext.cc
  4250. * src/DefaultBtContext.h
  4251. * src/MultiDiskAdaptor.cc
  4252. * src/MultiDiskAdaptor.h
  4253. * src/MultiFileAllocationIterator.cc
  4254. * src/OptionHandlerFactory.cc
  4255. * src/OptionHandlerImpl.h
  4256. * src/Util.cc
  4257. * src/Util.h
  4258. * src/download_helper.cc
  4259. * src/prefs.cc
  4260. * src/prefs.h
  4261. * src/usage_text.h
  4262. * test/DefaultBtContextTest.cc
  4263. * test/MultiDiskAdaptorTest.cc
  4264. * test/MultiFileAllocationIteratorTest.cc
  4265. * test/UtilTest.cc
  4266. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4267. Use Util::pathJoin()
  4268. * src/MetalinkParserController.cc
  4269. * test/test.xml
  4270. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4271. Use Util::pathJoin()
  4272. * src/DefaultBtContext.cc
  4273. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4274. Added Util::pathJoin()
  4275. * src/Util.h
  4276. * test/UtilTest.cc
  4277. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4278. Applied basename function to remove directory element in
  4279. content-disposition value.
  4280. Return empty string if content-disposition value is ".." or ".".
  4281. * src/Util.cc
  4282. * test/UtilTest.cc
  4283. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4284. Added --max-overall-download-limit in man page.
  4285. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4286. * doc/aria2c.1.txt
  4287. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4288. Added --max-overall-download-limit option. Now --max-upload-limit
  4289. option is not ignored when --max-overall-upload-limit option has
  4290. non-zero value. aria2 checks download(upload) speed in the order:
  4291. first checks overall speed limit and if it is not exceeded, then
  4292. checks speed limit per download. Thus you can specify both
  4293. value. For example, set --max-overall-download-limit=1M and
  4294. --max-download-limit=500K to prevent from one download from eating
  4295. all overall speed limit.
  4296. * src/DefaultBtInteractive.cc
  4297. * src/DefaultBtInteractive.h
  4298. * src/DefaultBtMessageDispatcher.cc
  4299. * src/DefaultBtMessageDispatcher.h
  4300. * src/DownloadCommand.cc
  4301. * src/DownloadCommand.h
  4302. * src/FtpNegotiationCommand.cc
  4303. * src/HttpResponseCommand.cc
  4304. * src/OptionHandlerFactory.cc
  4305. * src/PeerInteractionCommand.cc
  4306. * src/RequestGroup.cc
  4307. * src/RequestGroup.h
  4308. * src/RequestGroupMan.cc
  4309. * src/RequestGroupMan.h
  4310. * src/prefs.cc
  4311. * src/prefs.h
  4312. * src/usage_text.h
  4313. * test/DefaultBtMessageDispatcherTest.cc
  4314. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4315. Documented select-file option in Input File section.
  4316. Documented --http-auth-challenge option.
  4317. * doc/aria2c.1.txt
  4318. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4319. Now select-file can be specified in the uri list(-i list).
  4320. * src/BtContext.cc
  4321. * src/BtContext.h
  4322. * src/RequestGroup.cc
  4323. * src/Sequence.h
  4324. * src/download_helper.cc
  4325. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4326. Made the upper value of --max-concurrent-downloads options unlimited.
  4327. * src/OptionHandlerFactory.cc
  4328. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4329. Fixed the bug that disk writer is not created even if it shares
  4330. same piece with the preceding file if the length of previous file
  4331. is 0.
  4332. * src/MultiDiskAdaptor.cc
  4333. * test/MultiDiskAdaptorTest.cc
  4334. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4335. In BitTorrent, Open files in read-only mode for hash check. After
  4336. that, re-open file in read/write mode only when the download is
  4337. not finished.
  4338. * src/AbstractDiskWriter.cc
  4339. * src/AbstractDiskWriter.h
  4340. * src/AbstractSingleDiskAdaptor.cc
  4341. * src/AbstractSingleDiskAdaptor.h
  4342. * src/BtCheckIntegrityEntry.cc
  4343. * src/DiskAdaptor.h
  4344. * src/DiskWriter.h
  4345. * src/MultiDiskAdaptor.cc
  4346. * src/MultiDiskAdaptor.h
  4347. * src/RequestGroup.cc
  4348. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4349. Added --http-auth-challenge option. If it is set to true(by
  4350. default), aria2 sends HTTP authorization header only when it is
  4351. requested by the server. If false is set, then authorization
  4352. header is always sent to the server. This is useful for servers
  4353. that don't respond 401 code when authentication is required.
  4354. There is an exception: if username and password are embedded in
  4355. URI, authorization header is always sent to the server regardless
  4356. of this option.
  4357. * src/AuthConfigFactory.cc
  4358. * src/HttpSkipResponseCommand.cc
  4359. * src/OptionHandlerFactory.cc
  4360. * src/prefs.cc
  4361. * src/prefs.h
  4362. * src/usage_text.h
  4363. * test/AuthConfigFactoryTest.cc
  4364. * test/HttpRequestTest.cc
  4365. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4366. * Release 1.2.0
  4367. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4368. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4369. Thanks to all translators.
  4370. * po/es.po
  4371. * po/ja.po
  4372. * po/ru.po
  4373. * po/uk.po
  4374. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4375. Call deleteSocketForReadCheck() before socket is closed.
  4376. * src/HttpListenCommand.cc
  4377. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4378. Defined virtual destructor for BObject.
  4379. * src/bencode.h
  4380. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4381. Rewritten BDE to make it efficient.
  4382. * src/bencode.cc
  4383. * src/bencode.h
  4384. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4385. Removed function throw list.
  4386. * src/bencode.cc
  4387. * src/bencode.h
  4388. * test/BencodeTest.cc
  4389. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4390. Enclosed all URLs in double quotes in command-line examples.
  4391. * doc/aria2c.1.txt
  4392. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4393. Updated reference/see also section.
  4394. * README
  4395. * doc/aria2c.1.txt
  4396. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4397. Reorganized man page based on man man-pages.
  4398. * doc/aria2c.1.txt
  4399. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4400. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4401. because same documents are available in man page. Added
  4402. References section.
  4403. * README
  4404. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4405. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4406. PERFORMANCE PROFILE section.
  4407. * doc/aria2c.1.txt
  4408. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4409. Rewritten the section for configuration file.
  4410. * README
  4411. * doc/aria2c.1.txt
  4412. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4413. Fixed the segmentation fault during execution of choking algorithm
  4414. in leecher state because of broken compare operator
  4415. implementation.
  4416. * src/BtLeecherStateChoke.cc
  4417. * src/BtLeecherStateChoke.h
  4418. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4419. Open file in binary mode.
  4420. * src/CookieStorage.cc
  4421. * src/DHTSetup.cc
  4422. * src/DHTUtil.cc
  4423. * src/Netrc.cc
  4424. * src/NsCookieParser.cc
  4425. * src/ProtocolDetector.cc
  4426. * src/RequestGroupMan.cc
  4427. * src/Signature.cc
  4428. * src/bencode.cc
  4429. * src/download_helper.cc
  4430. * src/option_processing.cc
  4431. * test/CookieParserTest.cc
  4432. * test/DefaultBtProgressInfoFileTest.cc
  4433. * test/FileTest.cc
  4434. * test/GZipDecoderTest.cc
  4435. * test/RequestGroupManTest.cc
  4436. * test/SignatureTest.cc
  4437. * test/SingleFileAllocationIteratorTest.cc
  4438. * test/UriListParserTest.cc
  4439. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4440. Removed operator[] because it is ambiguous with built-in []
  4441. operator.
  4442. * src/array_fun.h
  4443. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4444. Fixed compile error
  4445. * src/OptionParser.cc
  4446. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4447. Added missing call to arrayWrapperConst
  4448. * test/array_funTest.cc
  4449. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4450. Use array_wrapper instead of array_ptr.
  4451. * src/DHTRoutingTableDeserializer.cc
  4452. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4453. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4454. * src/array_fun.h
  4455. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Added array_wrapper template.
  4457. * src/array_fun.h
  4458. * test/array_funTest.cc
  4459. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4460. Use operator T* of array_ptr.
  4461. * src/OptionParser.cc
  4462. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. Use localhost instead of 127.0.0.1
  4464. * test/FtpConnectionTest.cc
  4465. * test/MSEHandshakeTest.cc
  4466. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4467. Added operator T*
  4468. * src/array_fun.h
  4469. * test/array_funTest.cc
  4470. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4471. Use dynamically allocated char array to detect memory access
  4472. violation.
  4473. * src/DHTRoutingTableDeserializer.cc
  4474. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4475. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4476. defined.
  4477. * src/PeerMessageUtil.cc
  4478. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4479. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4480. * configure.ac
  4481. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. Added a check to see struct sockaddr_in has sin_len member.
  4483. * configure.ac
  4484. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4485. Fixed buffer overrun.
  4486. * src/DHTRoutingTableDeserializer.cc
  4487. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4488. Added LL for long long int constant.
  4489. * test/FtpConnectionTest.cc
  4490. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4491. Casted to unsigned int to suppress compiler warning on netbsd.
  4492. * src/BtRuntime.h
  4493. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4494. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4495. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4496. type time_t.
  4497. * src/SimpleLogger.cc
  4498. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4499. Added test for FtpConnection::receiveSizeResponse().
  4500. * test/FtpConnectionTest.cc
  4501. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4502. Fix epoll error on the old kernel 2.6.8 or ealier.
  4503. * src/EpollEventPoll.cc
  4504. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4505. Use Util::parseLLInt instead of sscanf for portability. The
  4506. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4507. * src/FtpConnection.cc
  4508. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4509. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4510. block. It should not filter anything.
  4511. * src/BitfieldMan.cc
  4512. * src/ConsoleStatCalc.cc
  4513. * test/BitfieldManTest.cc
  4514. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Fixed the bug that the boolean options that don't take arguments
  4516. don't work.
  4517. * src/OptionHandlerImpl.h
  4518. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4519. Fixed broken selected file BitTorrent download.
  4520. * src/MultiDiskAdaptor.cc
  4521. * test/MultiDiskAdaptorTest.cc
  4522. * test/MultiFileAllocationIteratorTest.cc
  4523. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4524. Fixed #define guard for EpollEventPoll
  4525. * src/EpollEventPoll.h
  4526. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4527. Wait 2 seconds. 1 second is sometimes not enough.
  4528. * test/TimeSeedCriteriaTest.cc
  4529. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4530. Use localhost instead of 127.0.0.1.
  4531. * test/DHTConnectionImplTest.cc
  4532. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4533. Suppressed compiler warning.
  4534. * src/AdaptiveURISelector.cc
  4535. * src/DefaultPieceStorage.cc
  4536. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4537. Defined virtual destructor.
  4538. * src/MetalinkParserState.h
  4539. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4540. Give NULL for second argument of getaddrinfo instead of "0".
  4541. * src/NameResolver.cc
  4542. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4543. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4544. included strptime doesn't parse data for this format.
  4545. * src/FtpConnection.cc
  4546. * test/FtpConnectionTest.cc
  4547. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Removed tests giving -1 for unsigned argument.
  4549. * test/SingleFileDownloadContextTest.cc
  4550. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4551. Don't use sha256 in tests because it might not be supported by the
  4552. SSL library.
  4553. * test/MetalinkProcessorTest.cc
  4554. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4555. Removed tests giving -1 for unsigned argument.
  4556. * test/AlphaNumberDecoratorTest
  4557. * test/BitfieldManTest.cc
  4558. * test/DefaultBtContextTest.cc
  4559. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. Fixed compile error without libcares when epoll is available.
  4561. * src/EpollEventPoll.cc
  4562. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4563. Included fstream instead of iostream.
  4564. * test/SignatureTest.cc
  4565. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4566. Removed #include <algorithm>
  4567. * test/RequestGroupTest.cc
  4568. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4569. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4570. using RequestGroup::extractURIResult().
  4571. * src/AdaptiveURISelector.cc
  4572. * src/RequestGroup.cc
  4573. * src/RequestGroup.h
  4574. * test/RequestGroupTest.cc
  4575. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4576. Added tests for array_ptr.
  4577. * test/array_funTest.cc
  4578. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4579. Don't send ip parameter to a tracker if ip parameter is empty
  4580. string.
  4581. * src/DefaultBtAnnounce.cc
  4582. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4583. Adjusted line feed.
  4584. * src/version_usage.cc
  4585. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4586. Print tags, possible values when OptionHandlerException is caught.
  4587. * src/option_processing.cc
  4588. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. Changed the message for FatalException.
  4590. * src/OptionParser.cc
  4591. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4592. Documented --bt-external-ip option in man page. Updated man pages
  4593. for --proxy-method option.
  4594. * doc/aria2c.1.txt
  4595. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4596. Use GET method for FTP via HTTP proxy.
  4597. * src/FtpInitiateConnectionCommand.cc
  4598. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4599. Changed the default value of --proxy-method option from 'tunnel'
  4600. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4601. option.
  4602. * src/AbstractCommand.cc
  4603. * src/AbstractCommand.h
  4604. * src/FtpInitiateConnectionCommand.cc
  4605. * src/HttpDownloadCommand.cc
  4606. * src/HttpInitiateConnectionCommand.cc
  4607. * src/HttpInitiateConnectionCommand.h
  4608. * src/OptionHandlerFactory.cc
  4609. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4610. Initialized _logger
  4611. * src/SelectEventPoll.cc
  4612. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4613. Defined a copy constructor for the same type.
  4614. * src/SharedHandle.h
  4615. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4616. Added OptionParser::parseArg() which internally uses getopt_long
  4617. to parse command-line options. All command-line options are now
  4618. configured by OptionHandler. No manual editing of struct option*
  4619. is required any more.
  4620. * src/NameMatchOptionHandler.h
  4621. * src/OptionHandler.h
  4622. * src/OptionHandlerFactory.cc
  4623. * src/OptionHandlerImpl.h
  4624. * src/OptionParser.cc
  4625. * src/OptionParser.h
  4626. * src/array_fun.h
  4627. * src/main.cc
  4628. * src/option_processing.cc
  4629. * test/OptionHandlerTest.cc
  4630. * test/OptionParserTest.cc
  4631. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4632. Fixed configure error with --disable-epoll
  4633. * configure.ac
  4634. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Fixed compile error when HAVE_EPOLL is not defined.
  4636. Fixed linker error on bigendian systems.
  4637. * src/SocketCore.cc
  4638. * src/SocketCore.h
  4639. * test/DefaultBtProgressInfoFileTest.cc
  4640. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4641. Added --bt-external-ip option. You can specify the external IP
  4642. address to report to a BitTorrent tracker. Although this function
  4643. is named 'external', it can accept any kind of IP addresses.
  4644. * src/DefaultBtAnnounce.cc
  4645. * src/OptionHandlerFactory.cc
  4646. * src/option_processing.cc
  4647. * src/prefs.cc
  4648. * src/prefs.h
  4649. * src/usage_text.h
  4650. * test/DefaultBtAnnounceTest.cc
  4651. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4652. Extracted the algorithm to find the longest incremental sequence
  4653. as max_sequence template.
  4654. * src/LongestSequencePieceSelector.cc
  4655. * src/a2algo.h
  4656. * test/Makefile.am
  4657. * test/a2algoTest.cc
  4658. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4659. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4660. * src/usage_text.h
  4661. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4662. Updated doc for --uri-selector, --http-server-listen-port and
  4663. --enable-http-server option. Documented --event-poll option.
  4664. * doc/aria2c.1.txt
  4665. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4666. Updated doc for --enable-http-server.
  4667. * src/usage_text.h
  4668. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4669. Documented --http-server-listen-port and --enable-http-server in
  4670. man page.
  4671. * doc/aria2c.1.txt
  4672. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4673. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4674. translations. Thanks to all translators.
  4675. * po/es.po
  4676. * po/id.po
  4677. * po/it.po
  4678. * po/ru.po
  4679. * po/uk.po
  4680. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4681. Bump up version number to 1.2.0
  4682. * configure.ac
  4683. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4684. BtContext::getAnnounceTiers() now returns const reference.
  4685. * src/BtContext.h
  4686. * src/DefaultBtContext.cc
  4687. * src/DefaultBtContext.h
  4688. * test/MockBtContext.h
  4689. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4690. Change the number of retries for tracker request based on the
  4691. number of available tracker in a torrent file.
  4692. * src/TrackerWatcherCommand.cc
  4693. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4694. Added _maxTries property to RequestGroup and assign the option
  4695. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4696. RequestGroup::getMaxTries() instead of
  4697. Option::getAsInt(PREF_MAX_TRIES).
  4698. * src/AbstractCommand.cc
  4699. * src/RequestGroup.cc
  4700. * src/RequestGroup.h
  4701. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4702. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4703. Mandriva. I modified the patch: make RequestGroup have the
  4704. timeout value and AdaptiveURISelector directly modifies that
  4705. value.
  4706. * src/AbstractCommand.cc
  4707. * src/AdaptiveURISelector.cc
  4708. * src/AdaptiveURISelector.h
  4709. * src/FtpNegotiationCommand.cc
  4710. * src/RequestGroup.cc
  4711. * src/RequestGroup.h
  4712. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4713. Fixed compiler warning
  4714. * test/IteratableChecksumValidatorTest.cc
  4715. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4717. integrated downloads. This PieceSelector subclass finds the
  4718. longest continuous sequence in the available missing pieces and
  4719. selects the last index of such sequence. This makes HTTP/FTP
  4720. connections less interrupted by the pieces obtained by BitTorrent
  4721. peers.
  4722. * src/DefaultPieceStorage.cc
  4723. * src/DefaultPieceStorage.h
  4724. * src/LongestSequencePieceSelector.cc
  4725. * src/LongestSequencePieceSelector.h
  4726. * src/Makefile.am
  4727. * src/PieceSelector.h
  4728. * src/RarestPieceSelector.h
  4729. * src/RequestGroup.cc
  4730. * test/BtDependencyTest.cc
  4731. * test/DefaultPieceStorageTest.cc
  4732. * test/IteratableChecksumValidatorTest.cc
  4733. * test/LongestSequencePieceSelectorTest.cc
  4734. * test/Makefile.am
  4735. * test/SegmentManTest.cc
  4736. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4737. Fixed the bug that the average speed is wrong in
  4738. http/ftp/BitTorrent integrated download. Only the download bytes
  4739. in BitTorrent were considered.
  4740. * src/RequestGroup.cc
  4741. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4742. Choose port for BitTorrent/DHT randomly from the specified range.
  4743. * src/DHTConnectionImpl.cc
  4744. * src/PeerListenCommand.cc
  4745. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4746. Send HTTP Authorization header only if it is requested by the
  4747. server(response 401). There are some exceptions. The authorization
  4748. header for proxy is always sent if it is available without request
  4749. by the server. If username/password is specified in the URI, it
  4750. is immediately sent to the server without request by the server.
  4751. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4752. SharedHandle<AuthConfig>().
  4753. NetrcAuthResolver::resolveAuthConfig() returns
  4754. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4755. * src/AbstractAuthResolver.cc
  4756. * src/AbstractProxyRequestCommand.cc
  4757. * src/AuthConfigFactory.cc
  4758. * src/AuthConfigFactory.h
  4759. * src/HttpConnection.cc
  4760. * src/HttpRequest.cc
  4761. * src/HttpRequest.h
  4762. * src/HttpResponse.cc
  4763. * src/HttpResponseCommand.cc
  4764. * src/HttpSkipResponseCommand.cc
  4765. * test/AuthConfigFactoryTest.cc
  4766. * test/HttpRequestTest.cc
  4767. * test/HttpResponseTest.cc
  4768. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4769. Remove leading "--" from help keyword and a substring after "="
  4770. from help keyword, so that one can query options by '-h--max-' or
  4771. '-hmax-peers=10'.
  4772. * src/option_processing.cc
  4773. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4774. Rewritten PStringVisitor and its implementation.
  4775. * src/PStringBuildVisitor.cc
  4776. * src/PStringBuildVisitor.h
  4777. * src/PStringDatum.h
  4778. * src/PStringNumLoop.h
  4779. * src/PStringSegment.cc
  4780. * src/PStringSegment.h
  4781. * src/PStringSelect.h
  4782. * src/PStringVisitor.h
  4783. * src/download_helper.cc
  4784. * test/PStringBuildVisitorTest.cc
  4785. * test/ParameterizedStringParserTest.cc
  4786. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4787. Persist connection between the built-in HTTP server and a client
  4788. if a client supports keep-alive. Fixed the bug that aria2 exits
  4789. when the HTTP server receives EOF from a client.
  4790. * src/HttpServer.cc
  4791. * src/HttpServer.h
  4792. * src/HttpServerCommand.cc
  4793. * src/HttpServerCommand.h
  4794. * src/HttpServerResponseCommand.cc
  4795. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4796. Added experimental built-in HTTP server. Currently, when a client
  4797. accesses to the server, it responds with the current download
  4798. progress. By default, it is disabled. To enable the server, give
  4799. --enable-http-server option. To change the default port number
  4800. for the server to listen to, use --http-server-listen-port option.
  4801. The response HTML is very simple and refreshes it self each 1
  4802. second. Because of this refresh, you see flicker in normal web
  4803. browser such as Firefox. I recommend to use console-based browser
  4804. such as elinks, w3m. To connect to the server, run 'elinks
  4805. http://localhost:6800/' while running aria2. Please replace port
  4806. number '6800'(which is default) with your preference.
  4807. * src/DownloadEngineFactory.cc
  4808. * src/HttpHeader.cc
  4809. * src/HttpHeader.h
  4810. * src/HttpHeaderProcessor.cc
  4811. * src/HttpHeaderProcessor.h
  4812. * src/HttpListenCommand.cc
  4813. * src/HttpListenCommand.h
  4814. * src/HttpServer.cc
  4815. * src/HttpServer.h
  4816. * src/HttpServerCommand.cc
  4817. * src/HttpServerCommand.h
  4818. * src/HttpServerResponseCommand.cc
  4819. * src/HttpServerResponseCommand.h
  4820. * src/Makefile.am
  4821. * src/OptionHandlerFactory.cc
  4822. * src/Util.cc
  4823. * src/Util.h
  4824. * src/help_tags.h
  4825. * src/option_processing.cc
  4826. * src/prefs.cc
  4827. * src/prefs.h
  4828. * src/usage_text.h
  4829. * test/HttpHeaderProcessorTest.cc
  4830. * test/UtilTest.cc
  4831. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4832. Removed.
  4833. * src/CheckIntegrityMan.cc
  4834. * src/FileAllocationMan.cc
  4835. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4836. Made (piece) hash check sequential for each RequestGroup because
  4837. simultaneous hash check is slower than sequential execution.
  4838. * src/CheckIntegrityCommand.cc
  4839. * src/CheckIntegrityDispatcherCommand.cc
  4840. * src/CheckIntegrityDispatcherCommand.h
  4841. * src/CheckIntegrityMan.h
  4842. * src/ConsoleStatCalc.cc
  4843. * src/DownloadCommand.cc
  4844. * src/DownloadEngine.cc
  4845. * src/DownloadEngine.h
  4846. * src/DownloadEngineFactory.cc
  4847. * src/Makefile.am
  4848. * src/Makefile.in
  4849. * src/RequestGroup.cc
  4850. * src/StatCalc.h
  4851. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4852. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4853. SequentialDispatcherCommand.
  4854. * src/FileAllocationDispatcherCommand.cc
  4855. * src/SequentialDispatcherCommand.h
  4856. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4857. Rewritten FileAllocationDispatcherCommand using brand new
  4858. SequentialDispatcherCommand.
  4859. * src/DownloadEngineFactory.cc
  4860. * src/FileAllocationCommand.cc
  4861. * src/FileAllocationDispatcherCommand.cc
  4862. * src/FileAllocationDispatcherCommand.h
  4863. * src/Makefile.am
  4864. * src/SequentialDispatcherCommand.h
  4865. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4866. Replaced FileAllocationMan with
  4867. SequentialPicker<FileAllocationEntry>.
  4868. * src/BtCheckIntegrityEntry.cc
  4869. * src/ConsoleStatCalc.cc
  4870. * src/DownloadEngine.cc
  4871. * src/DownloadEngine.h
  4872. * src/DownloadEngineFactory.cc
  4873. * src/FileAllocationCommand.cc
  4874. * src/FileAllocationDispatcherCommand.cc
  4875. * src/FileAllocationMan.h
  4876. * src/Makefile.am
  4877. * src/SequentialPicker.h
  4878. * src/StatCalc.h
  4879. * src/StreamCheckIntegrityEntry.cc
  4880. * test/Makefile.am
  4881. * test/SequentialPickerTest.cc
  4882. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4883. Added doc for adaptive URI selector.
  4884. * doc/aria2c.1.txt
  4885. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4886. Added doc for adaptive URI selector.
  4887. * src/usage_text.h
  4888. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4889. Added doc for --bt-max-peers option.
  4890. * doc/aria2c.1.txt
  4891. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4892. Added doc for --bt-hash-check-seed option.
  4893. * doc/aria2c.1.txt
  4894. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4895. Documented exit codes.
  4896. * doc/aria2c.1.txt
  4897. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4898. Added --bt-max-peers option to specify the maximum number of peers
  4899. per torrent. 0 means unlimited number of peers.
  4900. * src/ActivePeerConnectionCommand.cc
  4901. * src/BtRuntime.h
  4902. * src/DefaultPeerStorage.cc
  4903. * src/DefaultPeerStorage.h
  4904. * src/OptionHandlerFactory.cc
  4905. * src/RequestGroup.cc
  4906. * src/option_processing.cc
  4907. * src/prefs.cc
  4908. * src/prefs.h
  4909. * src/usage_text.h
  4910. * test/DefaultPeerStorageTest.cc
  4911. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4912. Added --bt-hash-check-seed option. If true is given to this
  4913. option, after hash check using --check-integrity option and file
  4914. is complete, continue to seed file. If you want to check file and
  4915. download it only when it is damaged or incomplete, set this option
  4916. to false. This option has effect only on BitTorrent download.
  4917. The default value is true(This is the same behavior with the
  4918. previous release).
  4919. * src/BtCheckIntegrityEntry.cc
  4920. * src/OptionHandlerFactory.cc
  4921. * src/option_processing.cc
  4922. * src/prefs.cc
  4923. * src/prefs.h
  4924. * src/usage_text.h
  4925. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4926. Updated copyright year.
  4927. * src/version_usage.cc
  4928. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4929. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4930. * doc/aria2c.1.txt
  4931. * src/usage_text.h
  4932. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4933. Made the max value of split option unlimited.
  4934. * doc/aria2c.1.txt
  4935. * src/OptionHandlerFactory.cc
  4936. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4937. Fixed compile warning/error.
  4938. * src/DownloadResult.h
  4939. * src/HttpDownloadCommand.cc
  4940. * src/ServerStat.cc
  4941. * test/RequestGroupTest.cc
  4942. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4943. Added --event-poll option to select the method for polling events.
  4944. The available methods are "select" and "epoll". "epoll" is
  4945. available on Linux only. The earlier release has the compile
  4946. option to choose from these methods.
  4947. * configure.ac
  4948. * src/RequestGroupMan.cc
  4949. * src/OptionHandlerFactory.cc
  4950. * src/EpollEventPoll.h
  4951. * src/StreamFileAllocationEntry.cc
  4952. * src/a2io.h
  4953. * src/SelectEventPoll.h
  4954. * src/option_processing.cc
  4955. * src/prefs.h
  4956. * src/EpollEventPoll.cc
  4957. * src/EventPoll.h
  4958. * src/SocketCore.h
  4959. * src/Makefile.am
  4960. * src/main.cc
  4961. * src/DownloadEngine.h
  4962. * src/SelectEventPoll.cc
  4963. * src/DownloadEngine.cc
  4964. * src/SocketCore.cc
  4965. * src/DownloadEngineFactory.cc
  4966. * src/Makefile.in
  4967. * src/prefs.cc
  4968. * src/usage_text.h
  4969. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4970. Included RecoverableException.h from main.cc
  4971. * src/main.cc
  4972. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4973. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4974. now returns last error encountered in the HTTP/FTP downloads as a
  4975. exit status value. If all downloads finished successfully, aria2
  4976. returns 0. The error code is defined in src/DownloadResult.h.
  4977. The error occurred in the download currently in progress is not
  4978. reported as a last error. If no error has encountered but there
  4979. are in progress or waiting downloads, aria2 returns 7.
  4980. * src/AbstractCommand.cc
  4981. * src/DlAbortEx.h
  4982. * src/DlRetryEx.h
  4983. * src/DownloadCommand.cc
  4984. * src/DownloadFailureException.h
  4985. * src/DownloadResult.h
  4986. * src/FtpNegotiationCommand.cc
  4987. * src/HttpSkipResponseCommand.cc
  4988. * src/Makefile.am
  4989. * src/MultiUrlRequestInfo.cc
  4990. * src/MultiUrlRequestInfo.h
  4991. * src/RecoverableException.h
  4992. * src/RequestGroup.cc
  4993. * src/RequestGroup.h
  4994. * src/RequestGroupMan.cc
  4995. * src/RequestGroupMan.h
  4996. * src/URIResult.cc
  4997. * src/URIResult.h
  4998. * src/main.cc
  4999. * src/option_processing.cc
  5000. * test/RequestGroupTest.cc
  5001. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5002. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5003. patch adds AdaptiveURISelector, which selects one of the bests
  5004. mirrors for first and reserved connections. For supplementary
  5005. ones, it returns mirrors which has not been tested yet, and if
  5006. each of them already tested, returns mirrors which has to be
  5007. tested again. Otherwise, it doesn't return anymore mirrors.
  5008. * src/AdaptiveURISelector.cc
  5009. * src/AdaptiveURISelector.h
  5010. * src/FtpNegotiationCommand.cc
  5011. * src/HttpResponseCommand.cc
  5012. * src/Makefile.am
  5013. * src/Makefile.in
  5014. * src/OptionHandlerFactory.cc
  5015. * src/RequestGroup.cc
  5016. * src/RequestGroup.h
  5017. * src/RequestGroupMan.cc
  5018. * src/ServerStat.cc
  5019. * src/ServerStat.h
  5020. * src/ServerStatMan.cc
  5021. * src/SpeedCalc.cc
  5022. * src/URISelector.h
  5023. * src/prefs.cc
  5024. * src/prefs.h
  5025. * test/RequestGroupManTest.cc
  5026. * test/ServerStatManTest.cc
  5027. * test/ServerStatTest.cc
  5028. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5029. Fixed unit test error.
  5030. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5031. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. * Release 1.1.2
  5033. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5034. Updated Russian translation. Thanks to the translators.
  5035. * po/ru.po
  5036. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5037. Added the description of --use-head option to man page.
  5038. * doc/aria2c.1.txt
  5039. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5040. Bump up version number to 1.1.2
  5041. * configure.ac
  5042. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Added --use-head option to toggle whether HEAD method should be
  5044. used in the first HTTP request. By default aria2 uses HEAD method
  5045. as the first request. When the server doesn't recognize HEAD, then
  5046. give aria2 --use-head=false to force aria2 to use GET method
  5047. instead.
  5048. * src/OptionHandlerFactory.cc
  5049. * src/RequestGroupMan.cc
  5050. * src/option_processing.cc
  5051. * src/prefs.cc
  5052. * src/prefs.h
  5053. * src/usage_text.h
  5054. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5055. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5056. message is received before CHOKE message. The old implementation
  5057. doen't clear the use-bit of the piece when recieved REJECT
  5058. message.
  5059. * src/DefaultBtMessageDispatcher.cc
  5060. * test/DefaultBtMessageDispatcherTest.cc
  5061. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5062. * Release 1.1.1
  5063. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Bump up version number to 1.1.1.
  5065. * configure.ac
  5066. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5067. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5068. is printed repeatedly.
  5069. * src/ConsoleStatCalc.cc
  5070. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5071. * Release 1.1.0
  5072. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5073. Added ifdef clause for conditional compilation.
  5074. * src/main.cc
  5075. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5076. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5077. translations. Thanks to all translators.
  5078. * po/ja.po
  5079. * po/ru.po
  5080. * po/uk.po
  5081. * po/zh_CN.po
  5082. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5083. Added the preceding ">>> " before the message "Printing the
  5084. contents of file..." to make the output more readable.
  5085. * src/main.cc
  5086. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5087. Added try-catch block in the loop in showFiles() to continue the
  5088. operation even if the exception occurred in one file.
  5089. * src/main.cc (showFiles)
  5090. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5091. Made messages in showFiles() translatable.
  5092. * po/aria2.pot
  5093. * src/main.cc
  5094. * src/message.h
  5095. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5096. Print the contents of Torrent/Metalink files are printed without
  5097. -T/-M options.
  5098. * src/main.cc
  5099. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5100. Escaped '--' with '\--'
  5101. * README
  5102. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5103. Updated "How to build" section in README. Mentioned about
  5104. --with-ca-bundle compile option.
  5105. * README
  5106. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5107. Bump up version number to 1.1.0.
  5108. * configure.ac
  5109. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5110. Added a note for --dht-listen-port option.
  5111. * doc/aria2c.1.txt
  5112. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5113. Update doc for --realtime-chunk-checksum option.
  5114. * doc/aria2c.1.txt
  5115. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5116. Update doc for --realtime-chunk-checksum option.
  5117. * src/usage_text.h
  5118. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5119. Updated French, Japanese, Russian and Ukrainian translations.
  5120. Thanks to all translators.
  5121. * po/fr.po
  5122. * po/ja.po
  5123. * po/ru.po
  5124. * po/uk.po
  5125. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5126. Renamed aria2c.pot to aria2.pot
  5127. * po/aria2.pot
  5128. * po/aria2c.pot: Removed.
  5129. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5130. Removed MetaEntry.h
  5131. * src/Makefile.am
  5132. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5133. Rename file by appending digits if a local file exists and its
  5134. file size is larger than that of remote file with --continue
  5135. option. The old implementation just throws exception in such case.
  5136. * src/RequestGroup.cc
  5137. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5138. Fixed the bug that download progress summary is not printed in the
  5139. interval specified by the option.
  5140. * src/ConsoleStatCalc.cc
  5141. * src/ConsoleStatCalc.h
  5142. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5143. Fixed compiler warning
  5144. * src/Cookie.cc
  5145. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5146. Fixed the cookie implementation based on RFC2965.
  5147. Now if a value in domain field is not started with dot, then
  5148. prepend dot. That means a cookie with domain=sf.net is sent to
  5149. wiki.sf.net.
  5150. * src/Cookie.cc
  5151. * test/CookieParserTest.cc
  5152. * test/CookieStorageTest.cc
  5153. * test/CookieTest.cc
  5154. * test/NsCookieParserTest.cc
  5155. * test/Sqlite3MozCookieParserTest.cc
  5156. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5157. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5158. is enabled and the server doesn't support keep-alive.
  5159. * src/AbstractCommand.cc
  5160. * src/DownloadCommand.cc
  5161. * src/HttpDownloadCommand.cc
  5162. * src/HttpDownloadCommand.h
  5163. * src/HttpResponseCommand.cc
  5164. * src/Request.cc
  5165. * src/Request.h
  5166. * test/RequestTest.cc
  5167. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5168. Removed Dictionary/List/Data and its related classes.
  5169. * src/BencodeVisitor.cc: Removed.
  5170. * src/BencodeVisitor.h: Removed.
  5171. * src/Data.cc: Removed.
  5172. * src/Data.h: Removed.
  5173. * src/Dictionary.cc: Removed.
  5174. * src/Dictionary.h: Removed.
  5175. * src/List.cc: Removed.
  5176. * src/List.h: Removed.
  5177. * src/Makefile.am
  5178. * src/MetaEntry.h: Removed.
  5179. * src/MetaEntryVisitor.h: Removed.
  5180. * src/MetaFileUtil.cc: Removed.
  5181. * src/MetaFileUtil.h: Removed.
  5182. * test/BencodeVisitorTest.cc: Removed.
  5183. * test/DataTest.cc: Removed.
  5184. * test/DictionaryTest.cc: Removed.
  5185. * test/ListTest.cc: Removed.
  5186. * test/Makefile.am
  5187. * test/MetaFileUtilTest.cc: Removed.
  5188. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5189. Removed include of MetaEntry.h
  5190. * test/DHTMessageTrackerEntryTest.cc
  5191. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5192. Use BDE instead of Dictionary/List/Data.
  5193. * src/AnnounceList.cc
  5194. * src/AnnounceList.h
  5195. * test/AnnounceListTest.cc
  5196. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5197. Use BDE instead of Dictionary/List/Data.
  5198. * src/DHTAbstractMessage.cc
  5199. * src/DHTAbstractMessage.h
  5200. * src/DHTAnnouncePeerMessage.cc
  5201. * src/DHTAnnouncePeerMessage.h
  5202. * src/DHTAnnouncePeerReplyMessage.cc
  5203. * src/DHTAnnouncePeerReplyMessage.h
  5204. * src/DHTFindNodeMessage.cc
  5205. * src/DHTFindNodeMessage.h
  5206. * src/DHTFindNodeReplyMessage.cc
  5207. * src/DHTFindNodeReplyMessage.h
  5208. * src/DHTGetPeersMessage.cc
  5209. * src/DHTGetPeersMessage.h
  5210. * src/DHTGetPeersReplyMessage.cc
  5211. * src/DHTGetPeersReplyMessage.h
  5212. * src/DHTMessageFactory.h
  5213. * src/DHTMessageFactoryImpl.cc
  5214. * src/DHTMessageFactoryImpl.h
  5215. * src/DHTMessageReceiver.cc
  5216. * src/DHTMessageTracker.cc
  5217. * src/DHTMessageTracker.h
  5218. * src/DHTPingMessage.cc
  5219. * src/DHTPingMessage.h
  5220. * src/DHTPingReplyMessage.cc
  5221. * src/DHTPingReplyMessage.h
  5222. * src/DHTQueryMessage.cc
  5223. * src/DHTQueryMessage.h
  5224. * src/DHTResponseMessage.cc
  5225. * src/DHTResponseMessage.h
  5226. * test/DHTAnnouncePeerMessageTest.cc
  5227. * test/DHTAnnouncePeerReplyMessageTest.cc
  5228. * test/DHTFindNodeMessageTest.cc
  5229. * test/DHTFindNodeReplyMessageTest.cc
  5230. * test/DHTGetPeersMessageTest.cc
  5231. * test/DHTGetPeersReplyMessageTest.cc
  5232. * test/DHTMessageFactoryImplTest.cc
  5233. * test/DHTMessageTrackerTest.cc
  5234. * test/DHTPingMessageTest.cc
  5235. * test/DHTPingReplyMessageTest.cc
  5236. * test/MockDHTMessageFactory.h
  5237. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5238. Added tests the case where length < 0 is specified.
  5239. * test/BencodeTest.cc
  5240. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5241. Fixed memory leak in decoderawstring()
  5242. * src/bencode.cc
  5243. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5244. Added missing #ifdef guard. Added uc() function for String and
  5245. removeKey() for Dict.
  5246. * src/bencode.cc
  5247. * src/bencode.h
  5248. * test/BencodeTest.cc
  5249. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5250. Use BDE instead of Dictionary/List/Data.
  5251. * src/HandshakeExtensionMessage.cc
  5252. * src/HandshakeExtensionMessage.h
  5253. * test/HandshakeExtensionMessageTest.cc
  5254. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5255. Added --max-overall-upload-limit option. This option limits the
  5256. overall upload speed. Stated in help message that the existing
  5257. --max-upload-limit option limits the upload speed per each
  5258. torrent. Man page is also updated.
  5259. * doc/aria2c.1.txt
  5260. * src/DefaultBtMessageDispatcher.cc
  5261. * src/DefaultBtMessageDispatcher.h
  5262. * src/OptionHandlerFactory.cc
  5263. * src/PeerInteractionCommand.cc
  5264. * src/option_processing.cc
  5265. * src/prefs.cc
  5266. * src/prefs.h
  5267. * src/usage_text.h
  5268. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5269. Use BDE instead of Dictionary/List/Data classes.
  5270. * src/CompactPeerListProcessor.cc
  5271. * src/CompactPeerListProcessor.h
  5272. * src/DefaultBtAnnounce.cc
  5273. * src/DefaultBtContext.cc
  5274. * src/DefaultBtContext.h
  5275. * src/DefaultPeerListProcessor.cc
  5276. * src/DefaultPeerListProcessor.h
  5277. * src/DelegatingPeerListProcessor.cc
  5278. * src/DelegatingPeerListProcessor.h
  5279. * src/PeerListProcessor.h
  5280. * src/UTPexExtensionMessage.cc
  5281. * src/Util.h
  5282. * src/message.h
  5283. * test/DefaultBtContextTest.cc
  5284. * test/DefaultPeerListProcessorTest.cc
  5285. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5286. Added bencode helper functions and BDE class.
  5287. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5288. * src/Makefile.am
  5289. * src/bencode.cc
  5290. * src/bencode.h
  5291. * test/BencodeTest.cc
  5292. * test/Makefile.am
  5293. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5294. Fixed the bug that bad URI is sent to the tracker when the announe
  5295. URI in torrent file includes query.
  5296. * src/DefaultBtAnnounce.cc
  5297. * test/DefaultBtAnnounceTest.cc
  5298. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5299. Added Option::blank().
  5300. Use !Option::blank(name) instead of Option::defined(name) for
  5301. the options that take filename.
  5302. * src/MultiUrlRequestInfo.cc
  5303. * src/Option.cc
  5304. * src/Option.h
  5305. * src/main.cc
  5306. * src/option_processing.cc
  5307. * test/OptionTest.cc
  5308. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5309. Documented the default value of --check-certificate option in man
  5310. page.
  5311. * doc/aria2c.1.txt
  5312. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5313. Enabled --check-certificate by default. Added compile
  5314. time(configure) option --with-ca-bundle to specify CA bundle.
  5315. Warn if --check-certificate=true and --ca-certificate is not
  5316. specified or loading CA certificate is failed.
  5317. * configure.ac
  5318. * src/MultiUrlRequestInfo.cc
  5319. * src/OptionHandlerFactory.cc
  5320. * src/message.h
  5321. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5322. Mentioned https tag in help option.
  5323. * doc/aria2c.1.txt
  5324. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5325. Added `https' tag to help option category. Added https tag to
  5326. --ca-certificate, --certificate, --check-certificate and
  5327. --private-key option.
  5328. * src/OptionHandlerFactory.cc
  5329. * src/help_tags.h
  5330. * src/option_processing.cc
  5331. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5332. Changed the package name from `aria2c' to `aria2' in order to fix
  5333. the packaging issue in Debian and Fedora. The name of the
  5334. executable is not changed.
  5335. * configure.ac
  5336. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5337. Fixed typos
  5338. * src/usage_text.h
  5339. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5340. Fixed typos and updated doc.
  5341. * README
  5342. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5343. Fixed typos
  5344. * doc/aria2c.1.txt
  5345. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5346. Fixed typos
  5347. * src/usage_text.h
  5348. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5349. Print a message when no files to download.
  5350. * src/download_helper.cc
  5351. * src/main.cc
  5352. * src/message.h
  5353. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5354. RFC3986 complied Percent-Encoding(urlencode).
  5355. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5356. ones.
  5357. * src/Request.cc
  5358. * src/Util.cc
  5359. * src/Util.h
  5360. * test/BtHandshakeMessageTest.cc
  5361. * test/DefaultBtAnnounceTest.cc
  5362. * test/DefaultBtContextTest.cc
  5363. * test/RequestTest.cc
  5364. * test/UtilTest.cc
  5365. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5366. Fixed the bug that prevents aria2 from downloading 0-length files
  5367. via HTTP/FTP.
  5368. * src/DefaultBtContext.cc
  5369. * src/DefaultBtContext.h
  5370. * src/DownloadContext.h
  5371. * src/FtpNegotiationCommand.cc
  5372. * src/HttpResponseCommand.cc
  5373. * src/HttpResponseCommand.h
  5374. * src/RequestGroup.cc
  5375. * src/SingleFileDownloadContext.cc
  5376. * src/SingleFileDownloadContext.h
  5377. * test/BtPostDownloadHandlerTest.cc
  5378. * test/MetalinkPostDownloadHandlerTest.cc
  5379. * test/MockBtContext.h
  5380. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5381. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5382. * src/option_processing.cc
  5383. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5384. Applied aria2-1.0.1-mingw.patch.
  5385. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5386. mingw.
  5387. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5388. * src/SocketCore.cc
  5389. * src/a2netcompat.h
  5390. * test/SocketCoreTest.cc
  5391. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5392. * Release 1.0.1
  5393. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5394. Updated Ukrainian and Norwegian Nynorsk translations.
  5395. Thanks to all translators.
  5396. * po/nn.po
  5397. * po/uk.po
  5398. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5399. Don't show download result when -S option is used.
  5400. * src/main.cc
  5401. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5402. Bump up version number to 1.0.1
  5403. * configure.ac
  5404. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5405. Closed files after the test cases in MultiDiskWriterTest::
  5406. testResetDiskWriterEntries(). This will fix the unit test error
  5407. in mingw32 build.
  5408. * test/MultiDiskWriterTest.cc
  5409. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5410. Use HEAD method to get file size from HTTP server for segmented
  5411. downloading.
  5412. The request to the BitTorrent Tracker always uses GET method because
  5413. the response of the tracker is small and it doesn't need segmented
  5414. download.
  5415. * src/FtpNegotiationCommand.cc
  5416. * src/HttpRequest.cc
  5417. * src/HttpResponseCommand.cc
  5418. * src/HttpSkipResponseCommand.cc
  5419. * src/RequestGroup.cc
  5420. * src/RequestGroup.h
  5421. * src/TrackerWatcherCommand.cc
  5422. * test/HttpRequestTest.cc
  5423. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5424. Fixed the bug that causes floating exception when -T option is used and
  5425. no URIs are given.
  5426. * src/download_helper.cc
  5427. * test/DownloadHelperTest.cc
  5428. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5429. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5430. errors in MinGW:
  5431. Closed file after saving server stats (RequestGroupMan.cc)
  5432. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5433. Ignored case & handled 2-digit years (strptime.c)
  5434. Added missing suseconds_t definition (a2time.h)
  5435. Fixed socket CLOSE() define (SocketCore.cc)
  5436. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5437. Changed utime() test values from x000 to x00000 as MinGW failed on
  5438. values less than timezone offset from Unix epoch
  5439. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5440. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5441. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5442. handle negative dates (CookieParserTest.cc)
  5443. * src/a2time.h
  5444. * src/FtpConnection.cc
  5445. * src/RequestGroupMan.cc
  5446. * src/SocketCore.cc
  5447. * src/strptime.c
  5448. * test/CookieParserTest.cc
  5449. * test/CopyDiskAdaptorTest.cc
  5450. * test/FileTest.cc
  5451. * test/FtpConnectionTest.cc
  5452. * test/MultiDiskAdaptorTest.cc
  5453. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5454. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5455. * doc/aria2c.1.txt
  5456. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5457. * Release 1.0.0
  5458. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5459. Added '~' to reserved characters.
  5460. * src/Util.cc
  5461. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5462. Do not urlencode Request::url in setUrl() because we want unmodified
  5463. URL using Request::getUrl()
  5464. * src/Request.cc
  5465. * src/Request.h
  5466. * test/RequestTest.cc
  5467. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5468. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5469. Thanks to all translators.
  5470. * po/bg.po
  5471. * po/fr.po
  5472. * po/ja.po
  5473. * po/ru.po
  5474. * po/uk.po
  5475. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5476. Bump up version number to 1.0.0
  5477. * configure.ac
  5478. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5479. Added nosqlite3 build to build_test.sh.
  5480. Renamed noxml as expat.
  5481. * build_test.sh
  5482. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5483. Updated INPUT FILE section.
  5484. * doc/aria2c.1.txt
  5485. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5486. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5487. on big endian systems because test .aria2 files are made for little
  5488. endian systems.
  5489. * test/DefaultBtProgressInfoFileTest.cc
  5490. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5491. Dropped ares support.
  5492. * README
  5493. * configure.ac
  5494. * m4/libares.m4: Removed.
  5495. * src/AsyncNameResolver.cc
  5496. * src/Makefile.am
  5497. * test/Makefile.am
  5498. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5499. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5500. Removed const qualifier from DiskWriter::size().
  5501. * src/AbstractDiskWriter.cc
  5502. * src/AbstractDiskWriter.h
  5503. * src/ByteArrayDiskWriter.cc
  5504. * src/ByteArrayDiskWriter.h
  5505. * src/DiskWriter.h
  5506. * test/ByteArrayDiskWriterTest.cc
  5507. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5508. Fixed the bug that causes segmentation fault/bus error during executing
  5509. choking algorithm while seeding. This is caused by improper
  5510. implementation of compare function which returns inconsistent results
  5511. depending on the timing of last unchoke.
  5512. * src/BtSeederStateChoke.cc
  5513. * src/BtSeederStateChoke.h
  5514. * src/DefaultPeerStorage.cc
  5515. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5516. Removed TODO
  5517. * TODO
  5518. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5519. Added a section that explains how to pass argument to options that
  5520. takes optional arguments with its short form.
  5521. * doc/aria2c.1.txt
  5522. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5523. Added -u for the short form of --max-upload-limit option.
  5524. * doc/aria2c.1.txt
  5525. * src/option_processing.cc
  5526. * src/usage_text.h
  5527. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5528. Added -V for the short form of --check-integrity option.
  5529. Now the argument of --check-integrity option is optional:
  5530. if it is omitted, it is evaluated as true.
  5531. * doc/aria2c.1.txt
  5532. * src/option_processing.cc
  5533. * src/usage_text.h
  5534. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5535. Made the default value of --ftp-pasv option set to true and it can take
  5536. true/false values.
  5537. * src/OptionHandlerFactory.cc
  5538. * src/option_processing.cc
  5539. * src/usage_text.h
  5540. * doc/aria2c.1.txt
  5541. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5542. Given custom random number generator to std::random_shuffle.
  5543. * src/AnnounceList.cc
  5544. * src/BtLeecherStateChoke.cc
  5545. * src/BtSeederStateChoke.cc
  5546. * src/DefaultBtRequestFactory.cc
  5547. * src/MetalinkEntry.cc
  5548. * src/RarestPieceSelector.cc
  5549. * src/SimpleRandomizer.cc
  5550. * src/SimpleRandomizer.h
  5551. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5552. Now the default value of --enable-direct-io is true.
  5553. * src/OptionHandlerFactory.cc
  5554. * doc/aria2c.1.txt
  5555. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5556. Erase peer before executing onReturningPeer and onErasingPeer
  5557. because choking algorithm called from onReturningPeer doesn't
  5558. like erasing peer in the active peer list.
  5559. * src/DefaultPeerStorage.cc
  5560. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5561. Instead of creating special filename in createDownloadResult() if
  5562. inMemoryDownload() is true, now it is done in getFilePath().
  5563. * src/RequestGroup.cc
  5564. * test/RequestGroupTest.cc
  5565. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5566. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5567. processed in memory. This is the fix for previous comment out.
  5568. * src/MemoryBufferPreDownloadHandler.cc
  5569. * src/RequestGroup.cc
  5570. * src/RequestGroup.h
  5571. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5572. Commented out the code which sets virtual directory path "[MEMORY]"
  5573. propagate directory to store to following RequestGroup.
  5574. * src/MemoryBufferPreDownloadHandler.cc
  5575. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Bump up version number to 1.0.0b
  5577. * configure.ac
  5578. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5579. Added input_uris.txt to EXTRA_DIST
  5580. * test/Makefile.am
  5581. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5582. Removed PeerObject.h from Makefile.am
  5583. * src/Makefile.am
  5584. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5585. Avoid slow seeding
  5586. * src/PeerInteractionCommand.cc
  5587. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5588. Updated usage for -i option.
  5589. * src/usage_text.h (TEXT_INPUT_FILE)
  5590. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5591. Added INPUT FILE section to man page.
  5592. Escaped fake URLs.
  5593. * doc/aria2c.1.txt
  5594. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5595. Fixed wrong note position for -o option.
  5596. * doc/aria2c.1.txt
  5597. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5598. Fixed compile error without SSL/XML library.
  5599. * src/DefaultBtProgressInfoFile.cc
  5600. * src/DefaultBtProgressInfoFile.h
  5601. * src/FileMetalinkParserState.cc
  5602. * src/RequestGroup.h
  5603. * src/SocketCore.cc
  5604. * src/SocketCore.h
  5605. * src/VerificationMetalinkParserState.cc
  5606. * src/download_helper.h
  5607. * src/main.cc
  5608. * test/DefaultBtProgressInfoFileTest.cc
  5609. * test/DownloadHelperTest.cc
  5610. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5611. Rewritten URI handling functions. They are now provided as a testable
  5612. functions.
  5613. * src/Makefile.am
  5614. * src/RequestGroup.cc
  5615. * src/RequestGroup.h
  5616. * src/download_helper.cc
  5617. * src/download_helper.h
  5618. * src/main.cc
  5619. * test/DownloadHelperTest.cc
  5620. * test/Makefile.am
  5621. * test/input_uris.txt
  5622. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5623. Quickly terminate commands when ctrl-c is pressed.
  5624. * src/DownloadEngine.cc
  5625. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5626. Quickly terminate idle commands when download finished.
  5627. * src/AbstractCommand.cc
  5628. * src/DownloadCommand.cc
  5629. * src/DownloadEngine.cc
  5630. * src/DownloadEngine.h
  5631. * src/SleepCommand.cc
  5632. * src/SleepCommand.h
  5633. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5634. Added the ability to specify output filename and directory in input
  5635. file.
  5636. Additional parameters are added in the following line of URIs
  5637. with proceeding white space(s), 1 parameter in 1 line.
  5638. The parameter names are the same with the command-line option name
  5639. without proceeding "--". Not all the options are available here:
  5640. at the moment, 'dir' and 'out' options are avialable.
  5641. Please note that out option has no effect against Metalink or BitTorrent
  5642. downloads.
  5643. Example input file:
  5644. http://host/foo-1.1.tar.bz2
  5645. out=foo.tar.bz2
  5646. dir=/tmp/downloads
  5647. http://host/thundermonkey-2.0.tar.bz2
  5648. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5649. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5650. thundermonkey-2.0.tar.bz2 is saved as
  5651. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5652. * src/BtPostDownloadHandler.cc
  5653. * src/Metalink2RequestGroup.cc
  5654. * src/Metalink2RequestGroup.h
  5655. * src/MetalinkPostDownloadHandler.cc
  5656. * src/UriListParser.cc
  5657. * src/UriListParser.h
  5658. * src/main.cc
  5659. * test/Metalink2RequestGroupTest.cc
  5660. * test/UriListParserTest.cc
  5661. * test/filelist1.txt
  5662. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5663. Fixed error when SSL library is not found.
  5664. * configure.ac
  5665. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Cross referenced among -s, -C and -j options.
  5667. Updated usage of -C and -s options.
  5668. * src/usage_text.h
  5669. * doc/aria2c.1.txt
  5670. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5671. Fixed bad cast in 32bit platforms.
  5672. * test/DefaultPieceStorageTest.cc
  5673. (DefaultPieceStorageTest::testGetCompletedLength)
  5674. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5675. Fixed unit test fails on 32bit platforms.
  5676. * test/CookieParserTest.cc
  5677. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5678. Show an average download speed in Download results.
  5679. * src/BtFileAllocationEntry.cc
  5680. * src/DefaultPieceStorage.cc
  5681. * src/DownloadContext.cc
  5682. * src/DownloadContext.h
  5683. * src/DownloadResult.h
  5684. * src/RequestGroup.cc
  5685. * src/RequestGroupMan.cc
  5686. * src/StreamFileAllocationEntry.cc
  5687. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5688. Fixed the bug that metalink file is not processed if Content-Type
  5689. field has a paramter.
  5690. * src/HttpResponse.cc
  5691. * src/HttpResponse.h
  5692. * test/HttpResponseTest.cc
  5693. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5694. Removed unused code.
  5695. * src/DefaultBtAnnounce.cc
  5696. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5697. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5698. the value larger than DefaultPieceStorage::getTotalLength() when
  5699. in flight pieces are involved.
  5700. * src/DefaultPieceStorage.cc
  5701. * test/DefaultPieceStorageTest.cc
  5702. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5703. Bump up version number to 1.0.0a.
  5704. * configure.ac
  5705. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5706. Updated configure.ac
  5707. * configure.ac
  5708. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5709. Added usege for proxy.
  5710. * doc/aria2c.1.txt
  5711. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5712. Added usage for --ca-certificate, --certificate, --private-key and
  5713. --check-certificate options.
  5714. * doc/aria2c.1.txt
  5715. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5716. Updated man page
  5717. * doc/aria2c.1.txt
  5718. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5719. Added --no-proxy option. It receives comman separated hostname or
  5720. domains to which proxy should not be used.
  5721. aria2 honors the environment variable no_proxy to override no-proxy
  5722. value in configuration file. The user can override the environment
  5723. variable no_proxy with --no-proxy command-line option.
  5724. * src/AbstractCommand.cc
  5725. * src/OptionHandlerFactory.cc
  5726. * src/option_processing.cc
  5727. * src/prefs.cc
  5728. * src/prefs.h
  5729. * src/usage_text.h
  5730. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5731. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5732. The CA certificates are specified in --ca-certificate option.
  5733. By default, the verification is disabled. Use --check-certificate
  5734. option to enable it.
  5735. * src/HttpRequestCommand.cc
  5736. * src/LibgnutlsTLSContext.cc
  5737. * src/LibgnutlsTLSContext.h
  5738. * src/LibsslTLSContext.cc
  5739. * src/LibsslTLSContext.h
  5740. * src/MultiUrlRequestInfo.cc
  5741. * src/OptionHandlerFactory.cc
  5742. * src/SocketCore.cc
  5743. * src/SocketCore.h
  5744. * src/a2functional.h
  5745. * src/message.h
  5746. * src/option_processing.cc
  5747. * src/prefs.cc
  5748. * src/prefs.h
  5749. * src/usage_text.h
  5750. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5751. Added client certificate authentication for SSL/TLS.
  5752. Currently a private key must be decrypted for use with aria2.
  5753. If a user accidentally gives encrypted file to aria2 then following
  5754. thing happens:
  5755. If encrypted private key is given to aria2, it behaves differently
  5756. depending on the ssl library it uses. If aria2 built with openssl then
  5757. openssl prompts the user for password. If aria2 build with gnutls then
  5758. aria2 exists with error at start up.
  5759. * src/DownloadEngineFactory.cc
  5760. * src/MultiUrlRequestInfo.cc
  5761. * src/OptionHandlerFactory.cc
  5762. * src/option_processing.cc
  5763. * src/prefs.cc
  5764. * src/prefs.h
  5765. * src/usage_text.h
  5766. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5767. Introduced TLSContext that holds TLS related data that can be shared
  5768. with multiple SSL connections.
  5769. * src/DownloadEngineFactory.cc
  5770. * src/LibgnutlsTLSContext.cc
  5771. * src/LibgnutlsTLSContext.h
  5772. * src/LibsslTLSContext.cc
  5773. * src/LibsslTLSContext.h
  5774. * src/Makefile.am
  5775. * src/SocketCore.cc
  5776. * src/SocketCore.h
  5777. * src/TLSContext.h
  5778. * src/message.h
  5779. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5780. Fixed the bug that the DiskWriter of the first FileEntry whose
  5781. `needsFileAllocation' property is false is not created
  5782. even if it shares a piece with next FileEntry which `requested' property
  5783. is true.
  5784. Fixed the bug that zero-length file is not created if pre file
  5785. allocation is not done.
  5786. * src/MultiDiskAdaptor.cc
  5787. * src/MultiDiskAdaptor.h
  5788. * test/MultiDiskAdaptorTest.cc
  5789. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5790. Added the ability to pool proxy connection.
  5791. The conneciton in FTP with proxy-method=GET is not pooled.
  5792. Proxy-Connection header will not be sent when sending CONNECT method.
  5793. * src/DownloadEngine.cc
  5794. * src/DownloadEngine.h
  5795. * src/FtpFinishDownloadCommand.cc
  5796. * src/FtpInitiateConnectionCommand.cc
  5797. * src/FtpNegotiationCommand.cc
  5798. * src/HttpDownloadCommand.cc
  5799. * src/HttpInitiateConnectionCommand.cc
  5800. * src/HttpRequest.cc
  5801. * src/HttpRequest.h
  5802. * src/HttpResponse.cc
  5803. * src/HttpSkipResponseCommand.cc
  5804. * test/HttpRequestTest.cc
  5805. * test/HttpResponseTest.cc
  5806. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. Handle date before epoch.
  5808. To create *bad* Time object, call Time::null().
  5809. * src/CookieParser.cc
  5810. * src/FtpConnection.cc
  5811. * src/FtpConnection.h
  5812. * src/FtpNegotiationCommand.cc
  5813. * src/RequestGroup.cc
  5814. * src/TimeA2.cc
  5815. * src/TimeA2.h
  5816. * test/CookieParserTest.cc
  5817. * test/FtpConnectionTest.cc
  5818. * test/TimeTest.cc
  5819. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Added support for following envrionment variables: http_proxy,
  5821. https_proxy, ftp_proxy and all_proxy.
  5822. Each variable is equivalent to the aria2 option whose name is the
  5823. variable name with '_' replaced with '-'.
  5824. They overrides options specified in aria2.conf file.
  5825. The envrionment variables can be overrode using command-line option.
  5826. * src/option_processing.cc
  5827. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5828. Renamed --http-proxy-method as --proxy-method.
  5829. * src/AbstractCommand.cc
  5830. * src/FtpInitiateConnectionCommand.cc
  5831. * src/HttpInitiateConnectionCommand.cc
  5832. * src/OptionHandlerFactory.cc
  5833. * src/option_processing.cc
  5834. * src/prefs.cc
  5835. * src/prefs.h
  5836. * src/usage_text.h
  5837. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5838. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5839. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5840. Above 3 options and --http-proxy option can handle proxy in URL format
  5841. like: http://user:passwd@host:port.
  5842. If a proxy requires user/password, they must be specified in a URL.
  5843. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5844. instead.
  5845. * src/AbstractCommand.cc
  5846. * src/AbstractCommand.h
  5847. * src/AbstractProxyRequestCommand.cc
  5848. * src/AbstractProxyRequestCommand.h
  5849. * src/AuthConfigFactory.cc
  5850. * src/AuthConfigFactory.h
  5851. * src/FtpFinishDownloadCommand.cc
  5852. * src/FtpInitiateConnectionCommand.cc
  5853. * src/FtpInitiateConnectionCommand.h
  5854. * src/FtpNegotiationCommand.cc
  5855. * src/FtpTunnelRequestCommand.cc
  5856. * src/FtpTunnelRequestCommand.h
  5857. * src/HttpDownloadCommand.cc
  5858. * src/HttpInitiateConnectionCommand.cc
  5859. * src/HttpInitiateConnectionCommand.h
  5860. * src/HttpProxyRequestCommand.cc
  5861. * src/HttpProxyRequestCommand.h
  5862. * src/HttpRequest.cc
  5863. * src/HttpRequest.h
  5864. * src/HttpRequestCommand.cc
  5865. * src/HttpRequestCommand.h
  5866. * src/HttpSkipResponseCommand.cc
  5867. * src/InitiateConnectionCommand.cc
  5868. * src/InitiateConnectionCommand.h
  5869. * src/OptionHandlerFactory.cc
  5870. * src/OptionHandlerImpl.h
  5871. * src/Request.cc
  5872. * src/option_processing.cc
  5873. * src/prefs.cc
  5874. * src/prefs.h
  5875. * src/usage_text.h
  5876. * test/AuthConfigFactoryTest.cc
  5877. * test/HttpRequestTest.cc
  5878. * test/OptionHandlerTest.cc
  5879. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. Execute choking algorithm when unchoked and interested peer is
  5881. disconected.
  5882. * src/DefaultPeerStorage.cc
  5883. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5884. Added testcase for BtNotInterestedMessage from unchoked peer.
  5885. * test/BtNotInterestedMessageTest.cc
  5886. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5887. Execute choking algorithm when BtInterestedMessage arrives from
  5888. unchoked peer.
  5889. * src/BtInterestedMessage.cc
  5890. * src/BtInterestedMessage.h
  5891. * src/DefaultBtMessageFactory.cc
  5892. * test/BtInterestedMessageTest.cc
  5893. * test/MockPeerStorage.h
  5894. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5895. AuthConfigFactory is now part of DownloadEngine.
  5896. * src/AbstractProxyRequestCommand.cc
  5897. * src/AuthConfigFactory.h
  5898. * src/DownloadEngine.cc
  5899. * src/DownloadEngine.h
  5900. * src/FtpConnection.cc
  5901. * src/FtpConnection.h
  5902. * src/FtpNegotiationCommand.cc
  5903. * src/HttpConnection.cc
  5904. * src/HttpRequest.cc
  5905. * src/HttpRequest.h
  5906. * src/HttpRequestCommand.cc
  5907. * src/HttpResponse.cc
  5908. * src/HttpResponseCommand.cc
  5909. * src/HttpSkipResponseCommand.cc
  5910. * src/MultiUrlRequestInfo.cc
  5911. * src/main.cc
  5912. * test/FtpConnectionTest.cc
  5913. * test/HttpRequestTest.cc
  5914. * test/HttpResponseTest.cc
  5915. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5916. Corrected catched exception type.
  5917. * src/ServerStatMan.cc
  5918. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5919. DNSCache is now part of DownloadEngine.
  5920. * src/DNSCache.h
  5921. * src/DownloadEngine.cc
  5922. * src/DownloadEngine.h
  5923. * src/InitiateConnectionCommand.cc
  5924. * src/MultiUrlRequestInfo.cc
  5925. * test/Makefile.am
  5926. * test/Makefile.in
  5927. * test/SimpleDNSCacheTest.cc
  5928. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5929. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5930. DownloadEngine.
  5931. * src/ActivePeerConnectionCommand.cc
  5932. * src/BtSetup.cc
  5933. * src/CUIDCounter.h
  5934. * src/DHTSetup.cc
  5935. * src/DownloadCommand.cc
  5936. * src/DownloadEngine.cc
  5937. * src/DownloadEngine.h
  5938. * src/DownloadEngineFactory.cc
  5939. * src/FileAllocationDispatcherCommand.cc
  5940. * src/InitiatorMSEHandshakeCommand.cc
  5941. * src/PeerInitiateConnectionCommand.cc
  5942. * src/PeerInteractionCommand.cc
  5943. * src/PeerListenCommand.cc
  5944. * src/RequestGroup.cc
  5945. * src/StreamFileAllocationEntry.cc
  5946. * src/TrackerWatcherCommand.cc
  5947. * src/main.cc
  5948. * test/RequestGroupManTest.cc
  5949. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5950. Implemented commented code in BtSeederStateChoke
  5951. * src/BtSeederStateChoke.cc
  5952. * src/Peer.cc
  5953. * src/Peer.h
  5954. * src/PeerInteractionCommand.cc
  5955. * src/PeerSessionResource.cc
  5956. * src/PeerSessionResource.h
  5957. * test/MockBtMessageDispatcher.h
  5958. * test/PeerSessionResourceTest.cc
  5959. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5960. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5961. its object.
  5962. * src/AbstractBtMessage.cc
  5963. * src/ActivePeerConnectionCommand.cc
  5964. * src/ActivePeerConnectionCommand.h
  5965. * src/BtContextAwareCommand.cc
  5966. * src/BtContextAwareCommand.h
  5967. * src/BtExtendedMessage.cc
  5968. * src/BtExtendedMessage.h
  5969. * src/BtInterestedMessage.cc
  5970. * src/BtInterestedMessage.h
  5971. * src/BtNotInterestedMessage.cc
  5972. * src/BtNotInterestedMessage.h
  5973. * src/BtRegistry.cc
  5974. * src/BtRegistry.h
  5975. * src/BtSeederStateChoke.cc
  5976. * src/BtSetup.cc
  5977. * src/DHTGetPeersCommand.cc
  5978. * src/DHTGetPeersCommand.h
  5979. * src/DHTPeerAnnounceEntry.cc
  5980. * src/DHTPeerAnnounceEntry.h
  5981. * src/DHTPeerAnnounceStorage.cc
  5982. * src/DHTPeerAnnounceStorage.h
  5983. * src/DHTPeerLookupTask.cc
  5984. * src/DHTPeerLookupTask.h
  5985. * src/DHTSetup.cc
  5986. * src/DHTSetup.h
  5987. * src/DHTTaskFactory.h
  5988. * src/DHTTaskFactoryImpl.cc
  5989. * src/DHTTaskFactoryImpl.h
  5990. * src/DefaultBtAnnounce.cc
  5991. * src/DefaultBtInteractive.cc
  5992. * src/DefaultBtInteractive.h
  5993. * src/DefaultBtMessageDispatcher.cc
  5994. * src/DefaultBtMessageDispatcher.h
  5995. * src/DefaultBtMessageFactory.cc
  5996. * src/DefaultBtMessageFactory.h
  5997. * src/DefaultBtMessageReceiver.cc
  5998. * src/DefaultBtProgressInfoFile.cc
  5999. * src/DefaultBtProgressInfoFile.h
  6000. * src/DefaultBtRequestFactory.cc
  6001. * src/DefaultBtRequestFactory.h
  6002. * src/DefaultExtensionMessageFactory.cc
  6003. * src/DefaultExtensionMessageFactory.h
  6004. * src/DefaultPeerStorage.cc
  6005. * src/DefaultPeerStorage.h
  6006. * src/DownloadEngine.cc
  6007. * src/DownloadEngine.h
  6008. * src/InitiatorMSEHandshakeCommand.cc
  6009. * src/InitiatorMSEHandshakeCommand.h
  6010. * src/MSEHandshake.cc
  6011. * src/MSEHandshake.h
  6012. * src/Makefile.am
  6013. * src/Makefile.in
  6014. * src/PeerChokeCommand.cc
  6015. * src/PeerChokeCommand.h
  6016. * src/PeerInitiateConnectionCommand.cc
  6017. * src/PeerInitiateConnectionCommand.h
  6018. * src/PeerInteractionCommand.cc
  6019. * src/PeerInteractionCommand.h
  6020. * src/PeerObject.h
  6021. * src/PeerReceiveHandshakeCommand.cc
  6022. * src/PeerReceiveHandshakeCommand.h
  6023. * src/ReceiverMSEHandshakeCommand.cc
  6024. * src/RequestGroup.cc
  6025. * src/RequestGroup.h
  6026. * src/RequestGroupMan.cc
  6027. * src/RequestGroupMan.h
  6028. * src/SeedCheckCommand.cc
  6029. * src/SeedCheckCommand.h
  6030. * src/ShareRatioSeedCriteria.h
  6031. * src/SimpleBtMessage.cc
  6032. * src/TrackerWatcherCommand.cc
  6033. * src/TrackerWatcherCommand.h
  6034. * src/UTPexExtensionMessage.cc
  6035. * src/UTPexExtensionMessage.h
  6036. * test/BtCancelMessageTest.cc
  6037. * test/BtChokeMessageTest.cc
  6038. * test/BtExtendedMessageTest.cc
  6039. * test/BtInterestedMessageTest.cc
  6040. * test/BtNotInterestedMessageTest.cc
  6041. * test/BtPieceMessageTest.cc
  6042. * test/BtPortMessageTest.cc
  6043. * test/BtRegistryTest.cc
  6044. * test/BtRejectMessageTest.cc
  6045. * test/BtRequestMessageTest.cc
  6046. * test/DHTPeerAnnounceEntryTest.cc
  6047. * test/DHTPeerAnnounceStorageTest.cc
  6048. * test/DefaultBtMessageDispatcherTest.cc
  6049. * test/DefaultBtMessageFactoryTest.cc
  6050. * test/DefaultBtProgressInfoFileTest.cc
  6051. * test/DefaultBtRequestFactoryTest.cc
  6052. * test/DefaultExtensionMessageFactoryTest.cc
  6053. * test/MSEHandshakeTest.cc
  6054. * test/MockDHTTaskFactory.h
  6055. * test/ShareRatioSeedCriteriaTest.cc
  6056. * test/UTPexExtensionMessageTest.cc
  6057. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6058. Fixed compiler warning.
  6059. * test/UtilTest.cc
  6060. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6061. Treat Cookie object as session cookie if expiry = 0 is given.
  6062. With this change, you can specify session scoped cookies in an external
  6063. file setting expiry value to 0.
  6064. * src/Cookie.cc
  6065. * src/Cookie.h
  6066. * test/CookieParserTest.cc
  6067. * test/CookieStorageTest.cc
  6068. * test/CookieTest.cc
  6069. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6070. Changed signature of DHTMessageFactory::createResponseMessage().
  6071. Removed unused validateIDMatch.
  6072. * src/DHTMessageFactory.h
  6073. * src/DHTMessageFactoryImpl.cc
  6074. * src/DHTMessageFactoryImpl.h
  6075. * src/DHTMessageTracker.cc
  6076. * test/DHTMessageFactoryImplTest.cc
  6077. * test/MockDHTMessageFactory.h
  6078. Dropped DHT message coming from same ID of localhost.
  6079. * src/DHTMessageReceiver.cc
  6080. Rejected adding node whose ID is the same as localhost's.
  6081. * src/DHTRoutingTable.cc
  6082. * test/BtPortMessageTest.cc
  6083. * test/DHTRoutingTableTest.cc
  6084. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6085. Pool connection when redirection occurs with Content-Length = 0.
  6086. * src/HttpSkipResponseCommand.cc
  6087. * src/HttpSkipResponseCommand.h
  6088. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Fixed the bug that causes time out when redirection occurs with
  6090. content-length 0.
  6091. * src/HttpResponseCommand.cc
  6092. * src/HttpSkipResponseCommand.cc
  6093. * src/HttpSkipResponseCommand.h
  6094. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6095. Now each status legends is shown only when it appears in Download
  6096. Result. If Download Result has no item, then status legend will not
  6097. be printed.
  6098. * src/RequestGroupMan.cc
  6099. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6100. Removed duplicate creation of OptionHandlers.
  6101. * src/option_processing.cc
  6102. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6103. Fixed the bug that causes segmentation fault when accessing files which
  6104. don't exist or are not included in --select-file option while
  6105. validating chunk checksum.
  6106. * src/MultiDiskAdaptor.cc
  6107. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6108. Fixed compiler warning.
  6109. * test/UtilTest.cc
  6110. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6111. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6112. * src/IteratableChecksumValidator.cc
  6113. * src/IteratableChunkChecksumValidator.cc
  6114. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. * Release 0.16.2
  6116. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6117. Added Serbian translation. Updated Ukrainian translation.
  6118. Thanks to all translators.
  6119. * po/sr.po
  6120. * po/uk.po
  6121. * po/LINGUAS
  6122. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Bump up version number to 0.16.2
  6124. * configure.ac
  6125. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6126. Added length equality test to operator== to drop a piece message
  6127. whose length does not match to the requested one.
  6128. * src/RequestSlot.cc
  6129. * test/DefaultBtMessageDispatcherTest.cc
  6130. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6131. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6132. recieved.
  6133. In this fix, if a request larger than 16KiB length is received, aria2
  6134. disconnects the peer.
  6135. * src/BtConstants.h
  6136. * src/PeerMessageUtil.cc
  6137. * src/PeerMessageUtil.h
  6138. * test/BtRequestMessageTest.cc
  6139. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6140. * Release 0.16.1
  6141. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6143. * doc/aria2c.1.txt
  6144. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6146. Updated French, Simplified Chinese and Japanese translations.
  6147. Thanks to all translators.
  6148. en@quot and en@boldquot are also added.
  6149. * po/LINGUAS
  6150. * po/fr.po
  6151. * po/ja.po
  6152. * po/uk.po
  6153. * po/vi.po
  6154. * po/zh_CN.po
  6155. * po/zh_TW.po
  6156. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. Bump up version number to 0.16.1.
  6158. * configure.ac
  6159. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Updated README.
  6161. * README
  6162. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6164. not to replace '--' with em dash character.
  6165. * doc/aria2c.1.txt
  6166. * doc/makeman
  6167. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6169. every SEC seconds.
  6170. * src/DownloadEngineFactory.cc
  6171. * src/OptionHandlerFactory.cc
  6172. * src/option_processing.cc
  6173. * src/usage_text.h
  6174. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6175. Fixed compile warning on linux-amd64
  6176. * src/FtpConnection.cc
  6177. * src/IteratableChunkChecksumValidator.cc
  6178. * src/MultiDiskAdaptor.cc
  6179. Fixed the bug that unit test fails on linux-amd64
  6180. * test/UtilTest.cc
  6181. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Added --dht-file-path option to change the path to dht.dat, which is a
  6183. serialized DHT routing table.
  6184. * src/OptionHandlerFactory.cc
  6185. * src/option_processing.cc
  6186. * src/usage_text.h
  6187. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6188. Fixed possible underflow.
  6189. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6190. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6191. Fixed the bug that last character in URI is not encoded.
  6192. * src/Request.cc
  6193. * test/RequestTest.cc
  6194. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. Fixed the bug that referer header field contains fragment.
  6196. Now Request class removes fragment part of URI and encodes it
  6197. in Request::setUri() and setReferer().
  6198. * src/Request.h
  6199. * src/Request.cc
  6200. * test/RequestTest.cc
  6201. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Added missing m4 macros.
  6203. * m4/cppunit.m4
  6204. * m4/libgcrypt.m4
  6205. * m4/libgnutls-extra.m4
  6206. * m4/libgnutls.m4
  6207. * m4/libxml2.m4
  6208. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6209. Fixed compile error with gcc-4.4(snapshot)
  6210. * src/File.cc
  6211. * src/FtpConnection.cc
  6212. * src/OptionHandlerImpl.h
  6213. * src/Util.cc
  6214. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6215. Removed assert()
  6216. * src/SocketBuffer.cc (SocketBuffer::send)
  6217. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Changed the type of _numNewConnection to unsigned int.
  6219. * src/ActivePeerConnectionCommand.cc
  6220. * src/ActivePeerConnectionCommand.h
  6221. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6222. * Release 0.16.0
  6223. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6224. Updated doc
  6225. * README
  6226. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6227. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6228. translations. Thanks to all translators.
  6229. * po/bg.po
  6230. * po/de.po
  6231. * po/fr.po
  6232. * po/ja.po
  6233. * po/zh_CN.po
  6234. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6235. Bump up version number to 0.16.0.
  6236. * configure.ac
  6237. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6238. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6239. int32_t.
  6240. Changed the type of count to int32_t.
  6241. * src/Metalink2RequestGroup.cc
  6242. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6243. Added test for Time::elapsed(time_t).
  6244. * test/TimeTest.cc
  6245. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6246. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6247. Util::difftv() should be used instead.
  6248. * src/TimeA2.cc
  6249. * src/TimeA2.h
  6250. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6251. Made socket for dht connections non-blocking
  6252. * src/DHTAbstractMessage.cc
  6253. * src/DHTAbstractMessage.h
  6254. * src/DHTConnection.h
  6255. * src/DHTConnectionImpl.cc
  6256. * src/DHTConnectionImpl.h
  6257. * src/DHTMessage.h
  6258. * src/DHTMessageDispatcherImpl.cc
  6259. * src/DHTMessageDispatcherImpl.h
  6260. * src/DHTUnknownMessage.cc
  6261. * src/DHTUnknownMessage.h
  6262. * src/SocketCore.cc
  6263. * src/SocketCore.h
  6264. * test/MockDHTMessage.h
  6265. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6266. Changed the type of offset to int.
  6267. * src/ParameterizedStringParser.cc
  6268. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6269. Made getAsInt() return int32_t
  6270. * src/Option.h
  6271. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6272. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6273. build.
  6274. * configure.ac
  6275. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. Use sqlite3_open if sqlite3_open_v2 is not available.
  6277. * src/Sqlite3MozCookieParser.cc
  6278. * src/Sqlite3MozCookieParser.h
  6279. * m4/sqlite3.m4
  6280. * test/Sqlite3MozCookieParserTest.cc
  6281. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6282. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6283. * src/BtPieceMessage.cc
  6284. * src/DHTPeerAnnounceStorage.cc
  6285. * src/DefaultPieceStorage.cc
  6286. * src/DownloadCommand.cc
  6287. * src/DownloadEngine.cc
  6288. * src/FtpConnection.cc
  6289. * src/PeerConnection.cc
  6290. * src/PeerMessageUtil.cc
  6291. * src/RequestGroup.cc
  6292. * src/RequestGroupMan.cc
  6293. * src/SimpleBtMessage.cc
  6294. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6296. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6297. * src/AbstractDiskWriter.cc
  6298. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. Don't set Request::supportsPersistentConnection() in HttpConnection
  6300. since this code is also used in AbstractProxyResponseCommand.
  6301. Moved those code to HttpResponse.
  6302. * src/HttpResponse.cc
  6303. * src/HttpResponse.h
  6304. * src/HttpConnection.cc
  6305. * src/HttpConnection.h
  6306. * src/HttpResponseCommand.cc
  6307. * test/HttpResponseTest.cc
  6308. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6310. The configuration is minimum: no torrent, no metalink, so there may be
  6311. other compile error on their code.
  6312. * src/a2netcompat.h
  6313. * src/File.cc
  6314. * src/File.h
  6315. * src/SocketCore.cc
  6316. * src/SocketCore.h
  6317. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6318. Made a socket of incoming peer non-blocking.
  6319. * src/PeerListenCommand.cc
  6320. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6321. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6322. whole message data is not sent in one send() call.
  6323. * src/BtPieceMessage.cc
  6324. * src/BtPieceMessage.h
  6325. * src/PeerConnection.cc
  6326. * src/PeerConnection.h
  6327. * src/SimpleBtMessage.cc
  6328. * src/SimpleBtMessage.h
  6329. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6330. Fixed the bug that aria2 downloads faster than max-download-limit when
  6331. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6332. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6333. , instead of sum of them.
  6334. * src/ActivePeerConnectionCommand.cc
  6335. * src/DefaultBtInteractive.cc
  6336. * src/DownloadCommand.cc
  6337. * src/PeerInteractionCommand.cc
  6338. * src/PeerReceiveHandshakeCommand.cc
  6339. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6340. Fixed the bug that HTTPS download fails.
  6341. * src/AbstractCommand.cc
  6342. * src/AbstractCommand.h
  6343. * src/DownloadCommand.cc
  6344. * src/FtpConnection.cc
  6345. * src/HttpConnection.cc
  6346. * src/HttpRequestCommand.cc
  6347. * src/HttpResponseCommand.cc
  6348. * src/HttpSkipResponseCommand.cc
  6349. * src/MSEHandshake.cc
  6350. * src/PeerConnection.cc
  6351. * src/SocketCore.cc
  6352. * src/SocketCore.h
  6353. Fixed the bug that aria2 doesn't download whole content body and cannot
  6354. reuse connection if chunked transfer encoding and gzip content encoding
  6355. are set.
  6356. * src/DownloadCommand.cc
  6357. * src/HttpSkipResponseCommand.cc
  6358. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6359. Updated man page.
  6360. * doc/aria2c.1.txt
  6361. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. When error occurred while aria2 was parsing an .aria2.conf file, print
  6363. the usage of the option that caused error.
  6364. * src/option_processing.cc
  6365. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6366. Fixed compile error on OptionHandlerException
  6367. * src/Makefile.am
  6368. * src/OptionHandlerException.cc
  6369. * src/OptionHandlerException.h
  6370. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6371. Moved message of the error to OptionHandlerException.h
  6372. * src/NameMatchOptionHandler.h
  6373. * src/OptionHandlerException.h
  6374. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6375. When error occurs while aria2 is parsing an command-line option, print
  6376. the usage of the option.
  6377. * src/Makefile.am
  6378. * src/NameMatchOptionHandler.h
  6379. * src/OptionHandlerException.h
  6380. * src/option_processing.cc
  6381. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Reverted previous change.
  6383. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6384. username is not in URI.
  6385. * src/HttpRequest.cc
  6386. * src/Request.cc
  6387. * test/HttpRequestTest.cc
  6388. * test/RequestTest.cc
  6389. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6390. Now colon is required for username and password in FTP URL, like:
  6391. ftp://username:password@host.
  6392. If colon is not there, aria2 don't parse it as a username. For example,
  6393. aria2 don't retrieve username from ftp://username@host.
  6394. This fix was made in order to login FTP server via non-transparent ftp
  6395. proxy.
  6396. * src/Request.cc
  6397. * test/RequestTest.cc
  6398. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6399. Use netrc for HTTP.
  6400. Now FTP user/password is sent in Authorization header when
  6401. --ftp-via-http-proxy=get is given.
  6402. * src/AuthConfigFactory.cc
  6403. * src/HttpRequest.cc
  6404. * src/HttpRequest.h
  6405. * src/NetrcAuthResolver.cc
  6406. * src/NetrcAuthResolver.h
  6407. * src/OptionHandlerFactory.cc
  6408. * src/option_processing.cc
  6409. * src/prefs.cc
  6410. * src/prefs.h
  6411. * test/AuthConfigFactoryTest.cc
  6412. * test/HttpRequestTest.cc
  6413. * test/NetrcAuthResolverTest.cc
  6414. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6415. Issue PWD command first and get working directory and use it as a prefix
  6416. for CWD command.
  6417. * src/DownloadEngine.cc
  6418. * src/DownloadEngine.h
  6419. * src/FtpConnection.cc
  6420. * src/FtpConnection.h
  6421. * src/FtpFinishDownloadCommand.cc
  6422. * src/FtpInitiateConnectionCommand.cc
  6423. * src/FtpNegotiationCommand.cc
  6424. * src/FtpNegotiationCommand.h
  6425. * test/FtpConnectionTest.cc
  6426. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6427. Removed default user/pass for FTP user/pass, since it should not have
  6428. precedence over netrc configuration by default.
  6429. * src/OptionHandlerFactory.cc
  6430. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Added debug log for socket event.
  6432. * src/AbstractCommand.cc
  6433. * src/PeerAbstractCommand.cc
  6434. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. Log microseconds.
  6436. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6437. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Replaced HelpItem.cc with OptionHandler.cc.
  6439. * po/POTFILES.in
  6440. Updated po files with 'make update-po'
  6441. * po/aria2c.pot
  6442. * po/*.po
  6443. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6444. Removed possible values from the text.
  6445. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6446. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6447. Removed unused preferences:
  6448. PREF_NO_PREALLOCATION
  6449. PREF_STDOUT_LOG
  6450. PREF_TRACKER_MAX_TRIES
  6451. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6452. PREF_MIN_SEGMENT_SIZE
  6453. * src/option_processing.cc
  6454. * src/prefs.cc
  6455. * src/prefs.h
  6456. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6457. Integrated HelpItem into OptionParser to ease the workload for adding
  6458. new options. Removed default value from usage text.
  6459. * src/HelpItem.cc: Removed.
  6460. * src/HelpItem.h: Removed.
  6461. * src/HelpItemFactory.cc: Removed.
  6462. * src/HelpItemFactory.h: Removed.
  6463. * src/Makefile.am
  6464. * src/Makefile.in
  6465. * src/NameMatchOptionHandler.h
  6466. * src/OptionHandler.cc
  6467. * src/OptionHandler.h
  6468. * src/OptionHandlerFactory.cc
  6469. * src/OptionHandlerImpl.h
  6470. * src/OptionParser.cc
  6471. * src/OptionParser.h
  6472. * src/TagContainer.cc: Removed.
  6473. * src/TagContainer.h: Removed.
  6474. * src/TaggedItem.cc: Removed.
  6475. * src/TaggedItem.h: Removed.
  6476. * src/main.cc
  6477. * src/option_processing.cc
  6478. * src/usage_text.h
  6479. * src/version_usage.cc
  6480. * test/HelpItemTest.cc: Removed.
  6481. * test/Makefile.am
  6482. * test/Makefile.in
  6483. * test/OptionHandlerTest.cc
  6484. * test/OptionParserTest.cc
  6485. * test/TagContainerTest.cc: Removed.
  6486. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6487. Moved `TransferStat stat = ...' to inside the `if' clause.
  6488. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6489. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6490. Fixed the bug that a block in a piece is requested when same block is
  6491. already requested to the same peer in end game mode.
  6492. * src/BtRequestFactory.h
  6493. * src/DefaultBtInteractive.cc
  6494. * src/DefaultBtRequestFactory.cc
  6495. * src/DefaultBtRequestFactory.h
  6496. * src/DefaultPieceStorage.cc
  6497. * src/DefaultPieceStorage.h
  6498. * src/PieceStorage.h
  6499. * src/UnknownLengthPieceStorage.cc
  6500. * src/UnknownLengthPieceStorage.h
  6501. * test/DefaultBtRequestFactoryTest.cc
  6502. * test/DefaultPieceStorageTest.cc
  6503. * test/MockBtRequestFactory.h
  6504. * test/MockPieceStorage.h
  6505. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Removed _uploadLength and _downloadLength from PeerSessionResource
  6507. and use PeerStat::_sessionUploadLength and
  6508. PeerStat::_sessionDownloadLength.
  6509. * src/PeerSessionResource.cc
  6510. * src/PeerSessionResource.h
  6511. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6512. Fixed the bug that prefixLength of split bucket which doesn't include
  6513. local node ID is incremented.
  6514. * src/DHTBucket.cc
  6515. * src/DHTBucket.h
  6516. * test/DHTBucketTest.cc
  6517. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6518. Added cookies.sqlite to EXTRA_DIST
  6519. * test/Makefile.am
  6520. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6521. Added Turkish translation. Updated French, German, Russian and
  6522. Simplified Chinese translations. Thanks to all translators.
  6523. * po/LINGUAS
  6524. * po/de.po
  6525. * po/fr.po
  6526. * po/ru.po
  6527. * po/tr.po
  6528. * po/zh_CN.po
  6529. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Added deliminating text to the beginning of the log so that one can find
  6531. where the log starts easily.
  6532. * src/main.cc
  6533. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6534. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6535. to fix compile error when async DNS is not enabled by configuration.
  6536. * src/AbstractCommand.cc
  6537. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6538. If establishing conneciton to a server is failed, then mark error on
  6539. its ServerStat.
  6540. Added the cause of error to log when error event occurred.
  6541. Moved message string to message.h for translation.
  6542. * src/AbstractCommand.cc
  6543. * src/AbstractCommand.h
  6544. * src/FtpNegotiationCommand.cc
  6545. * src/HttpRequestCommand.cc
  6546. * src/PeerAbstractCommand.cc
  6547. * src/message.h
  6548. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6549. Added the function to get error message from socket.
  6550. * src/SocketCore.cc
  6551. * src/SocketCore.h
  6552. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6553. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6554. * src/RequestGroupMan.cc
  6555. * src/RequestGroupMan.h
  6556. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6557. If error event is received in epoll, then abort download immediately.
  6558. * src/AbstractCommand.cc
  6559. * src/Command.cc
  6560. * src/Command.h
  6561. * src/DownloadEngine.cc
  6562. * src/PeerAbstractCommand.cc
  6563. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. Added usage message for --uri-selector, --server-stat-of,
  6565. --server-stat-in, --server-stat-timeout options.
  6566. * src/HelpItemFactory.cc
  6567. * src/usage_text.h
  6568. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6569. Added upper limit of FTP response buffer. The current implementation
  6570. uses 4096bytes as a limit.
  6571. * src/FtpConnection.cc
  6572. * src/FtpConnection.h
  6573. * test/FtpConnectionTest.cc
  6574. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6575. Use non-blocking socket for TCP communication to avoid possible
  6576. blocking due to buffer full.
  6577. * src/AbstractProxyRequestCommand.cc
  6578. * src/FtpConnection.cc
  6579. * src/FtpConnection.h
  6580. * src/FtpNegotiationCommand.cc
  6581. * src/FtpNegotiationCommand.h
  6582. * src/HttpConnection.cc
  6583. * src/HttpConnection.h
  6584. * src/HttpRequestCommand.cc
  6585. * src/InitiatorMSEHandshakeCommand.cc
  6586. * src/InitiatorMSEHandshakeCommand.h
  6587. * src/MSEHandshake.cc
  6588. * src/MSEHandshake.h
  6589. * src/Makefile.am
  6590. * src/PeerConnection.cc
  6591. * src/PeerConnection.h
  6592. * src/PeerInteractionCommand.cc
  6593. * src/PeerListenCommand.cc
  6594. * src/ReceiverMSEHandshakeCommand.cc
  6595. * src/ReceiverMSEHandshakeCommand.h
  6596. * src/SocketBuffer.cc
  6597. * src/SocketBuffer.h
  6598. * src/SocketCore.cc
  6599. * src/SocketCore.h
  6600. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Call setStatusRealtime() in constructor.
  6602. * src/RealtimeCommand.cc
  6603. * src/RealtimeCommand.h
  6604. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6605. Call Download::setNoWait(true) to execute newly created command without
  6606. a pause.
  6607. * src/AbstractCommand.cc
  6608. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6609. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6610. found' error from HTTP/FTP server NUM times without getting single
  6611. bytes of data, then force the download to fail.
  6612. Basically aria2 tris all URIs available. So if long list of URIs are
  6613. specified in Metalink, then aria2 will take a long time to fail
  6614. eventually if all URIs are outdated. This option eases this situation
  6615. to limit the number of servers to try.
  6616. * src/FtpNegotiationCommand.cc
  6617. * src/HelpItemFactory.cc
  6618. * src/HttpResponseCommand.cc
  6619. * src/OptionHandlerFactory.cc
  6620. * src/PeerStat.h
  6621. * src/RequestGroup.cc
  6622. * src/RequestGroup.h
  6623. * src/SegmentMan.cc
  6624. * src/SegmentMan.h
  6625. * src/option_processing.cc
  6626. * src/prefs.cc
  6627. * src/prefs.h
  6628. * src/usage_text.h
  6629. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6630. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6631. response even if more than one response is in it.
  6632. * src/FtpConnection.cc
  6633. * src/FtpConnection.h
  6634. * test/FtpConnectionTest.cc
  6635. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6636. Merged from stable-0.15
  6637. * m4/libcares.m4
  6638. Use pkg-config
  6639. * m4/sqlite3.m4
  6640. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6641. Removed unnecessary if statement.
  6642. * src/DefaultPieceStorage.cc (initPieceStorage)
  6643. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6644. Added --connect-timeout option to specify connect timeout in seconds.
  6645. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6646. connecting to BitTorrent peer is not controlled by this option.
  6647. * src/AbstractProxyRequestCommand.cc
  6648. * src/FtpNegotiationCommand.cc
  6649. * src/HelpItemFactory.cc
  6650. * src/HttpRequestCommand.cc
  6651. * src/OptionHandlerFactory.cc
  6652. * src/option_processing.cc
  6653. * src/prefs.cc
  6654. * src/prefs.h
  6655. * src/usage_text.h
  6656. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Added help message for -R option.
  6658. * src/HelpItemFactory.cc
  6659. * src/usage_text.h
  6660. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6661. Added the message that the time is in local time zone.
  6662. * src/RequestGroup.cc
  6663. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. Implemented the ability to get timestamp from remote FTP server using
  6665. MDTM command described in RFC3659.
  6666. * src/FtpConnection.cc
  6667. * src/FtpConnection.h
  6668. * src/FtpNegotiationCommand.cc
  6669. * src/FtpNegotiationCommand.h
  6670. * test/FtpConnectionTest.cc
  6671. * test/Makefile.am
  6672. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6673. Implemented the ability to get timestamp from remote HTTP server and
  6674. apply it to local file. To enable this feature, --remote-time option
  6675. is added. No usage text has been written yet.
  6676. If several servers returns difference timestamp, then aria2 uses latest
  6677. one.
  6678. * src/CopyDiskAdaptor.cc
  6679. * src/CopyDiskAdaptor.h
  6680. * src/DirectDiskAdaptor.cc
  6681. * src/DirectDiskAdaptor.h
  6682. * src/DiskAdaptor.h
  6683. * src/File.cc
  6684. * src/File.h
  6685. * src/HttpHeader.cc
  6686. * src/HttpHeader.h
  6687. * src/HttpResponse.cc
  6688. * src/HttpResponse.h
  6689. * src/HttpResponseCommand.cc
  6690. * src/HttpResponseCommand.h
  6691. * src/MultiDiskAdaptor.cc
  6692. * src/MultiDiskAdaptor.h
  6693. * src/OptionHandlerFactory.cc
  6694. * src/RequestGroup.cc
  6695. * src/RequestGroup.h
  6696. * src/RequestGroupMan.cc
  6697. * src/option_processing.cc
  6698. * src/prefs.cc
  6699. * src/prefs.h
  6700. * test/CopyDiskAdaptorTest.cc
  6701. * test/FileTest.cc
  6702. * test/Makefile.am
  6703. * test/Makefile.in
  6704. * test/MultiDiskAdaptorTest.cc
  6705. * test/TestUtil.cc
  6706. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6707. Fixed the bug that DiskWriterEntry is not created when its
  6708. FileEntry.isRequested() is false and it doesn't share a piece with
  6709. other FileEntries that are requested. This bug causes segmentation fault
  6710. in the end.
  6711. * src/MultiDiskAdaptor.cc
  6712. * src/MultiDiskAdaptor.h
  6713. * src/MultiFileAllocationIterator.cc
  6714. * test/MultiDiskAdaptorTest.cc
  6715. * test/MultiFileAllocationIteratorTest.cc
  6716. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6718. called if the number of file entries are greater than max open files.
  6719. * src/AbstractSingleDiskAdaptor.cc
  6720. * src/AbstractSingleDiskAdaptor.h
  6721. * src/DiskAdaptor.h
  6722. * src/MultiDiskAdaptor.cc
  6723. * src/MultiDiskAdaptor.h
  6724. * test/MultiDiskAdaptorTest.cc
  6725. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6726. Added a constuctor that receives struct timeval.
  6727. Added operator<.
  6728. * src/TimeA2.cc
  6729. * src/TimeA2.h
  6730. * test/TimeTest.cc
  6731. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6733. * src/CookieParser.cc
  6734. * test/CookieParserTest.cc
  6735. * test/HttpResponseTest.cc
  6736. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6737. Implmented the functions to parse date.
  6738. * src/TimeA2.cc
  6739. * src/TimeA2.h
  6740. * test/TimeTest.cc
  6741. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6742. Added "Firefox3 Cookie" feature to FeatureConfig
  6743. * src/FeatureConfig.cc
  6744. * src/FeatureConfig.h
  6745. * test/FeatureConfigTest.cc
  6746. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6747. Bump up version number to 0.16.0b
  6748. * configure.ac
  6749. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6750. Use pkg-config if is is available.
  6751. * m4/openssl.m4
  6752. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6754. * src/BtAnnounce.h
  6755. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6756. If an error occurred with a URI, remove identical URI from remaining
  6757. URI list because it is likely that same error occurred in the end and it
  6758. is waste of time.
  6759. * src/AbstractCommand.cc
  6760. * src/RequestGroup.cc
  6761. * src/RequestGroup.h
  6762. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Removed wrong comment.
  6764. * src/DefaultPeerStorage.cc
  6765. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6767. Added return value of getpid() to argument of srand() to achieve more
  6768. randomized value.
  6769. * src/SimpleRandomizer.cc
  6770. * src/SimpleRandomizer.h
  6771. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6772. Contact tracker frequently when the number of connections are 0 and
  6773. download is not finished yet.
  6774. * src/ActivePeerConnectionCommand.cc
  6775. * src/BtAnnounce.h
  6776. * src/DefaultBtAnnounce.cc
  6777. * src/DefaultBtAnnounce.h
  6778. * test/MockBtAnnounce.h
  6779. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6780. Moved threshold values to UTPexExtensionMessage.
  6781. * src/DefaultBtInteractive.cc
  6782. * src/Peer.cc
  6783. * src/Peer.h
  6784. * src/UTPexExtensionMessage.cc
  6785. * src/UTPexExtensionMessage.h
  6786. * test/UTPexExtensionMessageTest.cc
  6787. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Added _incoming member to Peer class and made it true if the peer
  6789. initiated connection. Don't add those peer to UTPex message.
  6790. If extended handshake is received, assign _incoming to false.
  6791. * src/DefaultBtInteractive.cc
  6792. * src/HandshakeExtensionMessage.cc
  6793. * src/Peer.cc
  6794. * src/Peer.h
  6795. * src/PeerListenCommand.cc
  6796. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6798. Encoding Decoder. Removed size threshold for turning off on the fly
  6799. inflation because resulting file may or may not be inflated depending
  6800. on the file size and I think it is not expected by users.
  6801. This change fixes segmentation fault when Metalink file contains gzipped
  6802. file and its filesize is provided.
  6803. * src/HttpResponseCommand.cc
  6804. * src/HttpResponseCommand.h
  6805. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Made Cookie immutable.
  6807. * src/Cookie.cc
  6808. * src/Cookie.h
  6809. * src/CookieParser.cc
  6810. * src/CookieParser.h
  6811. * src/CookieStorage.cc
  6812. * test/CookieParserTest.cc
  6813. * test/CookieStorageTest.cc
  6814. * test/NsCookieParserTest.cc
  6815. * test/Sqlite3MozCookieParserTest.cc
  6816. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Removed CookieBox, CookieBoxFactory.
  6818. * src/CookieBox.cc
  6819. * src/CookieBox.h
  6820. * src/CookieBoxFactory.cc
  6821. * src/CookieBoxFactory.h
  6822. * src/Makefile.am
  6823. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6824. Use CookieStorage class instead of CookieBox class.
  6825. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6826. * src/AbstractProxyRequestCommand.cc
  6827. * src/CookieStorage.cc
  6828. * src/DownloadEngine.cc
  6829. * src/DownloadEngine.h
  6830. * src/HttpConnection.cc
  6831. * src/HttpConnection.h
  6832. * src/HttpRequest.cc
  6833. * src/HttpRequest.h
  6834. * src/HttpRequestCommand.cc
  6835. * src/HttpResponse.cc
  6836. * src/HttpResponseCommand.cc
  6837. * src/HttpSkipResponseCommand.cc
  6838. * src/Makefile.am
  6839. * src/MultiUrlRequestInfo.cc
  6840. * src/Request.cc
  6841. * src/Request.h
  6842. * src/main.cc
  6843. * test/AllTest.cc
  6844. * test/CookieStorageTest.cc
  6845. * test/CookieTest.cc
  6846. * test/HttpRequestTest.cc
  6847. * test/HttpResponseTest.cc
  6848. * test/Makefile.am
  6849. * test/NsCookieParserTest.cc
  6850. * test/Sqlite3MozCookieParserTest.cc
  6851. * test/nscookietest.txt
  6852. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6853. Updated
  6854. * test/Cookies.sqlite
  6855. * test/nscookietest.txt
  6856. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. Added tests for CookieStorage::load()
  6858. * test/CookieStorageTest.cc
  6859. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Added CookieStorage class which is based on RFC2109 and manages cookies
  6861. more strictly than CookieBox and CookieBoxFactory class.
  6862. * src/CookieStorage.cc
  6863. * src/CookieStorage.h
  6864. * src/Cookie.cc
  6865. * src/Cookie.h
  6866. * test/CookieStorageTest.cc
  6867. * test/CookieTest.cc
  6868. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6869. Fixed the bug that commands are created more than the number of pieces.
  6870. * src/RequestGroup.cc
  6871. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. Fixed infinite loop bug in FTP when SIZE command failed.
  6873. * src/FtpNegotiationCommand.cc
  6874. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6875. Removed DirectDiskAdaptorTest.h
  6876. * test/Makefile.am
  6877. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Fixed chunk checksum validation cannot detect trailing garbage data.
  6879. BUG#2074141
  6880. * src/AbstractSingleDiskAdaptor.cc
  6881. * src/AbstractSingleDiskAdaptor.h
  6882. * src/CheckIntegrityEntry.cc
  6883. * src/CheckIntegrityEntry.h
  6884. * src/DiskAdaptor.h
  6885. * src/MultiDiskAdaptor.cc
  6886. * src/MultiDiskAdaptor.h
  6887. * src/RequestGroup.cc
  6888. * test/DirectDiskAdaptorTest.cc
  6889. * test/MultiDiskAdaptorTest.cc
  6890. * test/TestUtil.cc
  6891. * test/TestUtil.h
  6892. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Bump up version number of dht.dat file to 3. In version 3 format, time
  6894. is stored in 64bit, network byte order.
  6895. New build can load old format(version 2) but it saves the file in new
  6896. format. It means once you used new build, your dht.dat becomes
  6897. incompatible with older build.
  6898. * src/DHTRoutingTableDeserializer.cc
  6899. * src/DHTRoutingTableSerializer.cc
  6900. * test/DHTRoutingTableSerializerTest.cc
  6901. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6902. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6903. * test/Makefile.am
  6904. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6905. Bump up version number of .aria2 control file to 0001.
  6906. New aria2 can still load version 0000 file but it saves the file in
  6907. version 0001 format. It means that new aria2 can resume download
  6908. started by old aria2 but the opposite is not true.
  6909. * src/DefaultBtProgressInfoFile.cc
  6910. * src/DefaultBtProgressInfoFile.h
  6911. * test/DefaultBtProgressInfoFileTest.cc
  6912. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. Added ntoh64 and hton64 as inline functions.
  6914. * src/Util.cc
  6915. * test/UtilTest.cc
  6916. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Added sqlite3 depenency and Firefox3 cookie support.
  6918. * README
  6919. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. State that firefox3 cookie is supported explicitly in the usage.
  6921. * src/usage_text.h
  6922. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6923. Externalized message.
  6924. * src/RequestGroupMan.cc
  6925. * src/message.h
  6926. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6927. Save temporary file first and rename to the destination on success.
  6928. Added test cases.
  6929. * src/RequestGroupMan.cc
  6930. * test/RequestGroupManTest.cc
  6931. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6932. Fixed the bug that the number of connected peer is exceeding the limit
  6933. (55 by default) in seeding mode.
  6934. Multiplied 0.8 to _maxUploadSpeedLimit.
  6935. * src/ActivePeerConnectionCommand.cc
  6936. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Clear table item.
  6938. * src/Dictionary.cc
  6939. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6940. Fixed error handling of lseek.
  6941. * src/AbstractDiskWriter.cc
  6942. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6943. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6944. style cookie file.
  6945. * src/usage_text.h
  6946. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6948. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6949. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6950. * src/Util.cc
  6951. * src/Util.h
  6952. * src/CookieParser.cc
  6953. * test/UtilTest.cc
  6954. * test/CookieParserTest.cc
  6955. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Separate the implementation to load old mozilla format of cookie to
  6957. NsCookieParser class.
  6958. * src/CookieBoxFactory.cc
  6959. * src/CookieBoxFactory.h
  6960. * src/NsCookieParser.cc
  6961. * src/NsCookieParser.h
  6962. * test/NsCookieParserTest.cc
  6963. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6964. Made parse() const
  6965. * src/Sqlite3MozCookieParser.cc
  6966. * src/Sqlite3MozCookieParser.h
  6967. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6968. Added firefox3 cookie support based on the patch submitted by
  6969. tizianomueller.
  6970. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6971. this functionality.
  6972. * configure.ac
  6973. * m4/sqlite3.m4
  6974. * src/CookieBoxFactory.cc
  6975. * src/CookieBoxFactory.h
  6976. * src/Makefile.am
  6977. * src/Makefile.in
  6978. * src/Sqlite3MozCookieParser.cc
  6979. * src/Sqlite3MozCookieParser.h
  6980. * src/main.cc
  6981. * test/CookieBoxFactoryTest.cc
  6982. * test/Makefile.am
  6983. * test/Makefile.in
  6984. * test/Sqlite3MozCookieParserTest.cc
  6985. * test/badcookies.sqlite
  6986. * test/cookies.sqlite
  6987. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. Added Danish and Greek translations.
  6989. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6990. Great thanks to all translators.
  6991. * po/LINGUAS
  6992. * po/el.po
  6993. * po/da.po
  6994. * po/es.po
  6995. * po/ca.po
  6996. * po/nn.po
  6997. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. Fixed man page: --follow-bittorrent should be --follow-torrent
  6999. * doc/aria2c.1.txt
  7000. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7001. Fixed: numCommand is less than the value specified in -C option.
  7002. * src/RequestGroup.cc
  7003. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. Fixed occasional assertion failure in PieceSegment.
  7005. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7006. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7007. creation of duplicate segments and one of the segment was finished then
  7008. assertion failure was caused.
  7009. * src/SegmentMan.cc
  7010. * test/SegmentManTest.cc
  7011. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7012. Added options to load/save the server's performance/status to a file
  7013. and the timeout to drop their data.
  7014. --server-stat-of=FILE specifies the file to which performance data
  7015. is saved.
  7016. --server-stat-if=FILE specifies the file to read previously saved
  7017. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7018. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7019. TIMEOUT is specified in seconds and the default value is 24hours.
  7020. * src/MultiUrlRequestInfo.cc
  7021. * src/OptionHandlerFactory.cc
  7022. * src/RequestGroupMan.cc
  7023. * src/RequestGroupMan.h
  7024. * src/ServerStatMan.cc
  7025. * src/ServerStatMan.h
  7026. * src/option_processing.cc
  7027. * src/prefs.cc
  7028. * src/prefs.h
  7029. * test/ServerStatManTest.cc
  7030. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7032. * src/ServerStatMan.cc
  7033. * src/ServerStatMan.h
  7034. * test/ServerStatManTest.cc
  7035. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7036. Implemented ServerStatMan::load(...) function and its test case.
  7037. * src/ServerStat.cc
  7038. * src/ServerStat.h
  7039. * src/ServerStatMan.cc
  7040. * test/ServerStatManTest.cc
  7041. * test/ServerStatTest.cc
  7042. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Use time_t instead of int32_t. Use int64_t where milli second is
  7044. expected.
  7045. * src/TimeA2.cc
  7046. * src/TimeA2.h
  7047. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7048. Implemented ServerStatMan::save(...) function and its test case.
  7049. * src/ServerStat.cc
  7050. * src/ServerStat.h
  7051. * src/ServerStatMan.cc
  7052. * src/ServerStatMan.h
  7053. * test/ServerStatManTest.cc
  7054. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Now aria2 uses name attribute in Metalink as local filename in
  7056. BitTorrent downloads. BUG#2033999
  7057. * src/BtContext.h
  7058. * src/BtDependency.cc
  7059. * src/DefaultBtContext.cc
  7060. * src/DefaultBtContext.h
  7061. * src/SingleFileDownloadContext.cc
  7062. * src/SingleFileDownloadContext.h
  7063. * test/BtDependencyTest.cc
  7064. * test/DefaultBtContextTest.cc
  7065. * test/MockBtContext.h
  7066. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Added AC_C_BIGENDIAN
  7068. * src/configure.ac
  7069. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Limited numCommand less than or equal to the number of piece.
  7071. * src/RequestGroup.cc
  7072. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7073. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7074. directive.
  7075. * test/DefaultPieceStorageTest.cc
  7076. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7077. Fixed memory leak in test code
  7078. * test/AnnounceListTest.cc
  7079. * test/DefaultPeerListProcessorTest.cc
  7080. * test/DefaultPeerStorageTest.cc
  7081. * test/MetaFileUtilTest.cc
  7082. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7083. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7084. * src/DefaultPieceStorage.cc
  7085. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. Initialized _directIOAllowed
  7087. * src/MultiDiskAdaptor.cc
  7088. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Fixed memory leak
  7090. * src/GZipDecoder.cc
  7091. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7092. Fixed memory leak
  7093. * src/MetalinkParserStateMachine.cc
  7094. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7095. Fixed memory leak
  7096. * src/Dictionary.cc
  7097. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Fixed memory leak
  7099. * src/IteratableChunkChecksumValidator.h
  7100. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. Fixed unmatched malloc/free.
  7102. * src/IteratableChunkChecksumValidator.cc
  7103. * src/IteratableChecksumValidator.cc
  7104. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Removed max chunk size check. This change fixes BUG#2040169
  7106. * src/ChunkedDecoder.cc
  7107. * src/ChunkedDecoder.h
  7108. * test/ChunkedDecoderTest.cc
  7109. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7110. Implemented download speed based URI selection algorithm.
  7111. Introduced new option --uri-selector.
  7112. If --uri-selector=feedback is given, aria2 uses download speed observed
  7113. in the previous downloads and chooses fastest server in the URI list.
  7114. Currently at most 10 URIs are considered to introduce randomeness for
  7115. finding better servers. The speed is average download speed in the
  7116. downloads.
  7117. On the other hand, if --uri-selector=inorder is given, which is default,
  7118. URI is tried in order in URI list.
  7119. The usage text for the new option has not been written yet.
  7120. * src/AbstractCommand.cc
  7121. * src/DownloadCommand.cc
  7122. * src/DownloadEngine.cc
  7123. * src/DownloadEngineFactory.cc
  7124. * src/InOrderURISelector.cc
  7125. * src/InOrderURISelector.h
  7126. * src/OptionHandlerFactory.cc
  7127. * src/PeerStat.h
  7128. * src/RequestGroup.cc
  7129. * src/RequestGroup.h
  7130. * src/RequestGroupMan.cc
  7131. * src/RequestGroupMan.h
  7132. * src/SegmentMan.cc
  7133. * src/SegmentMan.h
  7134. * src/ServerStat.cc
  7135. * src/ServerStat.h
  7136. * src/ServerStatMan.cc
  7137. * src/ServerStatMan.h
  7138. * src/ServerStatURISelector.cc
  7139. * src/ServerStatURISelector.h
  7140. * src/URISelector.h
  7141. * src/option_processing.cc
  7142. * src/prefs.cc
  7143. * src/prefs.h
  7144. * test/InOrderURISelectorTest.cc
  7145. * test/RequestGroupManTest.cc
  7146. * test/ServerStatManTest.cc
  7147. * test/ServerStatURISelectorTest.cc
  7148. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. * Release 0.15.1+2
  7150. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7151. Bump up version number to 0.15.1+2
  7152. * configure.ac
  7153. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7155. * m4/aria2_arg.m4
  7156. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. * Release 0.15.1+1
  7158. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Bump up version number to 0.15.1+1
  7160. * configure.ac
  7161. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7162. Fixed the bug that causes segmentaion fault when resuming download
  7163. using metalink without size tag. Reproducible only using HTTP URI.
  7164. * src/HttpResponseCommand.cc
  7165. * src/FtpNegotiationCommand.cc
  7166. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. * Release 0.15.1
  7168. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7169. Updated Bulgarian and French translations, thanks to all translators.
  7170. * po/bg.po
  7171. * po/fr.po
  7172. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Bump up version number to 0.15.1
  7174. * configure.ac
  7175. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Avoid repeated call of gettimeofday() when calculating speed.
  7177. * src/SpeedCalc.cc
  7178. * src/SpeedCalc.h
  7179. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Removed writable check when socket's send buffer is full in BitTorrent
  7181. downloads to lower CPU usage.
  7182. * src/PeerInteractionCommand.cc
  7183. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7184. Fixed broken gzip inflation.
  7185. Turn off segmented downloading if gzip content is smaller than or equal
  7186. to 1MiB and inflate the data on the fly, because HTTP response header
  7187. doesn't contain the length of inflated file we can't determin where
  7188. the chunk of data should be written.
  7189. On the other hand, if gzip content is larger than 1MB, then turn off
  7190. on the fly inflation, because some servers returns "content-type: gzip"
  7191. for *.tgz, *.gz files.
  7192. * src/DownloadCommand.cc
  7193. * src/HttpResponseCommand.cc
  7194. * src/HttpResponseCommand.h
  7195. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7196. Applied tizianomueller's patch to fix compile error.
  7197. * test/BitfieldManTest.cc
  7198. * test/BtRequestMessageTest.cc
  7199. * test/DefaultBtContextTest.cc
  7200. * test/DefaultDiskWriterTest.cc
  7201. * test/DefaultPieceStorageTest.cc
  7202. * test/HttpHeaderProcessorTest.cc
  7203. * test/HttpResponseTest.cc
  7204. * test/Metalink2RequestGroupTest.cc
  7205. * test/MetalinkParserControllerTest.cc
  7206. * test/MetalinkProcessorTest.cc
  7207. * test/PeerSessionResourceTest.cc
  7208. * test/UtilTest.cc
  7209. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7210. * Release 0.15.0
  7211. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7212. Reordered src files in POTFILES.in so that usage text appears first.
  7213. * po/POTFILES.in
  7214. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7215. Bump up version number to 0.15.0
  7216. * configure.ac
  7217. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7218. Added Bulgarian translation.
  7219. Updated Catalan, Spanish, French and Japanese translations.
  7220. Thanks to all translators.
  7221. * po/LINGUAS
  7222. * po/bg.po
  7223. * po/ca.po
  7224. * po/es.po
  7225. * po/fr.po
  7226. * po/ja.po
  7227. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Updated feature list. Added libz for dependency section.
  7229. Added a description about unit testing using CppUnit.
  7230. * README
  7231. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7232. Added a test for libz. Quoted where it is necessary.
  7233. * build_test.sh
  7234. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Added GZip to `Enabled Features' list.
  7236. * src/FeatureConfig.cc
  7237. * src/FeatureConfig.h
  7238. * test/FeatureConfigTest.cc
  7239. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7240. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7241. the transfer has not yet started.
  7242. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7243. * src/SegmentMan.cc
  7244. * src/SegmentMan.h
  7245. * test/SegmentManTest.cc
  7246. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7247. Cache last calculated average download/upload speed.
  7248. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7249. cached value.
  7250. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7251. * src/PeerStat.h
  7252. * src/SpeedCalc.cc
  7253. * src/SpeedCalc.h
  7254. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7255. Call parseUrl directly.
  7256. * src/Request.cc (resetUrl)
  7257. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. Supported absolute/relative path in Location header field.
  7259. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7260. * src/HttpHeader.cc
  7261. * src/HttpHeader.h
  7262. * src/HttpResponse.cc
  7263. * src/HttpSkipResponseCommand.cc
  7264. * src/Request.cc
  7265. * test/HttpHeaderTest.cc
  7266. * test/HttpResponseTest.cc
  7267. * test/RequestTest.cc
  7268. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7269. Changed help text for --load-cookie option.
  7270. * doc/aria2c.1.txt
  7271. * src/usage_text.h
  7272. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7273. Regenerated test/Makefile.in to remove stale ChangeLog.
  7274. * test/Makefile.in
  7275. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Updated po files.
  7277. * po/aria2c.pot
  7278. * po/*.po
  7279. * po/*.gmo
  7280. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7281. Bump up version number to 0.15.0b
  7282. * configure.ac
  7283. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7284. Externalize messages.
  7285. * src/RequestGroupMan.cc
  7286. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7287. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7288. Use File::exists() instead of File::isFile() to allow non-regular file
  7289. such as block special files.
  7290. * src/AbstractDiskWriter.cc
  7291. * src/MultiDiskWriter.cc
  7292. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7294. * src/gai_strerror.h
  7295. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7296. Fixed compile error. Thanks gknauf for the patch.
  7297. * src/asctime_r.c
  7298. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7299. Included asctime_r.h from a2time.h.
  7300. * src/a2time.h
  7301. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7302. Added a message "aria2 doesn't verify signature" to log message when
  7303. signature file is saved.
  7304. * src/RequestGroupMan.cc
  7305. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Added the ability to save signature when download is completed if
  7307. signature is available. The filename of signature file is the path to
  7308. download file followed by ".sig". If it already exists, then signature
  7309. will not be saved.
  7310. * src/RequestGroupMan.cc
  7311. * src/Signature.cc
  7312. * test/SignatureTest.cc
  7313. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7314. Updated the descriptions for --bt-seed-unverified.
  7315. * doc/aria2c.1
  7316. * doc/aria2c.1.html
  7317. * doc/aria2c.1.txt
  7318. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7320. that this is not going to verify files using piece hashes.
  7321. * src/HelpItemFactory.cc
  7322. * src/OptionHandlerFactory.cc
  7323. * src/RequestGroup.cc
  7324. * src/option_processing.cc
  7325. * src/prefs.cc
  7326. * src/prefs.h
  7327. * src/usage_text.h
  7328. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Added the ability to retrieve signature from Metalink file.
  7330. A retrieved signature is stored in Signature class and it is held by
  7331. DownloadContext class. Note that aria2 doesn't verify signature.
  7332. * src/DownloadContext.cc
  7333. * src/DownloadContext.h
  7334. * src/Makefile.am
  7335. * src/Makefile.in
  7336. * src/Metalink2RequestGroup.cc
  7337. * src/MetalinkEntry.cc
  7338. * src/MetalinkEntry.h
  7339. * src/MetalinkParserController.cc
  7340. * src/MetalinkParserController.h
  7341. * src/MetalinkParserStateMachine.cc
  7342. * src/MetalinkParserStateMachine.h
  7343. * src/Signature.cc
  7344. * src/Signature.h
  7345. * src/SignatureMetalinkParserState.cc
  7346. * src/SignatureMetalinkParserState.h
  7347. * src/VerificationMetalinkParserState.cc
  7348. * src/VerificationMetalinkParserState.h
  7349. * test/Metalink2RequestGroupTest.cc
  7350. * test/MetalinkParserControllerTest.cc
  7351. * test/MetalinkProcessorTest.cc
  7352. * test/test.xml
  7353. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Close DiskAdaptor after renaming file.
  7355. * src/RequestGroup.cc
  7356. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Corrected indentation
  7358. * src/DefaultBtProgressInfoFile.cc
  7359. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7360. Moved the calls of std::ios::exceptions() inside of try-catch block
  7361. because if an error occurred in constructor of std::fstream, then
  7362. exception is thrown immediately when std::ios::exceptions() is called
  7363. which results unhandled exception and aria2c aborts.
  7364. * src/DefaultBtProgressInfoFile.cc
  7365. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Added the test for the previous change in DefaultBtContext.cc
  7367. * test/DefaultBtContextTest.cc
  7368. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7369. Fixed the bug that causes infinite loop when the number of pieces are
  7370. fewer than allowed fast set size which is 10 by default.
  7371. * src/DefaultBtContext.cc
  7372. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7373. Updated the descriptions for -j, -s. Added --bt-seed.
  7374. * doc/aria2c.1
  7375. * doc/aria2c.1.html
  7376. * doc/aria2c.1.txt
  7377. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7378. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7379. aria2 seeds previously downloaded files without validating piece hashs.
  7380. * src/HelpItemFactory.cc
  7381. * src/OptionHandlerFactory.cc
  7382. * src/RequestGroup.cc
  7383. * src/option_processing.cc
  7384. * src/prefs.cc
  7385. * src/prefs.h
  7386. * src/usage_text.h
  7387. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7388. Updated DESCRIPTION of man page.
  7389. * doc/aria2c.1
  7390. * doc/aria2c.1.html
  7391. * doc/aria2c.1.txt
  7392. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7394. Don't define `struct addrinfo' when __sun is defined.
  7395. * src/getaddrinfo.h
  7396. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7398. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7399. second argument is of type `struct _stati64'. Otherwise it is defined as
  7400. `struct stat'.
  7401. * src/AbstractDiskWriter.cc
  7402. * src/File.cc
  7403. * src/File.h
  7404. * src/a2io.h
  7405. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Fixed the compile error in hurd-i386
  7407. See the original bug report:
  7408. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7409. * src/a2io.h
  7410. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Code cleanup.
  7412. * src/PeerAbstractCommand.cc
  7413. * src/PeerAbstractCommand.h
  7414. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Removed TransferEncoding.
  7416. * src/DownloadCommand.cc
  7417. * src/DownloadCommand.h
  7418. * src/HttpResponseCommand.cc
  7419. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7420. Updated po files.
  7421. * po/aria2c.pot
  7422. * po/*.po
  7423. * po/*.gmo
  7424. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7425. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7426. * src/A2STR.cc
  7427. * src/A2STR.h
  7428. * src/ChunkedDecoder.cc
  7429. * src/ChunkedDecoder.h
  7430. * src/ChunkedEncoding.cc: Removed
  7431. * src/ChunkedEncoding.h: Removed
  7432. * src/DownloadCommand.cc
  7433. * src/DownloadCommand.h
  7434. * src/HttpDownloadCommand.cc
  7435. * src/HttpResponse.cc
  7436. * src/HttpResponse.h
  7437. * src/HttpResponseCommand.cc
  7438. * src/HttpSkipResponseCommand.cc
  7439. * src/HttpSkipResponseCommand.h
  7440. * src/Makefile.am
  7441. * src/TransferEncoding.h: Removed
  7442. * test/ChunkedDecoderTest.cc
  7443. * test/ChunkedEncodingTest.cc: Removed
  7444. * test/HttpResponseTest.cc
  7445. * test/Makefile.am
  7446. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7447. Use append instead of insert.
  7448. * src/GZipDecoder.cc
  7449. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Updated doc
  7451. * src/Decoder.h
  7452. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7453. Updated usage text for -s option.
  7454. * src/usage_text.h
  7455. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7456. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7457. * src/Request.cc
  7458. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. Cleaned up configure.ac.
  7460. * configure.ac
  7461. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7463. AC_ARG_ENABLE.
  7464. * configure.ac
  7465. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7466. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7467. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7468. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7469. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7470. fly and writes decoded data to a local disk.
  7471. * README
  7472. * README.html
  7473. * configure.ac
  7474. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7475. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7476. * m4/libz.m4
  7477. * src/Decoder.h
  7478. * src/DownloadCommand.cc
  7479. * src/DownloadCommand.h
  7480. * src/Exception.h
  7481. * src/GZipDecoder.cc
  7482. * src/GZipDecoder.h
  7483. * src/HttpHeader.cc
  7484. * src/HttpHeader.h
  7485. * src/HttpRequest.cc
  7486. * src/HttpRequest.h
  7487. * src/HttpResponse.cc
  7488. * src/HttpResponse.h
  7489. * src/HttpResponseCommand.cc
  7490. * src/Makefile.am
  7491. * test/GZipDecoderTest.cc
  7492. * test/HttpRequestTest.cc
  7493. * test/HttpResponseTest.cc
  7494. * test/Makefile.am
  7495. * test/Makefile.in
  7496. * test/gzip_decode_test.gz
  7497. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. Clarified usage of -j option.
  7499. * src/usage_text.h
  7500. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Disabled getting size from the response of RETR.
  7502. If SIZE command failed, then disable resuming and segmented downloading.
  7503. * src/FtpConnection.cc
  7504. * src/FtpConnection.h
  7505. * src/FtpNegotiationCommand.cc
  7506. * src/FtpNegotiationCommand.h
  7507. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Use digits to find first byte of file size, which makes the intention
  7509. of the code clearer.
  7510. * src/FtpConnection.cc
  7511. Don't call validateTotalLength() when size is 0.
  7512. * src/FtpNegotiationCommand.cc
  7513. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7514. Updated po files.
  7515. * po/aria2c.pot
  7516. * po/*.gmo
  7517. * po/*.po
  7518. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Clarified usage text for --split option.
  7520. * src/usage_text.h
  7521. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7522. Bump up version number to 0.15.0dev. "dev" means "development"
  7523. version, which means I started the development of the next release!
  7524. * src/configure.ac
  7525. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7526. If FTP server returns negative response with REST raw command and
  7527. requested range is not 0, throw exception. If requested range is 0,
  7528. continue download a file from 0 byte.
  7529. * src/FtpNegotiationCommand.cc
  7530. * src/FtpNegotiationCommand.h
  7531. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7532. Supported FTP server which don't recognize SIZE raw command.
  7533. If SIZE raw command is failed, aria2 will try to get file size
  7534. from the response of RETR raw command. If both attempts are failed,
  7535. then resuming and segmented downloading are disabled.
  7536. * src/FtpConnection.cc
  7537. * src/FtpConnection.h
  7538. * src/FtpNegotiationCommand.cc
  7539. * src/FtpNegotiationCommand.h
  7540. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7541. * Release 0.14.0+1
  7542. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Bump up version number to 0.14.0+1
  7544. * src/configure.ac
  7545. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7546. Fixed the code that refers static member variable from non-static
  7547. context.
  7548. * src/DefaultPeerStorage.cc
  7549. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7550. * Release 0.14.0
  7551. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7552. Added build test script
  7553. * build_test.sh
  7554. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7555. Updated ja.po
  7556. * src/ja.po
  7557. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7558. Bump up version number to 0.14.0
  7559. * src/configure.ac
  7560. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7561. Updated ja.po and fr.po. Great thanks for french translators and
  7562. Sebastien WILLEMIJNS.
  7563. * po/fr.po
  7564. * po/ja.po
  7565. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. Added configure option to enable/disable epoll support.
  7567. * configure.ac
  7568. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. Updated man page.
  7570. * doc/aria2c.1.txt
  7571. * doc/aria2c.1
  7572. * doc/aria2c.1.html
  7573. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7574. Added missing default value '5' to the usage of --split option.
  7575. * src/HelpItemFactory.cc
  7576. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7577. Filled up pieces based on the number of missing blocks, rather than
  7578. simplay the number of piece * block length.
  7579. * src/BtRequestFactory.h
  7580. * src/DefaultBtInteractive.cc
  7581. * src/DefaultBtInteractive.h
  7582. * src/DefaultBtRequestFactory.cc
  7583. * src/DefaultBtRequestFactory.h
  7584. * src/Piece.cc
  7585. * src/Piece.h
  7586. * test/BitfieldManTest.cc
  7587. * test/DefaultBtRequestFactoryTest.cc
  7588. * test/MockBtRequestFactory.h
  7589. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7590. Made _epEvents a member variable.
  7591. * src/DownloadEngine.cc
  7592. * src/DownloadEngine.h
  7593. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7594. Cancel download if http redirect is bounded more than 20 times.
  7595. * src/AbstractCommand.cc
  7596. * src/HttpSkipResponseCommand.cc
  7597. * src/Request.cc
  7598. * src/Request.h
  7599. * test/RequestTest.cc
  7600. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7601. Fixed unhandled exception(removed keyword `new').
  7602. * src/SocketCore.cc (initEPOLL)
  7603. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7604. Removed visit(const MetaEntry*)
  7605. * src/MetaEntryVisitor.h:
  7606. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7607. and made them virtual.
  7608. * src/BencodeVisitor.h
  7609. * src/BencodeVisitor.cc
  7610. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. Updated po files.
  7612. * po/aria2c.pot
  7613. * po/*.po
  7614. * po/*.gmo
  7615. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7616. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7617. the number of socket to watch out.
  7618. * src/PeerInteractionCommand.cc
  7619. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7620. When there is not enough space in disk when writing a chunk of data,
  7621. aria2 now prints the message to the console to warn user and aborts
  7622. its download. Not all downloads are canceled because some downloads
  7623. may use another disk or partition. BUG#1640332
  7624. * src/AbstractDiskWriter.cc
  7625. * src/PeerAbstractCommand.cc
  7626. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7627. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7628. setHaltRequested(true) to cancel download.
  7629. * src/PeerInteractionCommand.h
  7630. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7631. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7632. socket from int to sock_t as sockets are unsigned in Windows.
  7633. For AsyncNameResolver, DownloadEngine, I did additional modification
  7634. for the portion of the code changed according to epoll support.
  7635. I defined sock_t in a2netcompat.h to use sock_t without including
  7636. SocketCore.h.
  7637. * src/AsyncNameResolver.cc
  7638. * src/AsyncNameResolver.h
  7639. * src/DownloadEngine.cc
  7640. * src/DownloadEngine.h
  7641. * src/SocketCore.cc
  7642. * src/SocketCore.h
  7643. * src/a2netcompat.h
  7644. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7645. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7646. changes in the patch were applied.
  7647. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7648. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7649. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7650. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7652. a2io.h and common.h were modified.
  7653. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7654. MinGW.
  7655. * src/common.h: Changed off_t to 64 bit in MinGW.
  7656. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7657. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7658. only a2netcompat.h is modified.
  7659. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7660. directives.
  7661. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7662. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7663. only gai_strerror.h is modified.
  7664. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7665. winsock errors in MinGW.
  7666. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7667. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7668. follow sources are applied.
  7669. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7670. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7671. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7672. I included locale.h from Platform.cc.
  7673. * src/main.cc: Moved common setup/teardown code to Platform class.
  7674. * test/AllTest.cc: Use Platform class.
  7675. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7676. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7677. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7678. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7679. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7680. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7682. aria2-0.13.2+1-mingw-2.patch.
  7683. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7684. systems which don't have termious.h. I moved the directive inside of
  7685. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7686. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7687. anyway.
  7688. * src/asctime_r.h
  7689. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7690. I added 2nd argument to the prototype declaration.
  7691. * src/StringFormat.cc: Get rid of vasprintf.
  7692. * src/getaddrinfo.h: Fixed constants.
  7693. * configure.ac: Added the check for asctime_r function.
  7694. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7695. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Added writable test for Socket when the sending message is in progress.
  7697. Usually the sending message is piece message. Without wriable check,
  7698. upload latency is dropped to more than 1sec.
  7699. * src/PeerInteractionCommand.cc
  7700. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. Create only requested files and files which shares a piece with
  7702. requested file in multi-torrent downloads. Directory structures are
  7703. also created in the same rule.
  7704. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7705. DiskWriterEntry as in the previous implementation.
  7706. * src/MultiDiskWriter.cc
  7707. * src/MultiFileAllocationIterator.cc
  7708. * src/MultiFileAllocationIterator.h
  7709. * test/MultiFileAllocationIteratorTest.cc
  7710. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Commented out -lprofiler
  7712. * src/Makefile.am
  7713. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7714. Bump up version number to 0.14.0b.
  7715. * src/configure.ac
  7716. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. Actively establish connection to peers in seeding, when peer cache
  7718. is not full and max upload speed limit is not reached.
  7719. * src/ActivePeerConnectionCommand.cc
  7720. * src/ActivePeerConnectionCommand.h
  7721. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7723. to make room more fleshy, recently found peers.
  7724. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7725. it.
  7726. * src/DefaultPeerStorage.cc
  7727. * test/DefaultPeerStorageTest.cc
  7728. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7729. Returns cached data only when the previous receiveHandshake() is called
  7730. with peek = true.
  7731. * src/PeerConnection.cc (receiveHandshake)
  7732. * src/PeerConnection.h (receiveHandshake)
  7733. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Changed default value of -s option from 1 to 5.
  7735. Also max value of -s option is changed from 5 to 16.
  7736. * src/HelpItemFactory.cc
  7737. * src/OptionHandlerFactory.cc
  7738. * src/option_processing.cc
  7739. * src/usage_text.h
  7740. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Changed -s options behavior. Now it means the number of connections
  7742. made simultaneously in each http/ftp download.
  7743. If 1 URL is specified, the behavior is the same with old implementation.
  7744. If -s N is given and more than N URLs are specified, first N URLs are
  7745. used and remaining URLs are used for backup. If less than N URLs are
  7746. specified, some of URLs are used more than once so that totally N
  7747. connections are made simultaneously.
  7748. * src/main.cc
  7749. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7750. Included missing iosfwd or ostream header.
  7751. * src/RequestGroupMan.cc
  7752. * src/TaggedItem.cc
  7753. * src/TaggedItem.h
  7754. * src/Util.cc
  7755. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7756. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7757. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7758. * src/HttpConnection.cc: Included missing sstream.
  7759. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Added --bt-max-open-files option.
  7761. * src/DefaultPieceStorage.cc
  7762. * src/HelpItemFactory.cc
  7763. * src/MultiDiskAdaptor.cc
  7764. * src/MultiDiskAdaptor.h
  7765. * src/OptionHandlerFactory.cc
  7766. * src/option_processing.cc
  7767. * src/prefs.cc
  7768. * src/prefs.h
  7769. * src/usage_text.h
  7770. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7771. Fixed the bug that aria2 aborts when a path to a directory is given
  7772. in command-line.
  7773. * src/ProtocolDetector.cc
  7774. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Limited the number files opened in each BitTorrent download. The default
  7776. value is 100. The option to change this value will be added.
  7777. * src/MultiDiskAdaptor.cc
  7778. * src/MultiDiskAdaptor.h
  7779. * src/MultiFileAllocationIterator.cc
  7780. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. Fixed the bug that HTTP downloads don't start with old libraries.
  7782. * src/HttpHeaderProcessor.cc
  7783. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7784. Use empty() instead of size() > 0.
  7785. * src/HttpConnection.cc
  7786. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Drop connection if the incoming peer ID is the same with localhost's
  7788. one. The previous implementation drops connection when incoming peer's
  7789. IP address is the same with localhost's one.
  7790. * src/PeerListenCommand.cc
  7791. * src/DefaultBtInteractive.cc
  7792. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7793. Returns cached data without checking whether socket is readable
  7794. if the cache is available.
  7795. * src/PeerConnection.cc (receiveHandshake)
  7796. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7797. Included stdint.h
  7798. * src/common.h
  7799. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7800. Removed duplicate HAVE_GETTIMEOFDAY
  7801. * src/Makefile.am
  7802. * src/Makefile.in
  7803. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. Use interval as a minInterval when minInterval is not supplied.
  7805. * src/DefaultBtAnnounce.cc
  7806. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7807. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7808. attempt is failed, then 2nd attempt get kicked out more quickly.
  7809. And it is now static const member of DefaultBtAnnounce.
  7810. * src/DefaultBtAnnounce.h
  7811. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7812. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7813. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7814. * src/ActivePeerConnectionCommand.cc
  7815. * src/BtConstants.h
  7816. * src/BtRuntime.h
  7817. * src/DHTGetPeersCommand.cc
  7818. * src/DefaultBtAnnounce.cc
  7819. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7820. BtRuntime::MAX_PEERS.
  7821. * src/DefaultPeerStorage.h
  7822. * src/InitiatorMSEHandshakeCommand.cc
  7823. * src/PeerInitiateConnectionCommand.cc
  7824. * src/PeerInteractionCommand.cc
  7825. * src/PeerReceiveHandshakeCommand.cc
  7826. * src/TrackerWatcherCommand.cc
  7827. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Always Connect to _numNewConnection
  7829. * src/ActivePeerConnectionCommand.cc
  7830. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7831. Made `begin' unsigned int.
  7832. * src/GrowSegment.h
  7833. * src/Piece.cc
  7834. * src/Piece.h
  7835. * src/PiecedSegment.cc
  7836. * src/PiecedSegment.h
  7837. * src/Segment.h
  7838. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7839. Calculate piece hash when data is arrived if the data is arrived in
  7840. order. This removes additional read operation for hash calculation.
  7841. If the data is arrived in out of order, the hash is calucated when the
  7842. piece is completed. This is the same behavior as the old implementation.
  7843. * src/BtPieceMessage.cc
  7844. * src/DefaultBtProgressInfoFile.cc
  7845. * src/DefaultPieceStorage.cc
  7846. * src/DownloadCommand.cc
  7847. * src/DownloadCommand.h
  7848. * src/DownloadEngine.cc
  7849. * src/GrowSegment.cc
  7850. * src/GrowSegment.h
  7851. * src/Piece.cc
  7852. * src/Piece.h
  7853. * src/PiecedSegment.cc
  7854. * src/PiecedSegment.h
  7855. * src/Segment.h
  7856. * test/PieceTest.cc
  7857. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7858. Try to keep the ordering of outgoing piece message.
  7859. * src/DefaultBtMessageDispatcher.cc
  7860. (DefaultBtMessageDispatcher::sendMessages)
  7861. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7862. Fixed busy loop when error/hup epoll events occur.
  7863. * src/AbstractCommand.cc
  7864. * src/PeerAbstractCommand.cc
  7865. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. Added --bt-request-peer-speed-limit option, which was a constant
  7867. SLOW_SPEED_THRESHOLD.
  7868. * src/ActivePeerConnectionCommand.cc
  7869. * src/ActivePeerConnectionCommand.h
  7870. * src/BtConstants.h
  7871. * src/HelpItemFactory.cc
  7872. * src/OptionHandlerFactory.cc
  7873. * src/PeerReceiveHandshakeCommand.cc
  7874. * src/option_processing.cc
  7875. * src/prefs.cc
  7876. * src/prefs.h
  7877. * src/usage_text.h
  7878. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7879. Removed repeated call of getTopDirPath(). Instead, call it once and
  7880. cache the result.
  7881. * src/MultiDiskAdaptor.cc
  7882. * src/MultiDiskAdaptor.h
  7883. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7884. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7885. Fixed compile error on debian etch.
  7886. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7887. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7888. it is undefined.
  7889. * src/Util.cc (ULLONG_MAX)
  7890. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. Added epoll support. Use epoll if it is available. If not, use select.
  7892. When async dns is enabled in compile time, epoll support is enabled
  7893. only when aria2 is built with c-ares. This condition statement is
  7894. defined in a2io.h.
  7895. Currently aria2 supports both c-ares and ares, but ares is maintained
  7896. for quite a while and debian already has c-ares package, ares support
  7897. will be dropped in the future version.
  7898. * configure.ac
  7899. * src/AbstractCommand.cc
  7900. * src/AsyncNameResolver.cc
  7901. * src/AsyncNameResolver.h
  7902. * src/Command.cc
  7903. * src/Command.h
  7904. * src/DownloadEngine.cc
  7905. * src/DownloadEngine.h
  7906. * src/PeerAbstractCommand.cc
  7907. * src/SocketCore.cc
  7908. * src/SocketCore.h
  7909. * src/a2io.h
  7910. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7911. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7912. directive.
  7913. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Do not do write operation to /dev/null file.
  7915. * src/LogFactory.cc
  7916. * src/SimpleLogger.cc
  7917. Replaced vasprintf with vsnprintf
  7918. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7919. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7920. * src/BtRequestMessage.cc
  7921. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7922. for segmentation fault caused by previous commit.
  7923. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. Reduced the usage of gettimeofday().
  7925. * src/DefaultBtMessageDispatcher.cc
  7926. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7927. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7928. * src/RequestSlot.cc
  7929. * src/RequestSlot.h
  7930. (RequestSlot::isTimeout)
  7931. Made RequestSlot have a reference to Piece object to avoid find
  7932. Piece repeatedly.
  7933. * src/DefaultBtMessageDispatcher.cc
  7934. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7935. * src/RequestSlot.cc
  7936. * src/RequestSlot.h
  7937. (RequestSlot::getPiece)
  7938. * test/DefaultBtMessageDispatcherTest.cc
  7939. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. * src/TimeA2.cc
  7941. * src/TimeA2.h
  7942. (Time::difference): New function.
  7943. (Time::elapsed): Done optimization.
  7944. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7945. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7946. directive.
  7947. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. * src/option_processing.cc: Added missing `defined' keyword to #if
  7949. directive.
  7950. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7951. Bump up version number to 0.13.2+1
  7952. * src/configure.ac
  7953. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7954. Refactored broken outstanding piece handling.
  7955. * src/DefaultPieceStorage.cc
  7956. * src/DefaultPieceStorage.h
  7957. * src/Piece.cc
  7958. * src/Piece.h
  7959. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7960. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7961. name collision of static variable and predefined macro.
  7962. * src/BtContext.cc
  7963. * src/BtContext.h
  7964. * src/CookieBoxFactory.cc
  7965. * src/CookieBoxFactory.h
  7966. * src/CookieParser.cc
  7967. * src/CookieParser.h
  7968. * src/DefaultBtContext.cc
  7969. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. * src/RequestGroup.cc
  7971. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7972. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7973. * Release 0.13.2
  7974. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7975. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7976. * po/fr.po
  7977. * po/ja.po
  7978. * po/aria2c.pot
  7979. * po/*.po
  7980. * po/*.gmo
  7981. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7982. Bump up version number to 0.13.2
  7983. * src/configure.ac
  7984. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7985. Refactord.
  7986. * src/RequestGroupMan.cc
  7987. (removeStoppedGroup)
  7988. (fillRequestGroupFromReserver)
  7989. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Fixed compile error on Ubuntu.
  7991. * src/BtPieceMessage.cc
  7992. * src/MessageDigestHelper.cc
  7993. * src/Util.cc
  7994. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7995. Fixed compile error when configured with --disable-bittorrent
  7996. * test/DownloadHandlerFactoryTest.cc
  7997. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7998. Done make update-po
  7999. * po/aria2c.pot
  8000. * po/*.po
  8001. * po/*.gmo
  8002. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8003. Bump up version number to 0.13.2rc.
  8004. * src/configure.ac
  8005. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Made option name bold. Updated SYNOPSIS to make it more readable.
  8007. * doc/aria2c.1.txt
  8008. * doc/aria2c.1
  8009. * doc/aria2c.1.html
  8010. * src/version_usage.cc
  8011. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8012. Refactored. Use std::string instead of size and char*.
  8013. * Data.cc
  8014. * Data.h
  8015. * test/Data.cc
  8016. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Added trimSelf(). Rewritten trim() to use trimSelf().
  8018. * Util.cc
  8019. * Util.h
  8020. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8022. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Fixed compile error when configured with --disable-metalink.
  8024. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8025. * test/FeatureConfigTest.cc
  8026. * test/DownloadHandlerFactoryTest.cc
  8027. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8028. Fixed compile error when configured with --without-gnutls
  8029. --without-openssl
  8030. * src/main.cc
  8031. * test/DefaultBtProgressInfoFileTest.cc
  8032. * test/SegmentManTest.cc
  8033. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8034. Fixed compile error with OpenSSL.
  8035. * src/IteratableChunkChecksumValidator.cc
  8036. * src/LibsslDHKeyExchange.h
  8037. * src/MessageDigestHelper.cc
  8038. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. Revert the default value of --max-concurrent-downloads to 5.
  8040. Revert the default value of --metalink-servers to 5.
  8041. Man pages was also updated.
  8042. * src/option_processing.cc
  8043. * doc/aria2c.1.txt
  8044. * doc/aria2c.1.html
  8045. * doc/aria2c.1
  8046. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. Returns const reference:
  8048. DownloadContext::getPieceHash, DownloadContext::getName,
  8049. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8050. BtContext::getInfoHashAsString,
  8051. * src/BtContext.h
  8052. * src/DefaultBtContext.cc
  8053. * src/DefaultBtContext.h
  8054. * src/DownloadContext.h
  8055. * src/SingleFileDownloadContext.h
  8056. * test/MockBtContext.h
  8057. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8058. * src/RequestGroup.h (getDir): Removed.
  8059. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Returns const reference. The internal urlencode function was optimized
  8061. a little bit.
  8062. * src/Request.cc
  8063. * src/Request.h
  8064. * src/HttpRequest.cc
  8065. * src/HttpRequest.h
  8066. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8067. Defined option name and possible values as std::string to reduce
  8068. temporary string object creation in runtime.
  8069. * src/HelpItemFactory.cc
  8070. * src/LogFactory.cc
  8071. * src/Option.cc
  8072. * src/OptionHandlerFactory.cc
  8073. * src/option_processing.cc
  8074. * src/prefs.cc
  8075. * src/prefs.h
  8076. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8077. Return const reference.
  8078. * src/DownloadHandlerConstants.cc
  8079. * src/DownloadHandlerConstants.h
  8080. (getMetalinkExtensions)
  8081. (getMetalinkContentTypes)
  8082. (getBtExtensions)
  8083. (getBtContentTypes)
  8084. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. * src/HttpHeader.cc (get): Rewritten.
  8086. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8087. Make HttpHeader::getFirst(...) return const reference.
  8088. * src/HttpHeader.cc
  8089. * src/HttpHeader.h
  8090. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8092. it with V_TRUE.
  8093. * src/DefaultPieceStorage.cc
  8094. * src/DownloadCommand.cc
  8095. * src/FtpNegotiationCommand.cc
  8096. * src/HttpRequest.cc
  8097. * src/InitiateConnectionCommand.cc
  8098. * src/RequestGroup.cc
  8099. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. Made Option::get(...) return const reference of std::string.
  8101. * src/Option.cc
  8102. * src/Option.h
  8103. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Replaced std:copy with insert.
  8105. * src/DefaultBtMessageDispatcher.cc
  8106. * src/DefaultPieceStorage.cc
  8107. * src/DownloadEngineFactory.cc
  8108. * src/RequestGroup.cc
  8109. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. Included SocketCore.h to fix compiler warning.
  8111. * src/InitiateConnectionCommand.cc
  8112. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. Put piece selection strategy algorithm to RarestPieceSelector class,
  8114. Added a switch to choose whether randomized selection so that unit
  8115. tests emit same results in, possibly, win32.
  8116. * src/DefaultPieceStorage.cc
  8117. * src/DefaultPieceStorage.h
  8118. * src/RarestPieceSelector.cc
  8119. * src/RarestPieceSelector.h
  8120. * test/DefaultPieceStorageTest.cc
  8121. * test/RarestPieceSelectorTest.cc
  8122. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Don't pool connection if HTTP proxy is enabled.
  8124. * src/FtpFinishDownloadCommand.cc
  8125. * src/FtpNegotiationCommand.cc
  8126. * src/HttpSkipResponseCommand.cc
  8127. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8129. * src/AbstractCommand.cc
  8130. * src/AbstractCommand.h
  8131. * src/ActivePeerConnectionCommand.cc
  8132. * src/FtpInitiateConnectionCommand.cc
  8133. * src/HttpInitiateConnectionCommand.cc
  8134. * src/InitiateConnectionCommandFactory.cc
  8135. * src/PeerAbstractCommand.cc
  8136. * src/PeerAbstractCommand.h
  8137. * src/PeerInitiateConnectionCommand.cc
  8138. * src/TrackerWatcherCommand.cc
  8139. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8140. Sort RequestSlot in ascending order and manipulate them using
  8141. lower_bound.
  8142. * src/DefaultBtMessageDispatcher.cc
  8143. * src/DefaultBtMessageDispatcher.h
  8144. (getMessageQueue): Added const qualifier.
  8145. (getRequestSlots): Added const qualifier.
  8146. (sendMessages): Use empty() instead of size().
  8147. (doCancelSendingPieceAction): Use HandleEvent object.
  8148. (doAbortOutstandingRequestAction): Rewritten.
  8149. (doChokedAction): Rewritten.
  8150. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8151. (isOutstandingRequest): Rewritten.
  8152. (getOutstandingRequest): Rewritten.
  8153. (removeOutstandingRequest): Rewritten.
  8154. (addOutstandingRequest): Rewritten.
  8155. * src/RequestSlot.cc
  8156. * src/RequestSlot.h
  8157. (operator=): Rewritten.
  8158. (operator!=): New function.
  8159. (operator<): New function.
  8160. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. * src/DefaultBtRequestFactory.cc
  8162. (doChokedAction): Rewritten.
  8163. (removeCompletedPiece): Rewritten.
  8164. (removeTargetPiece): Rewritten.
  8165. (createRequestMessages): Added the debug log.
  8166. (createRequestMessagesOnEndGame: Added the debug log.
  8167. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Added the debug log message.
  8169. * src/BtPieceMessage.cc (doReceivedAction)
  8170. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8172. used lower_bound to process them rather than linear search.
  8173. * src/DHTPeerAnnounceStorage.cc
  8174. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8175. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8176. peer has at least one completed piece.
  8177. * src/Peer.cc
  8178. * src/Peer.h
  8179. * src/PeerInteractionCommand.cc
  8180. * src/PeerSessionResource.cc
  8181. * src/PeerSessionResource.h
  8182. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Removed unnecessary sorting
  8184. * src/DefaultPieceStorage (DefaultPieceStorage)
  8185. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Rewritten the portion of the code that mangaes allowed fast indexes.
  8187. * src/PeerSessionResource.cc
  8188. * src/PeerSessionResource.h
  8189. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Removed the invalid string including '\r' from ru.po and
  8191. did make update-po.
  8192. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8193. Added --log-level and --summary-interval to man page.
  8194. * doc/aria2c.1.txt
  8195. * doc/aria2c.1.html
  8196. * doc/aria2c.1
  8197. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Added --log-level option to specify log level. Log messages under
  8199. the specified level are not output. Default value is `debug'.
  8200. * src/HelpItemFactory.cc
  8201. * src/LogFactory.cc
  8202. * src/LogFactory.h
  8203. * src/Logger.h
  8204. * src/OptionHandlerFactory.cc
  8205. * src/SimpleLogger.cc
  8206. * src/SimpleLogger.h
  8207. * src/main.cc
  8208. * src/option_processing.cc
  8209. * src/prefs.h
  8210. * src/usage_text.h
  8211. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8212. Print download progress summary of all parallel downloads in specified
  8213. interval, default 60 secs. While aria2 could download several files
  8214. in parallel (see -j option), it displayed just first download progress,
  8215. and the other downloads are hidden from the users. This new feature
  8216. prints all downloads currently in-progress to the console so that you
  8217. can check the status of all downloads. The interval can be adjusted
  8218. by --summary-interval option.
  8219. The progress readout is now cut so that all fits in the one line of
  8220. console.
  8221. * src/ConsoleStatCalc.cc
  8222. * src/ConsoleStatCalc.h
  8223. * src/HelpItemFactory.cc
  8224. * src/OptionHandlerFactory.cc
  8225. * src/RequestGroupMan.cc
  8226. * src/RequestGroupMan.h
  8227. * src/main.cc
  8228. * src/option_processing.cc
  8229. * src/prefs.h
  8230. * src/usage_text.h
  8231. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8232. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8233. * src/DownloadEngine.cc (DownloadEngine)
  8234. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8236. defined.
  8237. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8238. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Use erase+lower_bound+insert instead of sort.
  8240. * src/DefaultPieceStorage.cc (addPieceStats)
  8241. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8243. * src/A2STR.cc
  8244. * src/A2STR.h
  8245. * src/OptionParser.cc (parse)
  8246. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8247. Defined fake filename `[tracker.announce]' as static const std::string.
  8248. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8249. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8250. Defined default filename `index.html' as static const std::string
  8251. * src/SingleFileDownloadContext.cc
  8252. * src/SingleFileDownloadContext.h
  8253. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8254. Defined "[MEMORY]" as static const std::string.
  8255. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8256. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. Defined control file's version number as static const std::string.
  8258. * src/DefaultBtProgressInfoFile.cc
  8259. * src/DefaultBtProgressInfoFile.h
  8260. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8261. Use Request::METHOD_GET
  8262. * src/RequestGroup.cc (createNextCommandWithAdj)
  8263. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. Defined "OK", "ERR", "INPR" as static const std::string
  8265. * src/RequestGroupMan.cc (showDownloadResults)
  8266. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Defined default client used in extended handshake as static const
  8268. std::string
  8269. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8270. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8271. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8272. * src/HttpConnection.cc (eraseConfidentialInfo)
  8273. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. Defined default ftp user and password as static const std::string
  8275. * src/AuthConfigFactory.cc
  8276. * src/AuthConfigFactory.h
  8277. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8278. Defined strings used in netrc as static const std::string
  8279. * src/Netrc.cc
  8280. * src/Netrc.h
  8281. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. Defined HTTP status as static const std::string
  8283. * src/AbstractProxyResponseCommand.cc
  8284. * src/HttpHeader.cc
  8285. * src/HttpHeader.h
  8286. * src/HttpResponse.cc
  8287. * src/HttpResponseCommand.cc
  8288. * src/HttpSkipResponseCommand.cc
  8289. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Defined "\r\n", "A", "I" as static const std::string
  8291. * src/A2STR.cc
  8292. * src/A2STR.h
  8293. * src/FtpConnection.cc
  8294. * src/FtpConnection.h
  8295. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8296. Added COLON_C(".") and used it in Request::parseUrl()
  8297. * src/A2STR.cc
  8298. * src/A2STR.h
  8299. * src/Request.cc (parseUrl)
  8300. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8301. Changed the type of padName from `const std::string&' to `const char*'.
  8302. * src/MSEHandshake.cc (verifyPadLength)
  8303. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. Defined "sha1" as static const std::string.
  8305. * src/MetalinkParserController.cc
  8306. * src/MetalinkParserController.h
  8307. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. Defined message digest algorithm name as static const std::string
  8309. * src/DHTTokenTracker.cc
  8310. * src/DHTUtil.cc
  8311. * src/DefaultBtContext.cc
  8312. * src/MSEHandshake.cc
  8313. * src/MessageDigestHelper.cc
  8314. * src/Peer.cc
  8315. * src/messageDigest.cc
  8316. * src/messageDigest.h
  8317. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8318. Made string literals used in SAX parser static const std::string.
  8319. * src/FileMetalinkParserState.cc
  8320. * src/FileMetalinkParserState.h
  8321. * src/FilesMetalinkParserState.cc
  8322. * src/FilesMetalinkParserState.h
  8323. * src/InitialMetalinkParserState.cc
  8324. * src/InitialMetalinkParserState.h
  8325. * src/MetalinkMetalinkParserState.cc
  8326. * src/MetalinkMetalinkParserState.h
  8327. * src/PiecesMetalinkParserState.cc
  8328. * src/PiecesMetalinkParserState.h
  8329. * src/ResourcesMetalinkParserState.cc
  8330. * src/ResourcesMetalinkParserState.h
  8331. * src/VerificationMetalinkParserState.cc
  8332. * src/VerificationMetalinkParserState.h
  8333. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8335. * src/A2STR.cc
  8336. * src/A2STR.h
  8337. * src/File.cc
  8338. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8339. Defined static const std::string IP("ip"), PORT("port") and use them
  8340. instead of string literals.
  8341. * src/DefaultPeerListProcessor.cc
  8342. * src/DefaultPeerListProcessor.h
  8343. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Made string literals for torrent file processing static const
  8345. std::string.
  8346. * src/BtContext.cc
  8347. * src/BtContext.h
  8348. * src/DefaultBtContext.cc
  8349. * src/DefaultBtContext.h
  8350. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8351. Made string literal for tracker response static const std::string
  8352. * src/BtAnnounce.cc
  8353. * src/BtAnnounce.h
  8354. * src/DefaultBtAnnounce.cc
  8355. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Use DHTMessage::T instead of "t".
  8357. * src/DHTMessageTracker.cc (messageArrived)
  8358. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8359. Made keyName static const. Made trimmed charset static const
  8360. std::string.
  8361. * src/Util.cc (getContentDispositionFilename)
  8362. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8363. Made USER_AGENT const. Made "/" static const std::string.
  8364. * src/A2STR.cc
  8365. * src/A2STR.h
  8366. * src/HttpRequest.cc
  8367. * src/HttpRequest.h
  8368. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8369. Made string listeral to static const std::string:
  8370. "Content-Range", "Content-Length"
  8371. * src/HttpHeader.cc
  8372. * src/HttpHeader.h
  8373. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. Made string listeral to static const std::string.
  8375. * src/HttpConnection.cc
  8376. * src/HttpHeader.cc
  8377. * src/HttpHeader.h
  8378. * src/HttpResponse.cc
  8379. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8380. Made string listeral to static const std::string.
  8381. * src/A2STR.cc
  8382. * src/A2STR.h
  8383. * src/SimpleLogger.cc
  8384. * src/SimpleLogger.h
  8385. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. Made string literal to static const std::string.
  8387. Rewritten CookieParser::setField.
  8388. * src/A2STR.cc
  8389. * src/A2STR.h
  8390. * src/CookieBoxFactory.cc
  8391. * src/CookieBoxFactory.h
  8392. * src/CookieParser.cc
  8393. * src/CookieParser.h
  8394. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8395. Made string literal to static const std::string
  8396. * src/DHTAbstractMessage.cc
  8397. * src/DHTAnnouncePeerMessage.cc
  8398. * src/DHTAnnouncePeerMessage.h
  8399. * src/DHTAnnouncePeerReplyMessage.cc
  8400. * src/DHTAnnouncePeerReplyMessage.h
  8401. * src/DHTFindNodeMessage.cc
  8402. * src/DHTFindNodeMessage.h
  8403. * src/DHTFindNodeReplyMessage.cc
  8404. * src/DHTFindNodeReplyMessage.h
  8405. * src/DHTGetPeersMessage.cc
  8406. * src/DHTGetPeersMessage.h
  8407. * src/DHTGetPeersReplyMessage.cc
  8408. * src/DHTGetPeersReplyMessage.h
  8409. * src/DHTMessage.cc
  8410. * src/DHTMessage.h
  8411. * src/DHTMessageFactoryImpl.cc
  8412. * src/DHTMessageReceiver.cc
  8413. * src/DHTPingMessage.cc
  8414. * src/DHTPingMessage.h
  8415. * src/DHTPingReplyMessage.cc
  8416. * src/DHTPingReplyMessage.h
  8417. * src/DHTQueryMessage.cc
  8418. * src/DHTQueryMessage.h
  8419. * src/DHTResponseMessage.cc
  8420. * src/DHTResponseMessage.h
  8421. * src/DHTUnknownMessage.cc
  8422. * src/DHTUnknownMessage.h
  8423. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. Made string literal to static const std::string
  8425. * src/BtChokeMessage.cc (toString)
  8426. * src/BtHaveAllMessage.cc (toString)
  8427. * src/BtHaveNoneMessage.cc (toString)
  8428. * src/BtInterestedMessage.cc (toString)
  8429. * src/BtNotInterestedMessage.cc (toString)
  8430. * src/BtUnchokeMessage.cc (toString)
  8431. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. Replaced "" with static const variable A2STR::NIL.
  8433. Replaced string comparison against "" with std::string::empty().
  8434. Added PROTO_* to Request class and use them as a protocol string
  8435. constant.
  8436. Made "started", "stopped", "completed" static const variable in
  8437. AnnounceList class.
  8438. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8439. Updated translations. Great thanks to translators.
  8440. * po/ca.po
  8441. * po/de.po
  8442. * po/fr.po
  8443. * po/it.po
  8444. * po/ja.po
  8445. * po/ru.po
  8446. * po/zh_CN.po
  8447. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. Updated man page; categorized options and fixed typo.
  8449. * doc/aria2c.1.txt
  8450. * doc/aria2c.1.html
  8451. * doc/aria2c.1
  8452. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8453. Removed const ref
  8454. * src/MetalinkEntry.cc (AddProtocolPreference)
  8455. * src/RequestGroup.cc (FindServerHostByHostname)
  8456. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8457. Rewritten Accept-Features handling.
  8458. * src/HttpRequestCommand.cc (createHttpRequest)
  8459. * src/a2functional.h
  8460. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. Changed method signature:
  8462. DHTAbstractNodeLookupTask::toEntries
  8463. * src/DHTAbstractNodeLookupTask.cc
  8464. * src/DHTAbstractNodeLookupTask.h
  8465. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8466. Changed method signature:
  8467. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8468. * src/BtContext.h
  8469. * src/DefaultBtContext.cc
  8470. * src/DefaultBtContext.h
  8471. * src/DefaultBtInteractive.cc
  8472. * test/DefaultBtContextTest.cc
  8473. * test/MockBtContext.h
  8474. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Changed method signature:
  8476. MultiFileAllocationIterator::makeDiskWriterEntries
  8477. * src/MultiFileAllocationIterator.cc
  8478. * src/MultiFileAllocationIterator.h
  8479. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8480. Changed method sinature:
  8481. MetalinkEntry::toFileEntry,
  8482. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8483. Metalinker::queryEntry
  8484. * src/Metalink2RequestGroup.cc
  8485. * src/MetalinkEntry.cc
  8486. * src/MetalinkEntry.h
  8487. * src/MetalinkHelper.cc
  8488. * src/MetalinkHelper.h
  8489. * src/Metalinker.cc
  8490. * src/Metalinker.h
  8491. * src/main.cc
  8492. * test/MetalinkHelperTest.cc
  8493. * test/MetalinkerTest.cc
  8494. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Changed method sinature:
  8496. RequestGroup::getURIs
  8497. * src/RequestGroup.cc
  8498. * src/RequestGroup.h
  8499. * test/Metalink2RequestGroupTest.cc
  8500. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8501. Changed method signature:
  8502. PeerListProcessor::extractPeer
  8503. * src/CompactPeerListProcessor.cc
  8504. * src/CompactPeerListProcessor.h
  8505. * src/DefaultBtAnnounce.cc
  8506. * src/DefaultPeerListProcessor.cc
  8507. * src/DefaultPeerListProcessor.h
  8508. * src/DelegatingPeerListProcessor.cc
  8509. * src/DelegatingPeerListProcessor.h
  8510. * src/PeerListProcessor.h
  8511. * src/UTPexExtensionMessage.cc
  8512. * test/DefaultPeerListProcessorTest.cc
  8513. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8514. Changed method signature:
  8515. BtRequestFactory::createRequestMessages,
  8516. BtRequestFactory::createRequestMessagesOnEndGame
  8517. * src/BtRequestFactory.h
  8518. * src/DefaultBtInteractive.cc
  8519. * src/DefaultBtRequestFactory.cc
  8520. * src/DefaultBtRequestFactory.h
  8521. * test/DefaultBtRequestFactoryTest.cc
  8522. * test/MockBtRequestFactory.h
  8523. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8524. Changed method signature:
  8525. PieceStorage::getInFlightPieces
  8526. * src/DefaultBtProgressInfoFile.cc
  8527. * src/DefaultPieceStorage.cc
  8528. * src/DefaultPieceStorage.h
  8529. * src/PieceStorage.h
  8530. * src/UnknownLengthPieceStorage.cc
  8531. * src/UnknownLengthPieceStorage.h
  8532. * test/DefaultBtProgressInfoFileTest.cc
  8533. * test/MockPieceStorage.h
  8534. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8535. Changed method signature:
  8536. PostDownloadHandler::getNextRequestGroups
  8537. Metalink2RequestGroup::generate
  8538. RequestGroup::postDownloadProcessing
  8539. * src/BtPostDownloadHandler.cc
  8540. * src/BtPostDownloadHandler.h
  8541. * src/Metalink2RequestGroup.cc
  8542. * src/Metalink2RequestGroup.h
  8543. * src/MetalinkPostDownloadHandler.cc
  8544. * src/MetalinkPostDownloadHandler.h
  8545. * src/PostDownloadHandler.h
  8546. * src/RequestGroup.cc
  8547. * src/RequestGroup.h
  8548. * src/RequestGroupMan.cc
  8549. * src/main.cc
  8550. * test/BtPostDownloadHandlerTest.cc
  8551. * test/Metalink2RequestGroupTest.cc
  8552. * test/MetalinkPostDownloadHandlerTest.cc
  8553. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Rewritten AccRequestGroup
  8555. * src/main.cc
  8556. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Rewritten.
  8558. * src/TaggedItem.cc (toTagString)
  8559. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8560. Rewritten Accept-Features handling.
  8561. * src/HttpRequestCommand.cc (createHttpRequest)
  8562. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. Rewritten accept types handling.
  8564. * HttpRequest.cc (createRequest)
  8565. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. Rewritten
  8567. * src/FeatureConfig.cc (featureSummary)
  8568. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8569. Changed method signature:
  8570. PeerStorage::getActivePeers
  8571. * src/DHTPeerAnnounceEntry.cc
  8572. * src/DefaultPeerStorage.cc
  8573. * src/DefaultPeerStorage.h
  8574. * src/PeerStorage.h
  8575. * test/DefaultPeerStorageTest.cc
  8576. * test/MockPeerStorage.h
  8577. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Changed method signature:
  8579. DHTPeerAnnounceStorage::getPeers,
  8580. DHTPeerAnnounceEntry::getPeers
  8581. * src/DHTGetPeersMessage.cc
  8582. * src/DHTPeerAnnounceEntry.cc
  8583. * src/DHTPeerAnnounceEntry.h
  8584. * src/DHTPeerAnnounceStorage.cc
  8585. * src/DHTPeerAnnounceStorage.h
  8586. * test/DHTAnnouncePeerMessageTest.cc
  8587. * test/DHTPeerAnnounceEntryTest.cc
  8588. * test/DHTPeerAnnounceStorageTest.cc
  8589. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. Changed method signature:
  8591. NameResolver::resolve
  8592. * src/DHTEntryPointNameResolveCommand.cc
  8593. * src/InitiateConnectionCommand.cc
  8594. * src/NameResolver.cc
  8595. * src/NameResolver.h
  8596. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8597. Changed method signature:
  8598. PieceStorage::getAdvertisedPieceIndexes
  8599. * src/DefaultBtInteractive.cc
  8600. * src/DefaultPieceStorage.cc
  8601. * src/DefaultPieceStorage.h
  8602. * src/PieceStorage.h
  8603. * src/UnknownLengthPieceStorage.h
  8604. * test/MockPieceStorage.h
  8605. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8606. Changed method signature:
  8607. SegmentMan::getInFlightSegment
  8608. * src/AbstractCommand.cc
  8609. * src/SegmentMan.cc
  8610. * src/SegmentMan.h
  8611. * test/SegmentManTest.cc
  8612. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8613. Changed method signature:
  8614. DHTAbstractNodeLookupTask::getNodesFromMessage
  8615. * src/DHTAbstractNodeLookupTask.cc
  8616. * src/DHTAbstractNodeLookupTask.h
  8617. * src/DHTNodeLookupTask.cc
  8618. * src/DHTNodeLookupTask.h
  8619. * src/DHTPeerLookupTask.cc
  8620. * src/DHTPeerLookupTask.h
  8621. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8623. * src/AbstractCommand.cc
  8624. * src/BtCheckIntegrityEntry.cc
  8625. * src/BtCheckIntegrityEntry.h
  8626. * src/BtFileAllocationEntry.cc
  8627. * src/BtFileAllocationEntry.h
  8628. * src/BtSetup.cc
  8629. * src/BtSetup.h
  8630. * src/CheckIntegrityCommand.cc
  8631. * src/CheckIntegrityEntry.h
  8632. * src/ChecksumCheckIntegrityEntry.cc
  8633. * src/ChecksumCheckIntegrityEntry.h
  8634. * src/DHTSetup.cc
  8635. * src/DHTSetup.h
  8636. * src/DownloadEngine.cc
  8637. * src/FileAllocationCommand.cc
  8638. * src/FileAllocationEntry.h
  8639. * src/RequestGroup.cc
  8640. * src/RequestGroup.h
  8641. * src/RequestGroupMan.cc
  8642. * src/RequestGroupMan.h
  8643. * src/StreamCheckIntegrityEntry.cc
  8644. * src/StreamCheckIntegrityEntry.h
  8645. * src/StreamFileAllocationEntry.cc
  8646. * src/StreamFileAllocationEntry.h
  8647. * src/TrackerWatcherCommand.cc
  8648. * src/a2functional.h
  8649. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Changed method signature:
  8651. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8652. DHTBucket::getGoodNodes,
  8653. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8654. * src/BNode.cc
  8655. * src/BNode.h
  8656. * src/DHTAbstractNodeLookupTask.cc
  8657. * src/DHTAutoSaveCommand.cc
  8658. * src/DHTBucket.cc
  8659. * src/DHTBucket.h
  8660. * src/DHTBucketRefreshTask.cc
  8661. * src/DHTFindNodeMessage.cc
  8662. * src/DHTGetPeersMessage.cc
  8663. * src/DHTRoutingTable.cc
  8664. * src/DHTRoutingTable.h
  8665. * test/BNodeTest.cc
  8666. * test/DHTBucketTest.cc
  8667. * test/DHTRoutingTableTest.cc
  8668. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8669. In piece selection functions, Pass std::deque<...> by reference rather
  8670. than returning it.
  8671. * src/BitfieldMan.cc
  8672. * src/BitfieldMan.h
  8673. * src/DefaultBtRequestFactory.cc
  8674. * src/DefaultPieceStorage.cc
  8675. * src/Piece.cc
  8676. * src/Piece.h
  8677. * test/BitfieldManTest.cc
  8678. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8679. Implemented rarest piece first piece selection strategy.
  8680. * src/AbstractBtMessage.cc
  8681. * src/AbstractBtMessage.h
  8682. * src/BitfieldMan.cc
  8683. * src/BitfieldMan.h
  8684. * src/BtBitfieldMessage.cc
  8685. * src/BtHaveAllMessage.cc
  8686. * src/BtHaveMessage.cc
  8687. * src/DefaultPieceStorage.cc
  8688. * src/DefaultPieceStorage.h
  8689. * src/PeerInteractionCommand.cc
  8690. * src/PieceStorage.h
  8691. * src/UnknownLengthPieceStorage.h
  8692. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. Rewritten readData and writeData.
  8694. * src/MultiDiskAdaptor.cc
  8695. * src/MultiDiskAdaptor.h
  8696. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Move \n out of the message "Usage: ...".
  8698. * src/version_usage.cc
  8699. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8700. Bump up version number to 0.13.2b.
  8701. * configure.ac
  8702. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8703. Added const qualifier to argument Exception& e.
  8704. * src/Logger.h
  8705. * src/SimpleLogger.cc
  8706. * src/SimpleLogger.h
  8707. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8708. Pool connection when CWD, SIZE command fails.
  8709. * src/FtpNegotiationCommand.cc
  8710. * src/FtpNegotiationCommand.h
  8711. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8712. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8713. * src/HttpResponseCommand.cc
  8714. * src/HttpSkipResponseCommand.cc
  8715. * src/HttpSkipResponseCommand.h
  8716. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8717. Pool connection when a server returns 4xx, 5xx responses.
  8718. * src/HttpNullDownloadCommand.cc
  8719. * src/HttpNullDownloadCommand.h
  8720. * src/HttpResponse.cc
  8721. * src/HttpResponse.h
  8722. * src/HttpResponseCommand.cc
  8723. * src/HttpResponseCommand.h
  8724. * test/HttpResponseTest.cc
  8725. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8726. Print usage when no URL is specifed or bad command-line option is
  8727. specified.
  8728. * src/HelpItemFactory.cc
  8729. * src/help_tags.h
  8730. * src/option_processing.cc
  8731. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8732. Removed duplicate log message.
  8733. * src/AbstractCommand.cc (asyncResolveHostname)
  8734. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8735. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8736. Changed -j option's default value from 5 to 1.
  8737. Added new examples using protocol auto detection feature.
  8738. Removed -T, -M usage where it can be omitted.
  8739. * doc/aria2c.1.txt
  8740. * doc/aria2c.1.html
  8741. * doc/aria2c.1.txt
  8742. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8743. Updated command-line usage text, so that it tells users that they
  8744. can specify any number of torrent files and metalink files in
  8745. command-line.
  8746. * src/version_usage.cc
  8747. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. Changed the default value of -j option to 1.
  8749. * src/HelpItemFactory.cc
  8750. * src/option_processing.cc
  8751. * src/usage_text.h
  8752. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. Added the ability to reuse connection in FTP and it is enabled by
  8754. default. It can be disabled by --ftp-reuse-connection=false option.
  8755. * src/Command.cc
  8756. * src/DownloadCommand.cc
  8757. * src/FtpDownloadCommand.cc
  8758. * src/FtpDownloadCommand.h
  8759. * src/FtpFinishDownloadCommand.cc
  8760. * src/FtpFinishDownloadCommand.h
  8761. * src/FtpInitiateConnectionCommand.cc
  8762. * src/FtpNegotiationCommand.cc
  8763. * src/FtpNegotiationCommand.h
  8764. * src/HelpItemFactory.cc
  8765. * src/Makefile.am
  8766. * src/Makefile.in
  8767. * src/OptionHandlerFactory.cc
  8768. * src/option_processing.cc
  8769. * src/prefs.h
  8770. * src/usage_text.h
  8771. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8772. Call Command::transitStatus() before calling Command::execute(),
  8773. so that the status change made in execute() is not cleared.
  8774. * src/DownloadEngine.cc
  8775. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Removed forward declaration of SocketCore class.
  8777. * src/HttpDownloadCommand.h
  8778. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8780. in InitiateConnectionCommandFactory. They should be set only when
  8781. the protocol is HTTP or HTTPS.
  8782. * src/InitiateConnectionCommandFactory.cc
  8783. * src/RequestGroup.cc
  8784. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Fixed infinite loop in checksum checking.
  8786. * src/IteratableChecksumValidator.cc
  8787. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. Set _supportsPersistentConnection to true by default.
  8789. * src/Request.cc
  8790. * src/RequestGroup.cc
  8791. * test/HttpRequestTest.cc
  8792. * test/RequestTest.cc
  8793. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8794. Added timeout to socket pool. The default timeout is 15 seconds,
  8795. which is the same value Apache uses.
  8796. * src/DownloadEngine.cc
  8797. * src/DownloadEngine.h
  8798. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8799. Fixed misuse of multimap::find()
  8800. * src/HttpHeader.cc
  8801. * test/HttpHeaderTest.cc
  8802. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8804. option.
  8805. The asynchronous DNS is not capable of IPv6 yet.
  8806. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8807. least for HTTP download.
  8808. * src/AbstractCommand.cc
  8809. * src/AbstractCommand.h
  8810. * src/AsyncNameResolver.cc
  8811. * src/AsyncNameResolver.h
  8812. * src/DHTEntryPointNameResolveCommand.cc
  8813. * src/DHTEntryPointNameResolveCommand.h
  8814. * src/DownloadEngine.cc
  8815. * src/DownloadEngine.h
  8816. * src/FtpInitiateConnectionCommand.cc
  8817. * src/FtpInitiateConnectionCommand.h
  8818. * src/HelpItemFactory.cc
  8819. * src/HttpInitiateConnectionCommand.cc
  8820. * src/HttpInitiateConnectionCommand.h
  8821. * src/InitiateConnectionCommand.cc
  8822. * src/InitiateConnectionCommand.h
  8823. * src/Makefile.am
  8824. * src/Makefile.in
  8825. * src/NameResolver.cc
  8826. * src/NameResolver.h
  8827. * src/OptionHandlerFactory.cc
  8828. * src/SocketCore.cc
  8829. * src/SocketCore.h
  8830. * src/Util.cc
  8831. * src/Util.h
  8832. * src/option_processing.cc
  8833. * src/prefs.h
  8834. * src/usage_text.h
  8835. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. Updated man page: --quiet, --header were added.
  8837. --metalink-servers and --enable-http-keep-alive option were updated.
  8838. * doc/aria2c.1
  8839. * doc/aria2c.1.html
  8840. * doc/aria2c.1.txt
  8841. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. Enable HTTP keep-alive by default.
  8843. * src/HelpItemFactory.cc
  8844. * src/option_processing.cc
  8845. * src/usage_text.h
  8846. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8847. Disable http keep-alive if the remote server is not HTTP/1.1.
  8848. * src/HttpConnection.cc
  8849. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8850. Receive content body of 302 response so that the connection can be
  8851. reused later when http keep-alive is enabled.
  8852. * src/HttpNullDownloadCommand.cc
  8853. * src/HttpNullDownloadCommand.h
  8854. * src/HttpResponseCommand.cc
  8855. * src/HttpResponseCommand.h
  8856. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. const SharedHandle<Request> -> const SharedHandle<Request>&
  8858. * src/FtpDowndloadCommand.cc
  8859. * src/FtpDowndloadCommand.h
  8860. * src/HttpDownloadCommand.cc
  8861. * src/HttpDownloadCommand.h
  8862. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Fixed the bug that the control file(.aria2 file) is not renamed
  8864. according to tryAutoFileRenaming().
  8865. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8866. its control file exist, use them and continue download.
  8867. The old implementation didn't take into account of control file's
  8868. existence, so basically you couldn't continue download of renamed file.
  8869. * src/BtProgressInfoFile.h
  8870. * src/DefaultBtProgressInfoFile.cc
  8871. * src/DefaultBtProgressInfoFile.h
  8872. * src/NullProgressInfoFile.h
  8873. * src/RequestGroup.cc
  8874. * test/DefaultBtProgressInfoFileTest.cc
  8875. * test/MockBtProgressInfoFile.h
  8876. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8877. Change the default value of --metalink-servers option from `5' to `1'.
  8878. * src/HelpItemFactory.cc
  8879. * src/option_processing.cc
  8880. * src/usage_text.h
  8881. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Reimplemented transparent metalink using Accept request header.
  8883. * src/HttpRequest.cc
  8884. * src/HttpRequest.h
  8885. * src/HttpRequestCommand.cc
  8886. * src/Metalink2RequestGroup.cc
  8887. * src/RequestGroup.cc
  8888. * src/RequestGroup.h
  8889. * test/HttpRequestTest.cc
  8890. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8891. Bump up version number to 0.13.2a
  8892. * configure.ac
  8893. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. Updated configure.ac using the result of autoscan.
  8895. * configure.ac
  8896. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. Fixed compilation error without gcrypt/openssl.
  8898. * src/DownloadCommand.cc
  8899. * src/DownloadCommand.h
  8900. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Reorganized version information so that it can be displayed in a
  8902. standard terminal screen without scrolling.
  8903. Removed http, ftp from Configuration section, because they are always
  8904. enabled.
  8905. * src/FeatureConfig.cc
  8906. * src/FeatureConfig.h
  8907. * src/main.cc
  8908. * src/messageDigest.cc
  8909. * src/messageDigest.h
  8910. * src/version_usage.cc
  8911. * test/FeatureConfigTest.cc
  8912. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Masked user ID in log.
  8914. * src/FtpConnection.cc (sendUser)
  8915. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8916. Removed query part from filename in HTTP download. The query part means
  8917. the substring after "?" in URL. Firefox seems do the same thing.
  8918. A query part is sometimes very long and not suitable to filename,
  8919. so I think it is better to remove it from filename.
  8920. * src/HttpRequest.cc
  8921. * src/HttpRequest.h
  8922. * src/Request.cc
  8923. * src/Request.h
  8924. * test/HttpRequestTest.cc
  8925. * test/RequestTest.cc
  8926. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. Rewritten Exception class. Throw exception object, not its pointer and
  8928. catch by reference, so that remove problematic delete operator for
  8929. catched exception.
  8930. * src/Exception.cc
  8931. * src/Exception.h
  8932. * test/ExceptionTest.cc
  8933. * src/*: All files throwing/catching exception.
  8934. * test/*: All files throwing/catching exception.
  8935. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. Now auto protocol detection is enabled without -Z option.
  8937. But there is a important difference between with/without -Z optoin.
  8938. For example, if you type:
  8939. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8940. then, aria2 interprets there are 3 request groups:
  8941. (1) http://host/file, http://mirror/file <-- multi-source download
  8942. (2) file1.torrent
  8943. (3) file2.metalink
  8944. On the other hand, if you invoke above command with -Z option, it is
  8945. interpreted as 4 request groups:
  8946. (1) http://host/file
  8947. (2) file1.torrent
  8948. (3) file2.metalink
  8949. (4) http://mirror/file
  8950. I think usually user don't mix multi-source URLs and torrent files, so
  8951. there is no big problem here.
  8952. * src/main.cc
  8953. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8954. Fixed the bug that causes segmentaion fault when reading XML containing
  8955. unescapsed character like '&'.
  8956. Also a modification was made which avoids adding unnecessary
  8957. characters stack and appending unused string.
  8958. * src/ExpatMetalinkProcessor.cc
  8959. * src/FileMetalinkParserState.h
  8960. * src/FilesMetalinkParserState.h
  8961. * src/FinMetalinkParserState.h
  8962. * src/HashMetalinkParserState.h
  8963. * src/InitialMetalinkParserState.h
  8964. * src/LanguageMetalinkParserState.h
  8965. * src/MetalinkMetalinkParserState.h
  8966. * src/MetalinkParserState.h
  8967. * src/MetalinkParserStateMachine.cc
  8968. * src/MetalinkParserStateMachine.h
  8969. * src/OSMetalinkParserState.h
  8970. * src/PieceHashMetalinkParserState.h
  8971. * src/PiecesMetalinkParserState.h
  8972. * src/ResourcesMetalinkParserState.h
  8973. * src/SizeMetalinkParserState.h
  8974. * src/SkipTagMetalinkParserState.h
  8975. * src/URLMetalinkParserState.h
  8976. * src/VerificationMetalinkParserState.h
  8977. * src/VersionMetalinkParserState.h
  8978. * src/XML2SAXMetalinkProcessor.cc
  8979. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Added StringFormat class, which internally calls vasprintf.
  8981. operator<< is defined for this class, so it can be used with iostream
  8982. classes nicely. SimpleLogger and following functions are rewritten
  8983. using StringFormat class.
  8984. Besides, now Logger class's methods are non-const, many classes
  8985. that has a const Logger* as a member variable are modified to remove
  8986. const qualifier from the variable declaration.
  8987. * src/HelpItemFactory.cc
  8988. * src/Request.cc
  8989. * src/SimpleLogger.cc
  8990. * src/StringFormat.cc
  8991. * src/StringFormat.h
  8992. * src/Util.cc
  8993. * src/option_processing.cc
  8994. * src/version_usage.cc
  8995. * test/StringFormatTest.cc
  8996. * src/*.h: The classes that has const Logger* as a member variable.
  8997. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8998. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8999. failed. Also fixed memory link when exception is thrown there.
  9000. * src/main.cc (AccRequestGroup)
  9001. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9002. Added build-in "Accept-Features" support. For now only "metalink" is
  9003. used in this header field.
  9004. This "metalink" value is removed from the list when connecting URLs
  9005. fed by metalink file to avoid loop in "transparent" metlaink.
  9006. * src/HttpRequest.cc
  9007. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9008. header is also held in this variable. Also renamed setUserHeaders as
  9009. addHeader and it was rewritten to add header not just to clear the old
  9010. value.
  9011. * src/HttpRequestCommand.cc
  9012. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9013. from "Accept-Features" list.
  9014. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9015. default.
  9016. * src/RequestGroup.h
  9017. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9018. * src/a2functional.h: Included <string> because Concat class depends on
  9019. it.
  9020. * test/HttpRequestTest.cc
  9021. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9022. Added comment
  9023. * src/RequestGroup.cc (createNextCommand)
  9024. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. Capitalized METHOD_GET and METHOD_HEAD
  9026. * src/Request.cc
  9027. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. Added getDownloadResults() method
  9029. * src/RequestGroupMan.cc
  9030. * src/RequestGroupMan.h
  9031. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Fixed the bug that aria2 exits when commands is empty() but
  9033. _routineCommands are not.
  9034. * src/DownloadEngine.cc
  9035. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9036. Use the default value pulled from Option object in HelpItemFactory.
  9037. except options whose defualt value is embedded in a usage text.
  9038. * src/HelpItemFactory.cc
  9039. * src/HelpItemFactory.h
  9040. * src/option_processing.cc
  9041. * src/version_usage.cc
  9042. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9043. Added --quiet option to make aria2 quiet (no console output).
  9044. --quiet option is tagged with ADVANCED.
  9045. * src/HelpItemFactory.cc
  9046. * src/LogFactory.cc
  9047. * src/LogFactory.h
  9048. * src/MultiUrlRequestInfo.cc
  9049. * src/MultiUrlRequestInfo.h
  9050. * src/NullStatCalc.h: New class. This class prints nothing.
  9051. * src/OptionHandlerFactory.cc
  9052. * src/main.cc
  9053. * src/option_processing.cc
  9054. * src/prefs.h
  9055. * src/usage_text.h
  9056. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9057. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9058. * src/HelpItemFactory.cc (createHelpItems):
  9059. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9060. Fixed compilation error in ExpatMetalinkProcessor.cc
  9061. * src/ExpatMetalinkProcessor.cc
  9062. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. Reuse socket if the origin server supports HTTP keep-alive and
  9064. --enable-http-keep-alive or --enable-http-pipelining is given.
  9065. The current implementation doesn't reuse the connections established
  9066. against proxy server.
  9067. * src/AbstractCommand.cc
  9068. * src/DownloadEngine.cc
  9069. * src/DownloadEngine.h
  9070. * src/HttpDownloadCommand.cc
  9071. * src/HttpInitiateConnectionCommand.cc
  9072. * src/HttpResponseCommand.cc
  9073. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. Rewritten HTTP keep-alive and pipelining routine.
  9075. * src/AbstractCommand.cc
  9076. * src/HttpConnection.cc
  9077. * src/HttpDownloadCommand.cc
  9078. * src/HttpRequest.cc
  9079. * src/HttpRequestCommand.cc
  9080. * src/HttpResponseCommand.cc
  9081. * src/Request.cc
  9082. * src/Request.h
  9083. * src/RequestGroup.cc
  9084. * test/HttpRequestTest.cc
  9085. * test/HttpResponseTest.cc
  9086. * test/RequestTest.cc
  9087. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9088. Added missing setUserHeaders call
  9089. * src/HttpRequestCommand.cc
  9090. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9091. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9092. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9093. waste of time because it is more likey false.
  9094. * src/FileAllocationDispatcherCommand.cc (execute)
  9095. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. Now HTTP status and version are a member variable of HttpHeader.
  9097. HTTP status is processed as a string, not integer.
  9098. * src/AbstractProxyResponseCommand.cc
  9099. * src/HttpConnection.cc
  9100. * src/HttpHeader.cc
  9101. * src/HttpHeader.h
  9102. * src/HttpHeaderProcessor.cc
  9103. * src/HttpHeaderProcessor.h
  9104. * src/HttpResponse.cc
  9105. * src/HttpResponse.h
  9106. * test/HttpHeaderProcessorTest.cc
  9107. * test/HttpResponseTest.cc
  9108. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9109. Added --header option. You can specify any number of additional HTTP headers
  9110. like:
  9111. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9112. Unlike other commad-line option, you can use --header option multiple times.
  9113. * src/HelpItemFactory.cc
  9114. * src/HttpRequest.{cc, h}
  9115. * src/HttpRequestCommand.cc
  9116. * src/OptionHandlerFactory.cc
  9117. * src/OptionHandlerImpl.h
  9118. * src/option_processing.cc
  9119. * src/prefs.h
  9120. * src/usage_text.h
  9121. * test/HttpRequestTest.cc (testUserHeaders)
  9122. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9123. Eliminates the time lag between sequential downloads and commands in
  9124. the same RequestGroup.
  9125. In old implementation, aria2 occasionally waits 1 seconds before
  9126. executing next command or RequestGroup.
  9127. This is really a waste of time, and new implementation eliminates
  9128. this unnecessary time lag.
  9129. * src/AbstractCommand.cc
  9130. * src/AutoSaveCommand.cc
  9131. * src/CheckIntegrityCommand.cc
  9132. * src/Command.{cc, h}
  9133. * src/DownloadEngine.{cc, h}
  9134. * src/DownloadEngineFactory.cc
  9135. * src/FileAllocationCommand.cc
  9136. * src/FileAllocationDispatcherCommand.cc
  9137. * src/FillRequestGroupCommand.cc
  9138. * src/FtpInitiateConnectionCommand.cc
  9139. * src/HaveEraseCommand.cc
  9140. * src/HttpInitiateConnectionCommand.cc
  9141. * src/HttpResponseCommand.cc
  9142. * src/RealtimeCommand.cc
  9143. * src/RequestGroup.cc
  9144. * src/RequestGroupMan.cc
  9145. * src/StreamFileAllocationEntry.cc
  9146. * src/TimeBasedCommand.{cc, h}
  9147. * src/TimedHaltCommand.cc
  9148. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9150. keyword explicit and SharedHandle's default constructor initializes
  9151. its internal obj to null, old implementation initializes it using
  9152. obj's default constructor.
  9153. To assign null, write SharedHandle<T> x(...); x.reset();
  9154. TODO: test/SharedHandleTest.cc needs more tests.
  9155. * src/SharedHandle.h
  9156. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Fixed type in man page.
  9158. * doc/aria2c.1.txt
  9159. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9161. * src/SimpleLogger.{cc, h}
  9162. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9163. Implemented auto protocol detection.
  9164. Now you can do:
  9165. aria2c -Z http://host/file file1.torrent file2.metalink
  9166. (Note: -Z option is required for auto protcol detection.)
  9167. Then aria2c downloads 3 files simultaneously:
  9168. 1. http://host/file
  9169. 2. file1.torrent <-- read local torrent file
  9170. 3. file2.metalink <-- read local Metalink file.
  9171. Same thing goes with -i option. Assume your uris.txt contans:
  9172. http://host/file
  9173. file1.torrent
  9174. file2.metalink
  9175. Then you can do: aria2c -i uris.txt
  9176. (Note: -Z option is not needed if -i option is given.)
  9177. * src/main.cc
  9178. * src/ProtocolDetector.{cc, h}
  9179. * test/ProtocolDetectorTest.cc
  9180. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9181. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9182. installed
  9183. * src/ARC4Encryptor.h
  9184. * src/ARC4Decryptor.h
  9185. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9186. Renamed argument from 'errno' to 'err', since errno is confused with
  9187. errno defined in errno.h.
  9188. * src/LibgcryptARC4Decryptor.h
  9189. * src/LibgcryptARC4Context.h
  9190. * src/LibgcryptDHKeyExchange.h
  9191. * src/LibgcryptARC4Encryptor.h
  9192. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9193. Rewritten choking algorithm.
  9194. * src/PeerChokeCommand.{cc, h}
  9195. * src/BtInterestedMessage.cc
  9196. * src/PeerSessionResource.{cc, h}
  9197. * src/DefaultPeerStorage.{cc, h}
  9198. * src/BtNotInterestedMessage.cc
  9199. * src/DefaultBtMessageDispatcher.{cc, h}
  9200. * src/BtMessageDispatcher.h
  9201. * src/Peer.{cc, h}
  9202. * src/BtLeecherStateChoke.{cc, h}
  9203. * src/BtSetup.cc
  9204. * src/BtSeederStateChoke.{cc, h}
  9205. * src/PeerStorage.h
  9206. * test/MockPeerStorage.h
  9207. * test/MockBtMessageDispatcher.h
  9208. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9209. Fixed compilation error on x84-64 platform.
  9210. * src/AuthConfig.cc: Included ostream.
  9211. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9212. Rewritten getBasename() and getDirname(), without standard library
  9213. basename(), dirname().
  9214. * src/File.cc
  9215. * test/FileTest.cc
  9216. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9217. Added Simplified Chinese translation. Also updated the following
  9218. translations: Polish, Dutch, German. Great thanks to all translators.
  9219. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Suppress content-range error when 'Content-Range' response header
  9221. doesn't contains bytes-unit specifier 'bytes'
  9222. * src/HttpHeader.cc (getRange)
  9223. * test/HttpHeaderTest.cc
  9224. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9225. Fixed compilation error with g++-4.3
  9226. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Added missing include files for MinGW
  9228. * test/HttpHeaderProcessorTest.cc
  9229. * test/DHTRoutingTableSerializerTest.cc
  9230. * test/DHTRoutingTableDeserializerTest.cc
  9231. * test/UriListParserTest.cc
  9232. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9233. Now download line is printed nicely with no garbage at the end of
  9234. line. I use ioctl to get the columns of terminal.
  9235. If stdout is redirected to another device, instead of carriage return,
  9236. end of line '\n' character is used. This is feature request#1909659
  9237. * src/ConsoleStatCalc.cc (calculateStat)
  9238. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9239. Included a2time.h
  9240. * src/DHTMessageDispatcher.h
  9241. * src/DHTMessageEntry.h
  9242. * src/DHTReplaceNodeTask.h
  9243. * src/DHTMessageTracker.h
  9244. * src/Util.h
  9245. * src/CookieBox.h
  9246. * src/SocketCore.h
  9247. * src/DefaultBtMessageDispatcher.h
  9248. * src/SocketCore.cc
  9249. * src/Util.cc
  9250. * src/DHTPingTask.h
  9251. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9252. Fixed high memory footprint when DHT is enabled.
  9253. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9254. queued than it is processed and the queue is getting longer. As a
  9255. consequence, momory usage is increased.
  9256. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9257. replacement cache in DHTBucket which is described in Kademlia paper.
  9258. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9259. DHTReplaceNodeTask.
  9260. * src/DHTBucket.{h, cc}
  9261. (cacheNode): New function.
  9262. (getCachedNodes): New function.
  9263. (dropNode): Push back cached node to _nodes.
  9264. * test/DHTBucketTest.cc
  9265. (testCacheNode): New test
  9266. (testDropNode): New test
  9267. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9269. the unused 4KB memory when ssl is not used.
  9270. * src/SocketCore.cc
  9271. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Added summary log for peer announce storage.
  9273. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9274. Removed cast
  9275. * src/DefaultPeerStorage.cc (addPeer)
  9276. Log exception message
  9277. * src/DHTMessageTracker.cc (handleTimeout)
  9278. Fixed casting
  9279. * test/HttpRequestTest.cc
  9280. * test/MetalinkProcessorTest.cc
  9281. * test/PieceTest.cc
  9282. * test/MetalinkEntryTest.cc
  9283. * test/SequenceTest.cc
  9284. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9285. * src/ParameterizedStringParser.cc (createLoop):
  9286. Removed unused variable sstep.
  9287. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9288. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9289. * src/Util.{h, cc}
  9290. (parseUInt): New function.
  9291. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9292. The actual range is uint32_t.
  9293. * test/UtilTest.cc
  9294. * src/ParameterizedStringParser.cc:
  9295. Use Util::parseUInt() for loop variables.
  9296. * test/ParameterizedStringParserTest.cc
  9297. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9298. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Rewritten the functions for binding port.
  9300. * src/DHTConnectionImpl.{h, cc}
  9301. * src/PeerListenCommand.{h, cc}
  9302. * src/DHTSetup.cc
  9303. * src/BtSetup.cc
  9304. * test/DHTConnectionImplTest.cc
  9305. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9306. type cleanup for allmost all remaining files.
  9307. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Type clarification
  9309. * src/PeerSessionResource.{h, cc}
  9310. * src/DefaultPieceStorage.{h, cc}
  9311. * src/Peer.{h, cc}
  9312. * test/PeerSessionResourceTest.cc
  9313. Use div function
  9314. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9315. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9316. Type clarification
  9317. * src/DefaultPeerStorage.{h, cc}
  9318. * test/DefaultPeerStorageTest.cc
  9319. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9320. Type clarification: size_t for length or size, uint64_t for file
  9321. length, off_t for file offset.
  9322. * src/DefaultBtProgressInfoFile.cc
  9323. * src/DefaultBtContext.{h, cc}
  9324. * src/DefaultBtInteractive.cc
  9325. * src/DownloadCommand.{h, cc}
  9326. * src/IteratableChunkChecksumValidator.{h, cc}
  9327. * src/SegmentMan.{h, cc}
  9328. * src/SingleFileDownloadContext.{h, cc}
  9329. * src/IteratableChecksumValidator.{h, cc}
  9330. * src/BtContext.h
  9331. * src/IteratableValidator.h
  9332. * src/DownloadContext.h
  9333. * test/SingleFileDownloadContextTest.cc
  9334. * test/DefaultBtContextTest.cc
  9335. * test/MockBtContext.h
  9336. * test/Metalink2RequestGroupTest.cc
  9337. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. Type clarification: size_t for length or size, uint64_t for file
  9339. length, off_t for file offset.
  9340. * src/PiecedSegment.cc
  9341. * src/GrowSegment.h
  9342. * src/DefaultBtRequestFactory.h
  9343. * src/DefaultBtProgressInfoFile.cc
  9344. * src/UnknownLengthPieceStorage.h
  9345. * src/DefaultPieceStorage.cc
  9346. * src/UnknownLengthPieceStorage.cc
  9347. * src/DefaultBtInteractive.cc
  9348. * src/GrowSegment.cc
  9349. * src/BitfieldMan.h
  9350. * src/DownloadCommand.cc
  9351. * src/BtRequestFactory.h
  9352. * src/PiecedSegment.h
  9353. * src/DefaultPieceStorage.h
  9354. * src/Piece.cc
  9355. * src/DefaultBtRequestFactory.cc
  9356. * src/PieceStorage.h
  9357. * src/Segment.h
  9358. * src/Piece.h
  9359. * src/BitfieldMan.cc
  9360. * src/Util.cc
  9361. * test/DefaultBtProgressInfoFileTest.cc
  9362. * test/DefaultPieceStorageTest.cc
  9363. * test/MockPieceStorage.h
  9364. * test/BtRequestMessageTest.cc
  9365. * test/DefaultBtMessageDispatcherTest.cc
  9366. * test/BitfieldManTest.cc
  9367. * test/GrowSegmentTest.cc
  9368. * test/PieceTest.cc
  9369. * test/SegmentTest.cc
  9370. * test/SegmentManTest.cc
  9371. * test/DefaultBtRequestFactoryTest.cc
  9372. * test/MockBtRequestFactory.h
  9373. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9374. Fixed compilation error with --disable-nls
  9375. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9376. in gettext.h causes the problem.
  9377. * src/common.h
  9378. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9379. Removed subPiece related functions.
  9380. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9381. * src/DefaultPieceStorage.{h, cc}
  9382. * test/PieceTest.cc
  9383. * test/DefaultPieceStorageTest.cc
  9384. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9385. Use unsigned char for data store.
  9386. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Bump up version number to 0.13.0+1
  9388. * configure.ac
  9389. * Release 0.13.0+1
  9390. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9391. Changed inactive connection timeout to 120.
  9392. To accept more mulually interested peers, disconnect peer when there
  9393. is no interest between us after certain time passed.
  9394. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9395. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9397. when compiled with async DNS support.
  9398. * src/DownloadEngine.cc
  9399. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9400. value '10' will be a little bit short when some DNS servers are
  9401. offline and several DNS servers are tried. It should be configured
  9402. by command-line option.
  9403. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9404. Merged Ross's mingw patch.
  9405. * src/DHTRoutingTableDeserializer.cc
  9406. * src/DHTRoutingTableSerializer.cc
  9407. * src/Platform.{h, cc}
  9408. * src/timegm.h
  9409. * src/gettimeofday.h
  9410. * src/getaddrinfo.h
  9411. * src/SocketCore.h
  9412. * src/common.h
  9413. * src/inet_aton.h
  9414. * src/DownloadEngine.h
  9415. * src/gai_strerror.h
  9416. * src/a2netcompat.h
  9417. * configure.ac
  9418. * configure
  9419. * aclocal.m4
  9420. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9421. Included missing iostream.
  9422. * test/AllTest.cc
  9423. * test/BtDependencyTest.cc
  9424. * test/BtExtendedMessageTest.cc
  9425. * test/DHTConnectionImplTest.cc
  9426. * test/DHTMessageFactoryImplTest.cc
  9427. * test/DHTMessageTrackerEntryTest.cc
  9428. * test/DHTNodeTest.cc
  9429. * test/DHTRoutingTableSerializerTest.cc
  9430. * test/DefaultBtAnnounceTest.cc
  9431. * test/DefaultBtContextTest.cc
  9432. * test/DefaultBtMessageFactoryTest.cc
  9433. * test/DefaultExtensionMessageFactoryTest.cc
  9434. * test/HandshakeExtensionMessageTest.cc
  9435. * test/HttpResponseTest.cc
  9436. * test/MetalinkProcessorTest.cc
  9437. * test/MultiFileAllocationIteratorTest.cc
  9438. * test/SocketCoreTest.cc
  9439. * test/UTPexExtensionMessageTest.cc
  9440. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Reorganized includes.
  9442. * src/NameResolver.cc
  9443. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9444. Fixed compilation error without ares/c-ares
  9445. * src/NameResolver.h:
  9446. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. Added a test for large file.
  9448. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9449. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9450. Fixed the bug that file size is ignored if size > INT32_MAX
  9451. * src/SizeMetalinkParserState.cc (endElement):
  9452. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9453. Bump up version number to 0.13.0
  9454. * configure.ac
  9455. * Release 0.13.0
  9456. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. Updated Makfefile.am to make 'make dist' work.
  9458. Now packaged filename is aria2c-VERSION.tar.bz2.
  9459. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9460. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9461. Large file support is now configured by configure script.
  9462. * configure.ac
  9463. Removed unsused source files
  9464. * src/
  9465. * test/
  9466. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9467. Peer.h and BtContext.h respectively.
  9468. * src/Peer.h
  9469. * src/BtContext.h
  9470. Updated translations.
  9471. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9472. translations. Great thanks to all translators!;)
  9473. * po/*.{po, gmo}
  9474. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9475. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9476. statically declared sha1 MessageDigestContext.
  9477. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9478. initialization of short-lived MessageDigestContext.
  9479. * src/MessageDigestHelper.{h, cc}
  9480. * src/main.cc
  9481. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9482. the initialization of MessageDigestContext every time in validating
  9483. chunk checksum.
  9484. * src/DownloadCommand.{h, cc}
  9485. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Add a file descriptor which connected to fast peer(latency<1500) to
  9487. select(). This change reduced CPU load.
  9488. * src/PeerInteractionCommand.cc
  9489. * src/DefaultBtInteractive.{h, cc}
  9490. * src/BtInteractive.h
  9491. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9492. Fixed the previous insufficient fix for possible busy loop.
  9493. * src/MSEHandshake.cc (identifyHandshakeType)
  9494. Removed unused functions.
  9495. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9496. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9497. Fixed possible busy loop if first 20 bytes are not received for a few
  9498. minutes.
  9499. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9500. * src/ReceiverMSEHandshakeCommand.cc
  9501. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9502. Fixed compilation error
  9503. * src/ExpatMetalinkProcessor.cc
  9504. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9506. * src/DHTBucket.cc
  9507. Removed unnecessary cast.
  9508. * src/HandshakeExtensionMessage.cc
  9509. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9510. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9511. is missing.
  9512. * src/OptionHandlerFactory.cc
  9513. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9514. Fixed the bug that HAVE message is not sent for a piece they are
  9515. downloaded fom http/ftp server before any BitTorrent handshake is done
  9516. with peers.
  9517. * src/DefaultBtInteractive.cc
  9518. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9519. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9520. * src/Makefile.am
  9521. * src/Makefile.in
  9522. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9523. Updated README. Added html version of README and man page.
  9524. * README
  9525. * README.html
  9526. * readme2html: Shell script to generate README.html from README using
  9527. asciidoc.
  9528. * doc/aria2c.1.html
  9529. * doc/makeman: Added the line to generate aria2c.1.html
  9530. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9531. Fixed offset calculation.
  9532. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9533. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9534. Rewritten itos and uitos using template. llitos and ullitos are
  9535. replaced with itos and uitos respectively.
  9536. * src/Util.{h, cc}
  9537. * test/UtilTest.cc
  9538. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9539. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9540. of the number of bytes required for storing public key and shared
  9541. secret.
  9542. * src/LibgcryptDHKeyExchange.h
  9543. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9544. * src/MSEHandshake.cc
  9545. * test/DHKeyExchangeTest.cc
  9546. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9547. Removed since they are not used.
  9548. * src/Xml2MetalinkProcessor.{h, cc}
  9549. * src/Socket.cc
  9550. * src/SegmentSplitter.{h, cc}
  9551. * test/Xml2MetalinkProcessorTest.cc
  9552. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9553. Fixed the bug that prevents aria2 from stopping other than by pressing
  9554. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9555. option. aria2 doesn't stop even after --seed-time is satisfied and
  9556. continues to output blank lines in the console.
  9557. * src/ReceiverMSEHandshakeCommand.cc
  9558. * src/PeerReceiveHandshakeCommand.cc
  9559. * src/PeerListenCommand.cc
  9560. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9561. Bump up version number to 0.13.0rc
  9562. * configure.ac
  9563. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9564. Updated man page and some usage text.
  9565. * doc/aria2c.1.txt
  9566. * src/usage_text.h
  9567. * po/*.{po, gmo}
  9568. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9569. Updated translations. Added Finnish and Hebrew translations.
  9570. Great thanks to all translators!
  9571. * po/*.{po, gmo}
  9572. * po/LINGUAS
  9573. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9574. Log more detailed information about each message.
  9575. * src/DHTQueryMessage.{h, cc}
  9576. * src/DHTGetPeersMessage.{h, cc}
  9577. * src/DHTFindNodeReplyMessage.{h, cc}
  9578. * src/DHTGetPeersReplyMessage.{h, cc}
  9579. * src/DHTAnnouncePeerMessage.{h, cc}
  9580. * src/DHTResponseMessage.{h, cc}
  9581. * src/DHTFindNodeMessage.{h, cc}
  9582. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Use constants defined in prefs.h
  9584. * src/option_processing.cc
  9585. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9587. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Make room for future enchancements for IPv6 addresses.
  9589. Bump up version number of dht.dat file format to 2.
  9590. Not compatible with previous version.
  9591. * src/DHTRoutingTableSerializer.cc
  9592. * src/DHTRoutingTableDeserializer.cc
  9593. * test/DHTRoutingTableSerializerTest.cc
  9594. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9595. Added handling for the return values from
  9596. PeerMessageUtil::createcompact().
  9597. * src/DefaultBtContext.cc (computeFastSet):
  9598. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9599. Fixed abort when peer's ip address is IPv4-mapped address.
  9600. * src/DefaultBtContext.cc (computeFastSet)
  9601. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9602. cannot handle IPv4-mapped addresses.
  9603. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9604. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9605. Proper return value handling for OpenSSL functions.
  9606. * src/LibsslDHKeyExchange.h
  9607. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Random bytes generation using libgcrypt and OpenSSL.
  9609. * src/DHTUtil.{h, cc}
  9610. * test/DHTUtilTest.cc
  9611. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9612. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9613. received.
  9614. * src/DHTMessageReceiver.cc (receiveMessage)
  9615. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9616. Fixed the bug that a return code is always 0. BUG#1897704
  9617. If error occurred during the download or there exist unfinished
  9618. downloads, aria2 returns with code 1.
  9619. * src/RequestGroupMan.{h, cc}
  9620. * src/MultiUrlRequestInfo.{h, cc}
  9621. * src/main.cc
  9622. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. IPv6 support for SocketCore class.
  9624. TODO: In SocketCore::establishConnection(), this is insufficient to
  9625. determin the failure of connect() here because the socket is
  9626. non-blocking state. The next addresses should be tried after select().
  9627. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9628. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9629. instead which address family independent.
  9630. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9631. information in a compact peer format which is for IPv4 only.
  9632. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9633. this is a spec of BitTorrent protocol.
  9634. * src/SocketCore.{h, cc}
  9635. * src/PeerMessageUtil.cc
  9636. * test/SocketCoreTest.cc
  9637. * test/PeerMessageUtilTest.cc
  9638. * test/DHTConnectionImplTest.cc
  9639. Handle IPv4-mapped addresses.
  9640. * src/DHTNode.cc: Now identity is determined by node id.
  9641. * src/DHTMessageTrackerEntry.cc
  9642. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9643. should handle it.
  9644. * src/DHTRoutingTableDeserializer.cc
  9645. * src/DHTMessageFactoryImpl.cc
  9646. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9647. Change the unit of --stop option from a minute to a second.
  9648. * src/usage_text.h
  9649. * src/DownloadEngineFactory.cc
  9650. * src/OptionHandlerFactory.cc
  9651. * src/message.h
  9652. * src/TimedHaltCommand.cc
  9653. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Make listening socket non-block mode.
  9655. * src/FtpConnection.cc
  9656. * src/FtpNegotiationCommand.{h, cc}
  9657. * src/PeerListenCommand.cc
  9658. Fixed the bug that cause slow ftp negotiation.
  9659. * src/FtpNegotiationCommand.{h, cc}
  9660. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9661. Added basic tag to --enable-dht, --dht-listen-port option.
  9662. * src/HelpItemFactory.cc (createHelpItems)
  9663. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9664. Updated text.
  9665. * src/usage_text.h
  9666. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9667. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9668. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9669. Determin _threadtholdSpeed in each constructor for
  9670. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9671. * src/ActivePeerConnectionCommand.{h, cc}
  9672. * src/PeerReceiveHandshakeCommand.{h, cc}
  9673. * src/BtSetup.cc
  9674. * src/BtConstants.h
  9675. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9676. Added --bt-min-crypto-level and --bt-require-crypto options.
  9677. * src/OptionHandlerFactory.cc
  9678. * src/MSEHandshake.cc
  9679. * src/HelpItemFactory.cc
  9680. * src/option_processing.cc
  9681. * src/ReceiverMSEHandshakeCommand.cc
  9682. * src/prefs.h
  9683. * src/DefaultBtAnnounce.cc
  9684. * src/InitiatorMSEHandshakeCommand.cc
  9685. * src/usage_text.h
  9686. * test/MSEHandshakeTest.cc
  9687. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9688. Bump version number to 0.13.0b
  9689. * configure.ac
  9690. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9691. Updated doc.
  9692. * src/MessageDigestHelper.h:
  9693. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9694. Use raw message digest as a token instead of its hexadecimal
  9695. representation.
  9696. * src/DHTTokenTracker.cc (generateToken)
  9697. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. Added Message Stream Encryption(MSE) support.
  9699. Currently, aria2 accepts incoming connections with Obfuscation Header
  9700. and legacy BitTorrent Header and establishes connections with
  9701. Obfuscation Header first and if failed then retry with legacy
  9702. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9703. choose ARC4. The new option to change the default behavior is planned.
  9704. For tracker extension, "supportcrypto=1" is added statically.
  9705. * src/PeerInitiateConnectionCommand.{h, cc}
  9706. * src/PeerConnection.{h, cc}
  9707. * src/HandleRegistry.h
  9708. * src/SocketCore.h
  9709. * src/PeerReceiveHandshakeCommand.{h, cc}
  9710. * src/BtRegistry.{h, cc}
  9711. * src/PeerListenCommand.cc
  9712. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9713. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9714. * src/MSEHandshake.{h, cc}
  9715. * src/ARC4Encryptor.h
  9716. * src/ARC4Decryptor.h
  9717. * src/LibgcryptARC4Encryptor.h
  9718. * src/LibgcryptARC4Decryptor.h
  9719. * src/LibgcryptARC4Context.h
  9720. * src/LibsslARC4Encryptor.h
  9721. * src/LibsslARC4Decryptor.h
  9722. * src/LibsslARC4Context.h
  9723. * src/DHKeyExchange.h
  9724. * src/LibgcryptDHKeyExchange.h
  9725. * src/LibsslDHKeyExchange.h
  9726. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9727. * test/DefaultBtAnnounceTest.cc
  9728. * test/ARC4Test.cc
  9729. * test/DHKeyExchangeTest.cc
  9730. Removed prepareForRetry() because it is not used.
  9731. * src/PeerAbstractCommand.{h, cc}
  9732. * src/PeerInteractionCommand.{h, cc}
  9733. * src/PeerInitiateConnectionCommand.{h, cc}
  9734. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9735. Added the ability to load nodes from torrent file. These nodes are
  9736. added to the routing table when downloading that torrent.
  9737. * src/BtContext.h
  9738. * src/DefaultBtContext.{h, cc}
  9739. * src/DHTSetup.cc
  9740. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9741. hostname and port pair, and resolves all of them.
  9742. * src/NameResolver.{h, cc}: Added reset().
  9743. * src/RequestGroup.cc
  9744. * test/DefaultBtContextTest.cc
  9745. * test/MockBtContext.h
  9746. Removed assert() from DefaultBtContext and throw exception instead.
  9747. * src/DefaultBtContext.cc
  9748. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9749. Fixed segmentation fault bug when exiting if dht is disabled.
  9750. * src/RequestGroup.cc
  9751. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9752. Fixed typo in log message and define the message in message.h
  9753. * src/TimedHaltCommand.cc
  9754. * src/message.h
  9755. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9756. Included RecoverableException.h to fix compilation error.
  9757. * test/DHTMessageFactoryImplTest.cc
  9758. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9759. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9760. * test/DHTPingMessageTest.cc
  9761. * test/DHTGetPeersMessageTest.cc
  9762. * test/DHTFindNodeMessageTest.cc
  9763. * test/DHTAnnouncePeerMessageTest.cc
  9764. * test/MockDHTMessage.h
  9765. * test/MockDHTMessageFactory.h
  9766. * test/MockDHTMessageDispatcher.h: New class.
  9767. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9768. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9769. virtual.
  9770. * src/DHTMessageDispatcher.h
  9771. * src/DHTMessageDispatcherImpl.{h, cc}
  9772. * src/DHTSetup.cc
  9773. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9774. Adding handling of DHT error message. Just log error message and
  9775. throw exception.
  9776. * src/DHTMessageFactoryImpl.cc
  9777. * test/DHTMessageFactoryImplTest.cc
  9778. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9779. Added handling of dynamic cast failure.
  9780. * src/DHTNodeLookupTask.cc
  9781. * src/DHTPeerLookupTask.cc
  9782. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9783. Added the ability to stop aria2 itself when given time has passed
  9784. from start. Use --stop option to specify time in minutes.
  9785. When 0 is given, this feature is disabled.
  9786. * src/OptionHandlerFactory.cc
  9787. * src/TimeBasedCommand.h: Make _interval protected scope.
  9788. * src/HelpItemFactory.cc
  9789. * src/option_processing.cc
  9790. * src/prefs.h
  9791. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9792. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9793. Without this modification, the result list shows "ERR" when aria2 is
  9794. stopped by --stop option. It should be "INPR".
  9795. * src/DownloadEngine.{h, cc}
  9796. * src/DownloadEngineFactory.cc
  9797. * src/usage_text.h
  9798. * src/TimedHaltCommand.{h, cc}: New class.
  9799. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9800. Bootstrap through node added by port message.
  9801. Currently bootstrap is executed if the number of buckets in routing
  9802. table is 1.
  9803. * src/BtPortMessage.{h, cc}
  9804. * src/DefaultBtMessageFactory.{h, cc}
  9805. * src/PeerInteractionCommand.cc
  9806. * test/BtPortMessageTest.cc
  9807. * test/MockDHTTask.h
  9808. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9809. Extract the Peer class's member variables, which are only needed after
  9810. PeerInteractionCommand, into PeerSessionResource class.
  9811. This class is instantiated in PeerInteractionCommand class's ctor and
  9812. released in its dtor.
  9813. This will make Peer class lightweight and uses less memory for peers
  9814. which are not connected and wait in the queue.
  9815. * src/PeerChokeCommand.cc
  9816. * src/PeerSessionResource.{h, cc}
  9817. * src/PeerInteractionCommand.cc
  9818. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9819. * src/DefaultBtInteractive.cc
  9820. * src/BtPieceMessage.cc
  9821. * src/BtInterestedMessage.cc
  9822. * src/BtUnchokeMessage.cc
  9823. * src/DefaultPeerStorage.{h, cc}
  9824. * src/PeerInitiateConnectionCommand.cc
  9825. * src/ActivePeerConnectionCommand.cc
  9826. * src/BtNotInterestedMessage.cc
  9827. * src/DefaultBtMessageDispatcher.cc
  9828. * src/BtChokeMessage.cc
  9829. * src/BtRequestMessage.cc
  9830. * src/Peer.{h, cc}
  9831. * src/BtRegistry.h
  9832. * src/TrackerWatcherCommand.cc
  9833. * src/PeerReceiveHandshakeCommand.cc
  9834. * test/BtExtendedMessageTest.cc
  9835. * test/BtAllowedFastMessageTest.cc
  9836. * test/BtCancelMessageTest.cc
  9837. * test/DefaultPieceStorageTest.cc
  9838. * test/BtBitfieldMessageTest.cc
  9839. * test/BtHaveMessageTest.cc
  9840. * test/BtNotInterestedMessageTest.cc
  9841. * test/BtRequestMessageTest.cc
  9842. * test/PeerSessionResourceTest.cc
  9843. * test/DefaultBtMessageDispatcherTest.cc
  9844. * test/PeerTest.cc
  9845. * test/BtInterestedMessageTest.cc
  9846. * test/BtRejectMessageTest.cc
  9847. * test/BtChokeMessageTest.cc
  9848. * test/DefaultPeerStorageTest.cc
  9849. * test/BtHaveNoneMessageTest.cc
  9850. * test/BtHaveAllMessageTest.cc
  9851. * test/DefaultExtensionMessageFactoryTest.cc
  9852. * test/BtUnchokeMessageTest.cc
  9853. * test/DefaultBtMessageFactoryTest.cc
  9854. * test/HandshakeExtensionMessageTest.cc
  9855. * test/UTPexExtensionMessageTest.cc
  9856. * test/DefaultBtRequestFactoryTest.cc
  9857. * test/BtPieceMessageTest.cc
  9858. Removed typedef PeerStats.
  9859. * src/PeerStat.h
  9860. * src/SegmentMan.cc
  9861. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9862. Added std namespace to copy, remove_copy, back_inserter,
  9863. front_inserter.
  9864. * src/RequestGroupMan.cc
  9865. * src/DefaultPieceStorage.cc
  9866. * src/StreamFileAllocationEntry.cc
  9867. * src/BtFileAllocationEntry.cc
  9868. * src/RequestGroup.cc
  9869. * src/MetalinkEntry.cc
  9870. * src/DelegatingPeerListProcessor.cc
  9871. * src/DefaultBtRequestFactory.cc
  9872. * src/DefaultBtMessageDispatcher.cc
  9873. * src/version_usage.cc: Included <algorithm>
  9874. * src/main.cc
  9875. * src/MetalinkParserController.cc
  9876. * src/DefaultBtContext.cc
  9877. * src/DownloadEngineFactory.cc
  9878. * src/a2algo.h
  9879. Removed.
  9880. * test/StreamUriListParserTest.cc
  9881. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9882. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9883. ActivePeerConnectionCommand when it is given and
  9884. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9885. * src/ActivePeerConnectionCommand.{h, cc}
  9886. * src/BtSetup.cc
  9887. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9888. Only add socket to DownloadEngine's select routine when peer or
  9889. localhost is unchoked and interested. This lowers CPU usage a
  9890. little bit.
  9891. * src/PeerInteractionCommand.cc
  9892. * src/PeerAbstractCommand.{h, cc}
  9893. * src/BtInteractive.h
  9894. * src/DefaultBtInteractive.{h, cc}
  9895. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Revert previous change because get_peers message is needed for
  9897. announce_peer anyway.
  9898. * src/DHTGetPeersCommand.cc
  9899. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9900. Request peers thought DHT only when download hasn't finished.
  9901. * src/DHTGetPeersCommand.cc
  9902. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9903. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9904. * src/DHTBucketRefreshTask.{h, cc}
  9905. * src/DHTSetup.cc
  9906. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9907. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9908. standard classes.
  9909. Included string.h where mem* function are used.
  9910. Added namespace aria2.
  9911. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9912. Create directory before saving DHT routing table.
  9913. Now ios::failure is now handled properly.
  9914. * src/DHTAutoSaveCommand.cc
  9915. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9916. Removed unnecessary cerr.
  9917. * src/DownloadEngine.cc
  9918. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. Catch exception inside DHTMessageReceiver::receiveMessage().
  9920. Log unknown message.
  9921. * src/DHTMessageReceiver.{h, cc}
  9922. * src/DHTMessageFactory.h
  9923. * src/DHTMessageFactoryImpl.{h, cc}
  9924. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9925. * src/DHTInteractionCommand.cc
  9926. * src/DHTUnknownMessage.{h, cc}
  9927. * test/DHTUnknownMessageTest.cc
  9928. * test/MockDHTMessageFactory.h
  9929. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9930. Commented out ip address comparison because a host can have multiple
  9931. ip addresses and it is hard to predict the hostname is resolved into
  9932. which one.
  9933. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9934. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9935. * po/Makefile.in: Removed since this is generated by configure.
  9936. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9937. Fixed compiler warning about redefinition of SIZE_MAX.
  9938. Use common.h instead of config.h directly here.
  9939. * src/Platform.{h, cc}
  9940. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9941. here.
  9942. * common.h
  9943. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9944. Updated gettext related files.
  9945. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9946. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9947. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9948. Added DHT functionality, compatible with mainline.
  9949. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9950. You may need to specify entry point to DHT network using
  9951. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9952. Use --dht-listen-port to specify port number. Make sure that your
  9953. firewall configuration can pass through UDP traffic to the port.
  9954. The routing table is saved in $HOME/.aria2/dht.dat.
  9955. * src/DHT*
  9956. * src/BNode.{h, cc}
  9957. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9958. particular torrent.
  9959. * src/Data.cc: Rewritten ctor.
  9960. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9961. --dht-entry-point.
  9962. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9963. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9964. ends, remove BtContext from DHTPeerAnnounceStorage.
  9965. * src/BtPortMessage.{h, cc}: Rewritten.
  9966. * src/message.h
  9967. * src/OptionHandlerImpl.cc
  9968. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9969. --dht-entry-point.
  9970. * src/Dictionary.{h, cc} (remove): New function.
  9971. * src/prefs.h
  9972. * src/DefaultBtMessageFactory.h
  9973. * src/BtHandshakeMessage.cc
  9974. * src/ActivePeerConnectionCommand.cc
  9975. * src/SocketCore.{h, cc}: Added datagram socket support.
  9976. * src/DefaultBtMessageFactory.cc
  9977. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9978. Create DHT commands.
  9979. * src/BtMessageFactory.h
  9980. * src/PeerMessageUtil.{h, cc}
  9981. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Fixed the bug that log file is not written when configuration file doesn't exist.
  9983. This is caused by using Logger class before LogFactory is not configured.
  9984. BUG #1875079
  9985. * src/option_processing.cc
  9986. Warning message "configuration doesn't exist" is only printed when --conf is
  9987. given.
  9988. * src/option_processing.cc
  9989. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9990. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9991. ShaVisitor is now deprecated and slated to be removed.
  9992. * src/DefaultBtContext.cc
  9993. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9994. Externalize message to message.h
  9995. * src/Platform.cc
  9996. * src/message.h
  9997. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9998. Set default domain and default path to cookie.
  9999. * src/HttpResponse.cc
  10000. * src/CookieBox.{h, cc}
  10001. * src/CookieParser.{h, cc}
  10002. * test/CookieParserTest.cc
  10003. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10004. Added --no-conf and --conf-path command-line option.
  10005. --no-conf option disables loading aria2.conf file.
  10006. --conf-path option changes the configuration file path. The default
  10007. file path is $HOME/.aria2/aria2.conf
  10008. Added a warning message when the configuration file is not found.
  10009. * src/HelpItemFactory.cc
  10010. * src/option_processing.cc
  10011. * src/prefs.h
  10012. * src/usage_text.h
  10013. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. Added the message to inform users that other help categories are
  10015. available in -h option.
  10016. * src/version_usage.cc
  10017. * src/TagContainer.{h, cc}
  10018. * test/TagContainerTest.cc
  10019. * src/TaggedItem.{h, cc}
  10020. * test/TaggedItemTest.cc
  10021. * src/HelpItem.h
  10022. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10024. from PiecedSegment's ctor.
  10025. Previously Piece::getAllMissingBlockIndexes() is called from
  10026. PiecedSegment() but it is rather expensive since only first element is
  10027. used.
  10028. * src/PiecedSegment.cc
  10029. * src/Piece.{h, cc}
  10030. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10031. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10032. each time these functions are called.
  10033. * src/BitfieldMan.{h, cc}
  10034. * test/BitfieldManTest.cc
  10035. * src/array_fun.h
  10036. * test/array_funTest.cc
  10037. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10038. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10039. filtered. Removed unnecessary cast to int32_t.
  10040. * src/BitfieldMan.{h, cc}
  10041. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10042. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10043. payload length(4bytes) are received. This happens because lenbufLength
  10044. is not updated in this particular case and successive call of
  10045. receiveMessage() overwrites payload length with bytes recieved which
  10046. are payload body.
  10047. * src/PeerConnection.{h, cc}
  10048. * src/message.h
  10049. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10051. peer if there are peers that have same ipaddr and port.
  10052. I've experiened segmentation fault and "pure virtual function was
  10053. called" error.
  10054. * src/Peer.h
  10055. * test/PeerTest.cc
  10056. * src/DefaultPeerStorage.cc
  10057. * test/DefaultPeerStorageTest.cc
  10058. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10059. Removed a call to isPowerOf() because it is no longer necessary here
  10060. and a request block is not always power of 2.
  10061. BUG#1866924
  10062. * src/PeerMessageUtil.cc (checkLength)
  10063. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Fixed the bug that always first found Segment is removed from
  10065. usedSegmentEntries. Removed unused functions.
  10066. * src/SegmentMan.{h, cc}
  10067. * test/SegmentManTest.cc
  10068. Fixed the bug that ServerHost is not removed.
  10069. * src/RequestGroup.cc
  10070. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10071. Fixed the bug that SegmentMan::completeSegment() is not called
  10072. even if Segment is complete when --lowest-speed-limit is enabled.
  10073. BUG#1864525
  10074. * src/DownloadCommand.{h, cc}
  10075. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10076. Fixed: hash algorithm 'sha1' is always used.
  10077. * src/DownloadCommand.cc (validatePieceHash)
  10078. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Added --enable-peer-exchange command-line option.
  10080. * src/OptionHandlerFactory.cc
  10081. * src/HelpItemFactory.cc
  10082. * src/option_processing.cc
  10083. * src/usage_text.h
  10084. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. Move extension from BtRuntime to ExtensionMessageFactory, because
  10086. extension can be specified per peer, not per torrent.
  10087. * src/DefaultBtInteractive.cc
  10088. * src/BtRuntime.h
  10089. * src/ExtendedMessagingAware.h
  10090. * src/ExtensionMessageFactory.h
  10091. * src/DefaultExtensionMessageFactory.cc
  10092. * test/DefaultExtensionMessageFactoryTest.cc
  10093. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10094. Added categorized option help. Specify category using --help option.
  10095. Also added the ability to search options in forward match.
  10096. * src/HelpItem.{h, cc}
  10097. * test/HelpItemTest.cc
  10098. * src/HelpItemFactory.{h, cc}
  10099. * src/TagContainer.{h, cc}
  10100. * test/TagContainerTest.cc
  10101. * src/option_processing.cc
  10102. * src/prefs.h
  10103. * src/TaggedItem.{h, cc}
  10104. * test/TaggedItemTest.cc
  10105. * src/version_usage.cc
  10106. * src/help_tags.h
  10107. * src/usage_text.h
  10108. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10109. Fixed segmentation fault when bad torrent metainfo is parsed.
  10110. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10111. and then throw exception or skip it.
  10112. * src/DefaultBtContext.{h, cc}
  10113. * test/DefaultBtContextTest.cc
  10114. * src/AnnounceList.cc
  10115. * src/CompactPeerListProcessor.cc
  10116. * src/message.h
  10117. * src/DefaultBtAnnounce.{h, cc}
  10118. * test/DefaultBtAnnounceTest.cc
  10119. * src/BencodeVisitor.cc
  10120. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10121. Added missing "B"(=Byte). So now the message looks like this:
  10122. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10123. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10124. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10125. Show the seed ratio after torrent downloads.
  10126. For example, after torrent download completed and --seed-time and
  10127. --seed-ratio conditions are fulfilled, following message is printed
  10128. right after "Download complete: .....":
  10129. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10130. * src/RequestGroupMan.cc
  10131. * src/RequestGroup.{h, cc}
  10132. * src/message.h
  10133. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10134. Remove a defunct control file. A defunct control file means that while
  10135. it exists, but the corresponding download file is missing.
  10136. After its removal, a download restarts from the beginning.
  10137. * src/RequestGroup.cc
  10138. * src/message.h
  10139. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. Allocate bitfield in Peer when it is really used. More specifically,
  10141. bitfield in Peer is allocated after the connection is established and
  10142. deallocated when the connection is dropped.
  10143. Since 2 parameters(piece length and total length) was removed from the
  10144. constructor of Peer class, many test classes were modified accordingly.
  10145. See svn log for more detailed information.
  10146. * src/PeerInteractionCommand.cc
  10147. * src/CompactPeerListProcessor.cc
  10148. * src/Peer.cc
  10149. * src/DefaultPeerListProcessor.cc
  10150. * src/PeerListenCommand.cc
  10151. * src/PeerReceiveHandshakeCommand.cc
  10152. Fixed memory leak
  10153. * src/Piece.cc
  10154. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10156. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10157. command-line options.
  10158. * src/option_processing.cc
  10159. * src/ActivePeerConnectionCommand.cc
  10160. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10161. Send have message to peer if it already has the piece.
  10162. * src/BtHaveMessage.{h, cc}
  10163. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10164. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10165. port.
  10166. * src/DefaultPeerStorage.{h, cc}
  10167. * test/DefaultPeerStorageTest.cc
  10168. * src/HandshakeExtensionMessage.cc
  10169. * test/HandshakeExtensionMessageTest.cc
  10170. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10171. * src/PeerStorage.h
  10172. * test/MockPeerStorage.h
  10173. * src/PeerListenCommand.cc
  10174. * src/PeerReceiveHandshakeCommand.cc
  10175. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10176. Added --metalink-enable-unique-protocol option.
  10177. * src/Metalink2RequestGroup.cc
  10178. * src/option_processing.cc
  10179. * src/prefs.h
  10180. * src/version_usage.cc
  10181. * doc/aria2c.1.txt
  10182. * doc/aria2c.1
  10183. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10184. Allow a peer in incomingPeer to be added peers.
  10185. * src/DefaultPeerStorage.cc
  10186. * test/DefaultPeerStorageTest.cc
  10187. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10188. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10189. I could reproduce this bug in following procedure:
  10190. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10191. 2. Restart aria2.
  10192. 3. You see the download stopped around 99%.
  10193. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10194. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10195. If timeout is reached, then _nextCommand is unused and it may contains
  10196. segments and they won't be canceled. Actually, timeout is not needed
  10197. here because if the server dropped connection, then retry is made.
  10198. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10199. Added uTorrent compatible Peer Exchange.
  10200. * src/BencodeVisitor.{h, cc}
  10201. * test/BencodeVisitorTest.cc
  10202. * src/BtConstants.h
  10203. * src/BtContext.h: Added 'private' flag.
  10204. * src/BtExtendedMessage.{h, cc}
  10205. * test/BtExtendedMessageTest.cc
  10206. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10207. reserved field.
  10208. * test/BtHandshakeMessageTest.cc
  10209. * src/BtMessageFactory.h
  10210. * src/BtRegistry.h
  10211. * src/BtRuntime.h: This class holds default extension message IDs for
  10212. aria2. By default, aria2 uses ID 8 for ut_pex.
  10213. * src/DefaultBtContext.cc
  10214. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10215. When it is true, aria2 enables ut_pex. This value is set by
  10216. PeerInteractionCommand.
  10217. * src/DefaultBtMessageFactory.{h, cc}
  10218. * test/DefaultBtMessageFactoryTest.cc
  10219. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10220. handling to DefaultBtInteractive class.
  10221. * src/DefaultExtensionMessageFactory.{h, cc}
  10222. * test/DefaultExtensionMessageFactoryTest.cc
  10223. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10224. the container(peers and incomingPeers. The equality is determined by
  10225. Peer::id).
  10226. * test/DefaultPeerStorageTest.cc
  10227. * src/ExtensionMessage.h
  10228. * test/MockExtensionMessage.h
  10229. * src/ExtensionMessageFactory.h
  10230. * test/MockExtensionMessageFactory.h
  10231. * src/HandshakeExtensionMessage.{h, cc}
  10232. * test/HandshakeExtensionMessageTest.cc
  10233. * src/MetaEntry.h
  10234. * src/Peer.{h, cc}
  10235. * src/PeerInteractionCommand.cc
  10236. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10237. addIncomingPeer.
  10238. * src/PeerMessageUtil.{h, cc}
  10239. * src/PeerObject.h
  10240. * src/UTPexExtensionMessage.{h, cc}
  10241. * test/UTPexExtensionMessageTest.cc
  10242. * src/message.h
  10243. * src/prefs.h
  10244. Fixed the bug that returns incomplete data when it contains null
  10245. character. A convenient constructor was also added.
  10246. * src/Data.{h, cc}
  10247. Rewritten.
  10248. * src/CompactPeerListProcessor.cc
  10249. Fixed typos.
  10250. * src/message.h
  10251. * src/MetaFileUtil.cc
  10252. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10253. Added "Status Legend" label to the explanation text of 'stat' in
  10254. download result and moved it to the last. BUG#1848214
  10255. * src/RequestGroupMan.cc
  10256. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10257. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10258. * src/Makefie.am
  10259. * test/Makefile.am
  10260. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10261. Fixed the bug that prevents aria2 from loading cookie file when expire
  10262. value is greater than 2^31-1. BUG#1851066
  10263. * src/CookieBoxFactory.cc
  10264. * test/CookieBoxFactoryTest.cc
  10265. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10266. Fixed possible memory leak when an exception is thrown.
  10267. * src/XML2SAXMetalinkProcessor.cc
  10268. Added Expat support. If both libxml2 and Expat are installed, then
  10269. libxml2 is used by default.
  10270. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10271. ExpatMetalinkProcessor according to the configuration.
  10272. * src/ExpatMetalinkProcessor.{h, cc}
  10273. * src/main.cc: Removed libxml2 specific header and init/free function.
  10274. * src/MetalinkProcessorFactory.{h, cc}
  10275. * src/MetalinkHelper.cc
  10276. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10277. * src/MetalinkProcessor.h
  10278. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10279. MetalinkProcessorTest is used instead.
  10280. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10281. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10282. MetalinkProcessorFactory::newInstance().
  10283. * m4/libexpat.m4
  10284. * configure.ac: Added configuration options for libexpat.
  10285. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Disabled -s option in metalink download.
  10287. * src/Metalink2RequestGroup.cc
  10288. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. If several protocols are available for a mirror in metalink file,
  10290. aria2 now use one of them. --metalink-preferred-protocol option was
  10291. added to specify the preference of protocol.
  10292. * src/AbstractCommand.cc
  10293. * src/OptionHandlerFactory.cc
  10294. * src/ServerHost.{h, cc}
  10295. * src/Metalink2RequestGroup.cc
  10296. * src/RequestGroup.{h, cc}
  10297. * test/RequestGroupTest.cc
  10298. * src/option_processing.cc
  10299. * src/prefs.h
  10300. * src/HttpResponseCommand.cc
  10301. * src/MetalinkResource.{h, cc}
  10302. * src/FtpNegotiationCommand.cc
  10303. * src/MetalinkEntry.{h, cc}
  10304. * src/MetalinkEntryTest.cc
  10305. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10306. Code cleanup and added debug log.
  10307. * src/PeerConnection.cc
  10308. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10309. Compiler error fix: applied the patch by Tiziano Mueller
  10310. * src/RequestGroup.cc
  10311. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10312. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10313. in stopped and completed event.
  10314. * src/AnnounceList.{h, cc}
  10315. * test/AnnounceListTest.cc
  10316. * src/DefaultBtAnnounce.cc
  10317. * test/DefaultBtAnnounceTest.cc
  10318. Sorted URLs.
  10319. * test/Metalink2RequestGroupTest.cc
  10320. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10321. Removed unnecessary string copy. Updated doc and corrected indentation.
  10322. * src/Base64.cc
  10323. Fixed compilation warnings
  10324. * test/DataTest.cc
  10325. * test/HttpRequestTest.cc
  10326. * test/MetaFileUtilTest.cc
  10327. * test/RequestTest.cc
  10328. * Release 0.12.0
  10329. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10330. Updated translations
  10331. * po/{de,fr,ja,nl,ru}.po
  10332. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10333. translations. Many thanks to translators.
  10334. * po/{ca,es,it,pt_BR,sv}.po
  10335. * po/LINGUAS
  10336. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10337. Added a notice about URL
  10338. * src/version_usage.cc
  10339. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10340. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10341. aria2 repeatedly sends stopped request when tracker returns error code.
  10342. * src/AnnounceList.cc
  10343. * test/AnnounceListTest.cc
  10344. * src/AnnounceTier.h
  10345. Added a message when ctrl-c is hit.
  10346. Now second ctrl-c is also handled in signal handler.
  10347. * src/RequestGroupMan.{h, cc}
  10348. * src/RequestGroup.{h, cc}
  10349. * src/MultiUrlRequestInfo.cc
  10350. * src/DownloadEngine.cc
  10351. * src/TrackerWatcherCommand.cc
  10352. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10353. Code cleanup
  10354. * src/Base64.cc (encode)
  10355. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10356. Changed Direct/IO enable/disable procesure in file allocation routine.
  10357. * src/SingleFileAllocationIterator.cc
  10358. (SingleFileAllocationIterator):
  10359. Disable directIO if offset is not multiple of 512.
  10360. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10361. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10362. Enable created SingleFileAllocationIterator's directIO.
  10363. * src/FileAllocationEntry.cc
  10364. (FileAllocationEntry): Enable directIO here.
  10365. (~FileAllocationEntry): Disable directIO here.
  10366. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10368. * src/Peer.{h, cc}
  10369. * src/DefaultPieceStorage.cc
  10370. * test/DefaultPieceStorageTest.cc
  10371. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10372. Rewritten direct I/O support routine
  10373. * src/SingleFileAllocationIterator.cc
  10374. * src/MultiDiskAdaptor.{h, cc}
  10375. * src/ByteArrayDiskWriter.h
  10376. * src/AbstractSingleDiskAdaptor.h
  10377. * src/AbstractDiskWriter.cc
  10378. * src/DefaultPieceStorage.cc
  10379. * src/DiskWriter.h
  10380. * src/BinaryStream.h
  10381. * src/IteratableChunkChecksumValidator.cc
  10382. * src/IteratableChecksumValidator.cc
  10383. * src/CheckIntegrityEntry.cc
  10384. * src/FileAllocationEntry.cc
  10385. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10386. Fixed typo
  10387. * src/version_usage.cc
  10388. Updated doc
  10389. * doc/aria2c.1.txt
  10390. * doc/aria2c.1
  10391. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. Fixed compile error without message digest support.
  10393. * src/FileMetalinkParserState.cc
  10394. * src/MetalinkParserController.{h, cc}
  10395. * test/XML2SAXMetalinkProcessorTest.cc
  10396. * test/MetalinkParserControllerTest.cc
  10397. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10398. Enable direct I/O support in checksum checking.
  10399. * src/IteratableChunkChecksumValidator.{h, cc}
  10400. * test/IteratableChunkChecksumValidatorTest.cc
  10401. * src/CheckIntegrityEntry.cc
  10402. * src/PieceHashCheckIntegrityEntry.cc
  10403. * src/IteratableChecksumValidator.{h, cc}
  10404. * src/BtCheckIntegrityEntry.cc: Added doc.
  10405. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10406. Added --allow-piece-length-change option.
  10407. * src/DefaultBtProgressInfoFile.cc
  10408. * test/DefaultBtProgressInfoFileTest.cc
  10409. * src/OptionHandlerFactory.cc
  10410. * src/option_processing.cc
  10411. * src/prefs.h
  10412. * src/version_usage.cc
  10413. * doc/aria2c.1.txt
  10414. * doc/aria2c.1
  10415. Fixed: duplicated result entry appears when exception is thrown in
  10416. RequestGroup::createInitiateConnectionCommand().
  10417. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10418. Add RequestGroup to _requestGroup after RequetGroup::
  10419. createInitiateConnectionCommand() succeeds.
  10420. Externalized message
  10421. * src/XML2SAXMetalinkProcessor.cc
  10422. * src/message.h
  10423. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10424. Forced download abort when received negative response from http/ftp
  10425. server.
  10426. * src/HttpResponseCommand.cc
  10427. * src/FtpNegotiationCommand.cc
  10428. * src/HttpResponse.cc
  10429. * src/FtpConnection.cc
  10430. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10431. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10432. the predecessor, Xml2MetalinkParser class.
  10433. I tested them against 94KB metalink file with 1234 chunk checksums.
  10434. The new one parsed it in 22msec, while it took 6000msec with old one.
  10435. * src/XML2SAXMetalinkProcessor.{h, cc}
  10436. * test/XML2SAXMetalinkProcessorTest.cc
  10437. * src/MetalinkParserController.{h, cc}
  10438. * test/MetalinkParserControllerTest.cc
  10439. * src/MetalinkParserState.h: Also added 16 subclasses.
  10440. * src/main.cc
  10441. * src/Metalink2RequestGroup.cc
  10442. * src/MetalinkHelper.cc
  10443. * src/MetalinkEntry.cc
  10444. * src/ChunkChecksum.h
  10445. Rewritten Base64 class for better performance.
  10446. * src/Base64.{h, cc}
  10447. * test/Base64Test.cc
  10448. * src/HttpRequest.cc
  10449. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10450. Fixed the bug#1841757: aria2 will connect to server to only get
  10451. file size.
  10452. * src/StreamFileAllocationEntry.cc
  10453. * src/option_processing.cc
  10454. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10455. downloads.
  10456. * src/FtpNegotiationCommand.cc
  10457. Suppressed wrong message when finding PreDownloadHandler
  10458. * src/RequestGroup.cc
  10459. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10460. Updated usage
  10461. * src/version_usage.cc
  10462. Updated man page
  10463. * doc/aria2c.1.txt
  10464. * doc/aria2c.1
  10465. Updated po files
  10466. * po/aria2c.pot
  10467. * po/*.po
  10468. * po/*.gmo
  10469. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10470. Eliminated g++-4.2 warning
  10471. * src/DownloadHandlerConstants.{h, cc}
  10472. * src/Util.cc
  10473. * test/MetaFileUtilTest.cc
  10474. * test/PStringBuildVisitorTest.cc
  10475. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10476. * src/RequestGroup.cc
  10477. * src/BtCheckIntegrityEntry.cc
  10478. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10479. Fixed a2io.h
  10480. * src/a2io.h
  10481. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10482. Added direct I/O support. The current implementation uses O_DIRECT,
  10483. which is not posix standard and is tested on linux 2.6.21.
  10484. Currently only file allocation uses direct I/O.
  10485. * src/SingleFileAllocationIterator.{h, cc}
  10486. * test/SingleFileAllocationIteratorTest.cc
  10487. * src/MultiFileAllocationIterator.{h, cc}
  10488. * test/MultiFileAllocationIteratorTest.cc
  10489. * src/BinaryStream.h
  10490. * src/DiskWriter.h
  10491. * src/AbstractDiskWriter.{h, cc}
  10492. * src/ByteArrayDiskWriter.h
  10493. * src/DiskAdaptor.h
  10494. * src/AbstractSingleDiskAdaptor.{h, cc}
  10495. * src/MultiDiskAdaptor.{h, cc}
  10496. * src/FileAllocationEntry.cc
  10497. * src/Util.{h, cc}
  10498. * src/OptionHandlerFactory.cc
  10499. * src/prefs.h
  10500. * src/version_usage.cc
  10501. * src/option_processing.cc
  10502. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10503. handleException.
  10504. * src/MultiFileAllocationIterator.cc
  10505. Added EINTR handling
  10506. * src/SocketCore.cc
  10507. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10508. Updated usage
  10509. * src/version_usage.cc
  10510. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10511. Applied Ross's patch for MinGW port.
  10512. * src/DownloadEngine.h
  10513. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10514. Set Content-Type to SingleFileDownloadContext when http response is
  10515. received.
  10516. * src/HttpResponseCommand.cc
  10517. * src/HttpResponse.{h, cc}
  10518. * test/HttpResponseTest.cc
  10519. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10520. Rewritten to add content-type support.
  10521. * src/DownloadHandler.{h, cc}
  10522. * src/BtPostDownloadHandler.{h, cc}
  10523. * test/BtPostDownloadHandlerTest.cc
  10524. * src/MetalinkPostDownloadHandler.{h, cc}
  10525. * test/MetalinkPostDownloadHandlerTest.cc
  10526. * src/PostDownloadHandler.{h, cc}
  10527. * src/DownloadHandlerConstants.{h, cc}
  10528. * src/RequestGroup.cc
  10529. * src/HttpResponseCommand.cc
  10530. * src/FtpNegotiationCommand.cc
  10531. * src/SingleFileDownloadContext.{h, cc}
  10532. * src/RequestGroup.h
  10533. * src/RequestGroupCriteria.h
  10534. * src/ContentTypeRequestGroupCriteria.h
  10535. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10536. If it is give, metalink/torrent file is not written to the disk, but
  10537. just is kept in memory. Parsing is occurred on memory.
  10538. * src/MetalinkHelper.{h, cc}
  10539. * src/MetalinkProcessor.h
  10540. * src/Xml2MetalinkProcessor.{h, cc}
  10541. * test/Xml2MetalinkProcessorTest.cc
  10542. * src/DownloadHandlerFactory.{h, cc}
  10543. * test/DownloadHandlerFactoryTest.cc
  10544. * src/PreDownloadHandler.{h, cc}
  10545. * src/OptionHandlerFactory.cc
  10546. * src/DefaultBtContext.{h, cc}
  10547. * test/DefaultBtContextTest.cc
  10548. * src/version_usage.cc
  10549. * src/Metalink2RequestGroup.{h, cc}
  10550. * src/RequestGroup.{h, cc}
  10551. * src/a2functional.h
  10552. * test/a2functionalTest.cc
  10553. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10554. * src/OptionHandlerImpl.h
  10555. * src/prefs.h
  10556. * src/Util.{h, cc}
  10557. * test/UtilTest.cc
  10558. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10559. memory usage.
  10560. * src/RequestGroupMan.{h, cc}
  10561. * src/DownloadEngine.cc
  10562. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10563. WeakHandle to SharedHandle because WeakHandle could be null.
  10564. * src/RequestGroup.{h, cc}
  10565. * src/DownloadEngineFactory.cc
  10566. * src/DownloadResult.h
  10567. Set totalLength after download finished
  10568. * src/UnknownLengthPieceStorage.{h, cc}
  10569. Keep torrent file specified in metalink in memory.
  10570. * src/Metalink2RequestGroup.cc
  10571. * src/BtDependency.cc
  10572. * src/TrueRequestGroupCriteria.h
  10573. Fixed the bug: seekg is used where seekp should be used.
  10574. * src/ByteArrayDiskWriter.cc
  10575. * test/ByteArraydiskWriterTest.cc
  10576. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10577. Fixed syntax error
  10578. * test/SequenceTest.cc
  10579. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10581. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10582. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10583. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10584. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10585. Added the check to see whether ares_host_callback accepts timeouts
  10586. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10587. * src/NameResolver.{h, cc}
  10588. * m4/libcares.m4
  10589. * configure.ac: Set C++ for language choice.
  10590. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. Fixed: compilation fails without c-ares/ares
  10592. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10593. Generate http/ftp commands only when download is incomplete.
  10594. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10595. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10596. Corrected typo. Examples are removed since they are available in man
  10597. page.
  10598. * src/version_usage.cc
  10599. Updated man page.
  10600. * doc/aria2c.1
  10601. * doc/aria2c.1.txt
  10602. * doc/makeman: Commented out sed command.
  10603. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10604. Throw DlAbortEx when a remote file is not found.
  10605. * src/HttpResponse.cc
  10606. * src/FtpNegotiationCommand.cc
  10607. * src/message.h
  10608. Overwrite an existing file if --allow-overwrite=true is given.
  10609. * src/RequestGroup.cc
  10610. Removed unused functions
  10611. * src/AbstractCommand.h
  10612. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10613. Removed 'extern' from 'extern typedef ...' in src/*.h
  10614. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10615. Updated usage
  10616. * src/version_usage.cc
  10617. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10618. Trim announce URL
  10619. * src/DefaultBtContext.cc
  10620. * test/ShaVisitorTest.cc
  10621. Trim argument s. Give trimed s to exception constructor.
  10622. * src/Util.cc (parseInt)(parseLLInt)
  10623. * test/UtilTest.cc
  10624. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10625. Set precision back to 1.
  10626. * src/ConsoleStatCalc.cc (calculateStat)
  10627. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10628. Replaced strtol with Util::parseInt
  10629. * src/ChunkedEncoding.cc
  10630. * src/HttpConnection.cc
  10631. * src/CookieBoxFactory.cc
  10632. * src/ParameterizedStringParser.cc
  10633. * src/Util.cc
  10634. * test/UtilTest.cc
  10635. * test/OptionHandlerTest.cc
  10636. * src/Request.cc
  10637. Throw exception when empty string is given. The message for exception
  10638. changed.
  10639. * src/Util.cc (parseInt)(parseLLInt)
  10640. * src/message.h
  10641. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10643. set to 1.
  10644. * src/ConsoleStatCalc.cc (calculateStat)
  10645. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10646. Preallocate non-requested file which is adjacent forward to requested
  10647. file('requested' files means the files given in --select-file option)
  10648. if they share a same piece.
  10649. This fixes long pause in the file system which doesn't support sparse
  10650. files like FAT32 while downloading.
  10651. * src/MultiFileAllocationIterator.{h, cc}
  10652. * test/MultiFileAllocationIteratorTest.cc
  10653. * src/FileEntry.{h, cc}
  10654. Removed unused _option.
  10655. * src/MultiDiskAdaptor.h
  10656. * test/MultiDiskAdaptorTest.cc
  10657. * src/DefaultPieceStorage.cc
  10658. Set the default value of --seed-ratio to 1.0.
  10659. If 0.0 is given, then seeding continues regardless of share ratio.
  10660. * src/version_usage.cc
  10661. * src/option_processing.cc
  10662. * src/BtSetup.cc
  10663. * doc/aria2c.1.txt
  10664. * doc/aria2c.1
  10665. Fixed: Selective download is not working in BitTorrent
  10666. * src/RequestGroup.cc
  10667. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10668. * src/PieceStorage.h
  10669. * test/MockPieceStorage.h
  10670. * src/UnknownLengthPieceStorage.h
  10671. * src/DefaultPieceStorage.{h, cc}
  10672. * src/Metalink2RequestGroup.cc
  10673. * src/RequestGroup.cc
  10674. * src/Sequence.h
  10675. * test/SequenceTest.cc
  10676. * src/IntSequence.h
  10677. * src/message.h
  10678. * src/Util.{h, cc}
  10679. * test/UtilTest.cc
  10680. Added new function 'parse' to catch exception thrown by subclass's
  10681. parseArg
  10682. * src/OptionHandler.h
  10683. * src/OptionParser.cc
  10684. * src/NameMatchOptionHandler.h
  10685. * src/OptionHandlerImpl.h
  10686. * test/OptionHandlerTest.cc
  10687. Added IntegerRangeOptionHandler. Used for --listen-port and
  10688. --select-file. Now --listen-port accepts range of port.
  10689. * src/OptionHandlerFactory.cc
  10690. * src/version_usage.cc
  10691. * src/OptionHandlerImpl.h
  10692. * src/option_processing.cc
  10693. * src/BtSetup.cc
  10694. * src/PeerListenCommand.{h, cc}
  10695. * doc/aria2c.1.txt
  10696. * doc/aria2c.1
  10697. Implemented operator< for Exception class to provide easy way to print
  10698. exception stack trace.
  10699. * src/Exception.{h, cc}
  10700. * src/main.cc
  10701. * src/option_processing.cc
  10702. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10703. * src/version_usage.cc
  10704. (showVersion): Reworked.
  10705. (showUsage): Added examples.
  10706. Removed Hint for total length and file name.
  10707. * src/Metalink2RequestGroup.cc
  10708. * src/RequestGroup.{h, cc}
  10709. * src/HttpResponseCommand.cc
  10710. * src/FtpNegotiationCommand.cc
  10711. Now --follow-torrent and --follow-metalink option work properly.
  10712. * src/RequestGroup.cc
  10713. Updated man page
  10714. * doc/aria2c.1.txt
  10715. * doc/aria2c.1
  10716. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10717. Removed.
  10718. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10719. Use Segment::operator==()
  10720. * src/HttpConnection.cc
  10721. * src/Segment.h
  10722. Updated usage
  10723. * src/version_usage.cc
  10724. Added EINTR treatment.
  10725. * src/SocketCore.cc
  10726. * src/AbstractDiskWriter.cc
  10727. Rewritten.
  10728. * src/Util.cc (rangedFileCopy)
  10729. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10730. Fixed typo.
  10731. * src/version_usage.cc
  10732. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10733. Implemented. Now -c option works fine.
  10734. * src/DefaultPieceStorage.cc (markPiecesDone)
  10735. * test/DefaultPieceStorageTest.cc
  10736. Removed.
  10737. * src/SegmentMan.{h, cc}
  10738. (markAllPiecesDone)
  10739. (markPieceDone)
  10740. Synchronized po files with
  10741. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10742. * src/fr.po
  10743. * src/ru.po
  10744. * src/de.po
  10745. * src/ja.po
  10746. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10747. Added ifdef and some modifications to compile without BitTorrent,
  10748. Metalink, MessageDigest
  10749. support.
  10750. * src/PieceHashCheckIntegrityEntry.cc
  10751. * src/MetalinkEntry.h
  10752. * src/version_usage.cc
  10753. * src/main.cc
  10754. * src/DownloadEngine.{h, cc}
  10755. * src/Metalink2RequestGroup.cc
  10756. * src/Peer.cc
  10757. * src/RequestGroup.cc
  10758. * src/MetalinkHelper.cc
  10759. * test/DefaultPieceStorageTest.cc
  10760. * test/MetalinkPostDownloadHandlerTest.cc
  10761. * test/Metalink2RequestGroupTest.cc
  10762. Hide TOTAL SPD when all downloads complete.
  10763. * src/ConsoleStatCalc.cc
  10764. Log target system information.
  10765. * src/main.cc
  10766. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10767. Now --metalink-location accepts a comma-deliminated list of locations.
  10768. * src/MetalinkEntry.{h, cc}
  10769. * test/MetalinkEntryTest.cc
  10770. * src/version_usage.cc
  10771. * src/Metalink2RequestGroup.cc
  10772. * src/Xml2MetalinkProcessor.cc
  10773. * test/Xml2MetalinkProcessorTest.cc
  10774. * doc/aria2c.1.txt
  10775. * doc/aria2c.1
  10776. * src/Util.cc (toUpper)(toLower): Rewritten.
  10777. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10778. Added the ability to detect duplicate download entry which is about to
  10779. download the same file other RequestGroup is downloading.
  10780. * src/RequestGroup.cc
  10781. * src/HttpResponseCommand.cc
  10782. * src/FtpNegotiationCommand.cc
  10783. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10784. Recalculates download progress when loading a control file,
  10785. if the piece length of DownloadContext is different from the one saved
  10786. in the control file. Currently in-flight pieces are ignored.
  10787. * src/DefaultBtProgressInfoFile.cc
  10788. * test/DefaultBtProgressInfoFileTest.cc
  10789. * src/Util.{h, cc}
  10790. * test/UtilTest.cc
  10791. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10792. Do not rotate tiers in announce-list.
  10793. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10794. AnnounceList::allTiersFailed() used instead to detect whether all
  10795. tiers are tried and failed.
  10796. * test/DefaultBtAnnounceTest.cc
  10797. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10798. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10799. * test/AnnounceListTest.cc
  10800. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10801. clause. Catch RecoverableException instead of DlRetryEx instead.
  10802. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10803. Implemented checksum validation feature(1 checksum for each file)
  10804. The validation takes place after the download.
  10805. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10806. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10807. * src/CheckIntegrityCommand.cc: Changed log message.
  10808. * src/Metalink2RequestGroup.cc: Set checksum to
  10809. SingleFileDownloadContext.
  10810. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10811. PieceHashCheckIntegrity class.
  10812. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10813. PieceHashCheckIntegrity class.
  10814. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10815. * src/IteratableValidator.h: New class.
  10816. * src/message.h
  10817. * src/CheckIntegrityEntry.{h, cc}
  10818. * src/IteratableChunkChecksumValidator.{h, cc}
  10819. * src/SingleFileDownloadContext.h
  10820. * src/DownloadCommand.cc
  10821. --allow-overwrite=true is no longer needed to check file integrity
  10822. before download in BitTorrent download.
  10823. * src/RequestGroup.cc (getInitialCommand)
  10824. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10825. throws exception.
  10826. * src/RequestGroupMan.cc (getInitialCommands)
  10827. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10828. urlencode the given url inside Request::parseUrl(...)
  10829. * src/Request.{h, cc}
  10830. * src/Util.{h, cc}
  10831. * test/RequestTest.cc
  10832. Removed #!metalink3! notation support because it is deleted from
  10833. the metalink specification.
  10834. * src/Request.{h, cc}
  10835. * test/RequestTest.cc
  10836. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10837. Don't connect server before checking file integrity at startup, if
  10838. filesize and output file path are known.
  10839. * src/AbstractCommand.cc
  10840. * src/StreamFileAllocationEntry.cc
  10841. * src/Metalink2RequestGroup.cc
  10842. * src/RequestGroup.{h, cc}
  10843. * src/HttpResponseCommand.cc
  10844. * src/FtpNegotiationCommand.cc
  10845. Added DownloadFailureException. If it is thrown, RequestGroup should
  10846. halt.
  10847. * src/AbstractCommand.cc
  10848. * src/DownloadFailureException.h
  10849. * src/RequestGroup.cc
  10850. Catch RecoverableException, instead of DlAbortEx.
  10851. * src/RequestGroupMan.cc
  10852. * src/FillRequestGroupCommand.cc
  10853. * src/MetaFileUtil.cc
  10854. * src/IteratableChunkChecksumValidator.cc
  10855. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10856. getGID())
  10857. * src/CheckIntegrityCommand.cc
  10858. * src/message.h
  10859. Print gid instead of idx.
  10860. * src/RequestGroupMan.cc
  10861. Removed exception throwers declaration.
  10862. * src/DirectDiskAdaptor.{h, cc}
  10863. * src/SocketCore.{h, cc}
  10864. * src/MultiDiskAdaptor.{h, cc}
  10865. * src/HttpConnection.{h, cc}
  10866. * src/HttpResponse.{h, cc}
  10867. * src/DiskAdaptor.{h, cc}
  10868. * src/CopyDiskAdaptor.{h, cc}
  10869. * src/MultiDiskAdaptor.{h, cc}
  10870. * src/HttpHeaderProcessor.{h, cc}
  10871. * src/AbstractSingleDiskAdaptor.{h, cc}
  10872. * src/Util.{h, cc}
  10873. * test/UtilTest.cc
  10874. * src/DefaultDiskWriter.{h, cc}
  10875. * src/FtpConnection.{h, cc}
  10876. * src/AbstractDiskWriter.{h, cc}
  10877. Removed duplicate code.
  10878. * src/StreamCheckIntegrityEntry.cc
  10879. Removed unnecessary include.
  10880. * src/DiskWriter.h
  10881. Included Exception.h
  10882. * src/option_processing.cc
  10883. Included 2 files and added doc
  10884. * src/TrackerWatcherCommand.cc
  10885. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10886. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10887. Changed CheckIntegrityEntry interface so that it can define
  10888. the action when all the chunk checksums are valid.
  10889. * src/CheckIntegrityEntry.h
  10890. * src/StreamCheckIntegrityEntry.{h, cc}
  10891. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10892. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10893. to exit rather than doing seeding. So, it would be good to toggle this
  10894. behavior.
  10895. * src/CheckIntegrityCommand.cc
  10896. * src/AbstractCommand.cc
  10897. * src/RequestGroup.cc
  10898. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10899. Reflect the download length of in-flight pieces.
  10900. It makes the download length readout more precise.
  10901. * src/DefaultPieceStorage.{h, cc}
  10902. * test/DefaultPieceStorageTest.cc
  10903. * src/a2functional.h
  10904. * test/a2functionalTest.cc
  10905. Lower CPU load when --max-download-limit is used.
  10906. There is up and down in speed indicator when enabling
  10907. http-pipelining but a download goes well. I think the problem is that
  10908. because http-pipelining is enabled, DownloadCommand is created for
  10909. each segment and in its constructor, PeerStat::downloadStart() is
  10910. called. In PeerStat::downloadStart(), speed calculation object is
  10911. reseted, which makes download speed zero.
  10912. * src/DownloadCommand.cc
  10913. Rewritten using accumulate.
  10914. * src/RequestGroupMan.cc (calculateStat)
  10915. Code clearnup.
  10916. * src/FtpNegotiationCommand.cc
  10917. * src/HttpResponseCommand.cc
  10918. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10919. Fixed: Can not resume: aria2 reports download already finished.
  10920. * src/AbstractCommand.{h, cc}
  10921. * src/HttpResponseCommand.cc
  10922. * src/FtpNegotiateCommand.cc
  10923. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10924. Now a file is stored in the directory specified in .metalnk file
  10925. (file[@name]).
  10926. * src/Metalink2RequestGroup.cc
  10927. Create the directory structure when opening the file if it doesn't
  10928. exist.
  10929. * src/AbstractDiskWriter.cc
  10930. * src/Util.{h, cc}
  10931. * src/File.h
  10932. * test/UtilTest.cc
  10933. Removed file name comparison
  10934. * src/Metalink2RequestGroup.cc
  10935. * src/HttpResponseCommand.cc
  10936. Rewritten using Util::mkdirs()
  10937. * src/FileEntry.cc (setupDir)
  10938. * test/FileEntryTest.cc
  10939. Updated doc
  10940. * src/SingleFileDownloadContext.h
  10941. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. Now SleepCommand dispatches nextCommand when halt is requested.
  10943. It avoids a possible long wait after hitting CTRL-C.
  10944. * src/SleepCommand.{h, cc}
  10945. * src/RequestGroupAware.{h, cc}
  10946. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10947. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10948. to open listen port, then remove the port number from the tracker
  10949. request.
  10950. * src/DefaultBtAnnounce.cc
  10951. * test/DefaultBtAnnounceTest.cc
  10952. * test/MockPieceStorage.h
  10953. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10954. them more testable.
  10955. * src/DefaultBtAnnounce.{h, cc}
  10956. * src/DefaultBtContext.{h, cc}
  10957. * src/Util.{h, cc}
  10958. * test/DefaultBtAnnounceTest.cc
  10959. * test/DefaultBtContextTest.cc
  10960. * test/UtilTest.cc
  10961. Added 'B' to upload bytes readout.
  10962. * src/ConsoleStatCalc.cc
  10963. Now the listen port for BitTorrent download is opened when it is
  10964. needed.
  10965. * src/DownloadEngineFactory.cc
  10966. * src/BtSetup.{h, cc}
  10967. * src/PeerListenCommand.{h, cc}
  10968. Now an exception thrown while parsing tracker response is now logged.
  10969. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10970. called, which means no retry is made in this case, assuming a tracker
  10971. has a problem.
  10972. * src/TrackerWatcherCommand.cc
  10973. Fixed: downloading a file whose length is unkown fails.
  10974. * src/DownloadCommand.cc
  10975. Simplified prepareForNextSegment()
  10976. * src/DownloadCommand.cc
  10977. Updated
  10978. * po/POTFILES.in
  10979. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10980. Re-implemented a file listing for Metalink, which was dropped while
  10981. http/ftp/torrent integration was being implemented.
  10982. * src/MetalinkHelper.{h, cc}: New class.
  10983. * test/MetalinkHelperTest.cc
  10984. * src/main.cc
  10985. * src/Metalink2RequestGroup.cc
  10986. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10987. Added the ability to display the detailed torrent file information.
  10988. Now -S option gives not only a file listing, but also total download
  10989. length, info hash, announce URI, piece length, the number of pieces,
  10990. and mode(single or multi-torrent).
  10991. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10992. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10993. KiB)
  10994. * test/UtilTest.cc
  10995. * src/main.cc
  10996. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10997. Added ftp://USER:PASSWD@Servername automatic parsing.
  10998. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10999. _password. Recognize username and password in URI.
  11000. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11001. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11002. * src/RequestFactory.{h, cc}: Removed.
  11003. * src/AuthConfigFactory.{h, cc}: New class.
  11004. * src/FtpConnection.cc: Use AuthConfigFactory.
  11005. * src/HttpRequest.cc: Use AuthConfigFactory.
  11006. * test/HttpRequestTest.cc: Updated.
  11007. * test/RequestTest.cc: Updated.
  11008. * test/AuthConfigFactoryTest.cc: New class.
  11009. * test/RequestFactoryTest.cc: Removed.
  11010. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11011. Use RequestGroup::allDownloadFinished() to decide whether the control
  11012. file should be removed or saved.
  11013. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11014. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11015. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11016. Use File::renameTo()
  11017. * src/DefaultBtProgressInfoFile.cc
  11018. Added --no-file-allocation-limit command-line option.
  11019. * src/version_usage.cc
  11020. * src/option_processing.cc
  11021. * src/OptionHandlerFactory.cc
  11022. * src/RequestGroup.{h, cc}
  11023. * src/BtCheckIntegrityEntry.cc
  11024. * src/StreamCheckIntegrityEntry.cc
  11025. * src/prefs.h
  11026. * doc/aria2c.1.txt
  11027. * doc/aria2c.1
  11028. Now prealloc is the default value for --file-allocation option.
  11029. * src/version_usage.cc
  11030. * src/option_processing.cc
  11031. * doc/aria2c.1.txt
  11032. * doc/aria2c.1
  11033. Don't URL-encode user-agent.
  11034. * src/HttpRequest.cc
  11035. Updated translations
  11036. * po/LINGUAS: Added nl for Dutch translation.
  11037. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11038. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11039. * po/POTFILES.in: Updated.
  11040. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11041. Added the ability to recognize url-list in a torrent file.
  11042. The retrieved URLs are attached to the corresponding FileEntry.
  11043. * src/DefaultBtContext.{h, cc}
  11044. * src/FileEntry.{h, cc}
  11045. * test/DefaultBtContextTest.cc
  11046. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11047. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11048. after the download finishes.
  11049. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11050. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11051. the data smaller than block length.
  11052. A block length can be specified by constructor's argument.
  11053. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11054. Get a missing piece in the range of given FileEntry. This function is
  11055. not used in the program yet.
  11056. * src/Util.h: Added some macros.
  11057. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11058. Added HTTP/1.1 keep alive and pipelining support.
  11059. See --enable-http-keep-alive and --enable-http-pipelining option.
  11060. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11061. Segment.
  11062. * src/HttpDownloadCommand.{h, cc}
  11063. * src/OptionHandlerFactory.cc
  11064. * src/HttpConnection.{h, cc}
  11065. * src/version_usage.cc
  11066. * src/HttpInitiateConnectionCommand.cc
  11067. * src/FtpInitiateConnectionCommand.cc
  11068. * src/Segment.h
  11069. * src/HttpRequestCommand.{h, cc}
  11070. * src/option_processing.cc
  11071. * src/prefs.h
  11072. * src/HttpResponseCommand.cc
  11073. * src/SegmentMan.{h, cc}
  11074. * src/FtpNegotiateCommand.cc
  11075. * src/HttpProxyResponseCommand.cc
  11076. * src/Request.cc
  11077. * src/HttpRequest.cc
  11078. * src/DownloadCommand.cc
  11079. * test/HttpRequestTest.cc
  11080. * test/RequestTest.cc
  11081. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11082. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11083. finished.
  11084. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11085. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11086. catching it inside the method.
  11087. When no file entry is found in a metalink without querying user
  11088. preferences, throw the exception with the error message that suggests
  11089. metalink file is probably broken.
  11090. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11091. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11092. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11093. processed.
  11094. * src/RequestGroupMan.cc (removeStoppedGroup)
  11095. Added debug message.
  11096. * src/BtPostDownloadHandler.cc
  11097. * src/MetalinkPostDownloadHandler.cc
  11098. * src/PostDownloadHandler.{h, cc}
  11099. * src/RequestGroup.cc
  11100. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11101. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11102. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11103. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11104. stops and there are any unfinished or in-progress downloads.
  11105. Added the legend of "stat".
  11106. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11107. Throw exception when chunck checksum verification fails.
  11108. * src/DownloadCommand.cc (validatePieceHash): New function.
  11109. * src/PiecedSegment.{h, cc} (clear): New function.
  11110. * src/GrowSegment.{h, cc} (clear): New function.
  11111. * src/Segment.h (clear): New function.
  11112. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11113. * test/SegmentTest.cc
  11114. * test/GrowSegmentTest.cc
  11115. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11116. Do not send referer when redirected.
  11117. * src/Request.cc (redirectUrl)
  11118. * test/RequestTest.cc
  11119. * test/HttpRequestTest.cc
  11120. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11121. Implemented BitTorrent/http/ftp integrated download.
  11122. I've rewritten lots of files and now some headers have forward
  11123. class declarations to reduce compile time.
  11124. The implementation is extremely alpha stage, I recommend to use this
  11125. for testing purpose only.
  11126. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11127. Fixed the compilation error on 64bit platform.
  11128. * test/HttpHeaderProcessorTest.cc
  11129. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11130. Merged Ross's patch that fixes compilation problem in MinGW
  11131. * test/DefaultBtProgressInfoFileTest.cc
  11132. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11133. Updated fr.po by sebone
  11134. * po/fr.po
  11135. Updated man page.
  11136. * doc/aria2c.1.txt
  11137. * Release 0.11.3
  11138. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11139. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11140. failure in Metalink.
  11141. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11142. Automatically save *.aria2 control file of http/ftp download in every
  11143. 60 seconds.
  11144. * src/AutoSaveCommand.{h, cc}: New class.
  11145. * src/TimeBasedCommand.{h, cc}: New class.
  11146. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11147. Disable parameterized URI support by default. Added -P option to
  11148. enable the feature.
  11149. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11150. * src/OptionHandlerFactory.cc
  11151. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11152. Updated Japanese translation.
  11153. * po/ja.po
  11154. Updated man page.
  11155. * doc/aria2c.1.txt
  11156. * Release 0.11.3-rc
  11157. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11158. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11159. it is successful, then renamed to *.aria2.
  11160. This prevents *.aria2 file from being truncated or corrupted when
  11161. file system becomes out of space.
  11162. * src/DefaultBtProgressInfoFile.cc (save)
  11163. * src/SegmentMan.cc (save)
  11164. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11165. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11166. Reduced the fragmentation of bitfield in http/ftp download.
  11167. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11168. * test/BitfieldManTest.cc
  11169. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. Added the ability to disable segmented download in .metalink.
  11171. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11172. 'url' tag.
  11173. * src/MetalinkEntry.{h, cc}
  11174. * src/RequestResource.{h, cc}
  11175. * src/MetalinkRequestInfo.cc
  11176. * src/Xml2MetalinkProcessor.cc
  11177. * test/Xml2MetalinkProcessorTest.cc
  11178. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11179. Added parameterized URI support.
  11180. * src/main.cc: -Z option added.
  11181. * src/OptionHandlerFactory.cc
  11182. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11183. * src/PStringDatum.h: New class.
  11184. * src/PStringSegment.{h,cc}: New class.
  11185. * src/PStringNumLoop.h: New class.
  11186. * src/PStringSelect.h: New class.
  11187. * src/NumberDecorator.h: New class.
  11188. * src/FixedWidthNumberDecorator.h: New class.
  11189. * src/AlphaNumberDecorator.h: New class.
  11190. * src/PStringVisitor.h: New class.
  11191. * src/PStringBuildVisitor.{h,cc}: New class.
  11192. * src/ParameterizedStringParser.{h,cc}: New class.
  11193. * src/Util.{h,cc}
  11194. (isNumber): New function.
  11195. (isLowercase): New function.
  11196. (isUppercase): New function.
  11197. (alphaToNum): New function.
  11198. * test/ParameterizedStringParserTest.cc: New class.
  11199. * test/AlphaNumberDecoratorTest.cc: New class.
  11200. * test/PStringBuildVisitorTest.cc: New class.
  11201. * test/UtilTest.cc
  11202. (testIsNumber): New function.
  11203. (testIsLowercase): New function.
  11204. (testIsUppercase): New function.
  11205. (testAlphaToNum): New function.
  11206. Added '\n' after the error message
  11207. * src/RequestInfo.h (printDownloadAbortMessage)
  11208. Added auto file renaming feature in http(s)/ftp download.
  11209. * src/main.cc: Added --auto-file-renaming command-line option.
  11210. * src/OptionHandlerFactory.cc
  11211. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11212. * src/RequestGroup.{h, cc}
  11213. (shouldCancelDownloadForSafety): Rewritten
  11214. (tryAutoFileRenaming): New function.
  11215. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11216. * src/HttpResponseCommand.cc
  11217. (executeInternal): Removed the call to RequestGroupMan::
  11218. isSameFileBeingDownloaded()
  11219. * src/FtpNegotiateCommand.cc
  11220. (recvSize): Removed the call to RequestGroupMan::
  11221. isSameFileBeingDownloaded()
  11222. * test/RequestGroupTest.cc: New class.
  11223. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11224. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11225. IO.
  11226. * src/DefaultBtProgressInfoFile.cc
  11227. * src/MetaFileUtil.cc
  11228. * src/SimpleLogger.cc
  11229. * src/SegmentMan.cc
  11230. * src/Util.cc
  11231. * src/Platform.cc
  11232. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11233. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11234. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11235. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11236. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11237. Fixed the bug that prevents file allocation is not done when
  11238. dowloading multi-torrent file.
  11239. * src/AbstractDiskWriter.cc (openFile)
  11240. Increase the maximum number of -j option from 15 to 45.
  11241. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11242. Added fr.po, thanks to Charles Landemaine.
  11243. * po/fr.po
  11244. * po/LINGUAS
  11245. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11246. gcc 3.4.4 support:
  11247. * src/DefaultBtContext.cc: int32_t -> int
  11248. * src/main.cc: int -> int32_t, int32_t -> int
  11249. * src/messageDigest.h: uint32_t -> unsigned int
  11250. * src/NameResolver.h: int32_t -> int
  11251. * src/PeerConnection.cc: int -> int32_t
  11252. * src/SpeedCalc.cc: int32_t -> int
  11253. * src/TrackerUpdateCommand.h: int -> int32_t
  11254. * src/Util.cc: int32_t -> int
  11255. * src/Util.h: int32_t -> int
  11256. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11257. * test/AnnounceListTest.cc: int -> int32_t
  11258. * test/ChunkedEncodingTest.cc: int -> int32_t
  11259. * test/DataTest.cc: int -> int32_t
  11260. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11261. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11262. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11263. * test/FeatureConfigTest.cc: int -> int32_t
  11264. * test/MetalinkEntryTest.cc: int -> int32_t
  11265. * test/MockBtRequestFactory.h: int -> int32_t
  11266. * test/MockPieceStorage.h: int -> int32_t
  11267. * test/OptionTest.cc: int -> int32_t
  11268. * test/RequestTest.cc: int -> int32_t
  11269. * test/SegmentManTest.cc: int -> int32_t
  11270. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11271. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11272. Move sleep functions to Util class:
  11273. * src/Util.cc
  11274. (sleep): New function.
  11275. (usleep): New function.
  11276. * src/DownloadCommand.cc: sleep -> Util::sleep
  11277. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11278. MinGW build enhancements. The following files are added:
  11279. * src/timegm.{c,h}
  11280. Changes to support the above new files:
  11281. * configure.ac
  11282. * src/Makefile.am
  11283. * src/a2time.h
  11284. * src/Util.cc:
  11285. * src/strptime.c: Added support for %Z option.
  11286. Fixed MinGW non-blocking bug.
  11287. * src/SocketCore.cc
  11288. * src/HttpRequestCommand.cc
  11289. Miscellenous build fixes/enhancements.
  11290. * configure.ac: Added summary report.
  11291. * src/Platform.h: Tweaked #include's.
  11292. * src/a2netcompat.h: Tweaked #include's.
  11293. * src/strptime.h: Tweaked #include's.
  11294. * src/gai_strerror.c: Tweaked #include's.
  11295. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11296. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11297. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11298. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11299. Increased the initial connection size in BitTorrent download to 40.
  11300. * src/BtRuntime.h
  11301. Added the usage message of --peer-id-prefix option.
  11302. * src/main.cc
  11303. * Release 0.11.2
  11304. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11305. MessageDigestHelper is introduced in order to simplify the use
  11306. of message digest. Removed repeated code.
  11307. The message digest algorithm is now specified by string, like "sha1",
  11308. "md5".
  11309. * src/messageDigest.{h, cc}
  11310. * src/MessageDigestHelper.{h, cc}: New class.
  11311. * src/DefaultPieceStorage.cc
  11312. * src/DefaultBtContext.{h, cc}
  11313. (computeFastSet): New function.
  11314. (setInfoHash): Added for unit testing.
  11315. (setNumPieces): Added for unit testing.
  11316. * src/DefaultBtInteractive.cc
  11317. * src/BtPieceMessage.cc
  11318. * src/Peer.cc
  11319. * src/Checksum.h
  11320. * src/message.h
  11321. * src/IteratableChecksumValidator.h
  11322. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11323. inside it.
  11324. * src/SegmentMan.{h, cc}
  11325. (checkIntegrity): Removed.
  11326. * src/IteratableChunkChecksumValidator.{h, cc}
  11327. * src/Util.h
  11328. (sha1Sum): Removed.
  11329. (simpleMessageDigest): Removed.
  11330. (fileChecksum): Removed.
  11331. (computeFastSet): Removed.
  11332. * src/ShaVisitor.cc
  11333. * src/ChunkChecksum.h
  11334. * src/DownloadCommand.cc
  11335. Removed messageDigest virtual functions.
  11336. * src/MultiDiskAdaptor.{h, cc}
  11337. * src/DiskAdaptor.h
  11338. * src/ByteArrayDiskWriter.h
  11339. * src/DiskWriter.h
  11340. * src/DiskAdaptorWriter.h
  11341. * src/AbstractSingleDiskAdaptor.{h, cc}
  11342. * src/AbstractDiskWriter.{h, cc}
  11343. Fixed comilation error when message digest is disabled.
  11344. * src/MetalinkEntry.{h, cc}
  11345. * src/MetalinkRequestInfo.cc
  11346. Removed srandom and random.
  11347. * src/SimpleRandomizer.h
  11348. Added size() virtual function to DiskAdaptor
  11349. * src/MultiDiskAdaptor.h
  11350. Fixed the bug that causes that files are not opened correctly in
  11351. multi-file torrent.
  11352. * src/TorrentRequestInfo.cc
  11353. * src/MultiDiskAdaptor.cc
  11354. Added SHA256 support
  11355. * src/messageDigest.cc
  11356. * src/Xml2MetalinkProcessor.cc
  11357. Show supported message digest algorithms
  11358. * src/main.cc
  11359. Updated contact info.
  11360. * src/main.cc
  11361. Applied Ross's patch
  11362. * src/a2netcompat.h
  11363. * src/main.cc
  11364. Fixed the bug that prevents a remote metalink from not being processed
  11365. even if '-o foo.metalink' is specified.
  11366. * src/MetalinkRequestInfo.cc
  11367. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11368. Merged Dan's patch:
  11369. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11370. Use va_copy to avoid core dump on amd64:
  11371. * src/SimpleLogger.cc
  11372. Updated contact info.
  11373. * src/main.cc
  11374. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11375. digest is not available.
  11376. * src/MetalinkEntry.h
  11377. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11378. Make a2netcompat.h include a2io.h to fix compilation error:
  11379. * src/a2netcompat.h
  11380. * src/SocketCore.cc: Removed include of a2io.h
  11381. * src/Util.cc: Removed include of a2io.h
  11382. Gather time related functions to a2time.h:
  11383. * src/a2time.h: New file.
  11384. * src/DefaultPeerStorage.cc
  11385. * src/SimpleLogger.cc
  11386. * src/Util.{h, cc}
  11387. * src/SimpleRandomizer.h
  11388. * src/TimeA2.{h,cc}
  11389. * src/DownloadCommand.cc
  11390. * src/main.cc
  11391. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11392. a2netcompat.h:
  11393. * src/NameResolver.cc
  11394. Fixed compilation error without openssl:
  11395. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11396. Added default block to suppress compiler warnings:
  11397. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11398. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11399. MinGW build enhancements. The following files are added:
  11400. * src/gai_strerror.{c,h}
  11401. * src/gettimeofday.{c,h}
  11402. Changes to support the above new files:
  11403. * configure.ac
  11404. * src/Makefile.am
  11405. * src/a2netcompat.h
  11406. * src/TimeA2.cc
  11407. * src/DefaultPeerStorage.cc
  11408. * src/NameResolver.cc: removed mingw_strerror() function.
  11409. * src/SocketCore.cc: removed mingw_strerror() function.
  11410. Miscellaneous MinGW build fixes.
  11411. * src/a2io.h: Use _lseeki64() instead of lseek()
  11412. * src/common.h
  11413. * src/DefaultFileAllocator.cc
  11414. * src/GlowFileAllocator.cc
  11415. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11416. * src/NameResolver.cc
  11417. (callback): Changed int32_t to int.
  11418. (resolve): Changed int32_t to int.
  11419. * src/Platform.cc
  11420. * src/Platform.h
  11421. * test/MultiDiskWriterTest.cc
  11422. * test/PeerMessageUtilTest.cc
  11423. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11424. Other enhancements and fixes.
  11425. * src/HttpRequestCommand.cc
  11426. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11427. * src/SocketCore.cc:
  11428. (error): New function to abstract errno/WSAGetLastError().
  11429. (errorMsg): New function to abstract errno/WSAGetLastError().
  11430. (initiateSecureConnection): Added more detailed error reporting.
  11431. * src/SocketCore.h: Added private variable blocking, to allow
  11432. proper handling of OpenSSL psuedo-errors.
  11433. * src/message.h
  11434. (EX_SSL_INIT_FAILURE)
  11435. (EX_SSL_IO_ERROR)
  11436. (EX_SSL_PROTOCOL_ERROR)
  11437. (EX_SSL_UNKNOWN_ERROR)
  11438. (EX_SSL_CONNECT_ERROR)
  11439. (EX_SOCKET_BLOCKING)
  11440. (EX_SOCKET_NONBLOCKING)
  11441. (EX_SOCKET_UNKNOWN_ERROR)
  11442. * src/Util.cc
  11443. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11444. reserved name.
  11445. (httpGMT): Fixed typo.
  11446. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11447. Merged Ross's win32 patch(manually)
  11448. In the course of merging, following files are added.
  11449. * src/strptime.{h,c}
  11450. * src/libgen.{h,c}
  11451. * src/inet_aton.{h,c}
  11452. * src/Platform.{h,cc}
  11453. * src/localtime_r.{h,c}
  11454. * src/getaddrinfo.{h,c}
  11455. I've gethered network related things, and put them to following file:
  11456. * src/a2netcompat.h
  11457. Also io related things are put to following file:
  11458. * src/a2io.h
  11459. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11460. * src/message.h
  11461. (MSG_ALLOCATION_COMPLETED)
  11462. (EX_TOO_LARGE_FILE)
  11463. (EX_SIZE_MISMATCH)
  11464. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11465. (EX_INVALID_CHUNK_CHECKSUM)
  11466. (EX_INVALID_RANGE_HEADER)
  11467. * src/FileAllocationCommand.cc
  11468. * src/HttpResponse.cc
  11469. * src/RequestGroup.cc
  11470. * src/MultiDiskAdaptor.cc
  11471. * src/OptionHandlerImpl.h
  11472. * src/HttpResponseCommand.cc
  11473. * src/FtpNegotiateCommand.cc
  11474. * src/IteratableChecksumValidator.cc
  11475. * src/SegmentMan.cc
  11476. * src/ChunkChecksumValidator.cc
  11477. Added Randomizer::getRandomNumber(long int)
  11478. * src/Randomizer.h (getRandomNumber)
  11479. * src/SimpleRandomizer.h (getRandomNumber)
  11480. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11481. * src/Util.cc (randomAlpha): Use this new function.
  11482. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11483. Converted int's to in32_t. long long int's are also converted to
  11484. int64_t
  11485. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11486. Fixed the bug that prevents cookies from being sent to the server
  11487. if the domain of cookie is FQDN and starts with ".".
  11488. * src/Cookie.cc (match)
  11489. To add the ability to change peer id.
  11490. * src/DefaultBtContext.h
  11491. (_peerIdPrefix): New variable
  11492. (setPeerIdPrefix): New function.
  11493. * src/torrentRequestInfo.cc
  11494. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11495. DefaultBtContext.
  11496. * src/main.cc (main): Added peer-id-prefix command-line option.
  11497. The usage message is not added yet.
  11498. * src/DefaultBtContext.cc
  11499. (generatePeerId): Use _peerIdPrefix.
  11500. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11501. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11502. Fixed the bug that prevents filename in content-disposition from
  11503. being retrieved when filename is not quoted.
  11504. * src/Util.cc (getContentDispositionFilename)
  11505. Fixed the bug that causes infinate loop and memory leak when file open
  11506. operation failed.
  11507. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11508. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11509. Fixed the bug that causes segfault when all URIs specified are
  11510. unsupported.
  11511. * src/RequestGroupMan.cc (getInitialCommands)
  11512. Check if RequestGroup::createNextCommand() returns empty list of
  11513. commands.
  11514. * src/RequestGroup.cc (createNextCommand)
  11515. Change log level from info to error so that users can notice that
  11516. an error occurred.
  11517. Fixed the bug that causes segfault when a zero-sized file is
  11518. downloaded.
  11519. * src/BitfieldMan.cc (isAllBitSet)
  11520. Return true if bitfieldLength is 0.
  11521. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11522. * src/main.cc
  11523. (showUsage): Added 3 usage examples for metalink download.
  11524. Replace MetalinkChunkChecksum with ChunkChecksum.
  11525. * src/MetalinkChunkChecksum.h: Removed.
  11526. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11527. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11528. * src/Xml2MetalinkProcessor.cc
  11529. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11530. * src/MetalinkRequestInfo.cc (execute)
  11531. * Release 0.11.1
  11532. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11533. Reads URIs from stdin when "-i -" is specified.
  11534. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11535. * src/UriListParser.h, src/UriListParser.cc: New class.
  11536. * src/StreamUriListParser.h: New class.
  11537. * src/FileUriListParser.h: New class.
  11538. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11539. instead of UriFileListParser.
  11540. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11541. Made console readout more readable.
  11542. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11543. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11544. Fix the bug that causes -s option not to work.
  11545. * src/main.cc (main)
  11546. * src/a2algo.h: New file.
  11547. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11548. Create directory structure specified in metalink file.
  11549. * src/RequestGroup.h, src/RequestGroup.cc
  11550. (initAndOpenFile): Create a directory to store files if it does not
  11551. exist.
  11552. (getDir): New function.
  11553. Added ETA and download speed for an individual file to readout.
  11554. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11555. * src/RequestGroup.h
  11556. (calculateDownloadSpeed): New function.
  11557. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11558. Made -S option work with metalink file and provided selective download
  11559. to metalink.
  11560. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11561. (filename): Removed.
  11562. (file): New variable.
  11563. (size): Removed.
  11564. (operator=): Updated.
  11565. (getPath): New function.
  11566. (getLength): New function.
  11567. (toFileEntry): New function.
  11568. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11569. (execute): Use toStream.
  11570. (showFileEntry): Removed.
  11571. * src/MetalinkRequestInfo.h
  11572. (targetFiles): New variable.
  11573. (setTargetFiles): New variable.
  11574. * src/MetalinkRequestInfo.cc
  11575. (execute): Added the ability to print file information included in
  11576. a metalink file.
  11577. Added selective download mode to metalink.
  11578. * src/main.cc
  11579. (showUsage): Updated to denote that -S and --select-file options are
  11580. applicable to metalink.
  11581. * src/FileEntry.h
  11582. (operator=): New function.
  11583. (getBasename): New function.
  11584. (getDirname): New function.
  11585. * src/Util.h, src/Util.cc
  11586. (toStream): New function.
  11587. * src/Xml2MetalinkProcessor.cc: Updated.
  11588. Made aria2 work with metalink with directory structure.
  11589. * src/File.h, src/File.cc
  11590. (getBasename): New function.
  11591. (getDirname): New function.
  11592. * src/RequestGroup.h, src/RequestGroup.cc
  11593. (_topDir): New variable.
  11594. (setTopDir): New function.
  11595. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11596. Rewrote HTTP header parsing with stringstream.
  11597. * src/HttpConnection.h, src/HttpConnection.cc
  11598. (HttpRequestEntry): New class.
  11599. (headerBuf): Removed.
  11600. (headerBufLength): Removed.
  11601. (outstandingHttpRequests): Now its element type is
  11602. HttpRequestEntryHandle.
  11603. (findEndOfHeader): Removed.
  11604. (receiveResponse): Rewritten.
  11605. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11606. Updated doc for -j option to notice that it should be used with -i
  11607. option.
  11608. * src/main.cc (showUsage)
  11609. Removed unused classes.
  11610. * src/RequestInfo.h
  11611. (FileInfo): Removed.
  11612. (checksum): Removed.
  11613. (fileInfo): Removed.
  11614. (setChecksum): Removed.
  11615. (getChecksum): Removed.
  11616. (getFileInfo): Removed.
  11617. Use ISO units.
  11618. * src/ConsoleDownloadEngine.cc
  11619. * src/TorrentConsoleDownloadEngine.cc
  11620. * src/Util.cc (abbrevSize)
  11621. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11622. Added the default listening ports to the help message.
  11623. * src/main.cc (showUsage)
  11624. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11625. Reduce the number of calls to gettimeofday to lower CPU load.
  11626. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11627. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11628. * src/Peer.h (calculateUploadSpeed): New function.
  11629. (calculateDownloadSpeed): New function.
  11630. * src/DefaultPeerStorage.cc
  11631. (CalculateStat): Added _now variable.
  11632. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11633. and Peer::calculateUploadSpeed(const struct timeval&)
  11634. Drop connection if no request or piece message is exchanged in
  11635. a certain interval.
  11636. * src/DefaultBtInteractive.h
  11637. (btRuntime): New variable.
  11638. (inactiveCheckPoint): New variable.
  11639. (checkActiveInteraction): New function.
  11640. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11641. request or piece message is received.
  11642. (checkActiveInteraction): New function.
  11643. (doInteractionProcessing): Call checkActiveInteraction.
  11644. Fixed the bug that causes remote Metalink and Torrent files are not
  11645. processed.
  11646. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11647. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11648. Changed format of log file.
  11649. * src/SimpleLogger.cc
  11650. * Release 0.11.0
  11651. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11652. * src/AbstractCommand.cc
  11653. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11654. MSG_MAX_TRY from error to info.
  11655. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11656. * src/message.h
  11657. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11658. (MSG_DOWNLOAD_ABORTED): Added %s.
  11659. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11660. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11661. * src/PeerAbstractCommand.cc
  11662. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11663. * src/Request.h
  11664. (cookieBox): Made ShardHandle.
  11665. * src/RequestGroup.h, src/RequestGroup.cc
  11666. (createNextCommandWithAdj): New function.
  11667. * src/FileAllocationCommand.cc
  11668. (executeInternal): Use createNextCommandWithAdj().
  11669. * src/CheckIntegrityCommand.cc
  11670. (executeInternal): Use createNextCommandWithAdj().
  11671. Added --load-cookies command-option.
  11672. * src/OptionHandlerFactory.cc
  11673. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11674. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11675. Now aria2 can handle cookie's expiration date.
  11676. * src/Cookie.h (expires): Changed its type to time_t.
  11677. * src/main.cc: Added --load-cookies command-line option.
  11678. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11679. * src/Util.h, src/Util.cc (httpGMT): New function.
  11680. * src/Request.cc (Request): Initialize cookieBox using
  11681. CookieBoxFactory.
  11682. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11683. * src/CookieParser.h, src/CookieParser.cc: New class.
  11684. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11685. * src/HttpResponseCommand.cc
  11686. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11687. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11688. download.
  11689. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11690. Added -j command-line option.
  11691. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11692. * src/main.cc
  11693. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11694. Rewritten using stringstream.
  11695. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11696. Rewritten using stringstream.
  11697. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11698. Make download size shown in MB, KB.
  11699. * src/ConsoleDownloadEngine.h (sendStatistics)
  11700. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11701. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11702. Accept incoming connections if download rate is low.
  11703. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11704. (_lowestSpeedLimit): New variable.
  11705. (setLowestSpeedLimit): New function.
  11706. (execute): Accept incoming connections if download rate is low.
  11707. MAX_PEERS is ignored in this case.
  11708. Disable PREF_OUT in multiple concurrent download:
  11709. * src/RequestGroup.h, src/RequestGroup.cc
  11710. (setUserDefinedFilename): New function.
  11711. * src/DownloadEngineFactory.cc
  11712. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11713. concurrent download.
  11714. * src/DefaultSegmentManFactory.cc
  11715. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11716. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11717. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11718. Added its overloaded method.
  11719. * src/RequestGroup.h
  11720. (_numConcurrentCommand): New variable.
  11721. (setNumConcurrentCommand): New function.
  11722. * src/RequestGroup.cc
  11723. Abort download if same file is being downloaded concurrently.
  11724. * src/RequestGroup.h, src/RequestGroupMan.cc
  11725. (isSameFileBeingDownloaded): New function.
  11726. * src/HttpResponseCommand.cc (executeInternal)
  11727. * src/FtpNegotiateCommand.cc (recvSize)
  11728. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11729. * main.cc: Added help message for -i option.
  11730. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11731. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11732. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11733. * src/MetalinkEntry.h
  11734. (checksum): Changed to ChecksumHandle
  11735. * src/MetalinkRequestInfo.cc
  11736. (checksum): Changed to ChecksumHandle
  11737. * src/File.cc
  11738. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11739. * src/common.h
  11740. (DIR_OPEN_MODE): New definition
  11741. * src/RequestGroup.cc
  11742. (prepareForNextAction): Added an argument.
  11743. * src/message.h
  11744. (MSG_GOOD_CHECKSUM): New definition
  11745. (MSG_BAD_CHECKSUM): New definition
  11746. * src/HttpResponseCommand.cc
  11747. (handleDefaultEncoding): Continue download sequence in new
  11748. non-segmented download.
  11749. * src/FileAllocationEntry.h
  11750. (_nextDownloadCommand): New variable.
  11751. * src/DownloadCommand.cc
  11752. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11753. available.
  11754. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11755. * src/IteratableChecksumValidator.h,
  11756. src/IteratableChecksumValidator.cc: New class.
  11757. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11758. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11759. Change file mode to 666:
  11760. * src/common.h (OPEN_MODE): New definition.
  11761. * src/File.cc
  11762. * src/Util.cc
  11763. * src/Directry.cc
  11764. * src/AbstractDiskWriter.cc
  11765. Change the level of log message "download aborted" to debug:
  11766. * src/PeerAbstractCommand.cc (execute)
  11767. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11768. * src/TrackerWatcherCommand.cc
  11769. (createCommand): Sleep some seconds after request failed.
  11770. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11771. then abort tracker request.
  11772. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11773. * Added the simultaneous download feature.
  11774. * src/main.cc: Print "Exception caught: " when exception is caught.
  11775. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11776. * src/ActivePeerConnectionCommand.cc
  11777. * src/PeerInteractionCommand.cc
  11778. * src/BtRuntime.h
  11779. (cuidCounter): Removed.
  11780. (getNewCuid): Removed.
  11781. * src/DownloadEngineFactory.cc
  11782. * src/PeerListenCommand.cc
  11783. * src/TrackerUpdateCommand.cc
  11784. * src/PeerInitiateConnectionCommand.cc
  11785. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11786. * src/PeerAbstractCommand.cc
  11787. (onAbort): Call PeerStorage::returnPeer()
  11788. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11789. (incomingPeers): New variable.
  11790. (addIncomingPeer): New function.
  11791. (returnPeer): New function.
  11792. (onErasingPeer): New function.
  11793. (addPeer): push_back -> push_front
  11794. (getActivePeers): Rewritten.
  11795. (calculateStat): Rewritten.
  11796. * src/PeerStorage.h
  11797. (TransferStat::copy): New function.
  11798. (TransferStat::TransferStat): New function.
  11799. (TransferStat::operator=): New function.
  11800. (addIncomingPeer): New function.
  11801. (returnPeer): New function.
  11802. * src/PeerListenCommand.cc
  11803. (execute): Use PeerStorage::addIncomingPeer() instead of
  11804. Peer::addPeer().
  11805. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11806. Connect to a peer actively when download speed is lower than specified
  11807. speed in torrent download:
  11808. * src/ActivePeerConnectionCommand.h: New class.
  11809. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11810. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11811. * src/main.cc: Fixed the bug that prevents download if .netrc
  11812. doesn't exist.
  11813. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11814. To cache resolved hostname:
  11815. * src/AbstractCommand.h, src/AbstractCommand.cc
  11816. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11817. Added dns cache.
  11818. * src/FtpInitiateConnectionCommand.cc
  11819. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11820. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11821. NameResolver working without ares.
  11822. * src/TorrentRequestInfo.cc
  11823. (execute): Don't cache dns in torrent download.
  11824. * src/HttpInitiateConnectionCommand.cc
  11825. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11826. * src/DNSCache.h: New class.
  11827. * src/UrlRequestInfo.cc
  11828. (execute): Use dns cache.
  11829. In http request, suppress port number in http request header if port
  11830. is 80 or 443:
  11831. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11832. request header if port is 80 or 443.
  11833. (createProxyRequest): Allways send port number.
  11834. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11835. To add the command-line option which disables netrc support:
  11836. * src/OptionHandlerFactory.cc
  11837. (createOptionHandlers): Added PREF_NO_NETRC.
  11838. * src/main.cc: Added -n option.
  11839. * src/prefs.h (PREF_NO_NETRC): New definition.
  11840. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11841. V_TRUE.
  11842. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11843. is V_FALSE. This may get configurable in the future release.
  11844. To clear peer's error status by time basis:
  11845. * src/PeerAbstractCommand.cc
  11846. (onAbort): Call Peer::startBadCondition().
  11847. * src/Peer.h, src/Peer.cc
  11848. (error): Removed.
  11849. (_badConditionStartTime): New variable.
  11850. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11851. (startBadCondition): New function.
  11852. (isGood): New function.
  11853. * src/DefaultPeerStorage.cc
  11854. (addPeer): Use Peer::isGood().
  11855. (FindFinePeer): Use Peer::isGood().
  11856. Always include port number in http request header:
  11857. * src/HttpRequest.cc (getHostText): Always include port number in
  11858. http request header.
  11859. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11860. To the ability to read options from a config file:
  11861. * src/main.cc: Command-line parameter validation is delegated to
  11862. OptionHandler class.
  11863. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11864. * src/Option.h, src/Option.cc (clear): New function.
  11865. * src/OptionParser.h, src/OptionParser.cc: New class.
  11866. * src/OptionHandler.h: New class.
  11867. * src/NameMatchOptionHandler.h: New class.
  11868. * src/OptionHandlerImpl.h: New classes.
  11869. * src/prefs.h: '_' -> '-'
  11870. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11871. (FTP_PASV): New definition.
  11872. * src/Util.h, src/Util.cc (getRealSize): New function.
  11873. To disable netrc support if .netrc file does not have correct
  11874. permissions:
  11875. * src/File.h, src/File.cc (mode): New function.
  11876. To prevent confidential information to be logged:
  11877. * src/HttpConnection.h, src/HttpConnection.cc
  11878. (eraseConfidentialInfo): New function.
  11879. (sendRequest): Call eraseConfidentialInfo().
  11880. (sendProxyRequest): Call eraseConfidentialInfo().
  11881. * src/main.cc: Validate permissions of .netrc file.
  11882. To add --user-agent command-line option:
  11883. * src/main.cc: Added new command line option: --user-agent
  11884. * src/prefs.h (PREF_USER_AGENT): New definition.
  11885. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11886. parameter to HttpRequest object.
  11887. * src/AbstractProxyRequestCommand.cc
  11888. (executeInternal): Set user-agent option parameter to HttpRequest
  11889. object.
  11890. Marged the patches from Dan Fandrich.
  11891. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11892. Use filename and size from Metalink file instead of sending HEAD
  11893. request:
  11894. * src/UrlRequestInfo.h
  11895. (_filename): New variable.
  11896. (_totalLength): New variable.
  11897. (setTotalLength): New variable.
  11898. (setFilename): New variable.
  11899. * src/MetalinkRequestInfo.cc
  11900. (execute): Set filename and size to UrlRequestInfo
  11901. * src/UrlRequestInfo.cc
  11902. (execute): Use filename and size from Metalink instead of seding
  11903. HEAD request to servers.
  11904. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11905. To add the ability to resume downloading a partially downloaded file
  11906. which is downloaded from the beginning:
  11907. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11908. takes this role.
  11909. * src/main.cc: Added -c option.
  11910. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11911. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11912. * src/prefs.h (PREF_CONTINUE): New definition.
  11913. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11914. * src/DefaultDiskWriter.cc
  11915. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11916. * src/AbstractDiskWriter.h
  11917. (glowFileAllocator): New variable.
  11918. * src/AbstractDiskWriter.cc
  11919. (openExistingFile): Now preallocate file space from the end of the
  11920. existing file if totalLength argument is specified and grater than 0.
  11921. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11922. to download exists in local, continue the download of the file.
  11923. --allow-overwrite=true is assumed in this context.
  11924. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11925. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11926. Throw exception if --check-integrity=true is specified but chunk
  11927. checksums are not provided:
  11928. * src/UrlRequestInfo.cc
  11929. Do not print URLs to stdout:
  11930. * src/UrlRequestInfo.cc
  11931. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11932. * src/Request.h: Use AuthResolver to get authentication information.
  11933. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11934. set to RequestFactory object.
  11935. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11936. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11937. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11938. create Request object.
  11939. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11940. To integrate Netrc into exsiting classes:
  11941. * src/Request.h
  11942. (_userDefinedAuthConfig): New variable.
  11943. (findNetrcAuthenticator): New function.
  11944. (segment): Removed.
  11945. (setUserDefinedAuthConfig): New function.
  11946. (resolveHttpAuthConfigItem): New function.
  11947. (resolveFtpAuthConfigItem): New function.
  11948. (resolveHttpProxyAuthConfigItem): New function.
  11949. * src/HttpRequest.h
  11950. (authConfig): Removed.
  11951. (proxyAuthConfig): Removed.
  11952. (setAuthConfig): Removed.
  11953. (setProxyAuthConfig): Removed.
  11954. * src/UrlRequest.h
  11955. (getHeadResult): Added a parameter: authConfigHandle
  11956. * src/common.h
  11957. (SingletonHolder.h): New include.
  11958. * src/main.cc
  11959. (Netrc.h): New include.
  11960. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11961. Added initial value of PREF_NETRC_PATH.
  11962. Added the initialization of netrc.
  11963. * src/AuthConfig.h: New class.
  11964. * src/prefs.h
  11965. (PREF_NETRC_PATH): New definition.
  11966. * src/HttpAuthConfig.h: Removed.
  11967. * src/Netrc.cc
  11968. (getRequiredNextToken): New function.
  11969. (skipMacdef): New function.
  11970. (parse): Rewritten.
  11971. * src/Netrc.h
  11972. (getRequiredNextToken): New function.
  11973. (skipMacdef): New function.
  11974. * src/Util.h, src/Util.cc
  11975. (getHomeDir): New function.
  11976. * src/TrackerWatcherComand.cc
  11977. (createRequestCommand): Use AuthConfig.
  11978. * src/FtpConnection.cc
  11979. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11980. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11981. * src/Request.cc
  11982. (findNetrcAuthenticator): New function.
  11983. (resolveHttpAuthConfigItem): New function.
  11984. (resolveFtpAuthConfigItem): New function.
  11985. (resolveHttpProxyAuthConfigItem): New function.
  11986. * src/UrlRequestInfo.cc: Use AuthConfig.
  11987. * src/HttpRequest.cc
  11988. (createRequest): Use authConfig.
  11989. (getProxyAuthString): Use authConfig.
  11990. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11991. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11992. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11993. To reduce overhead to find commands whose socket is either
  11994. readable or writable in the download engine loop:
  11995. * src/Command.h, src/Command.cc
  11996. (STATUS): New enum.
  11997. (status): New variable.
  11998. (statusMatch): New function.
  11999. (setStatusActive): New function.
  12000. (setStatusInactive): New function.
  12001. * src/DownloadEngine.h, src/DownloadEngine.cc
  12002. (executeCommand): New function.
  12003. (run): Simplified.
  12004. (waitData): Call Command::setStatusActive() when command's socket is
  12005. readable or writable.
  12006. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12007. To handle Segment as SegmentHandle:
  12008. * src/AbstractCommand.cc (execute): Rewritten.
  12009. * src/SegmentMan.h: Segment -> SegmentHandle
  12010. Introducded HttpResponse class, HttpRequest class to improve code
  12011. extensiveness and make it clear:
  12012. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12013. HttpResponse class.
  12014. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12015. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12016. * src/HttpConnection.cc: Contruction of http request were moved to
  12017. HttpRequest class.
  12018. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12019. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12020. * src/HttpAuthConfig.h: New class.
  12021. * src/Range.h: New class.
  12022. To make FtpTunnel{Request, Response}Command and
  12023. HttpProxy{Request, Response}Command derived from
  12024. AbstractProxy{Request, Response}Command:
  12025. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12026. Derived from AbstractProxyRequestCommand class.
  12027. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12028. Derived from AbstractProxyResponseCommand class.
  12029. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12030. Derived from AbstractProxyRequestCommand class.
  12031. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12032. Derived from AbstractProxyResponseCommand class.
  12033. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12034. : New class.
  12035. * src/AbstractProxyResponseCommand.h,
  12036. src/AbstractProxyResponseCommand.cc: New class.
  12037. To add netrc support:
  12038. * src/Netrc.h, src/Netrc.cc: New class.
  12039. * src/Util.h, src/Util.cc (split): New function.
  12040. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12041. "Content-Range" header instead of "Range" header.
  12042. * src/HttpHeader.h
  12043. (getStatus): Removed.
  12044. (setStatus): Removed.
  12045. * src/Segment.h
  12046. (getPositionToWrite): New function.
  12047. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12048. * src/HttpHeader.h
  12049. (Range.h): New include.
  12050. (status): New variable.
  12051. (HttpHeader): Initialized status with 0.
  12052. (getStatus): New function.
  12053. (setStatus): New function.
  12054. (getRange): New function.
  12055. (HttpHeaderHandle): New function.
  12056. * src/HttpHeader.cc
  12057. (getRange): New function.
  12058. * src/Request.h
  12059. (RequestWeakHandle): New definition.
  12060. * src/HttpConnection.h
  12061. (HttpConnectionHandle): New type definition.
  12062. * src/HttpConnection.cc
  12063. (receiveResponse): Set HTTP status to headers.
  12064. * src/main.cc
  12065. (showUsage): Fixed typo.
  12066. * src/Segment.h
  12067. (SegmentHandle): New type definition.
  12068. * src/BitfieldMan.h
  12069. (getMissingUnusedLength): New function.
  12070. * src/BitfieldMan.cc
  12071. (getMissingUnusedLength): New function.
  12072. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12073. To fix static initialization order problem:
  12074. * src/BitfieldManFactory.h
  12075. (defaultRandomizer): Removed.
  12076. (factory): New variable.
  12077. (getNewFactory): Removed.
  12078. (getFactoryInstance): New function.
  12079. (setDefaultRandomizer): Rewritten.
  12080. (getDefaultRandomizer): Rewritten.
  12081. * src/BitfieldManFactory.cc
  12082. (defaultRandomizer): Removed.
  12083. (factory): Initialized to 0.
  12084. (BitfieldManFactory): Initialized randomizer to 0.
  12085. * src/DefaultPieceStorage.cc
  12086. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12087. * src/Peer.cc
  12088. (Peer): getNewFactory() -> getFactoryInstance()
  12089. * src/SegmentMan.cc
  12090. (initBitfield): getNewFactory() -> getFactoryInstance()
  12091. * src/Piece.cc
  12092. (Piece): getNewFactory() -> getFactoryInstance()
  12093. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12094. To fix the bug that causes crash on Max OS X:
  12095. * src/SimpleRandomizer.h
  12096. (getInstance): Create new instance if the static variable is null.
  12097. * src/SimpleRandomizer.cc
  12098. (randomizer): Initialized to 0.
  12099. * src/BitfieldManFactory.h
  12100. (getNewFactory): Removed the call to setRandomizer().
  12101. To fix the miscalculation of the range of checksum:
  12102. * src/BitfieldMan.h
  12103. (isBitSetOffsetRange): New function.
  12104. * src/BitfieldMan.cc
  12105. (isBitSetOffsetRange): New function.
  12106. * src/SegmentMan.cc
  12107. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12108. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12109. * Release 0.10.1
  12110. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12111. To lower CPU usage in BitTorrent download when --max-upload-limit
  12112. command-line option specified:
  12113. * src/DefaultBtMessageDispatcher.cc
  12114. (sendMessages): Calculate uploading speed only when current message
  12115. is uploading data and is not sent yet.
  12116. * src/DefaultPeerStorage.h
  12117. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12118. * src/HttpResponseCommand.cc
  12119. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12120. This fixes compile error in Soralis 10.
  12121. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12122. To fix segfault in Metalink download:
  12123. * src/UrlRequestInfo.h
  12124. (filename): Removed.
  12125. (totalLength): Removed.
  12126. (setTotalLength): Removed.
  12127. (setFilename): Removed.
  12128. * src/MetalinkRequestInfo.cc
  12129. (execute): Do not set filename and totalLength to reqInfo.
  12130. Set chunk checksum to reqInfo if it is not null.
  12131. * src/HttpResponseCommand.cc
  12132. (executeInternal): Fixed filename in log.
  12133. (handleDefaultEncoding): Removed the call to initBitfield() and
  12134. markAllPiecesDone().
  12135. (handleOtherEncoding): Added HEAD method handling.
  12136. * src/FtpNegotiateCommand.cc
  12137. (executeInternal): Added SEQ_HEAD_OK handling.
  12138. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12139. return false.
  12140. * src/FtpNegotiateCommand.h
  12141. (SEQ_HEAD_OK): New definition.
  12142. * src/SegmentMan.cc
  12143. (initBitfield): Delete bitfield.
  12144. (isChunkChecksumValidationReady): Fixed the condition.
  12145. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12146. works fine.
  12147. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12148. * src/Xml2MetalinkProcessor.h
  12149. (xpathExists): New function.
  12150. * src/Xml2MetalinkProcessor.cc
  12151. (xpathExists): New function.
  12152. Not to send HEAD request if filename and size are available in Metalink
  12153. file:
  12154. * src/UrlRequestInfo.h
  12155. (filename): New variable.
  12156. (totalLength): New variable.
  12157. (setTotalLength): New function.
  12158. (setFilename): New function.
  12159. * src/MetalinkRequestInfo.cc
  12160. (execute): Set filename and size to UrlRequestInfo.
  12161. * src/MetalinkEntry.cc
  12162. (MetalinkEntry): Initialize size with 0.
  12163. * src/UrlRequestInfo.cc
  12164. (execute): Set filename and size to SegmentMan.
  12165. Not to download rest of the files after selected files are downloaded
  12166. in BitTorrent:
  12167. * src/PieceStorage.h
  12168. (allDownloadFinished): New function.
  12169. * src/DefaultBtAnnounce.cc
  12170. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12171. downloadFinished.
  12172. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12173. * src/DefaultPieceStorage.cc
  12174. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12175. Commented out the call to finishSelectiveDownloadingMode().
  12176. (downloadFinished): Call isFilteredAllBitSet() instead of
  12177. isAllBitSet().
  12178. (allDownloadFinished): New function.
  12179. * src/DefaultBtInteractive.cc
  12180. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12181. downloadFinished().
  12182. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12183. * src/TorrentDownloadEngine.cc
  12184. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12185. * src/BitfieldMan.h
  12186. (isFilteredAllBitSet): New function.
  12187. * src/ShareRatioSeedCriteria.h
  12188. (PieceStorage.h): New include.
  12189. (pieceStorage): New variable.
  12190. (evaluate):
  12191. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12192. * src/BitfieldMan.cc
  12193. (isFilteredAllBitSet): New function.
  12194. (isAllBitSet): Filter is not took into account.
  12195. Rename --force-truncate as --allow-overwrite:
  12196. * src/TorrentRequestInfo.cc
  12197. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12198. * src/main.cc
  12199. (showUsage): --force-truncate -> --allow-overwrite
  12200. * src/message.h
  12201. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12202. * src/prefs.h
  12203. (PREF_FORCE_TRUNCATE): Removed.
  12204. (PREF_ALLOW_OVERWRITE): New definition.
  12205. * src/SegmentMan.cc
  12206. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12207. * src/MetalinkRequestInfo.cc
  12208. (execute): Queueing message are now logged in info level.
  12209. * src/common.h
  12210. (LONG_LONG_MAX): Removed.
  12211. (LONG_LONG_MIN): Removed.
  12212. * src/HttpResponseCommand.cc
  12213. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12214. * src/FtpNegotiateCommand.cc
  12215. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12216. * src/main.cc
  12217. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12218. command-line option.
  12219. (main): Added --check-integriy and --realtime-chunk-checksum
  12220. command-line option.
  12221. --force-truncate -> --allow-overwrite
  12222. Set initial value of --check-integrity option to false.
  12223. Don't show usage when error occurs while persing command-line options.
  12224. Removed deprecated --upload-limit option.
  12225. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12226. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12227. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12228. * src/BtAllowedFastMessage.cc:
  12229. * src/BtBitfieldMessage.cc
  12230. * src/BtCancelMessage.cc
  12231. * src/BtChokeMessage.cc
  12232. * src/BtHaveAllMessage.cc
  12233. * src/BtHaveMessage.cc
  12234. * src/BtHaveNoneMessage.cc
  12235. * src/BtInterestedMessage.cc
  12236. * src/BtNotInterestedMessage.cc
  12237. * src/BtPieceMessage.cc
  12238. * src/BtPortMessage.cc
  12239. * src/BtRejectMessage.cc
  12240. * src/BtRequestMessage.cc
  12241. * src/BtSuggestPieceMessage.cc
  12242. * src/BtUnchokeMessage.cc
  12243. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12244. files are affected.
  12245. * src/ChunkChecksumValidator.cc
  12246. * src/SegmentMan.cc
  12247. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12248. To add chunk checksum validation:
  12249. * src/MetalinkEntry.h
  12250. (MetalinkChunkChecksum.h): New include.
  12251. (chunkChecksum): New variable.
  12252. * src/Request.h
  12253. (method): New variable.
  12254. (setMethod): New function.
  12255. (getMethod): New function.
  12256. (METHOD_GET): New static constant.
  12257. (METHOD_HEAD): New static constant.
  12258. * src/Xml2MetalinkProcessor.h
  12259. (getPieceHash): New function.
  12260. * src/PieceStorage.h
  12261. (markAllPiecesDone): New function.
  12262. (checkIntegrity): New function.
  12263. * src/FileAllocator.h
  12264. (NullFileAllocationMonitor.h): New include.
  12265. (FileAllocator): Initialize fileAllocationMonitor with new
  12266. NullFileAllocationMonitor().
  12267. * src/MultiDiskAdaptor.h
  12268. (messageDigest.h): Remove include.
  12269. (ctx): Removed.
  12270. (hashUpdate): Added ctx.
  12271. (MultiDiskAdaptor): Removed ctx.
  12272. (sha1Sum): Renamed as messageDigest.
  12273. (messageDigest): New function.
  12274. * src/UrlRequestInfo.h
  12275. (HeadResult): New class.
  12276. (digestAlgo): New variable.
  12277. (chunkChecksumLength): New variable.
  12278. (chunkChecksums): New variable.
  12279. (getHeadResult): New function.
  12280. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12281. (setDigestAlgo): New function.
  12282. (setChunkChecksumLength): New function.
  12283. (setChunkChecksums): New function.
  12284. * src/DefaultPieceStorage.cc
  12285. (DiskAdaptorWriter.h): New include.
  12286. (ChunkChecksumValidator.h): New include.
  12287. (markAllPiecesDone): New function.
  12288. (checkIntegrity): New function.
  12289. * src/DefaultBtContext.h
  12290. (getPieceHashes): New function.
  12291. * src/TorrentRequestInfo.cc
  12292. (execute): Try to validate chunk checksum if file already exists and
  12293. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12294. * src/messageDigest.h
  12295. (~MessageDigestContext): Added digestFree().
  12296. * src/MetalinkRequestInfo.cc
  12297. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12298. * src/DiskAdaptor.h
  12299. (messageDigest.h): New include.
  12300. (sha1Sum): Renamed as messageDigest.
  12301. (messageDigest): New function.
  12302. * src/DownloadCommand.h
  12303. (PeerStat.h): New include.
  12304. (maxDownloadSpeedLimit): New variable.
  12305. (startupIdleTime): New variable.
  12306. (lowestDownloadSpeedLimit): New variable.
  12307. (peerStat): New variable.
  12308. (setMaxDownloadSpeedLimit): New function.
  12309. (setStartupIdleTime): New function.
  12310. (setLowestDownloadSPeedLimit): New function.
  12311. * src/BtContext.h
  12312. (getPieceHashes): New function.
  12313. * src/main.cc
  12314. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12315. option to true for testing purpose.
  12316. * src/BtPieceMessage.cc
  12317. (checkPieceHash): Use messageDigest
  12318. * src/DownloadEngine.cc
  12319. (SetDescriptor): Removed.
  12320. (AccumulateActiveCommand): Removed.
  12321. (waitData): Rewritten.
  12322. (updateFdSet): Rewritten.
  12323. * src/MultiDiskAdaptor.cc
  12324. (hashUpdate): Added ctx.
  12325. (sha1Sum): Renamed as messageDigest.
  12326. (messageDigest): New function.
  12327. * src/BitfieldMan.h
  12328. (isBitRangeSet): New function.
  12329. (unsetBitRange): New function.
  12330. * src/ByteArrayDiskWriter.h
  12331. (sha1Sum): Renamed as messageDigest.
  12332. (messageDigest): New function.
  12333. * src/ConsoleDownloadEngine.cc
  12334. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12335. * src/DiskWriter.h
  12336. (messageDigest.h): New include.
  12337. (sha1Sum): Renamed as messageDigest.
  12338. (messageDigest): New function.
  12339. * src/ChunkChecksumValidator.h: New class.
  12340. * src/DiskAdaptorWriter.h: New class.
  12341. * src/prefs.h
  12342. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12343. (PREF_CHECK_INTEGRITY): New definition.
  12344. * src/HttpResponseCommand.cc
  12345. (handleDefaultEncoding): Added method "HEAD" handling.
  12346. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12347. (handleOtherEncoding):
  12348. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12349. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12350. startupIdleTime, lowestDownloadSpeedLimit to command.
  12351. * src/SegmentMan.h
  12352. (getSegmentEntryByIndex): New function.
  12353. (getSegmentEntryByCuid): New function.
  12354. (getSegmentEntryIteratorByCuid): New function.
  12355. (diskWriter): DiskWriter -> DiskWriterHandle
  12356. (pieceHashes): New variable.
  12357. (chunkHashLength): New variable.
  12358. (digestAlgo): New variable.
  12359. (FindPeerStat): Removed.
  12360. (getPeerStat): Rewritten.
  12361. (markAllPiecesDone): New function.
  12362. (checkIntegrity): New function.
  12363. (tryChunkChecksumValidation): New function.
  12364. (isChunkChecksumValidationReady): New function.
  12365. * src/BitfieldMan.cc
  12366. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12367. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12368. blocks to 0.
  12369. (isBitRangeSet): New function.
  12370. (unsetBitRange): New function.
  12371. * src/FtpNegotiateCommand.cc
  12372. (executeInternal): Set maxDownloadSpeedLimit,
  12373. startupIdleTime, lowestDownloadSpeedLimit to command.
  12374. (recvSize): Added method "HEAD" handling.
  12375. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12376. * src/AbstractSingleDiskAdaptor.cc
  12377. (sha1Sum): Renamed as messageDigest.
  12378. (messageDigest): New function.
  12379. * src/AbstractSingleDiskAdaptor.h
  12380. (sha1Sum): Renamed as messageDigest.
  12381. (messageDigest): New function.
  12382. * src/Util.h
  12383. (indexRange): New function.
  12384. * src/MetalinkEntry.cc
  12385. (MetalinkEntry): Initialized chunkChecksum to 0.
  12386. * src/ShaVisitor.cc
  12387. (~ShaVisitor): Removed the call to ctx.digestFree().
  12388. * src/SegmentMan.cc
  12389. (ChunkChecksumValidator.h): New include.
  12390. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12391. to DIGEST_ALGO_SHA1.
  12392. (~SegmentMan): Removed diskWriter.
  12393. (FindSegmentEntryByIndex): Removed.
  12394. (FindSegmentEntryByCuid): Removed.
  12395. (checkoutSegment): Rewritten.
  12396. (findSlowerSegmentEntry): Rewritten.
  12397. (getSegment): Rewritten.
  12398. (updateSegment): Rewritten.
  12399. (completeSegment): Rewritten.
  12400. (markAllPiecesDone): New function.
  12401. (checkIntegrity): New function.
  12402. (isChunkChecksumValidationReady): New function.
  12403. (tryChunkChecksumValidation): New function.
  12404. * src/Xml2MetalinkProcessor.cc
  12405. (getEntry): Get size and set it to entry.
  12406. Get chunk checksum and set it to entry.
  12407. (getPieceHash): New function.
  12408. * src/Util.cc
  12409. (sha1Sum): Removed ctx.digestFree()
  12410. (fileChecksum): Removed ctx.digestFree()
  12411. (indexRange): New function.
  12412. * src/Request.cc
  12413. (METHOD_GET): New variable.
  12414. (METHOD_HEAD): New variable.
  12415. (Request): Added method.
  12416. * src/UrlRequestInfo.cc
  12417. (FatalException.h): New include.
  12418. (message.h): New include.
  12419. (operator<<): Added operator<< for class HeadResult.
  12420. (getHeadResult): New function.
  12421. (execute): Get filename and size in separate download engine.
  12422. * src/ChunkChecksumValidator.cc: New class.
  12423. * src/DownloadCommand.cc:
  12424. (DownloadCommand): Added peerStat.
  12425. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12426. the value from Option.
  12427. The buffer size is now 16KB.
  12428. Use peerStat member instead of getting it from SegmentMan.
  12429. Use startupIdleTime member instead of gettingit from Option.
  12430. Added chunk checksum validation.
  12431. * src/AbstractDiskWriter.cc
  12432. (AbstractDiskWriter): Removed ctx.
  12433. (~AbstractDiskWriter): Removed ctx.digestFree()
  12434. (writeDataInternal): Returns the return value of write.
  12435. (readDataInternal): Returns the return value of read.
  12436. (sha1Sum): Renamed as messageDigest
  12437. (messageDigest): New function.
  12438. * src/AbstractDiwkWriter.h
  12439. (messageDigest.h): Removed include.
  12440. (ctx): Removed.
  12441. (sha1Sum): Renamed as messageDigest
  12442. (messageDigest): New function.
  12443. * src/DefaultPieceStorage.h
  12444. (markAllPiecesDone): New function.
  12445. (checkIntegrity): New function.
  12446. * src/NullFileAllocationMonitor.h: New class.
  12447. * src/MetalinkChunkChecksum.h: New class.
  12448. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12449. To decrease CPU usage in bittorrent download, calculation results in
  12450. BitfieldMan were cached and realtime fetching PeerObject was removed
  12451. with WeakHandle introduced. Option values are set to the objects
  12452. by setter before download begins.
  12453. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12454. * src/DefaultBtRequestFactory.h
  12455. (dispatcher): BtMessageDispatcherHandle ->
  12456. BtMessageDispatcherWeakHandle.
  12457. (messageFactory): New variable.
  12458. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12459. BtMessageDispatcherWeakHandle.
  12460. (setBtMessageFactory): New function.
  12461. * src/DefaultBtMessageDispatcher.cc:
  12462. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12463. from Option.
  12464. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12465. feating the value from Option.
  12466. Use messageFactory member.
  12467. * src/PeerInteractionCommand.cc
  12468. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12469. Add reverse dependencies to factory object.
  12470. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12471. dispatcher.
  12472. Set messageFactory to receiver.
  12473. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12474. btInteractive.
  12475. Set receiver to peerObject.
  12476. Set maxDownloadSpeedLimit to this.
  12477. (executeInternal): Use maxDownloadSpeedLimit member.
  12478. * src/BtChokeMessage.cc
  12479. (doReceivedAction): Use dispatcher, requestFactory member.
  12480. (onSendComplete): Use dispatcher member.
  12481. * src/PeerInteractionCommand.h
  12482. (maxDownloadSpeedLimit): New variable.
  12483. * src/DefaultBtMessageReceiver.h
  12484. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12485. (dispatcher):
  12486. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12487. (messageFactory): New variable.
  12488. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12489. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12490. (setDispatcher):
  12491. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12492. (setBtMessageFactory): New function.
  12493. * src/DefaultBtInteractive.cc
  12494. (initiateHandshake): Use messageFactory member.
  12495. (addBitfieldMessageToQueue): Use messageFactory member.
  12496. (addAllowedFastMessageToQueue): Use messageFactory member.
  12497. (decideChoking): Use messageFactory member.
  12498. (checkHave): Use messageFactory member.
  12499. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12500. (receiveMessages): Use maxDownloadSpeedLimit member.
  12501. (decideInterest): Use messageFactory member.
  12502. * src/BtRequestMessage.cc
  12503. (doReceivedAction): Use messageFactory, dispatcher member.
  12504. (onQueued): Use dispatcher member.
  12505. * src/BtPieceMessage.cc
  12506. (doReceivedAction): Use dispatcher member.
  12507. (send): Use peerConnection member.
  12508. (onWrongPiece): Use requestFactory member.
  12509. (handleChokingEvent): Use messageFactory, dispatcher member.
  12510. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12511. * src/BtMessageDispatcher.h
  12512. (BtMessageDispatcherWeakHandle): New type definition.
  12513. * src/SimpleBtMessage.cc
  12514. (send): Use peerConnection member.
  12515. * src/BtRejectMessage.cc
  12516. (doReceivedAction): Use dispatcher member.
  12517. * src/DefaultBtMessageDispatcher.h
  12518. (Option.h): Removed include.
  12519. (messageFactory): New variable.
  12520. (option): Removed.
  12521. (maxUploadSpeedLimit): New variable.
  12522. (requestTimeout): New variable.
  12523. (DefaultBtMessageDispatcher): Removed option.
  12524. Added maxUploadSpeedLimit, requestTimeout.
  12525. (setOption): Removed.
  12526. (getOption): Removed.
  12527. (setMaxUploadSpeedLimit): New function.
  12528. (setRequestTimeout): New function.
  12529. (setBtMessageFactory): New function.
  12530. * src/DefaultBtInteractive.h
  12531. (btMessageReceiver):
  12532. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12533. (dispatcher):
  12534. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12535. (btRequestFactory):
  12536. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12537. (peerConnection):
  12538. PeerConnectionHandle -> PeerConnectionWeakHandle
  12539. (messageFactory): New variable.
  12540. (option): Removed.
  12541. (keepAliveInterval): New variable.
  12542. (maxDownloadSpeedLimit): New variable.
  12543. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12544. (setBtMessageReceiver):
  12545. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12546. (setDispatcher):
  12547. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12548. (setBtRequestFactory):
  12549. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12550. (setPeerConnection):
  12551. PeerConnectionHandle -> PeerConnectionWeakHandle
  12552. (setOption): Removed.
  12553. (setKeepAliveInterval): New function.
  12554. (setMaxDownloadSpeedLimit): New function.
  12555. (setBtMessageFactory): New function.
  12556. * src/BitfieldMan.h
  12557. (cachedNumMissingBlock): New variable.
  12558. (cachedNumFilteredBlock): New variable.
  12559. (cachedCompletedLength): New variable.
  12560. (cachedFilteredComletedLength): New variable.
  12561. (cachedFilteredTotalLength): New variable.
  12562. (countMissingBlockNow): New function.
  12563. (countFilteredBlockNow): New function.
  12564. (getFilteredTotalLengthNow): New function.
  12565. (getCompletedLengthNow): New function.
  12566. (getFilteredCompletedLengthNow): New function.
  12567. (updateCache): New function.
  12568. * src/AbstractBtMessage.h
  12569. (BtMessageDispatcher.h): New include.
  12570. (PeerConnection.h): New include.
  12571. (BtRequestFactory.h): New include
  12572. (BtMessageFactory.h): New include.
  12573. (dispatcher): New variable.
  12574. (messageFactory): New variable.
  12575. (peerConnection: New variable.
  12576. (setBtMessageDispatcher): New function.
  12577. (setPeerConnection): New function.
  12578. (setBtMessageFactory): New function.
  12579. (setBtRequestFactory): New function.
  12580. * src/DefaultBtMessageFactory.cc
  12581. (setCommonProperty): Set dispatcher, requestFactory, this,
  12582. peerConnection to msg.
  12583. * src/BtRegistry.h
  12584. (BT_MESSAGE_RECEIVER): New macro.
  12585. * src/PeerConnection.h
  12586. (PeerConnectionWeakHandle): New type definition.
  12587. * src/BtMessageFactory.h
  12588. (BtMessageFactoryWeakHandle): New type definition.
  12589. * src/BitfieldMan.cc
  12590. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12591. cachedCompletedLength, cachedFilteredComletedLength,
  12592. cachedFilteredTotalLength.
  12593. Call updateCache().
  12594. (countMissingBlock): Return cachedNumMissingBlock.
  12595. (countMissingBlockNow): New function.
  12596. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12597. (countFilteredBlockNow): New function.
  12598. (setBit): Call updateCache().
  12599. (unsetBit): Call updateCache().
  12600. (setBitfield): Call updateCache().
  12601. (clearAllBit): Call updateCache().
  12602. (setAllBit): Use setBitInternal instead of setBit.
  12603. Call updateCache().
  12604. (addFilter): Call updateCache().
  12605. (enableFilter): Call updateCache().
  12606. (disableFilter): Call updateCache().
  12607. (clearFilter): Call updateCache().
  12608. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12609. (getFilteredTotalLengthNow): New function.
  12610. (getCompletedLength): Return cachedCompletedLength.
  12611. (getCompletedLengthNow): New function.
  12612. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12613. (getFilteredCompletedLengthNow): New function.
  12614. (updateCache): New function.
  12615. * src/BtMessageReceiver.h
  12616. (BtMessageReceiverWeakHandle): New type definition.
  12617. * src/DefaultBtMessageReceiver.cc
  12618. (receiveHandshake): Use messageFactory member.
  12619. (sendHandshake): Use messageFactory member.
  12620. (receiveMessage): Use messageFactory member.
  12621. * src/DefaultBtMessageFactory.h
  12622. (dispatcher): New variable.
  12623. (requestFactory): New variable.
  12624. (peerConnection): New variablle.
  12625. (setBtMessageDispatcher): New function.
  12626. (setBtRequestFactory): New function.
  12627. (setPeerConnection): New function.
  12628. * src/SharedHandle.h
  12629. (RefCount): New class.
  12630. (WeakHandle): New class.
  12631. * src/PeerObject.h
  12632. (BtMessageReceiver.h): New include.
  12633. (PeerObject): Added btMessageReceiver.
  12634. (btMessageReceiver): New variable.
  12635. * src/Util.cc
  12636. (countBit): Simplified.
  12637. * src/BtCancelMessage.cc
  12638. (doReceivedAction): Use dispatcher member.
  12639. * src/BtRequestFactory.h
  12640. (BtRequestFactoryWeakHandle): New type definition.
  12641. * src/PeerStorage.h
  12642. (downloadSpeed): int -> uint32_t
  12643. (uploadSpeed): int -> uint32_t
  12644. (sessionDownloadLength): long long int -> uint64_t
  12645. (sessionUploadLength): long long int -> uint64_t
  12646. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12647. To add RecoverableException, FatalException:
  12648. * src/AbstractCommand.cc
  12649. (onAbort): Exception -> RecoverableException
  12650. * src/PeerAbstractCommand.h
  12651. (RecoverableException.h): New include.
  12652. (onAbort): Exception -> RecoverableException.
  12653. * src/PeerInteractionCommand.cc
  12654. (onAbort): Exception -> RecoverableException.
  12655. * src/PeerAbstractCommand.cc
  12656. (execute): Exception -> RecoverableException.
  12657. (onAbort): Exception -> RecoverableException.
  12658. * src/TorrentRequestInfo.cc
  12659. (execute): Exception -> RecoverableException.
  12660. * src/MetalinkRequestInfo.cc
  12661. (execute): Exception -> RecoverableException.
  12662. * src/MetaFileUtil.cc: RecoverableException.
  12663. * src/AbstractCommand.h
  12664. (onAbort): Exception -> RecoverableException.
  12665. * src/DlRetryEx.h: Exception -> RecoverableException.
  12666. * src/DlAbortEx.h: Exception -> RecoverableException.
  12667. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12668. * src/Util.cc: Exception -> RecoverableException.
  12669. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12670. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12671. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12672. To make ID static const int
  12673. * src/BtInterestedMessage.h
  12674. (ID_t): Removed.
  12675. (ID): New variable.
  12676. (getId): Made non-const.
  12677. * src/BtPieceMessage.h
  12678. (ID_t): Removed.
  12679. (ID): New variable.
  12680. (getId): Made non-const.
  12681. * src/BtChokeMessage.h
  12682. (ID_t): Removed.
  12683. (ID): New variable.
  12684. (getId): Made non-const.
  12685. * src/BtHaveAllMessage.h
  12686. (ID_t): Removed.
  12687. (ID): New variable.
  12688. (getId): Made non-const.
  12689. * src/BtKeepAliveMessage.h
  12690. (ID_t): Removed.
  12691. (ID): New variable.
  12692. (getId): Made non-const.
  12693. * src/BtHandshakeMessage.h
  12694. (ID): New variable.
  12695. (getId): Made non-const.
  12696. * src/BtSuggestPieceMessage.h
  12697. (ID_t): Removed.
  12698. (ID): New variable.
  12699. (getId): Made non-const.
  12700. * src/BtPortMessage.h
  12701. (ID_t): Removed.
  12702. (ID): New variable.
  12703. (getId): Made non-const.
  12704. * src/AbstractBtMessage.h
  12705. (id): Removed.
  12706. (AbstractBtMessage): Removed id.
  12707. (getId): Removed.
  12708. * src/BtHaveMessage.h
  12709. (ID_t): Removed.
  12710. (ID): New variable.
  12711. (getId): Made non-const.
  12712. * src/BtAllowedFastMessage.h
  12713. (ID_t): Removed.
  12714. (ID): New variable.
  12715. (getId): Made non-const.
  12716. * src/BtCancelMessage.h
  12717. (ID_t): Removed.
  12718. (ID): New variable.
  12719. (getId): Made non-const.
  12720. * src/BtNotInterestedMessage.h
  12721. (ID_t): Removed.
  12722. (ID): New variable.
  12723. (getId): Made non-const.
  12724. * src/BtChokeMessage.h
  12725. (ID_t): Removed.
  12726. (ID): New variable.
  12727. (getId): Made non-const.
  12728. * src/BtRejectMessage.h
  12729. (ID_t): Removed.
  12730. (ID): New variable.
  12731. (getId): Made non-const.
  12732. * src/BtBitfieldMessage.h
  12733. (ID_t): Removed.
  12734. (ID): New variable.
  12735. (getId): Made non-const.
  12736. * src/BtUnchokeMessage.h
  12737. (ID_t): Removed.
  12738. (ID): New variable.
  12739. (getId): Made non-const.
  12740. * src/BtRequestMessage.h
  12741. (ID_t): Removed.
  12742. (ID): New variable.
  12743. (getId): Made non-const.
  12744. * src/BtHaveMessage.h
  12745. (ID_t): Removed.
  12746. (ID): New variable.
  12747. (getId): Made non-const.
  12748. To add --force-truncate command-line option and a check whether
  12749. the file already exists:
  12750. * src/DirectDiskAdaptor.h
  12751. (getFilePath): Made virtual public.
  12752. * src/MultiDiskAdaptor.h
  12753. (File.h): New include.
  12754. (DiskWriterEntry::fileEntry): Made private.
  12755. (DiskWriterEntry::fileExists): New function.
  12756. (DiskWriterEntry::getFileEntry): New function.
  12757. (fileExists): New function.
  12758. (getFilePath): New function.
  12759. * src/TorrentRequestInfo.cc
  12760. (FatalException.h): New include.
  12761. (message.h): New include.
  12762. (RecoverableException.h): New include.
  12763. (execute): Added a check whether file is already exists or not.
  12764. * src/DiskAdaptor.h
  12765. (fileExists): New function.
  12766. (getFilePath): New function.
  12767. * src/main.cc
  12768. (showUsage): Added an explanation of --force-truncate command-line
  12769. option.
  12770. (main): Added --force-truncate command-line option.
  12771. * src/Exception.h
  12772. (setMsg): buf[256] -> buf[1024]
  12773. * src/CopyDiskWriter.h
  12774. (getFilePath): Made public virtual.
  12775. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12776. (fileExists): New function.
  12777. * src/DownloadEngineFactory.cc
  12778. (newTorrentConsoleEngine): Don't open file here.
  12779. * src/message.h
  12780. (EX_FILE_ALREADY_EXISTS): New definition.
  12781. * src/prefs.h
  12782. (PREF_FOECE_TRUNCATE): New definition.
  12783. * src/HttpResponseCommand.cc
  12784. (handleDefaultEncoding): Added a check whether the file already exists.
  12785. * src/SegmentMan.h
  12786. (fileExists): New function.
  12787. (shouldCancelDownloadForSafety): New function.
  12788. * src/FtpNegotiateCommand.cc
  12789. (recvSize): Added a check whether the file already exists.
  12790. * src/AbstractSingleDiskAdaptor.cc
  12791. (File.h): New include.
  12792. (fileExists): New function.
  12793. * src/AbstractSingleDiskAdaptor.h
  12794. (getFilePath): Removed.
  12795. (fileExists): New function.
  12796. * src/SegmentMan.cc
  12797. (fileExists): New function.
  12798. (shouldCancelDownloadForSafety): New function.
  12799. To fix regression bug in torrent downloading:
  12800. * src/DefaultBtRequestFactory.cc
  12801. (doChokedAction): New function.
  12802. * src/DefaultBtRequestFactory.h
  12803. (doChokedAction): New function.
  12804. * src/DefaultBtMessageDispatcher.cc
  12805. (doChokedAction): Do not delete request if its target is in allowed
  12806. fast set.
  12807. * src/DefaultBtInteractive.cc
  12808. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12809. (sendKeepAlive): Send keep alive message even if the outgoing message
  12810. queue is not empty.
  12811. (decideInterest): Simplified the code.
  12812. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12813. it is already called when BtChokeMessage is received from a peer.
  12814. * src/BtRequestFactory.h
  12815. (doChokedAction): New function.
  12816. To clean up code:
  12817. * src/PeerInteractionCommand.h
  12818. (executeInternal): Added virtual keyword explicitly.
  12819. (prepareForRetry): Added virtual keyword explicitly.
  12820. (prepareForNextPeer): Added virtual keyword explicitly.
  12821. (onAbort): Added virtual keyword explicitly.
  12822. * src/RequestSlot.cc
  12823. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12824. * src/BtPieceMessage.cc
  12825. (doReceivedAction): Added a debug log of piece's bitfield.
  12826. * src/Piece.h
  12827. (getBitfieldLength): New function.
  12828. * src/ByteArrayDiskWriter.cc
  12829. (clear): Added buf = 0 to avoid double free corruption.
  12830. * src/FileAllocator.cc
  12831. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12832. Added cp.reset().
  12833. * src/BitfieldMan.h
  12834. (operator=): Rewritten.
  12835. * src/BitfieldMan.cc
  12836. (BitfieldMan): Initialized bitfield, useBitfield.
  12837. * src/PeerConnection.cc
  12838. (receiveMessage): Added a call to socket->readable() after getting
  12839. message length to avoid possible EOF.
  12840. * src/Util.cc
  12841. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12842. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12843. To add an ability to pre-allocate file space:
  12844. * src/DirectDiskAdaptor.h: Rewritten.
  12845. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12846. * src/MultiDiskAdaptor.h: Rewritten.
  12847. * src/DefaultPieceStorage.cc
  12848. (MultiDiskWriter.h): Removed include.
  12849. (PreAllocationDiskWriter.h): Removed include.
  12850. (FileAllocationMonitor.h): New include.
  12851. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12852. (initStorage): Rewritten.
  12853. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12854. * src/FileAllocator.h: New class.
  12855. * src/FileAllocator.cc: New class.
  12856. * src/FileAllocationMonitor.h: New class.
  12857. * src/FileAllocationMonitor.cc: New class.
  12858. * src/ConsoleFileAllocationMonitor.h: New class.
  12859. * src/ConsoleFileAllocationMonitor.cc: New class.
  12860. * src/AbstractSingleDiskAdaptor.h: New class.
  12861. * src/AbstractSingleDiskAdaptor.cc: New class.
  12862. * src/DiskAdaptor.h
  12863. (Directory.h): Removed include.
  12864. (DiskWriter.h): Removed include.
  12865. (FileEntry.h): Removed include.
  12866. (diskWriter): Removed.
  12867. (DiskAdaptor): Removed diskWriter.
  12868. (openFile): Made pure virtual.
  12869. (closeFile): Made pure virtual.
  12870. (openExistingFile): Made pure virtual.
  12871. (initAndOpenFile): Made pure virtual.
  12872. (writeData): Made pure virtual.
  12873. (readData): Made pure virtual.
  12874. (sha1Sum): Made pure virtual.
  12875. (getStoreDir): Returns const reference of storeDir.
  12876. (DiskAdaptorHandle): New type definition.
  12877. * src/main.cc
  12878. (ConsoleFileAllocationMonitor.h): New include.
  12879. (showUsage): Added default value description of -s option.
  12880. Added the description of --file-allocation option.
  12881. (main): Set default value of --file-allocation option to 'none'.
  12882. Added --file-allocation command-line option.
  12883. Setup FileAllocationMonitorFactory.
  12884. * src/FtpInitiateConnectionCommand.cc
  12885. (executeInternal): Removed diskWriter related processing, which was
  12886. moved to FtpNegotiationCommand.cc.
  12887. * src/DirectDiskAdaptor.cc
  12888. (getFilePath): Made non-const.
  12889. * src/CopyDiskAdaptor.h
  12890. (DiskAdaptor.h): Removed include.
  12891. (DiskWriter.h): Removed include.
  12892. (AbstractSingleDiskAdaptor.h): New include.
  12893. (getFilePath): Made non-const. Added virtual keyword.
  12894. (CopyDiskAdaptor): Removed diskWriter.
  12895. (getTempFile): Returns const reference.
  12896. (CopyDiskAdaptorHandle): New type definition.
  12897. * src/ByteArrayDiskWriter.cc
  12898. (clear): Simplified.
  12899. (initAndOpenFile): Rewritten.
  12900. (openFile): Call initAndOpenFile()
  12901. * src/MultiDiskAdaptor.cc: Rewritten.
  12902. * src/DownloadEngineFactory.cc
  12903. (FileAllocator.h): New include.
  12904. (FileAllocationMonitor.h): New include.
  12905. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12906. create DefaultDiskWriter with file allocator.
  12907. * src/DiskWriter.h
  12908. (initAndOpenFile): Added totalLength argument.
  12909. (openFile): Added totalLength argument.
  12910. * src/prefs.h
  12911. (PREF_FILE_ALLOCATION): New definition.
  12912. (V_PREALLOC): New definition.
  12913. (V_NONE): New definition.
  12914. * src/HttpResponseCommand.cc
  12915. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12916. size.
  12917. * src/FtpNegotiateCommand.cc
  12918. (Util.h): New include.
  12919. (recvSize): Open file here.
  12920. * src/Util.h
  12921. (ullitos): New function.
  12922. * src/CopyDiskWriter.h
  12923. (getFilePath): Made non-const.
  12924. * src/DefaultDiskWriter.h
  12925. (Option.h): New include.
  12926. (totalLength): Removed.
  12927. (DefaultDiskWriter): Removed totalLength.
  12928. (initAndOpenFile): Added totalLength argument.
  12929. (DefaultDiskWriterHandle): New type definition.
  12930. (createNewDiskWriter): New function.
  12931. * src/Util.cc
  12932. (ullitos): New function.
  12933. * src/DefaultDiskWriter.cc
  12934. (message.h): New include.
  12935. (FileAllocator.h): New include.
  12936. (prefs.h): New include.
  12937. (Util.h): New include.
  12938. (DefaultDiskWriter): Removed totalLength.
  12939. (initAndOpenFile): Added file allocation.
  12940. (createNewDiskWriter): New function. Just for temporary solution.
  12941. It will be rewritten later.
  12942. * src/DiskAdaptor.cc
  12943. (DiskAdaptor): Removed diskWriter.
  12944. * src/AbstractDiskWriter.cc
  12945. (LogFactory.h): New include.
  12946. (AbstractDiskWriter): Added fileAllocator, logger.
  12947. (openFile): Added totalLength argument.
  12948. * src/AbstractDiskWriter.h
  12949. (FileAllocator.h): New include.
  12950. (Logger.h): New include.
  12951. (fileAllocator): New variable.
  12952. (logger): New variable.
  12953. (openFile): Added totalLength argument. Added virtual keyword
  12954. explicitly.
  12955. (openExistingFile): Added totalLength argument. Added virtual keyword
  12956. explicitly.
  12957. (closeFile): Added virtual keyword explicitly.
  12958. (sha1Sum): Added virtual keyword explicitly.
  12959. (writeData): Added virtual keyword explicitly.
  12960. (readData): Added virtual keyword explicitly.
  12961. (setFileAllocator): New function.
  12962. * src/DefaultPieceStorage.h
  12963. (FileAllocator.h): New include.
  12964. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12965. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12966. * src/FileProgressMonitor.h: New class.
  12967. To compile aria2 on PC-BSD:
  12968. * src/DefaultBtContext.cc
  12969. (libgen.h): New include.
  12970. To fix memory leak:
  12971. * src/Exception.h
  12972. (~Exception): Delete cause. Fixed memory leak.
  12973. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12974. Rewritten a portion of bittorrent implementation:
  12975. * src/BtMessageValidator.h: New class.
  12976. * src/BtBitfieldMessageValidator.h: New class.
  12977. * src/BtHandshakeMessageValidator.h: New class.
  12978. * src/BtRequestMessageValidator.h: New class.
  12979. * src/BtSuggestPieceMessageValidator.h: New class.
  12980. * src/BtAllowedFastMessageValidator.h: New class.
  12981. * src/BtRejectMessageValidator.h: New class.
  12982. * src/BtCancelMessageValidator.h: New class.
  12983. * src/BtPieceMessageValidator.h: New class.
  12984. * src/BtHaveMessageValidator.h: New class.
  12985. * src/BtEventListener.h: New class.
  12986. * src/AbstractBtEventListener.h: New class.
  12987. * src/BtEvent.h: New class.
  12988. * src/BtChokingEvent.h: New class.
  12989. * src/BtChokedEvent.h: New class.
  12990. * src/BtCancelSendingPieceEvent.h: New class.
  12991. * src/BtAbortOutstandingRequestEvent.h: New class.
  12992. * src/Randomizer.h: New class.
  12993. * src/SimpleRandomizer.h: New class.
  12994. * src/BtMessage.h: New class.
  12995. * src/AbstractBtMessage.h: New class.
  12996. * src/SimpleBtMessage.h: New class.
  12997. * src/BtHaveMessage.h: New class.
  12998. * src/BtInterestedMessage.h: New class.
  12999. * src/BtAllowedFastMessage.h: New class.
  13000. * src/BtUnchokeMessage.h: New class.
  13001. * src/BtCancelMessage.h: New class.
  13002. * src/BtNotInterestedMessage.h: New class.
  13003. * src/BtChokeMessage.h: New class.
  13004. * src/BtHaveNoneMessage.h: New class.
  13005. * src/BtHandshakeMessage.h: New class.
  13006. * src/BtSuggestPieceMessage.h: New class.
  13007. * src/BtHaveMessage.h: New class.
  13008. * src/BtPieceMessage.h: New class.
  13009. * src/BtHaveAllMessage.h: New class.
  13010. * src/BtKeepAliveMessage.h: New class.
  13011. * src/BtPortMessage.h: New class.
  13012. * src/BtRejectMessage.h: New class.
  13013. * src/BtBitfieldMessage.h: New class.
  13014. * src/BtRequestMessage.h: New class.
  13015. * src/DefaultBtRequestFactory.h: New class.
  13016. * src/DefaultBtMessageReceiver.h: New class.
  13017. * src/BtInteractive.h: New class.
  13018. * src/BtMessageDispatcher.h: New class.
  13019. * src/DefaultBtMessageDispatcher.h: New class.
  13020. * src/DefaultBtInteractive.h: New class.
  13021. * src/BitfieldManFactory.h: New class.
  13022. * src/HandleRegistry.h: New class.
  13023. * src/BtMessageFactory.h: New class.
  13024. * src/BtMessageReceiver.h: New class.
  13025. * src/DefaultBtMessageFactory.h: New class.
  13026. * src/PeerObject.h: New class.
  13027. * src/BtRequestFactory.h: New class.
  13028. * src/SuggestPieceMessage.h: Removed.
  13029. * src/PortMessage.h: Removed.
  13030. * src/SuggestPieceMessage.h: Removed.
  13031. * src/KeepAliveMessage.h: Removed.
  13032. * src/HandshakeMessage.h: Removed.
  13033. * src/PeerInteraction.h: Removed.
  13034. * src/UnchokeMessage.h: Removed.
  13035. * src/PieceMessage.h: Removed.
  13036. * src/RequestMessage.h: Removed.
  13037. * src/InterestedMessage.h: Removed.
  13038. * src/HaveMessage.h: Removed.
  13039. * src/CancelMessage.h: Removed.
  13040. * src/RejectMessage.h: Removed.
  13041. * src/AllowedFastMessage.h: Removed.
  13042. * src/HaveNoneMessage.h: Removed.
  13043. * src/SimplePeerMessage.h: Removed.
  13044. * src/HaveAllMessage.h: Removed.
  13045. * src/BitfieldMessage.h: Removed.
  13046. * src/PeerMessageFactory.h: Removed.
  13047. * src/NotInterestedMessage.h: Removed.
  13048. * src/ChokeMessage.h: Removed.
  13049. * src/PeerMessage.h: Removed.
  13050. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13051. To know root cause of exception:
  13052. * src/Exception.h
  13053. (cause): New variable.
  13054. (Exception): Added a parameter.
  13055. (getMsg): Return const reference to msg.
  13056. (getCause): New function.
  13057. * src/DlRetryEx.h
  13058. (DlRetryEx): Added a parameter 'cause'.
  13059. Added an overloaded constructor.
  13060. (DlAbortEx): Added a parameter 'cause'.
  13061. Added an overloaded constructor.
  13062. * src/SimpleLogger.cc
  13063. (writeLog): Log nested exception messages recursively.
  13064. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13065. * src/DefaultBtProgressInfoFile.cc
  13066. (load): Fixed memory leak when the infohash doesn't match.
  13067. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13068. * src/DefaultPeerStorage.cc
  13069. (calculateStat): Simplified the code by combining 2 loops into 1.
  13070. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13071. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13072. for BitTorrent download:
  13073. * src/PeerAbstractCommand.cc
  13074. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13075. * src/main.cc:
  13076. (timeoutSpecified): Removed.
  13077. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13078. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13079. * src/TorrentRequestInfo.cc
  13080. (timeoutSpecified): Removed.
  13081. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13082. timeout value.
  13083. * src/prefs.h
  13084. (PREF_BT_TIMEOUT): New definition.
  13085. Delete unused variables:
  13086. * src/TorrentRequestInfo.cc
  13087. (requestInfo): Removed.
  13088. Move setSignalHander to Util::setGlobalSignalHandler:
  13089. * src/TorrentRequestInfo.cc:
  13090. setSignalHander -> Util::setGlobalSignalHandler
  13091. * src/main.cc
  13092. (setSignalHander): Removed.
  13093. (main): setSignalHander -> Util::setGlobalSignalHandler
  13094. * src/Util.h
  13095. (setGlobalSignalHandler): New function.
  13096. * src/Util.cc
  13097. (setGlobalSignalHandler): New function.
  13098. * src/UrlRequestInfo.cc:
  13099. setSignalHander -> Util::setGlobalSignalHandler
  13100. Reset peer status in order to exit gracefully:
  13101. * src/PeerAbstractCommand.cc
  13102. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13103. To fix the bug that causes the number of bytes uploaded is not saved
  13104. to .aria2 file:
  13105. * src/DefaultPeerStorage.h
  13106. (removedPeerSessionDownloadLength): New variable.
  13107. (removedPeerSessionUploadLength): New variable.
  13108. * src/DefaultPeerStorage.cc
  13109. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13110. removedPeerSessionUploadLength(0).
  13111. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13112. through all peers, and then add removedPeerSessionDownloadLength(
  13113. removedPeerSessionUploadLength) to it.
  13114. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13115. (to) the peer to removedPeerSessionDownloadLength
  13116. (removedPeerSessionUploadLength).
  13117. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13118. To add Metalink location option:
  13119. * src/MetalinkRequestInfo.cc
  13120. (execute): Call MetalinkEntry::setLocationPreference()
  13121. * src/main.cc
  13122. (showUsage): Added the help message for --metalink-location option.
  13123. (main): Added --metalink-location option.
  13124. * src/prefs.h
  13125. (PREF_METALINK_LOCATION): New definition.
  13126. * src/MetalinkEntry.cc
  13127. (AddLocationPreference): New function object.
  13128. (setLocationPreference): New function.
  13129. * src/Xml2MetalinkProcessor.cc
  13130. (getResource): Set location attribute to MetalinkResource
  13131. To show URLs to download
  13132. * src/UrlRequestInfo.h
  13133. (printUrls): New function.
  13134. To add multiple <file> Metalink support:
  13135. * src/MetalinkEntry.h
  13136. (MetalinkResources): Removed.
  13137. (setLocationPreference): New function.
  13138. (MetalinkEntryHandle): New type definition.
  13139. (MetalinkEntries): New type definition.
  13140. * src/Xml2MetalinkProcessor.h
  13141. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13142. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13143. (parseFile): Metalinker* -> MetalinkerHandle
  13144. * src/UrlRequestInfo.h
  13145. (execute): RequestInfo* -> RequestInfos
  13146. * src/MetalinkRequestInfo.cc
  13147. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13148. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13149. (execute): RequestInfo* -> RequestInfos
  13150. Added multiple <file> support. Print filename when it is queued.
  13151. * src/MetalinkRequestInfo.h
  13152. (execute): RequestInfo* -> RequestInfos
  13153. (getDownloadEngine): Removed.
  13154. * src/RequestInfo.h
  13155. (RequestInfoHandle): New type definition.
  13156. (RequestInfos): New type definition.
  13157. (execute): RequestInfo* -> RequestInfos
  13158. (getDownloadEngine): Removed.
  13159. * src/MetalinkResource.h
  13160. (MetalinkResourceHandle): New type definition.
  13161. (MetalinkResources): New type definition.
  13162. * src/MetalinkEntry.cc
  13163. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13164. because the element is now of type MetalinkResourceHandle.
  13165. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13166. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13167. (dropUnsupportedResource): Removed the deletion of the elements of
  13168. resources because the element is now of type MetalinkResourceHandle.
  13169. * src/Xml2MetalinkProcessor.cc
  13170. (parseFile): Metalinker* -> MetalinkerHandle
  13171. MetalinkEntry* -> MetalinkEntryHandle
  13172. Removed try-catch block.
  13173. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13174. MetalinkResource* -> MetalinkResourceHandle
  13175. Removed try-catch block.
  13176. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13177. Free result by using xmlXPathFreeObject()
  13178. * src/Metalinker.cc
  13179. (~Metalinker): Removed the deletion of entries.
  13180. MetalinkEntry* -> MetalinkEntryHandle
  13181. (queryEntry): Add multiple <file> Metalink support.
  13182. * src/Metalinker.h
  13183. (MetalinkEntries): Removed.
  13184. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13185. * src/MetalinkProcessor.h
  13186. (parseFile): Metalinker* -> MetalinkerHandle
  13187. Bug fixes:
  13188. * src/PeerChokeCommand.cc
  13189. (execute): cat01->cat02
  13190. * src/DefaultPieceStorage.cc
  13191. (DefaultPieceStorage): Added diskAdaptor(0)
  13192. * src/TrackerWatcherComand.cc:
  13193. (execute): Use btAnnounce->noMoreAnnounce()
  13194. to determin whether the function returns true or not.
  13195. * src/TrackerUpdateCommand.cc:
  13196. (execute): Use btAnnounce->noMoreAnnounce()
  13197. to determin whether the function returns true or not.
  13198. * src/FtpConnection.cc
  13199. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13200. This is the fix of the busy loop bug.
  13201. * src/DownloadCommand.cc
  13202. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13203. cached PeerStat.
  13204. The value of "name" entry in torrent file is now set by
  13205. *DiskAdaptor::setTopDir(...) methods.
  13206. * src/MultiDiskAdaptor.h
  13207. (topDir): New variable.
  13208. (setTopDir): New function.
  13209. (getTopDir): New function.
  13210. * src/MultiDiskAdaptor.cc
  13211. (getFilePath): Concat storDir, "/" and topDir.
  13212. (mkdir): Use getFilePath() to get the directory path for output.
  13213. * src/DefaultPieceStorage.cc
  13214. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13215. CopyDiskAdaptor.
  13216. * src/CopyDiskAdaptor.h
  13217. (topDir): New variable.
  13218. (setTopDir): New function.
  13219. (getTopDir): New function.
  13220. * src/CopyDiskAdaptor.cc
  13221. (fixFilename): Updated.
  13222. Misc
  13223. * src/UrlRequestInfo.h
  13224. (e): Removed.
  13225. (UrlRequestInfo): Removed e.
  13226. (getDownloadEngine): Removed.
  13227. * src/UrlRequestInfo.cc
  13228. (handler): Rewritten.
  13229. (printUrls): New function.
  13230. (execute): Call printUrls().
  13231. * src/HandshakeMessage.cc
  13232. (check): peerinteraction->getBtContext() -> btContext
  13233. * src/PeerInteraction.h
  13234. (getBtContext): Removed.
  13235. * src/TorrentRequestInfo.h
  13236. (execute): RequestInfo* -> RequestInfos
  13237. (getDownloadEngine): Removed.
  13238. * src/TorrentRequestInfo.cc
  13239. (haltRequested): Removed.
  13240. (btHaltRequested): New variable.
  13241. (torrentHandler): haltRequested -> btHaltRequested
  13242. (execute): RequestInfo* -> RequestInfos
  13243. * src/TorrentConsoleDownloadEngine.cc
  13244. (afterEachIteration): haltRequested -> btHaltRequested.
  13245. * src/ConsoleDownloadEngine.h
  13246. (initStatistics): Added virtual.
  13247. (calculateStatistics): Added virtual.
  13248. (onEndOfRun): Added virtual.
  13249. (afterEachIteration): Added virtual.
  13250. * src/ConsoleDownloadEngine.cc
  13251. (haltRequested): New variable.
  13252. (afterEachIteration): New function.
  13253. * src/main.cc
  13254. (requestInfo): Removed.
  13255. * src/SegmentMan.cc
  13256. (findSlowerSegmentEntry): Refactored.
  13257. * Release 0.9.0
  13258. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13259. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13260. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13261. * src/TorrentMan.h: Removed.
  13262. * src/TorrentMan.cc: Removed.
  13263. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13264. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13265. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13266. * src/PeerAbstractCommand.cc: Use btRuntime.
  13267. * src/BtContextAwareCommand.h: New class.
  13268. * src/FileEntry.h: Added accessor methods for following variables.
  13269. (path): Made private.
  13270. (length): Made private.
  13271. (offset): Made private.
  13272. (extracted): Made private.
  13273. (requested): Made private.
  13274. (FileEntries): New definition.
  13275. (FileEntryHandle): New definition.
  13276. * src/FileEntry.cc: New file.
  13277. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13278. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13279. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13280. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13281. * src/PieceStorage.h: New file.
  13282. * src/PeerInteractionCommand.h: Use btContext.
  13283. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13284. btRuntime.
  13285. * src/DefaultBtProgressInfoFile.h: New file.
  13286. * src/DefaultBtProgressInfoFile.cc: New file.
  13287. * src/File.cc
  13288. (Util.h): New include.
  13289. (mkdirs): New function.
  13290. * src/MultiDiskAdaptor.h
  13291. (mkdir): New function.
  13292. * src/PeerListProcessor.h
  13293. (Peers): Removed.
  13294. * src/PeerInteraction.h
  13295. (torrentMan): Removed.
  13296. (btContext): New variable.
  13297. (peerStorage): New variable.
  13298. (pieceStorage): New variable.
  13299. (btAnnounce): New variable.
  13300. (getTorrentMan): Removed.
  13301. (getBtContext): New function.
  13302. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13303. btAnnounce.
  13304. * src/HandshakeMessage.h
  13305. (TorrentMan.h): Removed.
  13306. * src/HandshakeMessage.cc: Use btContext.
  13307. * src/DefaultBtAnnounce.cc: New file.
  13308. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13309. * src/DefaultPieceStorage.cc: New file.
  13310. * src/DefaultBtContext.h: New file.
  13311. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13312. Use the accessor methods of FileEntry.
  13313. * src/CookieBox.cc: Updated to use Util::slice().
  13314. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13315. * src/common.h (SharedHandle.h): New include.
  13316. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13317. pieceStorage.
  13318. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13319. * src/DiskAdaptor.h
  13320. (topDir): Removed.
  13321. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13322. (setTopDir): Removed.
  13323. (getTopDir): Removed.
  13324. * src/BtContext.h: New file.
  13325. * src/DefaultPeerStorage.h: New file.
  13326. * src/PieceMessage.h (TorrentMan.h): Removed.
  13327. * src/RequestMessage.h (TorrentMan.h): Removed.
  13328. * src/TorrentDownloadEngine.h
  13329. (uploadLength): New variable.
  13330. (btContext): New variable.
  13331. (btRuntime): New variable.
  13332. (pieceStorage): New variable.
  13333. (peerStorage): New variable.
  13334. (btAnnounce): New variable.
  13335. (btProgressInfoFile): New variable.
  13336. (torrentMan): Removed.
  13337. (setBtContext): New function.
  13338. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13339. peerStorage, btAnnounce, btProgressInfoFile.
  13340. * src/Piece.h
  13341. (toString): New function.
  13342. (Pieces): New type definition.
  13343. * src/Peer.h
  13344. (active): New variable.
  13345. (Peer): Added active.
  13346. (activate): Set active to true.
  13347. (deactivate): Set active to false.
  13348. (isActive): New function.
  13349. (Peers): New type definition.
  13350. * src/DirectDiskAdaptor.cc
  13351. (getFilePath): Use the accessor methods of FileEntry.
  13352. * src/TorrentConsoleDownloadEngine.h
  13353. (afterEachIteration): New function.
  13354. * src/TorrentConsoleDownloadEngine.cc
  13355. (haltRequested): New variable.
  13356. (sendStatistics): Use pieceStorage, btRuntime.
  13357. (afterEachIteration): New function.
  13358. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13359. * src/Directry.h
  13360. (Directory): New function.
  13361. (DirectoryHandle): New type definition.
  13362. * src/BtProgressInfoFile.h: New file.
  13363. * src/RequestMessage.cc: Use pieceStorage.
  13364. * src/BtRuntime.h: New file.
  13365. * src/DefaultBtContext.cc: New file.
  13366. * src/BitfieldMan.h
  13367. (getCompletedLength): New function(private).
  13368. (getCompletedLength): New function.
  13369. (getFilteredCompletedLength): New function.
  13370. * src/BitfieldMan.h
  13371. (getCompletedLength): New function(private).
  13372. (getCompletedLength): New function.
  13373. (getFilteredCompletedLength): New function.
  13374. * src/MultiDiskAdaptor.cc
  13375. (mkdir): New function.
  13376. (openFile): Call mkdir().
  13377. (initAndOpenFile): Call mkdir().
  13378. * src/CancelMessage.h
  13379. (TorrentMan.h): Removed.
  13380. * src/RejectMessage.h
  13381. (TorrentMan.h): Removed.
  13382. * src/DownloadEngineFactory.cc
  13383. (DefaultPieceStorage.h): New include.
  13384. (DefaultPeerStorage.h): New include.
  13385. (DefaultBtAnnounce.h): New include.
  13386. (DefaultBtProgressInfoFile.h): New include.
  13387. (newTorrentConsoleEngine): Rewritten.
  13388. * src/ShareRatioSeedCriteria.h
  13389. (torrentMan): Removed.
  13390. (btContext): New variable.
  13391. (peerStorage): New variable.
  13392. (btRuntime): New variable.
  13393. (evaluate): Use btContext, btRuntime, peerStorage.
  13394. * src/AnnounceTier.h: New file.
  13395. * src/BtAnnounce.h: New file.
  13396. * src/BtRegistry.h: New file.
  13397. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13398. * src/PeerConnection.h (TorrentMan.h): Removed.
  13399. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13400. * src/Util.h
  13401. (slice): Added an argument.
  13402. * src/Util.cc
  13403. (slice): Added an argument to control whether trim is made or not.
  13404. * src/PeerStorage.h: New file.
  13405. * src/BtRegistry.cc: New file.
  13406. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13407. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13408. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13409. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13410. * src/TorrentRequestInfo.h
  13411. (e): Removed.
  13412. (showFileEntry): Added an argument.
  13413. (getDownloadEngine): Return 0.
  13414. * src/DefaultBtAnnounce.h: New file.
  13415. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13416. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13417. * src/PeerMessageFactory.h
  13418. (btContext): New variable.
  13419. (pieceStorage): New variable.
  13420. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13421. btAnnounce.
  13422. * src/DiskAdaptor.cc
  13423. (DiskAdaptor): Removed topDir.
  13424. (~DiskAdaptor): Removed topDir.
  13425. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13426. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13427. * src/File.h (mkdirs): New function.
  13428. * src/DefaultPeerStorage): New file.
  13429. * src/DownloadEngineFactory.h
  13430. (newTorrentConsoleEngine): Use btContext.
  13431. * src/BtContextAwareCommand.cc: New file.
  13432. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13433. * src/PeerMessage.h
  13434. (btContext): New variable.
  13435. (peerStorage): New variable.
  13436. (pieceStorage): New variable.
  13437. (setBtContext): New function.
  13438. * src/Directry.cc
  13439. (Directory): New function.
  13440. (createDir): Do nothing if name.size() == 0.
  13441. * src/AnnounceList.h
  13442. (AnnounceTier): Removed.
  13443. (AnnounceTiers): Removed.
  13444. * src/DefaultPieceStorage.h: New file.
  13445. * src/Piece.cc (toString): New function.
  13446. To fix typo:
  13447. * src/main.cc (showVersion): Fixed typo.
  13448. To fix compile warning:
  13449. * src/DelegatingPeerListProcessor.cc
  13450. (canHandle): Added "return false".
  13451. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13452. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13453. make the process of announce request testable.
  13454. * src/TrackerWatcherCommand.h
  13455. (TimeA2.h): Removed.
  13456. (interval): Removed.
  13457. (checkPoint): Removed.
  13458. (createRequestCommand): Added an argument 'url'.
  13459. (TrackerWatherCommand): Removed interval.
  13460. (createCommand): New function.
  13461. * src/DownloadEngineFactory.cc
  13462. (newTorrentConsoleEngine): Updated according to the changes in
  13463. TrackerWatherCommand.
  13464. * src/TorrentMan.cc
  13465. (DelegatingPeerListProcessor.h): New includes.
  13466. (TorrentMan): Added the initialization of announceInterval.
  13467. (isStoppedAnnounceReady): New function.
  13468. (isCompletedAnnounceReady): New function.
  13469. (isDefaultAnnounceReady): New function.
  13470. (isAnnounceReady): New function.
  13471. (getAnnounceUrl): New function.
  13472. (announceStart): New function.
  13473. (announceFailure): New function.
  13474. (announceSuccess): New function.
  13475. (isAllAnnounceFailed): New function.
  13476. (resetAnnounce): New function.
  13477. (processAnnounceResponse): New function.
  13478. (needMorePeerConnection): New function.
  13479. (noMoreAnnounce): New function.
  13480. * src/TrackerUpdateCommand.h
  13481. (getTrackerResponse): int->size_t
  13482. * src/TorrentMan.h
  13483. (isStoppedAnnounceReady): New function.
  13484. (isCompletedAnnounceReady): New function.
  13485. (isDefaultAnnounceReady): New function.
  13486. (announceInterval): New variable.
  13487. (isAnnounceReady): New function.
  13488. (getAnnounceUrl): New function.
  13489. (announceStart): New function.
  13490. (announceFailure): New function.
  13491. (announceSuccess): New function.
  13492. (isAllAnnounceFailed): New function.
  13493. (resetAnnounce): New function.
  13494. (processAnnounceResponse): New function.
  13495. (needMorePeerConnection): New function.
  13496. (noMoreAnnounce): New function.
  13497. * src/TrackerWatcherCommand.cc
  13498. (TrackerWatherCommand): Removed interval and checkPoint.
  13499. (execute): Rewritten.
  13500. (createCommand): New function.
  13501. (createRequestCommand): Rewritten.
  13502. * src/TrackerUpdateCommand.cc
  13503. (MetaFileUtil.h): Removed.
  13504. (DelegatingPeerListProcessor.h): Removed.
  13505. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13506. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13507. Request -> RequestHandle:
  13508. * src/HttpResponseCommand.h: Request->RequestHandle
  13509. * src/AbstractCommand.cc: Request->RequestHandle
  13510. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13511. * src/HttpRequestCommand.cc: Request->RequestHandle
  13512. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13513. * src/AbstractCommand.h: Request->RequestHandle
  13514. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13515. * src/HttpResponseCommand.cc: Request->RequestHandle
  13516. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13517. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13518. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13519. * src/HttpConnection.h: Request->RequestHandle
  13520. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13521. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13522. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13523. * src/DownloadCommand.h: Request->RequestHandle
  13524. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13525. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13526. * src/HttpRequestCommand.h: Request->RequestHandle
  13527. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13528. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13529. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13530. * src/HttpDownloadCommand.h: Request->RequestHandle
  13531. * src/FtpConnection.cc: Request->RequestHandle
  13532. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13533. * src/UrlRequestInfo.cc: Request->RequestHandle
  13534. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13535. * src/HttpConnection.h: Request->RequestHandle
  13536. * src/DownloadCommand.cc: Request->RequestHandle
  13537. * src/FtpConnection.h: Request->RequestHandle
  13538. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13539. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13540. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13541. * src/Request.h
  13542. (SharedHandle.h): New include.
  13543. (RequestHandle): New type definition.
  13544. (Requests): Redefined.
  13545. To add MULTITRACKER support:
  13546. * src/TrackerWatcherCommand.h
  13547. (createRequestCommand): New function.
  13548. * src/DownloadEngineFactory.cc
  13549. (newTorrentConsoleEngine): Removed req.
  13550. * src/prefs.h
  13551. (PREF_TRACKER_MAX_TRIES): New definition.
  13552. * src/TorrentMan.cc
  13553. (TorrentMan): Removed req. Added trackerNumTry.
  13554. (~TorrentMan): Removed req.
  13555. (setupInternal1): Added announceList.
  13556. * src/TorrentRequestInfo.cc
  13557. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13558. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13559. * src/main.cc
  13560. (main): Added PREF_TRACKER_MAX_TRIES.
  13561. * src/TorrentMan.h
  13562. (Request.h): Removed.
  13563. (AnnounceList.h): New include.
  13564. (trackerNumTry): New variable.
  13565. (req): Removed.
  13566. (announceList): New variable.
  13567. * src/TrackerWatcherCommand.cc
  13568. (execute): Rewritten.
  13569. (createRequestCommand): New function.
  13570. * src/TrackerUpdateCommand.cc
  13571. (execute): Updated with the use of AnnounceList.
  13572. * src/AnnounceList.cc: New class.
  13573. * src/AnnounceList.h: New class.
  13574. To fix typo:
  13575. * src/prefs.h
  13576. (PREF_MAX_TRIES): max_try->max_tries
  13577. To not to decode "+" as space in URL decode:
  13578. * src/Util.cc
  13579. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13580. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13581. To add timeout to async name resolution:
  13582. * src/AbstractCommand.h
  13583. (nameResolveFinished): New function. This is not elegant way. It needs
  13584. to be more refined.
  13585. (nameResolverCheck): New variable.
  13586. * src/AbstractCommand.cc
  13587. (AbstractCommand): Added nameResolverCheck.
  13588. (execute): Added the check whether the name resolution has finished.
  13589. (setNameResolverCheck): Set nameResolverCheck to true.
  13590. (disableNameResolverCheck): Set nameResolverCheck to false.
  13591. (nameResolverFinished): New function.
  13592. * src/FtpInitiateConnectionCommand.h
  13593. (nameResolverFinished): New function.
  13594. * src/FtpInitiateConnectionCommand.cc
  13595. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13596. * src/HttpInitiateConnectionCommand.h
  13597. (nameResolverFinished): New function.
  13598. * src/HttpInitiateConnectionCommand.cc
  13599. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13600. * src/prefs.h
  13601. (PREF_DNS_TIMEOUT): New definition.
  13602. * src/main.cc
  13603. (main): Added PREF_DNS_TIMEOUT.
  13604. To add the support for a non-compact response from a tracker:
  13605. * src/PeerListProcessor.h: New class.
  13606. * src/DefaultPeerListProcessor.h: New class.
  13607. * src/DefaultPeerListProcessor.cc: New class.
  13608. * src/CompactPeerListProcessor.h: New class.
  13609. * src/CompactPeerListProcessor.cc: New class.
  13610. * src/DelegatingPeerListProcessor.h: New class.
  13611. * src/DelegatingPeerListProcessor.cc: New class.
  13612. * src/TorrentMan.cc
  13613. (addPeer): New function(overload).
  13614. (addPeer): Delete unused peers only when new peer is added.
  13615. * src/TorrentMan.h
  13616. (PeerListProcessor.h): Included.
  13617. (Peers): Removed.
  13618. (addPeer): New function(overload).
  13619. * src/TrackerUpdateCommand.cc
  13620. (netinet/in.h): Removed.
  13621. (DelegatingPeerListProcessor.h): Included.
  13622. (execute): Updated to use DelegatingPeerListProcessor.
  13623. To fix the memory leak in TorrentMan::peers:
  13624. * src/PeerAbstractCommand.cc
  13625. (onAbort): Added peer->resetStatus().
  13626. * src/Peer.h
  13627. (resetStatus): Made public.
  13628. To improve the precision of the speed calculation:
  13629. * src/SpeedCalc.h
  13630. (nextInterval): New variable.
  13631. * src/SpeedCalc.cc
  13632. (reset): Added nextInterval.
  13633. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13634. (changeSw): Set nextInterval to 15 seconds relative to the current
  13635. instant time.
  13636. * src/main.cc
  13637. (showVersion): Updated.
  13638. (showUsage): Updated.
  13639. * Release 0.8.1
  13640. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13641. * src/main.cc
  13642. (showUsage): Commented out --min-segment-size option.
  13643. (main): Commented out --min-segment-size option.
  13644. * Release 0.8.0
  13645. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13646. * src/*.{h,cc}:
  13647. Added an exception to the license which allows linking with OpenSSL.
  13648. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13649. * src/AbstractCommand.cc
  13650. (execute): Check whether the download has finished before checking
  13651. socket status.
  13652. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13653. Do not exit even if no segment is available.
  13654. * src/prefs.h
  13655. (PREF_STARTUP_IDLE_TIME): New definition.
  13656. * src/PeerInteractionCommand.cc
  13657. (executeInternal): Removed max speed limit. Because it performs bad.
  13658. (receiveMessages): Added max speed limit. This was better than above,
  13659. but still a little bit to be desired. Sometimes the download speed
  13660. became much faster than I specified.
  13661. * src/SpeedCalc.h
  13662. (start): New variable.
  13663. (accumulatedLength): New variable.
  13664. (getAvgSpeed): New function.
  13665. * src/SpeedCalc.cc
  13666. (reset): Added start, accumulatedLength.
  13667. (update): Added calculation of an average speed.
  13668. (getAvgSpeed): New function.
  13669. * src/DownloadCommand.h
  13670. (sw): Removed.
  13671. * src/main.cc
  13672. (main): Added PREF_STARTUP_IDLE_TIME.
  13673. * src/PeerStat.h
  13674. (STATUS): Added REQUEST_IDLE.
  13675. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13676. (getAvgDownloadSpeed): New function
  13677. (requestIdle): New function.
  13678. * src/SegmentMan.h
  13679. (SegmentEntryHandle): New type definition.
  13680. (SegmentEntries): Now holds SegmentEntryHandle.
  13681. (findSlowerSegmentEntry): New funtion.
  13682. * src/SegmentMan.cc
  13683. (save): Updated according to the changes in SegmentEntries.
  13684. (read): Updated according to the changes in SegmentEntries.
  13685. (FindSegmentEntryByIndex): Updated according to the changes in
  13686. SegmentEntries.
  13687. (FindSegmentEntryByCuid): Updated according to the changes in
  13688. SegmentEntries.
  13689. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13690. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13691. Renamed uitr as itr.
  13692. (findSlowerSegmentEntry): New function.
  13693. (getSegment): Updated according to the changes in SegmentEntries.
  13694. Added the feature that cancels the segment with slow server and fast
  13695. one takes it over.
  13696. (cancelSegment): Updated according to the changes in SegmentEntries.
  13697. (getDownloadLength): Updated according to the changes in
  13698. SegmentEntries.
  13699. (init): Assigned 0 to bitfield after deleting it.
  13700. * src/DownloadCommand.cc
  13701. (STARTUP_IDLE_TIME): Removed.
  13702. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13703. * src/PeerChokeCommand.cc
  13704. (optUnchokingPeer): Updated according to the changes in Peer.
  13705. (ResetDelta): Removed.
  13706. (UploadFaster): Updated according to the changes in Peer.
  13707. (DownloadFaster): Updated according to the changes in Peer.
  13708. (execute): I clarify the meaning of "upload" and "download" here.
  13709. "upload" means the transfer from localhost to remote host.
  13710. "download" means the transfer from remote host to localhost.
  13711. Based on this rule, I swapped orderByUploadRate and
  13712. orderByDownloadRate.
  13713. * src/PeerInteractionCommand.cc
  13714. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13715. (executeInternal): Removed the argument of
  13716. peerInteraction->sendMessages().
  13717. (receiveMessages): Rewritten download speed limit.
  13718. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13719. * src/HttpResponseCommand.cc
  13720. (handleDefaultEncoding): If file size is unknown in torrent request,
  13721. do not call segmentMan->initBitfield() here.
  13722. Disabled persistent connection feature in torrent request.
  13723. * src/UrlRequestInfo.h
  13724. (UrlRequestInfo): Removed const qualifier from option.
  13725. * src/TorrentMan.h
  13726. (TransferStat): New class.
  13727. (deltaDownloadLength): Removed.
  13728. (deltaUploadLength): Removed.
  13729. (addDeltaDownloadLength): Removed.
  13730. (getDeltaDownloadLength): Removed.
  13731. (resetDeltaDownloadLength): Removed.
  13732. (addDeltaUploadLength): Removed.
  13733. (getDeltaUploadLength): Removed.
  13734. (resetDeltaUploadLength): Removed.
  13735. (addActivePeer): Added peer->activate().
  13736. (deleteActivePeer): Added peer->deactivate().
  13737. (calculateStat): New function.
  13738. * src/TorrentMan.cc
  13739. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13740. (calculateStat): New function.
  13741. * src/PeerInteraction.h
  13742. (uploadLimit): Removed.
  13743. (option): New variable.
  13744. (setUploadLimit): Removed.
  13745. (getUploadSpeed): Removed.
  13746. (sendMessages): Removed the argument "currentUploadSpeed".
  13747. * src/PeerInteraction.cc
  13748. (prefs.h): Included.
  13749. (PeerInteraction): Removed uploadLimit. Added option.
  13750. (sendMessages): Rewritten upload speed limit.
  13751. (sendHandshake): Removed the argument from sendMessages().
  13752. (sendBitfield): Removed the argument from sendMessages().
  13753. * src/PeerAbstractCommand.cc
  13754. (execute): Commented out the portion of upload limit.
  13755. (onAbort): Removed peer->resetStatus().
  13756. * src/TorrentRequestInfo.cc
  13757. (timeoutSpecified): Declared extern.
  13758. (execute): Set timeout to 180 if timeout is not specified by.
  13759. command-line.
  13760. * src/PieceMessage.cc
  13761. (receivedAction): Added peer->updateDownloadLength().
  13762. Removed peer->addPeerUpload().
  13763. Removed torrentMan->addDeltaDownloadLength().
  13764. (send): Added peer->updateUploadLength().
  13765. Removed peer->addPeerDownload().
  13766. Removed torrentMan->addDeltaUploadLength().
  13767. * src/main.cc
  13768. (timeoutSpecified): New variable.
  13769. (main): Set timeoutSpecified to false.
  13770. If the command-line option "--upload-limit" is specified, then
  13771. timeoutSpecified is set to true. This option will remain in the next
  13772. release, but be deprecated in the future release.
  13773. * src/TorrentRequestInfo.h
  13774. (TorrentRequestInfo): Removed const qualifier from op.
  13775. * src/PeerStat.h
  13776. (uploadSpeed): New variable.
  13777. (PeerStat): Added default value to cuid.
  13778. (calculateUploadSpeed): New function.
  13779. (updateUploadLength): New function.
  13780. (getMaxUploadSpeed): New function.
  13781. (getAvgUploadSpeed): New function.
  13782. (reset): Added uploadSpeed. Set status to IDLE.
  13783. * src/TorrentDownloadEngine.h
  13784. (cp): Declared as Time.
  13785. (sessionDownloadLengthArray): Removed.
  13786. (sessionUploadLengthArray): Removed.
  13787. (currentCp): Removed.
  13788. (lastCalcStat): New variable
  13789. (lastElapsed): Removed.
  13790. (sessionDownloadLength): Removed.
  13791. (calculateStat): New function.
  13792. * src/TorrentDownloadEngine.cc
  13793. (initStatistics): Removed lastElapsed, cp[],
  13794. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13795. currentCp, sessionDownloadLength.
  13796. Added cp.reset() and lastCalcStat.reset().
  13797. (calculateSpeed): Changed the name of the argument.
  13798. (calculateStatistics): Rewritten.
  13799. (calculateStat): New function.
  13800. * src/Peer.h
  13801. (PeerStat.h): Included.
  13802. (peerUpload): Removed.
  13803. (peerDownload): Removed.
  13804. (peerStat): New variable.
  13805. (sessionUploadLength): New variable.
  13806. (sessionDownloadLength): New variable.
  13807. (deltaUpload): Removed.
  13808. (deltaDownload): Removed.
  13809. (resetStatus): Made private.
  13810. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13811. Removed peerUpload, peerDownload.
  13812. (updateUploadLength): New function.
  13813. (addDeltaUpload): Removed.
  13814. (updateDownloadLength): New function.
  13815. (resetDeltaUpload): Removed.
  13816. (getDeltaUpload): Removed.
  13817. (addDeltaDownload): Removed.
  13818. (calculateUploadSpeed): New function.
  13819. (resetDeltaDownload): Removed.
  13820. (getDeltaDownload): Removed.
  13821. (calculateDownloadSpeed): New function.
  13822. (getSessionUploadLength): New function.
  13823. (getSessionDownloadLength): New function.
  13824. (activate): New function.
  13825. (deactivate): New function.
  13826. (addPeerUpload): Removed.
  13827. (setPeerUpload): Removed.
  13828. (getPeerUpload): Removed.
  13829. (addPeerDownload): Removed.
  13830. (setPeerDownload): Removed.
  13831. (getPeerDownload): Removed.
  13832. * src/Peer.cc
  13833. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13834. * src/MetalinkRequestInfo.h
  13835. (MetalinkRequestInfo): Removed const qualifier from op.
  13836. * src/RequestInfo.h
  13837. (op): Removed const qualifier.
  13838. (RequestInfo): Removed const qualifier from op.
  13839. * src/prefs.h
  13840. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13841. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13842. * src/PeerInteractionCommand.cc
  13843. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13844. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13845. * src/PeerInteraction.cc
  13846. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13847. * src/main.cc
  13848. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13849. Added the description of "--max-download-limit" option.
  13850. Removed the description of "--upload-limit" option.
  13851. Added the description of "--max-upload-limit" option.
  13852. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13853. Added "--max-download-limit" option and "--max-upload-limit" option.
  13854. Added the warning message if "--upload-limit" option is used.
  13855. * src/DownloadCommand.cc
  13856. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13857. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13858. To rewrite segment download mechanism for HTTP/FTP download.
  13859. Use BitfieldMan to manage segment download.
  13860. * src/HttpResponseCommand.h
  13861. (executeInternal): Pass the reference of segment.
  13862. * src/AbstractCommand.cc
  13863. (prepareForRetry): Call segmentMan->cancelSegment here.
  13864. (onAbort): Call segmentMan->cancelSegment here.
  13865. * src/HttpDownloadCommand.cc
  13866. (prepareForNextSegment): New function.
  13867. * src/DownloadEngineFactory.cc
  13868. (newConsoleEngine): Removed splitter.
  13869. (newTorrentConsoleEngine): Removed splitter.
  13870. * src/Request.h
  13871. (segment): Renamed from seg.
  13872. * src/FtpInitiateConnectionCommand.h
  13873. (executeInternal): Pass the reference of segment.
  13874. * src/AbstractCommand.h
  13875. (executeInternal): Pass the reference of segment.
  13876. * src/pref.h
  13877. (PREF_SEGMENT_SIZE): New definition.
  13878. * src/HttpProxyRequestCommand.h
  13879. (executeInternal): Pass the reference of segment.
  13880. * src/HttpResponseCommand.cc
  13881. (checkResponse): Allowed status 206 when a request range starts 0.
  13882. (handleDefaultEncoding): Rewritten the code related to Segment.
  13883. (handleOtherEncoding): Rewritten the code related to Segment.
  13884. * src/SegmentMan.h
  13885. (SegmentEntry): New class.
  13886. (SegmentEntries): New type definition.
  13887. (bitfield): New variable.
  13888. (usedSegmentEntries): New variable.
  13889. (onNullBitfield): New function.
  13890. (checkoutSegment): New function.
  13891. (segments): Removed.
  13892. (splitter): Removed.
  13893. (unregisterId): Removed.
  13894. (getSegment): New function(overload)
  13895. (getDownloadedSize): Removed.
  13896. (cancelSegment): New function.
  13897. (completeSegment): New function.
  13898. (initBitfield): New function.
  13899. (hasSegment): New function.
  13900. (getDownloadLength): New function.
  13901. * src/BitfieldMan.h
  13902. (getStartIndex): New function.
  13903. (getEndIndex): New function.
  13904. (getMissingUnusedIndex): New function(overload).
  13905. (getSparseMissingUnusedIndex): New function.
  13906. * src/BitfieldMan.cc
  13907. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13908. (getMissingUnusedIndex): New function(overload).
  13909. (Range): New class.
  13910. (getStartIndex): New function.
  13911. (getEndIndex): New function.
  13912. (getSparseMissingUnusedIndex): New function.
  13913. (isBitSetInternal): Return false if the given index is less than 0.
  13914. * src/HttpInitiateConnectionCommand.h
  13915. (executeInternal): Pass the reference of segment.
  13916. * src/FtpNegotiateCommand.h
  13917. (executeInternal): Pass the reference of segment.
  13918. * src/FtpNegotiateCommand.cc
  13919. (recvSize): Initialize bitfield here.
  13920. * src/FtpTunnelResponseCommand.h
  13921. (executeInternal): Pass the reference of segment.
  13922. * src/HttpConnection.cc
  13923. (createRequest): Rewritten range header processing.
  13924. * src/DownloadCommand.h
  13925. (executeInternal): Pass the reference of segment.
  13926. (prepareForRetry): Removed.
  13927. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13928. function.
  13929. * src/main.cc
  13930. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13931. * src/SegmentMan.cc
  13932. (SegmentMan): Added bitfield. Removed splitter.
  13933. (~SegmentMan): Added bitfield. Removed splitter.
  13934. (unregisterId): Removed.
  13935. (getSegment): Rewritten.
  13936. (updateSegment): Rewritten.
  13937. (save): Rewritten.
  13938. (read): Rewritten.
  13939. (finished): Rewritten.
  13940. (getDownloadedSize): Removed.
  13941. (initBitfield): New function.
  13942. (FindSegmentEntryByIndex): New function object.
  13943. (FindSegmentEntryByCuid): New function object.
  13944. (checkoutSegment): New function.
  13945. (onNullBitfield): New function.
  13946. (getSegment): New function(overload).
  13947. (CancelSegment): New function object.
  13948. (cancelSegment): New function.
  13949. (completeSegment): New function.
  13950. (hasSegment): New function.
  13951. (getDownloadLength): New function.
  13952. * src/FtpInitiateConnectionCommand.cc
  13953. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13954. * src/Segment.h: Rewritten.
  13955. * src/Segment.cc (operator<<): New function.
  13956. * src/HttpDownloadCommand.h
  13957. (prepareForNextSegment): New function.
  13958. * src/Request.cc
  13959. (resetUrl): Made segment null.
  13960. * src/DownloadEngine.cc
  13961. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13962. * src/HttpProxyRequestCommand.h
  13963. (executeInternal): Pass the reference of segment.
  13964. * src/DownloadCommand.cc
  13965. (executeInternal): Rewritten the code related to Segment.
  13966. (prepareForRetry): Removed.
  13967. (prepareForNextSegment): Rewritten.
  13968. * src/FtpTunnelResponseCommand.h
  13969. (executeInternal): Pass the reference of segment.
  13970. To add HTTP 1.1 persistent connection support(experimental)
  13971. * src/HttpRequestCommand.cc
  13972. (executeInternal): Disable keep alive if it is disabled by
  13973. configuration.
  13974. * src/Request.h
  13975. (keepAlive): New variable.
  13976. (isKeepAlive): New function.
  13977. (setKeepAlive): New function.
  13978. * src/pref.h
  13979. (PREF_HTTP_KEEP_ALIVE): New definition.
  13980. * src/HttpResponseCommand.cc
  13981. (executeInternal): Check the remote server supports keep alive.
  13982. * src/HttpConnection.cc
  13983. (createRequest): Send "Connection: close" only if keep alive is
  13984. disabled.
  13985. * src/main.cc
  13986. (main):
  13987. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13988. To add max download speed limit:
  13989. * src/pref.h
  13990. (PREF_MAX_SPEED_LIMIT): New definition.
  13991. * src/PeerInteractionCommand.cc
  13992. (executeInternal): Added max download speed limit. Not tested yet.
  13993. * src/SegmentMan.h
  13994. (PeerStats): New type definition.
  13995. (peerStats): New variable.
  13996. (registerPeerStat): New function.
  13997. (FindPeerStat): New function object.
  13998. (getPeerStat): New function.
  13999. (calculateDownloadSpeed): New function.
  14000. * src/SpeedCalc.h: New class.
  14001. * src/SpeedCalc.cc: New class.
  14002. * src/main.cc
  14003. (main):
  14004. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14005. download speed is not restricted).
  14006. * src/PeerStat.h: New class.
  14007. * src/SegmentMan.cc
  14008. (registerPeerStat): New function.
  14009. (calculateDownloadSpeed): New function.
  14010. * src/DownloadCommand.cc
  14011. (STARTUP_IDLE_TIME): New definition.
  14012. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14013. downloadStart.
  14014. (~DownloadCommand): Call peerStat->downloadStop.
  14015. (executeInternal): Added download speed limitter. Rewritten lowest
  14016. speed limitter.
  14017. * src/HttpConnection.cc
  14018. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14019. * src/AbstractCommand.cc
  14020. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14021. Added hostname to the error message.
  14022. * src/ConsoleDownloadEngine.cc
  14023. (calculateStatistics): Initialize psize with dlSize.
  14024. * src/PieceMessage.cc
  14025. (receivedAction): Do not call peerInteraction->abortPiece here.
  14026. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14027. * src/BitfieldMan.h
  14028. (clearAllUseBit): New function.
  14029. (setAllUseBit): New function.
  14030. * src/BitfieldMan.cc
  14031. (clearAllBit): Do not clear useBitfield here.
  14032. (clearAllUseBit): New function.
  14033. (setAllUseBit): New function.
  14034. * src/Piece.cc
  14035. (clearAllBlock): Call bitfield->clearAllUseBit().
  14036. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14037. To make filename URL-decoded:
  14038. * src/HttpResponseCommand.h: Updated doc.
  14039. * src/HttpResponseCommand.cc
  14040. (determinFilename): Made filename URL-decoded.
  14041. * src/FtpInitiateConnectionCommand.cc
  14042. (executeInternal): Made filename URL-decoded.
  14043. * src/Util.h (urldecode): New function.
  14044. * src/Util.cc (urldecode): New function.
  14045. To fix a bug that caused assertion failure in ares_strerror:
  14046. * src/NameResolver.cc (callback): Fixed the bug.
  14047. * Release 0.7.3
  14048. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14049. To add --seed-time and --seed-ratio command-line option:
  14050. * src/Option.h (getAsDouble): New function.
  14051. * src/Option.cc (getAsDouble): New function.
  14052. * src/SeedCheckCommand.h: New class.
  14053. * src/SeedCheckCommand.cc: New class.
  14054. * src/DownloadEngineFactory.cc
  14055. (SeedCheckCommand.h): Included.
  14056. (UnionSeedCriteria.h): Included.
  14057. (TimeSeedCriteria.h): Included.
  14058. (ShareRatioSeedCriteria.h): Included.
  14059. (newTorrentConsoleEngine): Added the processing of seed option.
  14060. * src/SeedCriteria.h: New class.
  14061. * src/ShareRatioSeedCriteria.h: New class.
  14062. * src/TimeSeedCriteria.h: New class.
  14063. * src/UnionSeedCriteria.h: New class.
  14064. * src/prefs.h
  14065. (PREF_SEED_TIME): New definition.
  14066. (PREF_SEED_RATIO): New definition.
  14067. * src/main.cc
  14068. (showUsage): Added --seed-time and --seed-ratio option.
  14069. (main): Added --seed-time and --seed-ratio option.
  14070. Made default log file name "/dev/null".
  14071. * src/SharedHandle.h
  14072. (SharedHandle): Copy constructor. Made it assignable from the
  14073. SharedHandle of the subclasses.
  14074. (operator=): Made it assignable from the SharedHandle of the
  14075. subclasses.
  14076. (getRefCount): New function.
  14077. To add notice log level and the switch to write log to stdout. This
  14078. switch is configurable per log level.
  14079. * src/Logger.h
  14080. (notice): New function.
  14081. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14082. constant.
  14083. * src/LogFactory.cc
  14084. (getInstance): The use of NullLogger was removed. A log message with
  14085. notice log level was made written to stdout along with log file.
  14086. * src/NullLogger.h
  14087. (notice): New function.
  14088. * src/SimpleLogger.h
  14089. (writeHeader): Added the 'file' argument.
  14090. (writeLog): Added the 'file' argument.
  14091. (writeFile): New function.
  14092. (stdoutField): New variable.
  14093. (SimpleLogger): Removed the default constructor.
  14094. (SimpleLogger): Made the default value of logfile 0.
  14095. (debug): Added 'virtual' keyword.
  14096. (info): Added 'virtual' keyword.
  14097. (warn): Added 'virtual' keyword.
  14098. (error): Added 'virtual' keyword.
  14099. (notice): New function.
  14100. (setStdout): New function.
  14101. * src/SimpleLogger.cc
  14102. (WRITE_LOG): Replaced writeLog with writeFile.
  14103. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14104. (SimpleLogger): Removed the default constructor.
  14105. (setStdout): New function.
  14106. (writeLog): Added the handling of NOTICE log level.
  14107. (writeFile): New function.
  14108. (notice): New function.
  14109. * src/TorrentMan.h: Updated doc.
  14110. * src/BitfieldMan.h: Updated doc.
  14111. * src/TrackerWatcherCommand.cc
  14112. (execute): Return true if error occurred in the request to the tracker
  14113. and halt is requested.
  14114. * src/TrackerUpdateCommand.cc
  14115. (execute): Return true if error occurred in the request to the tracker
  14116. and halt is requested.
  14117. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14118. DownloadEngine:
  14119. * src/TorrentConsoleDownloadEngine.h
  14120. (onSelectiveDownloadingCompletes): Removed.
  14121. * src/TorrentConsoleDownloadEngine.cc
  14122. (onSelectiveDownloadingCompletes): Removed.
  14123. * src/TorrentDownloadEngine.h
  14124. (onEndOfRun): Added 'virtual' keyword.
  14125. (afterEachIteration): Removed.
  14126. (onSelectiveDownloadingCompletes): Removed.
  14127. * src/TorrentDownloadEngine.cc
  14128. (onEndOfRun): Removed filenameFixed.
  14129. (afterEachIteration): Removed.
  14130. * src/TorrentMan.cc
  14131. (completePiece): Call onDownloadComplete here.
  14132. (onDownloadComplete): Added 2 log messages.
  14133. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14134. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14135. * src/NameResolver.h: Added the prototype declaration of callback().
  14136. To support c-ares library:
  14137. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14138. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14139. * src/FtpInitiateConnectionCommand.h:
  14140. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14141. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14142. * src/HttpInitiateConnectionCommand.h:
  14143. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14144. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14145. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14146. #1542285 by tizianomueller)
  14147. * src/HttpInitiateConnectionCommand.cc:
  14148. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14149. * src/FtpInitiateConnectionCommand.cc:
  14150. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14151. * src/DownloadEngine.h:
  14152. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14153. * src/DownloadEngine.cc:
  14154. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14155. To fix the bug that causes compilation failure with metalink-support
  14156. disabled(bug#1543587):
  14157. * src/main.cc: Fixed with the patch by tizianomueller.
  14158. * Release 0.7.2
  14159. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14160. * src/main.cc
  14161. (main): Added a message to inform users that aria2 is starting to
  14162. verify checksum.
  14163. * src/RequestInfo.cc
  14164. (printDownloadAbortMessage): Added a message to inform users that
  14165. transfer can be resumed.
  14166. * src/FeatureConfig.cc
  14167. (FEATURE_ASYNC_DNS): New definition.
  14168. (FeatureConfig): Added aysnc DNS entry.
  14169. To replace CommandUuid with Command* in SocketEntry and
  14170. NameResolverEntry:
  14171. * src/DownloadEngine.h
  14172. (CommandUuids): Removed.
  14173. (SocketEntry::commandUuid): Removed.
  14174. (SocketEntry::command): New variable.
  14175. (SocketEntry::SocketEntry): Updated.
  14176. (SocketEntry::operator==): Updated.
  14177. (NameResolverEntry::commandUuid): Removed.
  14178. (NameResolverEntry::command): New variable.
  14179. (NameResolverEntry::NameResolverEntry): Updated.
  14180. (NameResolverEntry::operator==): Updated.
  14181. (waitData): Changed the argument type.
  14182. (addSocketForReadCheck): Changed the argument type.
  14183. (deleteSocketForReadCheck): Changed the argument type.
  14184. (addSocketForWriteCheck): Changed the argument type.
  14185. (deleteSocketForWriteCheck): Changed the argument type.
  14186. (addNameResolverCheck): Changed the argument type.
  14187. (deleteNameResolverCheck): Changed the argument type.
  14188. * src/DownloadEngine.cc
  14189. (FindCommand): Removed.
  14190. (run): Removed activeUuid. Added activeCommands instead.
  14191. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14192. (AccumulateActiveCommand): New function object.
  14193. (waitData): Use AccumulateActiveCommand.
  14194. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14195. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14196. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14197. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14198. (addNameResolverCheck): Use Command instead of CommandUuid.
  14199. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14200. * src/AbstractCommand.cc
  14201. (disableReadCheckSocket): Updated according to the changes in
  14202. DownloadEngine.
  14203. (setReadCheckSocket): Updated according to the changes in
  14204. DownloadEngine.
  14205. (disableWriteCheckSocket): Updated according to the changes in
  14206. DownloadEngine.
  14207. (setWriteCheckSocket): Updated according to the changes in
  14208. DownloadEngine.
  14209. (setNameResolverCheck): Updated according to the changes in
  14210. DownloadEngine.
  14211. (disableNameResolverCheck): Updated according to the changes in
  14212. DownloadEngine.
  14213. * src/AbstractCommand.cc
  14214. (disableReadCheckSocket): Updated according to the changes in
  14215. DownloadEngine.
  14216. (setReadCheckSocket): Updated according to the changes in
  14217. DownloadEngine.
  14218. (disableWriteCheckSocket): Updated according to the changes in
  14219. DownloadEngine.
  14220. (setWriteCheckSocket): Updated according to the changes in
  14221. DownloadEngine.
  14222. * release 0.7.1
  14223. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14224. To handle the case where some BitTorrent tracker requires all letters
  14225. except for [A-Za-z0-9] is URL encoded.
  14226. * src/Util.h
  14227. (torrentUrlencode): New function.
  14228. * src/Util.cc
  14229. (ctype.h): Included.
  14230. (torrentUrlencode): New function.
  14231. * src/TrackerWatcherCommand.cc
  14232. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14233. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14234. To add asynchronous DNS support(libares):
  14235. * src/AbstractCommand.h
  14236. (setNameResolverCheck): New function.
  14237. (disableNameResolverCheck): New function
  14238. (resolveHostname): New function.
  14239. * src/AbstractCommand.cc
  14240. (setNameResolverCheck): New function.
  14241. (disableNameResolverCheck): New function
  14242. (resolveHostname): New function.
  14243. * src/FtpInitiateConnectionCommand.h
  14244. (nameResolver): New function.
  14245. * src/FtpInitiateConnectionCommand.cc
  14246. (Util.h): Included.
  14247. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14248. disableWriteCheckSocket.
  14249. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14250. (executeInternal): Added async DNS support.
  14251. * src/HttpInitiateConnectionCommand.h
  14252. (nameResolver): New function.
  14253. * src/HttpInitiateConnectionCommand.cc
  14254. (DlRetryEx.h): Included.
  14255. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14256. disableWriteCheckSocket.
  14257. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14258. (executeInternal): Added async DNS support.
  14259. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14260. by extern "C" declaration.
  14261. * src/NameResolver.cc: New class.
  14262. * src/Util.h:
  14263. (isNumberAndDotsNotation): New function
  14264. * src/Util.cc
  14265. (isNumberAndDotsNotation): New function.
  14266. * src/DownloadEngine.h
  14267. (NameResolver.h): Included.
  14268. (NameResolverEntry): New class.
  14269. (NameResolverEntries): New type definition.
  14270. (addNameResolverCheck): New function.
  14271. (deleteNameResolverCheck): New function.
  14272. * src/DownloadEngine.cc
  14273. (run): Initialize cp with 0.
  14274. (SetDescriptor::operator()): Added for NameResolverEntry.
  14275. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14276. (waitData): Check nameResolver entries.
  14277. (updateFdSet): Update fds in nameResolver entries.
  14278. (addNameResolverCheck): New function.
  14279. (deleteNameResolverCheck): new function.
  14280. * src/PeerInteractionCommand.cc
  14281. (executeInternal): Fixed wrong socket handling.
  14282. * src/main.cc
  14283. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14284. * src/Util.cc
  14285. (fileChecksum): Removed the call to ctx.digestReset().
  14286. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14287. * po/ru.po: Azamat sent me Russian translation.
  14288. * src/FtpNegotiateCommand.cc
  14289. (recvGreeting): Call disableWriteCheckSocket just after
  14290. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14291. (recvRetr): Recognized status code 125 as a acceptable response code.
  14292. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14293. case-insesitive filesystem(BUG#1531057).
  14294. * src/Time.h: Renamed as TimeA2.h.
  14295. * src/Time.cc: Renamed as TimeA2.cc.
  14296. * src/TimeA2.h: New class.
  14297. * src/TimeA2.cc: New class.
  14298. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14299. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14300. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14301. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14302. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14303. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14304. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14305. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14306. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14307. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14308. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14309. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14310. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14311. * release 0.7.0
  14312. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14313. * src/PeerChokeCommand.h
  14314. (PeerChokeCommand): Rearranged the arguments.
  14315. * src/PeerChokeCommand.cc
  14316. (PeerChokeCommand): Rearranged the arguments.
  14317. * src/MetalinkEntry.h
  14318. (Checksum.h): Included.
  14319. (md5): Removed.
  14320. (sha1): Removed.
  14321. (checksum): New variable.
  14322. (operator=): Updated.
  14323. (check): Removed.
  14324. * src/prefs.h
  14325. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14326. (PREF_FOLLOW_TORRENT): New definition.
  14327. (PREF_SELECT_FILE): New definition.
  14328. (PREF_FOLLOW_METALINK): New definition.
  14329. * src/MetalinkResource.h
  14330. (TYPE_HTTPS): Added to enum TYPE.
  14331. * src/TorrentMan.cc
  14332. (~TorrentMan): Rewritten.
  14333. * src/MultiDiskWriter.cc
  14334. (MultiDiskAdaptor): Updated according to the changes in
  14335. MessageDigestContext.
  14336. (~MultiDiskAdaptor): Updated according to the changes in
  14337. MessageDigestContext.
  14338. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14339. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14340. * src/Util.h
  14341. (fileChecksum): Updated according to the changes in
  14342. MessageDigestContext.
  14343. * src/Util.cc
  14344. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14345. (fileChecksum): Updated according to the changes in
  14346. MessageDigestContext.
  14347. * src/messageDigest.h: Rewritten.
  14348. * src/MetalinkEntry.cc
  14349. (check): Removed.
  14350. (Supported): Updated.
  14351. (dropUnsupportedResource): Fixed a memory leak.
  14352. * src/ShaVisitor.cc
  14353. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14354. (~ShaVisitor): Updated according to the changes in
  14355. MessageDigestContext.
  14356. (visit): Updated according to the changes in MessageDigestContext.
  14357. * src/main.cc
  14358. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14359. command-line option added.
  14360. * src/DownloadEngine.h
  14361. (SocketEntry): New class.
  14362. (SocketEntries): New definition.
  14363. (PairFind): Removed.
  14364. (SockCmdMap): Removed.
  14365. * src/DownloadEngine.cc
  14366. (DownloadEngine): Rewritten.
  14367. (~DownloadEngine): Rewritten.
  14368. (run): Renamed activeCommandUuids as activeUuids.
  14369. (SetDescriptor): Rewritten.
  14370. (AccumulateActiveCommandUuid): Removed.
  14371. (AccumulateActiveUuid): New function object.
  14372. (waitData): Rewritten.
  14373. (updateFdSet): Rewritten.
  14374. (addSocket): Rewritten.
  14375. (deleteSocket): Rewritten.
  14376. (addSocketForReadCheck): Rewritten.
  14377. (deleteSocketForReadCheck): Rewritten.
  14378. (addSocketForWriteCheck): Rewritten.
  14379. (deleteSocketForWriteCheck): Rewritten.
  14380. * src/Xml2MetalinkProcessor.cc
  14381. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14382. * src/DownloadCommand.cc
  14383. (executeInternal): Added the check routine for lowest speed limit.
  14384. * src/AbstractDiskWriter.cc
  14385. (AbstractDiskWriter): Updated according to the changes in
  14386. MessageDigestContext.
  14387. (~AbstractDiskWriter): Updated according to the changes in
  14388. MessageDigestContext.
  14389. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14390. * src/RequestInfo.h: New class.
  14391. * src/UrlRequestInfo.h: New class.
  14392. * src/UrlRequestInfo.cc: New class.
  14393. * src/TorrentRequestInfo.h: New class.
  14394. * src/TorrentRequestInfo.cc: New class.
  14395. * src/MetalinkRequestInfo.h: New class.
  14396. * src/MetalinkRequestInfo.cc: New class.
  14397. * src/Checksum.h: New class.
  14398. * src/DownloadEngineFactory.h: New class.
  14399. * src/DownloadEngineFactory.cc: New class.
  14400. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14401. * src/Option.h
  14402. (getAsBool): New function.
  14403. * src/Option.cc
  14404. (prefs.h): Included.
  14405. (defined): 0-length value is now recognized as undefined.
  14406. (getAsInt): Rewritten.
  14407. (getAsLLInt): Rewritten.
  14408. (getAsBool): New function.
  14409. * src/FeatureConfig.h: Rewritten.
  14410. * src/FeatureConfig.cc: Rewritten.
  14411. * src/prefs.h
  14412. (PREF_STDOUT_LOG): New definition.
  14413. (PREF_LOG): New definition.
  14414. (PREF_DIR): New definition.
  14415. (PREF_OUT): New definition.
  14416. (PREF_SPLIT): New definition.
  14417. (PREF_DAEMON): New definition.
  14418. (PREF_REFERER): New definition.
  14419. (PREF_TORRENT_FILE): New definition.
  14420. (PREF_LISTEN_PORT): New definition.
  14421. (PREF_METALINK_FILE): New definition.
  14422. (PREF_METALINK_VERSION): New definition.
  14423. (PREF_METALINK_LANGUAGE): New definition.
  14424. (PREF_METALINK_OS): New definition.
  14425. (PREF_METALINK_SERVERS): New definition.
  14426. * src/main.cc
  14427. (main): Following command-line parameters are now put into Option
  14428. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14429. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14430. metalinkLanguage, metalinkOs, metalinkServers
  14431. To fix the bug that aria2 can not handle http response header properly.
  14432. * src/HttpHeader.cc
  14433. (put): Made name lowercased.
  14434. (defined): Made name lowercased.
  14435. (getFirst): Made name lowercased.
  14436. (get): Made name lowercased.
  14437. (getFirstAsInt): Rewritten.
  14438. (getFirstAsLLInt): Rewritten.
  14439. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14440. * src/TorrentMan.h:
  14441. (advertisePiece): Updated doc.
  14442. (getAdvertisedPieceIndexes): Updated doc.
  14443. (removeAdvertisedPiece); New function.
  14444. * src/TorrentMan.cc
  14445. (FindElapsedHave): New function object.
  14446. (removeAdvertisedPiece): New function.
  14447. * src/HaveEraseCommand.h: New class.
  14448. * src/HaveEraseCommand.cc: New class.
  14449. * src/FeatureConfig.h: New class.
  14450. * src/FeatureConfig.cc: New class.
  14451. * src/Request.h
  14452. (defaultPorts): Removed.
  14453. * src/Request.cc
  14454. (FeatureConfig.h): Included.
  14455. (Request): Removed the statements related to defaultPorts.
  14456. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14457. A default port number is now retrieved from FeatureConfig.
  14458. * src/main.cc
  14459. (HaveEraseCommand.h): Included.
  14460. (showVersion): Added the output of feature list.
  14461. (main): Added HaveEraseCommand to command queue in BitTorrent
  14462. downloading.
  14463. * src/PeerInteractionCommand.h
  14464. (chokeCheckPoint): Commented out.
  14465. (periodicExecPoint): New variable.
  14466. * src/PeerInteractionCommand.cc
  14467. (executeInternal): Following methods are now called in at least every
  14468. 0.5 seconds to reduce CPU usage:
  14469. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14470. checkHave(), sendKeepAlive().
  14471. (checkLongTimePeerChoking): Commented out.
  14472. * src/BitfieldMan.h
  14473. (getNthBitIndex): Changed the method signature.
  14474. (getMissingIndexRandomly): Changed the method signature.
  14475. * src/BitfieldMan.cc
  14476. (getNthBitIndex): Rewritten
  14477. (getMissingIndexRandomly): Rewritten.
  14478. (hasMissingPiece): Rewritten.
  14479. (getMissingIndex): Refactored.
  14480. (getMissingUnusedIndex); Refactored.
  14481. (getMissingIndex): Refactored.
  14482. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14483. * src/PeerMessage.h
  14484. (Piece.h): Included.
  14485. (SharedHandle.h): Included.
  14486. (invalidate): New variable.
  14487. (uploading): New variable.
  14488. (isInvalidate): New function.
  14489. (isUploading): New function.
  14490. (onPush): New function.
  14491. (onChoked): New function.
  14492. (onCanceled): New function.
  14493. (onAbortPiece): New function.
  14494. (PeerMessageHandle): New type definition.
  14495. * src/PeerMessage.cc
  14496. (PeerMessage): Added the initialization for invalidate and uploading.
  14497. * src/CancelMessage.h
  14498. (CancelMessage): Rewritten.
  14499. * src/RejectMessage.h
  14500. (RejectMessage): Rewritten.
  14501. * src/Metalinker.h
  14502. (operator=): Defined.
  14503. * src/MetaEntry.h
  14504. (operator=): Defined.
  14505. * src/MetalinkResource.h
  14506. (operator=): Defined.
  14507. * src/AllowedFastMessage.h
  14508. (AllowedFastMessage): Rewritten.
  14509. * src/HandshakeMessage.h
  14510. (HandshakeMessage): New function(overload).
  14511. * src/HandshakeMessage.cc
  14512. (HandshakeMessage): Rewritten.
  14513. (init): New function.
  14514. * src/HaveMessage.h
  14515. (HaveMessage): Rewritten.
  14516. * src/Time.h
  14517. (operator=): Defined the function body here.
  14518. * src/Time.cc
  14519. (operator=): Removed.
  14520. * src/SocketCore.h
  14521. (operator==): Defined here.
  14522. (operator!=): Defined here.
  14523. (operator<): Defined here.
  14524. * src/SocketCore.cc
  14525. (operator==): Removed.
  14526. (operator<): Removed.
  14527. * src/BitfieldMan.h
  14528. (operator=): Defined the function body here.
  14529. * src/BitfieldMan.cc
  14530. (operator=): Removed.
  14531. * src/TorrentMan.h
  14532. (deleteErrorPeer): Removed.
  14533. (deleteUnusedPeer); New function.
  14534. * src/TorrentMan.cc
  14535. (addPeer): Call deleteUnusedPeer.
  14536. (deleteErrorPeer): Removed.
  14537. (deleteUnusedPeer): New function.
  14538. * src/PeerAbstractCommand.h
  14539. (setNoCheck): New function.
  14540. (noCheck): New variable.
  14541. * src/PeerAbstractCommand.cc
  14542. (PeerAbstractCommand): Added the initialization of noCheck.
  14543. (execute): Added a check for noCheck.
  14544. (setNoCheck): New function.
  14545. * src/Util.h
  14546. (stdio.h): Included.
  14547. * src/Util.cc
  14548. (unistd.h): Included.
  14549. * src/DefaultDiskWriter.cc
  14550. (unistd.h): Included.
  14551. * src/Peer.h
  14552. (operator==): Defined the function body here.
  14553. (operator!=): Defined the function body here.
  14554. * src/Peer.cc
  14555. (operator==): Removed.
  14556. (operator!=): Removed.
  14557. * src/Piece.h
  14558. (Piece): Defined the function body here(copy constructor).
  14559. (operator=): Defined the function body here.
  14560. (operator==): Defined the function body here.
  14561. * src/Piece.cc
  14562. (Piece): Removed(copy constructor).
  14563. (operator=): Removed.
  14564. (operator==): Removed.
  14565. * src/PeerMessageUtil.h
  14566. (ChokeMessage.h): Removed.
  14567. (UnchokeMessage.h): Removed.
  14568. (InterestedMessage.h): Removed.
  14569. (NotInterestedMessage.h): Removed.
  14570. (HaveMessage.h): Removed.
  14571. (BitfieldMessage.h): Removed.
  14572. (RequestMessage.h): Removed.
  14573. (CancelMessage.h): Removed.
  14574. (PieceMessage.h): Removed.
  14575. (HandshakeMessage.h): Removed.
  14576. (KeepAliveMessage.h): Removed.
  14577. (PortMessage.h): Removed.
  14578. (HaveAllMessage.h): Removed.
  14579. (HaveNoneMessage.h): Removed.
  14580. (PeerConnection.h): Removed.
  14581. (HandshakeMessage.h): Included.
  14582. * src/BitfieldMessage.h
  14583. (init): New function.
  14584. (BitfieldMessage): Rewritten.
  14585. (BitfieldMessage): New function(overload).
  14586. * src/RequestSlot.h
  14587. (operator=): Defined the function body here.
  14588. (operator==): Defined the function body here.
  14589. * src/RequestSlot.cc
  14590. (operator=): Removed.
  14591. (operator==): Removed.
  14592. To remove the dependency on the PeerMessage subclass from
  14593. PeerInteraction:
  14594. * src/PeerMessageFactory.h: New class.
  14595. * src/PeerMessageFactory.cc: New class.
  14596. * src/SimplePeerMessage.cc
  14597. (send): If invalidate is true then do nothing.
  14598. * src/PeerInteractionCommand.cc
  14599. (HandshakeMessage.h): Included.
  14600. (KeepAliveMessage.h): Included.
  14601. (ChokeMessage.h): Included.
  14602. (UnchokeMessage.h): Included.
  14603. (HaveMessage.h): Included.
  14604. (executeInternal): Call setNoCheck().
  14605. Removed setWriteCheckSocket(socket).
  14606. * src/PeerInteraction.h
  14607. (ChokeMessage.h): Removed.
  14608. (UnchokeMessage.h): Removed.
  14609. (InterestedMessage.h): Removed.
  14610. (NotInterestedMessage.h): Removed.
  14611. (HaveMessage.h): Removed.
  14612. (BitfieldMessage.h): Removed.
  14613. (RequestMessage.h): Removed.
  14614. (CancelMessage.h): Removed.
  14615. (PieceMessage.h): Removed.
  14616. (HandshakeMessage.h): Removed.
  14617. (KeepAliveMessage.h): Removed.
  14618. (PortMessage.h): Removed.
  14619. (HaveAllMessage.h): Removed.
  14620. (HaveNoneMessage.h): Removed.
  14621. (RejectMessage.h): Removed.
  14622. (AllowedFastMessage.h): Removed.
  14623. (SuggestPieceMessage.h): Removed.
  14624. (PeerMessageFactory.h): Included.
  14625. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14626. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14627. (PeerMessageFactory): New variable.
  14628. (createPeerMessage): Removed.
  14629. (createHandshakeMessage): Removed.
  14630. (setPeerMessageCommonProperty): Removed.
  14631. (addRequestSlot): New function.
  14632. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14633. (getPeerMessageFactory): New function.
  14634. (createRequestMessage): Removed.
  14635. (createCancelMessage): Removed.
  14636. (createPieceMessage): Removed.
  14637. (createHaveMessage): Removed.
  14638. (createChokeMessage): Removed.
  14639. (createUnchokeMessage): Removed.
  14640. (createInterestedMessage): Removed.
  14641. (createNotInterestedMessage): Removed.
  14642. (createBitfieldMessage): Removed.
  14643. (createKeepAliveMessage): Removed.
  14644. (createHaveAllMessage): Removed.
  14645. (createHaveNoneMessage): Removed.
  14646. (createRejectMessage): Removed.
  14647. (createAllowedFastMessage): Removed.
  14648. * src/PeerInteraction.cc
  14649. (PeerInteraction): Allocate PeerMessageFactory here.
  14650. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14651. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14652. PieceMessage::ID.
  14653. (addMessage): Simplified by using PeerMessage::onPush().
  14654. (addRequestSlot): New function.
  14655. (rejectAllPieceMessageInQueue): Simplified by using
  14656. PeerMessage::onChoked().
  14657. (rejectPieceMessageInQueue): Simplified by using
  14658. PeerMessage::onCanceled().
  14659. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14660. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14661. (createHandshakeMessage): Removed.
  14662. (createPeerMessage): Removed.
  14663. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14664. (setPeerMessageCommonProperty): Removed.
  14665. (createRequestMessage): Removed.
  14666. (createCancelMessage): Removed.
  14667. (createPieceMessage): Removed.
  14668. (createHaveMessage): Removed.
  14669. (createChokeMessage): Removed.
  14670. (createUnchokeMessage): Removed.
  14671. (createInterestedMessage): Removed.
  14672. (createNotInterestedMessage): Removed.
  14673. (createBitfieldMessage): Removed.
  14674. (createKeepAliveMessage): Removed.
  14675. (createHaveAllMessage): Removed.
  14676. (createHaveNoneMessage): Removed.
  14677. (createRejectMessage): Removed.
  14678. (createAllowedFastMessage): Removed.
  14679. * src/PieceMessage.h
  14680. (createRejectMessage): New function.
  14681. (PieceMessage): Rewritten.
  14682. (onChoked): New function.
  14683. (onCanceled): New function.
  14684. * src/PieceMessage.cc
  14685. (send): If invalidate is true then do nothing, just return.
  14686. (createRejectMessage): New function.
  14687. (onChoked): New function.
  14688. (onCanceled): New function.
  14689. * src/RequestMessage.h
  14690. (RequestMessage): Rewritten.
  14691. (onPush): New function.
  14692. (onAbortPiece): New function.
  14693. * src/RequestMessage.cc
  14694. (onPush): New function.
  14695. (onAbortPiece): New function.
  14696. Update fd_set when a socket is added or deleted in order to improve
  14697. performance:
  14698. * src/DownloadEngine.h
  14699. (rfdset): New variable.
  14700. (wfdset): New variable.
  14701. (updateFdSet): New function.
  14702. * src/DownloadEngine.cc
  14703. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14704. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14705. (waitData): Copy rfdset and wfdset.
  14706. (updateFdSet): New function.
  14707. (addSocket): Call updateFdSet.
  14708. (deleteSocket): Call updateFdSet.
  14709. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14710. To add the support for Metalink3.0 backward compatible links:
  14711. * src/Request.h
  14712. (SAFE_CHARS): Added '#'.
  14713. (METALINK_MARK): New definition.
  14714. * src/Request.cc
  14715. (parseUrl): Added the support for Metalink3.0 backward compatible
  14716. links.
  14717. etc
  14718. * src/PeerInteraction.cc
  14719. (MsgPushBack): Removed.
  14720. (sendMessages): Use STL copy and back_inserter.
  14721. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14722. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14723. * src/TorrentMan.h
  14724. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14725. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14726. * src/SharedHandle.h: New class.
  14727. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14728. * src/HttpResponseCommand.h
  14729. (HttpResponseCommand): Wrapped Socket.
  14730. * src/SocketCore.h
  14731. (operator==): New function.
  14732. (operator!=): New function.
  14733. (operator<): New function.
  14734. (getSockfd): New function.
  14735. (isOpen): New function.
  14736. (writeData): New function.
  14737. * src/SocketCore.cc
  14738. (operator==): New function.
  14739. (operator!=): New function.
  14740. (operator<): New function.
  14741. * src/AbstractCommand.h
  14742. (socket): Changed its type to SocketHandle.
  14743. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14744. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14745. (disableReadCheckSocket): New function.
  14746. (disableWriteCheckSocket): New function.
  14747. (readCheckTarget): Changed its type to SocketHandle.
  14748. (writeCheckTarget): Changed its type to SocketHandle.
  14749. (AbstractCommand): Replaced Socket with SocketHandle.
  14750. * src/AbstractCommand.cc
  14751. (AbstractCommand): Replaced Socket with SocketHandle.
  14752. (~AbstractCommand): Removed the deallocation for Socket object.
  14753. (disableReadCheckSocket): New function.
  14754. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14755. (disableWriteCheckSocket): New function.
  14756. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14757. * src/HttpDownloadCommand.cc
  14758. (DownloadCommand): Replaced Socket with SocketHandle.
  14759. * src/PeerAbstractCommand.h
  14760. (socket): Changed its type to SocketHandle.
  14761. (peer): Changed its type to PeerHandle.
  14762. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14763. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14764. (disableReadCheckSocket): New function.
  14765. (disableWriteCheckSocket): New function.
  14766. (readCheckTarget): Changed its type to SocketHandle.
  14767. (writeCheckTarget): Changed its type to SocketHandle.
  14768. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14769. Replaced Peer with PeerHandle.
  14770. * src/HttpRequestCommand.cc
  14771. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14772. Use disableReadCheckSocket.
  14773. * src/PeerInitiateConnectionCommand.h
  14774. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14775. * src/PeerChokeCommand.cc
  14776. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14777. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14778. (execute): Use PeerHandle.
  14779. * src/PeerConnection.h
  14780. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14781. (socket): Changed its type to SocketHandle.
  14782. (PeerConnection): Replaced Socket with SocketHandle.
  14783. * src/PeerConnection.cc
  14784. (PeerConnection): Replaced Socket with SocketHandle.
  14785. * src/PeerInteractionCommand.h
  14786. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14787. Replaced Peer with PeerHandle.
  14788. * src/PeerInteractionCommand.cc
  14789. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14790. Replaced Peer with PeerHandle.
  14791. (executeInternal): Use disableWriteCheckSocket.
  14792. Use HandshakeMessageHandle.
  14793. (receiveMessages): Use PeerMessageHandle.
  14794. (prepareForNextPeer): Use PeerHandle.
  14795. * src/HttpProxyRequestCommand.h
  14796. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14797. * src/HttpResponseCommand.cc
  14798. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14799. * src/TorrentMan.cc
  14800. (nullPeer): Added external reference.
  14801. (~TorrentMan): Removed the deallocation of the elements of peers.
  14802. (addPeer): Rewritten.
  14803. (isPeerAvailable): Use nullPeer.
  14804. (deleteOldpeers): Replaced with deleteErrorPeer.
  14805. (deleteErrorPeer): New function.
  14806. (getPeer): Use PeerHandle and nullPeer.
  14807. (hasMissingPiece): Replaced Peer with PeerHandle.
  14808. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14809. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14810. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14811. (getMissingPiece): Replaced Peer with PeerHandle.
  14812. * src/FtpNegotiateCommand.cc
  14813. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14814. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14815. (recvGreeting): Use disableWriteCheckSocket.
  14816. (recvPasv): Removed the allocation of Socket.
  14817. Use disableReadCheckSocket.
  14818. (sendRestPasv): Use disableWriteCheckSocket.
  14819. (recvRetr): Changed assertion.
  14820. * src/PeerInteraction.h
  14821. (SharedHandle.h): Included SharedHandle.h.
  14822. (PeerMessageHandle): New type definition.
  14823. (HandshakeMessageHandle): New type definition.
  14824. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14825. (peer): Changed its type to PeerHandle.
  14826. (createHandshakeMessage): Replaced HandshakeMessage with
  14827. HandshakeMessageHandle.
  14828. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14829. (PeerInteraction): Replaced Peer with PeerHandle.
  14830. Replaced Socket with SocketHandle.
  14831. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14832. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14833. (receiveHandshake): Replaced HandshakeMessage with
  14834. HandshakeMessageHandle.
  14835. * src/PeerInteraction.cc
  14836. (PeerInteraction): Replaced Peer with PeerHandle.
  14837. Replaced Socket with SocketHandle.
  14838. (~PeerInteraction): Removed the deallocation of the elements of
  14839. messageQueue.
  14840. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14841. (isSendingMessageInProgress): Replaced PeerMessage with
  14842. PeerMessageHandle.
  14843. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14844. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14845. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14846. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14847. (abortPiece): Use PeerMessageHandle.
  14848. (receiveHandshake): Replaced HandshakeMessage with
  14849. HandshakeMessageHandle. Removed try-catch block.
  14850. (createHandshakeMessage): Replaced HandshakeMessage with
  14851. HandshakeMessageHandle.
  14852. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14853. Removed try-catch block.
  14854. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14855. * src/HttpProxyResponseCommand.cc
  14856. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14857. * src/FtpTunnelResponseCommand.h
  14858. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14859. * src/HttpConnection.cc
  14860. (HttpConnection): Replaced Socket with SocketHandle.
  14861. * src/PeerAbstractCommand.cc
  14862. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14863. (~PeerAbstractCommand): Removed the deallocation of socket.
  14864. Use disableReadCheckSocket, disableWriteCheckSocket.
  14865. (disableReadCheckSocket): New function.
  14866. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14867. (disableWriteCheckSocket): New function.
  14868. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14869. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14870. * src/FtpTunnelRequestCommand.cc
  14871. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14872. (~FtpTunnelRequestCommand): Corrected indentation.
  14873. * src/DownloadCommand.h
  14874. (DownloadCommand): Replaced Socket with SocketHandle.
  14875. * src/PeerListenCommand.cc
  14876. (PeerListenCommand): Removed the initialization of socket.
  14877. (~PeerListenCommand): Removed the deallocation of socket.
  14878. (bindPort): Use SocketHandle.
  14879. (execute): Use SocketHandle and PeerHandle.
  14880. * src/FtpDowndloadCommand.cc
  14881. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14882. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14883. * src/main.cc
  14884. (main): Corrected indentation.
  14885. * src/HttpInitiateConnectionCommand.cc
  14886. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14887. (executeInternal): Removed the allocation of socket.
  14888. * src/HttpRequestCommand.h
  14889. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14890. * src/FtpNegotiationCommand.h
  14891. (dataSocket): Changed its type to SocketHandle.
  14892. (serverSocket): Changed its type to SocketHandle.
  14893. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14894. * src/TorrentMan.h
  14895. (MAX_PEER_UPDATE): Removed.
  14896. (MAX_PEERS): New definition.
  14897. (Peers): The element is now of type PeerHandle.
  14898. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14899. (getPeer): Replaced Peer with PeerHandle.
  14900. (deleteOldErrorPeers): Removed.
  14901. (deleteErrorPeer): New function.
  14902. (hasMissingPiece): Replaced Peer with PeerHandle.
  14903. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14904. (getMissingPiece): Replaced Peer with PeerHandle.
  14905. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14906. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14907. (addActivePeer): Replaced Peer with PeerHandle.
  14908. (deleteActivePeer): Replaced Peer with PeerHandle.
  14909. Added a check for the return value of find.
  14910. * src/FtpTunnelResponseCommand.cc
  14911. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14912. * src/FtpInitiateConnectionCommand.cc
  14913. (executeInternal): Removed the allocation of socket.
  14914. * src/DownloadEngine.h
  14915. (Sockets): An element is now of type SocketHandle.
  14916. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14917. (CommandUuids): New type definition.
  14918. (rsockets): Changed its type to SockCmdMap.
  14919. (wsockets): Changed its type to SockCmdMap.
  14920. (addSocket): Rewritten.
  14921. (deleteSocket): Rewritten.
  14922. (addSocketForReadCheck): Rewritten.
  14923. (deleteSocketForReadCheck): Rewritten.
  14924. (addSocketForWriteCheck): Rewritten.
  14925. (deleteSocketForWriteCheck): Rewritten.
  14926. (PairFind): New template class.
  14927. * src/HttpDownloadCommand.h
  14928. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14929. * src/FtpConnection.cc
  14930. (FtpConnection): Replaced Socket with SocketHandle.
  14931. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14932. block.
  14933. * src/InitiateConnectionCommandFactory.cc
  14934. (DlAbortEx.h): Included DlAbortEx.h.
  14935. (createInitiateConnectionCommand): Throw exception if the protocol of
  14936. requested URI is not supported.
  14937. * src/Peer.cc
  14938. (nullPeer): Changed its type to PeerHandle.
  14939. (operator==): New function.
  14940. (operator!=): New function.
  14941. * src/Peer.h
  14942. (SharedHandle.h): Included SharedHandle.h.
  14943. (operator==): New function.
  14944. (operator!=): New function.
  14945. (Peer): Added the default constructor.
  14946. Use resetStatus() to initialize member variables.
  14947. (nullPeer): Removed.
  14948. * src/TrackerUpdateCommand.cc
  14949. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14950. with MIN_PEERS.
  14951. * src/PeerListenCommand.h
  14952. (socket): Changed its type to SocketHandle.
  14953. * src/Command.h
  14954. (CommandUuid): New type definition.
  14955. (uuid): New variable.
  14956. (uuidGen): New variable.
  14957. (Command): Added the initialization of uuid.
  14958. (getUuid): New function.
  14959. * src/Socket.h
  14960. (Socket): Removed.
  14961. (SocketHandle): New type definition.
  14962. * src/DownloadEngine.h
  14963. (FindCommand): New function object.
  14964. (run): The portion of socket check was rewritten.
  14965. (SetDescriptor): New function object.
  14966. (AccumulateActiveCommandUuid): New function object.
  14967. (waitData): Rewritten.
  14968. (addSocket): Rewritten.
  14969. (deleteSocket): Rewritten.
  14970. (addSocketForReadCheck): Rewritten.
  14971. (addSocketForWriteCheck): Rewritten.
  14972. (deleteSocketForReadCheck): Rewritten.
  14973. (deleteSocketForWriteCheck): Rewritten.
  14974. * src/HttpProxyResponseCommand.h
  14975. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14976. * src/HttpConnection.h
  14977. (socket): Changed its type to SocketHandle.
  14978. (HttpConnection): Replaced Socket with SocketHandle.
  14979. * src/PeerInitiateConnectionCommand.cc
  14980. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14981. (executeInternal): Removed the allocation of socket.
  14982. (prepareForNextPeer): Use PeerHandle.
  14983. * src/PeerMessage.h
  14984. (peer): Changed its type to PeerHandle.
  14985. (getPeer): Replaced Peer with PeerHandle.
  14986. (setPeer): Replaced Peer with PeerHandle.
  14987. * src/DownloadCommand.cc
  14988. (DownloadCommand): Replaced Socket with SocketHandle.
  14989. * src/FtpConnection.h
  14990. (socket): Changed its type to SocketHandle.
  14991. (FtpConnection): Replaced Socket with SocketHandle.
  14992. (sendPort); Replaced Socket with SocketHandle.
  14993. * src/FtpDowndloadCommand.h
  14994. (ctrlSocket): Changed its type to SocketHandle.
  14995. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14996. * src/HttpProxyRequestCommand.cc
  14997. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14998. * src/FtpTunnelRequestCommand.h
  14999. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15000. etc
  15001. * src/PeerChokeCommand.h
  15002. (setAllPeerChoked): Removed.
  15003. (setAllPeerResetDelta): Removed.
  15004. * src/PeerChokeCommand.cc
  15005. (setAllPeerChoked): Removed.
  15006. (ChokePeer): New function object.
  15007. (setAllPeerResetDelta): Removed.
  15008. (ResetDelta): New function object.
  15009. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15010. (execute): Show download speed when the local node is a seeder.
  15011. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15012. using STL.
  15013. * src/TrackerWatcherCommand.h
  15014. (MIN_PEERS): Removed.
  15015. * src/TorrentMan.cc
  15016. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15017. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15018. To fix the bug that .aria2 file is not saved if downloading is stopped
  15019. by the errors:it results that aria2 can not resume downloading:
  15020. * src/main.cc
  15021. (normalDownload): Added the call to save().
  15022. (main): Added the deletion of the elements in 'reserved'.
  15023. To fix log:
  15024. * src/PeerInteraction.cc
  15025. (receiveHandshake): Fixed log.
  15026. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15027. To improve download performance in BitTorrent:
  15028. * src/TorrentMan.cc
  15029. (getPeer): Check the number of connections. Return nullPeer if
  15030. it is greater than MAX_PEER_UPDATE.
  15031. This code was originally here, but was removed in 0.5.1.
  15032. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15033. To improve the conditional compilation:
  15034. * src/MultiDiskWriter.h:
  15035. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15036. * src/MultiDiskWriter.cc:
  15037. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15038. * src/Util.h:
  15039. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15040. Added ENABLE_BITTORRENT around computeFastSet().
  15041. * src/Util.cc:
  15042. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15043. Added ENABLE_BITTORRENT around computeFastSet().
  15044. * src/messageDigest.h:
  15045. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15046. * src/ShaVisitor.h:
  15047. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15048. * src/ShaVisitor.cc:
  15049. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15050. * src/main.cc:
  15051. Added ENABLE_BITTORRENT around includes and blocks related to
  15052. BitTorrent.
  15053. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15054. digest support is not available.
  15055. * src/AbstractDiskWriter.h:
  15056. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15057. * src/AbstractDiskWriter.cc:
  15058. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15059. * src/MetalinkEntry.cc
  15060. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15061. support is not available.
  15062. To add command-line options for Metalink:
  15063. * src/main.cc:
  15064. Added metalink-version, metalink-language, metalink-os,
  15065. follow-metalink.
  15066. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15067. * src/main.cc: Use these definition.
  15068. * Release 0.6.0
  15069. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15070. To add Metalink support(http/ftp only):
  15071. * src/AbstractCommand.h
  15072. (tryReserved): New function.
  15073. * src/AbstractCommand.cc
  15074. (execute): Call tryReserved().
  15075. (tryReserved): New function.
  15076. * src/Request.h
  15077. (Requests): New type definition.
  15078. * src/SegmentMan.h
  15079. (reserved): New variable.
  15080. * src/Util.h
  15081. (fileChecksum): New function.
  15082. (toUpper): New function.
  15083. (toLower): New function.
  15084. * src/Util.cc
  15085. (messageDigest.h): Included.
  15086. (trim): Trim \r\n\t.
  15087. (fileChecksum): New function.
  15088. (toUpper): New function.
  15089. (toLower): New function.
  15090. * src/main.cc
  15091. (normalDownload): New function.
  15092. (main): Added 2 command-line options: metalink-file,
  15093. metalink-connection. Their usage has not been written yet.
  15094. * src/MetalinkProcessor.h: New class.
  15095. * src/Xml2MetalinkProcessor.h: New class.
  15096. * src/Xml2MetalinkProcessor.cc: New class.
  15097. * src/MetalinkEntry.h: New class.
  15098. * src/MetalinkEntry.cc: New class.
  15099. * src/MetalinkResource.h: New class.
  15100. * src/MetalinkResource.cc: New class.
  15101. To add md5 message digest checking:
  15102. * src/messageDigest.h: Rewritten.
  15103. * src/MultiDiskWriter.cc: Updated according to the changes in
  15104. messageDigest.h.
  15105. * src/ShaVisitor.cc: Updated according to the changes in
  15106. messageDigest.h.
  15107. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15108. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15109. messageDigest.h.
  15110. To fix a bug that causes segfault when the payload length in peer
  15111. message is less than 0:
  15112. * src/PeerConnection.cc:
  15113. (receiveMessage): Fixed the bug.
  15114. * src/PeerMessageUtil.cc
  15115. (checkLength): Throw an exception if length is less than or equals to
  15116. 0.
  15117. To add new interfaces to Base64 encoding/decoding:
  15118. * src/Base64.h
  15119. (part_encode): Changed the method signature.
  15120. (encode): New function(overload).
  15121. (decode): New function(overload).
  15122. * src/Base64.cc
  15123. (part_encode): Rewritten.
  15124. (encode): Rewritten.
  15125. (encode): New function(overload).
  15126. To prevent a peer to download same piece if there is an error in
  15127. checksum:
  15128. * src/PieceMessage.cc
  15129. (receivedAction): Call peerInteraction->abortPiece().
  15130. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15131. To fix the bug that causes same have message is sent many times to
  15132. a single peer.
  15133. * src/Time.cc
  15134. (isNewer): Use Util::difftv().
  15135. * src/Util.cc
  15136. (difftv): Added a cast to (long long int).
  15137. * src/TorrentMan.cc
  15138. (advertisePiece): Use push_front.
  15139. (getAdvertisedPieceIndexes): A performance improvement was made.
  15140. To fix the bug that sends tracker requests without a sleep interval
  15141. when the number of connections is less than 15.
  15142. * src/TrackerWatcherCommand.cc
  15143. (execute): Now the number of connections is not a factor to decide
  15144. whether or not a tracker request should be sent or not.
  15145. * src/Time.h
  15146. (setTimeInSec): New function.
  15147. * src/Time.cc
  15148. (setTimeInSec): New function.
  15149. etc.
  15150. * src/ChokeMessage.cc
  15151. (receivedAction): Removed peer->snubbing = false
  15152. * src/PeerConnection.h
  15153. (receiveHandshake): Updated doc.
  15154. * src/TorrentMan.h
  15155. (getAdvertisedPieceIndexes): Updated the method signature.
  15156. * src/TorrentMan.cc
  15157. (getAdvertisedPieceIndexes): Updated the method signature.
  15158. * src/Time.h
  15159. (getTimeInMicros): Added a cast to (long long int).
  15160. (getTimeInMillis): Added a cast to (long long int).
  15161. * Release 0.5.2
  15162. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15163. To make a listening socket non-block:
  15164. * src/SocketCore.h
  15165. (setNonBlockingMode): New function.
  15166. * src/SocketCore.cc
  15167. (setNonBlockingMode): New function.
  15168. (beginListen): Added a call to setNonBlockingMode().
  15169. (acceptConnection): Call setNonBlockingMode().
  15170. (setBlockingMode): Updated.
  15171. To handle tracker's NAT-checking:
  15172. * src/PeerConnection.cc
  15173. (receiveHandshake): 'msg' param is filled with received data and
  15174. its length is assigned to 'length' param, even if all handshake
  15175. message is not yet received.
  15176. * src/PeerInteractionCommand.cc
  15177. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15178. a new peer connects to localhost.
  15179. A call to peerInteraction->sendHandshake() was removed because
  15180. it is called from peerInteraction->receiveHandshake(true).
  15181. * src/PeerInteraction.h
  15182. (quickReplied): New variable.
  15183. (receiveHandshake): Added an argument.
  15184. * src/PeerInteraction.cc
  15185. (PeerInteraction): Added the initialization of quickReplied.
  15186. (receiveHandshake): Send handshake message as soon as the info hash
  15187. in a handshake message from a peer is correct.
  15188. To change the random part of peer id and key parameter:
  15189. * src/TorrentMan.h
  15190. (key): New variable.
  15191. * src/TorrentMan.cc
  15192. (setupInternal1): Use Util::randomAlpha() to generate random part
  15193. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15194. key is also generated by Util::randomAlpha() and it is now 8 character
  15195. long.
  15196. * src/Util.h
  15197. (randomAlpha): New function.
  15198. * src/Util.cc
  15199. (randomAlpha): New function.
  15200. * src/TrackerWatcherCommand.cc
  15201. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15202. Added no_peer_id=1.
  15203. Set snubbing flag to false when a choke message is received from a
  15204. snubbed peer.
  15205. * src/ChokeMessage.cc
  15206. (receivedAction): Set snubbing flag to false.
  15207. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15208. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15209. * src/SimpleLogger.h (writeHeader): New function.
  15210. * src/SimpleLogger.cc (writeHeader): New function.
  15211. (writeLog): Fixed the bug that causes segfaults if exception message
  15212. contains an unescaped "%" character.
  15213. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15214. when a tracker request fails.
  15215. * src/Request.cc (parseUrl): Query string is now handled properly.
  15216. * Release 0.5.1
  15217. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15218. To add Time class which represents a specific instant in time and
  15219. its precision is microseconds. Time checking procedures were rewritten
  15220. using this object.
  15221. * src/Time.h: New class.
  15222. * src/Time.cc: New class.
  15223. * src/AbstractCommand.h
  15224. (updateCheckPoint): Removed.
  15225. (isTimeoutDetected): Removed.
  15226. (checkPoint): Changed the type to Time.
  15227. (timeout): New variable.
  15228. (setTimeout): New function.
  15229. * src/AbstractCommand.cc
  15230. (AbstractCommand): Removed the initialization of checkPoint.
  15231. Added the initialization of timeout.
  15232. (updateCheckPoint): Removed.
  15233. (isTimeoutDetected): Removed.
  15234. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15235. * src/PeerChokeCommand.h
  15236. (checkPoint): Changed the type to Time.
  15237. * src/PeerChokeCommand.cc
  15238. (PeerChokeCommand): Removed the initialization of checkPoint.
  15239. (execute): Rewritten using Time object.
  15240. * src/TrackerWatcherCommand.h
  15241. (checkPoint): Changed the type to Time.
  15242. * src/TrackerWatcherCommand.cc
  15243. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15244. (execute): Rewritten.
  15245. * src/ConsoleDownloadEngine.h
  15246. (cp): Changed the type to Time.
  15247. (startup): Changed the type to Time.
  15248. * src/ConsoleDownloadEngine.cc
  15249. (initStatistics): Use cp.reset(), startup.reset().
  15250. (calculateStatistics): Rewritten using Time object.
  15251. * src/PeerAbstractCommand.h
  15252. (updateCheckPoint): Removed.
  15253. (isTimeoutDetected): Removed.
  15254. (checkPoint): Changed the type to Time.
  15255. * src/PeerAbstractCommand.cc
  15256. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15257. (updateCheckPoint): Removed.
  15258. (isTimeoutDetected): Removed.
  15259. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15260. * src/PeerInteractionCommand.cc
  15261. (PeerInteractionCommand): Removed the initializations of struct
  15262. timeval variables.
  15263. * src/PeerInteractionCommand.h
  15264. (keepAliveCheckPoint): Changed the type to Time.
  15265. (chokeCheckPoint): Changed the type to Time.
  15266. (freqCheckPoint): Changed the type to Time.
  15267. (haveCheckTime): Changed the type to Time.
  15268. * src/PeerInteractionCommand.cc
  15269. (executeInternal): Rewritten using Time object.
  15270. (detectMessageFlooding): Rewritten using Time object.
  15271. (checkLongTimePeerChoking): Rewritten using Time object.
  15272. (sendKeepAlive): Rewritten using Time object.
  15273. (checkHave): Rewritten using Time object.
  15274. * src/SleepCommand.h
  15275. (checkPoint): Changed the type to Time.
  15276. * src/SleepCommand.cc
  15277. (SleepCommand): Removed the initialization of checkPoint.
  15278. (execute): Rewritten using Time object.
  15279. * src/TorrentAutoSaveCommand.h
  15280. (checkPoint): Changed the type to Time.
  15281. * src/TorrentAutoSaveCommand.cc
  15282. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15283. (execute): Rewritten.
  15284. * src/DownloadCommand.h
  15285. (sw): Changed the type to Time.
  15286. * src/DownloadCommand.cc
  15287. (DownloadCommand): Removed the initialization of sw.
  15288. (executeInternal): Rewritten.
  15289. * src/RequestSlot.h
  15290. (dispatchedTime): Changed the type to Time.
  15291. * src/RequestSlot.cc
  15292. (RequestSlot): Removed the call to setDispatchedTime().
  15293. (setDispatchedTime): Rewirtten.
  15294. (isTimeout): Rewritten.
  15295. (getLatencyInMillis): Rewritten.
  15296. * src/TorrentDownloadEngine.h
  15297. (cp): Changed the type to Time[2].
  15298. (startup): Changed the type to Time.
  15299. * src/TorrentDownloadEngine.cc
  15300. (initStatistics): Rewritten.
  15301. (calculateStatistics): Rewritten.
  15302. * src/DownloadEngine.cc
  15303. (run): Rewritten.
  15304. To detect all attempts to connect to the tracker are failed:
  15305. * src/AbstractCommand.cc
  15306. (execute): Increment e->segmentMan->errors if a command aborted.
  15307. * src/SegmentMan.h
  15308. (errors): New variable.
  15309. * src/SegmentMan.cc
  15310. (SegmentMan): Added the initialization of errors.
  15311. (init): Added the initialization of errors.
  15312. * src/TrackerWatcherCommand.cc
  15313. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15314. request was failed.
  15315. To handle snubbed peers:
  15316. * src/PeerChokeCommand.cc
  15317. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15318. (execute): Snubbed peers don't get unchoked.
  15319. * src/PeerInteraction.h
  15320. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15321. * src/PeerInteraction.cc
  15322. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15323. back the requested 16k block in 60 seconds.
  15324. * src/PieceMessage.cc
  15325. (receivedAction): A peer's snubbed state is cleard if it sends
  15326. the requested 16k block in 60 seconds.
  15327. * src/Peer.h
  15328. (snubbing): New variable.
  15329. * src/Peer.cc
  15330. (resetStatus): Added snubbed = false.
  15331. To fix the bug that causes have message is not sent:
  15332. * src/PeerInteractionCommand.cc
  15333. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15334. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15335. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15336. * src/TorrentMan.h
  15337. (HaveEntry): New class.
  15338. (advertisePiece): Rewritten.
  15339. (getAdvertisedPieceIndexes): Rewritten.
  15340. (Haves): Changed the type.
  15341. (getAdvertisedPieceIndexes): Added an argument.
  15342. Others:
  15343. * src/TorrentMan.h
  15344. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15345. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15346. * src/TorrentMan.cc
  15347. (getPeer): Don't check the number of connections here.
  15348. (setupInternal1): Changed peerId.
  15349. * src/PeerInteractionCommand.h
  15350. (KEEP_ALIVE_INTERVAL): New definition.
  15351. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15352. * src/main.cc
  15353. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15354. * src/DownloadEngine.h: Removed unnecessary header includes.
  15355. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15356. To fix the bug that causes segfaults if a tracker returns a zero-length
  15357. list as "peers":
  15358. * src/TrackerUpdateCommand.cc
  15359. (execute): Added a check to see wether the type of peers is Data*.
  15360. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15361. * Release 0.5.0
  15362. To fix compile issue with gcc3:
  15363. * src/CancelMessage.h
  15364. (ID): Renamed as ID_t
  15365. (ID_t): New enum.
  15366. * src/RejectMessage.h
  15367. (ID): Renamed as ID_t
  15368. (ID_t): New enum.
  15369. * src/SuggestPieceMessage.h
  15370. (ID): Renamed as ID_t
  15371. (ID_t): New enum.
  15372. * src/AllowedFastMessage.h
  15373. (ID): Renamed as ID_t
  15374. (ID_t): New enum.
  15375. * src/PortMessage.h
  15376. (ID): Renamed as ID_t
  15377. (ID_t): New enum.
  15378. * src/HaveNoneMessage.h
  15379. (ID): Renamed as ID_t
  15380. (ID_t): New enum.
  15381. * src/KeepAliveMessage.h
  15382. (ID): Renamed as ID_t
  15383. (ID_t): New enum.
  15384. * src/HaveAllMessage.h
  15385. (ID): Renamed as ID_t
  15386. (ID_t): New enum.
  15387. * src/UnchokeMessage.h
  15388. (ID): Renamed as ID_t
  15389. (ID_t): New enum.
  15390. * src/BitfieldMessage.h
  15391. (ID): Renamed as ID_t
  15392. (ID_t): New enum.
  15393. * src/PieceMessage.h
  15394. (ID): Renamed as ID_t
  15395. (ID_t): New enum.
  15396. * src/RequestMessage.h
  15397. (ID): Renamed as ID_t
  15398. (ID_t): New enum.
  15399. * src/NotInterestedMessage.h
  15400. (ID): Renamed as ID_t
  15401. (ID_t): New enum.
  15402. * src/ChokeMessage.h
  15403. (ID): Renamed as ID_t
  15404. (ID_t): New enum.
  15405. * src/InterestedMessage.h
  15406. (ID): Renamed as ID_t
  15407. (ID_t): New enum.
  15408. * src/HaveMessage.h
  15409. (ID): Renamed as ID_t
  15410. (ID_t): New enum.
  15411. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15412. * src/PeerAbstractCommand.h
  15413. (beforeSocketCheck): Removed.
  15414. * src/PeerAbstractCommand.cc
  15415. Modified in order to call executeInternal() even if socket check
  15416. and upload limit check fail.
  15417. * src/PeerInteractionCommand.h
  15418. (keepAlive): Removed.
  15419. (sendKeepAlive): New function.
  15420. (checkHave): New function.
  15421. (beforeSocketCheck): Removed.
  15422. * src/PeerInteractionCommand.cc
  15423. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15424. calls to checkHave() and sendKeepAlive().
  15425. (keepAlive): Renamed to sendKeepAlive().
  15426. (sendKeepAlive): New function.
  15427. (beforeSocketCheck): Removed.
  15428. (checkHave): New function.
  15429. * src/BitfieldMan.cc
  15430. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15431. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15432. 0.
  15433. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15434. * src/TorrentMan.h
  15435. (UsedPieces): Removed.
  15436. (Pieces): New type definition.
  15437. * src/Piece.h: Updated doc.
  15438. * src/Peer.h
  15439. (totalLength): Removed.
  15440. * src/Peer.cc
  15441. (updateLatency): Fixed the latency calculation.
  15442. * src/TorrentMan.cc
  15443. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15444. than or equal to MAX_PEER_LIST_SIZE.
  15445. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15446. then return false.
  15447. (deleteOldErrorPeers): Rewritten.
  15448. (deleteUsedPiece): Fixed the miss use of STL remove.
  15449. * src/PeerInteraction.h
  15450. (Pieces): Removed.
  15451. (deleteTimeoutRequestSlot): Removed.
  15452. (deleteCompletedRequestSlot): Removed.
  15453. (checkRequestSlot): New function.
  15454. * src/PeerInteraction.cc
  15455. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15456. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15457. (checkRequestSlot): New function.
  15458. * src/DownloadEngine.cc
  15459. (run): Clear activeSockets before calling waitData().
  15460. (waitData): Removed a call to activeSockets.clear().
  15461. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15462. To attempt to handle EINTR:
  15463. * src/SocketCore.cc
  15464. (isReadable): Added EINTR handling.
  15465. (isWritable): Added EINTR handling.
  15466. To improve the performance:
  15467. * src/AbstractCommand.cc
  15468. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15469. * src/PeerInteractionCommand.h
  15470. (receiveMessage): Renamed as receiveMessages().
  15471. (receiveMessages): New function.
  15472. * src/PeerInteractionCommand.cc
  15473. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15474. () function. detectMessageFlooding() is moved here.
  15475. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15476. (). The flooding detection for have message is comment out.
  15477. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15478. Util::difftv().
  15479. (receiveMessage): Renamed as receiveMessages().
  15480. (receiveMessages): New function.
  15481. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15482. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15483. * src/SleepCommand.cc
  15484. (execute): Use Util::difftvsec() instead of Util::difftv().
  15485. * src/BitfieldMan.h
  15486. (getNthBitIndex): New function.
  15487. (hasMissingPiece): New function.
  15488. (getAllMissingIndexes): New function.
  15489. * src/BitfieldMan.cc
  15490. (countSetBit): Rewritten.
  15491. (getNthBitIndex): New function.
  15492. (getMissingIndexRandomly): Rewritten.
  15493. (hasMissingPiece): New function.
  15494. (getAllMissingIndexes): New function.
  15495. * src/TorrentMan.cc
  15496. (hasMissingPiece): New function.
  15497. (deleteUsedPiece): Rewritten using STL.
  15498. * src/PeerInteraction.cc
  15499. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15500. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15501. (addRequests): Updated the number of pending requests.
  15502. * src/PeerAbstractCommand.cc
  15503. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15504. (execute): Returns true if TorrentMan::isHalt() is true.
  15505. Corrected the condition of upload limit checking.
  15506. * src/Util.h
  15507. (countBit): New function.
  15508. * src/Util.cc
  15509. (nbits): New variable.
  15510. (countBit): New function.
  15511. * src/DownloadEngine.h
  15512. (SockCmdMap): New type definition.
  15513. (waitData): Added an argument.
  15514. (addSocket): Added an argument.
  15515. (addSocketForReadCheck): Added an argument.
  15516. (addSocketForWriteCheck): Added an argument.
  15517. * src/DownloadEngine.cc
  15518. (run): Executes only commands whose sockets are ready to read or write.
  15519. All commands are executed in every 1 second.
  15520. (waitData): Calls select() again if it returned
  15521. EINTR.
  15522. (addSocket): Saves socket and command object pair to the map.
  15523. (deleteSocket): Deletes socket and command object pair from the map.
  15524. (addSocketForReadCheck): Added an argument.
  15525. (addSocketForWriteCheck): Added an argument.
  15526. * src/DownloadCommand.cc
  15527. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15528. To send "event=stopped" to the tracker when the application finishes:
  15529. * src/PeerChokeCommand.h
  15530. (checkPoint): New variable.
  15531. * src/PeerChokeCommand.cc
  15532. (PeerChokeCommand): Added the initialization of checkPoint.
  15533. (execute): The interval check is now done by checkPoint, not
  15534. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15535. * src/TorrentMan.h
  15536. (halt): New function.
  15537. (hasMissingPiece): New function.
  15538. (isHalt): New function.
  15539. (setHalt): New function.
  15540. * src/TorrentMan.cc
  15541. (TorrentMan): Added the initialization of halt.
  15542. * src/TorrentAutoSaveCommand.h
  15543. (checkPoint): New variable.
  15544. * src/PeerListenCommand.cc
  15545. (execute): Returns true if TorrentMan::isHalt() is true.
  15546. * src/main.cc
  15547. (setSignalHander): Added flags argument.
  15548. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15549. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15550. Removed printDownloadAbortMessage() after torrent downloading loop.
  15551. * src/TorrentAutoSaveCommand.cc
  15552. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15553. (execute): Returns true if TorrentMan::isHalt() is true.
  15554. The interval check is now done by checkPoint, not SleepCommand.
  15555. * src/TrackerWatcherCommand.cc
  15556. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15557. event=stopped.
  15558. * src/TrackerUpdateCommand.cc
  15559. (prepareForRetry): Do not use SleepCommand here.
  15560. (execute): Returns true if TorrentMan::isHalt() is true.
  15561. Others:
  15562. * src/TorrentMan.cc
  15563. (getMissingPieceIndex): Updated log message.
  15564. * src/PeerInteraction.cc
  15565. (createPeerMessag): Updated log message.
  15566. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15567. To add the ability to download several pieces in mix in a command and
  15568. increase the number of request slots according to request-cancel
  15569. latency:
  15570. * src/PeerInteractionCommand.cc
  15571. (executeInternal): The number of messages to be received at a time
  15572. is increased from 10 to 50.
  15573. * src/LogFactory
  15574. (getInstance): Added NullLogger.
  15575. * src/NullLogger.h: New class.
  15576. * src/BitfieldMan.h
  15577. (getMissingIndex): New function.
  15578. * src/BitfieldMan.cc
  15579. (getMissingIndex): New function.
  15580. * src/TorrentMan.h
  15581. (checkOutPiece): New function.
  15582. (getMissingPieceIndex): New function.
  15583. (getMissingFastPieceIndex): New function.
  15584. (getMissingFastPiece): New function.
  15585. * src/TorrentMan.cc
  15586. (updatePiece): Rewritten using STL.
  15587. (syncPiece): Rewritten using STL.
  15588. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15589. checkOutPiece().
  15590. (getMissingPieceIndex): New function.
  15591. (getMissingFastPieceIndex): New function.
  15592. (getMissingFastPiece): New function.
  15593. (checkOutPiece): New function.
  15594. * src/PeerInteraction.h
  15595. (Pieces): New type definition.
  15596. (piece): Removed.
  15597. (pieces): New variable.
  15598. (getNewPieceAndSendInterest): Added the "piece" argument.
  15599. (abortPiece): Added the "piece" argument.
  15600. (abortAllPieces): New function.
  15601. (isInRequestSlot): New function.
  15602. (hasDownloadPiece): Added the "index" argument.
  15603. (setDownloadPiece): Removed.
  15604. (getDownloadPiece): Added the "index" argument.
  15605. (updatePiece): New function.
  15606. (createRequestMessage): Added the "index" argument.
  15607. * src/PeerInteraction.cc
  15608. (onChoked): Rewritten.
  15609. (abortPiece): Rewirtten.
  15610. (abortAllPieces): New function.
  15611. (deleteTimeoutRequestSlot): Rewritten.
  15612. Clarified code a little bit.
  15613. (deleteCompletedRequestSlot): Rewritten.
  15614. (isInRequestSlot): New function.
  15615. (syncPiece): Rewritten.
  15616. (updatePiece): New function.
  15617. (getNewPieceAndSendInterest): Rewritten.
  15618. (addRequests): Rewritten.
  15619. (getDownloadPiece): Rewritten.
  15620. (hasDownloadPiece): Rewritten.
  15621. (createRequestMessage): Added the "index" argument.
  15622. * src/common.h
  15623. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15624. (DIV_FLOOR): New definition.
  15625. * src/PieceMessage.cc
  15626. (receivedAction): Update request-piece latency here.
  15627. * src/RequestSlot.h
  15628. (getLatencyInMillis): New function.
  15629. * src/RequestSlot.cc
  15630. (isTimeout): Rewritten using getLatencyInMillis.
  15631. (getLatencyInMillis): New function.
  15632. * src/Piece.h
  15633. (operator==): New function.
  15634. (getMissingBlockIndex): New function.
  15635. * src/Piece.cc
  15636. (operator==): New function.
  15637. (getMissingBlockIndex): New function.
  15638. * src/Peer.h
  15639. (DEFAULT_LATENCY): New definition.
  15640. (latency): New variable.
  15641. (updateLatency): New function.
  15642. (getLatency): New function.
  15643. * src/Peer.cc
  15644. (resetStatus): Reset latecy.
  15645. (updateLatency): New function.
  15646. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15647. * src/SocketCore.cc
  15648. (isReadable): Added secure to the condition.
  15649. * src/HttpConnection.cc
  15650. (receiveResponse): Fixed a bug that causes no response header
  15651. exception.
  15652. * src/Peer.h
  15653. (getFastSet): Fixed the return value type.
  15654. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15655. To remove a wait from download loop:
  15656. * src/DownloadEngine.cc
  15657. (run): Comment out shortSleep.
  15658. To rewrite the message handling:
  15659. * src/SimplePeerMessage.h: New class.
  15660. * src/SimplePeerMessage.cc: New class.
  15661. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15662. (msg): New variable.
  15663. (create): New function.
  15664. (send): Removed.
  15665. (getMessage): New function.
  15666. (getMessageLength): New function.
  15667. * src/CancelMessage.cc
  15668. (create): New function.
  15669. (receivedAction): Replaced deleteRequestMessageInQueue with
  15670. rejectPieceMessageInQueue.
  15671. (send): Removed.
  15672. (getMessage): New function.
  15673. (getMessageLength): New function.
  15674. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15675. (msg): New variable.
  15676. (msgLength): New variable.
  15677. (~BitfieldMessage): Deleted msg.
  15678. (send): Removed.
  15679. (getMessage): New function.
  15680. (getMessageLength): New function.
  15681. * src/BitfieldMessage.cc
  15682. (create): New function.
  15683. (send): Removed.
  15684. (getMessage): New function.
  15685. (getMessageLength): New function.
  15686. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15687. (msg): New variable.
  15688. (sendPredicate): New function.
  15689. (onSendComplete): New function.
  15690. (send): Removed.
  15691. (getMessage): New function.
  15692. (getMessageLength): New function.
  15693. (create): New function.
  15694. * src/ChokeMessage.cc
  15695. (create): New function.
  15696. (send): Removed.
  15697. (sendPredicate): New function.
  15698. (getMessage): New function.
  15699. (getMessageLength): New function.
  15700. (onSendComplete): New function.
  15701. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15702. (msg): New variable.
  15703. (send): Removed.
  15704. (getMessage): New function.
  15705. (getMessageLength): New function.
  15706. * src/KeepAliveMessage.cc
  15707. (send): Removed.
  15708. (getMessage): New function.
  15709. (getMessageLength): New function.
  15710. * src/PortMessage.h
  15711. (create): New function.
  15712. (receivedAction): Updated log message.
  15713. * src/PortMessage.cc: New file.
  15714. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15715. (msg): New variable.
  15716. (sendPredicate): New function.
  15717. (onSendComplete): New function.
  15718. (create): New function.
  15719. (send): Removed.
  15720. (getMessage): New function.
  15721. (getMessageLength): New function.
  15722. * src/UnchokeMessage.cc
  15723. (create): New function.
  15724. (send): Removed.
  15725. (sendPredicate): New function.
  15726. (getMessage): New function.
  15727. (getMessageLength): New function.
  15728. (onSendComplete): New function.
  15729. * src/PieceMessage.h
  15730. (leftPieceDataLength): Removed.
  15731. (leftDataLength): New variable.
  15732. (headerSend): New variable.
  15733. (pendingCount): New variable.
  15734. (msgHeader): New variable.
  15735. (sendPieceData): New function.
  15736. (incrementPendingCount): New function.
  15737. (isPendingCountMax): New function.
  15738. (create): New function.
  15739. (getMessageHeader): New function.
  15740. (getMessageHeaderLength): New function.
  15741. * src/PieceMessage.cc
  15742. (create): New function.
  15743. (getMessageHeader): New function.
  15744. (getMessageHeaderLength): New function.
  15745. (send): Rewritten.
  15746. (sendPieceData): New function.
  15747. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15748. (msg): New variable.
  15749. (create): New function.
  15750. (getMessage): New function.
  15751. (getMessageLength): New function.
  15752. * src/HaveMessage.cc
  15753. (create): New function.
  15754. (send): Removed.
  15755. (sendPieceData): New function.
  15756. (getMessage): New function.
  15757. (getMessageLength): New function.
  15758. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15759. (msg): New variable.
  15760. (create): New function.
  15761. (send): Removed.
  15762. (getMessage): New function.
  15763. (getMessageLength): New function.
  15764. * src/RequestMessage.cc
  15765. (create): New function.
  15766. (receivedAction): Added the handling of fast extension.
  15767. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15768. (send): Removed.
  15769. (getMessage): New function.
  15770. (getMessageLength): New function.
  15771. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15772. (msg): New variable.
  15773. (sendPredicate): New function.
  15774. (onSendComplete): New function.
  15775. (create): New function.
  15776. (getMessage): New function.
  15777. (getMessageLength): New function.
  15778. * src/InterestedMessage.cc
  15779. (create): New function.
  15780. (send): Removed.
  15781. (sendPieceData): New function.
  15782. (getMessage): New function.
  15783. (getMessageLength): New function.
  15784. (onSendComplete): New function.
  15785. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15786. (msg): New variable.
  15787. (sendPieceData): New function.
  15788. (onSendComplete): New function.
  15789. (create): New function.
  15790. (send): Removed.
  15791. (getMessage): New function.
  15792. (getMessageLength): New function.
  15793. * src/NotInterestedMessage.cc
  15794. (create): New function.
  15795. (send): Removed.
  15796. (sendPredicate): New function.
  15797. (getMessage): New function.
  15798. (getMessageLength): New function.
  15799. (onSendComplete): New function.
  15800. * src/AllowedFastMessage.h: New class.
  15801. * src/AllowedFastMessage.cc: New class.
  15802. * src/RejectMessage.h: New class.
  15803. * src/RejectMessage.cc: New class.
  15804. * src/SuggestPieceMessage.h: New class.
  15805. * src/SuggestPieceMessage.cc: New class.
  15806. * src/HaveAllMessage.h: New class.
  15807. * src/HaveAllMessage.cc: New class.
  15808. * src/HaveNoneMessage.h: New class.
  15809. * src/HaveNoneMessage.cc: New class.
  15810. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15811. (msg): New variable.
  15812. (reserved): New variable.
  15813. (create): New function.
  15814. (getId): New function.
  15815. (receivedAction): New function.
  15816. (getMessage): New function.
  15817. (getMessageLength): New function.
  15818. (isFastExtensionSupported): New function.
  15819. * src/HandshakeMessage.cc
  15820. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15821. (create): New function.
  15822. (getMessage): New function.
  15823. (getMessageLength): New function.
  15824. (toString): Added the output of reserved field.
  15825. (check): Added const qualifier.
  15826. (isFastExtensionSupported): New function.
  15827. * src/PeerMessageUtil.h
  15828. (createChokeMessage): Removed.
  15829. (createUnchokeMessage): Removed.
  15830. (createInterestedMessage): Removed.
  15831. (createNotInterestedMessage): Removed.
  15832. (createHaveMessage): Removed.
  15833. (createBitfieldMessage): Removed.
  15834. (createRequestMessage): Removed.
  15835. (createCancelMessage): Removed.
  15836. (createPieceMessage): Removed.
  15837. (createPortMessage): Removed.
  15838. (createChokeMessage): Removed.
  15839. (createUnchokeMessage): Removed.
  15840. (createInterestedMessage): Removed.
  15841. (createNotInterestedMessage): Removed.
  15842. (createHaveMessage): Removed.
  15843. (createBitfieldMessage): Removed.
  15844. (createRequestMessage): Removed.
  15845. (createCancelMessage): Removed.
  15846. (createPieceMessage): Removed.
  15847. (createKeepAliveMessage): Removed.
  15848. (createHandshakeMessage): Removed.
  15849. (setIntParam): New function.
  15850. (createPeerMessageString): New function.
  15851. * src/PeerMessageUtil.cc
  15852. (createChokeMessage): Removed.
  15853. (createUnchokeMessage): Removed.
  15854. (createInterestedMessage): Removed.
  15855. (createNotInterestedMessage): Removed.
  15856. (createHaveMessage): Removed.
  15857. (createBitfieldMessage): Removed.
  15858. (createRequestMessage): Removed.
  15859. (createCancelMessage): Removed.
  15860. (createPieceMessage): Removed.
  15861. (createPortMessage): Removed.
  15862. (createRequestMessage): Removed.
  15863. (createCancelMessage): Removed.
  15864. (createPieceMessage): Removed.
  15865. (createHaveMessage): Removed.
  15866. (createChokeMessage): Removed.
  15867. (createUnchokeMessage): Removed.
  15868. (createInterestedMessage): Removed.
  15869. (createNotInterestedMessage): Removed.
  15870. (createBitfieldMessage): Removed.
  15871. (createKeepAliveMessage): Removed.
  15872. (createHandshakeMessage): Removed.
  15873. (setIntParam): New function.
  15874. (createPeerMessageString): New function.
  15875. * src/PeerConnection.h
  15876. (peer): Removed.
  15877. (torrentMan): Removed.
  15878. (createNLengthMessage): Removed.
  15879. (setIntParam): Removed.
  15880. (writeOutgoingMessageLog): Removed all overloaded functions.
  15881. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15882. (sendMessage): New function.
  15883. (sendHandshake): Removed.
  15884. (sendKeepAlive): Removed.
  15885. (sendChoke): Removed.
  15886. (sendUnchoke): Removed.
  15887. (sendInterested): Removed.
  15888. (sendNotInterested): Removed.
  15889. (sendHave): Removed.
  15890. (sendBitfield): Removed.
  15891. (sendRequest): Removed.
  15892. (sendPiece): Removed.
  15893. (sendPieceHeader): Removed.
  15894. (sendPieceData): Removed.
  15895. (sendCancel): Removed.
  15896. (getPeer): Removed.
  15897. * src/PeerConnection.cc
  15898. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15899. (sendHandshake): Removed.
  15900. (sendKeepAlive): Removed.
  15901. (createNLengthMessage): Removed.
  15902. (setIntParam): Removed.
  15903. (writeOutgoingMessageLog): Removed all overloaded functions.
  15904. (sendChoke): Removed.
  15905. (sendUnchoke): Removed.
  15906. (sendInterested): Removed.
  15907. (sendNotInterested): Removed.
  15908. (sendHave): Removed.
  15909. (sendBitfield): Removed.
  15910. (sendRequest): Removed.
  15911. (sendPiece): Removed.
  15912. (sendPieceHeader): Removed.
  15913. (sendPieceData): Removed.
  15914. (sendMessage): New function.
  15915. (sendCancel): Removed.
  15916. * src/PeerInteractionCommand.cc
  15917. (PeerInteractionCommand): Call setUploadLimit.
  15918. (executeInternal): Call setUploadLimit.
  15919. Added the handling of "inProgress" state of handshake message.
  15920. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15921. sendNow().
  15922. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15923. sendNow().
  15924. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15925. * src/TorrentMan.h
  15926. (PEER_ID_LENGTH): New definition.
  15927. (hasAllPieces): New function.
  15928. * src/TorrentMan.cc
  15929. (getMissingPiece): Added the handling of fast extension.
  15930. (cancelPiece): Call updatePiece().
  15931. (hasAllPieces): New function.
  15932. * src/PeerInteraction.h
  15933. (fastSet): New variable.
  15934. (getNewPieceAndSendInterest): Changed the return type to void.
  15935. (send): Renamed as sendMessages.
  15936. (deleteAllRequestSlot): Removed.
  15937. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15938. (cancelAllRequest): Removed all overloaded functions.
  15939. (deleteAllRequestSlot): Removed.
  15940. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15941. (rejectPieceMessageInQueue): New function.
  15942. (rejectAllPieceMessageInQueue): New function.
  15943. (onChoked): New function.
  15944. (isSendingMessageInProgress): New function.
  15945. (getCorrespondingRequestSlot): Changed its arguments.
  15946. (isInFastSet): New function.
  15947. (addFastSetIndex): New function.
  15948. (addRequests): New function.
  15949. (sendNow): Removed.
  15950. (trySendNow): Removed.
  15951. (sendBitfield): New function.
  15952. (sendAllowdFast): New function.
  15953. (createHaveAllMessage): New function.
  15954. (createHaveNoneMessage): New function.
  15955. (createRejectMessage): New function.
  15956. (createAllowedFastMessage): New function.
  15957. * src/PeerInteraction.cc
  15958. (send): Renamed as sendMessages.
  15959. (sendMessages): New function.
  15960. (MsgPushBack): New class.
  15961. (isSendingMessageInProgress): New function.
  15962. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15963. (rejectAllPieceMessageInQueue): New function.
  15964. Added the handling of fast extension.
  15965. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15966. (rejectPieceMessageInQueue): New function.
  15967. Added the handling of fast extension.
  15968. (deleteRequestSlot): Replaced for loop with std::find.
  15969. (onChoked): New function.
  15970. (deleteAllRequestSlot): Removed.
  15971. (abortPiece): Rewirtten.
  15972. (deleteTimeoutRequestSlot): Updated log messages.
  15973. (getCorrespondingRequestSlot): Changed its arguments.
  15974. (cancelAllRequest): Removed all overloaded functions.
  15975. (receiveHandshake): Added the check to see whether an incoming peer
  15976. supports fast extension.
  15977. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15978. PeerMessageUtil.
  15979. (createPeerMessage): Use create() of each message class instead of
  15980. PeerMessageUtil.
  15981. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15982. AllowedFastMessage were added.
  15983. (getNewPieceAndSendInterest): Changed its return value type to void.
  15984. Added the handling of fast extension.
  15985. (addRequests): New function.
  15986. (sendNow): Removed.
  15987. (sendHandshake): Rewritten.
  15988. (trySendNow): Removed.
  15989. (sendBitfield): New function.
  15990. (sendAllowdFast): New function.
  15991. (isInFastSet): New function.
  15992. (addFastSetIndex): New function.
  15993. (createRequestMessage): Use RequestMessage::create instead of
  15994. PeerMessageUtil.
  15995. (createCancelMessage): Use CancelMessage::create instead of
  15996. PeerMessageUtil.
  15997. (createPieceMessage): Use PieceMessage::create instead of
  15998. PeerMessageUtil.
  15999. (createHaveMessage): Use HaveMessage::create instead of
  16000. PeerMessageUtil.
  16001. (createChokeMessage): Use ChokeMessage::create instead of
  16002. PeerMessageUtil.
  16003. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16004. PeerMessageUtil.
  16005. (createInterestedMessage): Use InterestedMessage::create instead of
  16006. PeerMessageUtil.
  16007. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16008. of PeerMessageUtil.
  16009. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16010. PeerMessageUtil.
  16011. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16012. PeerMessageUtil.
  16013. (createHaveAllMessage): New function.
  16014. (createHaveNoneMessage): New function.
  16015. (createRejectMessage): New function.
  16016. (createAllowedFastMessage: New function.
  16017. * src/Util.h
  16018. (sha1Sum): New function.
  16019. (computeFastSet): New function.
  16020. * src/Util.cc
  16021. (sha1Sum): New function.
  16022. (computeFastSet): New function.
  16023. * src/Peer.h
  16024. (fastExtensionEnabled): New variable.
  16025. (fastSet): New variable.
  16026. (setAllBitfield): New function.
  16027. (setFastExtensionEnabled): New function.
  16028. (isFastExtensionEnabled): New function.
  16029. (addFastSetIndex): New function.
  16030. (getFastSet): New function.
  16031. (isInFastSet): New function.
  16032. (countFastSet): New function.
  16033. * src/Peer.cc
  16034. (isInFastSet): New function.
  16035. (addFastSetIndex): New function.
  16036. (setAllBitfield): New function.
  16037. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16038. sockets.
  16039. * src/PeerAbstractCommand.cc
  16040. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16041. and uploadLimit.
  16042. (execute): Changed the procedure of checking sockets. The upload speed
  16043. checking were added.
  16044. (setUploadLimit): New function.
  16045. (setUploadLimitCheck): New function.
  16046. * src/PeerAbstractCommand.h
  16047. (setUploadLimit): New function.
  16048. (setUploadLimitCheck): New function.
  16049. (uploadLimit): New variable.
  16050. (uploadLimitCheck): New variable.
  16051. To contact a tracker regularly:
  16052. * src/TrackerWatcherCommand.h (interval): New variable.
  16053. (checkPoint): New variable.
  16054. (TrackerWatcherCommand): Added interval argument.
  16055. * src/TrackerWatcherCommand.cc
  16056. (TrackerWatcherCommand): Initialized checkPoint.
  16057. (execute): Now a tracker is contacted in every specified period.
  16058. If peer list is not needed, send request with numwant=0.
  16059. * src/TrackerUpdateCommand.cc
  16060. (execute): Updated log messages.
  16061. * src/DownloadEngine.cc
  16062. (~DownloadEngine): Removed two asserts.
  16063. (waitData): Uncommented wfds. May be a bug fix.
  16064. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16065. * src/PeerInteractionCommand.h
  16066. (checkInactiveConnection): Removed.
  16067. * src/PeerInteractionCommand.cc
  16068. (executeInternal): Removed following function calls:
  16069. detectMessageFlooding(), checkLongTimePeerChoking and
  16070. checkInactiveConnection().
  16071. (checkInactiveConnection): Removed.
  16072. (detectMessageFlooding): Removed function call to
  16073. checkInactiveConnection().
  16074. * src/PeerMessageUtil.h
  16075. (createChokeMessage): New function. Overload.
  16076. (createUnchokeMessage): New function. Overload.
  16077. (createInterestedMessage): New function. Overload.
  16078. (createNotInterestedMessage): New function. Overload.
  16079. (createHaveMessage): New function. Overload.
  16080. (createBitfieldMessage): New function. Overload.
  16081. (createRequestMessage): New function. Overload.
  16082. (createCancelMessage): New function. Overload.
  16083. (createPieceMessage): New function. Overload.
  16084. (createKeepAliveMessage): New function. Overload.
  16085. * src/PeerMessageUtil.cc
  16086. (createChokeMessage): New function. Overload.
  16087. (createUnchokeMessage): New function. Overload.
  16088. (createInterestedMessage): New function. Overload.
  16089. (createNotInterestedMessage): New function. Overload.
  16090. (createHaveMessage): New function. Overload.
  16091. (createBitfieldMessage): New function. Overload.
  16092. (createRequestMessage): New function. Overload.
  16093. (createCancelMessage): New function. Overload.
  16094. (createPieceMessage): New function. Overload.
  16095. (createKeepAliveMessage): New function. Overload.
  16096. * src/SendMessageQueue.cc
  16097. (createRequestMessage): Use PeerMessageUtil.
  16098. (createCancelMessage): Use PeerMessageUtil.
  16099. (createPieceMessage): Use PeerMessageUtil.
  16100. (createHaveMessage): Use PeerMessageUtil.
  16101. (createChokeMessage): Use PeerMessageUtil.
  16102. (createUnchokeMessage): Use PeerMessageUtil.
  16103. (createInterestedMessage): Use PeerMessageUtil.
  16104. (createNotInterestedMessage): Use PeerMessageUtil.
  16105. (createBitfieldMessage): Use PeerMessageUtil.
  16106. (createKeepAliveMessage): Use PeerMessageUtil.
  16107. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16108. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16109. * src/PeerInteraction.h: New class.
  16110. * src/PeerInteraction.cc: New class.
  16111. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16112. Each peer message has its own class.
  16113. * src/PendingMessages.h: Removed.
  16114. * src/PendingMessages.cc: Removed. The sending process was moved to
  16115. each message class.
  16116. * src/RequestSlotMan.h: Removed.
  16117. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16118. SendMessageQueue.
  16119. * src/RequestMessage.h: New class.
  16120. * src/RequestMessage.cc: New class.
  16121. * src/CancelMessage.h: New class.
  16122. * src/CancelMessage.cc: New class.
  16123. * src/BitfieldMessage.h: New class.
  16124. * src/BitfieldMessage.cc: New class.
  16125. * src/ChokeMessage.h: New class.
  16126. * src/ChokeMessage.cc: New class.
  16127. * src/KeepAliveMessage.h: New class.
  16128. * src/KeepAliveMessage.cc: New class.
  16129. * src/PortMessage.h: New class.
  16130. * src/UnchokeMessage.h: New class.
  16131. * src/UnchokeMessage.cc: New class.
  16132. * src/PieceMessage.h: New class.
  16133. * src/PieceMessage.cc: New class.
  16134. * src/HaveMessage.h: New class.
  16135. * src/HaveMessage.cc: New class.
  16136. * src/BitfieldMessage.h: New class.
  16137. * src/BitfieldMessage.cc: New class.
  16138. * src/NotInterestedMessage.h: New class.
  16139. * src/NotInterestedMessage.cc: New class.
  16140. * src/InterestedMessage.h: New class.
  16141. * src/InterestedMessage.cc: New class.
  16142. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16143. (getSendMessageQueue): New function.
  16144. (setSendMessageQueue): New function.
  16145. * src/HandshakeMessage.cc: New class.
  16146. * src/PeerConnection.h (receiveMessage): Changed return value and
  16147. arguments.
  16148. (receiveHandshake): Changed return value and arguments.
  16149. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16150. here.
  16151. (receiveHandshake): Do not create handshake class here.
  16152. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16153. (piece): Removed.
  16154. (syncPiece): Removed.
  16155. (sendInterest): Removed.
  16156. (sendMessages): Removed.
  16157. (createRequestPendingMessage): Removed.
  16158. (checkPieceHash): Removed.
  16159. (erasePieceOnDisk): Removed.
  16160. (getNewPieceAndSendInterest): Removed.
  16161. (onGotNewPice): Removed.
  16162. (onGotWrongPiece): Removed.
  16163. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16164. Removed peerConnection, piece.
  16165. (~PeerInteractionCommand): Removed peerConnection.
  16166. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16167. (syncPiece): Moved to SendMessageQueue.
  16168. (decideChoking): Removed PendingMessage.
  16169. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16170. The action after receiving peer message was moved to each message
  16171. class.
  16172. (onGotNewPice): Moved to SendMessageQueue.
  16173. (onGotWrongPiece): Moved to SendMessageQueue.
  16174. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16175. (sendInterest): Moved to SendMessageQueue.
  16176. (createRequestPendingMessage): Removed.
  16177. (sendMessages): Moved to SendMessageQueue.
  16178. (onAbort): Use SendMessageQueue::abortPiece()
  16179. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16180. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16181. (checkPieceHash): Moved to SendMessageQueue.
  16182. (erasePieceOnDisk): Moved to SendMessageQueue.
  16183. * src/PeerMessageUtil.h
  16184. (createBitfieldMessage): Removed.
  16185. (createHaveMessage): Changed return value and arguments.
  16186. (createBitfieldMessage): Changed return value and arguments.
  16187. (createRequestCancelMessage): Removed.
  16188. (createPieceMessage): Changed return value and arguments.
  16189. (getShortIntParam): New function.
  16190. (checkIndex): Changed arguments.
  16191. (checkBegin): Changed arguments.
  16192. (checkLength): Changed arguments.
  16193. (checkPieceOffset): Removed.
  16194. (checkRange): New function.
  16195. (checkBitfield): Changed arguments.
  16196. (createPeerMessage): Removed.
  16197. (checkIntegrity): Removed.
  16198. (createHandshakeMessage): Changed arguments.
  16199. (createChokeMessage): New function.
  16200. (createUnchokeMessage): New function.
  16201. (createInterestedMessage): New function.
  16202. (createNotInterestedMessage): New function.
  16203. (createRequestMessage): New function.
  16204. (createCancelMessage): New function.
  16205. (createPortMessage): New function.
  16206. * src/PeerMessageUtil.cc
  16207. (createBitfieldMessage): Removed.
  16208. (createHaveMessage): Changed return value and arguments.
  16209. (createBitfieldMessage): Changed return value and arguments.
  16210. (createRequestCancelMessage): Removed.
  16211. (createPieceMessage): Changed return value and arguments.
  16212. (getShortIntParam): New function.
  16213. (checkIndex): Changed arguments.
  16214. (checkBegin): Changed arguments.
  16215. (checkLength): Changed arguments.
  16216. (checkPieceOffset): Removed.
  16217. (checkRange): New function.
  16218. (checkBitfield): Changed arguments.
  16219. (createPeerMessage): Removed.
  16220. (checkIntegrity): Removed.
  16221. (createHandshakeMessage): Changed arguments.
  16222. (createChokeMessage): New function.
  16223. (createUnchokeMessage): New function.
  16224. (createInterestedMessage): New function.
  16225. (createNotInterestedMessage): New function.
  16226. (createRequestMessage): New function.
  16227. (createCancelMessage): New function.
  16228. (createPortMessage): New function.
  16229. * src/PeerMessage.h
  16230. (id): Removed.
  16231. (index): Removed.
  16232. (begin): Removed.
  16233. (length): Removed.
  16234. (bitfield): Removed.
  16235. (bitfieldLength): Removed.
  16236. (block): Removed.
  16237. (blockLength): Removed.
  16238. (inProgress): New variable.
  16239. (cuid): New variable.
  16240. (peer): New variable.
  16241. (sendMessageQueue): New variable.
  16242. (logger): New variable.
  16243. (setBitfield): Removed.
  16244. (getBitfield): Removed.
  16245. (setBlock): Removed.
  16246. (getBlock): Removed.
  16247. (getBitfieldLength): Removed.
  16248. (getBlockLength): Removed.
  16249. (isInProgress): New function.
  16250. (toString): Made pure virtual.
  16251. (check): New function.
  16252. (send): New function.
  16253. (receivedAction): New function.
  16254. (getId): Made pure virtual.
  16255. (setId): Removed.
  16256. (getIndex): Removed.
  16257. (setIndex): Removed.
  16258. (getBegin): Removed.
  16259. (setBegin): Removed.
  16260. (getLength): Removed.
  16261. (setLength): Removed.
  16262. (getCuid): New function.
  16263. (setCuid): New function.
  16264. (getPeer): New function.
  16265. (setPeer): New function.
  16266. (getSendMessageQueue): New function.
  16267. (setSendMessageQueue): New function.
  16268. (ID): Removed.
  16269. * src/PeerMessage.cc
  16270. (setBitfield): Removed.
  16271. (setBlock): Removed.
  16272. (toString): Removed.
  16273. * src/TorrentMan.h
  16274. (getPieceLength): New function.
  16275. (getPieceLength): New function.
  16276. * src/SendMessageQueue.h
  16277. (REQUEST_TIME_OUT): New definition.
  16278. (RequestSlots): New definition.
  16279. (MessageQueue): New definition.
  16280. (requestSlotMan): Removed.
  16281. (pendingMessages): Removed.
  16282. (requestSlots): New variable.
  16283. (messageQueue): New variable.
  16284. (torrentMan): New variable.
  16285. (peerConnection): New variable.
  16286. (peer): New variable.
  16287. (piece): New variable.
  16288. (getNewPieceAndSendInterest): New function.
  16289. (createPeerMessage): New function.
  16290. (createHandshakeMessage): New function.
  16291. (send): Made private.
  16292. (setPeerMessageCommonProperty): New function.
  16293. (deleteAllRequestSlot): New function.
  16294. (deleteRequestMessageInQueue): New function.
  16295. (cancelAllRequest): Made private.
  16296. (cancelAllRequest): Made private.
  16297. (countRequestSlot): Made private.
  16298. (addPendingMessage): Removed.
  16299. (deletePendingPieceMessage): Removed.
  16300. (deletePendingRequestMessage): Removed.
  16301. (addMessage): New function.
  16302. (deletePieceMessageInQueue): New function.
  16303. (deleteTimeoutRequestSlot): Changed argument.
  16304. (deleteCompletedRequestSlot): Changed argument.
  16305. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16306. (getCorrespondingRequestSlot): New function.
  16307. (countPendingMessage): Removed.
  16308. (countMessageInQueue): New function.
  16309. (getTorrentMan): New function.
  16310. (getPeerConnection): New function.
  16311. (hasDownloadPiece): New function.
  16312. (getDownloadPiece): New function.
  16313. (setDownloadPiece): New function.
  16314. (syncPiece): New function.
  16315. (sendMessages): New function.
  16316. (sendNow): New function.
  16317. (trySendNow): New function.
  16318. (abortPiece): New function.
  16319. (sendHandshake): New function.
  16320. (receiveMessage): New function.
  16321. (receiveHandshake): New function.
  16322. (createRequestMessage): New function.
  16323. (createCancelMessage): New function.
  16324. (createPieceMessage): New function.
  16325. (createHaveMessage): New function.
  16326. (createChokeMessage): New function.
  16327. (createUnchokeMessage): New function.
  16328. (createInterestedMessage): New function.
  16329. (createNotInterestedMessage): New function.
  16330. (createBitfieldMessage): New function.
  16331. (createKeepAliveMessage): New function.
  16332. * src/SendMessageQueue.cc
  16333. (SendMessageQueue): Removed requestSlotMan.
  16334. Instantiated peerConnection here.
  16335. (~SendMessageQueue): Removed requestSlotMan.
  16336. Added deletion of peerConnection and the contents of messageQueue.
  16337. (send): Updated according to the change of messageQueue.
  16338. (addPendingMessage): Renamed to addMessage.
  16339. (addMessage): New function.
  16340. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16341. (deletePieceMessageInQueue): New function.
  16342. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16343. (deleteRequestMessageInQueue): New function.
  16344. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16345. here.
  16346. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16347. (...) was moved here.
  16348. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16349. moved here.
  16350. (deleteCompletedRequestSlot):
  16351. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16352. (getCorrespondingRequestSlot):
  16353. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16354. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16355. (countPendingMessage): Renamed to countMessageInQueue.
  16356. (countMessageInQueue): New function.
  16357. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16358. (receiveHandshake): New function.
  16359. (createHandshakeMessage): New function.
  16360. (receiveMessage): New function.
  16361. (createPeerMessage): New function.
  16362. (syncPiece): New function.
  16363. (getNewPieceAndSendInterest): New function.
  16364. (sendMessages): New function.
  16365. (sendNow): New function.
  16366. (trySendNow): New function.
  16367. (sendHandshake): New function.
  16368. (abortPiece): New function.
  16369. (getDownloadPiece): New function.
  16370. (getPeerMessageCommonProperty): New function.
  16371. (createRequestMessage): New function.
  16372. (createCancelMessage): New function.
  16373. (createPieceMessage): New function.
  16374. (createHaveMessage): New function.
  16375. (createChokeMessage): New function.
  16376. (createUnchokeMessage): New function.
  16377. (createInterestedMessage): New function.
  16378. (createNotInterestedMessage): New function.
  16379. (createBitfieldMessage): New function.
  16380. (createKeepAliveMessage): New function.
  16381. To add simple Content-Disposition support:
  16382. * src/HttpResponseCommand.h (determinFilename): New function.
  16383. * src/HttpResponseCommand.cc (executeInternal):
  16384. Use determinFilename(headers) instead of req->getFile() when comparing
  16385. filename.
  16386. (determinFilename): New function.
  16387. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16388. req->getFile().
  16389. (handleOtherEncoding): Use determinFilename(headers) instead of
  16390. req->getFile().
  16391. * src/Util.h (getContentDispositionFilename): New function.
  16392. * src/Util.cc (getContentDispositionFilename): New function.
  16393. * src/LogFactory.h (release): New function.
  16394. * src/LogFactory.cc (release): New function.
  16395. To fix a bug that causes out-of-bound exception when HTTP status
  16396. line is wrong:
  16397. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16398. size.
  16399. * src/common.h (Deleter): New class.
  16400. * src/SegmentMan.cc
  16401. (~SegmentMan): Added deletion of splitter and diskWriter.
  16402. * src/DownloadEngine.h
  16403. (Commands): Use deque.
  16404. (clearQueue): New function.
  16405. * src/DownloadEngine.cc
  16406. (~DownloadEngine): Added deletion of segmentMan.
  16407. (cleanQueue): New function.
  16408. * src/TorrentDownloadEngine.h
  16409. (TorrentDownloadEngine): The implementation was moved to
  16410. TorrentDownloadEngine.cc.
  16411. (~TorrentDownloadEngine): The implementation was moved to
  16412. TorrentDownloadEngine.cc.
  16413. * src/TorrentDownloadEngine.cc
  16414. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16415. * src/main.cc
  16416. (clearRequest): Removed.
  16417. (handler): Added deletion of e.
  16418. (torrentHandler): Added deletion of te.
  16419. (main): Do not share splitter.
  16420. Use Deleter instead of clearRequest.
  16421. Deletion of classes were updated.
  16422. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16423. * src/main.cc (main): Fixed typo.
  16424. * src/message.h: Fixed typo.
  16425. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16426. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16427. To add --select-file command-line option:
  16428. * src/Util.cc
  16429. (unfoldRange): New function.
  16430. (getNum): New function.
  16431. (unfoldSubRange): New function
  16432. * src/main.cc
  16433. (showUsage): Added help message.
  16434. (main): Added --select-file command-line option. Updated the layout of
  16435. file listing.
  16436. * src/common.h
  16437. (Integers): New definition.
  16438. * src/SocketCore.cc
  16439. (writeData): Removed timeout argument.
  16440. (readData): Removed timeout argument.
  16441. (peekData): Removed timeout argument.
  16442. * src/Socket.cc
  16443. (writeData): Removed timeout argument.
  16444. (readData): Removed timeout argument.
  16445. (peekData): Removed timeout argument.
  16446. * Release 0.4.1
  16447. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16448. To deploy upload rate based choking algorithm:
  16449. * src/PeerInteractionCommand.cc
  16450. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16451. peer currently used.
  16452. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16453. download completes. Simplified.
  16454. (receiveMessage): Updated.
  16455. * src/TorrentMan.h
  16456. (activePeers): New variable.
  16457. (addActivePeer): New function.
  16458. (getActivePeers): New function.
  16459. (deleteActivePeer): New function.
  16460. * src/TorrentMan.cc
  16461. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16462. * src/PeerAbstractCommand.cc
  16463. (onAbort): Use peer->resetStatus().
  16464. * src/main.cc
  16465. (PeerChokeCommand.h): Included.
  16466. (main): Added the instance of ChokingCommand to the command queue.
  16467. * src/Peer.h
  16468. (amChoking): Renamed from amChocking
  16469. (chokingRequired): New variable.
  16470. (optUnchoking): New variable.
  16471. (deltaUpload): New variable.
  16472. (deltaDownload): New variable.
  16473. (addDeltaUpload): New function.
  16474. (resetDeltaUpload): New function.
  16475. (addDeltaDownload): New function.
  16476. (resetDeltaDownload): New function.
  16477. (addPeerUpload): Added a call to addDeltaUpload.
  16478. (addPeerDownload): Added a call to addDeltaDownload.
  16479. * src/Peer.cc
  16480. (shouldBeChoking): Renamed from shouldChoke.
  16481. (resetStatus): New function.
  16482. * src/PeerChokeCommand.h: New class.
  16483. * src/PeerChokeCommand.cc: New class.
  16484. To add lazy upload speed limiter:
  16485. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16486. statistics calculation to TorrentDownloadEngine.
  16487. * src/TorrentConsoleDownloadEngine.cc
  16488. (sendStatistics): Renamed from printStatistics.
  16489. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16490. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16491. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16492. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16493. calculation.
  16494. (sendStatistics): New function as pure virtual function.
  16495. (getUploadSpeed): New function.
  16496. * src/TorrentDownloadEngine.cc
  16497. (initStatistics): New function.
  16498. (calculateSpeed): New function.
  16499. (calculateStatistics): New function.
  16500. * src/SendMessageQueue.h
  16501. (uploadLength): New variable.
  16502. (send): Added an argument.
  16503. (setUploadLimit): New function.
  16504. (getUploadLimit): New function.
  16505. * src/SendMessageQueue.cc
  16506. (send): Added upload speed limiter.
  16507. * src/prefs.h
  16508. (PREF_UPLOAD_LIMIT): New definition.
  16509. * src/PeerInteractionCommand.cc
  16510. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16511. * src/main.cc
  16512. (main): Added --upload-limit option
  16513. For bug fixes:
  16514. * src/main.cc
  16515. (showUsage): Corrected --listen-port help
  16516. Other changes:
  16517. * src/TorrentMan.cc
  16518. (getPeer): Return nullPeer if connection is grather than
  16519. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16520. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16521. To add some useful information to the exception message:
  16522. * src/SocketCore.cc : Updated messages.
  16523. * src/SegmentMan.cc :
  16524. * src/TorrentMan.cc : Updated messages.
  16525. * src/MultiDiskWriter.cc : Updated messages.
  16526. * src/Util.cc : Updated messages.
  16527. * src/AbstractDiskWriter.cc : Updated messages.
  16528. * src/PreAllocationDiskWriter.cc : Updated messages.
  16529. * src/message.cc : Added new messages. Updated some messages.
  16530. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16531. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16532. Updated threshold from 30 to 15.
  16533. * src/AbstractDiskWriter.h (filename): New variable.
  16534. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16535. (createFile): Assigned filename.
  16536. * src/main.cc: Updated the help message for http-auth-scheme.
  16537. * Release 0.4.0
  16538. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16539. To add TrackerUpdateCommand with which replaces
  16540. CompactTrackerResponseProcessor:
  16541. * src/TrackerWatcherCommand.h (req): Removed.
  16542. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16543. if the number of peer connections are less than 30.
  16544. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16545. * src/SegmentMan.h (diskWriter): New function.
  16546. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16547. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16548. (main): Use TrackerUpdateCommand.
  16549. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16550. (req): New variable.
  16551. (setTrackerResponseProcessor): Removed.
  16552. (getTrackerResponseProcessor): Removed.
  16553. (processTrackerResponse): Removed.
  16554. * src/DownloadEngine.h (diskWriter): Removed.
  16555. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16556. to torrentMan->processTrackerResponse().
  16557. To add Util::expandBuffer:
  16558. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16559. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16560. * src/Util.h (expandBuffer): New function.
  16561. To fix the bug that causes segmentation fault when "-l ." is specified
  16562. in command-line option:
  16563. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16564. (openFile): New function.
  16565. (closeFile): New function.
  16566. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16567. (~SimpleLogger): Call closeFile();
  16568. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16569. * src/main.cc (main): Added a check to see logger is configured
  16570. properly.
  16571. To enable HTTP authentication without specifying "--http-auth-scheme"
  16572. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16573. * src/HttpConnection.cc (createRequest): Send Authorization header
  16574. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16575. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16576. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16577. * src/Peer.cc (shouldChoke): Updated algorithm.
  16578. * src/message.h (EX_AUTH_FAILED): New definition.
  16579. (EX_FILE_OPEN): New definition.
  16580. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16581. if status == 401.
  16582. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16583. if req->isTorrent == true.
  16584. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16585. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16586. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16587. (createFile): Updated message.
  16588. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16589. To add a readout of estimated remaining time to normal HTTP/FTP
  16590. downloads:
  16591. * src/ConsoleDownloadEngine.h (startup): New variable.
  16592. (startupLength): New variable.
  16593. (isStartupLengthSet): New variable.
  16594. (avgSpeed): New variable.
  16595. (eta): New variable.
  16596. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16597. estimated remaining time.
  16598. (initStatistics): Initialized newly added variables.
  16599. (calculateStatistics): Calculate average speed and estimated remaining
  16600. time.
  16601. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16602. * src/TrackerDownloadCommand.h: Removed.
  16603. * src/TrackerDownloadCommand.cc: Removed.
  16604. * src/TrackerInitCommand.h: Removed.
  16605. * src/TrackerInitCommand.cc: Removed.
  16606. * src/TrackerUpdateCommand.h: Removed.
  16607. * src/TrackerUpdateCommand.cc: Removed.
  16608. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16609. url written in TrackerInitCommand was moved here. Do not create
  16610. tracker request command if torrentMan->trackers != 0.
  16611. * src/CompactTrackerResponseProcessor.h: New class.
  16612. * src/CompactTrackerResponseProcessor.cc: New class.
  16613. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16614. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16615. Decoupled TorrentDownloadEngine from this.
  16616. * src/SegmentMan.h (init): New function.
  16617. * src/SegmentMan.cc (init): New function.
  16618. * src/TorrentMan.h (responseProcessor): New variable.
  16619. (trackers): New variable.
  16620. (setTrackerResponseProcessor): New function.
  16621. (getTrackerResponseProcessor): New function.
  16622. (processTrackerResponse): New function.
  16623. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16624. (processTrackerResponse): New function.
  16625. * src/main.cc (main): Use ByteArrayDiskWriter and
  16626. CompactTrackerResponseProcessor.
  16627. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16628. processTrackerResponse().
  16629. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16630. readout.
  16631. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16632. which indicates download has completed.
  16633. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16634. (closeFile): fd >= 0, not fd > 0
  16635. * src/main.cc (main): Added short cut for show-files.
  16636. Added short cut for torrent-file.
  16637. Added new command-line option listen-port.
  16638. Updated i18n messages.
  16639. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16640. To add LogFactory which creates singleton logger:
  16641. * src/LogFactory.h: New class.
  16642. * src/LogFactory.cc: New class.
  16643. * src/Command.h (logger): New variable.
  16644. (Constructor): Use LogFactory.
  16645. * src/AbstractCommand.cc: Use Command::logger
  16646. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16647. Use LogFactory.
  16648. * src/SegmentSplitter.h : Made logger protected.
  16649. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16650. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16651. * src/DownloadEngine.h : Made logger protected.
  16652. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16653. * src/PeerInteractionCommand.cc : Use Command::logger.
  16654. * src/HttpResponseCommand.cc : Use Command::logger.
  16655. * src/SegmentMan.h : Made logger private.
  16656. * src/TorrentMan.h : Made logger private.
  16657. * src/TorrentMan.cc : Use LogFactory.
  16658. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16659. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16660. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16661. Use LogFactory.
  16662. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16663. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16664. Use LogFactory.
  16665. * src/DownloadCommand.cc : Use Command::logger.
  16666. * src/PeerAbstractCommand.cc : Use Command::logger.
  16667. * src/PeerListenCommand.cc : Use Command::logger.
  16668. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16669. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16670. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16671. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16672. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16673. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16674. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16675. Use LogFactory.
  16676. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16677. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16678. Use LogFactory.
  16679. * src/main.cc (main): Use LogFactory.
  16680. * src/DiskAdaptor.h (logger): New variable.
  16681. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16682. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16683. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16684. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16685. parameter to a tracker request.
  16686. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16687. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16688. * src/main.cc (setSignalHander): New function.
  16689. (main): Added a handler for SIGTERM.
  16690. (handler): Updated message.
  16691. (torrentHandler): Updated message.
  16692. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16693. * src/TorrentConsoleDownloadEngine.cc
  16694. (onPartialDownloadingCompletes): Renamed as
  16695. onSelectiveDownloadingCompletes.
  16696. (onSelectiveDownloadingCompletes): Updated message.
  16697. To add DiskAdaptor which abstract DiskWriter family:
  16698. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16699. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16700. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16701. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16702. MultiDiskAdaptor.h.
  16703. (readFileEntry): Changed its arguments.
  16704. (setup): setupDiskWriter is merged into this function.
  16705. (setupDiskWriter): Removed.
  16706. (setFileFilter): New function.
  16707. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16708. made in readFileEntry.
  16709. (getFilePath): Removed.
  16710. (getTempFilePath): Removed.
  16711. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16712. (fixFilename): Removed.
  16713. (copySingleFile): Removed.
  16714. (splitMultiFile): Removed.
  16715. (deleteTempFile): Removed.
  16716. (setFileEntriesToDownload): Removed.
  16717. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16718. (isSelectiveDownloadingMode): New function.
  16719. (setAllMultiFileRequestedState): Removed.
  16720. (finishPartialDownloadingMode): Renamed as
  16721. finishSelectiveDownloadingMode.
  16722. (finishSelectiveDownloadingMode): New function.
  16723. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16724. (getSelectedTotalLength): New function.
  16725. (onDownloadComplete): Use diskAdaptor.
  16726. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16727. (Range): Removed.
  16728. (setMultiFileEntries): Renamed as setFileEntries.
  16729. (setFileEntries): New function.
  16730. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16731. (pieceLength): New variable.
  16732. * src/main.cc (printDownloadCompeleteMessage): New function.
  16733. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16734. (main): Renamed torrent-show-files to show-files.
  16735. Rewritten file contents listing.
  16736. * src/TorrentMan.h (FileEntry): Removed.
  16737. (multiFileTopDir): Removed.
  16738. (multiFileEntries): Removed.
  16739. (diskWriter): Removed.
  16740. (diskAdaptor): New variable.
  16741. * src/DefaultDiskWriter.h (totalLength): New variable.
  16742. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16743. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16744. diskWriter.
  16745. * src/TorrentConsoleDownloadEngine.h
  16746. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16747. (partialTotalLength): Renamed as selectedTotalLength.
  16748. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16749. openExistingFile, otherwise call initAndOpenFile.
  16750. (closeFile): fd > 0, not fd != 0.
  16751. * src/DirectDiskAdaptor.h: New class.
  16752. * src/DirectDiskAdaptor.cc: New class.
  16753. * src/MultiDiskAdaptor.h: New class.
  16754. * src/MultiDiskAdaptor.cc: New class.
  16755. * src/CopyDiskAdaptor.h: New class.
  16756. * src/CopyDiskAdaptor.cc: New class.
  16757. * src/DiskAdaptor.h: New class.
  16758. * src/DiskAdaptor.cc: New class.
  16759. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16760. (PREF_SHOW_FILES): New definition.
  16761. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16762. To add the ability to download multi torrent into respective files
  16763. directly:
  16764. * src/DiskWriter.h (openFile): New function.
  16765. (seek): Removed.
  16766. * src/MultiDiskWriter.h: New class.
  16767. * src/MultiDiskWriter.cc: New class.
  16768. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16769. protected.
  16770. (openFile): New function.
  16771. * src/AbstractDiskWriter.cc (openFile): New function.
  16772. * src/prefs.h (V_FALSE): New definition.
  16773. (PREF_DIRECT_FILE_MAPPING): New definition.
  16774. * src/TorrentMan.h (setupDiskWriter): New function.
  16775. (setAllMultiFileRequestedState): New function.
  16776. (onDownloadComplete): New function.
  16777. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16778. (setupDiskWriter): New function.
  16779. (getFilePath): Updated.
  16780. (getTempFilePath): Updated.
  16781. (getSegmentFilePath): Updated.
  16782. (fixFilename): Updated.
  16783. (deleteTempFile): Updated.
  16784. (setAllMultiFileRequestedState): New function.
  16785. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16786. (finishPartialDownloadingMode): Reset requested flags.
  16787. (onDownloadComplete): New function.
  16788. * src/main.cc: Added --direct-file-mapping option.
  16789. Use TorrentMan::setupDiskWriter().
  16790. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16791. onDownloadComplete().
  16792. To fix ETA bug:
  16793. * src/Util.h (difftvsec): New function.
  16794. * src/Util.cc (difftvsec): New function.
  16795. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16796. type of "elapsed" instead of long long int.
  16797. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16798. The updates of statistics takes place every 1 seconds.
  16799. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16800. (calculateSpeed): Changed its argument signature.
  16801. * src/PeerMessage.cc (toString): Fixed message.
  16802. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16803. To print ETA:
  16804. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16805. completion handling when dealing with
  16806. TorrentMan::isPartialDownloadingMode() == true.
  16807. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16808. New function.
  16809. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16810. (sessionDownloadLength): New variable.
  16811. (avgSpeed): New variable.
  16812. (eta): New variable.
  16813. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16814. new variables: eta, avgSpeed, startup.
  16815. (calculateSpeed): Calculate average speed and ETA.
  16816. (printStatistics): Added ETA.
  16817. * src/Util.h (secfmt): New function.
  16818. * src/Util.cc (secfmt): New function.
  16819. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16820. To detect "keep alive" flooding:
  16821. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16822. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16823. variable: keepAliveCount.
  16824. (detectMessageFlooding): Added "keep alive" flooding detection.
  16825. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16826. received.
  16827. To add the ability to download only specified files in multi-file
  16828. torrent:
  16829. * src/BitfieldMan.h (filterBitfield): New variable.
  16830. (filterEnabled): New variable.
  16831. (setFilterBit): New function.
  16832. (enableFilter): New function.
  16833. (disableFilter): New function.
  16834. (isFilterEnabled): New function.
  16835. (getFilteredTotalLength): New function.
  16836. (getCompletedLength): New function.
  16837. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16838. filterBitfield, filterEnabled.
  16839. (CopyConstructor): Added filterBitfield and filterEnabled.
  16840. (operator==): Added filterBitfield and filterEnabled.
  16841. (Destructor): Added filterBitfield.
  16842. (getMissingIndex): Use filterBitfield.
  16843. (getMissingUnusedIndex): Use filterBitfield.
  16844. (getFirstMissingUnusedIndex): Use filterBitfield.
  16845. (getFirstMissingUnusedIndex): Use filterBitfield.
  16846. (getAllMissingIndexes): Use filterBitfield.
  16847. (countMissingBlock): Use filterBitfield.
  16848. (countBlock): Use filterBitfield.
  16849. (setBitInternal): Added new argument on.
  16850. (setUseBit): Use setBitInternal.
  16851. (unsetUseBit): Use setBitInternal.
  16852. (setBit): Use setBitInternal.
  16853. (unsetBit): Use setBitInternal.
  16854. (isAllBitSet): Use filterBitfield.
  16855. (setFilterBit): New function.
  16856. (addFilter): New function.
  16857. (enableFilter): New function.
  16858. (disableFilter): New function.
  16859. (clearFilter): New function.
  16860. (isFilterEnabled): New function.
  16861. (getFilteredTotalLength): New function.
  16862. (getCompletedLength): New function.
  16863. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16864. Initalized newly added variables.
  16865. [FileEntry](offset): New variable.
  16866. [FileEntry](extracted): New variable.
  16867. [FileEntry](requested): New variable.
  16868. (readFileEntry): New function.
  16869. (option): New variable.
  16870. (splitMultiFile): Removed const qualifier.
  16871. (fixFilename): Removed const qualifier.
  16872. (readFileEntryFromMetaInfoFile): New function.
  16873. (finishPartialDownloadingMode): New function.
  16874. (isPartialDownloadingMode): New function.
  16875. (setFileEntriesToDownload): New function.
  16876. (getCompletedLength): New function.
  16877. (getPartialTotalLength): New function.
  16878. * src/TorrentMan.cc (readFileEntry): New function.
  16879. (setup): Use readFileEntry. If no-preallocation option is specified,
  16880. use DefaultDiskWriter.
  16881. (readFileEntryFromMetaInfoFile): New function.
  16882. (fixFilename): Removed const qualifier.
  16883. (splitMultiFile): Removed const qualifier.
  16884. (setFileEntriesToDownload): New function.
  16885. (isPartialDownloadingMode): New function.
  16886. (finishPartialDownloadingMode): New function.
  16887. (getCompletedLength): New function.
  16888. (getPartialTotalLength): New function.
  16889. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16890. New variable.
  16891. (partialTotalLength): New variable.
  16892. (downloadLength): New variable.
  16893. (totalLength): New variable.
  16894. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16895. Added log.
  16896. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16897. partialTotalLength, downloadLength, totalLength.
  16898. (calculate): Calculate downloadLength and totalLength.
  16899. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16900. * src/main.cc (addCommand): Changed argument signature.
  16901. (main): Added new variable: args. Added new option "torrent-show-files"
  16902. "no-preallocation". Usage is not updated yet.
  16903. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16904. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16905. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16906. Attempt to add the ability to listing file entries in a .torrent file.
  16907. This feature is not yet complete.
  16908. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16909. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16910. (getName): New function.
  16911. * src/TorrentMan.h (getMultiFileEntries): New function.
  16912. (getName): New function.
  16913. * src/main.cc (main): Use above 2 funtion.
  16914. * Release 0.3.2
  16915. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16916. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16917. (detectMessageFlooding): Updated threshold value.
  16918. (checkLongTimePeerChoking): Updated timeout value.
  16919. (getNewPieceAndSendInterest): Added debug log.
  16920. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16921. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16922. (getPeer): Updated.
  16923. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16924. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16925. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16926. is localhost.
  16927. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16928. * src/PendingMessage.cc (processMessage): Not to send piece message
  16929. if peer is not interested in the pieces localhost has.
  16930. * src/Peer.cc (shouldChoke): Updated.
  16931. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16932. * src/Util.cc (isPowerOf): New function.
  16933. * src/Util.h (isPowerOf): New function.
  16934. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16935. whether or not it is power of 2.
  16936. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16937. Added new class SendMessageQueue that includes PendingMessages and
  16938. RequestSlotMan.
  16939. * src/SendMessageQueue.h: New class.
  16940. * src/SendMessageQueue.cc: New class.
  16941. * src/PendingMessage.h: Added new member variable blockIndex and its
  16942. accessors.
  16943. (createRequestMessage): Updated.
  16944. * src/PendingMessage.cc (createRequestMessage): Updated.
  16945. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16946. SendMessageQueue.
  16947. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16948. (receiveMessage): Updated with SendMessageQueue.
  16949. (deletePendingPieceMessage): Removed.
  16950. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16951. (sendInterest): Updated with SendMessageQueue.
  16952. (createRequestPendingMessage): Updated with SendMessageQueue.
  16953. (sendMessages): Updated with SendMessageQueue.
  16954. (onAbort): Updated with SendMessageQueue.
  16955. (keepAlive): Updated with SendMessageQueue.
  16956. (beforeSocketCheck): Updated SendMessageQueue.
  16957. * src/PeerInteractionCommand (sendMessages): Shuffle
  16958. missingBLockIndexes before using it.
  16959. Added its own timeout for peer connection.
  16960. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16961. setter.
  16962. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16963. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16964. Added setTimeout() call.
  16965. (executeInternal): Added setTimeout() call.
  16966. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16967. Added timeout.
  16968. (isTimeoutDetected): Updated.
  16969. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16970. option.
  16971. Added *simple* message flooding checker.
  16972. * src/PeerInteractionCommand.cc (executeInternal):
  16973. Added detectMessageFlooding() call.
  16974. (detectMessageFlooding): New function.
  16975. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16976. (beforeSocketCheck): Added detectMessageFlooding() call.
  16977. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16978. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16979. Removed deletePendingPieceMessage(), getRequestSlot(),
  16980. deleteRequestSlot(), deleteAllRequestSlot().
  16981. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16982. Added checkLongTimePeerChoking() call.
  16983. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16984. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16985. if duplicate == false.
  16986. The parameter "uploaded" and "downloaded" in the tracker request are
  16987. the size since the client sent the "started" event to the tracker.
  16988. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16989. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16990. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16991. getSessionDownloadedSize(), getSessionUploadedSize().
  16992. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16993. getSessionUploadedSize() instead of getDownloadedSize(),
  16994. getUploadedSize().
  16995. * src/PendingMessage.cc (processMessage): Do not send request message
  16996. if the peer is choking the client.
  16997. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16998. less than interval.
  16999. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17000. * configure.in: Added gnutls support. Added several CPP macros.
  17001. * m4/openssl.m4: Added.
  17002. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17003. readData(), peekData(). Added gnutls support.
  17004. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17005. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17006. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17007. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17008. Instead, added a check for whether setup method has executed
  17009. successfully.
  17010. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17011. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17012. * src/Makefile.am: Updated.
  17013. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17014. using whether OpenSSL or gcrypt, depending on the result of configure
  17015. script.
  17016. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17017. messageDigest.h.
  17018. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17019. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17020. Fixed memory leak.
  17021. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17022. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17023. Removed instantiation of TrackerInitCommand. Instead,
  17024. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17025. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17026. ENABLE_SSL.
  17027. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17028. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17029. If a piece is already acquired by another command, delete the request
  17030. slots for the piece.
  17031. * src/TrackerUpdateCommand.cc (execute):
  17032. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17033. Added a check whether peer list is null.
  17034. Fixed the bug that causes sending completed event to the tracker
  17035. several times.
  17036. * src/TrackerInitCommand.cc (execute):
  17037. Fixed the bug that causes sending completed event to the tracker
  17038. several times.
  17039. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17040. by using messageDigest.h.
  17041. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17042. * PeerConnection.cc: Replaced log message "keep-alive" with
  17043. "keep alive".
  17044. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17045. localhost long time.
  17046. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17047. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17048. at most 100 failure entry from the list. If with duplicate = false,
  17049. MAX_PEER_LIST is not checked.
  17050. * PeerListenCommand.cc: Fixed the argument order of log message.
  17051. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17052. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17053. Added warn().
  17054. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17055. Implemented warn().
  17056. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17057. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17058. * Request.h: Added AFTER_COMPLETED event.
  17059. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17060. instead of downloaded size and progress(%) after download completes.
  17061. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17062. message to the peer if it is interested in what localhost has
  17063. downloaded.
  17064. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17065. destination instead of just renaming it.
  17066. * TorrentMan.cc: Added deleteTempFile().
  17067. * PeerAbstractCommand.cc: do not stop execution after download
  17068. completes. This makes localhost a seeder.
  17069. * Util.{h,cc}: Added fileCopy().
  17070. * PeerListenCommand.cc: do not stop execution after download completes.
  17071. This makes localhost a seeder.
  17072. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17073. Added TorrentMan::deleteTempFile() to torrentHandler.
  17074. Initialized the variable dir as ".".
  17075. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17076. Deleted renameSingleFile().
  17077. Added copySingleFile(), deleteTempFile().
  17078. * DownloadEngine.h: Added virtual function afterEachIteration().
  17079. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17080. in onEndOfRun() to afterEachIteration().
  17081. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17082. true.
  17083. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17084. In rangedFileCopy(), added try-catch block to properly close file
  17085. descriptors.
  17086. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17087. Added afterEachIteration(), isFilenameFixed().
  17088. * Peer.cc: Changed choking strategy.
  17089. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17090. * TrackerInitCommand.cc: Send completed event only once.
  17091. * DownloadEngine.cc: Added a call to afterEachIteration().
  17092. * TrackerUpdateCommand.cc: Do not stop execution after download
  17093. completes.
  17094. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17095. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17096. received from a tracker.
  17097. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17098. Decreased the number of failure peers to delete to 0(just comment out
  17099. the line).
  17100. * Release 0.3.1
  17101. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17102. * PeerInteractionCommand.cc: added a call to
  17103. TorrentMan::unadvertisePiece in Destructor.
  17104. * PeerInteractionCommand.cc: make have message sent immediately
  17105. if the size of pending message queue is zero.
  17106. * TorrentMan.cc: set the maximum size of peer list to 250.
  17107. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17108. to deque.
  17109. * Util.cc: fixed rangedFileCopy.
  17110. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17111. to Constructor. Also, moved digest cleanup to Destructor.
  17112. * MetaFileUtil.cc: fixed memory leak
  17113. * replaced std::vector with std::deque.
  17114. * AbstractCommand.cc: casted timeout value to long long int.
  17115. * ChunkedEncoding.cc: fixed memory leak.
  17116. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17117. * SleepCommand.cc: casted timeout value to long long int.
  17118. * Data.cc: fixed memory leak.
  17119. * Data.cc: fixed toLLInt().
  17120. * BitfieldMan.cc: fixed memory leak.
  17121. * TorrentMan.cc: initialized storeDir to ".".
  17122. * TorrentMan.cc: fixed memory leak.
  17123. * TorrentMan.cc: corrected file paths of splitted files.
  17124. * PeerAbstractCommand.cc: casted timeout to long long int.
  17125. * main.cc: added delete(req) and delete(te->diskWriter).
  17126. * RequestSlot.cc: casted timeout value to long long int.
  17127. * Request.cc: fixed memory leak.
  17128. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17129. have the piece.
  17130. * Peer.{h,cc}: added hasPiece(int index).
  17131. * main.cc: corrected addCommand.
  17132. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17133. * BitTorrent protocol support added.
  17134. * Release 0.3.0
  17135. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17136. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17137. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17138. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17139. decoding did not work properly.
  17140. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17141. * DownloadEngine.h: included sys/time.h
  17142. * DownloadEngine.cc: remove sys/time.h
  17143. * Makefile.am (SUBDIRS): Add intl.
  17144. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17145. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17146. * main.cc: correct help message for --http-auth-scheme.
  17147. * main.cc: changed e-mail address for bug reports.
  17148. * ja.po: added japanese translation.
  17149. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17150. * SimpleLogger.cc: flush log file instead of stdout.
  17151. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17152. * main.cc: Fixed command-line option: max-tries
  17153. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17154. does not equal to seg.sp.
  17155. * DownloadCommand.cc: If EOF is got from the server and the total size
  17156. of file is not zero, then throw DlRetryEx.
  17157. * main.cc: Set the minium value of min-segment-size to 1024.
  17158. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17159. fails because of a regression since 0.2.0 release.
  17160. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17161. * HttpConnection.cc:
  17162. * common.h: defined the user agent name as macro
  17163. * DownloadEngine.{h, cc}:
  17164. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17165. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17166. * main.cc: Download complete/abort message is now generated by main.
  17167. * Makefile.am (SUBDIRS): Add m4.
  17168. (ACLOCAL_AMFLAGS): New variable.
  17169. (EXTRA_DIST): New variable.
  17170. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17171. * gettext: added gettext functionality
  17172. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17173. * AbstractCommand.cc:
  17174. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17175. unregister its cuid from SegmentMan.
  17176. * DownloadEngine.cc: .aria2 file was written when a downloading
  17177. failed with errors.
  17178. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17179. Added "User-Agent" header to CONNECT proxy request.
  17180. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17181. properly.
  17182. * Logger.h:
  17183. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17184. * ChunkedEncoding.cc: Added #include directive for strings.h
  17185. * Release 0.2.1
  17186. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17187. * Util.{h,cc}: added startsWith().
  17188. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17189. Util::endsWith().
  17190. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17191. * common.h: added #include directive of limit.h.
  17192. * DownloadEngine.cc: added #include directive of sys/time.h and
  17193. algorithm.
  17194. * Exception.h: added #include directive of stdio.h.
  17195. * AbstractCommand.h: added #include directive of sys/time.h.
  17196. * DownloadCommand.h: added #include directive of sys/time.h.
  17197. * *.h: added #include directive of common.h to all base classes.
  17198. subclasses' one was removed.
  17199. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17200. does not define these macros.
  17201. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17202. * Release 0.2.0
  17203. * main.cc:
  17204. * HttpInitiateConnectionCommand.{h,cc}:
  17205. * prefs.h:
  17206. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17207. We can now use GET command in http proxy.
  17208. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17209. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17210. that splits slowest segment of SegmentMan::commands vector.
  17211. This is the default split algorithm of aria2.
  17212. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17213. that splits first segment of SegmentMan::commands vector.
  17214. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17215. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17216. * Segment.h:
  17217. * SegmentMan.cc: Added speed field to Segment.h
  17218. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17219. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17220. * message.h: Change file size related %d to %lld.
  17221. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17222. * FtpInitiateConnectionCommand.{h,cc}:
  17223. * FtpNegotiationCommand.{h,cc}:
  17224. * FtpDownloadCommand.{h,cc}:
  17225. * FtpConnection.{h,cc}: Added FTP support
  17226. * SimpleLogger.cc: Log message now includes time information.
  17227. * main.cc: The value of --http-auth-scheme option is chagned from
  17228. 'BASIC' to 'basic'
  17229. * main.cc: Added --timeout command-line option.
  17230. * main.cc: Added --min-segment-size command-line option.
  17231. * main.cc: Added --max-retries command-line option.
  17232. * prefs.h: option string constants are now defined in prefs.h
  17233. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17234. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17235. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17236. with version 0.1.0's one.
  17237. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17238. * configure.in: Added --enable-ssl option to configure script.
  17239. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17240. cannot permit absoluteURI as Request-URI.
  17241. * HttpConnection.cc: Added Referer support.
  17242. * main.cc: Added referer command-line option.
  17243. * main.cc: Added rety-wait command-line option.
  17244. * Exception.h: Fixed formating bug in Exception::setMsg()
  17245. * SocketCore.{h,cc}:
  17246. * Socket.{h, cc}:
  17247. * Request.cc:
  17248. * InitiateConnectionCommandFactory.cc:
  17249. * HttpRequestCommand.cc: Added HTTPS support.
  17250. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17251. for SocketCore.
  17252. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17253. size is wrong
  17254. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17255. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17256. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17257. * Release 0.1.0