ChangeLog 401 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341
  1. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. Added ntoh64 and hton64 as inline functions.
  3. * src/Util.cc
  4. * test/UtilTest.cc
  5. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6. Added sqlite3 depenency and Firefox3 cookie support.
  7. * README
  8. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9. State that firefox3 cookie is supported explicitly in the usage.
  10. * src/usage_text.h
  11. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12. Externalized message.
  13. * src/RequestGroupMan.cc
  14. * src/message.h
  15. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16. Save temporary file first and rename to the destination on success.
  17. Added test cases.
  18. * src/RequestGroupMan.cc
  19. * test/RequestGroupManTest.cc
  20. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  21. Fixed the bug that the number of connected peer is exceeding the limit
  22. (55 by default) in seeding mode.
  23. Multiplied 0.8 to _maxUploadSpeedLimit.
  24. * src/ActivePeerConnectionCommand.cc
  25. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  26. Clear table item.
  27. * src/Dictionary.cc
  28. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  29. Fixed error handling of lseek.
  30. * src/AbstractDiskWriter.cc
  31. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  32. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  33. style cookie file.
  34. * src/usage_text.h
  35. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  36. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  37. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  38. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  39. * src/Util.cc
  40. * src/Util.h
  41. * src/CookieParser.cc
  42. * test/UtilTest.cc
  43. * test/CookieParserTest.cc
  44. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  45. Separate the implementation to load old mozilla format of cookie to
  46. NsCookieParser class.
  47. * src/CookieBoxFactory.cc
  48. * src/CookieBoxFactory.h
  49. * src/NsCookieParser.cc
  50. * src/NsCookieParser.h
  51. * test/NsCookieParserTest.cc
  52. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  53. Made parse() const
  54. * src/Sqlite3MozCookieParser.cc
  55. * src/Sqlite3MozCookieParser.h
  56. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  57. Added firefox3 cookie support based on the patch submitted by
  58. tizianomueller.
  59. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  60. this functionality.
  61. * configure.ac
  62. * m4/sqlite3.m4
  63. * src/CookieBoxFactory.cc
  64. * src/CookieBoxFactory.h
  65. * src/Makefile.am
  66. * src/Makefile.in
  67. * src/Sqlite3MozCookieParser.cc
  68. * src/Sqlite3MozCookieParser.h
  69. * src/main.cc
  70. * test/CookieBoxFactoryTest.cc
  71. * test/Makefile.am
  72. * test/Makefile.in
  73. * test/Sqlite3MozCookieParserTest.cc
  74. * test/badcookies.sqlite
  75. * test/cookies.sqlite
  76. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  77. Added Danish and Greek translations.
  78. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  79. Great thanks to all translators.
  80. * po/LINGUAS
  81. * po/el.po
  82. * po/da.po
  83. * po/es.po
  84. * po/ca.po
  85. * po/nn.po
  86. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  87. Fixed man page: --follow-bittorrent should be --follow-torrent
  88. * doc/aria2c.1.txt
  89. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  90. Fixed: numCommand is less than the value specified in -C option.
  91. * src/RequestGroup.cc
  92. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  93. Fixed occasional assertion failure in PieceSegment.
  94. Calling PieceStorage::getMissingPiece(size_t) was missing after
  95. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  96. creation of duplicate segments and one of the segment was finished then
  97. assertion failure was caused.
  98. * src/SegmentMan.cc
  99. * test/SegmentManTest.cc
  100. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  101. Added options to load/save the server's performance/status to a file
  102. and the timeout to drop their data.
  103. --server-stat-of=FILE specifies the file to which performance data
  104. is saved.
  105. --server-stat-if=FILE specifies the file to read previously saved
  106. by --server-stat-of option. Might be used with --uri-selector=feedback.
  107. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  108. TIMEOUT is specified in seconds and the default value is 24hours.
  109. * src/MultiUrlRequestInfo.cc
  110. * src/OptionHandlerFactory.cc
  111. * src/RequestGroupMan.cc
  112. * src/RequestGroupMan.h
  113. * src/ServerStatMan.cc
  114. * src/ServerStatMan.h
  115. * src/option_processing.cc
  116. * src/prefs.cc
  117. * src/prefs.h
  118. * test/ServerStatManTest.cc
  119. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  120. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  121. * src/ServerStatMan.cc
  122. * src/ServerStatMan.h
  123. * test/ServerStatManTest.cc
  124. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  125. Implemented ServerStatMan::load(...) function and its test case.
  126. * src/ServerStat.cc
  127. * src/ServerStat.h
  128. * src/ServerStatMan.cc
  129. * test/ServerStatManTest.cc
  130. * test/ServerStatTest.cc
  131. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  132. Use time_t instead of int32_t. Use int64_t where milli second is
  133. expected.
  134. * src/TimeA2.cc
  135. * src/TimeA2.h
  136. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  137. Implemented ServerStatMan::save(...) function and its test case.
  138. * src/ServerStat.cc
  139. * src/ServerStat.h
  140. * src/ServerStatMan.cc
  141. * src/ServerStatMan.h
  142. * test/ServerStatManTest.cc
  143. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  144. Now aria2 uses name attribute in Metalink as local filename in
  145. BitTorrent downloads. BUG#2033999
  146. * src/BtContext.h
  147. * src/BtDependency.cc
  148. * src/DefaultBtContext.cc
  149. * src/DefaultBtContext.h
  150. * src/SingleFileDownloadContext.cc
  151. * src/SingleFileDownloadContext.h
  152. * test/BtDependencyTest.cc
  153. * test/DefaultBtContextTest.cc
  154. * test/MockBtContext.h
  155. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  156. Added AC_C_BIGENDIAN
  157. * src/configure.ac
  158. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  159. Limited numCommand less than or equal to the number of piece.
  160. * src/RequestGroup.cc
  161. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  162. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  163. directive.
  164. * test/DefaultPieceStorageTest.cc
  165. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  166. Fixed memory leak in test code
  167. * test/AnnounceListTest.cc
  168. * test/DefaultPeerListProcessorTest.cc
  169. * test/DefaultPeerStorageTest.cc
  170. * test/MetaFileUtilTest.cc
  171. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  172. Fixed wrong argument passing to BitfieldMan::isBitSet()
  173. * src/DefaultPieceStorage.cc
  174. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  175. Initialized _directIOAllowed
  176. * src/MultiDiskAdaptor.cc
  177. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  178. Fixed memory leak
  179. * src/GZipDecoder.cc
  180. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  181. Fixed memory leak
  182. * src/MetalinkParserStateMachine.cc
  183. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  184. Fixed memory leak
  185. * src/Dictionary.cc
  186. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  187. Fixed memory leak
  188. * src/IteratableChunkChecksumValidator.h
  189. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  190. Fixed unmatched malloc/free.
  191. * src/IteratableChunkChecksumValidator.cc
  192. * src/IteratableChecksumValidator.cc
  193. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  194. Removed max chunk size check. This change fixes BUG#2040169
  195. * src/ChunkedDecoder.cc
  196. * src/ChunkedDecoder.h
  197. * test/ChunkedDecoderTest.cc
  198. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  199. Implemented download speed based URI selection algorithm.
  200. Introduced new option --uri-selector.
  201. If --uri-selector=feedback is given, aria2 uses download speed observed
  202. in the previous downloads and chooses fastest server in the URI list.
  203. Currently at most 10 URIs are considered to introduce randomeness for
  204. finding better servers. The speed is average download speed in the
  205. downloads.
  206. On the other hand, if --uri-selector=inorder is given, which is default,
  207. URI is tried in order in URI list.
  208. The usage text for the new option has not been written yet.
  209. * src/AbstractCommand.cc
  210. * src/DownloadCommand.cc
  211. * src/DownloadEngine.cc
  212. * src/DownloadEngineFactory.cc
  213. * src/InOrderURISelector.cc
  214. * src/InOrderURISelector.h
  215. * src/OptionHandlerFactory.cc
  216. * src/PeerStat.h
  217. * src/RequestGroup.cc
  218. * src/RequestGroup.h
  219. * src/RequestGroupMan.cc
  220. * src/RequestGroupMan.h
  221. * src/SegmentMan.cc
  222. * src/SegmentMan.h
  223. * src/ServerStat.cc
  224. * src/ServerStat.h
  225. * src/ServerStatMan.cc
  226. * src/ServerStatMan.h
  227. * src/ServerStatURISelector.cc
  228. * src/ServerStatURISelector.h
  229. * src/URISelector.h
  230. * src/option_processing.cc
  231. * src/prefs.cc
  232. * src/prefs.h
  233. * test/InOrderURISelectorTest.cc
  234. * test/RequestGroupManTest.cc
  235. * test/ServerStatManTest.cc
  236. * test/ServerStatURISelectorTest.cc
  237. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  238. * Release 0.15.1+2
  239. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  240. Bump up version number to 0.15.1+2
  241. * configure.ac
  242. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  243. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  244. * m4/aria2_arg.m4
  245. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  246. * Release 0.15.1+1
  247. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  248. Bump up version number to 0.15.1+1
  249. * configure.ac
  250. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  251. Fixed the bug that causes segmentaion fault when resuming download
  252. using metalink without size tag. Reproducible only using HTTP URI.
  253. * src/HttpResponseCommand.cc
  254. * src/FtpNegotiationCommand.cc
  255. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  256. * Release 0.15.1
  257. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  258. Updated Bulgarian and French translations, thanks to all translators.
  259. * po/bg.po
  260. * po/fr.po
  261. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  262. Bump up version number to 0.15.1
  263. * configure.ac
  264. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  265. Avoid repeated call of gettimeofday() when calculating speed.
  266. * src/SpeedCalc.cc
  267. * src/SpeedCalc.h
  268. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  269. Removed writable check when socket's send buffer is full in BitTorrent
  270. downloads to lower CPU usage.
  271. * src/PeerInteractionCommand.cc
  272. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  273. Fixed broken gzip inflation.
  274. Turn off segmented downloading if gzip content is smaller than or equal
  275. to 1MiB and inflate the data on the fly, because HTTP response header
  276. doesn't contain the length of inflated file we can't determin where
  277. the chunk of data should be written.
  278. On the other hand, if gzip content is larger than 1MB, then turn off
  279. on the fly inflation, because some servers returns "content-type: gzip"
  280. for *.tgz, *.gz files.
  281. * src/DownloadCommand.cc
  282. * src/HttpResponseCommand.cc
  283. * src/HttpResponseCommand.h
  284. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  285. Applied tizianomueller's patch to fix compile error.
  286. * test/BitfieldManTest.cc
  287. * test/BtRequestMessageTest.cc
  288. * test/DefaultBtContextTest.cc
  289. * test/DefaultDiskWriterTest.cc
  290. * test/DefaultPieceStorageTest.cc
  291. * test/HttpHeaderProcessorTest.cc
  292. * test/HttpResponseTest.cc
  293. * test/Metalink2RequestGroupTest.cc
  294. * test/MetalinkParserControllerTest.cc
  295. * test/MetalinkProcessorTest.cc
  296. * test/PeerSessionResourceTest.cc
  297. * test/UtilTest.cc
  298. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  299. * Release 0.15.0
  300. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  301. Reordered src files in POTFILES.in so that usage text appears first.
  302. * po/POTFILES.in
  303. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  304. Bump up version number to 0.15.0
  305. * configure.ac
  306. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  307. Added Bulgarian translation.
  308. Updated Catalan, Spanish, French and Japanese translations.
  309. Thanks to all translators.
  310. * po/LINGUAS
  311. * po/bg.po
  312. * po/ca.po
  313. * po/es.po
  314. * po/fr.po
  315. * po/ja.po
  316. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  317. Updated feature list. Added libz for dependency section.
  318. Added a description about unit testing using CppUnit.
  319. * README
  320. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  321. Added a test for libz. Quoted where it is necessary.
  322. * build_test.sh
  323. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  324. Added GZip to `Enabled Features' list.
  325. * src/FeatureConfig.cc
  326. * src/FeatureConfig.h
  327. * test/FeatureConfigTest.cc
  328. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  329. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  330. the transfer has not yet started.
  331. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  332. * src/SegmentMan.cc
  333. * src/SegmentMan.h
  334. * test/SegmentManTest.cc
  335. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  336. Cache last calculated average download/upload speed.
  337. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  338. cached value.
  339. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  340. * src/PeerStat.h
  341. * src/SpeedCalc.cc
  342. * src/SpeedCalc.h
  343. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  344. Call parseUrl directly.
  345. * src/Request.cc (resetUrl)
  346. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  347. Supported absolute/relative path in Location header field.
  348. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  349. * src/HttpHeader.cc
  350. * src/HttpHeader.h
  351. * src/HttpResponse.cc
  352. * src/HttpSkipResponseCommand.cc
  353. * src/Request.cc
  354. * test/HttpHeaderTest.cc
  355. * test/HttpResponseTest.cc
  356. * test/RequestTest.cc
  357. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  358. Changed help text for --load-cookie option.
  359. * doc/aria2c.1.txt
  360. * src/usage_text.h
  361. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  362. Regenerated test/Makefile.in to remove stale ChangeLog.
  363. * test/Makefile.in
  364. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  365. Updated po files.
  366. * po/aria2c.pot
  367. * po/*.po
  368. * po/*.gmo
  369. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  370. Bump up version number to 0.15.0b
  371. * configure.ac
  372. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  373. Externalize messages.
  374. * src/RequestGroupMan.cc
  375. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  376. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  377. Use File::exists() instead of File::isFile() to allow non-regular file
  378. such as block special files.
  379. * src/AbstractDiskWriter.cc
  380. * src/MultiDiskWriter.cc
  381. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  382. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  383. * src/gai_strerror.h
  384. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  385. Fixed compile error. Thanks gknauf for the patch.
  386. * src/asctime_r.c
  387. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  388. Included asctime_r.h from a2time.h.
  389. * src/a2time.h
  390. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  391. Added a message "aria2 doesn't verify signature" to log message when
  392. signature file is saved.
  393. * src/RequestGroupMan.cc
  394. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  395. Added the ability to save signature when download is completed if
  396. signature is available. The filename of signature file is the path to
  397. download file followed by ".sig". If it already exists, then signature
  398. will not be saved.
  399. * src/RequestGroupMan.cc
  400. * src/Signature.cc
  401. * test/SignatureTest.cc
  402. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  403. Updated the descriptions for --bt-seed-unverified.
  404. * doc/aria2c.1
  405. * doc/aria2c.1.html
  406. * doc/aria2c.1.txt
  407. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  408. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  409. that this is not going to verify files using piece hashes.
  410. * src/HelpItemFactory.cc
  411. * src/OptionHandlerFactory.cc
  412. * src/RequestGroup.cc
  413. * src/option_processing.cc
  414. * src/prefs.cc
  415. * src/prefs.h
  416. * src/usage_text.h
  417. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  418. Added the ability to retrieve signature from Metalink file.
  419. A retrieved signature is stored in Signature class and it is held by
  420. DownloadContext class. Note that aria2 doesn't verify signature.
  421. * src/DownloadContext.cc
  422. * src/DownloadContext.h
  423. * src/Makefile.am
  424. * src/Makefile.in
  425. * src/Metalink2RequestGroup.cc
  426. * src/MetalinkEntry.cc
  427. * src/MetalinkEntry.h
  428. * src/MetalinkParserController.cc
  429. * src/MetalinkParserController.h
  430. * src/MetalinkParserStateMachine.cc
  431. * src/MetalinkParserStateMachine.h
  432. * src/Signature.cc
  433. * src/Signature.h
  434. * src/SignatureMetalinkParserState.cc
  435. * src/SignatureMetalinkParserState.h
  436. * src/VerificationMetalinkParserState.cc
  437. * src/VerificationMetalinkParserState.h
  438. * test/Metalink2RequestGroupTest.cc
  439. * test/MetalinkParserControllerTest.cc
  440. * test/MetalinkProcessorTest.cc
  441. * test/test.xml
  442. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  443. Close DiskAdaptor after renaming file.
  444. * src/RequestGroup.cc
  445. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  446. Corrected indentation
  447. * src/DefaultBtProgressInfoFile.cc
  448. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  449. Moved the calls of std::ios::exceptions() inside of try-catch block
  450. because if an error occurred in constructor of std::fstream, then
  451. exception is thrown immediately when std::ios::exceptions() is called
  452. which results unhandled exception and aria2c aborts.
  453. * src/DefaultBtProgressInfoFile.cc
  454. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  455. Added the test for the previous change in DefaultBtContext.cc
  456. * test/DefaultBtContextTest.cc
  457. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  458. Fixed the bug that causes infinite loop when the number of pieces are
  459. fewer than allowed fast set size which is 10 by default.
  460. * src/DefaultBtContext.cc
  461. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  462. Updated the descriptions for -j, -s. Added --bt-seed.
  463. * doc/aria2c.1
  464. * doc/aria2c.1.html
  465. * doc/aria2c.1.txt
  466. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  467. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  468. aria2 seeds previously downloaded files without validating piece hashs.
  469. * src/HelpItemFactory.cc
  470. * src/OptionHandlerFactory.cc
  471. * src/RequestGroup.cc
  472. * src/option_processing.cc
  473. * src/prefs.cc
  474. * src/prefs.h
  475. * src/usage_text.h
  476. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  477. Updated DESCRIPTION of man page.
  478. * doc/aria2c.1
  479. * doc/aria2c.1.html
  480. * doc/aria2c.1.txt
  481. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  482. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  483. Don't define `struct addrinfo' when __sun is defined.
  484. * src/getaddrinfo.h
  485. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  486. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  487. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  488. second argument is of type `struct _stati64'. Otherwise it is defined as
  489. `struct stat'.
  490. * src/AbstractDiskWriter.cc
  491. * src/File.cc
  492. * src/File.h
  493. * src/a2io.h
  494. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  495. Fixed the compile error in hurd-i386
  496. See the original bug report:
  497. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  498. * src/a2io.h
  499. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  500. Code cleanup.
  501. * src/PeerAbstractCommand.cc
  502. * src/PeerAbstractCommand.h
  503. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  504. Removed TransferEncoding.
  505. * src/DownloadCommand.cc
  506. * src/DownloadCommand.h
  507. * src/HttpResponseCommand.cc
  508. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  509. Updated po files.
  510. * po/aria2c.pot
  511. * po/*.po
  512. * po/*.gmo
  513. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  514. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  515. * src/A2STR.cc
  516. * src/A2STR.h
  517. * src/ChunkedDecoder.cc
  518. * src/ChunkedDecoder.h
  519. * src/ChunkedEncoding.cc: Removed
  520. * src/ChunkedEncoding.h: Removed
  521. * src/DownloadCommand.cc
  522. * src/DownloadCommand.h
  523. * src/HttpDownloadCommand.cc
  524. * src/HttpResponse.cc
  525. * src/HttpResponse.h
  526. * src/HttpResponseCommand.cc
  527. * src/HttpSkipResponseCommand.cc
  528. * src/HttpSkipResponseCommand.h
  529. * src/Makefile.am
  530. * src/TransferEncoding.h: Removed
  531. * test/ChunkedDecoderTest.cc
  532. * test/ChunkedEncodingTest.cc: Removed
  533. * test/HttpResponseTest.cc
  534. * test/Makefile.am
  535. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  536. Use append instead of insert.
  537. * src/GZipDecoder.cc
  538. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  539. Updated doc
  540. * src/Decoder.h
  541. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  542. Updated usage text for -s option.
  543. * src/usage_text.h
  544. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  545. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  546. * src/Request.cc
  547. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  548. Cleaned up configure.ac.
  549. * configure.ac
  550. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  551. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  552. AC_ARG_ENABLE.
  553. * configure.ac
  554. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  555. Added gzip, deflate decoding support in HTTP using libz. If compiled
  556. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  557. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  558. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  559. fly and writes decoded data to a local disk.
  560. * README
  561. * README.html
  562. * configure.ac
  563. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  564. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  565. * m4/libz.m4
  566. * src/Decoder.h
  567. * src/DownloadCommand.cc
  568. * src/DownloadCommand.h
  569. * src/Exception.h
  570. * src/GZipDecoder.cc
  571. * src/GZipDecoder.h
  572. * src/HttpHeader.cc
  573. * src/HttpHeader.h
  574. * src/HttpRequest.cc
  575. * src/HttpRequest.h
  576. * src/HttpResponse.cc
  577. * src/HttpResponse.h
  578. * src/HttpResponseCommand.cc
  579. * src/Makefile.am
  580. * test/GZipDecoderTest.cc
  581. * test/HttpRequestTest.cc
  582. * test/HttpResponseTest.cc
  583. * test/Makefile.am
  584. * test/Makefile.in
  585. * test/gzip_decode_test.gz
  586. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  587. Clarified usage of -j option.
  588. * src/usage_text.h
  589. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  590. Disabled getting size from the response of RETR.
  591. If SIZE command failed, then disable resuming and segmented downloading.
  592. * src/FtpConnection.cc
  593. * src/FtpConnection.h
  594. * src/FtpNegotiationCommand.cc
  595. * src/FtpNegotiationCommand.h
  596. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  597. Use digits to find first byte of file size, which makes the intention
  598. of the code clearer.
  599. * src/FtpConnection.cc
  600. Don't call validateTotalLength() when size is 0.
  601. * src/FtpNegotiationCommand.cc
  602. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  603. Updated po files.
  604. * po/aria2c.pot
  605. * po/*.gmo
  606. * po/*.po
  607. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  608. Clarified usage text for --split option.
  609. * src/usage_text.h
  610. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  611. Bump up version number to 0.15.0dev. "dev" means "development"
  612. version, which means I started the development of the next release!
  613. * src/configure.ac
  614. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  615. If FTP server returns negative response with REST raw command and
  616. requested range is not 0, throw exception. If requested range is 0,
  617. continue download a file from 0 byte.
  618. * src/FtpNegotiationCommand.cc
  619. * src/FtpNegotiationCommand.h
  620. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  621. Supported FTP server which don't recognize SIZE raw command.
  622. If SIZE raw command is failed, aria2 will try to get file size
  623. from the response of RETR raw command. If both attempts are failed,
  624. then resuming and segmented downloading are disabled.
  625. * src/FtpConnection.cc
  626. * src/FtpConnection.h
  627. * src/FtpNegotiationCommand.cc
  628. * src/FtpNegotiationCommand.h
  629. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  630. * Release 0.14.0+1
  631. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  632. Bump up version number to 0.14.0+1
  633. * src/configure.ac
  634. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  635. Fixed the code that refers static member variable from non-static
  636. context.
  637. * src/DefaultPeerStorage.cc
  638. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  639. * Release 0.14.0
  640. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  641. Added build test script
  642. * build_test.sh
  643. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  644. Updated ja.po
  645. * src/ja.po
  646. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  647. Bump up version number to 0.14.0
  648. * src/configure.ac
  649. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  650. Updated ja.po and fr.po. Great thanks for french translators and
  651. Sebastien WILLEMIJNS.
  652. * po/fr.po
  653. * po/ja.po
  654. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  655. Added configure option to enable/disable epoll support.
  656. * configure.ac
  657. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  658. Updated man page.
  659. * doc/aria2c.1.txt
  660. * doc/aria2c.1
  661. * doc/aria2c.1.html
  662. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  663. Added missing default value '5' to the usage of --split option.
  664. * src/HelpItemFactory.cc
  665. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  666. Filled up pieces based on the number of missing blocks, rather than
  667. simplay the number of piece * block length.
  668. * src/BtRequestFactory.h
  669. * src/DefaultBtInteractive.cc
  670. * src/DefaultBtInteractive.h
  671. * src/DefaultBtRequestFactory.cc
  672. * src/DefaultBtRequestFactory.h
  673. * src/Piece.cc
  674. * src/Piece.h
  675. * test/BitfieldManTest.cc
  676. * test/DefaultBtRequestFactoryTest.cc
  677. * test/MockBtRequestFactory.h
  678. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  679. Made _epEvents a member variable.
  680. * src/DownloadEngine.cc
  681. * src/DownloadEngine.h
  682. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  683. Cancel download if http redirect is bounded more than 20 times.
  684. * src/AbstractCommand.cc
  685. * src/HttpSkipResponseCommand.cc
  686. * src/Request.cc
  687. * src/Request.h
  688. * test/RequestTest.cc
  689. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  690. Fixed unhandled exception(removed keyword `new').
  691. * src/SocketCore.cc (initEPOLL)
  692. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  693. Removed visit(const MetaEntry*)
  694. * src/MetaEntryVisitor.h:
  695. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  696. and made them virtual.
  697. * src/BencodeVisitor.h
  698. * src/BencodeVisitor.cc
  699. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  700. Updated po files.
  701. * po/aria2c.pot
  702. * po/*.po
  703. * po/*.gmo
  704. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  705. Moved the call setWriteCheckSocket inside the previous clause to reduce
  706. the number of socket to watch out.
  707. * src/PeerInteractionCommand.cc
  708. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  709. When there is not enough space in disk when writing a chunk of data,
  710. aria2 now prints the message to the console to warn user and aborts
  711. its download. Not all downloads are canceled because some downloads
  712. may use another disk or partition. BUG#1640332
  713. * src/AbstractDiskWriter.cc
  714. * src/PeerAbstractCommand.cc
  715. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  716. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  717. setHaltRequested(true) to cancel download.
  718. * src/PeerInteractionCommand.h
  719. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  720. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  721. socket from int to sock_t as sockets are unsigned in Windows.
  722. For AsyncNameResolver, DownloadEngine, I did additional modification
  723. for the portion of the code changed according to epoll support.
  724. I defined sock_t in a2netcompat.h to use sock_t without including
  725. SocketCore.h.
  726. * src/AsyncNameResolver.cc
  727. * src/AsyncNameResolver.h
  728. * src/DownloadEngine.cc
  729. * src/DownloadEngine.h
  730. * src/SocketCore.cc
  731. * src/SocketCore.h
  732. * src/a2netcompat.h
  733. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  734. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  735. changes in the patch were applied.
  736. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  737. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  738. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  739. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  740. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  741. a2io.h and common.h were modified.
  742. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  743. MinGW.
  744. * src/common.h: Changed off_t to 64 bit in MinGW.
  745. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  746. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  747. only a2netcompat.h is modified.
  748. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  749. directives.
  750. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  751. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  752. only gai_strerror.h is modified.
  753. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  754. winsock errors in MinGW.
  755. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  756. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  757. follow sources are applied.
  758. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  759. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  760. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  761. I included locale.h from Platform.cc.
  762. * src/main.cc: Moved common setup/teardown code to Platform class.
  763. * test/AllTest.cc: Use Platform class.
  764. Set locale to C in AllTest.cc to prevent the messages to be localized.
  765. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  766. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  767. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  768. * test/HttpRequestTest.cc: Casted to off_t where it should.
  769. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  770. Applied Ross's aria2-0.13.2+1-mingw.patch and
  771. aria2-0.13.2+1-mingw-2.patch.
  772. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  773. systems which don't have termious.h. I moved the directive inside of
  774. if(isTTY) { ... clause so that line is wiped out without termious.h.
  775. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  776. anyway.
  777. * src/asctime_r.h
  778. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  779. I added 2nd argument to the prototype declaration.
  780. * src/StringFormat.cc: Get rid of vasprintf.
  781. * src/getaddrinfo.h: Fixed constants.
  782. * configure.ac: Added the check for asctime_r function.
  783. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  784. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  785. Added writable test for Socket when the sending message is in progress.
  786. Usually the sending message is piece message. Without wriable check,
  787. upload latency is dropped to more than 1sec.
  788. * src/PeerInteractionCommand.cc
  789. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  790. Create only requested files and files which shares a piece with
  791. requested file in multi-torrent downloads. Directory structures are
  792. also created in the same rule.
  793. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  794. DiskWriterEntry as in the previous implementation.
  795. * src/MultiDiskWriter.cc
  796. * src/MultiFileAllocationIterator.cc
  797. * src/MultiFileAllocationIterator.h
  798. * test/MultiFileAllocationIteratorTest.cc
  799. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  800. Commented out -lprofiler
  801. * src/Makefile.am
  802. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  803. Bump up version number to 0.14.0b.
  804. * src/configure.ac
  805. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  806. Actively establish connection to peers in seeding, when peer cache
  807. is not full and max upload speed limit is not reached.
  808. * src/ActivePeerConnectionCommand.cc
  809. * src/ActivePeerConnectionCommand.h
  810. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  811. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  812. to make room more fleshy, recently found peers.
  813. Peer::_badConditionStartTime is not used anymore. Consider to remove
  814. it.
  815. * src/DefaultPeerStorage.cc
  816. * test/DefaultPeerStorageTest.cc
  817. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  818. Returns cached data only when the previous receiveHandshake() is called
  819. with peek = true.
  820. * src/PeerConnection.cc (receiveHandshake)
  821. * src/PeerConnection.h (receiveHandshake)
  822. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  823. Changed default value of -s option from 1 to 5.
  824. Also max value of -s option is changed from 5 to 16.
  825. * src/HelpItemFactory.cc
  826. * src/OptionHandlerFactory.cc
  827. * src/option_processing.cc
  828. * src/usage_text.h
  829. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  830. Changed -s options behavior. Now it means the number of connections
  831. made simultaneously in each http/ftp download.
  832. If 1 URL is specified, the behavior is the same with old implementation.
  833. If -s N is given and more than N URLs are specified, first N URLs are
  834. used and remaining URLs are used for backup. If less than N URLs are
  835. specified, some of URLs are used more than once so that totally N
  836. connections are made simultaneously.
  837. * src/main.cc
  838. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  839. Included missing iosfwd or ostream header.
  840. * src/RequestGroupMan.cc
  841. * src/TaggedItem.cc
  842. * src/TaggedItem.h
  843. * src/Util.cc
  844. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  845. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  846. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  847. * src/HttpConnection.cc: Included missing sstream.
  848. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  849. Added --bt-max-open-files option.
  850. * src/DefaultPieceStorage.cc
  851. * src/HelpItemFactory.cc
  852. * src/MultiDiskAdaptor.cc
  853. * src/MultiDiskAdaptor.h
  854. * src/OptionHandlerFactory.cc
  855. * src/option_processing.cc
  856. * src/prefs.cc
  857. * src/prefs.h
  858. * src/usage_text.h
  859. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  860. Fixed the bug that aria2 aborts when a path to a directory is given
  861. in command-line.
  862. * src/ProtocolDetector.cc
  863. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  864. Limited the number files opened in each BitTorrent download. The default
  865. value is 100. The option to change this value will be added.
  866. * src/MultiDiskAdaptor.cc
  867. * src/MultiDiskAdaptor.h
  868. * src/MultiFileAllocationIterator.cc
  869. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  870. Fixed the bug that HTTP downloads don't start with old libraries.
  871. * src/HttpHeaderProcessor.cc
  872. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  873. Use empty() instead of size() > 0.
  874. * src/HttpConnection.cc
  875. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  876. Drop connection if the incoming peer ID is the same with localhost's
  877. one. The previous implementation drops connection when incoming peer's
  878. IP address is the same with localhost's one.
  879. * src/PeerListenCommand.cc
  880. * src/DefaultBtInteractive.cc
  881. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  882. Returns cached data without checking whether socket is readable
  883. if the cache is available.
  884. * src/PeerConnection.cc (receiveHandshake)
  885. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  886. Included stdint.h
  887. * src/common.h
  888. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  889. Removed duplicate HAVE_GETTIMEOFDAY
  890. * src/Makefile.am
  891. * src/Makefile.in
  892. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  893. Use interval as a minInterval when minInterval is not supplied.
  894. * src/DefaultBtAnnounce.cc
  895. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  896. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  897. attempt is failed, then 2nd attempt get kicked out more quickly.
  898. And it is now static const member of DefaultBtAnnounce.
  899. * src/DefaultBtAnnounce.h
  900. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  901. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  902. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  903. * src/ActivePeerConnectionCommand.cc
  904. * src/BtConstants.h
  905. * src/BtRuntime.h
  906. * src/DHTGetPeersCommand.cc
  907. * src/DefaultBtAnnounce.cc
  908. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  909. BtRuntime::MAX_PEERS.
  910. * src/DefaultPeerStorage.h
  911. * src/InitiatorMSEHandshakeCommand.cc
  912. * src/PeerInitiateConnectionCommand.cc
  913. * src/PeerInteractionCommand.cc
  914. * src/PeerReceiveHandshakeCommand.cc
  915. * src/TrackerWatcherCommand.cc
  916. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  917. Always Connect to _numNewConnection
  918. * src/ActivePeerConnectionCommand.cc
  919. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  920. Made `begin' unsigned int.
  921. * src/GrowSegment.h
  922. * src/Piece.cc
  923. * src/Piece.h
  924. * src/PiecedSegment.cc
  925. * src/PiecedSegment.h
  926. * src/Segment.h
  927. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  928. Calculate piece hash when data is arrived if the data is arrived in
  929. order. This removes additional read operation for hash calculation.
  930. If the data is arrived in out of order, the hash is calucated when the
  931. piece is completed. This is the same behavior as the old implementation.
  932. * src/BtPieceMessage.cc
  933. * src/DefaultBtProgressInfoFile.cc
  934. * src/DefaultPieceStorage.cc
  935. * src/DownloadCommand.cc
  936. * src/DownloadCommand.h
  937. * src/DownloadEngine.cc
  938. * src/GrowSegment.cc
  939. * src/GrowSegment.h
  940. * src/Piece.cc
  941. * src/Piece.h
  942. * src/PiecedSegment.cc
  943. * src/PiecedSegment.h
  944. * src/Segment.h
  945. * test/PieceTest.cc
  946. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  947. Try to keep the ordering of outgoing piece message.
  948. * src/DefaultBtMessageDispatcher.cc
  949. (DefaultBtMessageDispatcher::sendMessages)
  950. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  951. Fixed busy loop when error/hup epoll events occur.
  952. * src/AbstractCommand.cc
  953. * src/PeerAbstractCommand.cc
  954. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  955. Added --bt-request-peer-speed-limit option, which was a constant
  956. SLOW_SPEED_THRESHOLD.
  957. * src/ActivePeerConnectionCommand.cc
  958. * src/ActivePeerConnectionCommand.h
  959. * src/BtConstants.h
  960. * src/HelpItemFactory.cc
  961. * src/OptionHandlerFactory.cc
  962. * src/PeerReceiveHandshakeCommand.cc
  963. * src/option_processing.cc
  964. * src/prefs.cc
  965. * src/prefs.h
  966. * src/usage_text.h
  967. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  968. Removed repeated call of getTopDirPath(). Instead, call it once and
  969. cache the result.
  970. * src/MultiDiskAdaptor.cc
  971. * src/MultiDiskAdaptor.h
  972. (mkdir, openFile, initAndOpenFile, openExistingFile)
  973. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  974. Fixed compile error on debian etch.
  975. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  976. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  977. it is undefined.
  978. * src/Util.cc (ULLONG_MAX)
  979. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  980. Added epoll support. Use epoll if it is available. If not, use select.
  981. When async dns is enabled in compile time, epoll support is enabled
  982. only when aria2 is built with c-ares. This condition statement is
  983. defined in a2io.h.
  984. Currently aria2 supports both c-ares and ares, but ares is maintained
  985. for quite a while and debian already has c-ares package, ares support
  986. will be dropped in the future version.
  987. * configure.ac
  988. * src/AbstractCommand.cc
  989. * src/AsyncNameResolver.cc
  990. * src/AsyncNameResolver.h
  991. * src/Command.cc
  992. * src/Command.h
  993. * src/DownloadEngine.cc
  994. * src/DownloadEngine.h
  995. * src/PeerAbstractCommand.cc
  996. * src/SocketCore.cc
  997. * src/SocketCore.h
  998. * src/a2io.h
  999. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1000. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  1001. directive.
  1002. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1003. Do not do write operation to /dev/null file.
  1004. * src/LogFactory.cc
  1005. * src/SimpleLogger.cc
  1006. Replaced vasprintf with vsnprintf
  1007. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1008. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1009. * src/BtRequestMessage.cc
  1010. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  1011. for segmentation fault caused by previous commit.
  1012. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1013. Reduced the usage of gettimeofday().
  1014. * src/DefaultBtMessageDispatcher.cc
  1015. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  1016. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1017. * src/RequestSlot.cc
  1018. * src/RequestSlot.h
  1019. (RequestSlot::isTimeout)
  1020. Made RequestSlot have a reference to Piece object to avoid find
  1021. Piece repeatedly.
  1022. * src/DefaultBtMessageDispatcher.cc
  1023. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1024. * src/RequestSlot.cc
  1025. * src/RequestSlot.h
  1026. (RequestSlot::getPiece)
  1027. * test/DefaultBtMessageDispatcherTest.cc
  1028. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1029. * src/TimeA2.cc
  1030. * src/TimeA2.h
  1031. (Time::difference): New function.
  1032. (Time::elapsed): Done optimization.
  1033. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1034. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  1035. directive.
  1036. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1037. * src/option_processing.cc: Added missing `defined' keyword to #if
  1038. directive.
  1039. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1040. Bump up version number to 0.13.2+1
  1041. * src/configure.ac
  1042. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1043. Refactored broken outstanding piece handling.
  1044. * src/DefaultPieceStorage.cc
  1045. * src/DefaultPieceStorage.h
  1046. * src/Piece.cc
  1047. * src/Piece.h
  1048. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1049. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  1050. name collision of static variable and predefined macro.
  1051. * src/BtContext.cc
  1052. * src/BtContext.h
  1053. * src/CookieBoxFactory.cc
  1054. * src/CookieBoxFactory.h
  1055. * src/CookieParser.cc
  1056. * src/CookieParser.h
  1057. * src/DefaultBtContext.cc
  1058. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1059. * src/RequestGroup.cc
  1060. (RequestGroup::createInitialCommand): Use empty() instead of size().
  1061. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1062. * Release 0.13.2
  1063. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1064. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  1065. * po/fr.po
  1066. * po/ja.po
  1067. * po/aria2c.pot
  1068. * po/*.po
  1069. * po/*.gmo
  1070. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1071. Bump up version number to 0.13.2
  1072. * src/configure.ac
  1073. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1074. Refactord.
  1075. * src/RequestGroupMan.cc
  1076. (removeStoppedGroup)
  1077. (fillRequestGroupFromReserver)
  1078. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1079. Fixed compile error on Ubuntu.
  1080. * src/BtPieceMessage.cc
  1081. * src/MessageDigestHelper.cc
  1082. * src/Util.cc
  1083. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1084. Fixed compile error when configured with --disable-bittorrent
  1085. * test/DownloadHandlerFactoryTest.cc
  1086. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1087. Done make update-po
  1088. * po/aria2c.pot
  1089. * po/*.po
  1090. * po/*.gmo
  1091. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1092. Bump up version number to 0.13.2rc.
  1093. * src/configure.ac
  1094. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1095. Made option name bold. Updated SYNOPSIS to make it more readable.
  1096. * doc/aria2c.1.txt
  1097. * doc/aria2c.1
  1098. * doc/aria2c.1.html
  1099. * src/version_usage.cc
  1100. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1101. Refactored. Use std::string instead of size and char*.
  1102. * Data.cc
  1103. * Data.h
  1104. * test/Data.cc
  1105. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1106. Added trimSelf(). Rewritten trim() to use trimSelf().
  1107. * Util.cc
  1108. * Util.h
  1109. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1110. * src/ChunkChecksum.h (getChecksum): Return const reference.
  1111. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1112. Fixed compile error when configured with --disable-metalink.
  1113. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  1114. * test/FeatureConfigTest.cc
  1115. * test/DownloadHandlerFactoryTest.cc
  1116. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1117. Fixed compile error when configured with --without-gnutls
  1118. --without-openssl
  1119. * src/main.cc
  1120. * test/DefaultBtProgressInfoFileTest.cc
  1121. * test/SegmentManTest.cc
  1122. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1123. Fixed compile error with OpenSSL.
  1124. * src/IteratableChunkChecksumValidator.cc
  1125. * src/LibsslDHKeyExchange.h
  1126. * src/MessageDigestHelper.cc
  1127. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1128. Revert the default value of --max-concurrent-downloads to 5.
  1129. Revert the default value of --metalink-servers to 5.
  1130. Man pages was also updated.
  1131. * src/option_processing.cc
  1132. * doc/aria2c.1.txt
  1133. * doc/aria2c.1.html
  1134. * doc/aria2c.1
  1135. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1136. Returns const reference:
  1137. DownloadContext::getPieceHash, DownloadContext::getName,
  1138. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  1139. BtContext::getInfoHashAsString,
  1140. * src/BtContext.h
  1141. * src/DefaultBtContext.cc
  1142. * src/DefaultBtContext.h
  1143. * src/DownloadContext.h
  1144. * src/SingleFileDownloadContext.h
  1145. * test/MockBtContext.h
  1146. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1147. * src/RequestGroup.h (getDir): Removed.
  1148. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1149. Returns const reference. The internal urlencode function was optimized
  1150. a little bit.
  1151. * src/Request.cc
  1152. * src/Request.h
  1153. * src/HttpRequest.cc
  1154. * src/HttpRequest.h
  1155. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1156. Defined option name and possible values as std::string to reduce
  1157. temporary string object creation in runtime.
  1158. * src/HelpItemFactory.cc
  1159. * src/LogFactory.cc
  1160. * src/Option.cc
  1161. * src/OptionHandlerFactory.cc
  1162. * src/option_processing.cc
  1163. * src/prefs.cc
  1164. * src/prefs.h
  1165. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1166. Return const reference.
  1167. * src/DownloadHandlerConstants.cc
  1168. * src/DownloadHandlerConstants.h
  1169. (getMetalinkExtensions)
  1170. (getMetalinkContentTypes)
  1171. (getBtExtensions)
  1172. (getBtContentTypes)
  1173. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1174. * src/HttpHeader.cc (get): Rewritten.
  1175. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1176. Make HttpHeader::getFirst(...) return const reference.
  1177. * src/HttpHeader.cc
  1178. * src/HttpHeader.h
  1179. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1180. Use Option::getAsBool(...) instead of Option::get(...) and compare
  1181. it with V_TRUE.
  1182. * src/DefaultPieceStorage.cc
  1183. * src/DownloadCommand.cc
  1184. * src/FtpNegotiationCommand.cc
  1185. * src/HttpRequest.cc
  1186. * src/InitiateConnectionCommand.cc
  1187. * src/RequestGroup.cc
  1188. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1189. Made Option::get(...) return const reference of std::string.
  1190. * src/Option.cc
  1191. * src/Option.h
  1192. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1193. Replaced std:copy with insert.
  1194. * src/DefaultBtMessageDispatcher.cc
  1195. * src/DefaultPieceStorage.cc
  1196. * src/DownloadEngineFactory.cc
  1197. * src/RequestGroup.cc
  1198. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1199. Included SocketCore.h to fix compiler warning.
  1200. * src/InitiateConnectionCommand.cc
  1201. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1202. Put piece selection strategy algorithm to RarestPieceSelector class,
  1203. Added a switch to choose whether randomized selection so that unit
  1204. tests emit same results in, possibly, win32.
  1205. * src/DefaultPieceStorage.cc
  1206. * src/DefaultPieceStorage.h
  1207. * src/RarestPieceSelector.cc
  1208. * src/RarestPieceSelector.h
  1209. * test/DefaultPieceStorageTest.cc
  1210. * test/RarestPieceSelectorTest.cc
  1211. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1212. Don't pool connection if HTTP proxy is enabled.
  1213. * src/FtpFinishDownloadCommand.cc
  1214. * src/FtpNegotiationCommand.cc
  1215. * src/HttpSkipResponseCommand.cc
  1216. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1217. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  1218. * src/AbstractCommand.cc
  1219. * src/AbstractCommand.h
  1220. * src/ActivePeerConnectionCommand.cc
  1221. * src/FtpInitiateConnectionCommand.cc
  1222. * src/HttpInitiateConnectionCommand.cc
  1223. * src/InitiateConnectionCommandFactory.cc
  1224. * src/PeerAbstractCommand.cc
  1225. * src/PeerAbstractCommand.h
  1226. * src/PeerInitiateConnectionCommand.cc
  1227. * src/TrackerWatcherCommand.cc
  1228. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1229. Sort RequestSlot in ascending order and manipulate them using
  1230. lower_bound.
  1231. * src/DefaultBtMessageDispatcher.cc
  1232. * src/DefaultBtMessageDispatcher.h
  1233. (getMessageQueue): Added const qualifier.
  1234. (getRequestSlots): Added const qualifier.
  1235. (sendMessages): Use empty() instead of size().
  1236. (doCancelSendingPieceAction): Use HandleEvent object.
  1237. (doAbortOutstandingRequestAction): Rewritten.
  1238. (doChokedAction): Rewritten.
  1239. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  1240. (isOutstandingRequest): Rewritten.
  1241. (getOutstandingRequest): Rewritten.
  1242. (removeOutstandingRequest): Rewritten.
  1243. (addOutstandingRequest): Rewritten.
  1244. * src/RequestSlot.cc
  1245. * src/RequestSlot.h
  1246. (operator=): Rewritten.
  1247. (operator!=): New function.
  1248. (operator<): New function.
  1249. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1250. * src/DefaultBtRequestFactory.cc
  1251. (doChokedAction): Rewritten.
  1252. (removeCompletedPiece): Rewritten.
  1253. (removeTargetPiece): Rewritten.
  1254. (createRequestMessages): Added the debug log.
  1255. (createRequestMessagesOnEndGame: Added the debug log.
  1256. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1257. Added the debug log message.
  1258. * src/BtPieceMessage.cc (doReceivedAction)
  1259. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1260. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  1261. used lower_bound to process them rather than linear search.
  1262. * src/DHTPeerAnnounceStorage.cc
  1263. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1264. Call subtractPieceStats from ~PeerInteractionCommand only when the
  1265. peer has at least one completed piece.
  1266. * src/Peer.cc
  1267. * src/Peer.h
  1268. * src/PeerInteractionCommand.cc
  1269. * src/PeerSessionResource.cc
  1270. * src/PeerSessionResource.h
  1271. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1272. Removed unnecessary sorting
  1273. * src/DefaultPieceStorage (DefaultPieceStorage)
  1274. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1275. Rewritten the portion of the code that mangaes allowed fast indexes.
  1276. * src/PeerSessionResource.cc
  1277. * src/PeerSessionResource.h
  1278. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1279. Removed the invalid string including '\r' from ru.po and
  1280. did make update-po.
  1281. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1282. Added --log-level and --summary-interval to man page.
  1283. * doc/aria2c.1.txt
  1284. * doc/aria2c.1.html
  1285. * doc/aria2c.1
  1286. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1287. Added --log-level option to specify log level. Log messages under
  1288. the specified level are not output. Default value is `debug'.
  1289. * src/HelpItemFactory.cc
  1290. * src/LogFactory.cc
  1291. * src/LogFactory.h
  1292. * src/Logger.h
  1293. * src/OptionHandlerFactory.cc
  1294. * src/SimpleLogger.cc
  1295. * src/SimpleLogger.h
  1296. * src/main.cc
  1297. * src/option_processing.cc
  1298. * src/prefs.h
  1299. * src/usage_text.h
  1300. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1301. Print download progress summary of all parallel downloads in specified
  1302. interval, default 60 secs. While aria2 could download several files
  1303. in parallel (see -j option), it displayed just first download progress,
  1304. and the other downloads are hidden from the users. This new feature
  1305. prints all downloads currently in-progress to the console so that you
  1306. can check the status of all downloads. The interval can be adjusted
  1307. by --summary-interval option.
  1308. The progress readout is now cut so that all fits in the one line of
  1309. console.
  1310. * src/ConsoleStatCalc.cc
  1311. * src/ConsoleStatCalc.h
  1312. * src/HelpItemFactory.cc
  1313. * src/OptionHandlerFactory.cc
  1314. * src/RequestGroupMan.cc
  1315. * src/RequestGroupMan.h
  1316. * src/main.cc
  1317. * src/option_processing.cc
  1318. * src/prefs.h
  1319. * src/usage_text.h
  1320. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1321. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  1322. * src/DownloadEngine.cc (DownloadEngine)
  1323. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1324. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  1325. defined.
  1326. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  1327. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1328. Use erase+lower_bound+insert instead of sort.
  1329. * src/DefaultPieceStorage.cc (addPieceStats)
  1330. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1331. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  1332. * src/A2STR.cc
  1333. * src/A2STR.h
  1334. * src/OptionParser.cc (parse)
  1335. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1336. Defined fake filename `[tracker.announce]' as static const std::string.
  1337. * src/TrackerWatcherCommand.cc (createRequestGroup)
  1338. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1339. Defined default filename `index.html' as static const std::string
  1340. * src/SingleFileDownloadContext.cc
  1341. * src/SingleFileDownloadContext.h
  1342. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1343. Defined "[MEMORY]" as static const std::string.
  1344. * src/MemoryBufferPreDownloadHandler.cc (execute)
  1345. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1346. Defined control file's version number as static const std::string.
  1347. * src/DefaultBtProgressInfoFile.cc
  1348. * src/DefaultBtProgressInfoFile.h
  1349. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1350. Use Request::METHOD_GET
  1351. * src/RequestGroup.cc (createNextCommandWithAdj)
  1352. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1353. Defined "OK", "ERR", "INPR" as static const std::string
  1354. * src/RequestGroupMan.cc (showDownloadResults)
  1355. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1356. Defined default client used in extended handshake as static const
  1357. std::string
  1358. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  1359. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1360. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  1361. * src/HttpConnection.cc (eraseConfidentialInfo)
  1362. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1363. Defined default ftp user and password as static const std::string
  1364. * src/AuthConfigFactory.cc
  1365. * src/AuthConfigFactory.h
  1366. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1367. Defined strings used in netrc as static const std::string
  1368. * src/Netrc.cc
  1369. * src/Netrc.h
  1370. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1371. Defined HTTP status as static const std::string
  1372. * src/AbstractProxyResponseCommand.cc
  1373. * src/HttpHeader.cc
  1374. * src/HttpHeader.h
  1375. * src/HttpResponse.cc
  1376. * src/HttpResponseCommand.cc
  1377. * src/HttpSkipResponseCommand.cc
  1378. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1379. Defined "\r\n", "A", "I" as static const std::string
  1380. * src/A2STR.cc
  1381. * src/A2STR.h
  1382. * src/FtpConnection.cc
  1383. * src/FtpConnection.h
  1384. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1385. Added COLON_C(".") and used it in Request::parseUrl()
  1386. * src/A2STR.cc
  1387. * src/A2STR.h
  1388. * src/Request.cc (parseUrl)
  1389. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1390. Changed the type of padName from `const std::string&' to `const char*'.
  1391. * src/MSEHandshake.cc (verifyPadLength)
  1392. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1393. Defined "sha1" as static const std::string.
  1394. * src/MetalinkParserController.cc
  1395. * src/MetalinkParserController.h
  1396. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1397. Defined message digest algorithm name as static const std::string
  1398. * src/DHTTokenTracker.cc
  1399. * src/DHTUtil.cc
  1400. * src/DefaultBtContext.cc
  1401. * src/MSEHandshake.cc
  1402. * src/MessageDigestHelper.cc
  1403. * src/Peer.cc
  1404. * src/messageDigest.cc
  1405. * src/messageDigest.h
  1406. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1407. Made string literals used in SAX parser static const std::string.
  1408. * src/FileMetalinkParserState.cc
  1409. * src/FileMetalinkParserState.h
  1410. * src/FilesMetalinkParserState.cc
  1411. * src/FilesMetalinkParserState.h
  1412. * src/InitialMetalinkParserState.cc
  1413. * src/InitialMetalinkParserState.h
  1414. * src/MetalinkMetalinkParserState.cc
  1415. * src/MetalinkMetalinkParserState.h
  1416. * src/PiecesMetalinkParserState.cc
  1417. * src/PiecesMetalinkParserState.h
  1418. * src/ResourcesMetalinkParserState.cc
  1419. * src/ResourcesMetalinkParserState.h
  1420. * src/VerificationMetalinkParserState.cc
  1421. * src/VerificationMetalinkParserState.h
  1422. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1423. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  1424. * src/A2STR.cc
  1425. * src/A2STR.h
  1426. * src/File.cc
  1427. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1428. Defined static const std::string IP("ip"), PORT("port") and use them
  1429. instead of string literals.
  1430. * src/DefaultPeerListProcessor.cc
  1431. * src/DefaultPeerListProcessor.h
  1432. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1433. Made string literals for torrent file processing static const
  1434. std::string.
  1435. * src/BtContext.cc
  1436. * src/BtContext.h
  1437. * src/DefaultBtContext.cc
  1438. * src/DefaultBtContext.h
  1439. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1440. Made string literal for tracker response static const std::string
  1441. * src/BtAnnounce.cc
  1442. * src/BtAnnounce.h
  1443. * src/DefaultBtAnnounce.cc
  1444. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1445. Use DHTMessage::T instead of "t".
  1446. * src/DHTMessageTracker.cc (messageArrived)
  1447. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1448. Made keyName static const. Made trimmed charset static const
  1449. std::string.
  1450. * src/Util.cc (getContentDispositionFilename)
  1451. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1452. Made USER_AGENT const. Made "/" static const std::string.
  1453. * src/A2STR.cc
  1454. * src/A2STR.h
  1455. * src/HttpRequest.cc
  1456. * src/HttpRequest.h
  1457. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1458. Made string listeral to static const std::string:
  1459. "Content-Range", "Content-Length"
  1460. * src/HttpHeader.cc
  1461. * src/HttpHeader.h
  1462. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1463. Made string listeral to static const std::string.
  1464. * src/HttpConnection.cc
  1465. * src/HttpHeader.cc
  1466. * src/HttpHeader.h
  1467. * src/HttpResponse.cc
  1468. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1469. Made string listeral to static const std::string.
  1470. * src/A2STR.cc
  1471. * src/A2STR.h
  1472. * src/SimpleLogger.cc
  1473. * src/SimpleLogger.h
  1474. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1475. Made string literal to static const std::string.
  1476. Rewritten CookieParser::setField.
  1477. * src/A2STR.cc
  1478. * src/A2STR.h
  1479. * src/CookieBoxFactory.cc
  1480. * src/CookieBoxFactory.h
  1481. * src/CookieParser.cc
  1482. * src/CookieParser.h
  1483. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1484. Made string literal to static const std::string
  1485. * src/DHTAbstractMessage.cc
  1486. * src/DHTAnnouncePeerMessage.cc
  1487. * src/DHTAnnouncePeerMessage.h
  1488. * src/DHTAnnouncePeerReplyMessage.cc
  1489. * src/DHTAnnouncePeerReplyMessage.h
  1490. * src/DHTFindNodeMessage.cc
  1491. * src/DHTFindNodeMessage.h
  1492. * src/DHTFindNodeReplyMessage.cc
  1493. * src/DHTFindNodeReplyMessage.h
  1494. * src/DHTGetPeersMessage.cc
  1495. * src/DHTGetPeersMessage.h
  1496. * src/DHTGetPeersReplyMessage.cc
  1497. * src/DHTGetPeersReplyMessage.h
  1498. * src/DHTMessage.cc
  1499. * src/DHTMessage.h
  1500. * src/DHTMessageFactoryImpl.cc
  1501. * src/DHTMessageReceiver.cc
  1502. * src/DHTPingMessage.cc
  1503. * src/DHTPingMessage.h
  1504. * src/DHTPingReplyMessage.cc
  1505. * src/DHTPingReplyMessage.h
  1506. * src/DHTQueryMessage.cc
  1507. * src/DHTQueryMessage.h
  1508. * src/DHTResponseMessage.cc
  1509. * src/DHTResponseMessage.h
  1510. * src/DHTUnknownMessage.cc
  1511. * src/DHTUnknownMessage.h
  1512. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1513. Made string literal to static const std::string
  1514. * src/BtChokeMessage.cc (toString)
  1515. * src/BtHaveAllMessage.cc (toString)
  1516. * src/BtHaveNoneMessage.cc (toString)
  1517. * src/BtInterestedMessage.cc (toString)
  1518. * src/BtNotInterestedMessage.cc (toString)
  1519. * src/BtUnchokeMessage.cc (toString)
  1520. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1521. Replaced "" with static const variable A2STR::NIL.
  1522. Replaced string comparison against "" with std::string::empty().
  1523. Added PROTO_* to Request class and use them as a protocol string
  1524. constant.
  1525. Made "started", "stopped", "completed" static const variable in
  1526. AnnounceList class.
  1527. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1528. Updated translations. Great thanks to translators.
  1529. * po/ca.po
  1530. * po/de.po
  1531. * po/fr.po
  1532. * po/it.po
  1533. * po/ja.po
  1534. * po/ru.po
  1535. * po/zh_CN.po
  1536. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1537. Updated man page; categorized options and fixed typo.
  1538. * doc/aria2c.1.txt
  1539. * doc/aria2c.1.html
  1540. * doc/aria2c.1
  1541. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1542. Removed const ref
  1543. * src/MetalinkEntry.cc (AddProtocolPreference)
  1544. * src/RequestGroup.cc (FindServerHostByHostname)
  1545. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1546. Rewritten Accept-Features handling.
  1547. * src/HttpRequestCommand.cc (createHttpRequest)
  1548. * src/a2functional.h
  1549. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1550. Changed method signature:
  1551. DHTAbstractNodeLookupTask::toEntries
  1552. * src/DHTAbstractNodeLookupTask.cc
  1553. * src/DHTAbstractNodeLookupTask.h
  1554. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1555. Changed method signature:
  1556. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  1557. * src/BtContext.h
  1558. * src/DefaultBtContext.cc
  1559. * src/DefaultBtContext.h
  1560. * src/DefaultBtInteractive.cc
  1561. * test/DefaultBtContextTest.cc
  1562. * test/MockBtContext.h
  1563. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1564. Changed method signature:
  1565. MultiFileAllocationIterator::makeDiskWriterEntries
  1566. * src/MultiFileAllocationIterator.cc
  1567. * src/MultiFileAllocationIterator.h
  1568. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1569. Changed method sinature:
  1570. MetalinkEntry::toFileEntry,
  1571. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  1572. Metalinker::queryEntry
  1573. * src/Metalink2RequestGroup.cc
  1574. * src/MetalinkEntry.cc
  1575. * src/MetalinkEntry.h
  1576. * src/MetalinkHelper.cc
  1577. * src/MetalinkHelper.h
  1578. * src/Metalinker.cc
  1579. * src/Metalinker.h
  1580. * src/main.cc
  1581. * test/MetalinkHelperTest.cc
  1582. * test/MetalinkerTest.cc
  1583. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1584. Changed method sinature:
  1585. RequestGroup::getURIs
  1586. * src/RequestGroup.cc
  1587. * src/RequestGroup.h
  1588. * test/Metalink2RequestGroupTest.cc
  1589. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1590. Changed method signature:
  1591. PeerListProcessor::extractPeer
  1592. * src/CompactPeerListProcessor.cc
  1593. * src/CompactPeerListProcessor.h
  1594. * src/DefaultBtAnnounce.cc
  1595. * src/DefaultPeerListProcessor.cc
  1596. * src/DefaultPeerListProcessor.h
  1597. * src/DelegatingPeerListProcessor.cc
  1598. * src/DelegatingPeerListProcessor.h
  1599. * src/PeerListProcessor.h
  1600. * src/UTPexExtensionMessage.cc
  1601. * test/DefaultPeerListProcessorTest.cc
  1602. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1603. Changed method signature:
  1604. BtRequestFactory::createRequestMessages,
  1605. BtRequestFactory::createRequestMessagesOnEndGame
  1606. * src/BtRequestFactory.h
  1607. * src/DefaultBtInteractive.cc
  1608. * src/DefaultBtRequestFactory.cc
  1609. * src/DefaultBtRequestFactory.h
  1610. * test/DefaultBtRequestFactoryTest.cc
  1611. * test/MockBtRequestFactory.h
  1612. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1613. Changed method signature:
  1614. PieceStorage::getInFlightPieces
  1615. * src/DefaultBtProgressInfoFile.cc
  1616. * src/DefaultPieceStorage.cc
  1617. * src/DefaultPieceStorage.h
  1618. * src/PieceStorage.h
  1619. * src/UnknownLengthPieceStorage.cc
  1620. * src/UnknownLengthPieceStorage.h
  1621. * test/DefaultBtProgressInfoFileTest.cc
  1622. * test/MockPieceStorage.h
  1623. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1624. Changed method signature:
  1625. PostDownloadHandler::getNextRequestGroups
  1626. Metalink2RequestGroup::generate
  1627. RequestGroup::postDownloadProcessing
  1628. * src/BtPostDownloadHandler.cc
  1629. * src/BtPostDownloadHandler.h
  1630. * src/Metalink2RequestGroup.cc
  1631. * src/Metalink2RequestGroup.h
  1632. * src/MetalinkPostDownloadHandler.cc
  1633. * src/MetalinkPostDownloadHandler.h
  1634. * src/PostDownloadHandler.h
  1635. * src/RequestGroup.cc
  1636. * src/RequestGroup.h
  1637. * src/RequestGroupMan.cc
  1638. * src/main.cc
  1639. * test/BtPostDownloadHandlerTest.cc
  1640. * test/Metalink2RequestGroupTest.cc
  1641. * test/MetalinkPostDownloadHandlerTest.cc
  1642. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1643. Rewritten AccRequestGroup
  1644. * src/main.cc
  1645. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1646. Rewritten.
  1647. * src/TaggedItem.cc (toTagString)
  1648. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1649. Rewritten Accept-Features handling.
  1650. * src/HttpRequestCommand.cc (createHttpRequest)
  1651. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1652. Rewritten accept types handling.
  1653. * HttpRequest.cc (createRequest)
  1654. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1655. Rewritten
  1656. * src/FeatureConfig.cc (featureSummary)
  1657. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1658. Changed method signature:
  1659. PeerStorage::getActivePeers
  1660. * src/DHTPeerAnnounceEntry.cc
  1661. * src/DefaultPeerStorage.cc
  1662. * src/DefaultPeerStorage.h
  1663. * src/PeerStorage.h
  1664. * test/DefaultPeerStorageTest.cc
  1665. * test/MockPeerStorage.h
  1666. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1667. Changed method signature:
  1668. DHTPeerAnnounceStorage::getPeers,
  1669. DHTPeerAnnounceEntry::getPeers
  1670. * src/DHTGetPeersMessage.cc
  1671. * src/DHTPeerAnnounceEntry.cc
  1672. * src/DHTPeerAnnounceEntry.h
  1673. * src/DHTPeerAnnounceStorage.cc
  1674. * src/DHTPeerAnnounceStorage.h
  1675. * test/DHTAnnouncePeerMessageTest.cc
  1676. * test/DHTPeerAnnounceEntryTest.cc
  1677. * test/DHTPeerAnnounceStorageTest.cc
  1678. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1679. Changed method signature:
  1680. NameResolver::resolve
  1681. * src/DHTEntryPointNameResolveCommand.cc
  1682. * src/InitiateConnectionCommand.cc
  1683. * src/NameResolver.cc
  1684. * src/NameResolver.h
  1685. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1686. Changed method signature:
  1687. PieceStorage::getAdvertisedPieceIndexes
  1688. * src/DefaultBtInteractive.cc
  1689. * src/DefaultPieceStorage.cc
  1690. * src/DefaultPieceStorage.h
  1691. * src/PieceStorage.h
  1692. * src/UnknownLengthPieceStorage.h
  1693. * test/MockPieceStorage.h
  1694. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1695. Changed method signature:
  1696. SegmentMan::getInFlightSegment
  1697. * src/AbstractCommand.cc
  1698. * src/SegmentMan.cc
  1699. * src/SegmentMan.h
  1700. * test/SegmentManTest.cc
  1701. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1702. Changed method signature:
  1703. DHTAbstractNodeLookupTask::getNodesFromMessage
  1704. * src/DHTAbstractNodeLookupTask.cc
  1705. * src/DHTAbstractNodeLookupTask.h
  1706. * src/DHTNodeLookupTask.cc
  1707. * src/DHTNodeLookupTask.h
  1708. * src/DHTPeerLookupTask.cc
  1709. * src/DHTPeerLookupTask.h
  1710. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1711. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  1712. * src/AbstractCommand.cc
  1713. * src/BtCheckIntegrityEntry.cc
  1714. * src/BtCheckIntegrityEntry.h
  1715. * src/BtFileAllocationEntry.cc
  1716. * src/BtFileAllocationEntry.h
  1717. * src/BtSetup.cc
  1718. * src/BtSetup.h
  1719. * src/CheckIntegrityCommand.cc
  1720. * src/CheckIntegrityEntry.h
  1721. * src/ChecksumCheckIntegrityEntry.cc
  1722. * src/ChecksumCheckIntegrityEntry.h
  1723. * src/DHTSetup.cc
  1724. * src/DHTSetup.h
  1725. * src/DownloadEngine.cc
  1726. * src/FileAllocationCommand.cc
  1727. * src/FileAllocationEntry.h
  1728. * src/RequestGroup.cc
  1729. * src/RequestGroup.h
  1730. * src/RequestGroupMan.cc
  1731. * src/RequestGroupMan.h
  1732. * src/StreamCheckIntegrityEntry.cc
  1733. * src/StreamCheckIntegrityEntry.h
  1734. * src/StreamFileAllocationEntry.cc
  1735. * src/StreamFileAllocationEntry.h
  1736. * src/TrackerWatcherCommand.cc
  1737. * src/a2functional.h
  1738. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1739. Changed method signature:
  1740. BNode::findClosestKNodes, BNode:: enumerateBucket,
  1741. DHTBucket::getGoodNodes,
  1742. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  1743. * src/BNode.cc
  1744. * src/BNode.h
  1745. * src/DHTAbstractNodeLookupTask.cc
  1746. * src/DHTAutoSaveCommand.cc
  1747. * src/DHTBucket.cc
  1748. * src/DHTBucket.h
  1749. * src/DHTBucketRefreshTask.cc
  1750. * src/DHTFindNodeMessage.cc
  1751. * src/DHTGetPeersMessage.cc
  1752. * src/DHTRoutingTable.cc
  1753. * src/DHTRoutingTable.h
  1754. * test/BNodeTest.cc
  1755. * test/DHTBucketTest.cc
  1756. * test/DHTRoutingTableTest.cc
  1757. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1758. In piece selection functions, Pass std::deque<...> by reference rather
  1759. than returning it.
  1760. * src/BitfieldMan.cc
  1761. * src/BitfieldMan.h
  1762. * src/DefaultBtRequestFactory.cc
  1763. * src/DefaultPieceStorage.cc
  1764. * src/Piece.cc
  1765. * src/Piece.h
  1766. * test/BitfieldManTest.cc
  1767. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1768. Implemented rarest piece first piece selection strategy.
  1769. * src/AbstractBtMessage.cc
  1770. * src/AbstractBtMessage.h
  1771. * src/BitfieldMan.cc
  1772. * src/BitfieldMan.h
  1773. * src/BtBitfieldMessage.cc
  1774. * src/BtHaveAllMessage.cc
  1775. * src/BtHaveMessage.cc
  1776. * src/DefaultPieceStorage.cc
  1777. * src/DefaultPieceStorage.h
  1778. * src/PeerInteractionCommand.cc
  1779. * src/PieceStorage.h
  1780. * src/UnknownLengthPieceStorage.h
  1781. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1782. Rewritten readData and writeData.
  1783. * src/MultiDiskAdaptor.cc
  1784. * src/MultiDiskAdaptor.h
  1785. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1786. Move \n out of the message "Usage: ...".
  1787. * src/version_usage.cc
  1788. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1789. Bump up version number to 0.13.2b.
  1790. * configure.ac
  1791. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1792. Added const qualifier to argument Exception& e.
  1793. * src/Logger.h
  1794. * src/SimpleLogger.cc
  1795. * src/SimpleLogger.h
  1796. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1797. Pool connection when CWD, SIZE command fails.
  1798. * src/FtpNegotiationCommand.cc
  1799. * src/FtpNegotiationCommand.h
  1800. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1801. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  1802. * src/HttpResponseCommand.cc
  1803. * src/HttpSkipResponseCommand.cc
  1804. * src/HttpSkipResponseCommand.h
  1805. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1806. Pool connection when a server returns 4xx, 5xx responses.
  1807. * src/HttpNullDownloadCommand.cc
  1808. * src/HttpNullDownloadCommand.h
  1809. * src/HttpResponse.cc
  1810. * src/HttpResponse.h
  1811. * src/HttpResponseCommand.cc
  1812. * src/HttpResponseCommand.h
  1813. * test/HttpResponseTest.cc
  1814. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1815. Print usage when no URL is specifed or bad command-line option is
  1816. specified.
  1817. * src/HelpItemFactory.cc
  1818. * src/help_tags.h
  1819. * src/option_processing.cc
  1820. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1821. Removed duplicate log message.
  1822. * src/AbstractCommand.cc (asyncResolveHostname)
  1823. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1824. Updated man page: --async-dns and --ftp-reuse-connection were added.
  1825. Changed -j option's default value from 5 to 1.
  1826. Added new examples using protocol auto detection feature.
  1827. Removed -T, -M usage where it can be omitted.
  1828. * doc/aria2c.1.txt
  1829. * doc/aria2c.1.html
  1830. * doc/aria2c.1.txt
  1831. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1832. Updated command-line usage text, so that it tells users that they
  1833. can specify any number of torrent files and metalink files in
  1834. command-line.
  1835. * src/version_usage.cc
  1836. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1837. Changed the default value of -j option to 1.
  1838. * src/HelpItemFactory.cc
  1839. * src/option_processing.cc
  1840. * src/usage_text.h
  1841. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1842. Added the ability to reuse connection in FTP and it is enabled by
  1843. default. It can be disabled by --ftp-reuse-connection=false option.
  1844. * src/Command.cc
  1845. * src/DownloadCommand.cc
  1846. * src/FtpDownloadCommand.cc
  1847. * src/FtpDownloadCommand.h
  1848. * src/FtpFinishDownloadCommand.cc
  1849. * src/FtpFinishDownloadCommand.h
  1850. * src/FtpInitiateConnectionCommand.cc
  1851. * src/FtpNegotiationCommand.cc
  1852. * src/FtpNegotiationCommand.h
  1853. * src/HelpItemFactory.cc
  1854. * src/Makefile.am
  1855. * src/Makefile.in
  1856. * src/OptionHandlerFactory.cc
  1857. * src/option_processing.cc
  1858. * src/prefs.h
  1859. * src/usage_text.h
  1860. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1861. Call Command::transitStatus() before calling Command::execute(),
  1862. so that the status change made in execute() is not cleared.
  1863. * src/DownloadEngine.cc
  1864. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1865. Removed forward declaration of SocketCore class.
  1866. * src/HttpDownloadCommand.h
  1867. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1868. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  1869. in InitiateConnectionCommandFactory. They should be set only when
  1870. the protocol is HTTP or HTTPS.
  1871. * src/InitiateConnectionCommandFactory.cc
  1872. * src/RequestGroup.cc
  1873. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1874. Fixed infinite loop in checksum checking.
  1875. * src/IteratableChecksumValidator.cc
  1876. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1877. Set _supportsPersistentConnection to true by default.
  1878. * src/Request.cc
  1879. * src/RequestGroup.cc
  1880. * test/HttpRequestTest.cc
  1881. * test/RequestTest.cc
  1882. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1883. Added timeout to socket pool. The default timeout is 15 seconds,
  1884. which is the same value Apache uses.
  1885. * src/DownloadEngine.cc
  1886. * src/DownloadEngine.h
  1887. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1888. Fixed misuse of multimap::find()
  1889. * src/HttpHeader.cc
  1890. * test/HttpHeaderTest.cc
  1891. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1892. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  1893. option.
  1894. The asynchronous DNS is not capable of IPv6 yet.
  1895. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  1896. least for HTTP download.
  1897. * src/AbstractCommand.cc
  1898. * src/AbstractCommand.h
  1899. * src/AsyncNameResolver.cc
  1900. * src/AsyncNameResolver.h
  1901. * src/DHTEntryPointNameResolveCommand.cc
  1902. * src/DHTEntryPointNameResolveCommand.h
  1903. * src/DownloadEngine.cc
  1904. * src/DownloadEngine.h
  1905. * src/FtpInitiateConnectionCommand.cc
  1906. * src/FtpInitiateConnectionCommand.h
  1907. * src/HelpItemFactory.cc
  1908. * src/HttpInitiateConnectionCommand.cc
  1909. * src/HttpInitiateConnectionCommand.h
  1910. * src/InitiateConnectionCommand.cc
  1911. * src/InitiateConnectionCommand.h
  1912. * src/Makefile.am
  1913. * src/Makefile.in
  1914. * src/NameResolver.cc
  1915. * src/NameResolver.h
  1916. * src/OptionHandlerFactory.cc
  1917. * src/SocketCore.cc
  1918. * src/SocketCore.h
  1919. * src/Util.cc
  1920. * src/Util.h
  1921. * src/option_processing.cc
  1922. * src/prefs.h
  1923. * src/usage_text.h
  1924. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1925. Updated man page: --quiet, --header were added.
  1926. --metalink-servers and --enable-http-keep-alive option were updated.
  1927. * doc/aria2c.1
  1928. * doc/aria2c.1.html
  1929. * doc/aria2c.1.txt
  1930. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1931. Enable HTTP keep-alive by default.
  1932. * src/HelpItemFactory.cc
  1933. * src/option_processing.cc
  1934. * src/usage_text.h
  1935. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1936. Disable http keep-alive if the remote server is not HTTP/1.1.
  1937. * src/HttpConnection.cc
  1938. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1939. Receive content body of 302 response so that the connection can be
  1940. reused later when http keep-alive is enabled.
  1941. * src/HttpNullDownloadCommand.cc
  1942. * src/HttpNullDownloadCommand.h
  1943. * src/HttpResponseCommand.cc
  1944. * src/HttpResponseCommand.h
  1945. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1946. const SharedHandle<Request> -> const SharedHandle<Request>&
  1947. * src/FtpDowndloadCommand.cc
  1948. * src/FtpDowndloadCommand.h
  1949. * src/HttpDownloadCommand.cc
  1950. * src/HttpDownloadCommand.h
  1951. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1952. Fixed the bug that the control file(.aria2 file) is not renamed
  1953. according to tryAutoFileRenaming().
  1954. tryAutoFileRenaming() was rewritten so that if both renamed file and
  1955. its control file exist, use them and continue download.
  1956. The old implementation didn't take into account of control file's
  1957. existence, so basically you couldn't continue download of renamed file.
  1958. * src/BtProgressInfoFile.h
  1959. * src/DefaultBtProgressInfoFile.cc
  1960. * src/DefaultBtProgressInfoFile.h
  1961. * src/NullProgressInfoFile.h
  1962. * src/RequestGroup.cc
  1963. * test/DefaultBtProgressInfoFileTest.cc
  1964. * test/MockBtProgressInfoFile.h
  1965. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1966. Change the default value of --metalink-servers option from `5' to `1'.
  1967. * src/HelpItemFactory.cc
  1968. * src/option_processing.cc
  1969. * src/usage_text.h
  1970. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1971. Reimplemented transparent metalink using Accept request header.
  1972. * src/HttpRequest.cc
  1973. * src/HttpRequest.h
  1974. * src/HttpRequestCommand.cc
  1975. * src/Metalink2RequestGroup.cc
  1976. * src/RequestGroup.cc
  1977. * src/RequestGroup.h
  1978. * test/HttpRequestTest.cc
  1979. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1980. Bump up version number to 0.13.2a
  1981. * configure.ac
  1982. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1983. Updated configure.ac using the result of autoscan.
  1984. * configure.ac
  1985. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1986. Fixed compilation error without gcrypt/openssl.
  1987. * src/DownloadCommand.cc
  1988. * src/DownloadCommand.h
  1989. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1990. Reorganized version information so that it can be displayed in a
  1991. standard terminal screen without scrolling.
  1992. Removed http, ftp from Configuration section, because they are always
  1993. enabled.
  1994. * src/FeatureConfig.cc
  1995. * src/FeatureConfig.h
  1996. * src/main.cc
  1997. * src/messageDigest.cc
  1998. * src/messageDigest.h
  1999. * src/version_usage.cc
  2000. * test/FeatureConfigTest.cc
  2001. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2002. Masked user ID in log.
  2003. * src/FtpConnection.cc (sendUser)
  2004. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2005. Removed query part from filename in HTTP download. The query part means
  2006. the substring after "?" in URL. Firefox seems do the same thing.
  2007. A query part is sometimes very long and not suitable to filename,
  2008. so I think it is better to remove it from filename.
  2009. * src/HttpRequest.cc
  2010. * src/HttpRequest.h
  2011. * src/Request.cc
  2012. * src/Request.h
  2013. * test/HttpRequestTest.cc
  2014. * test/RequestTest.cc
  2015. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2016. Rewritten Exception class. Throw exception object, not its pointer and
  2017. catch by reference, so that remove problematic delete operator for
  2018. catched exception.
  2019. * src/Exception.cc
  2020. * src/Exception.h
  2021. * test/ExceptionTest.cc
  2022. * src/*: All files throwing/catching exception.
  2023. * test/*: All files throwing/catching exception.
  2024. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2025. Now auto protocol detection is enabled without -Z option.
  2026. But there is a important difference between with/without -Z optoin.
  2027. For example, if you type:
  2028. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  2029. then, aria2 interprets there are 3 request groups:
  2030. (1) http://host/file, http://mirror/file <-- multi-source download
  2031. (2) file1.torrent
  2032. (3) file2.metalink
  2033. On the other hand, if you invoke above command with -Z option, it is
  2034. interpreted as 4 request groups:
  2035. (1) http://host/file
  2036. (2) file1.torrent
  2037. (3) file2.metalink
  2038. (4) http://mirror/file
  2039. I think usually user don't mix multi-source URLs and torrent files, so
  2040. there is no big problem here.
  2041. * src/main.cc
  2042. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2043. Fixed the bug that causes segmentaion fault when reading XML containing
  2044. unescapsed character like '&'.
  2045. Also a modification was made which avoids adding unnecessary
  2046. characters stack and appending unused string.
  2047. * src/ExpatMetalinkProcessor.cc
  2048. * src/FileMetalinkParserState.h
  2049. * src/FilesMetalinkParserState.h
  2050. * src/FinMetalinkParserState.h
  2051. * src/HashMetalinkParserState.h
  2052. * src/InitialMetalinkParserState.h
  2053. * src/LanguageMetalinkParserState.h
  2054. * src/MetalinkMetalinkParserState.h
  2055. * src/MetalinkParserState.h
  2056. * src/MetalinkParserStateMachine.cc
  2057. * src/MetalinkParserStateMachine.h
  2058. * src/OSMetalinkParserState.h
  2059. * src/PieceHashMetalinkParserState.h
  2060. * src/PiecesMetalinkParserState.h
  2061. * src/ResourcesMetalinkParserState.h
  2062. * src/SizeMetalinkParserState.h
  2063. * src/SkipTagMetalinkParserState.h
  2064. * src/URLMetalinkParserState.h
  2065. * src/VerificationMetalinkParserState.h
  2066. * src/VersionMetalinkParserState.h
  2067. * src/XML2SAXMetalinkProcessor.cc
  2068. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2069. Added StringFormat class, which internally calls vasprintf.
  2070. operator<< is defined for this class, so it can be used with iostream
  2071. classes nicely. SimpleLogger and following functions are rewritten
  2072. using StringFormat class.
  2073. Besides, now Logger class's methods are non-const, many classes
  2074. that has a const Logger* as a member variable are modified to remove
  2075. const qualifier from the variable declaration.
  2076. * src/HelpItemFactory.cc
  2077. * src/Request.cc
  2078. * src/SimpleLogger.cc
  2079. * src/StringFormat.cc
  2080. * src/StringFormat.h
  2081. * src/Util.cc
  2082. * src/option_processing.cc
  2083. * src/version_usage.cc
  2084. * test/StringFormatTest.cc
  2085. * src/*.h: The classes that has const Logger* as a member variable.
  2086. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2087. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  2088. failed. Also fixed memory link when exception is thrown there.
  2089. * src/main.cc (AccRequestGroup)
  2090. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2091. Added build-in "Accept-Features" support. For now only "metalink" is
  2092. used in this header field.
  2093. This "metalink" value is removed from the list when connecting URLs
  2094. fed by metalink file to avoid loop in "transparent" metlaink.
  2095. * src/HttpRequest.cc
  2096. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  2097. header is also held in this variable. Also renamed setUserHeaders as
  2098. addHeader and it was rewritten to add header not just to clear the old
  2099. value.
  2100. * src/HttpRequestCommand.cc
  2101. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  2102. from "Accept-Features" list.
  2103. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  2104. default.
  2105. * src/RequestGroup.h
  2106. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  2107. * src/a2functional.h: Included <string> because Concat class depends on
  2108. it.
  2109. * test/HttpRequestTest.cc
  2110. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2111. Added comment
  2112. * src/RequestGroup.cc (createNextCommand)
  2113. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2114. Capitalized METHOD_GET and METHOD_HEAD
  2115. * src/Request.cc
  2116. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2117. Added getDownloadResults() method
  2118. * src/RequestGroupMan.cc
  2119. * src/RequestGroupMan.h
  2120. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2121. Fixed the bug that aria2 exits when commands is empty() but
  2122. _routineCommands are not.
  2123. * src/DownloadEngine.cc
  2124. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2125. Use the default value pulled from Option object in HelpItemFactory.
  2126. except options whose defualt value is embedded in a usage text.
  2127. * src/HelpItemFactory.cc
  2128. * src/HelpItemFactory.h
  2129. * src/option_processing.cc
  2130. * src/version_usage.cc
  2131. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2132. Added --quiet option to make aria2 quiet (no console output).
  2133. --quiet option is tagged with ADVANCED.
  2134. * src/HelpItemFactory.cc
  2135. * src/LogFactory.cc
  2136. * src/LogFactory.h
  2137. * src/MultiUrlRequestInfo.cc
  2138. * src/MultiUrlRequestInfo.h
  2139. * src/NullStatCalc.h: New class. This class prints nothing.
  2140. * src/OptionHandlerFactory.cc
  2141. * src/main.cc
  2142. * src/option_processing.cc
  2143. * src/prefs.h
  2144. * src/usage_text.h
  2145. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2146. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  2147. * src/HelpItemFactory.cc (createHelpItems):
  2148. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2149. Fixed compilation error in ExpatMetalinkProcessor.cc
  2150. * src/ExpatMetalinkProcessor.cc
  2151. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2152. Reuse socket if the origin server supports HTTP keep-alive and
  2153. --enable-http-keep-alive or --enable-http-pipelining is given.
  2154. The current implementation doesn't reuse the connections established
  2155. against proxy server.
  2156. * src/AbstractCommand.cc
  2157. * src/DownloadEngine.cc
  2158. * src/DownloadEngine.h
  2159. * src/HttpDownloadCommand.cc
  2160. * src/HttpInitiateConnectionCommand.cc
  2161. * src/HttpResponseCommand.cc
  2162. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2163. Rewritten HTTP keep-alive and pipelining routine.
  2164. * src/AbstractCommand.cc
  2165. * src/HttpConnection.cc
  2166. * src/HttpDownloadCommand.cc
  2167. * src/HttpRequest.cc
  2168. * src/HttpRequestCommand.cc
  2169. * src/HttpResponseCommand.cc
  2170. * src/Request.cc
  2171. * src/Request.h
  2172. * src/RequestGroup.cc
  2173. * test/HttpRequestTest.cc
  2174. * test/HttpResponseTest.cc
  2175. * test/RequestTest.cc
  2176. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2177. Added missing setUserHeaders call
  2178. * src/HttpRequestCommand.cc
  2179. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2180. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  2181. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  2182. waste of time because it is more likey false.
  2183. * src/FileAllocationDispatcherCommand.cc (execute)
  2184. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2185. Now HTTP status and version are a member variable of HttpHeader.
  2186. HTTP status is processed as a string, not integer.
  2187. * src/AbstractProxyResponseCommand.cc
  2188. * src/HttpConnection.cc
  2189. * src/HttpHeader.cc
  2190. * src/HttpHeader.h
  2191. * src/HttpHeaderProcessor.cc
  2192. * src/HttpHeaderProcessor.h
  2193. * src/HttpResponse.cc
  2194. * src/HttpResponse.h
  2195. * test/HttpHeaderProcessorTest.cc
  2196. * test/HttpResponseTest.cc
  2197. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2198. Added --header option. You can specify any number of additional HTTP headers
  2199. like:
  2200. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  2201. Unlike other commad-line option, you can use --header option multiple times.
  2202. * src/HelpItemFactory.cc
  2203. * src/HttpRequest.{cc, h}
  2204. * src/HttpRequestCommand.cc
  2205. * src/OptionHandlerFactory.cc
  2206. * src/OptionHandlerImpl.h
  2207. * src/option_processing.cc
  2208. * src/prefs.h
  2209. * src/usage_text.h
  2210. * test/HttpRequestTest.cc (testUserHeaders)
  2211. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2212. Eliminates the time lag between sequential downloads and commands in
  2213. the same RequestGroup.
  2214. In old implementation, aria2 occasionally waits 1 seconds before
  2215. executing next command or RequestGroup.
  2216. This is really a waste of time, and new implementation eliminates
  2217. this unnecessary time lag.
  2218. * src/AbstractCommand.cc
  2219. * src/AutoSaveCommand.cc
  2220. * src/CheckIntegrityCommand.cc
  2221. * src/Command.{cc, h}
  2222. * src/DownloadEngine.{cc, h}
  2223. * src/DownloadEngineFactory.cc
  2224. * src/FileAllocationCommand.cc
  2225. * src/FileAllocationDispatcherCommand.cc
  2226. * src/FillRequestGroupCommand.cc
  2227. * src/FtpInitiateConnectionCommand.cc
  2228. * src/HaveEraseCommand.cc
  2229. * src/HttpInitiateConnectionCommand.cc
  2230. * src/HttpResponseCommand.cc
  2231. * src/RealtimeCommand.cc
  2232. * src/RequestGroup.cc
  2233. * src/RequestGroupMan.cc
  2234. * src/StreamFileAllocationEntry.cc
  2235. * src/TimeBasedCommand.{cc, h}
  2236. * src/TimedHaltCommand.cc
  2237. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2238. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  2239. keyword explicit and SharedHandle's default constructor initializes
  2240. its internal obj to null, old implementation initializes it using
  2241. obj's default constructor.
  2242. To assign null, write SharedHandle<T> x(...); x.reset();
  2243. TODO: test/SharedHandleTest.cc needs more tests.
  2244. * src/SharedHandle.h
  2245. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2246. Fixed type in man page.
  2247. * doc/aria2c.1.txt
  2248. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2249. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  2250. * src/SimpleLogger.{cc, h}
  2251. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2252. Implemented auto protocol detection.
  2253. Now you can do:
  2254. aria2c -Z http://host/file file1.torrent file2.metalink
  2255. (Note: -Z option is required for auto protcol detection.)
  2256. Then aria2c downloads 3 files simultaneously:
  2257. 1. http://host/file
  2258. 2. file1.torrent <-- read local torrent file
  2259. 3. file2.metalink <-- read local Metalink file.
  2260. Same thing goes with -i option. Assume your uris.txt contans:
  2261. http://host/file
  2262. file1.torrent
  2263. file2.metalink
  2264. Then you can do: aria2c -i uris.txt
  2265. (Note: -Z option is not needed if -i option is given.)
  2266. * src/main.cc
  2267. * src/ProtocolDetector.{cc, h}
  2268. * test/ProtocolDetectorTest.cc
  2269. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2270. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  2271. installed
  2272. * src/ARC4Encryptor.h
  2273. * src/ARC4Decryptor.h
  2274. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2275. Renamed argument from 'errno' to 'err', since errno is confused with
  2276. errno defined in errno.h.
  2277. * src/LibgcryptARC4Decryptor.h
  2278. * src/LibgcryptARC4Context.h
  2279. * src/LibgcryptDHKeyExchange.h
  2280. * src/LibgcryptARC4Encryptor.h
  2281. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2282. Rewritten choking algorithm.
  2283. * src/PeerChokeCommand.{cc, h}
  2284. * src/BtInterestedMessage.cc
  2285. * src/PeerSessionResource.{cc, h}
  2286. * src/DefaultPeerStorage.{cc, h}
  2287. * src/BtNotInterestedMessage.cc
  2288. * src/DefaultBtMessageDispatcher.{cc, h}
  2289. * src/BtMessageDispatcher.h
  2290. * src/Peer.{cc, h}
  2291. * src/BtLeecherStateChoke.{cc, h}
  2292. * src/BtSetup.cc
  2293. * src/BtSeederStateChoke.{cc, h}
  2294. * src/PeerStorage.h
  2295. * test/MockPeerStorage.h
  2296. * test/MockBtMessageDispatcher.h
  2297. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2298. Fixed compilation error on x84-64 platform.
  2299. * src/AuthConfig.cc: Included ostream.
  2300. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2301. Rewritten getBasename() and getDirname(), without standard library
  2302. basename(), dirname().
  2303. * src/File.cc
  2304. * test/FileTest.cc
  2305. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2306. Added Simplified Chinese translation. Also updated the following
  2307. translations: Polish, Dutch, German. Great thanks to all translators.
  2308. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2309. Suppress content-range error when 'Content-Range' response header
  2310. doesn't contains bytes-unit specifier 'bytes'
  2311. * src/HttpHeader.cc (getRange)
  2312. * test/HttpHeaderTest.cc
  2313. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2314. Fixed compilation error with g++-4.3
  2315. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2316. Added missing include files for MinGW
  2317. * test/HttpHeaderProcessorTest.cc
  2318. * test/DHTRoutingTableSerializerTest.cc
  2319. * test/DHTRoutingTableDeserializerTest.cc
  2320. * test/UriListParserTest.cc
  2321. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2322. Now download line is printed nicely with no garbage at the end of
  2323. line. I use ioctl to get the columns of terminal.
  2324. If stdout is redirected to another device, instead of carriage return,
  2325. end of line '\n' character is used. This is feature request#1909659
  2326. * src/ConsoleStatCalc.cc (calculateStat)
  2327. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2328. Included a2time.h
  2329. * src/DHTMessageDispatcher.h
  2330. * src/DHTMessageEntry.h
  2331. * src/DHTReplaceNodeTask.h
  2332. * src/DHTMessageTracker.h
  2333. * src/Util.h
  2334. * src/CookieBox.h
  2335. * src/SocketCore.h
  2336. * src/DefaultBtMessageDispatcher.h
  2337. * src/SocketCore.cc
  2338. * src/Util.cc
  2339. * src/DHTPingTask.h
  2340. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2341. Fixed high memory footprint when DHT is enabled.
  2342. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  2343. queued than it is processed and the queue is getting longer. As a
  2344. consequence, momory usage is increased.
  2345. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  2346. replacement cache in DHTBucket which is described in Kademlia paper.
  2347. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  2348. DHTReplaceNodeTask.
  2349. * src/DHTBucket.{h, cc}
  2350. (cacheNode): New function.
  2351. (getCachedNodes): New function.
  2352. (dropNode): Push back cached node to _nodes.
  2353. * test/DHTBucketTest.cc
  2354. (testCacheNode): New test
  2355. (testDropNode): New test
  2356. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2357. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  2358. the unused 4KB memory when ssl is not used.
  2359. * src/SocketCore.cc
  2360. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2361. Added summary log for peer announce storage.
  2362. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  2363. Removed cast
  2364. * src/DefaultPeerStorage.cc (addPeer)
  2365. Log exception message
  2366. * src/DHTMessageTracker.cc (handleTimeout)
  2367. Fixed casting
  2368. * test/HttpRequestTest.cc
  2369. * test/MetalinkProcessorTest.cc
  2370. * test/PieceTest.cc
  2371. * test/MetalinkEntryTest.cc
  2372. * test/SequenceTest.cc
  2373. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2374. * src/ParameterizedStringParser.cc (createLoop):
  2375. Removed unused variable sstep.
  2376. * src/AlphaNumberDecorator.h (decode): Rewritten.
  2377. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2378. * src/Util.{h, cc}
  2379. (parseUInt): New function.
  2380. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  2381. The actual range is uint32_t.
  2382. * test/UtilTest.cc
  2383. * src/ParameterizedStringParser.cc:
  2384. Use Util::parseUInt() for loop variables.
  2385. * test/ParameterizedStringParserTest.cc
  2386. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  2387. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2388. Rewritten the functions for binding port.
  2389. * src/DHTConnectionImpl.{h, cc}
  2390. * src/PeerListenCommand.{h, cc}
  2391. * src/DHTSetup.cc
  2392. * src/BtSetup.cc
  2393. * test/DHTConnectionImplTest.cc
  2394. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2395. type cleanup for allmost all remaining files.
  2396. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2397. Type clarification
  2398. * src/PeerSessionResource.{h, cc}
  2399. * src/DefaultPieceStorage.{h, cc}
  2400. * src/Peer.{h, cc}
  2401. * test/PeerSessionResourceTest.cc
  2402. Use div function
  2403. * src/BtPieceMessage.cc (erasePieceOnDisk)
  2404. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2405. Type clarification
  2406. * src/DefaultPeerStorage.{h, cc}
  2407. * test/DefaultPeerStorageTest.cc
  2408. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2409. Type clarification: size_t for length or size, uint64_t for file
  2410. length, off_t for file offset.
  2411. * src/DefaultBtProgressInfoFile.cc
  2412. * src/DefaultBtContext.{h, cc}
  2413. * src/DefaultBtInteractive.cc
  2414. * src/DownloadCommand.{h, cc}
  2415. * src/IteratableChunkChecksumValidator.{h, cc}
  2416. * src/SegmentMan.{h, cc}
  2417. * src/SingleFileDownloadContext.{h, cc}
  2418. * src/IteratableChecksumValidator.{h, cc}
  2419. * src/BtContext.h
  2420. * src/IteratableValidator.h
  2421. * src/DownloadContext.h
  2422. * test/SingleFileDownloadContextTest.cc
  2423. * test/DefaultBtContextTest.cc
  2424. * test/MockBtContext.h
  2425. * test/Metalink2RequestGroupTest.cc
  2426. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2427. Type clarification: size_t for length or size, uint64_t for file
  2428. length, off_t for file offset.
  2429. * src/PiecedSegment.cc
  2430. * src/GrowSegment.h
  2431. * src/DefaultBtRequestFactory.h
  2432. * src/DefaultBtProgressInfoFile.cc
  2433. * src/UnknownLengthPieceStorage.h
  2434. * src/DefaultPieceStorage.cc
  2435. * src/UnknownLengthPieceStorage.cc
  2436. * src/DefaultBtInteractive.cc
  2437. * src/GrowSegment.cc
  2438. * src/BitfieldMan.h
  2439. * src/DownloadCommand.cc
  2440. * src/BtRequestFactory.h
  2441. * src/PiecedSegment.h
  2442. * src/DefaultPieceStorage.h
  2443. * src/Piece.cc
  2444. * src/DefaultBtRequestFactory.cc
  2445. * src/PieceStorage.h
  2446. * src/Segment.h
  2447. * src/Piece.h
  2448. * src/BitfieldMan.cc
  2449. * src/Util.cc
  2450. * test/DefaultBtProgressInfoFileTest.cc
  2451. * test/DefaultPieceStorageTest.cc
  2452. * test/MockPieceStorage.h
  2453. * test/BtRequestMessageTest.cc
  2454. * test/DefaultBtMessageDispatcherTest.cc
  2455. * test/BitfieldManTest.cc
  2456. * test/GrowSegmentTest.cc
  2457. * test/PieceTest.cc
  2458. * test/SegmentTest.cc
  2459. * test/SegmentManTest.cc
  2460. * test/DefaultBtRequestFactoryTest.cc
  2461. * test/MockBtRequestFactory.h
  2462. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2463. Fixed compilation error with --disable-nls
  2464. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  2465. in gettext.h causes the problem.
  2466. * src/common.h
  2467. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2468. Removed subPiece related functions.
  2469. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  2470. * src/DefaultPieceStorage.{h, cc}
  2471. * test/PieceTest.cc
  2472. * test/DefaultPieceStorageTest.cc
  2473. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2474. Use unsigned char for data store.
  2475. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2476. Bump up version number to 0.13.0+1
  2477. * configure.ac
  2478. * Release 0.13.0+1
  2479. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2480. Changed inactive connection timeout to 120.
  2481. To accept more mulually interested peers, disconnect peer when there
  2482. is no interest between us after certain time passed.
  2483. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  2484. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2485. Fixed the bug that aria2 only uses first dns server in resolv.conf
  2486. when compiled with async DNS support.
  2487. * src/DownloadEngine.cc
  2488. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  2489. value '10' will be a little bit short when some DNS servers are
  2490. offline and several DNS servers are tried. It should be configured
  2491. by command-line option.
  2492. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2493. Merged Ross's mingw patch.
  2494. * src/DHTRoutingTableDeserializer.cc
  2495. * src/DHTRoutingTableSerializer.cc
  2496. * src/Platform.{h, cc}
  2497. * src/timegm.h
  2498. * src/gettimeofday.h
  2499. * src/getaddrinfo.h
  2500. * src/SocketCore.h
  2501. * src/common.h
  2502. * src/inet_aton.h
  2503. * src/DownloadEngine.h
  2504. * src/gai_strerror.h
  2505. * src/a2netcompat.h
  2506. * configure.ac
  2507. * configure
  2508. * aclocal.m4
  2509. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2510. Included missing iostream.
  2511. * test/AllTest.cc
  2512. * test/BtDependencyTest.cc
  2513. * test/BtExtendedMessageTest.cc
  2514. * test/DHTConnectionImplTest.cc
  2515. * test/DHTMessageFactoryImplTest.cc
  2516. * test/DHTMessageTrackerEntryTest.cc
  2517. * test/DHTNodeTest.cc
  2518. * test/DHTRoutingTableSerializerTest.cc
  2519. * test/DefaultBtAnnounceTest.cc
  2520. * test/DefaultBtContextTest.cc
  2521. * test/DefaultBtMessageFactoryTest.cc
  2522. * test/DefaultExtensionMessageFactoryTest.cc
  2523. * test/HandshakeExtensionMessageTest.cc
  2524. * test/HttpResponseTest.cc
  2525. * test/MetalinkProcessorTest.cc
  2526. * test/MultiFileAllocationIteratorTest.cc
  2527. * test/SocketCoreTest.cc
  2528. * test/UTPexExtensionMessageTest.cc
  2529. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2530. Reorganized includes.
  2531. * src/NameResolver.cc
  2532. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2533. Fixed compilation error without ares/c-ares
  2534. * src/NameResolver.h:
  2535. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2536. Added a test for large file.
  2537. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  2538. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2539. Fixed the bug that file size is ignored if size > INT32_MAX
  2540. * src/SizeMetalinkParserState.cc (endElement):
  2541. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2542. Bump up version number to 0.13.0
  2543. * configure.ac
  2544. * Release 0.13.0
  2545. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2546. Updated Makfefile.am to make 'make dist' work.
  2547. Now packaged filename is aria2c-VERSION.tar.bz2.
  2548. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  2549. Added LICENSE.OpenSSL to dist_noinst_DATA.
  2550. Large file support is now configured by configure script.
  2551. * configure.ac
  2552. Removed unsused source files
  2553. * src/
  2554. * test/
  2555. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  2556. Peer.h and BtContext.h respectively.
  2557. * src/Peer.h
  2558. * src/BtContext.h
  2559. Updated translations.
  2560. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  2561. translations. Great thanks to all translators!;)
  2562. * po/*.{po, gmo}
  2563. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2564. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  2565. statically declared sha1 MessageDigestContext.
  2566. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  2567. initialization of short-lived MessageDigestContext.
  2568. * src/MessageDigestHelper.{h, cc}
  2569. * src/main.cc
  2570. Now DownloadCommand has a reference to MessageDigestContext to avoid
  2571. the initialization of MessageDigestContext every time in validating
  2572. chunk checksum.
  2573. * src/DownloadCommand.{h, cc}
  2574. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2575. Add a file descriptor which connected to fast peer(latency<1500) to
  2576. select(). This change reduced CPU load.
  2577. * src/PeerInteractionCommand.cc
  2578. * src/DefaultBtInteractive.{h, cc}
  2579. * src/BtInteractive.h
  2580. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2581. Fixed the previous insufficient fix for possible busy loop.
  2582. * src/MSEHandshake.cc (identifyHandshakeType)
  2583. Removed unused functions.
  2584. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  2585. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2586. Fixed possible busy loop if first 20 bytes are not received for a few
  2587. minutes.
  2588. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  2589. * src/ReceiverMSEHandshakeCommand.cc
  2590. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2591. Fixed compilation error
  2592. * src/ExpatMetalinkProcessor.cc
  2593. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2594. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  2595. * src/DHTBucket.cc
  2596. Removed unnecessary cast.
  2597. * src/HandshakeExtensionMessage.cc
  2598. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2599. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  2600. is missing.
  2601. * src/OptionHandlerFactory.cc
  2602. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2603. Fixed the bug that HAVE message is not sent for a piece they are
  2604. downloaded fom http/ftp server before any BitTorrent handshake is done
  2605. with peers.
  2606. * src/DefaultBtInteractive.cc
  2607. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2608. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  2609. * src/Makefile.am
  2610. * src/Makefile.in
  2611. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2612. Updated README. Added html version of README and man page.
  2613. * README
  2614. * README.html
  2615. * readme2html: Shell script to generate README.html from README using
  2616. asciidoc.
  2617. * doc/aria2c.1.html
  2618. * doc/makeman: Added the line to generate aria2c.1.html
  2619. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2620. Fixed offset calculation.
  2621. * src/LibgcryptDHKeyExchange.h (computeSecret)
  2622. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2623. Rewritten itos and uitos using template. llitos and ullitos are
  2624. replaced with itos and uitos respectively.
  2625. * src/Util.{h, cc}
  2626. * test/UtilTest.cc
  2627. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2628. Fixed the bug that DH key exchange sometimes fails due to bad handling
  2629. of the number of bytes required for storing public key and shared
  2630. secret.
  2631. * src/LibgcryptDHKeyExchange.h
  2632. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  2633. * src/MSEHandshake.cc
  2634. * test/DHKeyExchangeTest.cc
  2635. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2636. Removed since they are not used.
  2637. * src/Xml2MetalinkProcessor.{h, cc}
  2638. * src/Socket.cc
  2639. * src/SegmentSplitter.{h, cc}
  2640. * test/Xml2MetalinkProcessorTest.cc
  2641. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2642. Fixed the bug that prevents aria2 from stopping other than by pressing
  2643. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  2644. option. aria2 doesn't stop even after --seed-time is satisfied and
  2645. continues to output blank lines in the console.
  2646. * src/ReceiverMSEHandshakeCommand.cc
  2647. * src/PeerReceiveHandshakeCommand.cc
  2648. * src/PeerListenCommand.cc
  2649. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2650. Bump up version number to 0.13.0rc
  2651. * configure.ac
  2652. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2653. Updated man page and some usage text.
  2654. * doc/aria2c.1.txt
  2655. * src/usage_text.h
  2656. * po/*.{po, gmo}
  2657. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2658. Updated translations. Added Finnish and Hebrew translations.
  2659. Great thanks to all translators!
  2660. * po/*.{po, gmo}
  2661. * po/LINGUAS
  2662. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2663. Log more detailed information about each message.
  2664. * src/DHTQueryMessage.{h, cc}
  2665. * src/DHTGetPeersMessage.{h, cc}
  2666. * src/DHTFindNodeReplyMessage.{h, cc}
  2667. * src/DHTGetPeersReplyMessage.{h, cc}
  2668. * src/DHTAnnouncePeerMessage.{h, cc}
  2669. * src/DHTResponseMessage.{h, cc}
  2670. * src/DHTFindNodeMessage.{h, cc}
  2671. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2672. Use constants defined in prefs.h
  2673. * src/option_processing.cc
  2674. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2675. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  2676. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2677. Make room for future enchancements for IPv6 addresses.
  2678. Bump up version number of dht.dat file format to 2.
  2679. Not compatible with previous version.
  2680. * src/DHTRoutingTableSerializer.cc
  2681. * src/DHTRoutingTableDeserializer.cc
  2682. * test/DHTRoutingTableSerializerTest.cc
  2683. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2684. Added handling for the return values from
  2685. PeerMessageUtil::createcompact().
  2686. * src/DefaultBtContext.cc (computeFastSet):
  2687. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2688. Fixed abort when peer's ip address is IPv4-mapped address.
  2689. * src/DefaultBtContext.cc (computeFastSet)
  2690. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  2691. cannot handle IPv4-mapped addresses.
  2692. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  2693. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2694. Proper return value handling for OpenSSL functions.
  2695. * src/LibsslDHKeyExchange.h
  2696. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2697. Random bytes generation using libgcrypt and OpenSSL.
  2698. * src/DHTUtil.{h, cc}
  2699. * test/DHTUtilTest.cc
  2700. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2701. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  2702. received.
  2703. * src/DHTMessageReceiver.cc (receiveMessage)
  2704. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2705. Fixed the bug that a return code is always 0. BUG#1897704
  2706. If error occurred during the download or there exist unfinished
  2707. downloads, aria2 returns with code 1.
  2708. * src/RequestGroupMan.{h, cc}
  2709. * src/MultiUrlRequestInfo.{h, cc}
  2710. * src/main.cc
  2711. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2712. IPv6 support for SocketCore class.
  2713. TODO: In SocketCore::establishConnection(), this is insufficient to
  2714. determin the failure of connect() here because the socket is
  2715. non-blocking state. The next addresses should be tried after select().
  2716. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  2717. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  2718. instead which address family independent.
  2719. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  2720. information in a compact peer format which is for IPv4 only.
  2721. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  2722. this is a spec of BitTorrent protocol.
  2723. * src/SocketCore.{h, cc}
  2724. * src/PeerMessageUtil.cc
  2725. * test/SocketCoreTest.cc
  2726. * test/PeerMessageUtilTest.cc
  2727. * test/DHTConnectionImplTest.cc
  2728. Handle IPv4-mapped addresses.
  2729. * src/DHTNode.cc: Now identity is determined by node id.
  2730. * src/DHTMessageTrackerEntry.cc
  2731. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  2732. should handle it.
  2733. * src/DHTRoutingTableDeserializer.cc
  2734. * src/DHTMessageFactoryImpl.cc
  2735. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2736. Change the unit of --stop option from a minute to a second.
  2737. * src/usage_text.h
  2738. * src/DownloadEngineFactory.cc
  2739. * src/OptionHandlerFactory.cc
  2740. * src/message.h
  2741. * src/TimedHaltCommand.cc
  2742. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2743. Make listening socket non-block mode.
  2744. * src/FtpConnection.cc
  2745. * src/FtpNegotiationCommand.{h, cc}
  2746. * src/PeerListenCommand.cc
  2747. Fixed the bug that cause slow ftp negotiation.
  2748. * src/FtpNegotiationCommand.{h, cc}
  2749. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2750. Added basic tag to --enable-dht, --dht-listen-port option.
  2751. * src/HelpItemFactory.cc (createHelpItems)
  2752. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2753. Updated text.
  2754. * src/usage_text.h
  2755. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2756. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  2757. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2758. Determin _threadtholdSpeed in each constructor for
  2759. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  2760. * src/ActivePeerConnectionCommand.{h, cc}
  2761. * src/PeerReceiveHandshakeCommand.{h, cc}
  2762. * src/BtSetup.cc
  2763. * src/BtConstants.h
  2764. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2765. Added --bt-min-crypto-level and --bt-require-crypto options.
  2766. * src/OptionHandlerFactory.cc
  2767. * src/MSEHandshake.cc
  2768. * src/HelpItemFactory.cc
  2769. * src/option_processing.cc
  2770. * src/ReceiverMSEHandshakeCommand.cc
  2771. * src/prefs.h
  2772. * src/DefaultBtAnnounce.cc
  2773. * src/InitiatorMSEHandshakeCommand.cc
  2774. * src/usage_text.h
  2775. * test/MSEHandshakeTest.cc
  2776. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2777. Bump version number to 0.13.0b
  2778. * configure.ac
  2779. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2780. Updated doc.
  2781. * src/MessageDigestHelper.h:
  2782. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2783. Use raw message digest as a token instead of its hexadecimal
  2784. representation.
  2785. * src/DHTTokenTracker.cc (generateToken)
  2786. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2787. Added Message Stream Encryption(MSE) support.
  2788. Currently, aria2 accepts incoming connections with Obfuscation Header
  2789. and legacy BitTorrent Header and establishes connections with
  2790. Obfuscation Header first and if failed then retry with legacy
  2791. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  2792. choose ARC4. The new option to change the default behavior is planned.
  2793. For tracker extension, "supportcrypto=1" is added statically.
  2794. * src/PeerInitiateConnectionCommand.{h, cc}
  2795. * src/PeerConnection.{h, cc}
  2796. * src/HandleRegistry.h
  2797. * src/SocketCore.h
  2798. * src/PeerReceiveHandshakeCommand.{h, cc}
  2799. * src/BtRegistry.{h, cc}
  2800. * src/PeerListenCommand.cc
  2801. * src/InitiatorMSEHandshakeCommand.{h, cc}
  2802. * src/ReceiverMSEHandshakeCommand.{h, cc}
  2803. * src/MSEHandshake.{h, cc}
  2804. * src/ARC4Encryptor.h
  2805. * src/ARC4Decryptor.h
  2806. * src/LibgcryptARC4Encryptor.h
  2807. * src/LibgcryptARC4Decryptor.h
  2808. * src/LibgcryptARC4Context.h
  2809. * src/LibsslARC4Encryptor.h
  2810. * src/LibsslARC4Decryptor.h
  2811. * src/LibsslARC4Context.h
  2812. * src/DHKeyExchange.h
  2813. * src/LibgcryptDHKeyExchange.h
  2814. * src/LibsslDHKeyExchange.h
  2815. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  2816. * test/DefaultBtAnnounceTest.cc
  2817. * test/ARC4Test.cc
  2818. * test/DHKeyExchangeTest.cc
  2819. Removed prepareForRetry() because it is not used.
  2820. * src/PeerAbstractCommand.{h, cc}
  2821. * src/PeerInteractionCommand.{h, cc}
  2822. * src/PeerInitiateConnectionCommand.{h, cc}
  2823. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2824. Added the ability to load nodes from torrent file. These nodes are
  2825. added to the routing table when downloading that torrent.
  2826. * src/BtContext.h
  2827. * src/DefaultBtContext.{h, cc}
  2828. * src/DHTSetup.cc
  2829. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  2830. hostname and port pair, and resolves all of them.
  2831. * src/NameResolver.{h, cc}: Added reset().
  2832. * src/RequestGroup.cc
  2833. * test/DefaultBtContextTest.cc
  2834. * test/MockBtContext.h
  2835. Removed assert() from DefaultBtContext and throw exception instead.
  2836. * src/DefaultBtContext.cc
  2837. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2838. Fixed segmentation fault bug when exiting if dht is disabled.
  2839. * src/RequestGroup.cc
  2840. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2841. Fixed typo in log message and define the message in message.h
  2842. * src/TimedHaltCommand.cc
  2843. * src/message.h
  2844. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2845. Included RecoverableException.h to fix compilation error.
  2846. * test/DHTMessageFactoryImplTest.cc
  2847. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2848. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  2849. * test/DHTPingMessageTest.cc
  2850. * test/DHTGetPeersMessageTest.cc
  2851. * test/DHTFindNodeMessageTest.cc
  2852. * test/DHTAnnouncePeerMessageTest.cc
  2853. * test/MockDHTMessage.h
  2854. * test/MockDHTMessageFactory.h
  2855. * test/MockDHTMessageDispatcher.h: New class.
  2856. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2857. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  2858. virtual.
  2859. * src/DHTMessageDispatcher.h
  2860. * src/DHTMessageDispatcherImpl.{h, cc}
  2861. * src/DHTSetup.cc
  2862. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2863. Adding handling of DHT error message. Just log error message and
  2864. throw exception.
  2865. * src/DHTMessageFactoryImpl.cc
  2866. * test/DHTMessageFactoryImplTest.cc
  2867. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2868. Added handling of dynamic cast failure.
  2869. * src/DHTNodeLookupTask.cc
  2870. * src/DHTPeerLookupTask.cc
  2871. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2872. Added the ability to stop aria2 itself when given time has passed
  2873. from start. Use --stop option to specify time in minutes.
  2874. When 0 is given, this feature is disabled.
  2875. * src/OptionHandlerFactory.cc
  2876. * src/TimeBasedCommand.h: Make _interval protected scope.
  2877. * src/HelpItemFactory.cc
  2878. * src/option_processing.cc
  2879. * src/prefs.h
  2880. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  2881. before calling RequestGroupMan::fillRequestGroupFromReserver().
  2882. Without this modification, the result list shows "ERR" when aria2 is
  2883. stopped by --stop option. It should be "INPR".
  2884. * src/DownloadEngine.{h, cc}
  2885. * src/DownloadEngineFactory.cc
  2886. * src/usage_text.h
  2887. * src/TimedHaltCommand.{h, cc}: New class.
  2888. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2889. Bootstrap through node added by port message.
  2890. Currently bootstrap is executed if the number of buckets in routing
  2891. table is 1.
  2892. * src/BtPortMessage.{h, cc}
  2893. * src/DefaultBtMessageFactory.{h, cc}
  2894. * src/PeerInteractionCommand.cc
  2895. * test/BtPortMessageTest.cc
  2896. * test/MockDHTTask.h
  2897. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2898. Extract the Peer class's member variables, which are only needed after
  2899. PeerInteractionCommand, into PeerSessionResource class.
  2900. This class is instantiated in PeerInteractionCommand class's ctor and
  2901. released in its dtor.
  2902. This will make Peer class lightweight and uses less memory for peers
  2903. which are not connected and wait in the queue.
  2904. * src/PeerChokeCommand.cc
  2905. * src/PeerSessionResource.{h, cc}
  2906. * src/PeerInteractionCommand.cc
  2907. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  2908. * src/DefaultBtInteractive.cc
  2909. * src/BtPieceMessage.cc
  2910. * src/BtInterestedMessage.cc
  2911. * src/BtUnchokeMessage.cc
  2912. * src/DefaultPeerStorage.{h, cc}
  2913. * src/PeerInitiateConnectionCommand.cc
  2914. * src/ActivePeerConnectionCommand.cc
  2915. * src/BtNotInterestedMessage.cc
  2916. * src/DefaultBtMessageDispatcher.cc
  2917. * src/BtChokeMessage.cc
  2918. * src/BtRequestMessage.cc
  2919. * src/Peer.{h, cc}
  2920. * src/BtRegistry.h
  2921. * src/TrackerWatcherCommand.cc
  2922. * src/PeerReceiveHandshakeCommand.cc
  2923. * test/BtExtendedMessageTest.cc
  2924. * test/BtAllowedFastMessageTest.cc
  2925. * test/BtCancelMessageTest.cc
  2926. * test/DefaultPieceStorageTest.cc
  2927. * test/BtBitfieldMessageTest.cc
  2928. * test/BtHaveMessageTest.cc
  2929. * test/BtNotInterestedMessageTest.cc
  2930. * test/BtRequestMessageTest.cc
  2931. * test/PeerSessionResourceTest.cc
  2932. * test/DefaultBtMessageDispatcherTest.cc
  2933. * test/PeerTest.cc
  2934. * test/BtInterestedMessageTest.cc
  2935. * test/BtRejectMessageTest.cc
  2936. * test/BtChokeMessageTest.cc
  2937. * test/DefaultPeerStorageTest.cc
  2938. * test/BtHaveNoneMessageTest.cc
  2939. * test/BtHaveAllMessageTest.cc
  2940. * test/DefaultExtensionMessageFactoryTest.cc
  2941. * test/BtUnchokeMessageTest.cc
  2942. * test/DefaultBtMessageFactoryTest.cc
  2943. * test/HandshakeExtensionMessageTest.cc
  2944. * test/UTPexExtensionMessageTest.cc
  2945. * test/DefaultBtRequestFactoryTest.cc
  2946. * test/BtPieceMessageTest.cc
  2947. Removed typedef PeerStats.
  2948. * src/PeerStat.h
  2949. * src/SegmentMan.cc
  2950. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2951. Added std namespace to copy, remove_copy, back_inserter,
  2952. front_inserter.
  2953. * src/RequestGroupMan.cc
  2954. * src/DefaultPieceStorage.cc
  2955. * src/StreamFileAllocationEntry.cc
  2956. * src/BtFileAllocationEntry.cc
  2957. * src/RequestGroup.cc
  2958. * src/MetalinkEntry.cc
  2959. * src/DelegatingPeerListProcessor.cc
  2960. * src/DefaultBtRequestFactory.cc
  2961. * src/DefaultBtMessageDispatcher.cc
  2962. * src/version_usage.cc: Included <algorithm>
  2963. * src/main.cc
  2964. * src/MetalinkParserController.cc
  2965. * src/DefaultBtContext.cc
  2966. * src/DownloadEngineFactory.cc
  2967. * src/a2algo.h
  2968. Removed.
  2969. * test/StreamUriListParserTest.cc
  2970. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2971. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  2972. ActivePeerConnectionCommand when it is given and
  2973. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  2974. * src/ActivePeerConnectionCommand.{h, cc}
  2975. * src/BtSetup.cc
  2976. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2977. Only add socket to DownloadEngine's select routine when peer or
  2978. localhost is unchoked and interested. This lowers CPU usage a
  2979. little bit.
  2980. * src/PeerInteractionCommand.cc
  2981. * src/PeerAbstractCommand.{h, cc}
  2982. * src/BtInteractive.h
  2983. * src/DefaultBtInteractive.{h, cc}
  2984. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2985. Revert previous change because get_peers message is needed for
  2986. announce_peer anyway.
  2987. * src/DHTGetPeersCommand.cc
  2988. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2989. Request peers thought DHT only when download hasn't finished.
  2990. * src/DHTGetPeersCommand.cc
  2991. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2992. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  2993. * src/DHTBucketRefreshTask.{h, cc}
  2994. * src/DHTSetup.cc
  2995. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2996. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  2997. standard classes.
  2998. Included string.h where mem* function are used.
  2999. Added namespace aria2.
  3000. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3001. Create directory before saving DHT routing table.
  3002. Now ios::failure is now handled properly.
  3003. * src/DHTAutoSaveCommand.cc
  3004. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3005. Removed unnecessary cerr.
  3006. * src/DownloadEngine.cc
  3007. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3008. Catch exception inside DHTMessageReceiver::receiveMessage().
  3009. Log unknown message.
  3010. * src/DHTMessageReceiver.{h, cc}
  3011. * src/DHTMessageFactory.h
  3012. * src/DHTMessageFactoryImpl.{h, cc}
  3013. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  3014. * src/DHTInteractionCommand.cc
  3015. * src/DHTUnknownMessage.{h, cc}
  3016. * test/DHTUnknownMessageTest.cc
  3017. * test/MockDHTMessageFactory.h
  3018. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3019. Commented out ip address comparison because a host can have multiple
  3020. ip addresses and it is hard to predict the hostname is resolved into
  3021. which one.
  3022. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  3023. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3024. * po/Makefile.in: Removed since this is generated by configure.
  3025. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3026. Fixed compiler warning about redefinition of SIZE_MAX.
  3027. Use common.h instead of config.h directly here.
  3028. * src/Platform.{h, cc}
  3029. The check of ENABLE_NLS is made in gettext.h, so it is not required
  3030. here.
  3031. * common.h
  3032. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  3033. Updated gettext related files.
  3034. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  3035. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  3036. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3037. Added DHT functionality, compatible with mainline.
  3038. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  3039. You may need to specify entry point to DHT network using
  3040. --dht-entry-point. DHT uses UDP port to listen incoming message.
  3041. Use --dht-listen-port to specify port number. Make sure that your
  3042. firewall configuration can pass through UDP traffic to the port.
  3043. The routing table is saved in $HOME/.aria2/dht.dat.
  3044. * src/DHT*
  3045. * src/BNode.{h, cc}
  3046. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  3047. particular torrent.
  3048. * src/Data.cc: Rewritten ctor.
  3049. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  3050. --dht-entry-point.
  3051. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  3052. * src/RequestGroup.cc: Initialize DHT functionality. When download
  3053. ends, remove BtContext from DHTPeerAnnounceStorage.
  3054. * src/BtPortMessage.{h, cc}: Rewritten.
  3055. * src/message.h
  3056. * src/OptionHandlerImpl.cc
  3057. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  3058. --dht-entry-point.
  3059. * src/Dictionary.{h, cc} (remove): New function.
  3060. * src/prefs.h
  3061. * src/DefaultBtMessageFactory.h
  3062. * src/BtHandshakeMessage.cc
  3063. * src/ActivePeerConnectionCommand.cc
  3064. * src/SocketCore.{h, cc}: Added datagram socket support.
  3065. * src/DefaultBtMessageFactory.cc
  3066. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  3067. Create DHT commands.
  3068. * src/BtMessageFactory.h
  3069. * src/PeerMessageUtil.{h, cc}
  3070. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3071. Fixed the bug that log file is not written when configuration file doesn't exist.
  3072. This is caused by using Logger class before LogFactory is not configured.
  3073. BUG #1875079
  3074. * src/option_processing.cc
  3075. Warning message "configuration doesn't exist" is only printed when --conf is
  3076. given.
  3077. * src/option_processing.cc
  3078. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  3080. ShaVisitor is now deprecated and slated to be removed.
  3081. * src/DefaultBtContext.cc
  3082. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3083. Externalize message to message.h
  3084. * src/Platform.cc
  3085. * src/message.h
  3086. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3087. Set default domain and default path to cookie.
  3088. * src/HttpResponse.cc
  3089. * src/CookieBox.{h, cc}
  3090. * src/CookieParser.{h, cc}
  3091. * test/CookieParserTest.cc
  3092. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3093. Added --no-conf and --conf-path command-line option.
  3094. --no-conf option disables loading aria2.conf file.
  3095. --conf-path option changes the configuration file path. The default
  3096. file path is $HOME/.aria2/aria2.conf
  3097. Added a warning message when the configuration file is not found.
  3098. * src/HelpItemFactory.cc
  3099. * src/option_processing.cc
  3100. * src/prefs.h
  3101. * src/usage_text.h
  3102. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3103. Added the message to inform users that other help categories are
  3104. available in -h option.
  3105. * src/version_usage.cc
  3106. * src/TagContainer.{h, cc}
  3107. * test/TagContainerTest.cc
  3108. * src/TaggedItem.{h, cc}
  3109. * test/TaggedItemTest.cc
  3110. * src/HelpItem.h
  3111. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3112. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  3113. from PiecedSegment's ctor.
  3114. Previously Piece::getAllMissingBlockIndexes() is called from
  3115. PiecedSegment() but it is rather expensive since only first element is
  3116. used.
  3117. * src/PiecedSegment.cc
  3118. * src/Piece.{h, cc}
  3119. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3120. Rewritten get*Missing*Index functions. Now no need to allocate memory
  3121. each time these functions are called.
  3122. * src/BitfieldMan.{h, cc}
  3123. * test/BitfieldManTest.cc
  3124. * src/array_fun.h
  3125. * test/array_funTest.cc
  3126. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  3127. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  3128. filtered. Removed unnecessary cast to int32_t.
  3129. * src/BitfieldMan.{h, cc}
  3130. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3131. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  3132. payload length(4bytes) are received. This happens because lenbufLength
  3133. is not updated in this particular case and successive call of
  3134. receiveMessage() overwrites payload length with bytes recieved which
  3135. are payload body.
  3136. * src/PeerConnection.{h, cc}
  3137. * src/message.h
  3138. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3139. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  3140. peer if there are peers that have same ipaddr and port.
  3141. I've experiened segmentation fault and "pure virtual function was
  3142. called" error.
  3143. * src/Peer.h
  3144. * test/PeerTest.cc
  3145. * src/DefaultPeerStorage.cc
  3146. * test/DefaultPeerStorageTest.cc
  3147. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3148. Removed a call to isPowerOf() because it is no longer necessary here
  3149. and a request block is not always power of 2.
  3150. BUG#1866924
  3151. * src/PeerMessageUtil.cc (checkLength)
  3152. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3153. Fixed the bug that always first found Segment is removed from
  3154. usedSegmentEntries. Removed unused functions.
  3155. * src/SegmentMan.{h, cc}
  3156. * test/SegmentManTest.cc
  3157. Fixed the bug that ServerHost is not removed.
  3158. * src/RequestGroup.cc
  3159. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3160. Fixed the bug that SegmentMan::completeSegment() is not called
  3161. even if Segment is complete when --lowest-speed-limit is enabled.
  3162. BUG#1864525
  3163. * src/DownloadCommand.{h, cc}
  3164. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3165. Fixed: hash algorithm 'sha1' is always used.
  3166. * src/DownloadCommand.cc (validatePieceHash)
  3167. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3168. Added --enable-peer-exchange command-line option.
  3169. * src/OptionHandlerFactory.cc
  3170. * src/HelpItemFactory.cc
  3171. * src/option_processing.cc
  3172. * src/usage_text.h
  3173. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3174. Move extension from BtRuntime to ExtensionMessageFactory, because
  3175. extension can be specified per peer, not per torrent.
  3176. * src/DefaultBtInteractive.cc
  3177. * src/BtRuntime.h
  3178. * src/ExtendedMessagingAware.h
  3179. * src/ExtensionMessageFactory.h
  3180. * src/DefaultExtensionMessageFactory.cc
  3181. * test/DefaultExtensionMessageFactoryTest.cc
  3182. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3183. Added categorized option help. Specify category using --help option.
  3184. Also added the ability to search options in forward match.
  3185. * src/HelpItem.{h, cc}
  3186. * test/HelpItemTest.cc
  3187. * src/HelpItemFactory.{h, cc}
  3188. * src/TagContainer.{h, cc}
  3189. * test/TagContainerTest.cc
  3190. * src/option_processing.cc
  3191. * src/prefs.h
  3192. * src/TaggedItem.{h, cc}
  3193. * test/TaggedItemTest.cc
  3194. * src/version_usage.cc
  3195. * src/help_tags.h
  3196. * src/usage_text.h
  3197. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3198. Fixed segmentation fault when bad torrent metainfo is parsed.
  3199. Added dynamic_cast properly to detect the misconfiguration of metainfo
  3200. and then throw exception or skip it.
  3201. * src/DefaultBtContext.{h, cc}
  3202. * test/DefaultBtContextTest.cc
  3203. * src/AnnounceList.cc
  3204. * src/CompactPeerListProcessor.cc
  3205. * src/message.h
  3206. * src/DefaultBtAnnounce.{h, cc}
  3207. * test/DefaultBtAnnounceTest.cc
  3208. * src/BencodeVisitor.cc
  3209. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3210. Added missing "B"(=Byte). So now the message looks like this:
  3211. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  3212. * src/message.h (MSG_SHARE_RATIO_REPORT)
  3213. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3214. Show the seed ratio after torrent downloads.
  3215. For example, after torrent download completed and --seed-time and
  3216. --seed-ratio conditions are fulfilled, following message is printed
  3217. right after "Download complete: .....":
  3218. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  3219. * src/RequestGroupMan.cc
  3220. * src/RequestGroup.{h, cc}
  3221. * src/message.h
  3222. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3223. Remove a defunct control file. A defunct control file means that while
  3224. it exists, but the corresponding download file is missing.
  3225. After its removal, a download restarts from the beginning.
  3226. * src/RequestGroup.cc
  3227. * src/message.h
  3228. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3229. Allocate bitfield in Peer when it is really used. More specifically,
  3230. bitfield in Peer is allocated after the connection is established and
  3231. deallocated when the connection is dropped.
  3232. Since 2 parameters(piece length and total length) was removed from the
  3233. constructor of Peer class, many test classes were modified accordingly.
  3234. See svn log for more detailed information.
  3235. * src/PeerInteractionCommand.cc
  3236. * src/CompactPeerListProcessor.cc
  3237. * src/Peer.cc
  3238. * src/DefaultPeerListProcessor.cc
  3239. * src/PeerListenCommand.cc
  3240. * src/PeerReceiveHandshakeCommand.cc
  3241. Fixed memory leak
  3242. * src/Piece.cc
  3243. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3244. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  3245. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  3246. command-line options.
  3247. * src/option_processing.cc
  3248. * src/ActivePeerConnectionCommand.cc
  3249. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3250. Send have message to peer if it already has the piece.
  3251. * src/BtHaveMessage.{h, cc}
  3252. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3253. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  3254. port.
  3255. * src/DefaultPeerStorage.{h, cc}
  3256. * test/DefaultPeerStorageTest.cc
  3257. * src/HandshakeExtensionMessage.cc
  3258. * test/HandshakeExtensionMessageTest.cc
  3259. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  3260. * src/PeerStorage.h
  3261. * test/MockPeerStorage.h
  3262. * src/PeerListenCommand.cc
  3263. * src/PeerReceiveHandshakeCommand.cc
  3264. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3265. Added --metalink-enable-unique-protocol option.
  3266. * src/Metalink2RequestGroup.cc
  3267. * src/option_processing.cc
  3268. * src/prefs.h
  3269. * src/version_usage.cc
  3270. * doc/aria2c.1.txt
  3271. * doc/aria2c.1
  3272. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3273. Allow a peer in incomingPeer to be added peers.
  3274. * src/DefaultPeerStorage.cc
  3275. * test/DefaultPeerStorageTest.cc
  3276. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3277. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  3278. I could reproduce this bug in following procedure:
  3279. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  3280. 2. Restart aria2.
  3281. 3. You see the download stopped around 99%.
  3282. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  3283. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  3284. If timeout is reached, then _nextCommand is unused and it may contains
  3285. segments and they won't be canceled. Actually, timeout is not needed
  3286. here because if the server dropped connection, then retry is made.
  3287. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3288. Added uTorrent compatible Peer Exchange.
  3289. * src/BencodeVisitor.{h, cc}
  3290. * test/BencodeVisitorTest.cc
  3291. * src/BtConstants.h
  3292. * src/BtContext.h: Added 'private' flag.
  3293. * src/BtExtendedMessage.{h, cc}
  3294. * test/BtExtendedMessageTest.cc
  3295. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  3296. reserved field.
  3297. * test/BtHandshakeMessageTest.cc
  3298. * src/BtMessageFactory.h
  3299. * src/BtRegistry.h
  3300. * src/BtRuntime.h: This class holds default extension message IDs for
  3301. aria2. By default, aria2 uses ID 8 for ut_pex.
  3302. * src/DefaultBtContext.cc
  3303. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  3304. When it is true, aria2 enables ut_pex. This value is set by
  3305. PeerInteractionCommand.
  3306. * src/DefaultBtMessageFactory.{h, cc}
  3307. * test/DefaultBtMessageFactoryTest.cc
  3308. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  3309. handling to DefaultBtInteractive class.
  3310. * src/DefaultExtensionMessageFactory.{h, cc}
  3311. * test/DefaultExtensionMessageFactoryTest.cc
  3312. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  3313. the container(peers and incomingPeers. The equality is determined by
  3314. Peer::id).
  3315. * test/DefaultPeerStorageTest.cc
  3316. * src/ExtensionMessage.h
  3317. * test/MockExtensionMessage.h
  3318. * src/ExtensionMessageFactory.h
  3319. * test/MockExtensionMessageFactory.h
  3320. * src/HandshakeExtensionMessage.{h, cc}
  3321. * test/HandshakeExtensionMessageTest.cc
  3322. * src/MetaEntry.h
  3323. * src/Peer.{h, cc}
  3324. * src/PeerInteractionCommand.cc
  3325. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  3326. addIncomingPeer.
  3327. * src/PeerMessageUtil.{h, cc}
  3328. * src/PeerObject.h
  3329. * src/UTPexExtensionMessage.{h, cc}
  3330. * test/UTPexExtensionMessageTest.cc
  3331. * src/message.h
  3332. * src/prefs.h
  3333. Fixed the bug that returns incomplete data when it contains null
  3334. character. A convenient constructor was also added.
  3335. * src/Data.{h, cc}
  3336. Rewritten.
  3337. * src/CompactPeerListProcessor.cc
  3338. Fixed typos.
  3339. * src/message.h
  3340. * src/MetaFileUtil.cc
  3341. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3342. Added "Status Legend" label to the explanation text of 'stat' in
  3343. download result and moved it to the last. BUG#1848214
  3344. * src/RequestGroupMan.cc
  3345. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3346. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  3347. * src/Makefie.am
  3348. * test/Makefile.am
  3349. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3350. Fixed the bug that prevents aria2 from loading cookie file when expire
  3351. value is greater than 2^31-1. BUG#1851066
  3352. * src/CookieBoxFactory.cc
  3353. * test/CookieBoxFactoryTest.cc
  3354. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. Fixed possible memory leak when an exception is thrown.
  3356. * src/XML2SAXMetalinkProcessor.cc
  3357. Added Expat support. If both libxml2 and Expat are installed, then
  3358. libxml2 is used by default.
  3359. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  3360. ExpatMetalinkProcessor according to the configuration.
  3361. * src/ExpatMetalinkProcessor.{h, cc}
  3362. * src/main.cc: Removed libxml2 specific header and init/free function.
  3363. * src/MetalinkProcessorFactory.{h, cc}
  3364. * src/MetalinkHelper.cc
  3365. * src/Metalinker.h: Removed unnecessary libxml2 header.
  3366. * src/MetalinkProcessor.h
  3367. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  3368. MetalinkProcessorTest is used instead.
  3369. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  3370. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  3371. MetalinkProcessorFactory::newInstance().
  3372. * m4/libexpat.m4
  3373. * configure.ac: Added configuration options for libexpat.
  3374. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3375. Disabled -s option in metalink download.
  3376. * src/Metalink2RequestGroup.cc
  3377. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3378. If several protocols are available for a mirror in metalink file,
  3379. aria2 now use one of them. --metalink-preferred-protocol option was
  3380. added to specify the preference of protocol.
  3381. * src/AbstractCommand.cc
  3382. * src/OptionHandlerFactory.cc
  3383. * src/ServerHost.{h, cc}
  3384. * src/Metalink2RequestGroup.cc
  3385. * src/RequestGroup.{h, cc}
  3386. * test/RequestGroupTest.cc
  3387. * src/option_processing.cc
  3388. * src/prefs.h
  3389. * src/HttpResponseCommand.cc
  3390. * src/MetalinkResource.{h, cc}
  3391. * src/FtpNegotiationCommand.cc
  3392. * src/MetalinkEntry.{h, cc}
  3393. * src/MetalinkEntryTest.cc
  3394. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3395. Code cleanup and added debug log.
  3396. * src/PeerConnection.cc
  3397. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3398. Compiler error fix: applied the patch by Tiziano Mueller
  3399. * src/RequestGroup.cc
  3400. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3401. Fixed the bug: only first announce URL is tried in AnnounceTier,
  3402. in stopped and completed event.
  3403. * src/AnnounceList.{h, cc}
  3404. * test/AnnounceListTest.cc
  3405. * src/DefaultBtAnnounce.cc
  3406. * test/DefaultBtAnnounceTest.cc
  3407. Sorted URLs.
  3408. * test/Metalink2RequestGroupTest.cc
  3409. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3410. Removed unnecessary string copy. Updated doc and corrected indentation.
  3411. * src/Base64.cc
  3412. Fixed compilation warnings
  3413. * test/DataTest.cc
  3414. * test/HttpRequestTest.cc
  3415. * test/MetaFileUtilTest.cc
  3416. * test/RequestTest.cc
  3417. * Release 0.12.0
  3418. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3419. Updated translations
  3420. * po/{de,fr,ja,nl,ru}.po
  3421. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  3422. translations. Many thanks to translators.
  3423. * po/{ca,es,it,pt_BR,sv}.po
  3424. * po/LINGUAS
  3425. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3426. Added a notice about URL
  3427. * src/version_usage.cc
  3428. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  3429. Fixed the bug#1845750; CTRL+C does not stop torrent.
  3430. aria2 repeatedly sends stopped request when tracker returns error code.
  3431. * src/AnnounceList.cc
  3432. * test/AnnounceListTest.cc
  3433. * src/AnnounceTier.h
  3434. Added a message when ctrl-c is hit.
  3435. Now second ctrl-c is also handled in signal handler.
  3436. * src/RequestGroupMan.{h, cc}
  3437. * src/RequestGroup.{h, cc}
  3438. * src/MultiUrlRequestInfo.cc
  3439. * src/DownloadEngine.cc
  3440. * src/TrackerWatcherCommand.cc
  3441. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3442. Code cleanup
  3443. * src/Base64.cc (encode)
  3444. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3445. Changed Direct/IO enable/disable procesure in file allocation routine.
  3446. * src/SingleFileAllocationIterator.cc
  3447. (SingleFileAllocationIterator):
  3448. Disable directIO if offset is not multiple of 512.
  3449. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  3450. * src/MultiFileAllocationIterator.cc (allocateChunk):
  3451. Enable created SingleFileAllocationIterator's directIO.
  3452. * src/FileAllocationEntry.cc
  3453. (FileAllocationEntry): Enable directIO here.
  3454. (~FileAllocationEntry): Disable directIO here.
  3455. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3456. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  3457. * src/Peer.{h, cc}
  3458. * src/DefaultPieceStorage.cc
  3459. * test/DefaultPieceStorageTest.cc
  3460. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3461. Rewritten direct I/O support routine
  3462. * src/SingleFileAllocationIterator.cc
  3463. * src/MultiDiskAdaptor.{h, cc}
  3464. * src/ByteArrayDiskWriter.h
  3465. * src/AbstractSingleDiskAdaptor.h
  3466. * src/AbstractDiskWriter.cc
  3467. * src/DefaultPieceStorage.cc
  3468. * src/DiskWriter.h
  3469. * src/BinaryStream.h
  3470. * src/IteratableChunkChecksumValidator.cc
  3471. * src/IteratableChecksumValidator.cc
  3472. * src/CheckIntegrityEntry.cc
  3473. * src/FileAllocationEntry.cc
  3474. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3475. Fixed typo
  3476. * src/version_usage.cc
  3477. Updated doc
  3478. * doc/aria2c.1.txt
  3479. * doc/aria2c.1
  3480. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3481. Fixed compile error without message digest support.
  3482. * src/FileMetalinkParserState.cc
  3483. * src/MetalinkParserController.{h, cc}
  3484. * test/XML2SAXMetalinkProcessorTest.cc
  3485. * test/MetalinkParserControllerTest.cc
  3486. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Enable direct I/O support in checksum checking.
  3488. * src/IteratableChunkChecksumValidator.{h, cc}
  3489. * test/IteratableChunkChecksumValidatorTest.cc
  3490. * src/CheckIntegrityEntry.cc
  3491. * src/PieceHashCheckIntegrityEntry.cc
  3492. * src/IteratableChecksumValidator.{h, cc}
  3493. * src/BtCheckIntegrityEntry.cc: Added doc.
  3494. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3495. Added --allow-piece-length-change option.
  3496. * src/DefaultBtProgressInfoFile.cc
  3497. * test/DefaultBtProgressInfoFileTest.cc
  3498. * src/OptionHandlerFactory.cc
  3499. * src/option_processing.cc
  3500. * src/prefs.h
  3501. * src/version_usage.cc
  3502. * doc/aria2c.1.txt
  3503. * doc/aria2c.1
  3504. Fixed: duplicated result entry appears when exception is thrown in
  3505. RequestGroup::createInitiateConnectionCommand().
  3506. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  3507. Add RequestGroup to _requestGroup after RequetGroup::
  3508. createInitiateConnectionCommand() succeeds.
  3509. Externalized message
  3510. * src/XML2SAXMetalinkProcessor.cc
  3511. * src/message.h
  3512. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3513. Forced download abort when received negative response from http/ftp
  3514. server.
  3515. * src/HttpResponseCommand.cc
  3516. * src/FtpNegotiationCommand.cc
  3517. * src/HttpResponse.cc
  3518. * src/FtpConnection.cc
  3519. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3520. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  3521. the predecessor, Xml2MetalinkParser class.
  3522. I tested them against 94KB metalink file with 1234 chunk checksums.
  3523. The new one parsed it in 22msec, while it took 6000msec with old one.
  3524. * src/XML2SAXMetalinkProcessor.{h, cc}
  3525. * test/XML2SAXMetalinkProcessorTest.cc
  3526. * src/MetalinkParserController.{h, cc}
  3527. * test/MetalinkParserControllerTest.cc
  3528. * src/MetalinkParserState.h: Also added 16 subclasses.
  3529. * src/main.cc
  3530. * src/Metalink2RequestGroup.cc
  3531. * src/MetalinkHelper.cc
  3532. * src/MetalinkEntry.cc
  3533. * src/ChunkChecksum.h
  3534. Rewritten Base64 class for better performance.
  3535. * src/Base64.{h, cc}
  3536. * test/Base64Test.cc
  3537. * src/HttpRequest.cc
  3538. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3539. Fixed the bug#1841757: aria2 will connect to server to only get
  3540. file size.
  3541. * src/StreamFileAllocationEntry.cc
  3542. * src/option_processing.cc
  3543. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  3544. downloads.
  3545. * src/FtpNegotiationCommand.cc
  3546. Suppressed wrong message when finding PreDownloadHandler
  3547. * src/RequestGroup.cc
  3548. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3549. Updated usage
  3550. * src/version_usage.cc
  3551. Updated man page
  3552. * doc/aria2c.1.txt
  3553. * doc/aria2c.1
  3554. Updated po files
  3555. * po/aria2c.pot
  3556. * po/*.po
  3557. * po/*.gmo
  3558. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3559. Eliminated g++-4.2 warning
  3560. * src/DownloadHandlerConstants.{h, cc}
  3561. * src/Util.cc
  3562. * test/MetaFileUtilTest.cc
  3563. * test/PStringBuildVisitorTest.cc
  3564. Fixed bug: --check-integrity doesn't work for multi file torrent.
  3565. * src/RequestGroup.cc
  3566. * src/BtCheckIntegrityEntry.cc
  3567. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3568. Fixed a2io.h
  3569. * src/a2io.h
  3570. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3571. Added direct I/O support. The current implementation uses O_DIRECT,
  3572. which is not posix standard and is tested on linux 2.6.21.
  3573. Currently only file allocation uses direct I/O.
  3574. * src/SingleFileAllocationIterator.{h, cc}
  3575. * test/SingleFileAllocationIteratorTest.cc
  3576. * src/MultiFileAllocationIterator.{h, cc}
  3577. * test/MultiFileAllocationIteratorTest.cc
  3578. * src/BinaryStream.h
  3579. * src/DiskWriter.h
  3580. * src/AbstractDiskWriter.{h, cc}
  3581. * src/ByteArrayDiskWriter.h
  3582. * src/DiskAdaptor.h
  3583. * src/AbstractSingleDiskAdaptor.{h, cc}
  3584. * src/MultiDiskAdaptor.{h, cc}
  3585. * src/FileAllocationEntry.cc
  3586. * src/Util.{h, cc}
  3587. * src/OptionHandlerFactory.cc
  3588. * src/prefs.h
  3589. * src/version_usage.cc
  3590. * src/option_processing.cc
  3591. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  3592. handleException.
  3593. * src/MultiFileAllocationIterator.cc
  3594. Added EINTR handling
  3595. * src/SocketCore.cc
  3596. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3597. Updated usage
  3598. * src/version_usage.cc
  3599. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3600. Applied Ross's patch for MinGW port.
  3601. * src/DownloadEngine.h
  3602. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3603. Set Content-Type to SingleFileDownloadContext when http response is
  3604. received.
  3605. * src/HttpResponseCommand.cc
  3606. * src/HttpResponse.{h, cc}
  3607. * test/HttpResponseTest.cc
  3608. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3609. Rewritten to add content-type support.
  3610. * src/DownloadHandler.{h, cc}
  3611. * src/BtPostDownloadHandler.{h, cc}
  3612. * test/BtPostDownloadHandlerTest.cc
  3613. * src/MetalinkPostDownloadHandler.{h, cc}
  3614. * test/MetalinkPostDownloadHandlerTest.cc
  3615. * src/PostDownloadHandler.{h, cc}
  3616. * src/DownloadHandlerConstants.{h, cc}
  3617. * src/RequestGroup.cc
  3618. * src/HttpResponseCommand.cc
  3619. * src/FtpNegotiationCommand.cc
  3620. * src/SingleFileDownloadContext.{h, cc}
  3621. * src/RequestGroup.h
  3622. * src/RequestGroupCriteria.h
  3623. * src/ContentTypeRequestGroupCriteria.h
  3624. Added 'mem' option value for --follow-metalink, --follow-torrent.
  3625. If it is give, metalink/torrent file is not written to the disk, but
  3626. just is kept in memory. Parsing is occurred on memory.
  3627. * src/MetalinkHelper.{h, cc}
  3628. * src/MetalinkProcessor.h
  3629. * src/Xml2MetalinkProcessor.{h, cc}
  3630. * test/Xml2MetalinkProcessorTest.cc
  3631. * src/DownloadHandlerFactory.{h, cc}
  3632. * test/DownloadHandlerFactoryTest.cc
  3633. * src/PreDownloadHandler.{h, cc}
  3634. * src/OptionHandlerFactory.cc
  3635. * src/DefaultBtContext.{h, cc}
  3636. * test/DefaultBtContextTest.cc
  3637. * src/version_usage.cc
  3638. * src/Metalink2RequestGroup.{h, cc}
  3639. * src/RequestGroup.{h, cc}
  3640. * src/a2functional.h
  3641. * test/a2functionalTest.cc
  3642. * src/MemoryBufferPreDownloadHandler.{h, cc}
  3643. * src/OptionHandlerImpl.h
  3644. * src/prefs.h
  3645. * src/Util.{h, cc}
  3646. * test/UtilTest.cc
  3647. Keep DownloadResult rather than RequestGroup after downloads to reduce
  3648. memory usage.
  3649. * src/RequestGroupMan.{h, cc}
  3650. * src/DownloadEngine.cc
  3651. * src/BtDependency.{h, cc}: Changed the type of dependee from
  3652. WeakHandle to SharedHandle because WeakHandle could be null.
  3653. * src/RequestGroup.{h, cc}
  3654. * src/DownloadEngineFactory.cc
  3655. * src/DownloadResult.h
  3656. Set totalLength after download finished
  3657. * src/UnknownLengthPieceStorage.{h, cc}
  3658. Keep torrent file specified in metalink in memory.
  3659. * src/Metalink2RequestGroup.cc
  3660. * src/BtDependency.cc
  3661. * src/TrueRequestGroupCriteria.h
  3662. Fixed the bug: seekg is used where seekp should be used.
  3663. * src/ByteArrayDiskWriter.cc
  3664. * test/ByteArraydiskWriterTest.cc
  3665. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3666. Fixed syntax error
  3667. * test/SequenceTest.cc
  3668. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3669. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  3670. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  3671. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  3672. * src/RequestGroup.cc (downloadFinishedByFileLength)
  3673. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3674. Added the check to see whether ares_host_callback accepts timeouts
  3675. with c-ares; only c-ares 1.5.0 or newer accepts it.
  3676. * src/NameResolver.{h, cc}
  3677. * m4/libcares.m4
  3678. * configure.ac: Set C++ for language choice.
  3679. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3680. Fixed: compilation fails without c-ares/ares
  3681. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  3682. Generate http/ftp commands only when download is incomplete.
  3683. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  3684. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3685. Corrected typo. Examples are removed since they are available in man
  3686. page.
  3687. * src/version_usage.cc
  3688. Updated man page.
  3689. * doc/aria2c.1
  3690. * doc/aria2c.1.txt
  3691. * doc/makeman: Commented out sed command.
  3692. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3693. Throw DlAbortEx when a remote file is not found.
  3694. * src/HttpResponse.cc
  3695. * src/FtpNegotiationCommand.cc
  3696. * src/message.h
  3697. Overwrite an existing file if --allow-overwrite=true is given.
  3698. * src/RequestGroup.cc
  3699. Removed unused functions
  3700. * src/AbstractCommand.h
  3701. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3702. Removed 'extern' from 'extern typedef ...' in src/*.h
  3703. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3704. Updated usage
  3705. * src/version_usage.cc
  3706. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3707. Trim announce URL
  3708. * src/DefaultBtContext.cc
  3709. * test/ShaVisitorTest.cc
  3710. Trim argument s. Give trimed s to exception constructor.
  3711. * src/Util.cc (parseInt)(parseLLInt)
  3712. * test/UtilTest.cc
  3713. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3714. Set precision back to 1.
  3715. * src/ConsoleStatCalc.cc (calculateStat)
  3716. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3717. Replaced strtol with Util::parseInt
  3718. * src/ChunkedEncoding.cc
  3719. * src/HttpConnection.cc
  3720. * src/CookieBoxFactory.cc
  3721. * src/ParameterizedStringParser.cc
  3722. * src/Util.cc
  3723. * test/UtilTest.cc
  3724. * test/OptionHandlerTest.cc
  3725. * src/Request.cc
  3726. Throw exception when empty string is given. The message for exception
  3727. changed.
  3728. * src/Util.cc (parseInt)(parseLLInt)
  3729. * src/message.h
  3730. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3731. Set precision to 2 because share ratio is rounded into 1.0 if precision
  3732. set to 1.
  3733. * src/ConsoleStatCalc.cc (calculateStat)
  3734. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3735. Preallocate non-requested file which is adjacent forward to requested
  3736. file('requested' files means the files given in --select-file option)
  3737. if they share a same piece.
  3738. This fixes long pause in the file system which doesn't support sparse
  3739. files like FAT32 while downloading.
  3740. * src/MultiFileAllocationIterator.{h, cc}
  3741. * test/MultiFileAllocationIteratorTest.cc
  3742. * src/FileEntry.{h, cc}
  3743. Removed unused _option.
  3744. * src/MultiDiskAdaptor.h
  3745. * test/MultiDiskAdaptorTest.cc
  3746. * src/DefaultPieceStorage.cc
  3747. Set the default value of --seed-ratio to 1.0.
  3748. If 0.0 is given, then seeding continues regardless of share ratio.
  3749. * src/version_usage.cc
  3750. * src/option_processing.cc
  3751. * src/BtSetup.cc
  3752. * doc/aria2c.1.txt
  3753. * doc/aria2c.1
  3754. Fixed: Selective download is not working in BitTorrent
  3755. * src/RequestGroup.cc
  3756. Introduced Sequence class. Use this instead of Util::unfoldRange()
  3757. * src/PieceStorage.h
  3758. * test/MockPieceStorage.h
  3759. * src/UnknownLengthPieceStorage.h
  3760. * src/DefaultPieceStorage.{h, cc}
  3761. * src/Metalink2RequestGroup.cc
  3762. * src/RequestGroup.cc
  3763. * src/Sequence.h
  3764. * test/SequenceTest.cc
  3765. * src/IntSequence.h
  3766. * src/message.h
  3767. * src/Util.{h, cc}
  3768. * test/UtilTest.cc
  3769. Added new function 'parse' to catch exception thrown by subclass's
  3770. parseArg
  3771. * src/OptionHandler.h
  3772. * src/OptionParser.cc
  3773. * src/NameMatchOptionHandler.h
  3774. * src/OptionHandlerImpl.h
  3775. * test/OptionHandlerTest.cc
  3776. Added IntegerRangeOptionHandler. Used for --listen-port and
  3777. --select-file. Now --listen-port accepts range of port.
  3778. * src/OptionHandlerFactory.cc
  3779. * src/version_usage.cc
  3780. * src/OptionHandlerImpl.h
  3781. * src/option_processing.cc
  3782. * src/BtSetup.cc
  3783. * src/PeerListenCommand.{h, cc}
  3784. * doc/aria2c.1.txt
  3785. * doc/aria2c.1
  3786. Implemented operator< for Exception class to provide easy way to print
  3787. exception stack trace.
  3788. * src/Exception.{h, cc}
  3789. * src/main.cc
  3790. * src/option_processing.cc
  3791. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3792. * src/version_usage.cc
  3793. (showVersion): Reworked.
  3794. (showUsage): Added examples.
  3795. Removed Hint for total length and file name.
  3796. * src/Metalink2RequestGroup.cc
  3797. * src/RequestGroup.{h, cc}
  3798. * src/HttpResponseCommand.cc
  3799. * src/FtpNegotiationCommand.cc
  3800. Now --follow-torrent and --follow-metalink option work properly.
  3801. * src/RequestGroup.cc
  3802. Updated man page
  3803. * doc/aria2c.1.txt
  3804. * doc/aria2c.1
  3805. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3806. Removed.
  3807. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  3808. Use Segment::operator==()
  3809. * src/HttpConnection.cc
  3810. * src/Segment.h
  3811. Updated usage
  3812. * src/version_usage.cc
  3813. Added EINTR treatment.
  3814. * src/SocketCore.cc
  3815. * src/AbstractDiskWriter.cc
  3816. Rewritten.
  3817. * src/Util.cc (rangedFileCopy)
  3818. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3819. Fixed typo.
  3820. * src/version_usage.cc
  3821. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3822. Implemented. Now -c option works fine.
  3823. * src/DefaultPieceStorage.cc (markPiecesDone)
  3824. * test/DefaultPieceStorageTest.cc
  3825. Removed.
  3826. * src/SegmentMan.{h, cc}
  3827. (markAllPiecesDone)
  3828. (markPieceDone)
  3829. Synchronized po files with
  3830. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  3831. * src/fr.po
  3832. * src/ru.po
  3833. * src/de.po
  3834. * src/ja.po
  3835. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3836. Added ifdef and some modifications to compile without BitTorrent,
  3837. Metalink, MessageDigest
  3838. support.
  3839. * src/PieceHashCheckIntegrityEntry.cc
  3840. * src/MetalinkEntry.h
  3841. * src/version_usage.cc
  3842. * src/main.cc
  3843. * src/DownloadEngine.{h, cc}
  3844. * src/Metalink2RequestGroup.cc
  3845. * src/Peer.cc
  3846. * src/RequestGroup.cc
  3847. * src/MetalinkHelper.cc
  3848. * test/DefaultPieceStorageTest.cc
  3849. * test/MetalinkPostDownloadHandlerTest.cc
  3850. * test/Metalink2RequestGroupTest.cc
  3851. Hide TOTAL SPD when all downloads complete.
  3852. * src/ConsoleStatCalc.cc
  3853. Log target system information.
  3854. * src/main.cc
  3855. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Now --metalink-location accepts a comma-deliminated list of locations.
  3857. * src/MetalinkEntry.{h, cc}
  3858. * test/MetalinkEntryTest.cc
  3859. * src/version_usage.cc
  3860. * src/Metalink2RequestGroup.cc
  3861. * src/Xml2MetalinkProcessor.cc
  3862. * test/Xml2MetalinkProcessorTest.cc
  3863. * doc/aria2c.1.txt
  3864. * doc/aria2c.1
  3865. * src/Util.cc (toUpper)(toLower): Rewritten.
  3866. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3867. Added the ability to detect duplicate download entry which is about to
  3868. download the same file other RequestGroup is downloading.
  3869. * src/RequestGroup.cc
  3870. * src/HttpResponseCommand.cc
  3871. * src/FtpNegotiationCommand.cc
  3872. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3873. Recalculates download progress when loading a control file,
  3874. if the piece length of DownloadContext is different from the one saved
  3875. in the control file. Currently in-flight pieces are ignored.
  3876. * src/DefaultBtProgressInfoFile.cc
  3877. * test/DefaultBtProgressInfoFileTest.cc
  3878. * src/Util.{h, cc}
  3879. * test/UtilTest.cc
  3880. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3881. Do not rotate tiers in announce-list.
  3882. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  3883. AnnounceList::allTiersFailed() used instead to detect whether all
  3884. tiers are tried and failed.
  3885. * test/DefaultBtAnnounceTest.cc
  3886. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  3887. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  3888. * test/AnnounceListTest.cc
  3889. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  3890. clause. Catch RecoverableException instead of DlRetryEx instead.
  3891. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3892. Implemented checksum validation feature(1 checksum for each file)
  3893. The validation takes place after the download.
  3894. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  3895. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  3896. * src/CheckIntegrityCommand.cc: Changed log message.
  3897. * src/Metalink2RequestGroup.cc: Set checksum to
  3898. SingleFileDownloadContext.
  3899. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  3900. PieceHashCheckIntegrity class.
  3901. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  3902. PieceHashCheckIntegrity class.
  3903. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  3904. * src/IteratableValidator.h: New class.
  3905. * src/message.h
  3906. * src/CheckIntegrityEntry.{h, cc}
  3907. * src/IteratableChunkChecksumValidator.{h, cc}
  3908. * src/SingleFileDownloadContext.h
  3909. * src/DownloadCommand.cc
  3910. --allow-overwrite=true is no longer needed to check file integrity
  3911. before download in BitTorrent download.
  3912. * src/RequestGroup.cc (getInitialCommand)
  3913. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  3914. throws exception.
  3915. * src/RequestGroupMan.cc (getInitialCommands)
  3916. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3917. urlencode the given url inside Request::parseUrl(...)
  3918. * src/Request.{h, cc}
  3919. * src/Util.{h, cc}
  3920. * test/RequestTest.cc
  3921. Removed #!metalink3! notation support because it is deleted from
  3922. the metalink specification.
  3923. * src/Request.{h, cc}
  3924. * test/RequestTest.cc
  3925. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3926. Don't connect server before checking file integrity at startup, if
  3927. filesize and output file path are known.
  3928. * src/AbstractCommand.cc
  3929. * src/StreamFileAllocationEntry.cc
  3930. * src/Metalink2RequestGroup.cc
  3931. * src/RequestGroup.{h, cc}
  3932. * src/HttpResponseCommand.cc
  3933. * src/FtpNegotiationCommand.cc
  3934. Added DownloadFailureException. If it is thrown, RequestGroup should
  3935. halt.
  3936. * src/AbstractCommand.cc
  3937. * src/DownloadFailureException.h
  3938. * src/RequestGroup.cc
  3939. Catch RecoverableException, instead of DlAbortEx.
  3940. * src/RequestGroupMan.cc
  3941. * src/FillRequestGroupCommand.cc
  3942. * src/MetaFileUtil.cc
  3943. * src/IteratableChunkChecksumValidator.cc
  3944. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  3945. getGID())
  3946. * src/CheckIntegrityCommand.cc
  3947. * src/message.h
  3948. Print gid instead of idx.
  3949. * src/RequestGroupMan.cc
  3950. Removed exception throwers declaration.
  3951. * src/DirectDiskAdaptor.{h, cc}
  3952. * src/SocketCore.{h, cc}
  3953. * src/MultiDiskAdaptor.{h, cc}
  3954. * src/HttpConnection.{h, cc}
  3955. * src/HttpResponse.{h, cc}
  3956. * src/DiskAdaptor.{h, cc}
  3957. * src/CopyDiskAdaptor.{h, cc}
  3958. * src/MultiDiskAdaptor.{h, cc}
  3959. * src/HttpHeaderProcessor.{h, cc}
  3960. * src/AbstractSingleDiskAdaptor.{h, cc}
  3961. * src/Util.{h, cc}
  3962. * test/UtilTest.cc
  3963. * src/DefaultDiskWriter.{h, cc}
  3964. * src/FtpConnection.{h, cc}
  3965. * src/AbstractDiskWriter.{h, cc}
  3966. Removed duplicate code.
  3967. * src/StreamCheckIntegrityEntry.cc
  3968. Removed unnecessary include.
  3969. * src/DiskWriter.h
  3970. Included Exception.h
  3971. * src/option_processing.cc
  3972. Included 2 files and added doc
  3973. * src/TrackerWatcherCommand.cc
  3974. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  3975. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3976. Changed CheckIntegrityEntry interface so that it can define
  3977. the action when all the chunk checksums are valid.
  3978. * src/CheckIntegrityEntry.h
  3979. * src/StreamCheckIntegrityEntry.{h, cc}
  3980. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  3981. are valid, then aira2 goes to seeding mode. Sometimes it is better
  3982. to exit rather than doing seeding. So, it would be good to toggle this
  3983. behavior.
  3984. * src/CheckIntegrityCommand.cc
  3985. * src/AbstractCommand.cc
  3986. * src/RequestGroup.cc
  3987. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3988. Reflect the download length of in-flight pieces.
  3989. It makes the download length readout more precise.
  3990. * src/DefaultPieceStorage.{h, cc}
  3991. * test/DefaultPieceStorageTest.cc
  3992. * src/a2functional.h
  3993. * test/a2functionalTest.cc
  3994. Lower CPU load when --max-download-limit is used.
  3995. There is up and down in speed indicator when enabling
  3996. http-pipelining but a download goes well. I think the problem is that
  3997. because http-pipelining is enabled, DownloadCommand is created for
  3998. each segment and in its constructor, PeerStat::downloadStart() is
  3999. called. In PeerStat::downloadStart(), speed calculation object is
  4000. reseted, which makes download speed zero.
  4001. * src/DownloadCommand.cc
  4002. Rewritten using accumulate.
  4003. * src/RequestGroupMan.cc (calculateStat)
  4004. Code clearnup.
  4005. * src/FtpNegotiationCommand.cc
  4006. * src/HttpResponseCommand.cc
  4007. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4008. Fixed: Can not resume: aria2 reports download already finished.
  4009. * src/AbstractCommand.{h, cc}
  4010. * src/HttpResponseCommand.cc
  4011. * src/FtpNegotiateCommand.cc
  4012. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4013. Now a file is stored in the directory specified in .metalnk file
  4014. (file[@name]).
  4015. * src/Metalink2RequestGroup.cc
  4016. Create the directory structure when opening the file if it doesn't
  4017. exist.
  4018. * src/AbstractDiskWriter.cc
  4019. * src/Util.{h, cc}
  4020. * src/File.h
  4021. * test/UtilTest.cc
  4022. Removed file name comparison
  4023. * src/Metalink2RequestGroup.cc
  4024. * src/HttpResponseCommand.cc
  4025. Rewritten using Util::mkdirs()
  4026. * src/FileEntry.cc (setupDir)
  4027. * test/FileEntryTest.cc
  4028. Updated doc
  4029. * src/SingleFileDownloadContext.h
  4030. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4031. Now SleepCommand dispatches nextCommand when halt is requested.
  4032. It avoids a possible long wait after hitting CTRL-C.
  4033. * src/SleepCommand.{h, cc}
  4034. * src/RequestGroupAware.{h, cc}
  4035. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4036. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  4037. to open listen port, then remove the port number from the tracker
  4038. request.
  4039. * src/DefaultBtAnnounce.cc
  4040. * test/DefaultBtAnnounceTest.cc
  4041. * test/MockPieceStorage.h
  4042. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  4043. them more testable.
  4044. * src/DefaultBtAnnounce.{h, cc}
  4045. * src/DefaultBtContext.{h, cc}
  4046. * src/Util.{h, cc}
  4047. * test/DefaultBtAnnounceTest.cc
  4048. * test/DefaultBtContextTest.cc
  4049. * test/UtilTest.cc
  4050. Added 'B' to upload bytes readout.
  4051. * src/ConsoleStatCalc.cc
  4052. Now the listen port for BitTorrent download is opened when it is
  4053. needed.
  4054. * src/DownloadEngineFactory.cc
  4055. * src/BtSetup.{h, cc}
  4056. * src/PeerListenCommand.{h, cc}
  4057. Now an exception thrown while parsing tracker response is now logged.
  4058. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  4059. called, which means no retry is made in this case, assuming a tracker
  4060. has a problem.
  4061. * src/TrackerWatcherCommand.cc
  4062. Fixed: downloading a file whose length is unkown fails.
  4063. * src/DownloadCommand.cc
  4064. Simplified prepareForNextSegment()
  4065. * src/DownloadCommand.cc
  4066. Updated
  4067. * po/POTFILES.in
  4068. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4069. Re-implemented a file listing for Metalink, which was dropped while
  4070. http/ftp/torrent integration was being implemented.
  4071. * src/MetalinkHelper.{h, cc}: New class.
  4072. * test/MetalinkHelperTest.cc
  4073. * src/main.cc
  4074. * src/Metalink2RequestGroup.cc
  4075. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4076. Added the ability to display the detailed torrent file information.
  4077. Now -S option gives not only a file listing, but also total download
  4078. length, info hash, announce URI, piece length, the number of pieces,
  4079. and mode(single or multi-torrent).
  4080. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  4081. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  4082. KiB)
  4083. * test/UtilTest.cc
  4084. * src/main.cc
  4085. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4086. Added ftp://USER:PASSWD@Servername automatic parsing.
  4087. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  4088. _password. Recognize username and password in URI.
  4089. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  4090. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  4091. * src/RequestFactory.{h, cc}: Removed.
  4092. * src/AuthConfigFactory.{h, cc}: New class.
  4093. * src/FtpConnection.cc: Use AuthConfigFactory.
  4094. * src/HttpRequest.cc: Use AuthConfigFactory.
  4095. * test/HttpRequestTest.cc: Updated.
  4096. * test/RequestTest.cc: Updated.
  4097. * test/AuthConfigFactoryTest.cc: New class.
  4098. * test/RequestFactoryTest.cc: Removed.
  4099. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4100. Use RequestGroup::allDownloadFinished() to decide whether the control
  4101. file should be removed or saved.
  4102. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  4103. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  4104. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4105. Use File::renameTo()
  4106. * src/DefaultBtProgressInfoFile.cc
  4107. Added --no-file-allocation-limit command-line option.
  4108. * src/version_usage.cc
  4109. * src/option_processing.cc
  4110. * src/OptionHandlerFactory.cc
  4111. * src/RequestGroup.{h, cc}
  4112. * src/BtCheckIntegrityEntry.cc
  4113. * src/StreamCheckIntegrityEntry.cc
  4114. * src/prefs.h
  4115. * doc/aria2c.1.txt
  4116. * doc/aria2c.1
  4117. Now prealloc is the default value for --file-allocation option.
  4118. * src/version_usage.cc
  4119. * src/option_processing.cc
  4120. * doc/aria2c.1.txt
  4121. * doc/aria2c.1
  4122. Don't URL-encode user-agent.
  4123. * src/HttpRequest.cc
  4124. Updated translations
  4125. * po/LINGUAS: Added nl for Dutch translation.
  4126. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  4127. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  4128. * po/POTFILES.in: Updated.
  4129. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4130. Added the ability to recognize url-list in a torrent file.
  4131. The retrieved URLs are attached to the corresponding FileEntry.
  4132. * src/DefaultBtContext.{h, cc}
  4133. * src/FileEntry.{h, cc}
  4134. * test/DefaultBtContextTest.cc
  4135. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4136. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  4137. after the download finishes.
  4138. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4139. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  4140. the data smaller than block length.
  4141. A block length can be specified by constructor's argument.
  4142. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  4143. Get a missing piece in the range of given FileEntry. This function is
  4144. not used in the program yet.
  4145. * src/Util.h: Added some macros.
  4146. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4147. Added HTTP/1.1 keep alive and pipelining support.
  4148. See --enable-http-keep-alive and --enable-http-pipelining option.
  4149. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  4150. Segment.
  4151. * src/HttpDownloadCommand.{h, cc}
  4152. * src/OptionHandlerFactory.cc
  4153. * src/HttpConnection.{h, cc}
  4154. * src/version_usage.cc
  4155. * src/HttpInitiateConnectionCommand.cc
  4156. * src/FtpInitiateConnectionCommand.cc
  4157. * src/Segment.h
  4158. * src/HttpRequestCommand.{h, cc}
  4159. * src/option_processing.cc
  4160. * src/prefs.h
  4161. * src/HttpResponseCommand.cc
  4162. * src/SegmentMan.{h, cc}
  4163. * src/FtpNegotiateCommand.cc
  4164. * src/HttpProxyResponseCommand.cc
  4165. * src/Request.cc
  4166. * src/HttpRequest.cc
  4167. * src/DownloadCommand.cc
  4168. * test/HttpRequestTest.cc
  4169. * test/RequestTest.cc
  4170. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4171. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  4172. finished.
  4173. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4174. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  4175. catching it inside the method.
  4176. When no file entry is found in a metalink without querying user
  4177. preferences, throw the exception with the error message that suggests
  4178. metalink file is probably broken.
  4179. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  4180. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4181. Fixed the bug that prevents remote Metalink/Torrent file from begin
  4182. processed.
  4183. * src/RequestGroupMan.cc (removeStoppedGroup)
  4184. Added debug message.
  4185. * src/BtPostDownloadHandler.cc
  4186. * src/MetalinkPostDownloadHandler.cc
  4187. * src/PostDownloadHandler.{h, cc}
  4188. * src/RequestGroup.cc
  4189. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4190. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  4191. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  4193. stops and there are any unfinished or in-progress downloads.
  4194. Added the legend of "stat".
  4195. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4196. Throw exception when chunck checksum verification fails.
  4197. * src/DownloadCommand.cc (validatePieceHash): New function.
  4198. * src/PiecedSegment.{h, cc} (clear): New function.
  4199. * src/GrowSegment.{h, cc} (clear): New function.
  4200. * src/Segment.h (clear): New function.
  4201. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  4202. * test/SegmentTest.cc
  4203. * test/GrowSegmentTest.cc
  4204. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4205. Do not send referer when redirected.
  4206. * src/Request.cc (redirectUrl)
  4207. * test/RequestTest.cc
  4208. * test/HttpRequestTest.cc
  4209. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4210. Implemented BitTorrent/http/ftp integrated download.
  4211. I've rewritten lots of files and now some headers have forward
  4212. class declarations to reduce compile time.
  4213. The implementation is extremely alpha stage, I recommend to use this
  4214. for testing purpose only.
  4215. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4216. Fixed the compilation error on 64bit platform.
  4217. * test/HttpHeaderProcessorTest.cc
  4218. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4219. Merged Ross's patch that fixes compilation problem in MinGW
  4220. * test/DefaultBtProgressInfoFileTest.cc
  4221. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4222. Updated fr.po by sebone
  4223. * po/fr.po
  4224. Updated man page.
  4225. * doc/aria2c.1.txt
  4226. * Release 0.11.3
  4227. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4228. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  4229. failure in Metalink.
  4230. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4231. Automatically save *.aria2 control file of http/ftp download in every
  4232. 60 seconds.
  4233. * src/AutoSaveCommand.{h, cc}: New class.
  4234. * src/TimeBasedCommand.{h, cc}: New class.
  4235. * src/DownloadEngineFactory.cc (newConsoleEngine)
  4236. Disable parameterized URI support by default. Added -P option to
  4237. enable the feature.
  4238. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  4239. * src/OptionHandlerFactory.cc
  4240. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  4241. Updated Japanese translation.
  4242. * po/ja.po
  4243. Updated man page.
  4244. * doc/aria2c.1.txt
  4245. * Release 0.11.3-rc
  4246. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4247. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  4248. it is successful, then renamed to *.aria2.
  4249. This prevents *.aria2 file from being truncated or corrupted when
  4250. file system becomes out of space.
  4251. * src/DefaultBtProgressInfoFile.cc (save)
  4252. * src/SegmentMan.cc (save)
  4253. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  4254. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4255. Reduced the fragmentation of bitfield in http/ftp download.
  4256. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  4257. * test/BitfieldManTest.cc
  4258. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4259. Added the ability to disable segmented download in .metalink.
  4260. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  4261. 'url' tag.
  4262. * src/MetalinkEntry.{h, cc}
  4263. * src/RequestResource.{h, cc}
  4264. * src/MetalinkRequestInfo.cc
  4265. * src/Xml2MetalinkProcessor.cc
  4266. * test/Xml2MetalinkProcessorTest.cc
  4267. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4268. Added parameterized URI support.
  4269. * src/main.cc: -Z option added.
  4270. * src/OptionHandlerFactory.cc
  4271. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  4272. * src/PStringDatum.h: New class.
  4273. * src/PStringSegment.{h,cc}: New class.
  4274. * src/PStringNumLoop.h: New class.
  4275. * src/PStringSelect.h: New class.
  4276. * src/NumberDecorator.h: New class.
  4277. * src/FixedWidthNumberDecorator.h: New class.
  4278. * src/AlphaNumberDecorator.h: New class.
  4279. * src/PStringVisitor.h: New class.
  4280. * src/PStringBuildVisitor.{h,cc}: New class.
  4281. * src/ParameterizedStringParser.{h,cc}: New class.
  4282. * src/Util.{h,cc}
  4283. (isNumber): New function.
  4284. (isLowercase): New function.
  4285. (isUppercase): New function.
  4286. (alphaToNum): New function.
  4287. * test/ParameterizedStringParserTest.cc: New class.
  4288. * test/AlphaNumberDecoratorTest.cc: New class.
  4289. * test/PStringBuildVisitorTest.cc: New class.
  4290. * test/UtilTest.cc
  4291. (testIsNumber): New function.
  4292. (testIsLowercase): New function.
  4293. (testIsUppercase): New function.
  4294. (testAlphaToNum): New function.
  4295. Added '\n' after the error message
  4296. * src/RequestInfo.h (printDownloadAbortMessage)
  4297. Added auto file renaming feature in http(s)/ftp download.
  4298. * src/main.cc: Added --auto-file-renaming command-line option.
  4299. * src/OptionHandlerFactory.cc
  4300. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  4301. * src/RequestGroup.{h, cc}
  4302. (shouldCancelDownloadForSafety): Rewritten
  4303. (tryAutoFileRenaming): New function.
  4304. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  4305. * src/HttpResponseCommand.cc
  4306. (executeInternal): Removed the call to RequestGroupMan::
  4307. isSameFileBeingDownloaded()
  4308. * src/FtpNegotiateCommand.cc
  4309. (recvSize): Removed the call to RequestGroupMan::
  4310. isSameFileBeingDownloaded()
  4311. * test/RequestGroupTest.cc: New class.
  4312. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4313. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  4314. IO.
  4315. * src/DefaultBtProgressInfoFile.cc
  4316. * src/MetaFileUtil.cc
  4317. * src/SimpleLogger.cc
  4318. * src/SegmentMan.cc
  4319. * src/Util.cc
  4320. * src/Platform.cc
  4321. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4322. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  4323. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. Avoid sparse files if possible, because VFAT32 doesn't support it.
  4325. * src/DefaultDiskWriter.cc (initAndOpenFile)
  4326. Fixed the bug that prevents file allocation is not done when
  4327. dowloading multi-torrent file.
  4328. * src/AbstractDiskWriter.cc (openFile)
  4329. Increase the maximum number of -j option from 15 to 45.
  4330. * src/OptionHandlerFactory.cc (createOptionHandlers)
  4331. Added fr.po, thanks to Charles Landemaine.
  4332. * po/fr.po
  4333. * po/LINGUAS
  4334. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  4335. gcc 3.4.4 support:
  4336. * src/DefaultBtContext.cc: int32_t -> int
  4337. * src/main.cc: int -> int32_t, int32_t -> int
  4338. * src/messageDigest.h: uint32_t -> unsigned int
  4339. * src/NameResolver.h: int32_t -> int
  4340. * src/PeerConnection.cc: int -> int32_t
  4341. * src/SpeedCalc.cc: int32_t -> int
  4342. * src/TrackerUpdateCommand.h: int -> int32_t
  4343. * src/Util.cc: int32_t -> int
  4344. * src/Util.h: int32_t -> int
  4345. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  4346. * test/AnnounceListTest.cc: int -> int32_t
  4347. * test/ChunkedEncodingTest.cc: int -> int32_t
  4348. * test/DataTest.cc: int -> int32_t
  4349. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  4350. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  4351. * test/DefaultPieceStorageTest.cc: int -> int32_t
  4352. * test/FeatureConfigTest.cc: int -> int32_t
  4353. * test/MetalinkEntryTest.cc: int -> int32_t
  4354. * test/MockBtRequestFactory.h: int -> int32_t
  4355. * test/MockPieceStorage.h: int -> int32_t
  4356. * test/OptionTest.cc: int -> int32_t
  4357. * test/RequestTest.cc: int -> int32_t
  4358. * test/SegmentManTest.cc: int -> int32_t
  4359. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  4360. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  4361. Move sleep functions to Util class:
  4362. * src/Util.cc
  4363. (sleep): New function.
  4364. (usleep): New function.
  4365. * src/DownloadCommand.cc: sleep -> Util::sleep
  4366. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  4367. MinGW build enhancements. The following files are added:
  4368. * src/timegm.{c,h}
  4369. Changes to support the above new files:
  4370. * configure.ac
  4371. * src/Makefile.am
  4372. * src/a2time.h
  4373. * src/Util.cc:
  4374. * src/strptime.c: Added support for %Z option.
  4375. Fixed MinGW non-blocking bug.
  4376. * src/SocketCore.cc
  4377. * src/HttpRequestCommand.cc
  4378. Miscellenous build fixes/enhancements.
  4379. * configure.ac: Added summary report.
  4380. * src/Platform.h: Tweaked #include's.
  4381. * src/a2netcompat.h: Tweaked #include's.
  4382. * src/strptime.h: Tweaked #include's.
  4383. * src/gai_strerror.c: Tweaked #include's.
  4384. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  4385. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  4386. * src/gettimeofday.h: Added HAVE_CONFIG_H
  4387. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4388. Increased the initial connection size in BitTorrent download to 40.
  4389. * src/BtRuntime.h
  4390. Added the usage message of --peer-id-prefix option.
  4391. * src/main.cc
  4392. * Release 0.11.2
  4393. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4394. MessageDigestHelper is introduced in order to simplify the use
  4395. of message digest. Removed repeated code.
  4396. The message digest algorithm is now specified by string, like "sha1",
  4397. "md5".
  4398. * src/messageDigest.{h, cc}
  4399. * src/MessageDigestHelper.{h, cc}: New class.
  4400. * src/DefaultPieceStorage.cc
  4401. * src/DefaultBtContext.{h, cc}
  4402. (computeFastSet): New function.
  4403. (setInfoHash): Added for unit testing.
  4404. (setNumPieces): Added for unit testing.
  4405. * src/DefaultBtInteractive.cc
  4406. * src/BtPieceMessage.cc
  4407. * src/Peer.cc
  4408. * src/Checksum.h
  4409. * src/message.h
  4410. * src/IteratableChecksumValidator.h
  4411. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  4412. inside it.
  4413. * src/SegmentMan.{h, cc}
  4414. (checkIntegrity): Removed.
  4415. * src/IteratableChunkChecksumValidator.{h, cc}
  4416. * src/Util.h
  4417. (sha1Sum): Removed.
  4418. (simpleMessageDigest): Removed.
  4419. (fileChecksum): Removed.
  4420. (computeFastSet): Removed.
  4421. * src/ShaVisitor.cc
  4422. * src/ChunkChecksum.h
  4423. * src/DownloadCommand.cc
  4424. Removed messageDigest virtual functions.
  4425. * src/MultiDiskAdaptor.{h, cc}
  4426. * src/DiskAdaptor.h
  4427. * src/ByteArrayDiskWriter.h
  4428. * src/DiskWriter.h
  4429. * src/DiskAdaptorWriter.h
  4430. * src/AbstractSingleDiskAdaptor.{h, cc}
  4431. * src/AbstractDiskWriter.{h, cc}
  4432. Fixed comilation error when message digest is disabled.
  4433. * src/MetalinkEntry.{h, cc}
  4434. * src/MetalinkRequestInfo.cc
  4435. Removed srandom and random.
  4436. * src/SimpleRandomizer.h
  4437. Added size() virtual function to DiskAdaptor
  4438. * src/MultiDiskAdaptor.h
  4439. Fixed the bug that causes that files are not opened correctly in
  4440. multi-file torrent.
  4441. * src/TorrentRequestInfo.cc
  4442. * src/MultiDiskAdaptor.cc
  4443. Added SHA256 support
  4444. * src/messageDigest.cc
  4445. * src/Xml2MetalinkProcessor.cc
  4446. Show supported message digest algorithms
  4447. * src/main.cc
  4448. Updated contact info.
  4449. * src/main.cc
  4450. Applied Ross's patch
  4451. * src/a2netcompat.h
  4452. * src/main.cc
  4453. Fixed the bug that prevents a remote metalink from not being processed
  4454. even if '-o foo.metalink' is specified.
  4455. * src/MetalinkRequestInfo.cc
  4456. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4457. Merged Dan's patch:
  4458. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  4459. Use va_copy to avoid core dump on amd64:
  4460. * src/SimpleLogger.cc
  4461. Updated contact info.
  4462. * src/main.cc
  4463. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  4464. digest is not available.
  4465. * src/MetalinkEntry.h
  4466. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4467. Make a2netcompat.h include a2io.h to fix compilation error:
  4468. * src/a2netcompat.h
  4469. * src/SocketCore.cc: Removed include of a2io.h
  4470. * src/Util.cc: Removed include of a2io.h
  4471. Gather time related functions to a2time.h:
  4472. * src/a2time.h: New file.
  4473. * src/DefaultPeerStorage.cc
  4474. * src/SimpleLogger.cc
  4475. * src/Util.{h, cc}
  4476. * src/SimpleRandomizer.h
  4477. * src/TimeA2.{h,cc}
  4478. * src/DownloadCommand.cc
  4479. * src/main.cc
  4480. Removed #ifdef __MINGW32__ since gai_strerror is included in
  4481. a2netcompat.h:
  4482. * src/NameResolver.cc
  4483. Fixed compilation error without openssl:
  4484. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  4485. Added default block to suppress compiler warnings:
  4486. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  4487. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  4488. MinGW build enhancements. The following files are added:
  4489. * src/gai_strerror.{c,h}
  4490. * src/gettimeofday.{c,h}
  4491. Changes to support the above new files:
  4492. * configure.ac
  4493. * src/Makefile.am
  4494. * src/a2netcompat.h
  4495. * src/TimeA2.cc
  4496. * src/DefaultPeerStorage.cc
  4497. * src/NameResolver.cc: removed mingw_strerror() function.
  4498. * src/SocketCore.cc: removed mingw_strerror() function.
  4499. Miscellaneous MinGW build fixes.
  4500. * src/a2io.h: Use _lseeki64() instead of lseek()
  4501. * src/common.h
  4502. * src/DefaultFileAllocator.cc
  4503. * src/GlowFileAllocator.cc
  4504. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  4505. * src/NameResolver.cc
  4506. (callback): Changed int32_t to int.
  4507. (resolve): Changed int32_t to int.
  4508. * src/Platform.cc
  4509. * src/Platform.h
  4510. * test/MultiDiskWriterTest.cc
  4511. * test/PeerMessageUtilTest.cc
  4512. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  4513. Other enhancements and fixes.
  4514. * src/HttpRequestCommand.cc
  4515. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  4516. * src/SocketCore.cc:
  4517. (error): New function to abstract errno/WSAGetLastError().
  4518. (errorMsg): New function to abstract errno/WSAGetLastError().
  4519. (initiateSecureConnection): Added more detailed error reporting.
  4520. * src/SocketCore.h: Added private variable blocking, to allow
  4521. proper handling of OpenSSL psuedo-errors.
  4522. * src/message.h
  4523. (EX_SSL_INIT_FAILURE)
  4524. (EX_SSL_IO_ERROR)
  4525. (EX_SSL_PROTOCOL_ERROR)
  4526. (EX_SSL_UNKNOWN_ERROR)
  4527. (EX_SSL_CONNECT_ERROR)
  4528. (EX_SOCKET_BLOCKING)
  4529. (EX_SOCKET_NONBLOCKING)
  4530. (EX_SOCKET_UNKNOWN_ERROR)
  4531. * src/Util.cc
  4532. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  4533. reserved name.
  4534. (httpGMT): Fixed typo.
  4535. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4536. Merged Ross's win32 patch(manually)
  4537. In the course of merging, following files are added.
  4538. * src/strptime.{h,c}
  4539. * src/libgen.{h,c}
  4540. * src/inet_aton.{h,c}
  4541. * src/Platform.{h,cc}
  4542. * src/localtime_r.{h,c}
  4543. * src/getaddrinfo.{h,c}
  4544. I've gethered network related things, and put them to following file:
  4545. * src/a2netcompat.h
  4546. Also io related things are put to following file:
  4547. * src/a2io.h
  4548. Changed %lld to %s because mingw32 doesn't recognize %lld.
  4549. * src/message.h
  4550. (MSG_ALLOCATION_COMPLETED)
  4551. (EX_TOO_LARGE_FILE)
  4552. (EX_SIZE_MISMATCH)
  4553. (EX_FILE_OFFSET_OUT_OF_RANGE)
  4554. (EX_INVALID_CHUNK_CHECKSUM)
  4555. (EX_INVALID_RANGE_HEADER)
  4556. * src/FileAllocationCommand.cc
  4557. * src/HttpResponse.cc
  4558. * src/RequestGroup.cc
  4559. * src/MultiDiskAdaptor.cc
  4560. * src/OptionHandlerImpl.h
  4561. * src/HttpResponseCommand.cc
  4562. * src/FtpNegotiateCommand.cc
  4563. * src/IteratableChecksumValidator.cc
  4564. * src/SegmentMan.cc
  4565. * src/ChunkChecksumValidator.cc
  4566. Added Randomizer::getRandomNumber(long int)
  4567. * src/Randomizer.h (getRandomNumber)
  4568. * src/SimpleRandomizer.h (getRandomNumber)
  4569. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  4570. * src/Util.cc (randomAlpha): Use this new function.
  4571. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4572. Converted int's to in32_t. long long int's are also converted to
  4573. int64_t
  4574. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4575. Fixed the bug that prevents cookies from being sent to the server
  4576. if the domain of cookie is FQDN and starts with ".".
  4577. * src/Cookie.cc (match)
  4578. To add the ability to change peer id.
  4579. * src/DefaultBtContext.h
  4580. (_peerIdPrefix): New variable
  4581. (setPeerIdPrefix): New function.
  4582. * src/torrentRequestInfo.cc
  4583. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  4584. DefaultBtContext.
  4585. * src/main.cc (main): Added peer-id-prefix command-line option.
  4586. The usage message is not added yet.
  4587. * src/DefaultBtContext.cc
  4588. (generatePeerId): Use _peerIdPrefix.
  4589. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  4590. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4591. Fixed the bug that prevents filename in content-disposition from
  4592. being retrieved when filename is not quoted.
  4593. * src/Util.cc (getContentDispositionFilename)
  4594. Fixed the bug that causes infinate loop and memory leak when file open
  4595. operation failed.
  4596. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4597. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4598. Fixed the bug that causes segfault when all URIs specified are
  4599. unsupported.
  4600. * src/RequestGroupMan.cc (getInitialCommands)
  4601. Check if RequestGroup::createNextCommand() returns empty list of
  4602. commands.
  4603. * src/RequestGroup.cc (createNextCommand)
  4604. Change log level from info to error so that users can notice that
  4605. an error occurred.
  4606. Fixed the bug that causes segfault when a zero-sized file is
  4607. downloaded.
  4608. * src/BitfieldMan.cc (isAllBitSet)
  4609. Return true if bitfieldLength is 0.
  4610. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4611. * src/main.cc
  4612. (showUsage): Added 3 usage examples for metalink download.
  4613. Replace MetalinkChunkChecksum with ChunkChecksum.
  4614. * src/MetalinkChunkChecksum.h: Removed.
  4615. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  4616. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  4617. * src/Xml2MetalinkProcessor.cc
  4618. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  4619. * src/MetalinkRequestInfo.cc (execute)
  4620. * Release 0.11.1
  4621. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4622. Reads URIs from stdin when "-i -" is specified.
  4623. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  4624. * src/UriListParser.h, src/UriListParser.cc: New class.
  4625. * src/StreamUriListParser.h: New class.
  4626. * src/FileUriListParser.h: New class.
  4627. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  4628. instead of UriFileListParser.
  4629. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Made console readout more readable.
  4631. * src/ConsoleDownloadEngine.cc (sendStatistics)
  4632. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4633. Fix the bug that causes -s option not to work.
  4634. * src/main.cc (main)
  4635. * src/a2algo.h: New file.
  4636. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4637. Create directory structure specified in metalink file.
  4638. * src/RequestGroup.h, src/RequestGroup.cc
  4639. (initAndOpenFile): Create a directory to store files if it does not
  4640. exist.
  4641. (getDir): New function.
  4642. Added ETA and download speed for an individual file to readout.
  4643. * src/ConsoleDownloadEngine.cc (sendStatistics)
  4644. * src/RequestGroup.h
  4645. (calculateDownloadSpeed): New function.
  4646. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4647. Made -S option work with metalink file and provided selective download
  4648. to metalink.
  4649. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  4650. (filename): Removed.
  4651. (file): New variable.
  4652. (size): Removed.
  4653. (operator=): Updated.
  4654. (getPath): New function.
  4655. (getLength): New function.
  4656. (toFileEntry): New function.
  4657. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  4658. (execute): Use toStream.
  4659. (showFileEntry): Removed.
  4660. * src/MetalinkRequestInfo.h
  4661. (targetFiles): New variable.
  4662. (setTargetFiles): New variable.
  4663. * src/MetalinkRequestInfo.cc
  4664. (execute): Added the ability to print file information included in
  4665. a metalink file.
  4666. Added selective download mode to metalink.
  4667. * src/main.cc
  4668. (showUsage): Updated to denote that -S and --select-file options are
  4669. applicable to metalink.
  4670. * src/FileEntry.h
  4671. (operator=): New function.
  4672. (getBasename): New function.
  4673. (getDirname): New function.
  4674. * src/Util.h, src/Util.cc
  4675. (toStream): New function.
  4676. * src/Xml2MetalinkProcessor.cc: Updated.
  4677. Made aria2 work with metalink with directory structure.
  4678. * src/File.h, src/File.cc
  4679. (getBasename): New function.
  4680. (getDirname): New function.
  4681. * src/RequestGroup.h, src/RequestGroup.cc
  4682. (_topDir): New variable.
  4683. (setTopDir): New function.
  4684. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  4685. Rewrote HTTP header parsing with stringstream.
  4686. * src/HttpConnection.h, src/HttpConnection.cc
  4687. (HttpRequestEntry): New class.
  4688. (headerBuf): Removed.
  4689. (headerBufLength): Removed.
  4690. (outstandingHttpRequests): Now its element type is
  4691. HttpRequestEntryHandle.
  4692. (findEndOfHeader): Removed.
  4693. (receiveResponse): Rewritten.
  4694. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  4695. Updated doc for -j option to notice that it should be used with -i
  4696. option.
  4697. * src/main.cc (showUsage)
  4698. Removed unused classes.
  4699. * src/RequestInfo.h
  4700. (FileInfo): Removed.
  4701. (checksum): Removed.
  4702. (fileInfo): Removed.
  4703. (setChecksum): Removed.
  4704. (getChecksum): Removed.
  4705. (getFileInfo): Removed.
  4706. Use ISO units.
  4707. * src/ConsoleDownloadEngine.cc
  4708. * src/TorrentConsoleDownloadEngine.cc
  4709. * src/Util.cc (abbrevSize)
  4710. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4711. Added the default listening ports to the help message.
  4712. * src/main.cc (showUsage)
  4713. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Reduce the number of calls to gettimeofday to lower CPU load.
  4715. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  4716. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  4717. * src/Peer.h (calculateUploadSpeed): New function.
  4718. (calculateDownloadSpeed): New function.
  4719. * src/DefaultPeerStorage.cc
  4720. (CalculateStat): Added _now variable.
  4721. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  4722. and Peer::calculateUploadSpeed(const struct timeval&)
  4723. Drop connection if no request or piece message is exchanged in
  4724. a certain interval.
  4725. * src/DefaultBtInteractive.h
  4726. (btRuntime): New variable.
  4727. (inactiveCheckPoint): New variable.
  4728. (checkActiveInteraction): New function.
  4729. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  4730. request or piece message is received.
  4731. (checkActiveInteraction): New function.
  4732. (doInteractionProcessing): Call checkActiveInteraction.
  4733. Fixed the bug that causes remote Metalink and Torrent files are not
  4734. processed.
  4735. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  4736. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4737. Changed format of log file.
  4738. * src/SimpleLogger.cc
  4739. * Release 0.11.0
  4740. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4741. * src/AbstractCommand.cc
  4742. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  4743. MSG_MAX_TRY from error to info.
  4744. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  4745. * src/message.h
  4746. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  4747. (MSG_DOWNLOAD_ABORTED): Added %s.
  4748. (MSG_RESTARTING_DOWNLOAD): Added %s.
  4749. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  4750. * src/PeerAbstractCommand.cc
  4751. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  4752. * src/Request.h
  4753. (cookieBox): Made ShardHandle.
  4754. * src/RequestGroup.h, src/RequestGroup.cc
  4755. (createNextCommandWithAdj): New function.
  4756. * src/FileAllocationCommand.cc
  4757. (executeInternal): Use createNextCommandWithAdj().
  4758. * src/CheckIntegrityCommand.cc
  4759. (executeInternal): Use createNextCommandWithAdj().
  4760. Added --load-cookies command-option.
  4761. * src/OptionHandlerFactory.cc
  4762. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  4763. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  4764. Now aria2 can handle cookie's expiration date.
  4765. * src/Cookie.h (expires): Changed its type to time_t.
  4766. * src/main.cc: Added --load-cookies command-line option.
  4767. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  4768. * src/Util.h, src/Util.cc (httpGMT): New function.
  4769. * src/Request.cc (Request): Initialize cookieBox using
  4770. CookieBoxFactory.
  4771. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  4772. * src/CookieParser.h, src/CookieParser.cc: New class.
  4773. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  4774. * src/HttpResponseCommand.cc
  4775. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  4776. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  4777. download.
  4778. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4779. Added -j command-line option.
  4780. * src/OptionHandlerFactory.cc (createOptionHandlers)
  4781. * src/main.cc
  4782. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  4783. Rewritten using stringstream.
  4784. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  4785. Rewritten using stringstream.
  4786. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4787. Make download size shown in MB, KB.
  4788. * src/ConsoleDownloadEngine.h (sendStatistics)
  4789. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  4790. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4791. Accept incoming connections if download rate is low.
  4792. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  4793. (_lowestSpeedLimit): New variable.
  4794. (setLowestSpeedLimit): New function.
  4795. (execute): Accept incoming connections if download rate is low.
  4796. MAX_PEERS is ignored in this case.
  4797. Disable PREF_OUT in multiple concurrent download:
  4798. * src/RequestGroup.h, src/RequestGroup.cc
  4799. (setUserDefinedFilename): New function.
  4800. * src/DownloadEngineFactory.cc
  4801. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  4802. concurrent download.
  4803. * src/DefaultSegmentManFactory.cc
  4804. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  4805. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4806. RequestGroup::getNextCommand() was renamed to createNextCommand().
  4807. Added its overloaded method.
  4808. * src/RequestGroup.h
  4809. (_numConcurrentCommand): New variable.
  4810. (setNumConcurrentCommand): New function.
  4811. * src/RequestGroup.cc
  4812. Abort download if same file is being downloaded concurrently.
  4813. * src/RequestGroup.h, src/RequestGroupMan.cc
  4814. (isSameFileBeingDownloaded): New function.
  4815. * src/HttpResponseCommand.cc (executeInternal)
  4816. * src/FtpNegotiateCommand.cc (recvSize)
  4817. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  4818. * main.cc: Added help message for -i option.
  4819. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4820. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  4821. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  4822. * src/MetalinkEntry.h
  4823. (checksum): Changed to ChecksumHandle
  4824. * src/MetalinkRequestInfo.cc
  4825. (checksum): Changed to ChecksumHandle
  4826. * src/File.cc
  4827. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  4828. * src/common.h
  4829. (DIR_OPEN_MODE): New definition
  4830. * src/RequestGroup.cc
  4831. (prepareForNextAction): Added an argument.
  4832. * src/message.h
  4833. (MSG_GOOD_CHECKSUM): New definition
  4834. (MSG_BAD_CHECKSUM): New definition
  4835. * src/HttpResponseCommand.cc
  4836. (handleDefaultEncoding): Continue download sequence in new
  4837. non-segmented download.
  4838. * src/FileAllocationEntry.h
  4839. (_nextDownloadCommand): New variable.
  4840. * src/DownloadCommand.cc
  4841. (prepareForNextSegment): Create ChecksumCommand if checksum is
  4842. available.
  4843. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  4844. * src/IteratableChecksumValidator.h,
  4845. src/IteratableChecksumValidator.cc: New class.
  4846. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  4847. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4848. Change file mode to 666:
  4849. * src/common.h (OPEN_MODE): New definition.
  4850. * src/File.cc
  4851. * src/Util.cc
  4852. * src/Directry.cc
  4853. * src/AbstractDiskWriter.cc
  4854. Change the level of log message "download aborted" to debug:
  4855. * src/PeerAbstractCommand.cc (execute)
  4856. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  4857. * src/TrackerWatcherCommand.cc
  4858. (createCommand): Sleep some seconds after request failed.
  4859. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  4860. then abort tracker request.
  4861. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4862. * Added the simultaneous download feature.
  4863. * src/main.cc: Print "Exception caught: " when exception is caught.
  4864. Use CUIDCounter instead of BtRuntime::getNewCuid():
  4865. * src/ActivePeerConnectionCommand.cc
  4866. * src/PeerInteractionCommand.cc
  4867. * src/BtRuntime.h
  4868. (cuidCounter): Removed.
  4869. (getNewCuid): Removed.
  4870. * src/DownloadEngineFactory.cc
  4871. * src/PeerListenCommand.cc
  4872. * src/TrackerUpdateCommand.cc
  4873. * src/PeerInitiateConnectionCommand.cc
  4874. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4875. * src/PeerAbstractCommand.cc
  4876. (onAbort): Call PeerStorage::returnPeer()
  4877. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  4878. (incomingPeers): New variable.
  4879. (addIncomingPeer): New function.
  4880. (returnPeer): New function.
  4881. (onErasingPeer): New function.
  4882. (addPeer): push_back -> push_front
  4883. (getActivePeers): Rewritten.
  4884. (calculateStat): Rewritten.
  4885. * src/PeerStorage.h
  4886. (TransferStat::copy): New function.
  4887. (TransferStat::TransferStat): New function.
  4888. (TransferStat::operator=): New function.
  4889. (addIncomingPeer): New function.
  4890. (returnPeer): New function.
  4891. * src/PeerListenCommand.cc
  4892. (execute): Use PeerStorage::addIncomingPeer() instead of
  4893. Peer::addPeer().
  4894. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4895. Connect to a peer actively when download speed is lower than specified
  4896. speed in torrent download:
  4897. * src/ActivePeerConnectionCommand.h: New class.
  4898. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4899. * src/HttpRequest.cc (createRequest): url-encode user-agent
  4900. * src/main.cc: Fixed the bug that prevents download if .netrc
  4901. doesn't exist.
  4902. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4903. To cache resolved hostname:
  4904. * src/AbstractCommand.h, src/AbstractCommand.cc
  4905. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  4906. Added dns cache.
  4907. * src/FtpInitiateConnectionCommand.cc
  4908. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  4909. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  4910. NameResolver working without ares.
  4911. * src/TorrentRequestInfo.cc
  4912. (execute): Don't cache dns in torrent download.
  4913. * src/HttpInitiateConnectionCommand.cc
  4914. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  4915. * src/DNSCache.h: New class.
  4916. * src/UrlRequestInfo.cc
  4917. (execute): Use dns cache.
  4918. In http request, suppress port number in http request header if port
  4919. is 80 or 443:
  4920. * src/HttpRequest.cc (getHostText): Suppress port number in http
  4921. request header if port is 80 or 443.
  4922. (createProxyRequest): Allways send port number.
  4923. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4924. To add the command-line option which disables netrc support:
  4925. * src/OptionHandlerFactory.cc
  4926. (createOptionHandlers): Added PREF_NO_NETRC.
  4927. * src/main.cc: Added -n option.
  4928. * src/prefs.h (PREF_NO_NETRC): New definition.
  4929. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  4930. V_TRUE.
  4931. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  4932. is V_FALSE. This may get configurable in the future release.
  4933. To clear peer's error status by time basis:
  4934. * src/PeerAbstractCommand.cc
  4935. (onAbort): Call Peer::startBadCondition().
  4936. * src/Peer.h, src/Peer.cc
  4937. (error): Removed.
  4938. (_badConditionStartTime): New variable.
  4939. (_badConditionInterval): New variable. Initialized to 10 seconds.
  4940. (startBadCondition): New function.
  4941. (isGood): New function.
  4942. * src/DefaultPeerStorage.cc
  4943. (addPeer): Use Peer::isGood().
  4944. (FindFinePeer): Use Peer::isGood().
  4945. Always include port number in http request header:
  4946. * src/HttpRequest.cc (getHostText): Always include port number in
  4947. http request header.
  4948. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. To the ability to read options from a config file:
  4950. * src/main.cc: Command-line parameter validation is delegated to
  4951. OptionHandler class.
  4952. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  4953. * src/Option.h, src/Option.cc (clear): New function.
  4954. * src/OptionParser.h, src/OptionParser.cc: New class.
  4955. * src/OptionHandler.h: New class.
  4956. * src/NameMatchOptionHandler.h: New class.
  4957. * src/OptionHandlerImpl.h: New classes.
  4958. * src/prefs.h: '_' -> '-'
  4959. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  4960. (FTP_PASV): New definition.
  4961. * src/Util.h, src/Util.cc (getRealSize): New function.
  4962. To disable netrc support if .netrc file does not have correct
  4963. permissions:
  4964. * src/File.h, src/File.cc (mode): New function.
  4965. To prevent confidential information to be logged:
  4966. * src/HttpConnection.h, src/HttpConnection.cc
  4967. (eraseConfidentialInfo): New function.
  4968. (sendRequest): Call eraseConfidentialInfo().
  4969. (sendProxyRequest): Call eraseConfidentialInfo().
  4970. * src/main.cc: Validate permissions of .netrc file.
  4971. To add --user-agent command-line option:
  4972. * src/main.cc: Added new command line option: --user-agent
  4973. * src/prefs.h (PREF_USER_AGENT): New definition.
  4974. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  4975. parameter to HttpRequest object.
  4976. * src/AbstractProxyRequestCommand.cc
  4977. (executeInternal): Set user-agent option parameter to HttpRequest
  4978. object.
  4979. Marged the patches from Dan Fandrich.
  4980. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4981. Use filename and size from Metalink file instead of sending HEAD
  4982. request:
  4983. * src/UrlRequestInfo.h
  4984. (_filename): New variable.
  4985. (_totalLength): New variable.
  4986. (setTotalLength): New variable.
  4987. (setFilename): New variable.
  4988. * src/MetalinkRequestInfo.cc
  4989. (execute): Set filename and size to UrlRequestInfo
  4990. * src/UrlRequestInfo.cc
  4991. (execute): Use filename and size from Metalink instead of seding
  4992. HEAD request to servers.
  4993. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4994. To add the ability to resume downloading a partially downloaded file
  4995. which is downloaded from the beginning:
  4996. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  4997. takes this role.
  4998. * src/main.cc: Added -c option.
  4999. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  5000. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  5001. * src/prefs.h (PREF_CONTINUE): New definition.
  5002. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  5003. * src/DefaultDiskWriter.cc
  5004. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  5005. * src/AbstractDiskWriter.h
  5006. (glowFileAllocator): New variable.
  5007. * src/AbstractDiskWriter.cc
  5008. (openExistingFile): Now preallocate file space from the end of the
  5009. existing file if totalLength argument is specified and grater than 0.
  5010. * src/UrlRequestInfo.cc: If -c option is specified and the file
  5011. to download exists in local, continue the download of the file.
  5012. --allow-overwrite=true is assumed in this context.
  5013. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  5014. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  5015. Throw exception if --check-integrity=true is specified but chunk
  5016. checksums are not provided:
  5017. * src/UrlRequestInfo.cc
  5018. Do not print URLs to stdout:
  5019. * src/UrlRequestInfo.cc
  5020. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. * src/Request.h: Use AuthResolver to get authentication information.
  5022. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  5023. set to RequestFactory object.
  5024. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  5025. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  5026. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  5027. create Request object.
  5028. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  5029. To integrate Netrc into exsiting classes:
  5030. * src/Request.h
  5031. (_userDefinedAuthConfig): New variable.
  5032. (findNetrcAuthenticator): New function.
  5033. (segment): Removed.
  5034. (setUserDefinedAuthConfig): New function.
  5035. (resolveHttpAuthConfigItem): New function.
  5036. (resolveFtpAuthConfigItem): New function.
  5037. (resolveHttpProxyAuthConfigItem): New function.
  5038. * src/HttpRequest.h
  5039. (authConfig): Removed.
  5040. (proxyAuthConfig): Removed.
  5041. (setAuthConfig): Removed.
  5042. (setProxyAuthConfig): Removed.
  5043. * src/UrlRequest.h
  5044. (getHeadResult): Added a parameter: authConfigHandle
  5045. * src/common.h
  5046. (SingletonHolder.h): New include.
  5047. * src/main.cc
  5048. (Netrc.h): New include.
  5049. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  5050. Added initial value of PREF_NETRC_PATH.
  5051. Added the initialization of netrc.
  5052. * src/AuthConfig.h: New class.
  5053. * src/prefs.h
  5054. (PREF_NETRC_PATH): New definition.
  5055. * src/HttpAuthConfig.h: Removed.
  5056. * src/Netrc.cc
  5057. (getRequiredNextToken): New function.
  5058. (skipMacdef): New function.
  5059. (parse): Rewritten.
  5060. * src/Netrc.h
  5061. (getRequiredNextToken): New function.
  5062. (skipMacdef): New function.
  5063. * src/Util.h, src/Util.cc
  5064. (getHomeDir): New function.
  5065. * src/TrackerWatcherComand.cc
  5066. (createRequestCommand): Use AuthConfig.
  5067. * src/FtpConnection.cc
  5068. (sendUser): Use Request::resolveFtpAuthConfigItem().
  5069. (sendPass): Use Request::resolveFtpAuthConfigItem().
  5070. * src/Request.cc
  5071. (findNetrcAuthenticator): New function.
  5072. (resolveHttpAuthConfigItem): New function.
  5073. (resolveFtpAuthConfigItem): New function.
  5074. (resolveHttpProxyAuthConfigItem): New function.
  5075. * src/UrlRequestInfo.cc: Use AuthConfig.
  5076. * src/HttpRequest.cc
  5077. (createRequest): Use authConfig.
  5078. (getProxyAuthString): Use authConfig.
  5079. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  5080. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  5081. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5082. To reduce overhead to find commands whose socket is either
  5083. readable or writable in the download engine loop:
  5084. * src/Command.h, src/Command.cc
  5085. (STATUS): New enum.
  5086. (status): New variable.
  5087. (statusMatch): New function.
  5088. (setStatusActive): New function.
  5089. (setStatusInactive): New function.
  5090. * src/DownloadEngine.h, src/DownloadEngine.cc
  5091. (executeCommand): New function.
  5092. (run): Simplified.
  5093. (waitData): Call Command::setStatusActive() when command's socket is
  5094. readable or writable.
  5095. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5096. To handle Segment as SegmentHandle:
  5097. * src/AbstractCommand.cc (execute): Rewritten.
  5098. * src/SegmentMan.h: Segment -> SegmentHandle
  5099. Introducded HttpResponse class, HttpRequest class to improve code
  5100. extensiveness and make it clear:
  5101. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  5102. HttpResponse class.
  5103. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  5104. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  5105. * src/HttpConnection.cc: Contruction of http request were moved to
  5106. HttpRequest class.
  5107. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  5108. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  5109. * src/HttpAuthConfig.h: New class.
  5110. * src/Range.h: New class.
  5111. To make FtpTunnel{Request, Response}Command and
  5112. HttpProxy{Request, Response}Command derived from
  5113. AbstractProxy{Request, Response}Command:
  5114. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  5115. Derived from AbstractProxyRequestCommand class.
  5116. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  5117. Derived from AbstractProxyResponseCommand class.
  5118. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  5119. Derived from AbstractProxyRequestCommand class.
  5120. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  5121. Derived from AbstractProxyResponseCommand class.
  5122. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  5123. : New class.
  5124. * src/AbstractProxyResponseCommand.h,
  5125. src/AbstractProxyResponseCommand.cc: New class.
  5126. To add netrc support:
  5127. * src/Netrc.h, src/Netrc.cc: New class.
  5128. * src/Util.h, src/Util.cc (split): New function.
  5129. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  5130. "Content-Range" header instead of "Range" header.
  5131. * src/HttpHeader.h
  5132. (getStatus): Removed.
  5133. (setStatus): Removed.
  5134. * src/Segment.h
  5135. (getPositionToWrite): New function.
  5136. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5137. * src/HttpHeader.h
  5138. (Range.h): New include.
  5139. (status): New variable.
  5140. (HttpHeader): Initialized status with 0.
  5141. (getStatus): New function.
  5142. (setStatus): New function.
  5143. (getRange): New function.
  5144. (HttpHeaderHandle): New function.
  5145. * src/HttpHeader.cc
  5146. (getRange): New function.
  5147. * src/Request.h
  5148. (RequestWeakHandle): New definition.
  5149. * src/HttpConnection.h
  5150. (HttpConnectionHandle): New type definition.
  5151. * src/HttpConnection.cc
  5152. (receiveResponse): Set HTTP status to headers.
  5153. * src/main.cc
  5154. (showUsage): Fixed typo.
  5155. * src/Segment.h
  5156. (SegmentHandle): New type definition.
  5157. * src/BitfieldMan.h
  5158. (getMissingUnusedLength): New function.
  5159. * src/BitfieldMan.cc
  5160. (getMissingUnusedLength): New function.
  5161. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5162. To fix static initialization order problem:
  5163. * src/BitfieldManFactory.h
  5164. (defaultRandomizer): Removed.
  5165. (factory): New variable.
  5166. (getNewFactory): Removed.
  5167. (getFactoryInstance): New function.
  5168. (setDefaultRandomizer): Rewritten.
  5169. (getDefaultRandomizer): Rewritten.
  5170. * src/BitfieldManFactory.cc
  5171. (defaultRandomizer): Removed.
  5172. (factory): Initialized to 0.
  5173. (BitfieldManFactory): Initialized randomizer to 0.
  5174. * src/DefaultPieceStorage.cc
  5175. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  5176. * src/Peer.cc
  5177. (Peer): getNewFactory() -> getFactoryInstance()
  5178. * src/SegmentMan.cc
  5179. (initBitfield): getNewFactory() -> getFactoryInstance()
  5180. * src/Piece.cc
  5181. (Piece): getNewFactory() -> getFactoryInstance()
  5182. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5183. To fix the bug that causes crash on Max OS X:
  5184. * src/SimpleRandomizer.h
  5185. (getInstance): Create new instance if the static variable is null.
  5186. * src/SimpleRandomizer.cc
  5187. (randomizer): Initialized to 0.
  5188. * src/BitfieldManFactory.h
  5189. (getNewFactory): Removed the call to setRandomizer().
  5190. To fix the miscalculation of the range of checksum:
  5191. * src/BitfieldMan.h
  5192. (isBitSetOffsetRange): New function.
  5193. * src/BitfieldMan.cc
  5194. (isBitSetOffsetRange): New function.
  5195. * src/SegmentMan.cc
  5196. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  5197. Use bitfield->getBlockLength() instead of segment.segmentLength.
  5198. * Release 0.10.1
  5199. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5200. To lower CPU usage in BitTorrent download when --max-upload-limit
  5201. command-line option specified:
  5202. * src/DefaultBtMessageDispatcher.cc
  5203. (sendMessages): Calculate uploading speed only when current message
  5204. is uploading data and is not sent yet.
  5205. * src/DefaultPeerStorage.h
  5206. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  5207. * src/HttpResponseCommand.cc
  5208. (handleDefaultEncoding): Added the cast to int32_t to itos.
  5209. This fixes compile error in Soralis 10.
  5210. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. To fix segfault in Metalink download:
  5212. * src/UrlRequestInfo.h
  5213. (filename): Removed.
  5214. (totalLength): Removed.
  5215. (setTotalLength): Removed.
  5216. (setFilename): Removed.
  5217. * src/MetalinkRequestInfo.cc
  5218. (execute): Do not set filename and totalLength to reqInfo.
  5219. Set chunk checksum to reqInfo if it is not null.
  5220. * src/HttpResponseCommand.cc
  5221. (executeInternal): Fixed filename in log.
  5222. (handleDefaultEncoding): Removed the call to initBitfield() and
  5223. markAllPiecesDone().
  5224. (handleOtherEncoding): Added HEAD method handling.
  5225. * src/FtpNegotiateCommand.cc
  5226. (executeInternal): Added SEQ_HEAD_OK handling.
  5227. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  5228. return false.
  5229. * src/FtpNegotiateCommand.h
  5230. (SEQ_HEAD_OK): New definition.
  5231. * src/SegmentMan.cc
  5232. (initBitfield): Delete bitfield.
  5233. (isChunkChecksumValidationReady): Fixed the condition.
  5234. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  5235. works fine.
  5236. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. * src/Xml2MetalinkProcessor.h
  5238. (xpathExists): New function.
  5239. * src/Xml2MetalinkProcessor.cc
  5240. (xpathExists): New function.
  5241. Not to send HEAD request if filename and size are available in Metalink
  5242. file:
  5243. * src/UrlRequestInfo.h
  5244. (filename): New variable.
  5245. (totalLength): New variable.
  5246. (setTotalLength): New function.
  5247. (setFilename): New function.
  5248. * src/MetalinkRequestInfo.cc
  5249. (execute): Set filename and size to UrlRequestInfo.
  5250. * src/MetalinkEntry.cc
  5251. (MetalinkEntry): Initialize size with 0.
  5252. * src/UrlRequestInfo.cc
  5253. (execute): Set filename and size to SegmentMan.
  5254. Not to download rest of the files after selected files are downloaded
  5255. in BitTorrent:
  5256. * src/PieceStorage.h
  5257. (allDownloadFinished): New function.
  5258. * src/DefaultBtAnnounce.cc
  5259. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  5260. downloadFinished.
  5261. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  5262. * src/DefaultPieceStorage.cc
  5263. (completePiece): Use allDownloadFinished instead of downloadFinished.
  5264. Commented out the call to finishSelectiveDownloadingMode().
  5265. (downloadFinished): Call isFilteredAllBitSet() instead of
  5266. isAllBitSet().
  5267. (allDownloadFinished): New function.
  5268. * src/DefaultBtInteractive.cc
  5269. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  5270. downloadFinished().
  5271. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  5272. * src/TorrentDownloadEngine.cc
  5273. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  5274. * src/BitfieldMan.h
  5275. (isFilteredAllBitSet): New function.
  5276. * src/ShareRatioSeedCriteria.h
  5277. (PieceStorage.h): New include.
  5278. (pieceStorage): New variable.
  5279. (evaluate):
  5280. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  5281. * src/BitfieldMan.cc
  5282. (isFilteredAllBitSet): New function.
  5283. (isAllBitSet): Filter is not took into account.
  5284. Rename --force-truncate as --allow-overwrite:
  5285. * src/TorrentRequestInfo.cc
  5286. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  5287. * src/main.cc
  5288. (showUsage): --force-truncate -> --allow-overwrite
  5289. * src/message.h
  5290. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  5291. * src/prefs.h
  5292. (PREF_FORCE_TRUNCATE): Removed.
  5293. (PREF_ALLOW_OVERWRITE): New definition.
  5294. * src/SegmentMan.cc
  5295. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  5296. * src/MetalinkRequestInfo.cc
  5297. (execute): Queueing message are now logged in info level.
  5298. * src/common.h
  5299. (LONG_LONG_MAX): Removed.
  5300. (LONG_LONG_MIN): Removed.
  5301. * src/HttpResponseCommand.cc
  5302. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  5303. * src/FtpNegotiateCommand.cc
  5304. (recvSize): LONG_LONG_MAX -> INT64_MAX
  5305. * src/main.cc
  5306. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  5307. command-line option.
  5308. (main): Added --check-integriy and --realtime-chunk-checksum
  5309. command-line option.
  5310. --force-truncate -> --allow-overwrite
  5311. Set initial value of --check-integrity option to false.
  5312. Don't show usage when error occurs while persing command-line options.
  5313. Removed deprecated --upload-limit option.
  5314. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5315. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  5316. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  5317. * src/BtAllowedFastMessage.cc:
  5318. * src/BtBitfieldMessage.cc
  5319. * src/BtCancelMessage.cc
  5320. * src/BtChokeMessage.cc
  5321. * src/BtHaveAllMessage.cc
  5322. * src/BtHaveMessage.cc
  5323. * src/BtHaveNoneMessage.cc
  5324. * src/BtInterestedMessage.cc
  5325. * src/BtNotInterestedMessage.cc
  5326. * src/BtPieceMessage.cc
  5327. * src/BtPortMessage.cc
  5328. * src/BtRejectMessage.cc
  5329. * src/BtRequestMessage.cc
  5330. * src/BtSuggestPieceMessage.cc
  5331. * src/BtUnchokeMessage.cc
  5332. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  5333. files are affected.
  5334. * src/ChunkChecksumValidator.cc
  5335. * src/SegmentMan.cc
  5336. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5337. To add chunk checksum validation:
  5338. * src/MetalinkEntry.h
  5339. (MetalinkChunkChecksum.h): New include.
  5340. (chunkChecksum): New variable.
  5341. * src/Request.h
  5342. (method): New variable.
  5343. (setMethod): New function.
  5344. (getMethod): New function.
  5345. (METHOD_GET): New static constant.
  5346. (METHOD_HEAD): New static constant.
  5347. * src/Xml2MetalinkProcessor.h
  5348. (getPieceHash): New function.
  5349. * src/PieceStorage.h
  5350. (markAllPiecesDone): New function.
  5351. (checkIntegrity): New function.
  5352. * src/FileAllocator.h
  5353. (NullFileAllocationMonitor.h): New include.
  5354. (FileAllocator): Initialize fileAllocationMonitor with new
  5355. NullFileAllocationMonitor().
  5356. * src/MultiDiskAdaptor.h
  5357. (messageDigest.h): Remove include.
  5358. (ctx): Removed.
  5359. (hashUpdate): Added ctx.
  5360. (MultiDiskAdaptor): Removed ctx.
  5361. (sha1Sum): Renamed as messageDigest.
  5362. (messageDigest): New function.
  5363. * src/UrlRequestInfo.h
  5364. (HeadResult): New class.
  5365. (digestAlgo): New variable.
  5366. (chunkChecksumLength): New variable.
  5367. (chunkChecksums): New variable.
  5368. (getHeadResult): New function.
  5369. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  5370. (setDigestAlgo): New function.
  5371. (setChunkChecksumLength): New function.
  5372. (setChunkChecksums): New function.
  5373. * src/DefaultPieceStorage.cc
  5374. (DiskAdaptorWriter.h): New include.
  5375. (ChunkChecksumValidator.h): New include.
  5376. (markAllPiecesDone): New function.
  5377. (checkIntegrity): New function.
  5378. * src/DefaultBtContext.h
  5379. (getPieceHashes): New function.
  5380. * src/TorrentRequestInfo.cc
  5381. (execute): Try to validate chunk checksum if file already exists and
  5382. .aria2 file doesn't there and user allows aria2 to overwrite it.
  5383. * src/messageDigest.h
  5384. (~MessageDigestContext): Added digestFree().
  5385. * src/MetalinkRequestInfo.cc
  5386. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  5387. * src/DiskAdaptor.h
  5388. (messageDigest.h): New include.
  5389. (sha1Sum): Renamed as messageDigest.
  5390. (messageDigest): New function.
  5391. * src/DownloadCommand.h
  5392. (PeerStat.h): New include.
  5393. (maxDownloadSpeedLimit): New variable.
  5394. (startupIdleTime): New variable.
  5395. (lowestDownloadSpeedLimit): New variable.
  5396. (peerStat): New variable.
  5397. (setMaxDownloadSpeedLimit): New function.
  5398. (setStartupIdleTime): New function.
  5399. (setLowestDownloadSPeedLimit): New function.
  5400. * src/BtContext.h
  5401. (getPieceHashes): New function.
  5402. * src/main.cc
  5403. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  5404. option to true for testing purpose.
  5405. * src/BtPieceMessage.cc
  5406. (checkPieceHash): Use messageDigest
  5407. * src/DownloadEngine.cc
  5408. (SetDescriptor): Removed.
  5409. (AccumulateActiveCommand): Removed.
  5410. (waitData): Rewritten.
  5411. (updateFdSet): Rewritten.
  5412. * src/MultiDiskAdaptor.cc
  5413. (hashUpdate): Added ctx.
  5414. (sha1Sum): Renamed as messageDigest.
  5415. (messageDigest): New function.
  5416. * src/BitfieldMan.h
  5417. (isBitRangeSet): New function.
  5418. (unsetBitRange): New function.
  5419. * src/ByteArrayDiskWriter.h
  5420. (sha1Sum): Renamed as messageDigest.
  5421. (messageDigest): New function.
  5422. * src/ConsoleDownloadEngine.cc
  5423. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  5424. * src/DiskWriter.h
  5425. (messageDigest.h): New include.
  5426. (sha1Sum): Renamed as messageDigest.
  5427. (messageDigest): New function.
  5428. * src/ChunkChecksumValidator.h: New class.
  5429. * src/DiskAdaptorWriter.h: New class.
  5430. * src/prefs.h
  5431. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  5432. (PREF_CHECK_INTEGRITY): New definition.
  5433. * src/HttpResponseCommand.cc
  5434. (handleDefaultEncoding): Added method "HEAD" handling.
  5435. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  5436. (handleOtherEncoding):
  5437. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  5438. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  5439. startupIdleTime, lowestDownloadSpeedLimit to command.
  5440. * src/SegmentMan.h
  5441. (getSegmentEntryByIndex): New function.
  5442. (getSegmentEntryByCuid): New function.
  5443. (getSegmentEntryIteratorByCuid): New function.
  5444. (diskWriter): DiskWriter -> DiskWriterHandle
  5445. (pieceHashes): New variable.
  5446. (chunkHashLength): New variable.
  5447. (digestAlgo): New variable.
  5448. (FindPeerStat): Removed.
  5449. (getPeerStat): Rewritten.
  5450. (markAllPiecesDone): New function.
  5451. (checkIntegrity): New function.
  5452. (tryChunkChecksumValidation): New function.
  5453. (isChunkChecksumValidationReady): New function.
  5454. * src/BitfieldMan.cc
  5455. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  5456. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  5457. blocks to 0.
  5458. (isBitRangeSet): New function.
  5459. (unsetBitRange): New function.
  5460. * src/FtpNegotiateCommand.cc
  5461. (executeInternal): Set maxDownloadSpeedLimit,
  5462. startupIdleTime, lowestDownloadSpeedLimit to command.
  5463. (recvSize): Added method "HEAD" handling.
  5464. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  5465. * src/AbstractSingleDiskAdaptor.cc
  5466. (sha1Sum): Renamed as messageDigest.
  5467. (messageDigest): New function.
  5468. * src/AbstractSingleDiskAdaptor.h
  5469. (sha1Sum): Renamed as messageDigest.
  5470. (messageDigest): New function.
  5471. * src/Util.h
  5472. (indexRange): New function.
  5473. * src/MetalinkEntry.cc
  5474. (MetalinkEntry): Initialized chunkChecksum to 0.
  5475. * src/ShaVisitor.cc
  5476. (~ShaVisitor): Removed the call to ctx.digestFree().
  5477. * src/SegmentMan.cc
  5478. (ChunkChecksumValidator.h): New include.
  5479. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  5480. to DIGEST_ALGO_SHA1.
  5481. (~SegmentMan): Removed diskWriter.
  5482. (FindSegmentEntryByIndex): Removed.
  5483. (FindSegmentEntryByCuid): Removed.
  5484. (checkoutSegment): Rewritten.
  5485. (findSlowerSegmentEntry): Rewritten.
  5486. (getSegment): Rewritten.
  5487. (updateSegment): Rewritten.
  5488. (completeSegment): Rewritten.
  5489. (markAllPiecesDone): New function.
  5490. (checkIntegrity): New function.
  5491. (isChunkChecksumValidationReady): New function.
  5492. (tryChunkChecksumValidation): New function.
  5493. * src/Xml2MetalinkProcessor.cc
  5494. (getEntry): Get size and set it to entry.
  5495. Get chunk checksum and set it to entry.
  5496. (getPieceHash): New function.
  5497. * src/Util.cc
  5498. (sha1Sum): Removed ctx.digestFree()
  5499. (fileChecksum): Removed ctx.digestFree()
  5500. (indexRange): New function.
  5501. * src/Request.cc
  5502. (METHOD_GET): New variable.
  5503. (METHOD_HEAD): New variable.
  5504. (Request): Added method.
  5505. * src/UrlRequestInfo.cc
  5506. (FatalException.h): New include.
  5507. (message.h): New include.
  5508. (operator<<): Added operator<< for class HeadResult.
  5509. (getHeadResult): New function.
  5510. (execute): Get filename and size in separate download engine.
  5511. * src/ChunkChecksumValidator.cc: New class.
  5512. * src/DownloadCommand.cc:
  5513. (DownloadCommand): Added peerStat.
  5514. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  5515. the value from Option.
  5516. The buffer size is now 16KB.
  5517. Use peerStat member instead of getting it from SegmentMan.
  5518. Use startupIdleTime member instead of gettingit from Option.
  5519. Added chunk checksum validation.
  5520. * src/AbstractDiskWriter.cc
  5521. (AbstractDiskWriter): Removed ctx.
  5522. (~AbstractDiskWriter): Removed ctx.digestFree()
  5523. (writeDataInternal): Returns the return value of write.
  5524. (readDataInternal): Returns the return value of read.
  5525. (sha1Sum): Renamed as messageDigest
  5526. (messageDigest): New function.
  5527. * src/AbstractDiwkWriter.h
  5528. (messageDigest.h): Removed include.
  5529. (ctx): Removed.
  5530. (sha1Sum): Renamed as messageDigest
  5531. (messageDigest): New function.
  5532. * src/DefaultPieceStorage.h
  5533. (markAllPiecesDone): New function.
  5534. (checkIntegrity): New function.
  5535. * src/NullFileAllocationMonitor.h: New class.
  5536. * src/MetalinkChunkChecksum.h: New class.
  5537. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. To decrease CPU usage in bittorrent download, calculation results in
  5539. BitfieldMan were cached and realtime fetching PeerObject was removed
  5540. with WeakHandle introduced. Option values are set to the objects
  5541. by setter before download begins.
  5542. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  5543. * src/DefaultBtRequestFactory.h
  5544. (dispatcher): BtMessageDispatcherHandle ->
  5545. BtMessageDispatcherWeakHandle.
  5546. (messageFactory): New variable.
  5547. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  5548. BtMessageDispatcherWeakHandle.
  5549. (setBtMessageFactory): New function.
  5550. * src/DefaultBtMessageDispatcher.cc:
  5551. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  5552. from Option.
  5553. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  5554. feating the value from Option.
  5555. Use messageFactory member.
  5556. * src/PeerInteractionCommand.cc
  5557. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  5558. Add reverse dependencies to factory object.
  5559. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  5560. dispatcher.
  5561. Set messageFactory to receiver.
  5562. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  5563. btInteractive.
  5564. Set receiver to peerObject.
  5565. Set maxDownloadSpeedLimit to this.
  5566. (executeInternal): Use maxDownloadSpeedLimit member.
  5567. * src/BtChokeMessage.cc
  5568. (doReceivedAction): Use dispatcher, requestFactory member.
  5569. (onSendComplete): Use dispatcher member.
  5570. * src/PeerInteractionCommand.h
  5571. (maxDownloadSpeedLimit): New variable.
  5572. * src/DefaultBtMessageReceiver.h
  5573. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  5574. (dispatcher):
  5575. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  5576. (messageFactory): New variable.
  5577. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  5578. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  5579. (setDispatcher):
  5580. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  5581. (setBtMessageFactory): New function.
  5582. * src/DefaultBtInteractive.cc
  5583. (initiateHandshake): Use messageFactory member.
  5584. (addBitfieldMessageToQueue): Use messageFactory member.
  5585. (addAllowedFastMessageToQueue): Use messageFactory member.
  5586. (decideChoking): Use messageFactory member.
  5587. (checkHave): Use messageFactory member.
  5588. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  5589. (receiveMessages): Use maxDownloadSpeedLimit member.
  5590. (decideInterest): Use messageFactory member.
  5591. * src/BtRequestMessage.cc
  5592. (doReceivedAction): Use messageFactory, dispatcher member.
  5593. (onQueued): Use dispatcher member.
  5594. * src/BtPieceMessage.cc
  5595. (doReceivedAction): Use dispatcher member.
  5596. (send): Use peerConnection member.
  5597. (onWrongPiece): Use requestFactory member.
  5598. (handleChokingEvent): Use messageFactory, dispatcher member.
  5599. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  5600. * src/BtMessageDispatcher.h
  5601. (BtMessageDispatcherWeakHandle): New type definition.
  5602. * src/SimpleBtMessage.cc
  5603. (send): Use peerConnection member.
  5604. * src/BtRejectMessage.cc
  5605. (doReceivedAction): Use dispatcher member.
  5606. * src/DefaultBtMessageDispatcher.h
  5607. (Option.h): Removed include.
  5608. (messageFactory): New variable.
  5609. (option): Removed.
  5610. (maxUploadSpeedLimit): New variable.
  5611. (requestTimeout): New variable.
  5612. (DefaultBtMessageDispatcher): Removed option.
  5613. Added maxUploadSpeedLimit, requestTimeout.
  5614. (setOption): Removed.
  5615. (getOption): Removed.
  5616. (setMaxUploadSpeedLimit): New function.
  5617. (setRequestTimeout): New function.
  5618. (setBtMessageFactory): New function.
  5619. * src/DefaultBtInteractive.h
  5620. (btMessageReceiver):
  5621. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  5622. (dispatcher):
  5623. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  5624. (btRequestFactory):
  5625. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  5626. (peerConnection):
  5627. PeerConnectionHandle -> PeerConnectionWeakHandle
  5628. (messageFactory): New variable.
  5629. (option): Removed.
  5630. (keepAliveInterval): New variable.
  5631. (maxDownloadSpeedLimit): New variable.
  5632. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  5633. (setBtMessageReceiver):
  5634. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  5635. (setDispatcher):
  5636. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  5637. (setBtRequestFactory):
  5638. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  5639. (setPeerConnection):
  5640. PeerConnectionHandle -> PeerConnectionWeakHandle
  5641. (setOption): Removed.
  5642. (setKeepAliveInterval): New function.
  5643. (setMaxDownloadSpeedLimit): New function.
  5644. (setBtMessageFactory): New function.
  5645. * src/BitfieldMan.h
  5646. (cachedNumMissingBlock): New variable.
  5647. (cachedNumFilteredBlock): New variable.
  5648. (cachedCompletedLength): New variable.
  5649. (cachedFilteredComletedLength): New variable.
  5650. (cachedFilteredTotalLength): New variable.
  5651. (countMissingBlockNow): New function.
  5652. (countFilteredBlockNow): New function.
  5653. (getFilteredTotalLengthNow): New function.
  5654. (getCompletedLengthNow): New function.
  5655. (getFilteredCompletedLengthNow): New function.
  5656. (updateCache): New function.
  5657. * src/AbstractBtMessage.h
  5658. (BtMessageDispatcher.h): New include.
  5659. (PeerConnection.h): New include.
  5660. (BtRequestFactory.h): New include
  5661. (BtMessageFactory.h): New include.
  5662. (dispatcher): New variable.
  5663. (messageFactory): New variable.
  5664. (peerConnection: New variable.
  5665. (setBtMessageDispatcher): New function.
  5666. (setPeerConnection): New function.
  5667. (setBtMessageFactory): New function.
  5668. (setBtRequestFactory): New function.
  5669. * src/DefaultBtMessageFactory.cc
  5670. (setCommonProperty): Set dispatcher, requestFactory, this,
  5671. peerConnection to msg.
  5672. * src/BtRegistry.h
  5673. (BT_MESSAGE_RECEIVER): New macro.
  5674. * src/PeerConnection.h
  5675. (PeerConnectionWeakHandle): New type definition.
  5676. * src/BtMessageFactory.h
  5677. (BtMessageFactoryWeakHandle): New type definition.
  5678. * src/BitfieldMan.cc
  5679. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  5680. cachedCompletedLength, cachedFilteredComletedLength,
  5681. cachedFilteredTotalLength.
  5682. Call updateCache().
  5683. (countMissingBlock): Return cachedNumMissingBlock.
  5684. (countMissingBlockNow): New function.
  5685. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  5686. (countFilteredBlockNow): New function.
  5687. (setBit): Call updateCache().
  5688. (unsetBit): Call updateCache().
  5689. (setBitfield): Call updateCache().
  5690. (clearAllBit): Call updateCache().
  5691. (setAllBit): Use setBitInternal instead of setBit.
  5692. Call updateCache().
  5693. (addFilter): Call updateCache().
  5694. (enableFilter): Call updateCache().
  5695. (disableFilter): Call updateCache().
  5696. (clearFilter): Call updateCache().
  5697. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  5698. (getFilteredTotalLengthNow): New function.
  5699. (getCompletedLength): Return cachedCompletedLength.
  5700. (getCompletedLengthNow): New function.
  5701. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  5702. (getFilteredCompletedLengthNow): New function.
  5703. (updateCache): New function.
  5704. * src/BtMessageReceiver.h
  5705. (BtMessageReceiverWeakHandle): New type definition.
  5706. * src/DefaultBtMessageReceiver.cc
  5707. (receiveHandshake): Use messageFactory member.
  5708. (sendHandshake): Use messageFactory member.
  5709. (receiveMessage): Use messageFactory member.
  5710. * src/DefaultBtMessageFactory.h
  5711. (dispatcher): New variable.
  5712. (requestFactory): New variable.
  5713. (peerConnection): New variablle.
  5714. (setBtMessageDispatcher): New function.
  5715. (setBtRequestFactory): New function.
  5716. (setPeerConnection): New function.
  5717. * src/SharedHandle.h
  5718. (RefCount): New class.
  5719. (WeakHandle): New class.
  5720. * src/PeerObject.h
  5721. (BtMessageReceiver.h): New include.
  5722. (PeerObject): Added btMessageReceiver.
  5723. (btMessageReceiver): New variable.
  5724. * src/Util.cc
  5725. (countBit): Simplified.
  5726. * src/BtCancelMessage.cc
  5727. (doReceivedAction): Use dispatcher member.
  5728. * src/BtRequestFactory.h
  5729. (BtRequestFactoryWeakHandle): New type definition.
  5730. * src/PeerStorage.h
  5731. (downloadSpeed): int -> uint32_t
  5732. (uploadSpeed): int -> uint32_t
  5733. (sessionDownloadLength): long long int -> uint64_t
  5734. (sessionUploadLength): long long int -> uint64_t
  5735. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5736. To add RecoverableException, FatalException:
  5737. * src/AbstractCommand.cc
  5738. (onAbort): Exception -> RecoverableException
  5739. * src/PeerAbstractCommand.h
  5740. (RecoverableException.h): New include.
  5741. (onAbort): Exception -> RecoverableException.
  5742. * src/PeerInteractionCommand.cc
  5743. (onAbort): Exception -> RecoverableException.
  5744. * src/PeerAbstractCommand.cc
  5745. (execute): Exception -> RecoverableException.
  5746. (onAbort): Exception -> RecoverableException.
  5747. * src/TorrentRequestInfo.cc
  5748. (execute): Exception -> RecoverableException.
  5749. * src/MetalinkRequestInfo.cc
  5750. (execute): Exception -> RecoverableException.
  5751. * src/MetaFileUtil.cc: RecoverableException.
  5752. * src/AbstractCommand.h
  5753. (onAbort): Exception -> RecoverableException.
  5754. * src/DlRetryEx.h: Exception -> RecoverableException.
  5755. * src/DlAbortEx.h: Exception -> RecoverableException.
  5756. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  5757. * src/Util.cc: Exception -> RecoverableException.
  5758. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  5759. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  5760. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  5761. To make ID static const int
  5762. * src/BtInterestedMessage.h
  5763. (ID_t): Removed.
  5764. (ID): New variable.
  5765. (getId): Made non-const.
  5766. * src/BtPieceMessage.h
  5767. (ID_t): Removed.
  5768. (ID): New variable.
  5769. (getId): Made non-const.
  5770. * src/BtChokeMessage.h
  5771. (ID_t): Removed.
  5772. (ID): New variable.
  5773. (getId): Made non-const.
  5774. * src/BtHaveAllMessage.h
  5775. (ID_t): Removed.
  5776. (ID): New variable.
  5777. (getId): Made non-const.
  5778. * src/BtKeepAliveMessage.h
  5779. (ID_t): Removed.
  5780. (ID): New variable.
  5781. (getId): Made non-const.
  5782. * src/BtHandshakeMessage.h
  5783. (ID): New variable.
  5784. (getId): Made non-const.
  5785. * src/BtSuggestPieceMessage.h
  5786. (ID_t): Removed.
  5787. (ID): New variable.
  5788. (getId): Made non-const.
  5789. * src/BtPortMessage.h
  5790. (ID_t): Removed.
  5791. (ID): New variable.
  5792. (getId): Made non-const.
  5793. * src/AbstractBtMessage.h
  5794. (id): Removed.
  5795. (AbstractBtMessage): Removed id.
  5796. (getId): Removed.
  5797. * src/BtHaveMessage.h
  5798. (ID_t): Removed.
  5799. (ID): New variable.
  5800. (getId): Made non-const.
  5801. * src/BtAllowedFastMessage.h
  5802. (ID_t): Removed.
  5803. (ID): New variable.
  5804. (getId): Made non-const.
  5805. * src/BtCancelMessage.h
  5806. (ID_t): Removed.
  5807. (ID): New variable.
  5808. (getId): Made non-const.
  5809. * src/BtNotInterestedMessage.h
  5810. (ID_t): Removed.
  5811. (ID): New variable.
  5812. (getId): Made non-const.
  5813. * src/BtChokeMessage.h
  5814. (ID_t): Removed.
  5815. (ID): New variable.
  5816. (getId): Made non-const.
  5817. * src/BtRejectMessage.h
  5818. (ID_t): Removed.
  5819. (ID): New variable.
  5820. (getId): Made non-const.
  5821. * src/BtBitfieldMessage.h
  5822. (ID_t): Removed.
  5823. (ID): New variable.
  5824. (getId): Made non-const.
  5825. * src/BtUnchokeMessage.h
  5826. (ID_t): Removed.
  5827. (ID): New variable.
  5828. (getId): Made non-const.
  5829. * src/BtRequestMessage.h
  5830. (ID_t): Removed.
  5831. (ID): New variable.
  5832. (getId): Made non-const.
  5833. * src/BtHaveMessage.h
  5834. (ID_t): Removed.
  5835. (ID): New variable.
  5836. (getId): Made non-const.
  5837. To add --force-truncate command-line option and a check whether
  5838. the file already exists:
  5839. * src/DirectDiskAdaptor.h
  5840. (getFilePath): Made virtual public.
  5841. * src/MultiDiskAdaptor.h
  5842. (File.h): New include.
  5843. (DiskWriterEntry::fileEntry): Made private.
  5844. (DiskWriterEntry::fileExists): New function.
  5845. (DiskWriterEntry::getFileEntry): New function.
  5846. (fileExists): New function.
  5847. (getFilePath): New function.
  5848. * src/TorrentRequestInfo.cc
  5849. (FatalException.h): New include.
  5850. (message.h): New include.
  5851. (RecoverableException.h): New include.
  5852. (execute): Added a check whether file is already exists or not.
  5853. * src/DiskAdaptor.h
  5854. (fileExists): New function.
  5855. (getFilePath): New function.
  5856. * src/main.cc
  5857. (showUsage): Added an explanation of --force-truncate command-line
  5858. option.
  5859. (main): Added --force-truncate command-line option.
  5860. * src/Exception.h
  5861. (setMsg): buf[256] -> buf[1024]
  5862. * src/CopyDiskWriter.h
  5863. (getFilePath): Made public virtual.
  5864. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  5865. (fileExists): New function.
  5866. * src/DownloadEngineFactory.cc
  5867. (newTorrentConsoleEngine): Don't open file here.
  5868. * src/message.h
  5869. (EX_FILE_ALREADY_EXISTS): New definition.
  5870. * src/prefs.h
  5871. (PREF_FOECE_TRUNCATE): New definition.
  5872. * src/HttpResponseCommand.cc
  5873. (handleDefaultEncoding): Added a check whether the file already exists.
  5874. * src/SegmentMan.h
  5875. (fileExists): New function.
  5876. (shouldCancelDownloadForSafety): New function.
  5877. * src/FtpNegotiateCommand.cc
  5878. (recvSize): Added a check whether the file already exists.
  5879. * src/AbstractSingleDiskAdaptor.cc
  5880. (File.h): New include.
  5881. (fileExists): New function.
  5882. * src/AbstractSingleDiskAdaptor.h
  5883. (getFilePath): Removed.
  5884. (fileExists): New function.
  5885. * src/SegmentMan.cc
  5886. (fileExists): New function.
  5887. (shouldCancelDownloadForSafety): New function.
  5888. To fix regression bug in torrent downloading:
  5889. * src/DefaultBtRequestFactory.cc
  5890. (doChokedAction): New function.
  5891. * src/DefaultBtRequestFactory.h
  5892. (doChokedAction): New function.
  5893. * src/DefaultBtMessageDispatcher.cc
  5894. (doChokedAction): Do not delete request if its target is in allowed
  5895. fast set.
  5896. * src/DefaultBtInteractive.cc
  5897. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  5898. (sendKeepAlive): Send keep alive message even if the outgoing message
  5899. queue is not empty.
  5900. (decideInterest): Simplified the code.
  5901. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  5902. it is already called when BtChokeMessage is received from a peer.
  5903. * src/BtRequestFactory.h
  5904. (doChokedAction): New function.
  5905. To clean up code:
  5906. * src/PeerInteractionCommand.h
  5907. (executeInternal): Added virtual keyword explicitly.
  5908. (prepareForRetry): Added virtual keyword explicitly.
  5909. (prepareForNextPeer): Added virtual keyword explicitly.
  5910. (onAbort): Added virtual keyword explicitly.
  5911. * src/RequestSlot.cc
  5912. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  5913. * src/BtPieceMessage.cc
  5914. (doReceivedAction): Added a debug log of piece's bitfield.
  5915. * src/Piece.h
  5916. (getBitfieldLength): New function.
  5917. * src/ByteArrayDiskWriter.cc
  5918. (clear): Added buf = 0 to avoid double free corruption.
  5919. * src/FileAllocator.cc
  5920. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  5921. Added cp.reset().
  5922. * src/BitfieldMan.h
  5923. (operator=): Rewritten.
  5924. * src/BitfieldMan.cc
  5925. (BitfieldMan): Initialized bitfield, useBitfield.
  5926. * src/PeerConnection.cc
  5927. (receiveMessage): Added a call to socket->readable() after getting
  5928. message length to avoid possible EOF.
  5929. * src/Util.cc
  5930. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  5931. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5932. To add an ability to pre-allocate file space:
  5933. * src/DirectDiskAdaptor.h: Rewritten.
  5934. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  5935. * src/MultiDiskAdaptor.h: Rewritten.
  5936. * src/DefaultPieceStorage.cc
  5937. (MultiDiskWriter.h): Removed include.
  5938. (PreAllocationDiskWriter.h): Removed include.
  5939. (FileAllocationMonitor.h): New include.
  5940. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  5941. (initStorage): Rewritten.
  5942. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  5943. * src/FileAllocator.h: New class.
  5944. * src/FileAllocator.cc: New class.
  5945. * src/FileAllocationMonitor.h: New class.
  5946. * src/FileAllocationMonitor.cc: New class.
  5947. * src/ConsoleFileAllocationMonitor.h: New class.
  5948. * src/ConsoleFileAllocationMonitor.cc: New class.
  5949. * src/AbstractSingleDiskAdaptor.h: New class.
  5950. * src/AbstractSingleDiskAdaptor.cc: New class.
  5951. * src/DiskAdaptor.h
  5952. (Directory.h): Removed include.
  5953. (DiskWriter.h): Removed include.
  5954. (FileEntry.h): Removed include.
  5955. (diskWriter): Removed.
  5956. (DiskAdaptor): Removed diskWriter.
  5957. (openFile): Made pure virtual.
  5958. (closeFile): Made pure virtual.
  5959. (openExistingFile): Made pure virtual.
  5960. (initAndOpenFile): Made pure virtual.
  5961. (writeData): Made pure virtual.
  5962. (readData): Made pure virtual.
  5963. (sha1Sum): Made pure virtual.
  5964. (getStoreDir): Returns const reference of storeDir.
  5965. (DiskAdaptorHandle): New type definition.
  5966. * src/main.cc
  5967. (ConsoleFileAllocationMonitor.h): New include.
  5968. (showUsage): Added default value description of -s option.
  5969. Added the description of --file-allocation option.
  5970. (main): Set default value of --file-allocation option to 'none'.
  5971. Added --file-allocation command-line option.
  5972. Setup FileAllocationMonitorFactory.
  5973. * src/FtpInitiateConnectionCommand.cc
  5974. (executeInternal): Removed diskWriter related processing, which was
  5975. moved to FtpNegotiationCommand.cc.
  5976. * src/DirectDiskAdaptor.cc
  5977. (getFilePath): Made non-const.
  5978. * src/CopyDiskAdaptor.h
  5979. (DiskAdaptor.h): Removed include.
  5980. (DiskWriter.h): Removed include.
  5981. (AbstractSingleDiskAdaptor.h): New include.
  5982. (getFilePath): Made non-const. Added virtual keyword.
  5983. (CopyDiskAdaptor): Removed diskWriter.
  5984. (getTempFile): Returns const reference.
  5985. (CopyDiskAdaptorHandle): New type definition.
  5986. * src/ByteArrayDiskWriter.cc
  5987. (clear): Simplified.
  5988. (initAndOpenFile): Rewritten.
  5989. (openFile): Call initAndOpenFile()
  5990. * src/MultiDiskAdaptor.cc: Rewritten.
  5991. * src/DownloadEngineFactory.cc
  5992. (FileAllocator.h): New include.
  5993. (FileAllocationMonitor.h): New include.
  5994. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  5995. create DefaultDiskWriter with file allocator.
  5996. * src/DiskWriter.h
  5997. (initAndOpenFile): Added totalLength argument.
  5998. (openFile): Added totalLength argument.
  5999. * src/prefs.h
  6000. (PREF_FILE_ALLOCATION): New definition.
  6001. (V_PREALLOC): New definition.
  6002. (V_NONE): New definition.
  6003. * src/HttpResponseCommand.cc
  6004. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  6005. size.
  6006. * src/FtpNegotiateCommand.cc
  6007. (Util.h): New include.
  6008. (recvSize): Open file here.
  6009. * src/Util.h
  6010. (ullitos): New function.
  6011. * src/CopyDiskWriter.h
  6012. (getFilePath): Made non-const.
  6013. * src/DefaultDiskWriter.h
  6014. (Option.h): New include.
  6015. (totalLength): Removed.
  6016. (DefaultDiskWriter): Removed totalLength.
  6017. (initAndOpenFile): Added totalLength argument.
  6018. (DefaultDiskWriterHandle): New type definition.
  6019. (createNewDiskWriter): New function.
  6020. * src/Util.cc
  6021. (ullitos): New function.
  6022. * src/DefaultDiskWriter.cc
  6023. (message.h): New include.
  6024. (FileAllocator.h): New include.
  6025. (prefs.h): New include.
  6026. (Util.h): New include.
  6027. (DefaultDiskWriter): Removed totalLength.
  6028. (initAndOpenFile): Added file allocation.
  6029. (createNewDiskWriter): New function. Just for temporary solution.
  6030. It will be rewritten later.
  6031. * src/DiskAdaptor.cc
  6032. (DiskAdaptor): Removed diskWriter.
  6033. * src/AbstractDiskWriter.cc
  6034. (LogFactory.h): New include.
  6035. (AbstractDiskWriter): Added fileAllocator, logger.
  6036. (openFile): Added totalLength argument.
  6037. * src/AbstractDiskWriter.h
  6038. (FileAllocator.h): New include.
  6039. (Logger.h): New include.
  6040. (fileAllocator): New variable.
  6041. (logger): New variable.
  6042. (openFile): Added totalLength argument. Added virtual keyword
  6043. explicitly.
  6044. (openExistingFile): Added totalLength argument. Added virtual keyword
  6045. explicitly.
  6046. (closeFile): Added virtual keyword explicitly.
  6047. (sha1Sum): Added virtual keyword explicitly.
  6048. (writeData): Added virtual keyword explicitly.
  6049. (readData): Added virtual keyword explicitly.
  6050. (setFileAllocator): New function.
  6051. * src/DefaultPieceStorage.h
  6052. (FileAllocator.h): New include.
  6053. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6054. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6055. * src/FileProgressMonitor.h: New class.
  6056. To compile aria2 on PC-BSD:
  6057. * src/DefaultBtContext.cc
  6058. (libgen.h): New include.
  6059. To fix memory leak:
  6060. * src/Exception.h
  6061. (~Exception): Delete cause. Fixed memory leak.
  6062. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6063. Rewritten a portion of bittorrent implementation:
  6064. * src/BtMessageValidator.h: New class.
  6065. * src/BtBitfieldMessageValidator.h: New class.
  6066. * src/BtHandshakeMessageValidator.h: New class.
  6067. * src/BtRequestMessageValidator.h: New class.
  6068. * src/BtSuggestPieceMessageValidator.h: New class.
  6069. * src/BtAllowedFastMessageValidator.h: New class.
  6070. * src/BtRejectMessageValidator.h: New class.
  6071. * src/BtCancelMessageValidator.h: New class.
  6072. * src/BtPieceMessageValidator.h: New class.
  6073. * src/BtHaveMessageValidator.h: New class.
  6074. * src/BtEventListener.h: New class.
  6075. * src/AbstractBtEventListener.h: New class.
  6076. * src/BtEvent.h: New class.
  6077. * src/BtChokingEvent.h: New class.
  6078. * src/BtChokedEvent.h: New class.
  6079. * src/BtCancelSendingPieceEvent.h: New class.
  6080. * src/BtAbortOutstandingRequestEvent.h: New class.
  6081. * src/Randomizer.h: New class.
  6082. * src/SimpleRandomizer.h: New class.
  6083. * src/BtMessage.h: New class.
  6084. * src/AbstractBtMessage.h: New class.
  6085. * src/SimpleBtMessage.h: New class.
  6086. * src/BtHaveMessage.h: New class.
  6087. * src/BtInterestedMessage.h: New class.
  6088. * src/BtAllowedFastMessage.h: New class.
  6089. * src/BtUnchokeMessage.h: New class.
  6090. * src/BtCancelMessage.h: New class.
  6091. * src/BtNotInterestedMessage.h: New class.
  6092. * src/BtChokeMessage.h: New class.
  6093. * src/BtHaveNoneMessage.h: New class.
  6094. * src/BtHandshakeMessage.h: New class.
  6095. * src/BtSuggestPieceMessage.h: New class.
  6096. * src/BtHaveMessage.h: New class.
  6097. * src/BtPieceMessage.h: New class.
  6098. * src/BtHaveAllMessage.h: New class.
  6099. * src/BtKeepAliveMessage.h: New class.
  6100. * src/BtPortMessage.h: New class.
  6101. * src/BtRejectMessage.h: New class.
  6102. * src/BtBitfieldMessage.h: New class.
  6103. * src/BtRequestMessage.h: New class.
  6104. * src/DefaultBtRequestFactory.h: New class.
  6105. * src/DefaultBtMessageReceiver.h: New class.
  6106. * src/BtInteractive.h: New class.
  6107. * src/BtMessageDispatcher.h: New class.
  6108. * src/DefaultBtMessageDispatcher.h: New class.
  6109. * src/DefaultBtInteractive.h: New class.
  6110. * src/BitfieldManFactory.h: New class.
  6111. * src/HandleRegistry.h: New class.
  6112. * src/BtMessageFactory.h: New class.
  6113. * src/BtMessageReceiver.h: New class.
  6114. * src/DefaultBtMessageFactory.h: New class.
  6115. * src/PeerObject.h: New class.
  6116. * src/BtRequestFactory.h: New class.
  6117. * src/SuggestPieceMessage.h: Removed.
  6118. * src/PortMessage.h: Removed.
  6119. * src/SuggestPieceMessage.h: Removed.
  6120. * src/KeepAliveMessage.h: Removed.
  6121. * src/HandshakeMessage.h: Removed.
  6122. * src/PeerInteraction.h: Removed.
  6123. * src/UnchokeMessage.h: Removed.
  6124. * src/PieceMessage.h: Removed.
  6125. * src/RequestMessage.h: Removed.
  6126. * src/InterestedMessage.h: Removed.
  6127. * src/HaveMessage.h: Removed.
  6128. * src/CancelMessage.h: Removed.
  6129. * src/RejectMessage.h: Removed.
  6130. * src/AllowedFastMessage.h: Removed.
  6131. * src/HaveNoneMessage.h: Removed.
  6132. * src/SimplePeerMessage.h: Removed.
  6133. * src/HaveAllMessage.h: Removed.
  6134. * src/BitfieldMessage.h: Removed.
  6135. * src/PeerMessageFactory.h: Removed.
  6136. * src/NotInterestedMessage.h: Removed.
  6137. * src/ChokeMessage.h: Removed.
  6138. * src/PeerMessage.h: Removed.
  6139. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6140. To know root cause of exception:
  6141. * src/Exception.h
  6142. (cause): New variable.
  6143. (Exception): Added a parameter.
  6144. (getMsg): Return const reference to msg.
  6145. (getCause): New function.
  6146. * src/DlRetryEx.h
  6147. (DlRetryEx): Added a parameter 'cause'.
  6148. Added an overloaded constructor.
  6149. (DlAbortEx): Added a parameter 'cause'.
  6150. Added an overloaded constructor.
  6151. * src/SimpleLogger.cc
  6152. (writeLog): Log nested exception messages recursively.
  6153. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6154. * src/DefaultBtProgressInfoFile.cc
  6155. (load): Fixed memory leak when the infohash doesn't match.
  6156. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. * src/DefaultPeerStorage.cc
  6158. (calculateStat): Simplified the code by combining 2 loops into 1.
  6159. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  6161. for BitTorrent download:
  6162. * src/PeerAbstractCommand.cc
  6163. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  6164. * src/main.cc:
  6165. (timeoutSpecified): Removed.
  6166. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  6167. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  6168. * src/TorrentRequestInfo.cc
  6169. (timeoutSpecified): Removed.
  6170. (torrentHandler): Removed timeoutSpecified and the adjustment of
  6171. timeout value.
  6172. * src/prefs.h
  6173. (PREF_BT_TIMEOUT): New definition.
  6174. Delete unused variables:
  6175. * src/TorrentRequestInfo.cc
  6176. (requestInfo): Removed.
  6177. Move setSignalHander to Util::setGlobalSignalHandler:
  6178. * src/TorrentRequestInfo.cc:
  6179. setSignalHander -> Util::setGlobalSignalHandler
  6180. * src/main.cc
  6181. (setSignalHander): Removed.
  6182. (main): setSignalHander -> Util::setGlobalSignalHandler
  6183. * src/Util.h
  6184. (setGlobalSignalHandler): New function.
  6185. * src/Util.cc
  6186. (setGlobalSignalHandler): New function.
  6187. * src/UrlRequestInfo.cc:
  6188. setSignalHander -> Util::setGlobalSignalHandler
  6189. Reset peer status in order to exit gracefully:
  6190. * src/PeerAbstractCommand.cc
  6191. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  6192. To fix the bug that causes the number of bytes uploaded is not saved
  6193. to .aria2 file:
  6194. * src/DefaultPeerStorage.h
  6195. (removedPeerSessionDownloadLength): New variable.
  6196. (removedPeerSessionUploadLength): New variable.
  6197. * src/DefaultPeerStorage.cc
  6198. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  6199. removedPeerSessionUploadLength(0).
  6200. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  6201. through all peers, and then add removedPeerSessionDownloadLength(
  6202. removedPeerSessionUploadLength) to it.
  6203. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  6204. (to) the peer to removedPeerSessionDownloadLength
  6205. (removedPeerSessionUploadLength).
  6206. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. To add Metalink location option:
  6208. * src/MetalinkRequestInfo.cc
  6209. (execute): Call MetalinkEntry::setLocationPreference()
  6210. * src/main.cc
  6211. (showUsage): Added the help message for --metalink-location option.
  6212. (main): Added --metalink-location option.
  6213. * src/prefs.h
  6214. (PREF_METALINK_LOCATION): New definition.
  6215. * src/MetalinkEntry.cc
  6216. (AddLocationPreference): New function object.
  6217. (setLocationPreference): New function.
  6218. * src/Xml2MetalinkProcessor.cc
  6219. (getResource): Set location attribute to MetalinkResource
  6220. To show URLs to download
  6221. * src/UrlRequestInfo.h
  6222. (printUrls): New function.
  6223. To add multiple <file> Metalink support:
  6224. * src/MetalinkEntry.h
  6225. (MetalinkResources): Removed.
  6226. (setLocationPreference): New function.
  6227. (MetalinkEntryHandle): New type definition.
  6228. (MetalinkEntries): New type definition.
  6229. * src/Xml2MetalinkProcessor.h
  6230. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6231. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6232. (parseFile): Metalinker* -> MetalinkerHandle
  6233. * src/UrlRequestInfo.h
  6234. (execute): RequestInfo* -> RequestInfos
  6235. * src/MetalinkRequestInfo.cc
  6236. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  6237. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  6238. (execute): RequestInfo* -> RequestInfos
  6239. Added multiple <file> support. Print filename when it is queued.
  6240. * src/MetalinkRequestInfo.h
  6241. (execute): RequestInfo* -> RequestInfos
  6242. (getDownloadEngine): Removed.
  6243. * src/RequestInfo.h
  6244. (RequestInfoHandle): New type definition.
  6245. (RequestInfos): New type definition.
  6246. (execute): RequestInfo* -> RequestInfos
  6247. (getDownloadEngine): Removed.
  6248. * src/MetalinkResource.h
  6249. (MetalinkResourceHandle): New type definition.
  6250. (MetalinkResources): New type definition.
  6251. * src/MetalinkEntry.cc
  6252. (~MetalinkEntry): Removed the deletion of the elements of resources,
  6253. because the element is now of type MetalinkResourceHandle.
  6254. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  6255. (Supported): MetalinkResource* -> MetalinkResourceHandle
  6256. (dropUnsupportedResource): Removed the deletion of the elements of
  6257. resources because the element is now of type MetalinkResourceHandle.
  6258. * src/Xml2MetalinkProcessor.cc
  6259. (parseFile): Metalinker* -> MetalinkerHandle
  6260. MetalinkEntry* -> MetalinkEntryHandle
  6261. Removed try-catch block.
  6262. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6263. MetalinkResource* -> MetalinkResourceHandle
  6264. Removed try-catch block.
  6265. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6266. Free result by using xmlXPathFreeObject()
  6267. * src/Metalinker.cc
  6268. (~Metalinker): Removed the deletion of entries.
  6269. MetalinkEntry* -> MetalinkEntryHandle
  6270. (queryEntry): Add multiple <file> Metalink support.
  6271. * src/Metalinker.h
  6272. (MetalinkEntries): Removed.
  6273. (queryEntry): MetalinkEntry* -> MetalinkEntries
  6274. * src/MetalinkProcessor.h
  6275. (parseFile): Metalinker* -> MetalinkerHandle
  6276. Bug fixes:
  6277. * src/PeerChokeCommand.cc
  6278. (execute): cat01->cat02
  6279. * src/DefaultPieceStorage.cc
  6280. (DefaultPieceStorage): Added diskAdaptor(0)
  6281. * src/TrackerWatcherComand.cc:
  6282. (execute): Use btAnnounce->noMoreAnnounce()
  6283. to determin whether the function returns true or not.
  6284. * src/TrackerUpdateCommand.cc:
  6285. (execute): Use btAnnounce->noMoreAnnounce()
  6286. to determin whether the function returns true or not.
  6287. * src/FtpConnection.cc
  6288. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  6289. This is the fix of the busy loop bug.
  6290. * src/DownloadCommand.cc
  6291. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  6292. cached PeerStat.
  6293. The value of "name" entry in torrent file is now set by
  6294. *DiskAdaptor::setTopDir(...) methods.
  6295. * src/MultiDiskAdaptor.h
  6296. (topDir): New variable.
  6297. (setTopDir): New function.
  6298. (getTopDir): New function.
  6299. * src/MultiDiskAdaptor.cc
  6300. (getFilePath): Concat storDir, "/" and topDir.
  6301. (mkdir): Use getFilePath() to get the directory path for output.
  6302. * src/DefaultPieceStorage.cc
  6303. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  6304. CopyDiskAdaptor.
  6305. * src/CopyDiskAdaptor.h
  6306. (topDir): New variable.
  6307. (setTopDir): New function.
  6308. (getTopDir): New function.
  6309. * src/CopyDiskAdaptor.cc
  6310. (fixFilename): Updated.
  6311. Misc
  6312. * src/UrlRequestInfo.h
  6313. (e): Removed.
  6314. (UrlRequestInfo): Removed e.
  6315. (getDownloadEngine): Removed.
  6316. * src/UrlRequestInfo.cc
  6317. (handler): Rewritten.
  6318. (printUrls): New function.
  6319. (execute): Call printUrls().
  6320. * src/HandshakeMessage.cc
  6321. (check): peerinteraction->getBtContext() -> btContext
  6322. * src/PeerInteraction.h
  6323. (getBtContext): Removed.
  6324. * src/TorrentRequestInfo.h
  6325. (execute): RequestInfo* -> RequestInfos
  6326. (getDownloadEngine): Removed.
  6327. * src/TorrentRequestInfo.cc
  6328. (haltRequested): Removed.
  6329. (btHaltRequested): New variable.
  6330. (torrentHandler): haltRequested -> btHaltRequested
  6331. (execute): RequestInfo* -> RequestInfos
  6332. * src/TorrentConsoleDownloadEngine.cc
  6333. (afterEachIteration): haltRequested -> btHaltRequested.
  6334. * src/ConsoleDownloadEngine.h
  6335. (initStatistics): Added virtual.
  6336. (calculateStatistics): Added virtual.
  6337. (onEndOfRun): Added virtual.
  6338. (afterEachIteration): Added virtual.
  6339. * src/ConsoleDownloadEngine.cc
  6340. (haltRequested): New variable.
  6341. (afterEachIteration): New function.
  6342. * src/main.cc
  6343. (requestInfo): Removed.
  6344. * src/SegmentMan.cc
  6345. (findSlowerSegmentEntry): Refactored.
  6346. * Release 0.9.0
  6347. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6348. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  6349. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  6350. * src/TorrentMan.h: Removed.
  6351. * src/TorrentMan.cc: Removed.
  6352. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  6353. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  6354. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  6355. * src/PeerAbstractCommand.cc: Use btRuntime.
  6356. * src/BtContextAwareCommand.h: New class.
  6357. * src/FileEntry.h: Added accessor methods for following variables.
  6358. (path): Made private.
  6359. (length): Made private.
  6360. (offset): Made private.
  6361. (extracted): Made private.
  6362. (requested): Made private.
  6363. (FileEntries): New definition.
  6364. (FileEntryHandle): New definition.
  6365. * src/FileEntry.cc: New file.
  6366. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  6367. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  6368. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  6369. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  6370. * src/PieceStorage.h: New file.
  6371. * src/PeerInteractionCommand.h: Use btContext.
  6372. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  6373. btRuntime.
  6374. * src/DefaultBtProgressInfoFile.h: New file.
  6375. * src/DefaultBtProgressInfoFile.cc: New file.
  6376. * src/File.cc
  6377. (Util.h): New include.
  6378. (mkdirs): New function.
  6379. * src/MultiDiskAdaptor.h
  6380. (mkdir): New function.
  6381. * src/PeerListProcessor.h
  6382. (Peers): Removed.
  6383. * src/PeerInteraction.h
  6384. (torrentMan): Removed.
  6385. (btContext): New variable.
  6386. (peerStorage): New variable.
  6387. (pieceStorage): New variable.
  6388. (btAnnounce): New variable.
  6389. (getTorrentMan): Removed.
  6390. (getBtContext): New function.
  6391. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  6392. btAnnounce.
  6393. * src/HandshakeMessage.h
  6394. (TorrentMan.h): Removed.
  6395. * src/HandshakeMessage.cc: Use btContext.
  6396. * src/DefaultBtAnnounce.cc: New file.
  6397. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  6398. * src/DefaultPieceStorage.cc: New file.
  6399. * src/DefaultBtContext.h: New file.
  6400. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  6401. Use the accessor methods of FileEntry.
  6402. * src/CookieBox.cc: Updated to use Util::slice().
  6403. * src/PieceMessage.cc: Use btContext, pieceStorage.
  6404. * src/common.h (SharedHandle.h): New include.
  6405. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  6406. pieceStorage.
  6407. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  6408. * src/DiskAdaptor.h
  6409. (topDir): Removed.
  6410. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  6411. (setTopDir): Removed.
  6412. (getTopDir): Removed.
  6413. * src/BtContext.h: New file.
  6414. * src/DefaultPeerStorage.h: New file.
  6415. * src/PieceMessage.h (TorrentMan.h): Removed.
  6416. * src/RequestMessage.h (TorrentMan.h): Removed.
  6417. * src/TorrentDownloadEngine.h
  6418. (uploadLength): New variable.
  6419. (btContext): New variable.
  6420. (btRuntime): New variable.
  6421. (pieceStorage): New variable.
  6422. (peerStorage): New variable.
  6423. (btAnnounce): New variable.
  6424. (btProgressInfoFile): New variable.
  6425. (torrentMan): Removed.
  6426. (setBtContext): New function.
  6427. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  6428. peerStorage, btAnnounce, btProgressInfoFile.
  6429. * src/Piece.h
  6430. (toString): New function.
  6431. (Pieces): New type definition.
  6432. * src/Peer.h
  6433. (active): New variable.
  6434. (Peer): Added active.
  6435. (activate): Set active to true.
  6436. (deactivate): Set active to false.
  6437. (isActive): New function.
  6438. (Peers): New type definition.
  6439. * src/DirectDiskAdaptor.cc
  6440. (getFilePath): Use the accessor methods of FileEntry.
  6441. * src/TorrentConsoleDownloadEngine.h
  6442. (afterEachIteration): New function.
  6443. * src/TorrentConsoleDownloadEngine.cc
  6444. (haltRequested): New variable.
  6445. (sendStatistics): Use pieceStorage, btRuntime.
  6446. (afterEachIteration): New function.
  6447. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  6448. * src/Directry.h
  6449. (Directory): New function.
  6450. (DirectoryHandle): New type definition.
  6451. * src/BtProgressInfoFile.h: New file.
  6452. * src/RequestMessage.cc: Use pieceStorage.
  6453. * src/BtRuntime.h: New file.
  6454. * src/DefaultBtContext.cc: New file.
  6455. * src/BitfieldMan.h
  6456. (getCompletedLength): New function(private).
  6457. (getCompletedLength): New function.
  6458. (getFilteredCompletedLength): New function.
  6459. * src/BitfieldMan.h
  6460. (getCompletedLength): New function(private).
  6461. (getCompletedLength): New function.
  6462. (getFilteredCompletedLength): New function.
  6463. * src/MultiDiskAdaptor.cc
  6464. (mkdir): New function.
  6465. (openFile): Call mkdir().
  6466. (initAndOpenFile): Call mkdir().
  6467. * src/CancelMessage.h
  6468. (TorrentMan.h): Removed.
  6469. * src/RejectMessage.h
  6470. (TorrentMan.h): Removed.
  6471. * src/DownloadEngineFactory.cc
  6472. (DefaultPieceStorage.h): New include.
  6473. (DefaultPeerStorage.h): New include.
  6474. (DefaultBtAnnounce.h): New include.
  6475. (DefaultBtProgressInfoFile.h): New include.
  6476. (newTorrentConsoleEngine): Rewritten.
  6477. * src/ShareRatioSeedCriteria.h
  6478. (torrentMan): Removed.
  6479. (btContext): New variable.
  6480. (peerStorage): New variable.
  6481. (btRuntime): New variable.
  6482. (evaluate): Use btContext, btRuntime, peerStorage.
  6483. * src/AnnounceTier.h: New file.
  6484. * src/BtAnnounce.h: New file.
  6485. * src/BtRegistry.h: New file.
  6486. * src/PeerInitiateConnectionCommand.h: Added btContext.
  6487. * src/PeerConnection.h (TorrentMan.h): Removed.
  6488. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  6489. * src/Util.h
  6490. (slice): Added an argument.
  6491. * src/Util.cc
  6492. (slice): Added an argument to control whether trim is made or not.
  6493. * src/PeerStorage.h: New file.
  6494. * src/BtRegistry.cc: New file.
  6495. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  6496. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  6497. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  6498. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  6499. * src/TorrentRequestInfo.h
  6500. (e): Removed.
  6501. (showFileEntry): Added an argument.
  6502. (getDownloadEngine): Return 0.
  6503. * src/DefaultBtAnnounce.h: New file.
  6504. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  6505. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  6506. * src/PeerMessageFactory.h
  6507. (btContext): New variable.
  6508. (pieceStorage): New variable.
  6509. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  6510. btAnnounce.
  6511. * src/DiskAdaptor.cc
  6512. (DiskAdaptor): Removed topDir.
  6513. (~DiskAdaptor): Removed topDir.
  6514. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  6515. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  6516. * src/File.h (mkdirs): New function.
  6517. * src/DefaultPeerStorage): New file.
  6518. * src/DownloadEngineFactory.h
  6519. (newTorrentConsoleEngine): Use btContext.
  6520. * src/BtContextAwareCommand.cc: New file.
  6521. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  6522. * src/PeerMessage.h
  6523. (btContext): New variable.
  6524. (peerStorage): New variable.
  6525. (pieceStorage): New variable.
  6526. (setBtContext): New function.
  6527. * src/Directry.cc
  6528. (Directory): New function.
  6529. (createDir): Do nothing if name.size() == 0.
  6530. * src/AnnounceList.h
  6531. (AnnounceTier): Removed.
  6532. (AnnounceTiers): Removed.
  6533. * src/DefaultPieceStorage.h: New file.
  6534. * src/Piece.cc (toString): New function.
  6535. To fix typo:
  6536. * src/main.cc (showVersion): Fixed typo.
  6537. To fix compile warning:
  6538. * src/DelegatingPeerListProcessor.cc
  6539. (canHandle): Added "return false".
  6540. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  6542. make the process of announce request testable.
  6543. * src/TrackerWatcherCommand.h
  6544. (TimeA2.h): Removed.
  6545. (interval): Removed.
  6546. (checkPoint): Removed.
  6547. (createRequestCommand): Added an argument 'url'.
  6548. (TrackerWatherCommand): Removed interval.
  6549. (createCommand): New function.
  6550. * src/DownloadEngineFactory.cc
  6551. (newTorrentConsoleEngine): Updated according to the changes in
  6552. TrackerWatherCommand.
  6553. * src/TorrentMan.cc
  6554. (DelegatingPeerListProcessor.h): New includes.
  6555. (TorrentMan): Added the initialization of announceInterval.
  6556. (isStoppedAnnounceReady): New function.
  6557. (isCompletedAnnounceReady): New function.
  6558. (isDefaultAnnounceReady): New function.
  6559. (isAnnounceReady): New function.
  6560. (getAnnounceUrl): New function.
  6561. (announceStart): New function.
  6562. (announceFailure): New function.
  6563. (announceSuccess): New function.
  6564. (isAllAnnounceFailed): New function.
  6565. (resetAnnounce): New function.
  6566. (processAnnounceResponse): New function.
  6567. (needMorePeerConnection): New function.
  6568. (noMoreAnnounce): New function.
  6569. * src/TrackerUpdateCommand.h
  6570. (getTrackerResponse): int->size_t
  6571. * src/TorrentMan.h
  6572. (isStoppedAnnounceReady): New function.
  6573. (isCompletedAnnounceReady): New function.
  6574. (isDefaultAnnounceReady): New function.
  6575. (announceInterval): New variable.
  6576. (isAnnounceReady): New function.
  6577. (getAnnounceUrl): New function.
  6578. (announceStart): New function.
  6579. (announceFailure): New function.
  6580. (announceSuccess): New function.
  6581. (isAllAnnounceFailed): New function.
  6582. (resetAnnounce): New function.
  6583. (processAnnounceResponse): New function.
  6584. (needMorePeerConnection): New function.
  6585. (noMoreAnnounce): New function.
  6586. * src/TrackerWatcherCommand.cc
  6587. (TrackerWatherCommand): Removed interval and checkPoint.
  6588. (execute): Rewritten.
  6589. (createCommand): New function.
  6590. (createRequestCommand): Rewritten.
  6591. * src/TrackerUpdateCommand.cc
  6592. (MetaFileUtil.h): Removed.
  6593. (DelegatingPeerListProcessor.h): Removed.
  6594. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  6595. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6596. Request -> RequestHandle:
  6597. * src/HttpResponseCommand.h: Request->RequestHandle
  6598. * src/AbstractCommand.cc: Request->RequestHandle
  6599. * src/HttpDownloadCommand.cc: Request->RequestHandle
  6600. * src/HttpRequestCommand.cc: Request->RequestHandle
  6601. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  6602. * src/AbstractCommand.h: Request->RequestHandle
  6603. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  6604. * src/HttpResponseCommand.cc: Request->RequestHandle
  6605. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  6606. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  6607. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  6608. * src/HttpConnection.h: Request->RequestHandle
  6609. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  6610. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  6611. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  6612. * src/DownloadCommand.h: Request->RequestHandle
  6613. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  6614. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  6615. * src/HttpRequestCommand.h: Request->RequestHandle
  6616. * src/FtpNegotiateCommand.h: Request->RequestHandle
  6617. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  6618. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  6619. * src/HttpDownloadCommand.h: Request->RequestHandle
  6620. * src/FtpConnection.cc: Request->RequestHandle
  6621. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  6622. * src/UrlRequestInfo.cc: Request->RequestHandle
  6623. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  6624. * src/HttpConnection.h: Request->RequestHandle
  6625. * src/DownloadCommand.cc: Request->RequestHandle
  6626. * src/FtpConnection.h: Request->RequestHandle
  6627. * src/FtpDowndloadCommand.h: Request->RequestHandle
  6628. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  6629. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  6630. * src/Request.h
  6631. (SharedHandle.h): New include.
  6632. (RequestHandle): New type definition.
  6633. (Requests): Redefined.
  6634. To add MULTITRACKER support:
  6635. * src/TrackerWatcherCommand.h
  6636. (createRequestCommand): New function.
  6637. * src/DownloadEngineFactory.cc
  6638. (newTorrentConsoleEngine): Removed req.
  6639. * src/prefs.h
  6640. (PREF_TRACKER_MAX_TRIES): New definition.
  6641. * src/TorrentMan.cc
  6642. (TorrentMan): Removed req. Added trackerNumTry.
  6643. (~TorrentMan): Removed req.
  6644. (setupInternal1): Added announceList.
  6645. * src/TorrentRequestInfo.cc
  6646. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  6647. announces is now specified by PREF_TRACKER_MAX_TRIES.
  6648. * src/main.cc
  6649. (main): Added PREF_TRACKER_MAX_TRIES.
  6650. * src/TorrentMan.h
  6651. (Request.h): Removed.
  6652. (AnnounceList.h): New include.
  6653. (trackerNumTry): New variable.
  6654. (req): Removed.
  6655. (announceList): New variable.
  6656. * src/TrackerWatcherCommand.cc
  6657. (execute): Rewritten.
  6658. (createRequestCommand): New function.
  6659. * src/TrackerUpdateCommand.cc
  6660. (execute): Updated with the use of AnnounceList.
  6661. * src/AnnounceList.cc: New class.
  6662. * src/AnnounceList.h: New class.
  6663. To fix typo:
  6664. * src/prefs.h
  6665. (PREF_MAX_TRIES): max_try->max_tries
  6666. To not to decode "+" as space in URL decode:
  6667. * src/Util.cc
  6668. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  6669. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6670. To add timeout to async name resolution:
  6671. * src/AbstractCommand.h
  6672. (nameResolveFinished): New function. This is not elegant way. It needs
  6673. to be more refined.
  6674. (nameResolverCheck): New variable.
  6675. * src/AbstractCommand.cc
  6676. (AbstractCommand): Added nameResolverCheck.
  6677. (execute): Added the check whether the name resolution has finished.
  6678. (setNameResolverCheck): Set nameResolverCheck to true.
  6679. (disableNameResolverCheck): Set nameResolverCheck to false.
  6680. (nameResolverFinished): New function.
  6681. * src/FtpInitiateConnectionCommand.h
  6682. (nameResolverFinished): New function.
  6683. * src/FtpInitiateConnectionCommand.cc
  6684. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  6685. * src/HttpInitiateConnectionCommand.h
  6686. (nameResolverFinished): New function.
  6687. * src/HttpInitiateConnectionCommand.cc
  6688. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  6689. * src/prefs.h
  6690. (PREF_DNS_TIMEOUT): New definition.
  6691. * src/main.cc
  6692. (main): Added PREF_DNS_TIMEOUT.
  6693. To add the support for a non-compact response from a tracker:
  6694. * src/PeerListProcessor.h: New class.
  6695. * src/DefaultPeerListProcessor.h: New class.
  6696. * src/DefaultPeerListProcessor.cc: New class.
  6697. * src/CompactPeerListProcessor.h: New class.
  6698. * src/CompactPeerListProcessor.cc: New class.
  6699. * src/DelegatingPeerListProcessor.h: New class.
  6700. * src/DelegatingPeerListProcessor.cc: New class.
  6701. * src/TorrentMan.cc
  6702. (addPeer): New function(overload).
  6703. (addPeer): Delete unused peers only when new peer is added.
  6704. * src/TorrentMan.h
  6705. (PeerListProcessor.h): Included.
  6706. (Peers): Removed.
  6707. (addPeer): New function(overload).
  6708. * src/TrackerUpdateCommand.cc
  6709. (netinet/in.h): Removed.
  6710. (DelegatingPeerListProcessor.h): Included.
  6711. (execute): Updated to use DelegatingPeerListProcessor.
  6712. To fix the memory leak in TorrentMan::peers:
  6713. * src/PeerAbstractCommand.cc
  6714. (onAbort): Added peer->resetStatus().
  6715. * src/Peer.h
  6716. (resetStatus): Made public.
  6717. To improve the precision of the speed calculation:
  6718. * src/SpeedCalc.h
  6719. (nextInterval): New variable.
  6720. * src/SpeedCalc.cc
  6721. (reset): Added nextInterval.
  6722. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  6723. (changeSw): Set nextInterval to 15 seconds relative to the current
  6724. instant time.
  6725. * src/main.cc
  6726. (showVersion): Updated.
  6727. (showUsage): Updated.
  6728. * Release 0.8.1
  6729. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. * src/main.cc
  6731. (showUsage): Commented out --min-segment-size option.
  6732. (main): Commented out --min-segment-size option.
  6733. * Release 0.8.0
  6734. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. * src/*.{h,cc}:
  6736. Added an exception to the license which allows linking with OpenSSL.
  6737. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. * src/AbstractCommand.cc
  6739. (execute): Check whether the download has finished before checking
  6740. socket status.
  6741. Return true if peerStat->getStatus() == REQUEST_IDLE.
  6742. Do not exit even if no segment is available.
  6743. * src/prefs.h
  6744. (PREF_STARTUP_IDLE_TIME): New definition.
  6745. * src/PeerInteractionCommand.cc
  6746. (executeInternal): Removed max speed limit. Because it performs bad.
  6747. (receiveMessages): Added max speed limit. This was better than above,
  6748. but still a little bit to be desired. Sometimes the download speed
  6749. became much faster than I specified.
  6750. * src/SpeedCalc.h
  6751. (start): New variable.
  6752. (accumulatedLength): New variable.
  6753. (getAvgSpeed): New function.
  6754. * src/SpeedCalc.cc
  6755. (reset): Added start, accumulatedLength.
  6756. (update): Added calculation of an average speed.
  6757. (getAvgSpeed): New function.
  6758. * src/DownloadCommand.h
  6759. (sw): Removed.
  6760. * src/main.cc
  6761. (main): Added PREF_STARTUP_IDLE_TIME.
  6762. * src/PeerStat.h
  6763. (STATUS): Added REQUEST_IDLE.
  6764. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  6765. (getAvgDownloadSpeed): New function
  6766. (requestIdle): New function.
  6767. * src/SegmentMan.h
  6768. (SegmentEntryHandle): New type definition.
  6769. (SegmentEntries): Now holds SegmentEntryHandle.
  6770. (findSlowerSegmentEntry): New funtion.
  6771. * src/SegmentMan.cc
  6772. (save): Updated according to the changes in SegmentEntries.
  6773. (read): Updated according to the changes in SegmentEntries.
  6774. (FindSegmentEntryByIndex): Updated according to the changes in
  6775. SegmentEntries.
  6776. (FindSegmentEntryByCuid): Updated according to the changes in
  6777. SegmentEntries.
  6778. (checkoutSegment): Updated according to the changes in SegmentEntries.
  6779. (onNullBitfield): Updated according to the changes in SegmentEntries.
  6780. Renamed uitr as itr.
  6781. (findSlowerSegmentEntry): New function.
  6782. (getSegment): Updated according to the changes in SegmentEntries.
  6783. Added the feature that cancels the segment with slow server and fast
  6784. one takes it over.
  6785. (cancelSegment): Updated according to the changes in SegmentEntries.
  6786. (getDownloadLength): Updated according to the changes in
  6787. SegmentEntries.
  6788. (init): Assigned 0 to bitfield after deleting it.
  6789. * src/DownloadCommand.cc
  6790. (STARTUP_IDLE_TIME): Removed.
  6791. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  6792. * src/PeerChokeCommand.cc
  6793. (optUnchokingPeer): Updated according to the changes in Peer.
  6794. (ResetDelta): Removed.
  6795. (UploadFaster): Updated according to the changes in Peer.
  6796. (DownloadFaster): Updated according to the changes in Peer.
  6797. (execute): I clarify the meaning of "upload" and "download" here.
  6798. "upload" means the transfer from localhost to remote host.
  6799. "download" means the transfer from remote host to localhost.
  6800. Based on this rule, I swapped orderByUploadRate and
  6801. orderByDownloadRate.
  6802. * src/PeerInteractionCommand.cc
  6803. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  6804. (executeInternal): Removed the argument of
  6805. peerInteraction->sendMessages().
  6806. (receiveMessages): Rewritten download speed limit.
  6807. (sendKeepAlive): Removed peerInteraction->sendMessages().
  6808. * src/HttpResponseCommand.cc
  6809. (handleDefaultEncoding): If file size is unknown in torrent request,
  6810. do not call segmentMan->initBitfield() here.
  6811. Disabled persistent connection feature in torrent request.
  6812. * src/UrlRequestInfo.h
  6813. (UrlRequestInfo): Removed const qualifier from option.
  6814. * src/TorrentMan.h
  6815. (TransferStat): New class.
  6816. (deltaDownloadLength): Removed.
  6817. (deltaUploadLength): Removed.
  6818. (addDeltaDownloadLength): Removed.
  6819. (getDeltaDownloadLength): Removed.
  6820. (resetDeltaDownloadLength): Removed.
  6821. (addDeltaUploadLength): Removed.
  6822. (getDeltaUploadLength): Removed.
  6823. (resetDeltaUploadLength): Removed.
  6824. (addActivePeer): Added peer->activate().
  6825. (deleteActivePeer): Added peer->deactivate().
  6826. (calculateStat): New function.
  6827. * src/TorrentMan.cc
  6828. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  6829. (calculateStat): New function.
  6830. * src/PeerInteraction.h
  6831. (uploadLimit): Removed.
  6832. (option): New variable.
  6833. (setUploadLimit): Removed.
  6834. (getUploadSpeed): Removed.
  6835. (sendMessages): Removed the argument "currentUploadSpeed".
  6836. * src/PeerInteraction.cc
  6837. (prefs.h): Included.
  6838. (PeerInteraction): Removed uploadLimit. Added option.
  6839. (sendMessages): Rewritten upload speed limit.
  6840. (sendHandshake): Removed the argument from sendMessages().
  6841. (sendBitfield): Removed the argument from sendMessages().
  6842. * src/PeerAbstractCommand.cc
  6843. (execute): Commented out the portion of upload limit.
  6844. (onAbort): Removed peer->resetStatus().
  6845. * src/TorrentRequestInfo.cc
  6846. (timeoutSpecified): Declared extern.
  6847. (execute): Set timeout to 180 if timeout is not specified by.
  6848. command-line.
  6849. * src/PieceMessage.cc
  6850. (receivedAction): Added peer->updateDownloadLength().
  6851. Removed peer->addPeerUpload().
  6852. Removed torrentMan->addDeltaDownloadLength().
  6853. (send): Added peer->updateUploadLength().
  6854. Removed peer->addPeerDownload().
  6855. Removed torrentMan->addDeltaUploadLength().
  6856. * src/main.cc
  6857. (timeoutSpecified): New variable.
  6858. (main): Set timeoutSpecified to false.
  6859. If the command-line option "--upload-limit" is specified, then
  6860. timeoutSpecified is set to true. This option will remain in the next
  6861. release, but be deprecated in the future release.
  6862. * src/TorrentRequestInfo.h
  6863. (TorrentRequestInfo): Removed const qualifier from op.
  6864. * src/PeerStat.h
  6865. (uploadSpeed): New variable.
  6866. (PeerStat): Added default value to cuid.
  6867. (calculateUploadSpeed): New function.
  6868. (updateUploadLength): New function.
  6869. (getMaxUploadSpeed): New function.
  6870. (getAvgUploadSpeed): New function.
  6871. (reset): Added uploadSpeed. Set status to IDLE.
  6872. * src/TorrentDownloadEngine.h
  6873. (cp): Declared as Time.
  6874. (sessionDownloadLengthArray): Removed.
  6875. (sessionUploadLengthArray): Removed.
  6876. (currentCp): Removed.
  6877. (lastCalcStat): New variable
  6878. (lastElapsed): Removed.
  6879. (sessionDownloadLength): Removed.
  6880. (calculateStat): New function.
  6881. * src/TorrentDownloadEngine.cc
  6882. (initStatistics): Removed lastElapsed, cp[],
  6883. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  6884. currentCp, sessionDownloadLength.
  6885. Added cp.reset() and lastCalcStat.reset().
  6886. (calculateSpeed): Changed the name of the argument.
  6887. (calculateStatistics): Rewritten.
  6888. (calculateStat): New function.
  6889. * src/Peer.h
  6890. (PeerStat.h): Included.
  6891. (peerUpload): Removed.
  6892. (peerDownload): Removed.
  6893. (peerStat): New variable.
  6894. (sessionUploadLength): New variable.
  6895. (sessionDownloadLength): New variable.
  6896. (deltaUpload): Removed.
  6897. (deltaDownload): Removed.
  6898. (resetStatus): Made private.
  6899. (Peer): Added sessionUploadLength, sessionDownloadLength.
  6900. Removed peerUpload, peerDownload.
  6901. (updateUploadLength): New function.
  6902. (addDeltaUpload): Removed.
  6903. (updateDownloadLength): New function.
  6904. (resetDeltaUpload): Removed.
  6905. (getDeltaUpload): Removed.
  6906. (addDeltaDownload): Removed.
  6907. (calculateUploadSpeed): New function.
  6908. (resetDeltaDownload): Removed.
  6909. (getDeltaDownload): Removed.
  6910. (calculateDownloadSpeed): New function.
  6911. (getSessionUploadLength): New function.
  6912. (getSessionDownloadLength): New function.
  6913. (activate): New function.
  6914. (deactivate): New function.
  6915. (addPeerUpload): Removed.
  6916. (setPeerUpload): Removed.
  6917. (getPeerUpload): Removed.
  6918. (addPeerDownload): Removed.
  6919. (setPeerDownload): Removed.
  6920. (getPeerDownload): Removed.
  6921. * src/Peer.cc
  6922. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  6923. * src/MetalinkRequestInfo.h
  6924. (MetalinkRequestInfo): Removed const qualifier from op.
  6925. * src/RequestInfo.h
  6926. (op): Removed const qualifier.
  6927. (RequestInfo): Removed const qualifier from op.
  6928. * src/prefs.h
  6929. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  6930. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  6931. * src/PeerInteractionCommand.cc
  6932. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  6933. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  6934. * src/PeerInteraction.cc
  6935. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  6936. * src/main.cc
  6937. (showUsage): Updated the description of "--lowest-speed-limit" option.
  6938. Added the description of "--max-download-limit" option.
  6939. Removed the description of "--upload-limit" option.
  6940. Added the description of "--max-upload-limit" option.
  6941. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  6942. Added "--max-download-limit" option and "--max-upload-limit" option.
  6943. Added the warning message if "--upload-limit" option is used.
  6944. * src/DownloadCommand.cc
  6945. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  6946. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. To rewrite segment download mechanism for HTTP/FTP download.
  6948. Use BitfieldMan to manage segment download.
  6949. * src/HttpResponseCommand.h
  6950. (executeInternal): Pass the reference of segment.
  6951. * src/AbstractCommand.cc
  6952. (prepareForRetry): Call segmentMan->cancelSegment here.
  6953. (onAbort): Call segmentMan->cancelSegment here.
  6954. * src/HttpDownloadCommand.cc
  6955. (prepareForNextSegment): New function.
  6956. * src/DownloadEngineFactory.cc
  6957. (newConsoleEngine): Removed splitter.
  6958. (newTorrentConsoleEngine): Removed splitter.
  6959. * src/Request.h
  6960. (segment): Renamed from seg.
  6961. * src/FtpInitiateConnectionCommand.h
  6962. (executeInternal): Pass the reference of segment.
  6963. * src/AbstractCommand.h
  6964. (executeInternal): Pass the reference of segment.
  6965. * src/pref.h
  6966. (PREF_SEGMENT_SIZE): New definition.
  6967. * src/HttpProxyRequestCommand.h
  6968. (executeInternal): Pass the reference of segment.
  6969. * src/HttpResponseCommand.cc
  6970. (checkResponse): Allowed status 206 when a request range starts 0.
  6971. (handleDefaultEncoding): Rewritten the code related to Segment.
  6972. (handleOtherEncoding): Rewritten the code related to Segment.
  6973. * src/SegmentMan.h
  6974. (SegmentEntry): New class.
  6975. (SegmentEntries): New type definition.
  6976. (bitfield): New variable.
  6977. (usedSegmentEntries): New variable.
  6978. (onNullBitfield): New function.
  6979. (checkoutSegment): New function.
  6980. (segments): Removed.
  6981. (splitter): Removed.
  6982. (unregisterId): Removed.
  6983. (getSegment): New function(overload)
  6984. (getDownloadedSize): Removed.
  6985. (cancelSegment): New function.
  6986. (completeSegment): New function.
  6987. (initBitfield): New function.
  6988. (hasSegment): New function.
  6989. (getDownloadLength): New function.
  6990. * src/BitfieldMan.h
  6991. (getStartIndex): New function.
  6992. (getEndIndex): New function.
  6993. (getMissingUnusedIndex): New function(overload).
  6994. (getSparseMissingUnusedIndex): New function.
  6995. * src/BitfieldMan.cc
  6996. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  6997. (getMissingUnusedIndex): New function(overload).
  6998. (Range): New class.
  6999. (getStartIndex): New function.
  7000. (getEndIndex): New function.
  7001. (getSparseMissingUnusedIndex): New function.
  7002. (isBitSetInternal): Return false if the given index is less than 0.
  7003. * src/HttpInitiateConnectionCommand.h
  7004. (executeInternal): Pass the reference of segment.
  7005. * src/FtpNegotiateCommand.h
  7006. (executeInternal): Pass the reference of segment.
  7007. * src/FtpNegotiateCommand.cc
  7008. (recvSize): Initialize bitfield here.
  7009. * src/FtpTunnelResponseCommand.h
  7010. (executeInternal): Pass the reference of segment.
  7011. * src/HttpConnection.cc
  7012. (createRequest): Rewritten range header processing.
  7013. * src/DownloadCommand.h
  7014. (executeInternal): Pass the reference of segment.
  7015. (prepareForRetry): Removed.
  7016. (prepareForNextSegment): Added an argument segment. Made it a virtual
  7017. function.
  7018. * src/main.cc
  7019. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  7020. * src/SegmentMan.cc
  7021. (SegmentMan): Added bitfield. Removed splitter.
  7022. (~SegmentMan): Added bitfield. Removed splitter.
  7023. (unregisterId): Removed.
  7024. (getSegment): Rewritten.
  7025. (updateSegment): Rewritten.
  7026. (save): Rewritten.
  7027. (read): Rewritten.
  7028. (finished): Rewritten.
  7029. (getDownloadedSize): Removed.
  7030. (initBitfield): New function.
  7031. (FindSegmentEntryByIndex): New function object.
  7032. (FindSegmentEntryByCuid): New function object.
  7033. (checkoutSegment): New function.
  7034. (onNullBitfield): New function.
  7035. (getSegment): New function(overload).
  7036. (CancelSegment): New function object.
  7037. (cancelSegment): New function.
  7038. (completeSegment): New function.
  7039. (hasSegment): New function.
  7040. (getDownloadLength): New function.
  7041. * src/FtpInitiateConnectionCommand.cc
  7042. (executeInternal): Load .aria2 file after hostname resolution finishes.
  7043. * src/Segment.h: Rewritten.
  7044. * src/Segment.cc (operator<<): New function.
  7045. * src/HttpDownloadCommand.h
  7046. (prepareForNextSegment): New function.
  7047. * src/Request.cc
  7048. (resetUrl): Made segment null.
  7049. * src/DownloadEngine.cc
  7050. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  7051. * src/HttpProxyRequestCommand.h
  7052. (executeInternal): Pass the reference of segment.
  7053. * src/DownloadCommand.cc
  7054. (executeInternal): Rewritten the code related to Segment.
  7055. (prepareForRetry): Removed.
  7056. (prepareForNextSegment): Rewritten.
  7057. * src/FtpTunnelResponseCommand.h
  7058. (executeInternal): Pass the reference of segment.
  7059. To add HTTP 1.1 persistent connection support(experimental)
  7060. * src/HttpRequestCommand.cc
  7061. (executeInternal): Disable keep alive if it is disabled by
  7062. configuration.
  7063. * src/Request.h
  7064. (keepAlive): New variable.
  7065. (isKeepAlive): New function.
  7066. (setKeepAlive): New function.
  7067. * src/pref.h
  7068. (PREF_HTTP_KEEP_ALIVE): New definition.
  7069. * src/HttpResponseCommand.cc
  7070. (executeInternal): Check the remote server supports keep alive.
  7071. * src/HttpConnection.cc
  7072. (createRequest): Send "Connection: close" only if keep alive is
  7073. disabled.
  7074. * src/main.cc
  7075. (main):
  7076. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  7077. To add max download speed limit:
  7078. * src/pref.h
  7079. (PREF_MAX_SPEED_LIMIT): New definition.
  7080. * src/PeerInteractionCommand.cc
  7081. (executeInternal): Added max download speed limit. Not tested yet.
  7082. * src/SegmentMan.h
  7083. (PeerStats): New type definition.
  7084. (peerStats): New variable.
  7085. (registerPeerStat): New function.
  7086. (FindPeerStat): New function object.
  7087. (getPeerStat): New function.
  7088. (calculateDownloadSpeed): New function.
  7089. * src/SpeedCalc.h: New class.
  7090. * src/SpeedCalc.cc: New class.
  7091. * src/main.cc
  7092. (main):
  7093. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  7094. download speed is not restricted).
  7095. * src/PeerStat.h: New class.
  7096. * src/SegmentMan.cc
  7097. (registerPeerStat): New function.
  7098. (calculateDownloadSpeed): New function.
  7099. * src/DownloadCommand.cc
  7100. (STARTUP_IDLE_TIME): New definition.
  7101. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  7102. downloadStart.
  7103. (~DownloadCommand): Call peerStat->downloadStop.
  7104. (executeInternal): Added download speed limitter. Rewritten lowest
  7105. speed limitter.
  7106. * src/HttpConnection.cc
  7107. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  7108. * src/AbstractCommand.cc
  7109. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  7110. Added hostname to the error message.
  7111. * src/ConsoleDownloadEngine.cc
  7112. (calculateStatistics): Initialize psize with dlSize.
  7113. * src/PieceMessage.cc
  7114. (receivedAction): Do not call peerInteraction->abortPiece here.
  7115. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  7116. * src/BitfieldMan.h
  7117. (clearAllUseBit): New function.
  7118. (setAllUseBit): New function.
  7119. * src/BitfieldMan.cc
  7120. (clearAllBit): Do not clear useBitfield here.
  7121. (clearAllUseBit): New function.
  7122. (setAllUseBit): New function.
  7123. * src/Piece.cc
  7124. (clearAllBlock): Call bitfield->clearAllUseBit().
  7125. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7126. To make filename URL-decoded:
  7127. * src/HttpResponseCommand.h: Updated doc.
  7128. * src/HttpResponseCommand.cc
  7129. (determinFilename): Made filename URL-decoded.
  7130. * src/FtpInitiateConnectionCommand.cc
  7131. (executeInternal): Made filename URL-decoded.
  7132. * src/Util.h (urldecode): New function.
  7133. * src/Util.cc (urldecode): New function.
  7134. To fix a bug that caused assertion failure in ares_strerror:
  7135. * src/NameResolver.cc (callback): Fixed the bug.
  7136. * Release 0.7.3
  7137. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7138. To add --seed-time and --seed-ratio command-line option:
  7139. * src/Option.h (getAsDouble): New function.
  7140. * src/Option.cc (getAsDouble): New function.
  7141. * src/SeedCheckCommand.h: New class.
  7142. * src/SeedCheckCommand.cc: New class.
  7143. * src/DownloadEngineFactory.cc
  7144. (SeedCheckCommand.h): Included.
  7145. (UnionSeedCriteria.h): Included.
  7146. (TimeSeedCriteria.h): Included.
  7147. (ShareRatioSeedCriteria.h): Included.
  7148. (newTorrentConsoleEngine): Added the processing of seed option.
  7149. * src/SeedCriteria.h: New class.
  7150. * src/ShareRatioSeedCriteria.h: New class.
  7151. * src/TimeSeedCriteria.h: New class.
  7152. * src/UnionSeedCriteria.h: New class.
  7153. * src/prefs.h
  7154. (PREF_SEED_TIME): New definition.
  7155. (PREF_SEED_RATIO): New definition.
  7156. * src/main.cc
  7157. (showUsage): Added --seed-time and --seed-ratio option.
  7158. (main): Added --seed-time and --seed-ratio option.
  7159. Made default log file name "/dev/null".
  7160. * src/SharedHandle.h
  7161. (SharedHandle): Copy constructor. Made it assignable from the
  7162. SharedHandle of the subclasses.
  7163. (operator=): Made it assignable from the SharedHandle of the
  7164. subclasses.
  7165. (getRefCount): New function.
  7166. To add notice log level and the switch to write log to stdout. This
  7167. switch is configurable per log level.
  7168. * src/Logger.h
  7169. (notice): New function.
  7170. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  7171. constant.
  7172. * src/LogFactory.cc
  7173. (getInstance): The use of NullLogger was removed. A log message with
  7174. notice log level was made written to stdout along with log file.
  7175. * src/NullLogger.h
  7176. (notice): New function.
  7177. * src/SimpleLogger.h
  7178. (writeHeader): Added the 'file' argument.
  7179. (writeLog): Added the 'file' argument.
  7180. (writeFile): New function.
  7181. (stdoutField): New variable.
  7182. (SimpleLogger): Removed the default constructor.
  7183. (SimpleLogger): Made the default value of logfile 0.
  7184. (debug): Added 'virtual' keyword.
  7185. (info): Added 'virtual' keyword.
  7186. (warn): Added 'virtual' keyword.
  7187. (error): Added 'virtual' keyword.
  7188. (notice): New function.
  7189. (setStdout): New function.
  7190. * src/SimpleLogger.cc
  7191. (WRITE_LOG): Replaced writeLog with writeFile.
  7192. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  7193. (SimpleLogger): Removed the default constructor.
  7194. (setStdout): New function.
  7195. (writeLog): Added the handling of NOTICE log level.
  7196. (writeFile): New function.
  7197. (notice): New function.
  7198. * src/TorrentMan.h: Updated doc.
  7199. * src/BitfieldMan.h: Updated doc.
  7200. * src/TrackerWatcherCommand.cc
  7201. (execute): Return true if error occurred in the request to the tracker
  7202. and halt is requested.
  7203. * src/TrackerUpdateCommand.cc
  7204. (execute): Return true if error occurred in the request to the tracker
  7205. and halt is requested.
  7206. To call onDownloadComplete from TorrentMan::completePiece(), not from
  7207. DownloadEngine:
  7208. * src/TorrentConsoleDownloadEngine.h
  7209. (onSelectiveDownloadingCompletes): Removed.
  7210. * src/TorrentConsoleDownloadEngine.cc
  7211. (onSelectiveDownloadingCompletes): Removed.
  7212. * src/TorrentDownloadEngine.h
  7213. (onEndOfRun): Added 'virtual' keyword.
  7214. (afterEachIteration): Removed.
  7215. (onSelectiveDownloadingCompletes): Removed.
  7216. * src/TorrentDownloadEngine.cc
  7217. (onEndOfRun): Removed filenameFixed.
  7218. (afterEachIteration): Removed.
  7219. * src/TorrentMan.cc
  7220. (completePiece): Call onDownloadComplete here.
  7221. (onDownloadComplete): Added 2 log messages.
  7222. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  7224. * src/NameResolver.h: Added the prototype declaration of callback().
  7225. To support c-ares library:
  7226. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7227. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7228. * src/FtpInitiateConnectionCommand.h:
  7229. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7230. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7231. * src/HttpInitiateConnectionCommand.h:
  7232. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7233. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  7234. Added thes upport of c-ares's ares_strerror(the idea came from patch
  7235. #1542285 by tizianomueller)
  7236. * src/HttpInitiateConnectionCommand.cc:
  7237. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7238. * src/FtpInitiateConnectionCommand.cc:
  7239. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7240. * src/DownloadEngine.h:
  7241. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7242. * src/DownloadEngine.cc:
  7243. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7244. To fix the bug that causes compilation failure with metalink-support
  7245. disabled(bug#1543587):
  7246. * src/main.cc: Fixed with the patch by tizianomueller.
  7247. * Release 0.7.2
  7248. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7249. * src/main.cc
  7250. (main): Added a message to inform users that aria2 is starting to
  7251. verify checksum.
  7252. * src/RequestInfo.cc
  7253. (printDownloadAbortMessage): Added a message to inform users that
  7254. transfer can be resumed.
  7255. * src/FeatureConfig.cc
  7256. (FEATURE_ASYNC_DNS): New definition.
  7257. (FeatureConfig): Added aysnc DNS entry.
  7258. To replace CommandUuid with Command* in SocketEntry and
  7259. NameResolverEntry:
  7260. * src/DownloadEngine.h
  7261. (CommandUuids): Removed.
  7262. (SocketEntry::commandUuid): Removed.
  7263. (SocketEntry::command): New variable.
  7264. (SocketEntry::SocketEntry): Updated.
  7265. (SocketEntry::operator==): Updated.
  7266. (NameResolverEntry::commandUuid): Removed.
  7267. (NameResolverEntry::command): New variable.
  7268. (NameResolverEntry::NameResolverEntry): Updated.
  7269. (NameResolverEntry::operator==): Updated.
  7270. (waitData): Changed the argument type.
  7271. (addSocketForReadCheck): Changed the argument type.
  7272. (deleteSocketForReadCheck): Changed the argument type.
  7273. (addSocketForWriteCheck): Changed the argument type.
  7274. (deleteSocketForWriteCheck): Changed the argument type.
  7275. (addNameResolverCheck): Changed the argument type.
  7276. (deleteNameResolverCheck): Changed the argument type.
  7277. * src/DownloadEngine.cc
  7278. (FindCommand): Removed.
  7279. (run): Removed activeUuid. Added activeCommands instead.
  7280. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  7281. (AccumulateActiveCommand): New function object.
  7282. (waitData): Use AccumulateActiveCommand.
  7283. (addSocketForReadCheck): Use Command instead of CommandUuid.
  7284. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  7285. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  7286. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  7287. (addNameResolverCheck): Use Command instead of CommandUuid.
  7288. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  7289. * src/AbstractCommand.cc
  7290. (disableReadCheckSocket): Updated according to the changes in
  7291. DownloadEngine.
  7292. (setReadCheckSocket): Updated according to the changes in
  7293. DownloadEngine.
  7294. (disableWriteCheckSocket): Updated according to the changes in
  7295. DownloadEngine.
  7296. (setWriteCheckSocket): Updated according to the changes in
  7297. DownloadEngine.
  7298. (setNameResolverCheck): Updated according to the changes in
  7299. DownloadEngine.
  7300. (disableNameResolverCheck): Updated according to the changes in
  7301. DownloadEngine.
  7302. * src/AbstractCommand.cc
  7303. (disableReadCheckSocket): Updated according to the changes in
  7304. DownloadEngine.
  7305. (setReadCheckSocket): Updated according to the changes in
  7306. DownloadEngine.
  7307. (disableWriteCheckSocket): Updated according to the changes in
  7308. DownloadEngine.
  7309. (setWriteCheckSocket): Updated according to the changes in
  7310. DownloadEngine.
  7311. * release 0.7.1
  7312. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. To handle the case where some BitTorrent tracker requires all letters
  7314. except for [A-Za-z0-9] is URL encoded.
  7315. * src/Util.h
  7316. (torrentUrlencode): New function.
  7317. * src/Util.cc
  7318. (ctype.h): Included.
  7319. (torrentUrlencode): New function.
  7320. * src/TrackerWatcherCommand.cc
  7321. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  7322. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. To add asynchronous DNS support(libares):
  7324. * src/AbstractCommand.h
  7325. (setNameResolverCheck): New function.
  7326. (disableNameResolverCheck): New function
  7327. (resolveHostname): New function.
  7328. * src/AbstractCommand.cc
  7329. (setNameResolverCheck): New function.
  7330. (disableNameResolverCheck): New function
  7331. (resolveHostname): New function.
  7332. * src/FtpInitiateConnectionCommand.h
  7333. (nameResolver): New function.
  7334. * src/FtpInitiateConnectionCommand.cc
  7335. (Util.h): Included.
  7336. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  7337. disableWriteCheckSocket.
  7338. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  7339. (executeInternal): Added async DNS support.
  7340. * src/HttpInitiateConnectionCommand.h
  7341. (nameResolver): New function.
  7342. * src/HttpInitiateConnectionCommand.cc
  7343. (DlRetryEx.h): Included.
  7344. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  7345. disableWriteCheckSocket.
  7346. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  7347. (executeInternal): Added async DNS support.
  7348. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  7349. by extern "C" declaration.
  7350. * src/NameResolver.cc: New class.
  7351. * src/Util.h:
  7352. (isNumberAndDotsNotation): New function
  7353. * src/Util.cc
  7354. (isNumberAndDotsNotation): New function.
  7355. * src/DownloadEngine.h
  7356. (NameResolver.h): Included.
  7357. (NameResolverEntry): New class.
  7358. (NameResolverEntries): New type definition.
  7359. (addNameResolverCheck): New function.
  7360. (deleteNameResolverCheck): New function.
  7361. * src/DownloadEngine.cc
  7362. (run): Initialize cp with 0.
  7363. (SetDescriptor::operator()): Added for NameResolverEntry.
  7364. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  7365. (waitData): Check nameResolver entries.
  7366. (updateFdSet): Update fds in nameResolver entries.
  7367. (addNameResolverCheck): New function.
  7368. (deleteNameResolverCheck): new function.
  7369. * src/PeerInteractionCommand.cc
  7370. (executeInternal): Fixed wrong socket handling.
  7371. * src/main.cc
  7372. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  7373. * src/Util.cc
  7374. (fileChecksum): Removed the call to ctx.digestReset().
  7375. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. * po/ru.po: Azamat sent me Russian translation.
  7377. * src/FtpNegotiateCommand.cc
  7378. (recvGreeting): Call disableWriteCheckSocket just after
  7379. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  7380. (recvRetr): Recognized status code 125 as a acceptable response code.
  7381. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  7382. case-insesitive filesystem(BUG#1531057).
  7383. * src/Time.h: Renamed as TimeA2.h.
  7384. * src/Time.cc: Renamed as TimeA2.cc.
  7385. * src/TimeA2.h: New class.
  7386. * src/TimeA2.cc: New class.
  7387. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  7388. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  7389. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  7390. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  7391. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  7392. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  7393. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  7394. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  7395. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  7396. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  7397. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  7398. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  7399. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  7400. * release 0.7.0
  7401. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. * src/PeerChokeCommand.h
  7403. (PeerChokeCommand): Rearranged the arguments.
  7404. * src/PeerChokeCommand.cc
  7405. (PeerChokeCommand): Rearranged the arguments.
  7406. * src/MetalinkEntry.h
  7407. (Checksum.h): Included.
  7408. (md5): Removed.
  7409. (sha1): Removed.
  7410. (checksum): New variable.
  7411. (operator=): Updated.
  7412. (check): Removed.
  7413. * src/prefs.h
  7414. (PREF_LOWEST_SPEED_LIMIT): New definition.
  7415. (PREF_FOLLOW_TORRENT): New definition.
  7416. (PREF_SELECT_FILE): New definition.
  7417. (PREF_FOLLOW_METALINK): New definition.
  7418. * src/MetalinkResource.h
  7419. (TYPE_HTTPS): Added to enum TYPE.
  7420. * src/TorrentMan.cc
  7421. (~TorrentMan): Rewritten.
  7422. * src/MultiDiskWriter.cc
  7423. (MultiDiskAdaptor): Updated according to the changes in
  7424. MessageDigestContext.
  7425. (~MultiDiskAdaptor): Updated according to the changes in
  7426. MessageDigestContext.
  7427. (hashUpdate): Updated according to the changes in MessageDigestContext.
  7428. (sha1Sum): Updated according to the changes in MessageDigestContext.
  7429. * src/Util.h
  7430. (fileChecksum): Updated according to the changes in
  7431. MessageDigestContext.
  7432. * src/Util.cc
  7433. (sha1Sum): Updated according to the changes in MessageDigestContext.
  7434. (fileChecksum): Updated according to the changes in
  7435. MessageDigestContext.
  7436. * src/messageDigest.h: Rewritten.
  7437. * src/MetalinkEntry.cc
  7438. (check): Removed.
  7439. (Supported): Updated.
  7440. (dropUnsupportedResource): Fixed a memory leak.
  7441. * src/ShaVisitor.cc
  7442. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  7443. (~ShaVisitor): Updated according to the changes in
  7444. MessageDigestContext.
  7445. (visit): Updated according to the changes in MessageDigestContext.
  7446. * src/main.cc
  7447. (main): Rewritten the portion of download loop. --lowest-speed-limit
  7448. command-line option added.
  7449. * src/DownloadEngine.h
  7450. (SocketEntry): New class.
  7451. (SocketEntries): New definition.
  7452. (PairFind): Removed.
  7453. (SockCmdMap): Removed.
  7454. * src/DownloadEngine.cc
  7455. (DownloadEngine): Rewritten.
  7456. (~DownloadEngine): Rewritten.
  7457. (run): Renamed activeCommandUuids as activeUuids.
  7458. (SetDescriptor): Rewritten.
  7459. (AccumulateActiveCommandUuid): Removed.
  7460. (AccumulateActiveUuid): New function object.
  7461. (waitData): Rewritten.
  7462. (updateFdSet): Rewritten.
  7463. (addSocket): Rewritten.
  7464. (deleteSocket): Rewritten.
  7465. (addSocketForReadCheck): Rewritten.
  7466. (deleteSocketForReadCheck): Rewritten.
  7467. (addSocketForWriteCheck): Rewritten.
  7468. (deleteSocketForWriteCheck): Rewritten.
  7469. * src/Xml2MetalinkProcessor.cc
  7470. (getEntry): Rewritten the portion of MetalinkEntry creation.
  7471. * src/DownloadCommand.cc
  7472. (executeInternal): Added the check routine for lowest speed limit.
  7473. * src/AbstractDiskWriter.cc
  7474. (AbstractDiskWriter): Updated according to the changes in
  7475. MessageDigestContext.
  7476. (~AbstractDiskWriter): Updated according to the changes in
  7477. MessageDigestContext.
  7478. (sha1Sum): Updated according to the changes in MessageDigestContext.
  7479. * src/RequestInfo.h: New class.
  7480. * src/UrlRequestInfo.h: New class.
  7481. * src/UrlRequestInfo.cc: New class.
  7482. * src/TorrentRequestInfo.h: New class.
  7483. * src/TorrentRequestInfo.cc: New class.
  7484. * src/MetalinkRequestInfo.h: New class.
  7485. * src/MetalinkRequestInfo.cc: New class.
  7486. * src/Checksum.h: New class.
  7487. * src/DownloadEngineFactory.h: New class.
  7488. * src/DownloadEngineFactory.cc: New class.
  7489. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7490. * src/Option.h
  7491. (getAsBool): New function.
  7492. * src/Option.cc
  7493. (prefs.h): Included.
  7494. (defined): 0-length value is now recognized as undefined.
  7495. (getAsInt): Rewritten.
  7496. (getAsLLInt): Rewritten.
  7497. (getAsBool): New function.
  7498. * src/FeatureConfig.h: Rewritten.
  7499. * src/FeatureConfig.cc: Rewritten.
  7500. * src/prefs.h
  7501. (PREF_STDOUT_LOG): New definition.
  7502. (PREF_LOG): New definition.
  7503. (PREF_DIR): New definition.
  7504. (PREF_OUT): New definition.
  7505. (PREF_SPLIT): New definition.
  7506. (PREF_DAEMON): New definition.
  7507. (PREF_REFERER): New definition.
  7508. (PREF_TORRENT_FILE): New definition.
  7509. (PREF_LISTEN_PORT): New definition.
  7510. (PREF_METALINK_FILE): New definition.
  7511. (PREF_METALINK_VERSION): New definition.
  7512. (PREF_METALINK_LANGUAGE): New definition.
  7513. (PREF_METALINK_OS): New definition.
  7514. (PREF_METALINK_SERVERS): New definition.
  7515. * src/main.cc
  7516. (main): Following command-line parameters are now put into Option
  7517. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  7518. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  7519. metalinkLanguage, metalinkOs, metalinkServers
  7520. To fix the bug that aria2 can not handle http response header properly.
  7521. * src/HttpHeader.cc
  7522. (put): Made name lowercased.
  7523. (defined): Made name lowercased.
  7524. (getFirst): Made name lowercased.
  7525. (get): Made name lowercased.
  7526. (getFirstAsInt): Rewritten.
  7527. (getFirstAsLLInt): Rewritten.
  7528. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7529. * src/TorrentMan.h:
  7530. (advertisePiece): Updated doc.
  7531. (getAdvertisedPieceIndexes): Updated doc.
  7532. (removeAdvertisedPiece); New function.
  7533. * src/TorrentMan.cc
  7534. (FindElapsedHave): New function object.
  7535. (removeAdvertisedPiece): New function.
  7536. * src/HaveEraseCommand.h: New class.
  7537. * src/HaveEraseCommand.cc: New class.
  7538. * src/FeatureConfig.h: New class.
  7539. * src/FeatureConfig.cc: New class.
  7540. * src/Request.h
  7541. (defaultPorts): Removed.
  7542. * src/Request.cc
  7543. (FeatureConfig.h): Included.
  7544. (Request): Removed the statements related to defaultPorts.
  7545. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  7546. A default port number is now retrieved from FeatureConfig.
  7547. * src/main.cc
  7548. (HaveEraseCommand.h): Included.
  7549. (showVersion): Added the output of feature list.
  7550. (main): Added HaveEraseCommand to command queue in BitTorrent
  7551. downloading.
  7552. * src/PeerInteractionCommand.h
  7553. (chokeCheckPoint): Commented out.
  7554. (periodicExecPoint): New variable.
  7555. * src/PeerInteractionCommand.cc
  7556. (executeInternal): Following methods are now called in at least every
  7557. 0.5 seconds to reduce CPU usage:
  7558. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  7559. checkHave(), sendKeepAlive().
  7560. (checkLongTimePeerChoking): Commented out.
  7561. * src/BitfieldMan.h
  7562. (getNthBitIndex): Changed the method signature.
  7563. (getMissingIndexRandomly): Changed the method signature.
  7564. * src/BitfieldMan.cc
  7565. (getNthBitIndex): Rewritten
  7566. (getMissingIndexRandomly): Rewritten.
  7567. (hasMissingPiece): Rewritten.
  7568. (getMissingIndex): Refactored.
  7569. (getMissingUnusedIndex); Refactored.
  7570. (getMissingIndex): Refactored.
  7571. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. * src/PeerMessage.h
  7573. (Piece.h): Included.
  7574. (SharedHandle.h): Included.
  7575. (invalidate): New variable.
  7576. (uploading): New variable.
  7577. (isInvalidate): New function.
  7578. (isUploading): New function.
  7579. (onPush): New function.
  7580. (onChoked): New function.
  7581. (onCanceled): New function.
  7582. (onAbortPiece): New function.
  7583. (PeerMessageHandle): New type definition.
  7584. * src/PeerMessage.cc
  7585. (PeerMessage): Added the initialization for invalidate and uploading.
  7586. * src/CancelMessage.h
  7587. (CancelMessage): Rewritten.
  7588. * src/RejectMessage.h
  7589. (RejectMessage): Rewritten.
  7590. * src/Metalinker.h
  7591. (operator=): Defined.
  7592. * src/MetaEntry.h
  7593. (operator=): Defined.
  7594. * src/MetalinkResource.h
  7595. (operator=): Defined.
  7596. * src/AllowedFastMessage.h
  7597. (AllowedFastMessage): Rewritten.
  7598. * src/HandshakeMessage.h
  7599. (HandshakeMessage): New function(overload).
  7600. * src/HandshakeMessage.cc
  7601. (HandshakeMessage): Rewritten.
  7602. (init): New function.
  7603. * src/HaveMessage.h
  7604. (HaveMessage): Rewritten.
  7605. * src/Time.h
  7606. (operator=): Defined the function body here.
  7607. * src/Time.cc
  7608. (operator=): Removed.
  7609. * src/SocketCore.h
  7610. (operator==): Defined here.
  7611. (operator!=): Defined here.
  7612. (operator<): Defined here.
  7613. * src/SocketCore.cc
  7614. (operator==): Removed.
  7615. (operator<): Removed.
  7616. * src/BitfieldMan.h
  7617. (operator=): Defined the function body here.
  7618. * src/BitfieldMan.cc
  7619. (operator=): Removed.
  7620. * src/TorrentMan.h
  7621. (deleteErrorPeer): Removed.
  7622. (deleteUnusedPeer); New function.
  7623. * src/TorrentMan.cc
  7624. (addPeer): Call deleteUnusedPeer.
  7625. (deleteErrorPeer): Removed.
  7626. (deleteUnusedPeer): New function.
  7627. * src/PeerAbstractCommand.h
  7628. (setNoCheck): New function.
  7629. (noCheck): New variable.
  7630. * src/PeerAbstractCommand.cc
  7631. (PeerAbstractCommand): Added the initialization of noCheck.
  7632. (execute): Added a check for noCheck.
  7633. (setNoCheck): New function.
  7634. * src/Util.h
  7635. (stdio.h): Included.
  7636. * src/Util.cc
  7637. (unistd.h): Included.
  7638. * src/DefaultDiskWriter.cc
  7639. (unistd.h): Included.
  7640. * src/Peer.h
  7641. (operator==): Defined the function body here.
  7642. (operator!=): Defined the function body here.
  7643. * src/Peer.cc
  7644. (operator==): Removed.
  7645. (operator!=): Removed.
  7646. * src/Piece.h
  7647. (Piece): Defined the function body here(copy constructor).
  7648. (operator=): Defined the function body here.
  7649. (operator==): Defined the function body here.
  7650. * src/Piece.cc
  7651. (Piece): Removed(copy constructor).
  7652. (operator=): Removed.
  7653. (operator==): Removed.
  7654. * src/PeerMessageUtil.h
  7655. (ChokeMessage.h): Removed.
  7656. (UnchokeMessage.h): Removed.
  7657. (InterestedMessage.h): Removed.
  7658. (NotInterestedMessage.h): Removed.
  7659. (HaveMessage.h): Removed.
  7660. (BitfieldMessage.h): Removed.
  7661. (RequestMessage.h): Removed.
  7662. (CancelMessage.h): Removed.
  7663. (PieceMessage.h): Removed.
  7664. (HandshakeMessage.h): Removed.
  7665. (KeepAliveMessage.h): Removed.
  7666. (PortMessage.h): Removed.
  7667. (HaveAllMessage.h): Removed.
  7668. (HaveNoneMessage.h): Removed.
  7669. (PeerConnection.h): Removed.
  7670. (HandshakeMessage.h): Included.
  7671. * src/BitfieldMessage.h
  7672. (init): New function.
  7673. (BitfieldMessage): Rewritten.
  7674. (BitfieldMessage): New function(overload).
  7675. * src/RequestSlot.h
  7676. (operator=): Defined the function body here.
  7677. (operator==): Defined the function body here.
  7678. * src/RequestSlot.cc
  7679. (operator=): Removed.
  7680. (operator==): Removed.
  7681. To remove the dependency on the PeerMessage subclass from
  7682. PeerInteraction:
  7683. * src/PeerMessageFactory.h: New class.
  7684. * src/PeerMessageFactory.cc: New class.
  7685. * src/SimplePeerMessage.cc
  7686. (send): If invalidate is true then do nothing.
  7687. * src/PeerInteractionCommand.cc
  7688. (HandshakeMessage.h): Included.
  7689. (KeepAliveMessage.h): Included.
  7690. (ChokeMessage.h): Included.
  7691. (UnchokeMessage.h): Included.
  7692. (HaveMessage.h): Included.
  7693. (executeInternal): Call setNoCheck().
  7694. Removed setWriteCheckSocket(socket).
  7695. * src/PeerInteraction.h
  7696. (ChokeMessage.h): Removed.
  7697. (UnchokeMessage.h): Removed.
  7698. (InterestedMessage.h): Removed.
  7699. (NotInterestedMessage.h): Removed.
  7700. (HaveMessage.h): Removed.
  7701. (BitfieldMessage.h): Removed.
  7702. (RequestMessage.h): Removed.
  7703. (CancelMessage.h): Removed.
  7704. (PieceMessage.h): Removed.
  7705. (HandshakeMessage.h): Removed.
  7706. (KeepAliveMessage.h): Removed.
  7707. (PortMessage.h): Removed.
  7708. (HaveAllMessage.h): Removed.
  7709. (HaveNoneMessage.h): Removed.
  7710. (RejectMessage.h): Removed.
  7711. (AllowedFastMessage.h): Removed.
  7712. (SuggestPieceMessage.h): Removed.
  7713. (PeerMessageFactory.h): Included.
  7714. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  7715. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  7716. (PeerMessageFactory): New variable.
  7717. (createPeerMessage): Removed.
  7718. (createHandshakeMessage): Removed.
  7719. (setPeerMessageCommonProperty): Removed.
  7720. (addRequestSlot): New function.
  7721. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  7722. (getPeerMessageFactory): New function.
  7723. (createRequestMessage): Removed.
  7724. (createCancelMessage): Removed.
  7725. (createPieceMessage): Removed.
  7726. (createHaveMessage): Removed.
  7727. (createChokeMessage): Removed.
  7728. (createUnchokeMessage): Removed.
  7729. (createInterestedMessage): Removed.
  7730. (createNotInterestedMessage): Removed.
  7731. (createBitfieldMessage): Removed.
  7732. (createKeepAliveMessage): Removed.
  7733. (createHaveAllMessage): Removed.
  7734. (createHaveNoneMessage): Removed.
  7735. (createRejectMessage): Removed.
  7736. (createAllowedFastMessage): Removed.
  7737. * src/PeerInteraction.cc
  7738. (PeerInteraction): Allocate PeerMessageFactory here.
  7739. (~PeerInteraction): Deallocate PeerMessageFactory here.
  7740. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  7741. PieceMessage::ID.
  7742. (addMessage): Simplified by using PeerMessage::onPush().
  7743. (addRequestSlot): New function.
  7744. (rejectAllPieceMessageInQueue): Simplified by using
  7745. PeerMessage::onChoked().
  7746. (rejectPieceMessageInQueue): Simplified by using
  7747. PeerMessage::onCanceled().
  7748. (abortPiece): Simplified by using PeerMessage::abortPiece().
  7749. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  7750. (createHandshakeMessage): Removed.
  7751. (createPeerMessage): Removed.
  7752. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  7753. (setPeerMessageCommonProperty): Removed.
  7754. (createRequestMessage): Removed.
  7755. (createCancelMessage): Removed.
  7756. (createPieceMessage): Removed.
  7757. (createHaveMessage): Removed.
  7758. (createChokeMessage): Removed.
  7759. (createUnchokeMessage): Removed.
  7760. (createInterestedMessage): Removed.
  7761. (createNotInterestedMessage): Removed.
  7762. (createBitfieldMessage): Removed.
  7763. (createKeepAliveMessage): Removed.
  7764. (createHaveAllMessage): Removed.
  7765. (createHaveNoneMessage): Removed.
  7766. (createRejectMessage): Removed.
  7767. (createAllowedFastMessage): Removed.
  7768. * src/PieceMessage.h
  7769. (createRejectMessage): New function.
  7770. (PieceMessage): Rewritten.
  7771. (onChoked): New function.
  7772. (onCanceled): New function.
  7773. * src/PieceMessage.cc
  7774. (send): If invalidate is true then do nothing, just return.
  7775. (createRejectMessage): New function.
  7776. (onChoked): New function.
  7777. (onCanceled): New function.
  7778. * src/RequestMessage.h
  7779. (RequestMessage): Rewritten.
  7780. (onPush): New function.
  7781. (onAbortPiece): New function.
  7782. * src/RequestMessage.cc
  7783. (onPush): New function.
  7784. (onAbortPiece): New function.
  7785. Update fd_set when a socket is added or deleted in order to improve
  7786. performance:
  7787. * src/DownloadEngine.h
  7788. (rfdset): New variable.
  7789. (wfdset): New variable.
  7790. (updateFdSet): New function.
  7791. * src/DownloadEngine.cc
  7792. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  7793. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  7794. (waitData): Copy rfdset and wfdset.
  7795. (updateFdSet): New function.
  7796. (addSocket): Call updateFdSet.
  7797. (deleteSocket): Call updateFdSet.
  7798. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7799. To add the support for Metalink3.0 backward compatible links:
  7800. * src/Request.h
  7801. (SAFE_CHARS): Added '#'.
  7802. (METALINK_MARK): New definition.
  7803. * src/Request.cc
  7804. (parseUrl): Added the support for Metalink3.0 backward compatible
  7805. links.
  7806. etc
  7807. * src/PeerInteraction.cc
  7808. (MsgPushBack): Removed.
  7809. (sendMessages): Use STL copy and back_inserter.
  7810. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  7811. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  7812. * src/TorrentMan.h
  7813. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  7814. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. * src/SharedHandle.h: New class.
  7816. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  7817. * src/HttpResponseCommand.h
  7818. (HttpResponseCommand): Wrapped Socket.
  7819. * src/SocketCore.h
  7820. (operator==): New function.
  7821. (operator!=): New function.
  7822. (operator<): New function.
  7823. (getSockfd): New function.
  7824. (isOpen): New function.
  7825. (writeData): New function.
  7826. * src/SocketCore.cc
  7827. (operator==): New function.
  7828. (operator!=): New function.
  7829. (operator<): New function.
  7830. * src/AbstractCommand.h
  7831. (socket): Changed its type to SocketHandle.
  7832. (setReadCheckSocket): Replaced Socket with SocketHandle.
  7833. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  7834. (disableReadCheckSocket): New function.
  7835. (disableWriteCheckSocket): New function.
  7836. (readCheckTarget): Changed its type to SocketHandle.
  7837. (writeCheckTarget): Changed its type to SocketHandle.
  7838. (AbstractCommand): Replaced Socket with SocketHandle.
  7839. * src/AbstractCommand.cc
  7840. (AbstractCommand): Replaced Socket with SocketHandle.
  7841. (~AbstractCommand): Removed the deallocation for Socket object.
  7842. (disableReadCheckSocket): New function.
  7843. (setReadCheckSocket): Replaced Socket with SocketHandle.
  7844. (disableWriteCheckSocket): New function.
  7845. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  7846. * src/HttpDownloadCommand.cc
  7847. (DownloadCommand): Replaced Socket with SocketHandle.
  7848. * src/PeerAbstractCommand.h
  7849. (socket): Changed its type to SocketHandle.
  7850. (peer): Changed its type to PeerHandle.
  7851. (setReadCheckSocket): Replaced Socket with SocketHandle.
  7852. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  7853. (disableReadCheckSocket): New function.
  7854. (disableWriteCheckSocket): New function.
  7855. (readCheckTarget): Changed its type to SocketHandle.
  7856. (writeCheckTarget): Changed its type to SocketHandle.
  7857. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  7858. Replaced Peer with PeerHandle.
  7859. * src/HttpRequestCommand.cc
  7860. (HttpRequestCommand): Replaced Socket with SocketHandle.
  7861. Use disableReadCheckSocket.
  7862. * src/PeerInitiateConnectionCommand.h
  7863. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  7864. * src/PeerChokeCommand.cc
  7865. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  7866. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  7867. (execute): Use PeerHandle.
  7868. * src/PeerConnection.h
  7869. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  7870. (socket): Changed its type to SocketHandle.
  7871. (PeerConnection): Replaced Socket with SocketHandle.
  7872. * src/PeerConnection.cc
  7873. (PeerConnection): Replaced Socket with SocketHandle.
  7874. * src/PeerInteractionCommand.h
  7875. (PeerInteractionCommand): Replaced socket with SocketHandle.
  7876. Replaced Peer with PeerHandle.
  7877. * src/PeerInteractionCommand.cc
  7878. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  7879. Replaced Peer with PeerHandle.
  7880. (executeInternal): Use disableWriteCheckSocket.
  7881. Use HandshakeMessageHandle.
  7882. (receiveMessages): Use PeerMessageHandle.
  7883. (prepareForNextPeer): Use PeerHandle.
  7884. * src/HttpProxyRequestCommand.h
  7885. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  7886. * src/HttpResponseCommand.cc
  7887. (HttpResponseCommand): Replaced Socket with SocketHandle.
  7888. * src/TorrentMan.cc
  7889. (nullPeer): Added external reference.
  7890. (~TorrentMan): Removed the deallocation of the elements of peers.
  7891. (addPeer): Rewritten.
  7892. (isPeerAvailable): Use nullPeer.
  7893. (deleteOldpeers): Replaced with deleteErrorPeer.
  7894. (deleteErrorPeer): New function.
  7895. (getPeer): Use PeerHandle and nullPeer.
  7896. (hasMissingPiece): Replaced Peer with PeerHandle.
  7897. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  7898. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  7899. (getMissingFastPiece): Replaced Peer with PeerHandle.
  7900. (getMissingPiece): Replaced Peer with PeerHandle.
  7901. * src/FtpNegotiateCommand.cc
  7902. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  7903. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  7904. (recvGreeting): Use disableWriteCheckSocket.
  7905. (recvPasv): Removed the allocation of Socket.
  7906. Use disableReadCheckSocket.
  7907. (sendRestPasv): Use disableWriteCheckSocket.
  7908. (recvRetr): Changed assertion.
  7909. * src/PeerInteraction.h
  7910. (SharedHandle.h): Included SharedHandle.h.
  7911. (PeerMessageHandle): New type definition.
  7912. (HandshakeMessageHandle): New type definition.
  7913. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  7914. (peer): Changed its type to PeerHandle.
  7915. (createHandshakeMessage): Replaced HandshakeMessage with
  7916. HandshakeMessageHandle.
  7917. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  7918. (PeerInteraction): Replaced Peer with PeerHandle.
  7919. Replaced Socket with SocketHandle.
  7920. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  7921. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  7922. (receiveHandshake): Replaced HandshakeMessage with
  7923. HandshakeMessageHandle.
  7924. * src/PeerInteraction.cc
  7925. (PeerInteraction): Replaced Peer with PeerHandle.
  7926. Replaced Socket with SocketHandle.
  7927. (~PeerInteraction): Removed the deallocation of the elements of
  7928. messageQueue.
  7929. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  7930. (isSendingMessageInProgress): Replaced PeerMessage with
  7931. PeerMessageHandle.
  7932. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  7933. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  7934. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  7935. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  7936. (abortPiece): Use PeerMessageHandle.
  7937. (receiveHandshake): Replaced HandshakeMessage with
  7938. HandshakeMessageHandle. Removed try-catch block.
  7939. (createHandshakeMessage): Replaced HandshakeMessage with
  7940. HandshakeMessageHandle.
  7941. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  7942. Removed try-catch block.
  7943. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  7944. * src/HttpProxyResponseCommand.cc
  7945. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  7946. * src/FtpTunnelResponseCommand.h
  7947. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  7948. * src/HttpConnection.cc
  7949. (HttpConnection): Replaced Socket with SocketHandle.
  7950. * src/PeerAbstractCommand.cc
  7951. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  7952. (~PeerAbstractCommand): Removed the deallocation of socket.
  7953. Use disableReadCheckSocket, disableWriteCheckSocket.
  7954. (disableReadCheckSocket): New function.
  7955. (setReadCheckSocket): Replaced Socket with SocketHandle.
  7956. (disableWriteCheckSocket): New function.
  7957. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  7958. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  7959. * src/FtpTunnelRequestCommand.cc
  7960. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  7961. (~FtpTunnelRequestCommand): Corrected indentation.
  7962. * src/DownloadCommand.h
  7963. (DownloadCommand): Replaced Socket with SocketHandle.
  7964. * src/PeerListenCommand.cc
  7965. (PeerListenCommand): Removed the initialization of socket.
  7966. (~PeerListenCommand): Removed the deallocation of socket.
  7967. (bindPort): Use SocketHandle.
  7968. (execute): Use SocketHandle and PeerHandle.
  7969. * src/FtpDowndloadCommand.cc
  7970. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  7971. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  7972. * src/main.cc
  7973. (main): Corrected indentation.
  7974. * src/HttpInitiateConnectionCommand.cc
  7975. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  7976. (executeInternal): Removed the allocation of socket.
  7977. * src/HttpRequestCommand.h
  7978. (HttpRequestCommand): Replaced Socket with SocketHandle.
  7979. * src/FtpNegotiationCommand.h
  7980. (dataSocket): Changed its type to SocketHandle.
  7981. (serverSocket): Changed its type to SocketHandle.
  7982. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  7983. * src/TorrentMan.h
  7984. (MAX_PEER_UPDATE): Removed.
  7985. (MAX_PEERS): New definition.
  7986. (Peers): The element is now of type PeerHandle.
  7987. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  7988. (getPeer): Replaced Peer with PeerHandle.
  7989. (deleteOldErrorPeers): Removed.
  7990. (deleteErrorPeer): New function.
  7991. (hasMissingPiece): Replaced Peer with PeerHandle.
  7992. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  7993. (getMissingPiece): Replaced Peer with PeerHandle.
  7994. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  7995. (getMissingFastPiece): Replaced Peer with PeerHandle.
  7996. (addActivePeer): Replaced Peer with PeerHandle.
  7997. (deleteActivePeer): Replaced Peer with PeerHandle.
  7998. Added a check for the return value of find.
  7999. * src/FtpTunnelResponseCommand.cc
  8000. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8001. * src/FtpInitiateConnectionCommand.cc
  8002. (executeInternal): Removed the allocation of socket.
  8003. * src/DownloadEngine.h
  8004. (Sockets): An element is now of type SocketHandle.
  8005. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  8006. (CommandUuids): New type definition.
  8007. (rsockets): Changed its type to SockCmdMap.
  8008. (wsockets): Changed its type to SockCmdMap.
  8009. (addSocket): Rewritten.
  8010. (deleteSocket): Rewritten.
  8011. (addSocketForReadCheck): Rewritten.
  8012. (deleteSocketForReadCheck): Rewritten.
  8013. (addSocketForWriteCheck): Rewritten.
  8014. (deleteSocketForWriteCheck): Rewritten.
  8015. (PairFind): New template class.
  8016. * src/HttpDownloadCommand.h
  8017. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  8018. * src/FtpConnection.cc
  8019. (FtpConnection): Replaced Socket with SocketHandle.
  8020. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  8021. block.
  8022. * src/InitiateConnectionCommandFactory.cc
  8023. (DlAbortEx.h): Included DlAbortEx.h.
  8024. (createInitiateConnectionCommand): Throw exception if the protocol of
  8025. requested URI is not supported.
  8026. * src/Peer.cc
  8027. (nullPeer): Changed its type to PeerHandle.
  8028. (operator==): New function.
  8029. (operator!=): New function.
  8030. * src/Peer.h
  8031. (SharedHandle.h): Included SharedHandle.h.
  8032. (operator==): New function.
  8033. (operator!=): New function.
  8034. (Peer): Added the default constructor.
  8035. Use resetStatus() to initialize member variables.
  8036. (nullPeer): Removed.
  8037. * src/TrackerUpdateCommand.cc
  8038. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  8039. with MIN_PEERS.
  8040. * src/PeerListenCommand.h
  8041. (socket): Changed its type to SocketHandle.
  8042. * src/Command.h
  8043. (CommandUuid): New type definition.
  8044. (uuid): New variable.
  8045. (uuidGen): New variable.
  8046. (Command): Added the initialization of uuid.
  8047. (getUuid): New function.
  8048. * src/Socket.h
  8049. (Socket): Removed.
  8050. (SocketHandle): New type definition.
  8051. * src/DownloadEngine.h
  8052. (FindCommand): New function object.
  8053. (run): The portion of socket check was rewritten.
  8054. (SetDescriptor): New function object.
  8055. (AccumulateActiveCommandUuid): New function object.
  8056. (waitData): Rewritten.
  8057. (addSocket): Rewritten.
  8058. (deleteSocket): Rewritten.
  8059. (addSocketForReadCheck): Rewritten.
  8060. (addSocketForWriteCheck): Rewritten.
  8061. (deleteSocketForReadCheck): Rewritten.
  8062. (deleteSocketForWriteCheck): Rewritten.
  8063. * src/HttpProxyResponseCommand.h
  8064. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  8065. * src/HttpConnection.h
  8066. (socket): Changed its type to SocketHandle.
  8067. (HttpConnection): Replaced Socket with SocketHandle.
  8068. * src/PeerInitiateConnectionCommand.cc
  8069. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8070. (executeInternal): Removed the allocation of socket.
  8071. (prepareForNextPeer): Use PeerHandle.
  8072. * src/PeerMessage.h
  8073. (peer): Changed its type to PeerHandle.
  8074. (getPeer): Replaced Peer with PeerHandle.
  8075. (setPeer): Replaced Peer with PeerHandle.
  8076. * src/DownloadCommand.cc
  8077. (DownloadCommand): Replaced Socket with SocketHandle.
  8078. * src/FtpConnection.h
  8079. (socket): Changed its type to SocketHandle.
  8080. (FtpConnection): Replaced Socket with SocketHandle.
  8081. (sendPort); Replaced Socket with SocketHandle.
  8082. * src/FtpDowndloadCommand.h
  8083. (ctrlSocket): Changed its type to SocketHandle.
  8084. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8085. * src/HttpProxyRequestCommand.cc
  8086. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8087. * src/FtpTunnelRequestCommand.h
  8088. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8089. etc
  8090. * src/PeerChokeCommand.h
  8091. (setAllPeerChoked): Removed.
  8092. (setAllPeerResetDelta): Removed.
  8093. * src/PeerChokeCommand.cc
  8094. (setAllPeerChoked): Removed.
  8095. (ChokePeer): New function object.
  8096. (setAllPeerResetDelta): Removed.
  8097. (ResetDelta): New function object.
  8098. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  8099. (execute): Show download speed when the local node is a seeder.
  8100. setAllPeerChoked and setAllPeerResetDelta were rewritten
  8101. using STL.
  8102. * src/TrackerWatcherCommand.h
  8103. (MIN_PEERS): Removed.
  8104. * src/TorrentMan.cc
  8105. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  8106. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8107. To fix the bug that .aria2 file is not saved if downloading is stopped
  8108. by the errors:it results that aria2 can not resume downloading:
  8109. * src/main.cc
  8110. (normalDownload): Added the call to save().
  8111. (main): Added the deletion of the elements in 'reserved'.
  8112. To fix log:
  8113. * src/PeerInteraction.cc
  8114. (receiveHandshake): Fixed log.
  8115. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. To improve download performance in BitTorrent:
  8117. * src/TorrentMan.cc
  8118. (getPeer): Check the number of connections. Return nullPeer if
  8119. it is greater than MAX_PEER_UPDATE.
  8120. This code was originally here, but was removed in 0.5.1.
  8121. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. To improve the conditional compilation:
  8123. * src/MultiDiskWriter.h:
  8124. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8125. * src/MultiDiskWriter.cc:
  8126. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8127. * src/Util.h:
  8128. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8129. Added ENABLE_BITTORRENT around computeFastSet().
  8130. * src/Util.cc:
  8131. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8132. Added ENABLE_BITTORRENT around computeFastSet().
  8133. * src/messageDigest.h:
  8134. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  8135. * src/ShaVisitor.h:
  8136. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8137. * src/ShaVisitor.cc:
  8138. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8139. * src/main.cc:
  8140. Added ENABLE_BITTORRENT around includes and blocks related to
  8141. BitTorrent.
  8142. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  8143. digest support is not available.
  8144. * src/AbstractDiskWriter.h:
  8145. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8146. * src/AbstractDiskWriter.cc:
  8147. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8148. * src/MetalinkEntry.cc
  8149. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  8150. support is not available.
  8151. To add command-line options for Metalink:
  8152. * src/main.cc:
  8153. Added metalink-version, metalink-language, metalink-os,
  8154. follow-metalink.
  8155. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  8156. * src/main.cc: Use these definition.
  8157. * Release 0.6.0
  8158. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. To add Metalink support(http/ftp only):
  8160. * src/AbstractCommand.h
  8161. (tryReserved): New function.
  8162. * src/AbstractCommand.cc
  8163. (execute): Call tryReserved().
  8164. (tryReserved): New function.
  8165. * src/Request.h
  8166. (Requests): New type definition.
  8167. * src/SegmentMan.h
  8168. (reserved): New variable.
  8169. * src/Util.h
  8170. (fileChecksum): New function.
  8171. (toUpper): New function.
  8172. (toLower): New function.
  8173. * src/Util.cc
  8174. (messageDigest.h): Included.
  8175. (trim): Trim \r\n\t.
  8176. (fileChecksum): New function.
  8177. (toUpper): New function.
  8178. (toLower): New function.
  8179. * src/main.cc
  8180. (normalDownload): New function.
  8181. (main): Added 2 command-line options: metalink-file,
  8182. metalink-connection. Their usage has not been written yet.
  8183. * src/MetalinkProcessor.h: New class.
  8184. * src/Xml2MetalinkProcessor.h: New class.
  8185. * src/Xml2MetalinkProcessor.cc: New class.
  8186. * src/MetalinkEntry.h: New class.
  8187. * src/MetalinkEntry.cc: New class.
  8188. * src/MetalinkResource.h: New class.
  8189. * src/MetalinkResource.cc: New class.
  8190. To add md5 message digest checking:
  8191. * src/messageDigest.h: Rewritten.
  8192. * src/MultiDiskWriter.cc: Updated according to the changes in
  8193. messageDigest.h.
  8194. * src/ShaVisitor.cc: Updated according to the changes in
  8195. messageDigest.h.
  8196. * src/Util.cc: Updated according to the changes in messageDigest.h.
  8197. * src/AbstractDiskWriter.cc: Updated according to the changes in
  8198. messageDigest.h.
  8199. To fix a bug that causes segfault when the payload length in peer
  8200. message is less than 0:
  8201. * src/PeerConnection.cc:
  8202. (receiveMessage): Fixed the bug.
  8203. * src/PeerMessageUtil.cc
  8204. (checkLength): Throw an exception if length is less than or equals to
  8205. 0.
  8206. To add new interfaces to Base64 encoding/decoding:
  8207. * src/Base64.h
  8208. (part_encode): Changed the method signature.
  8209. (encode): New function(overload).
  8210. (decode): New function(overload).
  8211. * src/Base64.cc
  8212. (part_encode): Rewritten.
  8213. (encode): Rewritten.
  8214. (encode): New function(overload).
  8215. To prevent a peer to download same piece if there is an error in
  8216. checksum:
  8217. * src/PieceMessage.cc
  8218. (receivedAction): Call peerInteraction->abortPiece().
  8219. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8220. To fix the bug that causes same have message is sent many times to
  8221. a single peer.
  8222. * src/Time.cc
  8223. (isNewer): Use Util::difftv().
  8224. * src/Util.cc
  8225. (difftv): Added a cast to (long long int).
  8226. * src/TorrentMan.cc
  8227. (advertisePiece): Use push_front.
  8228. (getAdvertisedPieceIndexes): A performance improvement was made.
  8229. To fix the bug that sends tracker requests without a sleep interval
  8230. when the number of connections is less than 15.
  8231. * src/TrackerWatcherCommand.cc
  8232. (execute): Now the number of connections is not a factor to decide
  8233. whether or not a tracker request should be sent or not.
  8234. * src/Time.h
  8235. (setTimeInSec): New function.
  8236. * src/Time.cc
  8237. (setTimeInSec): New function.
  8238. etc.
  8239. * src/ChokeMessage.cc
  8240. (receivedAction): Removed peer->snubbing = false
  8241. * src/PeerConnection.h
  8242. (receiveHandshake): Updated doc.
  8243. * src/TorrentMan.h
  8244. (getAdvertisedPieceIndexes): Updated the method signature.
  8245. * src/TorrentMan.cc
  8246. (getAdvertisedPieceIndexes): Updated the method signature.
  8247. * src/Time.h
  8248. (getTimeInMicros): Added a cast to (long long int).
  8249. (getTimeInMillis): Added a cast to (long long int).
  8250. * Release 0.5.2
  8251. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. To make a listening socket non-block:
  8253. * src/SocketCore.h
  8254. (setNonBlockingMode): New function.
  8255. * src/SocketCore.cc
  8256. (setNonBlockingMode): New function.
  8257. (beginListen): Added a call to setNonBlockingMode().
  8258. (acceptConnection): Call setNonBlockingMode().
  8259. (setBlockingMode): Updated.
  8260. To handle tracker's NAT-checking:
  8261. * src/PeerConnection.cc
  8262. (receiveHandshake): 'msg' param is filled with received data and
  8263. its length is assigned to 'length' param, even if all handshake
  8264. message is not yet received.
  8265. * src/PeerInteractionCommand.cc
  8266. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  8267. a new peer connects to localhost.
  8268. A call to peerInteraction->sendHandshake() was removed because
  8269. it is called from peerInteraction->receiveHandshake(true).
  8270. * src/PeerInteraction.h
  8271. (quickReplied): New variable.
  8272. (receiveHandshake): Added an argument.
  8273. * src/PeerInteraction.cc
  8274. (PeerInteraction): Added the initialization of quickReplied.
  8275. (receiveHandshake): Send handshake message as soon as the info hash
  8276. in a handshake message from a peer is correct.
  8277. To change the random part of peer id and key parameter:
  8278. * src/TorrentMan.h
  8279. (key): New variable.
  8280. * src/TorrentMan.cc
  8281. (setupInternal1): Use Util::randomAlpha() to generate random part
  8282. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  8283. key is also generated by Util::randomAlpha() and it is now 8 character
  8284. long.
  8285. * src/Util.h
  8286. (randomAlpha): New function.
  8287. * src/Util.cc
  8288. (randomAlpha): New function.
  8289. * src/TrackerWatcherCommand.cc
  8290. (execute): In a tracker request: Use torrentMan->key as key parameter.
  8291. Added no_peer_id=1.
  8292. Set snubbing flag to false when a choke message is received from a
  8293. snubbed peer.
  8294. * src/ChokeMessage.cc
  8295. (receivedAction): Set snubbing flag to false.
  8296. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  8298. * src/SimpleLogger.h (writeHeader): New function.
  8299. * src/SimpleLogger.cc (writeHeader): New function.
  8300. (writeLog): Fixed the bug that causes segfaults if exception message
  8301. contains an unescaped "%" character.
  8302. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  8303. when a tracker request fails.
  8304. * src/Request.cc (parseUrl): Query string is now handled properly.
  8305. * Release 0.5.1
  8306. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. To add Time class which represents a specific instant in time and
  8308. its precision is microseconds. Time checking procedures were rewritten
  8309. using this object.
  8310. * src/Time.h: New class.
  8311. * src/Time.cc: New class.
  8312. * src/AbstractCommand.h
  8313. (updateCheckPoint): Removed.
  8314. (isTimeoutDetected): Removed.
  8315. (checkPoint): Changed the type to Time.
  8316. (timeout): New variable.
  8317. (setTimeout): New function.
  8318. * src/AbstractCommand.cc
  8319. (AbstractCommand): Removed the initialization of checkPoint.
  8320. Added the initialization of timeout.
  8321. (updateCheckPoint): Removed.
  8322. (isTimeoutDetected): Removed.
  8323. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  8324. * src/PeerChokeCommand.h
  8325. (checkPoint): Changed the type to Time.
  8326. * src/PeerChokeCommand.cc
  8327. (PeerChokeCommand): Removed the initialization of checkPoint.
  8328. (execute): Rewritten using Time object.
  8329. * src/TrackerWatcherCommand.h
  8330. (checkPoint): Changed the type to Time.
  8331. * src/TrackerWatcherCommand.cc
  8332. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  8333. (execute): Rewritten.
  8334. * src/ConsoleDownloadEngine.h
  8335. (cp): Changed the type to Time.
  8336. (startup): Changed the type to Time.
  8337. * src/ConsoleDownloadEngine.cc
  8338. (initStatistics): Use cp.reset(), startup.reset().
  8339. (calculateStatistics): Rewritten using Time object.
  8340. * src/PeerAbstractCommand.h
  8341. (updateCheckPoint): Removed.
  8342. (isTimeoutDetected): Removed.
  8343. (checkPoint): Changed the type to Time.
  8344. * src/PeerAbstractCommand.cc
  8345. (PeerAbstractCommand): Removed the initialization of checkPoint.
  8346. (updateCheckPoint): Removed.
  8347. (isTimeoutDetected): Removed.
  8348. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  8349. * src/PeerInteractionCommand.cc
  8350. (PeerInteractionCommand): Removed the initializations of struct
  8351. timeval variables.
  8352. * src/PeerInteractionCommand.h
  8353. (keepAliveCheckPoint): Changed the type to Time.
  8354. (chokeCheckPoint): Changed the type to Time.
  8355. (freqCheckPoint): Changed the type to Time.
  8356. (haveCheckTime): Changed the type to Time.
  8357. * src/PeerInteractionCommand.cc
  8358. (executeInternal): Rewritten using Time object.
  8359. (detectMessageFlooding): Rewritten using Time object.
  8360. (checkLongTimePeerChoking): Rewritten using Time object.
  8361. (sendKeepAlive): Rewritten using Time object.
  8362. (checkHave): Rewritten using Time object.
  8363. * src/SleepCommand.h
  8364. (checkPoint): Changed the type to Time.
  8365. * src/SleepCommand.cc
  8366. (SleepCommand): Removed the initialization of checkPoint.
  8367. (execute): Rewritten using Time object.
  8368. * src/TorrentAutoSaveCommand.h
  8369. (checkPoint): Changed the type to Time.
  8370. * src/TorrentAutoSaveCommand.cc
  8371. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  8372. (execute): Rewritten.
  8373. * src/DownloadCommand.h
  8374. (sw): Changed the type to Time.
  8375. * src/DownloadCommand.cc
  8376. (DownloadCommand): Removed the initialization of sw.
  8377. (executeInternal): Rewritten.
  8378. * src/RequestSlot.h
  8379. (dispatchedTime): Changed the type to Time.
  8380. * src/RequestSlot.cc
  8381. (RequestSlot): Removed the call to setDispatchedTime().
  8382. (setDispatchedTime): Rewirtten.
  8383. (isTimeout): Rewritten.
  8384. (getLatencyInMillis): Rewritten.
  8385. * src/TorrentDownloadEngine.h
  8386. (cp): Changed the type to Time[2].
  8387. (startup): Changed the type to Time.
  8388. * src/TorrentDownloadEngine.cc
  8389. (initStatistics): Rewritten.
  8390. (calculateStatistics): Rewritten.
  8391. * src/DownloadEngine.cc
  8392. (run): Rewritten.
  8393. To detect all attempts to connect to the tracker are failed:
  8394. * src/AbstractCommand.cc
  8395. (execute): Increment e->segmentMan->errors if a command aborted.
  8396. * src/SegmentMan.h
  8397. (errors): New variable.
  8398. * src/SegmentMan.cc
  8399. (SegmentMan): Added the initialization of errors.
  8400. (init): Added the initialization of errors.
  8401. * src/TrackerWatcherCommand.cc
  8402. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  8403. request was failed.
  8404. To handle snubbed peers:
  8405. * src/PeerChokeCommand.cc
  8406. (optUnchokingPeer): Snubbed peers don't get unchoked.
  8407. (execute): Snubbed peers don't get unchoked.
  8408. * src/PeerInteraction.h
  8409. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  8410. * src/PeerInteraction.cc
  8411. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  8412. back the requested 16k block in 60 seconds.
  8413. * src/PieceMessage.cc
  8414. (receivedAction): A peer's snubbed state is cleard if it sends
  8415. the requested 16k block in 60 seconds.
  8416. * src/Peer.h
  8417. (snubbing): New variable.
  8418. * src/Peer.cc
  8419. (resetStatus): Added snubbed = false.
  8420. To fix the bug that causes have message is not sent:
  8421. * src/PeerInteractionCommand.cc
  8422. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  8423. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  8424. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  8425. * src/TorrentMan.h
  8426. (HaveEntry): New class.
  8427. (advertisePiece): Rewritten.
  8428. (getAdvertisedPieceIndexes): Rewritten.
  8429. (Haves): Changed the type.
  8430. (getAdvertisedPieceIndexes): Added an argument.
  8431. Others:
  8432. * src/TorrentMan.h
  8433. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  8434. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  8435. * src/TorrentMan.cc
  8436. (getPeer): Don't check the number of connections here.
  8437. (setupInternal1): Changed peerId.
  8438. * src/PeerInteractionCommand.h
  8439. (KEEP_ALIVE_INTERVAL): New definition.
  8440. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  8441. * src/main.cc
  8442. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  8443. * src/DownloadEngine.h: Removed unnecessary header includes.
  8444. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. To fix the bug that causes segfaults if a tracker returns a zero-length
  8446. list as "peers":
  8447. * src/TrackerUpdateCommand.cc
  8448. (execute): Added a check to see wether the type of peers is Data*.
  8449. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8450. * Release 0.5.0
  8451. To fix compile issue with gcc3:
  8452. * src/CancelMessage.h
  8453. (ID): Renamed as ID_t
  8454. (ID_t): New enum.
  8455. * src/RejectMessage.h
  8456. (ID): Renamed as ID_t
  8457. (ID_t): New enum.
  8458. * src/SuggestPieceMessage.h
  8459. (ID): Renamed as ID_t
  8460. (ID_t): New enum.
  8461. * src/AllowedFastMessage.h
  8462. (ID): Renamed as ID_t
  8463. (ID_t): New enum.
  8464. * src/PortMessage.h
  8465. (ID): Renamed as ID_t
  8466. (ID_t): New enum.
  8467. * src/HaveNoneMessage.h
  8468. (ID): Renamed as ID_t
  8469. (ID_t): New enum.
  8470. * src/KeepAliveMessage.h
  8471. (ID): Renamed as ID_t
  8472. (ID_t): New enum.
  8473. * src/HaveAllMessage.h
  8474. (ID): Renamed as ID_t
  8475. (ID_t): New enum.
  8476. * src/UnchokeMessage.h
  8477. (ID): Renamed as ID_t
  8478. (ID_t): New enum.
  8479. * src/BitfieldMessage.h
  8480. (ID): Renamed as ID_t
  8481. (ID_t): New enum.
  8482. * src/PieceMessage.h
  8483. (ID): Renamed as ID_t
  8484. (ID_t): New enum.
  8485. * src/RequestMessage.h
  8486. (ID): Renamed as ID_t
  8487. (ID_t): New enum.
  8488. * src/NotInterestedMessage.h
  8489. (ID): Renamed as ID_t
  8490. (ID_t): New enum.
  8491. * src/ChokeMessage.h
  8492. (ID): Renamed as ID_t
  8493. (ID_t): New enum.
  8494. * src/InterestedMessage.h
  8495. (ID): Renamed as ID_t
  8496. (ID_t): New enum.
  8497. * src/HaveMessage.h
  8498. (ID): Renamed as ID_t
  8499. (ID_t): New enum.
  8500. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8501. * src/PeerAbstractCommand.h
  8502. (beforeSocketCheck): Removed.
  8503. * src/PeerAbstractCommand.cc
  8504. Modified in order to call executeInternal() even if socket check
  8505. and upload limit check fail.
  8506. * src/PeerInteractionCommand.h
  8507. (keepAlive): Removed.
  8508. (sendKeepAlive): New function.
  8509. (checkHave): New function.
  8510. (beforeSocketCheck): Removed.
  8511. * src/PeerInteractionCommand.cc
  8512. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  8513. calls to checkHave() and sendKeepAlive().
  8514. (keepAlive): Renamed to sendKeepAlive().
  8515. (sendKeepAlive): New function.
  8516. (beforeSocketCheck): Removed.
  8517. (checkHave): New function.
  8518. * src/BitfieldMan.cc
  8519. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  8520. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  8521. 0.
  8522. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  8523. * src/TorrentMan.h
  8524. (UsedPieces): Removed.
  8525. (Pieces): New type definition.
  8526. * src/Piece.h: Updated doc.
  8527. * src/Peer.h
  8528. (totalLength): Removed.
  8529. * src/Peer.cc
  8530. (updateLatency): Fixed the latency calculation.
  8531. * src/TorrentMan.cc
  8532. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  8533. than or equal to MAX_PEER_LIST_SIZE.
  8534. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  8535. then return false.
  8536. (deleteOldErrorPeers): Rewritten.
  8537. (deleteUsedPiece): Fixed the miss use of STL remove.
  8538. * src/PeerInteraction.h
  8539. (Pieces): Removed.
  8540. (deleteTimeoutRequestSlot): Removed.
  8541. (deleteCompletedRequestSlot): Removed.
  8542. (checkRequestSlot): New function.
  8543. * src/PeerInteraction.cc
  8544. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  8545. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  8546. (checkRequestSlot): New function.
  8547. * src/DownloadEngine.cc
  8548. (run): Clear activeSockets before calling waitData().
  8549. (waitData): Removed a call to activeSockets.clear().
  8550. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. To attempt to handle EINTR:
  8552. * src/SocketCore.cc
  8553. (isReadable): Added EINTR handling.
  8554. (isWritable): Added EINTR handling.
  8555. To improve the performance:
  8556. * src/AbstractCommand.cc
  8557. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  8558. * src/PeerInteractionCommand.h
  8559. (receiveMessage): Renamed as receiveMessages().
  8560. (receiveMessages): New function.
  8561. * src/PeerInteractionCommand.cc
  8562. (executeInternal): receiveMessage loop is moved to new receiveMessages
  8563. () function. detectMessageFlooding() is moved here.
  8564. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  8565. (). The flooding detection for have message is comment out.
  8566. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  8567. Util::difftv().
  8568. (receiveMessage): Renamed as receiveMessages().
  8569. (receiveMessages): New function.
  8570. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  8571. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  8572. * src/SleepCommand.cc
  8573. (execute): Use Util::difftvsec() instead of Util::difftv().
  8574. * src/BitfieldMan.h
  8575. (getNthBitIndex): New function.
  8576. (hasMissingPiece): New function.
  8577. (getAllMissingIndexes): New function.
  8578. * src/BitfieldMan.cc
  8579. (countSetBit): Rewritten.
  8580. (getNthBitIndex): New function.
  8581. (getMissingIndexRandomly): Rewritten.
  8582. (hasMissingPiece): New function.
  8583. (getAllMissingIndexes): New function.
  8584. * src/TorrentMan.cc
  8585. (hasMissingPiece): New function.
  8586. (deleteUsedPiece): Rewritten using STL.
  8587. * src/PeerInteraction.cc
  8588. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  8589. is a little bit faster then TorrentMan::getMissingPieceIndex().
  8590. (addRequests): Updated the number of pending requests.
  8591. * src/PeerAbstractCommand.cc
  8592. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  8593. (execute): Returns true if TorrentMan::isHalt() is true.
  8594. Corrected the condition of upload limit checking.
  8595. * src/Util.h
  8596. (countBit): New function.
  8597. * src/Util.cc
  8598. (nbits): New variable.
  8599. (countBit): New function.
  8600. * src/DownloadEngine.h
  8601. (SockCmdMap): New type definition.
  8602. (waitData): Added an argument.
  8603. (addSocket): Added an argument.
  8604. (addSocketForReadCheck): Added an argument.
  8605. (addSocketForWriteCheck): Added an argument.
  8606. * src/DownloadEngine.cc
  8607. (run): Executes only commands whose sockets are ready to read or write.
  8608. All commands are executed in every 1 second.
  8609. (waitData): Calls select() again if it returned
  8610. EINTR.
  8611. (addSocket): Saves socket and command object pair to the map.
  8612. (deleteSocket): Deletes socket and command object pair from the map.
  8613. (addSocketForReadCheck): Added an argument.
  8614. (addSocketForWriteCheck): Added an argument.
  8615. * src/DownloadCommand.cc
  8616. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  8617. To send "event=stopped" to the tracker when the application finishes:
  8618. * src/PeerChokeCommand.h
  8619. (checkPoint): New variable.
  8620. * src/PeerChokeCommand.cc
  8621. (PeerChokeCommand): Added the initialization of checkPoint.
  8622. (execute): The interval check is now done by checkPoint, not
  8623. SleepCommand. Return true if TorrentMan::isHalt() is true.
  8624. * src/TorrentMan.h
  8625. (halt): New function.
  8626. (hasMissingPiece): New function.
  8627. (isHalt): New function.
  8628. (setHalt): New function.
  8629. * src/TorrentMan.cc
  8630. (TorrentMan): Added the initialization of halt.
  8631. * src/TorrentAutoSaveCommand.h
  8632. (checkPoint): New variable.
  8633. * src/PeerListenCommand.cc
  8634. (execute): Returns true if TorrentMan::isHalt() is true.
  8635. * src/main.cc
  8636. (setSignalHander): Added flags argument.
  8637. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  8638. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  8639. Removed printDownloadAbortMessage() after torrent downloading loop.
  8640. * src/TorrentAutoSaveCommand.cc
  8641. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  8642. (execute): Returns true if TorrentMan::isHalt() is true.
  8643. The interval check is now done by checkPoint, not SleepCommand.
  8644. * src/TrackerWatcherCommand.cc
  8645. (execute): If TorrentMan::isHalt(), then create a tracker request with
  8646. event=stopped.
  8647. * src/TrackerUpdateCommand.cc
  8648. (prepareForRetry): Do not use SleepCommand here.
  8649. (execute): Returns true if TorrentMan::isHalt() is true.
  8650. Others:
  8651. * src/TorrentMan.cc
  8652. (getMissingPieceIndex): Updated log message.
  8653. * src/PeerInteraction.cc
  8654. (createPeerMessag): Updated log message.
  8655. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8656. To add the ability to download several pieces in mix in a command and
  8657. increase the number of request slots according to request-cancel
  8658. latency:
  8659. * src/PeerInteractionCommand.cc
  8660. (executeInternal): The number of messages to be received at a time
  8661. is increased from 10 to 50.
  8662. * src/LogFactory
  8663. (getInstance): Added NullLogger.
  8664. * src/NullLogger.h: New class.
  8665. * src/BitfieldMan.h
  8666. (getMissingIndex): New function.
  8667. * src/BitfieldMan.cc
  8668. (getMissingIndex): New function.
  8669. * src/TorrentMan.h
  8670. (checkOutPiece): New function.
  8671. (getMissingPieceIndex): New function.
  8672. (getMissingFastPieceIndex): New function.
  8673. (getMissingFastPiece): New function.
  8674. * src/TorrentMan.cc
  8675. (updatePiece): Rewritten using STL.
  8676. (syncPiece): Rewritten using STL.
  8677. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  8678. checkOutPiece().
  8679. (getMissingPieceIndex): New function.
  8680. (getMissingFastPieceIndex): New function.
  8681. (getMissingFastPiece): New function.
  8682. (checkOutPiece): New function.
  8683. * src/PeerInteraction.h
  8684. (Pieces): New type definition.
  8685. (piece): Removed.
  8686. (pieces): New variable.
  8687. (getNewPieceAndSendInterest): Added the "piece" argument.
  8688. (abortPiece): Added the "piece" argument.
  8689. (abortAllPieces): New function.
  8690. (isInRequestSlot): New function.
  8691. (hasDownloadPiece): Added the "index" argument.
  8692. (setDownloadPiece): Removed.
  8693. (getDownloadPiece): Added the "index" argument.
  8694. (updatePiece): New function.
  8695. (createRequestMessage): Added the "index" argument.
  8696. * src/PeerInteraction.cc
  8697. (onChoked): Rewritten.
  8698. (abortPiece): Rewirtten.
  8699. (abortAllPieces): New function.
  8700. (deleteTimeoutRequestSlot): Rewritten.
  8701. Clarified code a little bit.
  8702. (deleteCompletedRequestSlot): Rewritten.
  8703. (isInRequestSlot): New function.
  8704. (syncPiece): Rewritten.
  8705. (updatePiece): New function.
  8706. (getNewPieceAndSendInterest): Rewritten.
  8707. (addRequests): Rewritten.
  8708. (getDownloadPiece): Rewritten.
  8709. (hasDownloadPiece): Rewritten.
  8710. (createRequestMessage): Added the "index" argument.
  8711. * src/common.h
  8712. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  8713. (DIV_FLOOR): New definition.
  8714. * src/PieceMessage.cc
  8715. (receivedAction): Update request-piece latency here.
  8716. * src/RequestSlot.h
  8717. (getLatencyInMillis): New function.
  8718. * src/RequestSlot.cc
  8719. (isTimeout): Rewritten using getLatencyInMillis.
  8720. (getLatencyInMillis): New function.
  8721. * src/Piece.h
  8722. (operator==): New function.
  8723. (getMissingBlockIndex): New function.
  8724. * src/Piece.cc
  8725. (operator==): New function.
  8726. (getMissingBlockIndex): New function.
  8727. * src/Peer.h
  8728. (DEFAULT_LATENCY): New definition.
  8729. (latency): New variable.
  8730. (updateLatency): New function.
  8731. (getLatency): New function.
  8732. * src/Peer.cc
  8733. (resetStatus): Reset latecy.
  8734. (updateLatency): New function.
  8735. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8736. * src/SocketCore.cc
  8737. (isReadable): Added secure to the condition.
  8738. * src/HttpConnection.cc
  8739. (receiveResponse): Fixed a bug that causes no response header
  8740. exception.
  8741. * src/Peer.h
  8742. (getFastSet): Fixed the return value type.
  8743. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. To remove a wait from download loop:
  8745. * src/DownloadEngine.cc
  8746. (run): Comment out shortSleep.
  8747. To rewrite the message handling:
  8748. * src/SimplePeerMessage.h: New class.
  8749. * src/SimplePeerMessage.cc: New class.
  8750. * src/CancelMessage.h: Derived from SimplePeerMessage.
  8751. (msg): New variable.
  8752. (create): New function.
  8753. (send): Removed.
  8754. (getMessage): New function.
  8755. (getMessageLength): New function.
  8756. * src/CancelMessage.cc
  8757. (create): New function.
  8758. (receivedAction): Replaced deleteRequestMessageInQueue with
  8759. rejectPieceMessageInQueue.
  8760. (send): Removed.
  8761. (getMessage): New function.
  8762. (getMessageLength): New function.
  8763. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  8764. (msg): New variable.
  8765. (msgLength): New variable.
  8766. (~BitfieldMessage): Deleted msg.
  8767. (send): Removed.
  8768. (getMessage): New function.
  8769. (getMessageLength): New function.
  8770. * src/BitfieldMessage.cc
  8771. (create): New function.
  8772. (send): Removed.
  8773. (getMessage): New function.
  8774. (getMessageLength): New function.
  8775. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  8776. (msg): New variable.
  8777. (sendPredicate): New function.
  8778. (onSendComplete): New function.
  8779. (send): Removed.
  8780. (getMessage): New function.
  8781. (getMessageLength): New function.
  8782. (create): New function.
  8783. * src/ChokeMessage.cc
  8784. (create): New function.
  8785. (send): Removed.
  8786. (sendPredicate): New function.
  8787. (getMessage): New function.
  8788. (getMessageLength): New function.
  8789. (onSendComplete): New function.
  8790. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  8791. (msg): New variable.
  8792. (send): Removed.
  8793. (getMessage): New function.
  8794. (getMessageLength): New function.
  8795. * src/KeepAliveMessage.cc
  8796. (send): Removed.
  8797. (getMessage): New function.
  8798. (getMessageLength): New function.
  8799. * src/PortMessage.h
  8800. (create): New function.
  8801. (receivedAction): Updated log message.
  8802. * src/PortMessage.cc: New file.
  8803. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  8804. (msg): New variable.
  8805. (sendPredicate): New function.
  8806. (onSendComplete): New function.
  8807. (create): New function.
  8808. (send): Removed.
  8809. (getMessage): New function.
  8810. (getMessageLength): New function.
  8811. * src/UnchokeMessage.cc
  8812. (create): New function.
  8813. (send): Removed.
  8814. (sendPredicate): New function.
  8815. (getMessage): New function.
  8816. (getMessageLength): New function.
  8817. (onSendComplete): New function.
  8818. * src/PieceMessage.h
  8819. (leftPieceDataLength): Removed.
  8820. (leftDataLength): New variable.
  8821. (headerSend): New variable.
  8822. (pendingCount): New variable.
  8823. (msgHeader): New variable.
  8824. (sendPieceData): New function.
  8825. (incrementPendingCount): New function.
  8826. (isPendingCountMax): New function.
  8827. (create): New function.
  8828. (getMessageHeader): New function.
  8829. (getMessageHeaderLength): New function.
  8830. * src/PieceMessage.cc
  8831. (create): New function.
  8832. (getMessageHeader): New function.
  8833. (getMessageHeaderLength): New function.
  8834. (send): Rewritten.
  8835. (sendPieceData): New function.
  8836. * src/HaveMessage.h: Derived from SimplePeerMessage.
  8837. (msg): New variable.
  8838. (create): New function.
  8839. (getMessage): New function.
  8840. (getMessageLength): New function.
  8841. * src/HaveMessage.cc
  8842. (create): New function.
  8843. (send): Removed.
  8844. (sendPieceData): New function.
  8845. (getMessage): New function.
  8846. (getMessageLength): New function.
  8847. * src/RequestMessage.h: Derived from SimplePeerMessage.
  8848. (msg): New variable.
  8849. (create): New function.
  8850. (send): Removed.
  8851. (getMessage): New function.
  8852. (getMessageLength): New function.
  8853. * src/RequestMessage.cc
  8854. (create): New function.
  8855. (receivedAction): Added the handling of fast extension.
  8856. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  8857. (send): Removed.
  8858. (getMessage): New function.
  8859. (getMessageLength): New function.
  8860. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  8861. (msg): New variable.
  8862. (sendPredicate): New function.
  8863. (onSendComplete): New function.
  8864. (create): New function.
  8865. (getMessage): New function.
  8866. (getMessageLength): New function.
  8867. * src/InterestedMessage.cc
  8868. (create): New function.
  8869. (send): Removed.
  8870. (sendPieceData): New function.
  8871. (getMessage): New function.
  8872. (getMessageLength): New function.
  8873. (onSendComplete): New function.
  8874. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  8875. (msg): New variable.
  8876. (sendPieceData): New function.
  8877. (onSendComplete): New function.
  8878. (create): New function.
  8879. (send): Removed.
  8880. (getMessage): New function.
  8881. (getMessageLength): New function.
  8882. * src/NotInterestedMessage.cc
  8883. (create): New function.
  8884. (send): Removed.
  8885. (sendPredicate): New function.
  8886. (getMessage): New function.
  8887. (getMessageLength): New function.
  8888. (onSendComplete): New function.
  8889. * src/AllowedFastMessage.h: New class.
  8890. * src/AllowedFastMessage.cc: New class.
  8891. * src/RejectMessage.h: New class.
  8892. * src/RejectMessage.cc: New class.
  8893. * src/SuggestPieceMessage.h: New class.
  8894. * src/SuggestPieceMessage.cc: New class.
  8895. * src/HaveAllMessage.h: New class.
  8896. * src/HaveAllMessage.cc: New class.
  8897. * src/HaveNoneMessage.h: New class.
  8898. * src/HaveNoneMessage.cc: New class.
  8899. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  8900. (msg): New variable.
  8901. (reserved): New variable.
  8902. (create): New function.
  8903. (getId): New function.
  8904. (receivedAction): New function.
  8905. (getMessage): New function.
  8906. (getMessageLength): New function.
  8907. (isFastExtensionSupported): New function.
  8908. * src/HandshakeMessage.cc
  8909. (HandshakeMessage): Moved here from HandshakeMessage.h.
  8910. (create): New function.
  8911. (getMessage): New function.
  8912. (getMessageLength): New function.
  8913. (toString): Added the output of reserved field.
  8914. (check): Added const qualifier.
  8915. (isFastExtensionSupported): New function.
  8916. * src/PeerMessageUtil.h
  8917. (createChokeMessage): Removed.
  8918. (createUnchokeMessage): Removed.
  8919. (createInterestedMessage): Removed.
  8920. (createNotInterestedMessage): Removed.
  8921. (createHaveMessage): Removed.
  8922. (createBitfieldMessage): Removed.
  8923. (createRequestMessage): Removed.
  8924. (createCancelMessage): Removed.
  8925. (createPieceMessage): Removed.
  8926. (createPortMessage): Removed.
  8927. (createChokeMessage): Removed.
  8928. (createUnchokeMessage): Removed.
  8929. (createInterestedMessage): Removed.
  8930. (createNotInterestedMessage): Removed.
  8931. (createHaveMessage): Removed.
  8932. (createBitfieldMessage): Removed.
  8933. (createRequestMessage): Removed.
  8934. (createCancelMessage): Removed.
  8935. (createPieceMessage): Removed.
  8936. (createKeepAliveMessage): Removed.
  8937. (createHandshakeMessage): Removed.
  8938. (setIntParam): New function.
  8939. (createPeerMessageString): New function.
  8940. * src/PeerMessageUtil.cc
  8941. (createChokeMessage): Removed.
  8942. (createUnchokeMessage): Removed.
  8943. (createInterestedMessage): Removed.
  8944. (createNotInterestedMessage): Removed.
  8945. (createHaveMessage): Removed.
  8946. (createBitfieldMessage): Removed.
  8947. (createRequestMessage): Removed.
  8948. (createCancelMessage): Removed.
  8949. (createPieceMessage): Removed.
  8950. (createPortMessage): Removed.
  8951. (createRequestMessage): Removed.
  8952. (createCancelMessage): Removed.
  8953. (createPieceMessage): Removed.
  8954. (createHaveMessage): Removed.
  8955. (createChokeMessage): Removed.
  8956. (createUnchokeMessage): Removed.
  8957. (createInterestedMessage): Removed.
  8958. (createNotInterestedMessage): Removed.
  8959. (createBitfieldMessage): Removed.
  8960. (createKeepAliveMessage): Removed.
  8961. (createHandshakeMessage): Removed.
  8962. (setIntParam): New function.
  8963. (createPeerMessageString): New function.
  8964. * src/PeerConnection.h
  8965. (peer): Removed.
  8966. (torrentMan): Removed.
  8967. (createNLengthMessage): Removed.
  8968. (setIntParam): Removed.
  8969. (writeOutgoingMessageLog): Removed all overloaded functions.
  8970. (PeerConnection): Deleted peer and torrentMan from its arguments.
  8971. (sendMessage): New function.
  8972. (sendHandshake): Removed.
  8973. (sendKeepAlive): Removed.
  8974. (sendChoke): Removed.
  8975. (sendUnchoke): Removed.
  8976. (sendInterested): Removed.
  8977. (sendNotInterested): Removed.
  8978. (sendHave): Removed.
  8979. (sendBitfield): Removed.
  8980. (sendRequest): Removed.
  8981. (sendPiece): Removed.
  8982. (sendPieceHeader): Removed.
  8983. (sendPieceData): Removed.
  8984. (sendCancel): Removed.
  8985. (getPeer): Removed.
  8986. * src/PeerConnection.cc
  8987. (PeerConnection): Deleted peer and torrentMan from its arguments.
  8988. (sendHandshake): Removed.
  8989. (sendKeepAlive): Removed.
  8990. (createNLengthMessage): Removed.
  8991. (setIntParam): Removed.
  8992. (writeOutgoingMessageLog): Removed all overloaded functions.
  8993. (sendChoke): Removed.
  8994. (sendUnchoke): Removed.
  8995. (sendInterested): Removed.
  8996. (sendNotInterested): Removed.
  8997. (sendHave): Removed.
  8998. (sendBitfield): Removed.
  8999. (sendRequest): Removed.
  9000. (sendPiece): Removed.
  9001. (sendPieceHeader): Removed.
  9002. (sendPieceData): Removed.
  9003. (sendMessage): New function.
  9004. (sendCancel): Removed.
  9005. * src/PeerInteractionCommand.cc
  9006. (PeerInteractionCommand): Call setUploadLimit.
  9007. (executeInternal): Call setUploadLimit.
  9008. Added the handling of "inProgress" state of handshake message.
  9009. Call sendBitfield() or sendAllowdFast() instead of deprecated
  9010. sendNow().
  9011. (keepAlive): Call addMessage and sendMessage instead of deprecated
  9012. sendNow().
  9013. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  9014. * src/TorrentMan.h
  9015. (PEER_ID_LENGTH): New definition.
  9016. (hasAllPieces): New function.
  9017. * src/TorrentMan.cc
  9018. (getMissingPiece): Added the handling of fast extension.
  9019. (cancelPiece): Call updatePiece().
  9020. (hasAllPieces): New function.
  9021. * src/PeerInteraction.h
  9022. (fastSet): New variable.
  9023. (getNewPieceAndSendInterest): Changed the return type to void.
  9024. (send): Renamed as sendMessages.
  9025. (deleteAllRequestSlot): Removed.
  9026. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9027. (cancelAllRequest): Removed all overloaded functions.
  9028. (deleteAllRequestSlot): Removed.
  9029. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9030. (rejectPieceMessageInQueue): New function.
  9031. (rejectAllPieceMessageInQueue): New function.
  9032. (onChoked): New function.
  9033. (isSendingMessageInProgress): New function.
  9034. (getCorrespondingRequestSlot): Changed its arguments.
  9035. (isInFastSet): New function.
  9036. (addFastSetIndex): New function.
  9037. (addRequests): New function.
  9038. (sendNow): Removed.
  9039. (trySendNow): Removed.
  9040. (sendBitfield): New function.
  9041. (sendAllowdFast): New function.
  9042. (createHaveAllMessage): New function.
  9043. (createHaveNoneMessage): New function.
  9044. (createRejectMessage): New function.
  9045. (createAllowedFastMessage): New function.
  9046. * src/PeerInteraction.cc
  9047. (send): Renamed as sendMessages.
  9048. (sendMessages): New function.
  9049. (MsgPushBack): New class.
  9050. (isSendingMessageInProgress): New function.
  9051. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9052. (rejectAllPieceMessageInQueue): New function.
  9053. Added the handling of fast extension.
  9054. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9055. (rejectPieceMessageInQueue): New function.
  9056. Added the handling of fast extension.
  9057. (deleteRequestSlot): Replaced for loop with std::find.
  9058. (onChoked): New function.
  9059. (deleteAllRequestSlot): Removed.
  9060. (abortPiece): Rewirtten.
  9061. (deleteTimeoutRequestSlot): Updated log messages.
  9062. (getCorrespondingRequestSlot): Changed its arguments.
  9063. (cancelAllRequest): Removed all overloaded functions.
  9064. (receiveHandshake): Added the check to see whether an incoming peer
  9065. supports fast extension.
  9066. (createHandshakeMessage): Use HandshakeMessage::create instead of
  9067. PeerMessageUtil.
  9068. (createPeerMessage): Use create() of each message class instead of
  9069. PeerMessageUtil.
  9070. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  9071. AllowedFastMessage were added.
  9072. (getNewPieceAndSendInterest): Changed its return value type to void.
  9073. Added the handling of fast extension.
  9074. (addRequests): New function.
  9075. (sendNow): Removed.
  9076. (sendHandshake): Rewritten.
  9077. (trySendNow): Removed.
  9078. (sendBitfield): New function.
  9079. (sendAllowdFast): New function.
  9080. (isInFastSet): New function.
  9081. (addFastSetIndex): New function.
  9082. (createRequestMessage): Use RequestMessage::create instead of
  9083. PeerMessageUtil.
  9084. (createCancelMessage): Use CancelMessage::create instead of
  9085. PeerMessageUtil.
  9086. (createPieceMessage): Use PieceMessage::create instead of
  9087. PeerMessageUtil.
  9088. (createHaveMessage): Use HaveMessage::create instead of
  9089. PeerMessageUtil.
  9090. (createChokeMessage): Use ChokeMessage::create instead of
  9091. PeerMessageUtil.
  9092. (createUnchokeMessage): Use UnchokeMessage::create instead of
  9093. PeerMessageUtil.
  9094. (createInterestedMessage): Use InterestedMessage::create instead of
  9095. PeerMessageUtil.
  9096. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  9097. of PeerMessageUtil.
  9098. (createBitfieldMessage): Use BitfieldMessage::create instead of
  9099. PeerMessageUtil.
  9100. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  9101. PeerMessageUtil.
  9102. (createHaveAllMessage): New function.
  9103. (createHaveNoneMessage): New function.
  9104. (createRejectMessage): New function.
  9105. (createAllowedFastMessage: New function.
  9106. * src/Util.h
  9107. (sha1Sum): New function.
  9108. (computeFastSet): New function.
  9109. * src/Util.cc
  9110. (sha1Sum): New function.
  9111. (computeFastSet): New function.
  9112. * src/Peer.h
  9113. (fastExtensionEnabled): New variable.
  9114. (fastSet): New variable.
  9115. (setAllBitfield): New function.
  9116. (setFastExtensionEnabled): New function.
  9117. (isFastExtensionEnabled): New function.
  9118. (addFastSetIndex): New function.
  9119. (getFastSet): New function.
  9120. (isInFastSet): New function.
  9121. (countFastSet): New function.
  9122. * src/Peer.cc
  9123. (isInFastSet): New function.
  9124. (addFastSetIndex): New function.
  9125. (setAllBitfield): New function.
  9126. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  9127. sockets.
  9128. * src/PeerAbstractCommand.cc
  9129. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  9130. and uploadLimit.
  9131. (execute): Changed the procedure of checking sockets. The upload speed
  9132. checking were added.
  9133. (setUploadLimit): New function.
  9134. (setUploadLimitCheck): New function.
  9135. * src/PeerAbstractCommand.h
  9136. (setUploadLimit): New function.
  9137. (setUploadLimitCheck): New function.
  9138. (uploadLimit): New variable.
  9139. (uploadLimitCheck): New variable.
  9140. To contact a tracker regularly:
  9141. * src/TrackerWatcherCommand.h (interval): New variable.
  9142. (checkPoint): New variable.
  9143. (TrackerWatcherCommand): Added interval argument.
  9144. * src/TrackerWatcherCommand.cc
  9145. (TrackerWatcherCommand): Initialized checkPoint.
  9146. (execute): Now a tracker is contacted in every specified period.
  9147. If peer list is not needed, send request with numwant=0.
  9148. * src/TrackerUpdateCommand.cc
  9149. (execute): Updated log messages.
  9150. * src/DownloadEngine.cc
  9151. (~DownloadEngine): Removed two asserts.
  9152. (waitData): Uncommented wfds. May be a bug fix.
  9153. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. * src/PeerInteractionCommand.h
  9155. (checkInactiveConnection): Removed.
  9156. * src/PeerInteractionCommand.cc
  9157. (executeInternal): Removed following function calls:
  9158. detectMessageFlooding(), checkLongTimePeerChoking and
  9159. checkInactiveConnection().
  9160. (checkInactiveConnection): Removed.
  9161. (detectMessageFlooding): Removed function call to
  9162. checkInactiveConnection().
  9163. * src/PeerMessageUtil.h
  9164. (createChokeMessage): New function. Overload.
  9165. (createUnchokeMessage): New function. Overload.
  9166. (createInterestedMessage): New function. Overload.
  9167. (createNotInterestedMessage): New function. Overload.
  9168. (createHaveMessage): New function. Overload.
  9169. (createBitfieldMessage): New function. Overload.
  9170. (createRequestMessage): New function. Overload.
  9171. (createCancelMessage): New function. Overload.
  9172. (createPieceMessage): New function. Overload.
  9173. (createKeepAliveMessage): New function. Overload.
  9174. * src/PeerMessageUtil.cc
  9175. (createChokeMessage): New function. Overload.
  9176. (createUnchokeMessage): New function. Overload.
  9177. (createInterestedMessage): New function. Overload.
  9178. (createNotInterestedMessage): New function. Overload.
  9179. (createHaveMessage): New function. Overload.
  9180. (createBitfieldMessage): New function. Overload.
  9181. (createRequestMessage): New function. Overload.
  9182. (createCancelMessage): New function. Overload.
  9183. (createPieceMessage): New function. Overload.
  9184. (createKeepAliveMessage): New function. Overload.
  9185. * src/SendMessageQueue.cc
  9186. (createRequestMessage): Use PeerMessageUtil.
  9187. (createCancelMessage): Use PeerMessageUtil.
  9188. (createPieceMessage): Use PeerMessageUtil.
  9189. (createHaveMessage): Use PeerMessageUtil.
  9190. (createChokeMessage): Use PeerMessageUtil.
  9191. (createUnchokeMessage): Use PeerMessageUtil.
  9192. (createInterestedMessage): Use PeerMessageUtil.
  9193. (createNotInterestedMessage): Use PeerMessageUtil.
  9194. (createBitfieldMessage): Use PeerMessageUtil.
  9195. (createKeepAliveMessage): Use PeerMessageUtil.
  9196. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  9197. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  9198. * src/PeerInteraction.h: New class.
  9199. * src/PeerInteraction.cc: New class.
  9200. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. Each peer message has its own class.
  9202. * src/PendingMessages.h: Removed.
  9203. * src/PendingMessages.cc: Removed. The sending process was moved to
  9204. each message class.
  9205. * src/RequestSlotMan.h: Removed.
  9206. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  9207. SendMessageQueue.
  9208. * src/RequestMessage.h: New class.
  9209. * src/RequestMessage.cc: New class.
  9210. * src/CancelMessage.h: New class.
  9211. * src/CancelMessage.cc: New class.
  9212. * src/BitfieldMessage.h: New class.
  9213. * src/BitfieldMessage.cc: New class.
  9214. * src/ChokeMessage.h: New class.
  9215. * src/ChokeMessage.cc: New class.
  9216. * src/KeepAliveMessage.h: New class.
  9217. * src/KeepAliveMessage.cc: New class.
  9218. * src/PortMessage.h: New class.
  9219. * src/UnchokeMessage.h: New class.
  9220. * src/UnchokeMessage.cc: New class.
  9221. * src/PieceMessage.h: New class.
  9222. * src/PieceMessage.cc: New class.
  9223. * src/HaveMessage.h: New class.
  9224. * src/HaveMessage.cc: New class.
  9225. * src/BitfieldMessage.h: New class.
  9226. * src/BitfieldMessage.cc: New class.
  9227. * src/NotInterestedMessage.h: New class.
  9228. * src/NotInterestedMessage.cc: New class.
  9229. * src/InterestedMessage.h: New class.
  9230. * src/InterestedMessage.cc: New class.
  9231. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  9232. (getSendMessageQueue): New function.
  9233. (setSendMessageQueue): New function.
  9234. * src/HandshakeMessage.cc: New class.
  9235. * src/PeerConnection.h (receiveMessage): Changed return value and
  9236. arguments.
  9237. (receiveHandshake): Changed return value and arguments.
  9238. * src/PeerConnection.cc (receiveMessage): Do not create message class
  9239. here.
  9240. (receiveHandshake): Do not create handshake class here.
  9241. * src/PeerInteractionCommand.h (peerConnection): Removed.
  9242. (piece): Removed.
  9243. (syncPiece): Removed.
  9244. (sendInterest): Removed.
  9245. (sendMessages): Removed.
  9246. (createRequestPendingMessage): Removed.
  9247. (checkPieceHash): Removed.
  9248. (erasePieceOnDisk): Removed.
  9249. (getNewPieceAndSendInterest): Removed.
  9250. (onGotNewPice): Removed.
  9251. (onGotWrongPiece): Removed.
  9252. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  9253. Removed peerConnection, piece.
  9254. (~PeerInteractionCommand): Removed peerConnection.
  9255. (executeInternal): Use sendMessageQueue instead of peerConnection.
  9256. (syncPiece): Moved to SendMessageQueue.
  9257. (decideChoking): Removed PendingMessage.
  9258. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  9259. The action after receiving peer message was moved to each message
  9260. class.
  9261. (onGotNewPice): Moved to SendMessageQueue.
  9262. (onGotWrongPiece): Moved to SendMessageQueue.
  9263. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  9264. (sendInterest): Moved to SendMessageQueue.
  9265. (createRequestPendingMessage): Removed.
  9266. (sendMessages): Moved to SendMessageQueue.
  9267. (onAbort): Use SendMessageQueue::abortPiece()
  9268. (keepAlive): Use sendMessageQueue instead of peerConnection.
  9269. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  9270. (checkPieceHash): Moved to SendMessageQueue.
  9271. (erasePieceOnDisk): Moved to SendMessageQueue.
  9272. * src/PeerMessageUtil.h
  9273. (createBitfieldMessage): Removed.
  9274. (createHaveMessage): Changed return value and arguments.
  9275. (createBitfieldMessage): Changed return value and arguments.
  9276. (createRequestCancelMessage): Removed.
  9277. (createPieceMessage): Changed return value and arguments.
  9278. (getShortIntParam): New function.
  9279. (checkIndex): Changed arguments.
  9280. (checkBegin): Changed arguments.
  9281. (checkLength): Changed arguments.
  9282. (checkPieceOffset): Removed.
  9283. (checkRange): New function.
  9284. (checkBitfield): Changed arguments.
  9285. (createPeerMessage): Removed.
  9286. (checkIntegrity): Removed.
  9287. (createHandshakeMessage): Changed arguments.
  9288. (createChokeMessage): New function.
  9289. (createUnchokeMessage): New function.
  9290. (createInterestedMessage): New function.
  9291. (createNotInterestedMessage): New function.
  9292. (createRequestMessage): New function.
  9293. (createCancelMessage): New function.
  9294. (createPortMessage): New function.
  9295. * src/PeerMessageUtil.cc
  9296. (createBitfieldMessage): Removed.
  9297. (createHaveMessage): Changed return value and arguments.
  9298. (createBitfieldMessage): Changed return value and arguments.
  9299. (createRequestCancelMessage): Removed.
  9300. (createPieceMessage): Changed return value and arguments.
  9301. (getShortIntParam): New function.
  9302. (checkIndex): Changed arguments.
  9303. (checkBegin): Changed arguments.
  9304. (checkLength): Changed arguments.
  9305. (checkPieceOffset): Removed.
  9306. (checkRange): New function.
  9307. (checkBitfield): Changed arguments.
  9308. (createPeerMessage): Removed.
  9309. (checkIntegrity): Removed.
  9310. (createHandshakeMessage): Changed arguments.
  9311. (createChokeMessage): New function.
  9312. (createUnchokeMessage): New function.
  9313. (createInterestedMessage): New function.
  9314. (createNotInterestedMessage): New function.
  9315. (createRequestMessage): New function.
  9316. (createCancelMessage): New function.
  9317. (createPortMessage): New function.
  9318. * src/PeerMessage.h
  9319. (id): Removed.
  9320. (index): Removed.
  9321. (begin): Removed.
  9322. (length): Removed.
  9323. (bitfield): Removed.
  9324. (bitfieldLength): Removed.
  9325. (block): Removed.
  9326. (blockLength): Removed.
  9327. (inProgress): New variable.
  9328. (cuid): New variable.
  9329. (peer): New variable.
  9330. (sendMessageQueue): New variable.
  9331. (logger): New variable.
  9332. (setBitfield): Removed.
  9333. (getBitfield): Removed.
  9334. (setBlock): Removed.
  9335. (getBlock): Removed.
  9336. (getBitfieldLength): Removed.
  9337. (getBlockLength): Removed.
  9338. (isInProgress): New function.
  9339. (toString): Made pure virtual.
  9340. (check): New function.
  9341. (send): New function.
  9342. (receivedAction): New function.
  9343. (getId): Made pure virtual.
  9344. (setId): Removed.
  9345. (getIndex): Removed.
  9346. (setIndex): Removed.
  9347. (getBegin): Removed.
  9348. (setBegin): Removed.
  9349. (getLength): Removed.
  9350. (setLength): Removed.
  9351. (getCuid): New function.
  9352. (setCuid): New function.
  9353. (getPeer): New function.
  9354. (setPeer): New function.
  9355. (getSendMessageQueue): New function.
  9356. (setSendMessageQueue): New function.
  9357. (ID): Removed.
  9358. * src/PeerMessage.cc
  9359. (setBitfield): Removed.
  9360. (setBlock): Removed.
  9361. (toString): Removed.
  9362. * src/TorrentMan.h
  9363. (getPieceLength): New function.
  9364. (getPieceLength): New function.
  9365. * src/SendMessageQueue.h
  9366. (REQUEST_TIME_OUT): New definition.
  9367. (RequestSlots): New definition.
  9368. (MessageQueue): New definition.
  9369. (requestSlotMan): Removed.
  9370. (pendingMessages): Removed.
  9371. (requestSlots): New variable.
  9372. (messageQueue): New variable.
  9373. (torrentMan): New variable.
  9374. (peerConnection): New variable.
  9375. (peer): New variable.
  9376. (piece): New variable.
  9377. (getNewPieceAndSendInterest): New function.
  9378. (createPeerMessage): New function.
  9379. (createHandshakeMessage): New function.
  9380. (send): Made private.
  9381. (setPeerMessageCommonProperty): New function.
  9382. (deleteAllRequestSlot): New function.
  9383. (deleteRequestMessageInQueue): New function.
  9384. (cancelAllRequest): Made private.
  9385. (cancelAllRequest): Made private.
  9386. (countRequestSlot): Made private.
  9387. (addPendingMessage): Removed.
  9388. (deletePendingPieceMessage): Removed.
  9389. (deletePendingRequestMessage): Removed.
  9390. (addMessage): New function.
  9391. (deletePieceMessageInQueue): New function.
  9392. (deleteTimeoutRequestSlot): Changed argument.
  9393. (deleteCompletedRequestSlot): Changed argument.
  9394. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  9395. (getCorrespondingRequestSlot): New function.
  9396. (countPendingMessage): Removed.
  9397. (countMessageInQueue): New function.
  9398. (getTorrentMan): New function.
  9399. (getPeerConnection): New function.
  9400. (hasDownloadPiece): New function.
  9401. (getDownloadPiece): New function.
  9402. (setDownloadPiece): New function.
  9403. (syncPiece): New function.
  9404. (sendMessages): New function.
  9405. (sendNow): New function.
  9406. (trySendNow): New function.
  9407. (abortPiece): New function.
  9408. (sendHandshake): New function.
  9409. (receiveMessage): New function.
  9410. (receiveHandshake): New function.
  9411. (createRequestMessage): New function.
  9412. (createCancelMessage): New function.
  9413. (createPieceMessage): New function.
  9414. (createHaveMessage): New function.
  9415. (createChokeMessage): New function.
  9416. (createUnchokeMessage): New function.
  9417. (createInterestedMessage): New function.
  9418. (createNotInterestedMessage): New function.
  9419. (createBitfieldMessage): New function.
  9420. (createKeepAliveMessage): New function.
  9421. * src/SendMessageQueue.cc
  9422. (SendMessageQueue): Removed requestSlotMan.
  9423. Instantiated peerConnection here.
  9424. (~SendMessageQueue): Removed requestSlotMan.
  9425. Added deletion of peerConnection and the contents of messageQueue.
  9426. (send): Updated according to the change of messageQueue.
  9427. (addPendingMessage): Renamed to addMessage.
  9428. (addMessage): New function.
  9429. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  9430. (deletePieceMessageInQueue): New function.
  9431. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  9432. (deleteRequestMessageInQueue): New function.
  9433. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  9434. here.
  9435. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  9436. (...) was moved here.
  9437. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  9438. moved here.
  9439. (deleteCompletedRequestSlot):
  9440. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  9441. (getCorrespondingRequestSlot):
  9442. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  9443. And renamed to getCorrespondingRequestSlot, correcting a typo.
  9444. (countPendingMessage): Renamed to countMessageInQueue.
  9445. (countMessageInQueue): New function.
  9446. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  9447. (receiveHandshake): New function.
  9448. (createHandshakeMessage): New function.
  9449. (receiveMessage): New function.
  9450. (createPeerMessage): New function.
  9451. (syncPiece): New function.
  9452. (getNewPieceAndSendInterest): New function.
  9453. (sendMessages): New function.
  9454. (sendNow): New function.
  9455. (trySendNow): New function.
  9456. (sendHandshake): New function.
  9457. (abortPiece): New function.
  9458. (getDownloadPiece): New function.
  9459. (getPeerMessageCommonProperty): New function.
  9460. (createRequestMessage): New function.
  9461. (createCancelMessage): New function.
  9462. (createPieceMessage): New function.
  9463. (createHaveMessage): New function.
  9464. (createChokeMessage): New function.
  9465. (createUnchokeMessage): New function.
  9466. (createInterestedMessage): New function.
  9467. (createNotInterestedMessage): New function.
  9468. (createBitfieldMessage): New function.
  9469. (createKeepAliveMessage): New function.
  9470. To add simple Content-Disposition support:
  9471. * src/HttpResponseCommand.h (determinFilename): New function.
  9472. * src/HttpResponseCommand.cc (executeInternal):
  9473. Use determinFilename(headers) instead of req->getFile() when comparing
  9474. filename.
  9475. (determinFilename): New function.
  9476. (handleDefaultEncoding): Use determinFilename(headers) instead of
  9477. req->getFile().
  9478. (handleOtherEncoding): Use determinFilename(headers) instead of
  9479. req->getFile().
  9480. * src/Util.h (getContentDispositionFilename): New function.
  9481. * src/Util.cc (getContentDispositionFilename): New function.
  9482. * src/LogFactory.h (release): New function.
  9483. * src/LogFactory.cc (release): New function.
  9484. To fix a bug that causes out-of-bound exception when HTTP status
  9485. line is wrong:
  9486. * src/HttpConnection.cc (receiveResponse): Added a check for header
  9487. size.
  9488. * src/common.h (Deleter): New class.
  9489. * src/SegmentMan.cc
  9490. (~SegmentMan): Added deletion of splitter and diskWriter.
  9491. * src/DownloadEngine.h
  9492. (Commands): Use deque.
  9493. (clearQueue): New function.
  9494. * src/DownloadEngine.cc
  9495. (~DownloadEngine): Added deletion of segmentMan.
  9496. (cleanQueue): New function.
  9497. * src/TorrentDownloadEngine.h
  9498. (TorrentDownloadEngine): The implementation was moved to
  9499. TorrentDownloadEngine.cc.
  9500. (~TorrentDownloadEngine): The implementation was moved to
  9501. TorrentDownloadEngine.cc.
  9502. * src/TorrentDownloadEngine.cc
  9503. (~TorrentDownloadEngine): Added deletion of torrentMan.
  9504. * src/main.cc
  9505. (clearRequest): Removed.
  9506. (handler): Added deletion of e.
  9507. (torrentHandler): Added deletion of te.
  9508. (main): Do not share splitter.
  9509. Use Deleter instead of clearRequest.
  9510. Deletion of classes were updated.
  9511. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. * src/main.cc (main): Fixed typo.
  9513. * src/message.h: Fixed typo.
  9514. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  9515. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9516. To add --select-file command-line option:
  9517. * src/Util.cc
  9518. (unfoldRange): New function.
  9519. (getNum): New function.
  9520. (unfoldSubRange): New function
  9521. * src/main.cc
  9522. (showUsage): Added help message.
  9523. (main): Added --select-file command-line option. Updated the layout of
  9524. file listing.
  9525. * src/common.h
  9526. (Integers): New definition.
  9527. * src/SocketCore.cc
  9528. (writeData): Removed timeout argument.
  9529. (readData): Removed timeout argument.
  9530. (peekData): Removed timeout argument.
  9531. * src/Socket.cc
  9532. (writeData): Removed timeout argument.
  9533. (readData): Removed timeout argument.
  9534. (peekData): Removed timeout argument.
  9535. * Release 0.4.1
  9536. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9537. To deploy upload rate based choking algorithm:
  9538. * src/PeerInteractionCommand.cc
  9539. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  9540. peer currently used.
  9541. (decideChoking): Deleted the choke/unchoke decision algorithm when
  9542. download completes. Simplified.
  9543. (receiveMessage): Updated.
  9544. * src/TorrentMan.h
  9545. (activePeers): New variable.
  9546. (addActivePeer): New function.
  9547. (getActivePeers): New function.
  9548. (deleteActivePeer): New function.
  9549. * src/TorrentMan.cc
  9550. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  9551. * src/PeerAbstractCommand.cc
  9552. (onAbort): Use peer->resetStatus().
  9553. * src/main.cc
  9554. (PeerChokeCommand.h): Included.
  9555. (main): Added the instance of ChokingCommand to the command queue.
  9556. * src/Peer.h
  9557. (amChoking): Renamed from amChocking
  9558. (chokingRequired): New variable.
  9559. (optUnchoking): New variable.
  9560. (deltaUpload): New variable.
  9561. (deltaDownload): New variable.
  9562. (addDeltaUpload): New function.
  9563. (resetDeltaUpload): New function.
  9564. (addDeltaDownload): New function.
  9565. (resetDeltaDownload): New function.
  9566. (addPeerUpload): Added a call to addDeltaUpload.
  9567. (addPeerDownload): Added a call to addDeltaDownload.
  9568. * src/Peer.cc
  9569. (shouldBeChoking): Renamed from shouldChoke.
  9570. (resetStatus): New function.
  9571. * src/PeerChokeCommand.h: New class.
  9572. * src/PeerChokeCommand.cc: New class.
  9573. To add lazy upload speed limiter:
  9574. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  9575. statistics calculation to TorrentDownloadEngine.
  9576. * src/TorrentConsoleDownloadEngine.cc
  9577. (sendStatistics): Renamed from printStatistics.
  9578. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  9579. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  9580. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  9581. * src/TorrentDownloadEngine.h: Added the variables for statistics
  9582. calculation.
  9583. (sendStatistics): New function as pure virtual function.
  9584. (getUploadSpeed): New function.
  9585. * src/TorrentDownloadEngine.cc
  9586. (initStatistics): New function.
  9587. (calculateSpeed): New function.
  9588. (calculateStatistics): New function.
  9589. * src/SendMessageQueue.h
  9590. (uploadLength): New variable.
  9591. (send): Added an argument.
  9592. (setUploadLimit): New function.
  9593. (getUploadLimit): New function.
  9594. * src/SendMessageQueue.cc
  9595. (send): Added upload speed limiter.
  9596. * src/prefs.h
  9597. (PREF_UPLOAD_LIMIT): New definition.
  9598. * src/PeerInteractionCommand.cc
  9599. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  9600. * src/main.cc
  9601. (main): Added --upload-limit option
  9602. For bug fixes:
  9603. * src/main.cc
  9604. (showUsage): Corrected --listen-port help
  9605. Other changes:
  9606. * src/TorrentMan.cc
  9607. (getPeer): Return nullPeer if connection is grather than
  9608. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  9609. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9610. To add some useful information to the exception message:
  9611. * src/SocketCore.cc : Updated messages.
  9612. * src/SegmentMan.cc :
  9613. * src/TorrentMan.cc : Updated messages.
  9614. * src/MultiDiskWriter.cc : Updated messages.
  9615. * src/Util.cc : Updated messages.
  9616. * src/AbstractDiskWriter.cc : Updated messages.
  9617. * src/PreAllocationDiskWriter.cc : Updated messages.
  9618. * src/message.cc : Added new messages. Updated some messages.
  9619. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  9620. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  9621. Updated threshold from 30 to 15.
  9622. * src/AbstractDiskWriter.h (filename): New variable.
  9623. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  9624. (createFile): Assigned filename.
  9625. * src/main.cc: Updated the help message for http-auth-scheme.
  9626. * Release 0.4.0
  9627. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9628. To add TrackerUpdateCommand with which replaces
  9629. CompactTrackerResponseProcessor:
  9630. * src/TrackerWatcherCommand.h (req): Removed.
  9631. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  9632. if the number of peer connections are less than 30.
  9633. * src/ByteArrayDiskWriter.h (readData): Implemented.
  9634. * src/SegmentMan.h (diskWriter): New function.
  9635. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  9636. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  9637. (main): Use TrackerUpdateCommand.
  9638. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  9639. (req): New variable.
  9640. (setTrackerResponseProcessor): Removed.
  9641. (getTrackerResponseProcessor): Removed.
  9642. (processTrackerResponse): Removed.
  9643. * src/DownloadEngine.h (diskWriter): Removed.
  9644. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  9645. to torrentMan->processTrackerResponse().
  9646. To add Util::expandBuffer:
  9647. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  9648. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  9649. * src/Util.h (expandBuffer): New function.
  9650. To fix the bug that causes segmentation fault when "-l ." is specified
  9651. in command-line option:
  9652. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  9653. (openFile): New function.
  9654. (closeFile): New function.
  9655. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  9656. (~SimpleLogger): Call closeFile();
  9657. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  9658. * src/main.cc (main): Added a check to see logger is configured
  9659. properly.
  9660. To enable HTTP authentication without specifying "--http-auth-scheme"
  9661. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  9662. * src/HttpConnection.cc (createRequest): Send Authorization header
  9663. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  9664. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  9665. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  9666. * src/Peer.cc (shouldChoke): Updated algorithm.
  9667. * src/message.h (EX_AUTH_FAILED): New definition.
  9668. (EX_FILE_OPEN): New definition.
  9669. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  9670. if status == 401.
  9671. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  9672. if req->isTorrent == true.
  9673. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  9674. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  9675. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  9676. (createFile): Updated message.
  9677. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9678. To add a readout of estimated remaining time to normal HTTP/FTP
  9679. downloads:
  9680. * src/ConsoleDownloadEngine.h (startup): New variable.
  9681. (startupLength): New variable.
  9682. (isStartupLengthSet): New variable.
  9683. (avgSpeed): New variable.
  9684. (eta): New variable.
  9685. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  9686. estimated remaining time.
  9687. (initStatistics): Initialized newly added variables.
  9688. (calculateStatistics): Calculate average speed and estimated remaining
  9689. time.
  9690. To decouple TorrentDownloadEngine from HttpResponseCommand:
  9691. * src/TrackerDownloadCommand.h: Removed.
  9692. * src/TrackerDownloadCommand.cc: Removed.
  9693. * src/TrackerInitCommand.h: Removed.
  9694. * src/TrackerInitCommand.cc: Removed.
  9695. * src/TrackerUpdateCommand.h: Removed.
  9696. * src/TrackerUpdateCommand.cc: Removed.
  9697. * src/TrackerWatcherCommand.cc (execute): The construction of request
  9698. url written in TrackerInitCommand was moved here. Do not create
  9699. tracker request command if torrentMan->trackers != 0.
  9700. * src/CompactTrackerResponseProcessor.h: New class.
  9701. * src/CompactTrackerResponseProcessor.cc: New class.
  9702. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  9703. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  9704. Decoupled TorrentDownloadEngine from this.
  9705. * src/SegmentMan.h (init): New function.
  9706. * src/SegmentMan.cc (init): New function.
  9707. * src/TorrentMan.h (responseProcessor): New variable.
  9708. (trackers): New variable.
  9709. (setTrackerResponseProcessor): New function.
  9710. (getTrackerResponseProcessor): New function.
  9711. (processTrackerResponse): New function.
  9712. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  9713. (processTrackerResponse): New function.
  9714. * src/main.cc (main): Use ByteArrayDiskWriter and
  9715. CompactTrackerResponseProcessor.
  9716. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  9717. processTrackerResponse().
  9718. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  9719. readout.
  9720. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  9721. which indicates download has completed.
  9722. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  9723. (closeFile): fd >= 0, not fd > 0
  9724. * src/main.cc (main): Added short cut for show-files.
  9725. Added short cut for torrent-file.
  9726. Added new command-line option listen-port.
  9727. Updated i18n messages.
  9728. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9729. To add LogFactory which creates singleton logger:
  9730. * src/LogFactory.h: New class.
  9731. * src/LogFactory.cc: New class.
  9732. * src/Command.h (logger): New variable.
  9733. (Constructor): Use LogFactory.
  9734. * src/AbstractCommand.cc: Use Command::logger
  9735. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  9736. Use LogFactory.
  9737. * src/SegmentSplitter.h : Made logger protected.
  9738. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  9739. * src/SegmentMan.cc (Constructor): Use LogFactory.
  9740. * src/DownloadEngine.h : Made logger protected.
  9741. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  9742. * src/PeerInteractionCommand.cc : Use Command::logger.
  9743. * src/HttpResponseCommand.cc : Use Command::logger.
  9744. * src/SegmentMan.h : Made logger private.
  9745. * src/TorrentMan.h : Made logger private.
  9746. * src/TorrentMan.cc : Use LogFactory.
  9747. * src/FtpNegotiateCommand.cc : Use Command::logger.
  9748. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  9749. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  9750. Use LogFactory.
  9751. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  9752. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  9753. Use LogFactory.
  9754. * src/DownloadCommand.cc : Use Command::logger.
  9755. * src/PeerAbstractCommand.cc : Use Command::logger.
  9756. * src/PeerListenCommand.cc : Use Command::logger.
  9757. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  9758. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  9759. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  9760. * src/TrackerWatcherCommand.cc : Use Command::logger.
  9761. * src/TrackerUpdateCommand.cc : Use Command::logger.
  9762. * src/TrackerDownloadCommand.cc : Use Command::logger.
  9763. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  9764. Use LogFactory.
  9765. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  9766. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  9767. Use LogFactory.
  9768. * src/main.cc (main): Use LogFactory.
  9769. * src/DiskAdaptor.h (logger): New variable.
  9770. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  9771. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  9772. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9773. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  9774. parameter to a tracker request.
  9775. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  9776. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  9777. * src/main.cc (setSignalHander): New function.
  9778. (main): Added a handler for SIGTERM.
  9779. (handler): Updated message.
  9780. (torrentHandler): Updated message.
  9781. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9782. * src/TorrentConsoleDownloadEngine.cc
  9783. (onPartialDownloadingCompletes): Renamed as
  9784. onSelectiveDownloadingCompletes.
  9785. (onSelectiveDownloadingCompletes): Updated message.
  9786. To add DiskAdaptor which abstract DiskWriter family:
  9787. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  9788. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  9789. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  9790. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  9791. MultiDiskAdaptor.h.
  9792. (readFileEntry): Changed its arguments.
  9793. (setup): setupDiskWriter is merged into this function.
  9794. (setupDiskWriter): Removed.
  9795. (setFileFilter): New function.
  9796. (readFileEntryFromMetaInfoFile): Updated according to the changes
  9797. made in readFileEntry.
  9798. (getFilePath): Removed.
  9799. (getTempFilePath): Removed.
  9800. (getSegmentFilePath): Updated due to the removal of getFilePath.
  9801. (fixFilename): Removed.
  9802. (copySingleFile): Removed.
  9803. (splitMultiFile): Removed.
  9804. (deleteTempFile): Removed.
  9805. (setFileEntriesToDownload): Removed.
  9806. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  9807. (isSelectiveDownloadingMode): New function.
  9808. (setAllMultiFileRequestedState): Removed.
  9809. (finishPartialDownloadingMode): Renamed as
  9810. finishSelectiveDownloadingMode.
  9811. (finishSelectiveDownloadingMode): New function.
  9812. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  9813. (getSelectedTotalLength): New function.
  9814. (onDownloadComplete): Use diskAdaptor.
  9815. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  9816. (Range): Removed.
  9817. (setMultiFileEntries): Renamed as setFileEntries.
  9818. (setFileEntries): New function.
  9819. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  9820. (pieceLength): New variable.
  9821. * src/main.cc (printDownloadCompeleteMessage): New function.
  9822. (torrentHandler): Use diskAdaptor instead of diskWriter.
  9823. (main): Renamed torrent-show-files to show-files.
  9824. Rewritten file contents listing.
  9825. * src/TorrentMan.h (FileEntry): Removed.
  9826. (multiFileTopDir): Removed.
  9827. (multiFileEntries): Removed.
  9828. (diskWriter): Removed.
  9829. (diskAdaptor): New variable.
  9830. * src/DefaultDiskWriter.h (totalLength): New variable.
  9831. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  9832. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  9833. diskWriter.
  9834. * src/TorrentConsoleDownloadEngine.h
  9835. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  9836. (partialTotalLength): Renamed as selectedTotalLength.
  9837. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  9838. openExistingFile, otherwise call initAndOpenFile.
  9839. (closeFile): fd > 0, not fd != 0.
  9840. * src/DirectDiskAdaptor.h: New class.
  9841. * src/DirectDiskAdaptor.cc: New class.
  9842. * src/MultiDiskAdaptor.h: New class.
  9843. * src/MultiDiskAdaptor.cc: New class.
  9844. * src/CopyDiskAdaptor.h: New class.
  9845. * src/CopyDiskAdaptor.cc: New class.
  9846. * src/DiskAdaptor.h: New class.
  9847. * src/DiskAdaptor.cc: New class.
  9848. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  9849. (PREF_SHOW_FILES): New definition.
  9850. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9851. To add the ability to download multi torrent into respective files
  9852. directly:
  9853. * src/DiskWriter.h (openFile): New function.
  9854. (seek): Removed.
  9855. * src/MultiDiskWriter.h: New class.
  9856. * src/MultiDiskWriter.cc: New class.
  9857. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  9858. protected.
  9859. (openFile): New function.
  9860. * src/AbstractDiskWriter.cc (openFile): New function.
  9861. * src/prefs.h (V_FALSE): New definition.
  9862. (PREF_DIRECT_FILE_MAPPING): New definition.
  9863. * src/TorrentMan.h (setupDiskWriter): New function.
  9864. (setAllMultiFileRequestedState): New function.
  9865. (onDownloadComplete): New function.
  9866. * src/TorrentMan.cc : Included MultiDiskWriter.h
  9867. (setupDiskWriter): New function.
  9868. (getFilePath): Updated.
  9869. (getTempFilePath): Updated.
  9870. (getSegmentFilePath): Updated.
  9871. (fixFilename): Updated.
  9872. (deleteTempFile): Updated.
  9873. (setAllMultiFileRequestedState): New function.
  9874. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  9875. (finishPartialDownloadingMode): Reset requested flags.
  9876. (onDownloadComplete): New function.
  9877. * src/main.cc: Added --direct-file-mapping option.
  9878. Use TorrentMan::setupDiskWriter().
  9879. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  9880. onDownloadComplete().
  9881. To fix ETA bug:
  9882. * src/Util.h (difftvsec): New function.
  9883. * src/Util.cc (difftvsec): New function.
  9884. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  9885. type of "elapsed" instead of long long int.
  9886. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  9887. The updates of statistics takes place every 1 seconds.
  9888. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  9889. (calculateSpeed): Changed its argument signature.
  9890. * src/PeerMessage.cc (toString): Fixed message.
  9891. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. To print ETA:
  9893. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  9894. completion handling when dealing with
  9895. TorrentMan::isPartialDownloadingMode() == true.
  9896. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  9897. New function.
  9898. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  9899. (sessionDownloadLength): New variable.
  9900. (avgSpeed): New variable.
  9901. (eta): New variable.
  9902. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  9903. new variables: eta, avgSpeed, startup.
  9904. (calculateSpeed): Calculate average speed and ETA.
  9905. (printStatistics): Added ETA.
  9906. * src/Util.h (secfmt): New function.
  9907. * src/Util.cc (secfmt): New function.
  9908. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9909. To detect "keep alive" flooding:
  9910. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  9911. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  9912. variable: keepAliveCount.
  9913. (detectMessageFlooding): Added "keep alive" flooding detection.
  9914. (receiveMessage): Increase keepAliveCount when "keep alive" message
  9915. received.
  9916. To add the ability to download only specified files in multi-file
  9917. torrent:
  9918. * src/BitfieldMan.h (filterBitfield): New variable.
  9919. (filterEnabled): New variable.
  9920. (setFilterBit): New function.
  9921. (enableFilter): New function.
  9922. (disableFilter): New function.
  9923. (isFilterEnabled): New function.
  9924. (getFilteredTotalLength): New function.
  9925. (getCompletedLength): New function.
  9926. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  9927. filterBitfield, filterEnabled.
  9928. (CopyConstructor): Added filterBitfield and filterEnabled.
  9929. (operator==): Added filterBitfield and filterEnabled.
  9930. (Destructor): Added filterBitfield.
  9931. (getMissingIndex): Use filterBitfield.
  9932. (getMissingUnusedIndex): Use filterBitfield.
  9933. (getFirstMissingUnusedIndex): Use filterBitfield.
  9934. (getFirstMissingUnusedIndex): Use filterBitfield.
  9935. (getAllMissingIndexes): Use filterBitfield.
  9936. (countMissingBlock): Use filterBitfield.
  9937. (countBlock): Use filterBitfield.
  9938. (setBitInternal): Added new argument on.
  9939. (setUseBit): Use setBitInternal.
  9940. (unsetUseBit): Use setBitInternal.
  9941. (setBit): Use setBitInternal.
  9942. (unsetBit): Use setBitInternal.
  9943. (isAllBitSet): Use filterBitfield.
  9944. (setFilterBit): New function.
  9945. (addFilter): New function.
  9946. (enableFilter): New function.
  9947. (disableFilter): New function.
  9948. (clearFilter): New function.
  9949. (isFilterEnabled): New function.
  9950. (getFilteredTotalLength): New function.
  9951. (getCompletedLength): New function.
  9952. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  9953. Initalized newly added variables.
  9954. [FileEntry](offset): New variable.
  9955. [FileEntry](extracted): New variable.
  9956. [FileEntry](requested): New variable.
  9957. (readFileEntry): New function.
  9958. (option): New variable.
  9959. (splitMultiFile): Removed const qualifier.
  9960. (fixFilename): Removed const qualifier.
  9961. (readFileEntryFromMetaInfoFile): New function.
  9962. (finishPartialDownloadingMode): New function.
  9963. (isPartialDownloadingMode): New function.
  9964. (setFileEntriesToDownload): New function.
  9965. (getCompletedLength): New function.
  9966. (getPartialTotalLength): New function.
  9967. * src/TorrentMan.cc (readFileEntry): New function.
  9968. (setup): Use readFileEntry. If no-preallocation option is specified,
  9969. use DefaultDiskWriter.
  9970. (readFileEntryFromMetaInfoFile): New function.
  9971. (fixFilename): Removed const qualifier.
  9972. (splitMultiFile): Removed const qualifier.
  9973. (setFileEntriesToDownload): New function.
  9974. (isPartialDownloadingMode): New function.
  9975. (finishPartialDownloadingMode): New function.
  9976. (getCompletedLength): New function.
  9977. (getPartialTotalLength): New function.
  9978. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  9979. New variable.
  9980. (partialTotalLength): New variable.
  9981. (downloadLength): New variable.
  9982. (totalLength): New variable.
  9983. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  9984. Added log.
  9985. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  9986. partialTotalLength, downloadLength, totalLength.
  9987. (calculate): Calculate downloadLength and totalLength.
  9988. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  9989. * src/main.cc (addCommand): Changed argument signature.
  9990. (main): Added new variable: args. Added new option "torrent-show-files"
  9991. "no-preallocation". Usage is not updated yet.
  9992. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9993. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  9994. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9995. Attempt to add the ability to listing file entries in a .torrent file.
  9996. This feature is not yet complete.
  9997. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  9998. * src/TorrentMan.cc (getMultiFileEntries): New function.
  9999. (getName): New function.
  10000. * src/TorrentMan.h (getMultiFileEntries): New function.
  10001. (getName): New function.
  10002. * src/main.cc (main): Use above 2 funtion.
  10003. * Release 0.3.2
  10004. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  10006. (detectMessageFlooding): Updated threshold value.
  10007. (checkLongTimePeerChoking): Updated timeout value.
  10008. (getNewPieceAndSendInterest): Added debug log.
  10009. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  10010. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  10011. (getPeer): Updated.
  10012. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  10013. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  10014. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  10015. is localhost.
  10016. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  10017. * src/PendingMessage.cc (processMessage): Not to send piece message
  10018. if peer is not interested in the pieces localhost has.
  10019. * src/Peer.cc (shouldChoke): Updated.
  10020. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  10021. * src/Util.cc (isPowerOf): New function.
  10022. * src/Util.h (isPowerOf): New function.
  10023. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  10024. whether or not it is power of 2.
  10025. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10026. Added new class SendMessageQueue that includes PendingMessages and
  10027. RequestSlotMan.
  10028. * src/SendMessageQueue.h: New class.
  10029. * src/SendMessageQueue.cc: New class.
  10030. * src/PendingMessage.h: Added new member variable blockIndex and its
  10031. accessors.
  10032. (createRequestMessage): Updated.
  10033. * src/PendingMessage.cc (createRequestMessage): Updated.
  10034. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  10035. SendMessageQueue.
  10036. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  10037. (receiveMessage): Updated with SendMessageQueue.
  10038. (deletePendingPieceMessage): Removed.
  10039. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  10040. (sendInterest): Updated with SendMessageQueue.
  10041. (createRequestPendingMessage): Updated with SendMessageQueue.
  10042. (sendMessages): Updated with SendMessageQueue.
  10043. (onAbort): Updated with SendMessageQueue.
  10044. (keepAlive): Updated with SendMessageQueue.
  10045. (beforeSocketCheck): Updated SendMessageQueue.
  10046. * src/PeerInteractionCommand (sendMessages): Shuffle
  10047. missingBLockIndexes before using it.
  10048. Added its own timeout for peer connection.
  10049. * src/PeerAbstractCommand.h: Added member variable timeout and its
  10050. setter.
  10051. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  10052. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10053. Added setTimeout() call.
  10054. (executeInternal): Added setTimeout() call.
  10055. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  10056. Added timeout.
  10057. (isTimeoutDetected): Updated.
  10058. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  10059. option.
  10060. Added *simple* message flooding checker.
  10061. * src/PeerInteractionCommand.cc (executeInternal):
  10062. Added detectMessageFlooding() call.
  10063. (detectMessageFlooding): New function.
  10064. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  10065. (beforeSocketCheck): Added detectMessageFlooding() call.
  10066. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  10067. chokeUnchokeCount, haveCount, detectMessageFlooding().
  10068. Removed deletePendingPieceMessage(), getRequestSlot(),
  10069. deleteRequestSlot(), deleteAllRequestSlot().
  10070. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  10071. Added checkLongTimePeerChoking() call.
  10072. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  10073. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  10074. if duplicate == false.
  10075. The parameter "uploaded" and "downloaded" in the tracker request are
  10076. the size since the client sent the "started" event to the tracker.
  10077. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  10078. uploaded size to preDownloadedSize, preUploadedSize respectively.
  10079. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  10080. getSessionDownloadedSize(), getSessionUploadedSize().
  10081. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  10082. getSessionUploadedSize() instead of getDownloadedSize(),
  10083. getUploadedSize().
  10084. * src/PendingMessage.cc (processMessage): Do not send request message
  10085. if the peer is choking the client.
  10086. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  10087. less than interval.
  10088. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10089. * configure.in: Added gnutls support. Added several CPP macros.
  10090. * m4/openssl.m4: Added.
  10091. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  10092. readData(), peekData(). Added gnutls support.
  10093. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  10094. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  10095. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  10096. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  10097. Instead, added a check for whether setup method has executed
  10098. successfully.
  10099. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  10100. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  10101. * src/Makefile.am: Updated.
  10102. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  10103. using whether OpenSSL or gcrypt, depending on the result of configure
  10104. script.
  10105. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  10106. messageDigest.h.
  10107. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  10108. * src/PeerListenCommand.cc: Added log about port binded successfully.
  10109. Fixed memory leak.
  10110. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  10111. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  10112. Removed instantiation of TrackerInitCommand. Instead,
  10113. TrackerWatcherCommand is instantiated and pushed to the command queue.
  10114. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  10115. ENABLE_SSL.
  10116. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  10117. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  10118. If a piece is already acquired by another command, delete the request
  10119. slots for the piece.
  10120. * src/TrackerUpdateCommand.cc (execute):
  10121. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  10122. Added a check whether peer list is null.
  10123. Fixed the bug that causes sending completed event to the tracker
  10124. several times.
  10125. * src/TrackerInitCommand.cc (execute):
  10126. Fixed the bug that causes sending completed event to the tracker
  10127. several times.
  10128. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  10129. by using messageDigest.h.
  10130. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10131. * PeerConnection.cc: Replaced log message "keep-alive" with
  10132. "keep alive".
  10133. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  10134. localhost long time.
  10135. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  10136. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  10137. at most 100 failure entry from the list. If with duplicate = false,
  10138. MAX_PEER_LIST is not checked.
  10139. * PeerListenCommand.cc: Fixed the argument order of log message.
  10140. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10141. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  10142. Added warn().
  10143. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  10144. Implemented warn().
  10145. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  10146. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10147. * Request.h: Added AFTER_COMPLETED event.
  10148. * TorrentDownloadEngine.cc: Prints "Download complete" message
  10149. instead of downloaded size and progress(%) after download completes.
  10150. * PeerInteractionCommand.cc: After download completes, sends unchoke
  10151. message to the peer if it is interested in what localhost has
  10152. downloaded.
  10153. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  10154. destination instead of just renaming it.
  10155. * TorrentMan.cc: Added deleteTempFile().
  10156. * PeerAbstractCommand.cc: do not stop execution after download
  10157. completes. This makes localhost a seeder.
  10158. * Util.{h,cc}: Added fileCopy().
  10159. * PeerListenCommand.cc: do not stop execution after download completes.
  10160. This makes localhost a seeder.
  10161. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  10162. Added TorrentMan::deleteTempFile() to torrentHandler.
  10163. Initialized the variable dir as ".".
  10164. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  10165. Deleted renameSingleFile().
  10166. Added copySingleFile(), deleteTempFile().
  10167. * DownloadEngine.h: Added virtual function afterEachIteration().
  10168. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  10169. in onEndOfRun() to afterEachIteration().
  10170. In onEndOfRun(), changed if condition to check whether filenameFixed is
  10171. true.
  10172. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  10173. In rangedFileCopy(), added try-catch block to properly close file
  10174. descriptors.
  10175. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  10176. Added afterEachIteration(), isFilenameFixed().
  10177. * Peer.cc: Changed choking strategy.
  10178. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  10179. * TrackerInitCommand.cc: Send completed event only once.
  10180. * DownloadEngine.cc: Added a call to afterEachIteration().
  10181. * TrackerUpdateCommand.cc: Do not stop execution after download
  10182. completes.
  10183. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  10184. connect the peers at most MAX_PEER_UPDATE when a peer list is
  10185. received from a tracker.
  10186. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  10187. Decreased the number of failure peers to delete to 0(just comment out
  10188. the line).
  10189. * Release 0.3.1
  10190. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10191. * PeerInteractionCommand.cc: added a call to
  10192. TorrentMan::unadvertisePiece in Destructor.
  10193. * PeerInteractionCommand.cc: make have message sent immediately
  10194. if the size of pending message queue is zero.
  10195. * TorrentMan.cc: set the maximum size of peer list to 250.
  10196. * TorrentMan.h: changed the container type of Peers and UsedPieces
  10197. to deque.
  10198. * Util.cc: fixed rangedFileCopy.
  10199. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  10200. to Constructor. Also, moved digest cleanup to Destructor.
  10201. * MetaFileUtil.cc: fixed memory leak
  10202. * replaced std::vector with std::deque.
  10203. * AbstractCommand.cc: casted timeout value to long long int.
  10204. * ChunkedEncoding.cc: fixed memory leak.
  10205. * PeerInteractionCommand.cc: casted timeout value to long long int.
  10206. * SleepCommand.cc: casted timeout value to long long int.
  10207. * Data.cc: fixed memory leak.
  10208. * Data.cc: fixed toLLInt().
  10209. * BitfieldMan.cc: fixed memory leak.
  10210. * TorrentMan.cc: initialized storeDir to ".".
  10211. * TorrentMan.cc: fixed memory leak.
  10212. * TorrentMan.cc: corrected file paths of splitted files.
  10213. * PeerAbstractCommand.cc: casted timeout to long long int.
  10214. * main.cc: added delete(req) and delete(te->diskWriter).
  10215. * RequestSlot.cc: casted timeout value to long long int.
  10216. * Request.cc: fixed memory leak.
  10217. * PendingMessage.cc: make HAVE messages sent only when peer does not
  10218. have the piece.
  10219. * Peer.{h,cc}: added hasPiece(int index).
  10220. * main.cc: corrected addCommand.
  10221. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10222. * BitTorrent protocol support added.
  10223. * Release 0.3.0
  10224. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10225. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  10226. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10227. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  10228. decoding did not work properly.
  10229. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10230. * DownloadEngine.h: included sys/time.h
  10231. * DownloadEngine.cc: remove sys/time.h
  10232. * Makefile.am (SUBDIRS): Add intl.
  10233. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  10234. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10235. * main.cc: correct help message for --http-auth-scheme.
  10236. * main.cc: changed e-mail address for bug reports.
  10237. * ja.po: added japanese translation.
  10238. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10239. * SimpleLogger.cc: flush log file instead of stdout.
  10240. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10241. * main.cc: Fixed command-line option: max-tries
  10242. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  10243. does not equal to seg.sp.
  10244. * DownloadCommand.cc: If EOF is got from the server and the total size
  10245. of file is not zero, then throw DlRetryEx.
  10246. * main.cc: Set the minium value of min-segment-size to 1024.
  10247. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  10248. fails because of a regression since 0.2.0 release.
  10249. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10250. * HttpConnection.cc:
  10251. * common.h: defined the user agent name as macro
  10252. * DownloadEngine.{h, cc}:
  10253. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  10254. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  10255. * main.cc: Download complete/abort message is now generated by main.
  10256. * Makefile.am (SUBDIRS): Add m4.
  10257. (ACLOCAL_AMFLAGS): New variable.
  10258. (EXTRA_DIST): New variable.
  10259. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  10260. * gettext: added gettext functionality
  10261. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10262. * AbstractCommand.cc:
  10263. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  10264. unregister its cuid from SegmentMan.
  10265. * DownloadEngine.cc: .aria2 file was written when a downloading
  10266. failed with errors.
  10267. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  10268. Added "User-Agent" header to CONNECT proxy request.
  10269. Fixed "Proxy-Authorization" header. Now proxy authorization works
  10270. properly.
  10271. * Logger.h:
  10272. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  10273. * ChunkedEncoding.cc: Added #include directive for strings.h
  10274. * Release 0.2.1
  10275. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10276. * Util.{h,cc}: added startsWith().
  10277. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  10278. Util::endsWith().
  10279. * SocketCore.cc: struct addrinfo is now zero-initialized.
  10280. * common.h: added #include directive of limit.h.
  10281. * DownloadEngine.cc: added #include directive of sys/time.h and
  10282. algorithm.
  10283. * Exception.h: added #include directive of stdio.h.
  10284. * AbstractCommand.h: added #include directive of sys/time.h.
  10285. * DownloadCommand.h: added #include directive of sys/time.h.
  10286. * *.h: added #include directive of common.h to all base classes.
  10287. subclasses' one was removed.
  10288. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  10289. does not define these macros.
  10290. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10291. * Release 0.2.0
  10292. * main.cc:
  10293. * HttpInitiateConnectionCommand.{h,cc}:
  10294. * prefs.h:
  10295. * HttpConnection.{h,cc}: added --http-proxy-method option.
  10296. We can now use GET command in http proxy.
  10297. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10298. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  10299. that splits slowest segment of SegmentMan::commands vector.
  10300. This is the default split algorithm of aria2.
  10301. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  10302. that splits first segment of SegmentMan::commands vector.
  10303. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  10304. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  10305. * Segment.h:
  10306. * SegmentMan.cc: Added speed field to Segment.h
  10307. * main.cc: -s option now affects all URLs in command-line arguemtns.
  10308. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  10309. * message.h: Change file size related %d to %lld.
  10310. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10311. * FtpInitiateConnectionCommand.{h,cc}:
  10312. * FtpNegotiationCommand.{h,cc}:
  10313. * FtpDownloadCommand.{h,cc}:
  10314. * FtpConnection.{h,cc}: Added FTP support
  10315. * SimpleLogger.cc: Log message now includes time information.
  10316. * main.cc: The value of --http-auth-scheme option is chagned from
  10317. 'BASIC' to 'basic'
  10318. * main.cc: Added --timeout command-line option.
  10319. * main.cc: Added --min-segment-size command-line option.
  10320. * main.cc: Added --max-retries command-line option.
  10321. * prefs.h: option string constants are now defined in prefs.h
  10322. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10323. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  10324. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  10325. with version 0.1.0's one.
  10326. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10327. * configure.in: Added --enable-ssl option to configure script.
  10328. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  10329. cannot permit absoluteURI as Request-URI.
  10330. * HttpConnection.cc: Added Referer support.
  10331. * main.cc: Added referer command-line option.
  10332. * main.cc: Added rety-wait command-line option.
  10333. * Exception.h: Fixed formating bug in Exception::setMsg()
  10334. * SocketCore.{h,cc}:
  10335. * Socket.{h, cc}:
  10336. * Request.cc:
  10337. * InitiateConnectionCommandFactory.cc:
  10338. * HttpRequestCommand.cc: Added HTTPS support.
  10339. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  10340. for SocketCore.
  10341. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  10342. size is wrong
  10343. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  10344. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  10345. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  10346. * Release 0.1.0