ChangeLog 526 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620
  1. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Use url-list (web-seeding) only for single-file torrent. This is
  3. basically the same behavior with Metalink file with torrent and
  4. URIs.
  5. * src/RequestGroup.cc
  6. * src/DefaultBtContext.cc
  7. * test/DefaultBtContextTest.cc
  8. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Rewritten expr
  10. * src/array_fun.h
  11. * test/array_funTest.cc
  12. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  14. * src/DefaultBtMessageDispatcher.cc
  15. * src/a2algo.h
  16. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Removed ExtendedMessagingAware. Instead of using inheritance,
  18. added ExtensionMessageRegistry and it is passed to
  19. DefaultExtensionMessageFactory.
  20. * src/DefaultBtInteractive.cc
  21. * src/DefaultBtInteractive.h
  22. * src/DefaultExtensionMessageFactory.cc
  23. * src/DefaultExtensionMessageFactory.h
  24. * src/ExtendedMessagingAware.h: Removed.
  25. * src/ExtensionMessageFactory.h
  26. * src/ExtensionMessageRegistry.h: Added.
  27. * src/Makefile.am
  28. * src/PeerInteractionCommand.cc
  29. * test/DefaultExtensionMessageFactoryTest.cc
  30. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Fixed typo in log messages
  32. * src/MSEHandshake.cc
  33. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Fixed the bug that prevents torrent download from finishing. The
  35. bug doesn't reveal for all torrents. The torrents affected this
  36. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  37. of pieces.
  38. * src/bitfield.h
  39. * test/bitfieldTest.cc
  40. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Code cleanup
  42. * src/PeerListProcessor.h
  43. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Removed RequestGroupAware
  45. * src/AbstractCommand.cc
  46. * src/AbstractCommand.h
  47. * src/ActivePeerConnectionCommand.cc
  48. * src/ActivePeerConnectionCommand.h
  49. * src/DHTGetPeersCommand.cc
  50. * src/DHTGetPeersCommand.h
  51. * src/InitiatorMSEHandshakeCommand.cc
  52. * src/InitiatorMSEHandshakeCommand.h
  53. * src/Makefile.am
  54. * src/PeerInitiateConnectionCommand.cc
  55. * src/PeerInitiateConnectionCommand.h
  56. * src/PeerInteractionCommand.cc
  57. * src/PeerInteractionCommand.h
  58. * src/RealtimeCommand.cc
  59. * src/RealtimeCommand.h
  60. * src/RequestGroupAware.cc: Removed
  61. * src/RequestGroupAware.h: Removed
  62. * src/SeedCheckCommand.cc
  63. * src/SeedCheckCommand.h
  64. * src/SleepCommand.cc
  65. * src/TrackerWatcherCommand.cc
  66. * src/TrackerWatcherCommand.h
  67. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  68. Rewritten PeerListProcessor
  69. * src/PeerListProcessor.h
  70. * src/CompactPeerListProcessor.h: Removed
  71. * src/CompactPeerListProcessor.cc: Removed
  72. * src/DelegatingPeerListProcessor.cc: Removed.
  73. * src/DefaultBtAnnounce.cc
  74. * src/Makefile.am
  75. * src/UTPexExtensionMessage.cc
  76. * src/DefaultPeerListProcessor.h: Removed.
  77. * src/DefaultPeerListProcessor.cc: Removed.
  78. * src/DelegatingPeerListProcessor.h: Removed.
  79. * test/Makefile.am
  80. * test/PeerListProcessorTest.cc
  81. * test/DefaultPeerListProcessorTest.cc: Removed.
  82. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  83. Rewritten RequestGroupMan::calculateStat()
  84. * src/RequestGroupMan.cc
  85. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Removed unnecessary virtual destructor for Request class.
  87. * src/Request.cc
  88. * src/Request.h
  89. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Avoid dynamic_pointer_cast.
  91. * src/DHTGetPeersCommand.cc
  92. * src/DHTGetPeersCommand.h
  93. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  95. BtEvent.
  96. * src/AbstractBtEventListener.h: Removed.
  97. * src/AbstractBtMessage.cc
  98. * src/AbstractBtMessage.h
  99. * src/BtAbortOutstandingRequestEvent.h
  100. * src/BtCancelSendingPieceEvent.h
  101. * src/BtChokedEvent.h: Removed.
  102. * src/BtChokingEvent.h
  103. * src/BtEvent.h: Removed
  104. * src/BtEventListener.h: Removed.
  105. * src/BtMessage.h
  106. * src/BtPieceMessage.cc
  107. * src/BtPieceMessage.h
  108. * src/BtRequestMessage.cc
  109. * src/BtRequestMessage.h
  110. * src/DefaultBtMessageDispatcher.cc
  111. * src/Makefile.am
  112. * src/a2functional.h
  113. * test/BtPieceMessageTest.cc
  114. * test/BtRequestMessageTest.cc
  115. * test/DefaultBtMessageDispatcherTest.cc
  116. * test/MockBtMessage.h
  117. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Code cleanup
  119. * src/RequestGroupMan.cc
  120. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Code cleanup
  122. * src/DownloadCommand.cc
  123. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Fixed segmentation fault when GZipDecoder::decode() returns 0
  125. byte.
  126. * src/DownloadCommand.cc
  127. * src/bitfield.h
  128. * test/bitfieldTest.cc
  129. Fixed the bug that causes infinite loop if broken web server
  130. returns chunked response without last "0" chunk-size marker and
  131. closes connection.
  132. * src/DownloadCommand.cc
  133. Instantiate properly configured HttpDownloadCommand for
  134. non-resumable downlaods.
  135. * src/HttpResponseCommand.cc
  136. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Rewritten array operation functions.
  138. * src/BitfieldMan.cc
  139. * src/array_fun.h
  140. * test/array_funTest.cc
  141. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Removed unused variable 'query'
  143. * src/Request.cc
  144. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  146. accidentally set to false in r1162.
  147. * configure.ac
  148. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. Code cleanup
  150. * src/BNode.cc
  151. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Increase prefixLength for the bucket which doesn't own local node
  153. ID when splitting bucket.
  154. * src/DHTBucket.cc
  155. * test/DHTBucketTest.cc
  156. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  157. * Release 1.3.1
  158. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. Bump up version number to 1.3.1
  160. * configure.ac
  161. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Removed unused variable checkPoint. Also removed include directive
  163. for TimeA2.h.
  164. * src/SeedCheckCommand.h
  165. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Fixed the bug that upload limit exceeds the value specified in
  167. --seed-ratio option depending on the timing of the execution of
  168. SeedCheckCommand.
  169. * src/SeedCheckCommand.cc
  170. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  171. Fixed the bug that removed peer's session upload/download length
  172. are counted twice in _cachedTransferStat before it is
  173. re-calculated. This affected the calculation of shara ratio,
  174. resulting aria2 wrongly determines that specified share ratio is
  175. reached. Also fixed the typo in calculateStatFor function name.
  176. * src/BtSetup.cc
  177. * src/DefaultPeerStorage.cc
  178. * src/ShareRatioSeedCriteria.h
  179. * test/ShareRatioSeedCriteriaTest.cc
  180. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. * Release 1.3.0
  182. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  183. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  184. Nynorsk translations. Thanks to all translators.
  185. * po/es.po
  186. * po/ja.po
  187. * po/nn.po
  188. * po/ru.po
  189. * po/uk.po
  190. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Rewritten isInRange()
  192. * src/DHTBucket.cc
  193. * test/DHTBucketTest.cc
  194. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Fixed typo
  196. * doc/aria2c.1.txt
  197. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  199. malloc/realloc is not used.
  200. * src/configure.ac
  201. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. BitfieldMan::getMissingIndexes family functions now takes unsigned
  203. char* bitfield instead of stl container for efficiency.
  204. PieceSelector::select now takes this
  205. bitfield. RarestPieceSelector::select now also performs
  206. efficiently for this change. bitfield namespace is introduced and
  207. it has several helper functions to handle basic bitfield
  208. operations such as test, count set bits, etc.
  209. * src/BitfieldMan.cc
  210. * src/BitfieldMan.h
  211. * src/DefaultBtRequestFactory.cc
  212. * src/DefaultPieceStorage.cc
  213. * src/DefaultPieceStorage.h
  214. * src/LongestSequencePieceSelector.cc
  215. * src/LongestSequencePieceSelector.h
  216. * src/Makefile.am
  217. * src/Piece.cc
  218. * src/Piece.h
  219. * src/PieceSelector.h
  220. * src/RarestPieceSelector.cc
  221. * src/RarestPieceSelector.h
  222. * src/Util.cc
  223. * src/Util.h
  224. * src/bitfield.h
  225. * test/BitfieldManTest.cc
  226. * test/LongestSequencePieceSelectorTest.cc
  227. * test/Makefile.am
  228. * test/RarestPieceSelectorTest.cc
  229. * test/UtilTest.cc
  230. * test/bitfieldTest.cc
  231. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Made accepted socket non-block.
  233. * src/FtpNegotiationCommand.cc
  234. * src/HttpListenCommand.cc
  235. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  236. Guarded #ifdef HAVE_POSIX_FALLOCATE
  237. * src/AbstractSingleDiskAdaptor.cc
  238. * src/DefaultPieceStorage.cc
  239. * src/DiskAdaptor.h
  240. * src/DiskAdaptor.h
  241. * src/MultiFileAllocationIterator.cc
  242. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Run
  244. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  245. in every 1 sec. The timeout of RequestSlot is 60s by default and
  246. it doesn't need to be called every time when
  247. DefaultBtInteractive::doInteractionProcessing() is called.
  248. * src/DefaultBtInteractive.cc
  249. * src/DefaultBtInteractive.h
  250. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Documented 'falloc' in man page.
  252. * doc/aria2c.1.txt
  253. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Updated doc
  255. * src/usage_text.h
  256. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Added 'falloc' parameter for --file-allocation option. 'falloc'
  258. allocation mode uses posix_fallocate() system call to allocate
  259. file on disk. If you are using newer file systems such as ext4
  260. (with extents support), btrfs or xfs, 'falloc' is your best
  261. choice. It allocates large(few GiB) files almost instantly. Don't
  262. use 'falloc' with legacy file systems such as ext3 because it
  263. takes almost same time as 'prealloc' and it blocks aria2 entirely
  264. until allocation finishes. 'falloc' may not be available if your
  265. system doesn't have posix_fallocate() system call.
  266. * configure.ac
  267. * src/AbstractDiskWriter.cc
  268. * src/AbstractDiskWriter.h
  269. * src/AbstractSingleDiskAdaptor.cc
  270. * src/BinaryStream.h
  271. * src/BtCheckIntegrityEntry.cc
  272. * src/ByteArrayDiskWriter.h
  273. * src/CheckIntegrityEntry.cc
  274. * src/CheckIntegrityEntry.h
  275. * src/DefaultPieceStorage.cc
  276. * src/DiskAdaptor.cc
  277. * src/DiskAdaptor.h
  278. * src/DiskWriter.h
  279. * src/FallocFileAllocationIterator.cc
  280. * src/FallocFileAllocationIterator.h
  281. * src/FileAllocationEntry.cc
  282. * src/FileAllocationEntry.h
  283. * src/Makefile.am
  284. * src/MultiFileAllocationIterator.cc
  285. * src/MultiFileAllocationIterator.h
  286. * src/OptionHandlerFactory.cc
  287. * src/RequestGroup.cc
  288. * src/StreamCheckIntegrityEntry.cc
  289. * src/prefs.cc
  290. * src/prefs.h
  291. * src/usage_text.h
  292. * test/FallocFileAllocationIteratorTest.cc
  293. * test/Makefile.am
  294. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Removed duplicate enableDirectIO() call.
  296. * src/MultiFileAllocationIterator.cc
  297. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  299. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  300. cost of std::rotate().
  301. * src/RarestPieceSelector.cc
  302. * src/RarestPieceSelector.h
  303. * test/RarestPieceSelectorTest.cc
  304. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Updated usage doc for --bt-tracker-interval option.
  306. * src/usage_text.h
  307. * doc/aria2c.1.txt
  308. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Documented --bt-tracker-interval option in man page.
  310. * doc/aria2c.1.txt
  311. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. Added an option to specify the interval between tracker requests.
  313. If non-zero value is specified, aria2 uses it and ignores the
  314. interval value in the response of tracker. If zero is specified,
  315. aria2 determines the inteval value based on the tarcker response
  316. and download progress.
  317. * src/DefaultBtAnnounce.cc
  318. * src/DefaultBtAnnounce.h
  319. * src/OptionHandlerFactory.cc
  320. * src/RequestGroup.cc
  321. * src/prefs.cc
  322. * src/prefs.h
  323. * src/usage_text.h
  324. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Added operator+=, operator-=, operator-
  326. * src/TransferStat.cc
  327. * src/TransferStat.h
  328. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Refactored RarestPieceSelector to reduce CPU load, especially for
  330. addPieceStats.
  331. * src/RarestPieceSelector.cc
  332. * src/RarestPieceSelector.h
  333. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  335. getAllMissingBlockIndexes to reduce a call to
  336. array_function_base::operator[].
  337. * src/BitfieldMan.cc
  338. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Cached TransferStat/download speed to avoid to sum them up in each
  340. call.
  341. * src/DefaultPeerStorage.cc
  342. * src/DefaultPeerStorage.h
  343. * src/SegmentMan.cc
  344. * src/SegmentMan.h
  345. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. Typedefed cuid_t as int32_t in Command.h
  347. * src/CUIDCounter.h
  348. * src/Command.cc
  349. * src/Command.h
  350. * src/DownloadEngine.cc
  351. * src/DownloadEngine.h
  352. * src/PeerStat.h
  353. * src/SegmentMan.cc
  354. * src/SegmentMan.h
  355. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Reduced the number of calls to PeerStorage::calculateStat() and
  357. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  358. transfer rate.
  359. * src/DefaultBtInteractive.cc
  360. * src/DefaultBtMessageDispatcher.cc
  361. * src/DefaultPeerStorage.cc
  362. * src/DefaultPeerStorage.h
  363. * src/DownloadCommand.cc
  364. * src/DownloadEngine.cc
  365. * src/PeerStorage.h
  366. * src/SegmentMan.cc
  367. * src/SegmentMan.h
  368. * test/MockPeerStorage.h
  369. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  370. Prepended _dir+"/" after joining path elements in torrent file.
  371. * src/DefaultBtContext.cc
  372. * test/DefaultBtContextTest.cc
  373. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Added missing IndexBtMessageValidator.h
  375. * src/Makefile.am
  376. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  378. Chinese translations. Thank you for contributing our project.
  379. * po/id.po
  380. * po/it.po
  381. * po/ru.po
  382. * po/uk.po
  383. * po/zh_CN.po
  384. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Updated README
  386. * README
  387. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Bump up version number to 1.3.0
  389. * configure.ac
  390. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Updated doc
  392. * src/DefaultBtContext.h
  393. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  394. Slice/joinPath for name of single torrent.
  395. * src/DefaultBtContext.cc
  396. * test/DefaultBtContextTest.cc
  397. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Updated man page: Documented --dry-run and --index-out
  399. options. Changed the default value of --uri-selector and
  400. --http-auth-challenge options. Removed --direct-file-mapping
  401. option. Added example for --index-out
  402. * doc/aria2c.1.txt
  403. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Updated TEXT_DRY_RUN
  405. * src/usage_text.h
  406. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Changed the default value of --uri-selector option from 'inorder'
  408. to 'feedback'
  409. * src/OptionHandlerFactory.cc
  410. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. Included current URI in exception message.
  412. * src/AbstractCommand.cc
  413. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Renamed ServerStatURISelector as FeedbackURISelector.
  415. * src/FeedbackURISelector.cc
  416. * src/FeedbackURISelector.h
  417. * src/Makefile.am
  418. * src/RequestGroupMan.cc
  419. * src/ServerStatURISelector.cc
  420. * src/ServerStatURISelector.h
  421. * test/FeedbackURISelectorTest.cc
  422. * test/Makefile.am
  423. * test/ServerStatURISelectorTest.cc
  424. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  426. all URIs are tested and their timeout is not reached.
  427. * src/AdaptiveURISelector.cc
  428. * src/AdaptiveURISelector.h
  429. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Changed the default value of --http-auth-challenge option to false.
  431. * src/OptionHandlerFactory.cc
  432. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Reuse URIs when all unused URIs run out.
  434. * src/OptionHandlerFactory.cc
  435. * src/RequestGroup.cc
  436. * src/prefs.cc
  437. * src/prefs.h
  438. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  439. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  440. and BtRejectMessage are derived from RangeBtMessage class.
  441. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  442. derived from IndexBtMessage class. BtChokeMessage,
  443. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  444. BtNotInterestedMessage and BtUnchokeMessage are derived from
  445. ZeroBtMessage class.
  446. * src/AbstractBtMessage.cc
  447. * src/AbstractBtMessage.h
  448. * src/BtAllowedFastMessage.cc
  449. * src/BtAllowedFastMessage.h
  450. * src/BtAllowedFastMessageValidator.h: Removed
  451. * src/BtBitfieldMessage.cc
  452. * src/BtBitfieldMessage.h
  453. * src/BtCancelMessage.cc
  454. * src/BtCancelMessage.h
  455. * src/BtCancelMessageValidator.h: Removed
  456. * src/BtChokeMessage.cc
  457. * src/BtChokeMessage.h
  458. * src/BtExtendedMessage.cc
  459. * src/BtExtendedMessage.h
  460. * src/BtHandshakeMessage.cc
  461. * src/BtHandshakeMessage.h
  462. * src/BtHaveAllMessage.cc
  463. * src/BtHaveAllMessage.h
  464. * src/BtHaveMessage.cc
  465. * src/BtHaveMessage.h
  466. * src/BtHaveMessageValidator.h: Removed
  467. * src/BtHaveNoneMessage.cc
  468. * src/BtHaveNoneMessage.h
  469. * src/BtInterestedMessage.cc
  470. * src/BtInterestedMessage.h
  471. * src/BtKeepAliveMessage.cc
  472. * src/BtKeepAliveMessage.h
  473. * src/BtNotInterestedMessage.cc
  474. * src/BtNotInterestedMessage.h
  475. * src/BtPieceMessage.cc
  476. * src/BtPieceMessage.h
  477. * src/BtPortMessage.cc
  478. * src/BtPortMessage.h
  479. * src/BtRejectMessage.cc
  480. * src/BtRejectMessage.h
  481. * src/BtRejectMessageValidator.h: Removed
  482. * src/BtRequestMessage.cc
  483. * src/BtRequestMessage.h
  484. * src/BtRequestMessageValidator.h: Removed
  485. * src/BtSuggestPieceMessage.cc
  486. * src/BtSuggestPieceMessage.h
  487. * src/BtSuggestPieceMessageValidator.h: Removed
  488. * src/BtUnchokeMessage.cc
  489. * src/BtUnchokeMessage.h
  490. * src/DefaultBtMessageFactory.cc
  491. * src/IndexBtMessage.cc
  492. * src/IndexBtMessage.h
  493. * src/IndexBtMessageValidator.h
  494. * src/Makefile.am
  495. * src/PeerMessageUtil.cc
  496. * src/PeerMessageUtil.h
  497. * src/RangeBtMessage.cc
  498. * src/RangeBtMessage.h
  499. * src/RangeBtMessageValidator.h
  500. * src/SimpleBtMessage.cc
  501. * src/SimpleBtMessage.h
  502. * src/ZeroBtMessage.cc
  503. * src/ZeroBtMessage.h
  504. * test/BtRequestMessageTest.cc
  505. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Reverted usage_text.h to r1093 to avoid to lose translated
  507. messages.
  508. * src/usage_text.h
  509. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  511. declared as non-const previously is now const and defined in class
  512. definition.
  513. * src/AbstractBtMessage.cc
  514. * src/AbstractBtMessage.h
  515. * src/BtAllowedFastMessage.cc
  516. * src/BtAllowedFastMessage.h
  517. * src/BtBitfieldMessage.h
  518. * src/BtCancelMessage.cc
  519. * src/BtCancelMessage.h
  520. * src/BtChokeMessage.cc
  521. * src/BtChokeMessage.h
  522. * src/BtExtendedMessage.cc
  523. * src/BtExtendedMessage.h
  524. * src/BtHandshakeMessage.cc
  525. * src/BtHandshakeMessage.h
  526. * src/BtHaveAllMessage.cc
  527. * src/BtHaveAllMessage.h
  528. * src/BtHaveMessage.cc
  529. * src/BtHaveMessage.h
  530. * src/BtHaveNoneMessage.cc
  531. * src/BtHaveNoneMessage.h
  532. * src/BtInterestedMessage.cc
  533. * src/BtInterestedMessage.h
  534. * src/BtKeepAliveMessage.cc
  535. * src/BtKeepAliveMessage.h
  536. * src/BtMessage.h
  537. * src/BtNotInterestedMessage.cc
  538. * src/BtNotInterestedMessage.h
  539. * src/BtPieceMessage.h
  540. * src/BtPortMessage.cc
  541. * src/BtPortMessage.h
  542. * src/BtRejectMessage.cc
  543. * src/BtRejectMessage.h
  544. * src/BtRequestMessage.cc
  545. * src/BtRequestMessage.h
  546. * src/BtSuggestPieceMessage.cc
  547. * src/BtSuggestPieceMessage.h
  548. * src/BtUnchokeMessage.cc
  549. * src/BtUnchokeMessage.h
  550. * src/SimpleBtMessage.cc
  551. * src/SimpleBtMessage.h
  552. * test/MockBtMessage.h
  553. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Use FileEntry::exists()
  555. * src/MultiDiskAdaptor.cc
  556. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  557. Added exists()
  558. * src/FileEntry.cc
  559. * src/FileEntry.h
  560. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  561. Added missing prefix dir.
  562. * src/download_helper.cc
  563. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Removed --direct-file-mapping option and CopyDiskAdaptor.
  565. * src/CopyDiskAdaptor.cc: Removed
  566. * src/CopyDiskAdaptor.h: Removed
  567. * src/DefaultPieceStorage.cc
  568. * src/Makefile.am
  569. * src/OptionHandlerFactory.cc
  570. * src/prefs.cc
  571. * src/prefs.h
  572. * src/usage_text.h
  573. * test/CopyDiskAdaptorTest.cc: Removed
  574. * test/Makefile.am
  575. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Rewritten isSameFileBeingDownloaded()
  577. * src/RequestGroupMan.cc
  578. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Removed getName() from DownloadContext. getName() is declared in
  580. BtContext.
  581. * src/BtContext.h
  582. * src/DownloadContext.h
  583. * src/SingleFileDownloadContext.cc
  584. * src/SingleFileDownloadContext.h
  585. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  586. in AbstractSingleDiskAdaptor.
  587. * src/AbstractSingleDiskAdaptor.h
  588. * src/DiskAdaptor.h
  589. * src/MultiDiskAdaptor.h
  590. * src/RequestGroup.cc
  591. Removed setTopDir() and getTopDir() and getTopDirPath() from
  592. MultiDiskAdaptor.
  593. * src/DefaultPieceStorage.cc
  594. * src/MultiDiskAdaptor.cc
  595. * src/MultiDiskAdaptor.h
  596. * test/MultiDiskAdaptorTest.cc
  597. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  598. FileEntry::getPath() contains store(top level) directory to
  599. simplify path handling operation. In the previous implementation,
  600. store directory is concatenated to FileEntry::getPath() in
  601. DownloadContext.
  602. * src/BtDependency.cc
  603. * src/BtPostDownloadHandler.cc
  604. * src/CopyDiskAdaptor.cc
  605. * src/DefaultBtContext.cc
  606. * src/DirectDiskAdaptor.cc
  607. * src/FileEntry.cc
  608. * src/FileEntry.h
  609. * src/FtpNegotiationCommand.cc
  610. * src/HttpResponse.cc
  611. * src/HttpResponseCommand.cc
  612. * src/Metalink2RequestGroup.cc
  613. * src/MultiDiskAdaptor.cc
  614. * src/MultiDiskAdaptor.h
  615. * src/MultiFileAllocationIterator.cc
  616. * src/RequestGroup.cc
  617. * src/SingleFileDownloadContext.cc
  618. * src/SingleFileDownloadContext.h
  619. * src/download_helper.cc
  620. * test/BtDependencyTest.cc
  621. * test/CopyDiskAdaptorTest.cc
  622. * test/DefaultBtContextTest.cc
  623. * test/DefaultBtProgressInfoFileTest.cc
  624. * test/DirectDiskAdaptorTest.cc
  625. * test/DownloadHelperTest.cc
  626. * test/FileEntryTest.cc
  627. * test/MultiDiskAdaptorTest.cc
  628. * test/MultiFileAllocationIteratorTest.cc
  629. * test/RequestGroupTest.cc
  630. * test/SingleFileDownloadContextTest.cc
  631. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Fixed compiler warning
  633. * src/download_helper.cc
  634. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  635. Throw exception if same infohash torrent is now downloading.
  636. * src/RequestGroup.cc
  637. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Added --dry-run option. In this mode, aria2 just checks whether
  639. the remote file is available and doesn't download data. This
  640. option has effect on HTTP/FTP downloads and BitTorrent downloads
  641. are canceled in this mode.
  642. * src/FtpNegotiationCommand.cc
  643. * src/HttpResponseCommand.cc
  644. * src/HttpResponseCommand.h
  645. * src/OptionHandlerFactory.cc
  646. * src/RequestGroup.cc
  647. * src/RequestGroupMan.cc
  648. * src/prefs.cc
  649. * src/prefs.h
  650. * src/usage_text.h
  651. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Fixed compiler waring
  653. * test/UriListParserTest.cc
  654. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Parse options in -i list using OptionParser.
  656. * src/UriListParser.cc
  657. * src/UriListParser.h
  658. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  659. Don't reset URI in retry to avoid additional round trips because
  660. of redirects.
  661. * src/AbstractCommand.cc
  662. * src/OptionHandlerFactory.cc
  663. * src/prefs.cc
  664. * src/prefs.h
  665. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Declared hide() in OptionHandler.
  667. * src/NameMatchOptionHandler.h
  668. * src/OptionHandler.h
  669. * src/OptionHandlerImpl.h
  670. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  671. Updated doc
  672. * src/Peer.h
  673. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  674. Added log message in setStatusInternal()
  675. * src/ServerStat.cc
  676. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Call ServerStat::setError() in AbstractCommand::onAbort() to
  678. effectively exclude failed server.
  679. * src/AbstractCommand.cc
  680. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. Added --index-out option to specify each file path for torrent.
  682. Here index shown in --show-files option is used to specify which
  683. file path should be altered. For example, to change the file path
  684. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  685. option multiple times: --index-out=1=aria2.tar.bz2
  686. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  687. available. This option can be specified in -i list.
  688. * src/DefaultBtContext.cc
  689. * src/DefaultBtContext.h
  690. * src/MultiDiskAdaptor.cc
  691. * src/MultiDiskAdaptor.h
  692. * src/MultiFileAllocationIterator.cc
  693. * src/OptionHandlerFactory.cc
  694. * src/OptionHandlerImpl.h
  695. * src/Util.cc
  696. * src/Util.h
  697. * src/download_helper.cc
  698. * src/prefs.cc
  699. * src/prefs.h
  700. * src/usage_text.h
  701. * test/DefaultBtContextTest.cc
  702. * test/MultiDiskAdaptorTest.cc
  703. * test/MultiFileAllocationIteratorTest.cc
  704. * test/UtilTest.cc
  705. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Use Util::pathJoin()
  707. * src/MetalinkParserController.cc
  708. * test/test.xml
  709. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Use Util::pathJoin()
  711. * src/DefaultBtContext.cc
  712. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Added Util::pathJoin()
  714. * src/Util.h
  715. * test/UtilTest.cc
  716. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Applied basename function to remove directory element in
  718. content-disposition value.
  719. Return empty string if content-disposition value is ".." or ".".
  720. * src/Util.cc
  721. * test/UtilTest.cc
  722. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Added --max-overall-download-limit in man page.
  724. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  725. * doc/aria2c.1.txt
  726. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Added --max-overall-download-limit option. Now --max-upload-limit
  728. option is not ignored when --max-overall-upload-limit option has
  729. non-zero value. aria2 checks download(upload) speed in the order:
  730. first checks overall speed limit and if it is not exceeded, then
  731. checks speed limit per download. Thus you can specify both
  732. value. For example, set --max-overall-download-limit=1M and
  733. --max-download-limit=500K to prevent from one download from eating
  734. all overall speed limit.
  735. * src/DefaultBtInteractive.cc
  736. * src/DefaultBtInteractive.h
  737. * src/DefaultBtMessageDispatcher.cc
  738. * src/DefaultBtMessageDispatcher.h
  739. * src/DownloadCommand.cc
  740. * src/DownloadCommand.h
  741. * src/FtpNegotiationCommand.cc
  742. * src/HttpResponseCommand.cc
  743. * src/OptionHandlerFactory.cc
  744. * src/PeerInteractionCommand.cc
  745. * src/RequestGroup.cc
  746. * src/RequestGroup.h
  747. * src/RequestGroupMan.cc
  748. * src/RequestGroupMan.h
  749. * src/prefs.cc
  750. * src/prefs.h
  751. * src/usage_text.h
  752. * test/DefaultBtMessageDispatcherTest.cc
  753. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Documented select-file option in Input File section.
  755. Documented --http-auth-challenge option.
  756. * doc/aria2c.1.txt
  757. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. Now select-file can be specified in the uri list(-i list).
  759. * src/BtContext.cc
  760. * src/BtContext.h
  761. * src/RequestGroup.cc
  762. * src/Sequence.h
  763. * src/download_helper.cc
  764. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Made the upper value of --max-concurrent-downloads options unlimited.
  766. * src/OptionHandlerFactory.cc
  767. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  768. Fixed the bug that disk writer is not created even if it shares
  769. same piece with the preceding file if the length of previous file
  770. is 0.
  771. * src/MultiDiskAdaptor.cc
  772. * test/MultiDiskAdaptorTest.cc
  773. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  774. In BitTorrent, Open files in read-only mode for hash check. After
  775. that, re-open file in read/write mode only when the download is
  776. not finished.
  777. * src/AbstractDiskWriter.cc
  778. * src/AbstractDiskWriter.h
  779. * src/AbstractSingleDiskAdaptor.cc
  780. * src/AbstractSingleDiskAdaptor.h
  781. * src/BtCheckIntegrityEntry.cc
  782. * src/DiskAdaptor.h
  783. * src/DiskWriter.h
  784. * src/MultiDiskAdaptor.cc
  785. * src/MultiDiskAdaptor.h
  786. * src/RequestGroup.cc
  787. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Added --http-auth-challenge option. If it is set to true(by
  789. default), aria2 sends HTTP authorization header only when it is
  790. requested by the server. If false is set, then authorization
  791. header is always sent to the server. This is useful for servers
  792. that don't respond 401 code when authentication is required.
  793. There is an exception: if username and password are embedded in
  794. URI, authorization header is always sent to the server regardless
  795. of this option.
  796. * src/AuthConfigFactory.cc
  797. * src/HttpSkipResponseCommand.cc
  798. * src/OptionHandlerFactory.cc
  799. * src/prefs.cc
  800. * src/prefs.h
  801. * src/usage_text.h
  802. * test/AuthConfigFactoryTest.cc
  803. * test/HttpRequestTest.cc
  804. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. * Release 1.2.0
  806. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  807. Updated Spanish, Ukrainian, Russian and Japanese translations.
  808. Thanks to all translators.
  809. * po/es.po
  810. * po/ja.po
  811. * po/ru.po
  812. * po/uk.po
  813. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Call deleteSocketForReadCheck() before socket is closed.
  815. * src/HttpListenCommand.cc
  816. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Defined virtual destructor for BObject.
  818. * src/bencode.h
  819. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Rewritten BDE to make it efficient.
  821. * src/bencode.cc
  822. * src/bencode.h
  823. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Removed function throw list.
  825. * src/bencode.cc
  826. * src/bencode.h
  827. * test/BencodeTest.cc
  828. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Enclosed all URLs in double quotes in command-line examples.
  830. * doc/aria2c.1.txt
  831. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Updated reference/see also section.
  833. * README
  834. * doc/aria2c.1.txt
  835. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  836. Reorganized man page based on man man-pages.
  837. * doc/aria2c.1.txt
  838. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  839. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  840. because same documents are available in man page. Added
  841. References section.
  842. * README
  843. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  845. PERFORMANCE PROFILE section.
  846. * doc/aria2c.1.txt
  847. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Rewritten the section for configuration file.
  849. * README
  850. * doc/aria2c.1.txt
  851. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Fixed the segmentation fault during execution of choking algorithm
  853. in leecher state because of broken compare operator
  854. implementation.
  855. * src/BtLeecherStateChoke.cc
  856. * src/BtLeecherStateChoke.h
  857. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  858. Open file in binary mode.
  859. * src/CookieStorage.cc
  860. * src/DHTSetup.cc
  861. * src/DHTUtil.cc
  862. * src/Netrc.cc
  863. * src/NsCookieParser.cc
  864. * src/ProtocolDetector.cc
  865. * src/RequestGroupMan.cc
  866. * src/Signature.cc
  867. * src/bencode.cc
  868. * src/download_helper.cc
  869. * src/option_processing.cc
  870. * test/CookieParserTest.cc
  871. * test/DefaultBtProgressInfoFileTest.cc
  872. * test/FileTest.cc
  873. * test/GZipDecoderTest.cc
  874. * test/RequestGroupManTest.cc
  875. * test/SignatureTest.cc
  876. * test/SingleFileAllocationIteratorTest.cc
  877. * test/UriListParserTest.cc
  878. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  879. Removed operator[] because it is ambiguous with built-in []
  880. operator.
  881. * src/array_fun.h
  882. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Fixed compile error
  884. * src/OptionParser.cc
  885. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Added missing call to arrayWrapperConst
  887. * test/array_funTest.cc
  888. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Use array_wrapper instead of array_ptr.
  890. * src/DHTRoutingTableDeserializer.cc
  891. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  893. * src/array_fun.h
  894. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Added array_wrapper template.
  896. * src/array_fun.h
  897. * test/array_funTest.cc
  898. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Use operator T* of array_ptr.
  900. * src/OptionParser.cc
  901. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Use localhost instead of 127.0.0.1
  903. * test/FtpConnectionTest.cc
  904. * test/MSEHandshakeTest.cc
  905. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Added operator T*
  907. * src/array_fun.h
  908. * test/array_funTest.cc
  909. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Use dynamically allocated char array to detect memory access
  911. violation.
  912. * src/DHTRoutingTableDeserializer.cc
  913. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  915. defined.
  916. * src/PeerMessageUtil.cc
  917. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  918. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  919. * configure.ac
  920. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  921. Added a check to see struct sockaddr_in has sin_len member.
  922. * configure.ac
  923. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Fixed buffer overrun.
  925. * src/DHTRoutingTableDeserializer.cc
  926. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  927. Added LL for long long int constant.
  928. * test/FtpConnectionTest.cc
  929. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  930. Casted to unsigned int to suppress compiler warning on netbsd.
  931. * src/BtRuntime.h
  932. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Assign the value of tv.tv_sec to time_t timesec instead of giving
  934. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  935. type time_t.
  936. * src/SimpleLogger.cc
  937. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  938. Added test for FtpConnection::receiveSizeResponse().
  939. * test/FtpConnectionTest.cc
  940. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Fix epoll error on the old kernel 2.6.8 or ealier.
  942. * src/EpollEventPoll.cc
  943. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Use Util::parseLLInt instead of sscanf for portability. The
  945. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  946. * src/FtpConnection.cc
  947. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  949. block. It should not filter anything.
  950. * src/BitfieldMan.cc
  951. * src/ConsoleStatCalc.cc
  952. * test/BitfieldManTest.cc
  953. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Fixed the bug that the boolean options that don't take arguments
  955. don't work.
  956. * src/OptionHandlerImpl.h
  957. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Fixed broken selected file BitTorrent download.
  959. * src/MultiDiskAdaptor.cc
  960. * test/MultiDiskAdaptorTest.cc
  961. * test/MultiFileAllocationIteratorTest.cc
  962. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. Fixed #define guard for EpollEventPoll
  964. * src/EpollEventPoll.h
  965. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Wait 2 seconds. 1 second is sometimes not enough.
  967. * test/TimeSeedCriteriaTest.cc
  968. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  969. Use localhost instead of 127.0.0.1.
  970. * test/DHTConnectionImplTest.cc
  971. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  972. Suppressed compiler warning.
  973. * src/AdaptiveURISelector.cc
  974. * src/DefaultPieceStorage.cc
  975. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Defined virtual destructor.
  977. * src/MetalinkParserState.h
  978. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. Give NULL for second argument of getaddrinfo instead of "0".
  980. * src/NameResolver.cc
  981. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  983. included strptime doesn't parse data for this format.
  984. * src/FtpConnection.cc
  985. * test/FtpConnectionTest.cc
  986. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Removed tests giving -1 for unsigned argument.
  988. * test/SingleFileDownloadContextTest.cc
  989. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  990. Don't use sha256 in tests because it might not be supported by the
  991. SSL library.
  992. * test/MetalinkProcessorTest.cc
  993. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Removed tests giving -1 for unsigned argument.
  995. * test/AlphaNumberDecoratorTest
  996. * test/BitfieldManTest.cc
  997. * test/DefaultBtContextTest.cc
  998. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Fixed compile error without libcares when epoll is available.
  1000. * src/EpollEventPoll.cc
  1001. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1002. Included fstream instead of iostream.
  1003. * test/SignatureTest.cc
  1004. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. Removed #include <algorithm>
  1006. * test/RequestGroupTest.cc
  1007. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1009. using RequestGroup::extractURIResult().
  1010. * src/AdaptiveURISelector.cc
  1011. * src/RequestGroup.cc
  1012. * src/RequestGroup.h
  1013. * test/RequestGroupTest.cc
  1014. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Added tests for array_ptr.
  1016. * test/array_funTest.cc
  1017. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Don't send ip parameter to a tracker if ip parameter is empty
  1019. string.
  1020. * src/DefaultBtAnnounce.cc
  1021. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Adjusted line feed.
  1023. * src/version_usage.cc
  1024. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1025. Print tags, possible values when OptionHandlerException is caught.
  1026. * src/option_processing.cc
  1027. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1028. Changed the message for FatalException.
  1029. * src/OptionParser.cc
  1030. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1031. Documented --bt-external-ip option in man page. Updated man pages
  1032. for --proxy-method option.
  1033. * doc/aria2c.1.txt
  1034. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Use GET method for FTP via HTTP proxy.
  1036. * src/FtpInitiateConnectionCommand.cc
  1037. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Changed the default value of --proxy-method option from 'tunnel'
  1039. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1040. option.
  1041. * src/AbstractCommand.cc
  1042. * src/AbstractCommand.h
  1043. * src/FtpInitiateConnectionCommand.cc
  1044. * src/HttpDownloadCommand.cc
  1045. * src/HttpInitiateConnectionCommand.cc
  1046. * src/HttpInitiateConnectionCommand.h
  1047. * src/OptionHandlerFactory.cc
  1048. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Initialized _logger
  1050. * src/SelectEventPoll.cc
  1051. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Defined a copy constructor for the same type.
  1053. * src/SharedHandle.h
  1054. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Added OptionParser::parseArg() which internally uses getopt_long
  1056. to parse command-line options. All command-line options are now
  1057. configured by OptionHandler. No manual editing of struct option*
  1058. is required any more.
  1059. * src/NameMatchOptionHandler.h
  1060. * src/OptionHandler.h
  1061. * src/OptionHandlerFactory.cc
  1062. * src/OptionHandlerImpl.h
  1063. * src/OptionParser.cc
  1064. * src/OptionParser.h
  1065. * src/array_fun.h
  1066. * src/main.cc
  1067. * src/option_processing.cc
  1068. * test/OptionHandlerTest.cc
  1069. * test/OptionParserTest.cc
  1070. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Fixed configure error with --disable-epoll
  1072. * configure.ac
  1073. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Fixed compile error when HAVE_EPOLL is not defined.
  1075. Fixed linker error on bigendian systems.
  1076. * src/SocketCore.cc
  1077. * src/SocketCore.h
  1078. * test/DefaultBtProgressInfoFileTest.cc
  1079. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Added --bt-external-ip option. You can specify the external IP
  1081. address to report to a BitTorrent tracker. Although this function
  1082. is named 'external', it can accept any kind of IP addresses.
  1083. * src/DefaultBtAnnounce.cc
  1084. * src/OptionHandlerFactory.cc
  1085. * src/option_processing.cc
  1086. * src/prefs.cc
  1087. * src/prefs.h
  1088. * src/usage_text.h
  1089. * test/DefaultBtAnnounceTest.cc
  1090. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1091. Extracted the algorithm to find the longest incremental sequence
  1092. as max_sequence template.
  1093. * src/LongestSequencePieceSelector.cc
  1094. * src/a2algo.h
  1095. * test/Makefile.am
  1096. * test/a2algoTest.cc
  1097. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1099. * src/usage_text.h
  1100. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1101. Updated doc for --uri-selector, --http-server-listen-port and
  1102. --enable-http-server option. Documented --event-poll option.
  1103. * doc/aria2c.1.txt
  1104. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Updated doc for --enable-http-server.
  1106. * src/usage_text.h
  1107. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Documented --http-server-listen-port and --enable-http-server in
  1109. man page.
  1110. * doc/aria2c.1.txt
  1111. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1113. translations. Thanks to all translators.
  1114. * po/es.po
  1115. * po/id.po
  1116. * po/it.po
  1117. * po/ru.po
  1118. * po/uk.po
  1119. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Bump up version number to 1.2.0
  1121. * configure.ac
  1122. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. BtContext::getAnnounceTiers() now returns const reference.
  1124. * src/BtContext.h
  1125. * src/DefaultBtContext.cc
  1126. * src/DefaultBtContext.h
  1127. * test/MockBtContext.h
  1128. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1129. Change the number of retries for tracker request based on the
  1130. number of available tracker in a torrent file.
  1131. * src/TrackerWatcherCommand.cc
  1132. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Added _maxTries property to RequestGroup and assign the option
  1134. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1135. RequestGroup::getMaxTries() instead of
  1136. Option::getAsInt(PREF_MAX_TRIES).
  1137. * src/AbstractCommand.cc
  1138. * src/RequestGroup.cc
  1139. * src/RequestGroup.h
  1140. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1142. Mandriva. I modified the patch: make RequestGroup have the
  1143. timeout value and AdaptiveURISelector directly modifies that
  1144. value.
  1145. * src/AbstractCommand.cc
  1146. * src/AdaptiveURISelector.cc
  1147. * src/AdaptiveURISelector.h
  1148. * src/FtpNegotiationCommand.cc
  1149. * src/RequestGroup.cc
  1150. * src/RequestGroup.h
  1151. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Fixed compiler warning
  1153. * test/IteratableChecksumValidatorTest.cc
  1154. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1155. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1156. integrated downloads. This PieceSelector subclass finds the
  1157. longest continuous sequence in the available missing pieces and
  1158. selects the last index of such sequence. This makes HTTP/FTP
  1159. connections less interrupted by the pieces obtained by BitTorrent
  1160. peers.
  1161. * src/DefaultPieceStorage.cc
  1162. * src/DefaultPieceStorage.h
  1163. * src/LongestSequencePieceSelector.cc
  1164. * src/LongestSequencePieceSelector.h
  1165. * src/Makefile.am
  1166. * src/PieceSelector.h
  1167. * src/RarestPieceSelector.h
  1168. * src/RequestGroup.cc
  1169. * test/BtDependencyTest.cc
  1170. * test/DefaultPieceStorageTest.cc
  1171. * test/IteratableChecksumValidatorTest.cc
  1172. * test/LongestSequencePieceSelectorTest.cc
  1173. * test/Makefile.am
  1174. * test/SegmentManTest.cc
  1175. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Fixed the bug that the average speed is wrong in
  1177. http/ftp/BitTorrent integrated download. Only the download bytes
  1178. in BitTorrent were considered.
  1179. * src/RequestGroup.cc
  1180. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Choose port for BitTorrent/DHT randomly from the specified range.
  1182. * src/DHTConnectionImpl.cc
  1183. * src/PeerListenCommand.cc
  1184. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Send HTTP Authorization header only if it is requested by the
  1186. server(response 401). There are some exceptions. The authorization
  1187. header for proxy is always sent if it is available without request
  1188. by the server. If username/password is specified in the URI, it
  1189. is immediately sent to the server without request by the server.
  1190. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1191. SharedHandle<AuthConfig>().
  1192. NetrcAuthResolver::resolveAuthConfig() returns
  1193. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1194. * src/AbstractAuthResolver.cc
  1195. * src/AbstractProxyRequestCommand.cc
  1196. * src/AuthConfigFactory.cc
  1197. * src/AuthConfigFactory.h
  1198. * src/HttpConnection.cc
  1199. * src/HttpRequest.cc
  1200. * src/HttpRequest.h
  1201. * src/HttpResponse.cc
  1202. * src/HttpResponseCommand.cc
  1203. * src/HttpSkipResponseCommand.cc
  1204. * test/AuthConfigFactoryTest.cc
  1205. * test/HttpRequestTest.cc
  1206. * test/HttpResponseTest.cc
  1207. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Remove leading "--" from help keyword and a substring after "="
  1209. from help keyword, so that one can query options by '-h--max-' or
  1210. '-hmax-peers=10'.
  1211. * src/option_processing.cc
  1212. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Rewritten PStringVisitor and its implementation.
  1214. * src/PStringBuildVisitor.cc
  1215. * src/PStringBuildVisitor.h
  1216. * src/PStringDatum.h
  1217. * src/PStringNumLoop.h
  1218. * src/PStringSegment.cc
  1219. * src/PStringSegment.h
  1220. * src/PStringSelect.h
  1221. * src/PStringVisitor.h
  1222. * src/download_helper.cc
  1223. * test/PStringBuildVisitorTest.cc
  1224. * test/ParameterizedStringParserTest.cc
  1225. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1226. Persist connection between the built-in HTTP server and a client
  1227. if a client supports keep-alive. Fixed the bug that aria2 exits
  1228. when the HTTP server receives EOF from a client.
  1229. * src/HttpServer.cc
  1230. * src/HttpServer.h
  1231. * src/HttpServerCommand.cc
  1232. * src/HttpServerCommand.h
  1233. * src/HttpServerResponseCommand.cc
  1234. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1235. Added experimental built-in HTTP server. Currently, when a client
  1236. accesses to the server, it responds with the current download
  1237. progress. By default, it is disabled. To enable the server, give
  1238. --enable-http-server option. To change the default port number
  1239. for the server to listen to, use --http-server-listen-port option.
  1240. The response HTML is very simple and refreshes it self each 1
  1241. second. Because of this refresh, you see flicker in normal web
  1242. browser such as Firefox. I recommend to use console-based browser
  1243. such as elinks, w3m. To connect to the server, run 'elinks
  1244. http://localhost:6800/' while running aria2. Please replace port
  1245. number '6800'(which is default) with your preference.
  1246. * src/DownloadEngineFactory.cc
  1247. * src/HttpHeader.cc
  1248. * src/HttpHeader.h
  1249. * src/HttpHeaderProcessor.cc
  1250. * src/HttpHeaderProcessor.h
  1251. * src/HttpListenCommand.cc
  1252. * src/HttpListenCommand.h
  1253. * src/HttpServer.cc
  1254. * src/HttpServer.h
  1255. * src/HttpServerCommand.cc
  1256. * src/HttpServerCommand.h
  1257. * src/HttpServerResponseCommand.cc
  1258. * src/HttpServerResponseCommand.h
  1259. * src/Makefile.am
  1260. * src/OptionHandlerFactory.cc
  1261. * src/Util.cc
  1262. * src/Util.h
  1263. * src/help_tags.h
  1264. * src/option_processing.cc
  1265. * src/prefs.cc
  1266. * src/prefs.h
  1267. * src/usage_text.h
  1268. * test/HttpHeaderProcessorTest.cc
  1269. * test/UtilTest.cc
  1270. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Removed.
  1272. * src/CheckIntegrityMan.cc
  1273. * src/FileAllocationMan.cc
  1274. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Made (piece) hash check sequential for each RequestGroup because
  1276. simultaneous hash check is slower than sequential execution.
  1277. * src/CheckIntegrityCommand.cc
  1278. * src/CheckIntegrityDispatcherCommand.cc
  1279. * src/CheckIntegrityDispatcherCommand.h
  1280. * src/CheckIntegrityMan.h
  1281. * src/ConsoleStatCalc.cc
  1282. * src/DownloadCommand.cc
  1283. * src/DownloadEngine.cc
  1284. * src/DownloadEngine.h
  1285. * src/DownloadEngineFactory.cc
  1286. * src/Makefile.am
  1287. * src/Makefile.in
  1288. * src/RequestGroup.cc
  1289. * src/StatCalc.h
  1290. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1291. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1292. SequentialDispatcherCommand.
  1293. * src/FileAllocationDispatcherCommand.cc
  1294. * src/SequentialDispatcherCommand.h
  1295. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Rewritten FileAllocationDispatcherCommand using brand new
  1297. SequentialDispatcherCommand.
  1298. * src/DownloadEngineFactory.cc
  1299. * src/FileAllocationCommand.cc
  1300. * src/FileAllocationDispatcherCommand.cc
  1301. * src/FileAllocationDispatcherCommand.h
  1302. * src/Makefile.am
  1303. * src/SequentialDispatcherCommand.h
  1304. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Replaced FileAllocationMan with
  1306. SequentialPicker<FileAllocationEntry>.
  1307. * src/BtCheckIntegrityEntry.cc
  1308. * src/ConsoleStatCalc.cc
  1309. * src/DownloadEngine.cc
  1310. * src/DownloadEngine.h
  1311. * src/DownloadEngineFactory.cc
  1312. * src/FileAllocationCommand.cc
  1313. * src/FileAllocationDispatcherCommand.cc
  1314. * src/FileAllocationMan.h
  1315. * src/Makefile.am
  1316. * src/SequentialPicker.h
  1317. * src/StatCalc.h
  1318. * src/StreamCheckIntegrityEntry.cc
  1319. * test/Makefile.am
  1320. * test/SequentialPickerTest.cc
  1321. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Added doc for adaptive URI selector.
  1323. * doc/aria2c.1.txt
  1324. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Added doc for adaptive URI selector.
  1326. * src/usage_text.h
  1327. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Added doc for --bt-max-peers option.
  1329. * doc/aria2c.1.txt
  1330. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Added doc for --bt-hash-check-seed option.
  1332. * doc/aria2c.1.txt
  1333. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Documented exit codes.
  1335. * doc/aria2c.1.txt
  1336. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Added --bt-max-peers option to specify the maximum number of peers
  1338. per torrent. 0 means unlimited number of peers.
  1339. * src/ActivePeerConnectionCommand.cc
  1340. * src/BtRuntime.h
  1341. * src/DefaultPeerStorage.cc
  1342. * src/DefaultPeerStorage.h
  1343. * src/OptionHandlerFactory.cc
  1344. * src/RequestGroup.cc
  1345. * src/option_processing.cc
  1346. * src/prefs.cc
  1347. * src/prefs.h
  1348. * src/usage_text.h
  1349. * test/DefaultPeerStorageTest.cc
  1350. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Added --bt-hash-check-seed option. If true is given to this
  1352. option, after hash check using --check-integrity option and file
  1353. is complete, continue to seed file. If you want to check file and
  1354. download it only when it is damaged or incomplete, set this option
  1355. to false. This option has effect only on BitTorrent download.
  1356. The default value is true(This is the same behavior with the
  1357. previous release).
  1358. * src/BtCheckIntegrityEntry.cc
  1359. * src/OptionHandlerFactory.cc
  1360. * src/option_processing.cc
  1361. * src/prefs.cc
  1362. * src/prefs.h
  1363. * src/usage_text.h
  1364. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Updated copyright year.
  1366. * src/version_usage.cc
  1367. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1368. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1369. * doc/aria2c.1.txt
  1370. * src/usage_text.h
  1371. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Made the max value of split option unlimited.
  1373. * doc/aria2c.1.txt
  1374. * src/OptionHandlerFactory.cc
  1375. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Fixed compile warning/error.
  1377. * src/DownloadResult.h
  1378. * src/HttpDownloadCommand.cc
  1379. * src/ServerStat.cc
  1380. * test/RequestGroupTest.cc
  1381. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Added --event-poll option to select the method for polling events.
  1383. The available methods are "select" and "epoll". "epoll" is
  1384. available on Linux only. The earlier release has the compile
  1385. option to choose from these methods.
  1386. * configure.ac
  1387. * src/RequestGroupMan.cc
  1388. * src/OptionHandlerFactory.cc
  1389. * src/EpollEventPoll.h
  1390. * src/StreamFileAllocationEntry.cc
  1391. * src/a2io.h
  1392. * src/SelectEventPoll.h
  1393. * src/option_processing.cc
  1394. * src/prefs.h
  1395. * src/EpollEventPoll.cc
  1396. * src/EventPoll.h
  1397. * src/SocketCore.h
  1398. * src/Makefile.am
  1399. * src/main.cc
  1400. * src/DownloadEngine.h
  1401. * src/SelectEventPoll.cc
  1402. * src/DownloadEngine.cc
  1403. * src/SocketCore.cc
  1404. * src/DownloadEngineFactory.cc
  1405. * src/Makefile.in
  1406. * src/prefs.cc
  1407. * src/usage_text.h
  1408. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1409. Included RecoverableException.h from main.cc
  1410. * src/main.cc
  1411. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1413. now returns last error encountered in the HTTP/FTP downloads as a
  1414. exit status value. If all downloads finished successfully, aria2
  1415. returns 0. The error code is defined in src/DownloadResult.h.
  1416. The error occurred in the download currently in progress is not
  1417. reported as a last error. If no error has encountered but there
  1418. are in progress or waiting downloads, aria2 returns 7.
  1419. * src/AbstractCommand.cc
  1420. * src/DlAbortEx.h
  1421. * src/DlRetryEx.h
  1422. * src/DownloadCommand.cc
  1423. * src/DownloadFailureException.h
  1424. * src/DownloadResult.h
  1425. * src/FtpNegotiationCommand.cc
  1426. * src/HttpSkipResponseCommand.cc
  1427. * src/Makefile.am
  1428. * src/MultiUrlRequestInfo.cc
  1429. * src/MultiUrlRequestInfo.h
  1430. * src/RecoverableException.h
  1431. * src/RequestGroup.cc
  1432. * src/RequestGroup.h
  1433. * src/RequestGroupMan.cc
  1434. * src/RequestGroupMan.h
  1435. * src/URIResult.cc
  1436. * src/URIResult.h
  1437. * src/main.cc
  1438. * src/option_processing.cc
  1439. * test/RequestGroupTest.cc
  1440. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1442. patch adds AdaptiveURISelector, which selects one of the bests
  1443. mirrors for first and reserved connections. For supplementary
  1444. ones, it returns mirrors which has not been tested yet, and if
  1445. each of them already tested, returns mirrors which has to be
  1446. tested again. Otherwise, it doesn't return anymore mirrors.
  1447. * src/AdaptiveURISelector.cc
  1448. * src/AdaptiveURISelector.h
  1449. * src/FtpNegotiationCommand.cc
  1450. * src/HttpResponseCommand.cc
  1451. * src/Makefile.am
  1452. * src/Makefile.in
  1453. * src/OptionHandlerFactory.cc
  1454. * src/RequestGroup.cc
  1455. * src/RequestGroup.h
  1456. * src/RequestGroupMan.cc
  1457. * src/ServerStat.cc
  1458. * src/ServerStat.h
  1459. * src/ServerStatMan.cc
  1460. * src/SpeedCalc.cc
  1461. * src/URISelector.h
  1462. * src/prefs.cc
  1463. * src/prefs.h
  1464. * test/RequestGroupManTest.cc
  1465. * test/ServerStatManTest.cc
  1466. * test/ServerStatTest.cc
  1467. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1468. Fixed unit test error.
  1469. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1470. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. * Release 1.1.2
  1472. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1473. Updated Russian translation. Thanks to the translators.
  1474. * po/ru.po
  1475. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Added the description of --use-head option to man page.
  1477. * doc/aria2c.1.txt
  1478. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Bump up version number to 1.1.2
  1480. * configure.ac
  1481. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Added --use-head option to toggle whether HEAD method should be
  1483. used in the first HTTP request. By default aria2 uses HEAD method
  1484. as the first request. When the server doesn't recognize HEAD, then
  1485. give aria2 --use-head=false to force aria2 to use GET method
  1486. instead.
  1487. * src/OptionHandlerFactory.cc
  1488. * src/RequestGroupMan.cc
  1489. * src/option_processing.cc
  1490. * src/prefs.cc
  1491. * src/prefs.h
  1492. * src/usage_text.h
  1493. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1495. message is received before CHOKE message. The old implementation
  1496. doen't clear the use-bit of the piece when recieved REJECT
  1497. message.
  1498. * src/DefaultBtMessageDispatcher.cc
  1499. * test/DefaultBtMessageDispatcherTest.cc
  1500. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1501. * Release 1.1.1
  1502. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Bump up version number to 1.1.1.
  1504. * configure.ac
  1505. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1507. is printed repeatedly.
  1508. * src/ConsoleStatCalc.cc
  1509. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1510. * Release 1.1.0
  1511. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Added ifdef clause for conditional compilation.
  1513. * src/main.cc
  1514. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1516. translations. Thanks to all translators.
  1517. * po/ja.po
  1518. * po/ru.po
  1519. * po/uk.po
  1520. * po/zh_CN.po
  1521. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Added the preceding ">>> " before the message "Printing the
  1523. contents of file..." to make the output more readable.
  1524. * src/main.cc
  1525. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Added try-catch block in the loop in showFiles() to continue the
  1527. operation even if the exception occurred in one file.
  1528. * src/main.cc (showFiles)
  1529. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Made messages in showFiles() translatable.
  1531. * po/aria2.pot
  1532. * src/main.cc
  1533. * src/message.h
  1534. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1535. Print the contents of Torrent/Metalink files are printed without
  1536. -T/-M options.
  1537. * src/main.cc
  1538. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Escaped '--' with '\--'
  1540. * README
  1541. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Updated "How to build" section in README. Mentioned about
  1543. --with-ca-bundle compile option.
  1544. * README
  1545. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Bump up version number to 1.1.0.
  1547. * configure.ac
  1548. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Added a note for --dht-listen-port option.
  1550. * doc/aria2c.1.txt
  1551. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1552. Update doc for --realtime-chunk-checksum option.
  1553. * doc/aria2c.1.txt
  1554. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1555. Update doc for --realtime-chunk-checksum option.
  1556. * src/usage_text.h
  1557. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1558. Updated French, Japanese, Russian and Ukrainian translations.
  1559. Thanks to all translators.
  1560. * po/fr.po
  1561. * po/ja.po
  1562. * po/ru.po
  1563. * po/uk.po
  1564. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Renamed aria2c.pot to aria2.pot
  1566. * po/aria2.pot
  1567. * po/aria2c.pot: Removed.
  1568. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Removed MetaEntry.h
  1570. * src/Makefile.am
  1571. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1572. Rename file by appending digits if a local file exists and its
  1573. file size is larger than that of remote file with --continue
  1574. option. The old implementation just throws exception in such case.
  1575. * src/RequestGroup.cc
  1576. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Fixed the bug that download progress summary is not printed in the
  1578. interval specified by the option.
  1579. * src/ConsoleStatCalc.cc
  1580. * src/ConsoleStatCalc.h
  1581. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1582. Fixed compiler warning
  1583. * src/Cookie.cc
  1584. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1585. Fixed the cookie implementation based on RFC2965.
  1586. Now if a value in domain field is not started with dot, then
  1587. prepend dot. That means a cookie with domain=sf.net is sent to
  1588. wiki.sf.net.
  1589. * src/Cookie.cc
  1590. * test/CookieParserTest.cc
  1591. * test/CookieStorageTest.cc
  1592. * test/CookieTest.cc
  1593. * test/NsCookieParserTest.cc
  1594. * test/Sqlite3MozCookieParserTest.cc
  1595. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1596. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1597. is enabled and the server doesn't support keep-alive.
  1598. * src/AbstractCommand.cc
  1599. * src/DownloadCommand.cc
  1600. * src/HttpDownloadCommand.cc
  1601. * src/HttpDownloadCommand.h
  1602. * src/HttpResponseCommand.cc
  1603. * src/Request.cc
  1604. * src/Request.h
  1605. * test/RequestTest.cc
  1606. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. Removed Dictionary/List/Data and its related classes.
  1608. * src/BencodeVisitor.cc: Removed.
  1609. * src/BencodeVisitor.h: Removed.
  1610. * src/Data.cc: Removed.
  1611. * src/Data.h: Removed.
  1612. * src/Dictionary.cc: Removed.
  1613. * src/Dictionary.h: Removed.
  1614. * src/List.cc: Removed.
  1615. * src/List.h: Removed.
  1616. * src/Makefile.am
  1617. * src/MetaEntry.h: Removed.
  1618. * src/MetaEntryVisitor.h: Removed.
  1619. * src/MetaFileUtil.cc: Removed.
  1620. * src/MetaFileUtil.h: Removed.
  1621. * test/BencodeVisitorTest.cc: Removed.
  1622. * test/DataTest.cc: Removed.
  1623. * test/DictionaryTest.cc: Removed.
  1624. * test/ListTest.cc: Removed.
  1625. * test/Makefile.am
  1626. * test/MetaFileUtilTest.cc: Removed.
  1627. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Removed include of MetaEntry.h
  1629. * test/DHTMessageTrackerEntryTest.cc
  1630. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Use BDE instead of Dictionary/List/Data.
  1632. * src/AnnounceList.cc
  1633. * src/AnnounceList.h
  1634. * test/AnnounceListTest.cc
  1635. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Use BDE instead of Dictionary/List/Data.
  1637. * src/DHTAbstractMessage.cc
  1638. * src/DHTAbstractMessage.h
  1639. * src/DHTAnnouncePeerMessage.cc
  1640. * src/DHTAnnouncePeerMessage.h
  1641. * src/DHTAnnouncePeerReplyMessage.cc
  1642. * src/DHTAnnouncePeerReplyMessage.h
  1643. * src/DHTFindNodeMessage.cc
  1644. * src/DHTFindNodeMessage.h
  1645. * src/DHTFindNodeReplyMessage.cc
  1646. * src/DHTFindNodeReplyMessage.h
  1647. * src/DHTGetPeersMessage.cc
  1648. * src/DHTGetPeersMessage.h
  1649. * src/DHTGetPeersReplyMessage.cc
  1650. * src/DHTGetPeersReplyMessage.h
  1651. * src/DHTMessageFactory.h
  1652. * src/DHTMessageFactoryImpl.cc
  1653. * src/DHTMessageFactoryImpl.h
  1654. * src/DHTMessageReceiver.cc
  1655. * src/DHTMessageTracker.cc
  1656. * src/DHTMessageTracker.h
  1657. * src/DHTPingMessage.cc
  1658. * src/DHTPingMessage.h
  1659. * src/DHTPingReplyMessage.cc
  1660. * src/DHTPingReplyMessage.h
  1661. * src/DHTQueryMessage.cc
  1662. * src/DHTQueryMessage.h
  1663. * src/DHTResponseMessage.cc
  1664. * src/DHTResponseMessage.h
  1665. * test/DHTAnnouncePeerMessageTest.cc
  1666. * test/DHTAnnouncePeerReplyMessageTest.cc
  1667. * test/DHTFindNodeMessageTest.cc
  1668. * test/DHTFindNodeReplyMessageTest.cc
  1669. * test/DHTGetPeersMessageTest.cc
  1670. * test/DHTGetPeersReplyMessageTest.cc
  1671. * test/DHTMessageFactoryImplTest.cc
  1672. * test/DHTMessageTrackerTest.cc
  1673. * test/DHTPingMessageTest.cc
  1674. * test/DHTPingReplyMessageTest.cc
  1675. * test/MockDHTMessageFactory.h
  1676. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Added tests the case where length < 0 is specified.
  1678. * test/BencodeTest.cc
  1679. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Fixed memory leak in decoderawstring()
  1681. * src/bencode.cc
  1682. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Added missing #ifdef guard. Added uc() function for String and
  1684. removeKey() for Dict.
  1685. * src/bencode.cc
  1686. * src/bencode.h
  1687. * test/BencodeTest.cc
  1688. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1689. Use BDE instead of Dictionary/List/Data.
  1690. * src/HandshakeExtensionMessage.cc
  1691. * src/HandshakeExtensionMessage.h
  1692. * test/HandshakeExtensionMessageTest.cc
  1693. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Added --max-overall-upload-limit option. This option limits the
  1695. overall upload speed. Stated in help message that the existing
  1696. --max-upload-limit option limits the upload speed per each
  1697. torrent. Man page is also updated.
  1698. * doc/aria2c.1.txt
  1699. * src/DefaultBtMessageDispatcher.cc
  1700. * src/DefaultBtMessageDispatcher.h
  1701. * src/OptionHandlerFactory.cc
  1702. * src/PeerInteractionCommand.cc
  1703. * src/option_processing.cc
  1704. * src/prefs.cc
  1705. * src/prefs.h
  1706. * src/usage_text.h
  1707. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Use BDE instead of Dictionary/List/Data classes.
  1709. * src/CompactPeerListProcessor.cc
  1710. * src/CompactPeerListProcessor.h
  1711. * src/DefaultBtAnnounce.cc
  1712. * src/DefaultBtContext.cc
  1713. * src/DefaultBtContext.h
  1714. * src/DefaultPeerListProcessor.cc
  1715. * src/DefaultPeerListProcessor.h
  1716. * src/DelegatingPeerListProcessor.cc
  1717. * src/DelegatingPeerListProcessor.h
  1718. * src/PeerListProcessor.h
  1719. * src/UTPexExtensionMessage.cc
  1720. * src/Util.h
  1721. * src/message.h
  1722. * test/DefaultBtContextTest.cc
  1723. * test/DefaultPeerListProcessorTest.cc
  1724. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Added bencode helper functions and BDE class.
  1726. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1727. * src/Makefile.am
  1728. * src/bencode.cc
  1729. * src/bencode.h
  1730. * test/BencodeTest.cc
  1731. * test/Makefile.am
  1732. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. Fixed the bug that bad URI is sent to the tracker when the announe
  1734. URI in torrent file includes query.
  1735. * src/DefaultBtAnnounce.cc
  1736. * test/DefaultBtAnnounceTest.cc
  1737. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Added Option::blank().
  1739. Use !Option::blank(name) instead of Option::defined(name) for
  1740. the options that take filename.
  1741. * src/MultiUrlRequestInfo.cc
  1742. * src/Option.cc
  1743. * src/Option.h
  1744. * src/main.cc
  1745. * src/option_processing.cc
  1746. * test/OptionTest.cc
  1747. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. Documented the default value of --check-certificate option in man
  1749. page.
  1750. * doc/aria2c.1.txt
  1751. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1752. Enabled --check-certificate by default. Added compile
  1753. time(configure) option --with-ca-bundle to specify CA bundle.
  1754. Warn if --check-certificate=true and --ca-certificate is not
  1755. specified or loading CA certificate is failed.
  1756. * configure.ac
  1757. * src/MultiUrlRequestInfo.cc
  1758. * src/OptionHandlerFactory.cc
  1759. * src/message.h
  1760. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. Mentioned https tag in help option.
  1762. * doc/aria2c.1.txt
  1763. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1764. Added `https' tag to help option category. Added https tag to
  1765. --ca-certificate, --certificate, --check-certificate and
  1766. --private-key option.
  1767. * src/OptionHandlerFactory.cc
  1768. * src/help_tags.h
  1769. * src/option_processing.cc
  1770. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1771. Changed the package name from `aria2c' to `aria2' in order to fix
  1772. the packaging issue in Debian and Fedora. The name of the
  1773. executable is not changed.
  1774. * configure.ac
  1775. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1776. Fixed typos
  1777. * src/usage_text.h
  1778. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1779. Fixed typos and updated doc.
  1780. * README
  1781. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1782. Fixed typos
  1783. * doc/aria2c.1.txt
  1784. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Fixed typos
  1786. * src/usage_text.h
  1787. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1788. Print a message when no files to download.
  1789. * src/download_helper.cc
  1790. * src/main.cc
  1791. * src/message.h
  1792. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. RFC3986 complied Percent-Encoding(urlencode).
  1794. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1795. ones.
  1796. * src/Request.cc
  1797. * src/Util.cc
  1798. * src/Util.h
  1799. * test/BtHandshakeMessageTest.cc
  1800. * test/DefaultBtAnnounceTest.cc
  1801. * test/DefaultBtContextTest.cc
  1802. * test/RequestTest.cc
  1803. * test/UtilTest.cc
  1804. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Fixed the bug that prevents aria2 from downloading 0-length files
  1806. via HTTP/FTP.
  1807. * src/DefaultBtContext.cc
  1808. * src/DefaultBtContext.h
  1809. * src/DownloadContext.h
  1810. * src/FtpNegotiationCommand.cc
  1811. * src/HttpResponseCommand.cc
  1812. * src/HttpResponseCommand.h
  1813. * src/RequestGroup.cc
  1814. * src/SingleFileDownloadContext.cc
  1815. * src/SingleFileDownloadContext.h
  1816. * test/BtPostDownloadHandlerTest.cc
  1817. * test/MetalinkPostDownloadHandlerTest.cc
  1818. * test/MockBtContext.h
  1819. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1820. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1821. * src/option_processing.cc
  1822. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Applied aria2-1.0.1-mingw.patch.
  1824. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1825. mingw.
  1826. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1827. * src/SocketCore.cc
  1828. * src/a2netcompat.h
  1829. * test/SocketCoreTest.cc
  1830. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1831. * Release 1.0.1
  1832. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1833. Updated Ukrainian and Norwegian Nynorsk translations.
  1834. Thanks to all translators.
  1835. * po/nn.po
  1836. * po/uk.po
  1837. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Don't show download result when -S option is used.
  1839. * src/main.cc
  1840. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Bump up version number to 1.0.1
  1842. * configure.ac
  1843. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1844. Closed files after the test cases in MultiDiskWriterTest::
  1845. testResetDiskWriterEntries(). This will fix the unit test error
  1846. in mingw32 build.
  1847. * test/MultiDiskWriterTest.cc
  1848. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1849. Use HEAD method to get file size from HTTP server for segmented
  1850. downloading.
  1851. The request to the BitTorrent Tracker always uses GET method because
  1852. the response of the tracker is small and it doesn't need segmented
  1853. download.
  1854. * src/FtpNegotiationCommand.cc
  1855. * src/HttpRequest.cc
  1856. * src/HttpResponseCommand.cc
  1857. * src/HttpSkipResponseCommand.cc
  1858. * src/RequestGroup.cc
  1859. * src/RequestGroup.h
  1860. * src/TrackerWatcherCommand.cc
  1861. * test/HttpRequestTest.cc
  1862. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Fixed the bug that causes floating exception when -T option is used and
  1864. no URIs are given.
  1865. * src/download_helper.cc
  1866. * test/DownloadHelperTest.cc
  1867. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1868. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1869. errors in MinGW:
  1870. Closed file after saving server stats (RequestGroupMan.cc)
  1871. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1872. Ignored case & handled 2-digit years (strptime.c)
  1873. Added missing suseconds_t definition (a2time.h)
  1874. Fixed socket CLOSE() define (SocketCore.cc)
  1875. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1876. Changed utime() test values from x000 to x00000 as MinGW failed on
  1877. values less than timezone offset from Unix epoch
  1878. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1879. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1880. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1881. handle negative dates (CookieParserTest.cc)
  1882. * src/a2time.h
  1883. * src/FtpConnection.cc
  1884. * src/RequestGroupMan.cc
  1885. * src/SocketCore.cc
  1886. * src/strptime.c
  1887. * test/CookieParserTest.cc
  1888. * test/CopyDiskAdaptorTest.cc
  1889. * test/FileTest.cc
  1890. * test/FtpConnectionTest.cc
  1891. * test/MultiDiskAdaptorTest.cc
  1892. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1893. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1894. * doc/aria2c.1.txt
  1895. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1896. * Release 1.0.0
  1897. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Added '~' to reserved characters.
  1899. * src/Util.cc
  1900. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Do not urlencode Request::url in setUrl() because we want unmodified
  1902. URL using Request::getUrl()
  1903. * src/Request.cc
  1904. * src/Request.h
  1905. * test/RequestTest.cc
  1906. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  1908. Thanks to all translators.
  1909. * po/bg.po
  1910. * po/fr.po
  1911. * po/ja.po
  1912. * po/ru.po
  1913. * po/uk.po
  1914. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Bump up version number to 1.0.0
  1916. * configure.ac
  1917. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1918. Added nosqlite3 build to build_test.sh.
  1919. Renamed noxml as expat.
  1920. * build_test.sh
  1921. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1922. Updated INPUT FILE section.
  1923. * doc/aria2c.1.txt
  1924. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1925. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  1926. on big endian systems because test .aria2 files are made for little
  1927. endian systems.
  1928. * test/DefaultBtProgressInfoFileTest.cc
  1929. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Dropped ares support.
  1931. * README
  1932. * configure.ac
  1933. * m4/libares.m4: Removed.
  1934. * src/AsyncNameResolver.cc
  1935. * src/Makefile.am
  1936. * test/Makefile.am
  1937. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1938. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  1939. Removed const qualifier from DiskWriter::size().
  1940. * src/AbstractDiskWriter.cc
  1941. * src/AbstractDiskWriter.h
  1942. * src/ByteArrayDiskWriter.cc
  1943. * src/ByteArrayDiskWriter.h
  1944. * src/DiskWriter.h
  1945. * test/ByteArrayDiskWriterTest.cc
  1946. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Fixed the bug that causes segmentation fault/bus error during executing
  1948. choking algorithm while seeding. This is caused by improper
  1949. implementation of compare function which returns inconsistent results
  1950. depending on the timing of last unchoke.
  1951. * src/BtSeederStateChoke.cc
  1952. * src/BtSeederStateChoke.h
  1953. * src/DefaultPeerStorage.cc
  1954. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Removed TODO
  1956. * TODO
  1957. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. Added a section that explains how to pass argument to options that
  1959. takes optional arguments with its short form.
  1960. * doc/aria2c.1.txt
  1961. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Added -u for the short form of --max-upload-limit option.
  1963. * doc/aria2c.1.txt
  1964. * src/option_processing.cc
  1965. * src/usage_text.h
  1966. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Added -V for the short form of --check-integrity option.
  1968. Now the argument of --check-integrity option is optional:
  1969. if it is omitted, it is evaluated as true.
  1970. * doc/aria2c.1.txt
  1971. * src/option_processing.cc
  1972. * src/usage_text.h
  1973. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1974. Made the default value of --ftp-pasv option set to true and it can take
  1975. true/false values.
  1976. * src/OptionHandlerFactory.cc
  1977. * src/option_processing.cc
  1978. * src/usage_text.h
  1979. * doc/aria2c.1.txt
  1980. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. Given custom random number generator to std::random_shuffle.
  1982. * src/AnnounceList.cc
  1983. * src/BtLeecherStateChoke.cc
  1984. * src/BtSeederStateChoke.cc
  1985. * src/DefaultBtRequestFactory.cc
  1986. * src/MetalinkEntry.cc
  1987. * src/RarestPieceSelector.cc
  1988. * src/SimpleRandomizer.cc
  1989. * src/SimpleRandomizer.h
  1990. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. Now the default value of --enable-direct-io is true.
  1992. * src/OptionHandlerFactory.cc
  1993. * doc/aria2c.1.txt
  1994. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Erase peer before executing onReturningPeer and onErasingPeer
  1996. because choking algorithm called from onReturningPeer doesn't
  1997. like erasing peer in the active peer list.
  1998. * src/DefaultPeerStorage.cc
  1999. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2000. Instead of creating special filename in createDownloadResult() if
  2001. inMemoryDownload() is true, now it is done in getFilePath().
  2002. * src/RequestGroup.cc
  2003. * test/RequestGroupTest.cc
  2004. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2005. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2006. processed in memory. This is the fix for previous comment out.
  2007. * src/MemoryBufferPreDownloadHandler.cc
  2008. * src/RequestGroup.cc
  2009. * src/RequestGroup.h
  2010. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Commented out the code which sets virtual directory path "[MEMORY]"
  2012. propagate directory to store to following RequestGroup.
  2013. * src/MemoryBufferPreDownloadHandler.cc
  2014. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2015. Bump up version number to 1.0.0b
  2016. * configure.ac
  2017. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2018. Added input_uris.txt to EXTRA_DIST
  2019. * test/Makefile.am
  2020. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Removed PeerObject.h from Makefile.am
  2022. * src/Makefile.am
  2023. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Avoid slow seeding
  2025. * src/PeerInteractionCommand.cc
  2026. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2027. Updated usage for -i option.
  2028. * src/usage_text.h (TEXT_INPUT_FILE)
  2029. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Added INPUT FILE section to man page.
  2031. Escaped fake URLs.
  2032. * doc/aria2c.1.txt
  2033. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2034. Fixed wrong note position for -o option.
  2035. * doc/aria2c.1.txt
  2036. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2037. Fixed compile error without SSL/XML library.
  2038. * src/DefaultBtProgressInfoFile.cc
  2039. * src/DefaultBtProgressInfoFile.h
  2040. * src/FileMetalinkParserState.cc
  2041. * src/RequestGroup.h
  2042. * src/SocketCore.cc
  2043. * src/SocketCore.h
  2044. * src/VerificationMetalinkParserState.cc
  2045. * src/download_helper.h
  2046. * src/main.cc
  2047. * test/DefaultBtProgressInfoFileTest.cc
  2048. * test/DownloadHelperTest.cc
  2049. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2050. Rewritten URI handling functions. They are now provided as a testable
  2051. functions.
  2052. * src/Makefile.am
  2053. * src/RequestGroup.cc
  2054. * src/RequestGroup.h
  2055. * src/download_helper.cc
  2056. * src/download_helper.h
  2057. * src/main.cc
  2058. * test/DownloadHelperTest.cc
  2059. * test/Makefile.am
  2060. * test/input_uris.txt
  2061. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2062. Quickly terminate commands when ctrl-c is pressed.
  2063. * src/DownloadEngine.cc
  2064. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2065. Quickly terminate idle commands when download finished.
  2066. * src/AbstractCommand.cc
  2067. * src/DownloadCommand.cc
  2068. * src/DownloadEngine.cc
  2069. * src/DownloadEngine.h
  2070. * src/SleepCommand.cc
  2071. * src/SleepCommand.h
  2072. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Added the ability to specify output filename and directory in input
  2074. file.
  2075. Additional parameters are added in the following line of URIs
  2076. with proceeding white space(s), 1 parameter in 1 line.
  2077. The parameter names are the same with the command-line option name
  2078. without proceeding "--". Not all the options are available here:
  2079. at the moment, 'dir' and 'out' options are avialable.
  2080. Please note that out option has no effect against Metalink or BitTorrent
  2081. downloads.
  2082. Example input file:
  2083. http://host/foo-1.1.tar.bz2
  2084. out=foo.tar.bz2
  2085. dir=/tmp/downloads
  2086. http://host/thundermonkey-2.0.tar.bz2
  2087. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2088. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2089. thundermonkey-2.0.tar.bz2 is saved as
  2090. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2091. * src/BtPostDownloadHandler.cc
  2092. * src/Metalink2RequestGroup.cc
  2093. * src/Metalink2RequestGroup.h
  2094. * src/MetalinkPostDownloadHandler.cc
  2095. * src/UriListParser.cc
  2096. * src/UriListParser.h
  2097. * src/main.cc
  2098. * test/Metalink2RequestGroupTest.cc
  2099. * test/UriListParserTest.cc
  2100. * test/filelist1.txt
  2101. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2102. Fixed error when SSL library is not found.
  2103. * configure.ac
  2104. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2105. Cross referenced among -s, -C and -j options.
  2106. Updated usage of -C and -s options.
  2107. * src/usage_text.h
  2108. * doc/aria2c.1.txt
  2109. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Fixed bad cast in 32bit platforms.
  2111. * test/DefaultPieceStorageTest.cc
  2112. (DefaultPieceStorageTest::testGetCompletedLength)
  2113. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. Fixed unit test fails on 32bit platforms.
  2115. * test/CookieParserTest.cc
  2116. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Show an average download speed in Download results.
  2118. * src/BtFileAllocationEntry.cc
  2119. * src/DefaultPieceStorage.cc
  2120. * src/DownloadContext.cc
  2121. * src/DownloadContext.h
  2122. * src/DownloadResult.h
  2123. * src/RequestGroup.cc
  2124. * src/RequestGroupMan.cc
  2125. * src/StreamFileAllocationEntry.cc
  2126. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Fixed the bug that metalink file is not processed if Content-Type
  2128. field has a paramter.
  2129. * src/HttpResponse.cc
  2130. * src/HttpResponse.h
  2131. * test/HttpResponseTest.cc
  2132. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Removed unused code.
  2134. * src/DefaultBtAnnounce.cc
  2135. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2137. the value larger than DefaultPieceStorage::getTotalLength() when
  2138. in flight pieces are involved.
  2139. * src/DefaultPieceStorage.cc
  2140. * test/DefaultPieceStorageTest.cc
  2141. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Bump up version number to 1.0.0a.
  2143. * configure.ac
  2144. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Updated configure.ac
  2146. * configure.ac
  2147. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Added usege for proxy.
  2149. * doc/aria2c.1.txt
  2150. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Added usage for --ca-certificate, --certificate, --private-key and
  2152. --check-certificate options.
  2153. * doc/aria2c.1.txt
  2154. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Updated man page
  2156. * doc/aria2c.1.txt
  2157. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Added --no-proxy option. It receives comman separated hostname or
  2159. domains to which proxy should not be used.
  2160. aria2 honors the environment variable no_proxy to override no-proxy
  2161. value in configuration file. The user can override the environment
  2162. variable no_proxy with --no-proxy command-line option.
  2163. * src/AbstractCommand.cc
  2164. * src/OptionHandlerFactory.cc
  2165. * src/option_processing.cc
  2166. * src/prefs.cc
  2167. * src/prefs.h
  2168. * src/usage_text.h
  2169. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2171. The CA certificates are specified in --ca-certificate option.
  2172. By default, the verification is disabled. Use --check-certificate
  2173. option to enable it.
  2174. * src/HttpRequestCommand.cc
  2175. * src/LibgnutlsTLSContext.cc
  2176. * src/LibgnutlsTLSContext.h
  2177. * src/LibsslTLSContext.cc
  2178. * src/LibsslTLSContext.h
  2179. * src/MultiUrlRequestInfo.cc
  2180. * src/OptionHandlerFactory.cc
  2181. * src/SocketCore.cc
  2182. * src/SocketCore.h
  2183. * src/a2functional.h
  2184. * src/message.h
  2185. * src/option_processing.cc
  2186. * src/prefs.cc
  2187. * src/prefs.h
  2188. * src/usage_text.h
  2189. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2190. Added client certificate authentication for SSL/TLS.
  2191. Currently a private key must be decrypted for use with aria2.
  2192. If a user accidentally gives encrypted file to aria2 then following
  2193. thing happens:
  2194. If encrypted private key is given to aria2, it behaves differently
  2195. depending on the ssl library it uses. If aria2 built with openssl then
  2196. openssl prompts the user for password. If aria2 build with gnutls then
  2197. aria2 exists with error at start up.
  2198. * src/DownloadEngineFactory.cc
  2199. * src/MultiUrlRequestInfo.cc
  2200. * src/OptionHandlerFactory.cc
  2201. * src/option_processing.cc
  2202. * src/prefs.cc
  2203. * src/prefs.h
  2204. * src/usage_text.h
  2205. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2206. Introduced TLSContext that holds TLS related data that can be shared
  2207. with multiple SSL connections.
  2208. * src/DownloadEngineFactory.cc
  2209. * src/LibgnutlsTLSContext.cc
  2210. * src/LibgnutlsTLSContext.h
  2211. * src/LibsslTLSContext.cc
  2212. * src/LibsslTLSContext.h
  2213. * src/Makefile.am
  2214. * src/SocketCore.cc
  2215. * src/SocketCore.h
  2216. * src/TLSContext.h
  2217. * src/message.h
  2218. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. Fixed the bug that the DiskWriter of the first FileEntry whose
  2220. `needsFileAllocation' property is false is not created
  2221. even if it shares a piece with next FileEntry which `requested' property
  2222. is true.
  2223. Fixed the bug that zero-length file is not created if pre file
  2224. allocation is not done.
  2225. * src/MultiDiskAdaptor.cc
  2226. * src/MultiDiskAdaptor.h
  2227. * test/MultiDiskAdaptorTest.cc
  2228. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2229. Added the ability to pool proxy connection.
  2230. The conneciton in FTP with proxy-method=GET is not pooled.
  2231. Proxy-Connection header will not be sent when sending CONNECT method.
  2232. * src/DownloadEngine.cc
  2233. * src/DownloadEngine.h
  2234. * src/FtpFinishDownloadCommand.cc
  2235. * src/FtpInitiateConnectionCommand.cc
  2236. * src/FtpNegotiationCommand.cc
  2237. * src/HttpDownloadCommand.cc
  2238. * src/HttpInitiateConnectionCommand.cc
  2239. * src/HttpRequest.cc
  2240. * src/HttpRequest.h
  2241. * src/HttpResponse.cc
  2242. * src/HttpSkipResponseCommand.cc
  2243. * test/HttpRequestTest.cc
  2244. * test/HttpResponseTest.cc
  2245. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2246. Handle date before epoch.
  2247. To create *bad* Time object, call Time::null().
  2248. * src/CookieParser.cc
  2249. * src/FtpConnection.cc
  2250. * src/FtpConnection.h
  2251. * src/FtpNegotiationCommand.cc
  2252. * src/RequestGroup.cc
  2253. * src/TimeA2.cc
  2254. * src/TimeA2.h
  2255. * test/CookieParserTest.cc
  2256. * test/FtpConnectionTest.cc
  2257. * test/TimeTest.cc
  2258. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2259. Added support for following envrionment variables: http_proxy,
  2260. https_proxy, ftp_proxy and all_proxy.
  2261. Each variable is equivalent to the aria2 option whose name is the
  2262. variable name with '_' replaced with '-'.
  2263. They overrides options specified in aria2.conf file.
  2264. The envrionment variables can be overrode using command-line option.
  2265. * src/option_processing.cc
  2266. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2267. Renamed --http-proxy-method as --proxy-method.
  2268. * src/AbstractCommand.cc
  2269. * src/FtpInitiateConnectionCommand.cc
  2270. * src/HttpInitiateConnectionCommand.cc
  2271. * src/OptionHandlerFactory.cc
  2272. * src/option_processing.cc
  2273. * src/prefs.cc
  2274. * src/prefs.h
  2275. * src/usage_text.h
  2276. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2277. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2278. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2279. Above 3 options and --http-proxy option can handle proxy in URL format
  2280. like: http://user:passwd@host:port.
  2281. If a proxy requires user/password, they must be specified in a URL.
  2282. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2283. instead.
  2284. * src/AbstractCommand.cc
  2285. * src/AbstractCommand.h
  2286. * src/AbstractProxyRequestCommand.cc
  2287. * src/AbstractProxyRequestCommand.h
  2288. * src/AuthConfigFactory.cc
  2289. * src/AuthConfigFactory.h
  2290. * src/FtpFinishDownloadCommand.cc
  2291. * src/FtpInitiateConnectionCommand.cc
  2292. * src/FtpInitiateConnectionCommand.h
  2293. * src/FtpNegotiationCommand.cc
  2294. * src/FtpTunnelRequestCommand.cc
  2295. * src/FtpTunnelRequestCommand.h
  2296. * src/HttpDownloadCommand.cc
  2297. * src/HttpInitiateConnectionCommand.cc
  2298. * src/HttpInitiateConnectionCommand.h
  2299. * src/HttpProxyRequestCommand.cc
  2300. * src/HttpProxyRequestCommand.h
  2301. * src/HttpRequest.cc
  2302. * src/HttpRequest.h
  2303. * src/HttpRequestCommand.cc
  2304. * src/HttpRequestCommand.h
  2305. * src/HttpSkipResponseCommand.cc
  2306. * src/InitiateConnectionCommand.cc
  2307. * src/InitiateConnectionCommand.h
  2308. * src/OptionHandlerFactory.cc
  2309. * src/OptionHandlerImpl.h
  2310. * src/Request.cc
  2311. * src/option_processing.cc
  2312. * src/prefs.cc
  2313. * src/prefs.h
  2314. * src/usage_text.h
  2315. * test/AuthConfigFactoryTest.cc
  2316. * test/HttpRequestTest.cc
  2317. * test/OptionHandlerTest.cc
  2318. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2319. Execute choking algorithm when unchoked and interested peer is
  2320. disconected.
  2321. * src/DefaultPeerStorage.cc
  2322. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2323. Added testcase for BtNotInterestedMessage from unchoked peer.
  2324. * test/BtNotInterestedMessageTest.cc
  2325. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2326. Execute choking algorithm when BtInterestedMessage arrives from
  2327. unchoked peer.
  2328. * src/BtInterestedMessage.cc
  2329. * src/BtInterestedMessage.h
  2330. * src/DefaultBtMessageFactory.cc
  2331. * test/BtInterestedMessageTest.cc
  2332. * test/MockPeerStorage.h
  2333. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2334. AuthConfigFactory is now part of DownloadEngine.
  2335. * src/AbstractProxyRequestCommand.cc
  2336. * src/AuthConfigFactory.h
  2337. * src/DownloadEngine.cc
  2338. * src/DownloadEngine.h
  2339. * src/FtpConnection.cc
  2340. * src/FtpConnection.h
  2341. * src/FtpNegotiationCommand.cc
  2342. * src/HttpConnection.cc
  2343. * src/HttpRequest.cc
  2344. * src/HttpRequest.h
  2345. * src/HttpRequestCommand.cc
  2346. * src/HttpResponse.cc
  2347. * src/HttpResponseCommand.cc
  2348. * src/HttpSkipResponseCommand.cc
  2349. * src/MultiUrlRequestInfo.cc
  2350. * src/main.cc
  2351. * test/FtpConnectionTest.cc
  2352. * test/HttpRequestTest.cc
  2353. * test/HttpResponseTest.cc
  2354. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2355. Corrected catched exception type.
  2356. * src/ServerStatMan.cc
  2357. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2358. DNSCache is now part of DownloadEngine.
  2359. * src/DNSCache.h
  2360. * src/DownloadEngine.cc
  2361. * src/DownloadEngine.h
  2362. * src/InitiateConnectionCommand.cc
  2363. * src/MultiUrlRequestInfo.cc
  2364. * test/Makefile.am
  2365. * test/Makefile.in
  2366. * test/SimpleDNSCacheTest.cc
  2367. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2368. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2369. DownloadEngine.
  2370. * src/ActivePeerConnectionCommand.cc
  2371. * src/BtSetup.cc
  2372. * src/CUIDCounter.h
  2373. * src/DHTSetup.cc
  2374. * src/DownloadCommand.cc
  2375. * src/DownloadEngine.cc
  2376. * src/DownloadEngine.h
  2377. * src/DownloadEngineFactory.cc
  2378. * src/FileAllocationDispatcherCommand.cc
  2379. * src/InitiatorMSEHandshakeCommand.cc
  2380. * src/PeerInitiateConnectionCommand.cc
  2381. * src/PeerInteractionCommand.cc
  2382. * src/PeerListenCommand.cc
  2383. * src/RequestGroup.cc
  2384. * src/StreamFileAllocationEntry.cc
  2385. * src/TrackerWatcherCommand.cc
  2386. * src/main.cc
  2387. * test/RequestGroupManTest.cc
  2388. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2389. Implemented commented code in BtSeederStateChoke
  2390. * src/BtSeederStateChoke.cc
  2391. * src/Peer.cc
  2392. * src/Peer.h
  2393. * src/PeerInteractionCommand.cc
  2394. * src/PeerSessionResource.cc
  2395. * src/PeerSessionResource.h
  2396. * test/MockBtMessageDispatcher.h
  2397. * test/PeerSessionResourceTest.cc
  2398. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2399. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2400. its object.
  2401. * src/AbstractBtMessage.cc
  2402. * src/ActivePeerConnectionCommand.cc
  2403. * src/ActivePeerConnectionCommand.h
  2404. * src/BtContextAwareCommand.cc
  2405. * src/BtContextAwareCommand.h
  2406. * src/BtExtendedMessage.cc
  2407. * src/BtExtendedMessage.h
  2408. * src/BtInterestedMessage.cc
  2409. * src/BtInterestedMessage.h
  2410. * src/BtNotInterestedMessage.cc
  2411. * src/BtNotInterestedMessage.h
  2412. * src/BtRegistry.cc
  2413. * src/BtRegistry.h
  2414. * src/BtSeederStateChoke.cc
  2415. * src/BtSetup.cc
  2416. * src/DHTGetPeersCommand.cc
  2417. * src/DHTGetPeersCommand.h
  2418. * src/DHTPeerAnnounceEntry.cc
  2419. * src/DHTPeerAnnounceEntry.h
  2420. * src/DHTPeerAnnounceStorage.cc
  2421. * src/DHTPeerAnnounceStorage.h
  2422. * src/DHTPeerLookupTask.cc
  2423. * src/DHTPeerLookupTask.h
  2424. * src/DHTSetup.cc
  2425. * src/DHTSetup.h
  2426. * src/DHTTaskFactory.h
  2427. * src/DHTTaskFactoryImpl.cc
  2428. * src/DHTTaskFactoryImpl.h
  2429. * src/DefaultBtAnnounce.cc
  2430. * src/DefaultBtInteractive.cc
  2431. * src/DefaultBtInteractive.h
  2432. * src/DefaultBtMessageDispatcher.cc
  2433. * src/DefaultBtMessageDispatcher.h
  2434. * src/DefaultBtMessageFactory.cc
  2435. * src/DefaultBtMessageFactory.h
  2436. * src/DefaultBtMessageReceiver.cc
  2437. * src/DefaultBtProgressInfoFile.cc
  2438. * src/DefaultBtProgressInfoFile.h
  2439. * src/DefaultBtRequestFactory.cc
  2440. * src/DefaultBtRequestFactory.h
  2441. * src/DefaultExtensionMessageFactory.cc
  2442. * src/DefaultExtensionMessageFactory.h
  2443. * src/DefaultPeerStorage.cc
  2444. * src/DefaultPeerStorage.h
  2445. * src/DownloadEngine.cc
  2446. * src/DownloadEngine.h
  2447. * src/InitiatorMSEHandshakeCommand.cc
  2448. * src/InitiatorMSEHandshakeCommand.h
  2449. * src/MSEHandshake.cc
  2450. * src/MSEHandshake.h
  2451. * src/Makefile.am
  2452. * src/Makefile.in
  2453. * src/PeerChokeCommand.cc
  2454. * src/PeerChokeCommand.h
  2455. * src/PeerInitiateConnectionCommand.cc
  2456. * src/PeerInitiateConnectionCommand.h
  2457. * src/PeerInteractionCommand.cc
  2458. * src/PeerInteractionCommand.h
  2459. * src/PeerObject.h
  2460. * src/PeerReceiveHandshakeCommand.cc
  2461. * src/PeerReceiveHandshakeCommand.h
  2462. * src/ReceiverMSEHandshakeCommand.cc
  2463. * src/RequestGroup.cc
  2464. * src/RequestGroup.h
  2465. * src/RequestGroupMan.cc
  2466. * src/RequestGroupMan.h
  2467. * src/SeedCheckCommand.cc
  2468. * src/SeedCheckCommand.h
  2469. * src/ShareRatioSeedCriteria.h
  2470. * src/SimpleBtMessage.cc
  2471. * src/TrackerWatcherCommand.cc
  2472. * src/TrackerWatcherCommand.h
  2473. * src/UTPexExtensionMessage.cc
  2474. * src/UTPexExtensionMessage.h
  2475. * test/BtCancelMessageTest.cc
  2476. * test/BtChokeMessageTest.cc
  2477. * test/BtExtendedMessageTest.cc
  2478. * test/BtInterestedMessageTest.cc
  2479. * test/BtNotInterestedMessageTest.cc
  2480. * test/BtPieceMessageTest.cc
  2481. * test/BtPortMessageTest.cc
  2482. * test/BtRegistryTest.cc
  2483. * test/BtRejectMessageTest.cc
  2484. * test/BtRequestMessageTest.cc
  2485. * test/DHTPeerAnnounceEntryTest.cc
  2486. * test/DHTPeerAnnounceStorageTest.cc
  2487. * test/DefaultBtMessageDispatcherTest.cc
  2488. * test/DefaultBtMessageFactoryTest.cc
  2489. * test/DefaultBtProgressInfoFileTest.cc
  2490. * test/DefaultBtRequestFactoryTest.cc
  2491. * test/DefaultExtensionMessageFactoryTest.cc
  2492. * test/MSEHandshakeTest.cc
  2493. * test/MockDHTTaskFactory.h
  2494. * test/ShareRatioSeedCriteriaTest.cc
  2495. * test/UTPexExtensionMessageTest.cc
  2496. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2497. Fixed compiler warning.
  2498. * test/UtilTest.cc
  2499. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2500. Treat Cookie object as session cookie if expiry = 0 is given.
  2501. With this change, you can specify session scoped cookies in an external
  2502. file setting expiry value to 0.
  2503. * src/Cookie.cc
  2504. * src/Cookie.h
  2505. * test/CookieParserTest.cc
  2506. * test/CookieStorageTest.cc
  2507. * test/CookieTest.cc
  2508. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2509. Changed signature of DHTMessageFactory::createResponseMessage().
  2510. Removed unused validateIDMatch.
  2511. * src/DHTMessageFactory.h
  2512. * src/DHTMessageFactoryImpl.cc
  2513. * src/DHTMessageFactoryImpl.h
  2514. * src/DHTMessageTracker.cc
  2515. * test/DHTMessageFactoryImplTest.cc
  2516. * test/MockDHTMessageFactory.h
  2517. Dropped DHT message coming from same ID of localhost.
  2518. * src/DHTMessageReceiver.cc
  2519. Rejected adding node whose ID is the same as localhost's.
  2520. * src/DHTRoutingTable.cc
  2521. * test/BtPortMessageTest.cc
  2522. * test/DHTRoutingTableTest.cc
  2523. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2524. Pool connection when redirection occurs with Content-Length = 0.
  2525. * src/HttpSkipResponseCommand.cc
  2526. * src/HttpSkipResponseCommand.h
  2527. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2528. Fixed the bug that causes time out when redirection occurs with
  2529. content-length 0.
  2530. * src/HttpResponseCommand.cc
  2531. * src/HttpSkipResponseCommand.cc
  2532. * src/HttpSkipResponseCommand.h
  2533. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2534. Now each status legends is shown only when it appears in Download
  2535. Result. If Download Result has no item, then status legend will not
  2536. be printed.
  2537. * src/RequestGroupMan.cc
  2538. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2539. Removed duplicate creation of OptionHandlers.
  2540. * src/option_processing.cc
  2541. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2542. Fixed the bug that causes segmentation fault when accessing files which
  2543. don't exist or are not included in --select-file option while
  2544. validating chunk checksum.
  2545. * src/MultiDiskAdaptor.cc
  2546. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2547. Fixed compiler warning.
  2548. * test/UtilTest.cc
  2549. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2550. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2551. * src/IteratableChecksumValidator.cc
  2552. * src/IteratableChunkChecksumValidator.cc
  2553. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2554. * Release 0.16.2
  2555. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2556. Added Serbian translation. Updated Ukrainian translation.
  2557. Thanks to all translators.
  2558. * po/sr.po
  2559. * po/uk.po
  2560. * po/LINGUAS
  2561. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2562. Bump up version number to 0.16.2
  2563. * configure.ac
  2564. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2565. Added length equality test to operator== to drop a piece message
  2566. whose length does not match to the requested one.
  2567. * src/RequestSlot.cc
  2568. * test/DefaultBtMessageDispatcherTest.cc
  2569. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2570. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2571. recieved.
  2572. In this fix, if a request larger than 16KiB length is received, aria2
  2573. disconnects the peer.
  2574. * src/BtConstants.h
  2575. * src/PeerMessageUtil.cc
  2576. * src/PeerMessageUtil.h
  2577. * test/BtRequestMessageTest.cc
  2578. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2579. * Release 0.16.1
  2580. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2581. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2582. * doc/aria2c.1.txt
  2583. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2584. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2585. Updated French, Simplified Chinese and Japanese translations.
  2586. Thanks to all translators.
  2587. en@quot and en@boldquot are also added.
  2588. * po/LINGUAS
  2589. * po/fr.po
  2590. * po/ja.po
  2591. * po/uk.po
  2592. * po/vi.po
  2593. * po/zh_CN.po
  2594. * po/zh_TW.po
  2595. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2596. Bump up version number to 0.16.1.
  2597. * configure.ac
  2598. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2599. Updated README.
  2600. * README
  2601. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2602. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2603. not to replace '--' with em dash character.
  2604. * doc/aria2c.1.txt
  2605. * doc/makeman
  2606. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2607. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2608. every SEC seconds.
  2609. * src/DownloadEngineFactory.cc
  2610. * src/OptionHandlerFactory.cc
  2611. * src/option_processing.cc
  2612. * src/usage_text.h
  2613. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2614. Fixed compile warning on linux-amd64
  2615. * src/FtpConnection.cc
  2616. * src/IteratableChunkChecksumValidator.cc
  2617. * src/MultiDiskAdaptor.cc
  2618. Fixed the bug that unit test fails on linux-amd64
  2619. * test/UtilTest.cc
  2620. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2621. Added --dht-file-path option to change the path to dht.dat, which is a
  2622. serialized DHT routing table.
  2623. * src/OptionHandlerFactory.cc
  2624. * src/option_processing.cc
  2625. * src/usage_text.h
  2626. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2627. Fixed possible underflow.
  2628. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2629. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2630. Fixed the bug that last character in URI is not encoded.
  2631. * src/Request.cc
  2632. * test/RequestTest.cc
  2633. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2634. Fixed the bug that referer header field contains fragment.
  2635. Now Request class removes fragment part of URI and encodes it
  2636. in Request::setUri() and setReferer().
  2637. * src/Request.h
  2638. * src/Request.cc
  2639. * test/RequestTest.cc
  2640. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2641. Added missing m4 macros.
  2642. * m4/cppunit.m4
  2643. * m4/libgcrypt.m4
  2644. * m4/libgnutls-extra.m4
  2645. * m4/libgnutls.m4
  2646. * m4/libxml2.m4
  2647. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2648. Fixed compile error with gcc-4.4(snapshot)
  2649. * src/File.cc
  2650. * src/FtpConnection.cc
  2651. * src/OptionHandlerImpl.h
  2652. * src/Util.cc
  2653. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2654. Removed assert()
  2655. * src/SocketBuffer.cc (SocketBuffer::send)
  2656. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2657. Changed the type of _numNewConnection to unsigned int.
  2658. * src/ActivePeerConnectionCommand.cc
  2659. * src/ActivePeerConnectionCommand.h
  2660. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2661. * Release 0.16.0
  2662. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2663. Updated doc
  2664. * README
  2665. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2666. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  2667. translations. Thanks to all translators.
  2668. * po/bg.po
  2669. * po/de.po
  2670. * po/fr.po
  2671. * po/ja.po
  2672. * po/zh_CN.po
  2673. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2674. Bump up version number to 0.16.0.
  2675. * configure.ac
  2676. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2677. Casted entry->maxConnections to int32_t for std::min<T> with T =
  2678. int32_t.
  2679. Changed the type of count to int32_t.
  2680. * src/Metalink2RequestGroup.cc
  2681. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2682. Added test for Time::elapsed(time_t).
  2683. * test/TimeTest.cc
  2684. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2685. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  2686. Util::difftv() should be used instead.
  2687. * src/TimeA2.cc
  2688. * src/TimeA2.h
  2689. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2690. Made socket for dht connections non-blocking
  2691. * src/DHTAbstractMessage.cc
  2692. * src/DHTAbstractMessage.h
  2693. * src/DHTConnection.h
  2694. * src/DHTConnectionImpl.cc
  2695. * src/DHTConnectionImpl.h
  2696. * src/DHTMessage.h
  2697. * src/DHTMessageDispatcherImpl.cc
  2698. * src/DHTMessageDispatcherImpl.h
  2699. * src/DHTUnknownMessage.cc
  2700. * src/DHTUnknownMessage.h
  2701. * src/SocketCore.cc
  2702. * src/SocketCore.h
  2703. * test/MockDHTMessage.h
  2704. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2705. Changed the type of offset to int.
  2706. * src/ParameterizedStringParser.cc
  2707. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2708. Made getAsInt() return int32_t
  2709. * src/Option.h
  2710. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2711. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  2712. build.
  2713. * configure.ac
  2714. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2715. Use sqlite3_open if sqlite3_open_v2 is not available.
  2716. * src/Sqlite3MozCookieParser.cc
  2717. * src/Sqlite3MozCookieParser.h
  2718. * m4/sqlite3.m4
  2719. * test/Sqlite3MozCookieParserTest.cc
  2720. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2721. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  2722. * src/BtPieceMessage.cc
  2723. * src/DHTPeerAnnounceStorage.cc
  2724. * src/DefaultPieceStorage.cc
  2725. * src/DownloadCommand.cc
  2726. * src/DownloadEngine.cc
  2727. * src/FtpConnection.cc
  2728. * src/PeerConnection.cc
  2729. * src/PeerMessageUtil.cc
  2730. * src/RequestGroup.cc
  2731. * src/RequestGroupMan.cc
  2732. * src/SimpleBtMessage.cc
  2733. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2734. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2735. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2736. * src/AbstractDiskWriter.cc
  2737. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2738. Don't set Request::supportsPersistentConnection() in HttpConnection
  2739. since this code is also used in AbstractProxyResponseCommand.
  2740. Moved those code to HttpResponse.
  2741. * src/HttpResponse.cc
  2742. * src/HttpResponse.h
  2743. * src/HttpConnection.cc
  2744. * src/HttpConnection.h
  2745. * src/HttpResponseCommand.cc
  2746. * test/HttpResponseTest.cc
  2747. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2748. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2749. The configuration is minimum: no torrent, no metalink, so there may be
  2750. other compile error on their code.
  2751. * src/a2netcompat.h
  2752. * src/File.cc
  2753. * src/File.h
  2754. * src/SocketCore.cc
  2755. * src/SocketCore.h
  2756. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2757. Made a socket of incoming peer non-blocking.
  2758. * src/PeerListenCommand.cc
  2759. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2760. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2761. whole message data is not sent in one send() call.
  2762. * src/BtPieceMessage.cc
  2763. * src/BtPieceMessage.h
  2764. * src/PeerConnection.cc
  2765. * src/PeerConnection.h
  2766. * src/SimpleBtMessage.cc
  2767. * src/SimpleBtMessage.h
  2768. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2769. Fixed the bug that aria2 downloads faster than max-download-limit when
  2770. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2771. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2772. , instead of sum of them.
  2773. * src/ActivePeerConnectionCommand.cc
  2774. * src/DefaultBtInteractive.cc
  2775. * src/DownloadCommand.cc
  2776. * src/PeerInteractionCommand.cc
  2777. * src/PeerReceiveHandshakeCommand.cc
  2778. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2779. Fixed the bug that HTTPS download fails.
  2780. * src/AbstractCommand.cc
  2781. * src/AbstractCommand.h
  2782. * src/DownloadCommand.cc
  2783. * src/FtpConnection.cc
  2784. * src/HttpConnection.cc
  2785. * src/HttpRequestCommand.cc
  2786. * src/HttpResponseCommand.cc
  2787. * src/HttpSkipResponseCommand.cc
  2788. * src/MSEHandshake.cc
  2789. * src/PeerConnection.cc
  2790. * src/SocketCore.cc
  2791. * src/SocketCore.h
  2792. Fixed the bug that aria2 doesn't download whole content body and cannot
  2793. reuse connection if chunked transfer encoding and gzip content encoding
  2794. are set.
  2795. * src/DownloadCommand.cc
  2796. * src/HttpSkipResponseCommand.cc
  2797. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2798. Updated man page.
  2799. * doc/aria2c.1.txt
  2800. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2801. When error occurred while aria2 was parsing an .aria2.conf file, print
  2802. the usage of the option that caused error.
  2803. * src/option_processing.cc
  2804. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2805. Fixed compile error on OptionHandlerException
  2806. * src/Makefile.am
  2807. * src/OptionHandlerException.cc
  2808. * src/OptionHandlerException.h
  2809. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2810. Moved message of the error to OptionHandlerException.h
  2811. * src/NameMatchOptionHandler.h
  2812. * src/OptionHandlerException.h
  2813. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2814. When error occurs while aria2 is parsing an command-line option, print
  2815. the usage of the option.
  2816. * src/Makefile.am
  2817. * src/NameMatchOptionHandler.h
  2818. * src/OptionHandlerException.h
  2819. * src/option_processing.cc
  2820. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2821. Reverted previous change.
  2822. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2823. username is not in URI.
  2824. * src/HttpRequest.cc
  2825. * src/Request.cc
  2826. * test/HttpRequestTest.cc
  2827. * test/RequestTest.cc
  2828. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2829. Now colon is required for username and password in FTP URL, like:
  2830. ftp://username:password@host.
  2831. If colon is not there, aria2 don't parse it as a username. For example,
  2832. aria2 don't retrieve username from ftp://username@host.
  2833. This fix was made in order to login FTP server via non-transparent ftp
  2834. proxy.
  2835. * src/Request.cc
  2836. * test/RequestTest.cc
  2837. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2838. Use netrc for HTTP.
  2839. Now FTP user/password is sent in Authorization header when
  2840. --ftp-via-http-proxy=get is given.
  2841. * src/AuthConfigFactory.cc
  2842. * src/HttpRequest.cc
  2843. * src/HttpRequest.h
  2844. * src/NetrcAuthResolver.cc
  2845. * src/NetrcAuthResolver.h
  2846. * src/OptionHandlerFactory.cc
  2847. * src/option_processing.cc
  2848. * src/prefs.cc
  2849. * src/prefs.h
  2850. * test/AuthConfigFactoryTest.cc
  2851. * test/HttpRequestTest.cc
  2852. * test/NetrcAuthResolverTest.cc
  2853. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2854. Issue PWD command first and get working directory and use it as a prefix
  2855. for CWD command.
  2856. * src/DownloadEngine.cc
  2857. * src/DownloadEngine.h
  2858. * src/FtpConnection.cc
  2859. * src/FtpConnection.h
  2860. * src/FtpFinishDownloadCommand.cc
  2861. * src/FtpInitiateConnectionCommand.cc
  2862. * src/FtpNegotiationCommand.cc
  2863. * src/FtpNegotiationCommand.h
  2864. * test/FtpConnectionTest.cc
  2865. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2866. Removed default user/pass for FTP user/pass, since it should not have
  2867. precedence over netrc configuration by default.
  2868. * src/OptionHandlerFactory.cc
  2869. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2870. Added debug log for socket event.
  2871. * src/AbstractCommand.cc
  2872. * src/PeerAbstractCommand.cc
  2873. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2874. Log microseconds.
  2875. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2876. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2877. Replaced HelpItem.cc with OptionHandler.cc.
  2878. * po/POTFILES.in
  2879. Updated po files with 'make update-po'
  2880. * po/aria2c.pot
  2881. * po/*.po
  2882. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2883. Removed possible values from the text.
  2884. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2885. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2886. Removed unused preferences:
  2887. PREF_NO_PREALLOCATION
  2888. PREF_STDOUT_LOG
  2889. PREF_TRACKER_MAX_TRIES
  2890. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2891. PREF_MIN_SEGMENT_SIZE
  2892. * src/option_processing.cc
  2893. * src/prefs.cc
  2894. * src/prefs.h
  2895. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2896. Integrated HelpItem into OptionParser to ease the workload for adding
  2897. new options. Removed default value from usage text.
  2898. * src/HelpItem.cc: Removed.
  2899. * src/HelpItem.h: Removed.
  2900. * src/HelpItemFactory.cc: Removed.
  2901. * src/HelpItemFactory.h: Removed.
  2902. * src/Makefile.am
  2903. * src/Makefile.in
  2904. * src/NameMatchOptionHandler.h
  2905. * src/OptionHandler.cc
  2906. * src/OptionHandler.h
  2907. * src/OptionHandlerFactory.cc
  2908. * src/OptionHandlerImpl.h
  2909. * src/OptionParser.cc
  2910. * src/OptionParser.h
  2911. * src/TagContainer.cc: Removed.
  2912. * src/TagContainer.h: Removed.
  2913. * src/TaggedItem.cc: Removed.
  2914. * src/TaggedItem.h: Removed.
  2915. * src/main.cc
  2916. * src/option_processing.cc
  2917. * src/usage_text.h
  2918. * src/version_usage.cc
  2919. * test/HelpItemTest.cc: Removed.
  2920. * test/Makefile.am
  2921. * test/Makefile.in
  2922. * test/OptionHandlerTest.cc
  2923. * test/OptionParserTest.cc
  2924. * test/TagContainerTest.cc: Removed.
  2925. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2926. Moved `TransferStat stat = ...' to inside the `if' clause.
  2927. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  2928. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2929. Fixed the bug that a block in a piece is requested when same block is
  2930. already requested to the same peer in end game mode.
  2931. * src/BtRequestFactory.h
  2932. * src/DefaultBtInteractive.cc
  2933. * src/DefaultBtRequestFactory.cc
  2934. * src/DefaultBtRequestFactory.h
  2935. * src/DefaultPieceStorage.cc
  2936. * src/DefaultPieceStorage.h
  2937. * src/PieceStorage.h
  2938. * src/UnknownLengthPieceStorage.cc
  2939. * src/UnknownLengthPieceStorage.h
  2940. * test/DefaultBtRequestFactoryTest.cc
  2941. * test/DefaultPieceStorageTest.cc
  2942. * test/MockBtRequestFactory.h
  2943. * test/MockPieceStorage.h
  2944. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2945. Removed _uploadLength and _downloadLength from PeerSessionResource
  2946. and use PeerStat::_sessionUploadLength and
  2947. PeerStat::_sessionDownloadLength.
  2948. * src/PeerSessionResource.cc
  2949. * src/PeerSessionResource.h
  2950. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2951. Fixed the bug that prefixLength of split bucket which doesn't include
  2952. local node ID is incremented.
  2953. * src/DHTBucket.cc
  2954. * src/DHTBucket.h
  2955. * test/DHTBucketTest.cc
  2956. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2957. Added cookies.sqlite to EXTRA_DIST
  2958. * test/Makefile.am
  2959. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2960. Added Turkish translation. Updated French, German, Russian and
  2961. Simplified Chinese translations. Thanks to all translators.
  2962. * po/LINGUAS
  2963. * po/de.po
  2964. * po/fr.po
  2965. * po/ru.po
  2966. * po/tr.po
  2967. * po/zh_CN.po
  2968. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2969. Added deliminating text to the beginning of the log so that one can find
  2970. where the log starts easily.
  2971. * src/main.cc
  2972. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2973. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2974. to fix compile error when async DNS is not enabled by configuration.
  2975. * src/AbstractCommand.cc
  2976. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2977. If establishing conneciton to a server is failed, then mark error on
  2978. its ServerStat.
  2979. Added the cause of error to log when error event occurred.
  2980. Moved message string to message.h for translation.
  2981. * src/AbstractCommand.cc
  2982. * src/AbstractCommand.h
  2983. * src/FtpNegotiationCommand.cc
  2984. * src/HttpRequestCommand.cc
  2985. * src/PeerAbstractCommand.cc
  2986. * src/message.h
  2987. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2988. Added the function to get error message from socket.
  2989. * src/SocketCore.cc
  2990. * src/SocketCore.h
  2991. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2992. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2993. * src/RequestGroupMan.cc
  2994. * src/RequestGroupMan.h
  2995. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2996. If error event is received in epoll, then abort download immediately.
  2997. * src/AbstractCommand.cc
  2998. * src/Command.cc
  2999. * src/Command.h
  3000. * src/DownloadEngine.cc
  3001. * src/PeerAbstractCommand.cc
  3002. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3003. Added usage message for --uri-selector, --server-stat-of,
  3004. --server-stat-in, --server-stat-timeout options.
  3005. * src/HelpItemFactory.cc
  3006. * src/usage_text.h
  3007. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3008. Added upper limit of FTP response buffer. The current implementation
  3009. uses 4096bytes as a limit.
  3010. * src/FtpConnection.cc
  3011. * src/FtpConnection.h
  3012. * test/FtpConnectionTest.cc
  3013. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3014. Use non-blocking socket for TCP communication to avoid possible
  3015. blocking due to buffer full.
  3016. * src/AbstractProxyRequestCommand.cc
  3017. * src/FtpConnection.cc
  3018. * src/FtpConnection.h
  3019. * src/FtpNegotiationCommand.cc
  3020. * src/FtpNegotiationCommand.h
  3021. * src/HttpConnection.cc
  3022. * src/HttpConnection.h
  3023. * src/HttpRequestCommand.cc
  3024. * src/InitiatorMSEHandshakeCommand.cc
  3025. * src/InitiatorMSEHandshakeCommand.h
  3026. * src/MSEHandshake.cc
  3027. * src/MSEHandshake.h
  3028. * src/Makefile.am
  3029. * src/PeerConnection.cc
  3030. * src/PeerConnection.h
  3031. * src/PeerInteractionCommand.cc
  3032. * src/PeerListenCommand.cc
  3033. * src/ReceiverMSEHandshakeCommand.cc
  3034. * src/ReceiverMSEHandshakeCommand.h
  3035. * src/SocketBuffer.cc
  3036. * src/SocketBuffer.h
  3037. * src/SocketCore.cc
  3038. * src/SocketCore.h
  3039. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3040. Call setStatusRealtime() in constructor.
  3041. * src/RealtimeCommand.cc
  3042. * src/RealtimeCommand.h
  3043. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3044. Call Download::setNoWait(true) to execute newly created command without
  3045. a pause.
  3046. * src/AbstractCommand.cc
  3047. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3048. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3049. found' error from HTTP/FTP server NUM times without getting single
  3050. bytes of data, then force the download to fail.
  3051. Basically aria2 tris all URIs available. So if long list of URIs are
  3052. specified in Metalink, then aria2 will take a long time to fail
  3053. eventually if all URIs are outdated. This option eases this situation
  3054. to limit the number of servers to try.
  3055. * src/FtpNegotiationCommand.cc
  3056. * src/HelpItemFactory.cc
  3057. * src/HttpResponseCommand.cc
  3058. * src/OptionHandlerFactory.cc
  3059. * src/PeerStat.h
  3060. * src/RequestGroup.cc
  3061. * src/RequestGroup.h
  3062. * src/SegmentMan.cc
  3063. * src/SegmentMan.h
  3064. * src/option_processing.cc
  3065. * src/prefs.cc
  3066. * src/prefs.h
  3067. * src/usage_text.h
  3068. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3069. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3070. response even if more than one response is in it.
  3071. * src/FtpConnection.cc
  3072. * src/FtpConnection.h
  3073. * test/FtpConnectionTest.cc
  3074. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3075. Merged from stable-0.15
  3076. * m4/libcares.m4
  3077. Use pkg-config
  3078. * m4/sqlite3.m4
  3079. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3080. Removed unnecessary if statement.
  3081. * src/DefaultPieceStorage.cc (initPieceStorage)
  3082. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3083. Added --connect-timeout option to specify connect timeout in seconds.
  3084. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3085. connecting to BitTorrent peer is not controlled by this option.
  3086. * src/AbstractProxyRequestCommand.cc
  3087. * src/FtpNegotiationCommand.cc
  3088. * src/HelpItemFactory.cc
  3089. * src/HttpRequestCommand.cc
  3090. * src/OptionHandlerFactory.cc
  3091. * src/option_processing.cc
  3092. * src/prefs.cc
  3093. * src/prefs.h
  3094. * src/usage_text.h
  3095. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3096. Added help message for -R option.
  3097. * src/HelpItemFactory.cc
  3098. * src/usage_text.h
  3099. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3100. Added the message that the time is in local time zone.
  3101. * src/RequestGroup.cc
  3102. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3103. Implemented the ability to get timestamp from remote FTP server using
  3104. MDTM command described in RFC3659.
  3105. * src/FtpConnection.cc
  3106. * src/FtpConnection.h
  3107. * src/FtpNegotiationCommand.cc
  3108. * src/FtpNegotiationCommand.h
  3109. * test/FtpConnectionTest.cc
  3110. * test/Makefile.am
  3111. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3112. Implemented the ability to get timestamp from remote HTTP server and
  3113. apply it to local file. To enable this feature, --remote-time option
  3114. is added. No usage text has been written yet.
  3115. If several servers returns difference timestamp, then aria2 uses latest
  3116. one.
  3117. * src/CopyDiskAdaptor.cc
  3118. * src/CopyDiskAdaptor.h
  3119. * src/DirectDiskAdaptor.cc
  3120. * src/DirectDiskAdaptor.h
  3121. * src/DiskAdaptor.h
  3122. * src/File.cc
  3123. * src/File.h
  3124. * src/HttpHeader.cc
  3125. * src/HttpHeader.h
  3126. * src/HttpResponse.cc
  3127. * src/HttpResponse.h
  3128. * src/HttpResponseCommand.cc
  3129. * src/HttpResponseCommand.h
  3130. * src/MultiDiskAdaptor.cc
  3131. * src/MultiDiskAdaptor.h
  3132. * src/OptionHandlerFactory.cc
  3133. * src/RequestGroup.cc
  3134. * src/RequestGroup.h
  3135. * src/RequestGroupMan.cc
  3136. * src/option_processing.cc
  3137. * src/prefs.cc
  3138. * src/prefs.h
  3139. * test/CopyDiskAdaptorTest.cc
  3140. * test/FileTest.cc
  3141. * test/Makefile.am
  3142. * test/Makefile.in
  3143. * test/MultiDiskAdaptorTest.cc
  3144. * test/TestUtil.cc
  3145. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3146. Fixed the bug that DiskWriterEntry is not created when its
  3147. FileEntry.isRequested() is false and it doesn't share a piece with
  3148. other FileEntries that are requested. This bug causes segmentation fault
  3149. in the end.
  3150. * src/MultiDiskAdaptor.cc
  3151. * src/MultiDiskAdaptor.h
  3152. * src/MultiFileAllocationIterator.cc
  3153. * test/MultiDiskAdaptorTest.cc
  3154. * test/MultiFileAllocationIteratorTest.cc
  3155. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3156. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3157. called if the number of file entries are greater than max open files.
  3158. * src/AbstractSingleDiskAdaptor.cc
  3159. * src/AbstractSingleDiskAdaptor.h
  3160. * src/DiskAdaptor.h
  3161. * src/MultiDiskAdaptor.cc
  3162. * src/MultiDiskAdaptor.h
  3163. * test/MultiDiskAdaptorTest.cc
  3164. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3165. Added a constuctor that receives struct timeval.
  3166. Added operator<.
  3167. * src/TimeA2.cc
  3168. * src/TimeA2.h
  3169. * test/TimeTest.cc
  3170. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3171. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3172. * src/CookieParser.cc
  3173. * test/CookieParserTest.cc
  3174. * test/HttpResponseTest.cc
  3175. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3176. Implmented the functions to parse date.
  3177. * src/TimeA2.cc
  3178. * src/TimeA2.h
  3179. * test/TimeTest.cc
  3180. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3181. Added "Firefox3 Cookie" feature to FeatureConfig
  3182. * src/FeatureConfig.cc
  3183. * src/FeatureConfig.h
  3184. * test/FeatureConfigTest.cc
  3185. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3186. Bump up version number to 0.16.0b
  3187. * configure.ac
  3188. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3189. Use pkg-config if is is available.
  3190. * m4/openssl.m4
  3191. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3192. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3193. * src/BtAnnounce.h
  3194. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3195. If an error occurred with a URI, remove identical URI from remaining
  3196. URI list because it is likely that same error occurred in the end and it
  3197. is waste of time.
  3198. * src/AbstractCommand.cc
  3199. * src/RequestGroup.cc
  3200. * src/RequestGroup.h
  3201. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3202. Removed wrong comment.
  3203. * src/DefaultPeerStorage.cc
  3204. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3205. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3206. Added return value of getpid() to argument of srand() to achieve more
  3207. randomized value.
  3208. * src/SimpleRandomizer.cc
  3209. * src/SimpleRandomizer.h
  3210. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3211. Contact tracker frequently when the number of connections are 0 and
  3212. download is not finished yet.
  3213. * src/ActivePeerConnectionCommand.cc
  3214. * src/BtAnnounce.h
  3215. * src/DefaultBtAnnounce.cc
  3216. * src/DefaultBtAnnounce.h
  3217. * test/MockBtAnnounce.h
  3218. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3219. Moved threshold values to UTPexExtensionMessage.
  3220. * src/DefaultBtInteractive.cc
  3221. * src/Peer.cc
  3222. * src/Peer.h
  3223. * src/UTPexExtensionMessage.cc
  3224. * src/UTPexExtensionMessage.h
  3225. * test/UTPexExtensionMessageTest.cc
  3226. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3227. Added _incoming member to Peer class and made it true if the peer
  3228. initiated connection. Don't add those peer to UTPex message.
  3229. If extended handshake is received, assign _incoming to false.
  3230. * src/DefaultBtInteractive.cc
  3231. * src/HandshakeExtensionMessage.cc
  3232. * src/Peer.cc
  3233. * src/Peer.h
  3234. * src/PeerListenCommand.cc
  3235. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3236. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3237. Encoding Decoder. Removed size threshold for turning off on the fly
  3238. inflation because resulting file may or may not be inflated depending
  3239. on the file size and I think it is not expected by users.
  3240. This change fixes segmentation fault when Metalink file contains gzipped
  3241. file and its filesize is provided.
  3242. * src/HttpResponseCommand.cc
  3243. * src/HttpResponseCommand.h
  3244. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3245. Made Cookie immutable.
  3246. * src/Cookie.cc
  3247. * src/Cookie.h
  3248. * src/CookieParser.cc
  3249. * src/CookieParser.h
  3250. * src/CookieStorage.cc
  3251. * test/CookieParserTest.cc
  3252. * test/CookieStorageTest.cc
  3253. * test/NsCookieParserTest.cc
  3254. * test/Sqlite3MozCookieParserTest.cc
  3255. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3256. Removed CookieBox, CookieBoxFactory.
  3257. * src/CookieBox.cc
  3258. * src/CookieBox.h
  3259. * src/CookieBoxFactory.cc
  3260. * src/CookieBoxFactory.h
  3261. * src/Makefile.am
  3262. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3263. Use CookieStorage class instead of CookieBox class.
  3264. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3265. * src/AbstractProxyRequestCommand.cc
  3266. * src/CookieStorage.cc
  3267. * src/DownloadEngine.cc
  3268. * src/DownloadEngine.h
  3269. * src/HttpConnection.cc
  3270. * src/HttpConnection.h
  3271. * src/HttpRequest.cc
  3272. * src/HttpRequest.h
  3273. * src/HttpRequestCommand.cc
  3274. * src/HttpResponse.cc
  3275. * src/HttpResponseCommand.cc
  3276. * src/HttpSkipResponseCommand.cc
  3277. * src/Makefile.am
  3278. * src/MultiUrlRequestInfo.cc
  3279. * src/Request.cc
  3280. * src/Request.h
  3281. * src/main.cc
  3282. * test/AllTest.cc
  3283. * test/CookieStorageTest.cc
  3284. * test/CookieTest.cc
  3285. * test/HttpRequestTest.cc
  3286. * test/HttpResponseTest.cc
  3287. * test/Makefile.am
  3288. * test/NsCookieParserTest.cc
  3289. * test/Sqlite3MozCookieParserTest.cc
  3290. * test/nscookietest.txt
  3291. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3292. Updated
  3293. * test/Cookies.sqlite
  3294. * test/nscookietest.txt
  3295. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3296. Added tests for CookieStorage::load()
  3297. * test/CookieStorageTest.cc
  3298. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3299. Added CookieStorage class which is based on RFC2109 and manages cookies
  3300. more strictly than CookieBox and CookieBoxFactory class.
  3301. * src/CookieStorage.cc
  3302. * src/CookieStorage.h
  3303. * src/Cookie.cc
  3304. * src/Cookie.h
  3305. * test/CookieStorageTest.cc
  3306. * test/CookieTest.cc
  3307. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3308. Fixed the bug that commands are created more than the number of pieces.
  3309. * src/RequestGroup.cc
  3310. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3311. Fixed infinite loop bug in FTP when SIZE command failed.
  3312. * src/FtpNegotiationCommand.cc
  3313. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3314. Removed DirectDiskAdaptorTest.h
  3315. * test/Makefile.am
  3316. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3317. Fixed chunk checksum validation cannot detect trailing garbage data.
  3318. BUG#2074141
  3319. * src/AbstractSingleDiskAdaptor.cc
  3320. * src/AbstractSingleDiskAdaptor.h
  3321. * src/CheckIntegrityEntry.cc
  3322. * src/CheckIntegrityEntry.h
  3323. * src/DiskAdaptor.h
  3324. * src/MultiDiskAdaptor.cc
  3325. * src/MultiDiskAdaptor.h
  3326. * src/RequestGroup.cc
  3327. * test/DirectDiskAdaptorTest.cc
  3328. * test/MultiDiskAdaptorTest.cc
  3329. * test/TestUtil.cc
  3330. * test/TestUtil.h
  3331. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3332. Bump up version number of dht.dat file to 3. In version 3 format, time
  3333. is stored in 64bit, network byte order.
  3334. New build can load old format(version 2) but it saves the file in new
  3335. format. It means once you used new build, your dht.dat becomes
  3336. incompatible with older build.
  3337. * src/DHTRoutingTableDeserializer.cc
  3338. * src/DHTRoutingTableSerializer.cc
  3339. * test/DHTRoutingTableSerializerTest.cc
  3340. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3341. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3342. * test/Makefile.am
  3343. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3344. Bump up version number of .aria2 control file to 0001.
  3345. New aria2 can still load version 0000 file but it saves the file in
  3346. version 0001 format. It means that new aria2 can resume download
  3347. started by old aria2 but the opposite is not true.
  3348. * src/DefaultBtProgressInfoFile.cc
  3349. * src/DefaultBtProgressInfoFile.h
  3350. * test/DefaultBtProgressInfoFileTest.cc
  3351. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Added ntoh64 and hton64 as inline functions.
  3353. * src/Util.cc
  3354. * test/UtilTest.cc
  3355. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3356. Added sqlite3 depenency and Firefox3 cookie support.
  3357. * README
  3358. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3359. State that firefox3 cookie is supported explicitly in the usage.
  3360. * src/usage_text.h
  3361. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3362. Externalized message.
  3363. * src/RequestGroupMan.cc
  3364. * src/message.h
  3365. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3366. Save temporary file first and rename to the destination on success.
  3367. Added test cases.
  3368. * src/RequestGroupMan.cc
  3369. * test/RequestGroupManTest.cc
  3370. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3371. Fixed the bug that the number of connected peer is exceeding the limit
  3372. (55 by default) in seeding mode.
  3373. Multiplied 0.8 to _maxUploadSpeedLimit.
  3374. * src/ActivePeerConnectionCommand.cc
  3375. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3376. Clear table item.
  3377. * src/Dictionary.cc
  3378. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3379. Fixed error handling of lseek.
  3380. * src/AbstractDiskWriter.cc
  3381. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3382. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3383. style cookie file.
  3384. * src/usage_text.h
  3385. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3386. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3387. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3388. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3389. * src/Util.cc
  3390. * src/Util.h
  3391. * src/CookieParser.cc
  3392. * test/UtilTest.cc
  3393. * test/CookieParserTest.cc
  3394. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3395. Separate the implementation to load old mozilla format of cookie to
  3396. NsCookieParser class.
  3397. * src/CookieBoxFactory.cc
  3398. * src/CookieBoxFactory.h
  3399. * src/NsCookieParser.cc
  3400. * src/NsCookieParser.h
  3401. * test/NsCookieParserTest.cc
  3402. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3403. Made parse() const
  3404. * src/Sqlite3MozCookieParser.cc
  3405. * src/Sqlite3MozCookieParser.h
  3406. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3407. Added firefox3 cookie support based on the patch submitted by
  3408. tizianomueller.
  3409. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3410. this functionality.
  3411. * configure.ac
  3412. * m4/sqlite3.m4
  3413. * src/CookieBoxFactory.cc
  3414. * src/CookieBoxFactory.h
  3415. * src/Makefile.am
  3416. * src/Makefile.in
  3417. * src/Sqlite3MozCookieParser.cc
  3418. * src/Sqlite3MozCookieParser.h
  3419. * src/main.cc
  3420. * test/CookieBoxFactoryTest.cc
  3421. * test/Makefile.am
  3422. * test/Makefile.in
  3423. * test/Sqlite3MozCookieParserTest.cc
  3424. * test/badcookies.sqlite
  3425. * test/cookies.sqlite
  3426. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3427. Added Danish and Greek translations.
  3428. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3429. Great thanks to all translators.
  3430. * po/LINGUAS
  3431. * po/el.po
  3432. * po/da.po
  3433. * po/es.po
  3434. * po/ca.po
  3435. * po/nn.po
  3436. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3437. Fixed man page: --follow-bittorrent should be --follow-torrent
  3438. * doc/aria2c.1.txt
  3439. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3440. Fixed: numCommand is less than the value specified in -C option.
  3441. * src/RequestGroup.cc
  3442. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3443. Fixed occasional assertion failure in PieceSegment.
  3444. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3445. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3446. creation of duplicate segments and one of the segment was finished then
  3447. assertion failure was caused.
  3448. * src/SegmentMan.cc
  3449. * test/SegmentManTest.cc
  3450. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3451. Added options to load/save the server's performance/status to a file
  3452. and the timeout to drop their data.
  3453. --server-stat-of=FILE specifies the file to which performance data
  3454. is saved.
  3455. --server-stat-if=FILE specifies the file to read previously saved
  3456. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3457. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3458. TIMEOUT is specified in seconds and the default value is 24hours.
  3459. * src/MultiUrlRequestInfo.cc
  3460. * src/OptionHandlerFactory.cc
  3461. * src/RequestGroupMan.cc
  3462. * src/RequestGroupMan.h
  3463. * src/ServerStatMan.cc
  3464. * src/ServerStatMan.h
  3465. * src/option_processing.cc
  3466. * src/prefs.cc
  3467. * src/prefs.h
  3468. * test/ServerStatManTest.cc
  3469. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3470. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3471. * src/ServerStatMan.cc
  3472. * src/ServerStatMan.h
  3473. * test/ServerStatManTest.cc
  3474. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3475. Implemented ServerStatMan::load(...) function and its test case.
  3476. * src/ServerStat.cc
  3477. * src/ServerStat.h
  3478. * src/ServerStatMan.cc
  3479. * test/ServerStatManTest.cc
  3480. * test/ServerStatTest.cc
  3481. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3482. Use time_t instead of int32_t. Use int64_t where milli second is
  3483. expected.
  3484. * src/TimeA2.cc
  3485. * src/TimeA2.h
  3486. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Implemented ServerStatMan::save(...) function and its test case.
  3488. * src/ServerStat.cc
  3489. * src/ServerStat.h
  3490. * src/ServerStatMan.cc
  3491. * src/ServerStatMan.h
  3492. * test/ServerStatManTest.cc
  3493. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3494. Now aria2 uses name attribute in Metalink as local filename in
  3495. BitTorrent downloads. BUG#2033999
  3496. * src/BtContext.h
  3497. * src/BtDependency.cc
  3498. * src/DefaultBtContext.cc
  3499. * src/DefaultBtContext.h
  3500. * src/SingleFileDownloadContext.cc
  3501. * src/SingleFileDownloadContext.h
  3502. * test/BtDependencyTest.cc
  3503. * test/DefaultBtContextTest.cc
  3504. * test/MockBtContext.h
  3505. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3506. Added AC_C_BIGENDIAN
  3507. * src/configure.ac
  3508. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3509. Limited numCommand less than or equal to the number of piece.
  3510. * src/RequestGroup.cc
  3511. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3512. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3513. directive.
  3514. * test/DefaultPieceStorageTest.cc
  3515. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3516. Fixed memory leak in test code
  3517. * test/AnnounceListTest.cc
  3518. * test/DefaultPeerListProcessorTest.cc
  3519. * test/DefaultPeerStorageTest.cc
  3520. * test/MetaFileUtilTest.cc
  3521. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3522. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3523. * src/DefaultPieceStorage.cc
  3524. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3525. Initialized _directIOAllowed
  3526. * src/MultiDiskAdaptor.cc
  3527. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3528. Fixed memory leak
  3529. * src/GZipDecoder.cc
  3530. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3531. Fixed memory leak
  3532. * src/MetalinkParserStateMachine.cc
  3533. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3534. Fixed memory leak
  3535. * src/Dictionary.cc
  3536. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3537. Fixed memory leak
  3538. * src/IteratableChunkChecksumValidator.h
  3539. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3540. Fixed unmatched malloc/free.
  3541. * src/IteratableChunkChecksumValidator.cc
  3542. * src/IteratableChecksumValidator.cc
  3543. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3544. Removed max chunk size check. This change fixes BUG#2040169
  3545. * src/ChunkedDecoder.cc
  3546. * src/ChunkedDecoder.h
  3547. * test/ChunkedDecoderTest.cc
  3548. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3549. Implemented download speed based URI selection algorithm.
  3550. Introduced new option --uri-selector.
  3551. If --uri-selector=feedback is given, aria2 uses download speed observed
  3552. in the previous downloads and chooses fastest server in the URI list.
  3553. Currently at most 10 URIs are considered to introduce randomeness for
  3554. finding better servers. The speed is average download speed in the
  3555. downloads.
  3556. On the other hand, if --uri-selector=inorder is given, which is default,
  3557. URI is tried in order in URI list.
  3558. The usage text for the new option has not been written yet.
  3559. * src/AbstractCommand.cc
  3560. * src/DownloadCommand.cc
  3561. * src/DownloadEngine.cc
  3562. * src/DownloadEngineFactory.cc
  3563. * src/InOrderURISelector.cc
  3564. * src/InOrderURISelector.h
  3565. * src/OptionHandlerFactory.cc
  3566. * src/PeerStat.h
  3567. * src/RequestGroup.cc
  3568. * src/RequestGroup.h
  3569. * src/RequestGroupMan.cc
  3570. * src/RequestGroupMan.h
  3571. * src/SegmentMan.cc
  3572. * src/SegmentMan.h
  3573. * src/ServerStat.cc
  3574. * src/ServerStat.h
  3575. * src/ServerStatMan.cc
  3576. * src/ServerStatMan.h
  3577. * src/ServerStatURISelector.cc
  3578. * src/ServerStatURISelector.h
  3579. * src/URISelector.h
  3580. * src/option_processing.cc
  3581. * src/prefs.cc
  3582. * src/prefs.h
  3583. * test/InOrderURISelectorTest.cc
  3584. * test/RequestGroupManTest.cc
  3585. * test/ServerStatManTest.cc
  3586. * test/ServerStatURISelectorTest.cc
  3587. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3588. * Release 0.15.1+2
  3589. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3590. Bump up version number to 0.15.1+2
  3591. * configure.ac
  3592. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3593. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3594. * m4/aria2_arg.m4
  3595. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3596. * Release 0.15.1+1
  3597. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. Bump up version number to 0.15.1+1
  3599. * configure.ac
  3600. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3601. Fixed the bug that causes segmentaion fault when resuming download
  3602. using metalink without size tag. Reproducible only using HTTP URI.
  3603. * src/HttpResponseCommand.cc
  3604. * src/FtpNegotiationCommand.cc
  3605. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3606. * Release 0.15.1
  3607. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3608. Updated Bulgarian and French translations, thanks to all translators.
  3609. * po/bg.po
  3610. * po/fr.po
  3611. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3612. Bump up version number to 0.15.1
  3613. * configure.ac
  3614. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3615. Avoid repeated call of gettimeofday() when calculating speed.
  3616. * src/SpeedCalc.cc
  3617. * src/SpeedCalc.h
  3618. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3619. Removed writable check when socket's send buffer is full in BitTorrent
  3620. downloads to lower CPU usage.
  3621. * src/PeerInteractionCommand.cc
  3622. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3623. Fixed broken gzip inflation.
  3624. Turn off segmented downloading if gzip content is smaller than or equal
  3625. to 1MiB and inflate the data on the fly, because HTTP response header
  3626. doesn't contain the length of inflated file we can't determin where
  3627. the chunk of data should be written.
  3628. On the other hand, if gzip content is larger than 1MB, then turn off
  3629. on the fly inflation, because some servers returns "content-type: gzip"
  3630. for *.tgz, *.gz files.
  3631. * src/DownloadCommand.cc
  3632. * src/HttpResponseCommand.cc
  3633. * src/HttpResponseCommand.h
  3634. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3635. Applied tizianomueller's patch to fix compile error.
  3636. * test/BitfieldManTest.cc
  3637. * test/BtRequestMessageTest.cc
  3638. * test/DefaultBtContextTest.cc
  3639. * test/DefaultDiskWriterTest.cc
  3640. * test/DefaultPieceStorageTest.cc
  3641. * test/HttpHeaderProcessorTest.cc
  3642. * test/HttpResponseTest.cc
  3643. * test/Metalink2RequestGroupTest.cc
  3644. * test/MetalinkParserControllerTest.cc
  3645. * test/MetalinkProcessorTest.cc
  3646. * test/PeerSessionResourceTest.cc
  3647. * test/UtilTest.cc
  3648. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3649. * Release 0.15.0
  3650. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3651. Reordered src files in POTFILES.in so that usage text appears first.
  3652. * po/POTFILES.in
  3653. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3654. Bump up version number to 0.15.0
  3655. * configure.ac
  3656. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3657. Added Bulgarian translation.
  3658. Updated Catalan, Spanish, French and Japanese translations.
  3659. Thanks to all translators.
  3660. * po/LINGUAS
  3661. * po/bg.po
  3662. * po/ca.po
  3663. * po/es.po
  3664. * po/fr.po
  3665. * po/ja.po
  3666. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3667. Updated feature list. Added libz for dependency section.
  3668. Added a description about unit testing using CppUnit.
  3669. * README
  3670. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3671. Added a test for libz. Quoted where it is necessary.
  3672. * build_test.sh
  3673. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3674. Added GZip to `Enabled Features' list.
  3675. * src/FeatureConfig.cc
  3676. * src/FeatureConfig.h
  3677. * test/FeatureConfigTest.cc
  3678. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3679. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  3680. the transfer has not yet started.
  3681. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  3682. * src/SegmentMan.cc
  3683. * src/SegmentMan.h
  3684. * test/SegmentManTest.cc
  3685. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3686. Cache last calculated average download/upload speed.
  3687. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  3688. cached value.
  3689. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  3690. * src/PeerStat.h
  3691. * src/SpeedCalc.cc
  3692. * src/SpeedCalc.h
  3693. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3694. Call parseUrl directly.
  3695. * src/Request.cc (resetUrl)
  3696. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3697. Supported absolute/relative path in Location header field.
  3698. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  3699. * src/HttpHeader.cc
  3700. * src/HttpHeader.h
  3701. * src/HttpResponse.cc
  3702. * src/HttpSkipResponseCommand.cc
  3703. * src/Request.cc
  3704. * test/HttpHeaderTest.cc
  3705. * test/HttpResponseTest.cc
  3706. * test/RequestTest.cc
  3707. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3708. Changed help text for --load-cookie option.
  3709. * doc/aria2c.1.txt
  3710. * src/usage_text.h
  3711. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3712. Regenerated test/Makefile.in to remove stale ChangeLog.
  3713. * test/Makefile.in
  3714. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3715. Updated po files.
  3716. * po/aria2c.pot
  3717. * po/*.po
  3718. * po/*.gmo
  3719. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3720. Bump up version number to 0.15.0b
  3721. * configure.ac
  3722. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3723. Externalize messages.
  3724. * src/RequestGroupMan.cc
  3725. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3726. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3727. Use File::exists() instead of File::isFile() to allow non-regular file
  3728. such as block special files.
  3729. * src/AbstractDiskWriter.cc
  3730. * src/MultiDiskWriter.cc
  3731. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3732. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3733. * src/gai_strerror.h
  3734. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3735. Fixed compile error. Thanks gknauf for the patch.
  3736. * src/asctime_r.c
  3737. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3738. Included asctime_r.h from a2time.h.
  3739. * src/a2time.h
  3740. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3741. Added a message "aria2 doesn't verify signature" to log message when
  3742. signature file is saved.
  3743. * src/RequestGroupMan.cc
  3744. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3745. Added the ability to save signature when download is completed if
  3746. signature is available. The filename of signature file is the path to
  3747. download file followed by ".sig". If it already exists, then signature
  3748. will not be saved.
  3749. * src/RequestGroupMan.cc
  3750. * src/Signature.cc
  3751. * test/SignatureTest.cc
  3752. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3753. Updated the descriptions for --bt-seed-unverified.
  3754. * doc/aria2c.1
  3755. * doc/aria2c.1.html
  3756. * doc/aria2c.1.txt
  3757. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3758. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3759. that this is not going to verify files using piece hashes.
  3760. * src/HelpItemFactory.cc
  3761. * src/OptionHandlerFactory.cc
  3762. * src/RequestGroup.cc
  3763. * src/option_processing.cc
  3764. * src/prefs.cc
  3765. * src/prefs.h
  3766. * src/usage_text.h
  3767. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3768. Added the ability to retrieve signature from Metalink file.
  3769. A retrieved signature is stored in Signature class and it is held by
  3770. DownloadContext class. Note that aria2 doesn't verify signature.
  3771. * src/DownloadContext.cc
  3772. * src/DownloadContext.h
  3773. * src/Makefile.am
  3774. * src/Makefile.in
  3775. * src/Metalink2RequestGroup.cc
  3776. * src/MetalinkEntry.cc
  3777. * src/MetalinkEntry.h
  3778. * src/MetalinkParserController.cc
  3779. * src/MetalinkParserController.h
  3780. * src/MetalinkParserStateMachine.cc
  3781. * src/MetalinkParserStateMachine.h
  3782. * src/Signature.cc
  3783. * src/Signature.h
  3784. * src/SignatureMetalinkParserState.cc
  3785. * src/SignatureMetalinkParserState.h
  3786. * src/VerificationMetalinkParserState.cc
  3787. * src/VerificationMetalinkParserState.h
  3788. * test/Metalink2RequestGroupTest.cc
  3789. * test/MetalinkParserControllerTest.cc
  3790. * test/MetalinkProcessorTest.cc
  3791. * test/test.xml
  3792. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3793. Close DiskAdaptor after renaming file.
  3794. * src/RequestGroup.cc
  3795. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3796. Corrected indentation
  3797. * src/DefaultBtProgressInfoFile.cc
  3798. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3799. Moved the calls of std::ios::exceptions() inside of try-catch block
  3800. because if an error occurred in constructor of std::fstream, then
  3801. exception is thrown immediately when std::ios::exceptions() is called
  3802. which results unhandled exception and aria2c aborts.
  3803. * src/DefaultBtProgressInfoFile.cc
  3804. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. Added the test for the previous change in DefaultBtContext.cc
  3806. * test/DefaultBtContextTest.cc
  3807. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3808. Fixed the bug that causes infinite loop when the number of pieces are
  3809. fewer than allowed fast set size which is 10 by default.
  3810. * src/DefaultBtContext.cc
  3811. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3812. Updated the descriptions for -j, -s. Added --bt-seed.
  3813. * doc/aria2c.1
  3814. * doc/aria2c.1.html
  3815. * doc/aria2c.1.txt
  3816. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3817. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3818. aria2 seeds previously downloaded files without validating piece hashs.
  3819. * src/HelpItemFactory.cc
  3820. * src/OptionHandlerFactory.cc
  3821. * src/RequestGroup.cc
  3822. * src/option_processing.cc
  3823. * src/prefs.cc
  3824. * src/prefs.h
  3825. * src/usage_text.h
  3826. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3827. Updated DESCRIPTION of man page.
  3828. * doc/aria2c.1
  3829. * doc/aria2c.1.html
  3830. * doc/aria2c.1.txt
  3831. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3832. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3833. Don't define `struct addrinfo' when __sun is defined.
  3834. * src/getaddrinfo.h
  3835. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3836. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3837. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3838. second argument is of type `struct _stati64'. Otherwise it is defined as
  3839. `struct stat'.
  3840. * src/AbstractDiskWriter.cc
  3841. * src/File.cc
  3842. * src/File.h
  3843. * src/a2io.h
  3844. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3845. Fixed the compile error in hurd-i386
  3846. See the original bug report:
  3847. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3848. * src/a2io.h
  3849. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3850. Code cleanup.
  3851. * src/PeerAbstractCommand.cc
  3852. * src/PeerAbstractCommand.h
  3853. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3854. Removed TransferEncoding.
  3855. * src/DownloadCommand.cc
  3856. * src/DownloadCommand.h
  3857. * src/HttpResponseCommand.cc
  3858. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3859. Updated po files.
  3860. * po/aria2c.pot
  3861. * po/*.po
  3862. * po/*.gmo
  3863. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3864. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3865. * src/A2STR.cc
  3866. * src/A2STR.h
  3867. * src/ChunkedDecoder.cc
  3868. * src/ChunkedDecoder.h
  3869. * src/ChunkedEncoding.cc: Removed
  3870. * src/ChunkedEncoding.h: Removed
  3871. * src/DownloadCommand.cc
  3872. * src/DownloadCommand.h
  3873. * src/HttpDownloadCommand.cc
  3874. * src/HttpResponse.cc
  3875. * src/HttpResponse.h
  3876. * src/HttpResponseCommand.cc
  3877. * src/HttpSkipResponseCommand.cc
  3878. * src/HttpSkipResponseCommand.h
  3879. * src/Makefile.am
  3880. * src/TransferEncoding.h: Removed
  3881. * test/ChunkedDecoderTest.cc
  3882. * test/ChunkedEncodingTest.cc: Removed
  3883. * test/HttpResponseTest.cc
  3884. * test/Makefile.am
  3885. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3886. Use append instead of insert.
  3887. * src/GZipDecoder.cc
  3888. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3889. Updated doc
  3890. * src/Decoder.h
  3891. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3892. Updated usage text for -s option.
  3893. * src/usage_text.h
  3894. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3895. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3896. * src/Request.cc
  3897. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3898. Cleaned up configure.ac.
  3899. * configure.ac
  3900. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3901. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3902. AC_ARG_ENABLE.
  3903. * configure.ac
  3904. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3905. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3906. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3907. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  3908. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  3909. fly and writes decoded data to a local disk.
  3910. * README
  3911. * README.html
  3912. * configure.ac
  3913. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  3914. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  3915. * m4/libz.m4
  3916. * src/Decoder.h
  3917. * src/DownloadCommand.cc
  3918. * src/DownloadCommand.h
  3919. * src/Exception.h
  3920. * src/GZipDecoder.cc
  3921. * src/GZipDecoder.h
  3922. * src/HttpHeader.cc
  3923. * src/HttpHeader.h
  3924. * src/HttpRequest.cc
  3925. * src/HttpRequest.h
  3926. * src/HttpResponse.cc
  3927. * src/HttpResponse.h
  3928. * src/HttpResponseCommand.cc
  3929. * src/Makefile.am
  3930. * test/GZipDecoderTest.cc
  3931. * test/HttpRequestTest.cc
  3932. * test/HttpResponseTest.cc
  3933. * test/Makefile.am
  3934. * test/Makefile.in
  3935. * test/gzip_decode_test.gz
  3936. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3937. Clarified usage of -j option.
  3938. * src/usage_text.h
  3939. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3940. Disabled getting size from the response of RETR.
  3941. If SIZE command failed, then disable resuming and segmented downloading.
  3942. * src/FtpConnection.cc
  3943. * src/FtpConnection.h
  3944. * src/FtpNegotiationCommand.cc
  3945. * src/FtpNegotiationCommand.h
  3946. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3947. Use digits to find first byte of file size, which makes the intention
  3948. of the code clearer.
  3949. * src/FtpConnection.cc
  3950. Don't call validateTotalLength() when size is 0.
  3951. * src/FtpNegotiationCommand.cc
  3952. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3953. Updated po files.
  3954. * po/aria2c.pot
  3955. * po/*.gmo
  3956. * po/*.po
  3957. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3958. Clarified usage text for --split option.
  3959. * src/usage_text.h
  3960. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Bump up version number to 0.15.0dev. "dev" means "development"
  3962. version, which means I started the development of the next release!
  3963. * src/configure.ac
  3964. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3965. If FTP server returns negative response with REST raw command and
  3966. requested range is not 0, throw exception. If requested range is 0,
  3967. continue download a file from 0 byte.
  3968. * src/FtpNegotiationCommand.cc
  3969. * src/FtpNegotiationCommand.h
  3970. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3971. Supported FTP server which don't recognize SIZE raw command.
  3972. If SIZE raw command is failed, aria2 will try to get file size
  3973. from the response of RETR raw command. If both attempts are failed,
  3974. then resuming and segmented downloading are disabled.
  3975. * src/FtpConnection.cc
  3976. * src/FtpConnection.h
  3977. * src/FtpNegotiationCommand.cc
  3978. * src/FtpNegotiationCommand.h
  3979. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3980. * Release 0.14.0+1
  3981. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3982. Bump up version number to 0.14.0+1
  3983. * src/configure.ac
  3984. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3985. Fixed the code that refers static member variable from non-static
  3986. context.
  3987. * src/DefaultPeerStorage.cc
  3988. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3989. * Release 0.14.0
  3990. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Added build test script
  3992. * build_test.sh
  3993. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3994. Updated ja.po
  3995. * src/ja.po
  3996. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3997. Bump up version number to 0.14.0
  3998. * src/configure.ac
  3999. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4000. Updated ja.po and fr.po. Great thanks for french translators and
  4001. Sebastien WILLEMIJNS.
  4002. * po/fr.po
  4003. * po/ja.po
  4004. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4005. Added configure option to enable/disable epoll support.
  4006. * configure.ac
  4007. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4008. Updated man page.
  4009. * doc/aria2c.1.txt
  4010. * doc/aria2c.1
  4011. * doc/aria2c.1.html
  4012. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4013. Added missing default value '5' to the usage of --split option.
  4014. * src/HelpItemFactory.cc
  4015. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4016. Filled up pieces based on the number of missing blocks, rather than
  4017. simplay the number of piece * block length.
  4018. * src/BtRequestFactory.h
  4019. * src/DefaultBtInteractive.cc
  4020. * src/DefaultBtInteractive.h
  4021. * src/DefaultBtRequestFactory.cc
  4022. * src/DefaultBtRequestFactory.h
  4023. * src/Piece.cc
  4024. * src/Piece.h
  4025. * test/BitfieldManTest.cc
  4026. * test/DefaultBtRequestFactoryTest.cc
  4027. * test/MockBtRequestFactory.h
  4028. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4029. Made _epEvents a member variable.
  4030. * src/DownloadEngine.cc
  4031. * src/DownloadEngine.h
  4032. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4033. Cancel download if http redirect is bounded more than 20 times.
  4034. * src/AbstractCommand.cc
  4035. * src/HttpSkipResponseCommand.cc
  4036. * src/Request.cc
  4037. * src/Request.h
  4038. * test/RequestTest.cc
  4039. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4040. Fixed unhandled exception(removed keyword `new').
  4041. * src/SocketCore.cc (initEPOLL)
  4042. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4043. Removed visit(const MetaEntry*)
  4044. * src/MetaEntryVisitor.h:
  4045. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4046. and made them virtual.
  4047. * src/BencodeVisitor.h
  4048. * src/BencodeVisitor.cc
  4049. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. Updated po files.
  4051. * po/aria2c.pot
  4052. * po/*.po
  4053. * po/*.gmo
  4054. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4055. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4056. the number of socket to watch out.
  4057. * src/PeerInteractionCommand.cc
  4058. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4059. When there is not enough space in disk when writing a chunk of data,
  4060. aria2 now prints the message to the console to warn user and aborts
  4061. its download. Not all downloads are canceled because some downloads
  4062. may use another disk or partition. BUG#1640332
  4063. * src/AbstractDiskWriter.cc
  4064. * src/PeerAbstractCommand.cc
  4065. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4066. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4067. setHaltRequested(true) to cancel download.
  4068. * src/PeerInteractionCommand.h
  4069. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4070. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4071. socket from int to sock_t as sockets are unsigned in Windows.
  4072. For AsyncNameResolver, DownloadEngine, I did additional modification
  4073. for the portion of the code changed according to epoll support.
  4074. I defined sock_t in a2netcompat.h to use sock_t without including
  4075. SocketCore.h.
  4076. * src/AsyncNameResolver.cc
  4077. * src/AsyncNameResolver.h
  4078. * src/DownloadEngine.cc
  4079. * src/DownloadEngine.h
  4080. * src/SocketCore.cc
  4081. * src/SocketCore.h
  4082. * src/a2netcompat.h
  4083. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4084. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4085. changes in the patch were applied.
  4086. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4087. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4088. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4089. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4090. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4091. a2io.h and common.h were modified.
  4092. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4093. MinGW.
  4094. * src/common.h: Changed off_t to 64 bit in MinGW.
  4095. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4096. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4097. only a2netcompat.h is modified.
  4098. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4099. directives.
  4100. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4101. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4102. only gai_strerror.h is modified.
  4103. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4104. winsock errors in MinGW.
  4105. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4106. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4107. follow sources are applied.
  4108. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4109. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4110. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4111. I included locale.h from Platform.cc.
  4112. * src/main.cc: Moved common setup/teardown code to Platform class.
  4113. * test/AllTest.cc: Use Platform class.
  4114. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4115. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4116. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4117. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4118. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4119. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4120. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4121. aria2-0.13.2+1-mingw-2.patch.
  4122. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4123. systems which don't have termious.h. I moved the directive inside of
  4124. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4125. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4126. anyway.
  4127. * src/asctime_r.h
  4128. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4129. I added 2nd argument to the prototype declaration.
  4130. * src/StringFormat.cc: Get rid of vasprintf.
  4131. * src/getaddrinfo.h: Fixed constants.
  4132. * configure.ac: Added the check for asctime_r function.
  4133. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4134. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4135. Added writable test for Socket when the sending message is in progress.
  4136. Usually the sending message is piece message. Without wriable check,
  4137. upload latency is dropped to more than 1sec.
  4138. * src/PeerInteractionCommand.cc
  4139. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4140. Create only requested files and files which shares a piece with
  4141. requested file in multi-torrent downloads. Directory structures are
  4142. also created in the same rule.
  4143. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4144. DiskWriterEntry as in the previous implementation.
  4145. * src/MultiDiskWriter.cc
  4146. * src/MultiFileAllocationIterator.cc
  4147. * src/MultiFileAllocationIterator.h
  4148. * test/MultiFileAllocationIteratorTest.cc
  4149. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4150. Commented out -lprofiler
  4151. * src/Makefile.am
  4152. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4153. Bump up version number to 0.14.0b.
  4154. * src/configure.ac
  4155. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4156. Actively establish connection to peers in seeding, when peer cache
  4157. is not full and max upload speed limit is not reached.
  4158. * src/ActivePeerConnectionCommand.cc
  4159. * src/ActivePeerConnectionCommand.h
  4160. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4161. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4162. to make room more fleshy, recently found peers.
  4163. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4164. it.
  4165. * src/DefaultPeerStorage.cc
  4166. * test/DefaultPeerStorageTest.cc
  4167. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4168. Returns cached data only when the previous receiveHandshake() is called
  4169. with peek = true.
  4170. * src/PeerConnection.cc (receiveHandshake)
  4171. * src/PeerConnection.h (receiveHandshake)
  4172. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4173. Changed default value of -s option from 1 to 5.
  4174. Also max value of -s option is changed from 5 to 16.
  4175. * src/HelpItemFactory.cc
  4176. * src/OptionHandlerFactory.cc
  4177. * src/option_processing.cc
  4178. * src/usage_text.h
  4179. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4180. Changed -s options behavior. Now it means the number of connections
  4181. made simultaneously in each http/ftp download.
  4182. If 1 URL is specified, the behavior is the same with old implementation.
  4183. If -s N is given and more than N URLs are specified, first N URLs are
  4184. used and remaining URLs are used for backup. If less than N URLs are
  4185. specified, some of URLs are used more than once so that totally N
  4186. connections are made simultaneously.
  4187. * src/main.cc
  4188. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4189. Included missing iosfwd or ostream header.
  4190. * src/RequestGroupMan.cc
  4191. * src/TaggedItem.cc
  4192. * src/TaggedItem.h
  4193. * src/Util.cc
  4194. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4196. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4197. * src/HttpConnection.cc: Included missing sstream.
  4198. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4199. Added --bt-max-open-files option.
  4200. * src/DefaultPieceStorage.cc
  4201. * src/HelpItemFactory.cc
  4202. * src/MultiDiskAdaptor.cc
  4203. * src/MultiDiskAdaptor.h
  4204. * src/OptionHandlerFactory.cc
  4205. * src/option_processing.cc
  4206. * src/prefs.cc
  4207. * src/prefs.h
  4208. * src/usage_text.h
  4209. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4210. Fixed the bug that aria2 aborts when a path to a directory is given
  4211. in command-line.
  4212. * src/ProtocolDetector.cc
  4213. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4214. Limited the number files opened in each BitTorrent download. The default
  4215. value is 100. The option to change this value will be added.
  4216. * src/MultiDiskAdaptor.cc
  4217. * src/MultiDiskAdaptor.h
  4218. * src/MultiFileAllocationIterator.cc
  4219. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4220. Fixed the bug that HTTP downloads don't start with old libraries.
  4221. * src/HttpHeaderProcessor.cc
  4222. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4223. Use empty() instead of size() > 0.
  4224. * src/HttpConnection.cc
  4225. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. Drop connection if the incoming peer ID is the same with localhost's
  4227. one. The previous implementation drops connection when incoming peer's
  4228. IP address is the same with localhost's one.
  4229. * src/PeerListenCommand.cc
  4230. * src/DefaultBtInteractive.cc
  4231. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4232. Returns cached data without checking whether socket is readable
  4233. if the cache is available.
  4234. * src/PeerConnection.cc (receiveHandshake)
  4235. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4236. Included stdint.h
  4237. * src/common.h
  4238. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4239. Removed duplicate HAVE_GETTIMEOFDAY
  4240. * src/Makefile.am
  4241. * src/Makefile.in
  4242. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4243. Use interval as a minInterval when minInterval is not supplied.
  4244. * src/DefaultBtAnnounce.cc
  4245. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4246. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4247. attempt is failed, then 2nd attempt get kicked out more quickly.
  4248. And it is now static const member of DefaultBtAnnounce.
  4249. * src/DefaultBtAnnounce.h
  4250. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4251. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4252. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4253. * src/ActivePeerConnectionCommand.cc
  4254. * src/BtConstants.h
  4255. * src/BtRuntime.h
  4256. * src/DHTGetPeersCommand.cc
  4257. * src/DefaultBtAnnounce.cc
  4258. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4259. BtRuntime::MAX_PEERS.
  4260. * src/DefaultPeerStorage.h
  4261. * src/InitiatorMSEHandshakeCommand.cc
  4262. * src/PeerInitiateConnectionCommand.cc
  4263. * src/PeerInteractionCommand.cc
  4264. * src/PeerReceiveHandshakeCommand.cc
  4265. * src/TrackerWatcherCommand.cc
  4266. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4267. Always Connect to _numNewConnection
  4268. * src/ActivePeerConnectionCommand.cc
  4269. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4270. Made `begin' unsigned int.
  4271. * src/GrowSegment.h
  4272. * src/Piece.cc
  4273. * src/Piece.h
  4274. * src/PiecedSegment.cc
  4275. * src/PiecedSegment.h
  4276. * src/Segment.h
  4277. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4278. Calculate piece hash when data is arrived if the data is arrived in
  4279. order. This removes additional read operation for hash calculation.
  4280. If the data is arrived in out of order, the hash is calucated when the
  4281. piece is completed. This is the same behavior as the old implementation.
  4282. * src/BtPieceMessage.cc
  4283. * src/DefaultBtProgressInfoFile.cc
  4284. * src/DefaultPieceStorage.cc
  4285. * src/DownloadCommand.cc
  4286. * src/DownloadCommand.h
  4287. * src/DownloadEngine.cc
  4288. * src/GrowSegment.cc
  4289. * src/GrowSegment.h
  4290. * src/Piece.cc
  4291. * src/Piece.h
  4292. * src/PiecedSegment.cc
  4293. * src/PiecedSegment.h
  4294. * src/Segment.h
  4295. * test/PieceTest.cc
  4296. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4297. Try to keep the ordering of outgoing piece message.
  4298. * src/DefaultBtMessageDispatcher.cc
  4299. (DefaultBtMessageDispatcher::sendMessages)
  4300. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4301. Fixed busy loop when error/hup epoll events occur.
  4302. * src/AbstractCommand.cc
  4303. * src/PeerAbstractCommand.cc
  4304. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4305. Added --bt-request-peer-speed-limit option, which was a constant
  4306. SLOW_SPEED_THRESHOLD.
  4307. * src/ActivePeerConnectionCommand.cc
  4308. * src/ActivePeerConnectionCommand.h
  4309. * src/BtConstants.h
  4310. * src/HelpItemFactory.cc
  4311. * src/OptionHandlerFactory.cc
  4312. * src/PeerReceiveHandshakeCommand.cc
  4313. * src/option_processing.cc
  4314. * src/prefs.cc
  4315. * src/prefs.h
  4316. * src/usage_text.h
  4317. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4318. Removed repeated call of getTopDirPath(). Instead, call it once and
  4319. cache the result.
  4320. * src/MultiDiskAdaptor.cc
  4321. * src/MultiDiskAdaptor.h
  4322. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4323. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. Fixed compile error on debian etch.
  4325. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4326. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4327. it is undefined.
  4328. * src/Util.cc (ULLONG_MAX)
  4329. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4330. Added epoll support. Use epoll if it is available. If not, use select.
  4331. When async dns is enabled in compile time, epoll support is enabled
  4332. only when aria2 is built with c-ares. This condition statement is
  4333. defined in a2io.h.
  4334. Currently aria2 supports both c-ares and ares, but ares is maintained
  4335. for quite a while and debian already has c-ares package, ares support
  4336. will be dropped in the future version.
  4337. * configure.ac
  4338. * src/AbstractCommand.cc
  4339. * src/AsyncNameResolver.cc
  4340. * src/AsyncNameResolver.h
  4341. * src/Command.cc
  4342. * src/Command.h
  4343. * src/DownloadEngine.cc
  4344. * src/DownloadEngine.h
  4345. * src/PeerAbstractCommand.cc
  4346. * src/SocketCore.cc
  4347. * src/SocketCore.h
  4348. * src/a2io.h
  4349. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4351. directive.
  4352. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4353. Do not do write operation to /dev/null file.
  4354. * src/LogFactory.cc
  4355. * src/SimpleLogger.cc
  4356. Replaced vasprintf with vsnprintf
  4357. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4358. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4359. * src/BtRequestMessage.cc
  4360. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4361. for segmentation fault caused by previous commit.
  4362. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4363. Reduced the usage of gettimeofday().
  4364. * src/DefaultBtMessageDispatcher.cc
  4365. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4366. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4367. * src/RequestSlot.cc
  4368. * src/RequestSlot.h
  4369. (RequestSlot::isTimeout)
  4370. Made RequestSlot have a reference to Piece object to avoid find
  4371. Piece repeatedly.
  4372. * src/DefaultBtMessageDispatcher.cc
  4373. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4374. * src/RequestSlot.cc
  4375. * src/RequestSlot.h
  4376. (RequestSlot::getPiece)
  4377. * test/DefaultBtMessageDispatcherTest.cc
  4378. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4379. * src/TimeA2.cc
  4380. * src/TimeA2.h
  4381. (Time::difference): New function.
  4382. (Time::elapsed): Done optimization.
  4383. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4384. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4385. directive.
  4386. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4387. * src/option_processing.cc: Added missing `defined' keyword to #if
  4388. directive.
  4389. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4390. Bump up version number to 0.13.2+1
  4391. * src/configure.ac
  4392. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4393. Refactored broken outstanding piece handling.
  4394. * src/DefaultPieceStorage.cc
  4395. * src/DefaultPieceStorage.h
  4396. * src/Piece.cc
  4397. * src/Piece.h
  4398. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4399. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4400. name collision of static variable and predefined macro.
  4401. * src/BtContext.cc
  4402. * src/BtContext.h
  4403. * src/CookieBoxFactory.cc
  4404. * src/CookieBoxFactory.h
  4405. * src/CookieParser.cc
  4406. * src/CookieParser.h
  4407. * src/DefaultBtContext.cc
  4408. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4409. * src/RequestGroup.cc
  4410. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4411. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4412. * Release 0.13.2
  4413. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4415. * po/fr.po
  4416. * po/ja.po
  4417. * po/aria2c.pot
  4418. * po/*.po
  4419. * po/*.gmo
  4420. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4421. Bump up version number to 0.13.2
  4422. * src/configure.ac
  4423. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4424. Refactord.
  4425. * src/RequestGroupMan.cc
  4426. (removeStoppedGroup)
  4427. (fillRequestGroupFromReserver)
  4428. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4429. Fixed compile error on Ubuntu.
  4430. * src/BtPieceMessage.cc
  4431. * src/MessageDigestHelper.cc
  4432. * src/Util.cc
  4433. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4434. Fixed compile error when configured with --disable-bittorrent
  4435. * test/DownloadHandlerFactoryTest.cc
  4436. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4437. Done make update-po
  4438. * po/aria2c.pot
  4439. * po/*.po
  4440. * po/*.gmo
  4441. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4442. Bump up version number to 0.13.2rc.
  4443. * src/configure.ac
  4444. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4445. Made option name bold. Updated SYNOPSIS to make it more readable.
  4446. * doc/aria2c.1.txt
  4447. * doc/aria2c.1
  4448. * doc/aria2c.1.html
  4449. * src/version_usage.cc
  4450. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. Refactored. Use std::string instead of size and char*.
  4452. * Data.cc
  4453. * Data.h
  4454. * test/Data.cc
  4455. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4456. Added trimSelf(). Rewritten trim() to use trimSelf().
  4457. * Util.cc
  4458. * Util.h
  4459. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4460. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4461. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4462. Fixed compile error when configured with --disable-metalink.
  4463. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4464. * test/FeatureConfigTest.cc
  4465. * test/DownloadHandlerFactoryTest.cc
  4466. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4467. Fixed compile error when configured with --without-gnutls
  4468. --without-openssl
  4469. * src/main.cc
  4470. * test/DefaultBtProgressInfoFileTest.cc
  4471. * test/SegmentManTest.cc
  4472. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4473. Fixed compile error with OpenSSL.
  4474. * src/IteratableChunkChecksumValidator.cc
  4475. * src/LibsslDHKeyExchange.h
  4476. * src/MessageDigestHelper.cc
  4477. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4478. Revert the default value of --max-concurrent-downloads to 5.
  4479. Revert the default value of --metalink-servers to 5.
  4480. Man pages was also updated.
  4481. * src/option_processing.cc
  4482. * doc/aria2c.1.txt
  4483. * doc/aria2c.1.html
  4484. * doc/aria2c.1
  4485. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4486. Returns const reference:
  4487. DownloadContext::getPieceHash, DownloadContext::getName,
  4488. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4489. BtContext::getInfoHashAsString,
  4490. * src/BtContext.h
  4491. * src/DefaultBtContext.cc
  4492. * src/DefaultBtContext.h
  4493. * src/DownloadContext.h
  4494. * src/SingleFileDownloadContext.h
  4495. * test/MockBtContext.h
  4496. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4497. * src/RequestGroup.h (getDir): Removed.
  4498. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4499. Returns const reference. The internal urlencode function was optimized
  4500. a little bit.
  4501. * src/Request.cc
  4502. * src/Request.h
  4503. * src/HttpRequest.cc
  4504. * src/HttpRequest.h
  4505. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Defined option name and possible values as std::string to reduce
  4507. temporary string object creation in runtime.
  4508. * src/HelpItemFactory.cc
  4509. * src/LogFactory.cc
  4510. * src/Option.cc
  4511. * src/OptionHandlerFactory.cc
  4512. * src/option_processing.cc
  4513. * src/prefs.cc
  4514. * src/prefs.h
  4515. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4516. Return const reference.
  4517. * src/DownloadHandlerConstants.cc
  4518. * src/DownloadHandlerConstants.h
  4519. (getMetalinkExtensions)
  4520. (getMetalinkContentTypes)
  4521. (getBtExtensions)
  4522. (getBtContentTypes)
  4523. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4524. * src/HttpHeader.cc (get): Rewritten.
  4525. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4526. Make HttpHeader::getFirst(...) return const reference.
  4527. * src/HttpHeader.cc
  4528. * src/HttpHeader.h
  4529. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4530. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4531. it with V_TRUE.
  4532. * src/DefaultPieceStorage.cc
  4533. * src/DownloadCommand.cc
  4534. * src/FtpNegotiationCommand.cc
  4535. * src/HttpRequest.cc
  4536. * src/InitiateConnectionCommand.cc
  4537. * src/RequestGroup.cc
  4538. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4539. Made Option::get(...) return const reference of std::string.
  4540. * src/Option.cc
  4541. * src/Option.h
  4542. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4543. Replaced std:copy with insert.
  4544. * src/DefaultBtMessageDispatcher.cc
  4545. * src/DefaultPieceStorage.cc
  4546. * src/DownloadEngineFactory.cc
  4547. * src/RequestGroup.cc
  4548. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4549. Included SocketCore.h to fix compiler warning.
  4550. * src/InitiateConnectionCommand.cc
  4551. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4552. Put piece selection strategy algorithm to RarestPieceSelector class,
  4553. Added a switch to choose whether randomized selection so that unit
  4554. tests emit same results in, possibly, win32.
  4555. * src/DefaultPieceStorage.cc
  4556. * src/DefaultPieceStorage.h
  4557. * src/RarestPieceSelector.cc
  4558. * src/RarestPieceSelector.h
  4559. * test/DefaultPieceStorageTest.cc
  4560. * test/RarestPieceSelectorTest.cc
  4561. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4562. Don't pool connection if HTTP proxy is enabled.
  4563. * src/FtpFinishDownloadCommand.cc
  4564. * src/FtpNegotiationCommand.cc
  4565. * src/HttpSkipResponseCommand.cc
  4566. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4567. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4568. * src/AbstractCommand.cc
  4569. * src/AbstractCommand.h
  4570. * src/ActivePeerConnectionCommand.cc
  4571. * src/FtpInitiateConnectionCommand.cc
  4572. * src/HttpInitiateConnectionCommand.cc
  4573. * src/InitiateConnectionCommandFactory.cc
  4574. * src/PeerAbstractCommand.cc
  4575. * src/PeerAbstractCommand.h
  4576. * src/PeerInitiateConnectionCommand.cc
  4577. * src/TrackerWatcherCommand.cc
  4578. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4579. Sort RequestSlot in ascending order and manipulate them using
  4580. lower_bound.
  4581. * src/DefaultBtMessageDispatcher.cc
  4582. * src/DefaultBtMessageDispatcher.h
  4583. (getMessageQueue): Added const qualifier.
  4584. (getRequestSlots): Added const qualifier.
  4585. (sendMessages): Use empty() instead of size().
  4586. (doCancelSendingPieceAction): Use HandleEvent object.
  4587. (doAbortOutstandingRequestAction): Rewritten.
  4588. (doChokedAction): Rewritten.
  4589. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4590. (isOutstandingRequest): Rewritten.
  4591. (getOutstandingRequest): Rewritten.
  4592. (removeOutstandingRequest): Rewritten.
  4593. (addOutstandingRequest): Rewritten.
  4594. * src/RequestSlot.cc
  4595. * src/RequestSlot.h
  4596. (operator=): Rewritten.
  4597. (operator!=): New function.
  4598. (operator<): New function.
  4599. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4600. * src/DefaultBtRequestFactory.cc
  4601. (doChokedAction): Rewritten.
  4602. (removeCompletedPiece): Rewritten.
  4603. (removeTargetPiece): Rewritten.
  4604. (createRequestMessages): Added the debug log.
  4605. (createRequestMessagesOnEndGame: Added the debug log.
  4606. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4607. Added the debug log message.
  4608. * src/BtPieceMessage.cc (doReceivedAction)
  4609. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4610. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4611. used lower_bound to process them rather than linear search.
  4612. * src/DHTPeerAnnounceStorage.cc
  4613. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4614. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4615. peer has at least one completed piece.
  4616. * src/Peer.cc
  4617. * src/Peer.h
  4618. * src/PeerInteractionCommand.cc
  4619. * src/PeerSessionResource.cc
  4620. * src/PeerSessionResource.h
  4621. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4622. Removed unnecessary sorting
  4623. * src/DefaultPieceStorage (DefaultPieceStorage)
  4624. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4625. Rewritten the portion of the code that mangaes allowed fast indexes.
  4626. * src/PeerSessionResource.cc
  4627. * src/PeerSessionResource.h
  4628. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4629. Removed the invalid string including '\r' from ru.po and
  4630. did make update-po.
  4631. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4632. Added --log-level and --summary-interval to man page.
  4633. * doc/aria2c.1.txt
  4634. * doc/aria2c.1.html
  4635. * doc/aria2c.1
  4636. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4637. Added --log-level option to specify log level. Log messages under
  4638. the specified level are not output. Default value is `debug'.
  4639. * src/HelpItemFactory.cc
  4640. * src/LogFactory.cc
  4641. * src/LogFactory.h
  4642. * src/Logger.h
  4643. * src/OptionHandlerFactory.cc
  4644. * src/SimpleLogger.cc
  4645. * src/SimpleLogger.h
  4646. * src/main.cc
  4647. * src/option_processing.cc
  4648. * src/prefs.h
  4649. * src/usage_text.h
  4650. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4651. Print download progress summary of all parallel downloads in specified
  4652. interval, default 60 secs. While aria2 could download several files
  4653. in parallel (see -j option), it displayed just first download progress,
  4654. and the other downloads are hidden from the users. This new feature
  4655. prints all downloads currently in-progress to the console so that you
  4656. can check the status of all downloads. The interval can be adjusted
  4657. by --summary-interval option.
  4658. The progress readout is now cut so that all fits in the one line of
  4659. console.
  4660. * src/ConsoleStatCalc.cc
  4661. * src/ConsoleStatCalc.h
  4662. * src/HelpItemFactory.cc
  4663. * src/OptionHandlerFactory.cc
  4664. * src/RequestGroupMan.cc
  4665. * src/RequestGroupMan.h
  4666. * src/main.cc
  4667. * src/option_processing.cc
  4668. * src/prefs.h
  4669. * src/usage_text.h
  4670. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4671. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  4672. * src/DownloadEngine.cc (DownloadEngine)
  4673. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4674. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  4675. defined.
  4676. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  4677. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4678. Use erase+lower_bound+insert instead of sort.
  4679. * src/DefaultPieceStorage.cc (addPieceStats)
  4680. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4681. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  4682. * src/A2STR.cc
  4683. * src/A2STR.h
  4684. * src/OptionParser.cc (parse)
  4685. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4686. Defined fake filename `[tracker.announce]' as static const std::string.
  4687. * src/TrackerWatcherCommand.cc (createRequestGroup)
  4688. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4689. Defined default filename `index.html' as static const std::string
  4690. * src/SingleFileDownloadContext.cc
  4691. * src/SingleFileDownloadContext.h
  4692. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4693. Defined "[MEMORY]" as static const std::string.
  4694. * src/MemoryBufferPreDownloadHandler.cc (execute)
  4695. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4696. Defined control file's version number as static const std::string.
  4697. * src/DefaultBtProgressInfoFile.cc
  4698. * src/DefaultBtProgressInfoFile.h
  4699. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4700. Use Request::METHOD_GET
  4701. * src/RequestGroup.cc (createNextCommandWithAdj)
  4702. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4703. Defined "OK", "ERR", "INPR" as static const std::string
  4704. * src/RequestGroupMan.cc (showDownloadResults)
  4705. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. Defined default client used in extended handshake as static const
  4707. std::string
  4708. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  4709. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4710. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  4711. * src/HttpConnection.cc (eraseConfidentialInfo)
  4712. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4713. Defined default ftp user and password as static const std::string
  4714. * src/AuthConfigFactory.cc
  4715. * src/AuthConfigFactory.h
  4716. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4717. Defined strings used in netrc as static const std::string
  4718. * src/Netrc.cc
  4719. * src/Netrc.h
  4720. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Defined HTTP status as static const std::string
  4722. * src/AbstractProxyResponseCommand.cc
  4723. * src/HttpHeader.cc
  4724. * src/HttpHeader.h
  4725. * src/HttpResponse.cc
  4726. * src/HttpResponseCommand.cc
  4727. * src/HttpSkipResponseCommand.cc
  4728. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4729. Defined "\r\n", "A", "I" as static const std::string
  4730. * src/A2STR.cc
  4731. * src/A2STR.h
  4732. * src/FtpConnection.cc
  4733. * src/FtpConnection.h
  4734. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4735. Added COLON_C(".") and used it in Request::parseUrl()
  4736. * src/A2STR.cc
  4737. * src/A2STR.h
  4738. * src/Request.cc (parseUrl)
  4739. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4740. Changed the type of padName from `const std::string&' to `const char*'.
  4741. * src/MSEHandshake.cc (verifyPadLength)
  4742. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Defined "sha1" as static const std::string.
  4744. * src/MetalinkParserController.cc
  4745. * src/MetalinkParserController.h
  4746. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4747. Defined message digest algorithm name as static const std::string
  4748. * src/DHTTokenTracker.cc
  4749. * src/DHTUtil.cc
  4750. * src/DefaultBtContext.cc
  4751. * src/MSEHandshake.cc
  4752. * src/MessageDigestHelper.cc
  4753. * src/Peer.cc
  4754. * src/messageDigest.cc
  4755. * src/messageDigest.h
  4756. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. Made string literals used in SAX parser static const std::string.
  4758. * src/FileMetalinkParserState.cc
  4759. * src/FileMetalinkParserState.h
  4760. * src/FilesMetalinkParserState.cc
  4761. * src/FilesMetalinkParserState.h
  4762. * src/InitialMetalinkParserState.cc
  4763. * src/InitialMetalinkParserState.h
  4764. * src/MetalinkMetalinkParserState.cc
  4765. * src/MetalinkMetalinkParserState.h
  4766. * src/PiecesMetalinkParserState.cc
  4767. * src/PiecesMetalinkParserState.h
  4768. * src/ResourcesMetalinkParserState.cc
  4769. * src/ResourcesMetalinkParserState.h
  4770. * src/VerificationMetalinkParserState.cc
  4771. * src/VerificationMetalinkParserState.h
  4772. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4773. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4774. * src/A2STR.cc
  4775. * src/A2STR.h
  4776. * src/File.cc
  4777. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4778. Defined static const std::string IP("ip"), PORT("port") and use them
  4779. instead of string literals.
  4780. * src/DefaultPeerListProcessor.cc
  4781. * src/DefaultPeerListProcessor.h
  4782. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4783. Made string literals for torrent file processing static const
  4784. std::string.
  4785. * src/BtContext.cc
  4786. * src/BtContext.h
  4787. * src/DefaultBtContext.cc
  4788. * src/DefaultBtContext.h
  4789. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4790. Made string literal for tracker response static const std::string
  4791. * src/BtAnnounce.cc
  4792. * src/BtAnnounce.h
  4793. * src/DefaultBtAnnounce.cc
  4794. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4795. Use DHTMessage::T instead of "t".
  4796. * src/DHTMessageTracker.cc (messageArrived)
  4797. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4798. Made keyName static const. Made trimmed charset static const
  4799. std::string.
  4800. * src/Util.cc (getContentDispositionFilename)
  4801. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4802. Made USER_AGENT const. Made "/" static const std::string.
  4803. * src/A2STR.cc
  4804. * src/A2STR.h
  4805. * src/HttpRequest.cc
  4806. * src/HttpRequest.h
  4807. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4808. Made string listeral to static const std::string:
  4809. "Content-Range", "Content-Length"
  4810. * src/HttpHeader.cc
  4811. * src/HttpHeader.h
  4812. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4813. Made string listeral to static const std::string.
  4814. * src/HttpConnection.cc
  4815. * src/HttpHeader.cc
  4816. * src/HttpHeader.h
  4817. * src/HttpResponse.cc
  4818. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4819. Made string listeral to static const std::string.
  4820. * src/A2STR.cc
  4821. * src/A2STR.h
  4822. * src/SimpleLogger.cc
  4823. * src/SimpleLogger.h
  4824. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4825. Made string literal to static const std::string.
  4826. Rewritten CookieParser::setField.
  4827. * src/A2STR.cc
  4828. * src/A2STR.h
  4829. * src/CookieBoxFactory.cc
  4830. * src/CookieBoxFactory.h
  4831. * src/CookieParser.cc
  4832. * src/CookieParser.h
  4833. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4834. Made string literal to static const std::string
  4835. * src/DHTAbstractMessage.cc
  4836. * src/DHTAnnouncePeerMessage.cc
  4837. * src/DHTAnnouncePeerMessage.h
  4838. * src/DHTAnnouncePeerReplyMessage.cc
  4839. * src/DHTAnnouncePeerReplyMessage.h
  4840. * src/DHTFindNodeMessage.cc
  4841. * src/DHTFindNodeMessage.h
  4842. * src/DHTFindNodeReplyMessage.cc
  4843. * src/DHTFindNodeReplyMessage.h
  4844. * src/DHTGetPeersMessage.cc
  4845. * src/DHTGetPeersMessage.h
  4846. * src/DHTGetPeersReplyMessage.cc
  4847. * src/DHTGetPeersReplyMessage.h
  4848. * src/DHTMessage.cc
  4849. * src/DHTMessage.h
  4850. * src/DHTMessageFactoryImpl.cc
  4851. * src/DHTMessageReceiver.cc
  4852. * src/DHTPingMessage.cc
  4853. * src/DHTPingMessage.h
  4854. * src/DHTPingReplyMessage.cc
  4855. * src/DHTPingReplyMessage.h
  4856. * src/DHTQueryMessage.cc
  4857. * src/DHTQueryMessage.h
  4858. * src/DHTResponseMessage.cc
  4859. * src/DHTResponseMessage.h
  4860. * src/DHTUnknownMessage.cc
  4861. * src/DHTUnknownMessage.h
  4862. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4863. Made string literal to static const std::string
  4864. * src/BtChokeMessage.cc (toString)
  4865. * src/BtHaveAllMessage.cc (toString)
  4866. * src/BtHaveNoneMessage.cc (toString)
  4867. * src/BtInterestedMessage.cc (toString)
  4868. * src/BtNotInterestedMessage.cc (toString)
  4869. * src/BtUnchokeMessage.cc (toString)
  4870. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4871. Replaced "" with static const variable A2STR::NIL.
  4872. Replaced string comparison against "" with std::string::empty().
  4873. Added PROTO_* to Request class and use them as a protocol string
  4874. constant.
  4875. Made "started", "stopped", "completed" static const variable in
  4876. AnnounceList class.
  4877. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4878. Updated translations. Great thanks to translators.
  4879. * po/ca.po
  4880. * po/de.po
  4881. * po/fr.po
  4882. * po/it.po
  4883. * po/ja.po
  4884. * po/ru.po
  4885. * po/zh_CN.po
  4886. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4887. Updated man page; categorized options and fixed typo.
  4888. * doc/aria2c.1.txt
  4889. * doc/aria2c.1.html
  4890. * doc/aria2c.1
  4891. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4892. Removed const ref
  4893. * src/MetalinkEntry.cc (AddProtocolPreference)
  4894. * src/RequestGroup.cc (FindServerHostByHostname)
  4895. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Rewritten Accept-Features handling.
  4897. * src/HttpRequestCommand.cc (createHttpRequest)
  4898. * src/a2functional.h
  4899. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Changed method signature:
  4901. DHTAbstractNodeLookupTask::toEntries
  4902. * src/DHTAbstractNodeLookupTask.cc
  4903. * src/DHTAbstractNodeLookupTask.h
  4904. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4905. Changed method signature:
  4906. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4907. * src/BtContext.h
  4908. * src/DefaultBtContext.cc
  4909. * src/DefaultBtContext.h
  4910. * src/DefaultBtInteractive.cc
  4911. * test/DefaultBtContextTest.cc
  4912. * test/MockBtContext.h
  4913. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4914. Changed method signature:
  4915. MultiFileAllocationIterator::makeDiskWriterEntries
  4916. * src/MultiFileAllocationIterator.cc
  4917. * src/MultiFileAllocationIterator.h
  4918. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. Changed method sinature:
  4920. MetalinkEntry::toFileEntry,
  4921. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  4922. Metalinker::queryEntry
  4923. * src/Metalink2RequestGroup.cc
  4924. * src/MetalinkEntry.cc
  4925. * src/MetalinkEntry.h
  4926. * src/MetalinkHelper.cc
  4927. * src/MetalinkHelper.h
  4928. * src/Metalinker.cc
  4929. * src/Metalinker.h
  4930. * src/main.cc
  4931. * test/MetalinkHelperTest.cc
  4932. * test/MetalinkerTest.cc
  4933. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4934. Changed method sinature:
  4935. RequestGroup::getURIs
  4936. * src/RequestGroup.cc
  4937. * src/RequestGroup.h
  4938. * test/Metalink2RequestGroupTest.cc
  4939. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4940. Changed method signature:
  4941. PeerListProcessor::extractPeer
  4942. * src/CompactPeerListProcessor.cc
  4943. * src/CompactPeerListProcessor.h
  4944. * src/DefaultBtAnnounce.cc
  4945. * src/DefaultPeerListProcessor.cc
  4946. * src/DefaultPeerListProcessor.h
  4947. * src/DelegatingPeerListProcessor.cc
  4948. * src/DelegatingPeerListProcessor.h
  4949. * src/PeerListProcessor.h
  4950. * src/UTPexExtensionMessage.cc
  4951. * test/DefaultPeerListProcessorTest.cc
  4952. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. Changed method signature:
  4954. BtRequestFactory::createRequestMessages,
  4955. BtRequestFactory::createRequestMessagesOnEndGame
  4956. * src/BtRequestFactory.h
  4957. * src/DefaultBtInteractive.cc
  4958. * src/DefaultBtRequestFactory.cc
  4959. * src/DefaultBtRequestFactory.h
  4960. * test/DefaultBtRequestFactoryTest.cc
  4961. * test/MockBtRequestFactory.h
  4962. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Changed method signature:
  4964. PieceStorage::getInFlightPieces
  4965. * src/DefaultBtProgressInfoFile.cc
  4966. * src/DefaultPieceStorage.cc
  4967. * src/DefaultPieceStorage.h
  4968. * src/PieceStorage.h
  4969. * src/UnknownLengthPieceStorage.cc
  4970. * src/UnknownLengthPieceStorage.h
  4971. * test/DefaultBtProgressInfoFileTest.cc
  4972. * test/MockPieceStorage.h
  4973. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4974. Changed method signature:
  4975. PostDownloadHandler::getNextRequestGroups
  4976. Metalink2RequestGroup::generate
  4977. RequestGroup::postDownloadProcessing
  4978. * src/BtPostDownloadHandler.cc
  4979. * src/BtPostDownloadHandler.h
  4980. * src/Metalink2RequestGroup.cc
  4981. * src/Metalink2RequestGroup.h
  4982. * src/MetalinkPostDownloadHandler.cc
  4983. * src/MetalinkPostDownloadHandler.h
  4984. * src/PostDownloadHandler.h
  4985. * src/RequestGroup.cc
  4986. * src/RequestGroup.h
  4987. * src/RequestGroupMan.cc
  4988. * src/main.cc
  4989. * test/BtPostDownloadHandlerTest.cc
  4990. * test/Metalink2RequestGroupTest.cc
  4991. * test/MetalinkPostDownloadHandlerTest.cc
  4992. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4993. Rewritten AccRequestGroup
  4994. * src/main.cc
  4995. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4996. Rewritten.
  4997. * src/TaggedItem.cc (toTagString)
  4998. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4999. Rewritten Accept-Features handling.
  5000. * src/HttpRequestCommand.cc (createHttpRequest)
  5001. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5002. Rewritten accept types handling.
  5003. * HttpRequest.cc (createRequest)
  5004. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5005. Rewritten
  5006. * src/FeatureConfig.cc (featureSummary)
  5007. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5008. Changed method signature:
  5009. PeerStorage::getActivePeers
  5010. * src/DHTPeerAnnounceEntry.cc
  5011. * src/DefaultPeerStorage.cc
  5012. * src/DefaultPeerStorage.h
  5013. * src/PeerStorage.h
  5014. * test/DefaultPeerStorageTest.cc
  5015. * test/MockPeerStorage.h
  5016. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5017. Changed method signature:
  5018. DHTPeerAnnounceStorage::getPeers,
  5019. DHTPeerAnnounceEntry::getPeers
  5020. * src/DHTGetPeersMessage.cc
  5021. * src/DHTPeerAnnounceEntry.cc
  5022. * src/DHTPeerAnnounceEntry.h
  5023. * src/DHTPeerAnnounceStorage.cc
  5024. * src/DHTPeerAnnounceStorage.h
  5025. * test/DHTAnnouncePeerMessageTest.cc
  5026. * test/DHTPeerAnnounceEntryTest.cc
  5027. * test/DHTPeerAnnounceStorageTest.cc
  5028. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5029. Changed method signature:
  5030. NameResolver::resolve
  5031. * src/DHTEntryPointNameResolveCommand.cc
  5032. * src/InitiateConnectionCommand.cc
  5033. * src/NameResolver.cc
  5034. * src/NameResolver.h
  5035. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5036. Changed method signature:
  5037. PieceStorage::getAdvertisedPieceIndexes
  5038. * src/DefaultBtInteractive.cc
  5039. * src/DefaultPieceStorage.cc
  5040. * src/DefaultPieceStorage.h
  5041. * src/PieceStorage.h
  5042. * src/UnknownLengthPieceStorage.h
  5043. * test/MockPieceStorage.h
  5044. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5045. Changed method signature:
  5046. SegmentMan::getInFlightSegment
  5047. * src/AbstractCommand.cc
  5048. * src/SegmentMan.cc
  5049. * src/SegmentMan.h
  5050. * test/SegmentManTest.cc
  5051. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5052. Changed method signature:
  5053. DHTAbstractNodeLookupTask::getNodesFromMessage
  5054. * src/DHTAbstractNodeLookupTask.cc
  5055. * src/DHTAbstractNodeLookupTask.h
  5056. * src/DHTNodeLookupTask.cc
  5057. * src/DHTNodeLookupTask.h
  5058. * src/DHTPeerLookupTask.cc
  5059. * src/DHTPeerLookupTask.h
  5060. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5062. * src/AbstractCommand.cc
  5063. * src/BtCheckIntegrityEntry.cc
  5064. * src/BtCheckIntegrityEntry.h
  5065. * src/BtFileAllocationEntry.cc
  5066. * src/BtFileAllocationEntry.h
  5067. * src/BtSetup.cc
  5068. * src/BtSetup.h
  5069. * src/CheckIntegrityCommand.cc
  5070. * src/CheckIntegrityEntry.h
  5071. * src/ChecksumCheckIntegrityEntry.cc
  5072. * src/ChecksumCheckIntegrityEntry.h
  5073. * src/DHTSetup.cc
  5074. * src/DHTSetup.h
  5075. * src/DownloadEngine.cc
  5076. * src/FileAllocationCommand.cc
  5077. * src/FileAllocationEntry.h
  5078. * src/RequestGroup.cc
  5079. * src/RequestGroup.h
  5080. * src/RequestGroupMan.cc
  5081. * src/RequestGroupMan.h
  5082. * src/StreamCheckIntegrityEntry.cc
  5083. * src/StreamCheckIntegrityEntry.h
  5084. * src/StreamFileAllocationEntry.cc
  5085. * src/StreamFileAllocationEntry.h
  5086. * src/TrackerWatcherCommand.cc
  5087. * src/a2functional.h
  5088. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5089. Changed method signature:
  5090. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5091. DHTBucket::getGoodNodes,
  5092. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5093. * src/BNode.cc
  5094. * src/BNode.h
  5095. * src/DHTAbstractNodeLookupTask.cc
  5096. * src/DHTAutoSaveCommand.cc
  5097. * src/DHTBucket.cc
  5098. * src/DHTBucket.h
  5099. * src/DHTBucketRefreshTask.cc
  5100. * src/DHTFindNodeMessage.cc
  5101. * src/DHTGetPeersMessage.cc
  5102. * src/DHTRoutingTable.cc
  5103. * src/DHTRoutingTable.h
  5104. * test/BNodeTest.cc
  5105. * test/DHTBucketTest.cc
  5106. * test/DHTRoutingTableTest.cc
  5107. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5108. In piece selection functions, Pass std::deque<...> by reference rather
  5109. than returning it.
  5110. * src/BitfieldMan.cc
  5111. * src/BitfieldMan.h
  5112. * src/DefaultBtRequestFactory.cc
  5113. * src/DefaultPieceStorage.cc
  5114. * src/Piece.cc
  5115. * src/Piece.h
  5116. * test/BitfieldManTest.cc
  5117. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5118. Implemented rarest piece first piece selection strategy.
  5119. * src/AbstractBtMessage.cc
  5120. * src/AbstractBtMessage.h
  5121. * src/BitfieldMan.cc
  5122. * src/BitfieldMan.h
  5123. * src/BtBitfieldMessage.cc
  5124. * src/BtHaveAllMessage.cc
  5125. * src/BtHaveMessage.cc
  5126. * src/DefaultPieceStorage.cc
  5127. * src/DefaultPieceStorage.h
  5128. * src/PeerInteractionCommand.cc
  5129. * src/PieceStorage.h
  5130. * src/UnknownLengthPieceStorage.h
  5131. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Rewritten readData and writeData.
  5133. * src/MultiDiskAdaptor.cc
  5134. * src/MultiDiskAdaptor.h
  5135. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5136. Move \n out of the message "Usage: ...".
  5137. * src/version_usage.cc
  5138. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5139. Bump up version number to 0.13.2b.
  5140. * configure.ac
  5141. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5142. Added const qualifier to argument Exception& e.
  5143. * src/Logger.h
  5144. * src/SimpleLogger.cc
  5145. * src/SimpleLogger.h
  5146. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. Pool connection when CWD, SIZE command fails.
  5148. * src/FtpNegotiationCommand.cc
  5149. * src/FtpNegotiationCommand.h
  5150. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5152. * src/HttpResponseCommand.cc
  5153. * src/HttpSkipResponseCommand.cc
  5154. * src/HttpSkipResponseCommand.h
  5155. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Pool connection when a server returns 4xx, 5xx responses.
  5157. * src/HttpNullDownloadCommand.cc
  5158. * src/HttpNullDownloadCommand.h
  5159. * src/HttpResponse.cc
  5160. * src/HttpResponse.h
  5161. * src/HttpResponseCommand.cc
  5162. * src/HttpResponseCommand.h
  5163. * test/HttpResponseTest.cc
  5164. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5165. Print usage when no URL is specifed or bad command-line option is
  5166. specified.
  5167. * src/HelpItemFactory.cc
  5168. * src/help_tags.h
  5169. * src/option_processing.cc
  5170. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5171. Removed duplicate log message.
  5172. * src/AbstractCommand.cc (asyncResolveHostname)
  5173. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5174. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5175. Changed -j option's default value from 5 to 1.
  5176. Added new examples using protocol auto detection feature.
  5177. Removed -T, -M usage where it can be omitted.
  5178. * doc/aria2c.1.txt
  5179. * doc/aria2c.1.html
  5180. * doc/aria2c.1.txt
  5181. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5182. Updated command-line usage text, so that it tells users that they
  5183. can specify any number of torrent files and metalink files in
  5184. command-line.
  5185. * src/version_usage.cc
  5186. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5187. Changed the default value of -j option to 1.
  5188. * src/HelpItemFactory.cc
  5189. * src/option_processing.cc
  5190. * src/usage_text.h
  5191. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5192. Added the ability to reuse connection in FTP and it is enabled by
  5193. default. It can be disabled by --ftp-reuse-connection=false option.
  5194. * src/Command.cc
  5195. * src/DownloadCommand.cc
  5196. * src/FtpDownloadCommand.cc
  5197. * src/FtpDownloadCommand.h
  5198. * src/FtpFinishDownloadCommand.cc
  5199. * src/FtpFinishDownloadCommand.h
  5200. * src/FtpInitiateConnectionCommand.cc
  5201. * src/FtpNegotiationCommand.cc
  5202. * src/FtpNegotiationCommand.h
  5203. * src/HelpItemFactory.cc
  5204. * src/Makefile.am
  5205. * src/Makefile.in
  5206. * src/OptionHandlerFactory.cc
  5207. * src/option_processing.cc
  5208. * src/prefs.h
  5209. * src/usage_text.h
  5210. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. Call Command::transitStatus() before calling Command::execute(),
  5212. so that the status change made in execute() is not cleared.
  5213. * src/DownloadEngine.cc
  5214. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5215. Removed forward declaration of SocketCore class.
  5216. * src/HttpDownloadCommand.h
  5217. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5218. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5219. in InitiateConnectionCommandFactory. They should be set only when
  5220. the protocol is HTTP or HTTPS.
  5221. * src/InitiateConnectionCommandFactory.cc
  5222. * src/RequestGroup.cc
  5223. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5224. Fixed infinite loop in checksum checking.
  5225. * src/IteratableChecksumValidator.cc
  5226. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5227. Set _supportsPersistentConnection to true by default.
  5228. * src/Request.cc
  5229. * src/RequestGroup.cc
  5230. * test/HttpRequestTest.cc
  5231. * test/RequestTest.cc
  5232. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5233. Added timeout to socket pool. The default timeout is 15 seconds,
  5234. which is the same value Apache uses.
  5235. * src/DownloadEngine.cc
  5236. * src/DownloadEngine.h
  5237. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5238. Fixed misuse of multimap::find()
  5239. * src/HttpHeader.cc
  5240. * test/HttpHeaderTest.cc
  5241. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5242. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5243. option.
  5244. The asynchronous DNS is not capable of IPv6 yet.
  5245. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5246. least for HTTP download.
  5247. * src/AbstractCommand.cc
  5248. * src/AbstractCommand.h
  5249. * src/AsyncNameResolver.cc
  5250. * src/AsyncNameResolver.h
  5251. * src/DHTEntryPointNameResolveCommand.cc
  5252. * src/DHTEntryPointNameResolveCommand.h
  5253. * src/DownloadEngine.cc
  5254. * src/DownloadEngine.h
  5255. * src/FtpInitiateConnectionCommand.cc
  5256. * src/FtpInitiateConnectionCommand.h
  5257. * src/HelpItemFactory.cc
  5258. * src/HttpInitiateConnectionCommand.cc
  5259. * src/HttpInitiateConnectionCommand.h
  5260. * src/InitiateConnectionCommand.cc
  5261. * src/InitiateConnectionCommand.h
  5262. * src/Makefile.am
  5263. * src/Makefile.in
  5264. * src/NameResolver.cc
  5265. * src/NameResolver.h
  5266. * src/OptionHandlerFactory.cc
  5267. * src/SocketCore.cc
  5268. * src/SocketCore.h
  5269. * src/Util.cc
  5270. * src/Util.h
  5271. * src/option_processing.cc
  5272. * src/prefs.h
  5273. * src/usage_text.h
  5274. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Updated man page: --quiet, --header were added.
  5276. --metalink-servers and --enable-http-keep-alive option were updated.
  5277. * doc/aria2c.1
  5278. * doc/aria2c.1.html
  5279. * doc/aria2c.1.txt
  5280. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5281. Enable HTTP keep-alive by default.
  5282. * src/HelpItemFactory.cc
  5283. * src/option_processing.cc
  5284. * src/usage_text.h
  5285. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5286. Disable http keep-alive if the remote server is not HTTP/1.1.
  5287. * src/HttpConnection.cc
  5288. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Receive content body of 302 response so that the connection can be
  5290. reused later when http keep-alive is enabled.
  5291. * src/HttpNullDownloadCommand.cc
  5292. * src/HttpNullDownloadCommand.h
  5293. * src/HttpResponseCommand.cc
  5294. * src/HttpResponseCommand.h
  5295. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5296. const SharedHandle<Request> -> const SharedHandle<Request>&
  5297. * src/FtpDowndloadCommand.cc
  5298. * src/FtpDowndloadCommand.h
  5299. * src/HttpDownloadCommand.cc
  5300. * src/HttpDownloadCommand.h
  5301. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5302. Fixed the bug that the control file(.aria2 file) is not renamed
  5303. according to tryAutoFileRenaming().
  5304. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5305. its control file exist, use them and continue download.
  5306. The old implementation didn't take into account of control file's
  5307. existence, so basically you couldn't continue download of renamed file.
  5308. * src/BtProgressInfoFile.h
  5309. * src/DefaultBtProgressInfoFile.cc
  5310. * src/DefaultBtProgressInfoFile.h
  5311. * src/NullProgressInfoFile.h
  5312. * src/RequestGroup.cc
  5313. * test/DefaultBtProgressInfoFileTest.cc
  5314. * test/MockBtProgressInfoFile.h
  5315. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5316. Change the default value of --metalink-servers option from `5' to `1'.
  5317. * src/HelpItemFactory.cc
  5318. * src/option_processing.cc
  5319. * src/usage_text.h
  5320. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5321. Reimplemented transparent metalink using Accept request header.
  5322. * src/HttpRequest.cc
  5323. * src/HttpRequest.h
  5324. * src/HttpRequestCommand.cc
  5325. * src/Metalink2RequestGroup.cc
  5326. * src/RequestGroup.cc
  5327. * src/RequestGroup.h
  5328. * test/HttpRequestTest.cc
  5329. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Bump up version number to 0.13.2a
  5331. * configure.ac
  5332. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5333. Updated configure.ac using the result of autoscan.
  5334. * configure.ac
  5335. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5336. Fixed compilation error without gcrypt/openssl.
  5337. * src/DownloadCommand.cc
  5338. * src/DownloadCommand.h
  5339. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5340. Reorganized version information so that it can be displayed in a
  5341. standard terminal screen without scrolling.
  5342. Removed http, ftp from Configuration section, because they are always
  5343. enabled.
  5344. * src/FeatureConfig.cc
  5345. * src/FeatureConfig.h
  5346. * src/main.cc
  5347. * src/messageDigest.cc
  5348. * src/messageDigest.h
  5349. * src/version_usage.cc
  5350. * test/FeatureConfigTest.cc
  5351. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5352. Masked user ID in log.
  5353. * src/FtpConnection.cc (sendUser)
  5354. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Removed query part from filename in HTTP download. The query part means
  5356. the substring after "?" in URL. Firefox seems do the same thing.
  5357. A query part is sometimes very long and not suitable to filename,
  5358. so I think it is better to remove it from filename.
  5359. * src/HttpRequest.cc
  5360. * src/HttpRequest.h
  5361. * src/Request.cc
  5362. * src/Request.h
  5363. * test/HttpRequestTest.cc
  5364. * test/RequestTest.cc
  5365. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5366. Rewritten Exception class. Throw exception object, not its pointer and
  5367. catch by reference, so that remove problematic delete operator for
  5368. catched exception.
  5369. * src/Exception.cc
  5370. * src/Exception.h
  5371. * test/ExceptionTest.cc
  5372. * src/*: All files throwing/catching exception.
  5373. * test/*: All files throwing/catching exception.
  5374. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5375. Now auto protocol detection is enabled without -Z option.
  5376. But there is a important difference between with/without -Z optoin.
  5377. For example, if you type:
  5378. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5379. then, aria2 interprets there are 3 request groups:
  5380. (1) http://host/file, http://mirror/file <-- multi-source download
  5381. (2) file1.torrent
  5382. (3) file2.metalink
  5383. On the other hand, if you invoke above command with -Z option, it is
  5384. interpreted as 4 request groups:
  5385. (1) http://host/file
  5386. (2) file1.torrent
  5387. (3) file2.metalink
  5388. (4) http://mirror/file
  5389. I think usually user don't mix multi-source URLs and torrent files, so
  5390. there is no big problem here.
  5391. * src/main.cc
  5392. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5393. Fixed the bug that causes segmentaion fault when reading XML containing
  5394. unescapsed character like '&'.
  5395. Also a modification was made which avoids adding unnecessary
  5396. characters stack and appending unused string.
  5397. * src/ExpatMetalinkProcessor.cc
  5398. * src/FileMetalinkParserState.h
  5399. * src/FilesMetalinkParserState.h
  5400. * src/FinMetalinkParserState.h
  5401. * src/HashMetalinkParserState.h
  5402. * src/InitialMetalinkParserState.h
  5403. * src/LanguageMetalinkParserState.h
  5404. * src/MetalinkMetalinkParserState.h
  5405. * src/MetalinkParserState.h
  5406. * src/MetalinkParserStateMachine.cc
  5407. * src/MetalinkParserStateMachine.h
  5408. * src/OSMetalinkParserState.h
  5409. * src/PieceHashMetalinkParserState.h
  5410. * src/PiecesMetalinkParserState.h
  5411. * src/ResourcesMetalinkParserState.h
  5412. * src/SizeMetalinkParserState.h
  5413. * src/SkipTagMetalinkParserState.h
  5414. * src/URLMetalinkParserState.h
  5415. * src/VerificationMetalinkParserState.h
  5416. * src/VersionMetalinkParserState.h
  5417. * src/XML2SAXMetalinkProcessor.cc
  5418. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5419. Added StringFormat class, which internally calls vasprintf.
  5420. operator<< is defined for this class, so it can be used with iostream
  5421. classes nicely. SimpleLogger and following functions are rewritten
  5422. using StringFormat class.
  5423. Besides, now Logger class's methods are non-const, many classes
  5424. that has a const Logger* as a member variable are modified to remove
  5425. const qualifier from the variable declaration.
  5426. * src/HelpItemFactory.cc
  5427. * src/Request.cc
  5428. * src/SimpleLogger.cc
  5429. * src/StringFormat.cc
  5430. * src/StringFormat.h
  5431. * src/Util.cc
  5432. * src/option_processing.cc
  5433. * src/version_usage.cc
  5434. * test/StringFormatTest.cc
  5435. * src/*.h: The classes that has const Logger* as a member variable.
  5436. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5437. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5438. failed. Also fixed memory link when exception is thrown there.
  5439. * src/main.cc (AccRequestGroup)
  5440. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Added build-in "Accept-Features" support. For now only "metalink" is
  5442. used in this header field.
  5443. This "metalink" value is removed from the list when connecting URLs
  5444. fed by metalink file to avoid loop in "transparent" metlaink.
  5445. * src/HttpRequest.cc
  5446. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5447. header is also held in this variable. Also renamed setUserHeaders as
  5448. addHeader and it was rewritten to add header not just to clear the old
  5449. value.
  5450. * src/HttpRequestCommand.cc
  5451. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5452. from "Accept-Features" list.
  5453. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5454. default.
  5455. * src/RequestGroup.h
  5456. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5457. * src/a2functional.h: Included <string> because Concat class depends on
  5458. it.
  5459. * test/HttpRequestTest.cc
  5460. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5461. Added comment
  5462. * src/RequestGroup.cc (createNextCommand)
  5463. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5464. Capitalized METHOD_GET and METHOD_HEAD
  5465. * src/Request.cc
  5466. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. Added getDownloadResults() method
  5468. * src/RequestGroupMan.cc
  5469. * src/RequestGroupMan.h
  5470. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5471. Fixed the bug that aria2 exits when commands is empty() but
  5472. _routineCommands are not.
  5473. * src/DownloadEngine.cc
  5474. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5475. Use the default value pulled from Option object in HelpItemFactory.
  5476. except options whose defualt value is embedded in a usage text.
  5477. * src/HelpItemFactory.cc
  5478. * src/HelpItemFactory.h
  5479. * src/option_processing.cc
  5480. * src/version_usage.cc
  5481. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5482. Added --quiet option to make aria2 quiet (no console output).
  5483. --quiet option is tagged with ADVANCED.
  5484. * src/HelpItemFactory.cc
  5485. * src/LogFactory.cc
  5486. * src/LogFactory.h
  5487. * src/MultiUrlRequestInfo.cc
  5488. * src/MultiUrlRequestInfo.h
  5489. * src/NullStatCalc.h: New class. This class prints nothing.
  5490. * src/OptionHandlerFactory.cc
  5491. * src/main.cc
  5492. * src/option_processing.cc
  5493. * src/prefs.h
  5494. * src/usage_text.h
  5495. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5497. * src/HelpItemFactory.cc (createHelpItems):
  5498. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5499. Fixed compilation error in ExpatMetalinkProcessor.cc
  5500. * src/ExpatMetalinkProcessor.cc
  5501. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5502. Reuse socket if the origin server supports HTTP keep-alive and
  5503. --enable-http-keep-alive or --enable-http-pipelining is given.
  5504. The current implementation doesn't reuse the connections established
  5505. against proxy server.
  5506. * src/AbstractCommand.cc
  5507. * src/DownloadEngine.cc
  5508. * src/DownloadEngine.h
  5509. * src/HttpDownloadCommand.cc
  5510. * src/HttpInitiateConnectionCommand.cc
  5511. * src/HttpResponseCommand.cc
  5512. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5513. Rewritten HTTP keep-alive and pipelining routine.
  5514. * src/AbstractCommand.cc
  5515. * src/HttpConnection.cc
  5516. * src/HttpDownloadCommand.cc
  5517. * src/HttpRequest.cc
  5518. * src/HttpRequestCommand.cc
  5519. * src/HttpResponseCommand.cc
  5520. * src/Request.cc
  5521. * src/Request.h
  5522. * src/RequestGroup.cc
  5523. * test/HttpRequestTest.cc
  5524. * test/HttpResponseTest.cc
  5525. * test/RequestTest.cc
  5526. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Added missing setUserHeaders call
  5528. * src/HttpRequestCommand.cc
  5529. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5530. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5531. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5532. waste of time because it is more likey false.
  5533. * src/FileAllocationDispatcherCommand.cc (execute)
  5534. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5535. Now HTTP status and version are a member variable of HttpHeader.
  5536. HTTP status is processed as a string, not integer.
  5537. * src/AbstractProxyResponseCommand.cc
  5538. * src/HttpConnection.cc
  5539. * src/HttpHeader.cc
  5540. * src/HttpHeader.h
  5541. * src/HttpHeaderProcessor.cc
  5542. * src/HttpHeaderProcessor.h
  5543. * src/HttpResponse.cc
  5544. * src/HttpResponse.h
  5545. * test/HttpHeaderProcessorTest.cc
  5546. * test/HttpResponseTest.cc
  5547. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5548. Added --header option. You can specify any number of additional HTTP headers
  5549. like:
  5550. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5551. Unlike other commad-line option, you can use --header option multiple times.
  5552. * src/HelpItemFactory.cc
  5553. * src/HttpRequest.{cc, h}
  5554. * src/HttpRequestCommand.cc
  5555. * src/OptionHandlerFactory.cc
  5556. * src/OptionHandlerImpl.h
  5557. * src/option_processing.cc
  5558. * src/prefs.h
  5559. * src/usage_text.h
  5560. * test/HttpRequestTest.cc (testUserHeaders)
  5561. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5562. Eliminates the time lag between sequential downloads and commands in
  5563. the same RequestGroup.
  5564. In old implementation, aria2 occasionally waits 1 seconds before
  5565. executing next command or RequestGroup.
  5566. This is really a waste of time, and new implementation eliminates
  5567. this unnecessary time lag.
  5568. * src/AbstractCommand.cc
  5569. * src/AutoSaveCommand.cc
  5570. * src/CheckIntegrityCommand.cc
  5571. * src/Command.{cc, h}
  5572. * src/DownloadEngine.{cc, h}
  5573. * src/DownloadEngineFactory.cc
  5574. * src/FileAllocationCommand.cc
  5575. * src/FileAllocationDispatcherCommand.cc
  5576. * src/FillRequestGroupCommand.cc
  5577. * src/FtpInitiateConnectionCommand.cc
  5578. * src/HaveEraseCommand.cc
  5579. * src/HttpInitiateConnectionCommand.cc
  5580. * src/HttpResponseCommand.cc
  5581. * src/RealtimeCommand.cc
  5582. * src/RequestGroup.cc
  5583. * src/RequestGroupMan.cc
  5584. * src/StreamFileAllocationEntry.cc
  5585. * src/TimeBasedCommand.{cc, h}
  5586. * src/TimedHaltCommand.cc
  5587. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5589. keyword explicit and SharedHandle's default constructor initializes
  5590. its internal obj to null, old implementation initializes it using
  5591. obj's default constructor.
  5592. To assign null, write SharedHandle<T> x(...); x.reset();
  5593. TODO: test/SharedHandleTest.cc needs more tests.
  5594. * src/SharedHandle.h
  5595. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5596. Fixed type in man page.
  5597. * doc/aria2c.1.txt
  5598. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5599. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5600. * src/SimpleLogger.{cc, h}
  5601. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5602. Implemented auto protocol detection.
  5603. Now you can do:
  5604. aria2c -Z http://host/file file1.torrent file2.metalink
  5605. (Note: -Z option is required for auto protcol detection.)
  5606. Then aria2c downloads 3 files simultaneously:
  5607. 1. http://host/file
  5608. 2. file1.torrent <-- read local torrent file
  5609. 3. file2.metalink <-- read local Metalink file.
  5610. Same thing goes with -i option. Assume your uris.txt contans:
  5611. http://host/file
  5612. file1.torrent
  5613. file2.metalink
  5614. Then you can do: aria2c -i uris.txt
  5615. (Note: -Z option is not needed if -i option is given.)
  5616. * src/main.cc
  5617. * src/ProtocolDetector.{cc, h}
  5618. * test/ProtocolDetectorTest.cc
  5619. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5621. installed
  5622. * src/ARC4Encryptor.h
  5623. * src/ARC4Decryptor.h
  5624. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5625. Renamed argument from 'errno' to 'err', since errno is confused with
  5626. errno defined in errno.h.
  5627. * src/LibgcryptARC4Decryptor.h
  5628. * src/LibgcryptARC4Context.h
  5629. * src/LibgcryptDHKeyExchange.h
  5630. * src/LibgcryptARC4Encryptor.h
  5631. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5632. Rewritten choking algorithm.
  5633. * src/PeerChokeCommand.{cc, h}
  5634. * src/BtInterestedMessage.cc
  5635. * src/PeerSessionResource.{cc, h}
  5636. * src/DefaultPeerStorage.{cc, h}
  5637. * src/BtNotInterestedMessage.cc
  5638. * src/DefaultBtMessageDispatcher.{cc, h}
  5639. * src/BtMessageDispatcher.h
  5640. * src/Peer.{cc, h}
  5641. * src/BtLeecherStateChoke.{cc, h}
  5642. * src/BtSetup.cc
  5643. * src/BtSeederStateChoke.{cc, h}
  5644. * src/PeerStorage.h
  5645. * test/MockPeerStorage.h
  5646. * test/MockBtMessageDispatcher.h
  5647. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Fixed compilation error on x84-64 platform.
  5649. * src/AuthConfig.cc: Included ostream.
  5650. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. Rewritten getBasename() and getDirname(), without standard library
  5652. basename(), dirname().
  5653. * src/File.cc
  5654. * test/FileTest.cc
  5655. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5656. Added Simplified Chinese translation. Also updated the following
  5657. translations: Polish, Dutch, German. Great thanks to all translators.
  5658. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Suppress content-range error when 'Content-Range' response header
  5660. doesn't contains bytes-unit specifier 'bytes'
  5661. * src/HttpHeader.cc (getRange)
  5662. * test/HttpHeaderTest.cc
  5663. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5664. Fixed compilation error with g++-4.3
  5665. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Added missing include files for MinGW
  5667. * test/HttpHeaderProcessorTest.cc
  5668. * test/DHTRoutingTableSerializerTest.cc
  5669. * test/DHTRoutingTableDeserializerTest.cc
  5670. * test/UriListParserTest.cc
  5671. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5672. Now download line is printed nicely with no garbage at the end of
  5673. line. I use ioctl to get the columns of terminal.
  5674. If stdout is redirected to another device, instead of carriage return,
  5675. end of line '\n' character is used. This is feature request#1909659
  5676. * src/ConsoleStatCalc.cc (calculateStat)
  5677. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Included a2time.h
  5679. * src/DHTMessageDispatcher.h
  5680. * src/DHTMessageEntry.h
  5681. * src/DHTReplaceNodeTask.h
  5682. * src/DHTMessageTracker.h
  5683. * src/Util.h
  5684. * src/CookieBox.h
  5685. * src/SocketCore.h
  5686. * src/DefaultBtMessageDispatcher.h
  5687. * src/SocketCore.cc
  5688. * src/Util.cc
  5689. * src/DHTPingTask.h
  5690. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Fixed high memory footprint when DHT is enabled.
  5692. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  5693. queued than it is processed and the queue is getting longer. As a
  5694. consequence, momory usage is increased.
  5695. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  5696. replacement cache in DHTBucket which is described in Kademlia paper.
  5697. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  5698. DHTReplaceNodeTask.
  5699. * src/DHTBucket.{h, cc}
  5700. (cacheNode): New function.
  5701. (getCachedNodes): New function.
  5702. (dropNode): Push back cached node to _nodes.
  5703. * test/DHTBucketTest.cc
  5704. (testCacheNode): New test
  5705. (testDropNode): New test
  5706. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5707. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  5708. the unused 4KB memory when ssl is not used.
  5709. * src/SocketCore.cc
  5710. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5711. Added summary log for peer announce storage.
  5712. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  5713. Removed cast
  5714. * src/DefaultPeerStorage.cc (addPeer)
  5715. Log exception message
  5716. * src/DHTMessageTracker.cc (handleTimeout)
  5717. Fixed casting
  5718. * test/HttpRequestTest.cc
  5719. * test/MetalinkProcessorTest.cc
  5720. * test/PieceTest.cc
  5721. * test/MetalinkEntryTest.cc
  5722. * test/SequenceTest.cc
  5723. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5724. * src/ParameterizedStringParser.cc (createLoop):
  5725. Removed unused variable sstep.
  5726. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5727. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5728. * src/Util.{h, cc}
  5729. (parseUInt): New function.
  5730. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5731. The actual range is uint32_t.
  5732. * test/UtilTest.cc
  5733. * src/ParameterizedStringParser.cc:
  5734. Use Util::parseUInt() for loop variables.
  5735. * test/ParameterizedStringParserTest.cc
  5736. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5737. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5738. Rewritten the functions for binding port.
  5739. * src/DHTConnectionImpl.{h, cc}
  5740. * src/PeerListenCommand.{h, cc}
  5741. * src/DHTSetup.cc
  5742. * src/BtSetup.cc
  5743. * test/DHTConnectionImplTest.cc
  5744. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5745. type cleanup for allmost all remaining files.
  5746. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Type clarification
  5748. * src/PeerSessionResource.{h, cc}
  5749. * src/DefaultPieceStorage.{h, cc}
  5750. * src/Peer.{h, cc}
  5751. * test/PeerSessionResourceTest.cc
  5752. Use div function
  5753. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5754. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5755. Type clarification
  5756. * src/DefaultPeerStorage.{h, cc}
  5757. * test/DefaultPeerStorageTest.cc
  5758. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5759. Type clarification: size_t for length or size, uint64_t for file
  5760. length, off_t for file offset.
  5761. * src/DefaultBtProgressInfoFile.cc
  5762. * src/DefaultBtContext.{h, cc}
  5763. * src/DefaultBtInteractive.cc
  5764. * src/DownloadCommand.{h, cc}
  5765. * src/IteratableChunkChecksumValidator.{h, cc}
  5766. * src/SegmentMan.{h, cc}
  5767. * src/SingleFileDownloadContext.{h, cc}
  5768. * src/IteratableChecksumValidator.{h, cc}
  5769. * src/BtContext.h
  5770. * src/IteratableValidator.h
  5771. * src/DownloadContext.h
  5772. * test/SingleFileDownloadContextTest.cc
  5773. * test/DefaultBtContextTest.cc
  5774. * test/MockBtContext.h
  5775. * test/Metalink2RequestGroupTest.cc
  5776. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5777. Type clarification: size_t for length or size, uint64_t for file
  5778. length, off_t for file offset.
  5779. * src/PiecedSegment.cc
  5780. * src/GrowSegment.h
  5781. * src/DefaultBtRequestFactory.h
  5782. * src/DefaultBtProgressInfoFile.cc
  5783. * src/UnknownLengthPieceStorage.h
  5784. * src/DefaultPieceStorage.cc
  5785. * src/UnknownLengthPieceStorage.cc
  5786. * src/DefaultBtInteractive.cc
  5787. * src/GrowSegment.cc
  5788. * src/BitfieldMan.h
  5789. * src/DownloadCommand.cc
  5790. * src/BtRequestFactory.h
  5791. * src/PiecedSegment.h
  5792. * src/DefaultPieceStorage.h
  5793. * src/Piece.cc
  5794. * src/DefaultBtRequestFactory.cc
  5795. * src/PieceStorage.h
  5796. * src/Segment.h
  5797. * src/Piece.h
  5798. * src/BitfieldMan.cc
  5799. * src/Util.cc
  5800. * test/DefaultBtProgressInfoFileTest.cc
  5801. * test/DefaultPieceStorageTest.cc
  5802. * test/MockPieceStorage.h
  5803. * test/BtRequestMessageTest.cc
  5804. * test/DefaultBtMessageDispatcherTest.cc
  5805. * test/BitfieldManTest.cc
  5806. * test/GrowSegmentTest.cc
  5807. * test/PieceTest.cc
  5808. * test/SegmentTest.cc
  5809. * test/SegmentManTest.cc
  5810. * test/DefaultBtRequestFactoryTest.cc
  5811. * test/MockBtRequestFactory.h
  5812. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5813. Fixed compilation error with --disable-nls
  5814. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5815. in gettext.h causes the problem.
  5816. * src/common.h
  5817. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5818. Removed subPiece related functions.
  5819. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5820. * src/DefaultPieceStorage.{h, cc}
  5821. * test/PieceTest.cc
  5822. * test/DefaultPieceStorageTest.cc
  5823. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Use unsigned char for data store.
  5825. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5826. Bump up version number to 0.13.0+1
  5827. * configure.ac
  5828. * Release 0.13.0+1
  5829. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Changed inactive connection timeout to 120.
  5831. To accept more mulually interested peers, disconnect peer when there
  5832. is no interest between us after certain time passed.
  5833. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5834. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5836. when compiled with async DNS support.
  5837. * src/DownloadEngine.cc
  5838. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5839. value '10' will be a little bit short when some DNS servers are
  5840. offline and several DNS servers are tried. It should be configured
  5841. by command-line option.
  5842. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5843. Merged Ross's mingw patch.
  5844. * src/DHTRoutingTableDeserializer.cc
  5845. * src/DHTRoutingTableSerializer.cc
  5846. * src/Platform.{h, cc}
  5847. * src/timegm.h
  5848. * src/gettimeofday.h
  5849. * src/getaddrinfo.h
  5850. * src/SocketCore.h
  5851. * src/common.h
  5852. * src/inet_aton.h
  5853. * src/DownloadEngine.h
  5854. * src/gai_strerror.h
  5855. * src/a2netcompat.h
  5856. * configure.ac
  5857. * configure
  5858. * aclocal.m4
  5859. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5860. Included missing iostream.
  5861. * test/AllTest.cc
  5862. * test/BtDependencyTest.cc
  5863. * test/BtExtendedMessageTest.cc
  5864. * test/DHTConnectionImplTest.cc
  5865. * test/DHTMessageFactoryImplTest.cc
  5866. * test/DHTMessageTrackerEntryTest.cc
  5867. * test/DHTNodeTest.cc
  5868. * test/DHTRoutingTableSerializerTest.cc
  5869. * test/DefaultBtAnnounceTest.cc
  5870. * test/DefaultBtContextTest.cc
  5871. * test/DefaultBtMessageFactoryTest.cc
  5872. * test/DefaultExtensionMessageFactoryTest.cc
  5873. * test/HandshakeExtensionMessageTest.cc
  5874. * test/HttpResponseTest.cc
  5875. * test/MetalinkProcessorTest.cc
  5876. * test/MultiFileAllocationIteratorTest.cc
  5877. * test/SocketCoreTest.cc
  5878. * test/UTPexExtensionMessageTest.cc
  5879. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. Reorganized includes.
  5881. * src/NameResolver.cc
  5882. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5883. Fixed compilation error without ares/c-ares
  5884. * src/NameResolver.h:
  5885. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Added a test for large file.
  5887. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5888. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5889. Fixed the bug that file size is ignored if size > INT32_MAX
  5890. * src/SizeMetalinkParserState.cc (endElement):
  5891. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5892. Bump up version number to 0.13.0
  5893. * configure.ac
  5894. * Release 0.13.0
  5895. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5896. Updated Makfefile.am to make 'make dist' work.
  5897. Now packaged filename is aria2c-VERSION.tar.bz2.
  5898. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5899. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5900. Large file support is now configured by configure script.
  5901. * configure.ac
  5902. Removed unsused source files
  5903. * src/
  5904. * test/
  5905. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5906. Peer.h and BtContext.h respectively.
  5907. * src/Peer.h
  5908. * src/BtContext.h
  5909. Updated translations.
  5910. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  5911. translations. Great thanks to all translators!;)
  5912. * po/*.{po, gmo}
  5913. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5914. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  5915. statically declared sha1 MessageDigestContext.
  5916. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  5917. initialization of short-lived MessageDigestContext.
  5918. * src/MessageDigestHelper.{h, cc}
  5919. * src/main.cc
  5920. Now DownloadCommand has a reference to MessageDigestContext to avoid
  5921. the initialization of MessageDigestContext every time in validating
  5922. chunk checksum.
  5923. * src/DownloadCommand.{h, cc}
  5924. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5925. Add a file descriptor which connected to fast peer(latency<1500) to
  5926. select(). This change reduced CPU load.
  5927. * src/PeerInteractionCommand.cc
  5928. * src/DefaultBtInteractive.{h, cc}
  5929. * src/BtInteractive.h
  5930. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5931. Fixed the previous insufficient fix for possible busy loop.
  5932. * src/MSEHandshake.cc (identifyHandshakeType)
  5933. Removed unused functions.
  5934. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  5935. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. Fixed possible busy loop if first 20 bytes are not received for a few
  5937. minutes.
  5938. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  5939. * src/ReceiverMSEHandshakeCommand.cc
  5940. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5941. Fixed compilation error
  5942. * src/ExpatMetalinkProcessor.cc
  5943. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  5945. * src/DHTBucket.cc
  5946. Removed unnecessary cast.
  5947. * src/HandshakeExtensionMessage.cc
  5948. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5949. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  5950. is missing.
  5951. * src/OptionHandlerFactory.cc
  5952. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5953. Fixed the bug that HAVE message is not sent for a piece they are
  5954. downloaded fom http/ftp server before any BitTorrent handshake is done
  5955. with peers.
  5956. * src/DefaultBtInteractive.cc
  5957. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5958. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  5959. * src/Makefile.am
  5960. * src/Makefile.in
  5961. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5962. Updated README. Added html version of README and man page.
  5963. * README
  5964. * README.html
  5965. * readme2html: Shell script to generate README.html from README using
  5966. asciidoc.
  5967. * doc/aria2c.1.html
  5968. * doc/makeman: Added the line to generate aria2c.1.html
  5969. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Fixed offset calculation.
  5971. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5972. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Rewritten itos and uitos using template. llitos and ullitos are
  5974. replaced with itos and uitos respectively.
  5975. * src/Util.{h, cc}
  5976. * test/UtilTest.cc
  5977. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5978. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5979. of the number of bytes required for storing public key and shared
  5980. secret.
  5981. * src/LibgcryptDHKeyExchange.h
  5982. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5983. * src/MSEHandshake.cc
  5984. * test/DHKeyExchangeTest.cc
  5985. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5986. Removed since they are not used.
  5987. * src/Xml2MetalinkProcessor.{h, cc}
  5988. * src/Socket.cc
  5989. * src/SegmentSplitter.{h, cc}
  5990. * test/Xml2MetalinkProcessorTest.cc
  5991. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5992. Fixed the bug that prevents aria2 from stopping other than by pressing
  5993. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5994. option. aria2 doesn't stop even after --seed-time is satisfied and
  5995. continues to output blank lines in the console.
  5996. * src/ReceiverMSEHandshakeCommand.cc
  5997. * src/PeerReceiveHandshakeCommand.cc
  5998. * src/PeerListenCommand.cc
  5999. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. Bump up version number to 0.13.0rc
  6001. * configure.ac
  6002. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6003. Updated man page and some usage text.
  6004. * doc/aria2c.1.txt
  6005. * src/usage_text.h
  6006. * po/*.{po, gmo}
  6007. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6008. Updated translations. Added Finnish and Hebrew translations.
  6009. Great thanks to all translators!
  6010. * po/*.{po, gmo}
  6011. * po/LINGUAS
  6012. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6013. Log more detailed information about each message.
  6014. * src/DHTQueryMessage.{h, cc}
  6015. * src/DHTGetPeersMessage.{h, cc}
  6016. * src/DHTFindNodeReplyMessage.{h, cc}
  6017. * src/DHTGetPeersReplyMessage.{h, cc}
  6018. * src/DHTAnnouncePeerMessage.{h, cc}
  6019. * src/DHTResponseMessage.{h, cc}
  6020. * src/DHTFindNodeMessage.{h, cc}
  6021. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6022. Use constants defined in prefs.h
  6023. * src/option_processing.cc
  6024. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6025. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6026. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6027. Make room for future enchancements for IPv6 addresses.
  6028. Bump up version number of dht.dat file format to 2.
  6029. Not compatible with previous version.
  6030. * src/DHTRoutingTableSerializer.cc
  6031. * src/DHTRoutingTableDeserializer.cc
  6032. * test/DHTRoutingTableSerializerTest.cc
  6033. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6034. Added handling for the return values from
  6035. PeerMessageUtil::createcompact().
  6036. * src/DefaultBtContext.cc (computeFastSet):
  6037. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6038. Fixed abort when peer's ip address is IPv4-mapped address.
  6039. * src/DefaultBtContext.cc (computeFastSet)
  6040. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6041. cannot handle IPv4-mapped addresses.
  6042. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6043. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6044. Proper return value handling for OpenSSL functions.
  6045. * src/LibsslDHKeyExchange.h
  6046. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Random bytes generation using libgcrypt and OpenSSL.
  6048. * src/DHTUtil.{h, cc}
  6049. * test/DHTUtilTest.cc
  6050. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6051. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6052. received.
  6053. * src/DHTMessageReceiver.cc (receiveMessage)
  6054. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6055. Fixed the bug that a return code is always 0. BUG#1897704
  6056. If error occurred during the download or there exist unfinished
  6057. downloads, aria2 returns with code 1.
  6058. * src/RequestGroupMan.{h, cc}
  6059. * src/MultiUrlRequestInfo.{h, cc}
  6060. * src/main.cc
  6061. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. IPv6 support for SocketCore class.
  6063. TODO: In SocketCore::establishConnection(), this is insufficient to
  6064. determin the failure of connect() here because the socket is
  6065. non-blocking state. The next addresses should be tried after select().
  6066. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6067. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6068. instead which address family independent.
  6069. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6070. information in a compact peer format which is for IPv4 only.
  6071. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6072. this is a spec of BitTorrent protocol.
  6073. * src/SocketCore.{h, cc}
  6074. * src/PeerMessageUtil.cc
  6075. * test/SocketCoreTest.cc
  6076. * test/PeerMessageUtilTest.cc
  6077. * test/DHTConnectionImplTest.cc
  6078. Handle IPv4-mapped addresses.
  6079. * src/DHTNode.cc: Now identity is determined by node id.
  6080. * src/DHTMessageTrackerEntry.cc
  6081. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6082. should handle it.
  6083. * src/DHTRoutingTableDeserializer.cc
  6084. * src/DHTMessageFactoryImpl.cc
  6085. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Change the unit of --stop option from a minute to a second.
  6087. * src/usage_text.h
  6088. * src/DownloadEngineFactory.cc
  6089. * src/OptionHandlerFactory.cc
  6090. * src/message.h
  6091. * src/TimedHaltCommand.cc
  6092. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6093. Make listening socket non-block mode.
  6094. * src/FtpConnection.cc
  6095. * src/FtpNegotiationCommand.{h, cc}
  6096. * src/PeerListenCommand.cc
  6097. Fixed the bug that cause slow ftp negotiation.
  6098. * src/FtpNegotiationCommand.{h, cc}
  6099. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6100. Added basic tag to --enable-dht, --dht-listen-port option.
  6101. * src/HelpItemFactory.cc (createHelpItems)
  6102. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6103. Updated text.
  6104. * src/usage_text.h
  6105. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6106. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6107. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6108. Determin _threadtholdSpeed in each constructor for
  6109. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6110. * src/ActivePeerConnectionCommand.{h, cc}
  6111. * src/PeerReceiveHandshakeCommand.{h, cc}
  6112. * src/BtSetup.cc
  6113. * src/BtConstants.h
  6114. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. Added --bt-min-crypto-level and --bt-require-crypto options.
  6116. * src/OptionHandlerFactory.cc
  6117. * src/MSEHandshake.cc
  6118. * src/HelpItemFactory.cc
  6119. * src/option_processing.cc
  6120. * src/ReceiverMSEHandshakeCommand.cc
  6121. * src/prefs.h
  6122. * src/DefaultBtAnnounce.cc
  6123. * src/InitiatorMSEHandshakeCommand.cc
  6124. * src/usage_text.h
  6125. * test/MSEHandshakeTest.cc
  6126. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Bump version number to 0.13.0b
  6128. * configure.ac
  6129. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6130. Updated doc.
  6131. * src/MessageDigestHelper.h:
  6132. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6133. Use raw message digest as a token instead of its hexadecimal
  6134. representation.
  6135. * src/DHTTokenTracker.cc (generateToken)
  6136. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6137. Added Message Stream Encryption(MSE) support.
  6138. Currently, aria2 accepts incoming connections with Obfuscation Header
  6139. and legacy BitTorrent Header and establishes connections with
  6140. Obfuscation Header first and if failed then retry with legacy
  6141. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6142. choose ARC4. The new option to change the default behavior is planned.
  6143. For tracker extension, "supportcrypto=1" is added statically.
  6144. * src/PeerInitiateConnectionCommand.{h, cc}
  6145. * src/PeerConnection.{h, cc}
  6146. * src/HandleRegistry.h
  6147. * src/SocketCore.h
  6148. * src/PeerReceiveHandshakeCommand.{h, cc}
  6149. * src/BtRegistry.{h, cc}
  6150. * src/PeerListenCommand.cc
  6151. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6152. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6153. * src/MSEHandshake.{h, cc}
  6154. * src/ARC4Encryptor.h
  6155. * src/ARC4Decryptor.h
  6156. * src/LibgcryptARC4Encryptor.h
  6157. * src/LibgcryptARC4Decryptor.h
  6158. * src/LibgcryptARC4Context.h
  6159. * src/LibsslARC4Encryptor.h
  6160. * src/LibsslARC4Decryptor.h
  6161. * src/LibsslARC4Context.h
  6162. * src/DHKeyExchange.h
  6163. * src/LibgcryptDHKeyExchange.h
  6164. * src/LibsslDHKeyExchange.h
  6165. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6166. * test/DefaultBtAnnounceTest.cc
  6167. * test/ARC4Test.cc
  6168. * test/DHKeyExchangeTest.cc
  6169. Removed prepareForRetry() because it is not used.
  6170. * src/PeerAbstractCommand.{h, cc}
  6171. * src/PeerInteractionCommand.{h, cc}
  6172. * src/PeerInitiateConnectionCommand.{h, cc}
  6173. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Added the ability to load nodes from torrent file. These nodes are
  6175. added to the routing table when downloading that torrent.
  6176. * src/BtContext.h
  6177. * src/DefaultBtContext.{h, cc}
  6178. * src/DHTSetup.cc
  6179. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6180. hostname and port pair, and resolves all of them.
  6181. * src/NameResolver.{h, cc}: Added reset().
  6182. * src/RequestGroup.cc
  6183. * test/DefaultBtContextTest.cc
  6184. * test/MockBtContext.h
  6185. Removed assert() from DefaultBtContext and throw exception instead.
  6186. * src/DefaultBtContext.cc
  6187. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6188. Fixed segmentation fault bug when exiting if dht is disabled.
  6189. * src/RequestGroup.cc
  6190. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6191. Fixed typo in log message and define the message in message.h
  6192. * src/TimedHaltCommand.cc
  6193. * src/message.h
  6194. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. Included RecoverableException.h to fix compilation error.
  6196. * test/DHTMessageFactoryImplTest.cc
  6197. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6198. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6199. * test/DHTPingMessageTest.cc
  6200. * test/DHTGetPeersMessageTest.cc
  6201. * test/DHTFindNodeMessageTest.cc
  6202. * test/DHTAnnouncePeerMessageTest.cc
  6203. * test/MockDHTMessage.h
  6204. * test/MockDHTMessageFactory.h
  6205. * test/MockDHTMessageDispatcher.h: New class.
  6206. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6208. virtual.
  6209. * src/DHTMessageDispatcher.h
  6210. * src/DHTMessageDispatcherImpl.{h, cc}
  6211. * src/DHTSetup.cc
  6212. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Adding handling of DHT error message. Just log error message and
  6214. throw exception.
  6215. * src/DHTMessageFactoryImpl.cc
  6216. * test/DHTMessageFactoryImplTest.cc
  6217. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Added handling of dynamic cast failure.
  6219. * src/DHTNodeLookupTask.cc
  6220. * src/DHTPeerLookupTask.cc
  6221. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6222. Added the ability to stop aria2 itself when given time has passed
  6223. from start. Use --stop option to specify time in minutes.
  6224. When 0 is given, this feature is disabled.
  6225. * src/OptionHandlerFactory.cc
  6226. * src/TimeBasedCommand.h: Make _interval protected scope.
  6227. * src/HelpItemFactory.cc
  6228. * src/option_processing.cc
  6229. * src/prefs.h
  6230. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6231. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6232. Without this modification, the result list shows "ERR" when aria2 is
  6233. stopped by --stop option. It should be "INPR".
  6234. * src/DownloadEngine.{h, cc}
  6235. * src/DownloadEngineFactory.cc
  6236. * src/usage_text.h
  6237. * src/TimedHaltCommand.{h, cc}: New class.
  6238. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6239. Bootstrap through node added by port message.
  6240. Currently bootstrap is executed if the number of buckets in routing
  6241. table is 1.
  6242. * src/BtPortMessage.{h, cc}
  6243. * src/DefaultBtMessageFactory.{h, cc}
  6244. * src/PeerInteractionCommand.cc
  6245. * test/BtPortMessageTest.cc
  6246. * test/MockDHTTask.h
  6247. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6248. Extract the Peer class's member variables, which are only needed after
  6249. PeerInteractionCommand, into PeerSessionResource class.
  6250. This class is instantiated in PeerInteractionCommand class's ctor and
  6251. released in its dtor.
  6252. This will make Peer class lightweight and uses less memory for peers
  6253. which are not connected and wait in the queue.
  6254. * src/PeerChokeCommand.cc
  6255. * src/PeerSessionResource.{h, cc}
  6256. * src/PeerInteractionCommand.cc
  6257. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6258. * src/DefaultBtInteractive.cc
  6259. * src/BtPieceMessage.cc
  6260. * src/BtInterestedMessage.cc
  6261. * src/BtUnchokeMessage.cc
  6262. * src/DefaultPeerStorage.{h, cc}
  6263. * src/PeerInitiateConnectionCommand.cc
  6264. * src/ActivePeerConnectionCommand.cc
  6265. * src/BtNotInterestedMessage.cc
  6266. * src/DefaultBtMessageDispatcher.cc
  6267. * src/BtChokeMessage.cc
  6268. * src/BtRequestMessage.cc
  6269. * src/Peer.{h, cc}
  6270. * src/BtRegistry.h
  6271. * src/TrackerWatcherCommand.cc
  6272. * src/PeerReceiveHandshakeCommand.cc
  6273. * test/BtExtendedMessageTest.cc
  6274. * test/BtAllowedFastMessageTest.cc
  6275. * test/BtCancelMessageTest.cc
  6276. * test/DefaultPieceStorageTest.cc
  6277. * test/BtBitfieldMessageTest.cc
  6278. * test/BtHaveMessageTest.cc
  6279. * test/BtNotInterestedMessageTest.cc
  6280. * test/BtRequestMessageTest.cc
  6281. * test/PeerSessionResourceTest.cc
  6282. * test/DefaultBtMessageDispatcherTest.cc
  6283. * test/PeerTest.cc
  6284. * test/BtInterestedMessageTest.cc
  6285. * test/BtRejectMessageTest.cc
  6286. * test/BtChokeMessageTest.cc
  6287. * test/DefaultPeerStorageTest.cc
  6288. * test/BtHaveNoneMessageTest.cc
  6289. * test/BtHaveAllMessageTest.cc
  6290. * test/DefaultExtensionMessageFactoryTest.cc
  6291. * test/BtUnchokeMessageTest.cc
  6292. * test/DefaultBtMessageFactoryTest.cc
  6293. * test/HandshakeExtensionMessageTest.cc
  6294. * test/UTPexExtensionMessageTest.cc
  6295. * test/DefaultBtRequestFactoryTest.cc
  6296. * test/BtPieceMessageTest.cc
  6297. Removed typedef PeerStats.
  6298. * src/PeerStat.h
  6299. * src/SegmentMan.cc
  6300. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6301. Added std namespace to copy, remove_copy, back_inserter,
  6302. front_inserter.
  6303. * src/RequestGroupMan.cc
  6304. * src/DefaultPieceStorage.cc
  6305. * src/StreamFileAllocationEntry.cc
  6306. * src/BtFileAllocationEntry.cc
  6307. * src/RequestGroup.cc
  6308. * src/MetalinkEntry.cc
  6309. * src/DelegatingPeerListProcessor.cc
  6310. * src/DefaultBtRequestFactory.cc
  6311. * src/DefaultBtMessageDispatcher.cc
  6312. * src/version_usage.cc: Included <algorithm>
  6313. * src/main.cc
  6314. * src/MetalinkParserController.cc
  6315. * src/DefaultBtContext.cc
  6316. * src/DownloadEngineFactory.cc
  6317. * src/a2algo.h
  6318. Removed.
  6319. * test/StreamUriListParserTest.cc
  6320. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6321. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6322. ActivePeerConnectionCommand when it is given and
  6323. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6324. * src/ActivePeerConnectionCommand.{h, cc}
  6325. * src/BtSetup.cc
  6326. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6327. Only add socket to DownloadEngine's select routine when peer or
  6328. localhost is unchoked and interested. This lowers CPU usage a
  6329. little bit.
  6330. * src/PeerInteractionCommand.cc
  6331. * src/PeerAbstractCommand.{h, cc}
  6332. * src/BtInteractive.h
  6333. * src/DefaultBtInteractive.{h, cc}
  6334. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6335. Revert previous change because get_peers message is needed for
  6336. announce_peer anyway.
  6337. * src/DHTGetPeersCommand.cc
  6338. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Request peers thought DHT only when download hasn't finished.
  6340. * src/DHTGetPeersCommand.cc
  6341. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6342. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6343. * src/DHTBucketRefreshTask.{h, cc}
  6344. * src/DHTSetup.cc
  6345. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6347. standard classes.
  6348. Included string.h where mem* function are used.
  6349. Added namespace aria2.
  6350. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6351. Create directory before saving DHT routing table.
  6352. Now ios::failure is now handled properly.
  6353. * src/DHTAutoSaveCommand.cc
  6354. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6355. Removed unnecessary cerr.
  6356. * src/DownloadEngine.cc
  6357. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6358. Catch exception inside DHTMessageReceiver::receiveMessage().
  6359. Log unknown message.
  6360. * src/DHTMessageReceiver.{h, cc}
  6361. * src/DHTMessageFactory.h
  6362. * src/DHTMessageFactoryImpl.{h, cc}
  6363. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6364. * src/DHTInteractionCommand.cc
  6365. * src/DHTUnknownMessage.{h, cc}
  6366. * test/DHTUnknownMessageTest.cc
  6367. * test/MockDHTMessageFactory.h
  6368. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6369. Commented out ip address comparison because a host can have multiple
  6370. ip addresses and it is hard to predict the hostname is resolved into
  6371. which one.
  6372. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6373. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6374. * po/Makefile.in: Removed since this is generated by configure.
  6375. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Fixed compiler warning about redefinition of SIZE_MAX.
  6377. Use common.h instead of config.h directly here.
  6378. * src/Platform.{h, cc}
  6379. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6380. here.
  6381. * common.h
  6382. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6383. Updated gettext related files.
  6384. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6385. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6386. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6387. Added DHT functionality, compatible with mainline.
  6388. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6389. You may need to specify entry point to DHT network using
  6390. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6391. Use --dht-listen-port to specify port number. Make sure that your
  6392. firewall configuration can pass through UDP traffic to the port.
  6393. The routing table is saved in $HOME/.aria2/dht.dat.
  6394. * src/DHT*
  6395. * src/BNode.{h, cc}
  6396. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6397. particular torrent.
  6398. * src/Data.cc: Rewritten ctor.
  6399. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6400. --dht-entry-point.
  6401. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6402. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6403. ends, remove BtContext from DHTPeerAnnounceStorage.
  6404. * src/BtPortMessage.{h, cc}: Rewritten.
  6405. * src/message.h
  6406. * src/OptionHandlerImpl.cc
  6407. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6408. --dht-entry-point.
  6409. * src/Dictionary.{h, cc} (remove): New function.
  6410. * src/prefs.h
  6411. * src/DefaultBtMessageFactory.h
  6412. * src/BtHandshakeMessage.cc
  6413. * src/ActivePeerConnectionCommand.cc
  6414. * src/SocketCore.{h, cc}: Added datagram socket support.
  6415. * src/DefaultBtMessageFactory.cc
  6416. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6417. Create DHT commands.
  6418. * src/BtMessageFactory.h
  6419. * src/PeerMessageUtil.{h, cc}
  6420. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. Fixed the bug that log file is not written when configuration file doesn't exist.
  6422. This is caused by using Logger class before LogFactory is not configured.
  6423. BUG #1875079
  6424. * src/option_processing.cc
  6425. Warning message "configuration doesn't exist" is only printed when --conf is
  6426. given.
  6427. * src/option_processing.cc
  6428. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6430. ShaVisitor is now deprecated and slated to be removed.
  6431. * src/DefaultBtContext.cc
  6432. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6433. Externalize message to message.h
  6434. * src/Platform.cc
  6435. * src/message.h
  6436. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. Set default domain and default path to cookie.
  6438. * src/HttpResponse.cc
  6439. * src/CookieBox.{h, cc}
  6440. * src/CookieParser.{h, cc}
  6441. * test/CookieParserTest.cc
  6442. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Added --no-conf and --conf-path command-line option.
  6444. --no-conf option disables loading aria2.conf file.
  6445. --conf-path option changes the configuration file path. The default
  6446. file path is $HOME/.aria2/aria2.conf
  6447. Added a warning message when the configuration file is not found.
  6448. * src/HelpItemFactory.cc
  6449. * src/option_processing.cc
  6450. * src/prefs.h
  6451. * src/usage_text.h
  6452. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Added the message to inform users that other help categories are
  6454. available in -h option.
  6455. * src/version_usage.cc
  6456. * src/TagContainer.{h, cc}
  6457. * test/TagContainerTest.cc
  6458. * src/TaggedItem.{h, cc}
  6459. * test/TaggedItemTest.cc
  6460. * src/HelpItem.h
  6461. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6463. from PiecedSegment's ctor.
  6464. Previously Piece::getAllMissingBlockIndexes() is called from
  6465. PiecedSegment() but it is rather expensive since only first element is
  6466. used.
  6467. * src/PiecedSegment.cc
  6468. * src/Piece.{h, cc}
  6469. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6470. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6471. each time these functions are called.
  6472. * src/BitfieldMan.{h, cc}
  6473. * test/BitfieldManTest.cc
  6474. * src/array_fun.h
  6475. * test/array_funTest.cc
  6476. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6477. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6478. filtered. Removed unnecessary cast to int32_t.
  6479. * src/BitfieldMan.{h, cc}
  6480. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6481. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6482. payload length(4bytes) are received. This happens because lenbufLength
  6483. is not updated in this particular case and successive call of
  6484. receiveMessage() overwrites payload length with bytes recieved which
  6485. are payload body.
  6486. * src/PeerConnection.{h, cc}
  6487. * src/message.h
  6488. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6489. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6490. peer if there are peers that have same ipaddr and port.
  6491. I've experiened segmentation fault and "pure virtual function was
  6492. called" error.
  6493. * src/Peer.h
  6494. * test/PeerTest.cc
  6495. * src/DefaultPeerStorage.cc
  6496. * test/DefaultPeerStorageTest.cc
  6497. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Removed a call to isPowerOf() because it is no longer necessary here
  6499. and a request block is not always power of 2.
  6500. BUG#1866924
  6501. * src/PeerMessageUtil.cc (checkLength)
  6502. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6503. Fixed the bug that always first found Segment is removed from
  6504. usedSegmentEntries. Removed unused functions.
  6505. * src/SegmentMan.{h, cc}
  6506. * test/SegmentManTest.cc
  6507. Fixed the bug that ServerHost is not removed.
  6508. * src/RequestGroup.cc
  6509. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. Fixed the bug that SegmentMan::completeSegment() is not called
  6511. even if Segment is complete when --lowest-speed-limit is enabled.
  6512. BUG#1864525
  6513. * src/DownloadCommand.{h, cc}
  6514. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6515. Fixed: hash algorithm 'sha1' is always used.
  6516. * src/DownloadCommand.cc (validatePieceHash)
  6517. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6518. Added --enable-peer-exchange command-line option.
  6519. * src/OptionHandlerFactory.cc
  6520. * src/HelpItemFactory.cc
  6521. * src/option_processing.cc
  6522. * src/usage_text.h
  6523. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Move extension from BtRuntime to ExtensionMessageFactory, because
  6525. extension can be specified per peer, not per torrent.
  6526. * src/DefaultBtInteractive.cc
  6527. * src/BtRuntime.h
  6528. * src/ExtendedMessagingAware.h
  6529. * src/ExtensionMessageFactory.h
  6530. * src/DefaultExtensionMessageFactory.cc
  6531. * test/DefaultExtensionMessageFactoryTest.cc
  6532. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Added categorized option help. Specify category using --help option.
  6534. Also added the ability to search options in forward match.
  6535. * src/HelpItem.{h, cc}
  6536. * test/HelpItemTest.cc
  6537. * src/HelpItemFactory.{h, cc}
  6538. * src/TagContainer.{h, cc}
  6539. * test/TagContainerTest.cc
  6540. * src/option_processing.cc
  6541. * src/prefs.h
  6542. * src/TaggedItem.{h, cc}
  6543. * test/TaggedItemTest.cc
  6544. * src/version_usage.cc
  6545. * src/help_tags.h
  6546. * src/usage_text.h
  6547. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6548. Fixed segmentation fault when bad torrent metainfo is parsed.
  6549. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6550. and then throw exception or skip it.
  6551. * src/DefaultBtContext.{h, cc}
  6552. * test/DefaultBtContextTest.cc
  6553. * src/AnnounceList.cc
  6554. * src/CompactPeerListProcessor.cc
  6555. * src/message.h
  6556. * src/DefaultBtAnnounce.{h, cc}
  6557. * test/DefaultBtAnnounceTest.cc
  6558. * src/BencodeVisitor.cc
  6559. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6560. Added missing "B"(=Byte). So now the message looks like this:
  6561. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6562. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6563. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. Show the seed ratio after torrent downloads.
  6565. For example, after torrent download completed and --seed-time and
  6566. --seed-ratio conditions are fulfilled, following message is printed
  6567. right after "Download complete: .....":
  6568. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6569. * src/RequestGroupMan.cc
  6570. * src/RequestGroup.{h, cc}
  6571. * src/message.h
  6572. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6573. Remove a defunct control file. A defunct control file means that while
  6574. it exists, but the corresponding download file is missing.
  6575. After its removal, a download restarts from the beginning.
  6576. * src/RequestGroup.cc
  6577. * src/message.h
  6578. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6579. Allocate bitfield in Peer when it is really used. More specifically,
  6580. bitfield in Peer is allocated after the connection is established and
  6581. deallocated when the connection is dropped.
  6582. Since 2 parameters(piece length and total length) was removed from the
  6583. constructor of Peer class, many test classes were modified accordingly.
  6584. See svn log for more detailed information.
  6585. * src/PeerInteractionCommand.cc
  6586. * src/CompactPeerListProcessor.cc
  6587. * src/Peer.cc
  6588. * src/DefaultPeerListProcessor.cc
  6589. * src/PeerListenCommand.cc
  6590. * src/PeerReceiveHandshakeCommand.cc
  6591. Fixed memory leak
  6592. * src/Piece.cc
  6593. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6594. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6595. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6596. command-line options.
  6597. * src/option_processing.cc
  6598. * src/ActivePeerConnectionCommand.cc
  6599. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. Send have message to peer if it already has the piece.
  6601. * src/BtHaveMessage.{h, cc}
  6602. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6603. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6604. port.
  6605. * src/DefaultPeerStorage.{h, cc}
  6606. * test/DefaultPeerStorageTest.cc
  6607. * src/HandshakeExtensionMessage.cc
  6608. * test/HandshakeExtensionMessageTest.cc
  6609. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6610. * src/PeerStorage.h
  6611. * test/MockPeerStorage.h
  6612. * src/PeerListenCommand.cc
  6613. * src/PeerReceiveHandshakeCommand.cc
  6614. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6615. Added --metalink-enable-unique-protocol option.
  6616. * src/Metalink2RequestGroup.cc
  6617. * src/option_processing.cc
  6618. * src/prefs.h
  6619. * src/version_usage.cc
  6620. * doc/aria2c.1.txt
  6621. * doc/aria2c.1
  6622. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Allow a peer in incomingPeer to be added peers.
  6624. * src/DefaultPeerStorage.cc
  6625. * test/DefaultPeerStorageTest.cc
  6626. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6627. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6628. I could reproduce this bug in following procedure:
  6629. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6630. 2. Restart aria2.
  6631. 3. You see the download stopped around 99%.
  6632. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6633. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6634. If timeout is reached, then _nextCommand is unused and it may contains
  6635. segments and they won't be canceled. Actually, timeout is not needed
  6636. here because if the server dropped connection, then retry is made.
  6637. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6638. Added uTorrent compatible Peer Exchange.
  6639. * src/BencodeVisitor.{h, cc}
  6640. * test/BencodeVisitorTest.cc
  6641. * src/BtConstants.h
  6642. * src/BtContext.h: Added 'private' flag.
  6643. * src/BtExtendedMessage.{h, cc}
  6644. * test/BtExtendedMessageTest.cc
  6645. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  6646. reserved field.
  6647. * test/BtHandshakeMessageTest.cc
  6648. * src/BtMessageFactory.h
  6649. * src/BtRegistry.h
  6650. * src/BtRuntime.h: This class holds default extension message IDs for
  6651. aria2. By default, aria2 uses ID 8 for ut_pex.
  6652. * src/DefaultBtContext.cc
  6653. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  6654. When it is true, aria2 enables ut_pex. This value is set by
  6655. PeerInteractionCommand.
  6656. * src/DefaultBtMessageFactory.{h, cc}
  6657. * test/DefaultBtMessageFactoryTest.cc
  6658. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  6659. handling to DefaultBtInteractive class.
  6660. * src/DefaultExtensionMessageFactory.{h, cc}
  6661. * test/DefaultExtensionMessageFactoryTest.cc
  6662. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  6663. the container(peers and incomingPeers. The equality is determined by
  6664. Peer::id).
  6665. * test/DefaultPeerStorageTest.cc
  6666. * src/ExtensionMessage.h
  6667. * test/MockExtensionMessage.h
  6668. * src/ExtensionMessageFactory.h
  6669. * test/MockExtensionMessageFactory.h
  6670. * src/HandshakeExtensionMessage.{h, cc}
  6671. * test/HandshakeExtensionMessageTest.cc
  6672. * src/MetaEntry.h
  6673. * src/Peer.{h, cc}
  6674. * src/PeerInteractionCommand.cc
  6675. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  6676. addIncomingPeer.
  6677. * src/PeerMessageUtil.{h, cc}
  6678. * src/PeerObject.h
  6679. * src/UTPexExtensionMessage.{h, cc}
  6680. * test/UTPexExtensionMessageTest.cc
  6681. * src/message.h
  6682. * src/prefs.h
  6683. Fixed the bug that returns incomplete data when it contains null
  6684. character. A convenient constructor was also added.
  6685. * src/Data.{h, cc}
  6686. Rewritten.
  6687. * src/CompactPeerListProcessor.cc
  6688. Fixed typos.
  6689. * src/message.h
  6690. * src/MetaFileUtil.cc
  6691. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6692. Added "Status Legend" label to the explanation text of 'stat' in
  6693. download result and moved it to the last. BUG#1848214
  6694. * src/RequestGroupMan.cc
  6695. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6696. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  6697. * src/Makefie.am
  6698. * test/Makefile.am
  6699. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. Fixed the bug that prevents aria2 from loading cookie file when expire
  6701. value is greater than 2^31-1. BUG#1851066
  6702. * src/CookieBoxFactory.cc
  6703. * test/CookieBoxFactoryTest.cc
  6704. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Fixed possible memory leak when an exception is thrown.
  6706. * src/XML2SAXMetalinkProcessor.cc
  6707. Added Expat support. If both libxml2 and Expat are installed, then
  6708. libxml2 is used by default.
  6709. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  6710. ExpatMetalinkProcessor according to the configuration.
  6711. * src/ExpatMetalinkProcessor.{h, cc}
  6712. * src/main.cc: Removed libxml2 specific header and init/free function.
  6713. * src/MetalinkProcessorFactory.{h, cc}
  6714. * src/MetalinkHelper.cc
  6715. * src/Metalinker.h: Removed unnecessary libxml2 header.
  6716. * src/MetalinkProcessor.h
  6717. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  6718. MetalinkProcessorTest is used instead.
  6719. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  6720. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  6721. MetalinkProcessorFactory::newInstance().
  6722. * m4/libexpat.m4
  6723. * configure.ac: Added configuration options for libexpat.
  6724. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Disabled -s option in metalink download.
  6726. * src/Metalink2RequestGroup.cc
  6727. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. If several protocols are available for a mirror in metalink file,
  6729. aria2 now use one of them. --metalink-preferred-protocol option was
  6730. added to specify the preference of protocol.
  6731. * src/AbstractCommand.cc
  6732. * src/OptionHandlerFactory.cc
  6733. * src/ServerHost.{h, cc}
  6734. * src/Metalink2RequestGroup.cc
  6735. * src/RequestGroup.{h, cc}
  6736. * test/RequestGroupTest.cc
  6737. * src/option_processing.cc
  6738. * src/prefs.h
  6739. * src/HttpResponseCommand.cc
  6740. * src/MetalinkResource.{h, cc}
  6741. * src/FtpNegotiationCommand.cc
  6742. * src/MetalinkEntry.{h, cc}
  6743. * src/MetalinkEntryTest.cc
  6744. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6745. Code cleanup and added debug log.
  6746. * src/PeerConnection.cc
  6747. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Compiler error fix: applied the patch by Tiziano Mueller
  6749. * src/RequestGroup.cc
  6750. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6751. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6752. in stopped and completed event.
  6753. * src/AnnounceList.{h, cc}
  6754. * test/AnnounceListTest.cc
  6755. * src/DefaultBtAnnounce.cc
  6756. * test/DefaultBtAnnounceTest.cc
  6757. Sorted URLs.
  6758. * test/Metalink2RequestGroupTest.cc
  6759. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Removed unnecessary string copy. Updated doc and corrected indentation.
  6761. * src/Base64.cc
  6762. Fixed compilation warnings
  6763. * test/DataTest.cc
  6764. * test/HttpRequestTest.cc
  6765. * test/MetaFileUtilTest.cc
  6766. * test/RequestTest.cc
  6767. * Release 0.12.0
  6768. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6769. Updated translations
  6770. * po/{de,fr,ja,nl,ru}.po
  6771. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6772. translations. Many thanks to translators.
  6773. * po/{ca,es,it,pt_BR,sv}.po
  6774. * po/LINGUAS
  6775. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6776. Added a notice about URL
  6777. * src/version_usage.cc
  6778. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6779. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6780. aria2 repeatedly sends stopped request when tracker returns error code.
  6781. * src/AnnounceList.cc
  6782. * test/AnnounceListTest.cc
  6783. * src/AnnounceTier.h
  6784. Added a message when ctrl-c is hit.
  6785. Now second ctrl-c is also handled in signal handler.
  6786. * src/RequestGroupMan.{h, cc}
  6787. * src/RequestGroup.{h, cc}
  6788. * src/MultiUrlRequestInfo.cc
  6789. * src/DownloadEngine.cc
  6790. * src/TrackerWatcherCommand.cc
  6791. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6792. Code cleanup
  6793. * src/Base64.cc (encode)
  6794. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6795. Changed Direct/IO enable/disable procesure in file allocation routine.
  6796. * src/SingleFileAllocationIterator.cc
  6797. (SingleFileAllocationIterator):
  6798. Disable directIO if offset is not multiple of 512.
  6799. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6800. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6801. Enable created SingleFileAllocationIterator's directIO.
  6802. * src/FileAllocationEntry.cc
  6803. (FileAllocationEntry): Enable directIO here.
  6804. (~FileAllocationEntry): Disable directIO here.
  6805. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6807. * src/Peer.{h, cc}
  6808. * src/DefaultPieceStorage.cc
  6809. * test/DefaultPieceStorageTest.cc
  6810. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Rewritten direct I/O support routine
  6812. * src/SingleFileAllocationIterator.cc
  6813. * src/MultiDiskAdaptor.{h, cc}
  6814. * src/ByteArrayDiskWriter.h
  6815. * src/AbstractSingleDiskAdaptor.h
  6816. * src/AbstractDiskWriter.cc
  6817. * src/DefaultPieceStorage.cc
  6818. * src/DiskWriter.h
  6819. * src/BinaryStream.h
  6820. * src/IteratableChunkChecksumValidator.cc
  6821. * src/IteratableChecksumValidator.cc
  6822. * src/CheckIntegrityEntry.cc
  6823. * src/FileAllocationEntry.cc
  6824. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6825. Fixed typo
  6826. * src/version_usage.cc
  6827. Updated doc
  6828. * doc/aria2c.1.txt
  6829. * doc/aria2c.1
  6830. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6831. Fixed compile error without message digest support.
  6832. * src/FileMetalinkParserState.cc
  6833. * src/MetalinkParserController.{h, cc}
  6834. * test/XML2SAXMetalinkProcessorTest.cc
  6835. * test/MetalinkParserControllerTest.cc
  6836. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Enable direct I/O support in checksum checking.
  6838. * src/IteratableChunkChecksumValidator.{h, cc}
  6839. * test/IteratableChunkChecksumValidatorTest.cc
  6840. * src/CheckIntegrityEntry.cc
  6841. * src/PieceHashCheckIntegrityEntry.cc
  6842. * src/IteratableChecksumValidator.{h, cc}
  6843. * src/BtCheckIntegrityEntry.cc: Added doc.
  6844. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Added --allow-piece-length-change option.
  6846. * src/DefaultBtProgressInfoFile.cc
  6847. * test/DefaultBtProgressInfoFileTest.cc
  6848. * src/OptionHandlerFactory.cc
  6849. * src/option_processing.cc
  6850. * src/prefs.h
  6851. * src/version_usage.cc
  6852. * doc/aria2c.1.txt
  6853. * doc/aria2c.1
  6854. Fixed: duplicated result entry appears when exception is thrown in
  6855. RequestGroup::createInitiateConnectionCommand().
  6856. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6857. Add RequestGroup to _requestGroup after RequetGroup::
  6858. createInitiateConnectionCommand() succeeds.
  6859. Externalized message
  6860. * src/XML2SAXMetalinkProcessor.cc
  6861. * src/message.h
  6862. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Forced download abort when received negative response from http/ftp
  6864. server.
  6865. * src/HttpResponseCommand.cc
  6866. * src/FtpNegotiationCommand.cc
  6867. * src/HttpResponse.cc
  6868. * src/FtpConnection.cc
  6869. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6870. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6871. the predecessor, Xml2MetalinkParser class.
  6872. I tested them against 94KB metalink file with 1234 chunk checksums.
  6873. The new one parsed it in 22msec, while it took 6000msec with old one.
  6874. * src/XML2SAXMetalinkProcessor.{h, cc}
  6875. * test/XML2SAXMetalinkProcessorTest.cc
  6876. * src/MetalinkParserController.{h, cc}
  6877. * test/MetalinkParserControllerTest.cc
  6878. * src/MetalinkParserState.h: Also added 16 subclasses.
  6879. * src/main.cc
  6880. * src/Metalink2RequestGroup.cc
  6881. * src/MetalinkHelper.cc
  6882. * src/MetalinkEntry.cc
  6883. * src/ChunkChecksum.h
  6884. Rewritten Base64 class for better performance.
  6885. * src/Base64.{h, cc}
  6886. * test/Base64Test.cc
  6887. * src/HttpRequest.cc
  6888. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. Fixed the bug#1841757: aria2 will connect to server to only get
  6890. file size.
  6891. * src/StreamFileAllocationEntry.cc
  6892. * src/option_processing.cc
  6893. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6894. downloads.
  6895. * src/FtpNegotiationCommand.cc
  6896. Suppressed wrong message when finding PreDownloadHandler
  6897. * src/RequestGroup.cc
  6898. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6899. Updated usage
  6900. * src/version_usage.cc
  6901. Updated man page
  6902. * doc/aria2c.1.txt
  6903. * doc/aria2c.1
  6904. Updated po files
  6905. * po/aria2c.pot
  6906. * po/*.po
  6907. * po/*.gmo
  6908. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6909. Eliminated g++-4.2 warning
  6910. * src/DownloadHandlerConstants.{h, cc}
  6911. * src/Util.cc
  6912. * test/MetaFileUtilTest.cc
  6913. * test/PStringBuildVisitorTest.cc
  6914. Fixed bug: --check-integrity doesn't work for multi file torrent.
  6915. * src/RequestGroup.cc
  6916. * src/BtCheckIntegrityEntry.cc
  6917. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6918. Fixed a2io.h
  6919. * src/a2io.h
  6920. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6921. Added direct I/O support. The current implementation uses O_DIRECT,
  6922. which is not posix standard and is tested on linux 2.6.21.
  6923. Currently only file allocation uses direct I/O.
  6924. * src/SingleFileAllocationIterator.{h, cc}
  6925. * test/SingleFileAllocationIteratorTest.cc
  6926. * src/MultiFileAllocationIterator.{h, cc}
  6927. * test/MultiFileAllocationIteratorTest.cc
  6928. * src/BinaryStream.h
  6929. * src/DiskWriter.h
  6930. * src/AbstractDiskWriter.{h, cc}
  6931. * src/ByteArrayDiskWriter.h
  6932. * src/DiskAdaptor.h
  6933. * src/AbstractSingleDiskAdaptor.{h, cc}
  6934. * src/MultiDiskAdaptor.{h, cc}
  6935. * src/FileAllocationEntry.cc
  6936. * src/Util.{h, cc}
  6937. * src/OptionHandlerFactory.cc
  6938. * src/prefs.h
  6939. * src/version_usage.cc
  6940. * src/option_processing.cc
  6941. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  6942. handleException.
  6943. * src/MultiFileAllocationIterator.cc
  6944. Added EINTR handling
  6945. * src/SocketCore.cc
  6946. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. Updated usage
  6948. * src/version_usage.cc
  6949. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6950. Applied Ross's patch for MinGW port.
  6951. * src/DownloadEngine.h
  6952. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. Set Content-Type to SingleFileDownloadContext when http response is
  6954. received.
  6955. * src/HttpResponseCommand.cc
  6956. * src/HttpResponse.{h, cc}
  6957. * test/HttpResponseTest.cc
  6958. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Rewritten to add content-type support.
  6960. * src/DownloadHandler.{h, cc}
  6961. * src/BtPostDownloadHandler.{h, cc}
  6962. * test/BtPostDownloadHandlerTest.cc
  6963. * src/MetalinkPostDownloadHandler.{h, cc}
  6964. * test/MetalinkPostDownloadHandlerTest.cc
  6965. * src/PostDownloadHandler.{h, cc}
  6966. * src/DownloadHandlerConstants.{h, cc}
  6967. * src/RequestGroup.cc
  6968. * src/HttpResponseCommand.cc
  6969. * src/FtpNegotiationCommand.cc
  6970. * src/SingleFileDownloadContext.{h, cc}
  6971. * src/RequestGroup.h
  6972. * src/RequestGroupCriteria.h
  6973. * src/ContentTypeRequestGroupCriteria.h
  6974. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6975. If it is give, metalink/torrent file is not written to the disk, but
  6976. just is kept in memory. Parsing is occurred on memory.
  6977. * src/MetalinkHelper.{h, cc}
  6978. * src/MetalinkProcessor.h
  6979. * src/Xml2MetalinkProcessor.{h, cc}
  6980. * test/Xml2MetalinkProcessorTest.cc
  6981. * src/DownloadHandlerFactory.{h, cc}
  6982. * test/DownloadHandlerFactoryTest.cc
  6983. * src/PreDownloadHandler.{h, cc}
  6984. * src/OptionHandlerFactory.cc
  6985. * src/DefaultBtContext.{h, cc}
  6986. * test/DefaultBtContextTest.cc
  6987. * src/version_usage.cc
  6988. * src/Metalink2RequestGroup.{h, cc}
  6989. * src/RequestGroup.{h, cc}
  6990. * src/a2functional.h
  6991. * test/a2functionalTest.cc
  6992. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6993. * src/OptionHandlerImpl.h
  6994. * src/prefs.h
  6995. * src/Util.{h, cc}
  6996. * test/UtilTest.cc
  6997. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6998. memory usage.
  6999. * src/RequestGroupMan.{h, cc}
  7000. * src/DownloadEngine.cc
  7001. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7002. WeakHandle to SharedHandle because WeakHandle could be null.
  7003. * src/RequestGroup.{h, cc}
  7004. * src/DownloadEngineFactory.cc
  7005. * src/DownloadResult.h
  7006. Set totalLength after download finished
  7007. * src/UnknownLengthPieceStorage.{h, cc}
  7008. Keep torrent file specified in metalink in memory.
  7009. * src/Metalink2RequestGroup.cc
  7010. * src/BtDependency.cc
  7011. * src/TrueRequestGroupCriteria.h
  7012. Fixed the bug: seekg is used where seekp should be used.
  7013. * src/ByteArrayDiskWriter.cc
  7014. * test/ByteArraydiskWriterTest.cc
  7015. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Fixed syntax error
  7017. * test/SequenceTest.cc
  7018. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7019. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7020. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7021. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7022. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7023. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Added the check to see whether ares_host_callback accepts timeouts
  7025. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7026. * src/NameResolver.{h, cc}
  7027. * m4/libcares.m4
  7028. * configure.ac: Set C++ for language choice.
  7029. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7030. Fixed: compilation fails without c-ares/ares
  7031. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7032. Generate http/ftp commands only when download is incomplete.
  7033. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7034. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7035. Corrected typo. Examples are removed since they are available in man
  7036. page.
  7037. * src/version_usage.cc
  7038. Updated man page.
  7039. * doc/aria2c.1
  7040. * doc/aria2c.1.txt
  7041. * doc/makeman: Commented out sed command.
  7042. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Throw DlAbortEx when a remote file is not found.
  7044. * src/HttpResponse.cc
  7045. * src/FtpNegotiationCommand.cc
  7046. * src/message.h
  7047. Overwrite an existing file if --allow-overwrite=true is given.
  7048. * src/RequestGroup.cc
  7049. Removed unused functions
  7050. * src/AbstractCommand.h
  7051. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7052. Removed 'extern' from 'extern typedef ...' in src/*.h
  7053. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7054. Updated usage
  7055. * src/version_usage.cc
  7056. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Trim announce URL
  7058. * src/DefaultBtContext.cc
  7059. * test/ShaVisitorTest.cc
  7060. Trim argument s. Give trimed s to exception constructor.
  7061. * src/Util.cc (parseInt)(parseLLInt)
  7062. * test/UtilTest.cc
  7063. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7064. Set precision back to 1.
  7065. * src/ConsoleStatCalc.cc (calculateStat)
  7066. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Replaced strtol with Util::parseInt
  7068. * src/ChunkedEncoding.cc
  7069. * src/HttpConnection.cc
  7070. * src/CookieBoxFactory.cc
  7071. * src/ParameterizedStringParser.cc
  7072. * src/Util.cc
  7073. * test/UtilTest.cc
  7074. * test/OptionHandlerTest.cc
  7075. * src/Request.cc
  7076. Throw exception when empty string is given. The message for exception
  7077. changed.
  7078. * src/Util.cc (parseInt)(parseLLInt)
  7079. * src/message.h
  7080. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7081. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7082. set to 1.
  7083. * src/ConsoleStatCalc.cc (calculateStat)
  7084. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7085. Preallocate non-requested file which is adjacent forward to requested
  7086. file('requested' files means the files given in --select-file option)
  7087. if they share a same piece.
  7088. This fixes long pause in the file system which doesn't support sparse
  7089. files like FAT32 while downloading.
  7090. * src/MultiFileAllocationIterator.{h, cc}
  7091. * test/MultiFileAllocationIteratorTest.cc
  7092. * src/FileEntry.{h, cc}
  7093. Removed unused _option.
  7094. * src/MultiDiskAdaptor.h
  7095. * test/MultiDiskAdaptorTest.cc
  7096. * src/DefaultPieceStorage.cc
  7097. Set the default value of --seed-ratio to 1.0.
  7098. If 0.0 is given, then seeding continues regardless of share ratio.
  7099. * src/version_usage.cc
  7100. * src/option_processing.cc
  7101. * src/BtSetup.cc
  7102. * doc/aria2c.1.txt
  7103. * doc/aria2c.1
  7104. Fixed: Selective download is not working in BitTorrent
  7105. * src/RequestGroup.cc
  7106. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7107. * src/PieceStorage.h
  7108. * test/MockPieceStorage.h
  7109. * src/UnknownLengthPieceStorage.h
  7110. * src/DefaultPieceStorage.{h, cc}
  7111. * src/Metalink2RequestGroup.cc
  7112. * src/RequestGroup.cc
  7113. * src/Sequence.h
  7114. * test/SequenceTest.cc
  7115. * src/IntSequence.h
  7116. * src/message.h
  7117. * src/Util.{h, cc}
  7118. * test/UtilTest.cc
  7119. Added new function 'parse' to catch exception thrown by subclass's
  7120. parseArg
  7121. * src/OptionHandler.h
  7122. * src/OptionParser.cc
  7123. * src/NameMatchOptionHandler.h
  7124. * src/OptionHandlerImpl.h
  7125. * test/OptionHandlerTest.cc
  7126. Added IntegerRangeOptionHandler. Used for --listen-port and
  7127. --select-file. Now --listen-port accepts range of port.
  7128. * src/OptionHandlerFactory.cc
  7129. * src/version_usage.cc
  7130. * src/OptionHandlerImpl.h
  7131. * src/option_processing.cc
  7132. * src/BtSetup.cc
  7133. * src/PeerListenCommand.{h, cc}
  7134. * doc/aria2c.1.txt
  7135. * doc/aria2c.1
  7136. Implemented operator< for Exception class to provide easy way to print
  7137. exception stack trace.
  7138. * src/Exception.{h, cc}
  7139. * src/main.cc
  7140. * src/option_processing.cc
  7141. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. * src/version_usage.cc
  7143. (showVersion): Reworked.
  7144. (showUsage): Added examples.
  7145. Removed Hint for total length and file name.
  7146. * src/Metalink2RequestGroup.cc
  7147. * src/RequestGroup.{h, cc}
  7148. * src/HttpResponseCommand.cc
  7149. * src/FtpNegotiationCommand.cc
  7150. Now --follow-torrent and --follow-metalink option work properly.
  7151. * src/RequestGroup.cc
  7152. Updated man page
  7153. * doc/aria2c.1.txt
  7154. * doc/aria2c.1
  7155. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Removed.
  7157. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7158. Use Segment::operator==()
  7159. * src/HttpConnection.cc
  7160. * src/Segment.h
  7161. Updated usage
  7162. * src/version_usage.cc
  7163. Added EINTR treatment.
  7164. * src/SocketCore.cc
  7165. * src/AbstractDiskWriter.cc
  7166. Rewritten.
  7167. * src/Util.cc (rangedFileCopy)
  7168. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7169. Fixed typo.
  7170. * src/version_usage.cc
  7171. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7172. Implemented. Now -c option works fine.
  7173. * src/DefaultPieceStorage.cc (markPiecesDone)
  7174. * test/DefaultPieceStorageTest.cc
  7175. Removed.
  7176. * src/SegmentMan.{h, cc}
  7177. (markAllPiecesDone)
  7178. (markPieceDone)
  7179. Synchronized po files with
  7180. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7181. * src/fr.po
  7182. * src/ru.po
  7183. * src/de.po
  7184. * src/ja.po
  7185. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Added ifdef and some modifications to compile without BitTorrent,
  7187. Metalink, MessageDigest
  7188. support.
  7189. * src/PieceHashCheckIntegrityEntry.cc
  7190. * src/MetalinkEntry.h
  7191. * src/version_usage.cc
  7192. * src/main.cc
  7193. * src/DownloadEngine.{h, cc}
  7194. * src/Metalink2RequestGroup.cc
  7195. * src/Peer.cc
  7196. * src/RequestGroup.cc
  7197. * src/MetalinkHelper.cc
  7198. * test/DefaultPieceStorageTest.cc
  7199. * test/MetalinkPostDownloadHandlerTest.cc
  7200. * test/Metalink2RequestGroupTest.cc
  7201. Hide TOTAL SPD when all downloads complete.
  7202. * src/ConsoleStatCalc.cc
  7203. Log target system information.
  7204. * src/main.cc
  7205. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. Now --metalink-location accepts a comma-deliminated list of locations.
  7207. * src/MetalinkEntry.{h, cc}
  7208. * test/MetalinkEntryTest.cc
  7209. * src/version_usage.cc
  7210. * src/Metalink2RequestGroup.cc
  7211. * src/Xml2MetalinkProcessor.cc
  7212. * test/Xml2MetalinkProcessorTest.cc
  7213. * doc/aria2c.1.txt
  7214. * doc/aria2c.1
  7215. * src/Util.cc (toUpper)(toLower): Rewritten.
  7216. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7217. Added the ability to detect duplicate download entry which is about to
  7218. download the same file other RequestGroup is downloading.
  7219. * src/RequestGroup.cc
  7220. * src/HttpResponseCommand.cc
  7221. * src/FtpNegotiationCommand.cc
  7222. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Recalculates download progress when loading a control file,
  7224. if the piece length of DownloadContext is different from the one saved
  7225. in the control file. Currently in-flight pieces are ignored.
  7226. * src/DefaultBtProgressInfoFile.cc
  7227. * test/DefaultBtProgressInfoFileTest.cc
  7228. * src/Util.{h, cc}
  7229. * test/UtilTest.cc
  7230. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Do not rotate tiers in announce-list.
  7232. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7233. AnnounceList::allTiersFailed() used instead to detect whether all
  7234. tiers are tried and failed.
  7235. * test/DefaultBtAnnounceTest.cc
  7236. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7237. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7238. * test/AnnounceListTest.cc
  7239. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7240. clause. Catch RecoverableException instead of DlRetryEx instead.
  7241. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7242. Implemented checksum validation feature(1 checksum for each file)
  7243. The validation takes place after the download.
  7244. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7245. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7246. * src/CheckIntegrityCommand.cc: Changed log message.
  7247. * src/Metalink2RequestGroup.cc: Set checksum to
  7248. SingleFileDownloadContext.
  7249. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7250. PieceHashCheckIntegrity class.
  7251. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7252. PieceHashCheckIntegrity class.
  7253. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7254. * src/IteratableValidator.h: New class.
  7255. * src/message.h
  7256. * src/CheckIntegrityEntry.{h, cc}
  7257. * src/IteratableChunkChecksumValidator.{h, cc}
  7258. * src/SingleFileDownloadContext.h
  7259. * src/DownloadCommand.cc
  7260. --allow-overwrite=true is no longer needed to check file integrity
  7261. before download in BitTorrent download.
  7262. * src/RequestGroup.cc (getInitialCommand)
  7263. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7264. throws exception.
  7265. * src/RequestGroupMan.cc (getInitialCommands)
  7266. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. urlencode the given url inside Request::parseUrl(...)
  7268. * src/Request.{h, cc}
  7269. * src/Util.{h, cc}
  7270. * test/RequestTest.cc
  7271. Removed #!metalink3! notation support because it is deleted from
  7272. the metalink specification.
  7273. * src/Request.{h, cc}
  7274. * test/RequestTest.cc
  7275. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Don't connect server before checking file integrity at startup, if
  7277. filesize and output file path are known.
  7278. * src/AbstractCommand.cc
  7279. * src/StreamFileAllocationEntry.cc
  7280. * src/Metalink2RequestGroup.cc
  7281. * src/RequestGroup.{h, cc}
  7282. * src/HttpResponseCommand.cc
  7283. * src/FtpNegotiationCommand.cc
  7284. Added DownloadFailureException. If it is thrown, RequestGroup should
  7285. halt.
  7286. * src/AbstractCommand.cc
  7287. * src/DownloadFailureException.h
  7288. * src/RequestGroup.cc
  7289. Catch RecoverableException, instead of DlAbortEx.
  7290. * src/RequestGroupMan.cc
  7291. * src/FillRequestGroupCommand.cc
  7292. * src/MetaFileUtil.cc
  7293. * src/IteratableChunkChecksumValidator.cc
  7294. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7295. getGID())
  7296. * src/CheckIntegrityCommand.cc
  7297. * src/message.h
  7298. Print gid instead of idx.
  7299. * src/RequestGroupMan.cc
  7300. Removed exception throwers declaration.
  7301. * src/DirectDiskAdaptor.{h, cc}
  7302. * src/SocketCore.{h, cc}
  7303. * src/MultiDiskAdaptor.{h, cc}
  7304. * src/HttpConnection.{h, cc}
  7305. * src/HttpResponse.{h, cc}
  7306. * src/DiskAdaptor.{h, cc}
  7307. * src/CopyDiskAdaptor.{h, cc}
  7308. * src/MultiDiskAdaptor.{h, cc}
  7309. * src/HttpHeaderProcessor.{h, cc}
  7310. * src/AbstractSingleDiskAdaptor.{h, cc}
  7311. * src/Util.{h, cc}
  7312. * test/UtilTest.cc
  7313. * src/DefaultDiskWriter.{h, cc}
  7314. * src/FtpConnection.{h, cc}
  7315. * src/AbstractDiskWriter.{h, cc}
  7316. Removed duplicate code.
  7317. * src/StreamCheckIntegrityEntry.cc
  7318. Removed unnecessary include.
  7319. * src/DiskWriter.h
  7320. Included Exception.h
  7321. * src/option_processing.cc
  7322. Included 2 files and added doc
  7323. * src/TrackerWatcherCommand.cc
  7324. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7325. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. Changed CheckIntegrityEntry interface so that it can define
  7327. the action when all the chunk checksums are valid.
  7328. * src/CheckIntegrityEntry.h
  7329. * src/StreamCheckIntegrityEntry.{h, cc}
  7330. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7331. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7332. to exit rather than doing seeding. So, it would be good to toggle this
  7333. behavior.
  7334. * src/CheckIntegrityCommand.cc
  7335. * src/AbstractCommand.cc
  7336. * src/RequestGroup.cc
  7337. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7338. Reflect the download length of in-flight pieces.
  7339. It makes the download length readout more precise.
  7340. * src/DefaultPieceStorage.{h, cc}
  7341. * test/DefaultPieceStorageTest.cc
  7342. * src/a2functional.h
  7343. * test/a2functionalTest.cc
  7344. Lower CPU load when --max-download-limit is used.
  7345. There is up and down in speed indicator when enabling
  7346. http-pipelining but a download goes well. I think the problem is that
  7347. because http-pipelining is enabled, DownloadCommand is created for
  7348. each segment and in its constructor, PeerStat::downloadStart() is
  7349. called. In PeerStat::downloadStart(), speed calculation object is
  7350. reseted, which makes download speed zero.
  7351. * src/DownloadCommand.cc
  7352. Rewritten using accumulate.
  7353. * src/RequestGroupMan.cc (calculateStat)
  7354. Code clearnup.
  7355. * src/FtpNegotiationCommand.cc
  7356. * src/HttpResponseCommand.cc
  7357. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7358. Fixed: Can not resume: aria2 reports download already finished.
  7359. * src/AbstractCommand.{h, cc}
  7360. * src/HttpResponseCommand.cc
  7361. * src/FtpNegotiateCommand.cc
  7362. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Now a file is stored in the directory specified in .metalnk file
  7364. (file[@name]).
  7365. * src/Metalink2RequestGroup.cc
  7366. Create the directory structure when opening the file if it doesn't
  7367. exist.
  7368. * src/AbstractDiskWriter.cc
  7369. * src/Util.{h, cc}
  7370. * src/File.h
  7371. * test/UtilTest.cc
  7372. Removed file name comparison
  7373. * src/Metalink2RequestGroup.cc
  7374. * src/HttpResponseCommand.cc
  7375. Rewritten using Util::mkdirs()
  7376. * src/FileEntry.cc (setupDir)
  7377. * test/FileEntryTest.cc
  7378. Updated doc
  7379. * src/SingleFileDownloadContext.h
  7380. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7381. Now SleepCommand dispatches nextCommand when halt is requested.
  7382. It avoids a possible long wait after hitting CTRL-C.
  7383. * src/SleepCommand.{h, cc}
  7384. * src/RequestGroupAware.{h, cc}
  7385. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7387. to open listen port, then remove the port number from the tracker
  7388. request.
  7389. * src/DefaultBtAnnounce.cc
  7390. * test/DefaultBtAnnounceTest.cc
  7391. * test/MockPieceStorage.h
  7392. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7393. them more testable.
  7394. * src/DefaultBtAnnounce.{h, cc}
  7395. * src/DefaultBtContext.{h, cc}
  7396. * src/Util.{h, cc}
  7397. * test/DefaultBtAnnounceTest.cc
  7398. * test/DefaultBtContextTest.cc
  7399. * test/UtilTest.cc
  7400. Added 'B' to upload bytes readout.
  7401. * src/ConsoleStatCalc.cc
  7402. Now the listen port for BitTorrent download is opened when it is
  7403. needed.
  7404. * src/DownloadEngineFactory.cc
  7405. * src/BtSetup.{h, cc}
  7406. * src/PeerListenCommand.{h, cc}
  7407. Now an exception thrown while parsing tracker response is now logged.
  7408. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7409. called, which means no retry is made in this case, assuming a tracker
  7410. has a problem.
  7411. * src/TrackerWatcherCommand.cc
  7412. Fixed: downloading a file whose length is unkown fails.
  7413. * src/DownloadCommand.cc
  7414. Simplified prepareForNextSegment()
  7415. * src/DownloadCommand.cc
  7416. Updated
  7417. * po/POTFILES.in
  7418. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7419. Re-implemented a file listing for Metalink, which was dropped while
  7420. http/ftp/torrent integration was being implemented.
  7421. * src/MetalinkHelper.{h, cc}: New class.
  7422. * test/MetalinkHelperTest.cc
  7423. * src/main.cc
  7424. * src/Metalink2RequestGroup.cc
  7425. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7426. Added the ability to display the detailed torrent file information.
  7427. Now -S option gives not only a file listing, but also total download
  7428. length, info hash, announce URI, piece length, the number of pieces,
  7429. and mode(single or multi-torrent).
  7430. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7431. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7432. KiB)
  7433. * test/UtilTest.cc
  7434. * src/main.cc
  7435. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7436. Added ftp://USER:PASSWD@Servername automatic parsing.
  7437. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7438. _password. Recognize username and password in URI.
  7439. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7440. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7441. * src/RequestFactory.{h, cc}: Removed.
  7442. * src/AuthConfigFactory.{h, cc}: New class.
  7443. * src/FtpConnection.cc: Use AuthConfigFactory.
  7444. * src/HttpRequest.cc: Use AuthConfigFactory.
  7445. * test/HttpRequestTest.cc: Updated.
  7446. * test/RequestTest.cc: Updated.
  7447. * test/AuthConfigFactoryTest.cc: New class.
  7448. * test/RequestFactoryTest.cc: Removed.
  7449. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Use RequestGroup::allDownloadFinished() to decide whether the control
  7451. file should be removed or saved.
  7452. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7453. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7454. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. Use File::renameTo()
  7456. * src/DefaultBtProgressInfoFile.cc
  7457. Added --no-file-allocation-limit command-line option.
  7458. * src/version_usage.cc
  7459. * src/option_processing.cc
  7460. * src/OptionHandlerFactory.cc
  7461. * src/RequestGroup.{h, cc}
  7462. * src/BtCheckIntegrityEntry.cc
  7463. * src/StreamCheckIntegrityEntry.cc
  7464. * src/prefs.h
  7465. * doc/aria2c.1.txt
  7466. * doc/aria2c.1
  7467. Now prealloc is the default value for --file-allocation option.
  7468. * src/version_usage.cc
  7469. * src/option_processing.cc
  7470. * doc/aria2c.1.txt
  7471. * doc/aria2c.1
  7472. Don't URL-encode user-agent.
  7473. * src/HttpRequest.cc
  7474. Updated translations
  7475. * po/LINGUAS: Added nl for Dutch translation.
  7476. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7477. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7478. * po/POTFILES.in: Updated.
  7479. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7480. Added the ability to recognize url-list in a torrent file.
  7481. The retrieved URLs are attached to the corresponding FileEntry.
  7482. * src/DefaultBtContext.{h, cc}
  7483. * src/FileEntry.{h, cc}
  7484. * test/DefaultBtContextTest.cc
  7485. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7486. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7487. after the download finishes.
  7488. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7489. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7490. the data smaller than block length.
  7491. A block length can be specified by constructor's argument.
  7492. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7493. Get a missing piece in the range of given FileEntry. This function is
  7494. not used in the program yet.
  7495. * src/Util.h: Added some macros.
  7496. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. Added HTTP/1.1 keep alive and pipelining support.
  7498. See --enable-http-keep-alive and --enable-http-pipelining option.
  7499. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7500. Segment.
  7501. * src/HttpDownloadCommand.{h, cc}
  7502. * src/OptionHandlerFactory.cc
  7503. * src/HttpConnection.{h, cc}
  7504. * src/version_usage.cc
  7505. * src/HttpInitiateConnectionCommand.cc
  7506. * src/FtpInitiateConnectionCommand.cc
  7507. * src/Segment.h
  7508. * src/HttpRequestCommand.{h, cc}
  7509. * src/option_processing.cc
  7510. * src/prefs.h
  7511. * src/HttpResponseCommand.cc
  7512. * src/SegmentMan.{h, cc}
  7513. * src/FtpNegotiateCommand.cc
  7514. * src/HttpProxyResponseCommand.cc
  7515. * src/Request.cc
  7516. * src/HttpRequest.cc
  7517. * src/DownloadCommand.cc
  7518. * test/HttpRequestTest.cc
  7519. * test/RequestTest.cc
  7520. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7521. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7522. finished.
  7523. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7525. catching it inside the method.
  7526. When no file entry is found in a metalink without querying user
  7527. preferences, throw the exception with the error message that suggests
  7528. metalink file is probably broken.
  7529. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7530. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7531. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7532. processed.
  7533. * src/RequestGroupMan.cc (removeStoppedGroup)
  7534. Added debug message.
  7535. * src/BtPostDownloadHandler.cc
  7536. * src/MetalinkPostDownloadHandler.cc
  7537. * src/PostDownloadHandler.{h, cc}
  7538. * src/RequestGroup.cc
  7539. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7541. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7543. stops and there are any unfinished or in-progress downloads.
  7544. Added the legend of "stat".
  7545. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7546. Throw exception when chunck checksum verification fails.
  7547. * src/DownloadCommand.cc (validatePieceHash): New function.
  7548. * src/PiecedSegment.{h, cc} (clear): New function.
  7549. * src/GrowSegment.{h, cc} (clear): New function.
  7550. * src/Segment.h (clear): New function.
  7551. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7552. * test/SegmentTest.cc
  7553. * test/GrowSegmentTest.cc
  7554. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7555. Do not send referer when redirected.
  7556. * src/Request.cc (redirectUrl)
  7557. * test/RequestTest.cc
  7558. * test/HttpRequestTest.cc
  7559. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. Implemented BitTorrent/http/ftp integrated download.
  7561. I've rewritten lots of files and now some headers have forward
  7562. class declarations to reduce compile time.
  7563. The implementation is extremely alpha stage, I recommend to use this
  7564. for testing purpose only.
  7565. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. Fixed the compilation error on 64bit platform.
  7567. * test/HttpHeaderProcessorTest.cc
  7568. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. Merged Ross's patch that fixes compilation problem in MinGW
  7570. * test/DefaultBtProgressInfoFileTest.cc
  7571. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Updated fr.po by sebone
  7573. * po/fr.po
  7574. Updated man page.
  7575. * doc/aria2c.1.txt
  7576. * Release 0.11.3
  7577. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7579. failure in Metalink.
  7580. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Automatically save *.aria2 control file of http/ftp download in every
  7582. 60 seconds.
  7583. * src/AutoSaveCommand.{h, cc}: New class.
  7584. * src/TimeBasedCommand.{h, cc}: New class.
  7585. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7586. Disable parameterized URI support by default. Added -P option to
  7587. enable the feature.
  7588. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7589. * src/OptionHandlerFactory.cc
  7590. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7591. Updated Japanese translation.
  7592. * po/ja.po
  7593. Updated man page.
  7594. * doc/aria2c.1.txt
  7595. * Release 0.11.3-rc
  7596. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7598. it is successful, then renamed to *.aria2.
  7599. This prevents *.aria2 file from being truncated or corrupted when
  7600. file system becomes out of space.
  7601. * src/DefaultBtProgressInfoFile.cc (save)
  7602. * src/SegmentMan.cc (save)
  7603. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7604. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Reduced the fragmentation of bitfield in http/ftp download.
  7606. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7607. * test/BitfieldManTest.cc
  7608. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7609. Added the ability to disable segmented download in .metalink.
  7610. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7611. 'url' tag.
  7612. * src/MetalinkEntry.{h, cc}
  7613. * src/RequestResource.{h, cc}
  7614. * src/MetalinkRequestInfo.cc
  7615. * src/Xml2MetalinkProcessor.cc
  7616. * test/Xml2MetalinkProcessorTest.cc
  7617. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Added parameterized URI support.
  7619. * src/main.cc: -Z option added.
  7620. * src/OptionHandlerFactory.cc
  7621. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7622. * src/PStringDatum.h: New class.
  7623. * src/PStringSegment.{h,cc}: New class.
  7624. * src/PStringNumLoop.h: New class.
  7625. * src/PStringSelect.h: New class.
  7626. * src/NumberDecorator.h: New class.
  7627. * src/FixedWidthNumberDecorator.h: New class.
  7628. * src/AlphaNumberDecorator.h: New class.
  7629. * src/PStringVisitor.h: New class.
  7630. * src/PStringBuildVisitor.{h,cc}: New class.
  7631. * src/ParameterizedStringParser.{h,cc}: New class.
  7632. * src/Util.{h,cc}
  7633. (isNumber): New function.
  7634. (isLowercase): New function.
  7635. (isUppercase): New function.
  7636. (alphaToNum): New function.
  7637. * test/ParameterizedStringParserTest.cc: New class.
  7638. * test/AlphaNumberDecoratorTest.cc: New class.
  7639. * test/PStringBuildVisitorTest.cc: New class.
  7640. * test/UtilTest.cc
  7641. (testIsNumber): New function.
  7642. (testIsLowercase): New function.
  7643. (testIsUppercase): New function.
  7644. (testAlphaToNum): New function.
  7645. Added '\n' after the error message
  7646. * src/RequestInfo.h (printDownloadAbortMessage)
  7647. Added auto file renaming feature in http(s)/ftp download.
  7648. * src/main.cc: Added --auto-file-renaming command-line option.
  7649. * src/OptionHandlerFactory.cc
  7650. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  7651. * src/RequestGroup.{h, cc}
  7652. (shouldCancelDownloadForSafety): Rewritten
  7653. (tryAutoFileRenaming): New function.
  7654. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  7655. * src/HttpResponseCommand.cc
  7656. (executeInternal): Removed the call to RequestGroupMan::
  7657. isSameFileBeingDownloaded()
  7658. * src/FtpNegotiateCommand.cc
  7659. (recvSize): Removed the call to RequestGroupMan::
  7660. isSameFileBeingDownloaded()
  7661. * test/RequestGroupTest.cc: New class.
  7662. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7663. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  7664. IO.
  7665. * src/DefaultBtProgressInfoFile.cc
  7666. * src/MetaFileUtil.cc
  7667. * src/SimpleLogger.cc
  7668. * src/SegmentMan.cc
  7669. * src/Util.cc
  7670. * src/Platform.cc
  7671. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7672. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  7673. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7674. Avoid sparse files if possible, because VFAT32 doesn't support it.
  7675. * src/DefaultDiskWriter.cc (initAndOpenFile)
  7676. Fixed the bug that prevents file allocation is not done when
  7677. dowloading multi-torrent file.
  7678. * src/AbstractDiskWriter.cc (openFile)
  7679. Increase the maximum number of -j option from 15 to 45.
  7680. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7681. Added fr.po, thanks to Charles Landemaine.
  7682. * po/fr.po
  7683. * po/LINGUAS
  7684. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7685. gcc 3.4.4 support:
  7686. * src/DefaultBtContext.cc: int32_t -> int
  7687. * src/main.cc: int -> int32_t, int32_t -> int
  7688. * src/messageDigest.h: uint32_t -> unsigned int
  7689. * src/NameResolver.h: int32_t -> int
  7690. * src/PeerConnection.cc: int -> int32_t
  7691. * src/SpeedCalc.cc: int32_t -> int
  7692. * src/TrackerUpdateCommand.h: int -> int32_t
  7693. * src/Util.cc: int32_t -> int
  7694. * src/Util.h: int32_t -> int
  7695. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  7696. * test/AnnounceListTest.cc: int -> int32_t
  7697. * test/ChunkedEncodingTest.cc: int -> int32_t
  7698. * test/DataTest.cc: int -> int32_t
  7699. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  7700. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  7701. * test/DefaultPieceStorageTest.cc: int -> int32_t
  7702. * test/FeatureConfigTest.cc: int -> int32_t
  7703. * test/MetalinkEntryTest.cc: int -> int32_t
  7704. * test/MockBtRequestFactory.h: int -> int32_t
  7705. * test/MockPieceStorage.h: int -> int32_t
  7706. * test/OptionTest.cc: int -> int32_t
  7707. * test/RequestTest.cc: int -> int32_t
  7708. * test/SegmentManTest.cc: int -> int32_t
  7709. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  7710. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7711. Move sleep functions to Util class:
  7712. * src/Util.cc
  7713. (sleep): New function.
  7714. (usleep): New function.
  7715. * src/DownloadCommand.cc: sleep -> Util::sleep
  7716. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  7717. MinGW build enhancements. The following files are added:
  7718. * src/timegm.{c,h}
  7719. Changes to support the above new files:
  7720. * configure.ac
  7721. * src/Makefile.am
  7722. * src/a2time.h
  7723. * src/Util.cc:
  7724. * src/strptime.c: Added support for %Z option.
  7725. Fixed MinGW non-blocking bug.
  7726. * src/SocketCore.cc
  7727. * src/HttpRequestCommand.cc
  7728. Miscellenous build fixes/enhancements.
  7729. * configure.ac: Added summary report.
  7730. * src/Platform.h: Tweaked #include's.
  7731. * src/a2netcompat.h: Tweaked #include's.
  7732. * src/strptime.h: Tweaked #include's.
  7733. * src/gai_strerror.c: Tweaked #include's.
  7734. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7735. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7736. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7737. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7738. Increased the initial connection size in BitTorrent download to 40.
  7739. * src/BtRuntime.h
  7740. Added the usage message of --peer-id-prefix option.
  7741. * src/main.cc
  7742. * Release 0.11.2
  7743. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7744. MessageDigestHelper is introduced in order to simplify the use
  7745. of message digest. Removed repeated code.
  7746. The message digest algorithm is now specified by string, like "sha1",
  7747. "md5".
  7748. * src/messageDigest.{h, cc}
  7749. * src/MessageDigestHelper.{h, cc}: New class.
  7750. * src/DefaultPieceStorage.cc
  7751. * src/DefaultBtContext.{h, cc}
  7752. (computeFastSet): New function.
  7753. (setInfoHash): Added for unit testing.
  7754. (setNumPieces): Added for unit testing.
  7755. * src/DefaultBtInteractive.cc
  7756. * src/BtPieceMessage.cc
  7757. * src/Peer.cc
  7758. * src/Checksum.h
  7759. * src/message.h
  7760. * src/IteratableChecksumValidator.h
  7761. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7762. inside it.
  7763. * src/SegmentMan.{h, cc}
  7764. (checkIntegrity): Removed.
  7765. * src/IteratableChunkChecksumValidator.{h, cc}
  7766. * src/Util.h
  7767. (sha1Sum): Removed.
  7768. (simpleMessageDigest): Removed.
  7769. (fileChecksum): Removed.
  7770. (computeFastSet): Removed.
  7771. * src/ShaVisitor.cc
  7772. * src/ChunkChecksum.h
  7773. * src/DownloadCommand.cc
  7774. Removed messageDigest virtual functions.
  7775. * src/MultiDiskAdaptor.{h, cc}
  7776. * src/DiskAdaptor.h
  7777. * src/ByteArrayDiskWriter.h
  7778. * src/DiskWriter.h
  7779. * src/DiskAdaptorWriter.h
  7780. * src/AbstractSingleDiskAdaptor.{h, cc}
  7781. * src/AbstractDiskWriter.{h, cc}
  7782. Fixed comilation error when message digest is disabled.
  7783. * src/MetalinkEntry.{h, cc}
  7784. * src/MetalinkRequestInfo.cc
  7785. Removed srandom and random.
  7786. * src/SimpleRandomizer.h
  7787. Added size() virtual function to DiskAdaptor
  7788. * src/MultiDiskAdaptor.h
  7789. Fixed the bug that causes that files are not opened correctly in
  7790. multi-file torrent.
  7791. * src/TorrentRequestInfo.cc
  7792. * src/MultiDiskAdaptor.cc
  7793. Added SHA256 support
  7794. * src/messageDigest.cc
  7795. * src/Xml2MetalinkProcessor.cc
  7796. Show supported message digest algorithms
  7797. * src/main.cc
  7798. Updated contact info.
  7799. * src/main.cc
  7800. Applied Ross's patch
  7801. * src/a2netcompat.h
  7802. * src/main.cc
  7803. Fixed the bug that prevents a remote metalink from not being processed
  7804. even if '-o foo.metalink' is specified.
  7805. * src/MetalinkRequestInfo.cc
  7806. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7807. Merged Dan's patch:
  7808. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7809. Use va_copy to avoid core dump on amd64:
  7810. * src/SimpleLogger.cc
  7811. Updated contact info.
  7812. * src/main.cc
  7813. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7814. digest is not available.
  7815. * src/MetalinkEntry.h
  7816. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7817. Make a2netcompat.h include a2io.h to fix compilation error:
  7818. * src/a2netcompat.h
  7819. * src/SocketCore.cc: Removed include of a2io.h
  7820. * src/Util.cc: Removed include of a2io.h
  7821. Gather time related functions to a2time.h:
  7822. * src/a2time.h: New file.
  7823. * src/DefaultPeerStorage.cc
  7824. * src/SimpleLogger.cc
  7825. * src/Util.{h, cc}
  7826. * src/SimpleRandomizer.h
  7827. * src/TimeA2.{h,cc}
  7828. * src/DownloadCommand.cc
  7829. * src/main.cc
  7830. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7831. a2netcompat.h:
  7832. * src/NameResolver.cc
  7833. Fixed compilation error without openssl:
  7834. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7835. Added default block to suppress compiler warnings:
  7836. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7837. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7838. MinGW build enhancements. The following files are added:
  7839. * src/gai_strerror.{c,h}
  7840. * src/gettimeofday.{c,h}
  7841. Changes to support the above new files:
  7842. * configure.ac
  7843. * src/Makefile.am
  7844. * src/a2netcompat.h
  7845. * src/TimeA2.cc
  7846. * src/DefaultPeerStorage.cc
  7847. * src/NameResolver.cc: removed mingw_strerror() function.
  7848. * src/SocketCore.cc: removed mingw_strerror() function.
  7849. Miscellaneous MinGW build fixes.
  7850. * src/a2io.h: Use _lseeki64() instead of lseek()
  7851. * src/common.h
  7852. * src/DefaultFileAllocator.cc
  7853. * src/GlowFileAllocator.cc
  7854. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7855. * src/NameResolver.cc
  7856. (callback): Changed int32_t to int.
  7857. (resolve): Changed int32_t to int.
  7858. * src/Platform.cc
  7859. * src/Platform.h
  7860. * test/MultiDiskWriterTest.cc
  7861. * test/PeerMessageUtilTest.cc
  7862. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7863. Other enhancements and fixes.
  7864. * src/HttpRequestCommand.cc
  7865. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7866. * src/SocketCore.cc:
  7867. (error): New function to abstract errno/WSAGetLastError().
  7868. (errorMsg): New function to abstract errno/WSAGetLastError().
  7869. (initiateSecureConnection): Added more detailed error reporting.
  7870. * src/SocketCore.h: Added private variable blocking, to allow
  7871. proper handling of OpenSSL psuedo-errors.
  7872. * src/message.h
  7873. (EX_SSL_INIT_FAILURE)
  7874. (EX_SSL_IO_ERROR)
  7875. (EX_SSL_PROTOCOL_ERROR)
  7876. (EX_SSL_UNKNOWN_ERROR)
  7877. (EX_SSL_CONNECT_ERROR)
  7878. (EX_SOCKET_BLOCKING)
  7879. (EX_SOCKET_NONBLOCKING)
  7880. (EX_SOCKET_UNKNOWN_ERROR)
  7881. * src/Util.cc
  7882. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7883. reserved name.
  7884. (httpGMT): Fixed typo.
  7885. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7886. Merged Ross's win32 patch(manually)
  7887. In the course of merging, following files are added.
  7888. * src/strptime.{h,c}
  7889. * src/libgen.{h,c}
  7890. * src/inet_aton.{h,c}
  7891. * src/Platform.{h,cc}
  7892. * src/localtime_r.{h,c}
  7893. * src/getaddrinfo.{h,c}
  7894. I've gethered network related things, and put them to following file:
  7895. * src/a2netcompat.h
  7896. Also io related things are put to following file:
  7897. * src/a2io.h
  7898. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7899. * src/message.h
  7900. (MSG_ALLOCATION_COMPLETED)
  7901. (EX_TOO_LARGE_FILE)
  7902. (EX_SIZE_MISMATCH)
  7903. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7904. (EX_INVALID_CHUNK_CHECKSUM)
  7905. (EX_INVALID_RANGE_HEADER)
  7906. * src/FileAllocationCommand.cc
  7907. * src/HttpResponse.cc
  7908. * src/RequestGroup.cc
  7909. * src/MultiDiskAdaptor.cc
  7910. * src/OptionHandlerImpl.h
  7911. * src/HttpResponseCommand.cc
  7912. * src/FtpNegotiateCommand.cc
  7913. * src/IteratableChecksumValidator.cc
  7914. * src/SegmentMan.cc
  7915. * src/ChunkChecksumValidator.cc
  7916. Added Randomizer::getRandomNumber(long int)
  7917. * src/Randomizer.h (getRandomNumber)
  7918. * src/SimpleRandomizer.h (getRandomNumber)
  7919. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  7920. * src/Util.cc (randomAlpha): Use this new function.
  7921. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Converted int's to in32_t. long long int's are also converted to
  7923. int64_t
  7924. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7925. Fixed the bug that prevents cookies from being sent to the server
  7926. if the domain of cookie is FQDN and starts with ".".
  7927. * src/Cookie.cc (match)
  7928. To add the ability to change peer id.
  7929. * src/DefaultBtContext.h
  7930. (_peerIdPrefix): New variable
  7931. (setPeerIdPrefix): New function.
  7932. * src/torrentRequestInfo.cc
  7933. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  7934. DefaultBtContext.
  7935. * src/main.cc (main): Added peer-id-prefix command-line option.
  7936. The usage message is not added yet.
  7937. * src/DefaultBtContext.cc
  7938. (generatePeerId): Use _peerIdPrefix.
  7939. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  7940. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Fixed the bug that prevents filename in content-disposition from
  7942. being retrieved when filename is not quoted.
  7943. * src/Util.cc (getContentDispositionFilename)
  7944. Fixed the bug that causes infinate loop and memory leak when file open
  7945. operation failed.
  7946. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7947. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Fixed the bug that causes segfault when all URIs specified are
  7949. unsupported.
  7950. * src/RequestGroupMan.cc (getInitialCommands)
  7951. Check if RequestGroup::createNextCommand() returns empty list of
  7952. commands.
  7953. * src/RequestGroup.cc (createNextCommand)
  7954. Change log level from info to error so that users can notice that
  7955. an error occurred.
  7956. Fixed the bug that causes segfault when a zero-sized file is
  7957. downloaded.
  7958. * src/BitfieldMan.cc (isAllBitSet)
  7959. Return true if bitfieldLength is 0.
  7960. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7961. * src/main.cc
  7962. (showUsage): Added 3 usage examples for metalink download.
  7963. Replace MetalinkChunkChecksum with ChunkChecksum.
  7964. * src/MetalinkChunkChecksum.h: Removed.
  7965. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7966. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7967. * src/Xml2MetalinkProcessor.cc
  7968. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7969. * src/MetalinkRequestInfo.cc (execute)
  7970. * Release 0.11.1
  7971. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7972. Reads URIs from stdin when "-i -" is specified.
  7973. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7974. * src/UriListParser.h, src/UriListParser.cc: New class.
  7975. * src/StreamUriListParser.h: New class.
  7976. * src/FileUriListParser.h: New class.
  7977. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7978. instead of UriFileListParser.
  7979. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Made console readout more readable.
  7981. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7982. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7983. Fix the bug that causes -s option not to work.
  7984. * src/main.cc (main)
  7985. * src/a2algo.h: New file.
  7986. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Create directory structure specified in metalink file.
  7988. * src/RequestGroup.h, src/RequestGroup.cc
  7989. (initAndOpenFile): Create a directory to store files if it does not
  7990. exist.
  7991. (getDir): New function.
  7992. Added ETA and download speed for an individual file to readout.
  7993. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7994. * src/RequestGroup.h
  7995. (calculateDownloadSpeed): New function.
  7996. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7997. Made -S option work with metalink file and provided selective download
  7998. to metalink.
  7999. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8000. (filename): Removed.
  8001. (file): New variable.
  8002. (size): Removed.
  8003. (operator=): Updated.
  8004. (getPath): New function.
  8005. (getLength): New function.
  8006. (toFileEntry): New function.
  8007. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8008. (execute): Use toStream.
  8009. (showFileEntry): Removed.
  8010. * src/MetalinkRequestInfo.h
  8011. (targetFiles): New variable.
  8012. (setTargetFiles): New variable.
  8013. * src/MetalinkRequestInfo.cc
  8014. (execute): Added the ability to print file information included in
  8015. a metalink file.
  8016. Added selective download mode to metalink.
  8017. * src/main.cc
  8018. (showUsage): Updated to denote that -S and --select-file options are
  8019. applicable to metalink.
  8020. * src/FileEntry.h
  8021. (operator=): New function.
  8022. (getBasename): New function.
  8023. (getDirname): New function.
  8024. * src/Util.h, src/Util.cc
  8025. (toStream): New function.
  8026. * src/Xml2MetalinkProcessor.cc: Updated.
  8027. Made aria2 work with metalink with directory structure.
  8028. * src/File.h, src/File.cc
  8029. (getBasename): New function.
  8030. (getDirname): New function.
  8031. * src/RequestGroup.h, src/RequestGroup.cc
  8032. (_topDir): New variable.
  8033. (setTopDir): New function.
  8034. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8035. Rewrote HTTP header parsing with stringstream.
  8036. * src/HttpConnection.h, src/HttpConnection.cc
  8037. (HttpRequestEntry): New class.
  8038. (headerBuf): Removed.
  8039. (headerBufLength): Removed.
  8040. (outstandingHttpRequests): Now its element type is
  8041. HttpRequestEntryHandle.
  8042. (findEndOfHeader): Removed.
  8043. (receiveResponse): Rewritten.
  8044. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8045. Updated doc for -j option to notice that it should be used with -i
  8046. option.
  8047. * src/main.cc (showUsage)
  8048. Removed unused classes.
  8049. * src/RequestInfo.h
  8050. (FileInfo): Removed.
  8051. (checksum): Removed.
  8052. (fileInfo): Removed.
  8053. (setChecksum): Removed.
  8054. (getChecksum): Removed.
  8055. (getFileInfo): Removed.
  8056. Use ISO units.
  8057. * src/ConsoleDownloadEngine.cc
  8058. * src/TorrentConsoleDownloadEngine.cc
  8059. * src/Util.cc (abbrevSize)
  8060. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Added the default listening ports to the help message.
  8062. * src/main.cc (showUsage)
  8063. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Reduce the number of calls to gettimeofday to lower CPU load.
  8065. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8066. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8067. * src/Peer.h (calculateUploadSpeed): New function.
  8068. (calculateDownloadSpeed): New function.
  8069. * src/DefaultPeerStorage.cc
  8070. (CalculateStat): Added _now variable.
  8071. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8072. and Peer::calculateUploadSpeed(const struct timeval&)
  8073. Drop connection if no request or piece message is exchanged in
  8074. a certain interval.
  8075. * src/DefaultBtInteractive.h
  8076. (btRuntime): New variable.
  8077. (inactiveCheckPoint): New variable.
  8078. (checkActiveInteraction): New function.
  8079. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8080. request or piece message is received.
  8081. (checkActiveInteraction): New function.
  8082. (doInteractionProcessing): Call checkActiveInteraction.
  8083. Fixed the bug that causes remote Metalink and Torrent files are not
  8084. processed.
  8085. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8086. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8087. Changed format of log file.
  8088. * src/SimpleLogger.cc
  8089. * Release 0.11.0
  8090. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. * src/AbstractCommand.cc
  8092. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8093. MSG_MAX_TRY from error to info.
  8094. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8095. * src/message.h
  8096. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8097. (MSG_DOWNLOAD_ABORTED): Added %s.
  8098. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8099. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8100. * src/PeerAbstractCommand.cc
  8101. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8102. * src/Request.h
  8103. (cookieBox): Made ShardHandle.
  8104. * src/RequestGroup.h, src/RequestGroup.cc
  8105. (createNextCommandWithAdj): New function.
  8106. * src/FileAllocationCommand.cc
  8107. (executeInternal): Use createNextCommandWithAdj().
  8108. * src/CheckIntegrityCommand.cc
  8109. (executeInternal): Use createNextCommandWithAdj().
  8110. Added --load-cookies command-option.
  8111. * src/OptionHandlerFactory.cc
  8112. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8113. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8114. Now aria2 can handle cookie's expiration date.
  8115. * src/Cookie.h (expires): Changed its type to time_t.
  8116. * src/main.cc: Added --load-cookies command-line option.
  8117. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8118. * src/Util.h, src/Util.cc (httpGMT): New function.
  8119. * src/Request.cc (Request): Initialize cookieBox using
  8120. CookieBoxFactory.
  8121. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8122. * src/CookieParser.h, src/CookieParser.cc: New class.
  8123. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8124. * src/HttpResponseCommand.cc
  8125. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8126. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8127. download.
  8128. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. Added -j command-line option.
  8130. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8131. * src/main.cc
  8132. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8133. Rewritten using stringstream.
  8134. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8135. Rewritten using stringstream.
  8136. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Make download size shown in MB, KB.
  8138. * src/ConsoleDownloadEngine.h (sendStatistics)
  8139. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8140. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8141. Accept incoming connections if download rate is low.
  8142. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8143. (_lowestSpeedLimit): New variable.
  8144. (setLowestSpeedLimit): New function.
  8145. (execute): Accept incoming connections if download rate is low.
  8146. MAX_PEERS is ignored in this case.
  8147. Disable PREF_OUT in multiple concurrent download:
  8148. * src/RequestGroup.h, src/RequestGroup.cc
  8149. (setUserDefinedFilename): New function.
  8150. * src/DownloadEngineFactory.cc
  8151. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8152. concurrent download.
  8153. * src/DefaultSegmentManFactory.cc
  8154. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8155. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8157. Added its overloaded method.
  8158. * src/RequestGroup.h
  8159. (_numConcurrentCommand): New variable.
  8160. (setNumConcurrentCommand): New function.
  8161. * src/RequestGroup.cc
  8162. Abort download if same file is being downloaded concurrently.
  8163. * src/RequestGroup.h, src/RequestGroupMan.cc
  8164. (isSameFileBeingDownloaded): New function.
  8165. * src/HttpResponseCommand.cc (executeInternal)
  8166. * src/FtpNegotiateCommand.cc (recvSize)
  8167. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8168. * main.cc: Added help message for -i option.
  8169. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8171. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8172. * src/MetalinkEntry.h
  8173. (checksum): Changed to ChecksumHandle
  8174. * src/MetalinkRequestInfo.cc
  8175. (checksum): Changed to ChecksumHandle
  8176. * src/File.cc
  8177. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8178. * src/common.h
  8179. (DIR_OPEN_MODE): New definition
  8180. * src/RequestGroup.cc
  8181. (prepareForNextAction): Added an argument.
  8182. * src/message.h
  8183. (MSG_GOOD_CHECKSUM): New definition
  8184. (MSG_BAD_CHECKSUM): New definition
  8185. * src/HttpResponseCommand.cc
  8186. (handleDefaultEncoding): Continue download sequence in new
  8187. non-segmented download.
  8188. * src/FileAllocationEntry.h
  8189. (_nextDownloadCommand): New variable.
  8190. * src/DownloadCommand.cc
  8191. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8192. available.
  8193. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8194. * src/IteratableChecksumValidator.h,
  8195. src/IteratableChecksumValidator.cc: New class.
  8196. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8197. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Change file mode to 666:
  8199. * src/common.h (OPEN_MODE): New definition.
  8200. * src/File.cc
  8201. * src/Util.cc
  8202. * src/Directry.cc
  8203. * src/AbstractDiskWriter.cc
  8204. Change the level of log message "download aborted" to debug:
  8205. * src/PeerAbstractCommand.cc (execute)
  8206. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8207. * src/TrackerWatcherCommand.cc
  8208. (createCommand): Sleep some seconds after request failed.
  8209. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8210. then abort tracker request.
  8211. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8212. * Added the simultaneous download feature.
  8213. * src/main.cc: Print "Exception caught: " when exception is caught.
  8214. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8215. * src/ActivePeerConnectionCommand.cc
  8216. * src/PeerInteractionCommand.cc
  8217. * src/BtRuntime.h
  8218. (cuidCounter): Removed.
  8219. (getNewCuid): Removed.
  8220. * src/DownloadEngineFactory.cc
  8221. * src/PeerListenCommand.cc
  8222. * src/TrackerUpdateCommand.cc
  8223. * src/PeerInitiateConnectionCommand.cc
  8224. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8225. * src/PeerAbstractCommand.cc
  8226. (onAbort): Call PeerStorage::returnPeer()
  8227. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8228. (incomingPeers): New variable.
  8229. (addIncomingPeer): New function.
  8230. (returnPeer): New function.
  8231. (onErasingPeer): New function.
  8232. (addPeer): push_back -> push_front
  8233. (getActivePeers): Rewritten.
  8234. (calculateStat): Rewritten.
  8235. * src/PeerStorage.h
  8236. (TransferStat::copy): New function.
  8237. (TransferStat::TransferStat): New function.
  8238. (TransferStat::operator=): New function.
  8239. (addIncomingPeer): New function.
  8240. (returnPeer): New function.
  8241. * src/PeerListenCommand.cc
  8242. (execute): Use PeerStorage::addIncomingPeer() instead of
  8243. Peer::addPeer().
  8244. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8245. Connect to a peer actively when download speed is lower than specified
  8246. speed in torrent download:
  8247. * src/ActivePeerConnectionCommand.h: New class.
  8248. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8249. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8250. * src/main.cc: Fixed the bug that prevents download if .netrc
  8251. doesn't exist.
  8252. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8253. To cache resolved hostname:
  8254. * src/AbstractCommand.h, src/AbstractCommand.cc
  8255. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8256. Added dns cache.
  8257. * src/FtpInitiateConnectionCommand.cc
  8258. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8259. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8260. NameResolver working without ares.
  8261. * src/TorrentRequestInfo.cc
  8262. (execute): Don't cache dns in torrent download.
  8263. * src/HttpInitiateConnectionCommand.cc
  8264. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8265. * src/DNSCache.h: New class.
  8266. * src/UrlRequestInfo.cc
  8267. (execute): Use dns cache.
  8268. In http request, suppress port number in http request header if port
  8269. is 80 or 443:
  8270. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8271. request header if port is 80 or 443.
  8272. (createProxyRequest): Allways send port number.
  8273. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. To add the command-line option which disables netrc support:
  8275. * src/OptionHandlerFactory.cc
  8276. (createOptionHandlers): Added PREF_NO_NETRC.
  8277. * src/main.cc: Added -n option.
  8278. * src/prefs.h (PREF_NO_NETRC): New definition.
  8279. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8280. V_TRUE.
  8281. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8282. is V_FALSE. This may get configurable in the future release.
  8283. To clear peer's error status by time basis:
  8284. * src/PeerAbstractCommand.cc
  8285. (onAbort): Call Peer::startBadCondition().
  8286. * src/Peer.h, src/Peer.cc
  8287. (error): Removed.
  8288. (_badConditionStartTime): New variable.
  8289. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8290. (startBadCondition): New function.
  8291. (isGood): New function.
  8292. * src/DefaultPeerStorage.cc
  8293. (addPeer): Use Peer::isGood().
  8294. (FindFinePeer): Use Peer::isGood().
  8295. Always include port number in http request header:
  8296. * src/HttpRequest.cc (getHostText): Always include port number in
  8297. http request header.
  8298. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. To the ability to read options from a config file:
  8300. * src/main.cc: Command-line parameter validation is delegated to
  8301. OptionHandler class.
  8302. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8303. * src/Option.h, src/Option.cc (clear): New function.
  8304. * src/OptionParser.h, src/OptionParser.cc: New class.
  8305. * src/OptionHandler.h: New class.
  8306. * src/NameMatchOptionHandler.h: New class.
  8307. * src/OptionHandlerImpl.h: New classes.
  8308. * src/prefs.h: '_' -> '-'
  8309. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8310. (FTP_PASV): New definition.
  8311. * src/Util.h, src/Util.cc (getRealSize): New function.
  8312. To disable netrc support if .netrc file does not have correct
  8313. permissions:
  8314. * src/File.h, src/File.cc (mode): New function.
  8315. To prevent confidential information to be logged:
  8316. * src/HttpConnection.h, src/HttpConnection.cc
  8317. (eraseConfidentialInfo): New function.
  8318. (sendRequest): Call eraseConfidentialInfo().
  8319. (sendProxyRequest): Call eraseConfidentialInfo().
  8320. * src/main.cc: Validate permissions of .netrc file.
  8321. To add --user-agent command-line option:
  8322. * src/main.cc: Added new command line option: --user-agent
  8323. * src/prefs.h (PREF_USER_AGENT): New definition.
  8324. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8325. parameter to HttpRequest object.
  8326. * src/AbstractProxyRequestCommand.cc
  8327. (executeInternal): Set user-agent option parameter to HttpRequest
  8328. object.
  8329. Marged the patches from Dan Fandrich.
  8330. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8331. Use filename and size from Metalink file instead of sending HEAD
  8332. request:
  8333. * src/UrlRequestInfo.h
  8334. (_filename): New variable.
  8335. (_totalLength): New variable.
  8336. (setTotalLength): New variable.
  8337. (setFilename): New variable.
  8338. * src/MetalinkRequestInfo.cc
  8339. (execute): Set filename and size to UrlRequestInfo
  8340. * src/UrlRequestInfo.cc
  8341. (execute): Use filename and size from Metalink instead of seding
  8342. HEAD request to servers.
  8343. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. To add the ability to resume downloading a partially downloaded file
  8345. which is downloaded from the beginning:
  8346. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8347. takes this role.
  8348. * src/main.cc: Added -c option.
  8349. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8350. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8351. * src/prefs.h (PREF_CONTINUE): New definition.
  8352. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8353. * src/DefaultDiskWriter.cc
  8354. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8355. * src/AbstractDiskWriter.h
  8356. (glowFileAllocator): New variable.
  8357. * src/AbstractDiskWriter.cc
  8358. (openExistingFile): Now preallocate file space from the end of the
  8359. existing file if totalLength argument is specified and grater than 0.
  8360. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8361. to download exists in local, continue the download of the file.
  8362. --allow-overwrite=true is assumed in this context.
  8363. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8364. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8365. Throw exception if --check-integrity=true is specified but chunk
  8366. checksums are not provided:
  8367. * src/UrlRequestInfo.cc
  8368. Do not print URLs to stdout:
  8369. * src/UrlRequestInfo.cc
  8370. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. * src/Request.h: Use AuthResolver to get authentication information.
  8372. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8373. set to RequestFactory object.
  8374. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8375. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8376. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8377. create Request object.
  8378. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8379. To integrate Netrc into exsiting classes:
  8380. * src/Request.h
  8381. (_userDefinedAuthConfig): New variable.
  8382. (findNetrcAuthenticator): New function.
  8383. (segment): Removed.
  8384. (setUserDefinedAuthConfig): New function.
  8385. (resolveHttpAuthConfigItem): New function.
  8386. (resolveFtpAuthConfigItem): New function.
  8387. (resolveHttpProxyAuthConfigItem): New function.
  8388. * src/HttpRequest.h
  8389. (authConfig): Removed.
  8390. (proxyAuthConfig): Removed.
  8391. (setAuthConfig): Removed.
  8392. (setProxyAuthConfig): Removed.
  8393. * src/UrlRequest.h
  8394. (getHeadResult): Added a parameter: authConfigHandle
  8395. * src/common.h
  8396. (SingletonHolder.h): New include.
  8397. * src/main.cc
  8398. (Netrc.h): New include.
  8399. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8400. Added initial value of PREF_NETRC_PATH.
  8401. Added the initialization of netrc.
  8402. * src/AuthConfig.h: New class.
  8403. * src/prefs.h
  8404. (PREF_NETRC_PATH): New definition.
  8405. * src/HttpAuthConfig.h: Removed.
  8406. * src/Netrc.cc
  8407. (getRequiredNextToken): New function.
  8408. (skipMacdef): New function.
  8409. (parse): Rewritten.
  8410. * src/Netrc.h
  8411. (getRequiredNextToken): New function.
  8412. (skipMacdef): New function.
  8413. * src/Util.h, src/Util.cc
  8414. (getHomeDir): New function.
  8415. * src/TrackerWatcherComand.cc
  8416. (createRequestCommand): Use AuthConfig.
  8417. * src/FtpConnection.cc
  8418. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8419. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8420. * src/Request.cc
  8421. (findNetrcAuthenticator): New function.
  8422. (resolveHttpAuthConfigItem): New function.
  8423. (resolveFtpAuthConfigItem): New function.
  8424. (resolveHttpProxyAuthConfigItem): New function.
  8425. * src/UrlRequestInfo.cc: Use AuthConfig.
  8426. * src/HttpRequest.cc
  8427. (createRequest): Use authConfig.
  8428. (getProxyAuthString): Use authConfig.
  8429. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8430. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8431. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. To reduce overhead to find commands whose socket is either
  8433. readable or writable in the download engine loop:
  8434. * src/Command.h, src/Command.cc
  8435. (STATUS): New enum.
  8436. (status): New variable.
  8437. (statusMatch): New function.
  8438. (setStatusActive): New function.
  8439. (setStatusInactive): New function.
  8440. * src/DownloadEngine.h, src/DownloadEngine.cc
  8441. (executeCommand): New function.
  8442. (run): Simplified.
  8443. (waitData): Call Command::setStatusActive() when command's socket is
  8444. readable or writable.
  8445. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8446. To handle Segment as SegmentHandle:
  8447. * src/AbstractCommand.cc (execute): Rewritten.
  8448. * src/SegmentMan.h: Segment -> SegmentHandle
  8449. Introducded HttpResponse class, HttpRequest class to improve code
  8450. extensiveness and make it clear:
  8451. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8452. HttpResponse class.
  8453. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8454. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8455. * src/HttpConnection.cc: Contruction of http request were moved to
  8456. HttpRequest class.
  8457. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8458. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8459. * src/HttpAuthConfig.h: New class.
  8460. * src/Range.h: New class.
  8461. To make FtpTunnel{Request, Response}Command and
  8462. HttpProxy{Request, Response}Command derived from
  8463. AbstractProxy{Request, Response}Command:
  8464. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8465. Derived from AbstractProxyRequestCommand class.
  8466. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8467. Derived from AbstractProxyResponseCommand class.
  8468. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8469. Derived from AbstractProxyRequestCommand class.
  8470. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8471. Derived from AbstractProxyResponseCommand class.
  8472. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8473. : New class.
  8474. * src/AbstractProxyResponseCommand.h,
  8475. src/AbstractProxyResponseCommand.cc: New class.
  8476. To add netrc support:
  8477. * src/Netrc.h, src/Netrc.cc: New class.
  8478. * src/Util.h, src/Util.cc (split): New function.
  8479. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8480. "Content-Range" header instead of "Range" header.
  8481. * src/HttpHeader.h
  8482. (getStatus): Removed.
  8483. (setStatus): Removed.
  8484. * src/Segment.h
  8485. (getPositionToWrite): New function.
  8486. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. * src/HttpHeader.h
  8488. (Range.h): New include.
  8489. (status): New variable.
  8490. (HttpHeader): Initialized status with 0.
  8491. (getStatus): New function.
  8492. (setStatus): New function.
  8493. (getRange): New function.
  8494. (HttpHeaderHandle): New function.
  8495. * src/HttpHeader.cc
  8496. (getRange): New function.
  8497. * src/Request.h
  8498. (RequestWeakHandle): New definition.
  8499. * src/HttpConnection.h
  8500. (HttpConnectionHandle): New type definition.
  8501. * src/HttpConnection.cc
  8502. (receiveResponse): Set HTTP status to headers.
  8503. * src/main.cc
  8504. (showUsage): Fixed typo.
  8505. * src/Segment.h
  8506. (SegmentHandle): New type definition.
  8507. * src/BitfieldMan.h
  8508. (getMissingUnusedLength): New function.
  8509. * src/BitfieldMan.cc
  8510. (getMissingUnusedLength): New function.
  8511. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8512. To fix static initialization order problem:
  8513. * src/BitfieldManFactory.h
  8514. (defaultRandomizer): Removed.
  8515. (factory): New variable.
  8516. (getNewFactory): Removed.
  8517. (getFactoryInstance): New function.
  8518. (setDefaultRandomizer): Rewritten.
  8519. (getDefaultRandomizer): Rewritten.
  8520. * src/BitfieldManFactory.cc
  8521. (defaultRandomizer): Removed.
  8522. (factory): Initialized to 0.
  8523. (BitfieldManFactory): Initialized randomizer to 0.
  8524. * src/DefaultPieceStorage.cc
  8525. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8526. * src/Peer.cc
  8527. (Peer): getNewFactory() -> getFactoryInstance()
  8528. * src/SegmentMan.cc
  8529. (initBitfield): getNewFactory() -> getFactoryInstance()
  8530. * src/Piece.cc
  8531. (Piece): getNewFactory() -> getFactoryInstance()
  8532. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8533. To fix the bug that causes crash on Max OS X:
  8534. * src/SimpleRandomizer.h
  8535. (getInstance): Create new instance if the static variable is null.
  8536. * src/SimpleRandomizer.cc
  8537. (randomizer): Initialized to 0.
  8538. * src/BitfieldManFactory.h
  8539. (getNewFactory): Removed the call to setRandomizer().
  8540. To fix the miscalculation of the range of checksum:
  8541. * src/BitfieldMan.h
  8542. (isBitSetOffsetRange): New function.
  8543. * src/BitfieldMan.cc
  8544. (isBitSetOffsetRange): New function.
  8545. * src/SegmentMan.cc
  8546. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8547. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8548. * Release 0.10.1
  8549. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. To lower CPU usage in BitTorrent download when --max-upload-limit
  8551. command-line option specified:
  8552. * src/DefaultBtMessageDispatcher.cc
  8553. (sendMessages): Calculate uploading speed only when current message
  8554. is uploading data and is not sent yet.
  8555. * src/DefaultPeerStorage.h
  8556. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8557. * src/HttpResponseCommand.cc
  8558. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8559. This fixes compile error in Soralis 10.
  8560. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. To fix segfault in Metalink download:
  8562. * src/UrlRequestInfo.h
  8563. (filename): Removed.
  8564. (totalLength): Removed.
  8565. (setTotalLength): Removed.
  8566. (setFilename): Removed.
  8567. * src/MetalinkRequestInfo.cc
  8568. (execute): Do not set filename and totalLength to reqInfo.
  8569. Set chunk checksum to reqInfo if it is not null.
  8570. * src/HttpResponseCommand.cc
  8571. (executeInternal): Fixed filename in log.
  8572. (handleDefaultEncoding): Removed the call to initBitfield() and
  8573. markAllPiecesDone().
  8574. (handleOtherEncoding): Added HEAD method handling.
  8575. * src/FtpNegotiateCommand.cc
  8576. (executeInternal): Added SEQ_HEAD_OK handling.
  8577. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8578. return false.
  8579. * src/FtpNegotiateCommand.h
  8580. (SEQ_HEAD_OK): New definition.
  8581. * src/SegmentMan.cc
  8582. (initBitfield): Delete bitfield.
  8583. (isChunkChecksumValidationReady): Fixed the condition.
  8584. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8585. works fine.
  8586. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8587. * src/Xml2MetalinkProcessor.h
  8588. (xpathExists): New function.
  8589. * src/Xml2MetalinkProcessor.cc
  8590. (xpathExists): New function.
  8591. Not to send HEAD request if filename and size are available in Metalink
  8592. file:
  8593. * src/UrlRequestInfo.h
  8594. (filename): New variable.
  8595. (totalLength): New variable.
  8596. (setTotalLength): New function.
  8597. (setFilename): New function.
  8598. * src/MetalinkRequestInfo.cc
  8599. (execute): Set filename and size to UrlRequestInfo.
  8600. * src/MetalinkEntry.cc
  8601. (MetalinkEntry): Initialize size with 0.
  8602. * src/UrlRequestInfo.cc
  8603. (execute): Set filename and size to SegmentMan.
  8604. Not to download rest of the files after selected files are downloaded
  8605. in BitTorrent:
  8606. * src/PieceStorage.h
  8607. (allDownloadFinished): New function.
  8608. * src/DefaultBtAnnounce.cc
  8609. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8610. downloadFinished.
  8611. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8612. * src/DefaultPieceStorage.cc
  8613. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8614. Commented out the call to finishSelectiveDownloadingMode().
  8615. (downloadFinished): Call isFilteredAllBitSet() instead of
  8616. isAllBitSet().
  8617. (allDownloadFinished): New function.
  8618. * src/DefaultBtInteractive.cc
  8619. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8620. downloadFinished().
  8621. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8622. * src/TorrentDownloadEngine.cc
  8623. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8624. * src/BitfieldMan.h
  8625. (isFilteredAllBitSet): New function.
  8626. * src/ShareRatioSeedCriteria.h
  8627. (PieceStorage.h): New include.
  8628. (pieceStorage): New variable.
  8629. (evaluate):
  8630. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8631. * src/BitfieldMan.cc
  8632. (isFilteredAllBitSet): New function.
  8633. (isAllBitSet): Filter is not took into account.
  8634. Rename --force-truncate as --allow-overwrite:
  8635. * src/TorrentRequestInfo.cc
  8636. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8637. * src/main.cc
  8638. (showUsage): --force-truncate -> --allow-overwrite
  8639. * src/message.h
  8640. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8641. * src/prefs.h
  8642. (PREF_FORCE_TRUNCATE): Removed.
  8643. (PREF_ALLOW_OVERWRITE): New definition.
  8644. * src/SegmentMan.cc
  8645. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  8646. * src/MetalinkRequestInfo.cc
  8647. (execute): Queueing message are now logged in info level.
  8648. * src/common.h
  8649. (LONG_LONG_MAX): Removed.
  8650. (LONG_LONG_MIN): Removed.
  8651. * src/HttpResponseCommand.cc
  8652. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  8653. * src/FtpNegotiateCommand.cc
  8654. (recvSize): LONG_LONG_MAX -> INT64_MAX
  8655. * src/main.cc
  8656. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  8657. command-line option.
  8658. (main): Added --check-integriy and --realtime-chunk-checksum
  8659. command-line option.
  8660. --force-truncate -> --allow-overwrite
  8661. Set initial value of --check-integrity option to false.
  8662. Don't show usage when error occurs while persing command-line options.
  8663. Removed deprecated --upload-limit option.
  8664. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8665. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  8666. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  8667. * src/BtAllowedFastMessage.cc:
  8668. * src/BtBitfieldMessage.cc
  8669. * src/BtCancelMessage.cc
  8670. * src/BtChokeMessage.cc
  8671. * src/BtHaveAllMessage.cc
  8672. * src/BtHaveMessage.cc
  8673. * src/BtHaveNoneMessage.cc
  8674. * src/BtInterestedMessage.cc
  8675. * src/BtNotInterestedMessage.cc
  8676. * src/BtPieceMessage.cc
  8677. * src/BtPortMessage.cc
  8678. * src/BtRejectMessage.cc
  8679. * src/BtRequestMessage.cc
  8680. * src/BtSuggestPieceMessage.cc
  8681. * src/BtUnchokeMessage.cc
  8682. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  8683. files are affected.
  8684. * src/ChunkChecksumValidator.cc
  8685. * src/SegmentMan.cc
  8686. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8687. To add chunk checksum validation:
  8688. * src/MetalinkEntry.h
  8689. (MetalinkChunkChecksum.h): New include.
  8690. (chunkChecksum): New variable.
  8691. * src/Request.h
  8692. (method): New variable.
  8693. (setMethod): New function.
  8694. (getMethod): New function.
  8695. (METHOD_GET): New static constant.
  8696. (METHOD_HEAD): New static constant.
  8697. * src/Xml2MetalinkProcessor.h
  8698. (getPieceHash): New function.
  8699. * src/PieceStorage.h
  8700. (markAllPiecesDone): New function.
  8701. (checkIntegrity): New function.
  8702. * src/FileAllocator.h
  8703. (NullFileAllocationMonitor.h): New include.
  8704. (FileAllocator): Initialize fileAllocationMonitor with new
  8705. NullFileAllocationMonitor().
  8706. * src/MultiDiskAdaptor.h
  8707. (messageDigest.h): Remove include.
  8708. (ctx): Removed.
  8709. (hashUpdate): Added ctx.
  8710. (MultiDiskAdaptor): Removed ctx.
  8711. (sha1Sum): Renamed as messageDigest.
  8712. (messageDigest): New function.
  8713. * src/UrlRequestInfo.h
  8714. (HeadResult): New class.
  8715. (digestAlgo): New variable.
  8716. (chunkChecksumLength): New variable.
  8717. (chunkChecksums): New variable.
  8718. (getHeadResult): New function.
  8719. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  8720. (setDigestAlgo): New function.
  8721. (setChunkChecksumLength): New function.
  8722. (setChunkChecksums): New function.
  8723. * src/DefaultPieceStorage.cc
  8724. (DiskAdaptorWriter.h): New include.
  8725. (ChunkChecksumValidator.h): New include.
  8726. (markAllPiecesDone): New function.
  8727. (checkIntegrity): New function.
  8728. * src/DefaultBtContext.h
  8729. (getPieceHashes): New function.
  8730. * src/TorrentRequestInfo.cc
  8731. (execute): Try to validate chunk checksum if file already exists and
  8732. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8733. * src/messageDigest.h
  8734. (~MessageDigestContext): Added digestFree().
  8735. * src/MetalinkRequestInfo.cc
  8736. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8737. * src/DiskAdaptor.h
  8738. (messageDigest.h): New include.
  8739. (sha1Sum): Renamed as messageDigest.
  8740. (messageDigest): New function.
  8741. * src/DownloadCommand.h
  8742. (PeerStat.h): New include.
  8743. (maxDownloadSpeedLimit): New variable.
  8744. (startupIdleTime): New variable.
  8745. (lowestDownloadSpeedLimit): New variable.
  8746. (peerStat): New variable.
  8747. (setMaxDownloadSpeedLimit): New function.
  8748. (setStartupIdleTime): New function.
  8749. (setLowestDownloadSPeedLimit): New function.
  8750. * src/BtContext.h
  8751. (getPieceHashes): New function.
  8752. * src/main.cc
  8753. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8754. option to true for testing purpose.
  8755. * src/BtPieceMessage.cc
  8756. (checkPieceHash): Use messageDigest
  8757. * src/DownloadEngine.cc
  8758. (SetDescriptor): Removed.
  8759. (AccumulateActiveCommand): Removed.
  8760. (waitData): Rewritten.
  8761. (updateFdSet): Rewritten.
  8762. * src/MultiDiskAdaptor.cc
  8763. (hashUpdate): Added ctx.
  8764. (sha1Sum): Renamed as messageDigest.
  8765. (messageDigest): New function.
  8766. * src/BitfieldMan.h
  8767. (isBitRangeSet): New function.
  8768. (unsetBitRange): New function.
  8769. * src/ByteArrayDiskWriter.h
  8770. (sha1Sum): Renamed as messageDigest.
  8771. (messageDigest): New function.
  8772. * src/ConsoleDownloadEngine.cc
  8773. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8774. * src/DiskWriter.h
  8775. (messageDigest.h): New include.
  8776. (sha1Sum): Renamed as messageDigest.
  8777. (messageDigest): New function.
  8778. * src/ChunkChecksumValidator.h: New class.
  8779. * src/DiskAdaptorWriter.h: New class.
  8780. * src/prefs.h
  8781. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8782. (PREF_CHECK_INTEGRITY): New definition.
  8783. * src/HttpResponseCommand.cc
  8784. (handleDefaultEncoding): Added method "HEAD" handling.
  8785. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8786. (handleOtherEncoding):
  8787. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8788. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8789. startupIdleTime, lowestDownloadSpeedLimit to command.
  8790. * src/SegmentMan.h
  8791. (getSegmentEntryByIndex): New function.
  8792. (getSegmentEntryByCuid): New function.
  8793. (getSegmentEntryIteratorByCuid): New function.
  8794. (diskWriter): DiskWriter -> DiskWriterHandle
  8795. (pieceHashes): New variable.
  8796. (chunkHashLength): New variable.
  8797. (digestAlgo): New variable.
  8798. (FindPeerStat): Removed.
  8799. (getPeerStat): Rewritten.
  8800. (markAllPiecesDone): New function.
  8801. (checkIntegrity): New function.
  8802. (tryChunkChecksumValidation): New function.
  8803. (isChunkChecksumValidationReady): New function.
  8804. * src/BitfieldMan.cc
  8805. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8806. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8807. blocks to 0.
  8808. (isBitRangeSet): New function.
  8809. (unsetBitRange): New function.
  8810. * src/FtpNegotiateCommand.cc
  8811. (executeInternal): Set maxDownloadSpeedLimit,
  8812. startupIdleTime, lowestDownloadSpeedLimit to command.
  8813. (recvSize): Added method "HEAD" handling.
  8814. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8815. * src/AbstractSingleDiskAdaptor.cc
  8816. (sha1Sum): Renamed as messageDigest.
  8817. (messageDigest): New function.
  8818. * src/AbstractSingleDiskAdaptor.h
  8819. (sha1Sum): Renamed as messageDigest.
  8820. (messageDigest): New function.
  8821. * src/Util.h
  8822. (indexRange): New function.
  8823. * src/MetalinkEntry.cc
  8824. (MetalinkEntry): Initialized chunkChecksum to 0.
  8825. * src/ShaVisitor.cc
  8826. (~ShaVisitor): Removed the call to ctx.digestFree().
  8827. * src/SegmentMan.cc
  8828. (ChunkChecksumValidator.h): New include.
  8829. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8830. to DIGEST_ALGO_SHA1.
  8831. (~SegmentMan): Removed diskWriter.
  8832. (FindSegmentEntryByIndex): Removed.
  8833. (FindSegmentEntryByCuid): Removed.
  8834. (checkoutSegment): Rewritten.
  8835. (findSlowerSegmentEntry): Rewritten.
  8836. (getSegment): Rewritten.
  8837. (updateSegment): Rewritten.
  8838. (completeSegment): Rewritten.
  8839. (markAllPiecesDone): New function.
  8840. (checkIntegrity): New function.
  8841. (isChunkChecksumValidationReady): New function.
  8842. (tryChunkChecksumValidation): New function.
  8843. * src/Xml2MetalinkProcessor.cc
  8844. (getEntry): Get size and set it to entry.
  8845. Get chunk checksum and set it to entry.
  8846. (getPieceHash): New function.
  8847. * src/Util.cc
  8848. (sha1Sum): Removed ctx.digestFree()
  8849. (fileChecksum): Removed ctx.digestFree()
  8850. (indexRange): New function.
  8851. * src/Request.cc
  8852. (METHOD_GET): New variable.
  8853. (METHOD_HEAD): New variable.
  8854. (Request): Added method.
  8855. * src/UrlRequestInfo.cc
  8856. (FatalException.h): New include.
  8857. (message.h): New include.
  8858. (operator<<): Added operator<< for class HeadResult.
  8859. (getHeadResult): New function.
  8860. (execute): Get filename and size in separate download engine.
  8861. * src/ChunkChecksumValidator.cc: New class.
  8862. * src/DownloadCommand.cc:
  8863. (DownloadCommand): Added peerStat.
  8864. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8865. the value from Option.
  8866. The buffer size is now 16KB.
  8867. Use peerStat member instead of getting it from SegmentMan.
  8868. Use startupIdleTime member instead of gettingit from Option.
  8869. Added chunk checksum validation.
  8870. * src/AbstractDiskWriter.cc
  8871. (AbstractDiskWriter): Removed ctx.
  8872. (~AbstractDiskWriter): Removed ctx.digestFree()
  8873. (writeDataInternal): Returns the return value of write.
  8874. (readDataInternal): Returns the return value of read.
  8875. (sha1Sum): Renamed as messageDigest
  8876. (messageDigest): New function.
  8877. * src/AbstractDiwkWriter.h
  8878. (messageDigest.h): Removed include.
  8879. (ctx): Removed.
  8880. (sha1Sum): Renamed as messageDigest
  8881. (messageDigest): New function.
  8882. * src/DefaultPieceStorage.h
  8883. (markAllPiecesDone): New function.
  8884. (checkIntegrity): New function.
  8885. * src/NullFileAllocationMonitor.h: New class.
  8886. * src/MetalinkChunkChecksum.h: New class.
  8887. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8888. To decrease CPU usage in bittorrent download, calculation results in
  8889. BitfieldMan were cached and realtime fetching PeerObject was removed
  8890. with WeakHandle introduced. Option values are set to the objects
  8891. by setter before download begins.
  8892. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8893. * src/DefaultBtRequestFactory.h
  8894. (dispatcher): BtMessageDispatcherHandle ->
  8895. BtMessageDispatcherWeakHandle.
  8896. (messageFactory): New variable.
  8897. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8898. BtMessageDispatcherWeakHandle.
  8899. (setBtMessageFactory): New function.
  8900. * src/DefaultBtMessageDispatcher.cc:
  8901. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8902. from Option.
  8903. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8904. feating the value from Option.
  8905. Use messageFactory member.
  8906. * src/PeerInteractionCommand.cc
  8907. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  8908. Add reverse dependencies to factory object.
  8909. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  8910. dispatcher.
  8911. Set messageFactory to receiver.
  8912. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  8913. btInteractive.
  8914. Set receiver to peerObject.
  8915. Set maxDownloadSpeedLimit to this.
  8916. (executeInternal): Use maxDownloadSpeedLimit member.
  8917. * src/BtChokeMessage.cc
  8918. (doReceivedAction): Use dispatcher, requestFactory member.
  8919. (onSendComplete): Use dispatcher member.
  8920. * src/PeerInteractionCommand.h
  8921. (maxDownloadSpeedLimit): New variable.
  8922. * src/DefaultBtMessageReceiver.h
  8923. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8924. (dispatcher):
  8925. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8926. (messageFactory): New variable.
  8927. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8928. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8929. (setDispatcher):
  8930. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8931. (setBtMessageFactory): New function.
  8932. * src/DefaultBtInteractive.cc
  8933. (initiateHandshake): Use messageFactory member.
  8934. (addBitfieldMessageToQueue): Use messageFactory member.
  8935. (addAllowedFastMessageToQueue): Use messageFactory member.
  8936. (decideChoking): Use messageFactory member.
  8937. (checkHave): Use messageFactory member.
  8938. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  8939. (receiveMessages): Use maxDownloadSpeedLimit member.
  8940. (decideInterest): Use messageFactory member.
  8941. * src/BtRequestMessage.cc
  8942. (doReceivedAction): Use messageFactory, dispatcher member.
  8943. (onQueued): Use dispatcher member.
  8944. * src/BtPieceMessage.cc
  8945. (doReceivedAction): Use dispatcher member.
  8946. (send): Use peerConnection member.
  8947. (onWrongPiece): Use requestFactory member.
  8948. (handleChokingEvent): Use messageFactory, dispatcher member.
  8949. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  8950. * src/BtMessageDispatcher.h
  8951. (BtMessageDispatcherWeakHandle): New type definition.
  8952. * src/SimpleBtMessage.cc
  8953. (send): Use peerConnection member.
  8954. * src/BtRejectMessage.cc
  8955. (doReceivedAction): Use dispatcher member.
  8956. * src/DefaultBtMessageDispatcher.h
  8957. (Option.h): Removed include.
  8958. (messageFactory): New variable.
  8959. (option): Removed.
  8960. (maxUploadSpeedLimit): New variable.
  8961. (requestTimeout): New variable.
  8962. (DefaultBtMessageDispatcher): Removed option.
  8963. Added maxUploadSpeedLimit, requestTimeout.
  8964. (setOption): Removed.
  8965. (getOption): Removed.
  8966. (setMaxUploadSpeedLimit): New function.
  8967. (setRequestTimeout): New function.
  8968. (setBtMessageFactory): New function.
  8969. * src/DefaultBtInteractive.h
  8970. (btMessageReceiver):
  8971. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8972. (dispatcher):
  8973. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8974. (btRequestFactory):
  8975. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8976. (peerConnection):
  8977. PeerConnectionHandle -> PeerConnectionWeakHandle
  8978. (messageFactory): New variable.
  8979. (option): Removed.
  8980. (keepAliveInterval): New variable.
  8981. (maxDownloadSpeedLimit): New variable.
  8982. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8983. (setBtMessageReceiver):
  8984. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8985. (setDispatcher):
  8986. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8987. (setBtRequestFactory):
  8988. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8989. (setPeerConnection):
  8990. PeerConnectionHandle -> PeerConnectionWeakHandle
  8991. (setOption): Removed.
  8992. (setKeepAliveInterval): New function.
  8993. (setMaxDownloadSpeedLimit): New function.
  8994. (setBtMessageFactory): New function.
  8995. * src/BitfieldMan.h
  8996. (cachedNumMissingBlock): New variable.
  8997. (cachedNumFilteredBlock): New variable.
  8998. (cachedCompletedLength): New variable.
  8999. (cachedFilteredComletedLength): New variable.
  9000. (cachedFilteredTotalLength): New variable.
  9001. (countMissingBlockNow): New function.
  9002. (countFilteredBlockNow): New function.
  9003. (getFilteredTotalLengthNow): New function.
  9004. (getCompletedLengthNow): New function.
  9005. (getFilteredCompletedLengthNow): New function.
  9006. (updateCache): New function.
  9007. * src/AbstractBtMessage.h
  9008. (BtMessageDispatcher.h): New include.
  9009. (PeerConnection.h): New include.
  9010. (BtRequestFactory.h): New include
  9011. (BtMessageFactory.h): New include.
  9012. (dispatcher): New variable.
  9013. (messageFactory): New variable.
  9014. (peerConnection: New variable.
  9015. (setBtMessageDispatcher): New function.
  9016. (setPeerConnection): New function.
  9017. (setBtMessageFactory): New function.
  9018. (setBtRequestFactory): New function.
  9019. * src/DefaultBtMessageFactory.cc
  9020. (setCommonProperty): Set dispatcher, requestFactory, this,
  9021. peerConnection to msg.
  9022. * src/BtRegistry.h
  9023. (BT_MESSAGE_RECEIVER): New macro.
  9024. * src/PeerConnection.h
  9025. (PeerConnectionWeakHandle): New type definition.
  9026. * src/BtMessageFactory.h
  9027. (BtMessageFactoryWeakHandle): New type definition.
  9028. * src/BitfieldMan.cc
  9029. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9030. cachedCompletedLength, cachedFilteredComletedLength,
  9031. cachedFilteredTotalLength.
  9032. Call updateCache().
  9033. (countMissingBlock): Return cachedNumMissingBlock.
  9034. (countMissingBlockNow): New function.
  9035. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9036. (countFilteredBlockNow): New function.
  9037. (setBit): Call updateCache().
  9038. (unsetBit): Call updateCache().
  9039. (setBitfield): Call updateCache().
  9040. (clearAllBit): Call updateCache().
  9041. (setAllBit): Use setBitInternal instead of setBit.
  9042. Call updateCache().
  9043. (addFilter): Call updateCache().
  9044. (enableFilter): Call updateCache().
  9045. (disableFilter): Call updateCache().
  9046. (clearFilter): Call updateCache().
  9047. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9048. (getFilteredTotalLengthNow): New function.
  9049. (getCompletedLength): Return cachedCompletedLength.
  9050. (getCompletedLengthNow): New function.
  9051. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9052. (getFilteredCompletedLengthNow): New function.
  9053. (updateCache): New function.
  9054. * src/BtMessageReceiver.h
  9055. (BtMessageReceiverWeakHandle): New type definition.
  9056. * src/DefaultBtMessageReceiver.cc
  9057. (receiveHandshake): Use messageFactory member.
  9058. (sendHandshake): Use messageFactory member.
  9059. (receiveMessage): Use messageFactory member.
  9060. * src/DefaultBtMessageFactory.h
  9061. (dispatcher): New variable.
  9062. (requestFactory): New variable.
  9063. (peerConnection): New variablle.
  9064. (setBtMessageDispatcher): New function.
  9065. (setBtRequestFactory): New function.
  9066. (setPeerConnection): New function.
  9067. * src/SharedHandle.h
  9068. (RefCount): New class.
  9069. (WeakHandle): New class.
  9070. * src/PeerObject.h
  9071. (BtMessageReceiver.h): New include.
  9072. (PeerObject): Added btMessageReceiver.
  9073. (btMessageReceiver): New variable.
  9074. * src/Util.cc
  9075. (countBit): Simplified.
  9076. * src/BtCancelMessage.cc
  9077. (doReceivedAction): Use dispatcher member.
  9078. * src/BtRequestFactory.h
  9079. (BtRequestFactoryWeakHandle): New type definition.
  9080. * src/PeerStorage.h
  9081. (downloadSpeed): int -> uint32_t
  9082. (uploadSpeed): int -> uint32_t
  9083. (sessionDownloadLength): long long int -> uint64_t
  9084. (sessionUploadLength): long long int -> uint64_t
  9085. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. To add RecoverableException, FatalException:
  9087. * src/AbstractCommand.cc
  9088. (onAbort): Exception -> RecoverableException
  9089. * src/PeerAbstractCommand.h
  9090. (RecoverableException.h): New include.
  9091. (onAbort): Exception -> RecoverableException.
  9092. * src/PeerInteractionCommand.cc
  9093. (onAbort): Exception -> RecoverableException.
  9094. * src/PeerAbstractCommand.cc
  9095. (execute): Exception -> RecoverableException.
  9096. (onAbort): Exception -> RecoverableException.
  9097. * src/TorrentRequestInfo.cc
  9098. (execute): Exception -> RecoverableException.
  9099. * src/MetalinkRequestInfo.cc
  9100. (execute): Exception -> RecoverableException.
  9101. * src/MetaFileUtil.cc: RecoverableException.
  9102. * src/AbstractCommand.h
  9103. (onAbort): Exception -> RecoverableException.
  9104. * src/DlRetryEx.h: Exception -> RecoverableException.
  9105. * src/DlAbortEx.h: Exception -> RecoverableException.
  9106. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9107. * src/Util.cc: Exception -> RecoverableException.
  9108. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9109. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9110. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9111. To make ID static const int
  9112. * src/BtInterestedMessage.h
  9113. (ID_t): Removed.
  9114. (ID): New variable.
  9115. (getId): Made non-const.
  9116. * src/BtPieceMessage.h
  9117. (ID_t): Removed.
  9118. (ID): New variable.
  9119. (getId): Made non-const.
  9120. * src/BtChokeMessage.h
  9121. (ID_t): Removed.
  9122. (ID): New variable.
  9123. (getId): Made non-const.
  9124. * src/BtHaveAllMessage.h
  9125. (ID_t): Removed.
  9126. (ID): New variable.
  9127. (getId): Made non-const.
  9128. * src/BtKeepAliveMessage.h
  9129. (ID_t): Removed.
  9130. (ID): New variable.
  9131. (getId): Made non-const.
  9132. * src/BtHandshakeMessage.h
  9133. (ID): New variable.
  9134. (getId): Made non-const.
  9135. * src/BtSuggestPieceMessage.h
  9136. (ID_t): Removed.
  9137. (ID): New variable.
  9138. (getId): Made non-const.
  9139. * src/BtPortMessage.h
  9140. (ID_t): Removed.
  9141. (ID): New variable.
  9142. (getId): Made non-const.
  9143. * src/AbstractBtMessage.h
  9144. (id): Removed.
  9145. (AbstractBtMessage): Removed id.
  9146. (getId): Removed.
  9147. * src/BtHaveMessage.h
  9148. (ID_t): Removed.
  9149. (ID): New variable.
  9150. (getId): Made non-const.
  9151. * src/BtAllowedFastMessage.h
  9152. (ID_t): Removed.
  9153. (ID): New variable.
  9154. (getId): Made non-const.
  9155. * src/BtCancelMessage.h
  9156. (ID_t): Removed.
  9157. (ID): New variable.
  9158. (getId): Made non-const.
  9159. * src/BtNotInterestedMessage.h
  9160. (ID_t): Removed.
  9161. (ID): New variable.
  9162. (getId): Made non-const.
  9163. * src/BtChokeMessage.h
  9164. (ID_t): Removed.
  9165. (ID): New variable.
  9166. (getId): Made non-const.
  9167. * src/BtRejectMessage.h
  9168. (ID_t): Removed.
  9169. (ID): New variable.
  9170. (getId): Made non-const.
  9171. * src/BtBitfieldMessage.h
  9172. (ID_t): Removed.
  9173. (ID): New variable.
  9174. (getId): Made non-const.
  9175. * src/BtUnchokeMessage.h
  9176. (ID_t): Removed.
  9177. (ID): New variable.
  9178. (getId): Made non-const.
  9179. * src/BtRequestMessage.h
  9180. (ID_t): Removed.
  9181. (ID): New variable.
  9182. (getId): Made non-const.
  9183. * src/BtHaveMessage.h
  9184. (ID_t): Removed.
  9185. (ID): New variable.
  9186. (getId): Made non-const.
  9187. To add --force-truncate command-line option and a check whether
  9188. the file already exists:
  9189. * src/DirectDiskAdaptor.h
  9190. (getFilePath): Made virtual public.
  9191. * src/MultiDiskAdaptor.h
  9192. (File.h): New include.
  9193. (DiskWriterEntry::fileEntry): Made private.
  9194. (DiskWriterEntry::fileExists): New function.
  9195. (DiskWriterEntry::getFileEntry): New function.
  9196. (fileExists): New function.
  9197. (getFilePath): New function.
  9198. * src/TorrentRequestInfo.cc
  9199. (FatalException.h): New include.
  9200. (message.h): New include.
  9201. (RecoverableException.h): New include.
  9202. (execute): Added a check whether file is already exists or not.
  9203. * src/DiskAdaptor.h
  9204. (fileExists): New function.
  9205. (getFilePath): New function.
  9206. * src/main.cc
  9207. (showUsage): Added an explanation of --force-truncate command-line
  9208. option.
  9209. (main): Added --force-truncate command-line option.
  9210. * src/Exception.h
  9211. (setMsg): buf[256] -> buf[1024]
  9212. * src/CopyDiskWriter.h
  9213. (getFilePath): Made public virtual.
  9214. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9215. (fileExists): New function.
  9216. * src/DownloadEngineFactory.cc
  9217. (newTorrentConsoleEngine): Don't open file here.
  9218. * src/message.h
  9219. (EX_FILE_ALREADY_EXISTS): New definition.
  9220. * src/prefs.h
  9221. (PREF_FOECE_TRUNCATE): New definition.
  9222. * src/HttpResponseCommand.cc
  9223. (handleDefaultEncoding): Added a check whether the file already exists.
  9224. * src/SegmentMan.h
  9225. (fileExists): New function.
  9226. (shouldCancelDownloadForSafety): New function.
  9227. * src/FtpNegotiateCommand.cc
  9228. (recvSize): Added a check whether the file already exists.
  9229. * src/AbstractSingleDiskAdaptor.cc
  9230. (File.h): New include.
  9231. (fileExists): New function.
  9232. * src/AbstractSingleDiskAdaptor.h
  9233. (getFilePath): Removed.
  9234. (fileExists): New function.
  9235. * src/SegmentMan.cc
  9236. (fileExists): New function.
  9237. (shouldCancelDownloadForSafety): New function.
  9238. To fix regression bug in torrent downloading:
  9239. * src/DefaultBtRequestFactory.cc
  9240. (doChokedAction): New function.
  9241. * src/DefaultBtRequestFactory.h
  9242. (doChokedAction): New function.
  9243. * src/DefaultBtMessageDispatcher.cc
  9244. (doChokedAction): Do not delete request if its target is in allowed
  9245. fast set.
  9246. * src/DefaultBtInteractive.cc
  9247. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9248. (sendKeepAlive): Send keep alive message even if the outgoing message
  9249. queue is not empty.
  9250. (decideInterest): Simplified the code.
  9251. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9252. it is already called when BtChokeMessage is received from a peer.
  9253. * src/BtRequestFactory.h
  9254. (doChokedAction): New function.
  9255. To clean up code:
  9256. * src/PeerInteractionCommand.h
  9257. (executeInternal): Added virtual keyword explicitly.
  9258. (prepareForRetry): Added virtual keyword explicitly.
  9259. (prepareForNextPeer): Added virtual keyword explicitly.
  9260. (onAbort): Added virtual keyword explicitly.
  9261. * src/RequestSlot.cc
  9262. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9263. * src/BtPieceMessage.cc
  9264. (doReceivedAction): Added a debug log of piece's bitfield.
  9265. * src/Piece.h
  9266. (getBitfieldLength): New function.
  9267. * src/ByteArrayDiskWriter.cc
  9268. (clear): Added buf = 0 to avoid double free corruption.
  9269. * src/FileAllocator.cc
  9270. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9271. Added cp.reset().
  9272. * src/BitfieldMan.h
  9273. (operator=): Rewritten.
  9274. * src/BitfieldMan.cc
  9275. (BitfieldMan): Initialized bitfield, useBitfield.
  9276. * src/PeerConnection.cc
  9277. (receiveMessage): Added a call to socket->readable() after getting
  9278. message length to avoid possible EOF.
  9279. * src/Util.cc
  9280. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9281. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9282. To add an ability to pre-allocate file space:
  9283. * src/DirectDiskAdaptor.h: Rewritten.
  9284. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9285. * src/MultiDiskAdaptor.h: Rewritten.
  9286. * src/DefaultPieceStorage.cc
  9287. (MultiDiskWriter.h): Removed include.
  9288. (PreAllocationDiskWriter.h): Removed include.
  9289. (FileAllocationMonitor.h): New include.
  9290. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9291. (initStorage): Rewritten.
  9292. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9293. * src/FileAllocator.h: New class.
  9294. * src/FileAllocator.cc: New class.
  9295. * src/FileAllocationMonitor.h: New class.
  9296. * src/FileAllocationMonitor.cc: New class.
  9297. * src/ConsoleFileAllocationMonitor.h: New class.
  9298. * src/ConsoleFileAllocationMonitor.cc: New class.
  9299. * src/AbstractSingleDiskAdaptor.h: New class.
  9300. * src/AbstractSingleDiskAdaptor.cc: New class.
  9301. * src/DiskAdaptor.h
  9302. (Directory.h): Removed include.
  9303. (DiskWriter.h): Removed include.
  9304. (FileEntry.h): Removed include.
  9305. (diskWriter): Removed.
  9306. (DiskAdaptor): Removed diskWriter.
  9307. (openFile): Made pure virtual.
  9308. (closeFile): Made pure virtual.
  9309. (openExistingFile): Made pure virtual.
  9310. (initAndOpenFile): Made pure virtual.
  9311. (writeData): Made pure virtual.
  9312. (readData): Made pure virtual.
  9313. (sha1Sum): Made pure virtual.
  9314. (getStoreDir): Returns const reference of storeDir.
  9315. (DiskAdaptorHandle): New type definition.
  9316. * src/main.cc
  9317. (ConsoleFileAllocationMonitor.h): New include.
  9318. (showUsage): Added default value description of -s option.
  9319. Added the description of --file-allocation option.
  9320. (main): Set default value of --file-allocation option to 'none'.
  9321. Added --file-allocation command-line option.
  9322. Setup FileAllocationMonitorFactory.
  9323. * src/FtpInitiateConnectionCommand.cc
  9324. (executeInternal): Removed diskWriter related processing, which was
  9325. moved to FtpNegotiationCommand.cc.
  9326. * src/DirectDiskAdaptor.cc
  9327. (getFilePath): Made non-const.
  9328. * src/CopyDiskAdaptor.h
  9329. (DiskAdaptor.h): Removed include.
  9330. (DiskWriter.h): Removed include.
  9331. (AbstractSingleDiskAdaptor.h): New include.
  9332. (getFilePath): Made non-const. Added virtual keyword.
  9333. (CopyDiskAdaptor): Removed diskWriter.
  9334. (getTempFile): Returns const reference.
  9335. (CopyDiskAdaptorHandle): New type definition.
  9336. * src/ByteArrayDiskWriter.cc
  9337. (clear): Simplified.
  9338. (initAndOpenFile): Rewritten.
  9339. (openFile): Call initAndOpenFile()
  9340. * src/MultiDiskAdaptor.cc: Rewritten.
  9341. * src/DownloadEngineFactory.cc
  9342. (FileAllocator.h): New include.
  9343. (FileAllocationMonitor.h): New include.
  9344. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9345. create DefaultDiskWriter with file allocator.
  9346. * src/DiskWriter.h
  9347. (initAndOpenFile): Added totalLength argument.
  9348. (openFile): Added totalLength argument.
  9349. * src/prefs.h
  9350. (PREF_FILE_ALLOCATION): New definition.
  9351. (V_PREALLOC): New definition.
  9352. (V_NONE): New definition.
  9353. * src/HttpResponseCommand.cc
  9354. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9355. size.
  9356. * src/FtpNegotiateCommand.cc
  9357. (Util.h): New include.
  9358. (recvSize): Open file here.
  9359. * src/Util.h
  9360. (ullitos): New function.
  9361. * src/CopyDiskWriter.h
  9362. (getFilePath): Made non-const.
  9363. * src/DefaultDiskWriter.h
  9364. (Option.h): New include.
  9365. (totalLength): Removed.
  9366. (DefaultDiskWriter): Removed totalLength.
  9367. (initAndOpenFile): Added totalLength argument.
  9368. (DefaultDiskWriterHandle): New type definition.
  9369. (createNewDiskWriter): New function.
  9370. * src/Util.cc
  9371. (ullitos): New function.
  9372. * src/DefaultDiskWriter.cc
  9373. (message.h): New include.
  9374. (FileAllocator.h): New include.
  9375. (prefs.h): New include.
  9376. (Util.h): New include.
  9377. (DefaultDiskWriter): Removed totalLength.
  9378. (initAndOpenFile): Added file allocation.
  9379. (createNewDiskWriter): New function. Just for temporary solution.
  9380. It will be rewritten later.
  9381. * src/DiskAdaptor.cc
  9382. (DiskAdaptor): Removed diskWriter.
  9383. * src/AbstractDiskWriter.cc
  9384. (LogFactory.h): New include.
  9385. (AbstractDiskWriter): Added fileAllocator, logger.
  9386. (openFile): Added totalLength argument.
  9387. * src/AbstractDiskWriter.h
  9388. (FileAllocator.h): New include.
  9389. (Logger.h): New include.
  9390. (fileAllocator): New variable.
  9391. (logger): New variable.
  9392. (openFile): Added totalLength argument. Added virtual keyword
  9393. explicitly.
  9394. (openExistingFile): Added totalLength argument. Added virtual keyword
  9395. explicitly.
  9396. (closeFile): Added virtual keyword explicitly.
  9397. (sha1Sum): Added virtual keyword explicitly.
  9398. (writeData): Added virtual keyword explicitly.
  9399. (readData): Added virtual keyword explicitly.
  9400. (setFileAllocator): New function.
  9401. * src/DefaultPieceStorage.h
  9402. (FileAllocator.h): New include.
  9403. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9404. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9405. * src/FileProgressMonitor.h: New class.
  9406. To compile aria2 on PC-BSD:
  9407. * src/DefaultBtContext.cc
  9408. (libgen.h): New include.
  9409. To fix memory leak:
  9410. * src/Exception.h
  9411. (~Exception): Delete cause. Fixed memory leak.
  9412. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9413. Rewritten a portion of bittorrent implementation:
  9414. * src/BtMessageValidator.h: New class.
  9415. * src/BtBitfieldMessageValidator.h: New class.
  9416. * src/BtHandshakeMessageValidator.h: New class.
  9417. * src/BtRequestMessageValidator.h: New class.
  9418. * src/BtSuggestPieceMessageValidator.h: New class.
  9419. * src/BtAllowedFastMessageValidator.h: New class.
  9420. * src/BtRejectMessageValidator.h: New class.
  9421. * src/BtCancelMessageValidator.h: New class.
  9422. * src/BtPieceMessageValidator.h: New class.
  9423. * src/BtHaveMessageValidator.h: New class.
  9424. * src/BtEventListener.h: New class.
  9425. * src/AbstractBtEventListener.h: New class.
  9426. * src/BtEvent.h: New class.
  9427. * src/BtChokingEvent.h: New class.
  9428. * src/BtChokedEvent.h: New class.
  9429. * src/BtCancelSendingPieceEvent.h: New class.
  9430. * src/BtAbortOutstandingRequestEvent.h: New class.
  9431. * src/Randomizer.h: New class.
  9432. * src/SimpleRandomizer.h: New class.
  9433. * src/BtMessage.h: New class.
  9434. * src/AbstractBtMessage.h: New class.
  9435. * src/SimpleBtMessage.h: New class.
  9436. * src/BtHaveMessage.h: New class.
  9437. * src/BtInterestedMessage.h: New class.
  9438. * src/BtAllowedFastMessage.h: New class.
  9439. * src/BtUnchokeMessage.h: New class.
  9440. * src/BtCancelMessage.h: New class.
  9441. * src/BtNotInterestedMessage.h: New class.
  9442. * src/BtChokeMessage.h: New class.
  9443. * src/BtHaveNoneMessage.h: New class.
  9444. * src/BtHandshakeMessage.h: New class.
  9445. * src/BtSuggestPieceMessage.h: New class.
  9446. * src/BtHaveMessage.h: New class.
  9447. * src/BtPieceMessage.h: New class.
  9448. * src/BtHaveAllMessage.h: New class.
  9449. * src/BtKeepAliveMessage.h: New class.
  9450. * src/BtPortMessage.h: New class.
  9451. * src/BtRejectMessage.h: New class.
  9452. * src/BtBitfieldMessage.h: New class.
  9453. * src/BtRequestMessage.h: New class.
  9454. * src/DefaultBtRequestFactory.h: New class.
  9455. * src/DefaultBtMessageReceiver.h: New class.
  9456. * src/BtInteractive.h: New class.
  9457. * src/BtMessageDispatcher.h: New class.
  9458. * src/DefaultBtMessageDispatcher.h: New class.
  9459. * src/DefaultBtInteractive.h: New class.
  9460. * src/BitfieldManFactory.h: New class.
  9461. * src/HandleRegistry.h: New class.
  9462. * src/BtMessageFactory.h: New class.
  9463. * src/BtMessageReceiver.h: New class.
  9464. * src/DefaultBtMessageFactory.h: New class.
  9465. * src/PeerObject.h: New class.
  9466. * src/BtRequestFactory.h: New class.
  9467. * src/SuggestPieceMessage.h: Removed.
  9468. * src/PortMessage.h: Removed.
  9469. * src/SuggestPieceMessage.h: Removed.
  9470. * src/KeepAliveMessage.h: Removed.
  9471. * src/HandshakeMessage.h: Removed.
  9472. * src/PeerInteraction.h: Removed.
  9473. * src/UnchokeMessage.h: Removed.
  9474. * src/PieceMessage.h: Removed.
  9475. * src/RequestMessage.h: Removed.
  9476. * src/InterestedMessage.h: Removed.
  9477. * src/HaveMessage.h: Removed.
  9478. * src/CancelMessage.h: Removed.
  9479. * src/RejectMessage.h: Removed.
  9480. * src/AllowedFastMessage.h: Removed.
  9481. * src/HaveNoneMessage.h: Removed.
  9482. * src/SimplePeerMessage.h: Removed.
  9483. * src/HaveAllMessage.h: Removed.
  9484. * src/BitfieldMessage.h: Removed.
  9485. * src/PeerMessageFactory.h: Removed.
  9486. * src/NotInterestedMessage.h: Removed.
  9487. * src/ChokeMessage.h: Removed.
  9488. * src/PeerMessage.h: Removed.
  9489. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9490. To know root cause of exception:
  9491. * src/Exception.h
  9492. (cause): New variable.
  9493. (Exception): Added a parameter.
  9494. (getMsg): Return const reference to msg.
  9495. (getCause): New function.
  9496. * src/DlRetryEx.h
  9497. (DlRetryEx): Added a parameter 'cause'.
  9498. Added an overloaded constructor.
  9499. (DlAbortEx): Added a parameter 'cause'.
  9500. Added an overloaded constructor.
  9501. * src/SimpleLogger.cc
  9502. (writeLog): Log nested exception messages recursively.
  9503. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. * src/DefaultBtProgressInfoFile.cc
  9505. (load): Fixed memory leak when the infohash doesn't match.
  9506. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9507. * src/DefaultPeerStorage.cc
  9508. (calculateStat): Simplified the code by combining 2 loops into 1.
  9509. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9510. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9511. for BitTorrent download:
  9512. * src/PeerAbstractCommand.cc
  9513. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9514. * src/main.cc:
  9515. (timeoutSpecified): Removed.
  9516. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9517. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9518. * src/TorrentRequestInfo.cc
  9519. (timeoutSpecified): Removed.
  9520. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9521. timeout value.
  9522. * src/prefs.h
  9523. (PREF_BT_TIMEOUT): New definition.
  9524. Delete unused variables:
  9525. * src/TorrentRequestInfo.cc
  9526. (requestInfo): Removed.
  9527. Move setSignalHander to Util::setGlobalSignalHandler:
  9528. * src/TorrentRequestInfo.cc:
  9529. setSignalHander -> Util::setGlobalSignalHandler
  9530. * src/main.cc
  9531. (setSignalHander): Removed.
  9532. (main): setSignalHander -> Util::setGlobalSignalHandler
  9533. * src/Util.h
  9534. (setGlobalSignalHandler): New function.
  9535. * src/Util.cc
  9536. (setGlobalSignalHandler): New function.
  9537. * src/UrlRequestInfo.cc:
  9538. setSignalHander -> Util::setGlobalSignalHandler
  9539. Reset peer status in order to exit gracefully:
  9540. * src/PeerAbstractCommand.cc
  9541. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9542. To fix the bug that causes the number of bytes uploaded is not saved
  9543. to .aria2 file:
  9544. * src/DefaultPeerStorage.h
  9545. (removedPeerSessionDownloadLength): New variable.
  9546. (removedPeerSessionUploadLength): New variable.
  9547. * src/DefaultPeerStorage.cc
  9548. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9549. removedPeerSessionUploadLength(0).
  9550. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9551. through all peers, and then add removedPeerSessionDownloadLength(
  9552. removedPeerSessionUploadLength) to it.
  9553. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9554. (to) the peer to removedPeerSessionDownloadLength
  9555. (removedPeerSessionUploadLength).
  9556. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9557. To add Metalink location option:
  9558. * src/MetalinkRequestInfo.cc
  9559. (execute): Call MetalinkEntry::setLocationPreference()
  9560. * src/main.cc
  9561. (showUsage): Added the help message for --metalink-location option.
  9562. (main): Added --metalink-location option.
  9563. * src/prefs.h
  9564. (PREF_METALINK_LOCATION): New definition.
  9565. * src/MetalinkEntry.cc
  9566. (AddLocationPreference): New function object.
  9567. (setLocationPreference): New function.
  9568. * src/Xml2MetalinkProcessor.cc
  9569. (getResource): Set location attribute to MetalinkResource
  9570. To show URLs to download
  9571. * src/UrlRequestInfo.h
  9572. (printUrls): New function.
  9573. To add multiple <file> Metalink support:
  9574. * src/MetalinkEntry.h
  9575. (MetalinkResources): Removed.
  9576. (setLocationPreference): New function.
  9577. (MetalinkEntryHandle): New type definition.
  9578. (MetalinkEntries): New type definition.
  9579. * src/Xml2MetalinkProcessor.h
  9580. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9581. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9582. (parseFile): Metalinker* -> MetalinkerHandle
  9583. * src/UrlRequestInfo.h
  9584. (execute): RequestInfo* -> RequestInfos
  9585. * src/MetalinkRequestInfo.cc
  9586. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9587. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9588. (execute): RequestInfo* -> RequestInfos
  9589. Added multiple <file> support. Print filename when it is queued.
  9590. * src/MetalinkRequestInfo.h
  9591. (execute): RequestInfo* -> RequestInfos
  9592. (getDownloadEngine): Removed.
  9593. * src/RequestInfo.h
  9594. (RequestInfoHandle): New type definition.
  9595. (RequestInfos): New type definition.
  9596. (execute): RequestInfo* -> RequestInfos
  9597. (getDownloadEngine): Removed.
  9598. * src/MetalinkResource.h
  9599. (MetalinkResourceHandle): New type definition.
  9600. (MetalinkResources): New type definition.
  9601. * src/MetalinkEntry.cc
  9602. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9603. because the element is now of type MetalinkResourceHandle.
  9604. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9605. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9606. (dropUnsupportedResource): Removed the deletion of the elements of
  9607. resources because the element is now of type MetalinkResourceHandle.
  9608. * src/Xml2MetalinkProcessor.cc
  9609. (parseFile): Metalinker* -> MetalinkerHandle
  9610. MetalinkEntry* -> MetalinkEntryHandle
  9611. Removed try-catch block.
  9612. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9613. MetalinkResource* -> MetalinkResourceHandle
  9614. Removed try-catch block.
  9615. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9616. Free result by using xmlXPathFreeObject()
  9617. * src/Metalinker.cc
  9618. (~Metalinker): Removed the deletion of entries.
  9619. MetalinkEntry* -> MetalinkEntryHandle
  9620. (queryEntry): Add multiple <file> Metalink support.
  9621. * src/Metalinker.h
  9622. (MetalinkEntries): Removed.
  9623. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9624. * src/MetalinkProcessor.h
  9625. (parseFile): Metalinker* -> MetalinkerHandle
  9626. Bug fixes:
  9627. * src/PeerChokeCommand.cc
  9628. (execute): cat01->cat02
  9629. * src/DefaultPieceStorage.cc
  9630. (DefaultPieceStorage): Added diskAdaptor(0)
  9631. * src/TrackerWatcherComand.cc:
  9632. (execute): Use btAnnounce->noMoreAnnounce()
  9633. to determin whether the function returns true or not.
  9634. * src/TrackerUpdateCommand.cc:
  9635. (execute): Use btAnnounce->noMoreAnnounce()
  9636. to determin whether the function returns true or not.
  9637. * src/FtpConnection.cc
  9638. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9639. This is the fix of the busy loop bug.
  9640. * src/DownloadCommand.cc
  9641. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9642. cached PeerStat.
  9643. The value of "name" entry in torrent file is now set by
  9644. *DiskAdaptor::setTopDir(...) methods.
  9645. * src/MultiDiskAdaptor.h
  9646. (topDir): New variable.
  9647. (setTopDir): New function.
  9648. (getTopDir): New function.
  9649. * src/MultiDiskAdaptor.cc
  9650. (getFilePath): Concat storDir, "/" and topDir.
  9651. (mkdir): Use getFilePath() to get the directory path for output.
  9652. * src/DefaultPieceStorage.cc
  9653. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  9654. CopyDiskAdaptor.
  9655. * src/CopyDiskAdaptor.h
  9656. (topDir): New variable.
  9657. (setTopDir): New function.
  9658. (getTopDir): New function.
  9659. * src/CopyDiskAdaptor.cc
  9660. (fixFilename): Updated.
  9661. Misc
  9662. * src/UrlRequestInfo.h
  9663. (e): Removed.
  9664. (UrlRequestInfo): Removed e.
  9665. (getDownloadEngine): Removed.
  9666. * src/UrlRequestInfo.cc
  9667. (handler): Rewritten.
  9668. (printUrls): New function.
  9669. (execute): Call printUrls().
  9670. * src/HandshakeMessage.cc
  9671. (check): peerinteraction->getBtContext() -> btContext
  9672. * src/PeerInteraction.h
  9673. (getBtContext): Removed.
  9674. * src/TorrentRequestInfo.h
  9675. (execute): RequestInfo* -> RequestInfos
  9676. (getDownloadEngine): Removed.
  9677. * src/TorrentRequestInfo.cc
  9678. (haltRequested): Removed.
  9679. (btHaltRequested): New variable.
  9680. (torrentHandler): haltRequested -> btHaltRequested
  9681. (execute): RequestInfo* -> RequestInfos
  9682. * src/TorrentConsoleDownloadEngine.cc
  9683. (afterEachIteration): haltRequested -> btHaltRequested.
  9684. * src/ConsoleDownloadEngine.h
  9685. (initStatistics): Added virtual.
  9686. (calculateStatistics): Added virtual.
  9687. (onEndOfRun): Added virtual.
  9688. (afterEachIteration): Added virtual.
  9689. * src/ConsoleDownloadEngine.cc
  9690. (haltRequested): New variable.
  9691. (afterEachIteration): New function.
  9692. * src/main.cc
  9693. (requestInfo): Removed.
  9694. * src/SegmentMan.cc
  9695. (findSlowerSegmentEntry): Refactored.
  9696. * Release 0.9.0
  9697. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  9699. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  9700. * src/TorrentMan.h: Removed.
  9701. * src/TorrentMan.cc: Removed.
  9702. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  9703. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  9704. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  9705. * src/PeerAbstractCommand.cc: Use btRuntime.
  9706. * src/BtContextAwareCommand.h: New class.
  9707. * src/FileEntry.h: Added accessor methods for following variables.
  9708. (path): Made private.
  9709. (length): Made private.
  9710. (offset): Made private.
  9711. (extracted): Made private.
  9712. (requested): Made private.
  9713. (FileEntries): New definition.
  9714. (FileEntryHandle): New definition.
  9715. * src/FileEntry.cc: New file.
  9716. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  9717. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  9718. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  9719. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  9720. * src/PieceStorage.h: New file.
  9721. * src/PeerInteractionCommand.h: Use btContext.
  9722. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  9723. btRuntime.
  9724. * src/DefaultBtProgressInfoFile.h: New file.
  9725. * src/DefaultBtProgressInfoFile.cc: New file.
  9726. * src/File.cc
  9727. (Util.h): New include.
  9728. (mkdirs): New function.
  9729. * src/MultiDiskAdaptor.h
  9730. (mkdir): New function.
  9731. * src/PeerListProcessor.h
  9732. (Peers): Removed.
  9733. * src/PeerInteraction.h
  9734. (torrentMan): Removed.
  9735. (btContext): New variable.
  9736. (peerStorage): New variable.
  9737. (pieceStorage): New variable.
  9738. (btAnnounce): New variable.
  9739. (getTorrentMan): Removed.
  9740. (getBtContext): New function.
  9741. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9742. btAnnounce.
  9743. * src/HandshakeMessage.h
  9744. (TorrentMan.h): Removed.
  9745. * src/HandshakeMessage.cc: Use btContext.
  9746. * src/DefaultBtAnnounce.cc: New file.
  9747. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9748. * src/DefaultPieceStorage.cc: New file.
  9749. * src/DefaultBtContext.h: New file.
  9750. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9751. Use the accessor methods of FileEntry.
  9752. * src/CookieBox.cc: Updated to use Util::slice().
  9753. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9754. * src/common.h (SharedHandle.h): New include.
  9755. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9756. pieceStorage.
  9757. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9758. * src/DiskAdaptor.h
  9759. (topDir): Removed.
  9760. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9761. (setTopDir): Removed.
  9762. (getTopDir): Removed.
  9763. * src/BtContext.h: New file.
  9764. * src/DefaultPeerStorage.h: New file.
  9765. * src/PieceMessage.h (TorrentMan.h): Removed.
  9766. * src/RequestMessage.h (TorrentMan.h): Removed.
  9767. * src/TorrentDownloadEngine.h
  9768. (uploadLength): New variable.
  9769. (btContext): New variable.
  9770. (btRuntime): New variable.
  9771. (pieceStorage): New variable.
  9772. (peerStorage): New variable.
  9773. (btAnnounce): New variable.
  9774. (btProgressInfoFile): New variable.
  9775. (torrentMan): Removed.
  9776. (setBtContext): New function.
  9777. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9778. peerStorage, btAnnounce, btProgressInfoFile.
  9779. * src/Piece.h
  9780. (toString): New function.
  9781. (Pieces): New type definition.
  9782. * src/Peer.h
  9783. (active): New variable.
  9784. (Peer): Added active.
  9785. (activate): Set active to true.
  9786. (deactivate): Set active to false.
  9787. (isActive): New function.
  9788. (Peers): New type definition.
  9789. * src/DirectDiskAdaptor.cc
  9790. (getFilePath): Use the accessor methods of FileEntry.
  9791. * src/TorrentConsoleDownloadEngine.h
  9792. (afterEachIteration): New function.
  9793. * src/TorrentConsoleDownloadEngine.cc
  9794. (haltRequested): New variable.
  9795. (sendStatistics): Use pieceStorage, btRuntime.
  9796. (afterEachIteration): New function.
  9797. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9798. * src/Directry.h
  9799. (Directory): New function.
  9800. (DirectoryHandle): New type definition.
  9801. * src/BtProgressInfoFile.h: New file.
  9802. * src/RequestMessage.cc: Use pieceStorage.
  9803. * src/BtRuntime.h: New file.
  9804. * src/DefaultBtContext.cc: New file.
  9805. * src/BitfieldMan.h
  9806. (getCompletedLength): New function(private).
  9807. (getCompletedLength): New function.
  9808. (getFilteredCompletedLength): New function.
  9809. * src/BitfieldMan.h
  9810. (getCompletedLength): New function(private).
  9811. (getCompletedLength): New function.
  9812. (getFilteredCompletedLength): New function.
  9813. * src/MultiDiskAdaptor.cc
  9814. (mkdir): New function.
  9815. (openFile): Call mkdir().
  9816. (initAndOpenFile): Call mkdir().
  9817. * src/CancelMessage.h
  9818. (TorrentMan.h): Removed.
  9819. * src/RejectMessage.h
  9820. (TorrentMan.h): Removed.
  9821. * src/DownloadEngineFactory.cc
  9822. (DefaultPieceStorage.h): New include.
  9823. (DefaultPeerStorage.h): New include.
  9824. (DefaultBtAnnounce.h): New include.
  9825. (DefaultBtProgressInfoFile.h): New include.
  9826. (newTorrentConsoleEngine): Rewritten.
  9827. * src/ShareRatioSeedCriteria.h
  9828. (torrentMan): Removed.
  9829. (btContext): New variable.
  9830. (peerStorage): New variable.
  9831. (btRuntime): New variable.
  9832. (evaluate): Use btContext, btRuntime, peerStorage.
  9833. * src/AnnounceTier.h: New file.
  9834. * src/BtAnnounce.h: New file.
  9835. * src/BtRegistry.h: New file.
  9836. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9837. * src/PeerConnection.h (TorrentMan.h): Removed.
  9838. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9839. * src/Util.h
  9840. (slice): Added an argument.
  9841. * src/Util.cc
  9842. (slice): Added an argument to control whether trim is made or not.
  9843. * src/PeerStorage.h: New file.
  9844. * src/BtRegistry.cc: New file.
  9845. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9846. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9847. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9848. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9849. * src/TorrentRequestInfo.h
  9850. (e): Removed.
  9851. (showFileEntry): Added an argument.
  9852. (getDownloadEngine): Return 0.
  9853. * src/DefaultBtAnnounce.h: New file.
  9854. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9855. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9856. * src/PeerMessageFactory.h
  9857. (btContext): New variable.
  9858. (pieceStorage): New variable.
  9859. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9860. btAnnounce.
  9861. * src/DiskAdaptor.cc
  9862. (DiskAdaptor): Removed topDir.
  9863. (~DiskAdaptor): Removed topDir.
  9864. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9865. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9866. * src/File.h (mkdirs): New function.
  9867. * src/DefaultPeerStorage): New file.
  9868. * src/DownloadEngineFactory.h
  9869. (newTorrentConsoleEngine): Use btContext.
  9870. * src/BtContextAwareCommand.cc: New file.
  9871. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9872. * src/PeerMessage.h
  9873. (btContext): New variable.
  9874. (peerStorage): New variable.
  9875. (pieceStorage): New variable.
  9876. (setBtContext): New function.
  9877. * src/Directry.cc
  9878. (Directory): New function.
  9879. (createDir): Do nothing if name.size() == 0.
  9880. * src/AnnounceList.h
  9881. (AnnounceTier): Removed.
  9882. (AnnounceTiers): Removed.
  9883. * src/DefaultPieceStorage.h: New file.
  9884. * src/Piece.cc (toString): New function.
  9885. To fix typo:
  9886. * src/main.cc (showVersion): Fixed typo.
  9887. To fix compile warning:
  9888. * src/DelegatingPeerListProcessor.cc
  9889. (canHandle): Added "return false".
  9890. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9891. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9892. make the process of announce request testable.
  9893. * src/TrackerWatcherCommand.h
  9894. (TimeA2.h): Removed.
  9895. (interval): Removed.
  9896. (checkPoint): Removed.
  9897. (createRequestCommand): Added an argument 'url'.
  9898. (TrackerWatherCommand): Removed interval.
  9899. (createCommand): New function.
  9900. * src/DownloadEngineFactory.cc
  9901. (newTorrentConsoleEngine): Updated according to the changes in
  9902. TrackerWatherCommand.
  9903. * src/TorrentMan.cc
  9904. (DelegatingPeerListProcessor.h): New includes.
  9905. (TorrentMan): Added the initialization of announceInterval.
  9906. (isStoppedAnnounceReady): New function.
  9907. (isCompletedAnnounceReady): New function.
  9908. (isDefaultAnnounceReady): New function.
  9909. (isAnnounceReady): New function.
  9910. (getAnnounceUrl): New function.
  9911. (announceStart): New function.
  9912. (announceFailure): New function.
  9913. (announceSuccess): New function.
  9914. (isAllAnnounceFailed): New function.
  9915. (resetAnnounce): New function.
  9916. (processAnnounceResponse): New function.
  9917. (needMorePeerConnection): New function.
  9918. (noMoreAnnounce): New function.
  9919. * src/TrackerUpdateCommand.h
  9920. (getTrackerResponse): int->size_t
  9921. * src/TorrentMan.h
  9922. (isStoppedAnnounceReady): New function.
  9923. (isCompletedAnnounceReady): New function.
  9924. (isDefaultAnnounceReady): New function.
  9925. (announceInterval): New variable.
  9926. (isAnnounceReady): New function.
  9927. (getAnnounceUrl): New function.
  9928. (announceStart): New function.
  9929. (announceFailure): New function.
  9930. (announceSuccess): New function.
  9931. (isAllAnnounceFailed): New function.
  9932. (resetAnnounce): New function.
  9933. (processAnnounceResponse): New function.
  9934. (needMorePeerConnection): New function.
  9935. (noMoreAnnounce): New function.
  9936. * src/TrackerWatcherCommand.cc
  9937. (TrackerWatherCommand): Removed interval and checkPoint.
  9938. (execute): Rewritten.
  9939. (createCommand): New function.
  9940. (createRequestCommand): Rewritten.
  9941. * src/TrackerUpdateCommand.cc
  9942. (MetaFileUtil.h): Removed.
  9943. (DelegatingPeerListProcessor.h): Removed.
  9944. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  9945. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9946. Request -> RequestHandle:
  9947. * src/HttpResponseCommand.h: Request->RequestHandle
  9948. * src/AbstractCommand.cc: Request->RequestHandle
  9949. * src/HttpDownloadCommand.cc: Request->RequestHandle
  9950. * src/HttpRequestCommand.cc: Request->RequestHandle
  9951. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  9952. * src/AbstractCommand.h: Request->RequestHandle
  9953. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  9954. * src/HttpResponseCommand.cc: Request->RequestHandle
  9955. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  9956. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  9957. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  9958. * src/HttpConnection.h: Request->RequestHandle
  9959. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  9960. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  9961. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9962. * src/DownloadCommand.h: Request->RequestHandle
  9963. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9964. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9965. * src/HttpRequestCommand.h: Request->RequestHandle
  9966. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9967. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9968. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9969. * src/HttpDownloadCommand.h: Request->RequestHandle
  9970. * src/FtpConnection.cc: Request->RequestHandle
  9971. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9972. * src/UrlRequestInfo.cc: Request->RequestHandle
  9973. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9974. * src/HttpConnection.h: Request->RequestHandle
  9975. * src/DownloadCommand.cc: Request->RequestHandle
  9976. * src/FtpConnection.h: Request->RequestHandle
  9977. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9978. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9979. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9980. * src/Request.h
  9981. (SharedHandle.h): New include.
  9982. (RequestHandle): New type definition.
  9983. (Requests): Redefined.
  9984. To add MULTITRACKER support:
  9985. * src/TrackerWatcherCommand.h
  9986. (createRequestCommand): New function.
  9987. * src/DownloadEngineFactory.cc
  9988. (newTorrentConsoleEngine): Removed req.
  9989. * src/prefs.h
  9990. (PREF_TRACKER_MAX_TRIES): New definition.
  9991. * src/TorrentMan.cc
  9992. (TorrentMan): Removed req. Added trackerNumTry.
  9993. (~TorrentMan): Removed req.
  9994. (setupInternal1): Added announceList.
  9995. * src/TorrentRequestInfo.cc
  9996. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9997. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9998. * src/main.cc
  9999. (main): Added PREF_TRACKER_MAX_TRIES.
  10000. * src/TorrentMan.h
  10001. (Request.h): Removed.
  10002. (AnnounceList.h): New include.
  10003. (trackerNumTry): New variable.
  10004. (req): Removed.
  10005. (announceList): New variable.
  10006. * src/TrackerWatcherCommand.cc
  10007. (execute): Rewritten.
  10008. (createRequestCommand): New function.
  10009. * src/TrackerUpdateCommand.cc
  10010. (execute): Updated with the use of AnnounceList.
  10011. * src/AnnounceList.cc: New class.
  10012. * src/AnnounceList.h: New class.
  10013. To fix typo:
  10014. * src/prefs.h
  10015. (PREF_MAX_TRIES): max_try->max_tries
  10016. To not to decode "+" as space in URL decode:
  10017. * src/Util.cc
  10018. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10019. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10020. To add timeout to async name resolution:
  10021. * src/AbstractCommand.h
  10022. (nameResolveFinished): New function. This is not elegant way. It needs
  10023. to be more refined.
  10024. (nameResolverCheck): New variable.
  10025. * src/AbstractCommand.cc
  10026. (AbstractCommand): Added nameResolverCheck.
  10027. (execute): Added the check whether the name resolution has finished.
  10028. (setNameResolverCheck): Set nameResolverCheck to true.
  10029. (disableNameResolverCheck): Set nameResolverCheck to false.
  10030. (nameResolverFinished): New function.
  10031. * src/FtpInitiateConnectionCommand.h
  10032. (nameResolverFinished): New function.
  10033. * src/FtpInitiateConnectionCommand.cc
  10034. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10035. * src/HttpInitiateConnectionCommand.h
  10036. (nameResolverFinished): New function.
  10037. * src/HttpInitiateConnectionCommand.cc
  10038. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10039. * src/prefs.h
  10040. (PREF_DNS_TIMEOUT): New definition.
  10041. * src/main.cc
  10042. (main): Added PREF_DNS_TIMEOUT.
  10043. To add the support for a non-compact response from a tracker:
  10044. * src/PeerListProcessor.h: New class.
  10045. * src/DefaultPeerListProcessor.h: New class.
  10046. * src/DefaultPeerListProcessor.cc: New class.
  10047. * src/CompactPeerListProcessor.h: New class.
  10048. * src/CompactPeerListProcessor.cc: New class.
  10049. * src/DelegatingPeerListProcessor.h: New class.
  10050. * src/DelegatingPeerListProcessor.cc: New class.
  10051. * src/TorrentMan.cc
  10052. (addPeer): New function(overload).
  10053. (addPeer): Delete unused peers only when new peer is added.
  10054. * src/TorrentMan.h
  10055. (PeerListProcessor.h): Included.
  10056. (Peers): Removed.
  10057. (addPeer): New function(overload).
  10058. * src/TrackerUpdateCommand.cc
  10059. (netinet/in.h): Removed.
  10060. (DelegatingPeerListProcessor.h): Included.
  10061. (execute): Updated to use DelegatingPeerListProcessor.
  10062. To fix the memory leak in TorrentMan::peers:
  10063. * src/PeerAbstractCommand.cc
  10064. (onAbort): Added peer->resetStatus().
  10065. * src/Peer.h
  10066. (resetStatus): Made public.
  10067. To improve the precision of the speed calculation:
  10068. * src/SpeedCalc.h
  10069. (nextInterval): New variable.
  10070. * src/SpeedCalc.cc
  10071. (reset): Added nextInterval.
  10072. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10073. (changeSw): Set nextInterval to 15 seconds relative to the current
  10074. instant time.
  10075. * src/main.cc
  10076. (showVersion): Updated.
  10077. (showUsage): Updated.
  10078. * Release 0.8.1
  10079. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10080. * src/main.cc
  10081. (showUsage): Commented out --min-segment-size option.
  10082. (main): Commented out --min-segment-size option.
  10083. * Release 0.8.0
  10084. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. * src/*.{h,cc}:
  10086. Added an exception to the license which allows linking with OpenSSL.
  10087. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10088. * src/AbstractCommand.cc
  10089. (execute): Check whether the download has finished before checking
  10090. socket status.
  10091. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10092. Do not exit even if no segment is available.
  10093. * src/prefs.h
  10094. (PREF_STARTUP_IDLE_TIME): New definition.
  10095. * src/PeerInteractionCommand.cc
  10096. (executeInternal): Removed max speed limit. Because it performs bad.
  10097. (receiveMessages): Added max speed limit. This was better than above,
  10098. but still a little bit to be desired. Sometimes the download speed
  10099. became much faster than I specified.
  10100. * src/SpeedCalc.h
  10101. (start): New variable.
  10102. (accumulatedLength): New variable.
  10103. (getAvgSpeed): New function.
  10104. * src/SpeedCalc.cc
  10105. (reset): Added start, accumulatedLength.
  10106. (update): Added calculation of an average speed.
  10107. (getAvgSpeed): New function.
  10108. * src/DownloadCommand.h
  10109. (sw): Removed.
  10110. * src/main.cc
  10111. (main): Added PREF_STARTUP_IDLE_TIME.
  10112. * src/PeerStat.h
  10113. (STATUS): Added REQUEST_IDLE.
  10114. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10115. (getAvgDownloadSpeed): New function
  10116. (requestIdle): New function.
  10117. * src/SegmentMan.h
  10118. (SegmentEntryHandle): New type definition.
  10119. (SegmentEntries): Now holds SegmentEntryHandle.
  10120. (findSlowerSegmentEntry): New funtion.
  10121. * src/SegmentMan.cc
  10122. (save): Updated according to the changes in SegmentEntries.
  10123. (read): Updated according to the changes in SegmentEntries.
  10124. (FindSegmentEntryByIndex): Updated according to the changes in
  10125. SegmentEntries.
  10126. (FindSegmentEntryByCuid): Updated according to the changes in
  10127. SegmentEntries.
  10128. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10129. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10130. Renamed uitr as itr.
  10131. (findSlowerSegmentEntry): New function.
  10132. (getSegment): Updated according to the changes in SegmentEntries.
  10133. Added the feature that cancels the segment with slow server and fast
  10134. one takes it over.
  10135. (cancelSegment): Updated according to the changes in SegmentEntries.
  10136. (getDownloadLength): Updated according to the changes in
  10137. SegmentEntries.
  10138. (init): Assigned 0 to bitfield after deleting it.
  10139. * src/DownloadCommand.cc
  10140. (STARTUP_IDLE_TIME): Removed.
  10141. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10142. * src/PeerChokeCommand.cc
  10143. (optUnchokingPeer): Updated according to the changes in Peer.
  10144. (ResetDelta): Removed.
  10145. (UploadFaster): Updated according to the changes in Peer.
  10146. (DownloadFaster): Updated according to the changes in Peer.
  10147. (execute): I clarify the meaning of "upload" and "download" here.
  10148. "upload" means the transfer from localhost to remote host.
  10149. "download" means the transfer from remote host to localhost.
  10150. Based on this rule, I swapped orderByUploadRate and
  10151. orderByDownloadRate.
  10152. * src/PeerInteractionCommand.cc
  10153. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10154. (executeInternal): Removed the argument of
  10155. peerInteraction->sendMessages().
  10156. (receiveMessages): Rewritten download speed limit.
  10157. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10158. * src/HttpResponseCommand.cc
  10159. (handleDefaultEncoding): If file size is unknown in torrent request,
  10160. do not call segmentMan->initBitfield() here.
  10161. Disabled persistent connection feature in torrent request.
  10162. * src/UrlRequestInfo.h
  10163. (UrlRequestInfo): Removed const qualifier from option.
  10164. * src/TorrentMan.h
  10165. (TransferStat): New class.
  10166. (deltaDownloadLength): Removed.
  10167. (deltaUploadLength): Removed.
  10168. (addDeltaDownloadLength): Removed.
  10169. (getDeltaDownloadLength): Removed.
  10170. (resetDeltaDownloadLength): Removed.
  10171. (addDeltaUploadLength): Removed.
  10172. (getDeltaUploadLength): Removed.
  10173. (resetDeltaUploadLength): Removed.
  10174. (addActivePeer): Added peer->activate().
  10175. (deleteActivePeer): Added peer->deactivate().
  10176. (calculateStat): New function.
  10177. * src/TorrentMan.cc
  10178. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10179. (calculateStat): New function.
  10180. * src/PeerInteraction.h
  10181. (uploadLimit): Removed.
  10182. (option): New variable.
  10183. (setUploadLimit): Removed.
  10184. (getUploadSpeed): Removed.
  10185. (sendMessages): Removed the argument "currentUploadSpeed".
  10186. * src/PeerInteraction.cc
  10187. (prefs.h): Included.
  10188. (PeerInteraction): Removed uploadLimit. Added option.
  10189. (sendMessages): Rewritten upload speed limit.
  10190. (sendHandshake): Removed the argument from sendMessages().
  10191. (sendBitfield): Removed the argument from sendMessages().
  10192. * src/PeerAbstractCommand.cc
  10193. (execute): Commented out the portion of upload limit.
  10194. (onAbort): Removed peer->resetStatus().
  10195. * src/TorrentRequestInfo.cc
  10196. (timeoutSpecified): Declared extern.
  10197. (execute): Set timeout to 180 if timeout is not specified by.
  10198. command-line.
  10199. * src/PieceMessage.cc
  10200. (receivedAction): Added peer->updateDownloadLength().
  10201. Removed peer->addPeerUpload().
  10202. Removed torrentMan->addDeltaDownloadLength().
  10203. (send): Added peer->updateUploadLength().
  10204. Removed peer->addPeerDownload().
  10205. Removed torrentMan->addDeltaUploadLength().
  10206. * src/main.cc
  10207. (timeoutSpecified): New variable.
  10208. (main): Set timeoutSpecified to false.
  10209. If the command-line option "--upload-limit" is specified, then
  10210. timeoutSpecified is set to true. This option will remain in the next
  10211. release, but be deprecated in the future release.
  10212. * src/TorrentRequestInfo.h
  10213. (TorrentRequestInfo): Removed const qualifier from op.
  10214. * src/PeerStat.h
  10215. (uploadSpeed): New variable.
  10216. (PeerStat): Added default value to cuid.
  10217. (calculateUploadSpeed): New function.
  10218. (updateUploadLength): New function.
  10219. (getMaxUploadSpeed): New function.
  10220. (getAvgUploadSpeed): New function.
  10221. (reset): Added uploadSpeed. Set status to IDLE.
  10222. * src/TorrentDownloadEngine.h
  10223. (cp): Declared as Time.
  10224. (sessionDownloadLengthArray): Removed.
  10225. (sessionUploadLengthArray): Removed.
  10226. (currentCp): Removed.
  10227. (lastCalcStat): New variable
  10228. (lastElapsed): Removed.
  10229. (sessionDownloadLength): Removed.
  10230. (calculateStat): New function.
  10231. * src/TorrentDownloadEngine.cc
  10232. (initStatistics): Removed lastElapsed, cp[],
  10233. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10234. currentCp, sessionDownloadLength.
  10235. Added cp.reset() and lastCalcStat.reset().
  10236. (calculateSpeed): Changed the name of the argument.
  10237. (calculateStatistics): Rewritten.
  10238. (calculateStat): New function.
  10239. * src/Peer.h
  10240. (PeerStat.h): Included.
  10241. (peerUpload): Removed.
  10242. (peerDownload): Removed.
  10243. (peerStat): New variable.
  10244. (sessionUploadLength): New variable.
  10245. (sessionDownloadLength): New variable.
  10246. (deltaUpload): Removed.
  10247. (deltaDownload): Removed.
  10248. (resetStatus): Made private.
  10249. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10250. Removed peerUpload, peerDownload.
  10251. (updateUploadLength): New function.
  10252. (addDeltaUpload): Removed.
  10253. (updateDownloadLength): New function.
  10254. (resetDeltaUpload): Removed.
  10255. (getDeltaUpload): Removed.
  10256. (addDeltaDownload): Removed.
  10257. (calculateUploadSpeed): New function.
  10258. (resetDeltaDownload): Removed.
  10259. (getDeltaDownload): Removed.
  10260. (calculateDownloadSpeed): New function.
  10261. (getSessionUploadLength): New function.
  10262. (getSessionDownloadLength): New function.
  10263. (activate): New function.
  10264. (deactivate): New function.
  10265. (addPeerUpload): Removed.
  10266. (setPeerUpload): Removed.
  10267. (getPeerUpload): Removed.
  10268. (addPeerDownload): Removed.
  10269. (setPeerDownload): Removed.
  10270. (getPeerDownload): Removed.
  10271. * src/Peer.cc
  10272. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10273. * src/MetalinkRequestInfo.h
  10274. (MetalinkRequestInfo): Removed const qualifier from op.
  10275. * src/RequestInfo.h
  10276. (op): Removed const qualifier.
  10277. (RequestInfo): Removed const qualifier from op.
  10278. * src/prefs.h
  10279. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10280. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10281. * src/PeerInteractionCommand.cc
  10282. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10283. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10284. * src/PeerInteraction.cc
  10285. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10286. * src/main.cc
  10287. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10288. Added the description of "--max-download-limit" option.
  10289. Removed the description of "--upload-limit" option.
  10290. Added the description of "--max-upload-limit" option.
  10291. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10292. Added "--max-download-limit" option and "--max-upload-limit" option.
  10293. Added the warning message if "--upload-limit" option is used.
  10294. * src/DownloadCommand.cc
  10295. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10296. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10297. To rewrite segment download mechanism for HTTP/FTP download.
  10298. Use BitfieldMan to manage segment download.
  10299. * src/HttpResponseCommand.h
  10300. (executeInternal): Pass the reference of segment.
  10301. * src/AbstractCommand.cc
  10302. (prepareForRetry): Call segmentMan->cancelSegment here.
  10303. (onAbort): Call segmentMan->cancelSegment here.
  10304. * src/HttpDownloadCommand.cc
  10305. (prepareForNextSegment): New function.
  10306. * src/DownloadEngineFactory.cc
  10307. (newConsoleEngine): Removed splitter.
  10308. (newTorrentConsoleEngine): Removed splitter.
  10309. * src/Request.h
  10310. (segment): Renamed from seg.
  10311. * src/FtpInitiateConnectionCommand.h
  10312. (executeInternal): Pass the reference of segment.
  10313. * src/AbstractCommand.h
  10314. (executeInternal): Pass the reference of segment.
  10315. * src/pref.h
  10316. (PREF_SEGMENT_SIZE): New definition.
  10317. * src/HttpProxyRequestCommand.h
  10318. (executeInternal): Pass the reference of segment.
  10319. * src/HttpResponseCommand.cc
  10320. (checkResponse): Allowed status 206 when a request range starts 0.
  10321. (handleDefaultEncoding): Rewritten the code related to Segment.
  10322. (handleOtherEncoding): Rewritten the code related to Segment.
  10323. * src/SegmentMan.h
  10324. (SegmentEntry): New class.
  10325. (SegmentEntries): New type definition.
  10326. (bitfield): New variable.
  10327. (usedSegmentEntries): New variable.
  10328. (onNullBitfield): New function.
  10329. (checkoutSegment): New function.
  10330. (segments): Removed.
  10331. (splitter): Removed.
  10332. (unregisterId): Removed.
  10333. (getSegment): New function(overload)
  10334. (getDownloadedSize): Removed.
  10335. (cancelSegment): New function.
  10336. (completeSegment): New function.
  10337. (initBitfield): New function.
  10338. (hasSegment): New function.
  10339. (getDownloadLength): New function.
  10340. * src/BitfieldMan.h
  10341. (getStartIndex): New function.
  10342. (getEndIndex): New function.
  10343. (getMissingUnusedIndex): New function(overload).
  10344. (getSparseMissingUnusedIndex): New function.
  10345. * src/BitfieldMan.cc
  10346. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10347. (getMissingUnusedIndex): New function(overload).
  10348. (Range): New class.
  10349. (getStartIndex): New function.
  10350. (getEndIndex): New function.
  10351. (getSparseMissingUnusedIndex): New function.
  10352. (isBitSetInternal): Return false if the given index is less than 0.
  10353. * src/HttpInitiateConnectionCommand.h
  10354. (executeInternal): Pass the reference of segment.
  10355. * src/FtpNegotiateCommand.h
  10356. (executeInternal): Pass the reference of segment.
  10357. * src/FtpNegotiateCommand.cc
  10358. (recvSize): Initialize bitfield here.
  10359. * src/FtpTunnelResponseCommand.h
  10360. (executeInternal): Pass the reference of segment.
  10361. * src/HttpConnection.cc
  10362. (createRequest): Rewritten range header processing.
  10363. * src/DownloadCommand.h
  10364. (executeInternal): Pass the reference of segment.
  10365. (prepareForRetry): Removed.
  10366. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10367. function.
  10368. * src/main.cc
  10369. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10370. * src/SegmentMan.cc
  10371. (SegmentMan): Added bitfield. Removed splitter.
  10372. (~SegmentMan): Added bitfield. Removed splitter.
  10373. (unregisterId): Removed.
  10374. (getSegment): Rewritten.
  10375. (updateSegment): Rewritten.
  10376. (save): Rewritten.
  10377. (read): Rewritten.
  10378. (finished): Rewritten.
  10379. (getDownloadedSize): Removed.
  10380. (initBitfield): New function.
  10381. (FindSegmentEntryByIndex): New function object.
  10382. (FindSegmentEntryByCuid): New function object.
  10383. (checkoutSegment): New function.
  10384. (onNullBitfield): New function.
  10385. (getSegment): New function(overload).
  10386. (CancelSegment): New function object.
  10387. (cancelSegment): New function.
  10388. (completeSegment): New function.
  10389. (hasSegment): New function.
  10390. (getDownloadLength): New function.
  10391. * src/FtpInitiateConnectionCommand.cc
  10392. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10393. * src/Segment.h: Rewritten.
  10394. * src/Segment.cc (operator<<): New function.
  10395. * src/HttpDownloadCommand.h
  10396. (prepareForNextSegment): New function.
  10397. * src/Request.cc
  10398. (resetUrl): Made segment null.
  10399. * src/DownloadEngine.cc
  10400. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10401. * src/HttpProxyRequestCommand.h
  10402. (executeInternal): Pass the reference of segment.
  10403. * src/DownloadCommand.cc
  10404. (executeInternal): Rewritten the code related to Segment.
  10405. (prepareForRetry): Removed.
  10406. (prepareForNextSegment): Rewritten.
  10407. * src/FtpTunnelResponseCommand.h
  10408. (executeInternal): Pass the reference of segment.
  10409. To add HTTP 1.1 persistent connection support(experimental)
  10410. * src/HttpRequestCommand.cc
  10411. (executeInternal): Disable keep alive if it is disabled by
  10412. configuration.
  10413. * src/Request.h
  10414. (keepAlive): New variable.
  10415. (isKeepAlive): New function.
  10416. (setKeepAlive): New function.
  10417. * src/pref.h
  10418. (PREF_HTTP_KEEP_ALIVE): New definition.
  10419. * src/HttpResponseCommand.cc
  10420. (executeInternal): Check the remote server supports keep alive.
  10421. * src/HttpConnection.cc
  10422. (createRequest): Send "Connection: close" only if keep alive is
  10423. disabled.
  10424. * src/main.cc
  10425. (main):
  10426. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10427. To add max download speed limit:
  10428. * src/pref.h
  10429. (PREF_MAX_SPEED_LIMIT): New definition.
  10430. * src/PeerInteractionCommand.cc
  10431. (executeInternal): Added max download speed limit. Not tested yet.
  10432. * src/SegmentMan.h
  10433. (PeerStats): New type definition.
  10434. (peerStats): New variable.
  10435. (registerPeerStat): New function.
  10436. (FindPeerStat): New function object.
  10437. (getPeerStat): New function.
  10438. (calculateDownloadSpeed): New function.
  10439. * src/SpeedCalc.h: New class.
  10440. * src/SpeedCalc.cc: New class.
  10441. * src/main.cc
  10442. (main):
  10443. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10444. download speed is not restricted).
  10445. * src/PeerStat.h: New class.
  10446. * src/SegmentMan.cc
  10447. (registerPeerStat): New function.
  10448. (calculateDownloadSpeed): New function.
  10449. * src/DownloadCommand.cc
  10450. (STARTUP_IDLE_TIME): New definition.
  10451. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10452. downloadStart.
  10453. (~DownloadCommand): Call peerStat->downloadStop.
  10454. (executeInternal): Added download speed limitter. Rewritten lowest
  10455. speed limitter.
  10456. * src/HttpConnection.cc
  10457. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10458. * src/AbstractCommand.cc
  10459. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10460. Added hostname to the error message.
  10461. * src/ConsoleDownloadEngine.cc
  10462. (calculateStatistics): Initialize psize with dlSize.
  10463. * src/PieceMessage.cc
  10464. (receivedAction): Do not call peerInteraction->abortPiece here.
  10465. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10466. * src/BitfieldMan.h
  10467. (clearAllUseBit): New function.
  10468. (setAllUseBit): New function.
  10469. * src/BitfieldMan.cc
  10470. (clearAllBit): Do not clear useBitfield here.
  10471. (clearAllUseBit): New function.
  10472. (setAllUseBit): New function.
  10473. * src/Piece.cc
  10474. (clearAllBlock): Call bitfield->clearAllUseBit().
  10475. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. To make filename URL-decoded:
  10477. * src/HttpResponseCommand.h: Updated doc.
  10478. * src/HttpResponseCommand.cc
  10479. (determinFilename): Made filename URL-decoded.
  10480. * src/FtpInitiateConnectionCommand.cc
  10481. (executeInternal): Made filename URL-decoded.
  10482. * src/Util.h (urldecode): New function.
  10483. * src/Util.cc (urldecode): New function.
  10484. To fix a bug that caused assertion failure in ares_strerror:
  10485. * src/NameResolver.cc (callback): Fixed the bug.
  10486. * Release 0.7.3
  10487. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10488. To add --seed-time and --seed-ratio command-line option:
  10489. * src/Option.h (getAsDouble): New function.
  10490. * src/Option.cc (getAsDouble): New function.
  10491. * src/SeedCheckCommand.h: New class.
  10492. * src/SeedCheckCommand.cc: New class.
  10493. * src/DownloadEngineFactory.cc
  10494. (SeedCheckCommand.h): Included.
  10495. (UnionSeedCriteria.h): Included.
  10496. (TimeSeedCriteria.h): Included.
  10497. (ShareRatioSeedCriteria.h): Included.
  10498. (newTorrentConsoleEngine): Added the processing of seed option.
  10499. * src/SeedCriteria.h: New class.
  10500. * src/ShareRatioSeedCriteria.h: New class.
  10501. * src/TimeSeedCriteria.h: New class.
  10502. * src/UnionSeedCriteria.h: New class.
  10503. * src/prefs.h
  10504. (PREF_SEED_TIME): New definition.
  10505. (PREF_SEED_RATIO): New definition.
  10506. * src/main.cc
  10507. (showUsage): Added --seed-time and --seed-ratio option.
  10508. (main): Added --seed-time and --seed-ratio option.
  10509. Made default log file name "/dev/null".
  10510. * src/SharedHandle.h
  10511. (SharedHandle): Copy constructor. Made it assignable from the
  10512. SharedHandle of the subclasses.
  10513. (operator=): Made it assignable from the SharedHandle of the
  10514. subclasses.
  10515. (getRefCount): New function.
  10516. To add notice log level and the switch to write log to stdout. This
  10517. switch is configurable per log level.
  10518. * src/Logger.h
  10519. (notice): New function.
  10520. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10521. constant.
  10522. * src/LogFactory.cc
  10523. (getInstance): The use of NullLogger was removed. A log message with
  10524. notice log level was made written to stdout along with log file.
  10525. * src/NullLogger.h
  10526. (notice): New function.
  10527. * src/SimpleLogger.h
  10528. (writeHeader): Added the 'file' argument.
  10529. (writeLog): Added the 'file' argument.
  10530. (writeFile): New function.
  10531. (stdoutField): New variable.
  10532. (SimpleLogger): Removed the default constructor.
  10533. (SimpleLogger): Made the default value of logfile 0.
  10534. (debug): Added 'virtual' keyword.
  10535. (info): Added 'virtual' keyword.
  10536. (warn): Added 'virtual' keyword.
  10537. (error): Added 'virtual' keyword.
  10538. (notice): New function.
  10539. (setStdout): New function.
  10540. * src/SimpleLogger.cc
  10541. (WRITE_LOG): Replaced writeLog with writeFile.
  10542. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10543. (SimpleLogger): Removed the default constructor.
  10544. (setStdout): New function.
  10545. (writeLog): Added the handling of NOTICE log level.
  10546. (writeFile): New function.
  10547. (notice): New function.
  10548. * src/TorrentMan.h: Updated doc.
  10549. * src/BitfieldMan.h: Updated doc.
  10550. * src/TrackerWatcherCommand.cc
  10551. (execute): Return true if error occurred in the request to the tracker
  10552. and halt is requested.
  10553. * src/TrackerUpdateCommand.cc
  10554. (execute): Return true if error occurred in the request to the tracker
  10555. and halt is requested.
  10556. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10557. DownloadEngine:
  10558. * src/TorrentConsoleDownloadEngine.h
  10559. (onSelectiveDownloadingCompletes): Removed.
  10560. * src/TorrentConsoleDownloadEngine.cc
  10561. (onSelectiveDownloadingCompletes): Removed.
  10562. * src/TorrentDownloadEngine.h
  10563. (onEndOfRun): Added 'virtual' keyword.
  10564. (afterEachIteration): Removed.
  10565. (onSelectiveDownloadingCompletes): Removed.
  10566. * src/TorrentDownloadEngine.cc
  10567. (onEndOfRun): Removed filenameFixed.
  10568. (afterEachIteration): Removed.
  10569. * src/TorrentMan.cc
  10570. (completePiece): Call onDownloadComplete here.
  10571. (onDownloadComplete): Added 2 log messages.
  10572. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10573. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10574. * src/NameResolver.h: Added the prototype declaration of callback().
  10575. To support c-ares library:
  10576. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10577. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10578. * src/FtpInitiateConnectionCommand.h:
  10579. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10580. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10581. * src/HttpInitiateConnectionCommand.h:
  10582. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10583. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10584. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10585. #1542285 by tizianomueller)
  10586. * src/HttpInitiateConnectionCommand.cc:
  10587. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10588. * src/FtpInitiateConnectionCommand.cc:
  10589. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10590. * src/DownloadEngine.h:
  10591. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10592. * src/DownloadEngine.cc:
  10593. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10594. To fix the bug that causes compilation failure with metalink-support
  10595. disabled(bug#1543587):
  10596. * src/main.cc: Fixed with the patch by tizianomueller.
  10597. * Release 0.7.2
  10598. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10599. * src/main.cc
  10600. (main): Added a message to inform users that aria2 is starting to
  10601. verify checksum.
  10602. * src/RequestInfo.cc
  10603. (printDownloadAbortMessage): Added a message to inform users that
  10604. transfer can be resumed.
  10605. * src/FeatureConfig.cc
  10606. (FEATURE_ASYNC_DNS): New definition.
  10607. (FeatureConfig): Added aysnc DNS entry.
  10608. To replace CommandUuid with Command* in SocketEntry and
  10609. NameResolverEntry:
  10610. * src/DownloadEngine.h
  10611. (CommandUuids): Removed.
  10612. (SocketEntry::commandUuid): Removed.
  10613. (SocketEntry::command): New variable.
  10614. (SocketEntry::SocketEntry): Updated.
  10615. (SocketEntry::operator==): Updated.
  10616. (NameResolverEntry::commandUuid): Removed.
  10617. (NameResolverEntry::command): New variable.
  10618. (NameResolverEntry::NameResolverEntry): Updated.
  10619. (NameResolverEntry::operator==): Updated.
  10620. (waitData): Changed the argument type.
  10621. (addSocketForReadCheck): Changed the argument type.
  10622. (deleteSocketForReadCheck): Changed the argument type.
  10623. (addSocketForWriteCheck): Changed the argument type.
  10624. (deleteSocketForWriteCheck): Changed the argument type.
  10625. (addNameResolverCheck): Changed the argument type.
  10626. (deleteNameResolverCheck): Changed the argument type.
  10627. * src/DownloadEngine.cc
  10628. (FindCommand): Removed.
  10629. (run): Removed activeUuid. Added activeCommands instead.
  10630. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10631. (AccumulateActiveCommand): New function object.
  10632. (waitData): Use AccumulateActiveCommand.
  10633. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10634. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10635. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10636. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10637. (addNameResolverCheck): Use Command instead of CommandUuid.
  10638. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10639. * src/AbstractCommand.cc
  10640. (disableReadCheckSocket): Updated according to the changes in
  10641. DownloadEngine.
  10642. (setReadCheckSocket): Updated according to the changes in
  10643. DownloadEngine.
  10644. (disableWriteCheckSocket): Updated according to the changes in
  10645. DownloadEngine.
  10646. (setWriteCheckSocket): Updated according to the changes in
  10647. DownloadEngine.
  10648. (setNameResolverCheck): Updated according to the changes in
  10649. DownloadEngine.
  10650. (disableNameResolverCheck): Updated according to the changes in
  10651. DownloadEngine.
  10652. * src/AbstractCommand.cc
  10653. (disableReadCheckSocket): Updated according to the changes in
  10654. DownloadEngine.
  10655. (setReadCheckSocket): Updated according to the changes in
  10656. DownloadEngine.
  10657. (disableWriteCheckSocket): Updated according to the changes in
  10658. DownloadEngine.
  10659. (setWriteCheckSocket): Updated according to the changes in
  10660. DownloadEngine.
  10661. * release 0.7.1
  10662. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10663. To handle the case where some BitTorrent tracker requires all letters
  10664. except for [A-Za-z0-9] is URL encoded.
  10665. * src/Util.h
  10666. (torrentUrlencode): New function.
  10667. * src/Util.cc
  10668. (ctype.h): Included.
  10669. (torrentUrlencode): New function.
  10670. * src/TrackerWatcherCommand.cc
  10671. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  10672. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10673. To add asynchronous DNS support(libares):
  10674. * src/AbstractCommand.h
  10675. (setNameResolverCheck): New function.
  10676. (disableNameResolverCheck): New function
  10677. (resolveHostname): New function.
  10678. * src/AbstractCommand.cc
  10679. (setNameResolverCheck): New function.
  10680. (disableNameResolverCheck): New function
  10681. (resolveHostname): New function.
  10682. * src/FtpInitiateConnectionCommand.h
  10683. (nameResolver): New function.
  10684. * src/FtpInitiateConnectionCommand.cc
  10685. (Util.h): Included.
  10686. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  10687. disableWriteCheckSocket.
  10688. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  10689. (executeInternal): Added async DNS support.
  10690. * src/HttpInitiateConnectionCommand.h
  10691. (nameResolver): New function.
  10692. * src/HttpInitiateConnectionCommand.cc
  10693. (DlRetryEx.h): Included.
  10694. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  10695. disableWriteCheckSocket.
  10696. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  10697. (executeInternal): Added async DNS support.
  10698. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  10699. by extern "C" declaration.
  10700. * src/NameResolver.cc: New class.
  10701. * src/Util.h:
  10702. (isNumberAndDotsNotation): New function
  10703. * src/Util.cc
  10704. (isNumberAndDotsNotation): New function.
  10705. * src/DownloadEngine.h
  10706. (NameResolver.h): Included.
  10707. (NameResolverEntry): New class.
  10708. (NameResolverEntries): New type definition.
  10709. (addNameResolverCheck): New function.
  10710. (deleteNameResolverCheck): New function.
  10711. * src/DownloadEngine.cc
  10712. (run): Initialize cp with 0.
  10713. (SetDescriptor::operator()): Added for NameResolverEntry.
  10714. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  10715. (waitData): Check nameResolver entries.
  10716. (updateFdSet): Update fds in nameResolver entries.
  10717. (addNameResolverCheck): New function.
  10718. (deleteNameResolverCheck): new function.
  10719. * src/PeerInteractionCommand.cc
  10720. (executeInternal): Fixed wrong socket handling.
  10721. * src/main.cc
  10722. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  10723. * src/Util.cc
  10724. (fileChecksum): Removed the call to ctx.digestReset().
  10725. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10726. * po/ru.po: Azamat sent me Russian translation.
  10727. * src/FtpNegotiateCommand.cc
  10728. (recvGreeting): Call disableWriteCheckSocket just after
  10729. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10730. (recvRetr): Recognized status code 125 as a acceptable response code.
  10731. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10732. case-insesitive filesystem(BUG#1531057).
  10733. * src/Time.h: Renamed as TimeA2.h.
  10734. * src/Time.cc: Renamed as TimeA2.cc.
  10735. * src/TimeA2.h: New class.
  10736. * src/TimeA2.cc: New class.
  10737. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10738. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10739. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10740. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10741. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10742. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10743. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10744. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10745. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10746. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10747. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10748. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10749. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10750. * release 0.7.0
  10751. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10752. * src/PeerChokeCommand.h
  10753. (PeerChokeCommand): Rearranged the arguments.
  10754. * src/PeerChokeCommand.cc
  10755. (PeerChokeCommand): Rearranged the arguments.
  10756. * src/MetalinkEntry.h
  10757. (Checksum.h): Included.
  10758. (md5): Removed.
  10759. (sha1): Removed.
  10760. (checksum): New variable.
  10761. (operator=): Updated.
  10762. (check): Removed.
  10763. * src/prefs.h
  10764. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10765. (PREF_FOLLOW_TORRENT): New definition.
  10766. (PREF_SELECT_FILE): New definition.
  10767. (PREF_FOLLOW_METALINK): New definition.
  10768. * src/MetalinkResource.h
  10769. (TYPE_HTTPS): Added to enum TYPE.
  10770. * src/TorrentMan.cc
  10771. (~TorrentMan): Rewritten.
  10772. * src/MultiDiskWriter.cc
  10773. (MultiDiskAdaptor): Updated according to the changes in
  10774. MessageDigestContext.
  10775. (~MultiDiskAdaptor): Updated according to the changes in
  10776. MessageDigestContext.
  10777. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10778. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10779. * src/Util.h
  10780. (fileChecksum): Updated according to the changes in
  10781. MessageDigestContext.
  10782. * src/Util.cc
  10783. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10784. (fileChecksum): Updated according to the changes in
  10785. MessageDigestContext.
  10786. * src/messageDigest.h: Rewritten.
  10787. * src/MetalinkEntry.cc
  10788. (check): Removed.
  10789. (Supported): Updated.
  10790. (dropUnsupportedResource): Fixed a memory leak.
  10791. * src/ShaVisitor.cc
  10792. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10793. (~ShaVisitor): Updated according to the changes in
  10794. MessageDigestContext.
  10795. (visit): Updated according to the changes in MessageDigestContext.
  10796. * src/main.cc
  10797. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10798. command-line option added.
  10799. * src/DownloadEngine.h
  10800. (SocketEntry): New class.
  10801. (SocketEntries): New definition.
  10802. (PairFind): Removed.
  10803. (SockCmdMap): Removed.
  10804. * src/DownloadEngine.cc
  10805. (DownloadEngine): Rewritten.
  10806. (~DownloadEngine): Rewritten.
  10807. (run): Renamed activeCommandUuids as activeUuids.
  10808. (SetDescriptor): Rewritten.
  10809. (AccumulateActiveCommandUuid): Removed.
  10810. (AccumulateActiveUuid): New function object.
  10811. (waitData): Rewritten.
  10812. (updateFdSet): Rewritten.
  10813. (addSocket): Rewritten.
  10814. (deleteSocket): Rewritten.
  10815. (addSocketForReadCheck): Rewritten.
  10816. (deleteSocketForReadCheck): Rewritten.
  10817. (addSocketForWriteCheck): Rewritten.
  10818. (deleteSocketForWriteCheck): Rewritten.
  10819. * src/Xml2MetalinkProcessor.cc
  10820. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10821. * src/DownloadCommand.cc
  10822. (executeInternal): Added the check routine for lowest speed limit.
  10823. * src/AbstractDiskWriter.cc
  10824. (AbstractDiskWriter): Updated according to the changes in
  10825. MessageDigestContext.
  10826. (~AbstractDiskWriter): Updated according to the changes in
  10827. MessageDigestContext.
  10828. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10829. * src/RequestInfo.h: New class.
  10830. * src/UrlRequestInfo.h: New class.
  10831. * src/UrlRequestInfo.cc: New class.
  10832. * src/TorrentRequestInfo.h: New class.
  10833. * src/TorrentRequestInfo.cc: New class.
  10834. * src/MetalinkRequestInfo.h: New class.
  10835. * src/MetalinkRequestInfo.cc: New class.
  10836. * src/Checksum.h: New class.
  10837. * src/DownloadEngineFactory.h: New class.
  10838. * src/DownloadEngineFactory.cc: New class.
  10839. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10840. * src/Option.h
  10841. (getAsBool): New function.
  10842. * src/Option.cc
  10843. (prefs.h): Included.
  10844. (defined): 0-length value is now recognized as undefined.
  10845. (getAsInt): Rewritten.
  10846. (getAsLLInt): Rewritten.
  10847. (getAsBool): New function.
  10848. * src/FeatureConfig.h: Rewritten.
  10849. * src/FeatureConfig.cc: Rewritten.
  10850. * src/prefs.h
  10851. (PREF_STDOUT_LOG): New definition.
  10852. (PREF_LOG): New definition.
  10853. (PREF_DIR): New definition.
  10854. (PREF_OUT): New definition.
  10855. (PREF_SPLIT): New definition.
  10856. (PREF_DAEMON): New definition.
  10857. (PREF_REFERER): New definition.
  10858. (PREF_TORRENT_FILE): New definition.
  10859. (PREF_LISTEN_PORT): New definition.
  10860. (PREF_METALINK_FILE): New definition.
  10861. (PREF_METALINK_VERSION): New definition.
  10862. (PREF_METALINK_LANGUAGE): New definition.
  10863. (PREF_METALINK_OS): New definition.
  10864. (PREF_METALINK_SERVERS): New definition.
  10865. * src/main.cc
  10866. (main): Following command-line parameters are now put into Option
  10867. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10868. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10869. metalinkLanguage, metalinkOs, metalinkServers
  10870. To fix the bug that aria2 can not handle http response header properly.
  10871. * src/HttpHeader.cc
  10872. (put): Made name lowercased.
  10873. (defined): Made name lowercased.
  10874. (getFirst): Made name lowercased.
  10875. (get): Made name lowercased.
  10876. (getFirstAsInt): Rewritten.
  10877. (getFirstAsLLInt): Rewritten.
  10878. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10879. * src/TorrentMan.h:
  10880. (advertisePiece): Updated doc.
  10881. (getAdvertisedPieceIndexes): Updated doc.
  10882. (removeAdvertisedPiece); New function.
  10883. * src/TorrentMan.cc
  10884. (FindElapsedHave): New function object.
  10885. (removeAdvertisedPiece): New function.
  10886. * src/HaveEraseCommand.h: New class.
  10887. * src/HaveEraseCommand.cc: New class.
  10888. * src/FeatureConfig.h: New class.
  10889. * src/FeatureConfig.cc: New class.
  10890. * src/Request.h
  10891. (defaultPorts): Removed.
  10892. * src/Request.cc
  10893. (FeatureConfig.h): Included.
  10894. (Request): Removed the statements related to defaultPorts.
  10895. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10896. A default port number is now retrieved from FeatureConfig.
  10897. * src/main.cc
  10898. (HaveEraseCommand.h): Included.
  10899. (showVersion): Added the output of feature list.
  10900. (main): Added HaveEraseCommand to command queue in BitTorrent
  10901. downloading.
  10902. * src/PeerInteractionCommand.h
  10903. (chokeCheckPoint): Commented out.
  10904. (periodicExecPoint): New variable.
  10905. * src/PeerInteractionCommand.cc
  10906. (executeInternal): Following methods are now called in at least every
  10907. 0.5 seconds to reduce CPU usage:
  10908. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  10909. checkHave(), sendKeepAlive().
  10910. (checkLongTimePeerChoking): Commented out.
  10911. * src/BitfieldMan.h
  10912. (getNthBitIndex): Changed the method signature.
  10913. (getMissingIndexRandomly): Changed the method signature.
  10914. * src/BitfieldMan.cc
  10915. (getNthBitIndex): Rewritten
  10916. (getMissingIndexRandomly): Rewritten.
  10917. (hasMissingPiece): Rewritten.
  10918. (getMissingIndex): Refactored.
  10919. (getMissingUnusedIndex); Refactored.
  10920. (getMissingIndex): Refactored.
  10921. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10922. * src/PeerMessage.h
  10923. (Piece.h): Included.
  10924. (SharedHandle.h): Included.
  10925. (invalidate): New variable.
  10926. (uploading): New variable.
  10927. (isInvalidate): New function.
  10928. (isUploading): New function.
  10929. (onPush): New function.
  10930. (onChoked): New function.
  10931. (onCanceled): New function.
  10932. (onAbortPiece): New function.
  10933. (PeerMessageHandle): New type definition.
  10934. * src/PeerMessage.cc
  10935. (PeerMessage): Added the initialization for invalidate and uploading.
  10936. * src/CancelMessage.h
  10937. (CancelMessage): Rewritten.
  10938. * src/RejectMessage.h
  10939. (RejectMessage): Rewritten.
  10940. * src/Metalinker.h
  10941. (operator=): Defined.
  10942. * src/MetaEntry.h
  10943. (operator=): Defined.
  10944. * src/MetalinkResource.h
  10945. (operator=): Defined.
  10946. * src/AllowedFastMessage.h
  10947. (AllowedFastMessage): Rewritten.
  10948. * src/HandshakeMessage.h
  10949. (HandshakeMessage): New function(overload).
  10950. * src/HandshakeMessage.cc
  10951. (HandshakeMessage): Rewritten.
  10952. (init): New function.
  10953. * src/HaveMessage.h
  10954. (HaveMessage): Rewritten.
  10955. * src/Time.h
  10956. (operator=): Defined the function body here.
  10957. * src/Time.cc
  10958. (operator=): Removed.
  10959. * src/SocketCore.h
  10960. (operator==): Defined here.
  10961. (operator!=): Defined here.
  10962. (operator<): Defined here.
  10963. * src/SocketCore.cc
  10964. (operator==): Removed.
  10965. (operator<): Removed.
  10966. * src/BitfieldMan.h
  10967. (operator=): Defined the function body here.
  10968. * src/BitfieldMan.cc
  10969. (operator=): Removed.
  10970. * src/TorrentMan.h
  10971. (deleteErrorPeer): Removed.
  10972. (deleteUnusedPeer); New function.
  10973. * src/TorrentMan.cc
  10974. (addPeer): Call deleteUnusedPeer.
  10975. (deleteErrorPeer): Removed.
  10976. (deleteUnusedPeer): New function.
  10977. * src/PeerAbstractCommand.h
  10978. (setNoCheck): New function.
  10979. (noCheck): New variable.
  10980. * src/PeerAbstractCommand.cc
  10981. (PeerAbstractCommand): Added the initialization of noCheck.
  10982. (execute): Added a check for noCheck.
  10983. (setNoCheck): New function.
  10984. * src/Util.h
  10985. (stdio.h): Included.
  10986. * src/Util.cc
  10987. (unistd.h): Included.
  10988. * src/DefaultDiskWriter.cc
  10989. (unistd.h): Included.
  10990. * src/Peer.h
  10991. (operator==): Defined the function body here.
  10992. (operator!=): Defined the function body here.
  10993. * src/Peer.cc
  10994. (operator==): Removed.
  10995. (operator!=): Removed.
  10996. * src/Piece.h
  10997. (Piece): Defined the function body here(copy constructor).
  10998. (operator=): Defined the function body here.
  10999. (operator==): Defined the function body here.
  11000. * src/Piece.cc
  11001. (Piece): Removed(copy constructor).
  11002. (operator=): Removed.
  11003. (operator==): Removed.
  11004. * src/PeerMessageUtil.h
  11005. (ChokeMessage.h): Removed.
  11006. (UnchokeMessage.h): Removed.
  11007. (InterestedMessage.h): Removed.
  11008. (NotInterestedMessage.h): Removed.
  11009. (HaveMessage.h): Removed.
  11010. (BitfieldMessage.h): Removed.
  11011. (RequestMessage.h): Removed.
  11012. (CancelMessage.h): Removed.
  11013. (PieceMessage.h): Removed.
  11014. (HandshakeMessage.h): Removed.
  11015. (KeepAliveMessage.h): Removed.
  11016. (PortMessage.h): Removed.
  11017. (HaveAllMessage.h): Removed.
  11018. (HaveNoneMessage.h): Removed.
  11019. (PeerConnection.h): Removed.
  11020. (HandshakeMessage.h): Included.
  11021. * src/BitfieldMessage.h
  11022. (init): New function.
  11023. (BitfieldMessage): Rewritten.
  11024. (BitfieldMessage): New function(overload).
  11025. * src/RequestSlot.h
  11026. (operator=): Defined the function body here.
  11027. (operator==): Defined the function body here.
  11028. * src/RequestSlot.cc
  11029. (operator=): Removed.
  11030. (operator==): Removed.
  11031. To remove the dependency on the PeerMessage subclass from
  11032. PeerInteraction:
  11033. * src/PeerMessageFactory.h: New class.
  11034. * src/PeerMessageFactory.cc: New class.
  11035. * src/SimplePeerMessage.cc
  11036. (send): If invalidate is true then do nothing.
  11037. * src/PeerInteractionCommand.cc
  11038. (HandshakeMessage.h): Included.
  11039. (KeepAliveMessage.h): Included.
  11040. (ChokeMessage.h): Included.
  11041. (UnchokeMessage.h): Included.
  11042. (HaveMessage.h): Included.
  11043. (executeInternal): Call setNoCheck().
  11044. Removed setWriteCheckSocket(socket).
  11045. * src/PeerInteraction.h
  11046. (ChokeMessage.h): Removed.
  11047. (UnchokeMessage.h): Removed.
  11048. (InterestedMessage.h): Removed.
  11049. (NotInterestedMessage.h): Removed.
  11050. (HaveMessage.h): Removed.
  11051. (BitfieldMessage.h): Removed.
  11052. (RequestMessage.h): Removed.
  11053. (CancelMessage.h): Removed.
  11054. (PieceMessage.h): Removed.
  11055. (HandshakeMessage.h): Removed.
  11056. (KeepAliveMessage.h): Removed.
  11057. (PortMessage.h): Removed.
  11058. (HaveAllMessage.h): Removed.
  11059. (HaveNoneMessage.h): Removed.
  11060. (RejectMessage.h): Removed.
  11061. (AllowedFastMessage.h): Removed.
  11062. (SuggestPieceMessage.h): Removed.
  11063. (PeerMessageFactory.h): Included.
  11064. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11065. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11066. (PeerMessageFactory): New variable.
  11067. (createPeerMessage): Removed.
  11068. (createHandshakeMessage): Removed.
  11069. (setPeerMessageCommonProperty): Removed.
  11070. (addRequestSlot): New function.
  11071. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11072. (getPeerMessageFactory): New function.
  11073. (createRequestMessage): Removed.
  11074. (createCancelMessage): Removed.
  11075. (createPieceMessage): Removed.
  11076. (createHaveMessage): Removed.
  11077. (createChokeMessage): Removed.
  11078. (createUnchokeMessage): Removed.
  11079. (createInterestedMessage): Removed.
  11080. (createNotInterestedMessage): Removed.
  11081. (createBitfieldMessage): Removed.
  11082. (createKeepAliveMessage): Removed.
  11083. (createHaveAllMessage): Removed.
  11084. (createHaveNoneMessage): Removed.
  11085. (createRejectMessage): Removed.
  11086. (createAllowedFastMessage): Removed.
  11087. * src/PeerInteraction.cc
  11088. (PeerInteraction): Allocate PeerMessageFactory here.
  11089. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11090. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11091. PieceMessage::ID.
  11092. (addMessage): Simplified by using PeerMessage::onPush().
  11093. (addRequestSlot): New function.
  11094. (rejectAllPieceMessageInQueue): Simplified by using
  11095. PeerMessage::onChoked().
  11096. (rejectPieceMessageInQueue): Simplified by using
  11097. PeerMessage::onCanceled().
  11098. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11099. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11100. (createHandshakeMessage): Removed.
  11101. (createPeerMessage): Removed.
  11102. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11103. (setPeerMessageCommonProperty): Removed.
  11104. (createRequestMessage): Removed.
  11105. (createCancelMessage): Removed.
  11106. (createPieceMessage): Removed.
  11107. (createHaveMessage): Removed.
  11108. (createChokeMessage): Removed.
  11109. (createUnchokeMessage): Removed.
  11110. (createInterestedMessage): Removed.
  11111. (createNotInterestedMessage): Removed.
  11112. (createBitfieldMessage): Removed.
  11113. (createKeepAliveMessage): Removed.
  11114. (createHaveAllMessage): Removed.
  11115. (createHaveNoneMessage): Removed.
  11116. (createRejectMessage): Removed.
  11117. (createAllowedFastMessage): Removed.
  11118. * src/PieceMessage.h
  11119. (createRejectMessage): New function.
  11120. (PieceMessage): Rewritten.
  11121. (onChoked): New function.
  11122. (onCanceled): New function.
  11123. * src/PieceMessage.cc
  11124. (send): If invalidate is true then do nothing, just return.
  11125. (createRejectMessage): New function.
  11126. (onChoked): New function.
  11127. (onCanceled): New function.
  11128. * src/RequestMessage.h
  11129. (RequestMessage): Rewritten.
  11130. (onPush): New function.
  11131. (onAbortPiece): New function.
  11132. * src/RequestMessage.cc
  11133. (onPush): New function.
  11134. (onAbortPiece): New function.
  11135. Update fd_set when a socket is added or deleted in order to improve
  11136. performance:
  11137. * src/DownloadEngine.h
  11138. (rfdset): New variable.
  11139. (wfdset): New variable.
  11140. (updateFdSet): New function.
  11141. * src/DownloadEngine.cc
  11142. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11143. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11144. (waitData): Copy rfdset and wfdset.
  11145. (updateFdSet): New function.
  11146. (addSocket): Call updateFdSet.
  11147. (deleteSocket): Call updateFdSet.
  11148. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11149. To add the support for Metalink3.0 backward compatible links:
  11150. * src/Request.h
  11151. (SAFE_CHARS): Added '#'.
  11152. (METALINK_MARK): New definition.
  11153. * src/Request.cc
  11154. (parseUrl): Added the support for Metalink3.0 backward compatible
  11155. links.
  11156. etc
  11157. * src/PeerInteraction.cc
  11158. (MsgPushBack): Removed.
  11159. (sendMessages): Use STL copy and back_inserter.
  11160. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11161. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11162. * src/TorrentMan.h
  11163. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11164. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11165. * src/SharedHandle.h: New class.
  11166. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11167. * src/HttpResponseCommand.h
  11168. (HttpResponseCommand): Wrapped Socket.
  11169. * src/SocketCore.h
  11170. (operator==): New function.
  11171. (operator!=): New function.
  11172. (operator<): New function.
  11173. (getSockfd): New function.
  11174. (isOpen): New function.
  11175. (writeData): New function.
  11176. * src/SocketCore.cc
  11177. (operator==): New function.
  11178. (operator!=): New function.
  11179. (operator<): New function.
  11180. * src/AbstractCommand.h
  11181. (socket): Changed its type to SocketHandle.
  11182. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11183. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11184. (disableReadCheckSocket): New function.
  11185. (disableWriteCheckSocket): New function.
  11186. (readCheckTarget): Changed its type to SocketHandle.
  11187. (writeCheckTarget): Changed its type to SocketHandle.
  11188. (AbstractCommand): Replaced Socket with SocketHandle.
  11189. * src/AbstractCommand.cc
  11190. (AbstractCommand): Replaced Socket with SocketHandle.
  11191. (~AbstractCommand): Removed the deallocation for Socket object.
  11192. (disableReadCheckSocket): New function.
  11193. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11194. (disableWriteCheckSocket): New function.
  11195. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11196. * src/HttpDownloadCommand.cc
  11197. (DownloadCommand): Replaced Socket with SocketHandle.
  11198. * src/PeerAbstractCommand.h
  11199. (socket): Changed its type to SocketHandle.
  11200. (peer): Changed its type to PeerHandle.
  11201. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11202. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11203. (disableReadCheckSocket): New function.
  11204. (disableWriteCheckSocket): New function.
  11205. (readCheckTarget): Changed its type to SocketHandle.
  11206. (writeCheckTarget): Changed its type to SocketHandle.
  11207. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11208. Replaced Peer with PeerHandle.
  11209. * src/HttpRequestCommand.cc
  11210. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11211. Use disableReadCheckSocket.
  11212. * src/PeerInitiateConnectionCommand.h
  11213. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11214. * src/PeerChokeCommand.cc
  11215. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11216. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11217. (execute): Use PeerHandle.
  11218. * src/PeerConnection.h
  11219. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11220. (socket): Changed its type to SocketHandle.
  11221. (PeerConnection): Replaced Socket with SocketHandle.
  11222. * src/PeerConnection.cc
  11223. (PeerConnection): Replaced Socket with SocketHandle.
  11224. * src/PeerInteractionCommand.h
  11225. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11226. Replaced Peer with PeerHandle.
  11227. * src/PeerInteractionCommand.cc
  11228. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11229. Replaced Peer with PeerHandle.
  11230. (executeInternal): Use disableWriteCheckSocket.
  11231. Use HandshakeMessageHandle.
  11232. (receiveMessages): Use PeerMessageHandle.
  11233. (prepareForNextPeer): Use PeerHandle.
  11234. * src/HttpProxyRequestCommand.h
  11235. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11236. * src/HttpResponseCommand.cc
  11237. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11238. * src/TorrentMan.cc
  11239. (nullPeer): Added external reference.
  11240. (~TorrentMan): Removed the deallocation of the elements of peers.
  11241. (addPeer): Rewritten.
  11242. (isPeerAvailable): Use nullPeer.
  11243. (deleteOldpeers): Replaced with deleteErrorPeer.
  11244. (deleteErrorPeer): New function.
  11245. (getPeer): Use PeerHandle and nullPeer.
  11246. (hasMissingPiece): Replaced Peer with PeerHandle.
  11247. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11248. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11249. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11250. (getMissingPiece): Replaced Peer with PeerHandle.
  11251. * src/FtpNegotiateCommand.cc
  11252. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11253. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11254. (recvGreeting): Use disableWriteCheckSocket.
  11255. (recvPasv): Removed the allocation of Socket.
  11256. Use disableReadCheckSocket.
  11257. (sendRestPasv): Use disableWriteCheckSocket.
  11258. (recvRetr): Changed assertion.
  11259. * src/PeerInteraction.h
  11260. (SharedHandle.h): Included SharedHandle.h.
  11261. (PeerMessageHandle): New type definition.
  11262. (HandshakeMessageHandle): New type definition.
  11263. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11264. (peer): Changed its type to PeerHandle.
  11265. (createHandshakeMessage): Replaced HandshakeMessage with
  11266. HandshakeMessageHandle.
  11267. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11268. (PeerInteraction): Replaced Peer with PeerHandle.
  11269. Replaced Socket with SocketHandle.
  11270. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11271. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11272. (receiveHandshake): Replaced HandshakeMessage with
  11273. HandshakeMessageHandle.
  11274. * src/PeerInteraction.cc
  11275. (PeerInteraction): Replaced Peer with PeerHandle.
  11276. Replaced Socket with SocketHandle.
  11277. (~PeerInteraction): Removed the deallocation of the elements of
  11278. messageQueue.
  11279. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11280. (isSendingMessageInProgress): Replaced PeerMessage with
  11281. PeerMessageHandle.
  11282. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11283. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11284. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11285. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11286. (abortPiece): Use PeerMessageHandle.
  11287. (receiveHandshake): Replaced HandshakeMessage with
  11288. HandshakeMessageHandle. Removed try-catch block.
  11289. (createHandshakeMessage): Replaced HandshakeMessage with
  11290. HandshakeMessageHandle.
  11291. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11292. Removed try-catch block.
  11293. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11294. * src/HttpProxyResponseCommand.cc
  11295. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11296. * src/FtpTunnelResponseCommand.h
  11297. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11298. * src/HttpConnection.cc
  11299. (HttpConnection): Replaced Socket with SocketHandle.
  11300. * src/PeerAbstractCommand.cc
  11301. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11302. (~PeerAbstractCommand): Removed the deallocation of socket.
  11303. Use disableReadCheckSocket, disableWriteCheckSocket.
  11304. (disableReadCheckSocket): New function.
  11305. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11306. (disableWriteCheckSocket): New function.
  11307. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11308. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11309. * src/FtpTunnelRequestCommand.cc
  11310. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11311. (~FtpTunnelRequestCommand): Corrected indentation.
  11312. * src/DownloadCommand.h
  11313. (DownloadCommand): Replaced Socket with SocketHandle.
  11314. * src/PeerListenCommand.cc
  11315. (PeerListenCommand): Removed the initialization of socket.
  11316. (~PeerListenCommand): Removed the deallocation of socket.
  11317. (bindPort): Use SocketHandle.
  11318. (execute): Use SocketHandle and PeerHandle.
  11319. * src/FtpDowndloadCommand.cc
  11320. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11321. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11322. * src/main.cc
  11323. (main): Corrected indentation.
  11324. * src/HttpInitiateConnectionCommand.cc
  11325. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11326. (executeInternal): Removed the allocation of socket.
  11327. * src/HttpRequestCommand.h
  11328. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11329. * src/FtpNegotiationCommand.h
  11330. (dataSocket): Changed its type to SocketHandle.
  11331. (serverSocket): Changed its type to SocketHandle.
  11332. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11333. * src/TorrentMan.h
  11334. (MAX_PEER_UPDATE): Removed.
  11335. (MAX_PEERS): New definition.
  11336. (Peers): The element is now of type PeerHandle.
  11337. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11338. (getPeer): Replaced Peer with PeerHandle.
  11339. (deleteOldErrorPeers): Removed.
  11340. (deleteErrorPeer): New function.
  11341. (hasMissingPiece): Replaced Peer with PeerHandle.
  11342. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11343. (getMissingPiece): Replaced Peer with PeerHandle.
  11344. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11345. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11346. (addActivePeer): Replaced Peer with PeerHandle.
  11347. (deleteActivePeer): Replaced Peer with PeerHandle.
  11348. Added a check for the return value of find.
  11349. * src/FtpTunnelResponseCommand.cc
  11350. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11351. * src/FtpInitiateConnectionCommand.cc
  11352. (executeInternal): Removed the allocation of socket.
  11353. * src/DownloadEngine.h
  11354. (Sockets): An element is now of type SocketHandle.
  11355. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11356. (CommandUuids): New type definition.
  11357. (rsockets): Changed its type to SockCmdMap.
  11358. (wsockets): Changed its type to SockCmdMap.
  11359. (addSocket): Rewritten.
  11360. (deleteSocket): Rewritten.
  11361. (addSocketForReadCheck): Rewritten.
  11362. (deleteSocketForReadCheck): Rewritten.
  11363. (addSocketForWriteCheck): Rewritten.
  11364. (deleteSocketForWriteCheck): Rewritten.
  11365. (PairFind): New template class.
  11366. * src/HttpDownloadCommand.h
  11367. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11368. * src/FtpConnection.cc
  11369. (FtpConnection): Replaced Socket with SocketHandle.
  11370. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11371. block.
  11372. * src/InitiateConnectionCommandFactory.cc
  11373. (DlAbortEx.h): Included DlAbortEx.h.
  11374. (createInitiateConnectionCommand): Throw exception if the protocol of
  11375. requested URI is not supported.
  11376. * src/Peer.cc
  11377. (nullPeer): Changed its type to PeerHandle.
  11378. (operator==): New function.
  11379. (operator!=): New function.
  11380. * src/Peer.h
  11381. (SharedHandle.h): Included SharedHandle.h.
  11382. (operator==): New function.
  11383. (operator!=): New function.
  11384. (Peer): Added the default constructor.
  11385. Use resetStatus() to initialize member variables.
  11386. (nullPeer): Removed.
  11387. * src/TrackerUpdateCommand.cc
  11388. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11389. with MIN_PEERS.
  11390. * src/PeerListenCommand.h
  11391. (socket): Changed its type to SocketHandle.
  11392. * src/Command.h
  11393. (CommandUuid): New type definition.
  11394. (uuid): New variable.
  11395. (uuidGen): New variable.
  11396. (Command): Added the initialization of uuid.
  11397. (getUuid): New function.
  11398. * src/Socket.h
  11399. (Socket): Removed.
  11400. (SocketHandle): New type definition.
  11401. * src/DownloadEngine.h
  11402. (FindCommand): New function object.
  11403. (run): The portion of socket check was rewritten.
  11404. (SetDescriptor): New function object.
  11405. (AccumulateActiveCommandUuid): New function object.
  11406. (waitData): Rewritten.
  11407. (addSocket): Rewritten.
  11408. (deleteSocket): Rewritten.
  11409. (addSocketForReadCheck): Rewritten.
  11410. (addSocketForWriteCheck): Rewritten.
  11411. (deleteSocketForReadCheck): Rewritten.
  11412. (deleteSocketForWriteCheck): Rewritten.
  11413. * src/HttpProxyResponseCommand.h
  11414. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11415. * src/HttpConnection.h
  11416. (socket): Changed its type to SocketHandle.
  11417. (HttpConnection): Replaced Socket with SocketHandle.
  11418. * src/PeerInitiateConnectionCommand.cc
  11419. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11420. (executeInternal): Removed the allocation of socket.
  11421. (prepareForNextPeer): Use PeerHandle.
  11422. * src/PeerMessage.h
  11423. (peer): Changed its type to PeerHandle.
  11424. (getPeer): Replaced Peer with PeerHandle.
  11425. (setPeer): Replaced Peer with PeerHandle.
  11426. * src/DownloadCommand.cc
  11427. (DownloadCommand): Replaced Socket with SocketHandle.
  11428. * src/FtpConnection.h
  11429. (socket): Changed its type to SocketHandle.
  11430. (FtpConnection): Replaced Socket with SocketHandle.
  11431. (sendPort); Replaced Socket with SocketHandle.
  11432. * src/FtpDowndloadCommand.h
  11433. (ctrlSocket): Changed its type to SocketHandle.
  11434. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11435. * src/HttpProxyRequestCommand.cc
  11436. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11437. * src/FtpTunnelRequestCommand.h
  11438. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11439. etc
  11440. * src/PeerChokeCommand.h
  11441. (setAllPeerChoked): Removed.
  11442. (setAllPeerResetDelta): Removed.
  11443. * src/PeerChokeCommand.cc
  11444. (setAllPeerChoked): Removed.
  11445. (ChokePeer): New function object.
  11446. (setAllPeerResetDelta): Removed.
  11447. (ResetDelta): New function object.
  11448. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11449. (execute): Show download speed when the local node is a seeder.
  11450. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11451. using STL.
  11452. * src/TrackerWatcherCommand.h
  11453. (MIN_PEERS): Removed.
  11454. * src/TorrentMan.cc
  11455. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11456. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11457. To fix the bug that .aria2 file is not saved if downloading is stopped
  11458. by the errors:it results that aria2 can not resume downloading:
  11459. * src/main.cc
  11460. (normalDownload): Added the call to save().
  11461. (main): Added the deletion of the elements in 'reserved'.
  11462. To fix log:
  11463. * src/PeerInteraction.cc
  11464. (receiveHandshake): Fixed log.
  11465. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11466. To improve download performance in BitTorrent:
  11467. * src/TorrentMan.cc
  11468. (getPeer): Check the number of connections. Return nullPeer if
  11469. it is greater than MAX_PEER_UPDATE.
  11470. This code was originally here, but was removed in 0.5.1.
  11471. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11472. To improve the conditional compilation:
  11473. * src/MultiDiskWriter.h:
  11474. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11475. * src/MultiDiskWriter.cc:
  11476. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11477. * src/Util.h:
  11478. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11479. Added ENABLE_BITTORRENT around computeFastSet().
  11480. * src/Util.cc:
  11481. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11482. Added ENABLE_BITTORRENT around computeFastSet().
  11483. * src/messageDigest.h:
  11484. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11485. * src/ShaVisitor.h:
  11486. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11487. * src/ShaVisitor.cc:
  11488. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11489. * src/main.cc:
  11490. Added ENABLE_BITTORRENT around includes and blocks related to
  11491. BitTorrent.
  11492. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11493. digest support is not available.
  11494. * src/AbstractDiskWriter.h:
  11495. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11496. * src/AbstractDiskWriter.cc:
  11497. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11498. * src/MetalinkEntry.cc
  11499. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11500. support is not available.
  11501. To add command-line options for Metalink:
  11502. * src/main.cc:
  11503. Added metalink-version, metalink-language, metalink-os,
  11504. follow-metalink.
  11505. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11506. * src/main.cc: Use these definition.
  11507. * Release 0.6.0
  11508. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11509. To add Metalink support(http/ftp only):
  11510. * src/AbstractCommand.h
  11511. (tryReserved): New function.
  11512. * src/AbstractCommand.cc
  11513. (execute): Call tryReserved().
  11514. (tryReserved): New function.
  11515. * src/Request.h
  11516. (Requests): New type definition.
  11517. * src/SegmentMan.h
  11518. (reserved): New variable.
  11519. * src/Util.h
  11520. (fileChecksum): New function.
  11521. (toUpper): New function.
  11522. (toLower): New function.
  11523. * src/Util.cc
  11524. (messageDigest.h): Included.
  11525. (trim): Trim \r\n\t.
  11526. (fileChecksum): New function.
  11527. (toUpper): New function.
  11528. (toLower): New function.
  11529. * src/main.cc
  11530. (normalDownload): New function.
  11531. (main): Added 2 command-line options: metalink-file,
  11532. metalink-connection. Their usage has not been written yet.
  11533. * src/MetalinkProcessor.h: New class.
  11534. * src/Xml2MetalinkProcessor.h: New class.
  11535. * src/Xml2MetalinkProcessor.cc: New class.
  11536. * src/MetalinkEntry.h: New class.
  11537. * src/MetalinkEntry.cc: New class.
  11538. * src/MetalinkResource.h: New class.
  11539. * src/MetalinkResource.cc: New class.
  11540. To add md5 message digest checking:
  11541. * src/messageDigest.h: Rewritten.
  11542. * src/MultiDiskWriter.cc: Updated according to the changes in
  11543. messageDigest.h.
  11544. * src/ShaVisitor.cc: Updated according to the changes in
  11545. messageDigest.h.
  11546. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11547. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11548. messageDigest.h.
  11549. To fix a bug that causes segfault when the payload length in peer
  11550. message is less than 0:
  11551. * src/PeerConnection.cc:
  11552. (receiveMessage): Fixed the bug.
  11553. * src/PeerMessageUtil.cc
  11554. (checkLength): Throw an exception if length is less than or equals to
  11555. 0.
  11556. To add new interfaces to Base64 encoding/decoding:
  11557. * src/Base64.h
  11558. (part_encode): Changed the method signature.
  11559. (encode): New function(overload).
  11560. (decode): New function(overload).
  11561. * src/Base64.cc
  11562. (part_encode): Rewritten.
  11563. (encode): Rewritten.
  11564. (encode): New function(overload).
  11565. To prevent a peer to download same piece if there is an error in
  11566. checksum:
  11567. * src/PieceMessage.cc
  11568. (receivedAction): Call peerInteraction->abortPiece().
  11569. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11570. To fix the bug that causes same have message is sent many times to
  11571. a single peer.
  11572. * src/Time.cc
  11573. (isNewer): Use Util::difftv().
  11574. * src/Util.cc
  11575. (difftv): Added a cast to (long long int).
  11576. * src/TorrentMan.cc
  11577. (advertisePiece): Use push_front.
  11578. (getAdvertisedPieceIndexes): A performance improvement was made.
  11579. To fix the bug that sends tracker requests without a sleep interval
  11580. when the number of connections is less than 15.
  11581. * src/TrackerWatcherCommand.cc
  11582. (execute): Now the number of connections is not a factor to decide
  11583. whether or not a tracker request should be sent or not.
  11584. * src/Time.h
  11585. (setTimeInSec): New function.
  11586. * src/Time.cc
  11587. (setTimeInSec): New function.
  11588. etc.
  11589. * src/ChokeMessage.cc
  11590. (receivedAction): Removed peer->snubbing = false
  11591. * src/PeerConnection.h
  11592. (receiveHandshake): Updated doc.
  11593. * src/TorrentMan.h
  11594. (getAdvertisedPieceIndexes): Updated the method signature.
  11595. * src/TorrentMan.cc
  11596. (getAdvertisedPieceIndexes): Updated the method signature.
  11597. * src/Time.h
  11598. (getTimeInMicros): Added a cast to (long long int).
  11599. (getTimeInMillis): Added a cast to (long long int).
  11600. * Release 0.5.2
  11601. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11602. To make a listening socket non-block:
  11603. * src/SocketCore.h
  11604. (setNonBlockingMode): New function.
  11605. * src/SocketCore.cc
  11606. (setNonBlockingMode): New function.
  11607. (beginListen): Added a call to setNonBlockingMode().
  11608. (acceptConnection): Call setNonBlockingMode().
  11609. (setBlockingMode): Updated.
  11610. To handle tracker's NAT-checking:
  11611. * src/PeerConnection.cc
  11612. (receiveHandshake): 'msg' param is filled with received data and
  11613. its length is assigned to 'length' param, even if all handshake
  11614. message is not yet received.
  11615. * src/PeerInteractionCommand.cc
  11616. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11617. a new peer connects to localhost.
  11618. A call to peerInteraction->sendHandshake() was removed because
  11619. it is called from peerInteraction->receiveHandshake(true).
  11620. * src/PeerInteraction.h
  11621. (quickReplied): New variable.
  11622. (receiveHandshake): Added an argument.
  11623. * src/PeerInteraction.cc
  11624. (PeerInteraction): Added the initialization of quickReplied.
  11625. (receiveHandshake): Send handshake message as soon as the info hash
  11626. in a handshake message from a peer is correct.
  11627. To change the random part of peer id and key parameter:
  11628. * src/TorrentMan.h
  11629. (key): New variable.
  11630. * src/TorrentMan.cc
  11631. (setupInternal1): Use Util::randomAlpha() to generate random part
  11632. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11633. key is also generated by Util::randomAlpha() and it is now 8 character
  11634. long.
  11635. * src/Util.h
  11636. (randomAlpha): New function.
  11637. * src/Util.cc
  11638. (randomAlpha): New function.
  11639. * src/TrackerWatcherCommand.cc
  11640. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11641. Added no_peer_id=1.
  11642. Set snubbing flag to false when a choke message is received from a
  11643. snubbed peer.
  11644. * src/ChokeMessage.cc
  11645. (receivedAction): Set snubbing flag to false.
  11646. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11647. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  11648. * src/SimpleLogger.h (writeHeader): New function.
  11649. * src/SimpleLogger.cc (writeHeader): New function.
  11650. (writeLog): Fixed the bug that causes segfaults if exception message
  11651. contains an unescaped "%" character.
  11652. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  11653. when a tracker request fails.
  11654. * src/Request.cc (parseUrl): Query string is now handled properly.
  11655. * Release 0.5.1
  11656. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11657. To add Time class which represents a specific instant in time and
  11658. its precision is microseconds. Time checking procedures were rewritten
  11659. using this object.
  11660. * src/Time.h: New class.
  11661. * src/Time.cc: New class.
  11662. * src/AbstractCommand.h
  11663. (updateCheckPoint): Removed.
  11664. (isTimeoutDetected): Removed.
  11665. (checkPoint): Changed the type to Time.
  11666. (timeout): New variable.
  11667. (setTimeout): New function.
  11668. * src/AbstractCommand.cc
  11669. (AbstractCommand): Removed the initialization of checkPoint.
  11670. Added the initialization of timeout.
  11671. (updateCheckPoint): Removed.
  11672. (isTimeoutDetected): Removed.
  11673. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11674. * src/PeerChokeCommand.h
  11675. (checkPoint): Changed the type to Time.
  11676. * src/PeerChokeCommand.cc
  11677. (PeerChokeCommand): Removed the initialization of checkPoint.
  11678. (execute): Rewritten using Time object.
  11679. * src/TrackerWatcherCommand.h
  11680. (checkPoint): Changed the type to Time.
  11681. * src/TrackerWatcherCommand.cc
  11682. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  11683. (execute): Rewritten.
  11684. * src/ConsoleDownloadEngine.h
  11685. (cp): Changed the type to Time.
  11686. (startup): Changed the type to Time.
  11687. * src/ConsoleDownloadEngine.cc
  11688. (initStatistics): Use cp.reset(), startup.reset().
  11689. (calculateStatistics): Rewritten using Time object.
  11690. * src/PeerAbstractCommand.h
  11691. (updateCheckPoint): Removed.
  11692. (isTimeoutDetected): Removed.
  11693. (checkPoint): Changed the type to Time.
  11694. * src/PeerAbstractCommand.cc
  11695. (PeerAbstractCommand): Removed the initialization of checkPoint.
  11696. (updateCheckPoint): Removed.
  11697. (isTimeoutDetected): Removed.
  11698. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11699. * src/PeerInteractionCommand.cc
  11700. (PeerInteractionCommand): Removed the initializations of struct
  11701. timeval variables.
  11702. * src/PeerInteractionCommand.h
  11703. (keepAliveCheckPoint): Changed the type to Time.
  11704. (chokeCheckPoint): Changed the type to Time.
  11705. (freqCheckPoint): Changed the type to Time.
  11706. (haveCheckTime): Changed the type to Time.
  11707. * src/PeerInteractionCommand.cc
  11708. (executeInternal): Rewritten using Time object.
  11709. (detectMessageFlooding): Rewritten using Time object.
  11710. (checkLongTimePeerChoking): Rewritten using Time object.
  11711. (sendKeepAlive): Rewritten using Time object.
  11712. (checkHave): Rewritten using Time object.
  11713. * src/SleepCommand.h
  11714. (checkPoint): Changed the type to Time.
  11715. * src/SleepCommand.cc
  11716. (SleepCommand): Removed the initialization of checkPoint.
  11717. (execute): Rewritten using Time object.
  11718. * src/TorrentAutoSaveCommand.h
  11719. (checkPoint): Changed the type to Time.
  11720. * src/TorrentAutoSaveCommand.cc
  11721. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  11722. (execute): Rewritten.
  11723. * src/DownloadCommand.h
  11724. (sw): Changed the type to Time.
  11725. * src/DownloadCommand.cc
  11726. (DownloadCommand): Removed the initialization of sw.
  11727. (executeInternal): Rewritten.
  11728. * src/RequestSlot.h
  11729. (dispatchedTime): Changed the type to Time.
  11730. * src/RequestSlot.cc
  11731. (RequestSlot): Removed the call to setDispatchedTime().
  11732. (setDispatchedTime): Rewirtten.
  11733. (isTimeout): Rewritten.
  11734. (getLatencyInMillis): Rewritten.
  11735. * src/TorrentDownloadEngine.h
  11736. (cp): Changed the type to Time[2].
  11737. (startup): Changed the type to Time.
  11738. * src/TorrentDownloadEngine.cc
  11739. (initStatistics): Rewritten.
  11740. (calculateStatistics): Rewritten.
  11741. * src/DownloadEngine.cc
  11742. (run): Rewritten.
  11743. To detect all attempts to connect to the tracker are failed:
  11744. * src/AbstractCommand.cc
  11745. (execute): Increment e->segmentMan->errors if a command aborted.
  11746. * src/SegmentMan.h
  11747. (errors): New variable.
  11748. * src/SegmentMan.cc
  11749. (SegmentMan): Added the initialization of errors.
  11750. (init): Added the initialization of errors.
  11751. * src/TrackerWatcherCommand.cc
  11752. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11753. request was failed.
  11754. To handle snubbed peers:
  11755. * src/PeerChokeCommand.cc
  11756. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11757. (execute): Snubbed peers don't get unchoked.
  11758. * src/PeerInteraction.h
  11759. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11760. * src/PeerInteraction.cc
  11761. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11762. back the requested 16k block in 60 seconds.
  11763. * src/PieceMessage.cc
  11764. (receivedAction): A peer's snubbed state is cleard if it sends
  11765. the requested 16k block in 60 seconds.
  11766. * src/Peer.h
  11767. (snubbing): New variable.
  11768. * src/Peer.cc
  11769. (resetStatus): Added snubbed = false.
  11770. To fix the bug that causes have message is not sent:
  11771. * src/PeerInteractionCommand.cc
  11772. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11773. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11774. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11775. * src/TorrentMan.h
  11776. (HaveEntry): New class.
  11777. (advertisePiece): Rewritten.
  11778. (getAdvertisedPieceIndexes): Rewritten.
  11779. (Haves): Changed the type.
  11780. (getAdvertisedPieceIndexes): Added an argument.
  11781. Others:
  11782. * src/TorrentMan.h
  11783. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11784. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11785. * src/TorrentMan.cc
  11786. (getPeer): Don't check the number of connections here.
  11787. (setupInternal1): Changed peerId.
  11788. * src/PeerInteractionCommand.h
  11789. (KEEP_ALIVE_INTERVAL): New definition.
  11790. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11791. * src/main.cc
  11792. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11793. * src/DownloadEngine.h: Removed unnecessary header includes.
  11794. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11795. To fix the bug that causes segfaults if a tracker returns a zero-length
  11796. list as "peers":
  11797. * src/TrackerUpdateCommand.cc
  11798. (execute): Added a check to see wether the type of peers is Data*.
  11799. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11800. * Release 0.5.0
  11801. To fix compile issue with gcc3:
  11802. * src/CancelMessage.h
  11803. (ID): Renamed as ID_t
  11804. (ID_t): New enum.
  11805. * src/RejectMessage.h
  11806. (ID): Renamed as ID_t
  11807. (ID_t): New enum.
  11808. * src/SuggestPieceMessage.h
  11809. (ID): Renamed as ID_t
  11810. (ID_t): New enum.
  11811. * src/AllowedFastMessage.h
  11812. (ID): Renamed as ID_t
  11813. (ID_t): New enum.
  11814. * src/PortMessage.h
  11815. (ID): Renamed as ID_t
  11816. (ID_t): New enum.
  11817. * src/HaveNoneMessage.h
  11818. (ID): Renamed as ID_t
  11819. (ID_t): New enum.
  11820. * src/KeepAliveMessage.h
  11821. (ID): Renamed as ID_t
  11822. (ID_t): New enum.
  11823. * src/HaveAllMessage.h
  11824. (ID): Renamed as ID_t
  11825. (ID_t): New enum.
  11826. * src/UnchokeMessage.h
  11827. (ID): Renamed as ID_t
  11828. (ID_t): New enum.
  11829. * src/BitfieldMessage.h
  11830. (ID): Renamed as ID_t
  11831. (ID_t): New enum.
  11832. * src/PieceMessage.h
  11833. (ID): Renamed as ID_t
  11834. (ID_t): New enum.
  11835. * src/RequestMessage.h
  11836. (ID): Renamed as ID_t
  11837. (ID_t): New enum.
  11838. * src/NotInterestedMessage.h
  11839. (ID): Renamed as ID_t
  11840. (ID_t): New enum.
  11841. * src/ChokeMessage.h
  11842. (ID): Renamed as ID_t
  11843. (ID_t): New enum.
  11844. * src/InterestedMessage.h
  11845. (ID): Renamed as ID_t
  11846. (ID_t): New enum.
  11847. * src/HaveMessage.h
  11848. (ID): Renamed as ID_t
  11849. (ID_t): New enum.
  11850. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11851. * src/PeerAbstractCommand.h
  11852. (beforeSocketCheck): Removed.
  11853. * src/PeerAbstractCommand.cc
  11854. Modified in order to call executeInternal() even if socket check
  11855. and upload limit check fail.
  11856. * src/PeerInteractionCommand.h
  11857. (keepAlive): Removed.
  11858. (sendKeepAlive): New function.
  11859. (checkHave): New function.
  11860. (beforeSocketCheck): Removed.
  11861. * src/PeerInteractionCommand.cc
  11862. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11863. calls to checkHave() and sendKeepAlive().
  11864. (keepAlive): Renamed to sendKeepAlive().
  11865. (sendKeepAlive): New function.
  11866. (beforeSocketCheck): Removed.
  11867. (checkHave): New function.
  11868. * src/BitfieldMan.cc
  11869. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11870. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11871. 0.
  11872. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11873. * src/TorrentMan.h
  11874. (UsedPieces): Removed.
  11875. (Pieces): New type definition.
  11876. * src/Piece.h: Updated doc.
  11877. * src/Peer.h
  11878. (totalLength): Removed.
  11879. * src/Peer.cc
  11880. (updateLatency): Fixed the latency calculation.
  11881. * src/TorrentMan.cc
  11882. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11883. than or equal to MAX_PEER_LIST_SIZE.
  11884. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11885. then return false.
  11886. (deleteOldErrorPeers): Rewritten.
  11887. (deleteUsedPiece): Fixed the miss use of STL remove.
  11888. * src/PeerInteraction.h
  11889. (Pieces): Removed.
  11890. (deleteTimeoutRequestSlot): Removed.
  11891. (deleteCompletedRequestSlot): Removed.
  11892. (checkRequestSlot): New function.
  11893. * src/PeerInteraction.cc
  11894. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11895. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11896. (checkRequestSlot): New function.
  11897. * src/DownloadEngine.cc
  11898. (run): Clear activeSockets before calling waitData().
  11899. (waitData): Removed a call to activeSockets.clear().
  11900. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11901. To attempt to handle EINTR:
  11902. * src/SocketCore.cc
  11903. (isReadable): Added EINTR handling.
  11904. (isWritable): Added EINTR handling.
  11905. To improve the performance:
  11906. * src/AbstractCommand.cc
  11907. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11908. * src/PeerInteractionCommand.h
  11909. (receiveMessage): Renamed as receiveMessages().
  11910. (receiveMessages): New function.
  11911. * src/PeerInteractionCommand.cc
  11912. (executeInternal): receiveMessage loop is moved to new receiveMessages
  11913. () function. detectMessageFlooding() is moved here.
  11914. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  11915. (). The flooding detection for have message is comment out.
  11916. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  11917. Util::difftv().
  11918. (receiveMessage): Renamed as receiveMessages().
  11919. (receiveMessages): New function.
  11920. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  11921. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  11922. * src/SleepCommand.cc
  11923. (execute): Use Util::difftvsec() instead of Util::difftv().
  11924. * src/BitfieldMan.h
  11925. (getNthBitIndex): New function.
  11926. (hasMissingPiece): New function.
  11927. (getAllMissingIndexes): New function.
  11928. * src/BitfieldMan.cc
  11929. (countSetBit): Rewritten.
  11930. (getNthBitIndex): New function.
  11931. (getMissingIndexRandomly): Rewritten.
  11932. (hasMissingPiece): New function.
  11933. (getAllMissingIndexes): New function.
  11934. * src/TorrentMan.cc
  11935. (hasMissingPiece): New function.
  11936. (deleteUsedPiece): Rewritten using STL.
  11937. * src/PeerInteraction.cc
  11938. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  11939. is a little bit faster then TorrentMan::getMissingPieceIndex().
  11940. (addRequests): Updated the number of pending requests.
  11941. * src/PeerAbstractCommand.cc
  11942. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11943. (execute): Returns true if TorrentMan::isHalt() is true.
  11944. Corrected the condition of upload limit checking.
  11945. * src/Util.h
  11946. (countBit): New function.
  11947. * src/Util.cc
  11948. (nbits): New variable.
  11949. (countBit): New function.
  11950. * src/DownloadEngine.h
  11951. (SockCmdMap): New type definition.
  11952. (waitData): Added an argument.
  11953. (addSocket): Added an argument.
  11954. (addSocketForReadCheck): Added an argument.
  11955. (addSocketForWriteCheck): Added an argument.
  11956. * src/DownloadEngine.cc
  11957. (run): Executes only commands whose sockets are ready to read or write.
  11958. All commands are executed in every 1 second.
  11959. (waitData): Calls select() again if it returned
  11960. EINTR.
  11961. (addSocket): Saves socket and command object pair to the map.
  11962. (deleteSocket): Deletes socket and command object pair from the map.
  11963. (addSocketForReadCheck): Added an argument.
  11964. (addSocketForWriteCheck): Added an argument.
  11965. * src/DownloadCommand.cc
  11966. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11967. To send "event=stopped" to the tracker when the application finishes:
  11968. * src/PeerChokeCommand.h
  11969. (checkPoint): New variable.
  11970. * src/PeerChokeCommand.cc
  11971. (PeerChokeCommand): Added the initialization of checkPoint.
  11972. (execute): The interval check is now done by checkPoint, not
  11973. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11974. * src/TorrentMan.h
  11975. (halt): New function.
  11976. (hasMissingPiece): New function.
  11977. (isHalt): New function.
  11978. (setHalt): New function.
  11979. * src/TorrentMan.cc
  11980. (TorrentMan): Added the initialization of halt.
  11981. * src/TorrentAutoSaveCommand.h
  11982. (checkPoint): New variable.
  11983. * src/PeerListenCommand.cc
  11984. (execute): Returns true if TorrentMan::isHalt() is true.
  11985. * src/main.cc
  11986. (setSignalHander): Added flags argument.
  11987. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11988. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11989. Removed printDownloadAbortMessage() after torrent downloading loop.
  11990. * src/TorrentAutoSaveCommand.cc
  11991. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11992. (execute): Returns true if TorrentMan::isHalt() is true.
  11993. The interval check is now done by checkPoint, not SleepCommand.
  11994. * src/TrackerWatcherCommand.cc
  11995. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11996. event=stopped.
  11997. * src/TrackerUpdateCommand.cc
  11998. (prepareForRetry): Do not use SleepCommand here.
  11999. (execute): Returns true if TorrentMan::isHalt() is true.
  12000. Others:
  12001. * src/TorrentMan.cc
  12002. (getMissingPieceIndex): Updated log message.
  12003. * src/PeerInteraction.cc
  12004. (createPeerMessag): Updated log message.
  12005. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12006. To add the ability to download several pieces in mix in a command and
  12007. increase the number of request slots according to request-cancel
  12008. latency:
  12009. * src/PeerInteractionCommand.cc
  12010. (executeInternal): The number of messages to be received at a time
  12011. is increased from 10 to 50.
  12012. * src/LogFactory
  12013. (getInstance): Added NullLogger.
  12014. * src/NullLogger.h: New class.
  12015. * src/BitfieldMan.h
  12016. (getMissingIndex): New function.
  12017. * src/BitfieldMan.cc
  12018. (getMissingIndex): New function.
  12019. * src/TorrentMan.h
  12020. (checkOutPiece): New function.
  12021. (getMissingPieceIndex): New function.
  12022. (getMissingFastPieceIndex): New function.
  12023. (getMissingFastPiece): New function.
  12024. * src/TorrentMan.cc
  12025. (updatePiece): Rewritten using STL.
  12026. (syncPiece): Rewritten using STL.
  12027. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12028. checkOutPiece().
  12029. (getMissingPieceIndex): New function.
  12030. (getMissingFastPieceIndex): New function.
  12031. (getMissingFastPiece): New function.
  12032. (checkOutPiece): New function.
  12033. * src/PeerInteraction.h
  12034. (Pieces): New type definition.
  12035. (piece): Removed.
  12036. (pieces): New variable.
  12037. (getNewPieceAndSendInterest): Added the "piece" argument.
  12038. (abortPiece): Added the "piece" argument.
  12039. (abortAllPieces): New function.
  12040. (isInRequestSlot): New function.
  12041. (hasDownloadPiece): Added the "index" argument.
  12042. (setDownloadPiece): Removed.
  12043. (getDownloadPiece): Added the "index" argument.
  12044. (updatePiece): New function.
  12045. (createRequestMessage): Added the "index" argument.
  12046. * src/PeerInteraction.cc
  12047. (onChoked): Rewritten.
  12048. (abortPiece): Rewirtten.
  12049. (abortAllPieces): New function.
  12050. (deleteTimeoutRequestSlot): Rewritten.
  12051. Clarified code a little bit.
  12052. (deleteCompletedRequestSlot): Rewritten.
  12053. (isInRequestSlot): New function.
  12054. (syncPiece): Rewritten.
  12055. (updatePiece): New function.
  12056. (getNewPieceAndSendInterest): Rewritten.
  12057. (addRequests): Rewritten.
  12058. (getDownloadPiece): Rewritten.
  12059. (hasDownloadPiece): Rewritten.
  12060. (createRequestMessage): Added the "index" argument.
  12061. * src/common.h
  12062. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12063. (DIV_FLOOR): New definition.
  12064. * src/PieceMessage.cc
  12065. (receivedAction): Update request-piece latency here.
  12066. * src/RequestSlot.h
  12067. (getLatencyInMillis): New function.
  12068. * src/RequestSlot.cc
  12069. (isTimeout): Rewritten using getLatencyInMillis.
  12070. (getLatencyInMillis): New function.
  12071. * src/Piece.h
  12072. (operator==): New function.
  12073. (getMissingBlockIndex): New function.
  12074. * src/Piece.cc
  12075. (operator==): New function.
  12076. (getMissingBlockIndex): New function.
  12077. * src/Peer.h
  12078. (DEFAULT_LATENCY): New definition.
  12079. (latency): New variable.
  12080. (updateLatency): New function.
  12081. (getLatency): New function.
  12082. * src/Peer.cc
  12083. (resetStatus): Reset latecy.
  12084. (updateLatency): New function.
  12085. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. * src/SocketCore.cc
  12087. (isReadable): Added secure to the condition.
  12088. * src/HttpConnection.cc
  12089. (receiveResponse): Fixed a bug that causes no response header
  12090. exception.
  12091. * src/Peer.h
  12092. (getFastSet): Fixed the return value type.
  12093. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12094. To remove a wait from download loop:
  12095. * src/DownloadEngine.cc
  12096. (run): Comment out shortSleep.
  12097. To rewrite the message handling:
  12098. * src/SimplePeerMessage.h: New class.
  12099. * src/SimplePeerMessage.cc: New class.
  12100. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12101. (msg): New variable.
  12102. (create): New function.
  12103. (send): Removed.
  12104. (getMessage): New function.
  12105. (getMessageLength): New function.
  12106. * src/CancelMessage.cc
  12107. (create): New function.
  12108. (receivedAction): Replaced deleteRequestMessageInQueue with
  12109. rejectPieceMessageInQueue.
  12110. (send): Removed.
  12111. (getMessage): New function.
  12112. (getMessageLength): New function.
  12113. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12114. (msg): New variable.
  12115. (msgLength): New variable.
  12116. (~BitfieldMessage): Deleted msg.
  12117. (send): Removed.
  12118. (getMessage): New function.
  12119. (getMessageLength): New function.
  12120. * src/BitfieldMessage.cc
  12121. (create): New function.
  12122. (send): Removed.
  12123. (getMessage): New function.
  12124. (getMessageLength): New function.
  12125. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12126. (msg): New variable.
  12127. (sendPredicate): New function.
  12128. (onSendComplete): New function.
  12129. (send): Removed.
  12130. (getMessage): New function.
  12131. (getMessageLength): New function.
  12132. (create): New function.
  12133. * src/ChokeMessage.cc
  12134. (create): New function.
  12135. (send): Removed.
  12136. (sendPredicate): New function.
  12137. (getMessage): New function.
  12138. (getMessageLength): New function.
  12139. (onSendComplete): New function.
  12140. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12141. (msg): New variable.
  12142. (send): Removed.
  12143. (getMessage): New function.
  12144. (getMessageLength): New function.
  12145. * src/KeepAliveMessage.cc
  12146. (send): Removed.
  12147. (getMessage): New function.
  12148. (getMessageLength): New function.
  12149. * src/PortMessage.h
  12150. (create): New function.
  12151. (receivedAction): Updated log message.
  12152. * src/PortMessage.cc: New file.
  12153. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12154. (msg): New variable.
  12155. (sendPredicate): New function.
  12156. (onSendComplete): New function.
  12157. (create): New function.
  12158. (send): Removed.
  12159. (getMessage): New function.
  12160. (getMessageLength): New function.
  12161. * src/UnchokeMessage.cc
  12162. (create): New function.
  12163. (send): Removed.
  12164. (sendPredicate): New function.
  12165. (getMessage): New function.
  12166. (getMessageLength): New function.
  12167. (onSendComplete): New function.
  12168. * src/PieceMessage.h
  12169. (leftPieceDataLength): Removed.
  12170. (leftDataLength): New variable.
  12171. (headerSend): New variable.
  12172. (pendingCount): New variable.
  12173. (msgHeader): New variable.
  12174. (sendPieceData): New function.
  12175. (incrementPendingCount): New function.
  12176. (isPendingCountMax): New function.
  12177. (create): New function.
  12178. (getMessageHeader): New function.
  12179. (getMessageHeaderLength): New function.
  12180. * src/PieceMessage.cc
  12181. (create): New function.
  12182. (getMessageHeader): New function.
  12183. (getMessageHeaderLength): New function.
  12184. (send): Rewritten.
  12185. (sendPieceData): New function.
  12186. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12187. (msg): New variable.
  12188. (create): New function.
  12189. (getMessage): New function.
  12190. (getMessageLength): New function.
  12191. * src/HaveMessage.cc
  12192. (create): New function.
  12193. (send): Removed.
  12194. (sendPieceData): New function.
  12195. (getMessage): New function.
  12196. (getMessageLength): New function.
  12197. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12198. (msg): New variable.
  12199. (create): New function.
  12200. (send): Removed.
  12201. (getMessage): New function.
  12202. (getMessageLength): New function.
  12203. * src/RequestMessage.cc
  12204. (create): New function.
  12205. (receivedAction): Added the handling of fast extension.
  12206. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12207. (send): Removed.
  12208. (getMessage): New function.
  12209. (getMessageLength): New function.
  12210. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12211. (msg): New variable.
  12212. (sendPredicate): New function.
  12213. (onSendComplete): New function.
  12214. (create): New function.
  12215. (getMessage): New function.
  12216. (getMessageLength): New function.
  12217. * src/InterestedMessage.cc
  12218. (create): New function.
  12219. (send): Removed.
  12220. (sendPieceData): New function.
  12221. (getMessage): New function.
  12222. (getMessageLength): New function.
  12223. (onSendComplete): New function.
  12224. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12225. (msg): New variable.
  12226. (sendPieceData): New function.
  12227. (onSendComplete): New function.
  12228. (create): New function.
  12229. (send): Removed.
  12230. (getMessage): New function.
  12231. (getMessageLength): New function.
  12232. * src/NotInterestedMessage.cc
  12233. (create): New function.
  12234. (send): Removed.
  12235. (sendPredicate): New function.
  12236. (getMessage): New function.
  12237. (getMessageLength): New function.
  12238. (onSendComplete): New function.
  12239. * src/AllowedFastMessage.h: New class.
  12240. * src/AllowedFastMessage.cc: New class.
  12241. * src/RejectMessage.h: New class.
  12242. * src/RejectMessage.cc: New class.
  12243. * src/SuggestPieceMessage.h: New class.
  12244. * src/SuggestPieceMessage.cc: New class.
  12245. * src/HaveAllMessage.h: New class.
  12246. * src/HaveAllMessage.cc: New class.
  12247. * src/HaveNoneMessage.h: New class.
  12248. * src/HaveNoneMessage.cc: New class.
  12249. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12250. (msg): New variable.
  12251. (reserved): New variable.
  12252. (create): New function.
  12253. (getId): New function.
  12254. (receivedAction): New function.
  12255. (getMessage): New function.
  12256. (getMessageLength): New function.
  12257. (isFastExtensionSupported): New function.
  12258. * src/HandshakeMessage.cc
  12259. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12260. (create): New function.
  12261. (getMessage): New function.
  12262. (getMessageLength): New function.
  12263. (toString): Added the output of reserved field.
  12264. (check): Added const qualifier.
  12265. (isFastExtensionSupported): New function.
  12266. * src/PeerMessageUtil.h
  12267. (createChokeMessage): Removed.
  12268. (createUnchokeMessage): Removed.
  12269. (createInterestedMessage): Removed.
  12270. (createNotInterestedMessage): Removed.
  12271. (createHaveMessage): Removed.
  12272. (createBitfieldMessage): Removed.
  12273. (createRequestMessage): Removed.
  12274. (createCancelMessage): Removed.
  12275. (createPieceMessage): Removed.
  12276. (createPortMessage): Removed.
  12277. (createChokeMessage): Removed.
  12278. (createUnchokeMessage): Removed.
  12279. (createInterestedMessage): Removed.
  12280. (createNotInterestedMessage): Removed.
  12281. (createHaveMessage): Removed.
  12282. (createBitfieldMessage): Removed.
  12283. (createRequestMessage): Removed.
  12284. (createCancelMessage): Removed.
  12285. (createPieceMessage): Removed.
  12286. (createKeepAliveMessage): Removed.
  12287. (createHandshakeMessage): Removed.
  12288. (setIntParam): New function.
  12289. (createPeerMessageString): New function.
  12290. * src/PeerMessageUtil.cc
  12291. (createChokeMessage): Removed.
  12292. (createUnchokeMessage): Removed.
  12293. (createInterestedMessage): Removed.
  12294. (createNotInterestedMessage): Removed.
  12295. (createHaveMessage): Removed.
  12296. (createBitfieldMessage): Removed.
  12297. (createRequestMessage): Removed.
  12298. (createCancelMessage): Removed.
  12299. (createPieceMessage): Removed.
  12300. (createPortMessage): Removed.
  12301. (createRequestMessage): Removed.
  12302. (createCancelMessage): Removed.
  12303. (createPieceMessage): Removed.
  12304. (createHaveMessage): Removed.
  12305. (createChokeMessage): Removed.
  12306. (createUnchokeMessage): Removed.
  12307. (createInterestedMessage): Removed.
  12308. (createNotInterestedMessage): Removed.
  12309. (createBitfieldMessage): Removed.
  12310. (createKeepAliveMessage): Removed.
  12311. (createHandshakeMessage): Removed.
  12312. (setIntParam): New function.
  12313. (createPeerMessageString): New function.
  12314. * src/PeerConnection.h
  12315. (peer): Removed.
  12316. (torrentMan): Removed.
  12317. (createNLengthMessage): Removed.
  12318. (setIntParam): Removed.
  12319. (writeOutgoingMessageLog): Removed all overloaded functions.
  12320. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12321. (sendMessage): New function.
  12322. (sendHandshake): Removed.
  12323. (sendKeepAlive): Removed.
  12324. (sendChoke): Removed.
  12325. (sendUnchoke): Removed.
  12326. (sendInterested): Removed.
  12327. (sendNotInterested): Removed.
  12328. (sendHave): Removed.
  12329. (sendBitfield): Removed.
  12330. (sendRequest): Removed.
  12331. (sendPiece): Removed.
  12332. (sendPieceHeader): Removed.
  12333. (sendPieceData): Removed.
  12334. (sendCancel): Removed.
  12335. (getPeer): Removed.
  12336. * src/PeerConnection.cc
  12337. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12338. (sendHandshake): Removed.
  12339. (sendKeepAlive): Removed.
  12340. (createNLengthMessage): Removed.
  12341. (setIntParam): Removed.
  12342. (writeOutgoingMessageLog): Removed all overloaded functions.
  12343. (sendChoke): Removed.
  12344. (sendUnchoke): Removed.
  12345. (sendInterested): Removed.
  12346. (sendNotInterested): Removed.
  12347. (sendHave): Removed.
  12348. (sendBitfield): Removed.
  12349. (sendRequest): Removed.
  12350. (sendPiece): Removed.
  12351. (sendPieceHeader): Removed.
  12352. (sendPieceData): Removed.
  12353. (sendMessage): New function.
  12354. (sendCancel): Removed.
  12355. * src/PeerInteractionCommand.cc
  12356. (PeerInteractionCommand): Call setUploadLimit.
  12357. (executeInternal): Call setUploadLimit.
  12358. Added the handling of "inProgress" state of handshake message.
  12359. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12360. sendNow().
  12361. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12362. sendNow().
  12363. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12364. * src/TorrentMan.h
  12365. (PEER_ID_LENGTH): New definition.
  12366. (hasAllPieces): New function.
  12367. * src/TorrentMan.cc
  12368. (getMissingPiece): Added the handling of fast extension.
  12369. (cancelPiece): Call updatePiece().
  12370. (hasAllPieces): New function.
  12371. * src/PeerInteraction.h
  12372. (fastSet): New variable.
  12373. (getNewPieceAndSendInterest): Changed the return type to void.
  12374. (send): Renamed as sendMessages.
  12375. (deleteAllRequestSlot): Removed.
  12376. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12377. (cancelAllRequest): Removed all overloaded functions.
  12378. (deleteAllRequestSlot): Removed.
  12379. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12380. (rejectPieceMessageInQueue): New function.
  12381. (rejectAllPieceMessageInQueue): New function.
  12382. (onChoked): New function.
  12383. (isSendingMessageInProgress): New function.
  12384. (getCorrespondingRequestSlot): Changed its arguments.
  12385. (isInFastSet): New function.
  12386. (addFastSetIndex): New function.
  12387. (addRequests): New function.
  12388. (sendNow): Removed.
  12389. (trySendNow): Removed.
  12390. (sendBitfield): New function.
  12391. (sendAllowdFast): New function.
  12392. (createHaveAllMessage): New function.
  12393. (createHaveNoneMessage): New function.
  12394. (createRejectMessage): New function.
  12395. (createAllowedFastMessage): New function.
  12396. * src/PeerInteraction.cc
  12397. (send): Renamed as sendMessages.
  12398. (sendMessages): New function.
  12399. (MsgPushBack): New class.
  12400. (isSendingMessageInProgress): New function.
  12401. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12402. (rejectAllPieceMessageInQueue): New function.
  12403. Added the handling of fast extension.
  12404. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12405. (rejectPieceMessageInQueue): New function.
  12406. Added the handling of fast extension.
  12407. (deleteRequestSlot): Replaced for loop with std::find.
  12408. (onChoked): New function.
  12409. (deleteAllRequestSlot): Removed.
  12410. (abortPiece): Rewirtten.
  12411. (deleteTimeoutRequestSlot): Updated log messages.
  12412. (getCorrespondingRequestSlot): Changed its arguments.
  12413. (cancelAllRequest): Removed all overloaded functions.
  12414. (receiveHandshake): Added the check to see whether an incoming peer
  12415. supports fast extension.
  12416. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12417. PeerMessageUtil.
  12418. (createPeerMessage): Use create() of each message class instead of
  12419. PeerMessageUtil.
  12420. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12421. AllowedFastMessage were added.
  12422. (getNewPieceAndSendInterest): Changed its return value type to void.
  12423. Added the handling of fast extension.
  12424. (addRequests): New function.
  12425. (sendNow): Removed.
  12426. (sendHandshake): Rewritten.
  12427. (trySendNow): Removed.
  12428. (sendBitfield): New function.
  12429. (sendAllowdFast): New function.
  12430. (isInFastSet): New function.
  12431. (addFastSetIndex): New function.
  12432. (createRequestMessage): Use RequestMessage::create instead of
  12433. PeerMessageUtil.
  12434. (createCancelMessage): Use CancelMessage::create instead of
  12435. PeerMessageUtil.
  12436. (createPieceMessage): Use PieceMessage::create instead of
  12437. PeerMessageUtil.
  12438. (createHaveMessage): Use HaveMessage::create instead of
  12439. PeerMessageUtil.
  12440. (createChokeMessage): Use ChokeMessage::create instead of
  12441. PeerMessageUtil.
  12442. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12443. PeerMessageUtil.
  12444. (createInterestedMessage): Use InterestedMessage::create instead of
  12445. PeerMessageUtil.
  12446. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12447. of PeerMessageUtil.
  12448. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12449. PeerMessageUtil.
  12450. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12451. PeerMessageUtil.
  12452. (createHaveAllMessage): New function.
  12453. (createHaveNoneMessage): New function.
  12454. (createRejectMessage): New function.
  12455. (createAllowedFastMessage: New function.
  12456. * src/Util.h
  12457. (sha1Sum): New function.
  12458. (computeFastSet): New function.
  12459. * src/Util.cc
  12460. (sha1Sum): New function.
  12461. (computeFastSet): New function.
  12462. * src/Peer.h
  12463. (fastExtensionEnabled): New variable.
  12464. (fastSet): New variable.
  12465. (setAllBitfield): New function.
  12466. (setFastExtensionEnabled): New function.
  12467. (isFastExtensionEnabled): New function.
  12468. (addFastSetIndex): New function.
  12469. (getFastSet): New function.
  12470. (isInFastSet): New function.
  12471. (countFastSet): New function.
  12472. * src/Peer.cc
  12473. (isInFastSet): New function.
  12474. (addFastSetIndex): New function.
  12475. (setAllBitfield): New function.
  12476. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12477. sockets.
  12478. * src/PeerAbstractCommand.cc
  12479. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12480. and uploadLimit.
  12481. (execute): Changed the procedure of checking sockets. The upload speed
  12482. checking were added.
  12483. (setUploadLimit): New function.
  12484. (setUploadLimitCheck): New function.
  12485. * src/PeerAbstractCommand.h
  12486. (setUploadLimit): New function.
  12487. (setUploadLimitCheck): New function.
  12488. (uploadLimit): New variable.
  12489. (uploadLimitCheck): New variable.
  12490. To contact a tracker regularly:
  12491. * src/TrackerWatcherCommand.h (interval): New variable.
  12492. (checkPoint): New variable.
  12493. (TrackerWatcherCommand): Added interval argument.
  12494. * src/TrackerWatcherCommand.cc
  12495. (TrackerWatcherCommand): Initialized checkPoint.
  12496. (execute): Now a tracker is contacted in every specified period.
  12497. If peer list is not needed, send request with numwant=0.
  12498. * src/TrackerUpdateCommand.cc
  12499. (execute): Updated log messages.
  12500. * src/DownloadEngine.cc
  12501. (~DownloadEngine): Removed two asserts.
  12502. (waitData): Uncommented wfds. May be a bug fix.
  12503. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12504. * src/PeerInteractionCommand.h
  12505. (checkInactiveConnection): Removed.
  12506. * src/PeerInteractionCommand.cc
  12507. (executeInternal): Removed following function calls:
  12508. detectMessageFlooding(), checkLongTimePeerChoking and
  12509. checkInactiveConnection().
  12510. (checkInactiveConnection): Removed.
  12511. (detectMessageFlooding): Removed function call to
  12512. checkInactiveConnection().
  12513. * src/PeerMessageUtil.h
  12514. (createChokeMessage): New function. Overload.
  12515. (createUnchokeMessage): New function. Overload.
  12516. (createInterestedMessage): New function. Overload.
  12517. (createNotInterestedMessage): New function. Overload.
  12518. (createHaveMessage): New function. Overload.
  12519. (createBitfieldMessage): New function. Overload.
  12520. (createRequestMessage): New function. Overload.
  12521. (createCancelMessage): New function. Overload.
  12522. (createPieceMessage): New function. Overload.
  12523. (createKeepAliveMessage): New function. Overload.
  12524. * src/PeerMessageUtil.cc
  12525. (createChokeMessage): New function. Overload.
  12526. (createUnchokeMessage): New function. Overload.
  12527. (createInterestedMessage): New function. Overload.
  12528. (createNotInterestedMessage): New function. Overload.
  12529. (createHaveMessage): New function. Overload.
  12530. (createBitfieldMessage): New function. Overload.
  12531. (createRequestMessage): New function. Overload.
  12532. (createCancelMessage): New function. Overload.
  12533. (createPieceMessage): New function. Overload.
  12534. (createKeepAliveMessage): New function. Overload.
  12535. * src/SendMessageQueue.cc
  12536. (createRequestMessage): Use PeerMessageUtil.
  12537. (createCancelMessage): Use PeerMessageUtil.
  12538. (createPieceMessage): Use PeerMessageUtil.
  12539. (createHaveMessage): Use PeerMessageUtil.
  12540. (createChokeMessage): Use PeerMessageUtil.
  12541. (createUnchokeMessage): Use PeerMessageUtil.
  12542. (createInterestedMessage): Use PeerMessageUtil.
  12543. (createNotInterestedMessage): Use PeerMessageUtil.
  12544. (createBitfieldMessage): Use PeerMessageUtil.
  12545. (createKeepAliveMessage): Use PeerMessageUtil.
  12546. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12547. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12548. * src/PeerInteraction.h: New class.
  12549. * src/PeerInteraction.cc: New class.
  12550. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12551. Each peer message has its own class.
  12552. * src/PendingMessages.h: Removed.
  12553. * src/PendingMessages.cc: Removed. The sending process was moved to
  12554. each message class.
  12555. * src/RequestSlotMan.h: Removed.
  12556. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12557. SendMessageQueue.
  12558. * src/RequestMessage.h: New class.
  12559. * src/RequestMessage.cc: New class.
  12560. * src/CancelMessage.h: New class.
  12561. * src/CancelMessage.cc: New class.
  12562. * src/BitfieldMessage.h: New class.
  12563. * src/BitfieldMessage.cc: New class.
  12564. * src/ChokeMessage.h: New class.
  12565. * src/ChokeMessage.cc: New class.
  12566. * src/KeepAliveMessage.h: New class.
  12567. * src/KeepAliveMessage.cc: New class.
  12568. * src/PortMessage.h: New class.
  12569. * src/UnchokeMessage.h: New class.
  12570. * src/UnchokeMessage.cc: New class.
  12571. * src/PieceMessage.h: New class.
  12572. * src/PieceMessage.cc: New class.
  12573. * src/HaveMessage.h: New class.
  12574. * src/HaveMessage.cc: New class.
  12575. * src/BitfieldMessage.h: New class.
  12576. * src/BitfieldMessage.cc: New class.
  12577. * src/NotInterestedMessage.h: New class.
  12578. * src/NotInterestedMessage.cc: New class.
  12579. * src/InterestedMessage.h: New class.
  12580. * src/InterestedMessage.cc: New class.
  12581. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12582. (getSendMessageQueue): New function.
  12583. (setSendMessageQueue): New function.
  12584. * src/HandshakeMessage.cc: New class.
  12585. * src/PeerConnection.h (receiveMessage): Changed return value and
  12586. arguments.
  12587. (receiveHandshake): Changed return value and arguments.
  12588. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12589. here.
  12590. (receiveHandshake): Do not create handshake class here.
  12591. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12592. (piece): Removed.
  12593. (syncPiece): Removed.
  12594. (sendInterest): Removed.
  12595. (sendMessages): Removed.
  12596. (createRequestPendingMessage): Removed.
  12597. (checkPieceHash): Removed.
  12598. (erasePieceOnDisk): Removed.
  12599. (getNewPieceAndSendInterest): Removed.
  12600. (onGotNewPice): Removed.
  12601. (onGotWrongPiece): Removed.
  12602. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12603. Removed peerConnection, piece.
  12604. (~PeerInteractionCommand): Removed peerConnection.
  12605. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12606. (syncPiece): Moved to SendMessageQueue.
  12607. (decideChoking): Removed PendingMessage.
  12608. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12609. The action after receiving peer message was moved to each message
  12610. class.
  12611. (onGotNewPice): Moved to SendMessageQueue.
  12612. (onGotWrongPiece): Moved to SendMessageQueue.
  12613. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12614. (sendInterest): Moved to SendMessageQueue.
  12615. (createRequestPendingMessage): Removed.
  12616. (sendMessages): Moved to SendMessageQueue.
  12617. (onAbort): Use SendMessageQueue::abortPiece()
  12618. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12619. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12620. (checkPieceHash): Moved to SendMessageQueue.
  12621. (erasePieceOnDisk): Moved to SendMessageQueue.
  12622. * src/PeerMessageUtil.h
  12623. (createBitfieldMessage): Removed.
  12624. (createHaveMessage): Changed return value and arguments.
  12625. (createBitfieldMessage): Changed return value and arguments.
  12626. (createRequestCancelMessage): Removed.
  12627. (createPieceMessage): Changed return value and arguments.
  12628. (getShortIntParam): New function.
  12629. (checkIndex): Changed arguments.
  12630. (checkBegin): Changed arguments.
  12631. (checkLength): Changed arguments.
  12632. (checkPieceOffset): Removed.
  12633. (checkRange): New function.
  12634. (checkBitfield): Changed arguments.
  12635. (createPeerMessage): Removed.
  12636. (checkIntegrity): Removed.
  12637. (createHandshakeMessage): Changed arguments.
  12638. (createChokeMessage): New function.
  12639. (createUnchokeMessage): New function.
  12640. (createInterestedMessage): New function.
  12641. (createNotInterestedMessage): New function.
  12642. (createRequestMessage): New function.
  12643. (createCancelMessage): New function.
  12644. (createPortMessage): New function.
  12645. * src/PeerMessageUtil.cc
  12646. (createBitfieldMessage): Removed.
  12647. (createHaveMessage): Changed return value and arguments.
  12648. (createBitfieldMessage): Changed return value and arguments.
  12649. (createRequestCancelMessage): Removed.
  12650. (createPieceMessage): Changed return value and arguments.
  12651. (getShortIntParam): New function.
  12652. (checkIndex): Changed arguments.
  12653. (checkBegin): Changed arguments.
  12654. (checkLength): Changed arguments.
  12655. (checkPieceOffset): Removed.
  12656. (checkRange): New function.
  12657. (checkBitfield): Changed arguments.
  12658. (createPeerMessage): Removed.
  12659. (checkIntegrity): Removed.
  12660. (createHandshakeMessage): Changed arguments.
  12661. (createChokeMessage): New function.
  12662. (createUnchokeMessage): New function.
  12663. (createInterestedMessage): New function.
  12664. (createNotInterestedMessage): New function.
  12665. (createRequestMessage): New function.
  12666. (createCancelMessage): New function.
  12667. (createPortMessage): New function.
  12668. * src/PeerMessage.h
  12669. (id): Removed.
  12670. (index): Removed.
  12671. (begin): Removed.
  12672. (length): Removed.
  12673. (bitfield): Removed.
  12674. (bitfieldLength): Removed.
  12675. (block): Removed.
  12676. (blockLength): Removed.
  12677. (inProgress): New variable.
  12678. (cuid): New variable.
  12679. (peer): New variable.
  12680. (sendMessageQueue): New variable.
  12681. (logger): New variable.
  12682. (setBitfield): Removed.
  12683. (getBitfield): Removed.
  12684. (setBlock): Removed.
  12685. (getBlock): Removed.
  12686. (getBitfieldLength): Removed.
  12687. (getBlockLength): Removed.
  12688. (isInProgress): New function.
  12689. (toString): Made pure virtual.
  12690. (check): New function.
  12691. (send): New function.
  12692. (receivedAction): New function.
  12693. (getId): Made pure virtual.
  12694. (setId): Removed.
  12695. (getIndex): Removed.
  12696. (setIndex): Removed.
  12697. (getBegin): Removed.
  12698. (setBegin): Removed.
  12699. (getLength): Removed.
  12700. (setLength): Removed.
  12701. (getCuid): New function.
  12702. (setCuid): New function.
  12703. (getPeer): New function.
  12704. (setPeer): New function.
  12705. (getSendMessageQueue): New function.
  12706. (setSendMessageQueue): New function.
  12707. (ID): Removed.
  12708. * src/PeerMessage.cc
  12709. (setBitfield): Removed.
  12710. (setBlock): Removed.
  12711. (toString): Removed.
  12712. * src/TorrentMan.h
  12713. (getPieceLength): New function.
  12714. (getPieceLength): New function.
  12715. * src/SendMessageQueue.h
  12716. (REQUEST_TIME_OUT): New definition.
  12717. (RequestSlots): New definition.
  12718. (MessageQueue): New definition.
  12719. (requestSlotMan): Removed.
  12720. (pendingMessages): Removed.
  12721. (requestSlots): New variable.
  12722. (messageQueue): New variable.
  12723. (torrentMan): New variable.
  12724. (peerConnection): New variable.
  12725. (peer): New variable.
  12726. (piece): New variable.
  12727. (getNewPieceAndSendInterest): New function.
  12728. (createPeerMessage): New function.
  12729. (createHandshakeMessage): New function.
  12730. (send): Made private.
  12731. (setPeerMessageCommonProperty): New function.
  12732. (deleteAllRequestSlot): New function.
  12733. (deleteRequestMessageInQueue): New function.
  12734. (cancelAllRequest): Made private.
  12735. (cancelAllRequest): Made private.
  12736. (countRequestSlot): Made private.
  12737. (addPendingMessage): Removed.
  12738. (deletePendingPieceMessage): Removed.
  12739. (deletePendingRequestMessage): Removed.
  12740. (addMessage): New function.
  12741. (deletePieceMessageInQueue): New function.
  12742. (deleteTimeoutRequestSlot): Changed argument.
  12743. (deleteCompletedRequestSlot): Changed argument.
  12744. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12745. (getCorrespondingRequestSlot): New function.
  12746. (countPendingMessage): Removed.
  12747. (countMessageInQueue): New function.
  12748. (getTorrentMan): New function.
  12749. (getPeerConnection): New function.
  12750. (hasDownloadPiece): New function.
  12751. (getDownloadPiece): New function.
  12752. (setDownloadPiece): New function.
  12753. (syncPiece): New function.
  12754. (sendMessages): New function.
  12755. (sendNow): New function.
  12756. (trySendNow): New function.
  12757. (abortPiece): New function.
  12758. (sendHandshake): New function.
  12759. (receiveMessage): New function.
  12760. (receiveHandshake): New function.
  12761. (createRequestMessage): New function.
  12762. (createCancelMessage): New function.
  12763. (createPieceMessage): New function.
  12764. (createHaveMessage): New function.
  12765. (createChokeMessage): New function.
  12766. (createUnchokeMessage): New function.
  12767. (createInterestedMessage): New function.
  12768. (createNotInterestedMessage): New function.
  12769. (createBitfieldMessage): New function.
  12770. (createKeepAliveMessage): New function.
  12771. * src/SendMessageQueue.cc
  12772. (SendMessageQueue): Removed requestSlotMan.
  12773. Instantiated peerConnection here.
  12774. (~SendMessageQueue): Removed requestSlotMan.
  12775. Added deletion of peerConnection and the contents of messageQueue.
  12776. (send): Updated according to the change of messageQueue.
  12777. (addPendingMessage): Renamed to addMessage.
  12778. (addMessage): New function.
  12779. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12780. (deletePieceMessageInQueue): New function.
  12781. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12782. (deleteRequestMessageInQueue): New function.
  12783. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12784. here.
  12785. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12786. (...) was moved here.
  12787. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12788. moved here.
  12789. (deleteCompletedRequestSlot):
  12790. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12791. (getCorrespondingRequestSlot):
  12792. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12793. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12794. (countPendingMessage): Renamed to countMessageInQueue.
  12795. (countMessageInQueue): New function.
  12796. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12797. (receiveHandshake): New function.
  12798. (createHandshakeMessage): New function.
  12799. (receiveMessage): New function.
  12800. (createPeerMessage): New function.
  12801. (syncPiece): New function.
  12802. (getNewPieceAndSendInterest): New function.
  12803. (sendMessages): New function.
  12804. (sendNow): New function.
  12805. (trySendNow): New function.
  12806. (sendHandshake): New function.
  12807. (abortPiece): New function.
  12808. (getDownloadPiece): New function.
  12809. (getPeerMessageCommonProperty): New function.
  12810. (createRequestMessage): New function.
  12811. (createCancelMessage): New function.
  12812. (createPieceMessage): New function.
  12813. (createHaveMessage): New function.
  12814. (createChokeMessage): New function.
  12815. (createUnchokeMessage): New function.
  12816. (createInterestedMessage): New function.
  12817. (createNotInterestedMessage): New function.
  12818. (createBitfieldMessage): New function.
  12819. (createKeepAliveMessage): New function.
  12820. To add simple Content-Disposition support:
  12821. * src/HttpResponseCommand.h (determinFilename): New function.
  12822. * src/HttpResponseCommand.cc (executeInternal):
  12823. Use determinFilename(headers) instead of req->getFile() when comparing
  12824. filename.
  12825. (determinFilename): New function.
  12826. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12827. req->getFile().
  12828. (handleOtherEncoding): Use determinFilename(headers) instead of
  12829. req->getFile().
  12830. * src/Util.h (getContentDispositionFilename): New function.
  12831. * src/Util.cc (getContentDispositionFilename): New function.
  12832. * src/LogFactory.h (release): New function.
  12833. * src/LogFactory.cc (release): New function.
  12834. To fix a bug that causes out-of-bound exception when HTTP status
  12835. line is wrong:
  12836. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12837. size.
  12838. * src/common.h (Deleter): New class.
  12839. * src/SegmentMan.cc
  12840. (~SegmentMan): Added deletion of splitter and diskWriter.
  12841. * src/DownloadEngine.h
  12842. (Commands): Use deque.
  12843. (clearQueue): New function.
  12844. * src/DownloadEngine.cc
  12845. (~DownloadEngine): Added deletion of segmentMan.
  12846. (cleanQueue): New function.
  12847. * src/TorrentDownloadEngine.h
  12848. (TorrentDownloadEngine): The implementation was moved to
  12849. TorrentDownloadEngine.cc.
  12850. (~TorrentDownloadEngine): The implementation was moved to
  12851. TorrentDownloadEngine.cc.
  12852. * src/TorrentDownloadEngine.cc
  12853. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12854. * src/main.cc
  12855. (clearRequest): Removed.
  12856. (handler): Added deletion of e.
  12857. (torrentHandler): Added deletion of te.
  12858. (main): Do not share splitter.
  12859. Use Deleter instead of clearRequest.
  12860. Deletion of classes were updated.
  12861. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12862. * src/main.cc (main): Fixed typo.
  12863. * src/message.h: Fixed typo.
  12864. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12865. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12866. To add --select-file command-line option:
  12867. * src/Util.cc
  12868. (unfoldRange): New function.
  12869. (getNum): New function.
  12870. (unfoldSubRange): New function
  12871. * src/main.cc
  12872. (showUsage): Added help message.
  12873. (main): Added --select-file command-line option. Updated the layout of
  12874. file listing.
  12875. * src/common.h
  12876. (Integers): New definition.
  12877. * src/SocketCore.cc
  12878. (writeData): Removed timeout argument.
  12879. (readData): Removed timeout argument.
  12880. (peekData): Removed timeout argument.
  12881. * src/Socket.cc
  12882. (writeData): Removed timeout argument.
  12883. (readData): Removed timeout argument.
  12884. (peekData): Removed timeout argument.
  12885. * Release 0.4.1
  12886. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12887. To deploy upload rate based choking algorithm:
  12888. * src/PeerInteractionCommand.cc
  12889. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12890. peer currently used.
  12891. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12892. download completes. Simplified.
  12893. (receiveMessage): Updated.
  12894. * src/TorrentMan.h
  12895. (activePeers): New variable.
  12896. (addActivePeer): New function.
  12897. (getActivePeers): New function.
  12898. (deleteActivePeer): New function.
  12899. * src/TorrentMan.cc
  12900. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12901. * src/PeerAbstractCommand.cc
  12902. (onAbort): Use peer->resetStatus().
  12903. * src/main.cc
  12904. (PeerChokeCommand.h): Included.
  12905. (main): Added the instance of ChokingCommand to the command queue.
  12906. * src/Peer.h
  12907. (amChoking): Renamed from amChocking
  12908. (chokingRequired): New variable.
  12909. (optUnchoking): New variable.
  12910. (deltaUpload): New variable.
  12911. (deltaDownload): New variable.
  12912. (addDeltaUpload): New function.
  12913. (resetDeltaUpload): New function.
  12914. (addDeltaDownload): New function.
  12915. (resetDeltaDownload): New function.
  12916. (addPeerUpload): Added a call to addDeltaUpload.
  12917. (addPeerDownload): Added a call to addDeltaDownload.
  12918. * src/Peer.cc
  12919. (shouldBeChoking): Renamed from shouldChoke.
  12920. (resetStatus): New function.
  12921. * src/PeerChokeCommand.h: New class.
  12922. * src/PeerChokeCommand.cc: New class.
  12923. To add lazy upload speed limiter:
  12924. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  12925. statistics calculation to TorrentDownloadEngine.
  12926. * src/TorrentConsoleDownloadEngine.cc
  12927. (sendStatistics): Renamed from printStatistics.
  12928. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  12929. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  12930. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  12931. * src/TorrentDownloadEngine.h: Added the variables for statistics
  12932. calculation.
  12933. (sendStatistics): New function as pure virtual function.
  12934. (getUploadSpeed): New function.
  12935. * src/TorrentDownloadEngine.cc
  12936. (initStatistics): New function.
  12937. (calculateSpeed): New function.
  12938. (calculateStatistics): New function.
  12939. * src/SendMessageQueue.h
  12940. (uploadLength): New variable.
  12941. (send): Added an argument.
  12942. (setUploadLimit): New function.
  12943. (getUploadLimit): New function.
  12944. * src/SendMessageQueue.cc
  12945. (send): Added upload speed limiter.
  12946. * src/prefs.h
  12947. (PREF_UPLOAD_LIMIT): New definition.
  12948. * src/PeerInteractionCommand.cc
  12949. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  12950. * src/main.cc
  12951. (main): Added --upload-limit option
  12952. For bug fixes:
  12953. * src/main.cc
  12954. (showUsage): Corrected --listen-port help
  12955. Other changes:
  12956. * src/TorrentMan.cc
  12957. (getPeer): Return nullPeer if connection is grather than
  12958. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  12959. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12960. To add some useful information to the exception message:
  12961. * src/SocketCore.cc : Updated messages.
  12962. * src/SegmentMan.cc :
  12963. * src/TorrentMan.cc : Updated messages.
  12964. * src/MultiDiskWriter.cc : Updated messages.
  12965. * src/Util.cc : Updated messages.
  12966. * src/AbstractDiskWriter.cc : Updated messages.
  12967. * src/PreAllocationDiskWriter.cc : Updated messages.
  12968. * src/message.cc : Added new messages. Updated some messages.
  12969. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12970. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12971. Updated threshold from 30 to 15.
  12972. * src/AbstractDiskWriter.h (filename): New variable.
  12973. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12974. (createFile): Assigned filename.
  12975. * src/main.cc: Updated the help message for http-auth-scheme.
  12976. * Release 0.4.0
  12977. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12978. To add TrackerUpdateCommand with which replaces
  12979. CompactTrackerResponseProcessor:
  12980. * src/TrackerWatcherCommand.h (req): Removed.
  12981. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12982. if the number of peer connections are less than 30.
  12983. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12984. * src/SegmentMan.h (diskWriter): New function.
  12985. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12986. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12987. (main): Use TrackerUpdateCommand.
  12988. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12989. (req): New variable.
  12990. (setTrackerResponseProcessor): Removed.
  12991. (getTrackerResponseProcessor): Removed.
  12992. (processTrackerResponse): Removed.
  12993. * src/DownloadEngine.h (diskWriter): Removed.
  12994. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12995. to torrentMan->processTrackerResponse().
  12996. To add Util::expandBuffer:
  12997. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12998. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12999. * src/Util.h (expandBuffer): New function.
  13000. To fix the bug that causes segmentation fault when "-l ." is specified
  13001. in command-line option:
  13002. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13003. (openFile): New function.
  13004. (closeFile): New function.
  13005. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13006. (~SimpleLogger): Call closeFile();
  13007. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13008. * src/main.cc (main): Added a check to see logger is configured
  13009. properly.
  13010. To enable HTTP authentication without specifying "--http-auth-scheme"
  13011. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13012. * src/HttpConnection.cc (createRequest): Send Authorization header
  13013. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13014. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13015. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13016. * src/Peer.cc (shouldChoke): Updated algorithm.
  13017. * src/message.h (EX_AUTH_FAILED): New definition.
  13018. (EX_FILE_OPEN): New definition.
  13019. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13020. if status == 401.
  13021. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13022. if req->isTorrent == true.
  13023. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13024. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13025. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13026. (createFile): Updated message.
  13027. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13028. To add a readout of estimated remaining time to normal HTTP/FTP
  13029. downloads:
  13030. * src/ConsoleDownloadEngine.h (startup): New variable.
  13031. (startupLength): New variable.
  13032. (isStartupLengthSet): New variable.
  13033. (avgSpeed): New variable.
  13034. (eta): New variable.
  13035. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13036. estimated remaining time.
  13037. (initStatistics): Initialized newly added variables.
  13038. (calculateStatistics): Calculate average speed and estimated remaining
  13039. time.
  13040. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13041. * src/TrackerDownloadCommand.h: Removed.
  13042. * src/TrackerDownloadCommand.cc: Removed.
  13043. * src/TrackerInitCommand.h: Removed.
  13044. * src/TrackerInitCommand.cc: Removed.
  13045. * src/TrackerUpdateCommand.h: Removed.
  13046. * src/TrackerUpdateCommand.cc: Removed.
  13047. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13048. url written in TrackerInitCommand was moved here. Do not create
  13049. tracker request command if torrentMan->trackers != 0.
  13050. * src/CompactTrackerResponseProcessor.h: New class.
  13051. * src/CompactTrackerResponseProcessor.cc: New class.
  13052. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13053. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13054. Decoupled TorrentDownloadEngine from this.
  13055. * src/SegmentMan.h (init): New function.
  13056. * src/SegmentMan.cc (init): New function.
  13057. * src/TorrentMan.h (responseProcessor): New variable.
  13058. (trackers): New variable.
  13059. (setTrackerResponseProcessor): New function.
  13060. (getTrackerResponseProcessor): New function.
  13061. (processTrackerResponse): New function.
  13062. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13063. (processTrackerResponse): New function.
  13064. * src/main.cc (main): Use ByteArrayDiskWriter and
  13065. CompactTrackerResponseProcessor.
  13066. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13067. processTrackerResponse().
  13068. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13069. readout.
  13070. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13071. which indicates download has completed.
  13072. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13073. (closeFile): fd >= 0, not fd > 0
  13074. * src/main.cc (main): Added short cut for show-files.
  13075. Added short cut for torrent-file.
  13076. Added new command-line option listen-port.
  13077. Updated i18n messages.
  13078. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13079. To add LogFactory which creates singleton logger:
  13080. * src/LogFactory.h: New class.
  13081. * src/LogFactory.cc: New class.
  13082. * src/Command.h (logger): New variable.
  13083. (Constructor): Use LogFactory.
  13084. * src/AbstractCommand.cc: Use Command::logger
  13085. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13086. Use LogFactory.
  13087. * src/SegmentSplitter.h : Made logger protected.
  13088. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13089. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13090. * src/DownloadEngine.h : Made logger protected.
  13091. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13092. * src/PeerInteractionCommand.cc : Use Command::logger.
  13093. * src/HttpResponseCommand.cc : Use Command::logger.
  13094. * src/SegmentMan.h : Made logger private.
  13095. * src/TorrentMan.h : Made logger private.
  13096. * src/TorrentMan.cc : Use LogFactory.
  13097. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13098. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13099. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13100. Use LogFactory.
  13101. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13102. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13103. Use LogFactory.
  13104. * src/DownloadCommand.cc : Use Command::logger.
  13105. * src/PeerAbstractCommand.cc : Use Command::logger.
  13106. * src/PeerListenCommand.cc : Use Command::logger.
  13107. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13108. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13109. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13110. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13111. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13112. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13113. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13114. Use LogFactory.
  13115. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13116. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13117. Use LogFactory.
  13118. * src/main.cc (main): Use LogFactory.
  13119. * src/DiskAdaptor.h (logger): New variable.
  13120. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13121. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13122. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13123. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13124. parameter to a tracker request.
  13125. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13126. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13127. * src/main.cc (setSignalHander): New function.
  13128. (main): Added a handler for SIGTERM.
  13129. (handler): Updated message.
  13130. (torrentHandler): Updated message.
  13131. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13132. * src/TorrentConsoleDownloadEngine.cc
  13133. (onPartialDownloadingCompletes): Renamed as
  13134. onSelectiveDownloadingCompletes.
  13135. (onSelectiveDownloadingCompletes): Updated message.
  13136. To add DiskAdaptor which abstract DiskWriter family:
  13137. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13138. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13139. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13140. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13141. MultiDiskAdaptor.h.
  13142. (readFileEntry): Changed its arguments.
  13143. (setup): setupDiskWriter is merged into this function.
  13144. (setupDiskWriter): Removed.
  13145. (setFileFilter): New function.
  13146. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13147. made in readFileEntry.
  13148. (getFilePath): Removed.
  13149. (getTempFilePath): Removed.
  13150. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13151. (fixFilename): Removed.
  13152. (copySingleFile): Removed.
  13153. (splitMultiFile): Removed.
  13154. (deleteTempFile): Removed.
  13155. (setFileEntriesToDownload): Removed.
  13156. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13157. (isSelectiveDownloadingMode): New function.
  13158. (setAllMultiFileRequestedState): Removed.
  13159. (finishPartialDownloadingMode): Renamed as
  13160. finishSelectiveDownloadingMode.
  13161. (finishSelectiveDownloadingMode): New function.
  13162. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13163. (getSelectedTotalLength): New function.
  13164. (onDownloadComplete): Use diskAdaptor.
  13165. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13166. (Range): Removed.
  13167. (setMultiFileEntries): Renamed as setFileEntries.
  13168. (setFileEntries): New function.
  13169. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13170. (pieceLength): New variable.
  13171. * src/main.cc (printDownloadCompeleteMessage): New function.
  13172. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13173. (main): Renamed torrent-show-files to show-files.
  13174. Rewritten file contents listing.
  13175. * src/TorrentMan.h (FileEntry): Removed.
  13176. (multiFileTopDir): Removed.
  13177. (multiFileEntries): Removed.
  13178. (diskWriter): Removed.
  13179. (diskAdaptor): New variable.
  13180. * src/DefaultDiskWriter.h (totalLength): New variable.
  13181. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13182. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13183. diskWriter.
  13184. * src/TorrentConsoleDownloadEngine.h
  13185. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13186. (partialTotalLength): Renamed as selectedTotalLength.
  13187. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13188. openExistingFile, otherwise call initAndOpenFile.
  13189. (closeFile): fd > 0, not fd != 0.
  13190. * src/DirectDiskAdaptor.h: New class.
  13191. * src/DirectDiskAdaptor.cc: New class.
  13192. * src/MultiDiskAdaptor.h: New class.
  13193. * src/MultiDiskAdaptor.cc: New class.
  13194. * src/CopyDiskAdaptor.h: New class.
  13195. * src/CopyDiskAdaptor.cc: New class.
  13196. * src/DiskAdaptor.h: New class.
  13197. * src/DiskAdaptor.cc: New class.
  13198. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13199. (PREF_SHOW_FILES): New definition.
  13200. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13201. To add the ability to download multi torrent into respective files
  13202. directly:
  13203. * src/DiskWriter.h (openFile): New function.
  13204. (seek): Removed.
  13205. * src/MultiDiskWriter.h: New class.
  13206. * src/MultiDiskWriter.cc: New class.
  13207. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13208. protected.
  13209. (openFile): New function.
  13210. * src/AbstractDiskWriter.cc (openFile): New function.
  13211. * src/prefs.h (V_FALSE): New definition.
  13212. (PREF_DIRECT_FILE_MAPPING): New definition.
  13213. * src/TorrentMan.h (setupDiskWriter): New function.
  13214. (setAllMultiFileRequestedState): New function.
  13215. (onDownloadComplete): New function.
  13216. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13217. (setupDiskWriter): New function.
  13218. (getFilePath): Updated.
  13219. (getTempFilePath): Updated.
  13220. (getSegmentFilePath): Updated.
  13221. (fixFilename): Updated.
  13222. (deleteTempFile): Updated.
  13223. (setAllMultiFileRequestedState): New function.
  13224. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13225. (finishPartialDownloadingMode): Reset requested flags.
  13226. (onDownloadComplete): New function.
  13227. * src/main.cc: Added --direct-file-mapping option.
  13228. Use TorrentMan::setupDiskWriter().
  13229. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13230. onDownloadComplete().
  13231. To fix ETA bug:
  13232. * src/Util.h (difftvsec): New function.
  13233. * src/Util.cc (difftvsec): New function.
  13234. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13235. type of "elapsed" instead of long long int.
  13236. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13237. The updates of statistics takes place every 1 seconds.
  13238. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13239. (calculateSpeed): Changed its argument signature.
  13240. * src/PeerMessage.cc (toString): Fixed message.
  13241. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13242. To print ETA:
  13243. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13244. completion handling when dealing with
  13245. TorrentMan::isPartialDownloadingMode() == true.
  13246. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13247. New function.
  13248. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13249. (sessionDownloadLength): New variable.
  13250. (avgSpeed): New variable.
  13251. (eta): New variable.
  13252. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13253. new variables: eta, avgSpeed, startup.
  13254. (calculateSpeed): Calculate average speed and ETA.
  13255. (printStatistics): Added ETA.
  13256. * src/Util.h (secfmt): New function.
  13257. * src/Util.cc (secfmt): New function.
  13258. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13259. To detect "keep alive" flooding:
  13260. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13261. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13262. variable: keepAliveCount.
  13263. (detectMessageFlooding): Added "keep alive" flooding detection.
  13264. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13265. received.
  13266. To add the ability to download only specified files in multi-file
  13267. torrent:
  13268. * src/BitfieldMan.h (filterBitfield): New variable.
  13269. (filterEnabled): New variable.
  13270. (setFilterBit): New function.
  13271. (enableFilter): New function.
  13272. (disableFilter): New function.
  13273. (isFilterEnabled): New function.
  13274. (getFilteredTotalLength): New function.
  13275. (getCompletedLength): New function.
  13276. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13277. filterBitfield, filterEnabled.
  13278. (CopyConstructor): Added filterBitfield and filterEnabled.
  13279. (operator==): Added filterBitfield and filterEnabled.
  13280. (Destructor): Added filterBitfield.
  13281. (getMissingIndex): Use filterBitfield.
  13282. (getMissingUnusedIndex): Use filterBitfield.
  13283. (getFirstMissingUnusedIndex): Use filterBitfield.
  13284. (getFirstMissingUnusedIndex): Use filterBitfield.
  13285. (getAllMissingIndexes): Use filterBitfield.
  13286. (countMissingBlock): Use filterBitfield.
  13287. (countBlock): Use filterBitfield.
  13288. (setBitInternal): Added new argument on.
  13289. (setUseBit): Use setBitInternal.
  13290. (unsetUseBit): Use setBitInternal.
  13291. (setBit): Use setBitInternal.
  13292. (unsetBit): Use setBitInternal.
  13293. (isAllBitSet): Use filterBitfield.
  13294. (setFilterBit): New function.
  13295. (addFilter): New function.
  13296. (enableFilter): New function.
  13297. (disableFilter): New function.
  13298. (clearFilter): New function.
  13299. (isFilterEnabled): New function.
  13300. (getFilteredTotalLength): New function.
  13301. (getCompletedLength): New function.
  13302. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13303. Initalized newly added variables.
  13304. [FileEntry](offset): New variable.
  13305. [FileEntry](extracted): New variable.
  13306. [FileEntry](requested): New variable.
  13307. (readFileEntry): New function.
  13308. (option): New variable.
  13309. (splitMultiFile): Removed const qualifier.
  13310. (fixFilename): Removed const qualifier.
  13311. (readFileEntryFromMetaInfoFile): New function.
  13312. (finishPartialDownloadingMode): New function.
  13313. (isPartialDownloadingMode): New function.
  13314. (setFileEntriesToDownload): New function.
  13315. (getCompletedLength): New function.
  13316. (getPartialTotalLength): New function.
  13317. * src/TorrentMan.cc (readFileEntry): New function.
  13318. (setup): Use readFileEntry. If no-preallocation option is specified,
  13319. use DefaultDiskWriter.
  13320. (readFileEntryFromMetaInfoFile): New function.
  13321. (fixFilename): Removed const qualifier.
  13322. (splitMultiFile): Removed const qualifier.
  13323. (setFileEntriesToDownload): New function.
  13324. (isPartialDownloadingMode): New function.
  13325. (finishPartialDownloadingMode): New function.
  13326. (getCompletedLength): New function.
  13327. (getPartialTotalLength): New function.
  13328. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13329. New variable.
  13330. (partialTotalLength): New variable.
  13331. (downloadLength): New variable.
  13332. (totalLength): New variable.
  13333. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13334. Added log.
  13335. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13336. partialTotalLength, downloadLength, totalLength.
  13337. (calculate): Calculate downloadLength and totalLength.
  13338. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13339. * src/main.cc (addCommand): Changed argument signature.
  13340. (main): Added new variable: args. Added new option "torrent-show-files"
  13341. "no-preallocation". Usage is not updated yet.
  13342. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13343. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13344. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13345. Attempt to add the ability to listing file entries in a .torrent file.
  13346. This feature is not yet complete.
  13347. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13348. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13349. (getName): New function.
  13350. * src/TorrentMan.h (getMultiFileEntries): New function.
  13351. (getName): New function.
  13352. * src/main.cc (main): Use above 2 funtion.
  13353. * Release 0.3.2
  13354. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13355. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13356. (detectMessageFlooding): Updated threshold value.
  13357. (checkLongTimePeerChoking): Updated timeout value.
  13358. (getNewPieceAndSendInterest): Added debug log.
  13359. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13360. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13361. (getPeer): Updated.
  13362. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13363. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13364. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13365. is localhost.
  13366. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13367. * src/PendingMessage.cc (processMessage): Not to send piece message
  13368. if peer is not interested in the pieces localhost has.
  13369. * src/Peer.cc (shouldChoke): Updated.
  13370. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13371. * src/Util.cc (isPowerOf): New function.
  13372. * src/Util.h (isPowerOf): New function.
  13373. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13374. whether or not it is power of 2.
  13375. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13376. Added new class SendMessageQueue that includes PendingMessages and
  13377. RequestSlotMan.
  13378. * src/SendMessageQueue.h: New class.
  13379. * src/SendMessageQueue.cc: New class.
  13380. * src/PendingMessage.h: Added new member variable blockIndex and its
  13381. accessors.
  13382. (createRequestMessage): Updated.
  13383. * src/PendingMessage.cc (createRequestMessage): Updated.
  13384. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13385. SendMessageQueue.
  13386. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13387. (receiveMessage): Updated with SendMessageQueue.
  13388. (deletePendingPieceMessage): Removed.
  13389. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13390. (sendInterest): Updated with SendMessageQueue.
  13391. (createRequestPendingMessage): Updated with SendMessageQueue.
  13392. (sendMessages): Updated with SendMessageQueue.
  13393. (onAbort): Updated with SendMessageQueue.
  13394. (keepAlive): Updated with SendMessageQueue.
  13395. (beforeSocketCheck): Updated SendMessageQueue.
  13396. * src/PeerInteractionCommand (sendMessages): Shuffle
  13397. missingBLockIndexes before using it.
  13398. Added its own timeout for peer connection.
  13399. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13400. setter.
  13401. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13402. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13403. Added setTimeout() call.
  13404. (executeInternal): Added setTimeout() call.
  13405. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13406. Added timeout.
  13407. (isTimeoutDetected): Updated.
  13408. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13409. option.
  13410. Added *simple* message flooding checker.
  13411. * src/PeerInteractionCommand.cc (executeInternal):
  13412. Added detectMessageFlooding() call.
  13413. (detectMessageFlooding): New function.
  13414. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13415. (beforeSocketCheck): Added detectMessageFlooding() call.
  13416. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13417. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13418. Removed deletePendingPieceMessage(), getRequestSlot(),
  13419. deleteRequestSlot(), deleteAllRequestSlot().
  13420. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13421. Added checkLongTimePeerChoking() call.
  13422. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13423. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13424. if duplicate == false.
  13425. The parameter "uploaded" and "downloaded" in the tracker request are
  13426. the size since the client sent the "started" event to the tracker.
  13427. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13428. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13429. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13430. getSessionDownloadedSize(), getSessionUploadedSize().
  13431. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13432. getSessionUploadedSize() instead of getDownloadedSize(),
  13433. getUploadedSize().
  13434. * src/PendingMessage.cc (processMessage): Do not send request message
  13435. if the peer is choking the client.
  13436. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13437. less than interval.
  13438. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13439. * configure.in: Added gnutls support. Added several CPP macros.
  13440. * m4/openssl.m4: Added.
  13441. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13442. readData(), peekData(). Added gnutls support.
  13443. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13444. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13445. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13446. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13447. Instead, added a check for whether setup method has executed
  13448. successfully.
  13449. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13450. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13451. * src/Makefile.am: Updated.
  13452. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13453. using whether OpenSSL or gcrypt, depending on the result of configure
  13454. script.
  13455. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13456. messageDigest.h.
  13457. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13458. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13459. Fixed memory leak.
  13460. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13461. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13462. Removed instantiation of TrackerInitCommand. Instead,
  13463. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13464. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13465. ENABLE_SSL.
  13466. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13467. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13468. If a piece is already acquired by another command, delete the request
  13469. slots for the piece.
  13470. * src/TrackerUpdateCommand.cc (execute):
  13471. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13472. Added a check whether peer list is null.
  13473. Fixed the bug that causes sending completed event to the tracker
  13474. several times.
  13475. * src/TrackerInitCommand.cc (execute):
  13476. Fixed the bug that causes sending completed event to the tracker
  13477. several times.
  13478. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13479. by using messageDigest.h.
  13480. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13481. * PeerConnection.cc: Replaced log message "keep-alive" with
  13482. "keep alive".
  13483. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13484. localhost long time.
  13485. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13486. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13487. at most 100 failure entry from the list. If with duplicate = false,
  13488. MAX_PEER_LIST is not checked.
  13489. * PeerListenCommand.cc: Fixed the argument order of log message.
  13490. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13491. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13492. Added warn().
  13493. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13494. Implemented warn().
  13495. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13496. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13497. * Request.h: Added AFTER_COMPLETED event.
  13498. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13499. instead of downloaded size and progress(%) after download completes.
  13500. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13501. message to the peer if it is interested in what localhost has
  13502. downloaded.
  13503. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13504. destination instead of just renaming it.
  13505. * TorrentMan.cc: Added deleteTempFile().
  13506. * PeerAbstractCommand.cc: do not stop execution after download
  13507. completes. This makes localhost a seeder.
  13508. * Util.{h,cc}: Added fileCopy().
  13509. * PeerListenCommand.cc: do not stop execution after download completes.
  13510. This makes localhost a seeder.
  13511. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13512. Added TorrentMan::deleteTempFile() to torrentHandler.
  13513. Initialized the variable dir as ".".
  13514. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13515. Deleted renameSingleFile().
  13516. Added copySingleFile(), deleteTempFile().
  13517. * DownloadEngine.h: Added virtual function afterEachIteration().
  13518. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13519. in onEndOfRun() to afterEachIteration().
  13520. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13521. true.
  13522. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13523. In rangedFileCopy(), added try-catch block to properly close file
  13524. descriptors.
  13525. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13526. Added afterEachIteration(), isFilenameFixed().
  13527. * Peer.cc: Changed choking strategy.
  13528. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13529. * TrackerInitCommand.cc: Send completed event only once.
  13530. * DownloadEngine.cc: Added a call to afterEachIteration().
  13531. * TrackerUpdateCommand.cc: Do not stop execution after download
  13532. completes.
  13533. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13534. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13535. received from a tracker.
  13536. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13537. Decreased the number of failure peers to delete to 0(just comment out
  13538. the line).
  13539. * Release 0.3.1
  13540. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13541. * PeerInteractionCommand.cc: added a call to
  13542. TorrentMan::unadvertisePiece in Destructor.
  13543. * PeerInteractionCommand.cc: make have message sent immediately
  13544. if the size of pending message queue is zero.
  13545. * TorrentMan.cc: set the maximum size of peer list to 250.
  13546. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13547. to deque.
  13548. * Util.cc: fixed rangedFileCopy.
  13549. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13550. to Constructor. Also, moved digest cleanup to Destructor.
  13551. * MetaFileUtil.cc: fixed memory leak
  13552. * replaced std::vector with std::deque.
  13553. * AbstractCommand.cc: casted timeout value to long long int.
  13554. * ChunkedEncoding.cc: fixed memory leak.
  13555. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13556. * SleepCommand.cc: casted timeout value to long long int.
  13557. * Data.cc: fixed memory leak.
  13558. * Data.cc: fixed toLLInt().
  13559. * BitfieldMan.cc: fixed memory leak.
  13560. * TorrentMan.cc: initialized storeDir to ".".
  13561. * TorrentMan.cc: fixed memory leak.
  13562. * TorrentMan.cc: corrected file paths of splitted files.
  13563. * PeerAbstractCommand.cc: casted timeout to long long int.
  13564. * main.cc: added delete(req) and delete(te->diskWriter).
  13565. * RequestSlot.cc: casted timeout value to long long int.
  13566. * Request.cc: fixed memory leak.
  13567. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13568. have the piece.
  13569. * Peer.{h,cc}: added hasPiece(int index).
  13570. * main.cc: corrected addCommand.
  13571. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13572. * BitTorrent protocol support added.
  13573. * Release 0.3.0
  13574. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13575. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13576. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13577. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13578. decoding did not work properly.
  13579. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13580. * DownloadEngine.h: included sys/time.h
  13581. * DownloadEngine.cc: remove sys/time.h
  13582. * Makefile.am (SUBDIRS): Add intl.
  13583. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13584. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13585. * main.cc: correct help message for --http-auth-scheme.
  13586. * main.cc: changed e-mail address for bug reports.
  13587. * ja.po: added japanese translation.
  13588. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13589. * SimpleLogger.cc: flush log file instead of stdout.
  13590. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13591. * main.cc: Fixed command-line option: max-tries
  13592. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13593. does not equal to seg.sp.
  13594. * DownloadCommand.cc: If EOF is got from the server and the total size
  13595. of file is not zero, then throw DlRetryEx.
  13596. * main.cc: Set the minium value of min-segment-size to 1024.
  13597. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13598. fails because of a regression since 0.2.0 release.
  13599. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13600. * HttpConnection.cc:
  13601. * common.h: defined the user agent name as macro
  13602. * DownloadEngine.{h, cc}:
  13603. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13604. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13605. * main.cc: Download complete/abort message is now generated by main.
  13606. * Makefile.am (SUBDIRS): Add m4.
  13607. (ACLOCAL_AMFLAGS): New variable.
  13608. (EXTRA_DIST): New variable.
  13609. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13610. * gettext: added gettext functionality
  13611. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13612. * AbstractCommand.cc:
  13613. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13614. unregister its cuid from SegmentMan.
  13615. * DownloadEngine.cc: .aria2 file was written when a downloading
  13616. failed with errors.
  13617. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13618. Added "User-Agent" header to CONNECT proxy request.
  13619. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13620. properly.
  13621. * Logger.h:
  13622. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13623. * ChunkedEncoding.cc: Added #include directive for strings.h
  13624. * Release 0.2.1
  13625. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13626. * Util.{h,cc}: added startsWith().
  13627. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13628. Util::endsWith().
  13629. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13630. * common.h: added #include directive of limit.h.
  13631. * DownloadEngine.cc: added #include directive of sys/time.h and
  13632. algorithm.
  13633. * Exception.h: added #include directive of stdio.h.
  13634. * AbstractCommand.h: added #include directive of sys/time.h.
  13635. * DownloadCommand.h: added #include directive of sys/time.h.
  13636. * *.h: added #include directive of common.h to all base classes.
  13637. subclasses' one was removed.
  13638. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13639. does not define these macros.
  13640. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13641. * Release 0.2.0
  13642. * main.cc:
  13643. * HttpInitiateConnectionCommand.{h,cc}:
  13644. * prefs.h:
  13645. * HttpConnection.{h,cc}: added --http-proxy-method option.
  13646. We can now use GET command in http proxy.
  13647. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13648. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  13649. that splits slowest segment of SegmentMan::commands vector.
  13650. This is the default split algorithm of aria2.
  13651. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  13652. that splits first segment of SegmentMan::commands vector.
  13653. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  13654. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  13655. * Segment.h:
  13656. * SegmentMan.cc: Added speed field to Segment.h
  13657. * main.cc: -s option now affects all URLs in command-line arguemtns.
  13658. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  13659. * message.h: Change file size related %d to %lld.
  13660. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13661. * FtpInitiateConnectionCommand.{h,cc}:
  13662. * FtpNegotiationCommand.{h,cc}:
  13663. * FtpDownloadCommand.{h,cc}:
  13664. * FtpConnection.{h,cc}: Added FTP support
  13665. * SimpleLogger.cc: Log message now includes time information.
  13666. * main.cc: The value of --http-auth-scheme option is chagned from
  13667. 'BASIC' to 'basic'
  13668. * main.cc: Added --timeout command-line option.
  13669. * main.cc: Added --min-segment-size command-line option.
  13670. * main.cc: Added --max-retries command-line option.
  13671. * prefs.h: option string constants are now defined in prefs.h
  13672. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13673. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  13674. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  13675. with version 0.1.0's one.
  13676. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13677. * configure.in: Added --enable-ssl option to configure script.
  13678. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  13679. cannot permit absoluteURI as Request-URI.
  13680. * HttpConnection.cc: Added Referer support.
  13681. * main.cc: Added referer command-line option.
  13682. * main.cc: Added rety-wait command-line option.
  13683. * Exception.h: Fixed formating bug in Exception::setMsg()
  13684. * SocketCore.{h,cc}:
  13685. * Socket.{h, cc}:
  13686. * Request.cc:
  13687. * InitiateConnectionCommandFactory.cc:
  13688. * HttpRequestCommand.cc: Added HTTPS support.
  13689. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  13690. for SocketCore.
  13691. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  13692. size is wrong
  13693. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  13694. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  13695. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  13696. * Release 0.1.0